@thepalaceproject/circulation-admin 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/circulation-admin.css +1 -1
- package/dist/circulation-admin.js +3 -3
- package/package.json +2 -2
|
@@ -38,7 +38,7 @@ object-assign
|
|
|
38
38
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
39
39
|
* @license MIT
|
|
40
40
|
*/
|
|
41
|
-
var n=r(759);var a=r(760);var i=r(386);t.Buffer=l;t.SlowBuffer=b;t.INSPECT_MAX_BYTES=50;l.TYPED_ARRAY_SUPPORT=e.TYPED_ARRAY_SUPPORT!==undefined?e.TYPED_ARRAY_SUPPORT:o();t.kMaxLength=s();function o(){try{var e=new Uint8Array(1);e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};return e.foo()===42&&typeof e.subarray==="function"&&e.subarray(1,1).byteLength===0}catch(e){return false}}function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(s()<t){throw new RangeError("Invalid typed array length")}if(l.TYPED_ARRAY_SUPPORT){e=new Uint8Array(t);e.__proto__=l.prototype}else{if(e===null){e=new l(t)}e.length=t}return e}function l(e,t,r){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l)){return new l(e,t,r)}if(typeof e==="number"){if(typeof t==="string"){throw new Error("If encoding is specified then the first argument must be a string")}return p(this,e)}return c(this,e,t,r)}l.poolSize=8192;l._augment=function(e){e.__proto__=l.prototype;return e};function c(e,t,r,n){if(typeof t==="number"){throw new TypeError('"value" argument must not be a number')}if(typeof ArrayBuffer!=="undefined"&&t instanceof ArrayBuffer){return m(e,t,r,n)}if(typeof t==="string"){return h(e,t,r)}return y(e,t)}l.from=function(e,t,r){return c(null,e,t,r)};if(l.TYPED_ARRAY_SUPPORT){l.prototype.__proto__=Uint8Array.prototype;l.__proto__=Uint8Array;if(typeof Symbol!=="undefined"&&Symbol.species&&l[Symbol.species]===l){Object.defineProperty(l,Symbol.species,{value:null,configurable:true})}}function f(e){if(typeof e!=="number"){throw new TypeError('"size" argument must be a number')}else if(e<0){throw new RangeError('"size" argument must not be negative')}}function d(e,t,r,n){f(t);if(t<=0){return u(e,t)}if(r!==undefined){return typeof n==="string"?u(e,t).fill(r,n):u(e,t).fill(r)}return u(e,t)}l.alloc=function(e,t,r){return d(null,e,t,r)};function p(e,t){f(t);e=u(e,t<0?0:g(t)|0);if(!l.TYPED_ARRAY_SUPPORT){for(var r=0;r<t;++r){e[r]=0}}return e}l.allocUnsafe=function(e){return p(null,e)};l.allocUnsafeSlow=function(e){return p(null,e)};function h(e,t,r){if(typeof r!=="string"||r===""){r="utf8"}if(!l.isEncoding(r)){throw new TypeError('"encoding" must be a valid string encoding')}var n=A(t,r)|0;e=u(e,n);var a=e.write(t,r);if(a!==n){e=e.slice(0,a)}return e}function v(e,t){var r=t.length<0?0:g(t.length)|0;e=u(e,r);for(var n=0;n<r;n+=1){e[n]=t[n]&255}return e}function m(e,t,r,n){t.byteLength;if(r<0||t.byteLength<r){throw new RangeError("'offset' is out of bounds")}if(t.byteLength<r+(n||0)){throw new RangeError("'length' is out of bounds")}if(r===undefined&&n===undefined){t=new Uint8Array(t)}else if(n===undefined){t=new Uint8Array(t,r)}else{t=new Uint8Array(t,r,n)}if(l.TYPED_ARRAY_SUPPORT){e=t;e.__proto__=l.prototype}else{e=v(e,t)}return e}function y(e,t){if(l.isBuffer(t)){var r=g(t.length)|0;e=u(e,r);if(e.length===0){return e}t.copy(e,0,0,r);return e}if(t){if(typeof ArrayBuffer!=="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t){if(typeof t.length!=="number"||te(t.length)){return u(e,0)}return v(e,t)}if(t.type==="Buffer"&&i(t.data)){return v(e,t.data)}}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(e){if(e>=s()){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+s().toString(16)+" bytes")}return e|0}function b(e){if(+e!=e){e=0}return l.alloc(+e)}l.isBuffer=function e(t){return!!(t!=null&&t._isBuffer)};l.compare=function e(t,r){if(!l.isBuffer(t)||!l.isBuffer(r)){throw new TypeError("Arguments must be Buffers")}if(t===r)return 0;var n=t.length;var a=r.length;for(var i=0,o=Math.min(n,a);i<o;++i){if(t[i]!==r[i]){n=t[i];a=r[i];break}}if(n<a)return-1;if(a<n)return 1;return 0};l.isEncoding=function e(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 true;default:return false}};l.concat=function e(t,r){if(!i(t)){throw new TypeError('"list" argument must be an Array of Buffers')}if(t.length===0){return l.alloc(0)}var n;if(r===undefined){r=0;for(n=0;n<t.length;++n){r+=t[n].length}}var a=l.allocUnsafe(r);var o=0;for(n=0;n<t.length;++n){var s=t[n];if(!l.isBuffer(s)){throw new TypeError('"list" argument must be an Array of Buffers')}s.copy(a,o);o+=s.length}return a};function A(e,t){if(l.isBuffer(e)){return e.length}if(typeof ArrayBuffer!=="undefined"&&typeof ArrayBuffer.isView==="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)){return e.byteLength}if(typeof e!=="string"){e=""+e}var r=e.length;if(r===0)return 0;var n=false;for(;;){switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case undefined:return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return $(e).length;default:if(n)return J(e).length;t=(""+t).toLowerCase();n=true}}}l.byteLength=A;function _(e,t,r){var n=false;if(t===undefined||t<0){t=0}if(t>this.length){return""}if(r===undefined||r>this.length){r=this.length}if(r<=0){return""}r>>>=0;t>>>=0;if(r<=t){return""}if(!e)e="utf8";while(true){switch(e){case"hex":return R(this,t,r);case"utf8":case"utf-8":return C(this,t,r);case"ascii":return I(this,t,r);case"latin1":case"binary":return P(this,t,r);case"base64":return L(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase();n=true}}}l.prototype._isBuffer=true;function w(e,t,r){var n=e[t];e[t]=e[r];e[r]=n}l.prototype.swap16=function e(){var t=this.length;if(t%2!==0){throw new RangeError("Buffer size must be a multiple of 16-bits")}for(var r=0;r<t;r+=2){w(this,r,r+1)}return this};l.prototype.swap32=function e(){var t=this.length;if(t%4!==0){throw new RangeError("Buffer size must be a multiple of 32-bits")}for(var r=0;r<t;r+=4){w(this,r,r+3);w(this,r+1,r+2)}return this};l.prototype.swap64=function e(){var t=this.length;if(t%8!==0){throw new RangeError("Buffer size must be a multiple of 64-bits")}for(var r=0;r<t;r+=8){w(this,r,r+7);w(this,r+1,r+6);w(this,r+2,r+5);w(this,r+3,r+4)}return this};l.prototype.toString=function e(){var t=this.length|0;if(t===0)return"";if(arguments.length===0)return C(this,0,t);return _.apply(this,arguments)};l.prototype.equals=function e(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(this===t)return true;return l.compare(this,t)===0};l.prototype.inspect=function e(){var r="";var n=t.INSPECT_MAX_BYTES;if(this.length>0){r=this.toString("hex",0,n).match(/.{2}/g).join(" ");if(this.length>n)r+=" ... "}return"<Buffer "+r+">"};l.prototype.compare=function e(t,r,n,a,i){if(!l.isBuffer(t)){throw new TypeError("Argument must be a Buffer")}if(r===undefined){r=0}if(n===undefined){n=t?t.length:0}if(a===undefined){a=0}if(i===undefined){i=this.length}if(r<0||n>t.length||a<0||i>this.length){throw new RangeError("out of range index")}if(a>=i&&r>=n){return 0}if(a>=i){return-1}if(r>=n){return 1}r>>>=0;n>>>=0;a>>>=0;i>>>=0;if(this===t)return 0;var o=i-a;var s=n-r;var u=Math.min(o,s);var c=this.slice(a,i);var f=t.slice(r,n);for(var d=0;d<u;++d){if(c[d]!==f[d]){o=c[d];s=f[d];break}}if(o<s)return-1;if(s<o)return 1;return 0};function E(e,t,r,n,a){if(e.length===0)return-1;if(typeof r==="string"){n=r;r=0}else if(r>2147483647){r=2147483647}else if(r<-2147483648){r=-2147483648}r=+r;if(isNaN(r)){r=a?0:e.length-1}if(r<0)r=e.length+r;if(r>=e.length){if(a)return-1;else r=e.length-1}else if(r<0){if(a)r=0;else return-1}if(typeof t==="string"){t=l.from(t,n)}if(l.isBuffer(t)){if(t.length===0){return-1}return x(e,t,r,n,a)}else if(typeof t==="number"){t=t&255;if(l.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==="function"){if(a){return Uint8Array.prototype.indexOf.call(e,t,r)}else{return Uint8Array.prototype.lastIndexOf.call(e,t,r)}}return x(e,[t],r,n,a)}throw new TypeError("val must be string, number or Buffer")}function x(e,t,r,n,a){var i=1;var o=e.length;var s=t.length;if(n!==undefined){n=String(n).toLowerCase();if(n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le"){if(e.length<2||t.length<2){return-1}i=2;o/=2;s/=2;r/=2}}function u(e,t){if(i===1){return e[t]}else{return e.readUInt16BE(t*i)}}var l;if(a){var c=-1;for(l=r;l<o;l++){if(u(e,l)===u(t,c===-1?0:l-c)){if(c===-1)c=l;if(l-c+1===s)return c*i}else{if(c!==-1)l-=l-c;c=-1}}}else{if(r+s>o)r=o-s;for(l=r;l>=0;l--){var f=true;for(var d=0;d<s;d++){if(u(e,l+d)!==u(t,d)){f=false;break}}if(f)return l}}return-1}l.prototype.includes=function e(t,r,n){return this.indexOf(t,r,n)!==-1};l.prototype.indexOf=function e(t,r,n){return E(this,t,r,n,true)};l.prototype.lastIndexOf=function e(t,r,n){return E(this,t,r,n,false)};function k(e,t,r,n){r=Number(r)||0;var a=e.length-r;if(!n){n=a}else{n=Number(n);if(n>a){n=a}}var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");if(n>i/2){n=i/2}for(var o=0;o<n;++o){var s=parseInt(t.substr(o*2,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function S(e,t,r,n){return ee(J(t,e.length-r),e,r,n)}function O(e,t,r,n){return ee(Z(t),e,r,n)}function M(e,t,r,n){return O(e,t,r,n)}function D(e,t,r,n){return ee($(t),e,r,n)}function T(e,t,r,n){return ee(X(t,e.length-r),e,r,n)}l.prototype.write=function e(t,r,n,a){if(r===undefined){a="utf8";n=this.length;r=0}else if(n===undefined&&typeof r==="string"){a=r;n=this.length;r=0}else if(isFinite(r)){r=r|0;if(isFinite(n)){n=n|0;if(a===undefined)a="utf8"}else{a=n;n=undefined}}else{throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")}var i=this.length-r;if(n===undefined||n>i)n=i;if(t.length>0&&(n<0||r<0)||r>this.length){throw new RangeError("Attempt to write outside buffer bounds")}if(!a)a="utf8";var o=false;for(;;){switch(a){case"hex":return k(this,t,r,n);case"utf8":case"utf-8":return S(this,t,r,n);case"ascii":return O(this,t,r,n);case"latin1":case"binary":return M(this,t,r,n);case"base64":return D(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase();o=true}}};l.prototype.toJSON=function e(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(e,t,r){if(t===0&&r===e.length){return n.fromByteArray(e)}else{return n.fromByteArray(e.slice(t,r))}}function C(e,t,r){r=Math.min(e.length,r);var n=[];var a=t;while(a<r){var i=e[a];var o=null;var s=i>239?4:i>223?3:i>191?2:1;if(a+s<=r){var u,l,c,f;switch(s){case 1:if(i<128){o=i}break;case 2:u=e[a+1];if((u&192)===128){f=(i&31)<<6|u&63;if(f>127){o=f}}break;case 3:u=e[a+1];l=e[a+2];if((u&192)===128&&(l&192)===128){f=(i&15)<<12|(u&63)<<6|l&63;if(f>2047&&(f<55296||f>57343)){o=f}}break;case 4:u=e[a+1];l=e[a+2];c=e[a+3];if((u&192)===128&&(l&192)===128&&(c&192)===128){f=(i&15)<<18|(u&63)<<12|(l&63)<<6|c&63;if(f>65535&&f<1114112){o=f}}}}if(o===null){o=65533;s=1}else if(o>65535){o-=65536;n.push(o>>>10&1023|55296);o=56320|o&1023}n.push(o);a+=s}return N(n)}var j=4096;function N(e){var t=e.length;if(t<=j){return String.fromCharCode.apply(String,e)}var r="";var n=0;while(n<t){r+=String.fromCharCode.apply(String,e.slice(n,n+=j))}return r}function I(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a){n+=String.fromCharCode(e[a]&127)}return n}function P(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a){n+=String.fromCharCode(e[a])}return n}function R(e,t,r){var n=e.length;if(!t||t<0)t=0;if(!r||r<0||r>n)r=n;var a="";for(var i=t;i<r;++i){a+=Q(e[i])}return a}function F(e,t,r){var n=e.slice(t,r);var a="";for(var i=0;i<n.length;i+=2){a+=String.fromCharCode(n[i]+n[i+1]*256)}return a}l.prototype.slice=function e(t,r){var n=this.length;t=~~t;r=r===undefined?n:~~r;if(t<0){t+=n;if(t<0)t=0}else if(t>n){t=n}if(r<0){r+=n;if(r<0)r=0}else if(r>n){r=n}if(r<t)r=t;var a;if(l.TYPED_ARRAY_SUPPORT){a=this.subarray(t,r);a.__proto__=l.prototype}else{var i=r-t;a=new l(i,undefined);for(var o=0;o<i;++o){a[o]=this[o+t]}}return a};function Y(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUIntLE=function e(t,r,n){t=t|0;r=r|0;if(!n)Y(t,r,this.length);var a=this[t];var i=1;var o=0;while(++o<r&&(i*=256)){a+=this[t+o]*i}return a};l.prototype.readUIntBE=function e(t,r,n){t=t|0;r=r|0;if(!n){Y(t,r,this.length)}var a=this[t+--r];var i=1;while(r>0&&(i*=256)){a+=this[t+--r]*i}return a};l.prototype.readUInt8=function e(t,r){if(!r)Y(t,1,this.length);return this[t]};l.prototype.readUInt16LE=function e(t,r){if(!r)Y(t,2,this.length);return this[t]|this[t+1]<<8};l.prototype.readUInt16BE=function e(t,r){if(!r)Y(t,2,this.length);return this[t]<<8|this[t+1]};l.prototype.readUInt32LE=function e(t,r){if(!r)Y(t,4,this.length);return(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};l.prototype.readUInt32BE=function e(t,r){if(!r)Y(t,4,this.length);return this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};l.prototype.readIntLE=function e(t,r,n){t=t|0;r=r|0;if(!n)Y(t,r,this.length);var a=this[t];var i=1;var o=0;while(++o<r&&(i*=256)){a+=this[t+o]*i}i*=128;if(a>=i)a-=Math.pow(2,8*r);return a};l.prototype.readIntBE=function e(t,r,n){t=t|0;r=r|0;if(!n)Y(t,r,this.length);var a=r;var i=1;var o=this[t+--a];while(a>0&&(i*=256)){o+=this[t+--a]*i}i*=128;if(o>=i)o-=Math.pow(2,8*r);return o};l.prototype.readInt8=function e(t,r){if(!r)Y(t,1,this.length);if(!(this[t]&128))return this[t];return(255-this[t]+1)*-1};l.prototype.readInt16LE=function e(t,r){if(!r)Y(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function e(t,r){if(!r)Y(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function e(t,r){if(!r)Y(t,4,this.length);return this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};l.prototype.readInt32BE=function e(t,r){if(!r)Y(t,4,this.length);return this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};l.prototype.readFloatLE=function e(t,r){if(!r)Y(t,4,this.length);return a.read(this,t,true,23,4)};l.prototype.readFloatBE=function e(t,r){if(!r)Y(t,4,this.length);return a.read(this,t,false,23,4)};l.prototype.readDoubleLE=function e(t,r){if(!r)Y(t,8,this.length);return a.read(this,t,true,52,8)};l.prototype.readDoubleBE=function e(t,r){if(!r)Y(t,8,this.length);return a.read(this,t,false,52,8)};function B(e,t,r,n,a,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}l.prototype.writeUIntLE=function e(t,r,n,a){t=+t;r=r|0;n=n|0;if(!a){var i=Math.pow(2,8*n)-1;B(this,t,r,n,i,0)}var o=1;var s=0;this[r]=t&255;while(++s<n&&(o*=256)){this[r+s]=t/o&255}return r+n};l.prototype.writeUIntBE=function e(t,r,n,a){t=+t;r=r|0;n=n|0;if(!a){var i=Math.pow(2,8*n)-1;B(this,t,r,n,i,0)}var o=n-1;var s=1;this[r+o]=t&255;while(--o>=0&&(s*=256)){this[r+o]=t/s&255}return r+n};l.prototype.writeUInt8=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,1,255,0);if(!l.TYPED_ARRAY_SUPPORT)t=Math.floor(t);this[r]=t&255;return r+1};function H(e,t,r,n){if(t<0)t=65535+t+1;for(var a=0,i=Math.min(e.length-r,2);a<i;++a){e[r+a]=(t&255<<8*(n?a:1-a))>>>(n?a:1-a)*8}}l.prototype.writeUInt16LE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,2,65535,0);if(l.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8}else{H(this,t,r,true)}return r+2};l.prototype.writeUInt16BE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,2,65535,0);if(l.TYPED_ARRAY_SUPPORT){this[r]=t>>>8;this[r+1]=t&255}else{H(this,t,r,false)}return r+2};function U(e,t,r,n){if(t<0)t=4294967295+t+1;for(var a=0,i=Math.min(e.length-r,4);a<i;++a){e[r+a]=t>>>(n?a:3-a)*8&255}}l.prototype.writeUInt32LE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,4,4294967295,0);if(l.TYPED_ARRAY_SUPPORT){this[r+3]=t>>>24;this[r+2]=t>>>16;this[r+1]=t>>>8;this[r]=t&255}else{U(this,t,r,true)}return r+4};l.prototype.writeUInt32BE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,4,4294967295,0);if(l.TYPED_ARRAY_SUPPORT){this[r]=t>>>24;this[r+1]=t>>>16;this[r+2]=t>>>8;this[r+3]=t&255}else{U(this,t,r,false)}return r+4};l.prototype.writeIntLE=function e(t,r,n,a){t=+t;r=r|0;if(!a){var i=Math.pow(2,8*n-1);B(this,t,r,n,i-1,-i)}var o=0;var s=1;var u=0;this[r]=t&255;while(++o<n&&(s*=256)){if(t<0&&u===0&&this[r+o-1]!==0){u=1}this[r+o]=(t/s>>0)-u&255}return r+n};l.prototype.writeIntBE=function e(t,r,n,a){t=+t;r=r|0;if(!a){var i=Math.pow(2,8*n-1);B(this,t,r,n,i-1,-i)}var o=n-1;var s=1;var u=0;this[r+o]=t&255;while(--o>=0&&(s*=256)){if(t<0&&u===0&&this[r+o+1]!==0){u=1}this[r+o]=(t/s>>0)-u&255}return r+n};l.prototype.writeInt8=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,1,127,-128);if(!l.TYPED_ARRAY_SUPPORT)t=Math.floor(t);if(t<0)t=255+t+1;this[r]=t&255;return r+1};l.prototype.writeInt16LE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,2,32767,-32768);if(l.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8}else{H(this,t,r,true)}return r+2};l.prototype.writeInt16BE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,2,32767,-32768);if(l.TYPED_ARRAY_SUPPORT){this[r]=t>>>8;this[r+1]=t&255}else{H(this,t,r,false)}return r+2};l.prototype.writeInt32LE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,4,2147483647,-2147483648);if(l.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8;this[r+2]=t>>>16;this[r+3]=t>>>24}else{U(this,t,r,true)}return r+4};l.prototype.writeInt32BE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,4,2147483647,-2147483648);if(t<0)t=4294967295+t+1;if(l.TYPED_ARRAY_SUPPORT){this[r]=t>>>24;this[r+1]=t>>>16;this[r+2]=t>>>8;this[r+3]=t&255}else{U(this,t,r,false)}return r+4};function z(e,t,r,n,a,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function q(e,t,r,n,i){if(!i){z(e,t,r,4,34028234663852886e22,-34028234663852886e22)}a.write(e,t,r,n,23,4);return r+4}l.prototype.writeFloatLE=function e(t,r,n){return q(this,t,r,true,n)};l.prototype.writeFloatBE=function e(t,r,n){return q(this,t,r,false,n)};function V(e,t,r,n,i){if(!i){z(e,t,r,8,17976931348623157e292,-17976931348623157e292)}a.write(e,t,r,n,52,8);return r+8}l.prototype.writeDoubleLE=function e(t,r,n){return V(this,t,r,true,n)};l.prototype.writeDoubleBE=function e(t,r,n){return V(this,t,r,false,n)};l.prototype.copy=function e(t,r,n,a){if(!n)n=0;if(!a&&a!==0)a=this.length;if(r>=t.length)r=t.length;if(!r)r=0;if(a>0&&a<n)a=n;if(a===n)return 0;if(t.length===0||this.length===0)return 0;if(r<0){throw new RangeError("targetStart out of bounds")}if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");if(a>this.length)a=this.length;if(t.length-r<a-n){a=t.length-r+n}var i=a-n;var o;if(this===t&&n<r&&r<a){for(o=i-1;o>=0;--o){t[o+r]=this[o+n]}}else if(i<1e3||!l.TYPED_ARRAY_SUPPORT){for(o=0;o<i;++o){t[o+r]=this[o+n]}}else{Uint8Array.prototype.set.call(t,this.subarray(n,n+i),r)}return i};l.prototype.fill=function e(t,r,n,a){if(typeof t==="string"){if(typeof r==="string"){a=r;r=0;n=this.length}else if(typeof n==="string"){a=n;n=this.length}if(t.length===1){var i=t.charCodeAt(0);if(i<256){t=i}}if(a!==undefined&&typeof a!=="string"){throw new TypeError("encoding must be a string")}if(typeof a==="string"&&!l.isEncoding(a)){throw new TypeError("Unknown encoding: "+a)}}else if(typeof t==="number"){t=t&255}if(r<0||this.length<r||this.length<n){throw new RangeError("Out of range index")}if(n<=r){return this}r=r>>>0;n=n===undefined?this.length:n>>>0;if(!t)t=0;var o;if(typeof t==="number"){for(o=r;o<n;++o){this[o]=t}}else{var s=l.isBuffer(t)?t:J(new l(t,a).toString());var u=s.length;for(o=0;o<n-r;++o){this[o+r]=s[o%u]}}return this};var W=/[^+\/0-9A-Za-z-_]/g;function K(e){e=G(e).replace(W,"");if(e.length<2)return"";while(e.length%4!==0){e=e+"="}return e}function G(e){if(e.trim)return e.trim();return e.replace(/^\s+|\s+$/g,"")}function Q(e){if(e<16)return"0"+e.toString(16);return e.toString(16)}function J(e,t){t=t||Infinity;var r;var n=e.length;var a=null;var i=[];for(var o=0;o<n;++o){r=e.charCodeAt(o);if(r>55295&&r<57344){if(!a){if(r>56319){if((t-=3)>-1)i.push(239,191,189);continue}else if(o+1===n){if((t-=3)>-1)i.push(239,191,189);continue}a=r;continue}if(r<56320){if((t-=3)>-1)i.push(239,191,189);a=r;continue}r=(a-55296<<10|r-56320)+65536}else if(a){if((t-=3)>-1)i.push(239,191,189)}a=null;if(r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else{throw new Error("Invalid code point")}}return i}function Z(e){var t=[];for(var r=0;r<e.length;++r){t.push(e.charCodeAt(r)&255)}return t}function X(e,t){var r,n,a;var i=[];for(var o=0;o<e.length;++o){if((t-=2)<0)break;r=e.charCodeAt(o);n=r>>8;a=r%256;i.push(a);i.push(n)}return i}function $(e){return n.toByteArray(K(e))}function ee(e,t,r,n){for(var a=0;a<n;++a){if(a+r>=t.length||a>=e.length)break;t[a+r]=e[a]}return a}function te(e){return e!==e}}).call(this,r(25))},function(e,t,r){t=e.exports=r(387);t.Stream=t;t.Readable=t;t.Writable=r(259);t.Duplex=r(101);t.Transform=r(392);t.PassThrough=r(766)},function(e,t,r){"use strict";(function(t,n,a){var i=r(175);e.exports=_;function o(e,t,r){this.chunk=e;this.encoding=t;this.callback=r;this.next=null}function s(e){var t=this;this.next=null;this.entry=null;this.finish=function(){F(t,e)}}var u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:i.nextTick;var l;_.WritableState=b;var c=Object.create(r(152));c.inherits=r(125);var f={deprecate:r(765)};var d=r(388);var p=r(176).Buffer;var h=a.Uint8Array||function(){};function v(e){return p.from(e)}function m(e){return p.isBuffer(e)||e instanceof h}var y=r(389);c.inherits(_,d);function g(){}function b(e,t){l=l||r(101);e=e||{};var n=t instanceof l;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.writableObjectMode;var a=e.highWaterMark;var i=e.writableHighWaterMark;var o=this.objectMode?16:16*1024;if(a||a===0)this.highWaterMark=a;else if(n&&(i||i===0))this.highWaterMark=i;else this.highWaterMark=o;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var u=e.decodeStrings===false;this.decodeStrings=!u;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){D(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new s(this)}b.prototype.getBuffer=function e(){var t=this.bufferedRequest;var r=[];while(t){r.push(t);t=t.next}return r};(function(){try{Object.defineProperty(b.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var A;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){A=Function.prototype[Symbol.hasInstance];Object.defineProperty(_,Symbol.hasInstance,{value:function(e){if(A.call(this,e))return true;if(this!==_)return false;return e&&e._writableState instanceof b}})}else{A=function(e){return e instanceof this}}function _(e){l=l||r(101);if(!A.call(_,this)&&!(this instanceof l)){return new _(e)}this._writableState=new b(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}d.call(this)}_.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function w(e,t){var r=new Error("write after end");e.emit("error",r);i.nextTick(t,r)}function E(e,t,r,n){var a=true;var o=false;if(r===null){o=new TypeError("May not write null values to stream")}else if(typeof r!=="string"&&r!==undefined&&!t.objectMode){o=new TypeError("Invalid non-string/buffer chunk")}if(o){e.emit("error",o);i.nextTick(n,o);a=false}return a}_.prototype.write=function(e,t,r){var n=this._writableState;var a=false;var i=!n.objectMode&&m(e);if(i&&!p.isBuffer(e)){e=v(e)}if(typeof t==="function"){r=t;t=null}if(i)t="buffer";else if(!t)t=n.defaultEncoding;if(typeof r!=="function")r=g;if(n.ended)w(this,r);else if(i||E(this,n,e,r)){n.pendingcb++;a=k(this,n,i,e,t,r)}return a};_.prototype.cork=function(){var e=this._writableState;e.corked++};_.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest)C(this,e)}};_.prototype.setDefaultEncoding=function e(t){if(typeof t==="string")t=t.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);this._writableState.defaultEncoding=t;return this};function x(e,t,r){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=p.from(t,r)}return t}Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function k(e,t,r,n,a,i){if(!r){var o=x(t,n,a);if(n!==o){r=true;a="buffer";n=o}}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(!u)t.needDrain=true;if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:a,isBuf:r,callback:i,next:null};if(l){l.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{S(e,t,false,s,n,a,i)}return u}function S(e,t,r,n,a,i,o){t.writelen=n;t.writecb=o;t.writing=true;t.sync=true;if(r)e._writev(a,t.onwrite);else e._write(a,i,t.onwrite);t.sync=false}function O(e,t,r,n,a){--t.pendingcb;if(r){i.nextTick(a,n);i.nextTick(P,e,t);e._writableState.errorEmitted=true;e.emit("error",n)}else{a(n);e._writableState.errorEmitted=true;e.emit("error",n);P(e,t)}}function M(e){e.writing=false;e.writecb=null;e.length-=e.writelen;e.writelen=0}function D(e,t){var r=e._writableState;var n=r.sync;var a=r.writecb;M(r);if(t)O(e,r,n,t,a);else{var i=j(r);if(!i&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){C(e,r)}if(n){u(T,e,r,i,a)}else{T(e,r,i,a)}}}function T(e,t,r,n){if(!r)L(e,t);t.pendingcb--;n();P(e,t)}function L(e,t){if(t.length===0&&t.needDrain){t.needDrain=false;e.emit("drain")}}function C(e,t){t.bufferProcessing=true;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount;var a=new Array(n);var i=t.corkedRequestsFree;i.entry=r;var o=0;var u=true;while(r){a[o]=r;if(!r.isBuf)u=false;r=r.next;o+=1}a.allBuffers=u;S(e,t,true,t.length,a,"",i.finish);t.pendingcb++;t.lastBufferedRequest=null;if(i.next){t.corkedRequestsFree=i.next;i.next=null}else{t.corkedRequestsFree=new s(t)}t.bufferedRequestCount=0}else{while(r){var l=r.chunk;var c=r.encoding;var f=r.callback;var d=t.objectMode?1:l.length;S(e,t,false,d,l,c,f);r=r.next;t.bufferedRequestCount--;if(t.writing){break}}if(r===null)t.lastBufferedRequest=null}t.bufferedRequest=r;t.bufferProcessing=false}_.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};_.prototype._writev=null;_.prototype.end=function(e,t,r){var n=this._writableState;if(typeof e==="function"){r=e;e=null;t=null}else if(typeof t==="function"){r=t;t=null}if(e!==null&&e!==undefined)this.write(e,t);if(n.corked){n.corked=1;this.uncork()}if(!n.ending&&!n.finished)R(this,n,r)};function j(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function N(e,t){e._final((function(r){t.pendingcb--;if(r){e.emit("error",r)}t.prefinished=true;e.emit("prefinish");P(e,t)}))}function I(e,t){if(!t.prefinished&&!t.finalCalled){if(typeof e._final==="function"){t.pendingcb++;t.finalCalled=true;i.nextTick(N,e,t)}else{t.prefinished=true;e.emit("prefinish")}}}function P(e,t){var r=j(t);if(r){I(e,t);if(t.pendingcb===0){t.finished=true;e.emit("finish")}}return r}function R(e,t,r){t.ending=true;P(e,t);if(r){if(t.finished)i.nextTick(r);else e.once("finish",r)}t.ended=true;e.writable=false}function F(e,t,r){var n=e.entry;e.entry=null;while(n){var a=n.callback;t.pendingcb--;a(r);n=n.next}if(t.corkedRequestsFree){t.corkedRequestsFree.next=e}else{t.corkedRequestsFree=e}}Object.defineProperty(_.prototype,"destroyed",{get:function(){if(this._writableState===undefined){return false}return this._writableState.destroyed},set:function(e){if(!this._writableState){return}this._writableState.destroyed=e}});_.prototype.destroy=y.destroy;_.prototype._undestroy=y.undestroy;_.prototype._destroy=function(e,t){this.end();t(e)}}).call(this,r(126),r(390).setImmediate,r(25))},function(e,t,r){"use strict";var n=r(176).Buffer;var a=n.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function i(e){if(!e)return"utf8";var t;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}}function o(e){var t=i(e);if(typeof t!=="string"&&(n.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}t.StringDecoder=s;function s(e){this.encoding=o(e);var t;switch(this.encoding){case"utf16le":this.text=h;this.end=v;t=4;break;case"utf8":this.fillLast=f;t=4;break;case"base64":this.text=m;this.end=y;t=3;break;default:this.write=g;this.end=b;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=n.allocUnsafe(t)}s.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r<e.length)return t?t+this.text(e,r):this.text(e,r);return t||""};s.prototype.end=p;s.prototype.text=d;s.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function u(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function l(e,t,r){var n=t.length-1;if(n<r)return 0;var a=u(t[n]);if(a>=0){if(a>0)e.lastNeed=a-1;return a}if(--n<r||a===-2)return 0;a=u(t[n]);if(a>=0){if(a>0)e.lastNeed=a-2;return a}if(--n<r||a===-2)return 0;a=u(t[n]);if(a>=0){if(a>0){if(a===2)a=0;else e.lastNeed=a-3}return a}return 0}function c(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function f(e){var t=this.lastTotal-this.lastNeed;var r=c(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function d(e,t){var r=l(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,n);return e.toString("utf8",t,n)}function p(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function h(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function v(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function m(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function y(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function g(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};var a=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n};Object.defineProperty(t,"__esModule",{value:true});var i=r(782);var o=r(177);var s=r(8);var u="eq";var l=0;var c=function(){var e=l.toString();l+=1;return e};t.buildAdvSearchQuery=function(e){var t=e.advanced,r=t.include,a=t.exclude;var i=r.query;var o=a.query;if(o){var s={not:[n({},o)]};if(!i){return s}return{and:[n({},i),s]}}if(i){return i}return null};t.buildSearchFacetString=function(e){var t=e.entryPoint,r=e.sort;var n={};if(t!=="All"){n.media=t}if(r){n.order=r}return JSON.stringify(n)};t.buildAdvSearchQueryString=function(e,r,n){if(r===void 0){r=0}if(n===void 0){n=true}var a=t.buildAdvSearchQuery(e);if(!a){return""}var i=JSON.stringify({query:a},(function(e,t){if(e==="id"){return undefined}if(e==="op"&&t===u){return undefined}return t}),r);return n?encodeURIComponent(i):i};t.getCustomListEditorFormData=function(e){var r=new window.FormData;var n=e.id,a=e.properties,i=e.entries,o=e.searchParams;if(n){r.append("id",n)}var s=a.current,u=s.name,l=s.collections,c=s.autoUpdate;r.append("name",u);r.append("collections",JSON.stringify(l));if(c){r.append("auto_update","true");r.append("auto_update_query",t.buildAdvSearchQueryString(o.current,0,false));r.append("auto_update_facets",t.buildSearchFacetString(o.current))}else{var f=i.baseline,d=i.current,p=i.removed;r.append("entries",JSON.stringify(d));var h=f.reduce((function(e,t){e[t.id]=t;return e}),{});var v=Object.keys(p).map((function(e){return h[e]}));r.append("deletedEntries",JSON.stringify(v))}return r};t.buildSearchUrl=function(e,r){var n=e.entryPoint,a=e.terms,i=e.sort;var o=[];if(n!=="All"){o.push("media="+encodeURIComponent(n))}if(i){o.push("order="+encodeURIComponent(i))}var s=t.buildAdvSearchQueryString(e);if(s){o.push("search_type=json");o.push("q="+s)}else{o.push("q="+encodeURIComponent(a))}return"/"+r+"/search?"+o.join("&")};t.getCustomListEditorSearchUrl=function(e,r){var n=e.searchParams;var a=n.current;var i=a.terms,o=a.advanced;if(i||o.include.query||o.exclude.query){return t.buildSearchUrl(a,r)}return null};var f=function(e){if(!e.id){e.id=c()}var t=e.and||e.or||e.not;if(t){t.forEach((function(e){return f(e)}))}};var d=function(e){var t=e.and||e.or||e.not;if(t){t.forEach((function(e){return d(e)}))}else{if(!e.op){e.op=u}}};t.parseAdvancedSearchQuery=function(e){var t;if(!e){return[null,null]}var r=(t=JSON.parse(e))===null||t===void 0?void 0:t.query;if(!r){return[null,null]}f(r);d(r);var n=r.and;if(n&&n.length===2){var a=n.find((function(e){return!e.not}));var i=n.find((function(e){return Array.isArray(e.not)}));if(a&&i){return[a,i.not[0]]}}var o=r.not;if(o){return[null,o[0]]}return[r,null]};var p=function(e){if(!e){return{}}return JSON.parse(e)||{}};var h={name:"",collections:[],autoUpdate:false};var v={entryPoint:"All",terms:"",sort:null,language:"all",advanced:{include:{query:null,selectedQueryId:null},exclude:{query:null,selectedQueryId:null}}};t.initialState={id:null,autoUpdateStatus:"",isAutoUpdateEnabled:false,isLoaded:false,isOwner:true,isShared:false,isSharePending:false,properties:{baseline:h,current:h},searchParams:{baseline:v,current:v},entries:{baseline:[],baselineTotalCount:0,added:{},removed:{},current:[],currentTotalCount:0},isValid:false,isModified:false,isSearchModified:false,error:null};var m=function(e){var t=e.properties,r=e.entries,n=e.searchParams;var a=t.current,i=a.name,o=a.collections,s=a.autoUpdate;var u=r.currentTotalCount;var l=n.current.advanced,c=l.include,f=l.exclude;return!!i&&(o.length>0||s&&(!!c.query||!!f.query)||!s&&u>0)};var y=function(e){var r=e.searchParams,n=r.baseline,a=r.current;var i=t.buildSearchUrl(n,"");var o=t.buildSearchUrl(a,"");return i!==o};var g=function(e){return i.default(e,(function(e){e.isSearchModified=y(e)}))};var b=function(e){var t=e.properties,r=e.entries;var n=r.added,a=r.removed;var i=t.baseline,o=t.current;return Object.keys(n).length>0||Object.keys(a).length>0||i.name!==o.name||i.autoUpdate!==o.autoUpdate||o.autoUpdate&&e.isSearchModified||i.collections.length!==o.collections.length||!i.collections.every((function(e){return o.collections.includes(e)}))};var A=function(e){return i.default(e,(function(e){e.isValid=m(e);e.isModified=b(e)}))};var _=function(e){return function(t,r){return A(e(t,r))}};var w=function(e,r,n){var a=null;var o=null;if(r&&e!==null){a=r.custom_lists.find((function(t){return t.id===e}));if(!a){o="Custom list not found for ID: "+e}}return i.default(n,(function(r){var n=r.isAutoUpdateEnabled;r.id=e;if(n){r.properties.baseline.autoUpdate=true;r.properties.current.autoUpdate=true}if(a){r.isLoaded=true;r.isOwner=a.is_owner;r.isShared=a.is_shared;r.autoUpdateStatus=n&&!!a.auto_update?a.auto_update_status:"";var i={name:a.name||"",collections:a.collections.map((function(e){return e.id})),autoUpdate:n&&!!a.auto_update};r.properties.baseline=i;r.properties.current=i;r.entries.baselineTotalCount=a.entry_count;var s=t.parseAdvancedSearchQuery(a.auto_update_query),u=s[0],l=s[1];r.searchParams.baseline.advanced.include.query=u;r.searchParams.baseline.advanced.exclude.query=l;r.searchParams.current.advanced.include.query=u;r.searchParams.current.advanced.exclude.query=l;var c=p(a.auto_update_facets),f=c.media,d=c.order;if(f){r.searchParams.baseline.entryPoint=f;r.searchParams.current.entryPoint=f}if(d){r.searchParams.baseline.sort=d;r.searchParams.current.sort=d}}r.error=o}))};var E=function(e){var t=e.baseline,r=e.baselineTotalCount,n=e.added,a=e.removed;var i=Object.values(n);i.reverse();e.current=i.concat(t.filter((function(e){return!a[e.id]})));var o=i.length;var s=Object.keys(a).length;var u=e.current.length;e.currentTotalCount=Math.max(r+o-s,u)};var x=function(e,r){var n=r.id,a=r.data;var o=i.default(t.initialState,(function(t){t.isAutoUpdateEnabled=e.isAutoUpdateEnabled}));return w(n?parseInt(n,10):null,a,o)};var k=function(e,t){if(t.isAfterShare){return e}var r=e.id;var n=t.data;return w(r,n,e)};var S=_((function(e,t){return i.default(e,(function(e){var r=e.entries;r.baseline=t.data.books;E(r)}))}));var O=_((function(e,t){return i.default(e,(function(e){var r=e.entries;r.baseline=r.baseline.concat(t.data.books);E(r)}))}));var M=_((function(e,t){var r=t.name,n=t.value;return i.default(e,(function(e){e.properties.current[r]=n}))}));var D=_((function(e,t){var r=t.id;return i.default(e,(function(e){var t=e.properties.current.collections;var n=t.indexOf(r);if(n<0){t.push(r)}else{t.splice(n,1)}}))}));var T=_((function(e,t){var r=t.name,n=t.value;return g(i.default(e,(function(e){e.searchParams.current[r]=n})))}));var L=function(e,t,r,i){var o,s,u;if(e.and||e.or){var l=e.and?"and":"or";var f=e[l];if(e.id===t){return o={id:e.id},o[l]=a(f,[r]),o}var d=l==="and"?"or":"and";for(var p=0;p<f.length;p++){var h=f[p];var v=L(h,t,r,d);if(v!==h){var m=a(f);m[p]=v;return s={id:e.id},s[l]=m,s}}return e}if(e.id===t){return u={id:e.id},u[i]=[n(n({},e),{id:c()}),r],u}return e};var C=function(e,t){var r,i;if(e.id===t){return null}if(e.and||e.or){var o=e.and?"and":"or";var s=e[o];var u=s.filter((function(e){return e.id!==t}));if(u.length!==s.length){if(u.length===1){return n({},u[0])}return r={id:e.id},r[o]=u,r}for(var l=0;l<s.length;l++){var c=s[l];var f=C(c,t);if(f!==c){var d=a(s);d[l]=f;return i={id:e.id},i[o]=d,i}}}return e};var j=function(e,t){if(e.id===t){return[e.id]}if(e.and||e.or){var r=e.and?"and":"or";var n=e[r];for(var i=0;i<n.length;i++){var o=n[i];var s=j(o,t);if(s){return a([e.id],s)}}}return null};var N=function(e,t){if(e.id===t){return e}if(e.and||e.or){var r=e.and?"and":"or";var n=e[r];var a=n.find((function(e){return e.id===t}));if(a){return a}for(var i=0;i<n.length;i++){var o=n[i];var s=N(o,t);if(s){return s}}}return null};var I=function(e){return e==="include"?"and":"or"};var P=_((function(e,t){return g(i.default(e,(function(e){var r=t.builderName,a=t.query;var i=e.searchParams.current.advanced[r];var o=i.query,s=i.selectedQueryId;var u=n(n({},a),{id:c()});if(!o){i.query=u;i.selectedQueryId=u.id}else{i.query=L(o,s||o.id,u,I(r))}})))}));var R=_((function(e,t){return g(i.default(e,(function(e){var r=t.builderName,n=t.id,a=t.bool;var i=e.searchParams.current.advanced[r];var o=i.query;var s=N(o,n);if(s&&(s.and||s.or)&&!s[a]){var u=a==="and"?"or":"and";var l=s[u];delete s[u];s[a]=l}})))}));var F=_((function(e,t){return g(i.default(e,(function(e){var r=t.builderName,a=t.id,i=t.targetId;var o=e.searchParams.current.advanced[r];var s=o.query;var u=N(s,a);var l=n(n({},u),{id:c()});var f=L(s,i,l,I(r));var d=C(f,a);o.query=d;o.selectedQueryId=i})))}));var Y=_((function(e,t){return g(i.default(e,(function(e){var r=t.builderName,n=t.id;var a=e.searchParams.current.advanced[r];var i=a.query;var o=C(i,n);if(o!==i){a.query=o;var s=j(i,n);s.pop();s.reverse();var u=s.find((function(e){return N(o,e)}));a.selectedQueryId=u}})))}));var B=function(e,t){return i.default(e,(function(e){var r=t.builderName,n=t.id;var a=e.searchParams.current.advanced[r];a.selectedQueryId=n}))};var H=function(e){return{id:e.id,title:e.title,authors:e.authors,url:e.url,medium:o.getMedium(e),language:e.language||""}};var U=_((function(e,t){var r=t.id,n=t.data;return i.default(e,(function(e){var t=e.entries;var a=t.baseline,i=t.added,o=t.removed;var s=a.find((function(e){return e.id===r}));if(!s){var u=n.books.find((function(e){return e.id===r}));var l=!!i[r];if(u&&!l){i[r]=H(u)}}delete o[r];E(t)}))}));var z=_((function(e,t){var r=t.data.books;r.reverse();return i.default(e,(function(e){var t=e.entries;var n=t.baseline,a=t.added,i=t.removed;var o=n.reduce((function(e,t){e[t.id]=true;return e}),{});r.filter((function(e){return!o[e.id]&&!a[e.id]})).map((function(e){return H(e)})).forEach((function(e){return a[e.id]=e}));r.forEach((function(e){return delete i[e.id]}));E(t)}))}));var q=_((function(e,t){var r=t.id;return i.default(e,(function(e){var t=e.entries;var n=t.added,a=t.removed;if(n[r]){delete n[r]}else{a[r]=true}E(t)}))}));var V=_((function(e){return i.default(e,(function(e){var t=e.entries;var r=t.baseline,n=t.removed;r.forEach((function(e){n[e.id]=true}));t.added={};E(t)}))}));var W=_((function(e){return i.default(e,(function(e){var t=e.properties,r=e.searchParams,n=e.entries;t.current=t.baseline;r.current=r.baseline;n.added={};n.removed={};E(n)}))}));var K=function(e,t){var r=t.listId;var n=e.id;if(parseInt(r,10)===n){return i.default(e,(function(e){e.isSharePending=true}))}return e};var G=function(e,t){var r;var n=t.data,a=t.listId;var o=e.id;if(parseInt(a,10)===o){var s=(r=n)===null||r===void 0?void 0:r.custom_lists.find((function(e){return e.id===o}));return i.default(e,(function(e){e.isSharePending=false;if(s){e.isShared=s.is_shared}}))}return e};var Q=function(e,t){var r=t.error,n=t.listId;var a=e.id;if(parseInt(n,10)===a){return i.default(e,(function(e){e.isSharePending=false;e.error=r.message}))}return e};var J=function(e,t){var r=t.value,n=r===void 0?{}:r;if("enableAutoList"in n){return i.default(e,(function(e){e.isAutoUpdateEnabled=!!n.enableAutoList}))}return e};var Z=function(e,t){var r=t.name,n=t.value;if(r==="enableAutoList"){return i.default(e,(function(e){e.isAutoUpdateEnabled=!!n}))}return e};t.default=function(e,r){if(e===void 0){e=t.initialState}switch(r.type){case s.default.OPEN_CUSTOM_LIST_EDITOR:return x(e,r);case s.default.CUSTOM_LISTS+"_"+s.default.LOAD:return k(e,r);case s.default.CUSTOM_LIST_DETAILS+"_"+s.default.LOAD:return S(e,r);case s.default.CUSTOM_LIST_DETAILS_MORE+"_"+s.default.LOAD:return O(e,r);case s.default.UPDATE_CUSTOM_LIST_EDITOR_PROPERTY:return M(e,r);case s.default.TOGGLE_CUSTOM_LIST_EDITOR_COLLECTION:return D(e,r);case s.default.UPDATE_CUSTOM_LIST_EDITOR_SEARCH_PARAM:return T(e,r);case s.default.ADD_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return P(e,r);case s.default.UPDATE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY_BOOLEAN:return R(e,r);case s.default.MOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return F(e,r);case s.default.REMOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return Y(e,r);case s.default.SELECT_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return B(e,r);case s.default.ADD_CUSTOM_LIST_EDITOR_ENTRY:return U(e,r);case s.default.ADD_ALL_CUSTOM_LIST_EDITOR_ENTRIES:return z(e,r);case s.default.DELETE_CUSTOM_LIST_EDITOR_ENTRY:return q(e,r);case s.default.DELETE_ALL_CUSTOM_LIST_EDITOR_ENTRIES:return V(e,r);case s.default.RESET_CUSTOM_LIST_EDITOR:return W(e,r);case s.default.CUSTOM_LIST_SHARE+"_"+s.default.REQUEST:return K(e,r);case s.default.CUSTOM_LIST_SHARE+"_"+s.default.SUCCESS:return G(e,r);case s.default.CUSTOM_LIST_SHARE+"_"+s.default.FAILURE:return Q(e,r);case s.default.SET_FEATURE_FLAGS:return J(e,r);case s.default.UPDATE_FEATURE_FLAG:return Z(e,r);default:return e}}},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:true});var a=r(8);var i=function(e,t){var r=JSON.parse(JSON.stringify(e.data));var n=Object.keys(r)[0];if(!r[n].length){return{}}r[n].forEach((function(e){if(e.id===t.data.self_test_results.id){e.self_test_results=t.data.self_test_results.self_test_results}}));return Object.assign({},e,{data:r,isFetching:false,isLoaded:true})};t.extraActions=(n={},n[a.default.GET_SELF_TESTS+"_"+a.default.LOAD]=i,n)},function(e,t,r){"use strict";r.r(t);function n(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(a){if(typeof a==="function"){return a(r,n,e)}return t(a)}}}}var a=n();a.withExtraArgument=n;t["default"]=a},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(65);var o=r(534);var s=r(839);var u=r(840);var l=r(177);var c=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.borrow=r.borrow.bind(r);return r}t.prototype.render=function(){var e;var t=this.props.book;var r=t&&t.summary&&t.summary.replace(/<\/?[^>]+(>|$)/g," ")||"";var n=l.getMedium(t);var s=n?"show-media":"";var u=!!(t.authors&&t.authors.length);var c=!!(t.contributors&&t.contributors.length);var f=t.contributors&&t.contributors.length?t.contributors.join(", "):"";var d=u?(e=t.authors)===null||e===void 0?void 0:e.join(", "):f;return a.createElement("div",{className:"book "+s,lang:t.language},a.createElement(i.default,{collectionUrl:this.props.collectionUrl,bookUrl:t.url||t.id,title:t.title},a.createElement(o.default,{book:t}),a.createElement("div",{className:"compact-info "+s},l.getMediumSVG(n,false),a.createElement("div",{className:"empty"}),a.createElement("div",{className:"item-details"},a.createElement("div",{className:"title"},t.title),t.series&&t.series.name&&a.createElement("div",{className:"series"},t.series.name),(u||c)&&a.createElement("div",{className:"authors"},a.createElement("span",null,"By ",d))))),a.createElement("div",{className:"expanded-info"},a.createElement("div",{className:"header"},a.createElement("div",null,a.createElement(i.default,{collectionUrl:this.props.collectionUrl,bookUrl:t.url||t.id,title:t.title},a.createElement("div",{className:"title"},t.title)),t.series&&t.series.name&&a.createElement("div",{className:"series"},t.series.name),(u||c)&&a.createElement("div",{className:"authors"},a.createElement("span",null,"By ",d))),a.createElement("div",{className:"circulation-links"},this.circulationLinks())),a.createElement("div",{className:"details"},a.createElement("div",{className:"fields",lang:"en"},n&&a.createElement("span",null,l.getMediumSVG(n)),this.fields().map((function(e,t){return e.value?a.createElement("div",{className:e.name.toLowerCase().replace(" ","-"),key:e.name+"-"+t},e.name,": ",e.value):null}))),a.createElement("div",{className:"summary",lang:t.language},a.createElement("span",{dangerouslySetInnerHTML:{__html:r}}),a.createElement(i.default,{collectionUrl:this.props.collectionUrl,bookUrl:t.url||t.id,title:t.title},"… More")))))};t.prototype.fields=function(){return this.props.book?[{name:"Publisher",value:this.props.book.publisher},{name:"Published",value:this.props.book.published},{name:"Categories",value:this.props.book.categories?this.props.book.categories.join(", "):null}]:[]};t.prototype.circulationLinks=function(){var e=this;var t,r,n;var i=[];if(l.bookIsOpenAccess(this.props.book)){if(this.props.epubReaderUrlTemplate){var o=0;for(var c=0,f=(t=this.props.book.openAccessLinks)!==null&&t!==void 0?t:[];c<f.length;c++){var d=f[c];if(d.type==="application/epub+zip"){i.push(a.createElement("span",{key:d.url+"-"+o},a.createElement("a",{className:"btn btn-default read-button",href:this.props.epubReaderUrlTemplate(d.url),target:"_blank"},"Read Online")));o++}}}(r=this.props.book.openAccessLinks)===null||r===void 0?void 0:r.forEach((function(t,r){i.push(a.createElement(u.default,{key:t.url+"-"+r,isPlainLink:true,link:t,title:e.props.book.title}))}))}else if(l.bookIsBorrowed(this.props.book)){var p="text/html;profile=http://librarysimplified.org/terms/profiles/streaming-media";var h=[];var v=[];for(var m=0,y=(n=this.props.book.fulfillmentLinks)!==null&&n!==void 0?n:[];m<y.length;m++){var d=y[m];if(d.type===p||d.indirectType===p){h.push(d)}else{v.push(d)}}h.forEach((function(t,r){var n=t.type===p;i.push(a.createElement(u.default,{key:t.url+"-"+r,link:t,title:e.props.book.title,isPlainLink:n||!e.props.isSignedIn}))}));i.push(a.createElement(s.default,{key:this.props.book.borrowUrl,className:"btn btn-default borrowed-button",disabled:true,borrow:this.borrow},"Borrowed"));v.forEach((function(t,r){i.push(a.createElement(u.default,{key:t.url+"-"+r,link:t,title:e.props.book.title,isPlainLink:!e.props.isSignedIn}))}))}if(l.bookIsReserved(this.props.book)){i.push(a.createElement("button",{key:"onhold",className:"btn btn-default disabled"},"Reserved"))}else if(!l.bookIsBorrowed(this.props.book)&&this.props.book.borrowUrl){var g=!l.bookIsReady(this.props.book)&&this.props.book.copies&&this.props.book.copies.available===0?"Reserve":"Borrow";i.push(a.createElement(s.default,{key:this.props.book.borrowUrl,borrow:this.borrow},g))}return i};t.prototype.borrow=function(){return this.props.updateBook(this.props.book.borrowUrl)};return t}(a.Component);t.default=c},function(e,t,r){"use strict";function n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))}n.forEach((function(t){a(e,t,r[t])}))}return e}function a(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function i(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var o=r(153);var s=r(50);var u=r(102);var l=r(51);var c=r(181);var f=r(182);var d=r(67);var p=r(545);var h=r(82);var v=r(11);var m=r(547);var y=v.List,g=v.Record,b=v.Repeat,A=v.Map,_=v.OrderedMap;var w={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null};var E=g(w);var x=h("draft_tree_data_support")?l:u;var k=function(e){i(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.getEntityMap=function e(){return c};r.getBlockMap=function e(){return this.get("blockMap")};r.getSelectionBefore=function e(){return this.get("selectionBefore")};r.getSelectionAfter=function e(){return this.get("selectionAfter")};r.getBlockForKey=function e(t){var r=this.getBlockMap().get(t);return r};r.getKeyBefore=function e(t){return this.getBlockMap().reverse().keySeq().skipUntil((function(e){return e===t})).skip(1).first()};r.getKeyAfter=function e(t){return this.getBlockMap().keySeq().skipUntil((function(e){return e===t})).skip(1).first()};r.getBlockAfter=function e(t){return this.getBlockMap().skipUntil((function(e,r){return r===t})).skip(1).first()};r.getBlockBefore=function e(t){return this.getBlockMap().reverse().skipUntil((function(e,r){return r===t})).skip(1).first()};r.getBlocksAsArray=function e(){return this.getBlockMap().toArray()};r.getFirstBlock=function e(){return this.getBlockMap().first()};r.getLastBlock=function e(){return this.getBlockMap().last()};r.getPlainText=function e(t){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(t||"\n")};r.getLastCreatedEntityKey=function e(){return c.__getLastCreatedEntityKey()};r.hasText=function e(){var t=this.getBlockMap();return t.size>1||escape(t.first().getText()).replace(/%u200B/g,"").length>0};r.createEntity=function e(t,r,n){c.__create(t,r,n);return this};r.mergeEntityData=function e(t,r){c.__mergeData(t,r);return this};r.replaceEntityData=function e(t,r){c.__replaceData(t,r);return this};r.addEntity=function e(t){c.__add(t);return this};r.getEntity=function e(t){return c.__get(t)};r.getAllEntities=function e(){return c.__getAll()};r.loadWithEntities=function e(t){return c.__loadWithEntities(t)};t.createFromBlockArray=function e(r,n){var a=Array.isArray(r)?r:r.contentBlocks;var i=o.createFromArray(a);var s=i.isEmpty()?new f:f.createEmpty(i.first().getKey());return new t({blockMap:i,entityMap:n||c,selectionBefore:s,selectionAfter:s})};t.createFromText=function e(r){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:/\r\n?|\n/g;var a=r.split(n);var i=a.map((function(e){e=m(e);return new x({key:d(),text:e,type:"unstyled",characterList:y(b(s.EMPTY,e.length))})}));return t.createFromBlockArray(i)};t.fromJS=function e(r){return new t(n({},r,{blockMap:_(r.blockMap).map(t.createContentBlockFromJS),selectionBefore:new f(r.selectionBefore),selectionAfter:new f(r.selectionAfter)}))};t.createContentBlockFromJS=function e(t){var r=t.characterList;return new x(n({},t,{data:A(t.data),characterList:r!=null?y((Array.isArray(r)?r:p(r)).map((function(e){return s.fromJS(e)}))):undefined}))};return t}(E);e.exports=k},function(e,t,r){"use strict";var n=r(183);var a=r(16);var i={L:"A-Za-zªµºÀ-ÖØ-öø-ƺƻ"+"Ƽ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸ"+"ʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷ"+"ͺͻ-ͽͿΆΈ-ΊΌΎ-Ρ"+"Σ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ"+"՚-՟ա-և։ःऄ-हऻऽ"+"ा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥"+"०-९॰ॱॲ-ঀং-ঃঅ-ঌ"+"এ-ঐও-নপ-রলশ-হঽ"+"া-ীে-ৈো-ৌৎৗড়-ঢ়"+"য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃ"+"ਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼"+"ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯"+"ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-ર"+"લ-ળવ-હઽા-ીૉો-ૌૐ"+"ૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐ"+"ଓ-ନପ-ରଲ-ଳଵ-ହଽାୀ"+"େ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯"+"୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-க"+"ங-சஜஞ-டண-தந-பம-ஹ"+"ா-ிு-ூெ-ைொ-ௌௐௗ"+"௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐ"+"ఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ"+"౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನ"+"ಪ-ಳವ-ಹಽಾಿೀ-ೄೆ"+"ೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯"+"ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽ"+"ാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ"+"൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖ"+"ක-නඳ-රලව-ෆා-ෑෘ-ෟ"+"෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅ"+"ๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈ"+"ຊຍດ-ທນ-ຟມ-ຣລວ"+"ສ-ຫອ-ະາ-ຳຽເ-ໄໆ"+"໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔"+"༕-༗༚-༟༠-༩༪-༳༴༶༸"+"༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ"+"྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘"+"࿙-࿚က-ဪါ-ာေးျ-ြဿ"+"၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡ"+"ၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁ"+"ႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ"+"႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼ"+"ჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈ"+"ኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅ"+"ወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨"+"፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮"+"ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰ"+"ᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶"+"ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅ"+"ះ-ៈ។-៖ៗ៘-៚ៜ០-៩"+"᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪ"+"ᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱ"+"ᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫ"+"ᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖ"+"ᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤ"+"ᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭"+"ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ"+"᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠ"+"ᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧ"+"ᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫ"+"ᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙"+"ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡"+"ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫ"+"ᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕ"+"Ἐ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝ"+"Ὗ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌ"+"ῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ"+"ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝ"+"ℤΩℨK-ℭℯ-ℴℵ-ℸℹ"+"ℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄ"+"ↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿"+"Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤ"+"Ⳬ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ"+"⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾ"+"ⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇"+"〡-〩〮-〯〱-〵〸-〺〻〼"+"ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿ"+"ㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟"+"ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇"+"㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋"+"㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵"+"一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ"+"꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫ"+"Ꙁ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ"+"꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎ"+"Ꞑ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁ"+"ꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵"+"꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ"+"꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉"+"ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼ"+"ꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍"+"ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ"+"꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴ"+"ꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯ"+"ꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱ"+"ꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟"+"ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵ"+"ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮ"+"ꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤ"+"ꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣"+"ힰ-ퟆퟋ-ퟻ-豈-舘並-龎"+"ff-stﬓ-ﬗA-Za-zヲ-ッー"+"ア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬ"+"ᅭ-ᅲᅳ-ᅵ",R:"־׀׃׆-א-ת-ׯ"+"װ-ײ׳-״-߀-߉ߊ-ߪ"+"ߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ"+"-࠰-࠾ࡀ-ࡘ-࡞"+"-࢟יִײַ-ﬨשׁ-זּטּ-לּ"+"מּנּ-סּףּ-פּצּ-ﭏ",AL:"؈؋؍؛؝؞-؟ؠ-ؿـ"+"ف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦ"+"ۮ-ۯۺ-ۼ۽-۾ۿ܀-܍"+"ܐܒ-ܯ-ݍ-ޥޱ-"+"ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-"+"ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ"+"-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ"+"ﹶ-ﻼ-"};var o=new RegExp("["+i.L+i.R+i.AL+"]");var s=new RegExp("["+i.R+i.AL+"]");function u(e){var t=o.exec(e);return t==null?null:t[0]}function l(e){var t=u(e);if(t==null){return n.NEUTRAL}return s.exec(t)?n.RTL:n.LTR}function c(e,t){t=t||n.NEUTRAL;if(!e.length){return t}var r=l(e);return r===n.NEUTRAL?t:r}function f(e,t){if(!t){t=n.getGlobalDir()}!n.isStrong(t)?false?undefined:a(false):void 0;return c(e,t)}function d(e,t){return f(e,t)===n.LTR}function p(e,t){return f(e,t)===n.RTL}var h={firstStrongChar:u,firstStrongCharDir:l,resolveBlockDir:c,getDirection:f,isDirectionLTR:d,isDirectionRTL:p};e.exports=h},function(e,t,r){"use strict";var n=r(1);var a=r(103);var i=r(11),o=i.Map;var s=n.createElement("ul",{className:a("public/DraftStyleDefault/ul")});var u=n.createElement("ol",{className:a("public/DraftStyleDefault/ol")});var l=n.createElement("pre",{className:a("public/DraftStyleDefault/pre")});var c=o({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:s},"ordered-list-item":{element:"li",wrapper:u},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:l},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=c},function(e,t,r){"use strict";var n=r(557),a=n.notEmptyKey;function i(e,t){var r;if(t.isCollapsed()){var n=t.getAnchorKey();var a=t.getAnchorOffset();if(a>0){r=e.getBlockForKey(n).getEntityAt(a-1);if(r!==e.getBlockForKey(n).getEntityAt(a)){return null}return o(e.getEntityMap(),r)}return null}var i=t.getStartKey();var s=t.getStartOffset();var u=e.getBlockForKey(i);r=s===u.getLength()?null:u.getEntityAt(s);return o(e.getEntityMap(),r)}function o(e,t){if(a(t)){var r=e.__get(t);return r.getMutability()==="MUTABLE"?t:null}return null}e.exports=i},function(e,t,r){"use strict";var n=r(908);function a(e,t){if(!e||!t){return false}else if(e===t){return true}else if(n(e)){return false}else if(n(t)){return a(e,t.parentNode)}else if("contains"in e){return e.contains(t)}else if(e.compareDocumentPosition){return!!(e.compareDocumentPosition(t)&16)}else{return false}}e.exports=a},function(e,t,r){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var a={getTop:function e(t){var r=t.ownerDocument;return n(t,r)?r.body.scrollTop||r.documentElement.scrollTop:t.scrollTop},setTop:function e(t,r){var a=t.ownerDocument;if(n(t,a)){a.body.scrollTop=a.documentElement.scrollTop=r}else{t.scrollTop=r}},getLeft:function e(t){var r=t.ownerDocument;return n(t,r)?r.body.scrollLeft||r.documentElement.scrollLeft:t.scrollLeft},setLeft:function e(t,r){var a=t.ownerDocument;if(n(t,a)){a.body.scrollLeft=a.documentElement.scrollLeft=r}else{t.scrollLeft=r}}};e.exports=a},function(e,t,r){"use strict";var n=r(272);function a(e,t){var r=e.getSelection();false?undefined:void 0;var n=e.getCurrentContent();var a=r.getStartKey();var i=r.getStartOffset();var o=a;var s=0;if(t>i){var u=n.getKeyBefore(a);if(u==null){o=a}else{o=u;var l=n.getBlockForKey(u);s=l.getText().length}}else{s=i-t}return r.merge({focusKey:o,focusOffset:s,isBackward:true})}e.exports=a},function(e,t,r){"use strict";var n=r(566);function a(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++){r[n-1]=arguments[n]}var a=0;var i="Warning: "+e.replace(/%s/g,(function(){return r[a++]}));if(typeof console!=="undefined"){console.error(i)}try{throw new Error(i)}catch(e){}}var i=false?undefined:n;e.exports=i},function(e,t,r){"use strict";var n=r(38);var a=r(935);var i=n.isPlatform("Mac OS X");var o={isCtrlKeyCommand:function e(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function e(t){return i&&t.altKey},usesMacOSHeuristics:function e(){return i},hasCommandModifier:function e(t){return i?!!t.metaKey&&!t.altKey:o.isCtrlKeyCommand(t)},isSoftNewlineEvent:a};e.exports=o},function(e,t,r){var n=r(973);e.exports=function(e,t,r){n(e);if(t===undefined)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(131);e.exports=function(e,t){if(!n(e))return e;var r,a;if(t&&typeof(r=e.toString)=="function"&&!n(a=r.call(e)))return a;if(typeof(r=e.valueOf)=="function"&&!n(a=r.call(e)))return a;if(!t&&typeof(r=e.toString)=="function"&&!n(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){var r=Math.ceil;var n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(279)("keys");var a=r(193);e.exports=function(e){return n[e]||(n[e]=a(e))}},function(e,t,r){var n=r(30);var a=r(74);var i="__core-js_shared__";var o=a[i]||(a[i]={});(e.exports=function(e,t){return o[e]||(o[e]=t!==undefined?t:{})})("versions",[]).push({version:n.version,mode:r(192)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(130);var a=r(978);var i=r(280);var o=r(278)("IE_PROTO");var s=function(){};var u="prototype";var l=function(){var e=r(581)("iframe");var t=i.length;var n="<";var a=">";var o;e.style.display="none";r(979).appendChild(e);e.src="javascript:";o=e.contentWindow.document;o.open();o.write(n+"script"+a+"document.F=Object"+n+"/script"+a);o.close();l=o.F;while(t--)delete l[u][i[t]];return l()};e.exports=Object.create||function e(t,r){var i;if(t!==null){s[u]=n(t);i=new s;s[u]=null;i[o]=t}else i=l();return r===undefined?i:a(i,r)}},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var a=n(r(79));var i="transform";t.transform=i;var o,s,u;t.animationEnd=u;t.transitionEnd=s;var l,c,f,d;t.transitionDelay=d;t.transitionTiming=f;t.transitionDuration=c;t.transitionProperty=l;var p,h,v,m;t.animationDelay=m;t.animationTiming=v;t.animationDuration=h;t.animationName=p;if(a.default){var y=b();o=y.prefix;t.transitionEnd=s=y.transitionEnd;t.animationEnd=u=y.animationEnd;t.transform=i=o+"-"+i;t.transitionProperty=l=o+"-transition-property";t.transitionDuration=c=o+"-transition-duration";t.transitionDelay=d=o+"-transition-delay";t.transitionTiming=f=o+"-transition-timing-function";t.animationName=p=o+"-animation-name";t.animationDuration=h=o+"-animation-duration";t.animationTiming=v=o+"-animation-delay";t.animationDelay=m=o+"-animation-timing-function"}var g={transform:i,end:s,property:l,timing:f,delay:d,duration:c};t.default=g;function b(){var e=document.createElement("div").style;var t={O:function e(t){return"o"+t.toLowerCase()},Moz:function e(t){return t.toLowerCase()},Webkit:function e(t){return"webkit"+t},ms:function e(t){return"MS"+t}};var r=Object.keys(t);var n,a;var i="";for(var o=0;o<r.length;o++){var s=r[o];if(s+"TransitionProperty"in e){i="-"+s.toLowerCase();n=t[s]("TransitionEnd");a=t[s]("AnimationEnd");break}}if(!n&&"transitionProperty"in e)n="transitionend";if(!a&&"animationName"in e)a="animationend";e=null;return{animationEnd:a,transitionEnd:n,prefix:i}}},function(e,t,r){var n=r(83).f;var a=r(109);var i=r(68)("toStringTag");e.exports=function(e,t,r){if(e&&!a(e=r?e:e.prototype,i))n(e,i,{configurable:true,value:t})}},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(79));var i=function e(){};if(a.default){i=function(){if(document.addEventListener)return function(e,t,r,n){return e.addEventListener(t,r,n||false)};else if(document.attachEvent)return function(e,t,r){return e.attachEvent("on"+t,(function(t){t=t||window.event;t.target=t.target||t.srcElement;t.currentTarget=e;r.call(e,t)}))}}()}var o=i;t.default=o;e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(79));var i=function e(){};if(a.default){i=function(){if(document.addEventListener)return function(e,t,r,n){return e.removeEventListener(t,r,n||false)};else if(document.attachEvent)return function(e,t,r){return e.detachEvent("on"+t,r)}}()}var o=i;t.default=o;e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);function a(e){return n.createElement("div",{className:"updating-loader-container"},e.show&&n.createElement("div",{className:"updating-loader"},e.text||"Updating",n.createElement("i",{className:"fa fa-spinner fa-spin"})))}t.default=a},function(e,t,r){var n=r(289),a=r(1046);function i(e,t){return e&&n(e,a(t))}e.exports=i},function(e,t,r){var n=r(1038),a=r(136);function i(e,t){return e&&n(e,t,a)}e.exports=i},function(e,t,r){var n=r(1041),a=r(61);var i=Object.prototype;var o=i.hasOwnProperty;var s=i.propertyIsEnumerable;var u=n(function(){return arguments}())?n:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,r){(function(e){var n=r(60),a=r(1042);var i=true&&t&&!t.nodeType&&t;var o=i&&typeof e=="object"&&e&&!e.nodeType&&e;var s=o&&o.exports===i;var u=s?n.Buffer:undefined;var l=u?u.isBuffer:undefined;var c=l||a;e.exports=c}).call(this,r(48)(e))},function(e,t){var r=9007199254740991;var n=/^(?:0|[1-9]\d*)$/;function a(e,t){var a=typeof e;t=t==null?r:t;return!!t&&(a=="number"||a!="symbol"&&n.test(e))&&(e>-1&&e%1==0&&e<t)}e.exports=a},function(e,t){var r=9007199254740991;function n(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=r}e.exports=n},function(e,t,r){(function(e){var n=r(608);var a=true&&t&&!t.nodeType&&t;var i=a&&typeof e=="object"&&e&&!e.nodeType&&e;var o=i&&i.exports===a;var s=o&&n.process;var u=function(){try{var e=i&&i.require&&i.require("util").types;if(e){return e}return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(this,r(48)(e))},function(e,t){var r=Object.prototype;function n(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||r;return e===n}e.exports=n},function(e,t,r){var n=r(611);var a=n(Object.getPrototypeOf,Object);e.exports=a},function(e,t,r){var n=r(198),a=r(1054),i=r(1055),o=r(1056),s=r(1057),u=r(1058);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=a;l.prototype["delete"]=i;l.prototype.get=o;l.prototype.has=s;l.prototype.set=u;e.exports=l},function(e,t,r){var n=r(113),a=r(60);var i=n(a,"Map");e.exports=i},function(e,t,r){var n=r(1063),a=r(1070),i=r(1072),o=r(1073),s=r(1074);function u(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n;u.prototype["delete"]=a;u.prototype.get=i;u.prototype.has=o;u.prototype.set=s;e.exports=u},function(e,t,r){var n=r(1075),a=r(61);function i(e,t,r,o,s){if(e===t){return true}if(e==null||t==null||!a(e)&&!a(t)){return e!==e&&t!==t}return n(e,t,r,o,i,s)}e.exports=i},function(e,t,r){var n=r(299),a=r(1076),i=r(1077);function o(e){var t=-1,r=e==null?0:e.length;this.__data__=new n;while(++t<r){this.add(e[t])}}o.prototype.add=o.prototype.push=a;o.prototype.has=i;e.exports=o},function(e,t){function r(e,t){return e.has(t)}e.exports=r},function(e,t){function r(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}e.exports=r},function(e,t){function r(e,t){var r=-1,n=t.length,a=e.length;while(++r<n){e[a+r]=t[r]}return e}e.exports=r},function(e,t,r){var n=r(619),a=r(620);var i=Object.prototype;var o=i.propertyIsEnumerable;var s=Object.getOwnPropertySymbols;var u=!s?a:function(e){if(e==null){return[]}e=Object(e);return n(s(e),(function(t){return o.call(e,t)}))};e.exports=u},function(e,t,r){var n=r(12),a=r(138);var i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;function s(e,t){if(n(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||a(e)){return true}return o.test(e)||!i.test(e)||t!=null&&e in Object(t)}e.exports=s},function(e,t,r){var n=r(627);function a(e,t,r){if(t=="__proto__"&&n){n(e,t,{configurable:true,enumerable:true,value:r,writable:true})}else{e[t]=r}}e.exports=a},function(e,t,r){var n=r(609),a=r(1103),i=r(111);function o(e){return i(e)?n(e,true):a(e)}e.exports=o},function(e,t,r){var n=r(616);function a(e){var t=new e.constructor(e.byteLength);new n(t).set(new n(e));return t}e.exports=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1136);Object.defineProperty(t,"DragDropContext",{enumerable:true,get:function e(){return o(n).default}});var a=r(1179);Object.defineProperty(t,"Droppable",{enumerable:true,get:function e(){return o(a).default}});var i=r(1188);Object.defineProperty(t,"Draggable",{enumerable:true,get:function e(){return o(i).default}});function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";t.__esModule=true;var n=r(1142);var a=u(n);var i=r(1148);var o=u(i);var s=typeof o.default==="function"&&typeof a.default==="symbol"?function(e){return typeof e}:function(e){return e&&typeof o.default==="function"&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function u(e){return e&&e.__esModule?e:{default:e}}t.default=typeof o.default==="function"&&s(a.default)==="symbol"?function(e){return typeof e==="undefined"?"undefined":s(e)}:function(e){return e&&typeof o.default==="function"&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e==="undefined"?"undefined":s(e)}},function(e,t,r){t.f=r(68)},function(e,t,r){var n=r(74);var a=r(30);var i=r(192);var o=r(312);var s=r(83).f;e.exports=function(e){var t=a.Symbol||(a.Symbol=i?{}:n.Symbol||{});if(e.charAt(0)!="_"&&!(e in t))s(t,e,{value:o.f(e)})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n={x:0,y:0};var a=t.noMovement={draggables:[],amount:n,isBeyondStartPosition:false};var i={movement:a,direction:null,destination:null};t.default=i},function(e,t,r){"use strict";t.__esModule=true;var n=r(1163);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++){r[t]=e[t]}return r}else{return(0,a.default)(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDroppableDimension=t.getDraggableDimension=t.getFragment=t.noSpacing=undefined;var n=r(1166);var a=r(317);var i=s(a);var o=r(207);function s(e){return e&&e.__esModule?e:{default:e}}var u={x:0,y:0};var l=t.noSpacing={top:0,right:0,bottom:0,left:0};var c=function e(t,r){var n=t.top,a=t.right,o=t.bottom,s=t.left;return(0,i.default)({top:n+r.y,left:s+r.x,bottom:o+r.y,right:a+r.x})};var f=function e(t,r){var n=t.top,a=t.right,o=t.bottom,s=t.left;return(0,i.default)({top:n-r.top,left:s-r.left,bottom:o+r.bottom,right:a+r.right})};var d=t.getFragment=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:u;var n=(0,i.default)({top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x});return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,center:{x:(n.right+n.left)/2,y:(n.bottom+n.top)/2}}};var p=t.getDraggableDimension=function e(t){var r=t.id,n=t.droppableId,a=t.clientRect,i=t.margin,o=i===undefined?l:i,s=t.windowScroll,p=s===undefined?u:s;var h=c(a,p);var v={id:r,droppableId:n,client:{withoutMargin:d(a),withMargin:d(f(a,o))},page:{withoutMargin:d(h),withMargin:d(f(h,o))}};return v};var h=t.getDroppableDimension=function e(t){var r=t.id,a=t.clientRect,i=t.containerRect,s=t.direction,p=s===undefined?"vertical":s,h=t.margin,v=h===undefined?l:h,m=t.padding,y=m===undefined?l:m,g=t.windowScroll,b=g===undefined?u:g,A=t.scroll,_=A===undefined?u:A,w=t.isEnabled,E=w===undefined?true:w;var x=f(a,v);var k=c(a,b);var S=!i||(0,o.isEqual)(i,a)?c(x,b):c(i,b);var O={id:r,isEnabled:E,axis:p==="vertical"?n.vertical:n.horizontal,client:{withoutMargin:d(a),withMargin:d(x),withMarginAndPadding:d(f(x,y))},page:{withoutMargin:d(k),withMargin:d(f(k,v)),withMarginAndPadding:d(f(k,(0,o.add)(v,y)))},container:{scroll:{initial:_,current:_},bounds:d(S)}};return O}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e){var t=e.top,r=e.right,n=e.bottom,a=e.left;return{top:t,right:r,bottom:n,left:a,width:r-a,height:n-t}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(){return{x:window.pageXOffset,y:window.pageYOffset}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.lift=t.dropAnimationFinished=t.cancel=t.drop=t.completeDrop=t.prepare=t.clean=t.crossAxisMoveBackward=t.crossAxisMoveForward=t.moveForward=t.moveBackward=t.moveByWindowScroll=t.move=t.updateDroppableDimensionIsEnabled=t.updateDroppableDimensionScroll=t.publishDroppableDimension=t.publishDraggableDimension=t.completeLift=t.requestDimensions=undefined;var n=r(314);var a=u(n);var i=r(1186);var o=u(i);var s=r(43);function u(e){return e&&e.__esModule?e:{default:e}}var l={x:0,y:0};var c=function e(t){var r=t.initial,n=t.current,a=t.droppable;var i=(0,s.subtract)(r.windowScroll,n.windowScroll);var o=a?(0,s.subtract)(a.container.scroll.initial,a.container.scroll.current):l;return(0,s.add)(i,o)};var f=t.requestDimensions=function e(t){return{type:"REQUEST_DIMENSIONS",payload:t}};var d=t.completeLift=function e(t,r,n,a,i){return{type:"COMPLETE_LIFT",payload:{id:t,type:r,client:n,windowScroll:a,isScrollAllowed:i}}};var p=t.publishDraggableDimension=function e(t){return{type:"PUBLISH_DRAGGABLE_DIMENSION",payload:t}};var h=t.publishDroppableDimension=function e(t){return{type:"PUBLISH_DROPPABLE_DIMENSION",payload:t}};var v=t.updateDroppableDimensionScroll=function e(t,r){return{type:"UPDATE_DROPPABLE_DIMENSION_SCROLL",payload:{id:t,offset:r}}};var m=t.updateDroppableDimensionIsEnabled=function e(t,r){return{type:"UPDATE_DROPPABLE_DIMENSION_IS_ENABLED",payload:{id:t,isEnabled:r}}};var y=t.move=function e(t,r,n){return{type:"MOVE",payload:{id:t,client:r,windowScroll:n}}};var g=t.moveByWindowScroll=function e(t,r){return{type:"MOVE_BY_WINDOW_SCROLL",payload:{id:t,windowScroll:r}}};var b=t.moveBackward=function e(t){return{type:"MOVE_BACKWARD",payload:t}};var A=t.moveForward=function e(t){return{type:"MOVE_FORWARD",payload:t}};var _=t.crossAxisMoveForward=function e(t){return{type:"CROSS_AXIS_MOVE_FORWARD",payload:t}};var w=t.crossAxisMoveBackward=function e(t){return{type:"CROSS_AXIS_MOVE_BACKWARD",payload:t}};var E=t.clean=function e(){return{type:"CLEAN",payload:null}};var x=t.prepare=function e(){return{type:"PREPARE",payload:null}};var k=function e(t){var r=t.trigger,n=t.newHomeOffset,a=t.impact,i=t.result;return{type:"DROP_ANIMATE",payload:{trigger:r,newHomeOffset:n,impact:a,result:i}}};var S=t.completeDrop=function e(t){return{type:"DROP_COMPLETE",payload:t}};var O=t.drop=function e(){return function(e,t){var r=t();if(r.phase==="COLLECTING_DIMENSIONS"){e(E());return}if(r.phase!=="DRAGGING"){console.error("not able to drop in phase: '"+r.phase+"'");e(E());return}if(!r.drag){console.error("not able to drop when there is invalid drag state",r);e(E());return}var n=r.drag,a=n.impact,i=n.initial,u=n.current;var l=r.dimension.draggable[u.id];var f=r.dimension.droppable[l.droppableId];var d=a.destination?r.dimension.droppable[a.destination.droppableId]:null;var p={draggableId:u.id,type:u.type,source:i.source,destination:a.destination};var h=(0,o.default)({movement:a.movement,draggable:l,draggables:r.dimension.draggable,destination:d});var v=(0,s.subtract)(h,l.client.withMargin.center);var m=c({initial:i,current:u,droppable:d||f});var y=(0,s.add)(v,m);var g=!(0,s.isEqual)(u.client.offset,y);if(!g){e(S(p));return}e(k({trigger:"DROP",newHomeOffset:y,impact:a,result:p}))}};var M=t.cancel=function e(){return function(e,t){var r=t();if(r.phase!=="DRAGGING"){e(E());return}if(!r.drag){console.error("invalid drag state",r);e(E());return}var n=r.drag,i=n.initial,o=n.current;var u=r.dimension.droppable[i.source.droppableId];var f={draggableId:o.id,type:o.type,source:i.source,destination:null};var d=!(0,s.isEqual)(o.client.offset,l);if(!d){e(S(f));return}var p=c({initial:i,current:o,droppable:u});e(k({trigger:"CANCEL",newHomeOffset:p,impact:a.default,result:f}))}};var D=t.dropAnimationFinished=function e(){return function(e,t){var r=t();if(r.phase!=="DROP_ANIMATING"){console.error("cannot end drop that is no longer animating",r);e(E());return}if(!r.drop||!r.drop.pending){console.error("cannot end drop that has no pending state",r);e(E());return}e(S(r.drop.pending.result))}};var T=t.lift=function e(t,r,n,a,i){return function(e,o){var s=o();if(s.phase==="DROP_ANIMATING"){if(!s.drop||!s.drop.pending){console.error("cannot flush drop animation if there is no pending");e(E())}else{e(S(s.drop.pending.result))}}e(x());setTimeout((function(){var s=o();if(s.phase!=="PREPARING"){return}e(f(r));setTimeout((function(){var s=o();if(s.phase!=="COLLECTING_DIMENSIONS"){return}e(d(t,r,n,a,i))}))}))}}},function(e,t,r){"use strict";t.__esModule=true;t["default"]=n;function n(e){var t={};for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){t[r]=0}}return t}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t["default"]=a;var n=[0,0];function a(e,t,r,a,i,o,s){var u=-i*(t-a);var l=-o*r;var c=u+l;var f=r+c*e;var d=t+f*e;if(Math.abs(f)<s&&Math.abs(d-a)<s){n[0]=a;n[1]=0;return n}n[0]=d;n[1]=f;return n}e.exports=t["default"]},function(e,t,r){(function(t){(function(){var r,n,a;if(typeof performance!=="undefined"&&performance!==null&&performance.now){e.exports=function(){return performance.now()}}else if(typeof t!=="undefined"&&t!==null&&t.hrtime){e.exports=function(){return(r()-a)/1e6};n=t.hrtime;r=function(){var e;e=n();return e[0]*1e9+e[1]};a=r()}else if(Date.now){e.exports=function(){return Date.now()-a};a=Date.now()}else{e.exports=function(){return(new Date).getTime()-a};a=(new Date).getTime()}}).call(this)}).call(this,r(126))},function(e,t,r){"use strict";t.__esModule=true;t["default"]=n;function n(e,t,r){for(var n in t){if(!Object.prototype.hasOwnProperty.call(t,n)){continue}if(r[n]!==0){return false}var a=typeof t[n]==="number"?t[n]:t[n].val;if(e[n]!==a){return false}}return true}e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(53);var a=s(n);var i=r(635);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var r=function e(r){if(t()){r()}};var n=(0,a.default)((function(t,r){var n={x:t,y:r};e.onMove(n)}));var i=(0,o.default)((function(e){r((function(){return n(e.x,e.y)}))}));var s=(0,o.default)((function(){r(e.onMoveForward)}));var u=(0,o.default)((function(){r(e.onMoveBackward)}));var l=(0,o.default)((function(){r(e.onCrossAxisMoveForward)}));var c=(0,o.default)((function(){r(e.onCrossAxisMoveBackward)}));var f=(0,o.default)((function(){r(e.onWindowScroll)}));return{move:i,moveForward:s,moveBackward:u,crossAxisMoveForward:l,crossAxisMoveBackward:c,windowScrollMove:f}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e){return e?e.ownerDocument.defaultView:window}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=t.tab=9;var a=t.enter=13;var i=t.escape=27;var o=t.space=32;var s=t.arrowLeft=37;var u=t.arrowUp=38;var l=t.arrowRight=39;var c=t.arrowDown=40},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"47.31985",height:"29.64547",viewBox:"0 0 47.31985 29.64547","aria-hidden":"true"},n.createElement("title",null,"Grab Icon"),n.createElement("g",null,n.createElement("path",{d:"M43.05833,8.523H4.26152a4.26152,4.26152,0,0,1,0-8.523H43.05833a4.26152,4.26152,0,0,1,0,8.523Z"}),n.createElement("path",{d:"M43.05833,29.64547H4.26152a4.26152,4.26152,0,1,1,0-8.523H43.05833a4.26152,4.26152,0,0,1,0,8.523Z"})))};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=r(341);var i=r(1396);var o=r(1220);var s=r(1221);t.fields=[{value:"data_source",label:"distributor"},{value:"publisher",label:"publisher"},{value:"published",label:"publication date"},{value:"genre",label:"genre"},{value:"language",label:"language"},{value:"classification",label:"subject"},{value:"audience",label:"audience"},{value:"author",label:"author"},{value:"title",label:"title"}];t.operators=[{value:"eq",label:"equals",symbol:"="},{value:"contains",label:"contains",symbol:":"},{value:"regex",label:"matches regex",symbol:"~"},{value:"neq",label:"does not equal",symbol:"≠"},{value:"gt",label:"is greater than",symbol:">"},{value:"gte",label:"is greater than or equals",symbol:"≥"},{value:"lt",label:"is less than",symbol:"<"},{value:"lte",label:"is less than or equals",symbol:"≤"}];function u(e){var t=e.isOwner,r=e.name,u=e.query,l=e.selectedQueryId,c=e.addQuery,f=e.updateQueryBoolean,d=e.moveQuery,p=e.removeQuery,h=e.selectQuery;var v=!t;return n.createElement(a.DndProvider,{backend:i.HTML5Backend},n.createElement("div",{className:"advanced-search"},!v&&n.createElement(o.default,{name:r,onAdd:function(e){var t;return(t=c)===null||t===void 0?void 0:t(r,e)}}),n.createElement(s.default,{query:u,readOnly:v,selectedQueryId:l,onBooleanChange:function(e,t){var n;return(n=f)===null||n===void 0?void 0:n(r,e,t)},onMove:function(e,t){var n;return(n=d)===null||n===void 0?void 0:n(r,e,t)},onRemove:function(e){var t;return(t=p)===null||t===void 0?void 0:t(r,e)},onSelect:function(e){var t;return(t=h)===null||t===void 0?void 0:t(r,e)}})))}t.default=u},function(e,t,r){var n=r(214);var a=r(651);var i=r(330);var o=Object.defineProperty;t.f=r(141)?Object.defineProperty:function e(t,r,s){n(t);r=i(r,true);n(s);if(a)try{return o(t,r,s)}catch(e){}if("get"in s||"set"in s)throw TypeError("Accessors not supported!");if("value"in s)t[r]=s.value;return t}},function(e,t,r){var n=r(140);e.exports=function(e,t){if(!n(e))return e;var r,a;if(t&&typeof(r=e.toString)=="function"&&!n(a=r.call(e)))return a;if(typeof(r=e.valueOf)=="function"&&!n(a=r.call(e)))return a;if(!t&&typeof(r=e.toString)=="function"&&!n(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=Math.sign||function e(t){return(t=+t)==0||t!=t?t:t<0?-1:1}},function(e,t){var r=Math.expm1;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!=-2e-17?function e(t){return(t=+t)==0?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:r},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(1264);var a=r(335);e.exports=function(e){return n(a(e))}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(17);var a=r(335);var i=r(90);var o=r(338);var s="["+o+"]";var u="
";var l=RegExp("^"+s+s+"*");var c=RegExp(s+s+"*$");var f=function(e,t,r){var a={};var s=i((function(){return!!o[e]()||u[e]()!=u}));var l=a[e]=s?t(d):o[e];if(r)a[r]=l;n(n.P+n.F*s,"String",a)};var d=f.trim=function(e,t){e=String(a(e));if(t&1)e=e.replace(l,"");if(t&2)e=e.replace(c,"");return e};e.exports=f},function(e,t){e.exports="\t\n\v\f\r "+" \u2028\u2029\ufeff"},function(e,t,r){var n=r(304),a=r(1304);function i(e,t,r,o,s){var u=-1,l=e.length;r||(r=a);s||(s=[]);while(++u<l){var c=e[u];if(t>0&&r(c)){if(t>1){i(c,t-1,r,o,s)}else{n(s,c)}}else if(!o){s[s.length]=c}}return s}e.exports=i},function(e,t,r){"use strict";var n=String.prototype.replace;var a=/%20/g;var i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,a,"+")},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}},function(e,t,r){"use strict";r.r(t);r.d(t,"DndContext",(function(){return n["a"]}));r.d(t,"DndProvider",(function(){return a["a"]}));r.d(t,"DragPreviewImage",(function(){return o}));r.d(t,"DragSource",(function(){return xe}));r.d(t,"DropTarget",(function(){return ze}));r.d(t,"DragLayer",(function(){return rt}));r.d(t,"useDrag",(function(){return Gt}));r.d(t,"useDrop",(function(){return dr}));r.d(t,"useDragLayer",(function(){return br}));r.d(t,"useDragDropManager",(function(){return ft}));var n=r(220);var a=r(643);var i=r(1);var o=Object(i["memo"])((function e(t){var r=t.connect,n=t.src;Object(i["useEffect"])((function(){if(typeof Image==="undefined")return;var e=false;var t=new Image;t.src=n;t.onload=function(){r(t);e=true};return function(){if(e){r(null)}}}));return null}));var s=r(6);function u(e,t,r){var n=r.getRegistry();var a=n.addTarget(e,t);return[a,function(){return n.removeTarget(a)}]}function l(e,t,r){var n=r.getRegistry();var a=n.addSource(e,t);return[a,function(){return n.removeSource(a)}]}function c(e){if(typeof e.type==="string"){return}var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}function f(e){return function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(!Object(i["isValidElement"])(t)){var n=t;e(n,r);return n}var a=t;c(a);var o=r?function(t){return e(t,r)}:e;return h(a,o)}}function d(e){var t={};Object.keys(e).forEach((function(r){var n=e[r];if(r.endsWith("Ref")){t[r]=e[r]}else{var a=f(n);t[r]=function(){return a}}}));return t}function p(e,t){if(typeof e==="function"){e(t)}else{e.current=t}}function h(e,t){var r=e.ref;Object(s["a"])(typeof r!=="string","Cannot connect React DnD to an element with an existing string ref. "+"Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. "+"Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs");if(!r){return Object(i["cloneElement"])(e,{ref:t})}else{return Object(i["cloneElement"])(e,{ref:function e(n){p(r,n);p(t,n)}})}}function v(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){v=function e(t){return typeof t}}else{v=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return v(e)}function m(e){return e!==null&&v(e)==="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function y(e,t,r,n){var a=r?r.call(n,e,t):void 0;if(a!==void 0){return!!a}if(e===t){return true}if(typeof e!=="object"||!e||typeof t!=="object"||!t){return false}var i=Object.keys(e);var o=Object.keys(t);if(i.length!==o.length){return false}var s=Object.prototype.hasOwnProperty.bind(t);for(var u=0;u<i.length;u++){var l=i[u];if(!s(l)){return false}var c=e[l];var f=t[l];a=r?r.call(n,c,f,l):void 0;if(a===false||a===void 0&&c!==f){return false}}return true}function g(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function A(e,t,r){if(t)b(e.prototype,t);if(r)b(e,r);return e}function _(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var w=function(){function e(t){var r=this;g(this,e);_(this,"hooks",d({dragSource:function e(t,n){r.clearDragSource();r.dragSourceOptions=n||null;if(m(t)){r.dragSourceRef=t}else{r.dragSourceNode=t}r.reconnectDragSource()},dragPreview:function e(t,n){r.clearDragPreview();r.dragPreviewOptions=n||null;if(m(t)){r.dragPreviewRef=t}else{r.dragPreviewNode=t}r.reconnectDragPreview()}}));_(this,"handlerId",null);_(this,"dragSourceRef",null);_(this,"dragSourceNode",void 0);_(this,"dragSourceOptionsInternal",null);_(this,"dragSourceUnsubscribe",void 0);_(this,"dragPreviewRef",null);_(this,"dragPreviewNode",void 0);_(this,"dragPreviewOptionsInternal",null);_(this,"dragPreviewUnsubscribe",void 0);_(this,"lastConnectedHandlerId",null);_(this,"lastConnectedDragSource",null);_(this,"lastConnectedDragSourceOptions",null);_(this,"lastConnectedDragPreview",null);_(this,"lastConnectedDragPreviewOptions",null);_(this,"backend",void 0);this.backend=t}A(e,[{key:"receiveHandlerId",value:function e(t){if(this.handlerId===t){return}this.handlerId=t;this.reconnect()}},{key:"connectTarget",get:function e(){return this.dragSource}},{key:"dragSourceOptions",get:function e(){return this.dragSourceOptionsInternal},set:function e(t){this.dragSourceOptionsInternal=t}},{key:"dragPreviewOptions",get:function e(){return this.dragPreviewOptionsInternal},set:function e(t){this.dragPreviewOptionsInternal=t}},{key:"reconnect",value:function e(){this.reconnectDragSource();this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function e(){var t=this.dragSource;var r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(r){this.disconnectDragSource()}if(!this.handlerId){return}if(!t){this.lastConnectedDragSource=t;return}if(r){this.lastConnectedHandlerId=this.handlerId;this.lastConnectedDragSource=t;this.lastConnectedDragSourceOptions=this.dragSourceOptions;this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)}}},{key:"reconnectDragPreview",value:function e(){var t=this.dragPreview;var r=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r){this.disconnectDragPreview()}if(!this.handlerId){return}if(!t){this.lastConnectedDragPreview=t;return}if(r){this.lastConnectedHandlerId=this.handlerId;this.lastConnectedDragPreview=t;this.lastConnectedDragPreviewOptions=this.dragPreviewOptions;this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)}}},{key:"didHandlerIdChange",value:function e(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function e(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function e(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function e(){return!y(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function e(){return!y(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function e(){if(this.dragSourceUnsubscribe){this.dragSourceUnsubscribe();this.dragSourceUnsubscribe=undefined}}},{key:"disconnectDragPreview",value:function e(){if(this.dragPreviewUnsubscribe){this.dragPreviewUnsubscribe();this.dragPreviewUnsubscribe=undefined;this.dragPreviewNode=null;this.dragPreviewRef=null}}},{key:"dragSource",get:function e(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function e(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function e(){this.dragSourceNode=null;this.dragSourceRef=null}},{key:"clearDragPreview",value:function e(){this.dragPreviewNode=null;this.dragPreviewRef=null}}]);return e}();function E(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function k(e,t,r){if(t)x(e.prototype,t);if(r)x(e,r);return e}function S(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var O=false;var M=false;var D=function(){function e(t){E(this,e);S(this,"internalMonitor",void 0);S(this,"sourceId",null);this.internalMonitor=t.getMonitor()}k(e,[{key:"receiveHandlerId",value:function e(t){this.sourceId=t}},{key:"getHandlerId",value:function e(){return this.sourceId}},{key:"canDrag",value:function e(){Object(s["a"])(!O,"You may not call monitor.canDrag() inside your canDrag() implementation. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{O=true;return this.internalMonitor.canDragSource(this.sourceId)}finally{O=false}}},{key:"isDragging",value:function e(){if(!this.sourceId){return false}Object(s["a"])(!M,"You may not call monitor.isDragging() inside your isDragging() implementation. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{M=true;return this.internalMonitor.isDraggingSource(this.sourceId)}finally{M=false}}},{key:"subscribeToStateChange",value:function e(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}},{key:"isDraggingSource",value:function e(t){return this.internalMonitor.isDraggingSource(t)}},{key:"isOverTarget",value:function e(t,r){return this.internalMonitor.isOverTarget(t,r)}},{key:"getTargetIds",value:function e(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function e(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function e(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function e(t){return this.internalMonitor.subscribeToOffsetChange(t)}},{key:"canDragSource",value:function e(t){return this.internalMonitor.canDragSource(t)}},{key:"canDropOnTarget",value:function e(t){return this.internalMonitor.canDropOnTarget(t)}},{key:"getItemType",value:function e(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function e(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function e(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function e(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function e(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function e(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function e(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function e(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function e(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]);return e}();function T(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){T=function e(t){return typeof t}}else{T=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return T(e)}function L(e){var t=e.current;if(t==null){return null}else if(t.decoratedRef){return t.decoratedRef.current}else{return t}}function C(e){return e&&e.prototype&&typeof e.prototype.render==="function"}function j(e){var t;var r=e;return(r===null||r===void 0?void 0:(t=r.$$typeof)===null||t===void 0?void 0:t.toString())==="Symbol(react.forward_ref)"}function N(e){return C(e)||j(e)}function I(e,t){if(false){var r,n}}function P(e){return typeof e==="function"}function R(){}function F(e){return T(e)==="object"&&e!==null}function Y(e){if(!F(e)){return false}if(Object.getPrototypeOf(e)===null){return true}var t=e;while(Object.getPrototypeOf(t)!==null){t=Object.getPrototypeOf(t)}return Object.getPrototypeOf(e)===t}function B(e,t){return typeof e==="string"||T(e)==="symbol"||!!t&&Array.isArray(e)&&e.every((function(e){return B(e,false)}))}var H=r(98);function U(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function q(e,t,r){if(t)z(e.prototype,t);if(r)z(e,r);return e}function V(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var W=function(){function e(t){U(this,e);V(this,"isDisposed",false);V(this,"action",void 0);this.action=P(t)?t:R}q(e,[{key:"dispose",value:function e(){if(!this.isDisposed){this.action();this.isDisposed=true}}}],[{key:"isDisposable",value:function e(t){return Boolean(t&&P(t.dispose))}},{key:"_fixup",value:function t(r){return e.isDisposable(r)?r:e.empty}},{key:"create",value:function t(r){return new e(r)}}]);return e}();V(W,"empty",{dispose:R});var K=function(){function e(){U(this,e);V(this,"isDisposed",false);V(this,"disposables",void 0);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++){r[n]=arguments[n]}this.disposables=r}q(e,[{key:"add",value:function e(t){if(this.isDisposed){t.dispose()}else{this.disposables.push(t)}}},{key:"remove",value:function e(t){var r=false;if(!this.isDisposed){var n=this.disposables.indexOf(t);if(n!==-1){r=true;this.disposables.splice(n,1);t.dispose()}}return r}},{key:"clear",value:function e(){if(!this.isDisposed){var t=this.disposables.length;var r=new Array(t);for(var n=0;n<t;n++){r[n]=this.disposables[n]}this.disposables=[];for(var a=0;a<t;a++){r[a].dispose()}}}},{key:"dispose",value:function e(){if(!this.isDisposed){this.isDisposed=true;var t=this.disposables.length;var r=new Array(t);for(var n=0;n<t;n++){r[n]=this.disposables[n]}this.disposables=[];for(var a=0;a<t;a++){r[a].dispose()}}}}]);return e}();var G=function(){function e(){U(this,e);V(this,"isDisposed",false);V(this,"current",void 0)}q(e,[{key:"getDisposable",value:function e(){return this.current}},{key:"setDisposable",value:function e(t){var r=this.isDisposed;if(!r){var n=this.current;this.current=t;if(n){n.dispose()}}if(r&&t){t.dispose()}}},{key:"dispose",value:function e(){if(!this.isDisposed){this.isDisposed=true;var t=this.current;this.current=undefined;if(t){t.dispose()}}}}]);return e}();var Q=r(62);var J=r.n(Q);function Z(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Z=function e(t){return typeof t}}else{Z=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return Z(e)}function X(e,t){return ne(e)||re(e,t)||ee(e,t)||$()}function $(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ee(e,t){if(!e)return;if(typeof e==="string")return te(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return te(e,t)}function te(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function re(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function ne(e){if(Array.isArray(e))return e}function ae(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function ie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function oe(e,t,r){if(t)ie(e.prototype,t);if(r)ie(e,r);return e}function se(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)ue(e,t)}function ue(e,t){ue=Object.setPrototypeOf||function e(t,r){t.__proto__=r;return t};return ue(e,t)}function le(e){var t=de();return function r(){var n=pe(e),a;if(t){var i=pe(this).constructor;a=Reflect.construct(n,arguments,i)}else{a=n.apply(this,arguments)}return ce(this,a)}}function ce(e,t){if(t&&(Z(t)==="object"||typeof t==="function")){return t}else if(t!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return fe(e)}function fe(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function de(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return true}catch(e){return false}}function pe(e){pe=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return pe(e)}function he(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function ve(e){var t=e.DecoratedComponent,r=e.createHandler,a=e.createMonitor,o=e.createConnector,u=e.registerHandler,l=e.containerDisplayName,c=e.getType,f=e.collect,d=e.options;var p=d.arePropsEqual,h=p===void 0?y:p;var v=t;var m=t.displayName||t.name||"Component";var g=function(e){se(l,e);var t=le(l);function l(e){var r;ae(this,l);r=t.call(this,e);he(fe(r),"decoratedRef",Object(i["createRef"])());he(fe(r),"handlerId",void 0);he(fe(r),"manager",void 0);he(fe(r),"handlerMonitor",void 0);he(fe(r),"handlerConnector",void 0);he(fe(r),"handler",void 0);he(fe(r),"disposable",void 0);he(fe(r),"currentType",void 0);he(fe(r),"handleChange",(function(){var e=r.getCurrentState();if(!y(e,r.state)){r.setState(e)}}));r.disposable=new G;r.receiveProps(e);r.dispose();return r}oe(l,[{key:"getHandlerId",value:function e(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function e(){Object(s["a"])(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()");return this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function e(t,r){return!h(t,this.props)||!y(r,this.state)}},{key:"componentDidMount",value:function e(){this.disposable=new G;this.currentType=undefined;this.receiveProps(this.props);this.handleChange()}},{key:"componentDidUpdate",value:function e(t){if(!h(this.props,t)){this.receiveProps(this.props);this.handleChange()}}},{key:"componentWillUnmount",value:function e(){this.dispose()}},{key:"receiveProps",value:function e(t){if(!this.handler){return}this.handler.receiveProps(t);this.receiveType(c(t))}},{key:"receiveType",value:function e(t){if(!this.handlerMonitor||!this.manager||!this.handlerConnector){return}if(t===this.currentType){return}this.currentType=t;var r=u(t,this.handler,this.manager),n=X(r,2),a=n[0],i=n[1];this.handlerId=a;this.handlerMonitor.receiveHandlerId(a);this.handlerConnector.receiveHandlerId(a);var o=this.manager.getMonitor();var s=o.subscribeToStateChange(this.handleChange,{handlerIds:[a]});this.disposable.setDisposable(new K(new W(s),new W(i)))}},{key:"dispose",value:function e(){this.disposable.dispose();if(this.handlerConnector){this.handlerConnector.receiveHandlerId(null)}}},{key:"getCurrentState",value:function e(){if(!this.handlerConnector){return{}}var t=f(this.handlerConnector.hooks,this.handlerMonitor,this.props);if(false){}return t}},{key:"render",value:function e(){var t=this;return Object(H["jsx"])(n["a"].Consumer,{children:function e(r){var n=r.dragDropManager;t.receiveDragDropManager(n);if(typeof requestAnimationFrame!=="undefined"){requestAnimationFrame((function(){var e;return(e=t.handlerConnector)===null||e===void 0?void 0:e.reconnect()}))}return Object(H["jsx"])(v,Object.assign({},t.props,t.getCurrentState(),{ref:N(v)?t.decoratedRef:null}),void 0)}},void 0)}},{key:"receiveDragDropManager",value:function e(t){if(this.manager!==undefined){return}Object(s["a"])(t!==undefined,"Could not find the drag and drop manager in the context of %s. "+"Make sure to render a DndProvider component in your top-level component. "+"Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",m,m);if(t===undefined){return}this.manager=t;this.handlerMonitor=a(t);this.handlerConnector=o(t.getBackend());this.handler=r(this.handlerMonitor,this.decoratedRef)}}]);return l}(i["Component"]);he(g,"DecoratedComponent",t);he(g,"displayName","".concat(l,"(").concat(m,")"));return J()(g,t)}function me(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function ye(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function ge(e,t,r){if(t)ye(e.prototype,t);if(r)ye(e,r);return e}function be(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var Ae=["canDrag","beginDrag","isDragging","endDrag"];var _e=["beginDrag"];var we=function(){function e(t,r,n){var a=this;me(this,e);be(this,"props",null);be(this,"spec",void 0);be(this,"monitor",void 0);be(this,"ref",void 0);be(this,"beginDrag",(function(){if(!a.props){return}var e=a.spec.beginDrag(a.props,a.monitor,a.ref.current);if(false){}return e}));this.spec=t;this.monitor=r;this.ref=n}ge(e,[{key:"receiveProps",value:function e(t){this.props=t}},{key:"canDrag",value:function e(){if(!this.props){return false}if(!this.spec.canDrag){return true}return this.spec.canDrag(this.props,this.monitor)}},{key:"isDragging",value:function e(t,r){if(!this.props){return false}if(!this.spec.isDragging){return r===t.getSourceId()}return this.spec.isDragging(this.props,this.monitor)}},{key:"endDrag",value:function e(){if(!this.props){return}if(!this.spec.endDrag){return}this.spec.endDrag(this.props,this.monitor,L(this.ref))}}]);return e}();function Ee(e){Object.keys(e).forEach((function(t){Object(s["a"])(Ae.indexOf(t)>-1,"Expected the drag source specification to only have "+"some of the following keys: %s. "+'Instead received a specification with an unexpected "%s" key. '+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",Ae.join(", "),t);Object(s["a"])(typeof e[t]==="function","Expected %s in the drag source specification to be a function. "+"Instead received a specification with %s: %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}));_e.forEach((function(t){Object(s["a"])(typeof e[t]==="function","Expected %s in the drag source specification to be a function. "+"Instead received a specification with %s: %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}));return function t(r,n){return new we(e,r,n)}}function xe(e,t,r){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};I("DragSource","type, spec, collect[, options]",e,t,r,n);var a=e;if(typeof e!=="function"){Object(s["a"])(B(e),'Expected "type" provided as the first argument to DragSource to be '+"a string, or a function that returns a string given the current props. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",e);a=function t(){return e}}Object(s["a"])(Y(t),'Expected "spec" provided as the second argument to DragSource to be '+"a plain object. Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t);var i=Ee(t);Object(s["a"])(typeof r==="function",'Expected "collect" provided as the third argument to DragSource to be '+"a function that returns a plain object of props to inject. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",r);Object(s["a"])(Y(n),'Expected "options" provided as the fourth argument to DragSource to be '+"a plain object when specified. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",r);return function e(t){return ve({containerDisplayName:"DragSource",createHandler:i,registerHandler:l,createConnector:function e(t){return new w(t)},createMonitor:function e(t){return new D(t)},DecoratedComponent:t,getType:a,collect:r,options:n})}}function ke(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Se(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function Oe(e,t,r){if(t)Se(e.prototype,t);if(r)Se(e,r);return e}function Me(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var De=false;var Te=function(){function e(t){ke(this,e);Me(this,"internalMonitor",void 0);Me(this,"targetId",null);this.internalMonitor=t.getMonitor()}Oe(e,[{key:"receiveHandlerId",value:function e(t){this.targetId=t}},{key:"getHandlerId",value:function e(){return this.targetId}},{key:"subscribeToStateChange",value:function e(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}},{key:"canDrop",value:function e(){if(!this.targetId){return false}Object(s["a"])(!De,"You may not call monitor.canDrop() inside your canDrop() implementation. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{De=true;return this.internalMonitor.canDropOnTarget(this.targetId)}finally{De=false}}},{key:"isOver",value:function e(t){if(!this.targetId){return false}return this.internalMonitor.isOverTarget(this.targetId,t)}},{key:"getItemType",value:function e(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function e(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function e(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function e(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function e(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function e(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function e(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function e(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function e(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]);return e}();function Le(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Ce(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function je(e,t,r){if(t)Ce(e.prototype,t);if(r)Ce(e,r);return e}function Ne(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var Ie=function(){function e(t){var r=this;Le(this,e);Ne(this,"hooks",d({dropTarget:function e(t,n){r.clearDropTarget();r.dropTargetOptions=n;if(m(t)){r.dropTargetRef=t}else{r.dropTargetNode=t}r.reconnect()}}));Ne(this,"handlerId",null);Ne(this,"dropTargetRef",null);Ne(this,"dropTargetNode",void 0);Ne(this,"dropTargetOptionsInternal",null);Ne(this,"unsubscribeDropTarget",void 0);Ne(this,"lastConnectedHandlerId",null);Ne(this,"lastConnectedDropTarget",null);Ne(this,"lastConnectedDropTargetOptions",null);Ne(this,"backend",void 0);this.backend=t}je(e,[{key:"connectTarget",get:function e(){return this.dropTarget}},{key:"reconnect",value:function e(){var t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();if(t){this.disconnectDropTarget()}var r=this.dropTarget;if(!this.handlerId){return}if(!r){this.lastConnectedDropTarget=r;return}if(t){this.lastConnectedHandlerId=this.handlerId;this.lastConnectedDropTarget=r;this.lastConnectedDropTargetOptions=this.dropTargetOptions;this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions)}}},{key:"receiveHandlerId",value:function e(t){if(t===this.handlerId){return}this.handlerId=t;this.reconnect()}},{key:"dropTargetOptions",get:function e(){return this.dropTargetOptionsInternal},set:function e(t){this.dropTargetOptionsInternal=t}},{key:"didHandlerIdChange",value:function e(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function e(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function e(){return!y(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function e(){if(this.unsubscribeDropTarget){this.unsubscribeDropTarget();this.unsubscribeDropTarget=undefined}}},{key:"dropTarget",get:function e(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function e(){this.dropTargetRef=null;this.dropTargetNode=null}}]);return e}();function Pe(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Re(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function Fe(e,t,r){if(t)Re(e.prototype,t);if(r)Re(e,r);return e}function Ye(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var Be=["canDrop","hover","drop"];var He=function(){function e(t,r,n){Pe(this,e);Ye(this,"props",null);Ye(this,"spec",void 0);Ye(this,"monitor",void 0);Ye(this,"ref",void 0);this.spec=t;this.monitor=r;this.ref=n}Fe(e,[{key:"receiveProps",value:function e(t){this.props=t}},{key:"receiveMonitor",value:function e(t){this.monitor=t}},{key:"canDrop",value:function e(){if(!this.spec.canDrop){return true}return this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function e(){if(!this.spec.hover||!this.props){return}this.spec.hover(this.props,this.monitor,L(this.ref))}},{key:"drop",value:function e(){if(!this.spec.drop){return undefined}var t=this.spec.drop(this.props,this.monitor,this.ref.current);if(false){}return t}}]);return e}();function Ue(e){Object.keys(e).forEach((function(t){Object(s["a"])(Be.indexOf(t)>-1,"Expected the drop target specification to only have "+"some of the following keys: %s. "+'Instead received a specification with an unexpected "%s" key. '+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",Be.join(", "),t);Object(s["a"])(typeof e[t]==="function","Expected %s in the drop target specification to be a function. "+"Instead received a specification with %s: %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])}));return function t(r,n){return new He(e,r,n)}}function ze(e,t,r){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};I("DropTarget","type, spec, collect[, options]",e,t,r,n);var a=e;if(typeof e!=="function"){Object(s["a"])(B(e,true),'Expected "type" provided as the first argument to DropTarget to be '+"a string, an array of strings, or a function that returns either given "+"the current props. Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",e);a=function t(){return e}}Object(s["a"])(Y(t),'Expected "spec" provided as the second argument to DropTarget to be '+"a plain object. Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t);var i=Ue(t);Object(s["a"])(typeof r==="function",'Expected "collect" provided as the third argument to DropTarget to be '+"a function that returns a plain object of props to inject. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",r);Object(s["a"])(Y(n),'Expected "options" provided as the fourth argument to DropTarget to be '+"a plain object when specified. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",r);return function e(t){return ve({containerDisplayName:"DropTarget",createHandler:i,registerHandler:u,createMonitor:function e(t){return new Te(t)},createConnector:function e(t){return new Ie(t)},DecoratedComponent:t,getType:a,collect:r,options:n})}}function qe(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){qe=function e(t){return typeof t}}else{qe=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return qe(e)}function Ve(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function We(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function Ke(e,t,r){if(t)We(e.prototype,t);if(r)We(e,r);return e}function Ge(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)Qe(e,t)}function Qe(e,t){Qe=Object.setPrototypeOf||function e(t,r){t.__proto__=r;return t};return Qe(e,t)}function Je(e){var t=$e();return function r(){var n=et(e),a;if(t){var i=et(this).constructor;a=Reflect.construct(n,arguments,i)}else{a=n.apply(this,arguments)}return Ze(this,a)}}function Ze(e,t){if(t&&(qe(t)==="object"||typeof t==="function")){return t}else if(t!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return Xe(e)}function Xe(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function $e(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return true}catch(e){return false}}function et(e){et=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return et(e)}function tt(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function rt(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};I("DragLayer","collect[, options]",e,t);Object(s["a"])(typeof e==="function",'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e);Object(s["a"])(Y(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. '+"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",t);return function r(a){var o=a;var u=t.arePropsEqual,l=u===void 0?y:u;var c=o.displayName||o.name||"Component";var f=function(t){Ge(a,t);var r=Je(a);function a(){var e;Ve(this,a);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++){n[o]=arguments[o]}e=r.call.apply(r,[this].concat(n));tt(Xe(e),"manager",void 0);tt(Xe(e),"isCurrentlyMounted",false);tt(Xe(e),"unsubscribeFromOffsetChange",void 0);tt(Xe(e),"unsubscribeFromStateChange",void 0);tt(Xe(e),"ref",Object(i["createRef"])());tt(Xe(e),"handleChange",(function(){if(!e.isCurrentlyMounted){return}var t=e.getCurrentState();if(!y(t,e.state)){e.setState(t)}}));return e}Ke(a,[{key:"getDecoratedComponentInstance",value:function e(){Object(s["a"])(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()");return this.ref.current}},{key:"shouldComponentUpdate",value:function e(t,r){return!l(t,this.props)||!y(r,this.state)}},{key:"componentDidMount",value:function e(){this.isCurrentlyMounted=true;this.handleChange()}},{key:"componentWillUnmount",value:function e(){this.isCurrentlyMounted=false;if(this.unsubscribeFromOffsetChange){this.unsubscribeFromOffsetChange();this.unsubscribeFromOffsetChange=undefined}if(this.unsubscribeFromStateChange){this.unsubscribeFromStateChange();this.unsubscribeFromStateChange=undefined}}},{key:"render",value:function e(){var t=this;return Object(H["jsx"])(n["a"].Consumer,{children:function e(r){var n=r.dragDropManager;if(n===undefined){return null}t.receiveDragDropManager(n);if(!t.isCurrentlyMounted){return null}return Object(H["jsx"])(o,Object.assign({},t.props,t.state,{ref:N(o)?t.ref:null}),void 0)}},void 0)}},{key:"receiveDragDropManager",value:function e(t){if(this.manager!==undefined){return}this.manager=t;Object(s["a"])(qe(t)==="object","Could not find the drag and drop manager in the context of %s. "+"Make sure to render a DndProvider component in your top-level component. "+"Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",c,c);var r=this.manager.getMonitor();this.unsubscribeFromOffsetChange=r.subscribeToOffsetChange(this.handleChange);this.unsubscribeFromStateChange=r.subscribeToStateChange(this.handleChange)}},{key:"getCurrentState",value:function t(){if(!this.manager){return{}}var r=this.manager.getMonitor();return e(r,this.props)}}]);return a}(i["Component"]);tt(f,"displayName","DragLayer(".concat(c,")"));tt(f,"DecoratedComponent",a);return J()(f,a)}}var nt=typeof window!=="undefined"?i["useLayoutEffect"]:i["useEffect"];function at(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){at=function e(t){return typeof t}}else{at=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return at(e)}function it(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function ot(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function st(e,t,r){if(t)ot(e.prototype,t);if(r)ot(e,r);return e}function ut(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var lt=function(){function e(t,r,n){it(this,e);ut(this,"spec",void 0);ut(this,"monitor",void 0);ut(this,"connector",void 0);this.spec=t;this.monitor=r;this.connector=n}st(e,[{key:"beginDrag",value:function e(){var t;var r=this.spec;var n=this.monitor;var a=null;if(at(r.item)==="object"){a=r.item}else if(typeof r.item==="function"){a=r.item(n)}else{a={}}return(t=a)!==null&&t!==void 0?t:null}},{key:"canDrag",value:function e(){var t=this.spec;var r=this.monitor;if(typeof t.canDrag==="boolean"){return t.canDrag}else if(typeof t.canDrag==="function"){return t.canDrag(r)}else{return true}}},{key:"isDragging",value:function e(t,r){var n=this.spec;var a=this.monitor;var e=n.isDragging;return e?e(a):r===t.getSourceId()}},{key:"endDrag",value:function e(){var t=this.spec;var r=this.monitor;var n=this.connector;var a=t.end;if(a){a(r.getItem(),r)}n.reconnect()}}]);return e}();function ct(e,t,r){var n=Object(i["useMemo"])((function(){return new lt(e,t,r)}),[t,r]);Object(i["useEffect"])((function(){n.spec=e}),[e]);return n}function ft(){var e=Object(i["useContext"])(n["a"]),t=e.dragDropManager;Object(s["a"])(t!=null,"Expected drag drop context");return t}function dt(e){return Object(i["useMemo"])((function(){var t=e.type;Object(s["a"])(t!=null,"spec.type must be defined");return t}),[e])}function pt(e,t){return gt(e)||yt(e,t)||vt(e,t)||ht()}function ht(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vt(e,t){if(!e)return;if(typeof e==="string")return mt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mt(e,t)}function mt(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function yt(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function gt(e){if(Array.isArray(e))return e}function bt(e,t,r){var n=ft();var a=ct(e,t,r);var i=dt(e);nt((function e(){if(i!=null){var o=l(i,a,n),s=pt(o,2),u=s[0],c=s[1];t.receiveHandlerId(u);r.receiveHandlerId(u);return c}}),[n,t,r,a,i])}function At(e){return xt(e)||Et(e)||wt(e)||_t()}function _t(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function wt(e,t){if(!e)return;if(typeof e==="string")return kt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kt(e,t)}function Et(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xt(e){if(Array.isArray(e))return kt(e)}function kt(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function St(e,t){var r=At(t||[]);if(t==null&&typeof e!=="function"){r.push(e)}return Object(i["useMemo"])((function(){return typeof e==="function"?e():e}),r)}function Ot(){var e=ft();return Object(i["useMemo"])((function(){return new D(e)}),[e])}function Mt(e,t){var r=ft();var n=Object(i["useMemo"])((function(){return new w(r.getBackend())}),[r]);nt((function(){n.dragSourceOptions=e||null;n.reconnect();return function(){return n.disconnectDragSource()}}),[n,e]);nt((function(){n.dragPreviewOptions=t||null;n.reconnect();return function(){return n.disconnectDragPreview()}}),[n,t]);return n}var Dt=r(697);var Tt=r.n(Dt);function Lt(e,t){return Pt(e)||It(e,t)||jt(e,t)||Ct()}function Ct(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function jt(e,t){if(!e)return;if(typeof e==="string")return Nt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nt(e,t)}function Nt(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function It(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function Pt(e){if(Array.isArray(e))return e}function Rt(e,t,r){var n=Object(i["useState"])((function(){return t(e)})),a=Lt(n,2),o=a[0],s=a[1];var u=Object(i["useCallback"])((function(){var n=t(e);if(!Tt()(o,n)){s(n);if(r){r()}}}),[o,e,r]);nt(u);return[o,u]}function Ft(e,t){return zt(e)||Ut(e,t)||Bt(e,t)||Yt()}function Yt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Bt(e,t){if(!e)return;if(typeof e==="string")return Ht(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ht(e,t)}function Ht(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function Ut(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function zt(e){if(Array.isArray(e))return e}function qt(e,t,r){var n=Rt(e,t,r),a=Ft(n,2),i=a[0],o=a[1];nt((function t(){var r=e.getHandlerId();if(r==null){return}return e.subscribeToStateChange(o,{handlerIds:[r]})}),[e,o]);return i}function Vt(e,t,r){return qt(t,e||function(){return{}},(function(){return r.reconnect()}))}function Wt(e){return Object(i["useMemo"])((function(){return e.hooks.dragSource()}),[e])}function Kt(e){return Object(i["useMemo"])((function(){return e.hooks.dragPreview()}),[e])}function Gt(e,t){var r=St(e,t);Object(s["a"])(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var n=Ot();var a=Mt(r.options,r.previewOptions);bt(r,n,a);return[Vt(r.collect,n,a),Wt(a),Kt(a)]}function Qt(e){var t=e.accept;return Object(i["useMemo"])((function(){Object(s["a"])(e.accept!=null,"accept must be defined");return Array.isArray(t)?t:[t]}),[t])}function Jt(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Zt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function Xt(e,t,r){if(t)Zt(e.prototype,t);if(r)Zt(e,r);return e}function $t(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var er=function(){function e(t,r){Jt(this,e);$t(this,"spec",void 0);$t(this,"monitor",void 0);this.spec=t;this.monitor=r}Xt(e,[{key:"canDrop",value:function e(){var t=this.spec;var r=this.monitor;return t.canDrop?t.canDrop(r.getItem(),r):true}},{key:"hover",value:function e(){var t=this.spec;var r=this.monitor;if(t.hover){t.hover(r.getItem(),r)}}},{key:"drop",value:function e(){var t=this.spec;var r=this.monitor;if(t.drop){return t.drop(r.getItem(),r)}}}]);return e}();function tr(e,t){var r=Object(i["useMemo"])((function(){return new er(e,t)}),[t]);Object(i["useEffect"])((function(){r.spec=e}),[e]);return r}function rr(e,t){return sr(e)||or(e,t)||ar(e,t)||nr()}function nr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ar(e,t){if(!e)return;if(typeof e==="string")return ir(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ir(e,t)}function ir(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function or(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function sr(e){if(Array.isArray(e))return e}function ur(e,t,r){var n=ft();var a=tr(e,t);var i=Qt(e);nt((function e(){var o=u(i,a,n),s=rr(o,2),l=s[0],c=s[1];t.receiveHandlerId(l);r.receiveHandlerId(l);return c}),[n,t,a,r,i.map((function(e){return e.toString()})).join("|")])}function lr(){var e=ft();return Object(i["useMemo"])((function(){return new Te(e)}),[e])}function cr(e){var t=ft();var r=Object(i["useMemo"])((function(){return new Ie(t.getBackend())}),[t]);nt((function(){r.dropTargetOptions=e||null;r.reconnect();return function(){return r.disconnectDropTarget()}}),[e]);return r}function fr(e){return Object(i["useMemo"])((function(){return e.hooks.dropTarget()}),[e])}function dr(e,t){var r=St(e,t);var n=lr();var a=cr(r.options);ur(r,n,a);return[Vt(r.collect,n,a),fr(a)]}function pr(e,t){return gr(e)||yr(e,t)||vr(e,t)||hr()}function hr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vr(e,t){if(!e)return;if(typeof e==="string")return mr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mr(e,t)}function mr(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function yr(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function gr(e){if(Array.isArray(e))return e}function br(e){var t=ft();var r=t.getMonitor();var n=Rt(r,e),a=pr(n,2),o=a[0],s=a[1];Object(i["useEffect"])((function(){return r.subscribeToOffsetChange(s)}));Object(i["useEffect"])((function(){return r.subscribeToStateChange(s)}));return o}},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=i;var a=n(r(119));function i(e){if(e===void 0){e=(0,a.default)()}try{return e.activeElement}catch(e){}}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=r(93);var a=v(n);var i=r(0);var o=v(i);var s=r(1);var u=v(s);var l=r(18);var c=v(l);var f=r(600);var d=v(f);var p=r(134);var h=v(p);function v(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function y(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function g(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var b=27;function A(e){return e.button===0}function _(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var w=function(e){g(t,e);function t(r,n){m(this,t);var i=y(this,e.call(this,r,n));i.addEventListeners=function(){var e=i.props.event;var t=(0,h.default)(i);i.documentMouseCaptureListener=(0,d.default)(t,e,i.handleMouseCapture,true);i.documentMouseListener=(0,d.default)(t,e,i.handleMouse);i.documentKeyupListener=(0,d.default)(t,"keyup",i.handleKeyUp)};i.removeEventListeners=function(){if(i.documentMouseCaptureListener){i.documentMouseCaptureListener.remove()}if(i.documentMouseListener){i.documentMouseListener.remove()}if(i.documentKeyupListener){i.documentKeyupListener.remove()}};i.handleMouseCapture=function(e){i.preventMouseRootClose=_(e)||!A(e)||(0,a.default)(c.default.findDOMNode(i),e.target)};i.handleMouse=function(e){if(!i.preventMouseRootClose&&i.props.onRootClose){i.props.onRootClose(e)}};i.handleKeyUp=function(e){if(e.keyCode===b&&i.props.onRootClose){i.props.onRootClose(e)}};i.preventMouseRootClose=false;return i}t.prototype.componentDidMount=function e(){if(!this.props.disabled){this.addEventListeners()}};t.prototype.componentDidUpdate=function e(t){if(!this.props.disabled&&t.disabled){this.addEventListeners()}else if(this.props.disabled&&!t.disabled){this.removeEventListeners()}};t.prototype.componentWillUnmount=function e(){if(!this.props.disabled){this.removeEventListeners()}};t.prototype.render=function e(){return this.props.children};return t}(u.default.Component);w.displayName="RootCloseWrapper";w.propTypes={onRootClose:o.default.func,children:o.default.element,disabled:o.default.bool,event:o.default.oneOf(["click","mousedown"])};w.defaultProps={event:"click"};t.default=w;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=c;var n=r(195);var a=s(n);var i=r(119);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return e&&e.tagName.toLowerCase()==="body"}function l(e){var t=(0,o.default)(e);var r=(0,a.default)(t);var n=r.innerWidth;if(!n){var i=t.documentElement.getBoundingClientRect();n=i.right-Math.abs(i.left)}return t.body.clientWidth<n}function c(e){var t=(0,a.default)(e);return t||u(e)?l(e):e.scrollHeight>e.clientHeight}e.exports=t["default"]},function(e,t,r){var n=r(27),a=r(1309),i=r(671);var o="Expected a function";var s=Math.max,u=Math.min;function l(e,t,r){var l,c,f,d,p,h,v=0,m=false,y=false,g=true;if(typeof e!="function"){throw new TypeError(o)}t=i(t)||0;if(n(r)){m=!!r.leading;y="maxWait"in r;f=y?s(i(r.maxWait)||0,t):f;g="trailing"in r?!!r.trailing:g}function b(t){var r=l,n=c;l=c=undefined;v=t;d=e.apply(n,r);return d}function A(e){v=e;p=setTimeout(E,t);return m?b(e):d}function _(e){var r=e-h,n=e-v,a=t-r;return y?u(a,f-n):a}function w(e){var r=e-h,n=e-v;return h===undefined||r>=t||r<0||y&&n>=f}function E(){var e=a();if(w(e)){return x(e)}p=setTimeout(E,_(e))}function x(e){p=undefined;if(g&&l){return b(e)}l=c=undefined;return d}function k(){if(p!==undefined){clearTimeout(p)}v=0;l=h=c=p=undefined}function S(){return p===undefined?d:x(a())}function O(){var e=a(),r=w(e);l=arguments;c=this;h=e;if(r){if(p===undefined){return A(h)}if(y){clearTimeout(p);p=setTimeout(E,t);return b(h)}}if(p===undefined){p=setTimeout(E,t)}return d}O.cancel=k;O.flush=S;return O}e.exports=l},function(e,t){function r(e){var t=e==null?0:e.length;return t?e[t-1]:undefined}e.exports=r},function(e,t,r){"use strict";r.r(t);r.d(t,"createStore",(function(){return o}));r.d(t,"combineReducers",(function(){return f}));r.d(t,"bindActionCreators",(function(){return p}));r.d(t,"applyMiddleware",(function(){return m}));r.d(t,"compose",(function(){return h}));var n=r(146);var a=r(148);var i={INIT:"@@redux/INIT"};function o(e,t,r){var s;if(typeof t==="function"&&typeof r==="undefined"){r=t;t=undefined}if(typeof r!=="undefined"){if(typeof r!=="function"){throw new Error("Expected the enhancer to be a function.")}return r(o)(e,t)}if(typeof e!=="function"){throw new Error("Expected the reducer to be a function.")}var u=e;var l=t;var c=[];var f=c;var d=false;function p(){if(f===c){f=c.slice()}}function h(){return l}function v(e){if(typeof e!=="function"){throw new Error("Expected listener to be a function.")}var t=true;p();f.push(e);return function r(){if(!t){return}t=false;p();var n=f.indexOf(e);f.splice(n,1)}}function m(e){if(!Object(n["a"])(e)){throw new Error("Actions must be plain objects. "+"Use custom middleware for async actions.")}if(typeof e.type==="undefined"){throw new Error('Actions may not have an undefined "type" property. '+"Have you misspelled a constant?")}if(d){throw new Error("Reducers may not dispatch actions.")}try{d=true;l=u(l,e)}finally{d=false}var t=c=f;for(var r=0;r<t.length;r++){var a=t[r];a()}return e}function y(e){if(typeof e!=="function"){throw new Error("Expected the nextReducer to be a function.")}u=e;m({type:i.INIT})}function g(){var e;var t=v;return e={subscribe:function e(r){if(typeof r!=="object"){throw new TypeError("Expected the observer to be an object.")}function n(){if(r.next){r.next(h())}}n();var a=t(n);return{unsubscribe:a}}},e[a["a"]]=function(){return this},e}m({type:i.INIT});return s={dispatch:m,subscribe:v,getState:h,replaceReducer:y},s[a["a"]]=g,s}function s(e){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error(e)}try{throw new Error(e)}catch(e){}}function u(e,t){var r=t&&t.type;var n=r&&'"'+r.toString()+'"'||"an action";return"Given action "+n+', reducer "'+e+'" returned undefined. '+"To ignore an action, you must explicitly return the previous state. "+"If you want this reducer to hold no value, you can return null instead of undefined."}function l(e,t,r,a){var o=Object.keys(t);var s=r&&r.type===i.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0){return"Store does not have a valid reducer. Make sure the argument passed "+"to combineReducers is an object whose values are reducers."}if(!Object(n["a"])(e)){return"The "+s+' has unexpected type of "'+{}.toString.call(e).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"')}var u=Object.keys(e).filter((function(e){return!t.hasOwnProperty(e)&&!a[e]}));u.forEach((function(e){a[e]=true}));if(u.length>0){return"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+s+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.')}}function c(e){Object.keys(e).forEach((function(t){var r=e[t];var n=r(undefined,{type:i.INIT});if(typeof n==="undefined"){throw new Error('Reducer "'+t+'" returned undefined during initialization. '+"If the state passed to the reducer is undefined, you must "+"explicitly return the initial state. The initial state may "+"not be undefined. If you don't want to set a value for this reducer, "+"you can use null instead of undefined.")}var a="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if(typeof r(undefined,{type:a})==="undefined"){throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+i.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the "+"current state for any unknown actions, unless it is undefined, "+"in which case you must return the initial state, regardless of the "+"action type. The initial state may not be undefined, but can be null.")}}))}function f(e){var t=Object.keys(e);var r={};for(var n=0;n<t.length;n++){var a=t[n];if(false){}if(typeof e[a]==="function"){r[a]=e[a]}}var i=Object.keys(r);var o=void 0;if(false){}var s=void 0;try{c(r)}catch(e){s=e}return function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=arguments[1];if(s){throw s}if(false){var a}var o=false;var l={};for(var c=0;c<i.length;c++){var f=i[c];var d=r[f];var p=t[f];var h=d(p,n);if(typeof h==="undefined"){var v=u(f,n);throw new Error(v)}l[f]=h;o=o||h!==p}return o?l:t}}function d(e,t){return function(){return t(e.apply(undefined,arguments))}}function p(e,t){if(typeof e==="function"){return d(e,t)}if(typeof e!=="object"||e===null){throw new Error("bindActionCreators expected an object or a function, instead received "+(e===null?"null":typeof e)+". "+'Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?')}var r=Object.keys(e);var n={};for(var a=0;a<r.length;a++){var i=r[a];var o=e[i];if(typeof o==="function"){n[i]=d(o,t)}}return n}function h(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}if(t.length===0){return function(e){return e}}if(t.length===1){return t[0]}return t.reduce((function(e,t){return function(){return e(t.apply(undefined,arguments))}}))}var v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};function m(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}return function(e){return function(r,n,a){var i=e(r,n,a);var o=i.dispatch;var s=[];var u={getState:i.getState,dispatch:function e(t){return o(t)}};s=t.map((function(e){return e(u)}));o=h.apply(undefined,s)(i.dispatch);return v({},i,{dispatch:o})}}}function y(){}if(false){}},function(e,t,r){e.exports=r(995)},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(285));t.on=a.default;var i=n(r(286));t.off=i.default;var o=n(r(1008));t.filter=o.default;var s=n(r(1010));t.listen=s.default;var u={on:a.default,off:i.default,filter:o.default,listen:s.default};t.default=u},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(0);var i=m(a);var o=r(10);var s=m(o);var u=r(1);var l=m(u);var c=r(604);var f=m(c);var d=r(1019);var p=m(d);var h=r(343);var v=m(h);function m(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var r={};for(var n in e){if(t.indexOf(n)>=0)continue;if(!Object.prototype.hasOwnProperty.call(e,n))continue;r[n]=e[n]}return r}function g(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function b(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function A(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var _=function(e){A(t,e);function t(r,n){g(this,t);var a=b(this,e.call(this,r,n));a.handleHidden=function(){a.setState({exited:true});if(a.props.onExited){var e;(e=a.props).onExited.apply(e,arguments)}};a.state={exited:!r.show};a.onHiddenListener=a.handleHidden.bind(a);return a}t.prototype.componentWillReceiveProps=function e(t){if(t.show){this.setState({exited:false})}else if(!t.transition){this.setState({exited:true})}};t.prototype.render=function e(){var t=this.props,r=t.container,n=t.containerPadding,a=t.target,i=t.placement,o=t.shouldUpdatePosition,s=t.rootClose,u=t.children,c=t.transition,d=y(t,["container","containerPadding","target","placement","shouldUpdatePosition","rootClose","children","transition"]);var h=d.show||c&&!this.state.exited;if(!h){return null}var m=u;m=l.default.createElement(p.default,{container:r,containerPadding:n,target:a,placement:i,shouldUpdatePosition:o},m);if(c){var g=d.onExit,b=d.onExiting,A=d.onEnter,_=d.onEntering,w=d.onEntered;m=l.default.createElement(c,{in:d.show,appear:true,onExit:g,onExiting:b,onExited:this.onHiddenListener,onEnter:A,onEntering:_,onEntered:w},m)}if(s){m=l.default.createElement(v.default,{onRootClose:d.onHide},m)}return l.default.createElement(f.default,{container:r},m)};return t}(l.default.Component);_.propTypes=n({},f.default.propTypes,p.default.propTypes,{show:i.default.bool,rootClose:i.default.bool,onHide:function e(t){var r=i.default.func;if(t.rootClose){r=r.isRequired}for(var n=arguments.length,a=Array(n>1?n-1:0),o=1;o<n;o++){a[o-1]=arguments[o]}return r.apply(undefined,[t].concat(a))},transition:s.default,onEnter:i.default.func,onEntering:i.default.func,onEntered:i.default.func,onExit:i.default.func,onExiting:i.default.func,onExited:i.default.func});t.default=_;e.exports=t["default"]},function(e,t,r){"use strict";(function(e){var n=r(225);var a=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var i=a&&typeof e=="object"&&e&&!e.nodeType&&e;var o=i&&i.exports===a;var s=o&&n["a"].process;var u=function(){try{var e=i&&i.require&&i.require("util").types;if(e){return e}return s&&s.binding&&s.binding("util")}catch(e){}}();t["a"]=u}).call(this,r(172)(e))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"getTickValues",{enumerable:true,get:function e(){return n.getTickValues}});Object.defineProperty(t,"getNiceTickValues",{enumerable:true,get:function e(){return n.getNiceTickValues}});Object.defineProperty(t,"getTickValuesFixedDomain",{enumerable:true,get:function e(){return n.getTickValuesFixedDomain}});var n=r(1322)},function(e,t,r){var n=r(307),a=r(289),i=r(52);function o(e,t){var r={};t=i(t,3);a(e,(function(e,a,i){n(r,a,t(e,a,i))}));return r}e.exports=o},,,,function(e,t,r){"use strict";t.__esModule=true;t.readState=t.saveState=undefined;var n=r(24);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}var o={QuotaExceededError:true,QUOTA_EXCEEDED_ERR:true};var s={SecurityError:true};var u="@@History/";var l=function e(t){return u+t};var c=t.saveState=function e(t,r){if(!window.sessionStorage){false?undefined:void 0;return}try{if(r==null){window.sessionStorage.removeItem(l(t))}else{window.sessionStorage.setItem(l(t),JSON.stringify(r))}}catch(e){if(s[e.name]){false?undefined:void 0;return}if(o[e.name]&&window.sessionStorage.length===0){false?undefined:void 0;return}throw e}};var f=t.readState=function e(t){var r=void 0;try{r=window.sessionStorage.getItem(l(t))}catch(e){if(s[e.name]){false?undefined:void 0;return undefined}}if(r){try{return JSON.parse(r)}catch(e){}}return undefined}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(359);var a=r(360);var i=r(732);var o=r(733);var s=r(734);var u=r(735);var l=n.combineReducers({collection:a.default,book:i.default,loans:s.default,auth:o.default,preferences:u.default});t.default=l},function(e,t,r){"use strict";r.r(t);r.d(t,"createStore",(function(){return s}));r.d(t,"combineReducers",(function(){return d}));r.d(t,"bindActionCreators",(function(){return h}));r.d(t,"applyMiddleware",(function(){return g}));r.d(t,"compose",(function(){return y}));r.d(t,"__DO_NOT_USE__ActionTypes",(function(){return i}));var n=r(148);var a=function e(){return Math.random().toString(36).substring(7).split("").join(".")};var i={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function e(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function o(e){if(typeof e!=="object"||e===null)return false;var t=e;while(Object.getPrototypeOf(t)!==null){t=Object.getPrototypeOf(t)}return Object.getPrototypeOf(e)===t}function s(e,t,r){var a;if(typeof t==="function"&&typeof r==="function"||typeof r==="function"&&typeof arguments[3]==="function"){throw new Error("It looks like you are passing several store enhancers to "+"createStore(). This is not supported. Instead, compose them "+"together to a single function")}if(typeof t==="function"&&typeof r==="undefined"){r=t;t=undefined}if(typeof r!=="undefined"){if(typeof r!=="function"){throw new Error("Expected the enhancer to be a function.")}return r(s)(e,t)}if(typeof e!=="function"){throw new Error("Expected the reducer to be a function.")}var u=e;var l=t;var c=[];var f=c;var d=false;function p(){if(f===c){f=c.slice()}}function h(){if(d){throw new Error("You may not call store.getState() while the reducer is executing. "+"The reducer has already received the state as an argument. "+"Pass it down from the top reducer instead of reading it from the store.")}return l}function v(e){if(typeof e!=="function"){throw new Error("Expected the listener to be a function.")}if(d){throw new Error("You may not call store.subscribe() while the reducer is executing. "+"If you would like to be notified after the store has been updated, subscribe from a "+"component and invoke store.getState() in the callback to access the latest state. "+"See https://redux.js.org/api-reference/store#subscribe(listener) for more details.")}var t=true;p();f.push(e);return function r(){if(!t){return}if(d){throw new Error("You may not unsubscribe from a store listener while the reducer is executing. "+"See https://redux.js.org/api-reference/store#subscribe(listener) for more details.")}t=false;p();var n=f.indexOf(e);f.splice(n,1)}}function m(e){if(!o(e)){throw new Error("Actions must be plain objects. "+"Use custom middleware for async actions.")}if(typeof e.type==="undefined"){throw new Error('Actions may not have an undefined "type" property. '+"Have you misspelled a constant?")}if(d){throw new Error("Reducers may not dispatch actions.")}try{d=true;l=u(l,e)}finally{d=false}var t=c=f;for(var r=0;r<t.length;r++){var n=t[r];n()}return e}function y(e){if(typeof e!=="function"){throw new Error("Expected the nextReducer to be a function.")}u=e;m({type:i.REPLACE})}function g(){var e;var t=v;return e={subscribe:function e(r){if(typeof r!=="object"||r===null){throw new TypeError("Expected the observer to be an object.")}function n(){if(r.next){r.next(h())}}n();var a=t(n);return{unsubscribe:a}}},e[n["a"]]=function(){return this},e}m({type:i.INIT});return a={dispatch:m,subscribe:v,getState:h,replaceReducer:y},a[n["a"]]=g,a}function u(e){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error(e)}try{throw new Error(e)}catch(e){}}function l(e,t){var r=t&&t.type;var n=r&&'action "'+String(r)+'"'||"an action";return"Given "+n+', reducer "'+e+'" returned undefined. '+"To ignore an action, you must explicitly return the previous state. "+"If you want this reducer to hold no value, you can return null instead of undefined."}function c(e,t,r,n){var a=Object.keys(t);var s=r&&r.type===i.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(a.length===0){return"Store does not have a valid reducer. Make sure the argument passed "+"to combineReducers is an object whose values are reducers."}if(!o(e)){return"The "+s+' has unexpected type of "'+{}.toString.call(e).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+a.join('", "')+'"')}var u=Object.keys(e).filter((function(e){return!t.hasOwnProperty(e)&&!n[e]}));u.forEach((function(e){n[e]=true}));if(r&&r.type===i.REPLACE)return;if(u.length>0){return"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+s+". ")+"Expected to find one of the known reducer keys instead: "+('"'+a.join('", "')+'". Unexpected keys will be ignored.')}}function f(e){Object.keys(e).forEach((function(t){var r=e[t];var n=r(undefined,{type:i.INIT});if(typeof n==="undefined"){throw new Error('Reducer "'+t+'" returned undefined during initialization. '+"If the state passed to the reducer is undefined, you must "+"explicitly return the initial state. The initial state may "+"not be undefined. If you don't want to set a value for this reducer, "+"you can use null instead of undefined.")}if(typeof r(undefined,{type:i.PROBE_UNKNOWN_ACTION()})==="undefined"){throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+i.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the "+"current state for any unknown actions, unless it is undefined, "+"in which case you must return the initial state, regardless of the "+"action type. The initial state may not be undefined, but can be null.")}}))}function d(e){var t=Object.keys(e);var r={};for(var n=0;n<t.length;n++){var a=t[n];if(false){}if(typeof e[a]==="function"){r[a]=e[a]}}var i=Object.keys(r);var o;if(false){}var s;try{f(r)}catch(e){s=e}return function e(t,n){if(t===void 0){t={}}if(s){throw s}if(false){var a}var o=false;var u={};for(var c=0;c<i.length;c++){var f=i[c];var d=r[f];var p=t[f];var h=d(p,n);if(typeof h==="undefined"){var v=l(f,n);throw new Error(v)}u[f]=h;o=o||h!==p}return o?u:t}}function p(e,t){return function(){return t(e.apply(this,arguments))}}function h(e,t){if(typeof e==="function"){return p(e,t)}if(typeof e!=="object"||e===null){throw new Error("bindActionCreators expected an object or a function, instead received "+(e===null?"null":typeof e)+". "+'Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?')}var r=Object.keys(e);var n={};for(var a=0;a<r.length;a++){var i=r[a];var o=e[i];if(typeof o==="function"){n[i]=p(o,t)}}return n}function v(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function m(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))}n.forEach((function(t){v(e,t,r[t])}))}return e}function y(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}if(t.length===0){return function(e){return e}}if(t.length===1){return t[0]}return t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return function(e){return function(){var r=e.apply(void 0,arguments);var n=function e(){throw new Error("Dispatching while constructing your middleware is not allowed. "+"Other middleware would not be applied to this dispatch.")};var a={getState:r.getState,dispatch:function e(){return n.apply(void 0,arguments)}};var i=t.map((function(e){return e(a)}));n=y.apply(void 0,i)(r.dispatch);return m({},r,{dispatch:n})}}}function b(){}if(false){}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};var a=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n};Object.defineProperty(t,"__esModule",{value:true});t.initialState=void 0;var i=r(731);var o=r(64);t.initialState={url:null,data:null,isFetching:false,isFetchingPage:false,error:null,history:[]};var s=function(e,r){var s,u;if(e===void 0){e=t.initialState}switch(r.type){case o.default.COLLECTION_REQUEST:return n(n({},e),{isFetching:true,error:null});case o.default.COLLECTION_FAILURE:return n(n({},e),{isFetching:false,error:r.error});case o.default.COLLECTION_LOAD:return n(n({},e),{data:r.data,url:r.url?r.url:e.url,isFetching:false,error:null,history:i.default(e,r)});case o.default.COLLECTION_CLEAR:return n(n({},e),{data:null,url:null,error:null,history:e.history.slice(0,-1)});case o.default.PAGE_REQUEST:return n(n({},e),{pageUrl:r.url,isFetchingPage:true,error:null});case o.default.PAGE_FAILURE:return n(n({},e),{isFetchingPage:false,error:r.error});case o.default.PAGE_LOAD:return n(n({},e),{data:Object.assign({},e.data,{books:a((u=(s=e.data)===null||s===void 0?void 0:s.books)!==null&&u!==void 0?u:[]).concat(r.data.books),nextPageUrl:r.data.nextPageUrl}),isFetchingPage:false});case o.default.SEARCH_DESCRIPTION_LOAD:return n(n({},e),{data:Object.assign({},e.data,{search:r.data})});case o.default.CLOSE_ERROR:return n(n({},e),{error:null});default:return e}};t.default=s},function(e,t,r){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n};Object.defineProperty(t,"__esModule",{value:true});t.isServerSamlProvider=t.getEnglishValue=t.flattenSamlProviders=t.generateCredentials=t.SAML_AUTH_TYPE=void 0;t.SAML_AUTH_TYPE="http://librarysimplified.org/authtype/SAML-2.0";function a(e,t){var r=btoa(e+":"+t);return"Basic "+r}t.generateCredentials=a;function i(e){return e.reduce((function(e,r){if(t.isServerSamlProvider(r)){return n(e,o(r))}return n(e,[r])}),[])}t.flattenSamlProviders=i;function o(e){return e.method.links.map((function(r){var n;return{method:{href:r.href,type:e.method.type,description:(n=t.getEnglishValue(r.display_names))!==null&&n!==void 0?n:"Unknown SAML Provider"},id:r.href,plugin:e.plugin}}))}t.getEnglishValue=function(e){var t;return(t=e.find((function(e){return e.language==="en"})))===null||t===void 0?void 0:t.value};t.isServerSamlProvider=function(e){return e.id===t.SAML_AUTH_TYPE&&"links"in e.method}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(738);var a=r(238);t.OPDSFeed=a.default;var i=r(363);t.NavigationFeed=i.default;var o=r(364);t.AcquisitionFeed=o.default;var s=r(241);t.OPDSEntry=s.default;var u=r(374);t.PartialOPDSEntry=u.default;var l=r(375);t.Contributor=l.default;var c=r(377);t.Category=c.default;var f=r(376);t.Series=f.default;var d=r(378);t.Summary=d.default;var p=r(58);t.OPDSLink=p.default;var h=r(366);t.OPDSCatalogRootLink=h.default;var v=r(367);t.OPDSFacetLink=v.default;var m=r(368);t.SearchLink=m.default;var y=r(239);t.AlternateLink=y.default;var g=r(240);t.CompleteEntryLink=g.default;var b=r(370);t.OPDSCrawlableLink=b.default;var A=r(372);t.OPDSShelfLink=A.default;var _=r(237);t.OPDSAcquisitionLink=_.default;var w=r(369);t.OPDSArtworkLink=w.default;var E=r(371);t.OPDSCollectionLink=E.default;t.default=n.default},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(238);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(238);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=r(366);var o=r(367);var s=r(368);var u=r(237);var l=r(740);var c=r(741);var f=r(742);var d=r(743);var p=r(744);var h=r(369);var v=r(239);var m=r(240);var y=r(370);var g=r(371);var b=r(372);var A=r(100);var _=r(59);var w=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=this.parseAttribute(e,"href");var r=this.parseAttribute(e,"rel");var n=this.parseAttribute(e,"type");var _=this.parseAttribute(e,"title");var w=this.parseAttribute(e,"role");if(r===i.default.REL){return new i.default({href:t,type:n,title:_})}else if(r===o.default.REL){var E=this.prefixes[A.default.OPDS_URI];var x=this.parseAttribute(e,E+"facetGroup");var k=this.parseAttribute(e,E+"activeFacet")==="true";var S=this.prefixes[A.default.THR_URI];var O=parseInt(this.parseAttribute(e,S+"count"),10);return new o.default({href:t,type:n,title:_,facetGroup:x,activeFacet:k,count:O})}else if(r===s.default.REL){return new s.default({href:t,type:n,title:_})}else if(this.isAcquisitionLinkRel(r)){var E=this.prefixes[A.default.OPDS_URI];var M=new l.default(this.prefixes);var D=this.parseSubtags(e,E+"price",M);var T=new c.default(this.prefixes);var L=this.parseSubtags(e,E+"indirectAcquisition",T);var C=new f.default(this.prefixes);var j=this.parseSubtag(e,E+"availability",C);var N=new d.default(this.prefixes);var I=this.parseSubtag(e,E+"holds",N);var P=new p.default(this.prefixes);var R=this.parseSubtag(e,E+"copies",P);return new u.default({href:t,rel:r,type:n,title:_,prices:D,indirectAcquisitions:L,availability:j,holds:I,copies:R})}else if(r===v.default.REL){if(n===m.default.TYPE){return new m.default({href:t,type:n,title:_})}else{return new v.default({href:t,type:n,title:_})}}else if(this.isArtworkLinkRel(r)){return new h.default({href:t,rel:r,type:n,title:_})}else if(r===y.default.REL){return new y.default({href:t,rel:r,type:n,title:_})}else if(r===g.default.REL){return new g.default({href:t,rel:r,type:n,title:_})}else if(r===b.default.REL){return new b.default({href:t,rel:r})}else{return new a.default({href:t,rel:r,type:n,title:_,role:w})}};t.prototype.isAcquisitionLinkRel=function(e){return u.default.RELS.indexOf(e)!==-1};t.prototype.isArtworkLinkRel=function(e){return h.default.RELS.indexOf(e)!==-1};return t}(_.default);t.default=w},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="start";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="http://opds-spec.org/facet";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="search";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.BASE_REL="http://opds-spec.org/image";t.IMAGE_REL=t.BASE_REL;t.THUMBNAIL_REL=t.BASE_REL+"/thumbnail";t.RELS=[t.IMAGE_REL,t.THUMBNAIL_REL];return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="http://opds-spec.org/crawlable";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="collection";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="http://opds-spec.org/shelf";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(241);var i=r(374);var o=r(240);var s=r(365);var u=r(745);var l=r(746);var c=r(747);var f=r(100);var d=r(378);var p=r(59);var h=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=new s.default(this.prefixes);var r=this.prefixes[f.default.ATOM_URI];var n=this.prefixes[f.default.DC_URI];var p=this.prefixes[f.default.SCHEMA_URI];var h=this.parseSubtagContent(e,r+"id");var v=this.parseSubtagContent(e,r+"updated");var m=this.parseSubtagContent(e,r+"title");var y=new u.default(this.prefixes);var g=this.parseSubtags(e,r+"author",y);var b=this.parseSubtags(e,r+"contributor",y);var A=this.parseSubtagContent(e,p+"alternativeHeadline");var _=new l.default(this.prefixes);var w=this.parseSubtag(e,p+"Series",_);var E=this.parseSubtags(e,r+"link",t);var x=new c.default(this.prefixes);var k=this.parseSubtags(e,r+"category",x);var S=e[n+"identifier"];var O;if(S&&S.length>0){O=S.map((function(e){return e["_"]}))}else{O=[]}var M=this.parseSubtagContent(e,n+"issued");var D=this.parseSubtagContent(e,n+"language");var T=this.parseSubtagContent(e,r+"rights");var L=this.parseSubtagContent(e,n+"publisher");var C=this.parseSubtagContent(e,r+"published");var j;var N=this.parseSubtagContent(e,r+"content");if(!N){var I=e[r+"content"];if(I&&I.length>0){j=this.parseAttribute(I[0],"src")}}if(!N){N=this.parseSubtagContent(e,r+"summary")}var P=new d.default({content:N,link:j});var R=a.default;var F=E.find((function(e){return e instanceof o.default}));if(F){R=i.default}return new R({id:h,updated:v,title:m,authors:g,contributors:b,subtitle:A,series:w,links:E,categories:k,identifiers:O,issued:M,language:D,rights:T,publisher:L,published:C,summary:P,unparsed:e})};return t}(p.default);t.default=h},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(241);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(a.default);t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e){Object.assign(this,e)}return e}();t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e){Object.assign(this,e)}return e}();t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e){Object.assign(this,e)}return e}();t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e){Object.assign(this,e)}return e}();t.default=n},function(e,t,r){(function(){"use strict";var e,n,a,i,o=function(e,t){for(var r in t){if(s.call(t,r))e[r]=t[r]}function n(){this.constructor=e}n.prototype=t.prototype;e.prototype=new n;e.__super__=t.prototype;return e},s={}.hasOwnProperty;n=r(242);e=r(748);a=r(757);i=r(393);t.defaults=n.defaults;t.processors=i;t.ValidationError=function(e){o(t,e);function t(e){this.message=e}return t}(Error);t.Builder=e.Builder;t.Parser=a.Parser;t.parseString=a.parseString;t.parseStringPromise=a.parseStringPromise}).call(this)},function(e,t){(function(){var t;e.exports=t=function(){function e(){}e.prototype.hasFeature=function(e,t){return true};e.prototype.createDocumentType=function(e,t,r){throw new Error("This DOM method is not implemented.")};e.prototype.createDocument=function(e,t,r){throw new Error("This DOM method is not implemented.")};e.prototype.createHTMLDocument=function(e){throw new Error("This DOM method is not implemented.")};e.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented.")};return e}()}).call(this)},function(e,t,r){(function(){var t,n,a,i,o,s,u,l,c=function(e,t){for(var r in t){if(f.call(t,r))e[r]=t[r]}function n(){this.constructor=e}n.prototype=t.prototype;e.prototype=new n;e.__super__=t.prototype;return e},f={}.hasOwnProperty;l=r(72).isPlainObject;a=r(380);n=r(750);o=r(47);t=r(26);u=r(384);s=r(256);e.exports=i=function(e){c(r,e);function r(e){r.__super__.constructor.call(this,null);this.name="#document";this.type=t.Document;this.documentURI=null;this.domConfig=new n;e||(e={});if(!e.writer){e.writer=new s}this.options=e;this.stringify=new u(e)}Object.defineProperty(r.prototype,"implementation",{value:new a});Object.defineProperty(r.prototype,"doctype",{get:function(){var e,r,n,a;a=this.children;for(r=0,n=a.length;r<n;r++){e=a[r];if(e.type===t.DocType){return e}}return null}});Object.defineProperty(r.prototype,"documentElement",{get:function(){return this.rootObject||null}});Object.defineProperty(r.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(r.prototype,"strictErrorChecking",{get:function(){return false}});Object.defineProperty(r.prototype,"xmlEncoding",{get:function(){if(this.children.length!==0&&this.children[0].type===t.Declaration){return this.children[0].encoding}else{return null}}});Object.defineProperty(r.prototype,"xmlStandalone",{get:function(){if(this.children.length!==0&&this.children[0].type===t.Declaration){return this.children[0].standalone==="yes"}else{return false}}});Object.defineProperty(r.prototype,"xmlVersion",{get:function(){if(this.children.length!==0&&this.children[0].type===t.Declaration){return this.children[0].version}else{return"1.0"}}});Object.defineProperty(r.prototype,"URL",{get:function(){return this.documentURI}});Object.defineProperty(r.prototype,"origin",{get:function(){return null}});Object.defineProperty(r.prototype,"compatMode",{get:function(){return null}});Object.defineProperty(r.prototype,"characterSet",{get:function(){return null}});Object.defineProperty(r.prototype,"contentType",{get:function(){return null}});r.prototype.end=function(e){var t;t={};if(!e){e=this.options.writer}else if(l(e)){t=e;e=this.options.writer}return e.document(this,e.filterOptions(t))};r.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))};r.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createProcessingInstruction=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.importNode=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createElementNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getElementsByTagNameNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.renameNode=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createNodeIterator=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createTreeWalker=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};return r}(o)}).call(this)},function(e,t,r){(function(){var t,n,a;t=r(26);a=r(47);e.exports=n=function(){function e(e,r,n){this.parent=e;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}if(r==null){throw new Error("Missing attribute name. "+this.debugInfo(r))}this.name=this.stringify.name(r);this.value=this.stringify.attValue(n);this.type=t.Attribute;this.isId=false;this.schemaTypeInfo=null}Object.defineProperty(e.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(e.prototype,"ownerElement",{get:function(){return this.parent}});Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}});Object.defineProperty(e.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(e.prototype,"prefix",{get:function(){return""}});Object.defineProperty(e.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(e.prototype,"specified",{get:function(){return true}});e.prototype.clone=function(){return Object.create(this)};e.prototype.toString=function(e){return this.options.writer.attribute(this,this.options.writer.filterOptions(e))};e.prototype.debugInfo=function(e){e=e||this.name;if(e==null){return"parent: <"+this.parent.name+">"}else{return"attribute: {"+e+"}, parent: <"+this.parent.name+">"}};e.prototype.isEqualNode=function(e){if(e.namespaceURI!==this.namespaceURI){return false}if(e.prefix!==this.prefix){return false}if(e.localName!==this.localName){return false}if(e.value!==this.value){return false}return true};return e}()}).call(this)},function(e,t,r){(function(){var t,n,a,i=function(e,t){for(var r in t){if(o.call(t,r))e[r]=t[r]}function n(){this.constructor=e}n.prototype=t.prototype;e.prototype=new n;e.__super__=t.prototype;return e},o={}.hasOwnProperty;a=r(47);t=r(26);e.exports=n=function(e){i(r,e);function r(e){r.__super__.constructor.call(this,e);this.type=t.Dummy}r.prototype.clone=function(){return Object.create(this)};r.prototype.toString=function(e){return""};return r}(a)}).call(this)},function(e,t){(function(){var t,r=function(e,t){return function(){return e.apply(t,arguments)}},n={}.hasOwnProperty;e.exports=t=function(){function e(e){this.assertLegalName=r(this.assertLegalName,this);this.assertLegalChar=r(this.assertLegalChar,this);var t,a,i;e||(e={});this.options=e;if(!this.options.version){this.options.version="1.0"}a=e.stringify||{};for(t in a){if(!n.call(a,t))continue;i=a[t];this[t]=i}}e.prototype.name=function(e){if(this.options.noValidation){return e}return this.assertLegalName(""+e||"")};e.prototype.text=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(this.textEscape(""+e||""))};e.prototype.cdata=function(e){if(this.options.noValidation){return e}e=""+e||"";e=e.replace("]]>","]]]]><![CDATA[>");return this.assertLegalChar(e)};e.prototype.comment=function(e){if(this.options.noValidation){return e}e=""+e||"";if(e.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+e)}return this.assertLegalChar(e)};e.prototype.raw=function(e){if(this.options.noValidation){return e}return""+e||""};e.prototype.attValue=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(this.attEscape(e=""+e||""))};e.prototype.insTarget=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.insValue=function(e){if(this.options.noValidation){return e}e=""+e||"";if(e.match(/\?>/)){throw new Error("Invalid processing instruction value: "+e)}return this.assertLegalChar(e)};e.prototype.xmlVersion=function(e){if(this.options.noValidation){return e}e=""+e||"";if(!e.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+e)}return e};e.prototype.xmlEncoding=function(e){if(this.options.noValidation){return e}e=""+e||"";if(!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+e)}return this.assertLegalChar(e)};e.prototype.xmlStandalone=function(e){if(this.options.noValidation){return e}if(e){return"yes"}else{return"no"}};e.prototype.dtdPubID=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdSysID=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdElementValue=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdAttType=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdAttDefault=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdEntityValue=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdNData=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.convertAttKey="@";e.prototype.convertPIKey="?";e.prototype.convertTextKey="#text";e.prototype.convertCDataKey="#cdata";e.prototype.convertCommentKey="#comment";e.prototype.convertRawKey="#raw";e.prototype.assertLegalChar=function(e){var t,r;if(this.options.noValidation){return e}t="";if(this.options.version==="1.0"){t=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(r=e.match(t)){throw new Error("Invalid character in string: "+e+" at index "+r.index)}}else if(this.options.version==="1.1"){t=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(r=e.match(t)){throw new Error("Invalid character in string: "+e+" at index "+r.index)}}return e};e.prototype.assertLegalName=function(e){var t;if(this.options.noValidation){return e}this.assertLegalChar(e);t=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;if(!e.match(t)){throw new Error("Invalid character in name")}return e};e.prototype.textEscape=function(e){var t;if(this.options.noValidation){return e}t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")};e.prototype.attEscape=function(e){var t;if(this.options.noValidation){return e}t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")};return e}()}).call(this)},function(e,t,r){(function(){var t,n,a,i,o,s,u,l,c,f,d,p,h,v,m,y,g,b={}.hasOwnProperty;g=r(72).assign;t=r(26);c=r(247);f=r(248);a=r(245);i=r(246);p=r(243);v=r(253);m=r(254);h=r(255);d=r(383);o=r(249);s=r(251);u=r(250);l=r(252);n=r(174);e.exports=y=function(){function e(e){var t,r,n;e||(e={});this.options=e;r=e.writer||{};for(t in r){if(!b.call(r,t))continue;n=r[t];this["_"+t]=this[t];this[t]=n}}e.prototype.filterOptions=function(e){var t,r,a,i,o,s,u,l;e||(e={});e=g({},this.options,e);t={writer:this};t.pretty=e.pretty||false;t.allowEmpty=e.allowEmpty||false;t.indent=(r=e.indent)!=null?r:" ";t.newline=(a=e.newline)!=null?a:"\n";t.offset=(i=e.offset)!=null?i:0;t.dontPrettyTextNodes=(o=(s=e.dontPrettyTextNodes)!=null?s:e.dontprettytextnodes)!=null?o:0;t.spaceBeforeSlash=(u=(l=e.spaceBeforeSlash)!=null?l:e.spacebeforeslash)!=null?u:"";if(t.spaceBeforeSlash===true){t.spaceBeforeSlash=" "}t.suppressPrettyCount=0;t.user={};t.state=n.None;return t};e.prototype.indent=function(e,t,r){var n;if(!t.pretty||t.suppressPrettyCount){return""}else if(t.pretty){n=(r||0)+t.offset+1;if(n>0){return new Array(n).join(t.indent)}}return""};e.prototype.endline=function(e,t,r){if(!t.pretty||t.suppressPrettyCount){return""}else{return t.newline}};e.prototype.attribute=function(e,t,r){var n;this.openAttribute(e,t,r);n=" "+e.name+'="'+e.value+'"';this.closeAttribute(e,t,r);return n};e.prototype.cdata=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<![CDATA[";t.state=n.InsideTag;a+=e.value;t.state=n.CloseTag;a+="]]>"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.comment=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"\x3c!-- ";t.state=n.InsideTag;a+=e.value;t.state=n.CloseTag;a+=" --\x3e"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.declaration=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<?xml";t.state=n.InsideTag;a+=' version="'+e.version+'"';if(e.encoding!=null){a+=' encoding="'+e.encoding+'"'}if(e.standalone!=null){a+=' standalone="'+e.standalone+'"'}t.state=n.CloseTag;a+=t.spaceBeforeSlash+"?>";a+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.docType=function(e,t,r){var a,i,o,s,u;r||(r=0);this.openNode(e,t,r);t.state=n.OpenTag;s=this.indent(e,t,r);s+="<!DOCTYPE "+e.root().name;if(e.pubID&&e.sysID){s+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'}else if(e.sysID){s+=' SYSTEM "'+e.sysID+'"'}if(e.children.length>0){s+=" [";s+=this.endline(e,t,r);t.state=n.InsideTag;u=e.children;for(i=0,o=u.length;i<o;i++){a=u[i];s+=this.writeChildNode(a,t,r+1)}t.state=n.CloseTag;s+="]"}t.state=n.CloseTag;s+=t.spaceBeforeSlash+">";s+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return s};e.prototype.element=function(e,r,a){var i,o,s,u,l,c,f,d,p,h,v,m,y,g;a||(a=0);h=false;v="";this.openNode(e,r,a);r.state=n.OpenTag;v+=this.indent(e,r,a)+"<"+e.name;m=e.attribs;for(p in m){if(!b.call(m,p))continue;i=m[p];v+=this.attribute(i,r,a)}s=e.children.length;u=s===0?null:e.children[0];if(s===0||e.children.every((function(e){return(e.type===t.Text||e.type===t.Raw)&&e.value===""}))){if(r.allowEmpty){v+=">";r.state=n.CloseTag;v+="</"+e.name+">"+this.endline(e,r,a)}else{r.state=n.CloseTag;v+=r.spaceBeforeSlash+"/>"+this.endline(e,r,a)}}else if(r.pretty&&s===1&&(u.type===t.Text||u.type===t.Raw)&&u.value!=null){v+=">";r.state=n.InsideTag;r.suppressPrettyCount++;h=true;v+=this.writeChildNode(u,r,a+1);r.suppressPrettyCount--;h=false;r.state=n.CloseTag;v+="</"+e.name+">"+this.endline(e,r,a)}else{if(r.dontPrettyTextNodes){y=e.children;for(l=0,f=y.length;l<f;l++){o=y[l];if((o.type===t.Text||o.type===t.Raw)&&o.value!=null){r.suppressPrettyCount++;h=true;break}}}v+=">"+this.endline(e,r,a);r.state=n.InsideTag;g=e.children;for(c=0,d=g.length;c<d;c++){o=g[c];v+=this.writeChildNode(o,r,a+1)}r.state=n.CloseTag;v+=this.indent(e,r,a)+"</"+e.name+">";if(h){r.suppressPrettyCount--}v+=this.endline(e,r,a);r.state=n.None}this.closeNode(e,r,a);return v};e.prototype.writeChildNode=function(e,r,n){switch(e.type){case t.CData:return this.cdata(e,r,n);case t.Comment:return this.comment(e,r,n);case t.Element:return this.element(e,r,n);case t.Raw:return this.raw(e,r,n);case t.Text:return this.text(e,r,n);case t.ProcessingInstruction:return this.processingInstruction(e,r,n);case t.Dummy:return"";case t.Declaration:return this.declaration(e,r,n);case t.DocType:return this.docType(e,r,n);case t.AttributeDeclaration:return this.dtdAttList(e,r,n);case t.ElementDeclaration:return this.dtdElement(e,r,n);case t.EntityDeclaration:return this.dtdEntity(e,r,n);case t.NotationDeclaration:return this.dtdNotation(e,r,n);default:throw new Error("Unknown XML node type: "+e.constructor.name)}};e.prototype.processingInstruction=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<?";t.state=n.InsideTag;a+=e.target;if(e.value){a+=" "+e.value}t.state=n.CloseTag;a+=t.spaceBeforeSlash+"?>";a+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.raw=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r);t.state=n.InsideTag;a+=e.value;t.state=n.CloseTag;a+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.text=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r);t.state=n.InsideTag;a+=e.value;t.state=n.CloseTag;a+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.dtdAttList=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<!ATTLIST";t.state=n.InsideTag;a+=" "+e.elementName+" "+e.attributeName+" "+e.attributeType;if(e.defaultValueType!=="#DEFAULT"){a+=" "+e.defaultValueType}if(e.defaultValue){a+=' "'+e.defaultValue+'"'}t.state=n.CloseTag;a+=t.spaceBeforeSlash+">"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.dtdElement=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<!ELEMENT";t.state=n.InsideTag;a+=" "+e.name+" "+e.value;t.state=n.CloseTag;a+=t.spaceBeforeSlash+">"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.dtdEntity=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<!ENTITY";t.state=n.InsideTag;if(e.pe){a+=" %"}a+=" "+e.name;if(e.value){a+=' "'+e.value+'"'}else{if(e.pubID&&e.sysID){a+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'}else if(e.sysID){a+=' SYSTEM "'+e.sysID+'"'}if(e.nData){a+=" NDATA "+e.nData}}t.state=n.CloseTag;a+=t.spaceBeforeSlash+">"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.dtdNotation=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<!NOTATION";t.state=n.InsideTag;a+=" "+e.name;if(e.pubID&&e.sysID){a+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'}else if(e.pubID){a+=' PUBLIC "'+e.pubID+'"'}else if(e.sysID){a+=' SYSTEM "'+e.sysID+'"'}t.state=n.CloseTag;a+=t.spaceBeforeSlash+">"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.openNode=function(e,t,r){};e.prototype.closeNode=function(e,t,r){};e.prototype.openAttribute=function(e,t,r){};e.prototype.closeAttribute=function(e,t,r){};return e}()}).call(this)},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return r.call(e)=="[object Array]"}},function(e,t,r){"use strict";(function(t,n){var a=r(175);e.exports=E;var i=r(386);var o;E.ReadableState=w;var s=r(142).EventEmitter;var u=function(e,t){return e.listeners(t).length};var l=r(388);var c=r(176).Buffer;var f=t.Uint8Array||function(){};function d(e){return c.from(e)}function p(e){return c.isBuffer(e)||e instanceof f}var h=Object.create(r(152));h.inherits=r(125);var v=r(762);var m=void 0;if(v&&v.debuglog){m=v.debuglog("stream")}else{m=function(){}}var y=r(763);var g=r(389);var b;h.inherits(E,l);var A=["error","close","destroy","pause","resume"];function _(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(i(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function w(e,t){o=o||r(101);e=e||{};var n=t instanceof o;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.readableObjectMode;var a=e.highWaterMark;var i=e.readableHighWaterMark;var s=this.objectMode?16:16*1024;if(a||a===0)this.highWaterMark=a;else if(n&&(i||i===0))this.highWaterMark=i;else this.highWaterMark=s;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new y;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!b)b=r(260).StringDecoder;this.decoder=new b(e.encoding);this.encoding=e.encoding}}function E(e){o=o||r(101);if(!(this instanceof E))return new E(e);this._readableState=new w(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}l.call(this)}Object.defineProperty(E.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});E.prototype.destroy=g.destroy;E.prototype._undestroy=g.undestroy;E.prototype._destroy=function(e,t){this.push(null);t(e)};E.prototype.push=function(e,t){var r=this._readableState;var n;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=c.from(e,t);t=""}n=true}}else{n=true}return x(this,e,t,false,n)};E.prototype.unshift=function(e){return x(this,e,null,true,false)};function x(e,t,r,n,a){var i=e._readableState;if(t===null){i.reading=false;L(e,i)}else{var o;if(!a)o=S(i,t);if(o){e.emit("error",o)}else if(i.objectMode||t&&t.length>0){if(typeof t!=="string"&&!i.objectMode&&Object.getPrototypeOf(t)!==c.prototype){t=d(t)}if(n){if(i.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else k(e,i,t,true)}else if(i.ended){e.emit("error",new Error("stream.push() after EOF"))}else{i.reading=false;if(i.decoder&&!r){t=i.decoder.write(t);if(i.objectMode||t.length!==0)k(e,i,t,false);else N(e,i)}else{k(e,i,t,false)}}}else if(!n){i.reading=false}}return O(i)}function k(e,t,r,n){if(t.flowing&&t.length===0&&!t.sync){e.emit("data",r);e.read(0)}else{t.length+=t.objectMode?1:r.length;if(n)t.buffer.unshift(r);else t.buffer.push(r);if(t.needReadable)C(e)}N(e,t)}function S(e,t){var r;if(!p(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){r=new TypeError("Invalid non-string/buffer chunk")}return r}function O(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}E.prototype.isPaused=function(){return this._readableState.flowing===false};E.prototype.setEncoding=function(e){if(!b)b=r(260).StringDecoder;this._readableState.decoder=new b(e);this._readableState.encoding=e;return this};var M=8388608;function D(e){if(e>=M){e=M}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function T(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=D(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}E.prototype.read=function(e){m("read",e);e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){m("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)V(this);else C(this);return null}e=T(e,t);if(e===0&&t.ended){if(t.length===0)V(this);return null}var n=t.needReadable;m("need readable",n);if(t.length===0||t.length-e<t.highWaterMark){n=true;m("length less than watermark",n)}if(t.ended||t.reading){n=false;m("reading or ended",n)}else if(n){m("do read");t.reading=true;t.sync=true;if(t.length===0)t.needReadable=true;this._read(t.highWaterMark);t.sync=false;if(!t.reading)e=T(r,t)}var a;if(e>0)a=H(e,t);else a=null;if(a===null){t.needReadable=true;e=0}else{t.length-=e}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)V(this)}if(a!==null)this.emit("data",a);return a};function L(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;C(e)}function C(e){var t=e._readableState;t.needReadable=false;if(!t.emittedReadable){m("emitReadable",t.flowing);t.emittedReadable=true;if(t.sync)a.nextTick(j,e);else j(e)}}function j(e){m("emit readable");e.emit("readable");B(e)}function N(e,t){if(!t.readingMore){t.readingMore=true;a.nextTick(I,e,t)}}function I(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark){m("maybeReadMore read 0");e.read(0);if(r===t.length)break;else r=t.length}t.readingMore=false}E.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};E.prototype.pipe=function(e,t){var r=this;var i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1;m("pipe count=%d opts=%j",i.pipesCount,t);var o=(!t||t.end!==false)&&e!==n.stdout&&e!==n.stderr;var s=o?c:A;if(i.endEmitted)a.nextTick(s);else r.once("end",s);e.on("unpipe",l);function l(e,t){m("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;p()}}}function c(){m("onend");e.end()}var f=P(r);e.on("drain",f);var d=false;function p(){m("cleanup");e.removeListener("close",g);e.removeListener("finish",b);e.removeListener("drain",f);e.removeListener("error",y);e.removeListener("unpipe",l);r.removeListener("end",c);r.removeListener("end",A);r.removeListener("data",v);d=true;if(i.awaitDrain&&(!e._writableState||e._writableState.needDrain))f()}var h=false;r.on("data",v);function v(t){m("ondata");h=false;var n=e.write(t);if(false===n&&!h){if((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&K(i.pipes,e)!==-1)&&!d){m("false write response, pause",r._readableState.awaitDrain);r._readableState.awaitDrain++;h=true}r.pause()}}function y(t){m("onerror",t);A();e.removeListener("error",y);if(u(e,"error")===0)e.emit("error",t)}_(e,"error",y);function g(){e.removeListener("finish",b);A()}e.once("close",g);function b(){m("onfinish");e.removeListener("close",g);A()}e.once("finish",b);function A(){m("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!i.flowing){m("pipe resume");r.resume()}return e};function P(e){return function(){var t=e._readableState;m("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&u(e,"data")){t.flowing=true;B(e)}}}E.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,r);return this}if(!e){var n=t.pipes;var a=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var i=0;i<a;i++){n[i].emit("unpipe",this,r)}return this}var o=K(t.pipes,e);if(o===-1)return this;t.pipes.splice(o,1);t.pipesCount-=1;if(t.pipesCount===1)t.pipes=t.pipes[0];e.emit("unpipe",this,r);return this};E.prototype.on=function(e,t){var r=l.prototype.on.call(this,e,t);if(e==="data"){if(this._readableState.flowing!==false)this.resume()}else if(e==="readable"){var n=this._readableState;if(!n.endEmitted&&!n.readableListening){n.readableListening=n.needReadable=true;n.emittedReadable=false;if(!n.reading){a.nextTick(R,this)}else if(n.length){C(this)}}}return r};E.prototype.addListener=E.prototype.on;function R(e){m("readable nexttick read 0");e.read(0)}E.prototype.resume=function(){var e=this._readableState;if(!e.flowing){m("resume");e.flowing=true;F(this,e)}return this};function F(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;a.nextTick(Y,e,t)}}function Y(e,t){if(!t.reading){m("resume read 0");e.read(0)}t.resumeScheduled=false;t.awaitDrain=0;e.emit("resume");B(e);if(t.flowing&&!t.reading)e.read(0)}E.prototype.pause=function(){m("call pause flowing=%j",this._readableState.flowing);if(false!==this._readableState.flowing){m("pause");this._readableState.flowing=false;this.emit("pause")}return this};function B(e){var t=e._readableState;m("flow",t.flowing);while(t.flowing&&e.read()!==null){}}E.prototype.wrap=function(e){var t=this;var r=this._readableState;var n=false;e.on("end",(function(){m("wrapped end");if(r.decoder&&!r.ended){var e=r.decoder.end();if(e&&e.length)t.push(e)}t.push(null)}));e.on("data",(function(a){m("wrapped data");if(r.decoder)a=r.decoder.write(a);if(r.objectMode&&(a===null||a===undefined))return;else if(!r.objectMode&&(!a||!a.length))return;var i=t.push(a);if(!i){n=true;e.pause()}}));for(var a in e){if(this[a]===undefined&&typeof e[a]==="function"){this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a)}}for(var i=0;i<A.length;i++){e.on(A[i],this.emit.bind(this,A[i]))}this._read=function(t){m("wrapped _read",t);if(n){n=false;e.resume()}};return this};Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});E._fromList=H;function H(e,t){if(t.length===0)return null;var r;if(t.objectMode)r=t.buffer.shift();else if(!e||e>=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.head.data;else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=U(e,t.buffer,t.decoder)}return r}function U(e,t,r){var n;if(e<t.head.data.length){n=t.head.data.slice(0,e);t.head.data=t.head.data.slice(e)}else if(e===t.head.data.length){n=t.shift()}else{n=r?z(e,t):q(e,t)}return n}function z(e,t){var r=t.head;var n=1;var a=r.data;e-=a.length;while(r=r.next){var i=r.data;var o=e>i.length?i.length:e;if(o===i.length)a+=i;else a+=i.slice(0,e);e-=o;if(e===0){if(o===i.length){++n;if(r.next)t.head=r.next;else t.head=t.tail=null}else{t.head=r;r.data=i.slice(o)}break}++n}t.length-=n;return a}function q(e,t){var r=c.allocUnsafe(e);var n=t.head;var a=1;n.data.copy(r);e-=n.data.length;while(n=n.next){var i=n.data;var o=e>i.length?i.length:e;i.copy(r,r.length-e,0,o);e-=o;if(e===0){if(o===i.length){++a;if(n.next)t.head=n.next;else t.head=t.tail=null}else{t.head=n;n.data=i.slice(o)}break}++a}t.length-=a;return r}function V(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!t.endEmitted){t.ended=true;a.nextTick(W,t,e)}}function W(e,t){if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end")}}function K(e,t){for(var r=0,n=e.length;r<n;r++){if(e[r]===t)return r}return-1}}).call(this,r(25),r(126))},function(e,t,r){e.exports=r(142).EventEmitter},function(e,t,r){"use strict";var n=r(175);function a(e,t){var r=this;var a=this._readableState&&this._readableState.destroyed;var i=this._writableState&&this._writableState.destroyed;if(a||i){if(t){t(e)}else if(e&&(!this._writableState||!this._writableState.errorEmitted)){n.nextTick(o,this,e)}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,(function(e){if(!t&&e){n.nextTick(o,r,e);if(r._writableState){r._writableState.errorEmitted=true}}else if(t){t(e)}}));return this}function i(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function o(e,t){e.emit("error",t)}e.exports={destroy:a,undestroy:i}},function(e,t,r){(function(e){var n=typeof e!=="undefined"&&e||typeof self!=="undefined"&&self||window;var a=Function.prototype.apply;t.setTimeout=function(){return new i(a.call(setTimeout,n,arguments),clearTimeout)};t.setInterval=function(){return new i(a.call(setInterval,n,arguments),clearInterval)};t.clearTimeout=t.clearInterval=function(e){if(e){e.close()}};function i(e,t){this._id=e;this._clearFn=t}i.prototype.unref=i.prototype.ref=function(){};i.prototype.close=function(){this._clearFn.call(n,this._id)};t.enroll=function(e,t){clearTimeout(e._idleTimeoutId);e._idleTimeout=t};t.unenroll=function(e){clearTimeout(e._idleTimeoutId);e._idleTimeout=-1};t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;if(t>=0){e._idleTimeoutId=setTimeout((function t(){if(e._onTimeout)e._onTimeout()}),t)}};r(391);t.setImmediate=typeof self!=="undefined"&&self.setImmediate||typeof e!=="undefined"&&e.setImmediate||this&&this.setImmediate;t.clearImmediate=typeof self!=="undefined"&&self.clearImmediate||typeof e!=="undefined"&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(25))},function(e,t,r){(function(e,t){(function(e,r){"use strict";if(e.setImmediate){return}var n=1;var a={};var i=false;var o=e.document;var s;function u(e){if(typeof e!=="function"){e=new Function(""+e)}var t=new Array(arguments.length-1);for(var r=0;r<t.length;r++){t[r]=arguments[r+1]}var i={callback:e,args:t};a[n]=i;s(n);return n++}function l(e){delete a[e]}function c(e){var t=e.callback;var n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(r,n);break}}function f(e){if(i){setTimeout(f,0,e)}else{var t=a[e];if(t){i=true;try{c(t)}finally{l(e);i=false}}}}function d(){s=function(e){t.nextTick((function(){f(e)}))}}function p(){if(e.postMessage&&!e.importScripts){var t=true;var r=e.onmessage;e.onmessage=function(){t=false};e.postMessage("","*");e.onmessage=r;return t}}function h(){var t="setImmediate$"+Math.random()+"$";var r=function(r){if(r.source===e&&typeof r.data==="string"&&r.data.indexOf(t)===0){f(+r.data.slice(t.length))}};if(e.addEventListener){e.addEventListener("message",r,false)}else{e.attachEvent("onmessage",r)}s=function(r){e.postMessage(t+r,"*")}}function v(){var e=new MessageChannel;e.port1.onmessage=function(e){var t=e.data;f(t)};s=function(t){e.port2.postMessage(t)}}function m(){var e=o.documentElement;s=function(t){var r=o.createElement("script");r.onreadystatechange=function(){f(t);r.onreadystatechange=null;e.removeChild(r);r=null};e.appendChild(r)}}function y(){s=function(e){setTimeout(f,0,e)}}var g=Object.getPrototypeOf&&Object.getPrototypeOf(e);g=g&&g.setTimeout?g:e;if({}.toString.call(e.process)==="[object process]"){d()}else if(p()){h()}else if(e.MessageChannel){v()}else if(o&&"onreadystatechange"in o.createElement("script")){m()}else{y()}g.setImmediate=u;g.clearImmediate=l})(typeof self==="undefined"?typeof e==="undefined"?this:e:self)}).call(this,r(25),r(126))},function(e,t,r){"use strict";e.exports=o;var n=r(101);var a=Object.create(r(152));a.inherits=r(125);a.inherits(o,n);function i(e,t){var r=this._transformState;r.transforming=false;var n=r.writecb;if(!n){return this.emit("error",new Error("write callback called multiple times"))}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);n(e);var a=this._readableState;a.reading=false;if(a.needReadable||a.length<a.highWaterMark){this._read(a.highWaterMark)}}function o(e){if(!(this instanceof o))return new o(e);n.call(this,e);this._transformState={afterTransform:i.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=true;this._readableState.sync=false;if(e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",s)}function s(){var e=this;if(typeof this._flush==="function"){this._flush((function(t,r){u(e,t,r)}))}else{u(this,null,null)}}o.prototype.push=function(e,t){this._transformState.needTransform=false;return n.prototype.push.call(this,e,t)};o.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};o.prototype._write=function(e,t,r){var n=this._transformState;n.writecb=r;n.writechunk=e;n.writeencoding=t;if(!n.transforming){var a=this._readableState;if(n.needTransform||a.needReadable||a.length<a.highWaterMark)this._read(a.highWaterMark)}};o.prototype._read=function(e){var t=this._transformState;if(t.writechunk!==null&&t.writecb&&!t.transforming){t.transforming=true;this._transform(t.writechunk,t.writeencoding,t.afterTransform)}else{t.needTransform=true}};o.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e);r.emit("close")}))};function u(e,t,r){if(t)return e.emit("error",t);if(r!=null)e.push(r);if(e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}},function(e,t){(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/);t.normalize=function(e){return e.toLowerCase()};t.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)};t.stripPrefix=function(t){return t.replace(e,"")};t.parseNumbers=function(e){if(!isNaN(e)){e=e%1===0?parseInt(e,10):parseFloat(e)}return e};t.parseBooleans=function(e){if(/^(?:true|false)$/i.test(e)){e=e.toLowerCase()==="true"}return e}}).call(this)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(8);t.default=function(e){var t={isFetching:false,fetchError:null};var r=function(r,a){if(r===void 0){r=t}switch(a.type){case e+"_"+n.default.REQUEST:return Object.assign({},r,{isFetching:true,fetchError:null});case e+"_"+n.default.FAILURE:return Object.assign({},r,{isFetching:false,fetchError:a.error});case e+"_"+n.default.SUCCESS:return Object.assign({},r,{isFetching:false,fetchError:null});default:return r}};return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){this.email=null;this.systemAdmin=false;this.sitewideLibraryManager=false;this.sitewideLibrarian=false;this.manager=false;this.libraryRoles={};this.roles=e;this.email=t;for(var r=0,n=e;r<n.length;r++){var a=n[r];switch(a.role){case"system":{this.systemAdmin=true}case"manager-all":{this.sitewideLibraryManager=true;this.manager=true}case"librarian-all":{this.sitewideLibrarian=true;break}case"manager":{this.manager=true;this.libraryRoles[a.library]="manager";break}case"librarian":{this.libraryRoles[a.library]="librarian";break}default:{break}}}}e.prototype.hasRole=function(e,t){if(this.isSystemAdmin()){return true}if(e!=="system"&&this.isSitewideLibraryManager()){return true}if(e==="librarian-all"&&this.isSitewideLibrarian()){return true}if(e==="manager"&&this.isLibraryManager(t)){return true}if(e==="librarian"&&this.isLibrarian(t)){return true}return false};e.prototype.isSystemAdmin=function(){return this.systemAdmin};e.prototype.isSitewideLibraryManager=function(){return this.sitewideLibraryManager};e.prototype.isSitewideLibrarian=function(){return this.sitewideLibrarian};e.prototype.isLibraryManager=function(e){return this.sitewideLibraryManager||this.libraryRoles[e]==="manager"};e.prototype.isLibrarian=function(e){return this.isLibraryManager(e)||this.sitewideLibrarian||this.libraryRoles[e]==="librarian"};e.prototype.isLibraryManagerOfSomeLibrary=function(){return this.manager};return e}();t.default=n},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});t.usePathFor=t.PathForContext=void 0;var a=r(1);var i=r(0);t.PathForContext=a.createContext(undefined);var o=function(e){n(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.getChildContext=function(){return{pathFor:this.props.pathFor}};r.prototype.render=function(){return a.createElement(t.PathForContext.Provider,{value:this.props.pathFor},this.props.children)};r.childContextTypes={pathFor:i.func.isRequired};return r}(a.Component);t.default=o;function s(){var e=a.useContext(t.PathForContext);if(typeof e==="undefined"){throw new Error("usePathFor must be used within a PathForProvider")}return e}t.usePathFor=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);t.TOSContext=n.createContext(null);t.TOSContextProvider=t.TOSContext.Provider},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(3);var o=r(534);var s=r(264);var u=r(177);var l=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e;var t=this.fields();var r=u.getMedium(this.props.book);return a.createElement("div",{className:"book-details"},a.createElement("div",{className:"top",lang:this.props.book.language},a.createElement("div",{className:"cover"},a.createElement(o.default,{book:this.props.book})),a.createElement("div",{className:"details"},a.createElement("h1",{className:"title"},this.props.book.title),this.props.book.subtitle&&a.createElement("p",{className:"subtitle"},this.props.book.subtitle),this.props.book.series&&this.props.book.series.name&&a.createElement("p",{className:"series"},this.props.book.series.name),this.props.book.authors&&this.props.book.authors.length>0&&a.createElement("p",{className:"authors"},"By ",this.props.book.authors.join(", ")),this.props.book.contributors&&this.props.book.contributors.length>0&&a.createElement("p",{className:"contributors"},"Contributors: ",this.props.book.contributors.join(", ")),a.createElement("ul",{className:"fields",lang:"en"},t.map((function(e){return e.value&&a.createElement("li",{className:e.name.toLowerCase().replace(" ","-"),key:e.name},e.name,": ",e.value)})),r&&a.createElement("li",{className:"item-icon-container"},u.getMediumSVG(r))))),a.createElement("div",{className:"divider"}),a.createElement("div",{className:"main"},a.createElement("div",{className:"row"},a.createElement("div",{className:"top col-sm-6 col-sm-offset-3"},a.createElement("div",{className:"circulation-links"},this.circulationLinks()),a.createElement("div",{className:"circulation-info"},this.circulationInfo())),a.createElement("div",{className:"right-column-links col-sm-3"},this.rightColumnLinks())),a.createElement("h2",null,"Summary"),a.createElement("div",{className:"summary",lang:this.props.book.language,dangerouslySetInnerHTML:{__html:(e=this.props.book.summary)!==null&&e!==void 0?e:""}})))};t.prototype.componentDidMount=function(){this.setBodyOverflow("hidden")};t.prototype.componentWillUnmount=function(){this.setBodyOverflow("visible")};t.prototype.setBodyOverflow=function(e){var t=document.getElementsByTagName("body")[0];if(t){t.style.overflow=e}};t.prototype.circulationInfo=function(){if(u.bookIsOpenAccess(this.props.book)){return[a.createElement("div",{key:"oa",className:"open-access-info"},"This open-access book is available to keep.")]}if(u.bookIsBorrowed(this.props.book)){var e=this.props.book.availability&&this.props.book.availability.until;if(e){var t=i(e).fromNow(true);return[a.createElement("div",{key:"loan",className:"loan-info"},"You have this book on loan for ",t,".")]}return[]}var r=[];var n=this.props.book.copies&&this.props.book.copies.available;var o=this.props.book.copies&&this.props.book.copies.total;var s=this.props.book.holds&&this.props.book.holds.total;var l=this.props.book.holds&&this.props.book.holds.position;if(n!==undefined&&n!==null&&o!==undefined&&o!==null){r.push(a.createElement("div",{key:"copies",className:"copies-info"},n," of ",o," copies available"))}if(s&&n===0){r.push(a.createElement("div",{key:"holds",className:"holds-info"},s," patrons in hold queue"));if(u.bookIsReserved(this.props.book)&&l!==undefined&&l!==null){r.push(a.createElement("div",{key:"holds-position",className:"holds-info"},"Your holds position: ",l))}}return r};t.prototype.rightColumnLinks=function(){};return t}(s.default);t.default=l},function(e,t,r){(function(e,t){true?t(r(3)):undefined})(this,(function(e){"use strict";
|
|
41
|
+
var n=r(759);var a=r(760);var i=r(386);t.Buffer=l;t.SlowBuffer=b;t.INSPECT_MAX_BYTES=50;l.TYPED_ARRAY_SUPPORT=e.TYPED_ARRAY_SUPPORT!==undefined?e.TYPED_ARRAY_SUPPORT:o();t.kMaxLength=s();function o(){try{var e=new Uint8Array(1);e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};return e.foo()===42&&typeof e.subarray==="function"&&e.subarray(1,1).byteLength===0}catch(e){return false}}function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(s()<t){throw new RangeError("Invalid typed array length")}if(l.TYPED_ARRAY_SUPPORT){e=new Uint8Array(t);e.__proto__=l.prototype}else{if(e===null){e=new l(t)}e.length=t}return e}function l(e,t,r){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l)){return new l(e,t,r)}if(typeof e==="number"){if(typeof t==="string"){throw new Error("If encoding is specified then the first argument must be a string")}return p(this,e)}return c(this,e,t,r)}l.poolSize=8192;l._augment=function(e){e.__proto__=l.prototype;return e};function c(e,t,r,n){if(typeof t==="number"){throw new TypeError('"value" argument must not be a number')}if(typeof ArrayBuffer!=="undefined"&&t instanceof ArrayBuffer){return m(e,t,r,n)}if(typeof t==="string"){return h(e,t,r)}return y(e,t)}l.from=function(e,t,r){return c(null,e,t,r)};if(l.TYPED_ARRAY_SUPPORT){l.prototype.__proto__=Uint8Array.prototype;l.__proto__=Uint8Array;if(typeof Symbol!=="undefined"&&Symbol.species&&l[Symbol.species]===l){Object.defineProperty(l,Symbol.species,{value:null,configurable:true})}}function f(e){if(typeof e!=="number"){throw new TypeError('"size" argument must be a number')}else if(e<0){throw new RangeError('"size" argument must not be negative')}}function d(e,t,r,n){f(t);if(t<=0){return u(e,t)}if(r!==undefined){return typeof n==="string"?u(e,t).fill(r,n):u(e,t).fill(r)}return u(e,t)}l.alloc=function(e,t,r){return d(null,e,t,r)};function p(e,t){f(t);e=u(e,t<0?0:g(t)|0);if(!l.TYPED_ARRAY_SUPPORT){for(var r=0;r<t;++r){e[r]=0}}return e}l.allocUnsafe=function(e){return p(null,e)};l.allocUnsafeSlow=function(e){return p(null,e)};function h(e,t,r){if(typeof r!=="string"||r===""){r="utf8"}if(!l.isEncoding(r)){throw new TypeError('"encoding" must be a valid string encoding')}var n=A(t,r)|0;e=u(e,n);var a=e.write(t,r);if(a!==n){e=e.slice(0,a)}return e}function v(e,t){var r=t.length<0?0:g(t.length)|0;e=u(e,r);for(var n=0;n<r;n+=1){e[n]=t[n]&255}return e}function m(e,t,r,n){t.byteLength;if(r<0||t.byteLength<r){throw new RangeError("'offset' is out of bounds")}if(t.byteLength<r+(n||0)){throw new RangeError("'length' is out of bounds")}if(r===undefined&&n===undefined){t=new Uint8Array(t)}else if(n===undefined){t=new Uint8Array(t,r)}else{t=new Uint8Array(t,r,n)}if(l.TYPED_ARRAY_SUPPORT){e=t;e.__proto__=l.prototype}else{e=v(e,t)}return e}function y(e,t){if(l.isBuffer(t)){var r=g(t.length)|0;e=u(e,r);if(e.length===0){return e}t.copy(e,0,0,r);return e}if(t){if(typeof ArrayBuffer!=="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t){if(typeof t.length!=="number"||te(t.length)){return u(e,0)}return v(e,t)}if(t.type==="Buffer"&&i(t.data)){return v(e,t.data)}}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(e){if(e>=s()){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+s().toString(16)+" bytes")}return e|0}function b(e){if(+e!=e){e=0}return l.alloc(+e)}l.isBuffer=function e(t){return!!(t!=null&&t._isBuffer)};l.compare=function e(t,r){if(!l.isBuffer(t)||!l.isBuffer(r)){throw new TypeError("Arguments must be Buffers")}if(t===r)return 0;var n=t.length;var a=r.length;for(var i=0,o=Math.min(n,a);i<o;++i){if(t[i]!==r[i]){n=t[i];a=r[i];break}}if(n<a)return-1;if(a<n)return 1;return 0};l.isEncoding=function e(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 true;default:return false}};l.concat=function e(t,r){if(!i(t)){throw new TypeError('"list" argument must be an Array of Buffers')}if(t.length===0){return l.alloc(0)}var n;if(r===undefined){r=0;for(n=0;n<t.length;++n){r+=t[n].length}}var a=l.allocUnsafe(r);var o=0;for(n=0;n<t.length;++n){var s=t[n];if(!l.isBuffer(s)){throw new TypeError('"list" argument must be an Array of Buffers')}s.copy(a,o);o+=s.length}return a};function A(e,t){if(l.isBuffer(e)){return e.length}if(typeof ArrayBuffer!=="undefined"&&typeof ArrayBuffer.isView==="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)){return e.byteLength}if(typeof e!=="string"){e=""+e}var r=e.length;if(r===0)return 0;var n=false;for(;;){switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case undefined:return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return $(e).length;default:if(n)return J(e).length;t=(""+t).toLowerCase();n=true}}}l.byteLength=A;function _(e,t,r){var n=false;if(t===undefined||t<0){t=0}if(t>this.length){return""}if(r===undefined||r>this.length){r=this.length}if(r<=0){return""}r>>>=0;t>>>=0;if(r<=t){return""}if(!e)e="utf8";while(true){switch(e){case"hex":return R(this,t,r);case"utf8":case"utf-8":return C(this,t,r);case"ascii":return I(this,t,r);case"latin1":case"binary":return P(this,t,r);case"base64":return L(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase();n=true}}}l.prototype._isBuffer=true;function w(e,t,r){var n=e[t];e[t]=e[r];e[r]=n}l.prototype.swap16=function e(){var t=this.length;if(t%2!==0){throw new RangeError("Buffer size must be a multiple of 16-bits")}for(var r=0;r<t;r+=2){w(this,r,r+1)}return this};l.prototype.swap32=function e(){var t=this.length;if(t%4!==0){throw new RangeError("Buffer size must be a multiple of 32-bits")}for(var r=0;r<t;r+=4){w(this,r,r+3);w(this,r+1,r+2)}return this};l.prototype.swap64=function e(){var t=this.length;if(t%8!==0){throw new RangeError("Buffer size must be a multiple of 64-bits")}for(var r=0;r<t;r+=8){w(this,r,r+7);w(this,r+1,r+6);w(this,r+2,r+5);w(this,r+3,r+4)}return this};l.prototype.toString=function e(){var t=this.length|0;if(t===0)return"";if(arguments.length===0)return C(this,0,t);return _.apply(this,arguments)};l.prototype.equals=function e(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(this===t)return true;return l.compare(this,t)===0};l.prototype.inspect=function e(){var r="";var n=t.INSPECT_MAX_BYTES;if(this.length>0){r=this.toString("hex",0,n).match(/.{2}/g).join(" ");if(this.length>n)r+=" ... "}return"<Buffer "+r+">"};l.prototype.compare=function e(t,r,n,a,i){if(!l.isBuffer(t)){throw new TypeError("Argument must be a Buffer")}if(r===undefined){r=0}if(n===undefined){n=t?t.length:0}if(a===undefined){a=0}if(i===undefined){i=this.length}if(r<0||n>t.length||a<0||i>this.length){throw new RangeError("out of range index")}if(a>=i&&r>=n){return 0}if(a>=i){return-1}if(r>=n){return 1}r>>>=0;n>>>=0;a>>>=0;i>>>=0;if(this===t)return 0;var o=i-a;var s=n-r;var u=Math.min(o,s);var c=this.slice(a,i);var f=t.slice(r,n);for(var d=0;d<u;++d){if(c[d]!==f[d]){o=c[d];s=f[d];break}}if(o<s)return-1;if(s<o)return 1;return 0};function E(e,t,r,n,a){if(e.length===0)return-1;if(typeof r==="string"){n=r;r=0}else if(r>2147483647){r=2147483647}else if(r<-2147483648){r=-2147483648}r=+r;if(isNaN(r)){r=a?0:e.length-1}if(r<0)r=e.length+r;if(r>=e.length){if(a)return-1;else r=e.length-1}else if(r<0){if(a)r=0;else return-1}if(typeof t==="string"){t=l.from(t,n)}if(l.isBuffer(t)){if(t.length===0){return-1}return x(e,t,r,n,a)}else if(typeof t==="number"){t=t&255;if(l.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==="function"){if(a){return Uint8Array.prototype.indexOf.call(e,t,r)}else{return Uint8Array.prototype.lastIndexOf.call(e,t,r)}}return x(e,[t],r,n,a)}throw new TypeError("val must be string, number or Buffer")}function x(e,t,r,n,a){var i=1;var o=e.length;var s=t.length;if(n!==undefined){n=String(n).toLowerCase();if(n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le"){if(e.length<2||t.length<2){return-1}i=2;o/=2;s/=2;r/=2}}function u(e,t){if(i===1){return e[t]}else{return e.readUInt16BE(t*i)}}var l;if(a){var c=-1;for(l=r;l<o;l++){if(u(e,l)===u(t,c===-1?0:l-c)){if(c===-1)c=l;if(l-c+1===s)return c*i}else{if(c!==-1)l-=l-c;c=-1}}}else{if(r+s>o)r=o-s;for(l=r;l>=0;l--){var f=true;for(var d=0;d<s;d++){if(u(e,l+d)!==u(t,d)){f=false;break}}if(f)return l}}return-1}l.prototype.includes=function e(t,r,n){return this.indexOf(t,r,n)!==-1};l.prototype.indexOf=function e(t,r,n){return E(this,t,r,n,true)};l.prototype.lastIndexOf=function e(t,r,n){return E(this,t,r,n,false)};function k(e,t,r,n){r=Number(r)||0;var a=e.length-r;if(!n){n=a}else{n=Number(n);if(n>a){n=a}}var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");if(n>i/2){n=i/2}for(var o=0;o<n;++o){var s=parseInt(t.substr(o*2,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function S(e,t,r,n){return ee(J(t,e.length-r),e,r,n)}function O(e,t,r,n){return ee(Z(t),e,r,n)}function M(e,t,r,n){return O(e,t,r,n)}function D(e,t,r,n){return ee($(t),e,r,n)}function T(e,t,r,n){return ee(X(t,e.length-r),e,r,n)}l.prototype.write=function e(t,r,n,a){if(r===undefined){a="utf8";n=this.length;r=0}else if(n===undefined&&typeof r==="string"){a=r;n=this.length;r=0}else if(isFinite(r)){r=r|0;if(isFinite(n)){n=n|0;if(a===undefined)a="utf8"}else{a=n;n=undefined}}else{throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")}var i=this.length-r;if(n===undefined||n>i)n=i;if(t.length>0&&(n<0||r<0)||r>this.length){throw new RangeError("Attempt to write outside buffer bounds")}if(!a)a="utf8";var o=false;for(;;){switch(a){case"hex":return k(this,t,r,n);case"utf8":case"utf-8":return S(this,t,r,n);case"ascii":return O(this,t,r,n);case"latin1":case"binary":return M(this,t,r,n);case"base64":return D(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase();o=true}}};l.prototype.toJSON=function e(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(e,t,r){if(t===0&&r===e.length){return n.fromByteArray(e)}else{return n.fromByteArray(e.slice(t,r))}}function C(e,t,r){r=Math.min(e.length,r);var n=[];var a=t;while(a<r){var i=e[a];var o=null;var s=i>239?4:i>223?3:i>191?2:1;if(a+s<=r){var u,l,c,f;switch(s){case 1:if(i<128){o=i}break;case 2:u=e[a+1];if((u&192)===128){f=(i&31)<<6|u&63;if(f>127){o=f}}break;case 3:u=e[a+1];l=e[a+2];if((u&192)===128&&(l&192)===128){f=(i&15)<<12|(u&63)<<6|l&63;if(f>2047&&(f<55296||f>57343)){o=f}}break;case 4:u=e[a+1];l=e[a+2];c=e[a+3];if((u&192)===128&&(l&192)===128&&(c&192)===128){f=(i&15)<<18|(u&63)<<12|(l&63)<<6|c&63;if(f>65535&&f<1114112){o=f}}}}if(o===null){o=65533;s=1}else if(o>65535){o-=65536;n.push(o>>>10&1023|55296);o=56320|o&1023}n.push(o);a+=s}return N(n)}var j=4096;function N(e){var t=e.length;if(t<=j){return String.fromCharCode.apply(String,e)}var r="";var n=0;while(n<t){r+=String.fromCharCode.apply(String,e.slice(n,n+=j))}return r}function I(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a){n+=String.fromCharCode(e[a]&127)}return n}function P(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a){n+=String.fromCharCode(e[a])}return n}function R(e,t,r){var n=e.length;if(!t||t<0)t=0;if(!r||r<0||r>n)r=n;var a="";for(var i=t;i<r;++i){a+=Q(e[i])}return a}function F(e,t,r){var n=e.slice(t,r);var a="";for(var i=0;i<n.length;i+=2){a+=String.fromCharCode(n[i]+n[i+1]*256)}return a}l.prototype.slice=function e(t,r){var n=this.length;t=~~t;r=r===undefined?n:~~r;if(t<0){t+=n;if(t<0)t=0}else if(t>n){t=n}if(r<0){r+=n;if(r<0)r=0}else if(r>n){r=n}if(r<t)r=t;var a;if(l.TYPED_ARRAY_SUPPORT){a=this.subarray(t,r);a.__proto__=l.prototype}else{var i=r-t;a=new l(i,undefined);for(var o=0;o<i;++o){a[o]=this[o+t]}}return a};function Y(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUIntLE=function e(t,r,n){t=t|0;r=r|0;if(!n)Y(t,r,this.length);var a=this[t];var i=1;var o=0;while(++o<r&&(i*=256)){a+=this[t+o]*i}return a};l.prototype.readUIntBE=function e(t,r,n){t=t|0;r=r|0;if(!n){Y(t,r,this.length)}var a=this[t+--r];var i=1;while(r>0&&(i*=256)){a+=this[t+--r]*i}return a};l.prototype.readUInt8=function e(t,r){if(!r)Y(t,1,this.length);return this[t]};l.prototype.readUInt16LE=function e(t,r){if(!r)Y(t,2,this.length);return this[t]|this[t+1]<<8};l.prototype.readUInt16BE=function e(t,r){if(!r)Y(t,2,this.length);return this[t]<<8|this[t+1]};l.prototype.readUInt32LE=function e(t,r){if(!r)Y(t,4,this.length);return(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};l.prototype.readUInt32BE=function e(t,r){if(!r)Y(t,4,this.length);return this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};l.prototype.readIntLE=function e(t,r,n){t=t|0;r=r|0;if(!n)Y(t,r,this.length);var a=this[t];var i=1;var o=0;while(++o<r&&(i*=256)){a+=this[t+o]*i}i*=128;if(a>=i)a-=Math.pow(2,8*r);return a};l.prototype.readIntBE=function e(t,r,n){t=t|0;r=r|0;if(!n)Y(t,r,this.length);var a=r;var i=1;var o=this[t+--a];while(a>0&&(i*=256)){o+=this[t+--a]*i}i*=128;if(o>=i)o-=Math.pow(2,8*r);return o};l.prototype.readInt8=function e(t,r){if(!r)Y(t,1,this.length);if(!(this[t]&128))return this[t];return(255-this[t]+1)*-1};l.prototype.readInt16LE=function e(t,r){if(!r)Y(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function e(t,r){if(!r)Y(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function e(t,r){if(!r)Y(t,4,this.length);return this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};l.prototype.readInt32BE=function e(t,r){if(!r)Y(t,4,this.length);return this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};l.prototype.readFloatLE=function e(t,r){if(!r)Y(t,4,this.length);return a.read(this,t,true,23,4)};l.prototype.readFloatBE=function e(t,r){if(!r)Y(t,4,this.length);return a.read(this,t,false,23,4)};l.prototype.readDoubleLE=function e(t,r){if(!r)Y(t,8,this.length);return a.read(this,t,true,52,8)};l.prototype.readDoubleBE=function e(t,r){if(!r)Y(t,8,this.length);return a.read(this,t,false,52,8)};function B(e,t,r,n,a,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}l.prototype.writeUIntLE=function e(t,r,n,a){t=+t;r=r|0;n=n|0;if(!a){var i=Math.pow(2,8*n)-1;B(this,t,r,n,i,0)}var o=1;var s=0;this[r]=t&255;while(++s<n&&(o*=256)){this[r+s]=t/o&255}return r+n};l.prototype.writeUIntBE=function e(t,r,n,a){t=+t;r=r|0;n=n|0;if(!a){var i=Math.pow(2,8*n)-1;B(this,t,r,n,i,0)}var o=n-1;var s=1;this[r+o]=t&255;while(--o>=0&&(s*=256)){this[r+o]=t/s&255}return r+n};l.prototype.writeUInt8=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,1,255,0);if(!l.TYPED_ARRAY_SUPPORT)t=Math.floor(t);this[r]=t&255;return r+1};function H(e,t,r,n){if(t<0)t=65535+t+1;for(var a=0,i=Math.min(e.length-r,2);a<i;++a){e[r+a]=(t&255<<8*(n?a:1-a))>>>(n?a:1-a)*8}}l.prototype.writeUInt16LE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,2,65535,0);if(l.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8}else{H(this,t,r,true)}return r+2};l.prototype.writeUInt16BE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,2,65535,0);if(l.TYPED_ARRAY_SUPPORT){this[r]=t>>>8;this[r+1]=t&255}else{H(this,t,r,false)}return r+2};function U(e,t,r,n){if(t<0)t=4294967295+t+1;for(var a=0,i=Math.min(e.length-r,4);a<i;++a){e[r+a]=t>>>(n?a:3-a)*8&255}}l.prototype.writeUInt32LE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,4,4294967295,0);if(l.TYPED_ARRAY_SUPPORT){this[r+3]=t>>>24;this[r+2]=t>>>16;this[r+1]=t>>>8;this[r]=t&255}else{U(this,t,r,true)}return r+4};l.prototype.writeUInt32BE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,4,4294967295,0);if(l.TYPED_ARRAY_SUPPORT){this[r]=t>>>24;this[r+1]=t>>>16;this[r+2]=t>>>8;this[r+3]=t&255}else{U(this,t,r,false)}return r+4};l.prototype.writeIntLE=function e(t,r,n,a){t=+t;r=r|0;if(!a){var i=Math.pow(2,8*n-1);B(this,t,r,n,i-1,-i)}var o=0;var s=1;var u=0;this[r]=t&255;while(++o<n&&(s*=256)){if(t<0&&u===0&&this[r+o-1]!==0){u=1}this[r+o]=(t/s>>0)-u&255}return r+n};l.prototype.writeIntBE=function e(t,r,n,a){t=+t;r=r|0;if(!a){var i=Math.pow(2,8*n-1);B(this,t,r,n,i-1,-i)}var o=n-1;var s=1;var u=0;this[r+o]=t&255;while(--o>=0&&(s*=256)){if(t<0&&u===0&&this[r+o+1]!==0){u=1}this[r+o]=(t/s>>0)-u&255}return r+n};l.prototype.writeInt8=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,1,127,-128);if(!l.TYPED_ARRAY_SUPPORT)t=Math.floor(t);if(t<0)t=255+t+1;this[r]=t&255;return r+1};l.prototype.writeInt16LE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,2,32767,-32768);if(l.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8}else{H(this,t,r,true)}return r+2};l.prototype.writeInt16BE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,2,32767,-32768);if(l.TYPED_ARRAY_SUPPORT){this[r]=t>>>8;this[r+1]=t&255}else{H(this,t,r,false)}return r+2};l.prototype.writeInt32LE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,4,2147483647,-2147483648);if(l.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8;this[r+2]=t>>>16;this[r+3]=t>>>24}else{U(this,t,r,true)}return r+4};l.prototype.writeInt32BE=function e(t,r,n){t=+t;r=r|0;if(!n)B(this,t,r,4,2147483647,-2147483648);if(t<0)t=4294967295+t+1;if(l.TYPED_ARRAY_SUPPORT){this[r]=t>>>24;this[r+1]=t>>>16;this[r+2]=t>>>8;this[r+3]=t&255}else{U(this,t,r,false)}return r+4};function z(e,t,r,n,a,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function q(e,t,r,n,i){if(!i){z(e,t,r,4,34028234663852886e22,-34028234663852886e22)}a.write(e,t,r,n,23,4);return r+4}l.prototype.writeFloatLE=function e(t,r,n){return q(this,t,r,true,n)};l.prototype.writeFloatBE=function e(t,r,n){return q(this,t,r,false,n)};function V(e,t,r,n,i){if(!i){z(e,t,r,8,17976931348623157e292,-17976931348623157e292)}a.write(e,t,r,n,52,8);return r+8}l.prototype.writeDoubleLE=function e(t,r,n){return V(this,t,r,true,n)};l.prototype.writeDoubleBE=function e(t,r,n){return V(this,t,r,false,n)};l.prototype.copy=function e(t,r,n,a){if(!n)n=0;if(!a&&a!==0)a=this.length;if(r>=t.length)r=t.length;if(!r)r=0;if(a>0&&a<n)a=n;if(a===n)return 0;if(t.length===0||this.length===0)return 0;if(r<0){throw new RangeError("targetStart out of bounds")}if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");if(a>this.length)a=this.length;if(t.length-r<a-n){a=t.length-r+n}var i=a-n;var o;if(this===t&&n<r&&r<a){for(o=i-1;o>=0;--o){t[o+r]=this[o+n]}}else if(i<1e3||!l.TYPED_ARRAY_SUPPORT){for(o=0;o<i;++o){t[o+r]=this[o+n]}}else{Uint8Array.prototype.set.call(t,this.subarray(n,n+i),r)}return i};l.prototype.fill=function e(t,r,n,a){if(typeof t==="string"){if(typeof r==="string"){a=r;r=0;n=this.length}else if(typeof n==="string"){a=n;n=this.length}if(t.length===1){var i=t.charCodeAt(0);if(i<256){t=i}}if(a!==undefined&&typeof a!=="string"){throw new TypeError("encoding must be a string")}if(typeof a==="string"&&!l.isEncoding(a)){throw new TypeError("Unknown encoding: "+a)}}else if(typeof t==="number"){t=t&255}if(r<0||this.length<r||this.length<n){throw new RangeError("Out of range index")}if(n<=r){return this}r=r>>>0;n=n===undefined?this.length:n>>>0;if(!t)t=0;var o;if(typeof t==="number"){for(o=r;o<n;++o){this[o]=t}}else{var s=l.isBuffer(t)?t:J(new l(t,a).toString());var u=s.length;for(o=0;o<n-r;++o){this[o+r]=s[o%u]}}return this};var W=/[^+\/0-9A-Za-z-_]/g;function K(e){e=G(e).replace(W,"");if(e.length<2)return"";while(e.length%4!==0){e=e+"="}return e}function G(e){if(e.trim)return e.trim();return e.replace(/^\s+|\s+$/g,"")}function Q(e){if(e<16)return"0"+e.toString(16);return e.toString(16)}function J(e,t){t=t||Infinity;var r;var n=e.length;var a=null;var i=[];for(var o=0;o<n;++o){r=e.charCodeAt(o);if(r>55295&&r<57344){if(!a){if(r>56319){if((t-=3)>-1)i.push(239,191,189);continue}else if(o+1===n){if((t-=3)>-1)i.push(239,191,189);continue}a=r;continue}if(r<56320){if((t-=3)>-1)i.push(239,191,189);a=r;continue}r=(a-55296<<10|r-56320)+65536}else if(a){if((t-=3)>-1)i.push(239,191,189)}a=null;if(r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else{throw new Error("Invalid code point")}}return i}function Z(e){var t=[];for(var r=0;r<e.length;++r){t.push(e.charCodeAt(r)&255)}return t}function X(e,t){var r,n,a;var i=[];for(var o=0;o<e.length;++o){if((t-=2)<0)break;r=e.charCodeAt(o);n=r>>8;a=r%256;i.push(a);i.push(n)}return i}function $(e){return n.toByteArray(K(e))}function ee(e,t,r,n){for(var a=0;a<n;++a){if(a+r>=t.length||a>=e.length)break;t[a+r]=e[a]}return a}function te(e){return e!==e}}).call(this,r(25))},function(e,t,r){t=e.exports=r(387);t.Stream=t;t.Readable=t;t.Writable=r(259);t.Duplex=r(101);t.Transform=r(392);t.PassThrough=r(766)},function(e,t,r){"use strict";(function(t,n,a){var i=r(175);e.exports=_;function o(e,t,r){this.chunk=e;this.encoding=t;this.callback=r;this.next=null}function s(e){var t=this;this.next=null;this.entry=null;this.finish=function(){F(t,e)}}var u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:i.nextTick;var l;_.WritableState=b;var c=Object.create(r(152));c.inherits=r(125);var f={deprecate:r(765)};var d=r(388);var p=r(176).Buffer;var h=a.Uint8Array||function(){};function v(e){return p.from(e)}function m(e){return p.isBuffer(e)||e instanceof h}var y=r(389);c.inherits(_,d);function g(){}function b(e,t){l=l||r(101);e=e||{};var n=t instanceof l;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.writableObjectMode;var a=e.highWaterMark;var i=e.writableHighWaterMark;var o=this.objectMode?16:16*1024;if(a||a===0)this.highWaterMark=a;else if(n&&(i||i===0))this.highWaterMark=i;else this.highWaterMark=o;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var u=e.decodeStrings===false;this.decodeStrings=!u;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){D(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new s(this)}b.prototype.getBuffer=function e(){var t=this.bufferedRequest;var r=[];while(t){r.push(t);t=t.next}return r};(function(){try{Object.defineProperty(b.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var A;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){A=Function.prototype[Symbol.hasInstance];Object.defineProperty(_,Symbol.hasInstance,{value:function(e){if(A.call(this,e))return true;if(this!==_)return false;return e&&e._writableState instanceof b}})}else{A=function(e){return e instanceof this}}function _(e){l=l||r(101);if(!A.call(_,this)&&!(this instanceof l)){return new _(e)}this._writableState=new b(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}d.call(this)}_.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function w(e,t){var r=new Error("write after end");e.emit("error",r);i.nextTick(t,r)}function E(e,t,r,n){var a=true;var o=false;if(r===null){o=new TypeError("May not write null values to stream")}else if(typeof r!=="string"&&r!==undefined&&!t.objectMode){o=new TypeError("Invalid non-string/buffer chunk")}if(o){e.emit("error",o);i.nextTick(n,o);a=false}return a}_.prototype.write=function(e,t,r){var n=this._writableState;var a=false;var i=!n.objectMode&&m(e);if(i&&!p.isBuffer(e)){e=v(e)}if(typeof t==="function"){r=t;t=null}if(i)t="buffer";else if(!t)t=n.defaultEncoding;if(typeof r!=="function")r=g;if(n.ended)w(this,r);else if(i||E(this,n,e,r)){n.pendingcb++;a=k(this,n,i,e,t,r)}return a};_.prototype.cork=function(){var e=this._writableState;e.corked++};_.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest)C(this,e)}};_.prototype.setDefaultEncoding=function e(t){if(typeof t==="string")t=t.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);this._writableState.defaultEncoding=t;return this};function x(e,t,r){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=p.from(t,r)}return t}Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function k(e,t,r,n,a,i){if(!r){var o=x(t,n,a);if(n!==o){r=true;a="buffer";n=o}}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(!u)t.needDrain=true;if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:a,isBuf:r,callback:i,next:null};if(l){l.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{S(e,t,false,s,n,a,i)}return u}function S(e,t,r,n,a,i,o){t.writelen=n;t.writecb=o;t.writing=true;t.sync=true;if(r)e._writev(a,t.onwrite);else e._write(a,i,t.onwrite);t.sync=false}function O(e,t,r,n,a){--t.pendingcb;if(r){i.nextTick(a,n);i.nextTick(P,e,t);e._writableState.errorEmitted=true;e.emit("error",n)}else{a(n);e._writableState.errorEmitted=true;e.emit("error",n);P(e,t)}}function M(e){e.writing=false;e.writecb=null;e.length-=e.writelen;e.writelen=0}function D(e,t){var r=e._writableState;var n=r.sync;var a=r.writecb;M(r);if(t)O(e,r,n,t,a);else{var i=j(r);if(!i&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){C(e,r)}if(n){u(T,e,r,i,a)}else{T(e,r,i,a)}}}function T(e,t,r,n){if(!r)L(e,t);t.pendingcb--;n();P(e,t)}function L(e,t){if(t.length===0&&t.needDrain){t.needDrain=false;e.emit("drain")}}function C(e,t){t.bufferProcessing=true;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount;var a=new Array(n);var i=t.corkedRequestsFree;i.entry=r;var o=0;var u=true;while(r){a[o]=r;if(!r.isBuf)u=false;r=r.next;o+=1}a.allBuffers=u;S(e,t,true,t.length,a,"",i.finish);t.pendingcb++;t.lastBufferedRequest=null;if(i.next){t.corkedRequestsFree=i.next;i.next=null}else{t.corkedRequestsFree=new s(t)}t.bufferedRequestCount=0}else{while(r){var l=r.chunk;var c=r.encoding;var f=r.callback;var d=t.objectMode?1:l.length;S(e,t,false,d,l,c,f);r=r.next;t.bufferedRequestCount--;if(t.writing){break}}if(r===null)t.lastBufferedRequest=null}t.bufferedRequest=r;t.bufferProcessing=false}_.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};_.prototype._writev=null;_.prototype.end=function(e,t,r){var n=this._writableState;if(typeof e==="function"){r=e;e=null;t=null}else if(typeof t==="function"){r=t;t=null}if(e!==null&&e!==undefined)this.write(e,t);if(n.corked){n.corked=1;this.uncork()}if(!n.ending&&!n.finished)R(this,n,r)};function j(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function N(e,t){e._final((function(r){t.pendingcb--;if(r){e.emit("error",r)}t.prefinished=true;e.emit("prefinish");P(e,t)}))}function I(e,t){if(!t.prefinished&&!t.finalCalled){if(typeof e._final==="function"){t.pendingcb++;t.finalCalled=true;i.nextTick(N,e,t)}else{t.prefinished=true;e.emit("prefinish")}}}function P(e,t){var r=j(t);if(r){I(e,t);if(t.pendingcb===0){t.finished=true;e.emit("finish")}}return r}function R(e,t,r){t.ending=true;P(e,t);if(r){if(t.finished)i.nextTick(r);else e.once("finish",r)}t.ended=true;e.writable=false}function F(e,t,r){var n=e.entry;e.entry=null;while(n){var a=n.callback;t.pendingcb--;a(r);n=n.next}if(t.corkedRequestsFree){t.corkedRequestsFree.next=e}else{t.corkedRequestsFree=e}}Object.defineProperty(_.prototype,"destroyed",{get:function(){if(this._writableState===undefined){return false}return this._writableState.destroyed},set:function(e){if(!this._writableState){return}this._writableState.destroyed=e}});_.prototype.destroy=y.destroy;_.prototype._undestroy=y.undestroy;_.prototype._destroy=function(e,t){this.end();t(e)}}).call(this,r(126),r(390).setImmediate,r(25))},function(e,t,r){"use strict";var n=r(176).Buffer;var a=n.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function i(e){if(!e)return"utf8";var t;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}}function o(e){var t=i(e);if(typeof t!=="string"&&(n.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}t.StringDecoder=s;function s(e){this.encoding=o(e);var t;switch(this.encoding){case"utf16le":this.text=h;this.end=v;t=4;break;case"utf8":this.fillLast=f;t=4;break;case"base64":this.text=m;this.end=y;t=3;break;default:this.write=g;this.end=b;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=n.allocUnsafe(t)}s.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r<e.length)return t?t+this.text(e,r):this.text(e,r);return t||""};s.prototype.end=p;s.prototype.text=d;s.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function u(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function l(e,t,r){var n=t.length-1;if(n<r)return 0;var a=u(t[n]);if(a>=0){if(a>0)e.lastNeed=a-1;return a}if(--n<r||a===-2)return 0;a=u(t[n]);if(a>=0){if(a>0)e.lastNeed=a-2;return a}if(--n<r||a===-2)return 0;a=u(t[n]);if(a>=0){if(a>0){if(a===2)a=0;else e.lastNeed=a-3}return a}return 0}function c(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function f(e){var t=this.lastTotal-this.lastNeed;var r=c(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function d(e,t){var r=l(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,n);return e.toString("utf8",t,n)}function p(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function h(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function v(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function m(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function y(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function g(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};var a=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n};Object.defineProperty(t,"__esModule",{value:true});var i=r(782);var o=r(177);var s=r(8);var u="eq";var l=0;var c=function(){var e=l.toString();l+=1;return e};t.buildAdvSearchQuery=function(e){var t=e.advanced,r=t.include,a=t.exclude;var i=r.query;var o=a.query;if(o){var s={not:[n({},o)]};if(!i){return s}return{and:[n({},i),s]}}if(i){return i}return null};t.buildSearchFacetString=function(e){var t=e.entryPoint,r=e.sort;var n={};if(t!=="All"){n.media=t}if(r){n.order=r}return JSON.stringify(n)};t.buildAdvSearchQueryString=function(e,r,n){if(r===void 0){r=0}if(n===void 0){n=true}var a=t.buildAdvSearchQuery(e);if(!a){return""}var i=JSON.stringify({query:a},(function(e,t){if(e==="id"){return undefined}if(e==="op"&&t===u){return undefined}return t}),r);return n?encodeURIComponent(i):i};t.getCustomListEditorFormData=function(e){var r=new window.FormData;var n=e.id,a=e.properties,i=e.entries,o=e.searchParams;if(n){r.append("id",n)}var s=a.current,u=s.name,l=s.collections,c=s.autoUpdate;r.append("name",u);r.append("collections",JSON.stringify(l));if(c){r.append("auto_update","true");r.append("auto_update_query",t.buildAdvSearchQueryString(o.current,0,false));r.append("auto_update_facets",t.buildSearchFacetString(o.current))}else{var f=i.baseline,d=i.current,p=i.removed;r.append("entries",JSON.stringify(d));var h=f.reduce((function(e,t){e[t.id]=t;return e}),{});var v=Object.keys(p).map((function(e){return h[e]}));r.append("deletedEntries",JSON.stringify(v))}return r};t.buildSearchUrl=function(e,r){var n=e.entryPoint,a=e.terms,i=e.sort;var o=[];if(n!=="All"){o.push("media="+encodeURIComponent(n))}if(i){o.push("order="+encodeURIComponent(i))}var s=t.buildAdvSearchQueryString(e);if(s){o.push("search_type=json");o.push("q="+s)}else{o.push("q="+encodeURIComponent(a))}return"/"+r+"/search?"+o.join("&")};t.getCustomListEditorSearchUrl=function(e,r){var n=e.searchParams;var a=n.current;var i=a.terms,o=a.advanced;if(i||o.include.query||o.exclude.query){return t.buildSearchUrl(a,r)}return null};var f=function(e){if(!e.id){e.id=c()}var t=e.and||e.or||e.not;if(t){t.forEach((function(e){return f(e)}))}};var d=function(e){var t=e.and||e.or||e.not;if(t){t.forEach((function(e){return d(e)}))}else{if(!e.op){e.op=u}}};t.parseAdvancedSearchQuery=function(e){var t;if(!e){return[null,null]}var r=(t=JSON.parse(e))===null||t===void 0?void 0:t.query;if(!r){return[null,null]}f(r);d(r);var n=r.and;if(n&&n.length===2){var a=n.find((function(e){return!e.not}));var i=n.find((function(e){return Array.isArray(e.not)}));if(a&&i){return[a,i.not[0]]}}var o=r.not;if(o){return[null,o[0]]}return[r,null]};var p=function(e){if(!e){return{}}return JSON.parse(e)||{}};var h={name:"",collections:[],autoUpdate:false};var v={entryPoint:"All",terms:"",sort:null,language:"all",advanced:{include:{query:null,selectedQueryId:null},exclude:{query:null,selectedQueryId:null}}};t.initialState={id:null,autoUpdateStatus:"",isAutoUpdateEnabled:false,isLoaded:false,isOwner:true,isShared:false,isSharePending:false,properties:{baseline:h,current:h},searchParams:{baseline:v,current:v},entries:{baseline:[],baselineTotalCount:0,added:{},removed:{},current:[],currentTotalCount:0},isValid:false,isModified:false,isSearchModified:false,error:null};var m=function(e){var t=e.properties,r=e.entries,n=e.searchParams;var a=t.current,i=a.name,o=a.collections,s=a.autoUpdate;var u=r.currentTotalCount;var l=n.current.advanced,c=l.include,f=l.exclude;return!!i&&(o.length>0||s&&(!!c.query||!!f.query)||!s&&u>0)};var y=function(e){var r=e.searchParams,n=r.baseline,a=r.current;var i=t.buildSearchUrl(n,"");var o=t.buildSearchUrl(a,"");return i!==o};var g=function(e){return i.default(e,(function(e){e.isSearchModified=y(e)}))};var b=function(e){var t=e.properties,r=e.entries;var n=r.added,a=r.removed;var i=t.baseline,o=t.current;return Object.keys(n).length>0||Object.keys(a).length>0||i.name!==o.name||i.autoUpdate!==o.autoUpdate||o.autoUpdate&&e.isSearchModified||i.collections.length!==o.collections.length||!i.collections.every((function(e){return o.collections.includes(e)}))};var A=function(e){return i.default(e,(function(e){e.isValid=m(e);e.isModified=b(e)}))};var _=function(e){return function(t,r){return A(e(t,r))}};var w=function(e,r,n){var a=null;var o=null;if(r&&e!==null){a=r.custom_lists.find((function(t){return t.id===e}));if(!a){o="Custom list not found for ID: "+e}}return i.default(n,(function(r){var n=r.isAutoUpdateEnabled;r.id=e;if(n){r.properties.baseline.autoUpdate=true;r.properties.current.autoUpdate=true}if(a){r.isLoaded=true;r.isOwner=a.is_owner;r.isShared=a.is_shared;r.autoUpdateStatus=n&&!!a.auto_update?a.auto_update_status:"";var i={name:a.name||"",collections:a.collections.map((function(e){return e.id})),autoUpdate:n&&!!a.auto_update};r.properties.baseline=i;r.properties.current=i;r.entries.baselineTotalCount=a.entry_count;var s=t.parseAdvancedSearchQuery(a.auto_update_query),u=s[0],l=s[1];r.searchParams.baseline.advanced.include.query=u;r.searchParams.baseline.advanced.exclude.query=l;r.searchParams.current.advanced.include.query=u;r.searchParams.current.advanced.exclude.query=l;var c=p(a.auto_update_facets),f=c.media,d=c.order;if(f){r.searchParams.baseline.entryPoint=f;r.searchParams.current.entryPoint=f}if(d){r.searchParams.baseline.sort=d;r.searchParams.current.sort=d}r.isSearchModified=false}r.error=o}))};var E=function(e){var t=e.baseline,r=e.baselineTotalCount,n=e.added,a=e.removed;var i=Object.values(n);i.reverse();e.current=i.concat(t.filter((function(e){return!a[e.id]})));var o=i.length;var s=Object.keys(a).length;var u=e.current.length;e.currentTotalCount=Math.max(r+o-s,u)};var x=function(e,r){var n=r.id,a=r.data;var o=i.default(t.initialState,(function(t){t.isAutoUpdateEnabled=e.isAutoUpdateEnabled}));return w(n?parseInt(n,10):null,a,o)};var k=_((function(e,t){if(t.isAfterShare){return e}var r=e.id;var n=t.data;return w(r,n,e)}));var S=_((function(e,t){return i.default(e,(function(e){var r=e.entries;r.baseline=t.data.books;E(r)}))}));var O=_((function(e,t){return i.default(e,(function(e){var r=e.entries;r.baseline=r.baseline.concat(t.data.books);E(r)}))}));var M=_((function(e,t){var r=t.name,n=t.value;return i.default(e,(function(e){e.properties.current[r]=n}))}));var D=_((function(e,t){var r=t.id;return i.default(e,(function(e){var t=e.properties.current.collections;var n=t.indexOf(r);if(n<0){t.push(r)}else{t.splice(n,1)}}))}));var T=_((function(e,t){var r=t.name,n=t.value;return g(i.default(e,(function(e){e.searchParams.current[r]=n})))}));var L=function(e,t,r,i){var o,s,u;if(e.and||e.or){var l=e.and?"and":"or";var f=e[l];if(e.id===t){return o={id:e.id},o[l]=a(f,[r]),o}var d=l==="and"?"or":"and";for(var p=0;p<f.length;p++){var h=f[p];var v=L(h,t,r,d);if(v!==h){var m=a(f);m[p]=v;return s={id:e.id},s[l]=m,s}}return e}if(e.id===t){return u={id:e.id},u[i]=[n(n({},e),{id:c()}),r],u}return e};var C=function(e,t){var r,i;if(e.id===t){return null}if(e.and||e.or){var o=e.and?"and":"or";var s=e[o];var u=s.filter((function(e){return e.id!==t}));if(u.length!==s.length){if(u.length===1){return n({},u[0])}return r={id:e.id},r[o]=u,r}for(var l=0;l<s.length;l++){var c=s[l];var f=C(c,t);if(f!==c){var d=a(s);d[l]=f;return i={id:e.id},i[o]=d,i}}}return e};var j=function(e,t){if(e.id===t){return[e.id]}if(e.and||e.or){var r=e.and?"and":"or";var n=e[r];for(var i=0;i<n.length;i++){var o=n[i];var s=j(o,t);if(s){return a([e.id],s)}}}return null};var N=function(e,t){if(e.id===t){return e}if(e.and||e.or){var r=e.and?"and":"or";var n=e[r];var a=n.find((function(e){return e.id===t}));if(a){return a}for(var i=0;i<n.length;i++){var o=n[i];var s=N(o,t);if(s){return s}}}return null};var I=function(e){return e==="include"?"and":"or"};var P=_((function(e,t){return g(i.default(e,(function(e){var r=t.builderName,a=t.query;var i=e.searchParams.current.advanced[r];var o=i.query,s=i.selectedQueryId;var u=n(n({},a),{id:c()});if(!o){i.query=u;i.selectedQueryId=u.id}else{i.query=L(o,s||o.id,u,I(r))}})))}));var R=_((function(e,t){return g(i.default(e,(function(e){var r=t.builderName,n=t.id,a=t.bool;var i=e.searchParams.current.advanced[r];var o=i.query;var s=N(o,n);if(s&&(s.and||s.or)&&!s[a]){var u=a==="and"?"or":"and";var l=s[u];delete s[u];s[a]=l}})))}));var F=_((function(e,t){return g(i.default(e,(function(e){var r=t.builderName,a=t.id,i=t.targetId;var o=e.searchParams.current.advanced[r];var s=o.query;var u=N(s,a);var l=n(n({},u),{id:c()});var f=L(s,i,l,I(r));var d=C(f,a);o.query=d;o.selectedQueryId=i})))}));var Y=_((function(e,t){return g(i.default(e,(function(e){var r=t.builderName,n=t.id;var a=e.searchParams.current.advanced[r];var i=a.query;var o=C(i,n);if(o!==i){a.query=o;var s=j(i,n);s.pop();s.reverse();var u=s.find((function(e){return N(o,e)}));a.selectedQueryId=u}})))}));var B=function(e,t){return i.default(e,(function(e){var r=t.builderName,n=t.id;var a=e.searchParams.current.advanced[r];a.selectedQueryId=n}))};var H=function(e){return{id:e.id,title:e.title,authors:e.authors,url:e.url,medium:o.getMedium(e),language:e.language||""}};var U=_((function(e,t){var r=t.id,n=t.data;return i.default(e,(function(e){var t=e.entries;var a=t.baseline,i=t.added,o=t.removed;var s=a.find((function(e){return e.id===r}));if(!s){var u=n.books.find((function(e){return e.id===r}));var l=!!i[r];if(u&&!l){i[r]=H(u)}}delete o[r];E(t)}))}));var z=_((function(e,t){var r=t.data.books;r.reverse();return i.default(e,(function(e){var t=e.entries;var n=t.baseline,a=t.added,i=t.removed;var o=n.reduce((function(e,t){e[t.id]=true;return e}),{});r.filter((function(e){return!o[e.id]&&!a[e.id]})).map((function(e){return H(e)})).forEach((function(e){return a[e.id]=e}));r.forEach((function(e){return delete i[e.id]}));E(t)}))}));var q=_((function(e,t){var r=t.id;return i.default(e,(function(e){var t=e.entries;var n=t.added,a=t.removed;if(n[r]){delete n[r]}else{a[r]=true}E(t)}))}));var V=_((function(e){return i.default(e,(function(e){var t=e.entries;var r=t.baseline,n=t.removed;r.forEach((function(e){n[e.id]=true}));t.added={};E(t)}))}));var W=_((function(e){return i.default(e,(function(e){var t=e.properties,r=e.searchParams,n=e.entries;t.current=t.baseline;r.current=r.baseline;n.added={};n.removed={};E(n)}))}));var K=function(e,t){var r=t.listId;var n=e.id;if(parseInt(r,10)===n){return i.default(e,(function(e){e.isSharePending=true}))}return e};var G=function(e,t){var r;var n=t.data,a=t.listId;var o=e.id;if(parseInt(a,10)===o){var s=(r=n)===null||r===void 0?void 0:r.custom_lists.find((function(e){return e.id===o}));return i.default(e,(function(e){e.isSharePending=false;if(s){e.isShared=s.is_shared}}))}return e};var Q=function(e,t){var r=t.error,n=t.listId;var a=e.id;if(parseInt(n,10)===a){return i.default(e,(function(e){e.isSharePending=false;e.error=r.message}))}return e};var J=function(e,t){var r=t.value,n=r===void 0?{}:r;if("enableAutoList"in n){return i.default(e,(function(e){e.isAutoUpdateEnabled=!!n.enableAutoList}))}return e};var Z=function(e,t){var r=t.name,n=t.value;if(r==="enableAutoList"){return i.default(e,(function(e){e.isAutoUpdateEnabled=!!n}))}return e};t.default=function(e,r){if(e===void 0){e=t.initialState}switch(r.type){case s.default.OPEN_CUSTOM_LIST_EDITOR:return x(e,r);case s.default.CUSTOM_LISTS+"_"+s.default.LOAD:return k(e,r);case s.default.CUSTOM_LIST_DETAILS+"_"+s.default.LOAD:return S(e,r);case s.default.CUSTOM_LIST_DETAILS_MORE+"_"+s.default.LOAD:return O(e,r);case s.default.UPDATE_CUSTOM_LIST_EDITOR_PROPERTY:return M(e,r);case s.default.TOGGLE_CUSTOM_LIST_EDITOR_COLLECTION:return D(e,r);case s.default.UPDATE_CUSTOM_LIST_EDITOR_SEARCH_PARAM:return T(e,r);case s.default.ADD_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return P(e,r);case s.default.UPDATE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY_BOOLEAN:return R(e,r);case s.default.MOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return F(e,r);case s.default.REMOVE_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return Y(e,r);case s.default.SELECT_CUSTOM_LIST_EDITOR_ADV_SEARCH_QUERY:return B(e,r);case s.default.ADD_CUSTOM_LIST_EDITOR_ENTRY:return U(e,r);case s.default.ADD_ALL_CUSTOM_LIST_EDITOR_ENTRIES:return z(e,r);case s.default.DELETE_CUSTOM_LIST_EDITOR_ENTRY:return q(e,r);case s.default.DELETE_ALL_CUSTOM_LIST_EDITOR_ENTRIES:return V(e,r);case s.default.RESET_CUSTOM_LIST_EDITOR:return W(e,r);case s.default.CUSTOM_LIST_SHARE+"_"+s.default.REQUEST:return K(e,r);case s.default.CUSTOM_LIST_SHARE+"_"+s.default.SUCCESS:return G(e,r);case s.default.CUSTOM_LIST_SHARE+"_"+s.default.FAILURE:return Q(e,r);case s.default.SET_FEATURE_FLAGS:return J(e,r);case s.default.UPDATE_FEATURE_FLAG:return Z(e,r);default:return e}}},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:true});var a=r(8);var i=function(e,t){var r=JSON.parse(JSON.stringify(e.data));var n=Object.keys(r)[0];if(!r[n].length){return{}}r[n].forEach((function(e){if(e.id===t.data.self_test_results.id){e.self_test_results=t.data.self_test_results.self_test_results}}));return Object.assign({},e,{data:r,isFetching:false,isLoaded:true})};t.extraActions=(n={},n[a.default.GET_SELF_TESTS+"_"+a.default.LOAD]=i,n)},function(e,t,r){"use strict";r.r(t);function n(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(a){if(typeof a==="function"){return a(r,n,e)}return t(a)}}}}var a=n();a.withExtraArgument=n;t["default"]=a},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(65);var o=r(534);var s=r(839);var u=r(840);var l=r(177);var c=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.borrow=r.borrow.bind(r);return r}t.prototype.render=function(){var e;var t=this.props.book;var r=t&&t.summary&&t.summary.replace(/<\/?[^>]+(>|$)/g," ")||"";var n=l.getMedium(t);var s=n?"show-media":"";var u=!!(t.authors&&t.authors.length);var c=!!(t.contributors&&t.contributors.length);var f=t.contributors&&t.contributors.length?t.contributors.join(", "):"";var d=u?(e=t.authors)===null||e===void 0?void 0:e.join(", "):f;return a.createElement("div",{className:"book "+s,lang:t.language},a.createElement(i.default,{collectionUrl:this.props.collectionUrl,bookUrl:t.url||t.id,title:t.title},a.createElement(o.default,{book:t}),a.createElement("div",{className:"compact-info "+s},l.getMediumSVG(n,false),a.createElement("div",{className:"empty"}),a.createElement("div",{className:"item-details"},a.createElement("div",{className:"title"},t.title),t.series&&t.series.name&&a.createElement("div",{className:"series"},t.series.name),(u||c)&&a.createElement("div",{className:"authors"},a.createElement("span",null,"By ",d))))),a.createElement("div",{className:"expanded-info"},a.createElement("div",{className:"header"},a.createElement("div",null,a.createElement(i.default,{collectionUrl:this.props.collectionUrl,bookUrl:t.url||t.id,title:t.title},a.createElement("div",{className:"title"},t.title)),t.series&&t.series.name&&a.createElement("div",{className:"series"},t.series.name),(u||c)&&a.createElement("div",{className:"authors"},a.createElement("span",null,"By ",d))),this.props.showCirculationLinks&&a.createElement("div",{className:"circulation-links"},this.circulationLinks())),a.createElement("div",{className:"details"},a.createElement("div",{className:"fields",lang:"en"},n&&a.createElement("span",null,l.getMediumSVG(n)),this.fields().map((function(e,t){return e.value?a.createElement("div",{className:e.name.toLowerCase().replace(" ","-"),key:e.name+"-"+t},e.name,": ",e.value):null}))),a.createElement("div",{className:"summary",lang:t.language},a.createElement("span",{dangerouslySetInnerHTML:{__html:r}}),a.createElement(i.default,{collectionUrl:this.props.collectionUrl,bookUrl:t.url||t.id,title:t.title},"… More")))))};t.prototype.fields=function(){return this.props.book?[{name:"Publisher",value:this.props.book.publisher},{name:"Published",value:this.props.book.published},{name:"Categories",value:this.props.book.categories?this.props.book.categories.join(", "):null}]:[]};t.prototype.circulationLinks=function(){var e=this;var t,r,n;var i=[];if(l.bookIsOpenAccess(this.props.book)){if(this.props.epubReaderUrlTemplate){var o=0;for(var c=0,f=(t=this.props.book.openAccessLinks)!==null&&t!==void 0?t:[];c<f.length;c++){var d=f[c];if(d.type==="application/epub+zip"){i.push(a.createElement("span",{key:d.url+"-"+o},a.createElement("a",{className:"btn btn-default read-button",href:this.props.epubReaderUrlTemplate(d.url),target:"_blank"},"Read Online")));o++}}}(r=this.props.book.openAccessLinks)===null||r===void 0?void 0:r.forEach((function(t,r){i.push(a.createElement(u.default,{key:t.url+"-"+r,isPlainLink:true,link:t,title:e.props.book.title}))}))}else if(l.bookIsBorrowed(this.props.book)){var p="text/html;profile=http://librarysimplified.org/terms/profiles/streaming-media";var h=[];var v=[];for(var m=0,y=(n=this.props.book.fulfillmentLinks)!==null&&n!==void 0?n:[];m<y.length;m++){var d=y[m];if(d.type===p||d.indirectType===p){h.push(d)}else{v.push(d)}}h.forEach((function(t,r){var n=t.type===p;i.push(a.createElement(u.default,{key:t.url+"-"+r,link:t,title:e.props.book.title,isPlainLink:n||!e.props.isSignedIn}))}));i.push(a.createElement(s.default,{key:this.props.book.borrowUrl,className:"btn btn-default borrowed-button",disabled:true,borrow:this.borrow},"Borrowed"));v.forEach((function(t,r){i.push(a.createElement(u.default,{key:t.url+"-"+r,link:t,title:e.props.book.title,isPlainLink:!e.props.isSignedIn}))}))}if(l.bookIsReserved(this.props.book)){i.push(a.createElement("button",{key:"onhold",className:"btn btn-default disabled"},"Reserved"))}else if(!l.bookIsBorrowed(this.props.book)&&this.props.book.borrowUrl){var g=!l.bookIsReady(this.props.book)&&this.props.book.copies&&this.props.book.copies.available===0?"Reserve":"Borrow";i.push(a.createElement(s.default,{key:this.props.book.borrowUrl,borrow:this.borrow},g))}return i};t.prototype.borrow=function(){return this.props.updateBook(this.props.book.borrowUrl)};return t}(a.Component);t.default=c},function(e,t,r){"use strict";function n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))}n.forEach((function(t){a(e,t,r[t])}))}return e}function a(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function i(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var o=r(153);var s=r(50);var u=r(102);var l=r(51);var c=r(181);var f=r(182);var d=r(67);var p=r(545);var h=r(82);var v=r(11);var m=r(547);var y=v.List,g=v.Record,b=v.Repeat,A=v.Map,_=v.OrderedMap;var w={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null};var E=g(w);var x=h("draft_tree_data_support")?l:u;var k=function(e){i(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.getEntityMap=function e(){return c};r.getBlockMap=function e(){return this.get("blockMap")};r.getSelectionBefore=function e(){return this.get("selectionBefore")};r.getSelectionAfter=function e(){return this.get("selectionAfter")};r.getBlockForKey=function e(t){var r=this.getBlockMap().get(t);return r};r.getKeyBefore=function e(t){return this.getBlockMap().reverse().keySeq().skipUntil((function(e){return e===t})).skip(1).first()};r.getKeyAfter=function e(t){return this.getBlockMap().keySeq().skipUntil((function(e){return e===t})).skip(1).first()};r.getBlockAfter=function e(t){return this.getBlockMap().skipUntil((function(e,r){return r===t})).skip(1).first()};r.getBlockBefore=function e(t){return this.getBlockMap().reverse().skipUntil((function(e,r){return r===t})).skip(1).first()};r.getBlocksAsArray=function e(){return this.getBlockMap().toArray()};r.getFirstBlock=function e(){return this.getBlockMap().first()};r.getLastBlock=function e(){return this.getBlockMap().last()};r.getPlainText=function e(t){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(t||"\n")};r.getLastCreatedEntityKey=function e(){return c.__getLastCreatedEntityKey()};r.hasText=function e(){var t=this.getBlockMap();return t.size>1||escape(t.first().getText()).replace(/%u200B/g,"").length>0};r.createEntity=function e(t,r,n){c.__create(t,r,n);return this};r.mergeEntityData=function e(t,r){c.__mergeData(t,r);return this};r.replaceEntityData=function e(t,r){c.__replaceData(t,r);return this};r.addEntity=function e(t){c.__add(t);return this};r.getEntity=function e(t){return c.__get(t)};r.getAllEntities=function e(){return c.__getAll()};r.loadWithEntities=function e(t){return c.__loadWithEntities(t)};t.createFromBlockArray=function e(r,n){var a=Array.isArray(r)?r:r.contentBlocks;var i=o.createFromArray(a);var s=i.isEmpty()?new f:f.createEmpty(i.first().getKey());return new t({blockMap:i,entityMap:n||c,selectionBefore:s,selectionAfter:s})};t.createFromText=function e(r){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:/\r\n?|\n/g;var a=r.split(n);var i=a.map((function(e){e=m(e);return new x({key:d(),text:e,type:"unstyled",characterList:y(b(s.EMPTY,e.length))})}));return t.createFromBlockArray(i)};t.fromJS=function e(r){return new t(n({},r,{blockMap:_(r.blockMap).map(t.createContentBlockFromJS),selectionBefore:new f(r.selectionBefore),selectionAfter:new f(r.selectionAfter)}))};t.createContentBlockFromJS=function e(t){var r=t.characterList;return new x(n({},t,{data:A(t.data),characterList:r!=null?y((Array.isArray(r)?r:p(r)).map((function(e){return s.fromJS(e)}))):undefined}))};return t}(E);e.exports=k},function(e,t,r){"use strict";var n=r(183);var a=r(16);var i={L:"A-Za-zªµºÀ-ÖØ-öø-ƺƻ"+"Ƽ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸ"+"ʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷ"+"ͺͻ-ͽͿΆΈ-ΊΌΎ-Ρ"+"Σ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ"+"՚-՟ա-և։ःऄ-हऻऽ"+"ा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥"+"०-९॰ॱॲ-ঀং-ঃঅ-ঌ"+"এ-ঐও-নপ-রলশ-হঽ"+"া-ীে-ৈো-ৌৎৗড়-ঢ়"+"য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃ"+"ਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼"+"ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯"+"ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-ર"+"લ-ળવ-હઽા-ીૉો-ૌૐ"+"ૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐ"+"ଓ-ନପ-ରଲ-ଳଵ-ହଽାୀ"+"େ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯"+"୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-க"+"ங-சஜஞ-டண-தந-பம-ஹ"+"ா-ிு-ூெ-ைொ-ௌௐௗ"+"௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐ"+"ఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ"+"౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನ"+"ಪ-ಳವ-ಹಽಾಿೀ-ೄೆ"+"ೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯"+"ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽ"+"ാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ"+"൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖ"+"ක-නඳ-රලව-ෆා-ෑෘ-ෟ"+"෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅ"+"ๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈ"+"ຊຍດ-ທນ-ຟມ-ຣລວ"+"ສ-ຫອ-ະາ-ຳຽເ-ໄໆ"+"໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔"+"༕-༗༚-༟༠-༩༪-༳༴༶༸"+"༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ"+"྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘"+"࿙-࿚က-ဪါ-ာေးျ-ြဿ"+"၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡ"+"ၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁ"+"ႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ"+"႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼ"+"ჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈ"+"ኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅ"+"ወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨"+"፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮"+"ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰ"+"ᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶"+"ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅ"+"ះ-ៈ។-៖ៗ៘-៚ៜ០-៩"+"᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪ"+"ᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱ"+"ᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫ"+"ᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖ"+"ᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤ"+"ᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭"+"ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ"+"᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠ"+"ᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧ"+"ᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫ"+"ᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙"+"ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡"+"ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫ"+"ᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕ"+"Ἐ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝ"+"Ὗ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌ"+"ῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ"+"ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝ"+"ℤΩℨK-ℭℯ-ℴℵ-ℸℹ"+"ℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄ"+"ↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿"+"Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤ"+"Ⳬ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ"+"⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾ"+"ⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇"+"〡-〩〮-〯〱-〵〸-〺〻〼"+"ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿ"+"ㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟"+"ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇"+"㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋"+"㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵"+"一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ"+"꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫ"+"Ꙁ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ"+"꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎ"+"Ꞑ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁ"+"ꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵"+"꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ"+"꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉"+"ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼ"+"ꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍"+"ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ"+"꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴ"+"ꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯ"+"ꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱ"+"ꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟"+"ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵ"+"ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮ"+"ꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤ"+"ꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣"+"ힰ-ퟆퟋ-ퟻ-豈-舘並-龎"+"ff-stﬓ-ﬗA-Za-zヲ-ッー"+"ア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬ"+"ᅭ-ᅲᅳ-ᅵ",R:"־׀׃׆-א-ת-ׯ"+"װ-ײ׳-״-߀-߉ߊ-ߪ"+"ߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ"+"-࠰-࠾ࡀ-ࡘ-࡞"+"-࢟יִײַ-ﬨשׁ-זּטּ-לּ"+"מּנּ-סּףּ-פּצּ-ﭏ",AL:"؈؋؍؛؝؞-؟ؠ-ؿـ"+"ف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦ"+"ۮ-ۯۺ-ۼ۽-۾ۿ܀-܍"+"ܐܒ-ܯ-ݍ-ޥޱ-"+"ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-"+"ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ"+"-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ"+"ﹶ-ﻼ-"};var o=new RegExp("["+i.L+i.R+i.AL+"]");var s=new RegExp("["+i.R+i.AL+"]");function u(e){var t=o.exec(e);return t==null?null:t[0]}function l(e){var t=u(e);if(t==null){return n.NEUTRAL}return s.exec(t)?n.RTL:n.LTR}function c(e,t){t=t||n.NEUTRAL;if(!e.length){return t}var r=l(e);return r===n.NEUTRAL?t:r}function f(e,t){if(!t){t=n.getGlobalDir()}!n.isStrong(t)?false?undefined:a(false):void 0;return c(e,t)}function d(e,t){return f(e,t)===n.LTR}function p(e,t){return f(e,t)===n.RTL}var h={firstStrongChar:u,firstStrongCharDir:l,resolveBlockDir:c,getDirection:f,isDirectionLTR:d,isDirectionRTL:p};e.exports=h},function(e,t,r){"use strict";var n=r(1);var a=r(103);var i=r(11),o=i.Map;var s=n.createElement("ul",{className:a("public/DraftStyleDefault/ul")});var u=n.createElement("ol",{className:a("public/DraftStyleDefault/ol")});var l=n.createElement("pre",{className:a("public/DraftStyleDefault/pre")});var c=o({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:s},"ordered-list-item":{element:"li",wrapper:u},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:l},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=c},function(e,t,r){"use strict";var n=r(557),a=n.notEmptyKey;function i(e,t){var r;if(t.isCollapsed()){var n=t.getAnchorKey();var a=t.getAnchorOffset();if(a>0){r=e.getBlockForKey(n).getEntityAt(a-1);if(r!==e.getBlockForKey(n).getEntityAt(a)){return null}return o(e.getEntityMap(),r)}return null}var i=t.getStartKey();var s=t.getStartOffset();var u=e.getBlockForKey(i);r=s===u.getLength()?null:u.getEntityAt(s);return o(e.getEntityMap(),r)}function o(e,t){if(a(t)){var r=e.__get(t);return r.getMutability()==="MUTABLE"?t:null}return null}e.exports=i},function(e,t,r){"use strict";var n=r(908);function a(e,t){if(!e||!t){return false}else if(e===t){return true}else if(n(e)){return false}else if(n(t)){return a(e,t.parentNode)}else if("contains"in e){return e.contains(t)}else if(e.compareDocumentPosition){return!!(e.compareDocumentPosition(t)&16)}else{return false}}e.exports=a},function(e,t,r){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var a={getTop:function e(t){var r=t.ownerDocument;return n(t,r)?r.body.scrollTop||r.documentElement.scrollTop:t.scrollTop},setTop:function e(t,r){var a=t.ownerDocument;if(n(t,a)){a.body.scrollTop=a.documentElement.scrollTop=r}else{t.scrollTop=r}},getLeft:function e(t){var r=t.ownerDocument;return n(t,r)?r.body.scrollLeft||r.documentElement.scrollLeft:t.scrollLeft},setLeft:function e(t,r){var a=t.ownerDocument;if(n(t,a)){a.body.scrollLeft=a.documentElement.scrollLeft=r}else{t.scrollLeft=r}}};e.exports=a},function(e,t,r){"use strict";var n=r(272);function a(e,t){var r=e.getSelection();false?undefined:void 0;var n=e.getCurrentContent();var a=r.getStartKey();var i=r.getStartOffset();var o=a;var s=0;if(t>i){var u=n.getKeyBefore(a);if(u==null){o=a}else{o=u;var l=n.getBlockForKey(u);s=l.getText().length}}else{s=i-t}return r.merge({focusKey:o,focusOffset:s,isBackward:true})}e.exports=a},function(e,t,r){"use strict";var n=r(566);function a(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++){r[n-1]=arguments[n]}var a=0;var i="Warning: "+e.replace(/%s/g,(function(){return r[a++]}));if(typeof console!=="undefined"){console.error(i)}try{throw new Error(i)}catch(e){}}var i=false?undefined:n;e.exports=i},function(e,t,r){"use strict";var n=r(38);var a=r(935);var i=n.isPlatform("Mac OS X");var o={isCtrlKeyCommand:function e(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function e(t){return i&&t.altKey},usesMacOSHeuristics:function e(){return i},hasCommandModifier:function e(t){return i?!!t.metaKey&&!t.altKey:o.isCtrlKeyCommand(t)},isSoftNewlineEvent:a};e.exports=o},function(e,t,r){var n=r(973);e.exports=function(e,t,r){n(e);if(t===undefined)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(131);e.exports=function(e,t){if(!n(e))return e;var r,a;if(t&&typeof(r=e.toString)=="function"&&!n(a=r.call(e)))return a;if(typeof(r=e.valueOf)=="function"&&!n(a=r.call(e)))return a;if(!t&&typeof(r=e.toString)=="function"&&!n(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){var r=Math.ceil;var n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(279)("keys");var a=r(193);e.exports=function(e){return n[e]||(n[e]=a(e))}},function(e,t,r){var n=r(30);var a=r(74);var i="__core-js_shared__";var o=a[i]||(a[i]={});(e.exports=function(e,t){return o[e]||(o[e]=t!==undefined?t:{})})("versions",[]).push({version:n.version,mode:r(192)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(130);var a=r(978);var i=r(280);var o=r(278)("IE_PROTO");var s=function(){};var u="prototype";var l=function(){var e=r(581)("iframe");var t=i.length;var n="<";var a=">";var o;e.style.display="none";r(979).appendChild(e);e.src="javascript:";o=e.contentWindow.document;o.open();o.write(n+"script"+a+"document.F=Object"+n+"/script"+a);o.close();l=o.F;while(t--)delete l[u][i[t]];return l()};e.exports=Object.create||function e(t,r){var i;if(t!==null){s[u]=n(t);i=new s;s[u]=null;i[o]=t}else i=l();return r===undefined?i:a(i,r)}},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var a=n(r(79));var i="transform";t.transform=i;var o,s,u;t.animationEnd=u;t.transitionEnd=s;var l,c,f,d;t.transitionDelay=d;t.transitionTiming=f;t.transitionDuration=c;t.transitionProperty=l;var p,h,v,m;t.animationDelay=m;t.animationTiming=v;t.animationDuration=h;t.animationName=p;if(a.default){var y=b();o=y.prefix;t.transitionEnd=s=y.transitionEnd;t.animationEnd=u=y.animationEnd;t.transform=i=o+"-"+i;t.transitionProperty=l=o+"-transition-property";t.transitionDuration=c=o+"-transition-duration";t.transitionDelay=d=o+"-transition-delay";t.transitionTiming=f=o+"-transition-timing-function";t.animationName=p=o+"-animation-name";t.animationDuration=h=o+"-animation-duration";t.animationTiming=v=o+"-animation-delay";t.animationDelay=m=o+"-animation-timing-function"}var g={transform:i,end:s,property:l,timing:f,delay:d,duration:c};t.default=g;function b(){var e=document.createElement("div").style;var t={O:function e(t){return"o"+t.toLowerCase()},Moz:function e(t){return t.toLowerCase()},Webkit:function e(t){return"webkit"+t},ms:function e(t){return"MS"+t}};var r=Object.keys(t);var n,a;var i="";for(var o=0;o<r.length;o++){var s=r[o];if(s+"TransitionProperty"in e){i="-"+s.toLowerCase();n=t[s]("TransitionEnd");a=t[s]("AnimationEnd");break}}if(!n&&"transitionProperty"in e)n="transitionend";if(!a&&"animationName"in e)a="animationend";e=null;return{animationEnd:a,transitionEnd:n,prefix:i}}},function(e,t,r){var n=r(83).f;var a=r(109);var i=r(68)("toStringTag");e.exports=function(e,t,r){if(e&&!a(e=r?e:e.prototype,i))n(e,i,{configurable:true,value:t})}},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(79));var i=function e(){};if(a.default){i=function(){if(document.addEventListener)return function(e,t,r,n){return e.addEventListener(t,r,n||false)};else if(document.attachEvent)return function(e,t,r){return e.attachEvent("on"+t,(function(t){t=t||window.event;t.target=t.target||t.srcElement;t.currentTarget=e;r.call(e,t)}))}}()}var o=i;t.default=o;e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(79));var i=function e(){};if(a.default){i=function(){if(document.addEventListener)return function(e,t,r,n){return e.removeEventListener(t,r,n||false)};else if(document.attachEvent)return function(e,t,r){return e.detachEvent("on"+t,r)}}()}var o=i;t.default=o;e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);function a(e){return n.createElement("div",{className:"updating-loader-container"},e.show&&n.createElement("div",{className:"updating-loader"},e.text||"Updating",n.createElement("i",{className:"fa fa-spinner fa-spin"})))}t.default=a},function(e,t,r){var n=r(289),a=r(1046);function i(e,t){return e&&n(e,a(t))}e.exports=i},function(e,t,r){var n=r(1038),a=r(136);function i(e,t){return e&&n(e,t,a)}e.exports=i},function(e,t,r){var n=r(1041),a=r(61);var i=Object.prototype;var o=i.hasOwnProperty;var s=i.propertyIsEnumerable;var u=n(function(){return arguments}())?n:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,r){(function(e){var n=r(60),a=r(1042);var i=true&&t&&!t.nodeType&&t;var o=i&&typeof e=="object"&&e&&!e.nodeType&&e;var s=o&&o.exports===i;var u=s?n.Buffer:undefined;var l=u?u.isBuffer:undefined;var c=l||a;e.exports=c}).call(this,r(48)(e))},function(e,t){var r=9007199254740991;var n=/^(?:0|[1-9]\d*)$/;function a(e,t){var a=typeof e;t=t==null?r:t;return!!t&&(a=="number"||a!="symbol"&&n.test(e))&&(e>-1&&e%1==0&&e<t)}e.exports=a},function(e,t){var r=9007199254740991;function n(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=r}e.exports=n},function(e,t,r){(function(e){var n=r(608);var a=true&&t&&!t.nodeType&&t;var i=a&&typeof e=="object"&&e&&!e.nodeType&&e;var o=i&&i.exports===a;var s=o&&n.process;var u=function(){try{var e=i&&i.require&&i.require("util").types;if(e){return e}return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(this,r(48)(e))},function(e,t){var r=Object.prototype;function n(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||r;return e===n}e.exports=n},function(e,t,r){var n=r(611);var a=n(Object.getPrototypeOf,Object);e.exports=a},function(e,t,r){var n=r(198),a=r(1054),i=r(1055),o=r(1056),s=r(1057),u=r(1058);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=a;l.prototype["delete"]=i;l.prototype.get=o;l.prototype.has=s;l.prototype.set=u;e.exports=l},function(e,t,r){var n=r(113),a=r(60);var i=n(a,"Map");e.exports=i},function(e,t,r){var n=r(1063),a=r(1070),i=r(1072),o=r(1073),s=r(1074);function u(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n;u.prototype["delete"]=a;u.prototype.get=i;u.prototype.has=o;u.prototype.set=s;e.exports=u},function(e,t,r){var n=r(1075),a=r(61);function i(e,t,r,o,s){if(e===t){return true}if(e==null||t==null||!a(e)&&!a(t)){return e!==e&&t!==t}return n(e,t,r,o,i,s)}e.exports=i},function(e,t,r){var n=r(299),a=r(1076),i=r(1077);function o(e){var t=-1,r=e==null?0:e.length;this.__data__=new n;while(++t<r){this.add(e[t])}}o.prototype.add=o.prototype.push=a;o.prototype.has=i;e.exports=o},function(e,t){function r(e,t){return e.has(t)}e.exports=r},function(e,t){function r(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}e.exports=r},function(e,t){function r(e,t){var r=-1,n=t.length,a=e.length;while(++r<n){e[a+r]=t[r]}return e}e.exports=r},function(e,t,r){var n=r(619),a=r(620);var i=Object.prototype;var o=i.propertyIsEnumerable;var s=Object.getOwnPropertySymbols;var u=!s?a:function(e){if(e==null){return[]}e=Object(e);return n(s(e),(function(t){return o.call(e,t)}))};e.exports=u},function(e,t,r){var n=r(12),a=r(138);var i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;function s(e,t){if(n(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||a(e)){return true}return o.test(e)||!i.test(e)||t!=null&&e in Object(t)}e.exports=s},function(e,t,r){var n=r(627);function a(e,t,r){if(t=="__proto__"&&n){n(e,t,{configurable:true,enumerable:true,value:r,writable:true})}else{e[t]=r}}e.exports=a},function(e,t,r){var n=r(609),a=r(1103),i=r(111);function o(e){return i(e)?n(e,true):a(e)}e.exports=o},function(e,t,r){var n=r(616);function a(e){var t=new e.constructor(e.byteLength);new n(t).set(new n(e));return t}e.exports=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1136);Object.defineProperty(t,"DragDropContext",{enumerable:true,get:function e(){return o(n).default}});var a=r(1179);Object.defineProperty(t,"Droppable",{enumerable:true,get:function e(){return o(a).default}});var i=r(1188);Object.defineProperty(t,"Draggable",{enumerable:true,get:function e(){return o(i).default}});function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";t.__esModule=true;var n=r(1142);var a=u(n);var i=r(1148);var o=u(i);var s=typeof o.default==="function"&&typeof a.default==="symbol"?function(e){return typeof e}:function(e){return e&&typeof o.default==="function"&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function u(e){return e&&e.__esModule?e:{default:e}}t.default=typeof o.default==="function"&&s(a.default)==="symbol"?function(e){return typeof e==="undefined"?"undefined":s(e)}:function(e){return e&&typeof o.default==="function"&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e==="undefined"?"undefined":s(e)}},function(e,t,r){t.f=r(68)},function(e,t,r){var n=r(74);var a=r(30);var i=r(192);var o=r(312);var s=r(83).f;e.exports=function(e){var t=a.Symbol||(a.Symbol=i?{}:n.Symbol||{});if(e.charAt(0)!="_"&&!(e in t))s(t,e,{value:o.f(e)})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n={x:0,y:0};var a=t.noMovement={draggables:[],amount:n,isBeyondStartPosition:false};var i={movement:a,direction:null,destination:null};t.default=i},function(e,t,r){"use strict";t.__esModule=true;var n=r(1163);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++){r[t]=e[t]}return r}else{return(0,a.default)(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDroppableDimension=t.getDraggableDimension=t.getFragment=t.noSpacing=undefined;var n=r(1166);var a=r(317);var i=s(a);var o=r(207);function s(e){return e&&e.__esModule?e:{default:e}}var u={x:0,y:0};var l=t.noSpacing={top:0,right:0,bottom:0,left:0};var c=function e(t,r){var n=t.top,a=t.right,o=t.bottom,s=t.left;return(0,i.default)({top:n+r.y,left:s+r.x,bottom:o+r.y,right:a+r.x})};var f=function e(t,r){var n=t.top,a=t.right,o=t.bottom,s=t.left;return(0,i.default)({top:n-r.top,left:s-r.left,bottom:o+r.bottom,right:a+r.right})};var d=t.getFragment=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:u;var n=(0,i.default)({top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x});return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,center:{x:(n.right+n.left)/2,y:(n.bottom+n.top)/2}}};var p=t.getDraggableDimension=function e(t){var r=t.id,n=t.droppableId,a=t.clientRect,i=t.margin,o=i===undefined?l:i,s=t.windowScroll,p=s===undefined?u:s;var h=c(a,p);var v={id:r,droppableId:n,client:{withoutMargin:d(a),withMargin:d(f(a,o))},page:{withoutMargin:d(h),withMargin:d(f(h,o))}};return v};var h=t.getDroppableDimension=function e(t){var r=t.id,a=t.clientRect,i=t.containerRect,s=t.direction,p=s===undefined?"vertical":s,h=t.margin,v=h===undefined?l:h,m=t.padding,y=m===undefined?l:m,g=t.windowScroll,b=g===undefined?u:g,A=t.scroll,_=A===undefined?u:A,w=t.isEnabled,E=w===undefined?true:w;var x=f(a,v);var k=c(a,b);var S=!i||(0,o.isEqual)(i,a)?c(x,b):c(i,b);var O={id:r,isEnabled:E,axis:p==="vertical"?n.vertical:n.horizontal,client:{withoutMargin:d(a),withMargin:d(x),withMarginAndPadding:d(f(x,y))},page:{withoutMargin:d(k),withMargin:d(f(k,v)),withMarginAndPadding:d(f(k,(0,o.add)(v,y)))},container:{scroll:{initial:_,current:_},bounds:d(S)}};return O}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e){var t=e.top,r=e.right,n=e.bottom,a=e.left;return{top:t,right:r,bottom:n,left:a,width:r-a,height:n-t}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(){return{x:window.pageXOffset,y:window.pageYOffset}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.lift=t.dropAnimationFinished=t.cancel=t.drop=t.completeDrop=t.prepare=t.clean=t.crossAxisMoveBackward=t.crossAxisMoveForward=t.moveForward=t.moveBackward=t.moveByWindowScroll=t.move=t.updateDroppableDimensionIsEnabled=t.updateDroppableDimensionScroll=t.publishDroppableDimension=t.publishDraggableDimension=t.completeLift=t.requestDimensions=undefined;var n=r(314);var a=u(n);var i=r(1186);var o=u(i);var s=r(43);function u(e){return e&&e.__esModule?e:{default:e}}var l={x:0,y:0};var c=function e(t){var r=t.initial,n=t.current,a=t.droppable;var i=(0,s.subtract)(r.windowScroll,n.windowScroll);var o=a?(0,s.subtract)(a.container.scroll.initial,a.container.scroll.current):l;return(0,s.add)(i,o)};var f=t.requestDimensions=function e(t){return{type:"REQUEST_DIMENSIONS",payload:t}};var d=t.completeLift=function e(t,r,n,a,i){return{type:"COMPLETE_LIFT",payload:{id:t,type:r,client:n,windowScroll:a,isScrollAllowed:i}}};var p=t.publishDraggableDimension=function e(t){return{type:"PUBLISH_DRAGGABLE_DIMENSION",payload:t}};var h=t.publishDroppableDimension=function e(t){return{type:"PUBLISH_DROPPABLE_DIMENSION",payload:t}};var v=t.updateDroppableDimensionScroll=function e(t,r){return{type:"UPDATE_DROPPABLE_DIMENSION_SCROLL",payload:{id:t,offset:r}}};var m=t.updateDroppableDimensionIsEnabled=function e(t,r){return{type:"UPDATE_DROPPABLE_DIMENSION_IS_ENABLED",payload:{id:t,isEnabled:r}}};var y=t.move=function e(t,r,n){return{type:"MOVE",payload:{id:t,client:r,windowScroll:n}}};var g=t.moveByWindowScroll=function e(t,r){return{type:"MOVE_BY_WINDOW_SCROLL",payload:{id:t,windowScroll:r}}};var b=t.moveBackward=function e(t){return{type:"MOVE_BACKWARD",payload:t}};var A=t.moveForward=function e(t){return{type:"MOVE_FORWARD",payload:t}};var _=t.crossAxisMoveForward=function e(t){return{type:"CROSS_AXIS_MOVE_FORWARD",payload:t}};var w=t.crossAxisMoveBackward=function e(t){return{type:"CROSS_AXIS_MOVE_BACKWARD",payload:t}};var E=t.clean=function e(){return{type:"CLEAN",payload:null}};var x=t.prepare=function e(){return{type:"PREPARE",payload:null}};var k=function e(t){var r=t.trigger,n=t.newHomeOffset,a=t.impact,i=t.result;return{type:"DROP_ANIMATE",payload:{trigger:r,newHomeOffset:n,impact:a,result:i}}};var S=t.completeDrop=function e(t){return{type:"DROP_COMPLETE",payload:t}};var O=t.drop=function e(){return function(e,t){var r=t();if(r.phase==="COLLECTING_DIMENSIONS"){e(E());return}if(r.phase!=="DRAGGING"){console.error("not able to drop in phase: '"+r.phase+"'");e(E());return}if(!r.drag){console.error("not able to drop when there is invalid drag state",r);e(E());return}var n=r.drag,a=n.impact,i=n.initial,u=n.current;var l=r.dimension.draggable[u.id];var f=r.dimension.droppable[l.droppableId];var d=a.destination?r.dimension.droppable[a.destination.droppableId]:null;var p={draggableId:u.id,type:u.type,source:i.source,destination:a.destination};var h=(0,o.default)({movement:a.movement,draggable:l,draggables:r.dimension.draggable,destination:d});var v=(0,s.subtract)(h,l.client.withMargin.center);var m=c({initial:i,current:u,droppable:d||f});var y=(0,s.add)(v,m);var g=!(0,s.isEqual)(u.client.offset,y);if(!g){e(S(p));return}e(k({trigger:"DROP",newHomeOffset:y,impact:a,result:p}))}};var M=t.cancel=function e(){return function(e,t){var r=t();if(r.phase!=="DRAGGING"){e(E());return}if(!r.drag){console.error("invalid drag state",r);e(E());return}var n=r.drag,i=n.initial,o=n.current;var u=r.dimension.droppable[i.source.droppableId];var f={draggableId:o.id,type:o.type,source:i.source,destination:null};var d=!(0,s.isEqual)(o.client.offset,l);if(!d){e(S(f));return}var p=c({initial:i,current:o,droppable:u});e(k({trigger:"CANCEL",newHomeOffset:p,impact:a.default,result:f}))}};var D=t.dropAnimationFinished=function e(){return function(e,t){var r=t();if(r.phase!=="DROP_ANIMATING"){console.error("cannot end drop that is no longer animating",r);e(E());return}if(!r.drop||!r.drop.pending){console.error("cannot end drop that has no pending state",r);e(E());return}e(S(r.drop.pending.result))}};var T=t.lift=function e(t,r,n,a,i){return function(e,o){var s=o();if(s.phase==="DROP_ANIMATING"){if(!s.drop||!s.drop.pending){console.error("cannot flush drop animation if there is no pending");e(E())}else{e(S(s.drop.pending.result))}}e(x());setTimeout((function(){var s=o();if(s.phase!=="PREPARING"){return}e(f(r));setTimeout((function(){var s=o();if(s.phase!=="COLLECTING_DIMENSIONS"){return}e(d(t,r,n,a,i))}))}))}}},function(e,t,r){"use strict";t.__esModule=true;t["default"]=n;function n(e){var t={};for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){t[r]=0}}return t}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t["default"]=a;var n=[0,0];function a(e,t,r,a,i,o,s){var u=-i*(t-a);var l=-o*r;var c=u+l;var f=r+c*e;var d=t+f*e;if(Math.abs(f)<s&&Math.abs(d-a)<s){n[0]=a;n[1]=0;return n}n[0]=d;n[1]=f;return n}e.exports=t["default"]},function(e,t,r){(function(t){(function(){var r,n,a;if(typeof performance!=="undefined"&&performance!==null&&performance.now){e.exports=function(){return performance.now()}}else if(typeof t!=="undefined"&&t!==null&&t.hrtime){e.exports=function(){return(r()-a)/1e6};n=t.hrtime;r=function(){var e;e=n();return e[0]*1e9+e[1]};a=r()}else if(Date.now){e.exports=function(){return Date.now()-a};a=Date.now()}else{e.exports=function(){return(new Date).getTime()-a};a=(new Date).getTime()}}).call(this)}).call(this,r(126))},function(e,t,r){"use strict";t.__esModule=true;t["default"]=n;function n(e,t,r){for(var n in t){if(!Object.prototype.hasOwnProperty.call(t,n)){continue}if(r[n]!==0){return false}var a=typeof t[n]==="number"?t[n]:t[n].val;if(e[n]!==a){return false}}return true}e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(53);var a=s(n);var i=r(635);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var r=function e(r){if(t()){r()}};var n=(0,a.default)((function(t,r){var n={x:t,y:r};e.onMove(n)}));var i=(0,o.default)((function(e){r((function(){return n(e.x,e.y)}))}));var s=(0,o.default)((function(){r(e.onMoveForward)}));var u=(0,o.default)((function(){r(e.onMoveBackward)}));var l=(0,o.default)((function(){r(e.onCrossAxisMoveForward)}));var c=(0,o.default)((function(){r(e.onCrossAxisMoveBackward)}));var f=(0,o.default)((function(){r(e.onWindowScroll)}));return{move:i,moveForward:s,moveBackward:u,crossAxisMoveForward:l,crossAxisMoveBackward:c,windowScrollMove:f}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e){return e?e.ownerDocument.defaultView:window}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=t.tab=9;var a=t.enter=13;var i=t.escape=27;var o=t.space=32;var s=t.arrowLeft=37;var u=t.arrowUp=38;var l=t.arrowRight=39;var c=t.arrowDown=40},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"47.31985",height:"29.64547",viewBox:"0 0 47.31985 29.64547","aria-hidden":"true"},n.createElement("title",null,"Grab Icon"),n.createElement("g",null,n.createElement("path",{d:"M43.05833,8.523H4.26152a4.26152,4.26152,0,0,1,0-8.523H43.05833a4.26152,4.26152,0,0,1,0,8.523Z"}),n.createElement("path",{d:"M43.05833,29.64547H4.26152a4.26152,4.26152,0,1,1,0-8.523H43.05833a4.26152,4.26152,0,0,1,0,8.523Z"})))};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=r(341);var i=r(1396);var o=r(1220);var s=r(1221);t.fields=[{value:"data_source",label:"distributor"},{value:"publisher",label:"publisher"},{value:"published",label:"publication date"},{value:"genre",label:"genre"},{value:"language",label:"language"},{value:"classification",label:"subject"},{value:"audience",label:"audience"},{value:"author",label:"author"},{value:"title",label:"title"}];t.operators=[{value:"eq",label:"equals",symbol:"="},{value:"contains",label:"contains",symbol:":"},{value:"regex",label:"matches regex",symbol:"~"},{value:"neq",label:"does not equal",symbol:"≠"},{value:"gt",label:"is greater than",symbol:">"},{value:"gte",label:"is greater than or equals",symbol:"≥"},{value:"lt",label:"is less than",symbol:"<"},{value:"lte",label:"is less than or equals",symbol:"≤"}];function u(e){var t=e.isOwner,r=e.name,u=e.query,l=e.selectedQueryId,c=e.addQuery,f=e.updateQueryBoolean,d=e.moveQuery,p=e.removeQuery,h=e.selectQuery;var v=!t;return n.createElement(a.DndProvider,{backend:i.HTML5Backend},n.createElement("div",{className:"advanced-search"},!v&&n.createElement(o.default,{name:r,onAdd:function(e){var t;return(t=c)===null||t===void 0?void 0:t(r,e)}}),n.createElement(s.default,{query:u,readOnly:v,selectedQueryId:l,onBooleanChange:function(e,t){var n;return(n=f)===null||n===void 0?void 0:n(r,e,t)},onMove:function(e,t){var n;return(n=d)===null||n===void 0?void 0:n(r,e,t)},onRemove:function(e){var t;return(t=p)===null||t===void 0?void 0:t(r,e)},onSelect:function(e){var t;return(t=h)===null||t===void 0?void 0:t(r,e)}})))}t.default=u},function(e,t,r){var n=r(214);var a=r(651);var i=r(330);var o=Object.defineProperty;t.f=r(141)?Object.defineProperty:function e(t,r,s){n(t);r=i(r,true);n(s);if(a)try{return o(t,r,s)}catch(e){}if("get"in s||"set"in s)throw TypeError("Accessors not supported!");if("value"in s)t[r]=s.value;return t}},function(e,t,r){var n=r(140);e.exports=function(e,t){if(!n(e))return e;var r,a;if(t&&typeof(r=e.toString)=="function"&&!n(a=r.call(e)))return a;if(typeof(r=e.valueOf)=="function"&&!n(a=r.call(e)))return a;if(!t&&typeof(r=e.toString)=="function"&&!n(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=Math.sign||function e(t){return(t=+t)==0||t!=t?t:t<0?-1:1}},function(e,t){var r=Math.expm1;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!=-2e-17?function e(t){return(t=+t)==0?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:r},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(1264);var a=r(335);e.exports=function(e){return n(a(e))}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(17);var a=r(335);var i=r(90);var o=r(338);var s="["+o+"]";var u="
";var l=RegExp("^"+s+s+"*");var c=RegExp(s+s+"*$");var f=function(e,t,r){var a={};var s=i((function(){return!!o[e]()||u[e]()!=u}));var l=a[e]=s?t(d):o[e];if(r)a[r]=l;n(n.P+n.F*s,"String",a)};var d=f.trim=function(e,t){e=String(a(e));if(t&1)e=e.replace(l,"");if(t&2)e=e.replace(c,"");return e};e.exports=f},function(e,t){e.exports="\t\n\v\f\r "+" \u2028\u2029\ufeff"},function(e,t,r){var n=r(304),a=r(1304);function i(e,t,r,o,s){var u=-1,l=e.length;r||(r=a);s||(s=[]);while(++u<l){var c=e[u];if(t>0&&r(c)){if(t>1){i(c,t-1,r,o,s)}else{n(s,c)}}else if(!o){s[s.length]=c}}return s}e.exports=i},function(e,t,r){"use strict";var n=String.prototype.replace;var a=/%20/g;var i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,a,"+")},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}},function(e,t,r){"use strict";r.r(t);r.d(t,"DndContext",(function(){return n["a"]}));r.d(t,"DndProvider",(function(){return a["a"]}));r.d(t,"DragPreviewImage",(function(){return o}));r.d(t,"DragSource",(function(){return xe}));r.d(t,"DropTarget",(function(){return ze}));r.d(t,"DragLayer",(function(){return rt}));r.d(t,"useDrag",(function(){return Gt}));r.d(t,"useDrop",(function(){return dr}));r.d(t,"useDragLayer",(function(){return br}));r.d(t,"useDragDropManager",(function(){return ft}));var n=r(220);var a=r(643);var i=r(1);var o=Object(i["memo"])((function e(t){var r=t.connect,n=t.src;Object(i["useEffect"])((function(){if(typeof Image==="undefined")return;var e=false;var t=new Image;t.src=n;t.onload=function(){r(t);e=true};return function(){if(e){r(null)}}}));return null}));var s=r(6);function u(e,t,r){var n=r.getRegistry();var a=n.addTarget(e,t);return[a,function(){return n.removeTarget(a)}]}function l(e,t,r){var n=r.getRegistry();var a=n.addSource(e,t);return[a,function(){return n.removeSource(a)}]}function c(e){if(typeof e.type==="string"){return}var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}function f(e){return function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(!Object(i["isValidElement"])(t)){var n=t;e(n,r);return n}var a=t;c(a);var o=r?function(t){return e(t,r)}:e;return h(a,o)}}function d(e){var t={};Object.keys(e).forEach((function(r){var n=e[r];if(r.endsWith("Ref")){t[r]=e[r]}else{var a=f(n);t[r]=function(){return a}}}));return t}function p(e,t){if(typeof e==="function"){e(t)}else{e.current=t}}function h(e,t){var r=e.ref;Object(s["a"])(typeof r!=="string","Cannot connect React DnD to an element with an existing string ref. "+"Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. "+"Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs");if(!r){return Object(i["cloneElement"])(e,{ref:t})}else{return Object(i["cloneElement"])(e,{ref:function e(n){p(r,n);p(t,n)}})}}function v(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){v=function e(t){return typeof t}}else{v=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return v(e)}function m(e){return e!==null&&v(e)==="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function y(e,t,r,n){var a=r?r.call(n,e,t):void 0;if(a!==void 0){return!!a}if(e===t){return true}if(typeof e!=="object"||!e||typeof t!=="object"||!t){return false}var i=Object.keys(e);var o=Object.keys(t);if(i.length!==o.length){return false}var s=Object.prototype.hasOwnProperty.bind(t);for(var u=0;u<i.length;u++){var l=i[u];if(!s(l)){return false}var c=e[l];var f=t[l];a=r?r.call(n,c,f,l):void 0;if(a===false||a===void 0&&c!==f){return false}}return true}function g(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function A(e,t,r){if(t)b(e.prototype,t);if(r)b(e,r);return e}function _(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var w=function(){function e(t){var r=this;g(this,e);_(this,"hooks",d({dragSource:function e(t,n){r.clearDragSource();r.dragSourceOptions=n||null;if(m(t)){r.dragSourceRef=t}else{r.dragSourceNode=t}r.reconnectDragSource()},dragPreview:function e(t,n){r.clearDragPreview();r.dragPreviewOptions=n||null;if(m(t)){r.dragPreviewRef=t}else{r.dragPreviewNode=t}r.reconnectDragPreview()}}));_(this,"handlerId",null);_(this,"dragSourceRef",null);_(this,"dragSourceNode",void 0);_(this,"dragSourceOptionsInternal",null);_(this,"dragSourceUnsubscribe",void 0);_(this,"dragPreviewRef",null);_(this,"dragPreviewNode",void 0);_(this,"dragPreviewOptionsInternal",null);_(this,"dragPreviewUnsubscribe",void 0);_(this,"lastConnectedHandlerId",null);_(this,"lastConnectedDragSource",null);_(this,"lastConnectedDragSourceOptions",null);_(this,"lastConnectedDragPreview",null);_(this,"lastConnectedDragPreviewOptions",null);_(this,"backend",void 0);this.backend=t}A(e,[{key:"receiveHandlerId",value:function e(t){if(this.handlerId===t){return}this.handlerId=t;this.reconnect()}},{key:"connectTarget",get:function e(){return this.dragSource}},{key:"dragSourceOptions",get:function e(){return this.dragSourceOptionsInternal},set:function e(t){this.dragSourceOptionsInternal=t}},{key:"dragPreviewOptions",get:function e(){return this.dragPreviewOptionsInternal},set:function e(t){this.dragPreviewOptionsInternal=t}},{key:"reconnect",value:function e(){this.reconnectDragSource();this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function e(){var t=this.dragSource;var r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(r){this.disconnectDragSource()}if(!this.handlerId){return}if(!t){this.lastConnectedDragSource=t;return}if(r){this.lastConnectedHandlerId=this.handlerId;this.lastConnectedDragSource=t;this.lastConnectedDragSourceOptions=this.dragSourceOptions;this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)}}},{key:"reconnectDragPreview",value:function e(){var t=this.dragPreview;var r=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r){this.disconnectDragPreview()}if(!this.handlerId){return}if(!t){this.lastConnectedDragPreview=t;return}if(r){this.lastConnectedHandlerId=this.handlerId;this.lastConnectedDragPreview=t;this.lastConnectedDragPreviewOptions=this.dragPreviewOptions;this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)}}},{key:"didHandlerIdChange",value:function e(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function e(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function e(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function e(){return!y(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function e(){return!y(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function e(){if(this.dragSourceUnsubscribe){this.dragSourceUnsubscribe();this.dragSourceUnsubscribe=undefined}}},{key:"disconnectDragPreview",value:function e(){if(this.dragPreviewUnsubscribe){this.dragPreviewUnsubscribe();this.dragPreviewUnsubscribe=undefined;this.dragPreviewNode=null;this.dragPreviewRef=null}}},{key:"dragSource",get:function e(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function e(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function e(){this.dragSourceNode=null;this.dragSourceRef=null}},{key:"clearDragPreview",value:function e(){this.dragPreviewNode=null;this.dragPreviewRef=null}}]);return e}();function E(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function k(e,t,r){if(t)x(e.prototype,t);if(r)x(e,r);return e}function S(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var O=false;var M=false;var D=function(){function e(t){E(this,e);S(this,"internalMonitor",void 0);S(this,"sourceId",null);this.internalMonitor=t.getMonitor()}k(e,[{key:"receiveHandlerId",value:function e(t){this.sourceId=t}},{key:"getHandlerId",value:function e(){return this.sourceId}},{key:"canDrag",value:function e(){Object(s["a"])(!O,"You may not call monitor.canDrag() inside your canDrag() implementation. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{O=true;return this.internalMonitor.canDragSource(this.sourceId)}finally{O=false}}},{key:"isDragging",value:function e(){if(!this.sourceId){return false}Object(s["a"])(!M,"You may not call monitor.isDragging() inside your isDragging() implementation. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{M=true;return this.internalMonitor.isDraggingSource(this.sourceId)}finally{M=false}}},{key:"subscribeToStateChange",value:function e(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}},{key:"isDraggingSource",value:function e(t){return this.internalMonitor.isDraggingSource(t)}},{key:"isOverTarget",value:function e(t,r){return this.internalMonitor.isOverTarget(t,r)}},{key:"getTargetIds",value:function e(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function e(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function e(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function e(t){return this.internalMonitor.subscribeToOffsetChange(t)}},{key:"canDragSource",value:function e(t){return this.internalMonitor.canDragSource(t)}},{key:"canDropOnTarget",value:function e(t){return this.internalMonitor.canDropOnTarget(t)}},{key:"getItemType",value:function e(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function e(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function e(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function e(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function e(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function e(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function e(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function e(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function e(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]);return e}();function T(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){T=function e(t){return typeof t}}else{T=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return T(e)}function L(e){var t=e.current;if(t==null){return null}else if(t.decoratedRef){return t.decoratedRef.current}else{return t}}function C(e){return e&&e.prototype&&typeof e.prototype.render==="function"}function j(e){var t;var r=e;return(r===null||r===void 0?void 0:(t=r.$$typeof)===null||t===void 0?void 0:t.toString())==="Symbol(react.forward_ref)"}function N(e){return C(e)||j(e)}function I(e,t){if(false){var r,n}}function P(e){return typeof e==="function"}function R(){}function F(e){return T(e)==="object"&&e!==null}function Y(e){if(!F(e)){return false}if(Object.getPrototypeOf(e)===null){return true}var t=e;while(Object.getPrototypeOf(t)!==null){t=Object.getPrototypeOf(t)}return Object.getPrototypeOf(e)===t}function B(e,t){return typeof e==="string"||T(e)==="symbol"||!!t&&Array.isArray(e)&&e.every((function(e){return B(e,false)}))}var H=r(98);function U(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function q(e,t,r){if(t)z(e.prototype,t);if(r)z(e,r);return e}function V(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var W=function(){function e(t){U(this,e);V(this,"isDisposed",false);V(this,"action",void 0);this.action=P(t)?t:R}q(e,[{key:"dispose",value:function e(){if(!this.isDisposed){this.action();this.isDisposed=true}}}],[{key:"isDisposable",value:function e(t){return Boolean(t&&P(t.dispose))}},{key:"_fixup",value:function t(r){return e.isDisposable(r)?r:e.empty}},{key:"create",value:function t(r){return new e(r)}}]);return e}();V(W,"empty",{dispose:R});var K=function(){function e(){U(this,e);V(this,"isDisposed",false);V(this,"disposables",void 0);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++){r[n]=arguments[n]}this.disposables=r}q(e,[{key:"add",value:function e(t){if(this.isDisposed){t.dispose()}else{this.disposables.push(t)}}},{key:"remove",value:function e(t){var r=false;if(!this.isDisposed){var n=this.disposables.indexOf(t);if(n!==-1){r=true;this.disposables.splice(n,1);t.dispose()}}return r}},{key:"clear",value:function e(){if(!this.isDisposed){var t=this.disposables.length;var r=new Array(t);for(var n=0;n<t;n++){r[n]=this.disposables[n]}this.disposables=[];for(var a=0;a<t;a++){r[a].dispose()}}}},{key:"dispose",value:function e(){if(!this.isDisposed){this.isDisposed=true;var t=this.disposables.length;var r=new Array(t);for(var n=0;n<t;n++){r[n]=this.disposables[n]}this.disposables=[];for(var a=0;a<t;a++){r[a].dispose()}}}}]);return e}();var G=function(){function e(){U(this,e);V(this,"isDisposed",false);V(this,"current",void 0)}q(e,[{key:"getDisposable",value:function e(){return this.current}},{key:"setDisposable",value:function e(t){var r=this.isDisposed;if(!r){var n=this.current;this.current=t;if(n){n.dispose()}}if(r&&t){t.dispose()}}},{key:"dispose",value:function e(){if(!this.isDisposed){this.isDisposed=true;var t=this.current;this.current=undefined;if(t){t.dispose()}}}}]);return e}();var Q=r(62);var J=r.n(Q);function Z(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Z=function e(t){return typeof t}}else{Z=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return Z(e)}function X(e,t){return ne(e)||re(e,t)||ee(e,t)||$()}function $(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ee(e,t){if(!e)return;if(typeof e==="string")return te(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return te(e,t)}function te(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function re(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function ne(e){if(Array.isArray(e))return e}function ae(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function ie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function oe(e,t,r){if(t)ie(e.prototype,t);if(r)ie(e,r);return e}function se(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)ue(e,t)}function ue(e,t){ue=Object.setPrototypeOf||function e(t,r){t.__proto__=r;return t};return ue(e,t)}function le(e){var t=de();return function r(){var n=pe(e),a;if(t){var i=pe(this).constructor;a=Reflect.construct(n,arguments,i)}else{a=n.apply(this,arguments)}return ce(this,a)}}function ce(e,t){if(t&&(Z(t)==="object"||typeof t==="function")){return t}else if(t!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return fe(e)}function fe(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function de(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return true}catch(e){return false}}function pe(e){pe=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return pe(e)}function he(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function ve(e){var t=e.DecoratedComponent,r=e.createHandler,a=e.createMonitor,o=e.createConnector,u=e.registerHandler,l=e.containerDisplayName,c=e.getType,f=e.collect,d=e.options;var p=d.arePropsEqual,h=p===void 0?y:p;var v=t;var m=t.displayName||t.name||"Component";var g=function(e){se(l,e);var t=le(l);function l(e){var r;ae(this,l);r=t.call(this,e);he(fe(r),"decoratedRef",Object(i["createRef"])());he(fe(r),"handlerId",void 0);he(fe(r),"manager",void 0);he(fe(r),"handlerMonitor",void 0);he(fe(r),"handlerConnector",void 0);he(fe(r),"handler",void 0);he(fe(r),"disposable",void 0);he(fe(r),"currentType",void 0);he(fe(r),"handleChange",(function(){var e=r.getCurrentState();if(!y(e,r.state)){r.setState(e)}}));r.disposable=new G;r.receiveProps(e);r.dispose();return r}oe(l,[{key:"getHandlerId",value:function e(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function e(){Object(s["a"])(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()");return this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function e(t,r){return!h(t,this.props)||!y(r,this.state)}},{key:"componentDidMount",value:function e(){this.disposable=new G;this.currentType=undefined;this.receiveProps(this.props);this.handleChange()}},{key:"componentDidUpdate",value:function e(t){if(!h(this.props,t)){this.receiveProps(this.props);this.handleChange()}}},{key:"componentWillUnmount",value:function e(){this.dispose()}},{key:"receiveProps",value:function e(t){if(!this.handler){return}this.handler.receiveProps(t);this.receiveType(c(t))}},{key:"receiveType",value:function e(t){if(!this.handlerMonitor||!this.manager||!this.handlerConnector){return}if(t===this.currentType){return}this.currentType=t;var r=u(t,this.handler,this.manager),n=X(r,2),a=n[0],i=n[1];this.handlerId=a;this.handlerMonitor.receiveHandlerId(a);this.handlerConnector.receiveHandlerId(a);var o=this.manager.getMonitor();var s=o.subscribeToStateChange(this.handleChange,{handlerIds:[a]});this.disposable.setDisposable(new K(new W(s),new W(i)))}},{key:"dispose",value:function e(){this.disposable.dispose();if(this.handlerConnector){this.handlerConnector.receiveHandlerId(null)}}},{key:"getCurrentState",value:function e(){if(!this.handlerConnector){return{}}var t=f(this.handlerConnector.hooks,this.handlerMonitor,this.props);if(false){}return t}},{key:"render",value:function e(){var t=this;return Object(H["jsx"])(n["a"].Consumer,{children:function e(r){var n=r.dragDropManager;t.receiveDragDropManager(n);if(typeof requestAnimationFrame!=="undefined"){requestAnimationFrame((function(){var e;return(e=t.handlerConnector)===null||e===void 0?void 0:e.reconnect()}))}return Object(H["jsx"])(v,Object.assign({},t.props,t.getCurrentState(),{ref:N(v)?t.decoratedRef:null}),void 0)}},void 0)}},{key:"receiveDragDropManager",value:function e(t){if(this.manager!==undefined){return}Object(s["a"])(t!==undefined,"Could not find the drag and drop manager in the context of %s. "+"Make sure to render a DndProvider component in your top-level component. "+"Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",m,m);if(t===undefined){return}this.manager=t;this.handlerMonitor=a(t);this.handlerConnector=o(t.getBackend());this.handler=r(this.handlerMonitor,this.decoratedRef)}}]);return l}(i["Component"]);he(g,"DecoratedComponent",t);he(g,"displayName","".concat(l,"(").concat(m,")"));return J()(g,t)}function me(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function ye(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function ge(e,t,r){if(t)ye(e.prototype,t);if(r)ye(e,r);return e}function be(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var Ae=["canDrag","beginDrag","isDragging","endDrag"];var _e=["beginDrag"];var we=function(){function e(t,r,n){var a=this;me(this,e);be(this,"props",null);be(this,"spec",void 0);be(this,"monitor",void 0);be(this,"ref",void 0);be(this,"beginDrag",(function(){if(!a.props){return}var e=a.spec.beginDrag(a.props,a.monitor,a.ref.current);if(false){}return e}));this.spec=t;this.monitor=r;this.ref=n}ge(e,[{key:"receiveProps",value:function e(t){this.props=t}},{key:"canDrag",value:function e(){if(!this.props){return false}if(!this.spec.canDrag){return true}return this.spec.canDrag(this.props,this.monitor)}},{key:"isDragging",value:function e(t,r){if(!this.props){return false}if(!this.spec.isDragging){return r===t.getSourceId()}return this.spec.isDragging(this.props,this.monitor)}},{key:"endDrag",value:function e(){if(!this.props){return}if(!this.spec.endDrag){return}this.spec.endDrag(this.props,this.monitor,L(this.ref))}}]);return e}();function Ee(e){Object.keys(e).forEach((function(t){Object(s["a"])(Ae.indexOf(t)>-1,"Expected the drag source specification to only have "+"some of the following keys: %s. "+'Instead received a specification with an unexpected "%s" key. '+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",Ae.join(", "),t);Object(s["a"])(typeof e[t]==="function","Expected %s in the drag source specification to be a function. "+"Instead received a specification with %s: %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}));_e.forEach((function(t){Object(s["a"])(typeof e[t]==="function","Expected %s in the drag source specification to be a function. "+"Instead received a specification with %s: %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}));return function t(r,n){return new we(e,r,n)}}function xe(e,t,r){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};I("DragSource","type, spec, collect[, options]",e,t,r,n);var a=e;if(typeof e!=="function"){Object(s["a"])(B(e),'Expected "type" provided as the first argument to DragSource to be '+"a string, or a function that returns a string given the current props. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",e);a=function t(){return e}}Object(s["a"])(Y(t),'Expected "spec" provided as the second argument to DragSource to be '+"a plain object. Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t);var i=Ee(t);Object(s["a"])(typeof r==="function",'Expected "collect" provided as the third argument to DragSource to be '+"a function that returns a plain object of props to inject. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",r);Object(s["a"])(Y(n),'Expected "options" provided as the fourth argument to DragSource to be '+"a plain object when specified. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",r);return function e(t){return ve({containerDisplayName:"DragSource",createHandler:i,registerHandler:l,createConnector:function e(t){return new w(t)},createMonitor:function e(t){return new D(t)},DecoratedComponent:t,getType:a,collect:r,options:n})}}function ke(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Se(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function Oe(e,t,r){if(t)Se(e.prototype,t);if(r)Se(e,r);return e}function Me(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var De=false;var Te=function(){function e(t){ke(this,e);Me(this,"internalMonitor",void 0);Me(this,"targetId",null);this.internalMonitor=t.getMonitor()}Oe(e,[{key:"receiveHandlerId",value:function e(t){this.targetId=t}},{key:"getHandlerId",value:function e(){return this.targetId}},{key:"subscribeToStateChange",value:function e(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}},{key:"canDrop",value:function e(){if(!this.targetId){return false}Object(s["a"])(!De,"You may not call monitor.canDrop() inside your canDrop() implementation. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{De=true;return this.internalMonitor.canDropOnTarget(this.targetId)}finally{De=false}}},{key:"isOver",value:function e(t){if(!this.targetId){return false}return this.internalMonitor.isOverTarget(this.targetId,t)}},{key:"getItemType",value:function e(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function e(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function e(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function e(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function e(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function e(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function e(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function e(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function e(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]);return e}();function Le(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Ce(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function je(e,t,r){if(t)Ce(e.prototype,t);if(r)Ce(e,r);return e}function Ne(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var Ie=function(){function e(t){var r=this;Le(this,e);Ne(this,"hooks",d({dropTarget:function e(t,n){r.clearDropTarget();r.dropTargetOptions=n;if(m(t)){r.dropTargetRef=t}else{r.dropTargetNode=t}r.reconnect()}}));Ne(this,"handlerId",null);Ne(this,"dropTargetRef",null);Ne(this,"dropTargetNode",void 0);Ne(this,"dropTargetOptionsInternal",null);Ne(this,"unsubscribeDropTarget",void 0);Ne(this,"lastConnectedHandlerId",null);Ne(this,"lastConnectedDropTarget",null);Ne(this,"lastConnectedDropTargetOptions",null);Ne(this,"backend",void 0);this.backend=t}je(e,[{key:"connectTarget",get:function e(){return this.dropTarget}},{key:"reconnect",value:function e(){var t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();if(t){this.disconnectDropTarget()}var r=this.dropTarget;if(!this.handlerId){return}if(!r){this.lastConnectedDropTarget=r;return}if(t){this.lastConnectedHandlerId=this.handlerId;this.lastConnectedDropTarget=r;this.lastConnectedDropTargetOptions=this.dropTargetOptions;this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions)}}},{key:"receiveHandlerId",value:function e(t){if(t===this.handlerId){return}this.handlerId=t;this.reconnect()}},{key:"dropTargetOptions",get:function e(){return this.dropTargetOptionsInternal},set:function e(t){this.dropTargetOptionsInternal=t}},{key:"didHandlerIdChange",value:function e(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function e(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function e(){return!y(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function e(){if(this.unsubscribeDropTarget){this.unsubscribeDropTarget();this.unsubscribeDropTarget=undefined}}},{key:"dropTarget",get:function e(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function e(){this.dropTargetRef=null;this.dropTargetNode=null}}]);return e}();function Pe(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Re(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function Fe(e,t,r){if(t)Re(e.prototype,t);if(r)Re(e,r);return e}function Ye(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var Be=["canDrop","hover","drop"];var He=function(){function e(t,r,n){Pe(this,e);Ye(this,"props",null);Ye(this,"spec",void 0);Ye(this,"monitor",void 0);Ye(this,"ref",void 0);this.spec=t;this.monitor=r;this.ref=n}Fe(e,[{key:"receiveProps",value:function e(t){this.props=t}},{key:"receiveMonitor",value:function e(t){this.monitor=t}},{key:"canDrop",value:function e(){if(!this.spec.canDrop){return true}return this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function e(){if(!this.spec.hover||!this.props){return}this.spec.hover(this.props,this.monitor,L(this.ref))}},{key:"drop",value:function e(){if(!this.spec.drop){return undefined}var t=this.spec.drop(this.props,this.monitor,this.ref.current);if(false){}return t}}]);return e}();function Ue(e){Object.keys(e).forEach((function(t){Object(s["a"])(Be.indexOf(t)>-1,"Expected the drop target specification to only have "+"some of the following keys: %s. "+'Instead received a specification with an unexpected "%s" key. '+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",Be.join(", "),t);Object(s["a"])(typeof e[t]==="function","Expected %s in the drop target specification to be a function. "+"Instead received a specification with %s: %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])}));return function t(r,n){return new He(e,r,n)}}function ze(e,t,r){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};I("DropTarget","type, spec, collect[, options]",e,t,r,n);var a=e;if(typeof e!=="function"){Object(s["a"])(B(e,true),'Expected "type" provided as the first argument to DropTarget to be '+"a string, an array of strings, or a function that returns either given "+"the current props. Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",e);a=function t(){return e}}Object(s["a"])(Y(t),'Expected "spec" provided as the second argument to DropTarget to be '+"a plain object. Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t);var i=Ue(t);Object(s["a"])(typeof r==="function",'Expected "collect" provided as the third argument to DropTarget to be '+"a function that returns a plain object of props to inject. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",r);Object(s["a"])(Y(n),'Expected "options" provided as the fourth argument to DropTarget to be '+"a plain object when specified. "+"Instead, received %s. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",r);return function e(t){return ve({containerDisplayName:"DropTarget",createHandler:i,registerHandler:u,createMonitor:function e(t){return new Te(t)},createConnector:function e(t){return new Ie(t)},DecoratedComponent:t,getType:a,collect:r,options:n})}}function qe(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){qe=function e(t){return typeof t}}else{qe=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return qe(e)}function Ve(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function We(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function Ke(e,t,r){if(t)We(e.prototype,t);if(r)We(e,r);return e}function Ge(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)Qe(e,t)}function Qe(e,t){Qe=Object.setPrototypeOf||function e(t,r){t.__proto__=r;return t};return Qe(e,t)}function Je(e){var t=$e();return function r(){var n=et(e),a;if(t){var i=et(this).constructor;a=Reflect.construct(n,arguments,i)}else{a=n.apply(this,arguments)}return Ze(this,a)}}function Ze(e,t){if(t&&(qe(t)==="object"||typeof t==="function")){return t}else if(t!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return Xe(e)}function Xe(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function $e(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return true}catch(e){return false}}function et(e){et=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return et(e)}function tt(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function rt(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};I("DragLayer","collect[, options]",e,t);Object(s["a"])(typeof e==="function",'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e);Object(s["a"])(Y(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. '+"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",t);return function r(a){var o=a;var u=t.arePropsEqual,l=u===void 0?y:u;var c=o.displayName||o.name||"Component";var f=function(t){Ge(a,t);var r=Je(a);function a(){var e;Ve(this,a);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++){n[o]=arguments[o]}e=r.call.apply(r,[this].concat(n));tt(Xe(e),"manager",void 0);tt(Xe(e),"isCurrentlyMounted",false);tt(Xe(e),"unsubscribeFromOffsetChange",void 0);tt(Xe(e),"unsubscribeFromStateChange",void 0);tt(Xe(e),"ref",Object(i["createRef"])());tt(Xe(e),"handleChange",(function(){if(!e.isCurrentlyMounted){return}var t=e.getCurrentState();if(!y(t,e.state)){e.setState(t)}}));return e}Ke(a,[{key:"getDecoratedComponentInstance",value:function e(){Object(s["a"])(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()");return this.ref.current}},{key:"shouldComponentUpdate",value:function e(t,r){return!l(t,this.props)||!y(r,this.state)}},{key:"componentDidMount",value:function e(){this.isCurrentlyMounted=true;this.handleChange()}},{key:"componentWillUnmount",value:function e(){this.isCurrentlyMounted=false;if(this.unsubscribeFromOffsetChange){this.unsubscribeFromOffsetChange();this.unsubscribeFromOffsetChange=undefined}if(this.unsubscribeFromStateChange){this.unsubscribeFromStateChange();this.unsubscribeFromStateChange=undefined}}},{key:"render",value:function e(){var t=this;return Object(H["jsx"])(n["a"].Consumer,{children:function e(r){var n=r.dragDropManager;if(n===undefined){return null}t.receiveDragDropManager(n);if(!t.isCurrentlyMounted){return null}return Object(H["jsx"])(o,Object.assign({},t.props,t.state,{ref:N(o)?t.ref:null}),void 0)}},void 0)}},{key:"receiveDragDropManager",value:function e(t){if(this.manager!==undefined){return}this.manager=t;Object(s["a"])(qe(t)==="object","Could not find the drag and drop manager in the context of %s. "+"Make sure to render a DndProvider component in your top-level component. "+"Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",c,c);var r=this.manager.getMonitor();this.unsubscribeFromOffsetChange=r.subscribeToOffsetChange(this.handleChange);this.unsubscribeFromStateChange=r.subscribeToStateChange(this.handleChange)}},{key:"getCurrentState",value:function t(){if(!this.manager){return{}}var r=this.manager.getMonitor();return e(r,this.props)}}]);return a}(i["Component"]);tt(f,"displayName","DragLayer(".concat(c,")"));tt(f,"DecoratedComponent",a);return J()(f,a)}}var nt=typeof window!=="undefined"?i["useLayoutEffect"]:i["useEffect"];function at(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){at=function e(t){return typeof t}}else{at=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return at(e)}function it(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function ot(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function st(e,t,r){if(t)ot(e.prototype,t);if(r)ot(e,r);return e}function ut(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var lt=function(){function e(t,r,n){it(this,e);ut(this,"spec",void 0);ut(this,"monitor",void 0);ut(this,"connector",void 0);this.spec=t;this.monitor=r;this.connector=n}st(e,[{key:"beginDrag",value:function e(){var t;var r=this.spec;var n=this.monitor;var a=null;if(at(r.item)==="object"){a=r.item}else if(typeof r.item==="function"){a=r.item(n)}else{a={}}return(t=a)!==null&&t!==void 0?t:null}},{key:"canDrag",value:function e(){var t=this.spec;var r=this.monitor;if(typeof t.canDrag==="boolean"){return t.canDrag}else if(typeof t.canDrag==="function"){return t.canDrag(r)}else{return true}}},{key:"isDragging",value:function e(t,r){var n=this.spec;var a=this.monitor;var e=n.isDragging;return e?e(a):r===t.getSourceId()}},{key:"endDrag",value:function e(){var t=this.spec;var r=this.monitor;var n=this.connector;var a=t.end;if(a){a(r.getItem(),r)}n.reconnect()}}]);return e}();function ct(e,t,r){var n=Object(i["useMemo"])((function(){return new lt(e,t,r)}),[t,r]);Object(i["useEffect"])((function(){n.spec=e}),[e]);return n}function ft(){var e=Object(i["useContext"])(n["a"]),t=e.dragDropManager;Object(s["a"])(t!=null,"Expected drag drop context");return t}function dt(e){return Object(i["useMemo"])((function(){var t=e.type;Object(s["a"])(t!=null,"spec.type must be defined");return t}),[e])}function pt(e,t){return gt(e)||yt(e,t)||vt(e,t)||ht()}function ht(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vt(e,t){if(!e)return;if(typeof e==="string")return mt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mt(e,t)}function mt(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function yt(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function gt(e){if(Array.isArray(e))return e}function bt(e,t,r){var n=ft();var a=ct(e,t,r);var i=dt(e);nt((function e(){if(i!=null){var o=l(i,a,n),s=pt(o,2),u=s[0],c=s[1];t.receiveHandlerId(u);r.receiveHandlerId(u);return c}}),[n,t,r,a,i])}function At(e){return xt(e)||Et(e)||wt(e)||_t()}function _t(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function wt(e,t){if(!e)return;if(typeof e==="string")return kt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kt(e,t)}function Et(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xt(e){if(Array.isArray(e))return kt(e)}function kt(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function St(e,t){var r=At(t||[]);if(t==null&&typeof e!=="function"){r.push(e)}return Object(i["useMemo"])((function(){return typeof e==="function"?e():e}),r)}function Ot(){var e=ft();return Object(i["useMemo"])((function(){return new D(e)}),[e])}function Mt(e,t){var r=ft();var n=Object(i["useMemo"])((function(){return new w(r.getBackend())}),[r]);nt((function(){n.dragSourceOptions=e||null;n.reconnect();return function(){return n.disconnectDragSource()}}),[n,e]);nt((function(){n.dragPreviewOptions=t||null;n.reconnect();return function(){return n.disconnectDragPreview()}}),[n,t]);return n}var Dt=r(697);var Tt=r.n(Dt);function Lt(e,t){return Pt(e)||It(e,t)||jt(e,t)||Ct()}function Ct(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function jt(e,t){if(!e)return;if(typeof e==="string")return Nt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nt(e,t)}function Nt(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function It(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function Pt(e){if(Array.isArray(e))return e}function Rt(e,t,r){var n=Object(i["useState"])((function(){return t(e)})),a=Lt(n,2),o=a[0],s=a[1];var u=Object(i["useCallback"])((function(){var n=t(e);if(!Tt()(o,n)){s(n);if(r){r()}}}),[o,e,r]);nt(u);return[o,u]}function Ft(e,t){return zt(e)||Ut(e,t)||Bt(e,t)||Yt()}function Yt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Bt(e,t){if(!e)return;if(typeof e==="string")return Ht(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ht(e,t)}function Ht(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function Ut(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function zt(e){if(Array.isArray(e))return e}function qt(e,t,r){var n=Rt(e,t,r),a=Ft(n,2),i=a[0],o=a[1];nt((function t(){var r=e.getHandlerId();if(r==null){return}return e.subscribeToStateChange(o,{handlerIds:[r]})}),[e,o]);return i}function Vt(e,t,r){return qt(t,e||function(){return{}},(function(){return r.reconnect()}))}function Wt(e){return Object(i["useMemo"])((function(){return e.hooks.dragSource()}),[e])}function Kt(e){return Object(i["useMemo"])((function(){return e.hooks.dragPreview()}),[e])}function Gt(e,t){var r=St(e,t);Object(s["a"])(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var n=Ot();var a=Mt(r.options,r.previewOptions);bt(r,n,a);return[Vt(r.collect,n,a),Wt(a),Kt(a)]}function Qt(e){var t=e.accept;return Object(i["useMemo"])((function(){Object(s["a"])(e.accept!=null,"accept must be defined");return Array.isArray(t)?t:[t]}),[t])}function Jt(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Zt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function Xt(e,t,r){if(t)Zt(e.prototype,t);if(r)Zt(e,r);return e}function $t(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var er=function(){function e(t,r){Jt(this,e);$t(this,"spec",void 0);$t(this,"monitor",void 0);this.spec=t;this.monitor=r}Xt(e,[{key:"canDrop",value:function e(){var t=this.spec;var r=this.monitor;return t.canDrop?t.canDrop(r.getItem(),r):true}},{key:"hover",value:function e(){var t=this.spec;var r=this.monitor;if(t.hover){t.hover(r.getItem(),r)}}},{key:"drop",value:function e(){var t=this.spec;var r=this.monitor;if(t.drop){return t.drop(r.getItem(),r)}}}]);return e}();function tr(e,t){var r=Object(i["useMemo"])((function(){return new er(e,t)}),[t]);Object(i["useEffect"])((function(){r.spec=e}),[e]);return r}function rr(e,t){return sr(e)||or(e,t)||ar(e,t)||nr()}function nr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ar(e,t){if(!e)return;if(typeof e==="string")return ir(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ir(e,t)}function ir(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function or(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function sr(e){if(Array.isArray(e))return e}function ur(e,t,r){var n=ft();var a=tr(e,t);var i=Qt(e);nt((function e(){var o=u(i,a,n),s=rr(o,2),l=s[0],c=s[1];t.receiveHandlerId(l);r.receiveHandlerId(l);return c}),[n,t,a,r,i.map((function(e){return e.toString()})).join("|")])}function lr(){var e=ft();return Object(i["useMemo"])((function(){return new Te(e)}),[e])}function cr(e){var t=ft();var r=Object(i["useMemo"])((function(){return new Ie(t.getBackend())}),[t]);nt((function(){r.dropTargetOptions=e||null;r.reconnect();return function(){return r.disconnectDropTarget()}}),[e]);return r}function fr(e){return Object(i["useMemo"])((function(){return e.hooks.dropTarget()}),[e])}function dr(e,t){var r=St(e,t);var n=lr();var a=cr(r.options);ur(r,n,a);return[Vt(r.collect,n,a),fr(a)]}function pr(e,t){return gr(e)||yr(e,t)||vr(e,t)||hr()}function hr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vr(e,t){if(!e)return;if(typeof e==="string")return mr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mr(e,t)}function mr(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function yr(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function gr(e){if(Array.isArray(e))return e}function br(e){var t=ft();var r=t.getMonitor();var n=Rt(r,e),a=pr(n,2),o=a[0],s=a[1];Object(i["useEffect"])((function(){return r.subscribeToOffsetChange(s)}));Object(i["useEffect"])((function(){return r.subscribeToStateChange(s)}));return o}},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=i;var a=n(r(119));function i(e){if(e===void 0){e=(0,a.default)()}try{return e.activeElement}catch(e){}}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=r(93);var a=v(n);var i=r(0);var o=v(i);var s=r(1);var u=v(s);var l=r(18);var c=v(l);var f=r(600);var d=v(f);var p=r(134);var h=v(p);function v(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function y(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function g(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var b=27;function A(e){return e.button===0}function _(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var w=function(e){g(t,e);function t(r,n){m(this,t);var i=y(this,e.call(this,r,n));i.addEventListeners=function(){var e=i.props.event;var t=(0,h.default)(i);i.documentMouseCaptureListener=(0,d.default)(t,e,i.handleMouseCapture,true);i.documentMouseListener=(0,d.default)(t,e,i.handleMouse);i.documentKeyupListener=(0,d.default)(t,"keyup",i.handleKeyUp)};i.removeEventListeners=function(){if(i.documentMouseCaptureListener){i.documentMouseCaptureListener.remove()}if(i.documentMouseListener){i.documentMouseListener.remove()}if(i.documentKeyupListener){i.documentKeyupListener.remove()}};i.handleMouseCapture=function(e){i.preventMouseRootClose=_(e)||!A(e)||(0,a.default)(c.default.findDOMNode(i),e.target)};i.handleMouse=function(e){if(!i.preventMouseRootClose&&i.props.onRootClose){i.props.onRootClose(e)}};i.handleKeyUp=function(e){if(e.keyCode===b&&i.props.onRootClose){i.props.onRootClose(e)}};i.preventMouseRootClose=false;return i}t.prototype.componentDidMount=function e(){if(!this.props.disabled){this.addEventListeners()}};t.prototype.componentDidUpdate=function e(t){if(!this.props.disabled&&t.disabled){this.addEventListeners()}else if(this.props.disabled&&!t.disabled){this.removeEventListeners()}};t.prototype.componentWillUnmount=function e(){if(!this.props.disabled){this.removeEventListeners()}};t.prototype.render=function e(){return this.props.children};return t}(u.default.Component);w.displayName="RootCloseWrapper";w.propTypes={onRootClose:o.default.func,children:o.default.element,disabled:o.default.bool,event:o.default.oneOf(["click","mousedown"])};w.defaultProps={event:"click"};t.default=w;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=c;var n=r(195);var a=s(n);var i=r(119);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return e&&e.tagName.toLowerCase()==="body"}function l(e){var t=(0,o.default)(e);var r=(0,a.default)(t);var n=r.innerWidth;if(!n){var i=t.documentElement.getBoundingClientRect();n=i.right-Math.abs(i.left)}return t.body.clientWidth<n}function c(e){var t=(0,a.default)(e);return t||u(e)?l(e):e.scrollHeight>e.clientHeight}e.exports=t["default"]},function(e,t,r){var n=r(27),a=r(1309),i=r(671);var o="Expected a function";var s=Math.max,u=Math.min;function l(e,t,r){var l,c,f,d,p,h,v=0,m=false,y=false,g=true;if(typeof e!="function"){throw new TypeError(o)}t=i(t)||0;if(n(r)){m=!!r.leading;y="maxWait"in r;f=y?s(i(r.maxWait)||0,t):f;g="trailing"in r?!!r.trailing:g}function b(t){var r=l,n=c;l=c=undefined;v=t;d=e.apply(n,r);return d}function A(e){v=e;p=setTimeout(E,t);return m?b(e):d}function _(e){var r=e-h,n=e-v,a=t-r;return y?u(a,f-n):a}function w(e){var r=e-h,n=e-v;return h===undefined||r>=t||r<0||y&&n>=f}function E(){var e=a();if(w(e)){return x(e)}p=setTimeout(E,_(e))}function x(e){p=undefined;if(g&&l){return b(e)}l=c=undefined;return d}function k(){if(p!==undefined){clearTimeout(p)}v=0;l=h=c=p=undefined}function S(){return p===undefined?d:x(a())}function O(){var e=a(),r=w(e);l=arguments;c=this;h=e;if(r){if(p===undefined){return A(h)}if(y){clearTimeout(p);p=setTimeout(E,t);return b(h)}}if(p===undefined){p=setTimeout(E,t)}return d}O.cancel=k;O.flush=S;return O}e.exports=l},function(e,t){function r(e){var t=e==null?0:e.length;return t?e[t-1]:undefined}e.exports=r},function(e,t,r){"use strict";r.r(t);r.d(t,"createStore",(function(){return o}));r.d(t,"combineReducers",(function(){return f}));r.d(t,"bindActionCreators",(function(){return p}));r.d(t,"applyMiddleware",(function(){return m}));r.d(t,"compose",(function(){return h}));var n=r(146);var a=r(148);var i={INIT:"@@redux/INIT"};function o(e,t,r){var s;if(typeof t==="function"&&typeof r==="undefined"){r=t;t=undefined}if(typeof r!=="undefined"){if(typeof r!=="function"){throw new Error("Expected the enhancer to be a function.")}return r(o)(e,t)}if(typeof e!=="function"){throw new Error("Expected the reducer to be a function.")}var u=e;var l=t;var c=[];var f=c;var d=false;function p(){if(f===c){f=c.slice()}}function h(){return l}function v(e){if(typeof e!=="function"){throw new Error("Expected listener to be a function.")}var t=true;p();f.push(e);return function r(){if(!t){return}t=false;p();var n=f.indexOf(e);f.splice(n,1)}}function m(e){if(!Object(n["a"])(e)){throw new Error("Actions must be plain objects. "+"Use custom middleware for async actions.")}if(typeof e.type==="undefined"){throw new Error('Actions may not have an undefined "type" property. '+"Have you misspelled a constant?")}if(d){throw new Error("Reducers may not dispatch actions.")}try{d=true;l=u(l,e)}finally{d=false}var t=c=f;for(var r=0;r<t.length;r++){var a=t[r];a()}return e}function y(e){if(typeof e!=="function"){throw new Error("Expected the nextReducer to be a function.")}u=e;m({type:i.INIT})}function g(){var e;var t=v;return e={subscribe:function e(r){if(typeof r!=="object"){throw new TypeError("Expected the observer to be an object.")}function n(){if(r.next){r.next(h())}}n();var a=t(n);return{unsubscribe:a}}},e[a["a"]]=function(){return this},e}m({type:i.INIT});return s={dispatch:m,subscribe:v,getState:h,replaceReducer:y},s[a["a"]]=g,s}function s(e){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error(e)}try{throw new Error(e)}catch(e){}}function u(e,t){var r=t&&t.type;var n=r&&'"'+r.toString()+'"'||"an action";return"Given action "+n+', reducer "'+e+'" returned undefined. '+"To ignore an action, you must explicitly return the previous state. "+"If you want this reducer to hold no value, you can return null instead of undefined."}function l(e,t,r,a){var o=Object.keys(t);var s=r&&r.type===i.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0){return"Store does not have a valid reducer. Make sure the argument passed "+"to combineReducers is an object whose values are reducers."}if(!Object(n["a"])(e)){return"The "+s+' has unexpected type of "'+{}.toString.call(e).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"')}var u=Object.keys(e).filter((function(e){return!t.hasOwnProperty(e)&&!a[e]}));u.forEach((function(e){a[e]=true}));if(u.length>0){return"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+s+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.')}}function c(e){Object.keys(e).forEach((function(t){var r=e[t];var n=r(undefined,{type:i.INIT});if(typeof n==="undefined"){throw new Error('Reducer "'+t+'" returned undefined during initialization. '+"If the state passed to the reducer is undefined, you must "+"explicitly return the initial state. The initial state may "+"not be undefined. If you don't want to set a value for this reducer, "+"you can use null instead of undefined.")}var a="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if(typeof r(undefined,{type:a})==="undefined"){throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+i.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the "+"current state for any unknown actions, unless it is undefined, "+"in which case you must return the initial state, regardless of the "+"action type. The initial state may not be undefined, but can be null.")}}))}function f(e){var t=Object.keys(e);var r={};for(var n=0;n<t.length;n++){var a=t[n];if(false){}if(typeof e[a]==="function"){r[a]=e[a]}}var i=Object.keys(r);var o=void 0;if(false){}var s=void 0;try{c(r)}catch(e){s=e}return function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=arguments[1];if(s){throw s}if(false){var a}var o=false;var l={};for(var c=0;c<i.length;c++){var f=i[c];var d=r[f];var p=t[f];var h=d(p,n);if(typeof h==="undefined"){var v=u(f,n);throw new Error(v)}l[f]=h;o=o||h!==p}return o?l:t}}function d(e,t){return function(){return t(e.apply(undefined,arguments))}}function p(e,t){if(typeof e==="function"){return d(e,t)}if(typeof e!=="object"||e===null){throw new Error("bindActionCreators expected an object or a function, instead received "+(e===null?"null":typeof e)+". "+'Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?')}var r=Object.keys(e);var n={};for(var a=0;a<r.length;a++){var i=r[a];var o=e[i];if(typeof o==="function"){n[i]=d(o,t)}}return n}function h(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}if(t.length===0){return function(e){return e}}if(t.length===1){return t[0]}return t.reduce((function(e,t){return function(){return e(t.apply(undefined,arguments))}}))}var v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};function m(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}return function(e){return function(r,n,a){var i=e(r,n,a);var o=i.dispatch;var s=[];var u={getState:i.getState,dispatch:function e(t){return o(t)}};s=t.map((function(e){return e(u)}));o=h.apply(undefined,s)(i.dispatch);return v({},i,{dispatch:o})}}}function y(){}if(false){}},function(e,t,r){e.exports=r(995)},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(285));t.on=a.default;var i=n(r(286));t.off=i.default;var o=n(r(1008));t.filter=o.default;var s=n(r(1010));t.listen=s.default;var u={on:a.default,off:i.default,filter:o.default,listen:s.default};t.default=u},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(0);var i=m(a);var o=r(10);var s=m(o);var u=r(1);var l=m(u);var c=r(604);var f=m(c);var d=r(1019);var p=m(d);var h=r(343);var v=m(h);function m(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var r={};for(var n in e){if(t.indexOf(n)>=0)continue;if(!Object.prototype.hasOwnProperty.call(e,n))continue;r[n]=e[n]}return r}function g(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function b(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function A(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var _=function(e){A(t,e);function t(r,n){g(this,t);var a=b(this,e.call(this,r,n));a.handleHidden=function(){a.setState({exited:true});if(a.props.onExited){var e;(e=a.props).onExited.apply(e,arguments)}};a.state={exited:!r.show};a.onHiddenListener=a.handleHidden.bind(a);return a}t.prototype.componentWillReceiveProps=function e(t){if(t.show){this.setState({exited:false})}else if(!t.transition){this.setState({exited:true})}};t.prototype.render=function e(){var t=this.props,r=t.container,n=t.containerPadding,a=t.target,i=t.placement,o=t.shouldUpdatePosition,s=t.rootClose,u=t.children,c=t.transition,d=y(t,["container","containerPadding","target","placement","shouldUpdatePosition","rootClose","children","transition"]);var h=d.show||c&&!this.state.exited;if(!h){return null}var m=u;m=l.default.createElement(p.default,{container:r,containerPadding:n,target:a,placement:i,shouldUpdatePosition:o},m);if(c){var g=d.onExit,b=d.onExiting,A=d.onEnter,_=d.onEntering,w=d.onEntered;m=l.default.createElement(c,{in:d.show,appear:true,onExit:g,onExiting:b,onExited:this.onHiddenListener,onEnter:A,onEntering:_,onEntered:w},m)}if(s){m=l.default.createElement(v.default,{onRootClose:d.onHide},m)}return l.default.createElement(f.default,{container:r},m)};return t}(l.default.Component);_.propTypes=n({},f.default.propTypes,p.default.propTypes,{show:i.default.bool,rootClose:i.default.bool,onHide:function e(t){var r=i.default.func;if(t.rootClose){r=r.isRequired}for(var n=arguments.length,a=Array(n>1?n-1:0),o=1;o<n;o++){a[o-1]=arguments[o]}return r.apply(undefined,[t].concat(a))},transition:s.default,onEnter:i.default.func,onEntering:i.default.func,onEntered:i.default.func,onExit:i.default.func,onExiting:i.default.func,onExited:i.default.func});t.default=_;e.exports=t["default"]},function(e,t,r){"use strict";(function(e){var n=r(225);var a=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var i=a&&typeof e=="object"&&e&&!e.nodeType&&e;var o=i&&i.exports===a;var s=o&&n["a"].process;var u=function(){try{var e=i&&i.require&&i.require("util").types;if(e){return e}return s&&s.binding&&s.binding("util")}catch(e){}}();t["a"]=u}).call(this,r(172)(e))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"getTickValues",{enumerable:true,get:function e(){return n.getTickValues}});Object.defineProperty(t,"getNiceTickValues",{enumerable:true,get:function e(){return n.getNiceTickValues}});Object.defineProperty(t,"getTickValuesFixedDomain",{enumerable:true,get:function e(){return n.getTickValuesFixedDomain}});var n=r(1322)},function(e,t,r){var n=r(307),a=r(289),i=r(52);function o(e,t){var r={};t=i(t,3);a(e,(function(e,a,i){n(r,a,t(e,a,i))}));return r}e.exports=o},,,,function(e,t,r){"use strict";t.__esModule=true;t.readState=t.saveState=undefined;var n=r(24);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}var o={QuotaExceededError:true,QUOTA_EXCEEDED_ERR:true};var s={SecurityError:true};var u="@@History/";var l=function e(t){return u+t};var c=t.saveState=function e(t,r){if(!window.sessionStorage){false?undefined:void 0;return}try{if(r==null){window.sessionStorage.removeItem(l(t))}else{window.sessionStorage.setItem(l(t),JSON.stringify(r))}}catch(e){if(s[e.name]){false?undefined:void 0;return}if(o[e.name]&&window.sessionStorage.length===0){false?undefined:void 0;return}throw e}};var f=t.readState=function e(t){var r=void 0;try{r=window.sessionStorage.getItem(l(t))}catch(e){if(s[e.name]){false?undefined:void 0;return undefined}}if(r){try{return JSON.parse(r)}catch(e){}}return undefined}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(359);var a=r(360);var i=r(732);var o=r(733);var s=r(734);var u=r(735);var l=n.combineReducers({collection:a.default,book:i.default,loans:s.default,auth:o.default,preferences:u.default});t.default=l},function(e,t,r){"use strict";r.r(t);r.d(t,"createStore",(function(){return s}));r.d(t,"combineReducers",(function(){return d}));r.d(t,"bindActionCreators",(function(){return h}));r.d(t,"applyMiddleware",(function(){return g}));r.d(t,"compose",(function(){return y}));r.d(t,"__DO_NOT_USE__ActionTypes",(function(){return i}));var n=r(148);var a=function e(){return Math.random().toString(36).substring(7).split("").join(".")};var i={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function e(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function o(e){if(typeof e!=="object"||e===null)return false;var t=e;while(Object.getPrototypeOf(t)!==null){t=Object.getPrototypeOf(t)}return Object.getPrototypeOf(e)===t}function s(e,t,r){var a;if(typeof t==="function"&&typeof r==="function"||typeof r==="function"&&typeof arguments[3]==="function"){throw new Error("It looks like you are passing several store enhancers to "+"createStore(). This is not supported. Instead, compose them "+"together to a single function")}if(typeof t==="function"&&typeof r==="undefined"){r=t;t=undefined}if(typeof r!=="undefined"){if(typeof r!=="function"){throw new Error("Expected the enhancer to be a function.")}return r(s)(e,t)}if(typeof e!=="function"){throw new Error("Expected the reducer to be a function.")}var u=e;var l=t;var c=[];var f=c;var d=false;function p(){if(f===c){f=c.slice()}}function h(){if(d){throw new Error("You may not call store.getState() while the reducer is executing. "+"The reducer has already received the state as an argument. "+"Pass it down from the top reducer instead of reading it from the store.")}return l}function v(e){if(typeof e!=="function"){throw new Error("Expected the listener to be a function.")}if(d){throw new Error("You may not call store.subscribe() while the reducer is executing. "+"If you would like to be notified after the store has been updated, subscribe from a "+"component and invoke store.getState() in the callback to access the latest state. "+"See https://redux.js.org/api-reference/store#subscribe(listener) for more details.")}var t=true;p();f.push(e);return function r(){if(!t){return}if(d){throw new Error("You may not unsubscribe from a store listener while the reducer is executing. "+"See https://redux.js.org/api-reference/store#subscribe(listener) for more details.")}t=false;p();var n=f.indexOf(e);f.splice(n,1)}}function m(e){if(!o(e)){throw new Error("Actions must be plain objects. "+"Use custom middleware for async actions.")}if(typeof e.type==="undefined"){throw new Error('Actions may not have an undefined "type" property. '+"Have you misspelled a constant?")}if(d){throw new Error("Reducers may not dispatch actions.")}try{d=true;l=u(l,e)}finally{d=false}var t=c=f;for(var r=0;r<t.length;r++){var n=t[r];n()}return e}function y(e){if(typeof e!=="function"){throw new Error("Expected the nextReducer to be a function.")}u=e;m({type:i.REPLACE})}function g(){var e;var t=v;return e={subscribe:function e(r){if(typeof r!=="object"||r===null){throw new TypeError("Expected the observer to be an object.")}function n(){if(r.next){r.next(h())}}n();var a=t(n);return{unsubscribe:a}}},e[n["a"]]=function(){return this},e}m({type:i.INIT});return a={dispatch:m,subscribe:v,getState:h,replaceReducer:y},a[n["a"]]=g,a}function u(e){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error(e)}try{throw new Error(e)}catch(e){}}function l(e,t){var r=t&&t.type;var n=r&&'action "'+String(r)+'"'||"an action";return"Given "+n+', reducer "'+e+'" returned undefined. '+"To ignore an action, you must explicitly return the previous state. "+"If you want this reducer to hold no value, you can return null instead of undefined."}function c(e,t,r,n){var a=Object.keys(t);var s=r&&r.type===i.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(a.length===0){return"Store does not have a valid reducer. Make sure the argument passed "+"to combineReducers is an object whose values are reducers."}if(!o(e)){return"The "+s+' has unexpected type of "'+{}.toString.call(e).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+a.join('", "')+'"')}var u=Object.keys(e).filter((function(e){return!t.hasOwnProperty(e)&&!n[e]}));u.forEach((function(e){n[e]=true}));if(r&&r.type===i.REPLACE)return;if(u.length>0){return"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+s+". ")+"Expected to find one of the known reducer keys instead: "+('"'+a.join('", "')+'". Unexpected keys will be ignored.')}}function f(e){Object.keys(e).forEach((function(t){var r=e[t];var n=r(undefined,{type:i.INIT});if(typeof n==="undefined"){throw new Error('Reducer "'+t+'" returned undefined during initialization. '+"If the state passed to the reducer is undefined, you must "+"explicitly return the initial state. The initial state may "+"not be undefined. If you don't want to set a value for this reducer, "+"you can use null instead of undefined.")}if(typeof r(undefined,{type:i.PROBE_UNKNOWN_ACTION()})==="undefined"){throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+i.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the "+"current state for any unknown actions, unless it is undefined, "+"in which case you must return the initial state, regardless of the "+"action type. The initial state may not be undefined, but can be null.")}}))}function d(e){var t=Object.keys(e);var r={};for(var n=0;n<t.length;n++){var a=t[n];if(false){}if(typeof e[a]==="function"){r[a]=e[a]}}var i=Object.keys(r);var o;if(false){}var s;try{f(r)}catch(e){s=e}return function e(t,n){if(t===void 0){t={}}if(s){throw s}if(false){var a}var o=false;var u={};for(var c=0;c<i.length;c++){var f=i[c];var d=r[f];var p=t[f];var h=d(p,n);if(typeof h==="undefined"){var v=l(f,n);throw new Error(v)}u[f]=h;o=o||h!==p}return o?u:t}}function p(e,t){return function(){return t(e.apply(this,arguments))}}function h(e,t){if(typeof e==="function"){return p(e,t)}if(typeof e!=="object"||e===null){throw new Error("bindActionCreators expected an object or a function, instead received "+(e===null?"null":typeof e)+". "+'Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?')}var r=Object.keys(e);var n={};for(var a=0;a<r.length;a++){var i=r[a];var o=e[i];if(typeof o==="function"){n[i]=p(o,t)}}return n}function v(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function m(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))}n.forEach((function(t){v(e,t,r[t])}))}return e}function y(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}if(t.length===0){return function(e){return e}}if(t.length===1){return t[0]}return t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return function(e){return function(){var r=e.apply(void 0,arguments);var n=function e(){throw new Error("Dispatching while constructing your middleware is not allowed. "+"Other middleware would not be applied to this dispatch.")};var a={getState:r.getState,dispatch:function e(){return n.apply(void 0,arguments)}};var i=t.map((function(e){return e(a)}));n=y.apply(void 0,i)(r.dispatch);return m({},r,{dispatch:n})}}}function b(){}if(false){}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};var a=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n};Object.defineProperty(t,"__esModule",{value:true});t.initialState=void 0;var i=r(731);var o=r(64);t.initialState={url:null,data:null,isFetching:false,isFetchingPage:false,error:null,history:[]};var s=function(e,r){var s,u;if(e===void 0){e=t.initialState}switch(r.type){case o.default.COLLECTION_REQUEST:return n(n({},e),{isFetching:true,error:null});case o.default.COLLECTION_FAILURE:return n(n({},e),{isFetching:false,error:r.error});case o.default.COLLECTION_LOAD:return n(n({},e),{data:r.data,url:r.url?r.url:e.url,isFetching:false,error:null,history:i.default(e,r)});case o.default.COLLECTION_CLEAR:return n(n({},e),{data:null,url:null,error:null,history:e.history.slice(0,-1)});case o.default.PAGE_REQUEST:return n(n({},e),{pageUrl:r.url,isFetchingPage:true,error:null});case o.default.PAGE_FAILURE:return n(n({},e),{isFetchingPage:false,error:r.error});case o.default.PAGE_LOAD:return n(n({},e),{data:Object.assign({},e.data,{books:a((u=(s=e.data)===null||s===void 0?void 0:s.books)!==null&&u!==void 0?u:[]).concat(r.data.books),nextPageUrl:r.data.nextPageUrl}),isFetchingPage:false});case o.default.SEARCH_DESCRIPTION_LOAD:return n(n({},e),{data:Object.assign({},e.data,{search:r.data})});case o.default.CLOSE_ERROR:return n(n({},e),{error:null});default:return e}};t.default=s},function(e,t,r){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n};Object.defineProperty(t,"__esModule",{value:true});t.isServerSamlProvider=t.getEnglishValue=t.flattenSamlProviders=t.generateCredentials=t.SAML_AUTH_TYPE=void 0;t.SAML_AUTH_TYPE="http://librarysimplified.org/authtype/SAML-2.0";function a(e,t){var r=btoa(e+":"+t);return"Basic "+r}t.generateCredentials=a;function i(e){return e.reduce((function(e,r){if(t.isServerSamlProvider(r)){return n(e,o(r))}return n(e,[r])}),[])}t.flattenSamlProviders=i;function o(e){return e.method.links.map((function(r){var n;return{method:{href:r.href,type:e.method.type,description:(n=t.getEnglishValue(r.display_names))!==null&&n!==void 0?n:"Unknown SAML Provider"},id:r.href,plugin:e.plugin}}))}t.getEnglishValue=function(e){var t;return(t=e.find((function(e){return e.language==="en"})))===null||t===void 0?void 0:t.value};t.isServerSamlProvider=function(e){return e.id===t.SAML_AUTH_TYPE&&"links"in e.method}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(738);var a=r(238);t.OPDSFeed=a.default;var i=r(363);t.NavigationFeed=i.default;var o=r(364);t.AcquisitionFeed=o.default;var s=r(241);t.OPDSEntry=s.default;var u=r(374);t.PartialOPDSEntry=u.default;var l=r(375);t.Contributor=l.default;var c=r(377);t.Category=c.default;var f=r(376);t.Series=f.default;var d=r(378);t.Summary=d.default;var p=r(58);t.OPDSLink=p.default;var h=r(366);t.OPDSCatalogRootLink=h.default;var v=r(367);t.OPDSFacetLink=v.default;var m=r(368);t.SearchLink=m.default;var y=r(239);t.AlternateLink=y.default;var g=r(240);t.CompleteEntryLink=g.default;var b=r(370);t.OPDSCrawlableLink=b.default;var A=r(372);t.OPDSShelfLink=A.default;var _=r(237);t.OPDSAcquisitionLink=_.default;var w=r(369);t.OPDSArtworkLink=w.default;var E=r(371);t.OPDSCollectionLink=E.default;t.default=n.default},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(238);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(238);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=r(366);var o=r(367);var s=r(368);var u=r(237);var l=r(740);var c=r(741);var f=r(742);var d=r(743);var p=r(744);var h=r(369);var v=r(239);var m=r(240);var y=r(370);var g=r(371);var b=r(372);var A=r(100);var _=r(59);var w=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=this.parseAttribute(e,"href");var r=this.parseAttribute(e,"rel");var n=this.parseAttribute(e,"type");var _=this.parseAttribute(e,"title");var w=this.parseAttribute(e,"role");if(r===i.default.REL){return new i.default({href:t,type:n,title:_})}else if(r===o.default.REL){var E=this.prefixes[A.default.OPDS_URI];var x=this.parseAttribute(e,E+"facetGroup");var k=this.parseAttribute(e,E+"activeFacet")==="true";var S=this.prefixes[A.default.THR_URI];var O=parseInt(this.parseAttribute(e,S+"count"),10);return new o.default({href:t,type:n,title:_,facetGroup:x,activeFacet:k,count:O})}else if(r===s.default.REL){return new s.default({href:t,type:n,title:_})}else if(this.isAcquisitionLinkRel(r)){var E=this.prefixes[A.default.OPDS_URI];var M=new l.default(this.prefixes);var D=this.parseSubtags(e,E+"price",M);var T=new c.default(this.prefixes);var L=this.parseSubtags(e,E+"indirectAcquisition",T);var C=new f.default(this.prefixes);var j=this.parseSubtag(e,E+"availability",C);var N=new d.default(this.prefixes);var I=this.parseSubtag(e,E+"holds",N);var P=new p.default(this.prefixes);var R=this.parseSubtag(e,E+"copies",P);return new u.default({href:t,rel:r,type:n,title:_,prices:D,indirectAcquisitions:L,availability:j,holds:I,copies:R})}else if(r===v.default.REL){if(n===m.default.TYPE){return new m.default({href:t,type:n,title:_})}else{return new v.default({href:t,type:n,title:_})}}else if(this.isArtworkLinkRel(r)){return new h.default({href:t,rel:r,type:n,title:_})}else if(r===y.default.REL){return new y.default({href:t,rel:r,type:n,title:_})}else if(r===g.default.REL){return new g.default({href:t,rel:r,type:n,title:_})}else if(r===b.default.REL){return new b.default({href:t,rel:r})}else{return new a.default({href:t,rel:r,type:n,title:_,role:w})}};t.prototype.isAcquisitionLinkRel=function(e){return u.default.RELS.indexOf(e)!==-1};t.prototype.isArtworkLinkRel=function(e){return h.default.RELS.indexOf(e)!==-1};return t}(_.default);t.default=w},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="start";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="http://opds-spec.org/facet";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="search";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.BASE_REL="http://opds-spec.org/image";t.IMAGE_REL=t.BASE_REL;t.THUMBNAIL_REL=t.BASE_REL+"/thumbnail";t.RELS=[t.IMAGE_REL,t.THUMBNAIL_REL];return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="http://opds-spec.org/crawlable";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="collection";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(58);var i=function(e){n(t,e);function t(r){var n=this;r.rel=t.REL;n=e.call(this,r)||this;return n}t.REL="http://opds-spec.org/shelf";return t}(a.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(241);var i=r(374);var o=r(240);var s=r(365);var u=r(745);var l=r(746);var c=r(747);var f=r(100);var d=r(378);var p=r(59);var h=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.parse=function(e){var t=new s.default(this.prefixes);var r=this.prefixes[f.default.ATOM_URI];var n=this.prefixes[f.default.DC_URI];var p=this.prefixes[f.default.SCHEMA_URI];var h=this.parseSubtagContent(e,r+"id");var v=this.parseSubtagContent(e,r+"updated");var m=this.parseSubtagContent(e,r+"title");var y=new u.default(this.prefixes);var g=this.parseSubtags(e,r+"author",y);var b=this.parseSubtags(e,r+"contributor",y);var A=this.parseSubtagContent(e,p+"alternativeHeadline");var _=new l.default(this.prefixes);var w=this.parseSubtag(e,p+"Series",_);var E=this.parseSubtags(e,r+"link",t);var x=new c.default(this.prefixes);var k=this.parseSubtags(e,r+"category",x);var S=e[n+"identifier"];var O;if(S&&S.length>0){O=S.map((function(e){return e["_"]}))}else{O=[]}var M=this.parseSubtagContent(e,n+"issued");var D=this.parseSubtagContent(e,n+"language");var T=this.parseSubtagContent(e,r+"rights");var L=this.parseSubtagContent(e,n+"publisher");var C=this.parseSubtagContent(e,r+"published");var j;var N=this.parseSubtagContent(e,r+"content");if(!N){var I=e[r+"content"];if(I&&I.length>0){j=this.parseAttribute(I[0],"src")}}if(!N){N=this.parseSubtagContent(e,r+"summary")}var P=new d.default({content:N,link:j});var R=a.default;var F=E.find((function(e){return e instanceof o.default}));if(F){R=i.default}return new R({id:h,updated:v,title:m,authors:g,contributors:b,subtitle:A,series:w,links:E,categories:k,identifiers:O,issued:M,language:D,rights:T,publisher:L,published:C,summary:P,unparsed:e})};return t}(p.default);t.default=h},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(241);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(a.default);t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e){Object.assign(this,e)}return e}();t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e){Object.assign(this,e)}return e}();t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e){Object.assign(this,e)}return e}();t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e){Object.assign(this,e)}return e}();t.default=n},function(e,t,r){(function(){"use strict";var e,n,a,i,o=function(e,t){for(var r in t){if(s.call(t,r))e[r]=t[r]}function n(){this.constructor=e}n.prototype=t.prototype;e.prototype=new n;e.__super__=t.prototype;return e},s={}.hasOwnProperty;n=r(242);e=r(748);a=r(757);i=r(393);t.defaults=n.defaults;t.processors=i;t.ValidationError=function(e){o(t,e);function t(e){this.message=e}return t}(Error);t.Builder=e.Builder;t.Parser=a.Parser;t.parseString=a.parseString;t.parseStringPromise=a.parseStringPromise}).call(this)},function(e,t){(function(){var t;e.exports=t=function(){function e(){}e.prototype.hasFeature=function(e,t){return true};e.prototype.createDocumentType=function(e,t,r){throw new Error("This DOM method is not implemented.")};e.prototype.createDocument=function(e,t,r){throw new Error("This DOM method is not implemented.")};e.prototype.createHTMLDocument=function(e){throw new Error("This DOM method is not implemented.")};e.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented.")};return e}()}).call(this)},function(e,t,r){(function(){var t,n,a,i,o,s,u,l,c=function(e,t){for(var r in t){if(f.call(t,r))e[r]=t[r]}function n(){this.constructor=e}n.prototype=t.prototype;e.prototype=new n;e.__super__=t.prototype;return e},f={}.hasOwnProperty;l=r(72).isPlainObject;a=r(380);n=r(750);o=r(47);t=r(26);u=r(384);s=r(256);e.exports=i=function(e){c(r,e);function r(e){r.__super__.constructor.call(this,null);this.name="#document";this.type=t.Document;this.documentURI=null;this.domConfig=new n;e||(e={});if(!e.writer){e.writer=new s}this.options=e;this.stringify=new u(e)}Object.defineProperty(r.prototype,"implementation",{value:new a});Object.defineProperty(r.prototype,"doctype",{get:function(){var e,r,n,a;a=this.children;for(r=0,n=a.length;r<n;r++){e=a[r];if(e.type===t.DocType){return e}}return null}});Object.defineProperty(r.prototype,"documentElement",{get:function(){return this.rootObject||null}});Object.defineProperty(r.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(r.prototype,"strictErrorChecking",{get:function(){return false}});Object.defineProperty(r.prototype,"xmlEncoding",{get:function(){if(this.children.length!==0&&this.children[0].type===t.Declaration){return this.children[0].encoding}else{return null}}});Object.defineProperty(r.prototype,"xmlStandalone",{get:function(){if(this.children.length!==0&&this.children[0].type===t.Declaration){return this.children[0].standalone==="yes"}else{return false}}});Object.defineProperty(r.prototype,"xmlVersion",{get:function(){if(this.children.length!==0&&this.children[0].type===t.Declaration){return this.children[0].version}else{return"1.0"}}});Object.defineProperty(r.prototype,"URL",{get:function(){return this.documentURI}});Object.defineProperty(r.prototype,"origin",{get:function(){return null}});Object.defineProperty(r.prototype,"compatMode",{get:function(){return null}});Object.defineProperty(r.prototype,"characterSet",{get:function(){return null}});Object.defineProperty(r.prototype,"contentType",{get:function(){return null}});r.prototype.end=function(e){var t;t={};if(!e){e=this.options.writer}else if(l(e)){t=e;e=this.options.writer}return e.document(this,e.filterOptions(t))};r.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))};r.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createProcessingInstruction=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.importNode=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createElementNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getElementsByTagNameNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.renameNode=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createNodeIterator=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.createTreeWalker=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};return r}(o)}).call(this)},function(e,t,r){(function(){var t,n,a;t=r(26);a=r(47);e.exports=n=function(){function e(e,r,n){this.parent=e;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}if(r==null){throw new Error("Missing attribute name. "+this.debugInfo(r))}this.name=this.stringify.name(r);this.value=this.stringify.attValue(n);this.type=t.Attribute;this.isId=false;this.schemaTypeInfo=null}Object.defineProperty(e.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(e.prototype,"ownerElement",{get:function(){return this.parent}});Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}});Object.defineProperty(e.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(e.prototype,"prefix",{get:function(){return""}});Object.defineProperty(e.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(e.prototype,"specified",{get:function(){return true}});e.prototype.clone=function(){return Object.create(this)};e.prototype.toString=function(e){return this.options.writer.attribute(this,this.options.writer.filterOptions(e))};e.prototype.debugInfo=function(e){e=e||this.name;if(e==null){return"parent: <"+this.parent.name+">"}else{return"attribute: {"+e+"}, parent: <"+this.parent.name+">"}};e.prototype.isEqualNode=function(e){if(e.namespaceURI!==this.namespaceURI){return false}if(e.prefix!==this.prefix){return false}if(e.localName!==this.localName){return false}if(e.value!==this.value){return false}return true};return e}()}).call(this)},function(e,t,r){(function(){var t,n,a,i=function(e,t){for(var r in t){if(o.call(t,r))e[r]=t[r]}function n(){this.constructor=e}n.prototype=t.prototype;e.prototype=new n;e.__super__=t.prototype;return e},o={}.hasOwnProperty;a=r(47);t=r(26);e.exports=n=function(e){i(r,e);function r(e){r.__super__.constructor.call(this,e);this.type=t.Dummy}r.prototype.clone=function(){return Object.create(this)};r.prototype.toString=function(e){return""};return r}(a)}).call(this)},function(e,t){(function(){var t,r=function(e,t){return function(){return e.apply(t,arguments)}},n={}.hasOwnProperty;e.exports=t=function(){function e(e){this.assertLegalName=r(this.assertLegalName,this);this.assertLegalChar=r(this.assertLegalChar,this);var t,a,i;e||(e={});this.options=e;if(!this.options.version){this.options.version="1.0"}a=e.stringify||{};for(t in a){if(!n.call(a,t))continue;i=a[t];this[t]=i}}e.prototype.name=function(e){if(this.options.noValidation){return e}return this.assertLegalName(""+e||"")};e.prototype.text=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(this.textEscape(""+e||""))};e.prototype.cdata=function(e){if(this.options.noValidation){return e}e=""+e||"";e=e.replace("]]>","]]]]><![CDATA[>");return this.assertLegalChar(e)};e.prototype.comment=function(e){if(this.options.noValidation){return e}e=""+e||"";if(e.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+e)}return this.assertLegalChar(e)};e.prototype.raw=function(e){if(this.options.noValidation){return e}return""+e||""};e.prototype.attValue=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(this.attEscape(e=""+e||""))};e.prototype.insTarget=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.insValue=function(e){if(this.options.noValidation){return e}e=""+e||"";if(e.match(/\?>/)){throw new Error("Invalid processing instruction value: "+e)}return this.assertLegalChar(e)};e.prototype.xmlVersion=function(e){if(this.options.noValidation){return e}e=""+e||"";if(!e.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+e)}return e};e.prototype.xmlEncoding=function(e){if(this.options.noValidation){return e}e=""+e||"";if(!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+e)}return this.assertLegalChar(e)};e.prototype.xmlStandalone=function(e){if(this.options.noValidation){return e}if(e){return"yes"}else{return"no"}};e.prototype.dtdPubID=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdSysID=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdElementValue=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdAttType=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdAttDefault=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdEntityValue=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.dtdNData=function(e){if(this.options.noValidation){return e}return this.assertLegalChar(""+e||"")};e.prototype.convertAttKey="@";e.prototype.convertPIKey="?";e.prototype.convertTextKey="#text";e.prototype.convertCDataKey="#cdata";e.prototype.convertCommentKey="#comment";e.prototype.convertRawKey="#raw";e.prototype.assertLegalChar=function(e){var t,r;if(this.options.noValidation){return e}t="";if(this.options.version==="1.0"){t=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(r=e.match(t)){throw new Error("Invalid character in string: "+e+" at index "+r.index)}}else if(this.options.version==="1.1"){t=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(r=e.match(t)){throw new Error("Invalid character in string: "+e+" at index "+r.index)}}return e};e.prototype.assertLegalName=function(e){var t;if(this.options.noValidation){return e}this.assertLegalChar(e);t=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;if(!e.match(t)){throw new Error("Invalid character in name")}return e};e.prototype.textEscape=function(e){var t;if(this.options.noValidation){return e}t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")};e.prototype.attEscape=function(e){var t;if(this.options.noValidation){return e}t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")};return e}()}).call(this)},function(e,t,r){(function(){var t,n,a,i,o,s,u,l,c,f,d,p,h,v,m,y,g,b={}.hasOwnProperty;g=r(72).assign;t=r(26);c=r(247);f=r(248);a=r(245);i=r(246);p=r(243);v=r(253);m=r(254);h=r(255);d=r(383);o=r(249);s=r(251);u=r(250);l=r(252);n=r(174);e.exports=y=function(){function e(e){var t,r,n;e||(e={});this.options=e;r=e.writer||{};for(t in r){if(!b.call(r,t))continue;n=r[t];this["_"+t]=this[t];this[t]=n}}e.prototype.filterOptions=function(e){var t,r,a,i,o,s,u,l;e||(e={});e=g({},this.options,e);t={writer:this};t.pretty=e.pretty||false;t.allowEmpty=e.allowEmpty||false;t.indent=(r=e.indent)!=null?r:" ";t.newline=(a=e.newline)!=null?a:"\n";t.offset=(i=e.offset)!=null?i:0;t.dontPrettyTextNodes=(o=(s=e.dontPrettyTextNodes)!=null?s:e.dontprettytextnodes)!=null?o:0;t.spaceBeforeSlash=(u=(l=e.spaceBeforeSlash)!=null?l:e.spacebeforeslash)!=null?u:"";if(t.spaceBeforeSlash===true){t.spaceBeforeSlash=" "}t.suppressPrettyCount=0;t.user={};t.state=n.None;return t};e.prototype.indent=function(e,t,r){var n;if(!t.pretty||t.suppressPrettyCount){return""}else if(t.pretty){n=(r||0)+t.offset+1;if(n>0){return new Array(n).join(t.indent)}}return""};e.prototype.endline=function(e,t,r){if(!t.pretty||t.suppressPrettyCount){return""}else{return t.newline}};e.prototype.attribute=function(e,t,r){var n;this.openAttribute(e,t,r);n=" "+e.name+'="'+e.value+'"';this.closeAttribute(e,t,r);return n};e.prototype.cdata=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<![CDATA[";t.state=n.InsideTag;a+=e.value;t.state=n.CloseTag;a+="]]>"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.comment=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"\x3c!-- ";t.state=n.InsideTag;a+=e.value;t.state=n.CloseTag;a+=" --\x3e"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.declaration=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<?xml";t.state=n.InsideTag;a+=' version="'+e.version+'"';if(e.encoding!=null){a+=' encoding="'+e.encoding+'"'}if(e.standalone!=null){a+=' standalone="'+e.standalone+'"'}t.state=n.CloseTag;a+=t.spaceBeforeSlash+"?>";a+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.docType=function(e,t,r){var a,i,o,s,u;r||(r=0);this.openNode(e,t,r);t.state=n.OpenTag;s=this.indent(e,t,r);s+="<!DOCTYPE "+e.root().name;if(e.pubID&&e.sysID){s+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'}else if(e.sysID){s+=' SYSTEM "'+e.sysID+'"'}if(e.children.length>0){s+=" [";s+=this.endline(e,t,r);t.state=n.InsideTag;u=e.children;for(i=0,o=u.length;i<o;i++){a=u[i];s+=this.writeChildNode(a,t,r+1)}t.state=n.CloseTag;s+="]"}t.state=n.CloseTag;s+=t.spaceBeforeSlash+">";s+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return s};e.prototype.element=function(e,r,a){var i,o,s,u,l,c,f,d,p,h,v,m,y,g;a||(a=0);h=false;v="";this.openNode(e,r,a);r.state=n.OpenTag;v+=this.indent(e,r,a)+"<"+e.name;m=e.attribs;for(p in m){if(!b.call(m,p))continue;i=m[p];v+=this.attribute(i,r,a)}s=e.children.length;u=s===0?null:e.children[0];if(s===0||e.children.every((function(e){return(e.type===t.Text||e.type===t.Raw)&&e.value===""}))){if(r.allowEmpty){v+=">";r.state=n.CloseTag;v+="</"+e.name+">"+this.endline(e,r,a)}else{r.state=n.CloseTag;v+=r.spaceBeforeSlash+"/>"+this.endline(e,r,a)}}else if(r.pretty&&s===1&&(u.type===t.Text||u.type===t.Raw)&&u.value!=null){v+=">";r.state=n.InsideTag;r.suppressPrettyCount++;h=true;v+=this.writeChildNode(u,r,a+1);r.suppressPrettyCount--;h=false;r.state=n.CloseTag;v+="</"+e.name+">"+this.endline(e,r,a)}else{if(r.dontPrettyTextNodes){y=e.children;for(l=0,f=y.length;l<f;l++){o=y[l];if((o.type===t.Text||o.type===t.Raw)&&o.value!=null){r.suppressPrettyCount++;h=true;break}}}v+=">"+this.endline(e,r,a);r.state=n.InsideTag;g=e.children;for(c=0,d=g.length;c<d;c++){o=g[c];v+=this.writeChildNode(o,r,a+1)}r.state=n.CloseTag;v+=this.indent(e,r,a)+"</"+e.name+">";if(h){r.suppressPrettyCount--}v+=this.endline(e,r,a);r.state=n.None}this.closeNode(e,r,a);return v};e.prototype.writeChildNode=function(e,r,n){switch(e.type){case t.CData:return this.cdata(e,r,n);case t.Comment:return this.comment(e,r,n);case t.Element:return this.element(e,r,n);case t.Raw:return this.raw(e,r,n);case t.Text:return this.text(e,r,n);case t.ProcessingInstruction:return this.processingInstruction(e,r,n);case t.Dummy:return"";case t.Declaration:return this.declaration(e,r,n);case t.DocType:return this.docType(e,r,n);case t.AttributeDeclaration:return this.dtdAttList(e,r,n);case t.ElementDeclaration:return this.dtdElement(e,r,n);case t.EntityDeclaration:return this.dtdEntity(e,r,n);case t.NotationDeclaration:return this.dtdNotation(e,r,n);default:throw new Error("Unknown XML node type: "+e.constructor.name)}};e.prototype.processingInstruction=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<?";t.state=n.InsideTag;a+=e.target;if(e.value){a+=" "+e.value}t.state=n.CloseTag;a+=t.spaceBeforeSlash+"?>";a+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.raw=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r);t.state=n.InsideTag;a+=e.value;t.state=n.CloseTag;a+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.text=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r);t.state=n.InsideTag;a+=e.value;t.state=n.CloseTag;a+=this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.dtdAttList=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<!ATTLIST";t.state=n.InsideTag;a+=" "+e.elementName+" "+e.attributeName+" "+e.attributeType;if(e.defaultValueType!=="#DEFAULT"){a+=" "+e.defaultValueType}if(e.defaultValue){a+=' "'+e.defaultValue+'"'}t.state=n.CloseTag;a+=t.spaceBeforeSlash+">"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.dtdElement=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<!ELEMENT";t.state=n.InsideTag;a+=" "+e.name+" "+e.value;t.state=n.CloseTag;a+=t.spaceBeforeSlash+">"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.dtdEntity=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<!ENTITY";t.state=n.InsideTag;if(e.pe){a+=" %"}a+=" "+e.name;if(e.value){a+=' "'+e.value+'"'}else{if(e.pubID&&e.sysID){a+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'}else if(e.sysID){a+=' SYSTEM "'+e.sysID+'"'}if(e.nData){a+=" NDATA "+e.nData}}t.state=n.CloseTag;a+=t.spaceBeforeSlash+">"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.dtdNotation=function(e,t,r){var a;this.openNode(e,t,r);t.state=n.OpenTag;a=this.indent(e,t,r)+"<!NOTATION";t.state=n.InsideTag;a+=" "+e.name;if(e.pubID&&e.sysID){a+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'}else if(e.pubID){a+=' PUBLIC "'+e.pubID+'"'}else if(e.sysID){a+=' SYSTEM "'+e.sysID+'"'}t.state=n.CloseTag;a+=t.spaceBeforeSlash+">"+this.endline(e,t,r);t.state=n.None;this.closeNode(e,t,r);return a};e.prototype.openNode=function(e,t,r){};e.prototype.closeNode=function(e,t,r){};e.prototype.openAttribute=function(e,t,r){};e.prototype.closeAttribute=function(e,t,r){};return e}()}).call(this)},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return r.call(e)=="[object Array]"}},function(e,t,r){"use strict";(function(t,n){var a=r(175);e.exports=E;var i=r(386);var o;E.ReadableState=w;var s=r(142).EventEmitter;var u=function(e,t){return e.listeners(t).length};var l=r(388);var c=r(176).Buffer;var f=t.Uint8Array||function(){};function d(e){return c.from(e)}function p(e){return c.isBuffer(e)||e instanceof f}var h=Object.create(r(152));h.inherits=r(125);var v=r(762);var m=void 0;if(v&&v.debuglog){m=v.debuglog("stream")}else{m=function(){}}var y=r(763);var g=r(389);var b;h.inherits(E,l);var A=["error","close","destroy","pause","resume"];function _(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(i(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function w(e,t){o=o||r(101);e=e||{};var n=t instanceof o;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.readableObjectMode;var a=e.highWaterMark;var i=e.readableHighWaterMark;var s=this.objectMode?16:16*1024;if(a||a===0)this.highWaterMark=a;else if(n&&(i||i===0))this.highWaterMark=i;else this.highWaterMark=s;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new y;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!b)b=r(260).StringDecoder;this.decoder=new b(e.encoding);this.encoding=e.encoding}}function E(e){o=o||r(101);if(!(this instanceof E))return new E(e);this._readableState=new w(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}l.call(this)}Object.defineProperty(E.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});E.prototype.destroy=g.destroy;E.prototype._undestroy=g.undestroy;E.prototype._destroy=function(e,t){this.push(null);t(e)};E.prototype.push=function(e,t){var r=this._readableState;var n;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=c.from(e,t);t=""}n=true}}else{n=true}return x(this,e,t,false,n)};E.prototype.unshift=function(e){return x(this,e,null,true,false)};function x(e,t,r,n,a){var i=e._readableState;if(t===null){i.reading=false;L(e,i)}else{var o;if(!a)o=S(i,t);if(o){e.emit("error",o)}else if(i.objectMode||t&&t.length>0){if(typeof t!=="string"&&!i.objectMode&&Object.getPrototypeOf(t)!==c.prototype){t=d(t)}if(n){if(i.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else k(e,i,t,true)}else if(i.ended){e.emit("error",new Error("stream.push() after EOF"))}else{i.reading=false;if(i.decoder&&!r){t=i.decoder.write(t);if(i.objectMode||t.length!==0)k(e,i,t,false);else N(e,i)}else{k(e,i,t,false)}}}else if(!n){i.reading=false}}return O(i)}function k(e,t,r,n){if(t.flowing&&t.length===0&&!t.sync){e.emit("data",r);e.read(0)}else{t.length+=t.objectMode?1:r.length;if(n)t.buffer.unshift(r);else t.buffer.push(r);if(t.needReadable)C(e)}N(e,t)}function S(e,t){var r;if(!p(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){r=new TypeError("Invalid non-string/buffer chunk")}return r}function O(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}E.prototype.isPaused=function(){return this._readableState.flowing===false};E.prototype.setEncoding=function(e){if(!b)b=r(260).StringDecoder;this._readableState.decoder=new b(e);this._readableState.encoding=e;return this};var M=8388608;function D(e){if(e>=M){e=M}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function T(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=D(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}E.prototype.read=function(e){m("read",e);e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){m("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)V(this);else C(this);return null}e=T(e,t);if(e===0&&t.ended){if(t.length===0)V(this);return null}var n=t.needReadable;m("need readable",n);if(t.length===0||t.length-e<t.highWaterMark){n=true;m("length less than watermark",n)}if(t.ended||t.reading){n=false;m("reading or ended",n)}else if(n){m("do read");t.reading=true;t.sync=true;if(t.length===0)t.needReadable=true;this._read(t.highWaterMark);t.sync=false;if(!t.reading)e=T(r,t)}var a;if(e>0)a=H(e,t);else a=null;if(a===null){t.needReadable=true;e=0}else{t.length-=e}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)V(this)}if(a!==null)this.emit("data",a);return a};function L(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;C(e)}function C(e){var t=e._readableState;t.needReadable=false;if(!t.emittedReadable){m("emitReadable",t.flowing);t.emittedReadable=true;if(t.sync)a.nextTick(j,e);else j(e)}}function j(e){m("emit readable");e.emit("readable");B(e)}function N(e,t){if(!t.readingMore){t.readingMore=true;a.nextTick(I,e,t)}}function I(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark){m("maybeReadMore read 0");e.read(0);if(r===t.length)break;else r=t.length}t.readingMore=false}E.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};E.prototype.pipe=function(e,t){var r=this;var i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1;m("pipe count=%d opts=%j",i.pipesCount,t);var o=(!t||t.end!==false)&&e!==n.stdout&&e!==n.stderr;var s=o?c:A;if(i.endEmitted)a.nextTick(s);else r.once("end",s);e.on("unpipe",l);function l(e,t){m("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;p()}}}function c(){m("onend");e.end()}var f=P(r);e.on("drain",f);var d=false;function p(){m("cleanup");e.removeListener("close",g);e.removeListener("finish",b);e.removeListener("drain",f);e.removeListener("error",y);e.removeListener("unpipe",l);r.removeListener("end",c);r.removeListener("end",A);r.removeListener("data",v);d=true;if(i.awaitDrain&&(!e._writableState||e._writableState.needDrain))f()}var h=false;r.on("data",v);function v(t){m("ondata");h=false;var n=e.write(t);if(false===n&&!h){if((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&K(i.pipes,e)!==-1)&&!d){m("false write response, pause",r._readableState.awaitDrain);r._readableState.awaitDrain++;h=true}r.pause()}}function y(t){m("onerror",t);A();e.removeListener("error",y);if(u(e,"error")===0)e.emit("error",t)}_(e,"error",y);function g(){e.removeListener("finish",b);A()}e.once("close",g);function b(){m("onfinish");e.removeListener("close",g);A()}e.once("finish",b);function A(){m("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!i.flowing){m("pipe resume");r.resume()}return e};function P(e){return function(){var t=e._readableState;m("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&u(e,"data")){t.flowing=true;B(e)}}}E.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,r);return this}if(!e){var n=t.pipes;var a=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var i=0;i<a;i++){n[i].emit("unpipe",this,r)}return this}var o=K(t.pipes,e);if(o===-1)return this;t.pipes.splice(o,1);t.pipesCount-=1;if(t.pipesCount===1)t.pipes=t.pipes[0];e.emit("unpipe",this,r);return this};E.prototype.on=function(e,t){var r=l.prototype.on.call(this,e,t);if(e==="data"){if(this._readableState.flowing!==false)this.resume()}else if(e==="readable"){var n=this._readableState;if(!n.endEmitted&&!n.readableListening){n.readableListening=n.needReadable=true;n.emittedReadable=false;if(!n.reading){a.nextTick(R,this)}else if(n.length){C(this)}}}return r};E.prototype.addListener=E.prototype.on;function R(e){m("readable nexttick read 0");e.read(0)}E.prototype.resume=function(){var e=this._readableState;if(!e.flowing){m("resume");e.flowing=true;F(this,e)}return this};function F(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;a.nextTick(Y,e,t)}}function Y(e,t){if(!t.reading){m("resume read 0");e.read(0)}t.resumeScheduled=false;t.awaitDrain=0;e.emit("resume");B(e);if(t.flowing&&!t.reading)e.read(0)}E.prototype.pause=function(){m("call pause flowing=%j",this._readableState.flowing);if(false!==this._readableState.flowing){m("pause");this._readableState.flowing=false;this.emit("pause")}return this};function B(e){var t=e._readableState;m("flow",t.flowing);while(t.flowing&&e.read()!==null){}}E.prototype.wrap=function(e){var t=this;var r=this._readableState;var n=false;e.on("end",(function(){m("wrapped end");if(r.decoder&&!r.ended){var e=r.decoder.end();if(e&&e.length)t.push(e)}t.push(null)}));e.on("data",(function(a){m("wrapped data");if(r.decoder)a=r.decoder.write(a);if(r.objectMode&&(a===null||a===undefined))return;else if(!r.objectMode&&(!a||!a.length))return;var i=t.push(a);if(!i){n=true;e.pause()}}));for(var a in e){if(this[a]===undefined&&typeof e[a]==="function"){this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a)}}for(var i=0;i<A.length;i++){e.on(A[i],this.emit.bind(this,A[i]))}this._read=function(t){m("wrapped _read",t);if(n){n=false;e.resume()}};return this};Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});E._fromList=H;function H(e,t){if(t.length===0)return null;var r;if(t.objectMode)r=t.buffer.shift();else if(!e||e>=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.head.data;else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=U(e,t.buffer,t.decoder)}return r}function U(e,t,r){var n;if(e<t.head.data.length){n=t.head.data.slice(0,e);t.head.data=t.head.data.slice(e)}else if(e===t.head.data.length){n=t.shift()}else{n=r?z(e,t):q(e,t)}return n}function z(e,t){var r=t.head;var n=1;var a=r.data;e-=a.length;while(r=r.next){var i=r.data;var o=e>i.length?i.length:e;if(o===i.length)a+=i;else a+=i.slice(0,e);e-=o;if(e===0){if(o===i.length){++n;if(r.next)t.head=r.next;else t.head=t.tail=null}else{t.head=r;r.data=i.slice(o)}break}++n}t.length-=n;return a}function q(e,t){var r=c.allocUnsafe(e);var n=t.head;var a=1;n.data.copy(r);e-=n.data.length;while(n=n.next){var i=n.data;var o=e>i.length?i.length:e;i.copy(r,r.length-e,0,o);e-=o;if(e===0){if(o===i.length){++a;if(n.next)t.head=n.next;else t.head=t.tail=null}else{t.head=n;n.data=i.slice(o)}break}++a}t.length-=a;return r}function V(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!t.endEmitted){t.ended=true;a.nextTick(W,t,e)}}function W(e,t){if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end")}}function K(e,t){for(var r=0,n=e.length;r<n;r++){if(e[r]===t)return r}return-1}}).call(this,r(25),r(126))},function(e,t,r){e.exports=r(142).EventEmitter},function(e,t,r){"use strict";var n=r(175);function a(e,t){var r=this;var a=this._readableState&&this._readableState.destroyed;var i=this._writableState&&this._writableState.destroyed;if(a||i){if(t){t(e)}else if(e&&(!this._writableState||!this._writableState.errorEmitted)){n.nextTick(o,this,e)}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,(function(e){if(!t&&e){n.nextTick(o,r,e);if(r._writableState){r._writableState.errorEmitted=true}}else if(t){t(e)}}));return this}function i(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function o(e,t){e.emit("error",t)}e.exports={destroy:a,undestroy:i}},function(e,t,r){(function(e){var n=typeof e!=="undefined"&&e||typeof self!=="undefined"&&self||window;var a=Function.prototype.apply;t.setTimeout=function(){return new i(a.call(setTimeout,n,arguments),clearTimeout)};t.setInterval=function(){return new i(a.call(setInterval,n,arguments),clearInterval)};t.clearTimeout=t.clearInterval=function(e){if(e){e.close()}};function i(e,t){this._id=e;this._clearFn=t}i.prototype.unref=i.prototype.ref=function(){};i.prototype.close=function(){this._clearFn.call(n,this._id)};t.enroll=function(e,t){clearTimeout(e._idleTimeoutId);e._idleTimeout=t};t.unenroll=function(e){clearTimeout(e._idleTimeoutId);e._idleTimeout=-1};t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;if(t>=0){e._idleTimeoutId=setTimeout((function t(){if(e._onTimeout)e._onTimeout()}),t)}};r(391);t.setImmediate=typeof self!=="undefined"&&self.setImmediate||typeof e!=="undefined"&&e.setImmediate||this&&this.setImmediate;t.clearImmediate=typeof self!=="undefined"&&self.clearImmediate||typeof e!=="undefined"&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(25))},function(e,t,r){(function(e,t){(function(e,r){"use strict";if(e.setImmediate){return}var n=1;var a={};var i=false;var o=e.document;var s;function u(e){if(typeof e!=="function"){e=new Function(""+e)}var t=new Array(arguments.length-1);for(var r=0;r<t.length;r++){t[r]=arguments[r+1]}var i={callback:e,args:t};a[n]=i;s(n);return n++}function l(e){delete a[e]}function c(e){var t=e.callback;var n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(r,n);break}}function f(e){if(i){setTimeout(f,0,e)}else{var t=a[e];if(t){i=true;try{c(t)}finally{l(e);i=false}}}}function d(){s=function(e){t.nextTick((function(){f(e)}))}}function p(){if(e.postMessage&&!e.importScripts){var t=true;var r=e.onmessage;e.onmessage=function(){t=false};e.postMessage("","*");e.onmessage=r;return t}}function h(){var t="setImmediate$"+Math.random()+"$";var r=function(r){if(r.source===e&&typeof r.data==="string"&&r.data.indexOf(t)===0){f(+r.data.slice(t.length))}};if(e.addEventListener){e.addEventListener("message",r,false)}else{e.attachEvent("onmessage",r)}s=function(r){e.postMessage(t+r,"*")}}function v(){var e=new MessageChannel;e.port1.onmessage=function(e){var t=e.data;f(t)};s=function(t){e.port2.postMessage(t)}}function m(){var e=o.documentElement;s=function(t){var r=o.createElement("script");r.onreadystatechange=function(){f(t);r.onreadystatechange=null;e.removeChild(r);r=null};e.appendChild(r)}}function y(){s=function(e){setTimeout(f,0,e)}}var g=Object.getPrototypeOf&&Object.getPrototypeOf(e);g=g&&g.setTimeout?g:e;if({}.toString.call(e.process)==="[object process]"){d()}else if(p()){h()}else if(e.MessageChannel){v()}else if(o&&"onreadystatechange"in o.createElement("script")){m()}else{y()}g.setImmediate=u;g.clearImmediate=l})(typeof self==="undefined"?typeof e==="undefined"?this:e:self)}).call(this,r(25),r(126))},function(e,t,r){"use strict";e.exports=o;var n=r(101);var a=Object.create(r(152));a.inherits=r(125);a.inherits(o,n);function i(e,t){var r=this._transformState;r.transforming=false;var n=r.writecb;if(!n){return this.emit("error",new Error("write callback called multiple times"))}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);n(e);var a=this._readableState;a.reading=false;if(a.needReadable||a.length<a.highWaterMark){this._read(a.highWaterMark)}}function o(e){if(!(this instanceof o))return new o(e);n.call(this,e);this._transformState={afterTransform:i.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=true;this._readableState.sync=false;if(e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",s)}function s(){var e=this;if(typeof this._flush==="function"){this._flush((function(t,r){u(e,t,r)}))}else{u(this,null,null)}}o.prototype.push=function(e,t){this._transformState.needTransform=false;return n.prototype.push.call(this,e,t)};o.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};o.prototype._write=function(e,t,r){var n=this._transformState;n.writecb=r;n.writechunk=e;n.writeencoding=t;if(!n.transforming){var a=this._readableState;if(n.needTransform||a.needReadable||a.length<a.highWaterMark)this._read(a.highWaterMark)}};o.prototype._read=function(e){var t=this._transformState;if(t.writechunk!==null&&t.writecb&&!t.transforming){t.transforming=true;this._transform(t.writechunk,t.writeencoding,t.afterTransform)}else{t.needTransform=true}};o.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e);r.emit("close")}))};function u(e,t,r){if(t)return e.emit("error",t);if(r!=null)e.push(r);if(e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}},function(e,t){(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/);t.normalize=function(e){return e.toLowerCase()};t.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)};t.stripPrefix=function(t){return t.replace(e,"")};t.parseNumbers=function(e){if(!isNaN(e)){e=e%1===0?parseInt(e,10):parseFloat(e)}return e};t.parseBooleans=function(e){if(/^(?:true|false)$/i.test(e)){e=e.toLowerCase()==="true"}return e}}).call(this)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(8);t.default=function(e){var t={isFetching:false,fetchError:null};var r=function(r,a){if(r===void 0){r=t}switch(a.type){case e+"_"+n.default.REQUEST:return Object.assign({},r,{isFetching:true,fetchError:null});case e+"_"+n.default.FAILURE:return Object.assign({},r,{isFetching:false,fetchError:a.error});case e+"_"+n.default.SUCCESS:return Object.assign({},r,{isFetching:false,fetchError:null});default:return r}};return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){this.email=null;this.systemAdmin=false;this.sitewideLibraryManager=false;this.sitewideLibrarian=false;this.manager=false;this.libraryRoles={};this.roles=e;this.email=t;for(var r=0,n=e;r<n.length;r++){var a=n[r];switch(a.role){case"system":{this.systemAdmin=true}case"manager-all":{this.sitewideLibraryManager=true;this.manager=true}case"librarian-all":{this.sitewideLibrarian=true;break}case"manager":{this.manager=true;this.libraryRoles[a.library]="manager";break}case"librarian":{this.libraryRoles[a.library]="librarian";break}default:{break}}}}e.prototype.hasRole=function(e,t){if(this.isSystemAdmin()){return true}if(e!=="system"&&this.isSitewideLibraryManager()){return true}if(e==="librarian-all"&&this.isSitewideLibrarian()){return true}if(e==="manager"&&this.isLibraryManager(t)){return true}if(e==="librarian"&&this.isLibrarian(t)){return true}return false};e.prototype.isSystemAdmin=function(){return this.systemAdmin};e.prototype.isSitewideLibraryManager=function(){return this.sitewideLibraryManager};e.prototype.isSitewideLibrarian=function(){return this.sitewideLibrarian};e.prototype.isLibraryManager=function(e){return this.sitewideLibraryManager||this.libraryRoles[e]==="manager"};e.prototype.isLibrarian=function(e){return this.isLibraryManager(e)||this.sitewideLibrarian||this.libraryRoles[e]==="librarian"};e.prototype.isLibraryManagerOfSomeLibrary=function(){return this.manager};return e}();t.default=n},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});t.usePathFor=t.PathForContext=void 0;var a=r(1);var i=r(0);t.PathForContext=a.createContext(undefined);var o=function(e){n(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.getChildContext=function(){return{pathFor:this.props.pathFor}};r.prototype.render=function(){return a.createElement(t.PathForContext.Provider,{value:this.props.pathFor},this.props.children)};r.childContextTypes={pathFor:i.func.isRequired};return r}(a.Component);t.default=o;function s(){var e=a.useContext(t.PathForContext);if(typeof e==="undefined"){throw new Error("usePathFor must be used within a PathForProvider")}return e}t.usePathFor=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);t.TOSContext=n.createContext(null);t.TOSContextProvider=t.TOSContext.Provider},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(3);var o=r(534);var s=r(264);var u=r(177);var l=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e;var t=this.fields();var r=u.getMedium(this.props.book);return a.createElement("div",{className:"book-details"},a.createElement("div",{className:"top",lang:this.props.book.language},a.createElement("div",{className:"cover"},a.createElement(o.default,{book:this.props.book})),a.createElement("div",{className:"details"},a.createElement("h1",{className:"title"},this.props.book.title),this.props.book.subtitle&&a.createElement("p",{className:"subtitle"},this.props.book.subtitle),this.props.book.series&&this.props.book.series.name&&a.createElement("p",{className:"series"},this.props.book.series.name),this.props.book.authors&&this.props.book.authors.length>0&&a.createElement("p",{className:"authors"},"By ",this.props.book.authors.join(", ")),this.props.book.contributors&&this.props.book.contributors.length>0&&a.createElement("p",{className:"contributors"},"Contributors: ",this.props.book.contributors.join(", ")),a.createElement("ul",{className:"fields",lang:"en"},t.map((function(e){return e.value&&a.createElement("li",{className:e.name.toLowerCase().replace(" ","-"),key:e.name},e.name,": ",e.value)})),r&&a.createElement("li",{className:"item-icon-container"},u.getMediumSVG(r))))),a.createElement("div",{className:"divider"}),a.createElement("div",{className:"main"},a.createElement("div",{className:"row"},a.createElement("div",{className:"top col-sm-6 col-sm-offset-3"},a.createElement("div",{className:"circulation-links"},this.circulationLinks()),a.createElement("div",{className:"circulation-info"},this.circulationInfo())),a.createElement("div",{className:"right-column-links col-sm-3"},this.rightColumnLinks())),a.createElement("h2",null,"Summary"),a.createElement("div",{className:"summary",lang:this.props.book.language,dangerouslySetInnerHTML:{__html:(e=this.props.book.summary)!==null&&e!==void 0?e:""}})))};t.prototype.componentDidMount=function(){this.setBodyOverflow("hidden")};t.prototype.componentWillUnmount=function(){this.setBodyOverflow("visible")};t.prototype.setBodyOverflow=function(e){var t=document.getElementsByTagName("body")[0];if(t){t.style.overflow=e}};t.prototype.circulationInfo=function(){if(u.bookIsOpenAccess(this.props.book)){return[a.createElement("div",{key:"oa",className:"open-access-info"},"This open-access book is available to keep.")]}if(u.bookIsBorrowed(this.props.book)){var e=this.props.book.availability&&this.props.book.availability.until;if(e){var t=i(e).fromNow(true);return[a.createElement("div",{key:"loan",className:"loan-info"},"You have this book on loan for ",t,".")]}return[]}var r=[];var n=this.props.book.copies&&this.props.book.copies.available;var o=this.props.book.copies&&this.props.book.copies.total;var s=this.props.book.holds&&this.props.book.holds.total;var l=this.props.book.holds&&this.props.book.holds.position;if(n!==undefined&&n!==null&&o!==undefined&&o!==null){r.push(a.createElement("div",{key:"copies",className:"copies-info"},n," of ",o," copies available"))}if(s&&n===0){r.push(a.createElement("div",{key:"holds",className:"holds-info"},s," patrons in hold queue"));if(u.bookIsReserved(this.props.book)&&l!==undefined&&l!==null){r.push(a.createElement("div",{key:"holds-position",className:"holds-info"},"Your holds position: ",l))}}return r};t.prototype.rightColumnLinks=function(){};return t}(s.default);t.default=l},function(e,t,r){(function(e,t){true?t(r(3)):undefined})(this,(function(e){"use strict";
|
|
42
42
|
//! moment.js locale configuration
|
|
43
43
|
var t=e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,r){if(e<12){return r?"vm":"VM"}else{return r?"nm":"NM"}},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(e===1||e===8||e>=20?"ste":"de")},week:{dow:1,doy:4}});return t}))},function(e,t,r){(function(e,t){true?t(r(3)):undefined})(this,(function(e){"use strict";
|
|
44
44
|
//! moment.js locale configuration
|
|
@@ -308,7 +308,7 @@ var t=e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_
|
|
|
308
308
|
//! moment.js locale configuration
|
|
309
309
|
var t=e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){if(e===12){e=0}if(t==="凌晨"||t==="早上"||t==="上午"){return e}else if(t==="中午"){return e>=11?e:e+12}else if(t==="下午"||t==="晚上"){return e+12}},meridiem:function(e,t,r){var n=e*100+t;if(n<600){return"凌晨"}else if(n<900){return"早上"}else if(n<1130){return"上午"}else if(n<1230){return"中午"}else if(n<1800){return"下午"}else{return"晚上"}},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},function(e,t,r){(function(e,t){true?t(r(3)):undefined})(this,(function(e){"use strict";
|
|
310
310
|
//! moment.js locale configuration
|
|
311
|
-
var t=e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){if(e===12){e=0}if(t==="凌晨"||t==="早上"||t==="上午"){return e}else if(t==="中午"){return e>=11?e:e+12}else if(t==="下午"||t==="晚上"){return e+12}},meridiem:function(e,t,r){var n=e*100+t;if(n<600){return"凌晨"}else if(n<900){return"早上"}else if(n<1130){return"上午"}else if(n<1230){return"中午"}else if(n<1800){return"下午"}else{return"晚上"}},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(830);var o=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={error:false};r.handleError=r.handleError.bind(r);return r}t.prototype.handleError=function(e){this.setState({error:true})};t.prototype.componentWillReceiveProps=function(e){if(this.state.error){this.setState({error:false})}};t.prototype.render=function(){var e;var t=this.props.book,r=t.title,n=t.authors,i=t.imageUrl;if(i&&!this.state.error){return a.createElement("img",{src:i,onError:this.handleError,className:"book-cover",role:"presentation",alt:""})}var o=this.computeFontSize(r,40);var s=this.computeFontSize((e=n===null||n===void 0?void 0:n.join(", "))!==null&&e!==void 0?e:"",25);var u=this.seededRandomHue(r);var l="hsla("+u+", 40%, 60%, 1)";return a.createElement("div",{className:"auto-book-cover",style:{backgroundColor:l}},a.createElement("div",{className:"title",style:{fontSize:o}},r),(n===null||n===void 0?void 0:n.length)&&a.createElement("div",{className:"authors",style:{fontSize:s}},"By ",n.join(", ")))};t.prototype.computeFontSize=function(e,t,r){if(t===void 0){t=40}if(r===void 0){r=15}var n=e.split(/\s/);var a=n.length;var i=Math.max.apply(Math,n.map((function(e){return e.length})));var o=Math.max(r,t-i*2-Math.max(0,a-3)*2);return o/13+"em"};t.prototype.seededRandomHue=function(e){return Math.round(360*i(e)())};return t}(a.Component);t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.useActions=t.ActionsProvider=t.ActionsContext=void 0;var n=r(1);var a=r(843);t.ActionsContext=n.createContext(undefined);function i(e){var r=e.children,a=e.actions,i=e.fetcher;return n.createElement(t.ActionsContext.Provider,{value:{actions:a,fetcher:i}},r)}t.ActionsProvider=i;function o(){var e=n.useContext(t.ActionsContext);var r=a.default();if(typeof e==="undefined"){throw new Error("useActions must be used within a ActionsProvider")}var i=e.actions,o=e.fetcher;return{actions:i,fetcher:o,dispatch:r}}t.useActions=o;t.default=t.ActionsContext},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hierarchyComputeBreadcrumbs=t.defaultComputeBreadcrumbs=void 0;var n=r(1);var a=r(65);var i=function(e){var t=e.links,r=e.currentLink,i=r===void 0?false:r;return n.createElement("nav",{"aria-label":"breadcrumbs",role:"navigation"},n.createElement("ol",{className:"breadcrumbs"},t&&t.map((function(e,r){return n.createElement("li",{key:e.url,className:"breadcrumb"},r===t.length-1&&!i?n.createElement("span",null,e.text):n.createElement(a.default,{collectionUrl:e.url,bookUrl:null},e.text))}))))};t.default=i;function o(e,t){var r=t?t.slice(0):[];if(e){r.push({url:e.url,text:e.title})}return r}t.defaultComputeBreadcrumbs=o;function s(e,t,r){var n=[];if(!e){return[]}if(!r){r=function(e,t){return e===t}}var a=e.catalogRootLink,i=e.parentLink;if(a&&!r(a.url,e.url)){n.push({text:a.text||"Catalog",url:a.url})}if(i&&i.url&&i.text&&(!a||!r(i.url,a.url))&&!r(i.url,e.url)){n.push({text:i.text,url:i.url})}n.push({url:e.url,text:e.title});return n}t.hierarchyComputeBreadcrumbs=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(850);var o=r(264);var s=r(65);var u=r(852);var l=r(856);var c=r(539);var f=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.fetch=r.fetch.bind(r);r.handleScrollOrResize=i.debounce(50,r.handleScrollOrResize.bind(r));r.getSelectedView=r.getSelectedView.bind(r);r.selectGridView=r.selectGridView.bind(r);r.selectListView=r.selectListView.bind(r);return r}t.prototype.render=function(){var e=this;var r;var n=this.props.collection.facetGroups&&this.props.collection.facetGroups.length>0;var i=this.props.collection.books&&this.props.collection.books.length>0;return a.createElement("div",{className:"collection"},n&&a.createElement("div",{className:"facet-groups","aria-label":"filters"},a.createElement(c.default,{target:"#collection-main",label:"filters"}),(r=this.props.collection.facetGroups)===null||r===void 0?void 0:r.map((function(e){return a.createElement(l.default,{key:e.label,facetGroup:e})}))),a.createElement("div",{className:"collection-container"},i&&a.createElement("div",{className:"view-toggle"},a.createElement("button",{title:"Select grid view",disabled:this.getSelectedView()===t.GRID_VIEW,onClick:this.selectGridView},a.createElement("i",{className:"fa fa-th-large"})),a.createElement("button",{title:"Select list view",disabled:this.getSelectedView()===t.LIST_VIEW,onClick:this.selectListView},a.createElement("i",{className:"fa fa-th-list"}))),a.createElement("div",{id:"collection-main",className:"collection-main",ref:"collection-main","aria-label":"books in "+this.props.collection.title},this.props.collection.lanes&&this.props.collection.lanes.length>0?a.createElement(u.Lanes,{url:this.props.collection.url,lanes:this.props.collection.lanes,updateBook:this.props.updateBook,isSignedIn:this.props.isSignedIn,epubReaderUrlTemplate:this.props.epubReaderUrlTemplate}):null,this.props.collection.books&&a.createElement("ul",{"aria-label":"books",className:"subtle-list books "+this.getSelectedView()},this.props.collection.books.map((function(t,r){return a.createElement("li",{key:r},a.createElement(o.default,{book:t,collectionUrl:e.props.collection.url,updateBook:e.props.updateBook,isSignedIn:e.props.isSignedIn,epubReaderUrlTemplate:e.props.epubReaderUrlTemplate}))}))),this.props.collection.navigationLinks&&a.createElement("nav",{role:"navigation","aria-label":"navigation links"},a.createElement("ul",{className:"navigation-links subtle-list"},this.props.collection.navigationLinks.map((function(e,t){return a.createElement("li",{key:t},a.createElement(s.default,{collectionUrl:e.url},e.text))})))),this.isEmpty()&&a.createElement("div",{className:"empty-collection-message"},"No books found."),this.canFetch()&&a.createElement("button",{className:"next-page-link visually-hidden",onClick:this.fetch},"Load more books"),this.props.isFetchingPage&&a.createElement("div",{className:"loading-next-page"},a.createElement("h3",null,"Loading more books...")))))};t.prototype.getSelectedView=function(){return this.props.preferences&&this.props.preferences[t.VIEW_KEY]||t.GRID_VIEW};t.prototype.selectGridView=function(){if(this.props.setPreference){this.props.setPreference(t.VIEW_KEY,t.GRID_VIEW)}};t.prototype.selectListView=function(){if(this.props.setPreference){this.props.setPreference(t.VIEW_KEY,t.LIST_VIEW)}};t.prototype.componentWillReceiveProps=function(e){if(this.props.isFetchingCollection&&!e.isFetchingCollection&&!e.error){this.refs["collection-main"].scrollTop=0}this.handleScrollOrResize()};t.prototype.componentDidMount=function(){var e=this.refs["collection-main"];e.addEventListener("scroll",this.handleScrollOrResize);window.addEventListener("resize",this.handleScrollOrResize);this.handleScrollOrResize()};t.prototype.componentWillUnmount=function(){var e=this.refs["collection-main"];e.removeEventListener("scroll",this.handleScrollOrResize);window.removeEventListener("resize",this.handleScrollOrResize)};t.prototype.canFetch=function(){return!this.props.hidden&&!this.props.isFetchingPage&&!!this.props.collection.nextPageUrl};t.prototype.fetch=function(){var e,t;if(this.canFetch()&&this.props.collection.nextPageUrl){(t=(e=this.props).fetchPage)===null||t===void 0?void 0:t.call(e,this.props.collection.nextPageUrl)}};t.prototype.handleScrollOrResize=function(){var e=this.refs["collection-main"];if(e){var t=e.scrollTop;var r=e.scrollHeight;var n=e.clientHeight;if(t+n>=r){this.fetch()}}};t.prototype.isEmpty=function(){return this.props.collection.lanes.length===0&&this.props.collection.books.length===0&&this.props.collection.navigationLinks.length===0};t.VIEW_KEY="collection-view";t.GRID_VIEW="grid-view";t.LIST_VIEW="list-view";return t}(a.Component);t.default=f},function(e,t){e.exports=function(e,t,r,n){var a;var i=0;if(typeof t!=="boolean"){n=r;r=t;t=undefined}function o(){var o=this;var s=Number(new Date)-i;var u=arguments;function l(){i=Number(new Date);r.apply(o,u)}function c(){a=undefined}if(n&&!a){l()}if(a){clearTimeout(a)}if(n===undefined&&s>e){l()}else if(t!==true){a=setTimeout(n?c:l,n===undefined?e-s:e)}}return o}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e=-1;var t="Skip "+(this.props.label||"navigation");return a.createElement("div",{className:"skip-navigation",tabIndex:e},a.createElement("a",{href:this.props.target},t))};return t}(a.Component);t.default=i},function(e,t,r){"use strict";var n=r(51);var a=r(67);var i=r(11);var o=i.OrderedMap;var s=function e(t){var r={};var n;return o(t.withMutations((function(e){e.forEach((function(t,i){var o=t.getKey();var s=t.getNextSiblingKey();var u=t.getPrevSiblingKey();var l=t.getChildKeys();var c=t.getParentKey();var f=a();r[o]=f;if(s){var d=e.get(s);if(d){e.setIn([s,"prevSibling"],f)}else{e.setIn([o,"nextSibling"],null)}}if(u){var p=e.get(u);if(p){e.setIn([u,"nextSibling"],f)}else{e.setIn([o,"prevSibling"],null)}}if(c&&e.get(c)){var h=e.get(c);var v=h.getChildKeys();e.setIn([c,"children"],v.set(v.indexOf(t.getKey()),f))}else{e.setIn([o,"parent"],null);if(n){e.setIn([n.getKey(),"nextSibling"],f);e.setIn([o,"prevSibling"],r[n.getKey()])}n=e.get(o)}l.forEach((function(r){var n=e.get(r);if(n){e.setIn([r,"parent"],f)}else{e.setIn([o,"children"],t.getChildKeys().filter((function(e){return e!==r})))}}))}))})).toArray().map((function(e){return[r[e.getKey()],e.set("key",r[e.getKey()])]})))};var u=function e(t){return o(t.toArray().map((function(e){var t=a();return[t,e.set("key",t)]})))};var l=function e(t){var r=t.first()instanceof n;if(!r){return u(t)}return s(t)};e.exports=l},function(e,t,r){"use strict";var n=r(50);var a=r(154);var i=r(16);function o(e,t){var r=e.getBlockMap();var n=e.getEntityMap();var a={};var i=t.getStartKey();var o=t.getStartOffset();var s=r.get(i);var l=u(n,s,o);if(l!==s){a[i]=l}var c=t.getEndKey();var f=t.getEndOffset();var d=r.get(c);if(i===c){d=l}var p=u(n,d,f);if(p!==d){a[c]=p}if(!Object.keys(a).length){return e.set("selectionAfter",t)}return e.merge({blockMap:r.merge(a),selectionAfter:t})}function s(e,t,r){var n;a(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){if(e<=r&&t>=r){n={start:e,end:t}}}));!(typeof n==="object")?false?undefined:i(false):void 0;return n}function u(e,t,r){var a=t.getCharacterList();var i=r>0?a.get(r-1):undefined;var o=r<a.count()?a.get(r):undefined;var u=i?i.getEntity():undefined;var l=o?o.getEntity():undefined;if(l&&l===u){var c=e.__get(l);if(c.getMutability()!=="MUTABLE"){var f=s(a,l,r),d=f.start,p=f.end;var h;while(d<p){h=a.get(d);a=a.set(d,n.applyEntity(h,null));d++}return t.set("characterList",a)}}return t}e.exports=o},function(e,t,r){"use strict";function n(e,t,r){var n=e;if(r===n.count()){t.forEach((function(e){n=n.push(e)}))}else if(r===0){t.reverse().forEach((function(e){n=n.unshift(e)}))}else{var a=n.slice(0,r);var i=n.slice(r);n=a.concat(t,i).toList()}return n}e.exports=n},function(e,t,r){"use strict";var n=r(11);var a=n.Map;function i(e,t,r){var n=t.getStartKey();var i=t.getEndKey();var o=e.getBlockMap();var s=o.toSeq().skipUntil((function(e,t){return t===n})).takeUntil((function(e,t){return t===i})).concat(a([[i,o.get(i)]])).map(r);return e.merge({blockMap:o.merge(s),selectionBefore:t,selectionAfter:t})}e.exports=i},function(e,t,r){"use strict";var n=r(51);var a=function e(t,r){var a=t instanceof n;if(!a){return null}var i=t.getNextSiblingKey();if(i){return i}var o=t.getParentKey();if(!o){return null}var s=r.get(o);while(s&&!s.getNextSiblingKey()){var u=s.getParentKey();s=u?r.get(u):null}if(!s){return null}return s.getNextSiblingKey()};e.exports=a},function(e,t,r){"use strict";function n(e){return Object.keys(e).map((function(t){return e[t]}))}e.exports=n},function(e,t,r){"use strict";function n(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var a=r(11);var i=a.Record;var o=i({type:"TOKEN",mutability:"IMMUTABLE",data:Object});var s=function(e){n(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.getType=function e(){return this.get("type")};r.getMutability=function e(){return this.get("mutability")};r.getData=function e(){return this.get("data")};return t}(o);e.exports=s},function(e,t,r){"use strict";var n=new RegExp("\r","g");function a(e){return e.replace(n,"")}e.exports=a},function(e,t,r){"use strict";e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},function(e,t,r){"use strict";var n=r(104);function a(e){if(n(e)){var t=e;var r=t.getAttribute("data-offset-key");if(r){return r}for(var i=0;i<t.childNodes.length;i++){var o=a(t.childNodes[i]);if(o){return o}}}return null}e.exports=a},function(e,t,r){"use strict";function n(e){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView){return window}return e.ownerDocument.defaultView}e.exports=n},function(e,t,r){"use strict";var n=r(552);var a=r(20);var i=r(553);var o=r(554);function s(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState;var r=t.getSelection();n.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(r.toJS())})}return}var s=e.props.editorState;var u=o(s,i(e));var l=u.selectionState;if(l!==s.getSelection()){if(u.needsRecovery){s=a.forceSelection(s,l)}else{s=a.acceptSelection(s,l)}e.update(s)}}e.exports=s},function(e,t,r){"use strict";e.exports={logBlockedSelectionEvent:function e(){return null},logSelectionStateFailure:function e(){return null}}},function(e,t,r){"use strict";var n=r(16);var a=r(155);function i(e){var t=e.editorContainer;!t?false?undefined:n(false):void 0;!a(t.firstChild)?false?undefined:n(false):void 0;var r=t.firstChild;return r}e.exports=i},function(e,t,r){"use strict";var n=r(555);function a(e,t){var r=t.ownerDocument.defaultView.getSelection();var a=r.anchorNode,i=r.anchorOffset,o=r.focusNode,s=r.focusOffset,u=r.rangeCount;if(u===0||a==null||o==null){return{selectionState:e.getSelection().set("hasFocus",false),needsRecovery:false}}return n(e,t,a,i,o,s)}e.exports=a},function(e,t,r){"use strict";var n=r(184);var a=r(549);var i=r(556);var o=r(16);var s=r(104);var u=r(37);function l(e,t,r,a,o,s){var l=r.nodeType===Node.TEXT_NODE;var c=o.nodeType===Node.TEXT_NODE;if(l&&c){return{selectionState:i(e,u(n(r)),a,u(n(o)),s),needsRecovery:false}}var f=null;var p=null;var h=true;if(l){f={key:u(n(r)),offset:a};p=d(t,o,s)}else if(c){p={key:u(n(o)),offset:s};f=d(t,r,a)}else{f=d(t,r,a);p=d(t,o,s);if(r===o&&a===s){h=!!r.firstChild&&r.firstChild.nodeName!=="BR"}}return{selectionState:i(e,f.key,f.offset,p.key,p.offset),needsRecovery:h}}function c(e){while(e.firstChild&&(s(e.firstChild)&&e.firstChild.getAttribute("data-blocks")==="true"||a(e.firstChild))){e=e.firstChild}return e}function f(e){while(e.lastChild&&(s(e.lastChild)&&e.lastChild.getAttribute("data-blocks")==="true"||a(e.lastChild))){e=e.lastChild}return e}function d(e,t,r){var i=t;var l=n(i);!(l!=null||e&&(e===i||e.firstChild===i))?false?undefined:o(false):void 0;if(e===i){i=i.firstChild;!s(i)?false?undefined:o(false):void 0;var d=i;i=d;!(i.getAttribute("data-contents")==="true")?false?undefined:o(false):void 0;if(r>0){r=i.childNodes.length}}if(r===0){var h=null;if(l!=null){h=l}else{var v=c(i);h=u(a(v))}return{key:h,offset:0}}var m=i.childNodes[r-1];var y=null;var g=null;if(!a(m)){y=u(l);g=p(m)}else{var b=f(m);y=u(a(b));g=p(b)}return{key:y,offset:g}}function p(e){var t=e.textContent;return t==="\n"?0:t.length}e.exports=l},function(e,t,r){"use strict";var n=r(73);var a=r(37);function i(e,t,r,i,o){var s=a(e.getSelection());if(!t||!i){if(false){}return s}var u=n.decode(t);var l=u.blockKey;var c=e.getBlockTree(l);var f=c&&c.getIn([u.decoratorKey,"leaves",u.leafKey]);var d=n.decode(i);var p=d.blockKey;var h=e.getBlockTree(p);var v=h&&h.getIn([d.decoratorKey,"leaves",d.leafKey]);if(!f||!v){if(false){}return s}var m=f.get("start");var y=v.get("start");var g=f?m+r:null;var b=v?y+o:null;var A=s.getAnchorKey()===l&&s.getAnchorOffset()===g&&s.getFocusKey()===p&&s.getFocusOffset()===b;if(A){return s}var _=false;if(l===p){var w=f.get("end");var E=v.get("end");if(y===m&&E===w){_=o<r}else{_=y<m}}else{var x=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===l||e===p})).first();_=x===p}return s.merge({anchorKey:l,anchorOffset:g,focusKey:p,focusOffset:b,isBackward:_})}e.exports=i},function(e,t,r){"use strict";function n(e){return e!=null&&e!=""}e.exports={notEmptyKey:n}},function(e,t,r){"use strict";var n=r(46);function a(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function i(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}function o(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var s=r(906);var u=r(1);var l=r(16);var c=r(559);var f=r(907).setDraftEditorSelection;var d=function(e){i(t,e);function t(){var t;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++){n[i]=arguments[i]}t=e.call.apply(e,[this].concat(n))||this;o(a(t),"leaf",void 0);return t}var r=t.prototype;r._setSelection=function e(){var t=this.props.selection;if(t==null||!t.getHasFocus()){return}var r=this.props,n=r.block,a=r.start,i=r.text;var o=n.getKey();var s=a+i.length;if(!t.hasEdgeWithin(o,a,s)){return}var u=this.leaf;!u?false?undefined:l(false):void 0;var d=u.firstChild;!d?false?undefined:l(false):void 0;var p;if(d.nodeType===Node.TEXT_NODE){p=d}else if(c(d)){p=u}else{p=d.firstChild;!p?false?undefined:l(false):void 0}f(t,p,o,a,s)};r.shouldComponentUpdate=function e(t){var r=this.leaf;!r?false?undefined:l(false):void 0;var n=r.textContent!==t.text||t.styleSet!==this.props.styleSet||t.forceSelection;return n};r.componentDidUpdate=function e(){this._setSelection()};r.componentDidMount=function e(){this._setSelection()};r.render=function e(){var t=this;var r=this.props.block;var a=this.props.text;if(a.endsWith("\n")&&this.props.isLast){a+="\n"}var i=this.props,o=i.customStyleMap,l=i.customStyleFn,c=i.offsetKey,f=i.styleSet;var d=f.reduce((function(e,t){var r={};var a=o[t];if(a!==undefined&&e.textDecoration!==a.textDecoration){r.textDecoration=[e.textDecoration,a.textDecoration].join(" ").trim()}return n(e,a,r)}),{});if(l){var p=l(f,r);d=n(d,p)}return u.createElement("span",{"data-offset-key":c,ref:function e(r){return t.leaf=r},style:d},u.createElement(s,null,a))};return t}(u.Component);e.exports=d},function(e,t,r){"use strict";var n=r(104);function a(e){if(!e||!e.ownerDocument){return false}return n(e)&&e.nodeName==="BR"}e.exports=a},function(e,t,r){"use strict";e.exports={initODS:function e(){},handleExtensionCausedError:function e(){}}},function(e,t,r){"use strict";function n(e){e=e||(typeof document!=="undefined"?document:undefined);if(typeof e==="undefined"){return null}try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=n},function(e,t,r){"use strict";var n=r(913);function a(e){var t=n(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}e.exports=a},function(e,t,r){"use strict";function n(){var e;if(document.documentElement){e=document.documentElement.clientWidth}if(!e&&document.body){e=document.body.clientWidth}return e||0}function a(){var e;if(document.documentElement){e=document.documentElement.clientHeight}if(!e&&document.body){e=document.body.clientHeight}return e||0}function i(){return{width:window.innerWidth||n(),height:window.innerHeight||a()}}i.withoutScrollbars=function(){return{width:n(),height:a()}};e.exports=i},function(e,t,r){"use strict";var n=r(46);function a(){a=n||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};return a.apply(this,arguments)}function i(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function o(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}function s(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var u=r(558);var l=r(73);var c=r(1);var f=r(270);var d=r(187);var p=r(266);var h=r(183);var v=r(103);var m=r(562);var y=r(188);var g=r(563);var b=r(16);var A=r(155);var _=r(37);var w=10;var E=function e(t,r){return t.getAnchorKey()===r||t.getFocusKey()===r};var x=function(e){o(t,e);function t(){var t;for(var r=arguments.length,n=new Array(r),a=0;a<r;a++){n[a]=arguments[a]}t=e.call.apply(e,[this].concat(n))||this;s(i(t),"_node",void 0);return t}var r=t.prototype;r.shouldComponentUpdate=function e(t){return this.props.block!==t.block||this.props.tree!==t.tree||this.props.direction!==t.direction||E(t.selection,t.block.getKey())&&t.forceSelection};r.componentDidMount=function e(){if(this.props.preventScroll){return}var t=this.props.selection;var r=t.getEndKey();if(!t.getHasFocus()||r!==this.props.block.getKey()){return}var n=this._node;if(n==null){return}var a=d.getScrollParent(n);var i=y(a);var o;if(a===window){var s=m(n);var u=s.y+s.height;var l=g().height;o=u-l;if(o>0){window.scrollTo(i.x,i.y+o+w)}}else{!A(n)?false?undefined:b(false):void 0;var c=n.offsetHeight+n.offsetTop;var p=a.offsetTop+a.offsetHeight;var h=p+i.y;o=c-h;if(o>0){f.setTop(a,f.getTop(a)+o+w)}}};r._renderChildren=function e(){var t=this;var r=this.props.block;var n=r.getKey();var i=r.getText();var o=this.props.tree.size-1;var s=E(this.props.selection,n);return this.props.tree.map((function(e,f){var d=e.get("leaves");if(d.size===0){return null}var v=d.size-1;var m=d.map((function(e,a){var d=l.encode(n,f,a);var p=e.get("start");var h=e.get("end");return c.createElement(u,{key:d,offsetKey:d,block:r,start:p,selection:s?t.props.selection:null,forceSelection:t.props.forceSelection,text:i.slice(p,h),styleSet:r.getInlineStyleAt(p),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:f===o&&a===v})})).toArray();var y=e.get("decoratorKey");if(y==null){return m}if(!t.props.decorator){return m}var g=_(t.props.decorator);var b=g.getComponentForKey(y);if(!b){return m}var A=g.getPropsForKey(y);var w=l.encode(n,f,0);var E=d.first().get("start");var x=d.last().get("end");var k=i.slice(E,x);var S=r.getEntityAt(e.get("start"));var O=h.getHTMLDirIfDifferent(p.getDirection(k),t.props.direction);var M={contentState:t.props.contentState,decoratedText:k,dir:O,start:E,end:x,blockKey:n,entityKey:S,offsetKey:w};return c.createElement(b,a({},A,M,{key:w}),m)})).toArray()};r.render=function e(){var t=this;var r=this.props,n=r.direction,a=r.offsetKey;var i=v({"public/DraftStyleDefault/block":true,"public/DraftStyleDefault/ltr":n==="LTR","public/DraftStyleDefault/rtl":n==="RTL"});return c.createElement("div",{"data-offset-key":a,className:i,ref:function e(r){return t._node=r}},this._renderChildren())};return t}(c.Component);e.exports=x},function(e,t,r){"use strict";var n=r(919);var a=r(920);var i=r(566);var o=new RegExp("\r\n","g");var s="\n";var u={"text/rtf":1,"text/html":1};function l(e){if(e.kind=="file"){return e.getAsFile()}}var c=function(){function e(e){this.data=e;this.types=e.types?a(e.types):[]}var t=e.prototype;t.isRichText=function e(){if(this.getHTML()&&this.getText()){return true}if(this.isImage()){return false}return this.types.some((function(e){return u[e]}))};t.getText=function e(){var t;if(this.data.getData){if(!this.types.length){t=this.data.getData("Text")}else if(this.types.indexOf("text/plain")!=-1){t=this.data.getData("text/plain")}}return t?t.replace(o,s):null};t.getHTML=function e(){if(this.data.getData){if(!this.types.length){return this.data.getData("Text")}else if(this.types.indexOf("text/html")!=-1){return this.data.getData("text/html")}}};t.isLink=function e(){return this.types.some((function(e){return e.indexOf("Url")!=-1||e.indexOf("text/uri-list")!=-1||e.indexOf("text/x-moz-url")}))};t.getLink=function e(){if(this.data.getData){if(this.types.indexOf("text/x-moz-url")!=-1){var t=this.data.getData("text/x-moz-url").split("\n");return t[0]}return this.types.indexOf("text/uri-list")!=-1?this.data.getData("text/uri-list"):this.data.getData("url")}return null};t.isImage=function e(){var e=this.types.some((function(e){return e.indexOf("application/x-moz-file")!=-1}));if(e){return true}var t=this.getFiles();for(var r=0;r<t.length;r++){var a=t[r].type;if(!n.isImage(a)){return false}}return true};t.getCount=function e(){if(this.data.hasOwnProperty("items")){return this.data.items.length}else if(this.data.hasOwnProperty("mozItemCount")){return this.data.mozItemCount}else if(this.data.files){return this.data.files.length}return null};t.getFiles=function e(){if(this.data.items){return Array.prototype.slice.call(this.data.items).map(l).filter(i.thatReturnsArgument)}else if(this.data.files){return Array.prototype.slice.call(this.data.files)}else{return[]}};t.hasFiles=function e(){return this.getFiles().length>0};return e}();e.exports=c},function(e,t,r){"use strict";function n(e){return function(){return e}}var a=function e(){};a.thatReturns=n;a.thatReturnsFalse=n(false);a.thatReturnsTrue=n(true);a.thatReturnsNull=n(null);a.thatReturnsThis=function(){return this};a.thatReturnsArgument=function(e){return e};e.exports=a},function(e,t,r){"use strict";(function(t){var n=r(16);var a=/\.textClipping$/;var i={"text/plain":true,"text/html":true,"text/rtf":true};var o=5e3;function s(e,t){var r=0;var n=[];e.forEach((function(a){u(a,(function(a){r++;a&&n.push(a.slice(0,o));if(r==e.length){t(n.join("\r"))}}))}))}function u(e,r){if(!t.FileReader||e.type&&!(e.type in i)){r("");return}if(e.type===""){var o="";if(a.test(e.name)){o=e.name.replace(a,"")}r(o);return}var s=new FileReader;s.onload=function(){var e=s.result;!(typeof e==="string")?false?undefined:n(false):void 0;r(e)};s.onerror=function(){r("")};s.readAsText(e)}e.exports=s}).call(this,r(25))},function(e,t,r){"use strict";var n=r(180);function a(e){var t=e.getSelection();if(t.isCollapsed()){return null}return n(e.getCurrentContent(),t)}e.exports=a},function(e,t,r){"use strict";var n=r(20);var a=r(105);var i=r(271);var o=r(156);function s(e){var t=o(e,(function(e){var t=e.getSelection();var r=e.getCurrentContent();var n=t.getAnchorKey();var o=t.getAnchorOffset();var s=r.getBlockForKey(n).getText()[o-1];return i(e,s?a.getUTF16Length(s,0):1)}),"backward");if(t===e.getCurrentContent()){return e}var r=e.getSelection();return n.push(e,t.set("selectionBefore",r),r.isCollapsed()?"backspace-character":"remove-range")}e.exports=s},function(e,t,r){"use strict";var n=r(38);var a=r(16);var i=n.isBrowser("Chrome");function o(e){var t=e.cloneRange();var r=[];for(var n=e.endContainer;n!=null;n=n.parentNode){var i=n===e.commonAncestorContainer;if(i){t.setStart(e.startContainer,e.startOffset)}else{t.setStart(t.endContainer,0)}var o=Array.from(t.getClientRects());r.push(o);if(i){var s;r.reverse();return(s=[]).concat.apply(s,r)}t.setEndBefore(n)}true?false?undefined:a(false):undefined}var s=i?o:function(e){return Array.from(e.getClientRects())};e.exports=s},function(e,t,r){"use strict";var n=r(940);var a=n.getPunctuation();var i="['‘’]";var o="\\s|(?![_])"+a;var s="^"+"(?:"+o+")*"+"(?:"+i+"|(?!"+o+").)*"+"(?:(?!"+o+").)";var u=new RegExp(s);var l="(?:(?!"+o+").)"+"(?:"+i+"|(?!"+o+").)*"+"(?:"+o+")*"+"$";var c=new RegExp(l);function f(e,t){var r=t?c.exec(e):u.exec(e);return r?r[0]:e}var d={getBackward:function e(t){return f(t,true)},getForward:function e(t){return f(t,false)}};e.exports=d},function(e,t,r){"use strict";var n=r(272);function a(e,t){var r=e.getSelection();false?undefined:void 0;var n=r.getStartKey();var a=r.getStartOffset();var i=e.getCurrentContent();var o=n;var s;var u=i.getBlockForKey(n);if(t>u.getText().length-a){o=i.getKeyAfter(n);s=0}else{s=a+t}return r.merge({focusKey:o,focusOffset:s})}e.exports=a},function(e,t,r){"use strict";var n;function a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))}n.forEach((function(t){i(e,t,r[t])}))}return e}function i(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var o=r(50);var s=r(102);var u=r(51);var l=r(267);var c=r(181);var f=r(950);var d=r(103);var p=r(67);var h=r(574);var v=r(82);var m=r(11),y=m.List,g=m.Map,b=m.OrderedSet;var A=r(951);var _=r(559);var w=r(155);var E=r(952);var x=v("draft_tree_data_support");var k=" ";var S=" ";var O=new RegExp("\r","g");var M=new RegExp("\n","g");var D=new RegExp("^\n","g");var T=new RegExp(k,"g");var L=new RegExp(" ?","g");var C=new RegExp("​?","g");var j=["bold","bolder","500","600","700","800","900"];var N=["light","lighter","normal","100","200","300","400"];var I=["className","href","rel","target","title"];var P=["alt","className","height","src","width"];var R=(n={},i(n,d("public/DraftStyleDefault/depth0"),0),i(n,d("public/DraftStyleDefault/depth1"),1),i(n,d("public/DraftStyleDefault/depth2"),2),i(n,d("public/DraftStyleDefault/depth3"),3),i(n,d("public/DraftStyleDefault/depth4"),4),n);var F=g({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"});var Y=function e(t){var r={};t.mapKeys((function(e,t){var n=[t.element];if(t.aliasedElements!==undefined){n.push.apply(n,t.aliasedElements)}n.forEach((function(t){if(r[t]===undefined){r[t]=e}else if(typeof r[t]==="string"){r[t]=[r[t],e]}else{r[t].push(e)}}))}));return g(r)};var B=function e(t){if(w(t)){var r=t;if(r.style.fontFamily.includes("monospace")){return"CODE"}}return null};var H=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;Object.keys(R).some((function(e){if(t.classList.contains(e)){r=R[e]}}));return r};var U=function e(t){if(!A(t)){return false}var r=t;if(!r.href||r.protocol!=="http:"&&r.protocol!=="https:"&&r.protocol!=="mailto:"&&r.protocol!=="tel:"){return false}try{var n=new f(r.href);return true}catch(n){return false}};var z=function e(t){if(!E(t)){return false}var r=t;return!!(r.attributes.getNamedItem("src")&&r.attributes.getNamedItem("src").value)};var q=function e(t,r){if(!w(t)){return r}var n=t;var a=n.style.fontWeight;var i=n.style.fontStyle;var o=n.style.textDecoration;return r.withMutations((function(e){if(j.indexOf(a)>=0){e.add("BOLD")}else if(N.indexOf(a)>=0){e.remove("BOLD")}if(i==="italic"){e.add("ITALIC")}else if(i==="normal"){e.remove("ITALIC")}if(o==="underline"){e.add("UNDERLINE")}if(o==="line-through"){e.add("STRIKETHROUGH")}if(o==="none"){e.remove("UNDERLINE");e.remove("STRIKETHROUGH")}}))};var V=function e(t){return t==="ul"||t==="ol"};var W=function(){function e(e,t){i(this,"characterList",y());i(this,"currentBlockType","unstyled");i(this,"currentDepth",0);i(this,"currentEntity",null);i(this,"currentText","");i(this,"wrapper",null);i(this,"blockConfigs",[]);i(this,"contentBlocks",[]);i(this,"entityMap",c);i(this,"blockTypeMap",void 0);i(this,"disambiguate",void 0);this.clear();this.blockTypeMap=e;this.disambiguate=t}var t=e.prototype;t.clear=function e(){this.characterList=y();this.blockConfigs=[];this.currentBlockType="unstyled";this.currentDepth=0;this.currentEntity=null;this.currentText="";this.entityMap=c;this.wrapper=null;this.contentBlocks=[]};t.addDOMNode=function e(t){var r;this.contentBlocks=[];this.currentDepth=0;(r=this.blockConfigs).push.apply(r,this._toBlockConfigs([t],b()));this._trimCurrentText();if(this.currentText!==""){this.blockConfigs.push(this._makeBlockConfig())}return this};t.getContentBlocks=function e(){if(this.contentBlocks.length===0){if(x){this._toContentBlocks(this.blockConfigs)}else{this._toFlatContentBlocks(this.blockConfigs)}}return{contentBlocks:this.contentBlocks,entityMap:this.entityMap}};t._makeBlockConfig=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=t.key||p();var n=a({key:r,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:y(),prevSibling:null,nextSibling:null,childConfigs:[]},t);this.characterList=y();this.currentBlockType="unstyled";this.currentText="";return n};t._toBlockConfigs=function e(t,r){var n=[];for(var a=0;a<t.length;a++){var i=t[a];var o=i.nodeName.toLowerCase();if(o==="body"||V(o)){this._trimCurrentText();if(this.currentText!==""){n.push(this._makeBlockConfig())}var s=this.currentDepth;var u=this.wrapper;if(V(o)){this.wrapper=o;if(V(u)){this.currentDepth++}}n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),r));this.currentDepth=s;this.wrapper=u;continue}var l=this.blockTypeMap.get(o);if(l!==undefined){this._trimCurrentText();if(this.currentText!==""){n.push(this._makeBlockConfig())}var c=this.currentDepth;var f=this.wrapper;this.wrapper=o==="pre"?"pre":this.wrapper;if(typeof l!=="string"){l=this.disambiguate(o,this.wrapper)||l[0]||"unstyled"}if(!x&&w(i)&&(l==="unordered-list-item"||l==="ordered-list-item")){var d=i;this.currentDepth=H(d,this.currentDepth)}var h=p();var v=this._toBlockConfigs(Array.from(i.childNodes),r);this._trimCurrentText();n.push(this._makeBlockConfig({key:h,childConfigs:v,type:l}));this.currentDepth=c;this.wrapper=f;continue}if(o==="#text"){this._addTextNode(i,r);continue}if(o==="br"){this._addBreakNode(i,r);continue}if(z(i)){this._addImgNode(i,r);continue}if(U(i)){this._addAnchorNode(i,n,r);continue}var m=r;if(F.has(o)){m=m.add(F.get(o))}m=q(i,m);var y=B(i);if(y!=null){m=m.add(y)}n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),m))}return n};t._appendText=function e(t,r){var n;this.currentText+=t;var a=o.create({style:r,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(t.length).fill(a))};t._trimCurrentText=function e(){var t=this.currentText.length;var r=t-this.currentText.trimLeft().length;var n=this.currentText.trimRight().length;var a=this.characterList.findEntry((function(e){return e.getEntity()!==null}));r=a!==undefined?Math.min(r,a[0]):r;a=this.characterList.reverse().findEntry((function(e){return e.getEntity()!==null}));n=a!==undefined?Math.max(n,t-a[0]):n;if(r>n){this.currentText="";this.characterList=y()}else{this.currentText=this.currentText.slice(r,n);this.characterList=this.characterList.slice(r,n)}};t._addTextNode=function e(t,r){var n=t.textContent;var a=n.trim();if(a===""&&this.wrapper!=="pre"){n=" "}if(this.wrapper!=="pre"){n=n.replace(D,"");n=n.replace(M,S)}this._appendText(n,r)};t._addBreakNode=function e(t,r){if(!_(t)){return}this._appendText("\n",r)};t._addImgNode=function e(t,r){if(!E(t)){return}var n=t;var a={};P.forEach((function(e){var t=n.getAttribute(e);if(t){a[e]=t}}));this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",a);if(v("draftjs_fix_paste_for_img")){if(n.getAttribute("role")!=="presentation"){this._appendText("📷",r)}}else{this._appendText("📷",r)}this.currentEntity=null};t._addAnchorNode=function e(t,r,n){if(!A(t)){return}var a=t;var i={};I.forEach((function(e){var t=a.getAttribute(e);if(t){i[e]=t}}));i.url=new f(a.href).toString();this.currentEntity=this.entityMap.__create("LINK","MUTABLE",i||{});r.push.apply(r,this._toBlockConfigs(Array.from(t.childNodes),n));this.currentEntity=null};t._toContentBlocks=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var n=t.length-1;for(var i=0;i<=n;i++){var o=t[i];o.parent=r;o.prevSibling=i>0?t[i-1].key:null;o.nextSibling=i<n?t[i+1].key:null;o.children=y(o.childConfigs.map((function(e){return e.key})));this.contentBlocks.push(new u(a({},o)));this._toContentBlocks(o.childConfigs,o.key)}};t._hoistContainersInBlockConfigs=function e(t){var r=this;var n=y(t).flatMap((function(e){if(e.type!=="unstyled"||e.text!==""){return[e]}return r._hoistContainersInBlockConfigs(e.childConfigs)}));return n};t._toFlatContentBlocks=function e(t){var r=this;var n=this._hoistContainersInBlockConfigs(t);n.forEach((function(e){var t=r._extractTextFromBlockConfigs(e.childConfigs),n=t.text,i=t.characterList;r.contentBlocks.push(new s(a({},e,{text:e.text+n,characterList:e.characterList.concat(i)})))}))};t._extractTextFromBlockConfigs=function e(t){var r=t.length-1;var n="";var a=y();for(var i=0;i<=r;i++){var o=t[i];n+=o.text;a=a.concat(o.characterList);if(n!==""&&o.type!=="unstyled"){n+="\n";a=a.push(a.last())}var s=this._extractTextFromBlockConfigs(o.childConfigs);n+=s.text;a=a.concat(s.characterList)}return{text:n,characterList:a}};return e}();var K=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:h;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:l;t=t.trim().replace(O,"").replace(T,S).replace(L,"").replace(C,"");var a=r(t);if(!a){return null}var i=Y(n);var o=function e(t,r){if(t==="li"){return r==="ol"?"ordered-list-item":"unordered-list-item"}return null};return new W(i,o).addDOMNode(a).getContentBlocks()};e.exports=K},function(e,t,r){"use strict";var n=r(38);var a=r(16);var i=n.isBrowser("IE <= 9");function o(e){var t;var r=null;if(!i&&document.implementation&&document.implementation.createHTMLDocument){t=document.implementation.createHTMLDocument("foo");!t.documentElement?false?undefined:a(false):void 0;t.documentElement.innerHTML=e;r=t.getElementsByTagName("body")[0]}return r}e.exports=o},function(e,t,r){"use strict";var n=r(36);var a=r(20);var i=r(953);var o=r(37);var s={currentBlockContainsLink:function e(t){var r=t.getSelection();var n=t.getCurrentContent();var a=n.getEntityMap();return n.getBlockForKey(r.getAnchorKey()).getCharacterList().slice(r.getStartOffset(),r.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&a.__get(t).getType()==="LINK"}))},getCurrentBlockType:function e(t){var r=t.getSelection();return t.getCurrentContent().getBlockForKey(r.getStartKey()).getType()},getDataObjectForLinkURL:function e(t){return{url:t.toString()}},handleKeyCommand:function e(t,r,n){switch(r){case"bold":return s.toggleInlineStyle(t,"BOLD");case"italic":return s.toggleInlineStyle(t,"ITALIC");case"underline":return s.toggleInlineStyle(t,"UNDERLINE");case"code":return s.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(t);default:return null}},insertSoftNewline:function e(t){var r=n.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null);var i=a.push(t,r,"insert-characters");return a.forceSelection(i,r.getSelectionAfter())},onBackspace:function e(t){var r=t.getSelection();if(!r.isCollapsed()||r.getAnchorOffset()||r.getFocusOffset()){return null}var n=t.getCurrentContent();var i=r.getStartKey();var o=n.getBlockBefore(i);if(o&&o.getType()==="atomic"){var u=n.getBlockMap()["delete"](o.getKey());var l=n.merge({blockMap:u,selectionAfter:r});if(l!==n){return a.push(t,l,"remove-range")}}var c=s.tryToRemoveBlockStyle(t);if(c){return a.push(t,c,"change-block-type")}return null},onDelete:function e(t){var r=t.getSelection();if(!r.isCollapsed()){return null}var i=t.getCurrentContent();var o=r.getStartKey();var s=i.getBlockForKey(o);var u=s.getLength();if(r.getStartOffset()<u){return null}var l=i.getBlockAfter(o);if(!l||l.getType()!=="atomic"){return null}var c=r.merge({focusKey:l.getKey(),focusOffset:l.getLength()});var f=n.removeRange(i,c,"forward");if(f!==i){return a.push(t,f,"remove-range")}return null},onTab:function e(t,r,n){var o=r.getSelection();var s=o.getAnchorKey();if(s!==o.getFocusKey()){return r}var u=r.getCurrentContent();var l=u.getBlockForKey(s);var c=l.getType();if(c!=="unordered-list-item"&&c!=="ordered-list-item"){return r}t.preventDefault();var f=l.getDepth();if(!t.shiftKey&&f===n){return r}var d=i(u,o,t.shiftKey?-1:1,n);return a.push(r,d,"adjust-depth")},toggleBlockType:function e(t,r){var i=t.getSelection();var s=i.getStartKey();var u=i.getEndKey();var l=t.getCurrentContent();var c=i;if(s!==u&&i.getEndOffset()===0){var f=o(l.getBlockBefore(u));u=f.getKey();c=c.merge({anchorKey:s,anchorOffset:i.getStartOffset(),focusKey:u,focusOffset:f.getLength(),isBackward:false})}var d=l.getBlockMap().skipWhile((function(e,t){return t!==s})).reverse().skipWhile((function(e,t){return t!==u})).some((function(e){return e.getType()==="atomic"}));if(d){return t}var p=l.getBlockForKey(s).getType()===r?"unstyled":r;return a.push(t,n.setBlockType(l,c,p),"change-block-type")},toggleCode:function e(t){var r=t.getSelection();var n=r.getAnchorKey();var a=r.getFocusKey();if(r.isCollapsed()||n!==a){return s.toggleBlockType(t,"code-block")}return s.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function e(t,r){var i=t.getSelection();var o=t.getCurrentInlineStyle();if(i.isCollapsed()){return a.setInlineStyleOverride(t,o.has(r)?o.remove(r):o.add(r))}var s=t.getCurrentContent();var u;if(o.has(r)){u=n.removeInlineStyle(s,i,r)}else{u=n.applyInlineStyle(s,i,r)}return a.push(t,u,"change-inline-style")},toggleLink:function e(t,r,i){var o=n.applyEntity(t.getCurrentContent(),r,i);return a.push(t,o,"apply-entity")},tryToRemoveBlockStyle:function e(t){var r=t.getSelection();var a=r.getAnchorOffset();if(r.isCollapsed()&&a===0){var i=r.getAnchorKey();var o=t.getCurrentContent();var s=o.getBlockForKey(i);var u=s.getType();var l=o.getBlockBefore(i);if(u==="code-block"&&l&&l.getType()==="code-block"&&l.getLength()!==0){return null}if(u!=="unstyled"){return n.setBlockType(o,r,"unstyled")}}return null}};e.exports=s},function(e,t,r){"use strict";var n=r(273);var a=r(186);var i=r(38);var o=i.isPlatform("Mac OS X");var s=o&&i.isBrowser("Firefox < 29");var u=n.hasCommandModifier,l=n.isCtrlKeyCommand;function c(e){return o&&e.altKey||l(e)}function f(e){if(!u(e)){return null}return e.shiftKey?"redo":"undo"}function d(e){if(!o&&e.shiftKey){return null}return c(e)?"delete-word":"delete"}function p(e){if(u(e)&&o){return"backspace-to-start-of-line"}return c(e)?"backspace-word":"backspace"}function h(e){switch(e.keyCode){case 66:return u(e)?"bold":null;case 68:return l(e)?"delete":null;case 72:return l(e)?"backspace":null;case 73:return u(e)?"italic":null;case 74:return u(e)?"code":null;case 75:return o&&l(e)?"secondary-cut":null;case 77:return l(e)?"split-block":null;case 79:return l(e)?"split-block":null;case 84:return o&&l(e)?"transpose-characters":null;case 85:return u(e)?"underline":null;case 87:return o&&l(e)?"backspace-word":null;case 89:if(l(e)){return o?"secondary-paste":"redo"}return null;case 90:return f(e)||null;case a.RETURN:return"split-block";case a.DELETE:return d(e);case a.BACKSPACE:return p(e);case a.LEFT:return s&&u(e)?"move-selection-to-start-of-block":null;case a.RIGHT:return s&&u(e)?"move-selection-to-end-of-block":null;default:return null}}e.exports=h},function(e,t,r){"use strict";var n={stringify:function e(t){return"_"+String(t)},unstringify:function e(t){return t.slice(1)}};e.exports=n},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(970);var i=r(1);var o=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.autocompleteRef=i.createRef();return t}t.prototype.render=function(){var e=this.props.languages&&this.props.languages[this.props.value]&&this.props.languages[this.props.value][0]||this.props.value;return i.createElement(a.default,{autocompleteValues:this.uniqueLanguageNames(),disabled:this.props.disabled,name:this.props.name||"language",value:e,label:this.props.label,ref:this.autocompleteRef,onChange:this.props.onChange})};t.prototype.uniqueLanguageNames=function(){var e=[];for(var t=0,r=Object.values(this.props.languages||{});t<r.length;t++){var n=r[t];for(var a=0,i=n;a<i.length;a++){var o=i[a];if(e.indexOf(o)===-1){e.push(o)}}}return e};return t}(i.Component);t.default=o},function(e,t,r){r(972);e.exports=r(30).Object.assign},function(e,t,r){e.exports=!r(75)&&!r(108)((function(){return Object.defineProperty(r(581)("div"),"a",{get:function(){return 7}}).a!=7}))},function(e,t,r){var n=r(131);var a=r(74).document;var i=n(a)&&n(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t,r){var n=r(109);var a=r(110);var i=r(975)(false);var o=r(278)("IE_PROTO");e.exports=function(e,t){var r=a(e);var s=0;var u=[];var l;for(l in r)if(l!=o)n(r,l)&&u.push(l);while(t.length>s)if(n(r,l=t[s++])){~i(u,l)||u.push(l)}return u}},function(e,t,r){var n=r(276);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return n(e)=="String"?e.split(""):Object(e)}},function(e,t,r){var n=r(277);var a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},function(e,t,r){r(977);var n=r(30).Object;e.exports=function e(t,r){return n.create(t,r)}},function(e,t,r){r(980);e.exports=r(30).Object.setPrototypeOf},function(e,t,r){var n=r(158);var a=r(157);var i=r(110);var o=r(275);var s=r(109);var u=r(580);var l=Object.getOwnPropertyDescriptor;t.f=r(75)?l:function e(t,r){t=i(t);r=o(r,true);if(u)try{return l(t,r)}catch(e){}if(s(t,r))return a(!n.f.call(t,r),t[r])}},function(e,t,r){r(982);e.exports=r(30).Object.keys},function(e,t,r){var n=r(42);var a=r(30);var i=r(108);e.exports=function(e,t){var r=(a.Object||{})[e]||Object[e];var o={};o[e]=t(r);n(n.S+n.F*i((function(){r(1)})),"Object",o)}},function(e,t,r){var n=r(75);var a=r(132);var i=r(110);var o=r(158).f;e.exports=function(e){return function(t){var r=i(t);var s=a(r);var u=s.length;var l=0;var c=[];var f;while(u>l){f=s[l++];if(!n||o.call(r,f)){c.push(e?[f,r[f]]:r[f])}}return c}}},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=o;var a=n(r(989));var i=/^-ms-/;function o(e){return(0,a.default)(e.replace(i,"ms-"))}e.exports=t["default"]},function(e,t){e.exports="\t\n\v\f\r "+" \u2028\u2029\ufeff"},function(e,t,r){"use strict";r.r(t);r.d(t,"polyfill",(function(){return o}));function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);if(e!==null&&e!==undefined){this.setState(e)}}function a(e){function t(t){var r=this.constructor.getDerivedStateFromProps(e,t);return r!==null&&r!==undefined?r:null}this.setState(t.bind(this))}function i(e,t){try{var r=this.props;var n=this.state;this.props=e;this.state=t;this.__reactInternalSnapshotFlag=true;this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r;this.state=n}}n.__suppressDeprecationWarning=true;a.__suppressDeprecationWarning=true;i.__suppressDeprecationWarning=true;function o(e){var t=e.prototype;if(!t||!t.isReactComponent){throw new Error("Can only polyfill class components")}if(typeof e.getDerivedStateFromProps!=="function"&&typeof t.getSnapshotBeforeUpdate!=="function"){return e}var r=null;var o=null;var s=null;if(typeof t.componentWillMount==="function"){r="componentWillMount"}else if(typeof t.UNSAFE_componentWillMount==="function"){r="UNSAFE_componentWillMount"}if(typeof t.componentWillReceiveProps==="function"){o="componentWillReceiveProps"}else if(typeof t.UNSAFE_componentWillReceiveProps==="function"){o="UNSAFE_componentWillReceiveProps"}if(typeof t.componentWillUpdate==="function"){s="componentWillUpdate"}else if(typeof t.UNSAFE_componentWillUpdate==="function"){s="UNSAFE_componentWillUpdate"}if(r!==null||o!==null||s!==null){var u=e.displayName||e.name;var l=typeof e.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+l+" but also contains the following legacy lifecycles:"+(r!==null?"\n "+r:"")+(o!==null?"\n "+o:"")+(s!==null?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\n"+"https://fb.me/react-async-component-lifecycle-hooks")}if(typeof e.getDerivedStateFromProps==="function"){t.componentWillMount=n;t.componentWillReceiveProps=a}if(typeof t.getSnapshotBeforeUpdate==="function"){if(typeof t.componentDidUpdate!=="function"){throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype")}t.componentWillUpdate=i;var c=t.componentDidUpdate;t.componentDidUpdate=function e(t,r,n){var a=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,t,r,a)}}return e}},function(e,t,r){"use strict";t.__esModule=true;t.classNamesShape=t.timeoutsShape=void 0;var n=a(r(0));function a(e){return e&&e.__esModule?e:{default:e}}var i=false?undefined:null;t.timeoutsShape=i;var o=false?undefined:null;t.classNamesShape=o},function(e,t,r){r(596);r(1001);e.exports=r(30).Array.from},function(e,t,r){"use strict";var n=r(999)(true);r(597)(String,"String",(function(e){this._t=String(e);this._i=0}),(function(){var e=this._t;var t=this._i;var r;if(t>=e.length)return{value:undefined,done:true};r=n(e,t);this._i+=r.length;return{value:r,done:false}}))},function(e,t,r){"use strict";var n=r(192);var a=r(42);var i=r(598);var o=r(129);var s=r(159);var u=r(1e3);var l=r(284);var c=r(599);var f=r(68)("iterator");var d=!([].keys&&"next"in[].keys());var p="@@iterator";var h="keys";var v="values";var m=function(){return this};e.exports=function(e,t,r,y,g,b,A){u(r,t,y);var _=function(e){if(!d&&e in k)return k[e];switch(e){case h:return function t(){return new r(this,e)};case v:return function t(){return new r(this,e)}}return function t(){return new r(this,e)}};var w=t+" Iterator";var E=g==v;var x=false;var k=e.prototype;var S=k[f]||k[p]||g&&k[g];var O=S||_(g);var M=g?!E?O:_("entries"):undefined;var D=t=="Array"?k.entries||S:S;var T,L,C;if(D){C=c(D.call(new e));if(C!==Object.prototype&&C.next){l(C,w,true);if(!n&&typeof C[f]!="function")o(C,f,m)}}if(E&&S&&S.name!==v){x=true;O=function e(){return S.call(this)}}if((!n||A)&&(d||x||!k[f])){o(k,f,O)}s[t]=O;s[w]=m;if(g){T={values:E?O:_(v),keys:b?O:_(h),entries:M};if(A)for(L in T){if(!(L in k))i(k,L,T[L])}else a(a.P+a.F*(d||x),t,T)}return T}},function(e,t,r){e.exports=r(129)},function(e,t,r){var n=r(109);var a=r(133);var i=r(278)("IE_PROTO");var o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){e=a(e);if(n(e,i))return e[i];if(typeof e.constructor=="function"&&e instanceof e.constructor){return e.constructor.prototype}return e instanceof Object?o:null}},function(e,t,r){"use strict";t.__esModule=true;t.default=function(e,t,r,n){(0,a.default)(e,t,r,n);return{remove:function a(){(0,o.default)(e,t,r,n)}}};var n=r(285);var a=s(n);var i=r(286);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=i;var a=n(r(602));function i(e,t){if(e.classList)e.classList.add(t);else if(!(0,a.default)(e,t))if(typeof e.className==="string")e.className=e.className+" "+t;else e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t)}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=n;function n(e,t){if(e.classList)return!!t&&e.classList.contains(t);else return(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}e.exports=t["default"]},function(e,t,r){"use strict";function n(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function e(t,r){if(t.classList)t.classList.remove(r);else if(typeof t.className==="string")t.className=n(t.className,r);else t.setAttribute("class",n(t.className&&t.className.baseVal||"",r))}},function(e,t,r){"use strict";t.__esModule=true;var n=r(0);var a=y(n);var i=r(194);var o=y(i);var s=r(1);var u=y(s);var l=r(18);var c=y(l);var f=r(196);var d=y(f);var p=r(134);var h=y(p);var v=r(1016);var m=y(v);function y(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function b(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function A(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var _=function(e){A(t,e);function t(){var r,n,a;g(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++){o[s]=arguments[s]}return a=(r=(n=b(this,e.call.apply(e,[this].concat(o))),n),n.setContainer=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:n.props;n._portalContainerNode=(0,d.default)(e.container,(0,h.default)(n).body)},n.getMountNode=function(){return n._portalContainerNode},r),b(n,a)}t.prototype.componentDidMount=function e(){this.setContainer();this.forceUpdate(this.props.onRendered)};t.prototype.componentWillReceiveProps=function e(t){if(t.container!==this.props.container){this.setContainer(t)}};t.prototype.componentWillUnmount=function e(){this._portalContainerNode=null};t.prototype.render=function e(){return this.props.children&&this._portalContainerNode?c.default.createPortal(this.props.children,this._portalContainerNode):null};return t}(u.default.Component);_.displayName="Portal";_.propTypes={container:a.default.oneOfType([o.default,a.default.func]),onRendered:a.default.func};t.default=c.default.createPortal?_:m.default;e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=s;var a=n(r(93));var i=n(r(195));var o=n(r(119));function s(e){var t=(0,o.default)(e),r=(0,i.default)(t),n=t&&t.documentElement,s={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,a.default)(n,e))return s;if(e.getBoundingClientRect!==undefined)s=e.getBoundingClientRect();s={top:s.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:s.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0),width:(s.width==null?e.offsetWidth:s.width)||0,height:(s.height==null?e.offsetHeight:s.height)||0};return s}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=i;var a=n(r(195));function i(e,t){var r=(0,a.default)(e);if(t===undefined)return r?"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop:e.scrollTop;if(r)r.scrollTo("pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft,t);else e.scrollTop=t}e.exports=t["default"]},function(e,t,r){var n=r(276);e.exports=Array.isArray||function e(t){return n(t)=="Array"}},function(e,t,r){(function(t){var r=typeof t=="object"&&t&&t.Object===Object&&t;e.exports=r}).call(this,r(25))},function(e,t,r){var n=r(1040),a=r(290),i=r(12),o=r(291),s=r(292),u=r(610);var l=Object.prototype;var c=l.hasOwnProperty;function f(e,t){var r=i(e),l=!r&&a(e),f=!r&&!l&&o(e),d=!r&&!l&&!f&&u(e),p=r||l||f||d,h=p?n(e.length,String):[],v=h.length;for(var m in e){if((t||c.call(e,m))&&!(p&&(m=="length"||f&&(m=="offset"||m=="parent")||d&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||s(m,v)))){h.push(m)}}return h}e.exports=f},function(e,t,r){var n=r(1043),a=r(160),i=r(294);var o=i&&i.isTypedArray;var s=o?a(o):n;e.exports=s},function(e,t){function r(e,t){return function(r){return e(t(r))}}e.exports=r},function(e,t,r){var n=r(137),a=r(52),i=r(624),o=r(12);function s(e,t){var r=o(e)?n:i;return r(e,a(t,3))}e.exports=s},function(e,t){var r=Function.prototype;var n=r.toString;function a(e){if(e!=null){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}e.exports=a},function(e,t,r){var n=r(301),a=r(615),i=r(302);var o=1,s=2;function u(e,t,r,u,l,c){var f=r&o,d=e.length,p=t.length;if(d!=p&&!(f&&p>d)){return false}var h=c.get(e);var v=c.get(t);if(h&&v){return h==t&&v==e}var m=-1,y=true,g=r&s?new n:undefined;c.set(e,t);c.set(t,e);while(++m<d){var b=e[m],A=t[m];if(u){var _=f?u(A,b,m,t,e,c):u(b,A,m,e,t,c)}if(_!==undefined){if(_){continue}y=false;break}if(g){if(!a(t,(function(e,t){if(!i(g,t)&&(b===e||l(b,e,r,u,c))){return g.push(t)}}))){y=false;break}}else if(!(b===A||l(b,A,r,u,c))){y=false;break}}c["delete"](e);c["delete"](t);return y}e.exports=u},function(e,t){function r(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)){return true}}return false}e.exports=r},function(e,t,r){var n=r(60);var a=n.Uint8Array;e.exports=a},function(e,t,r){var n=r(618),a=r(305),i=r(136);function o(e){return n(e,i,a)}e.exports=o},function(e,t,r){var n=r(304),a=r(12);function i(e,t,r){var i=t(e);return a(e)?i:n(i,r(e))}e.exports=i},function(e,t){function r(e,t){var r=-1,n=e==null?0:e.length,a=0,i=[];while(++r<n){var o=e[r];if(t(o,r,e)){i[a++]=o}}return i}e.exports=r},function(e,t){function r(){return[]}e.exports=r},function(e,t,r){var n=r(113),a=r(60);var i=n(a,"Set");e.exports=i},function(e,t,r){var n=r(27);function a(e){return e===e&&!n(e)}e.exports=a},function(e,t){function r(e,t){return function(r){if(r==null){return false}return r[e]===t&&(t!==undefined||e in Object(r))}}e.exports=r},function(e,t,r){var n=r(206),a=r(111);function i(e,t){var r=-1,i=a(e)?Array(e.length):[];n(e,(function(e,n,a){i[++r]=t(e,n,a)}));return i}e.exports=i},function(e,t,r){var n=r(297),a=r(1100),i=r(626),o=r(1101),s=r(1102),u=r(1105),l=r(1106),c=r(1107),f=r(1108),d=r(617),p=r(629),h=r(203),v=r(1109),m=r(1110),y=r(1115),g=r(12),b=r(291),A=r(1117),_=r(27),w=r(1119),E=r(136),x=r(308);var k=1,S=2,O=4;var M="[object Arguments]",D="[object Array]",T="[object Boolean]",L="[object Date]",C="[object Error]",j="[object Function]",N="[object GeneratorFunction]",I="[object Map]",P="[object Number]",R="[object Object]",F="[object RegExp]",Y="[object Set]",B="[object String]",H="[object Symbol]",U="[object WeakMap]";var z="[object ArrayBuffer]",q="[object DataView]",V="[object Float32Array]",W="[object Float64Array]",K="[object Int8Array]",G="[object Int16Array]",Q="[object Int32Array]",J="[object Uint8Array]",Z="[object Uint8ClampedArray]",X="[object Uint16Array]",$="[object Uint32Array]";var ee={};ee[M]=ee[D]=ee[z]=ee[q]=ee[T]=ee[L]=ee[V]=ee[W]=ee[K]=ee[G]=ee[Q]=ee[I]=ee[P]=ee[R]=ee[F]=ee[Y]=ee[B]=ee[H]=ee[J]=ee[Z]=ee[X]=ee[$]=true;ee[C]=ee[j]=ee[U]=false;function te(e,t,r,D,T,L){var C,I=t&k,P=t&S,F=t&O;if(r){C=T?r(e,D,T,L):r(e)}if(C!==undefined){return C}if(!_(e)){return e}var Y=g(e);if(Y){C=v(e);if(!I){return l(e,C)}}else{var B=h(e),H=B==j||B==N;if(b(e)){return u(e,I)}if(B==R||B==M||H&&!T){C=P||H?{}:y(e);if(!I){return P?f(e,s(C,e)):c(e,o(C,e))}}else{if(!ee[B]){return T?e:{}}C=m(e,B,I)}}L||(L=new n);var U=L.get(e);if(U){return U}L.set(e,C);if(w(e)){e.forEach((function(n){C.add(te(n,t,r,n,e,L))}))}else if(A(e)){e.forEach((function(n,a){C.set(a,te(n,t,r,a,e,L))}))}var z=F?P?p:d:P?x:E;var q=Y?undefined:z(e);a(q||e,(function(n,a){if(q){a=n;n=e[a]}i(C,a,te(n,t,r,a,e,L))}));return C}e.exports=te},function(e,t,r){var n=r(307),a=r(200);var i=Object.prototype;var o=i.hasOwnProperty;function s(e,t,r){var i=e[t];if(!(o.call(e,t)&&a(i,r))||r===undefined&&!(t in e)){n(e,t,r)}}e.exports=s},function(e,t,r){var n=r(113);var a=function(){try{var e=n(Object,"defineProperty");e({},"",{});return e}catch(e){}}();e.exports=a},function(e,t,r){var n=r(304),a=r(296),i=r(305),o=r(620);var s=Object.getOwnPropertySymbols;var u=!s?o:function(e){var t=[];while(e){n(t,i(e));e=a(e)}return t};e.exports=u},function(e,t,r){var n=r(618),a=r(628),i=r(308);function o(e){return n(e,i,a)}e.exports=o},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={show:false};r.showToolTip=r.showToolTip.bind(r);r.hideToolTip=r.hideToolTip.bind(r);return r}t.prototype.render=function(){return a.createElement("div",{className:"tool-tip-container",onMouseEnter:this.showToolTip,onMouseLeave:this.hideToolTip,role:"tooltip"},this.props.trigger,a.createElement("span",{className:"tool-tip "+(this.state.show?"":"hide")+" "+(this.props.direction?this.props.direction:""),dangerouslySetInnerHTML:{__html:this.props.text}}))};t.prototype.showToolTip=function(){this.setState({show:true})};t.prototype.hideToolTip=function(){this.setState({show:false})};return t}(a.Component);t.default=i},function(e,t,r){e.exports={default:r(1138),__esModule:true}},function(e,t,r){var n=r(582);var a=r(280).concat("length","prototype");t.f=Object.getOwnPropertyNames||function e(t){return n(t,a)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e,t){return function(r){return r<=t&&r>=e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.draggingDraggableSelector=t.dragSelector=t.pendingDropSelector=t.phaseSelector=undefined;var n=r(166);var a=t.phaseSelector=function e(t){return t.phase};var i=t.pendingDropSelector=function e(t){if(!t.drop||!t.drop.pending){return null}return t.drop.pending};var o=t.dragSelector=function e(t){return t.drag};var s=function e(t){return t.dimension.draggable};var u=t.draggingDraggableSelector=(0,n.createSelector)([a,o,i,s],(function(e,t,r,n){if(e==="DRAGGING"){if(!t){console.error("cannot get placeholder dimensions as there is an invalid drag state");return null}var a=n[t.current.id];return a}if(e==="DROP_ANIMATING"){if(!r){console.error("cannot get placeholder dimensions as there is an invalid drag state");return null}if(!r.result.destination){return null}var i=n[r.result.draggableId];return i}return null}))},function(e,t,r){"use strict";r.r(t);t["default"]=function(e){var t=[];var r=null;var n=function n(){for(var a=arguments.length,i=Array(a),o=0;o<a;o++){i[o]=arguments[o]}t=i;if(r){return r}r=requestAnimationFrame((function(){r=null;e.apply(undefined,t)}));return r};n.cancel=function(){if(!r){return}cancelAnimationFrame(r);r=null};var a=n;return a}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1187);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";t.__esModule=true;t["default"]={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}};e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.css=t.physics=undefined;var n=r(116);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}var o=t.physics=function(){var e={stiffness:1e3,damping:60,precision:.99};var t=(0,a.default)({},e);var r=(0,a.default)({},e,{stiffness:e.stiffness*2});return{standard:t,fast:r}}();var s=t.css={outOfTheWay:"transform 0.2s cubic-bezier(0.2, 0, 0, 1)"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=t.sloppyClickThreshold=5;t.default=function(e,t){return Math.abs(t.x-e.x)>=n||Math.abs(t.y-e.y)>=n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(326);var a=u(n);var i=r(209);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}var l=[a.enter,a.tab];t.default=function(e){if(l.indexOf(e.keyCode)>=0){(0,o.default)(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e){var t=e.getBoundingClientRect(),r=t.top,n=t.right,a=t.bottom,i=t.left;var o=(i+n)/2;var s=(r+a)/2;return{x:o,y:s}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 50 50","aria-hidden":"true"},n.createElement("path",{d:"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"},n.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"0.6s",repeatCount:"indefinite"})))};t.default=a},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return A}));var n=r(98);var a=r.n(n);var i=r(1);var o=r.n(i);var s=r(1397);var u=r(220);var l=["children"];function c(e,t){return v(e)||h(e,t)||d(e,t)||f()}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){if(!e)return;if(typeof e==="string")return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}function p(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function h(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function v(e){if(Array.isArray(e))return e}function m(e,t){if(e==null)return{};var r=y(e,t);var n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++){n=i[a];if(t.indexOf(n)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,n))continue;r[n]=e[n]}}return r}function y(e,t){if(e==null)return{};var r={};var n=Object.keys(e);var a,i;for(i=0;i<n.length;i++){a=n[i];if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}var g=0;var b=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var A=Object(i["memo"])((function e(t){var r=t.children,a=m(t,l);var o=_(a),s=c(o,2),f=s[0],d=s[1];Object(i["useEffect"])((function(){if(d){var e=E();++g;return function(){if(--g===0){e[b]=null}}}}),[]);return Object(n["jsx"])(u["a"].Provider,Object.assign({value:f},{children:r}),void 0)}));function _(e){if("manager"in e){var t={dragDropManager:e.manager};return[t,false]}var r=w(e.backend,e.context,e.options,e.debugMode);var n=!e.context;return[r,n]}function w(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:E();var r=arguments.length>2?arguments[2]:undefined;var n=arguments.length>3?arguments[3]:undefined;var a=t;if(!a[b]){a[b]={dragDropManager:Object(s["a"])(e,t,r,n)}}return a[b]}function E(){return typeof e!=="undefined"?e:window}}).call(this,r(25))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1217);class a{enqueueTask(e){const{queue:t,requestFlush:r}=this;if(!t.length){r();this.flushing=true}t[t.length]=e}constructor(){this.queue=[];this.pendingErrors=[];this.flushing=false;this.index=0;this.capacity=1024;this.flush=()=>{const{queue:e}=this;while(this.index<e.length){const t=this.index;this.index++;e[t].call();if(this.index>this.capacity){for(let t=0,r=e.length-this.index;t<r;t++){e[t]=e[t+this.index]}e.length-=this.index;this.index=0}}e.length=0;this.index=0;this.flushing=false};this.registerPendingError=e=>{this.pendingErrors.push(e);this.requestErrorThrow()};this.requestFlush=(0,n).makeRequestCall(this.flush);this.requestErrorThrow=(0,n).makeRequestCallFromTimer(()=>{if(this.pendingErrors.length){throw this.pendingErrors.shift()}})}}t.AsapQueue=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1218);class a{create(e){const t=this.freeTasks;const r=t.length?t.pop():new n.RawTask(this.onError,e=>t[t.length]=e);r.task=e;return r}constructor(e){this.onError=e;this.freeTasks=[]}}t.TaskFactory=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=r(1222);var i=r(1223);function o(e){var t=e.query,r=e.readOnly,o=e.selectedQueryId,s=e.onBooleanChange,u=e.onMove,l=e.onSelect,c=e.onRemove;if(t){if(t.and||t.or){return n.createElement(a.default,{query:t,readOnly:r,selectedQueryId:o,onBooleanChange:s,onMove:u,onSelect:l,onRemove:c})}return n.createElement(i.default,{query:t,readOnly:r,selected:t.id===o,onMove:u,onSelect:l,onRemove:c})}return n.createElement("span",null,"No filters configured.")}t.default=o},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(19);var o=r(212);var s=r(13);var u=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.textRef=a.createRef();r.state={text:r.props.text||"",editMode:!r.props.text};r.updateText=r.updateText.bind(r);r.startEditMode=r.startEditMode.bind(r);r.reset=r.reset.bind(r);return r}t.prototype.render=function(){var e=this;return a.createElement("div",null,this.state.editMode&&a.createElement("h3",null,a.createElement(i.default,{type:"text",placeholder:this.props.placeholder,value:this.state.text,optionalText:false,ref:this.textRef,"aria-label":this.props["aria-label"],onChange:function(t){return e.setText(t)}}),a.createElement(s.Button,{className:"inverted inline",callback:this.updateText,content:"Save "+this.props.placeholder,disabled:this.props.disableIfBlank&&!this.state.text.length})),!this.state.editMode&&a.createElement("h3",null,this.state.text,a.createElement(s.Button,{callback:this.startEditMode,className:"inverted inline",content:a.createElement("span",null,"Edit ",this.props.placeholder," ",a.createElement(o.default,null))})))};t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(e.text!==this.props.text){this.setState({text:e.text,editMode:!e.text})}};t.prototype.setText=function(e){this.setState({text:e})};t.prototype.updateText=function(){var e=this.textRef.current.getValue();this.setState({text:e,editMode:false});if(this.props.onUpdate){this.props.onUpdate(e)}};t.prototype.startEditMode=function(){this.setState({text:this.state.text,editMode:true})};t.prototype.getText=function(){if(this.state.editMode){var e=this.textRef.current.getValue();this.updateText();return e}else{return this.state.text}};t.prototype.reset=function(){this.setState({text:this.props.text,editMode:!this.props.text});if(this.props.onUpdate){this.props.onUpdate(this.props.text)}};return t}(a.Component);t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"68",height:"57.88234",viewBox:"0 0 68 57.88234","aria-hidden":"true"},n.createElement("title",null,"Hidden Icon"),n.createElement("path",{d:"M54.20147,13.85528l7.67984-7.67984a3.61726,3.61726,0,1,0-5.11558-5.11558L47.12957,10.696A40.31406,40.31406,0,0,0,34,8.44117c-18.77773,0-34,14-34,20.5C0,32.82209,5.42875,39.375,13.79853,44.02706L6.11869,51.7069a3.61726,3.61726,0,1,0,5.11558,5.11558l9.63616-9.63616A40.31406,40.31406,0,0,0,34,49.44116c18.77773,0,34-14,34-20.5C68,25.06025,62.57125,18.50732,54.20147,13.85528ZM19.791,28.94117a14.10561,14.10561,0,0,1,14.209-14,14.28974,14.28974,0,0,1,7.03672,1.84768l-4.55106,4.55106a7.99259,7.99259,0,0,0-10.0869,10.0869L21.775,36.0506A13.75949,13.75949,0,0,1,19.791,28.94117Zm14.209,14a14.28974,14.28974,0,0,1-7.03672-1.84768l4.55106-4.55106a7.99259,7.99259,0,0,0,10.0869-10.0869l4.62385-4.62385A13.75969,13.75969,0,0,1,48.209,28.94117,14.10566,14.10566,0,0,1,34,42.94115Z"}))};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"40.84054",viewBox:"0 0 48 40.84054","aria-hidden":"true"},n.createElement("title",null,"Reset Icon"),n.createElement("path",{d:"M14.30581,12.04054,25.36758,4.37413A2.4,2.4,0,0,0,22.63242.4296L2.25352,14.553,23.45977,29.54835a2.39954,2.39954,0,1,0,2.77031-3.91875L13.80146,16.84054H43.2v19.2H2.4a2.4,2.4,0,1,0,0,4.8H48v-28.8Z"}))};t.default=a},function(e,t,r){var n=r(329);var a=r(653);e.exports=r(141)?function(e,t,r){return n.f(e,t,a(1,r))}:function(e,t,r){e[t]=r;return e}},function(e,t,r){e.exports=!r(141)&&!r(90)((function(){return Object.defineProperty(r(652)("div"),"a",{get:function(){return 7}}).a!=7}))},function(e,t,r){var n=r(140);var a=r(78).document;var i=n(a)&&n(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t){e.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}},function(e,t,r){var n=r(78);var a=r(650);var i=r(215);var o=r(655)("src");var s=r(1239);var u="toString";var l=(""+s).split(u);r(167).inspectSource=function(e){return s.call(e)};(e.exports=function(e,t,r,s){var u=typeof r=="function";if(u)i(r,"name")||a(r,"name",t);if(e[t]===r)return;if(u)i(r,o)||a(r,o,e[t]?""+e[t]:l.join(String(t)));if(e===n){e[t]=r}else if(!s){delete e[t];a(e,t,r)}else if(e[t]){e[t]=r}else{a(e,t,r)}})(Function.prototype,u,(function e(){return typeof this=="function"&&this[o]||s.call(this)}))},function(e,t){var r=0;var n=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++r+n).toString(36))}},function(e,t,r){var n=r(167);var a=r(78);var i="__core-js_shared__";var o=a[i]||(a[i]={});(e.exports=function(e,t){return o[e]||(o[e]=t!==undefined?t:{})})("versions",[]).push({version:n.version,mode:r(1240)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(1241);e.exports=function(e,t,r){n(e);if(t===undefined)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=Math.log1p||function e(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(e,t,r){var n=r(1263);var a=r(653);var i=r(334);var o=r(330);var s=r(215);var u=r(651);var l=Object.getOwnPropertyDescriptor;t.f=r(141)?l:function e(t,r){t=i(t);r=o(r,true);if(u)try{return l(t,r)}catch(e){}if(s(t,r))return a(!n.f.call(t,r),t[r])}},function(e,t,r){var n=r(215);var a=r(334);var i=r(1266)(false);var o=r(661)("IE_PROTO");e.exports=function(e,t){var r=a(e);var s=0;var u=[];var l;for(l in r)if(l!=o)n(r,l)&&u.push(l);while(t.length>s)if(n(r,l=t[s++])){~i(u,l)||u.push(l)}return u}},function(e,t,r){var n=r(656)("keys");var a=r(655);e.exports=function(e){return n[e]||(n[e]=a(e))}},function(e,t,r){var n=r(333);e.exports=function(e,t){if(typeof e!="number"&&n(e)!="Number")throw TypeError(t);return+e}},function(e,t,r){var n=r(140);var a=Math.floor;e.exports=function e(t){return!n(t)&&isFinite(t)&&a(t)===t}},function(e,t,r){var n=r(1288);function a(e,t){var r=e==null?0:e.length;return!!r&&n(e,t,0)>-1}e.exports=a},function(e,t){function r(e,t,r,n){var a=e.length,i=r+(n?1:-1);while(n?i--:++i<a){if(t(e[i],i,e)){return i}}return-1}e.exports=r},function(e,t){function r(e,t,r){var n=-1,a=e==null?0:e.length;while(++n<a){if(r(t,e[n])){return true}}return false}e.exports=r},function(e,t,r){var n=r(112),a=r(668),i=r(669);function o(e,t){return i(a(e,t,n),e+"")}e.exports=o},function(e,t,r){var n=r(1294);var a=Math.max;function i(e,t,r){t=a(t===undefined?e.length-1:t,0);return function(){var i=arguments,o=-1,s=a(i.length-t,0),u=Array(s);while(++o<s){u[o]=i[t+o]}o=-1;var l=Array(t+1);while(++o<t){l[o]=i[o]}l[t]=r(u);return n(e,this,l)}}e.exports=i},function(e,t,r){var n=r(1295),a=r(1297);var i=a(n);e.exports=i},function(e,t,r){"use strict";t.__esModule=true;t.default=void 0;var n=s(r(0));var a=s(r(1));var i=r(593);var o=r(1303);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(e==null)return{};var r={};var n=Object.keys(e);var a,i;for(i=0;i<n.length;i++){a=n[i];if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function l(){l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};return l.apply(this,arguments)}function c(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}function f(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}var d=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))};var p={component:"div",childFactory:function e(t){return t}};var h=function(e){c(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;var a=n.handleExited.bind(f(f(n)));n.state={handleExited:a,firstRender:true};return n}var r=t.prototype;r.getChildContext=function e(){return{transitionGroup:{isMounting:!this.appeared}}};r.componentDidMount=function e(){this.appeared=true;this.mounted=true};r.componentWillUnmount=function e(){this.mounted=false};t.getDerivedStateFromProps=function e(t,r){var n=r.children,a=r.handleExited,i=r.firstRender;return{children:i?(0,o.getInitialChildMapping)(t,a):(0,o.getNextChildMapping)(t,n,a),firstRender:false}};r.handleExited=function e(t,r){var n=(0,o.getChildMapping)(this.props.children);if(t.key in n)return;if(t.props.onExited){t.props.onExited(r)}if(this.mounted){this.setState((function(e){var r=l({},e.children);delete r[t.key];return{children:r}}))}};r.render=function e(){var t=this.props,r=t.component,n=t.childFactory,i=u(t,["component","childFactory"]);var o=d(this.state.children).map(n);delete i.appear;delete i.enter;delete i.exit;if(r===null){return o}return a.default.createElement(r,i,o)};return t}(a.default.Component);h.childContextTypes={transitionGroup:n.default.object.isRequired};h.propTypes=false?undefined:{};h.defaultProps=p;var v=(0,i.polyfill)(h);t.default=v;e.exports=t["default"]},function(e,t,r){var n=r(27),a=r(138);var i=0/0;var o=/^\s+|\s+$/g;var s=/^[-+]0x[0-9a-f]+$/i;var u=/^0b[01]+$/i;var l=/^0o[0-7]+$/i;var c=parseInt;function f(e){if(typeof e=="number"){return e}if(a(e)){return i}if(n(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=n(t)?t+"":t}if(typeof e!="string"){return e===0?e:+e}e=e.replace(o,"");var r=u.test(e);return r||l.test(e)?c(e.slice(2),r?2:8):s.test(e)?i:+e}e.exports=f},function(e,t){function r(e,t){return e>t}e.exports=r},function(e,t){function r(e,t){return e<t}e.exports=r},function(e,t,r){var n;/*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE */(function(a){"use strict";var i=1e9,o={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},s=true,u="[DecimalError] ",l=u+"Invalid argument: ",c=u+"Exponent out of range: ",f=Math.floor,d=Math.pow,p=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,h,v=1e7,m=7,y=9007199254740991,g=f(y/m),b={};b.absoluteValue=b.abs=function(){var e=new this.constructor(this);if(e.s)e.s=1;return e};b.comparedTo=b.cmp=function(e){var t,r,n,a,i=this;e=new i.constructor(e);if(i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;n=i.d.length;a=e.d.length;for(t=0,r=n<a?n:a;t<r;++t){if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1}return n===a?0:n>a^i.s<0?1:-1};b.decimalPlaces=b.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*m;t=e.d[t];if(t)for(;t%10==0;t/=10)r--;return r<0?0:r};b.dividedBy=b.div=function(e){return E(this,new this.constructor(e))};b.dividedToIntegerBy=b.idiv=function(e){var t=this,r=t.constructor;return T(E(t,new r(e),0,1),r.precision)};b.equals=b.eq=function(e){return!this.cmp(e)};b.exponent=function(){return k(this)};b.greaterThan=b.gt=function(e){return this.cmp(e)>0};b.greaterThanOrEqualTo=b.gte=function(e){return this.cmp(e)>=0};b.isInteger=b.isint=function(){return this.e>this.d.length-2};b.isNegative=b.isneg=function(){return this.s<0};b.isPositive=b.ispos=function(){return this.s>0};b.isZero=function(){return this.s===0};b.lessThan=b.lt=function(e){return this.cmp(e)<0};b.lessThanOrEqualTo=b.lte=function(e){return this.cmp(e)<1};b.logarithm=b.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(e===void 0){e=new n(10)}else{e=new n(e);if(e.s<1||e.eq(h))throw Error(u+"NaN")}if(r.s<1)throw Error(u+(r.s?"NaN":"-Infinity"));if(r.eq(h))return new n(0);s=false;t=E(M(r,i),M(e,i),i);s=true;return T(t,a)};b.minus=b.sub=function(e){var t=this;e=new t.constructor(e);return t.s==e.s?L(t,e):A(t,(e.s=-e.s,e))};b.modulo=b.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;e=new n(e);if(!e.s)throw Error(u+"NaN");if(!r.s)return T(new n(r),a);s=false;t=E(r,e,0,1).times(e);s=true;return r.minus(t)};b.naturalExponential=b.exp=function(){return x(this)};b.naturalLogarithm=b.ln=function(){return M(this)};b.negated=b.neg=function(){var e=new this.constructor(this);e.s=-e.s||0;return e};b.plus=b.add=function(e){var t=this;e=new t.constructor(e);return t.s==e.s?A(t,e):L(t,(e.s=-e.s,e))};b.precision=b.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(l+e);t=k(a)+1;n=a.d.length-1;r=n*m+1;n=a.d[n];if(n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};b.squareRoot=b.sqrt=function(){var e,t,r,n,a,i,o,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error(u+"NaN")}e=k(l);s=false;a=Math.sqrt(+l);if(a==0||a==1/0){t=w(l.d);if((t.length+e)%2==0)t+="0";a=Math.sqrt(t);e=f((e+1)/2)-(e<0||e%2);if(a==1/0){t="5e"+e}else{t=a.toExponential();t=t.slice(0,t.indexOf("e")+1)+e}n=new c(t)}else{n=new c(a.toString())}r=c.precision;a=o=r+3;for(;;){i=n;n=i.plus(E(l,i,o+2)).times(.5);if(w(i.d).slice(0,o)===(t=w(n.d)).slice(0,o)){t=t.slice(o-3,o+1);if(a==o&&t=="4999"){T(i,r+1,0);if(i.times(i).eq(l)){n=i;break}}else if(t!="9999"){break}o+=4}}s=true;return T(n,r)};b.times=b.mul=function(e){var t,r,n,a,i,o,u,l,c,f=this,d=f.constructor,p=f.d,h=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);e.s*=f.s;r=f.e+e.e;l=p.length;c=h.length;if(l<c){i=p;p=h;h=i;o=l;l=c;c=o}i=[];o=l+c;for(n=o;n--;)i.push(0);for(n=c;--n>=0;){t=0;for(a=l+n;a>n;){u=i[a]+h[n]*p[a-n-1]+t;i[a--]=u%v|0;t=u/v|0}i[a]=(i[a]+t)%v|0}for(;!i[--o];)i.pop();if(t)++r;else i.shift();e.d=i;e.e=r;return s?T(e,d.precision):e};b.toDecimalPlaces=b.todp=function(e,t){var r=this,n=r.constructor;r=new n(r);if(e===void 0)return r;_(e,0,i);if(t===void 0)t=n.rounding;else _(t,0,8);return T(r,e+k(r)+1,t)};b.toExponential=function(e,t){var r,n=this,a=n.constructor;if(e===void 0){r=C(n,true)}else{_(e,0,i);if(t===void 0)t=a.rounding;else _(t,0,8);n=T(new a(n),e+1,t);r=C(n,true,e+1)}return r};b.toFixed=function(e,t){var r,n,a=this,o=a.constructor;if(e===void 0)return C(a);_(e,0,i);if(t===void 0)t=o.rounding;else _(t,0,8);n=T(new o(a),e+k(a)+1,t);r=C(n.abs(),false,e+k(n)+1);return a.isneg()&&!a.isZero()?"-"+r:r};b.toInteger=b.toint=function(){var e=this,t=e.constructor;return T(new t(e),k(e)+1,t.rounding)};b.toNumber=function(){return+this};b.toPower=b.pow=function(e){var t,r,n,a,i,o,l=this,c=l.constructor,d=12,p=+(e=new c(e));if(!e.s)return new c(h);l=new c(l);if(!l.s){if(e.s<1)throw Error(u+"Infinity");return l}if(l.eq(h))return l;n=c.precision;if(e.eq(h))return T(l,n);t=e.e;r=e.d.length-1;o=t>=r;i=l.s;if(!o){if(i<0)throw Error(u+"NaN")}else if((r=p<0?-p:p)<=y){a=new c(h);t=Math.ceil(n/m+4);s=false;for(;;){if(r%2){a=a.times(l);j(a.d,t)}r=f(r/2);if(r===0)break;l=l.times(l);j(l.d,t)}s=true;return e.s<0?new c(h).div(a):T(a,n)}i=i<0&&e.d[Math.max(t,r)]&1?-1:1;l.s=1;s=false;a=e.times(M(l,n+d));s=true;a=x(a);a.s=i;return a};b.toPrecision=function(e,t){var r,n,a=this,o=a.constructor;if(e===void 0){r=k(a);n=C(a,r<=o.toExpNeg||r>=o.toExpPos)}else{_(e,1,i);if(t===void 0)t=o.rounding;else _(t,0,8);a=T(new o(a),e,t);r=k(a);n=C(a,e<=r||r<=o.toExpNeg,e)}return n};b.toSignificantDigits=b.tosd=function(e,t){var r=this,n=r.constructor;if(e===void 0){e=n.precision;t=n.rounding}else{_(e,1,i);if(t===void 0)t=n.rounding;else _(t,0,8)}return T(new n(r),e,t)};b.toString=b.valueOf=b.val=b.toJSON=function(){var e=this,t=k(e),r=e.constructor;return C(e,t<=r.toExpNeg||t>=r.toExpPos)};function A(e,t){var r,n,a,i,o,u,l,c,f=e.constructor,d=f.precision;if(!e.s||!t.s){if(!t.s)t=new f(e);return s?T(t,d):t}l=e.d;c=t.d;o=e.e;a=t.e;l=l.slice();i=o-a;if(i){if(i<0){n=l;i=-i;u=c.length}else{n=c;a=o;u=l.length}o=Math.ceil(d/m);u=o>u?o+1:u+1;if(i>u){i=u;n.length=1}n.reverse();for(;i--;)n.push(0);n.reverse()}u=l.length;i=c.length;if(u-i<0){i=u;n=c;c=l;l=n}for(r=0;i;){r=(l[--i]=l[i]+c[i]+r)/v|0;l[i]%=v}if(r){l.unshift(r);++a}for(u=l.length;l[--u]==0;)l.pop();t.d=l;t.e=a;return s?T(t,d):t}function _(e,t,r){if(e!==~~e||e<t||e>r){throw Error(l+e)}}function w(e){var t,r,n,a=e.length-1,i="",o=e[0];if(a>0){i+=o;for(t=1;t<a;t++){n=e[t]+"";r=m-n.length;if(r)i+=O(r);i+=n}o=e[t];n=o+"";r=m-n.length;if(r)i+=O(r)}else if(o===0){return"0"}for(;o%10===0;)o/=10;return i+o}var E=function(){function e(e,t){var r,n=0,a=e.length;for(e=e.slice();a--;){r=e[a]*t+n;e[a]=r%v|0;n=r/v|0}if(n)e.unshift(n);return e}function t(e,t,r,n){var a,i;if(r!=n){i=r>n?1:-1}else{for(a=i=0;a<r;a++){if(e[a]!=t[a]){i=e[a]>t[a]?1:-1;break}}}return i}function r(e,t,r){var n=0;for(;r--;){e[r]-=n;n=e[r]<t[r]?1:0;e[r]=n*v+e[r]-t[r]}for(;!e[0]&&e.length>1;)e.shift()}return function(n,a,i,o){var s,l,c,f,d,p,h,y,g,b,A,_,w,E,x,S,O,M,D=n.constructor,L=n.s==a.s?1:-1,C=n.d,j=a.d;if(!n.s)return new D(n);if(!a.s)throw Error(u+"Division by zero");l=n.e-a.e;O=j.length;x=C.length;h=new D(L);y=h.d=[];for(c=0;j[c]==(C[c]||0);)++c;if(j[c]>(C[c]||0))--l;if(i==null){_=i=D.precision}else if(o){_=i+(k(n)-k(a))+1}else{_=i}if(_<0)return new D(0);_=_/m+2|0;c=0;if(O==1){f=0;j=j[0];_++;for(;(c<x||f)&&_--;c++){w=f*v+(C[c]||0);y[c]=w/j|0;f=w%j|0}}else{f=v/(j[0]+1)|0;if(f>1){j=e(j,f);C=e(C,f);O=j.length;x=C.length}E=O;g=C.slice(0,O);b=g.length;for(;b<O;)g[b++]=0;M=j.slice();M.unshift(0);S=j[0];if(j[1]>=v/2)++S;do{f=0;s=t(j,g,O,b);if(s<0){A=g[0];if(O!=b)A=A*v+(g[1]||0);f=A/S|0;if(f>1){if(f>=v)f=v-1;d=e(j,f);p=d.length;b=g.length;s=t(d,g,p,b);if(s==1){f--;r(d,O<p?M:j,p)}}else{if(f==0)s=f=1;d=j.slice()}p=d.length;if(p<b)d.unshift(0);r(g,d,b);if(s==-1){b=g.length;s=t(j,g,O,b);if(s<1){f++;r(g,O<b?M:j,b)}}b=g.length}else if(s===0){f++;g=[0]}y[c++]=f;if(s&&g[0]){g[b++]=C[E]||0}else{g=[C[E]];b=1}}while((E++<x||g[0]!==void 0)&&_--)}if(!y[0])y.shift();h.e=l;return T(h,o?i+k(h)+1:i)}}();function x(e,t){var r,n,a,i,o,u,l=0,f=0,p=e.constructor,v=p.precision;if(k(e)>16)throw Error(c+k(e));if(!e.s)return new p(h);if(t==null){s=false;u=v}else{u=t}o=new p(.03125);while(e.abs().gte(.1)){e=e.times(o);f+=5}n=Math.log(d(2,f))/Math.LN10*2+5|0;u+=n;r=a=i=new p(h);p.precision=u;for(;;){a=T(a.times(e),u);r=r.times(++l);o=i.plus(E(a,r,u));if(w(o.d).slice(0,u)===w(i.d).slice(0,u)){while(f--)i=T(i.times(i),u);p.precision=v;return t==null?(s=true,T(i,v)):i}i=o}}function k(e){var t=e.e*m,r=e.d[0];for(;r>=10;r/=10)t++;return t}function S(e,t,r){if(t>e.LN10.sd()){s=true;if(r)e.precision=r;throw Error(u+"LN10 precision limit exceeded")}return T(new e(e.LN10),t)}function O(e){var t="";for(;e--;)t+="0";return t}function M(e,t){var r,n,a,i,o,l,c,f,d,p=1,v=10,m=e,y=m.d,g=m.constructor,b=g.precision;if(m.s<1)throw Error(u+(m.s?"NaN":"-Infinity"));if(m.eq(h))return new g(0);if(t==null){s=false;f=b}else{f=t}if(m.eq(10)){if(t==null)s=true;return S(g,f)}f+=v;g.precision=f;r=w(y);n=r.charAt(0);i=k(m);if(Math.abs(i)<15e14){while(n<7&&n!=1||n==1&&r.charAt(1)>3){m=m.times(e);r=w(m.d);n=r.charAt(0);p++}i=k(m);if(n>1){m=new g("0."+r);i++}else{m=new g(n+"."+r.slice(1))}}else{c=S(g,f+2,b).times(i+"");m=M(new g(n+"."+r.slice(1)),f-v).plus(c);g.precision=b;return t==null?(s=true,T(m,b)):m}l=o=m=E(m.minus(h),m.plus(h),f);d=T(m.times(m),f);a=3;for(;;){o=T(o.times(d),f);c=l.plus(E(o,new g(a),f));if(w(c.d).slice(0,f)===w(l.d).slice(0,f)){l=l.times(2);if(i!==0)l=l.plus(S(g,f+2,b).times(i+""));l=E(l,new g(p),f);g.precision=b;return t==null?(s=true,T(l,b)):l}l=c;a+=2}}function D(e,t){var r,n,a;if((r=t.indexOf("."))>-1)t=t.replace(".","");if((n=t.search(/e/i))>0){if(r<0)r=n;r+=+t.slice(n+1);t=t.substring(0,n)}else if(r<0){r=t.length}for(n=0;t.charCodeAt(n)===48;)++n;for(a=t.length;t.charCodeAt(a-1)===48;)--a;t=t.slice(n,a);if(t){a-=n;r=r-n-1;e.e=f(r/m);e.d=[];n=(r+1)%m;if(r<0)n+=m;if(n<a){if(n)e.d.push(+t.slice(0,n));for(a-=m;n<a;)e.d.push(+t.slice(n,n+=m));t=t.slice(n);n=m-t.length}else{n-=a}for(;n--;)t+="0";e.d.push(+t);if(s&&(e.e>g||e.e<-g))throw Error(c+r)}else{e.s=0;e.e=0;e.d=[0]}return e}function T(e,t,r){var n,a,i,o,u,l,p,h,y=e.d;for(o=1,i=y[0];i>=10;i/=10)o++;n=t-o;if(n<0){n+=m;a=t;p=y[h=0]}else{h=Math.ceil((n+1)/m);i=y.length;if(h>=i)return e;p=i=y[h];for(o=1;i>=10;i/=10)o++;n%=m;a=n-m+o}if(r!==void 0){i=d(10,o-a-1);u=p/i%10|0;l=t<0||y[h+1]!==void 0||p%i;l=r<4?(u||l)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||l||r==6&&(n>0?a>0?p/d(10,o-a):0:y[h-1])%10&1||r==(e.s<0?8:7))}if(t<1||!y[0]){if(l){i=k(e);y.length=1;t=t-i-1;y[0]=d(10,(m-t%m)%m);e.e=f(-t/m)||0}else{y.length=1;y[0]=e.e=e.s=0}return e}if(n==0){y.length=h;i=1;h--}else{y.length=h+1;i=d(10,m-n);y[h]=a>0?(p/d(10,o-a)%d(10,a)|0)*i:0}if(l){for(;;){if(h==0){if((y[0]+=i)==v){y[0]=1;++e.e}break}else{y[h]+=i;if(y[h]!=v)break;y[h--]=0;i=1}}}for(n=y.length;y[--n]===0;)y.pop();if(s&&(e.e>g||e.e<-g)){throw Error(c+k(e))}return e}function L(e,t){var r,n,a,i,o,u,l,c,f,d,p=e.constructor,h=p.precision;if(!e.s||!t.s){if(t.s)t.s=-t.s;else t=new p(e);return s?T(t,h):t}l=e.d;d=t.d;n=t.e;c=e.e;l=l.slice();o=c-n;if(o){f=o<0;if(f){r=l;o=-o;u=d.length}else{r=d;n=c;u=l.length}a=Math.max(Math.ceil(h/m),u)+2;if(o>a){o=a;r.length=1}r.reverse();for(a=o;a--;)r.push(0);r.reverse()}else{a=l.length;u=d.length;f=a<u;if(f)u=a;for(a=0;a<u;a++){if(l[a]!=d[a]){f=l[a]<d[a];break}}o=0}if(f){r=l;l=d;d=r;t.s=-t.s}u=l.length;for(a=d.length-u;a>0;--a)l[u++]=0;for(a=d.length;a>o;){if(l[--a]<d[a]){for(i=a;i&&l[--i]===0;)l[i]=v-1;--l[i];l[a]+=v}l[a]-=d[a]}for(;l[--u]===0;)l.pop();for(;l[0]===0;l.shift())--n;if(!l[0])return new p(0);t.d=l;t.e=n;return s?T(t,h):t}function C(e,t,r){var n,a=k(e),i=w(e.d),o=i.length;if(t){if(r&&(n=r-o)>0){i=i.charAt(0)+"."+i.slice(1)+O(n)}else if(o>1){i=i.charAt(0)+"."+i.slice(1)}i=i+(a<0?"e":"e+")+a}else if(a<0){i="0."+O(-a-1)+i;if(r&&(n=r-o)>0)i+=O(n)}else if(a>=o){i+=O(a+1-o);if(r&&(n=r-a-1)>0)i=i+"."+O(n)}else{if((n=a+1)<o)i=i.slice(0,n)+"."+i.slice(n);if(r&&(n=r-o)>0){if(a+1===o)i+=".";i+=O(n)}}return e.s<0?"-"+i:i}function j(e,t){if(e.length>t){e.length=t;return true}}function N(e){var t,r,n;function a(e){var t=this;if(!(t instanceof a))return new a(e);t.constructor=a;if(e instanceof a){t.s=e.s;t.e=e.e;t.d=(e=e.d)?e.slice():e;return}if(typeof e==="number"){if(e*0!==0){throw Error(l+e)}if(e>0){t.s=1}else if(e<0){e=-e;t.s=-1}else{t.s=0;t.e=0;t.d=[0];return}if(e===~~e&&e<1e7){t.e=0;t.d=[e];return}return D(t,e.toString())}else if(typeof e!=="string"){throw Error(l+e)}if(e.charCodeAt(0)===45){e=e.slice(1);t.s=-1}else{t.s=1}if(p.test(e))D(t,e);else throw Error(l+e)}a.prototype=b;a.ROUND_UP=0;a.ROUND_DOWN=1;a.ROUND_CEIL=2;a.ROUND_FLOOR=3;a.ROUND_HALF_UP=4;a.ROUND_HALF_DOWN=5;a.ROUND_HALF_EVEN=6;a.ROUND_HALF_CEIL=7;a.ROUND_HALF_FLOOR=8;a.clone=N;a.config=a.set=I;if(e===void 0)e={};if(e){n=["precision","rounding","toExpNeg","toExpPos","LN10"];for(t=0;t<n.length;)if(!e.hasOwnProperty(r=n[t++]))e[r]=this[r]}a.config(e);return a}function I(e){if(!e||typeof e!=="object"){throw Error(u+"Object expected")}var t,r,n,a=["precision",1,i,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3){if((n=e[r=a[t]])!==void 0){if(f(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(l+r+": "+n)}}if((n=e[r="LN10"])!==void 0){if(n==Math.LN10)this[r]=new this(n);else throw Error(l+r+": "+n)}return this}o=N(o);o["default"]=o.Decimal=o;h=new o(1);if(true){!(n=function(){return o}.call(t,r,t,e),n!==undefined&&(e.exports=n))}else{}})(this)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=t.reverse=t.compose=t.map=t.range=t.curry=t.PLACE_HOLDER=void 0;function n(e){return o(e)||i(e)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function i(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function o(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++){r[t]=e[t]}return r}}var s=function e(t){return t};var u={"@@functional/placeholder":true};t.PLACE_HOLDER=u;var l=function e(t){return t===u};var c=function e(t){return function e(){if(arguments.length===0||arguments.length===1&&l(arguments.length<=0?undefined:arguments[0])){return e}return t.apply(void 0,arguments)}};var f=function e(t,r){if(t===1){return r}return c((function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++){i[o]=arguments[o]}var s=i.filter((function(e){return e!==u})).length;if(s>=t){return r.apply(void 0,i)}return e(t-s,c((function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++){t[a]=arguments[a]}var o=i.map((function(e){return l(e)?t.shift():e}));return r.apply(void 0,n(o).concat(t))})))}))};var d=function e(t){return f(t.length,t)};t.curry=d;var p=function e(t,r){var n=[];for(var a=t;a<r;++a){n[a-t]=a}return n};t.range=p;var h=d((function(e,t){if(Array.isArray(t)){return t.map(e)}return Object.keys(t).map((function(e){return t[e]})).map(e)}));t.map=h;var v=function e(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++){r[n]=arguments[n]}if(!r.length){return s}var a=r.reverse();var i=a[0];var o=a.slice(1);return function(){return o.reduce((function(e,t){return t(e)}),i.apply(void 0,arguments))}};t.compose=v;var m=function e(t){if(Array.isArray(t)){return t.reverse()}return t.split("").reverse.join("")};t.reverse=m;var y=function e(t){var r=null;var n=null;return function(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++){a[i]=arguments[i]}if(r&&a.every((function(e,t){return e===r[t]}))){return n}r=a;n=t.apply(void 0,a);return n}};t.memoize=y},function(e,t,r){var n=r(671);var a=1/0,i=17976931348623157e292;function o(e){if(!e){return e===0?e:0}e=n(e);if(e===a||e===-a){var t=e<0?-1:1;return t*i}return e===e?e:0}e.exports=o},function(e,t,r){"use strict";var n=r(340);var a=Object.prototype.hasOwnProperty;var i=Array.isArray;var o=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var s=function e(t){while(t.length>1){var r=t.pop();var n=r.obj[r.prop];if(i(n)){var a=[];for(var o=0;o<n.length;++o){if(typeof n[o]!=="undefined"){a.push(n[o])}}r.obj[r.prop]=a}}};var u=function e(t,r){var n=r&&r.plainObjects?Object.create(null):{};for(var a=0;a<t.length;++a){if(typeof t[a]!=="undefined"){n[a]=t[a]}}return n};var l=function e(t,r,n){if(!r){return t}if(typeof r!=="object"){if(i(t)){t.push(r)}else if(t&&typeof t==="object"){if(n&&(n.plainObjects||n.allowPrototypes)||!a.call(Object.prototype,r)){t[r]=true}}else{return[t,r]}return t}if(!t||typeof t!=="object"){return[t].concat(r)}var o=t;if(i(t)&&!i(r)){o=u(t,n)}if(i(t)&&i(r)){r.forEach((function(r,i){if(a.call(t,i)){var o=t[i];if(o&&typeof o==="object"&&r&&typeof r==="object"){t[i]=e(o,r,n)}else{t.push(r)}}else{t[i]=r}}));return t}return Object.keys(r).reduce((function(t,i){var o=r[i];if(a.call(t,i)){t[i]=e(t[i],o,n)}else{t[i]=o}return t}),o)};var c=function e(t,r){return Object.keys(r).reduce((function(e,t){e[t]=r[t];return e}),t)};var f=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1"){return n.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(n)}catch(e){return n}};var d=function e(t,r,a,i,s){if(t.length===0){return t}var u=t;if(typeof t==="symbol"){u=Symbol.prototype.toString.call(t)}else if(typeof t!=="string"){u=String(t)}if(a==="iso-8859-1"){return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}))}var l="";for(var c=0;c<u.length;++c){var f=u.charCodeAt(c);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||s===n.RFC1738&&(f===40||f===41)){l+=u.charAt(c);continue}if(f<128){l=l+o[f];continue}if(f<2048){l=l+(o[192|f>>6]+o[128|f&63]);continue}if(f<55296||f>=57344){l=l+(o[224|f>>12]+o[128|f>>6&63]+o[128|f&63]);continue}c+=1;f=65536+((f&1023)<<10|u.charCodeAt(c)&1023);l+=o[240|f>>18]+o[128|f>>12&63]+o[128|f>>6&63]+o[128|f&63]}return l};var p=function e(t){var r=[{obj:{o:t},prop:"o"}];var n=[];for(var a=0;a<r.length;++a){var i=r[a];var o=i.obj[i.prop];var u=Object.keys(o);for(var l=0;l<u.length;++l){var c=u[l];var f=o[c];if(typeof f==="object"&&f!==null&&n.indexOf(f)===-1){r.push({obj:o,prop:c});n.push(f)}}}s(r);return t};var h=function e(t){return Object.prototype.toString.call(t)==="[object RegExp]"};var v=function e(t){if(!t||typeof t!=="object"){return false}return!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))};var m=function e(t,r){return[].concat(t,r)};var y=function e(t,r){if(i(t)){var n=[];for(var a=0;a<t.length;a+=1){n.push(r(t[a]))}return n}return r(t)};e.exports={arrayToObject:u,assign:c,combine:m,compact:p,decode:f,encode:d,isBuffer:v,isRegExp:h,maybeMap:y,merge:l}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(1350);var o=r(1351);var s=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.addAnnouncement=r.addAnnouncement.bind(r);r.deleteAnnouncement=r.deleteAnnouncement.bind(r);r.editAnnouncement=r.editAnnouncement.bind(r);r.getValue=r.getValue.bind(r);r.state={currentAnnouncements:Array.isArray(r.props.value)?r.props.value:[],editing:null};return r}t.prototype.addAnnouncement=function(e){var t=this.state.currentAnnouncements;if(!e.id){var r=["temp_1","temp_2","temp_3"].find((function(e){return!t.map((function(e){return e.id})).includes(e)}));e.id=r}this.setState({currentAnnouncements:t.concat(e),editing:null})};t.prototype.deleteAnnouncement=function(e){if(window.confirm("This will remove this announcement from your list. Are you sure you want to continue?")){this.setState({currentAnnouncements:this.state.currentAnnouncements.filter((function(t){return t.id!==e})),editing:null})}};t.prototype.editAnnouncement=function(e){var t=this.state.currentAnnouncements.find((function(t){return t.id===e}));var r=this.state.currentAnnouncements.filter((function(t){return t.id!==e}));if(this.state.editing&&this.state.editing.id!==e){r=r.concat(this.state.editing)}this.setState({editing:t,currentAnnouncements:r})};t.prototype.renderAnnouncement=function(e){return a.createElement(o.default,{key:e.id,content:e.content,start:e.start,finish:e.finish,id:e.id,delete:this.deleteAnnouncement,edit:this.editAnnouncement})};t.prototype.renderList=function(){var e=this;var t=function(e,t){if(e.start<t.start){return-1}else if(e.start>t.start){return 1}};return a.createElement("ul",{className:"announcements-ul"},a.createElement("h4",null,"Scheduled Announcements:"),a.createElement("p",null,"You can have a maximum of 3 announcements."),a.createElement("hr",null),Array.isArray(this.state.currentAnnouncements)&&this.state.currentAnnouncements.sort(t).map((function(t){return a.createElement("li",{key:t.id},e.renderAnnouncement(t))})))};t.prototype.renderForm=function(){var e,t,r,n;return a.createElement(i.default,{add:this.addAnnouncement,content:(e=this.state.editing)===null||e===void 0?void 0:e.content,start:(t=this.state.editing)===null||t===void 0?void 0:t.start,finish:(r=this.state.editing)===null||r===void 0?void 0:r.finish,id:(n=this.state.editing)===null||n===void 0?void 0:n.id})};t.prototype.render=function(){return a.createElement("div",{className:"announcements-section"},this.state.currentAnnouncements.length>0&&this.renderList(),this.state.currentAnnouncements.length<3&&this.renderForm())};t.prototype.getValue=function(){return this.state.currentAnnouncements.map((function(e){return e.id.match(/temp_/)?{content:e.content,start:e.start,finish:e.finish}:e}))};return t}(a.Component);t.default=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(0);var o=r(69);var s=r(1354);var u=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return a.createElement("div",null,e.prototype.render.call(this),a.createElement(s.default,{registerLibrary:this.context.registerLibrary,protocol:this.state.protocol,item:this.props.item,data:this.props.data,disabled:this.props.disabled,save:this.props.save,urlBase:this.props.urlBase,listDataKey:this.props.listDataKey}))};t.contextTypes={registerLibrary:i.func};return t}(o.default);t.default=u},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(0);var i=r(33);var o=r(14);var s=r(8);var u=r(1357);var l=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=u.default;t.listDataKey="individualAdmins";t.itemTypeName="individual admin";t.urlBase="/admin/web/config/individualAdmins/";t.identifierKey="email";t.labelKey="email";return t}t.prototype.canCreate=function(){return this.context.admin&&this.context.admin.isLibraryManagerOfSomeLibrary()};t.prototype.canDelete=function(){return this.context.admin&&this.context.admin.isSystemAdmin()};t.prototype.canEdit=function(){return this.context.admin&&this.context.admin.isLibraryManagerOfSomeLibrary()};t.prototype.getHeaders=function(){var e=this.props.settingUp?"Welcome!":"Individual admin configuration";var t=this.props.settingUp?"Set up your system admin account":"Create a new individual admin";return{h2:e,h3:t}};t.prototype.getClassName=function(){var e=this.props.settingUp?"set-up":"";return e};t.prototype.save=function(e){var t=this;this.editItem(e).then((function(){if(t.props.settingUp){window.location.reload();return}}))};t.contextTypes={admin:a.object.isRequired};return t}(i.default);t.IndividualAdmins=l;function c(e,t){var r=Object.assign({},e.editor.individualAdmins&&e.editor.individualAdmins.data||{});if(e.editor.libraries&&e.editor.libraries.data){r.allLibraries=e.editor.libraries.data.libraries}return{data:r,responseBody:e.editor.individualAdmins&&e.editor.individualAdmins.successMessage,fetchError:e.editor.individualAdmins.fetchError,formError:e.editor.individualAdmins.formError,isFetching:e.editor.individualAdmins.isFetching||e.editor.individualAdmins.isEditing}}function f(e,t){var r=new s.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchIndividualAdmins())},editItem:function(t){return e(r.editIndividualAdmin(t))},deleteItem:function(t){return e(r.deleteIndividualAdmin(t))}}}var d=o.connect(c,f)(l);t.default=d},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(19);var o=r(13);var s=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={selected:t.currentValue||""};r.handleNeighborhoodChange=r.handleNeighborhoodChange.bind(r);r.renderNeighborhoodForm=r.renderNeighborhoodForm.bind(r);return r}t.prototype.render=function(){return a.createElement(o.Panel,{headerText:"Patron Neighborhood Analytics: "+(this.isEnabled()?"En":"Dis")+"abled",content:this.renderNeighborhoodForm(),id:"neighborhood"})};t.prototype.isEnabled=function(){return this.state.selected&&this.state.selected!=="disabled"};t.prototype.handleNeighborhoodChange=function(e){this.setState({selected:e})};t.prototype.renderNeighborhoodForm=function(){var e=this;var t=this.props.setting;var r=this.getPairedService(t),n=r[0],o=r[1];return a.createElement("fieldset",null,a.createElement("legend",{className:"visuallyHidden"},"Patron Neighborhood Analytics"),a.createElement("p",{dangerouslySetInnerHTML:{__html:t.description}}),a.createElement(i.default,{key:t.key,label:t.label,elementType:"select",disabled:this.props.disabled,value:this.props.currentValue,error:this.props.error,onChange:this.handleNeighborhoodChange},t.options.map((function(t){return a.createElement("option",{key:t.key,value:t.key,"aria-selected":t.key===e.props.currentValue},t.label)}))),this.isEnabled()&&a.createElement("p",{className:"bg-warning"},"This feature will work only if it is also enabled in your"," ",a.createElement("a",{href:n},o),"."))};t.prototype.getPairedService=function(e){var t={patronAuth:"patron authentication",analytics:"local analytics"};var r=e.key==="location_source"?"patronAuth":"analytics";var n="/admin/web/config/"+r;var a=t[r]+" service configuration settings";return[n,a]};t.prototype.getValue=function(){return this.state.selected};return t}(a.Component);t.default=s},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(24);var i=p(a);var o=r(9);var s=p(o);var u=r(124);var l=r(81);var c=r(234);var f=p(c);var d=r(168);function p(e){return e&&e.__esModule?e:{default:e}}var h=function e(t){return t.filter((function(e){return e.state})).reduce((function(e,t){e[t.key]=t.state;return e}),{})};var v=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(Array.isArray(t)){t={entries:t}}else if(typeof t==="string"){t={entries:[t]}}var r=function e(){var t=m[y];var r=(0,l.createPath)(t);var a=void 0,i=void 0;if(t.key){a=t.key;i=A(a)}var o=(0,l.parsePath)(r);return(0,u.createLocation)(n({},o,{state:i}),undefined,a)};var a=function e(t){var r=y+t;return r>=0&&r<m.length};var i=function e(t){if(!t)return;if(!a(t)){false?undefined:void 0;return}y+=t;var i=r();p.transitionTo(n({},i,{action:d.POP}))};var o=function e(t){y+=1;if(y<m.length)m.splice(y);m.push(t);b(t.key,t.state)};var c=function e(t){m[y]=t;b(t.key,t.state)};var p=(0,f.default)(n({},t,{getCurrentLocation:r,pushLocation:o,replaceLocation:c,go:i}));var v=t,m=v.entries,y=v.current;if(typeof m==="string"){m=[m]}else if(!Array.isArray(m)){m=["/"]}m=m.map((function(e){return(0,u.createLocation)(e)}));if(y==null){y=m.length-1}else{!(y>=0&&y<m.length)?false?undefined:(0,s.default)(false):void 0}var g=h(m);var b=function e(t,r){return g[t]=r};var A=function e(t){return g[t]};return n({},p,{canGo:a})};t.default=v},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(9);var i=v(a);var o=r(235);var s=r(236);var u=h(s);var l=r(727);var c=h(l);var f=r(171);var d=r(234);var p=v(d);function h(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function v(e){return e&&e.__esModule?e:{default:e}}var m=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};!o.canUseDOM?false?undefined:(0,i.default)(false):void 0;var r=t.forceRefresh||!(0,f.supportsHistory)();var a=r?c:u;var s=a.getUserConfirmation,l=a.getCurrentLocation,d=a.pushLocation,h=a.replaceLocation,v=a.go;var m=(0,p.default)(n({getUserConfirmation:s},t,{getCurrentLocation:l,pushLocation:d,replaceLocation:h,go:v}));var y=0,g=void 0;var b=function e(t,r){if(++y===1)g=u.startListener(m.transitionTo);var n=r?m.listenBefore(t):m.listen(t);return function(){n();if(--y===0)g()}};var A=function e(t){return b(t,true)};var _=function e(t){return b(t,false)};return n({},m,{listenBefore:A,listen:_})};t.default=m},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(24);var i=v(a);var o=r(9);var s=v(o);var u=r(235);var l=r(171);var c=r(728);var f=h(c);var d=r(234);var p=v(d);function h(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function v(e){return e&&e.__esModule?e:{default:e}}var m="_k";var y=function e(t){return t.charAt(0)==="/"?t:"/"+t};var g={hashbang:{encodePath:function e(t){return t.charAt(0)==="!"?t:"!"+t},decodePath:function e(t){return t.charAt(0)==="!"?t.substring(1):t}},noslash:{encodePath:function e(t){return t.charAt(0)==="/"?t.substring(1):t},decodePath:y},slash:{encodePath:y,decodePath:y}};var b=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};!u.canUseDOM?false?undefined:(0,s.default)(false):void 0;var r=t.queryKey,a=t.hashType;false?undefined:void 0;if(typeof r!=="string")r=m;if(a==null)a="slash";if(!(a in g)){false?undefined:void 0;a="slash"}var i=g[a];var o=f.getUserConfirmation;var c=function e(){return f.getCurrentLocation(i,r)};var d=function e(t){return f.pushLocation(t,i,r)};var h=function e(t){return f.replaceLocation(t,i,r)};var v=(0,p.default)(n({getUserConfirmation:o},t,{getCurrentLocation:c,pushLocation:d,replaceLocation:h,go:f.go}));var y=0,b=void 0;var A=function e(t,n){if(++y===1)b=f.startListener(v.transitionTo,i,r);var a=n?v.listenBefore(t):v.listen(t);return function(){a();if(--y===0)b()}};var _=function e(t){return A(t,true)};var w=function e(t){return A(t,false)};var E=(0,l.supportsGoWithoutReloadUsingHash)();var x=function e(t){false?undefined:void 0;v.go(t)};var k=function e(t){return"#"+i.encodePath(v.createHref(t))};return n({},v,{listenBefore:_,listen:w,go:x,createHref:k})};t.default=b},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));function n(e){var t;var r=e.Symbol;if(typeof r==="function"){if(r.observable){t=r.observable}else{t=r("observable");r.observable=t}}else{t="@@observable"}return t}},function(e,t,r){e.exports=r(585)},function(e,t,r){e.exports=r(586)},function(e,t,r){e.exports=r(588)},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(988));t.end=a.default;var i=n(r(283));t.properties=i.default;var o={end:a.default,properties:i.default};t.default=o},function(e,t,r){e.exports=r(595)},function(e,t,r){e.exports=r(1025)},function(e,t,r){"use strict";function n(){return false}t["a"]=n},function(e,t,r){"use strict";(function(e){var n=r(22);var a=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var i=a&&typeof e=="object"&&e&&!e.nodeType&&e;var o=i&&i.exports===a;var s=o?n["a"].Buffer:undefined,u=s?s.allocUnsafe:undefined;function l(e,t){if(t){return e.slice()}var r=e.length,n=u?u(r):new e.constructor(r);e.copy(n);return n}t["a"]=l}).call(this,r(172)(e))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(1);var i=o(a);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var r={};for(var n in e){if(t.indexOf(n)>=0)continue;if(!Object.prototype.hasOwnProperty.call(e,n))continue;r[n]=e[n]}return r}var u=24;t.default=function(e){var t=e.fill,r=t===undefined?"currentColor":t,a=e.width,o=a===undefined?u:a,l=e.height,c=l===undefined?u:l,f=e.style,d=f===undefined?{}:f,p=s(e,["fill","width","height","style"]);return i.default.createElement("svg",n({viewBox:"0 0 "+u+" "+u,style:n({fill:r,width:o,height:c},d)},p),i.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(1);var i=o(a);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var r={};for(var n in e){if(t.indexOf(n)>=0)continue;if(!Object.prototype.hasOwnProperty.call(e,n))continue;r[n]=e[n]}return r}var u=24;t.default=function(e){var t=e.fill,r=t===undefined?"currentColor":t,a=e.width,o=a===undefined?u:a,l=e.height,c=l===undefined?u:l,f=e.style,d=f===undefined?{}:f,p=s(e,["fill","width","height","style"]);return i.default.createElement("svg",n({viewBox:"0 0 "+u+" "+u,style:n({fill:r,width:o,height:c},d)},p),i.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n={};var a=u(r(1216));Object.keys(a).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(n,e))return;if(e in t&&t[e]===a[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return a[e]}})}));var i=u(r(1219));Object.keys(i).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(n,e))return;if(e in t&&t[e]===i[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return i[e]}})}));var o=u(r(644));Object.keys(o).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(n,e))return;if(e in t&&t[e]===o[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return o[e]}})}));var s=u(r(645));Object.keys(s).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(n,e))return;if(e in t&&t[e]===s[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return s[e]}})}));function u(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t.default=e;return t}}},function(e,t,r){"use strict";e.exports=function e(t,r){if(t===r)return true;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return false;var n,a,i;if(Array.isArray(t)){n=t.length;if(n!=r.length)return false;for(a=n;a--!==0;)if(!e(t[a],r[a]))return false;return true}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();i=Object.keys(t);n=i.length;if(n!==Object.keys(r).length)return false;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return false;for(a=n;a--!==0;){var o=i[a];if(!e(t[o],r[o]))return false}return true}return t!==t&&r!==r}},function(e,t,r){var n=r(137),a=r(1293),i=r(667),o=r(1298);var s=i((function(e){var t=n(e,o);return t.length&&t[0]===e[0]?a(t):[]}));e.exports=s},function(e,t,r){var n=r(619),a=r(1300),i=r(52),o=r(12);function s(e,t){var r=o(e)?n:a;return r(e,i(t,3))}e.exports=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1310);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=a.default},function(e,t,r){var n=r(339),a=r(612);function i(e,t){return n(a(e,t),1)}e.exports=i},function(e,t,r){var n=r(218),a=r(52),i=r(673);function o(e,t){return e&&e.length?n(e,a(t,2),i):undefined}e.exports=o},function(e,t,r){var n=r(615),a=r(52),i=r(1326),o=r(12),s=r(217);function u(e,t,r){var u=o(e)?n:i;if(r&&s(e,t,r)){t=undefined}return u(e,a(t,3))}e.exports=u},function(e,t,r){var n=r(1329),a=r(1330);var i=n(a);e.exports=i},function(e,t,r){var n=r(345),a=r(27);var i="Expected a function";function o(e,t,r){var o=true,s=true;if(typeof e!="function"){throw new TypeError(i)}if(a(r)){o="leading"in r?!!r.leading:o;s="trailing"in r?!!r.trailing:s}return n(e,t,{leading:o,maxWait:t,trailing:s})}e.exports=o},function(e,t,r){var n=r(52),a=r(1338);function i(e,t){return e&&e.length?a(e,n(t,2)):0}e.exports=i},,,,,,,function(e,t,r){r(714);e.exports=r(715)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};var a=r(1);var i=r(18);var o=r(92);var s=r(729);var u=r(397);var l=r(823);var c=r(1132);var f=r(1227);var d=r(1234);var p=r(1345);var h=r(1370);var v=r(1372);var m=r(1373);var y=r(1378);var g=function(){function e(e){var t=document.createElement("div");t.id="opds-catalog";t.className="palace";document.getElementsByTagName("body")[0].appendChild(t);var g="/admin/web(/collection/:collectionUrl)(/book/:bookUrl)(/tab/:tab)";var b="/admin/web/lists(/:library)(/:editOrCreate)(/:identifier)";var A="/admin/web/lanes(/:library)(/:editOrCreate)(/:identifier)";var _="opds-catalog";var w=e.settingUp?a.createElement(s.default,n({},e),a.createElement(v.default,null)):a.createElement(s.default,n({},e),a.createElement(u.TOSContextProvider,{value:[e.tos_link_text,e.tos_link_href]},a.createElement(o.Router,{history:o.browserHistory},a.createElement(o.Route,{path:g,component:l.default}),a.createElement(o.Route,{path:b,component:c.default}),a.createElement(o.Route,{path:A,component:f.default}),a.createElement(o.Route,{path:"/admin/web/dashboard(/:library)",component:d.default}),a.createElement(o.Route,{path:"/admin/web/config(/:tab)(/:editOrCreate)(/:identifier)",component:p.default}),a.createElement(o.Route,{path:"/admin/web/account",component:h.default}),a.createElement(o.Route,{path:"/admin/web/patrons/:library(/:tab)",component:m.default}),a.createElement(o.Route,{path:"/admin/web/troubleshooting(/:tab)(/:subtab)",component:y.default}))));if(undefined==="true"){Promise.resolve().then((function(){return r(1389)})).then((function(e){e(a,i,1e3);i.render(w,document.getElementById(_))}))}else{i.render(w,document.getElementById(_))}}return e}();e.exports=g},function(e,t,r){"use strict";
|
|
311
|
+
var t=e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){if(e===12){e=0}if(t==="凌晨"||t==="早上"||t==="上午"){return e}else if(t==="中午"){return e>=11?e:e+12}else if(t==="下午"||t==="晚上"){return e+12}},meridiem:function(e,t,r){var n=e*100+t;if(n<600){return"凌晨"}else if(n<900){return"早上"}else if(n<1130){return"上午"}else if(n<1230){return"中午"}else if(n<1800){return"下午"}else{return"晚上"}},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(830);var o=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={error:false};r.handleError=r.handleError.bind(r);return r}t.prototype.handleError=function(e){this.setState({error:true})};t.prototype.componentWillReceiveProps=function(e){if(this.state.error){this.setState({error:false})}};t.prototype.render=function(){var e;var t=this.props.book,r=t.title,n=t.authors,i=t.imageUrl;if(i&&!this.state.error){return a.createElement("img",{src:i,onError:this.handleError,className:"book-cover",role:"presentation",alt:""})}var o=this.computeFontSize(r,40);var s=this.computeFontSize((e=n===null||n===void 0?void 0:n.join(", "))!==null&&e!==void 0?e:"",25);var u=this.seededRandomHue(r);var l="hsla("+u+", 40%, 60%, 1)";return a.createElement("div",{className:"auto-book-cover",style:{backgroundColor:l}},a.createElement("div",{className:"title",style:{fontSize:o}},r),(n===null||n===void 0?void 0:n.length)&&a.createElement("div",{className:"authors",style:{fontSize:s}},"By ",n.join(", ")))};t.prototype.computeFontSize=function(e,t,r){if(t===void 0){t=40}if(r===void 0){r=15}var n=e.split(/\s/);var a=n.length;var i=Math.max.apply(Math,n.map((function(e){return e.length})));var o=Math.max(r,t-i*2-Math.max(0,a-3)*2);return o/13+"em"};t.prototype.seededRandomHue=function(e){return Math.round(360*i(e)())};return t}(a.Component);t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.useActions=t.ActionsProvider=t.ActionsContext=void 0;var n=r(1);var a=r(843);t.ActionsContext=n.createContext(undefined);function i(e){var r=e.children,a=e.actions,i=e.fetcher;return n.createElement(t.ActionsContext.Provider,{value:{actions:a,fetcher:i}},r)}t.ActionsProvider=i;function o(){var e=n.useContext(t.ActionsContext);var r=a.default();if(typeof e==="undefined"){throw new Error("useActions must be used within a ActionsProvider")}var i=e.actions,o=e.fetcher;return{actions:i,fetcher:o,dispatch:r}}t.useActions=o;t.default=t.ActionsContext},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hierarchyComputeBreadcrumbs=t.defaultComputeBreadcrumbs=void 0;var n=r(1);var a=r(65);var i=function(e){var t=e.links,r=e.currentLink,i=r===void 0?false:r;return n.createElement("nav",{"aria-label":"breadcrumbs",role:"navigation"},n.createElement("ol",{className:"breadcrumbs"},t&&t.map((function(e,r){return n.createElement("li",{key:e.url,className:"breadcrumb"},r===t.length-1&&!i?n.createElement("span",null,e.text):n.createElement(a.default,{collectionUrl:e.url,bookUrl:null},e.text))}))))};t.default=i;function o(e,t){var r=t?t.slice(0):[];if(e){r.push({url:e.url,text:e.title})}return r}t.defaultComputeBreadcrumbs=o;function s(e,t,r){var n=[];if(!e){return[]}if(!r){r=function(e,t){return e===t}}var a=e.catalogRootLink,i=e.parentLink;if(a&&!r(a.url,e.url)){n.push({text:a.text||"Catalog",url:a.url})}if(i&&i.url&&i.text&&(!a||!r(i.url,a.url))&&!r(i.url,e.url)){n.push({text:i.text,url:i.url})}n.push({url:e.url,text:e.title});return n}t.hierarchyComputeBreadcrumbs=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(850);var o=r(264);var s=r(65);var u=r(852);var l=r(856);var c=r(539);var f=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.fetch=r.fetch.bind(r);r.handleScrollOrResize=i.debounce(50,r.handleScrollOrResize.bind(r));r.getSelectedView=r.getSelectedView.bind(r);r.selectGridView=r.selectGridView.bind(r);r.selectListView=r.selectListView.bind(r);return r}t.prototype.render=function(){var e=this;var r;var n=this.props.collection.facetGroups&&this.props.collection.facetGroups.length>0;var i=this.props.collection.books&&this.props.collection.books.length>0;return a.createElement("div",{className:"collection"},n&&a.createElement("div",{className:"facet-groups","aria-label":"filters"},a.createElement(c.default,{target:"#collection-main",label:"filters"}),(r=this.props.collection.facetGroups)===null||r===void 0?void 0:r.map((function(e){return a.createElement(l.default,{key:e.label,facetGroup:e})}))),a.createElement("div",{className:"collection-container"},i&&a.createElement("div",{className:"view-toggle"},a.createElement("button",{title:"Select grid view",disabled:this.getSelectedView()===t.GRID_VIEW,onClick:this.selectGridView},a.createElement("i",{className:"fa fa-th-large"})),a.createElement("button",{title:"Select list view",disabled:this.getSelectedView()===t.LIST_VIEW,onClick:this.selectListView},a.createElement("i",{className:"fa fa-th-list"}))),a.createElement("div",{id:"collection-main",className:"collection-main",ref:"collection-main","aria-label":"books in "+this.props.collection.title},this.props.collection.lanes&&this.props.collection.lanes.length>0?a.createElement(u.Lanes,{url:this.props.collection.url,lanes:this.props.collection.lanes,updateBook:this.props.updateBook,isSignedIn:this.props.isSignedIn,epubReaderUrlTemplate:this.props.epubReaderUrlTemplate}):null,this.props.collection.books&&a.createElement("ul",{"aria-label":"books",className:"subtle-list books "+this.getSelectedView()},this.props.collection.books.map((function(t,r){return a.createElement("li",{key:r},a.createElement(o.default,{book:t,collectionUrl:e.props.collection.url,updateBook:e.props.updateBook,isSignedIn:e.props.isSignedIn,epubReaderUrlTemplate:e.props.epubReaderUrlTemplate,showCirculationLinks:e.props.showCirculationLinks}))}))),this.props.collection.navigationLinks&&a.createElement("nav",{role:"navigation","aria-label":"navigation links"},a.createElement("ul",{className:"navigation-links subtle-list"},this.props.collection.navigationLinks.map((function(e,t){return a.createElement("li",{key:t},a.createElement(s.default,{collectionUrl:e.url},e.text))})))),this.isEmpty()&&a.createElement("div",{className:"empty-collection-message"},"No books found."),this.canFetch()&&a.createElement("button",{className:"next-page-link visually-hidden",onClick:this.fetch},"Load more books"),this.props.isFetchingPage&&a.createElement("div",{className:"loading-next-page"},a.createElement("h3",null,"Loading more books...")))))};t.prototype.getSelectedView=function(){return this.props.preferences&&this.props.preferences[t.VIEW_KEY]||t.GRID_VIEW};t.prototype.selectGridView=function(){if(this.props.setPreference){this.props.setPreference(t.VIEW_KEY,t.GRID_VIEW)}};t.prototype.selectListView=function(){if(this.props.setPreference){this.props.setPreference(t.VIEW_KEY,t.LIST_VIEW)}};t.prototype.componentWillReceiveProps=function(e){if(this.props.isFetchingCollection&&!e.isFetchingCollection&&!e.error){this.refs["collection-main"].scrollTop=0}this.handleScrollOrResize()};t.prototype.componentDidMount=function(){var e=this.refs["collection-main"];e.addEventListener("scroll",this.handleScrollOrResize);window.addEventListener("resize",this.handleScrollOrResize);this.handleScrollOrResize()};t.prototype.componentWillUnmount=function(){var e=this.refs["collection-main"];e.removeEventListener("scroll",this.handleScrollOrResize);window.removeEventListener("resize",this.handleScrollOrResize)};t.prototype.canFetch=function(){return!this.props.hidden&&!this.props.isFetchingPage&&!!this.props.collection.nextPageUrl};t.prototype.fetch=function(){var e,t;if(this.canFetch()&&this.props.collection.nextPageUrl){(t=(e=this.props).fetchPage)===null||t===void 0?void 0:t.call(e,this.props.collection.nextPageUrl)}};t.prototype.handleScrollOrResize=function(){var e=this.refs["collection-main"];if(e){var t=e.scrollTop;var r=e.scrollHeight;var n=e.clientHeight;if(t+n>=r){this.fetch()}}};t.prototype.isEmpty=function(){return this.props.collection.lanes.length===0&&this.props.collection.books.length===0&&this.props.collection.navigationLinks.length===0};t.VIEW_KEY="collection-view";t.GRID_VIEW="grid-view";t.LIST_VIEW="list-view";return t}(a.Component);t.default=f},function(e,t){e.exports=function(e,t,r,n){var a;var i=0;if(typeof t!=="boolean"){n=r;r=t;t=undefined}function o(){var o=this;var s=Number(new Date)-i;var u=arguments;function l(){i=Number(new Date);r.apply(o,u)}function c(){a=undefined}if(n&&!a){l()}if(a){clearTimeout(a)}if(n===undefined&&s>e){l()}else if(t!==true){a=setTimeout(n?c:l,n===undefined?e-s:e)}}return o}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e=-1;var t="Skip "+(this.props.label||"navigation");return a.createElement("div",{className:"skip-navigation",tabIndex:e},a.createElement("a",{href:this.props.target},t))};return t}(a.Component);t.default=i},function(e,t,r){"use strict";var n=r(51);var a=r(67);var i=r(11);var o=i.OrderedMap;var s=function e(t){var r={};var n;return o(t.withMutations((function(e){e.forEach((function(t,i){var o=t.getKey();var s=t.getNextSiblingKey();var u=t.getPrevSiblingKey();var l=t.getChildKeys();var c=t.getParentKey();var f=a();r[o]=f;if(s){var d=e.get(s);if(d){e.setIn([s,"prevSibling"],f)}else{e.setIn([o,"nextSibling"],null)}}if(u){var p=e.get(u);if(p){e.setIn([u,"nextSibling"],f)}else{e.setIn([o,"prevSibling"],null)}}if(c&&e.get(c)){var h=e.get(c);var v=h.getChildKeys();e.setIn([c,"children"],v.set(v.indexOf(t.getKey()),f))}else{e.setIn([o,"parent"],null);if(n){e.setIn([n.getKey(),"nextSibling"],f);e.setIn([o,"prevSibling"],r[n.getKey()])}n=e.get(o)}l.forEach((function(r){var n=e.get(r);if(n){e.setIn([r,"parent"],f)}else{e.setIn([o,"children"],t.getChildKeys().filter((function(e){return e!==r})))}}))}))})).toArray().map((function(e){return[r[e.getKey()],e.set("key",r[e.getKey()])]})))};var u=function e(t){return o(t.toArray().map((function(e){var t=a();return[t,e.set("key",t)]})))};var l=function e(t){var r=t.first()instanceof n;if(!r){return u(t)}return s(t)};e.exports=l},function(e,t,r){"use strict";var n=r(50);var a=r(154);var i=r(16);function o(e,t){var r=e.getBlockMap();var n=e.getEntityMap();var a={};var i=t.getStartKey();var o=t.getStartOffset();var s=r.get(i);var l=u(n,s,o);if(l!==s){a[i]=l}var c=t.getEndKey();var f=t.getEndOffset();var d=r.get(c);if(i===c){d=l}var p=u(n,d,f);if(p!==d){a[c]=p}if(!Object.keys(a).length){return e.set("selectionAfter",t)}return e.merge({blockMap:r.merge(a),selectionAfter:t})}function s(e,t,r){var n;a(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){if(e<=r&&t>=r){n={start:e,end:t}}}));!(typeof n==="object")?false?undefined:i(false):void 0;return n}function u(e,t,r){var a=t.getCharacterList();var i=r>0?a.get(r-1):undefined;var o=r<a.count()?a.get(r):undefined;var u=i?i.getEntity():undefined;var l=o?o.getEntity():undefined;if(l&&l===u){var c=e.__get(l);if(c.getMutability()!=="MUTABLE"){var f=s(a,l,r),d=f.start,p=f.end;var h;while(d<p){h=a.get(d);a=a.set(d,n.applyEntity(h,null));d++}return t.set("characterList",a)}}return t}e.exports=o},function(e,t,r){"use strict";function n(e,t,r){var n=e;if(r===n.count()){t.forEach((function(e){n=n.push(e)}))}else if(r===0){t.reverse().forEach((function(e){n=n.unshift(e)}))}else{var a=n.slice(0,r);var i=n.slice(r);n=a.concat(t,i).toList()}return n}e.exports=n},function(e,t,r){"use strict";var n=r(11);var a=n.Map;function i(e,t,r){var n=t.getStartKey();var i=t.getEndKey();var o=e.getBlockMap();var s=o.toSeq().skipUntil((function(e,t){return t===n})).takeUntil((function(e,t){return t===i})).concat(a([[i,o.get(i)]])).map(r);return e.merge({blockMap:o.merge(s),selectionBefore:t,selectionAfter:t})}e.exports=i},function(e,t,r){"use strict";var n=r(51);var a=function e(t,r){var a=t instanceof n;if(!a){return null}var i=t.getNextSiblingKey();if(i){return i}var o=t.getParentKey();if(!o){return null}var s=r.get(o);while(s&&!s.getNextSiblingKey()){var u=s.getParentKey();s=u?r.get(u):null}if(!s){return null}return s.getNextSiblingKey()};e.exports=a},function(e,t,r){"use strict";function n(e){return Object.keys(e).map((function(t){return e[t]}))}e.exports=n},function(e,t,r){"use strict";function n(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var a=r(11);var i=a.Record;var o=i({type:"TOKEN",mutability:"IMMUTABLE",data:Object});var s=function(e){n(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.getType=function e(){return this.get("type")};r.getMutability=function e(){return this.get("mutability")};r.getData=function e(){return this.get("data")};return t}(o);e.exports=s},function(e,t,r){"use strict";var n=new RegExp("\r","g");function a(e){return e.replace(n,"")}e.exports=a},function(e,t,r){"use strict";e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},function(e,t,r){"use strict";var n=r(104);function a(e){if(n(e)){var t=e;var r=t.getAttribute("data-offset-key");if(r){return r}for(var i=0;i<t.childNodes.length;i++){var o=a(t.childNodes[i]);if(o){return o}}}return null}e.exports=a},function(e,t,r){"use strict";function n(e){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView){return window}return e.ownerDocument.defaultView}e.exports=n},function(e,t,r){"use strict";var n=r(552);var a=r(20);var i=r(553);var o=r(554);function s(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState;var r=t.getSelection();n.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(r.toJS())})}return}var s=e.props.editorState;var u=o(s,i(e));var l=u.selectionState;if(l!==s.getSelection()){if(u.needsRecovery){s=a.forceSelection(s,l)}else{s=a.acceptSelection(s,l)}e.update(s)}}e.exports=s},function(e,t,r){"use strict";e.exports={logBlockedSelectionEvent:function e(){return null},logSelectionStateFailure:function e(){return null}}},function(e,t,r){"use strict";var n=r(16);var a=r(155);function i(e){var t=e.editorContainer;!t?false?undefined:n(false):void 0;!a(t.firstChild)?false?undefined:n(false):void 0;var r=t.firstChild;return r}e.exports=i},function(e,t,r){"use strict";var n=r(555);function a(e,t){var r=t.ownerDocument.defaultView.getSelection();var a=r.anchorNode,i=r.anchorOffset,o=r.focusNode,s=r.focusOffset,u=r.rangeCount;if(u===0||a==null||o==null){return{selectionState:e.getSelection().set("hasFocus",false),needsRecovery:false}}return n(e,t,a,i,o,s)}e.exports=a},function(e,t,r){"use strict";var n=r(184);var a=r(549);var i=r(556);var o=r(16);var s=r(104);var u=r(37);function l(e,t,r,a,o,s){var l=r.nodeType===Node.TEXT_NODE;var c=o.nodeType===Node.TEXT_NODE;if(l&&c){return{selectionState:i(e,u(n(r)),a,u(n(o)),s),needsRecovery:false}}var f=null;var p=null;var h=true;if(l){f={key:u(n(r)),offset:a};p=d(t,o,s)}else if(c){p={key:u(n(o)),offset:s};f=d(t,r,a)}else{f=d(t,r,a);p=d(t,o,s);if(r===o&&a===s){h=!!r.firstChild&&r.firstChild.nodeName!=="BR"}}return{selectionState:i(e,f.key,f.offset,p.key,p.offset),needsRecovery:h}}function c(e){while(e.firstChild&&(s(e.firstChild)&&e.firstChild.getAttribute("data-blocks")==="true"||a(e.firstChild))){e=e.firstChild}return e}function f(e){while(e.lastChild&&(s(e.lastChild)&&e.lastChild.getAttribute("data-blocks")==="true"||a(e.lastChild))){e=e.lastChild}return e}function d(e,t,r){var i=t;var l=n(i);!(l!=null||e&&(e===i||e.firstChild===i))?false?undefined:o(false):void 0;if(e===i){i=i.firstChild;!s(i)?false?undefined:o(false):void 0;var d=i;i=d;!(i.getAttribute("data-contents")==="true")?false?undefined:o(false):void 0;if(r>0){r=i.childNodes.length}}if(r===0){var h=null;if(l!=null){h=l}else{var v=c(i);h=u(a(v))}return{key:h,offset:0}}var m=i.childNodes[r-1];var y=null;var g=null;if(!a(m)){y=u(l);g=p(m)}else{var b=f(m);y=u(a(b));g=p(b)}return{key:y,offset:g}}function p(e){var t=e.textContent;return t==="\n"?0:t.length}e.exports=l},function(e,t,r){"use strict";var n=r(73);var a=r(37);function i(e,t,r,i,o){var s=a(e.getSelection());if(!t||!i){if(false){}return s}var u=n.decode(t);var l=u.blockKey;var c=e.getBlockTree(l);var f=c&&c.getIn([u.decoratorKey,"leaves",u.leafKey]);var d=n.decode(i);var p=d.blockKey;var h=e.getBlockTree(p);var v=h&&h.getIn([d.decoratorKey,"leaves",d.leafKey]);if(!f||!v){if(false){}return s}var m=f.get("start");var y=v.get("start");var g=f?m+r:null;var b=v?y+o:null;var A=s.getAnchorKey()===l&&s.getAnchorOffset()===g&&s.getFocusKey()===p&&s.getFocusOffset()===b;if(A){return s}var _=false;if(l===p){var w=f.get("end");var E=v.get("end");if(y===m&&E===w){_=o<r}else{_=y<m}}else{var x=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===l||e===p})).first();_=x===p}return s.merge({anchorKey:l,anchorOffset:g,focusKey:p,focusOffset:b,isBackward:_})}e.exports=i},function(e,t,r){"use strict";function n(e){return e!=null&&e!=""}e.exports={notEmptyKey:n}},function(e,t,r){"use strict";var n=r(46);function a(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function i(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}function o(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var s=r(906);var u=r(1);var l=r(16);var c=r(559);var f=r(907).setDraftEditorSelection;var d=function(e){i(t,e);function t(){var t;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++){n[i]=arguments[i]}t=e.call.apply(e,[this].concat(n))||this;o(a(t),"leaf",void 0);return t}var r=t.prototype;r._setSelection=function e(){var t=this.props.selection;if(t==null||!t.getHasFocus()){return}var r=this.props,n=r.block,a=r.start,i=r.text;var o=n.getKey();var s=a+i.length;if(!t.hasEdgeWithin(o,a,s)){return}var u=this.leaf;!u?false?undefined:l(false):void 0;var d=u.firstChild;!d?false?undefined:l(false):void 0;var p;if(d.nodeType===Node.TEXT_NODE){p=d}else if(c(d)){p=u}else{p=d.firstChild;!p?false?undefined:l(false):void 0}f(t,p,o,a,s)};r.shouldComponentUpdate=function e(t){var r=this.leaf;!r?false?undefined:l(false):void 0;var n=r.textContent!==t.text||t.styleSet!==this.props.styleSet||t.forceSelection;return n};r.componentDidUpdate=function e(){this._setSelection()};r.componentDidMount=function e(){this._setSelection()};r.render=function e(){var t=this;var r=this.props.block;var a=this.props.text;if(a.endsWith("\n")&&this.props.isLast){a+="\n"}var i=this.props,o=i.customStyleMap,l=i.customStyleFn,c=i.offsetKey,f=i.styleSet;var d=f.reduce((function(e,t){var r={};var a=o[t];if(a!==undefined&&e.textDecoration!==a.textDecoration){r.textDecoration=[e.textDecoration,a.textDecoration].join(" ").trim()}return n(e,a,r)}),{});if(l){var p=l(f,r);d=n(d,p)}return u.createElement("span",{"data-offset-key":c,ref:function e(r){return t.leaf=r},style:d},u.createElement(s,null,a))};return t}(u.Component);e.exports=d},function(e,t,r){"use strict";var n=r(104);function a(e){if(!e||!e.ownerDocument){return false}return n(e)&&e.nodeName==="BR"}e.exports=a},function(e,t,r){"use strict";e.exports={initODS:function e(){},handleExtensionCausedError:function e(){}}},function(e,t,r){"use strict";function n(e){e=e||(typeof document!=="undefined"?document:undefined);if(typeof e==="undefined"){return null}try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=n},function(e,t,r){"use strict";var n=r(913);function a(e){var t=n(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}e.exports=a},function(e,t,r){"use strict";function n(){var e;if(document.documentElement){e=document.documentElement.clientWidth}if(!e&&document.body){e=document.body.clientWidth}return e||0}function a(){var e;if(document.documentElement){e=document.documentElement.clientHeight}if(!e&&document.body){e=document.body.clientHeight}return e||0}function i(){return{width:window.innerWidth||n(),height:window.innerHeight||a()}}i.withoutScrollbars=function(){return{width:n(),height:a()}};e.exports=i},function(e,t,r){"use strict";var n=r(46);function a(){a=n||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};return a.apply(this,arguments)}function i(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function o(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}function s(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var u=r(558);var l=r(73);var c=r(1);var f=r(270);var d=r(187);var p=r(266);var h=r(183);var v=r(103);var m=r(562);var y=r(188);var g=r(563);var b=r(16);var A=r(155);var _=r(37);var w=10;var E=function e(t,r){return t.getAnchorKey()===r||t.getFocusKey()===r};var x=function(e){o(t,e);function t(){var t;for(var r=arguments.length,n=new Array(r),a=0;a<r;a++){n[a]=arguments[a]}t=e.call.apply(e,[this].concat(n))||this;s(i(t),"_node",void 0);return t}var r=t.prototype;r.shouldComponentUpdate=function e(t){return this.props.block!==t.block||this.props.tree!==t.tree||this.props.direction!==t.direction||E(t.selection,t.block.getKey())&&t.forceSelection};r.componentDidMount=function e(){if(this.props.preventScroll){return}var t=this.props.selection;var r=t.getEndKey();if(!t.getHasFocus()||r!==this.props.block.getKey()){return}var n=this._node;if(n==null){return}var a=d.getScrollParent(n);var i=y(a);var o;if(a===window){var s=m(n);var u=s.y+s.height;var l=g().height;o=u-l;if(o>0){window.scrollTo(i.x,i.y+o+w)}}else{!A(n)?false?undefined:b(false):void 0;var c=n.offsetHeight+n.offsetTop;var p=a.offsetTop+a.offsetHeight;var h=p+i.y;o=c-h;if(o>0){f.setTop(a,f.getTop(a)+o+w)}}};r._renderChildren=function e(){var t=this;var r=this.props.block;var n=r.getKey();var i=r.getText();var o=this.props.tree.size-1;var s=E(this.props.selection,n);return this.props.tree.map((function(e,f){var d=e.get("leaves");if(d.size===0){return null}var v=d.size-1;var m=d.map((function(e,a){var d=l.encode(n,f,a);var p=e.get("start");var h=e.get("end");return c.createElement(u,{key:d,offsetKey:d,block:r,start:p,selection:s?t.props.selection:null,forceSelection:t.props.forceSelection,text:i.slice(p,h),styleSet:r.getInlineStyleAt(p),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:f===o&&a===v})})).toArray();var y=e.get("decoratorKey");if(y==null){return m}if(!t.props.decorator){return m}var g=_(t.props.decorator);var b=g.getComponentForKey(y);if(!b){return m}var A=g.getPropsForKey(y);var w=l.encode(n,f,0);var E=d.first().get("start");var x=d.last().get("end");var k=i.slice(E,x);var S=r.getEntityAt(e.get("start"));var O=h.getHTMLDirIfDifferent(p.getDirection(k),t.props.direction);var M={contentState:t.props.contentState,decoratedText:k,dir:O,start:E,end:x,blockKey:n,entityKey:S,offsetKey:w};return c.createElement(b,a({},A,M,{key:w}),m)})).toArray()};r.render=function e(){var t=this;var r=this.props,n=r.direction,a=r.offsetKey;var i=v({"public/DraftStyleDefault/block":true,"public/DraftStyleDefault/ltr":n==="LTR","public/DraftStyleDefault/rtl":n==="RTL"});return c.createElement("div",{"data-offset-key":a,className:i,ref:function e(r){return t._node=r}},this._renderChildren())};return t}(c.Component);e.exports=x},function(e,t,r){"use strict";var n=r(919);var a=r(920);var i=r(566);var o=new RegExp("\r\n","g");var s="\n";var u={"text/rtf":1,"text/html":1};function l(e){if(e.kind=="file"){return e.getAsFile()}}var c=function(){function e(e){this.data=e;this.types=e.types?a(e.types):[]}var t=e.prototype;t.isRichText=function e(){if(this.getHTML()&&this.getText()){return true}if(this.isImage()){return false}return this.types.some((function(e){return u[e]}))};t.getText=function e(){var t;if(this.data.getData){if(!this.types.length){t=this.data.getData("Text")}else if(this.types.indexOf("text/plain")!=-1){t=this.data.getData("text/plain")}}return t?t.replace(o,s):null};t.getHTML=function e(){if(this.data.getData){if(!this.types.length){return this.data.getData("Text")}else if(this.types.indexOf("text/html")!=-1){return this.data.getData("text/html")}}};t.isLink=function e(){return this.types.some((function(e){return e.indexOf("Url")!=-1||e.indexOf("text/uri-list")!=-1||e.indexOf("text/x-moz-url")}))};t.getLink=function e(){if(this.data.getData){if(this.types.indexOf("text/x-moz-url")!=-1){var t=this.data.getData("text/x-moz-url").split("\n");return t[0]}return this.types.indexOf("text/uri-list")!=-1?this.data.getData("text/uri-list"):this.data.getData("url")}return null};t.isImage=function e(){var e=this.types.some((function(e){return e.indexOf("application/x-moz-file")!=-1}));if(e){return true}var t=this.getFiles();for(var r=0;r<t.length;r++){var a=t[r].type;if(!n.isImage(a)){return false}}return true};t.getCount=function e(){if(this.data.hasOwnProperty("items")){return this.data.items.length}else if(this.data.hasOwnProperty("mozItemCount")){return this.data.mozItemCount}else if(this.data.files){return this.data.files.length}return null};t.getFiles=function e(){if(this.data.items){return Array.prototype.slice.call(this.data.items).map(l).filter(i.thatReturnsArgument)}else if(this.data.files){return Array.prototype.slice.call(this.data.files)}else{return[]}};t.hasFiles=function e(){return this.getFiles().length>0};return e}();e.exports=c},function(e,t,r){"use strict";function n(e){return function(){return e}}var a=function e(){};a.thatReturns=n;a.thatReturnsFalse=n(false);a.thatReturnsTrue=n(true);a.thatReturnsNull=n(null);a.thatReturnsThis=function(){return this};a.thatReturnsArgument=function(e){return e};e.exports=a},function(e,t,r){"use strict";(function(t){var n=r(16);var a=/\.textClipping$/;var i={"text/plain":true,"text/html":true,"text/rtf":true};var o=5e3;function s(e,t){var r=0;var n=[];e.forEach((function(a){u(a,(function(a){r++;a&&n.push(a.slice(0,o));if(r==e.length){t(n.join("\r"))}}))}))}function u(e,r){if(!t.FileReader||e.type&&!(e.type in i)){r("");return}if(e.type===""){var o="";if(a.test(e.name)){o=e.name.replace(a,"")}r(o);return}var s=new FileReader;s.onload=function(){var e=s.result;!(typeof e==="string")?false?undefined:n(false):void 0;r(e)};s.onerror=function(){r("")};s.readAsText(e)}e.exports=s}).call(this,r(25))},function(e,t,r){"use strict";var n=r(180);function a(e){var t=e.getSelection();if(t.isCollapsed()){return null}return n(e.getCurrentContent(),t)}e.exports=a},function(e,t,r){"use strict";var n=r(20);var a=r(105);var i=r(271);var o=r(156);function s(e){var t=o(e,(function(e){var t=e.getSelection();var r=e.getCurrentContent();var n=t.getAnchorKey();var o=t.getAnchorOffset();var s=r.getBlockForKey(n).getText()[o-1];return i(e,s?a.getUTF16Length(s,0):1)}),"backward");if(t===e.getCurrentContent()){return e}var r=e.getSelection();return n.push(e,t.set("selectionBefore",r),r.isCollapsed()?"backspace-character":"remove-range")}e.exports=s},function(e,t,r){"use strict";var n=r(38);var a=r(16);var i=n.isBrowser("Chrome");function o(e){var t=e.cloneRange();var r=[];for(var n=e.endContainer;n!=null;n=n.parentNode){var i=n===e.commonAncestorContainer;if(i){t.setStart(e.startContainer,e.startOffset)}else{t.setStart(t.endContainer,0)}var o=Array.from(t.getClientRects());r.push(o);if(i){var s;r.reverse();return(s=[]).concat.apply(s,r)}t.setEndBefore(n)}true?false?undefined:a(false):undefined}var s=i?o:function(e){return Array.from(e.getClientRects())};e.exports=s},function(e,t,r){"use strict";var n=r(940);var a=n.getPunctuation();var i="['‘’]";var o="\\s|(?![_])"+a;var s="^"+"(?:"+o+")*"+"(?:"+i+"|(?!"+o+").)*"+"(?:(?!"+o+").)";var u=new RegExp(s);var l="(?:(?!"+o+").)"+"(?:"+i+"|(?!"+o+").)*"+"(?:"+o+")*"+"$";var c=new RegExp(l);function f(e,t){var r=t?c.exec(e):u.exec(e);return r?r[0]:e}var d={getBackward:function e(t){return f(t,true)},getForward:function e(t){return f(t,false)}};e.exports=d},function(e,t,r){"use strict";var n=r(272);function a(e,t){var r=e.getSelection();false?undefined:void 0;var n=r.getStartKey();var a=r.getStartOffset();var i=e.getCurrentContent();var o=n;var s;var u=i.getBlockForKey(n);if(t>u.getText().length-a){o=i.getKeyAfter(n);s=0}else{s=a+t}return r.merge({focusKey:o,focusOffset:s})}e.exports=a},function(e,t,r){"use strict";var n;function a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))}n.forEach((function(t){i(e,t,r[t])}))}return e}function i(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var o=r(50);var s=r(102);var u=r(51);var l=r(267);var c=r(181);var f=r(950);var d=r(103);var p=r(67);var h=r(574);var v=r(82);var m=r(11),y=m.List,g=m.Map,b=m.OrderedSet;var A=r(951);var _=r(559);var w=r(155);var E=r(952);var x=v("draft_tree_data_support");var k=" ";var S=" ";var O=new RegExp("\r","g");var M=new RegExp("\n","g");var D=new RegExp("^\n","g");var T=new RegExp(k,"g");var L=new RegExp(" ?","g");var C=new RegExp("​?","g");var j=["bold","bolder","500","600","700","800","900"];var N=["light","lighter","normal","100","200","300","400"];var I=["className","href","rel","target","title"];var P=["alt","className","height","src","width"];var R=(n={},i(n,d("public/DraftStyleDefault/depth0"),0),i(n,d("public/DraftStyleDefault/depth1"),1),i(n,d("public/DraftStyleDefault/depth2"),2),i(n,d("public/DraftStyleDefault/depth3"),3),i(n,d("public/DraftStyleDefault/depth4"),4),n);var F=g({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"});var Y=function e(t){var r={};t.mapKeys((function(e,t){var n=[t.element];if(t.aliasedElements!==undefined){n.push.apply(n,t.aliasedElements)}n.forEach((function(t){if(r[t]===undefined){r[t]=e}else if(typeof r[t]==="string"){r[t]=[r[t],e]}else{r[t].push(e)}}))}));return g(r)};var B=function e(t){if(w(t)){var r=t;if(r.style.fontFamily.includes("monospace")){return"CODE"}}return null};var H=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;Object.keys(R).some((function(e){if(t.classList.contains(e)){r=R[e]}}));return r};var U=function e(t){if(!A(t)){return false}var r=t;if(!r.href||r.protocol!=="http:"&&r.protocol!=="https:"&&r.protocol!=="mailto:"&&r.protocol!=="tel:"){return false}try{var n=new f(r.href);return true}catch(n){return false}};var z=function e(t){if(!E(t)){return false}var r=t;return!!(r.attributes.getNamedItem("src")&&r.attributes.getNamedItem("src").value)};var q=function e(t,r){if(!w(t)){return r}var n=t;var a=n.style.fontWeight;var i=n.style.fontStyle;var o=n.style.textDecoration;return r.withMutations((function(e){if(j.indexOf(a)>=0){e.add("BOLD")}else if(N.indexOf(a)>=0){e.remove("BOLD")}if(i==="italic"){e.add("ITALIC")}else if(i==="normal"){e.remove("ITALIC")}if(o==="underline"){e.add("UNDERLINE")}if(o==="line-through"){e.add("STRIKETHROUGH")}if(o==="none"){e.remove("UNDERLINE");e.remove("STRIKETHROUGH")}}))};var V=function e(t){return t==="ul"||t==="ol"};var W=function(){function e(e,t){i(this,"characterList",y());i(this,"currentBlockType","unstyled");i(this,"currentDepth",0);i(this,"currentEntity",null);i(this,"currentText","");i(this,"wrapper",null);i(this,"blockConfigs",[]);i(this,"contentBlocks",[]);i(this,"entityMap",c);i(this,"blockTypeMap",void 0);i(this,"disambiguate",void 0);this.clear();this.blockTypeMap=e;this.disambiguate=t}var t=e.prototype;t.clear=function e(){this.characterList=y();this.blockConfigs=[];this.currentBlockType="unstyled";this.currentDepth=0;this.currentEntity=null;this.currentText="";this.entityMap=c;this.wrapper=null;this.contentBlocks=[]};t.addDOMNode=function e(t){var r;this.contentBlocks=[];this.currentDepth=0;(r=this.blockConfigs).push.apply(r,this._toBlockConfigs([t],b()));this._trimCurrentText();if(this.currentText!==""){this.blockConfigs.push(this._makeBlockConfig())}return this};t.getContentBlocks=function e(){if(this.contentBlocks.length===0){if(x){this._toContentBlocks(this.blockConfigs)}else{this._toFlatContentBlocks(this.blockConfigs)}}return{contentBlocks:this.contentBlocks,entityMap:this.entityMap}};t._makeBlockConfig=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=t.key||p();var n=a({key:r,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:y(),prevSibling:null,nextSibling:null,childConfigs:[]},t);this.characterList=y();this.currentBlockType="unstyled";this.currentText="";return n};t._toBlockConfigs=function e(t,r){var n=[];for(var a=0;a<t.length;a++){var i=t[a];var o=i.nodeName.toLowerCase();if(o==="body"||V(o)){this._trimCurrentText();if(this.currentText!==""){n.push(this._makeBlockConfig())}var s=this.currentDepth;var u=this.wrapper;if(V(o)){this.wrapper=o;if(V(u)){this.currentDepth++}}n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),r));this.currentDepth=s;this.wrapper=u;continue}var l=this.blockTypeMap.get(o);if(l!==undefined){this._trimCurrentText();if(this.currentText!==""){n.push(this._makeBlockConfig())}var c=this.currentDepth;var f=this.wrapper;this.wrapper=o==="pre"?"pre":this.wrapper;if(typeof l!=="string"){l=this.disambiguate(o,this.wrapper)||l[0]||"unstyled"}if(!x&&w(i)&&(l==="unordered-list-item"||l==="ordered-list-item")){var d=i;this.currentDepth=H(d,this.currentDepth)}var h=p();var v=this._toBlockConfigs(Array.from(i.childNodes),r);this._trimCurrentText();n.push(this._makeBlockConfig({key:h,childConfigs:v,type:l}));this.currentDepth=c;this.wrapper=f;continue}if(o==="#text"){this._addTextNode(i,r);continue}if(o==="br"){this._addBreakNode(i,r);continue}if(z(i)){this._addImgNode(i,r);continue}if(U(i)){this._addAnchorNode(i,n,r);continue}var m=r;if(F.has(o)){m=m.add(F.get(o))}m=q(i,m);var y=B(i);if(y!=null){m=m.add(y)}n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),m))}return n};t._appendText=function e(t,r){var n;this.currentText+=t;var a=o.create({style:r,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(t.length).fill(a))};t._trimCurrentText=function e(){var t=this.currentText.length;var r=t-this.currentText.trimLeft().length;var n=this.currentText.trimRight().length;var a=this.characterList.findEntry((function(e){return e.getEntity()!==null}));r=a!==undefined?Math.min(r,a[0]):r;a=this.characterList.reverse().findEntry((function(e){return e.getEntity()!==null}));n=a!==undefined?Math.max(n,t-a[0]):n;if(r>n){this.currentText="";this.characterList=y()}else{this.currentText=this.currentText.slice(r,n);this.characterList=this.characterList.slice(r,n)}};t._addTextNode=function e(t,r){var n=t.textContent;var a=n.trim();if(a===""&&this.wrapper!=="pre"){n=" "}if(this.wrapper!=="pre"){n=n.replace(D,"");n=n.replace(M,S)}this._appendText(n,r)};t._addBreakNode=function e(t,r){if(!_(t)){return}this._appendText("\n",r)};t._addImgNode=function e(t,r){if(!E(t)){return}var n=t;var a={};P.forEach((function(e){var t=n.getAttribute(e);if(t){a[e]=t}}));this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",a);if(v("draftjs_fix_paste_for_img")){if(n.getAttribute("role")!=="presentation"){this._appendText("📷",r)}}else{this._appendText("📷",r)}this.currentEntity=null};t._addAnchorNode=function e(t,r,n){if(!A(t)){return}var a=t;var i={};I.forEach((function(e){var t=a.getAttribute(e);if(t){i[e]=t}}));i.url=new f(a.href).toString();this.currentEntity=this.entityMap.__create("LINK","MUTABLE",i||{});r.push.apply(r,this._toBlockConfigs(Array.from(t.childNodes),n));this.currentEntity=null};t._toContentBlocks=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var n=t.length-1;for(var i=0;i<=n;i++){var o=t[i];o.parent=r;o.prevSibling=i>0?t[i-1].key:null;o.nextSibling=i<n?t[i+1].key:null;o.children=y(o.childConfigs.map((function(e){return e.key})));this.contentBlocks.push(new u(a({},o)));this._toContentBlocks(o.childConfigs,o.key)}};t._hoistContainersInBlockConfigs=function e(t){var r=this;var n=y(t).flatMap((function(e){if(e.type!=="unstyled"||e.text!==""){return[e]}return r._hoistContainersInBlockConfigs(e.childConfigs)}));return n};t._toFlatContentBlocks=function e(t){var r=this;var n=this._hoistContainersInBlockConfigs(t);n.forEach((function(e){var t=r._extractTextFromBlockConfigs(e.childConfigs),n=t.text,i=t.characterList;r.contentBlocks.push(new s(a({},e,{text:e.text+n,characterList:e.characterList.concat(i)})))}))};t._extractTextFromBlockConfigs=function e(t){var r=t.length-1;var n="";var a=y();for(var i=0;i<=r;i++){var o=t[i];n+=o.text;a=a.concat(o.characterList);if(n!==""&&o.type!=="unstyled"){n+="\n";a=a.push(a.last())}var s=this._extractTextFromBlockConfigs(o.childConfigs);n+=s.text;a=a.concat(s.characterList)}return{text:n,characterList:a}};return e}();var K=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:h;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:l;t=t.trim().replace(O,"").replace(T,S).replace(L,"").replace(C,"");var a=r(t);if(!a){return null}var i=Y(n);var o=function e(t,r){if(t==="li"){return r==="ol"?"ordered-list-item":"unordered-list-item"}return null};return new W(i,o).addDOMNode(a).getContentBlocks()};e.exports=K},function(e,t,r){"use strict";var n=r(38);var a=r(16);var i=n.isBrowser("IE <= 9");function o(e){var t;var r=null;if(!i&&document.implementation&&document.implementation.createHTMLDocument){t=document.implementation.createHTMLDocument("foo");!t.documentElement?false?undefined:a(false):void 0;t.documentElement.innerHTML=e;r=t.getElementsByTagName("body")[0]}return r}e.exports=o},function(e,t,r){"use strict";var n=r(36);var a=r(20);var i=r(953);var o=r(37);var s={currentBlockContainsLink:function e(t){var r=t.getSelection();var n=t.getCurrentContent();var a=n.getEntityMap();return n.getBlockForKey(r.getAnchorKey()).getCharacterList().slice(r.getStartOffset(),r.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&a.__get(t).getType()==="LINK"}))},getCurrentBlockType:function e(t){var r=t.getSelection();return t.getCurrentContent().getBlockForKey(r.getStartKey()).getType()},getDataObjectForLinkURL:function e(t){return{url:t.toString()}},handleKeyCommand:function e(t,r,n){switch(r){case"bold":return s.toggleInlineStyle(t,"BOLD");case"italic":return s.toggleInlineStyle(t,"ITALIC");case"underline":return s.toggleInlineStyle(t,"UNDERLINE");case"code":return s.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(t);default:return null}},insertSoftNewline:function e(t){var r=n.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null);var i=a.push(t,r,"insert-characters");return a.forceSelection(i,r.getSelectionAfter())},onBackspace:function e(t){var r=t.getSelection();if(!r.isCollapsed()||r.getAnchorOffset()||r.getFocusOffset()){return null}var n=t.getCurrentContent();var i=r.getStartKey();var o=n.getBlockBefore(i);if(o&&o.getType()==="atomic"){var u=n.getBlockMap()["delete"](o.getKey());var l=n.merge({blockMap:u,selectionAfter:r});if(l!==n){return a.push(t,l,"remove-range")}}var c=s.tryToRemoveBlockStyle(t);if(c){return a.push(t,c,"change-block-type")}return null},onDelete:function e(t){var r=t.getSelection();if(!r.isCollapsed()){return null}var i=t.getCurrentContent();var o=r.getStartKey();var s=i.getBlockForKey(o);var u=s.getLength();if(r.getStartOffset()<u){return null}var l=i.getBlockAfter(o);if(!l||l.getType()!=="atomic"){return null}var c=r.merge({focusKey:l.getKey(),focusOffset:l.getLength()});var f=n.removeRange(i,c,"forward");if(f!==i){return a.push(t,f,"remove-range")}return null},onTab:function e(t,r,n){var o=r.getSelection();var s=o.getAnchorKey();if(s!==o.getFocusKey()){return r}var u=r.getCurrentContent();var l=u.getBlockForKey(s);var c=l.getType();if(c!=="unordered-list-item"&&c!=="ordered-list-item"){return r}t.preventDefault();var f=l.getDepth();if(!t.shiftKey&&f===n){return r}var d=i(u,o,t.shiftKey?-1:1,n);return a.push(r,d,"adjust-depth")},toggleBlockType:function e(t,r){var i=t.getSelection();var s=i.getStartKey();var u=i.getEndKey();var l=t.getCurrentContent();var c=i;if(s!==u&&i.getEndOffset()===0){var f=o(l.getBlockBefore(u));u=f.getKey();c=c.merge({anchorKey:s,anchorOffset:i.getStartOffset(),focusKey:u,focusOffset:f.getLength(),isBackward:false})}var d=l.getBlockMap().skipWhile((function(e,t){return t!==s})).reverse().skipWhile((function(e,t){return t!==u})).some((function(e){return e.getType()==="atomic"}));if(d){return t}var p=l.getBlockForKey(s).getType()===r?"unstyled":r;return a.push(t,n.setBlockType(l,c,p),"change-block-type")},toggleCode:function e(t){var r=t.getSelection();var n=r.getAnchorKey();var a=r.getFocusKey();if(r.isCollapsed()||n!==a){return s.toggleBlockType(t,"code-block")}return s.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function e(t,r){var i=t.getSelection();var o=t.getCurrentInlineStyle();if(i.isCollapsed()){return a.setInlineStyleOverride(t,o.has(r)?o.remove(r):o.add(r))}var s=t.getCurrentContent();var u;if(o.has(r)){u=n.removeInlineStyle(s,i,r)}else{u=n.applyInlineStyle(s,i,r)}return a.push(t,u,"change-inline-style")},toggleLink:function e(t,r,i){var o=n.applyEntity(t.getCurrentContent(),r,i);return a.push(t,o,"apply-entity")},tryToRemoveBlockStyle:function e(t){var r=t.getSelection();var a=r.getAnchorOffset();if(r.isCollapsed()&&a===0){var i=r.getAnchorKey();var o=t.getCurrentContent();var s=o.getBlockForKey(i);var u=s.getType();var l=o.getBlockBefore(i);if(u==="code-block"&&l&&l.getType()==="code-block"&&l.getLength()!==0){return null}if(u!=="unstyled"){return n.setBlockType(o,r,"unstyled")}}return null}};e.exports=s},function(e,t,r){"use strict";var n=r(273);var a=r(186);var i=r(38);var o=i.isPlatform("Mac OS X");var s=o&&i.isBrowser("Firefox < 29");var u=n.hasCommandModifier,l=n.isCtrlKeyCommand;function c(e){return o&&e.altKey||l(e)}function f(e){if(!u(e)){return null}return e.shiftKey?"redo":"undo"}function d(e){if(!o&&e.shiftKey){return null}return c(e)?"delete-word":"delete"}function p(e){if(u(e)&&o){return"backspace-to-start-of-line"}return c(e)?"backspace-word":"backspace"}function h(e){switch(e.keyCode){case 66:return u(e)?"bold":null;case 68:return l(e)?"delete":null;case 72:return l(e)?"backspace":null;case 73:return u(e)?"italic":null;case 74:return u(e)?"code":null;case 75:return o&&l(e)?"secondary-cut":null;case 77:return l(e)?"split-block":null;case 79:return l(e)?"split-block":null;case 84:return o&&l(e)?"transpose-characters":null;case 85:return u(e)?"underline":null;case 87:return o&&l(e)?"backspace-word":null;case 89:if(l(e)){return o?"secondary-paste":"redo"}return null;case 90:return f(e)||null;case a.RETURN:return"split-block";case a.DELETE:return d(e);case a.BACKSPACE:return p(e);case a.LEFT:return s&&u(e)?"move-selection-to-start-of-block":null;case a.RIGHT:return s&&u(e)?"move-selection-to-end-of-block":null;default:return null}}e.exports=h},function(e,t,r){"use strict";var n={stringify:function e(t){return"_"+String(t)},unstringify:function e(t){return t.slice(1)}};e.exports=n},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(970);var i=r(1);var o=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.autocompleteRef=i.createRef();return t}t.prototype.render=function(){var e=this.props.languages&&this.props.languages[this.props.value]&&this.props.languages[this.props.value][0]||this.props.value;return i.createElement(a.default,{autocompleteValues:this.uniqueLanguageNames(),disabled:this.props.disabled,name:this.props.name||"language",value:e,label:this.props.label,ref:this.autocompleteRef,onChange:this.props.onChange})};t.prototype.uniqueLanguageNames=function(){var e=[];for(var t=0,r=Object.values(this.props.languages||{});t<r.length;t++){var n=r[t];for(var a=0,i=n;a<i.length;a++){var o=i[a];if(e.indexOf(o)===-1){e.push(o)}}}return e};return t}(i.Component);t.default=o},function(e,t,r){r(972);e.exports=r(30).Object.assign},function(e,t,r){e.exports=!r(75)&&!r(108)((function(){return Object.defineProperty(r(581)("div"),"a",{get:function(){return 7}}).a!=7}))},function(e,t,r){var n=r(131);var a=r(74).document;var i=n(a)&&n(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t,r){var n=r(109);var a=r(110);var i=r(975)(false);var o=r(278)("IE_PROTO");e.exports=function(e,t){var r=a(e);var s=0;var u=[];var l;for(l in r)if(l!=o)n(r,l)&&u.push(l);while(t.length>s)if(n(r,l=t[s++])){~i(u,l)||u.push(l)}return u}},function(e,t,r){var n=r(276);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return n(e)=="String"?e.split(""):Object(e)}},function(e,t,r){var n=r(277);var a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},function(e,t,r){r(977);var n=r(30).Object;e.exports=function e(t,r){return n.create(t,r)}},function(e,t,r){r(980);e.exports=r(30).Object.setPrototypeOf},function(e,t,r){var n=r(158);var a=r(157);var i=r(110);var o=r(275);var s=r(109);var u=r(580);var l=Object.getOwnPropertyDescriptor;t.f=r(75)?l:function e(t,r){t=i(t);r=o(r,true);if(u)try{return l(t,r)}catch(e){}if(s(t,r))return a(!n.f.call(t,r),t[r])}},function(e,t,r){r(982);e.exports=r(30).Object.keys},function(e,t,r){var n=r(42);var a=r(30);var i=r(108);e.exports=function(e,t){var r=(a.Object||{})[e]||Object[e];var o={};o[e]=t(r);n(n.S+n.F*i((function(){r(1)})),"Object",o)}},function(e,t,r){var n=r(75);var a=r(132);var i=r(110);var o=r(158).f;e.exports=function(e){return function(t){var r=i(t);var s=a(r);var u=s.length;var l=0;var c=[];var f;while(u>l){f=s[l++];if(!n||o.call(r,f)){c.push(e?[f,r[f]]:r[f])}}return c}}},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=o;var a=n(r(989));var i=/^-ms-/;function o(e){return(0,a.default)(e.replace(i,"ms-"))}e.exports=t["default"]},function(e,t){e.exports="\t\n\v\f\r "+" \u2028\u2029\ufeff"},function(e,t,r){"use strict";r.r(t);r.d(t,"polyfill",(function(){return o}));function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);if(e!==null&&e!==undefined){this.setState(e)}}function a(e){function t(t){var r=this.constructor.getDerivedStateFromProps(e,t);return r!==null&&r!==undefined?r:null}this.setState(t.bind(this))}function i(e,t){try{var r=this.props;var n=this.state;this.props=e;this.state=t;this.__reactInternalSnapshotFlag=true;this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r;this.state=n}}n.__suppressDeprecationWarning=true;a.__suppressDeprecationWarning=true;i.__suppressDeprecationWarning=true;function o(e){var t=e.prototype;if(!t||!t.isReactComponent){throw new Error("Can only polyfill class components")}if(typeof e.getDerivedStateFromProps!=="function"&&typeof t.getSnapshotBeforeUpdate!=="function"){return e}var r=null;var o=null;var s=null;if(typeof t.componentWillMount==="function"){r="componentWillMount"}else if(typeof t.UNSAFE_componentWillMount==="function"){r="UNSAFE_componentWillMount"}if(typeof t.componentWillReceiveProps==="function"){o="componentWillReceiveProps"}else if(typeof t.UNSAFE_componentWillReceiveProps==="function"){o="UNSAFE_componentWillReceiveProps"}if(typeof t.componentWillUpdate==="function"){s="componentWillUpdate"}else if(typeof t.UNSAFE_componentWillUpdate==="function"){s="UNSAFE_componentWillUpdate"}if(r!==null||o!==null||s!==null){var u=e.displayName||e.name;var l=typeof e.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+l+" but also contains the following legacy lifecycles:"+(r!==null?"\n "+r:"")+(o!==null?"\n "+o:"")+(s!==null?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\n"+"https://fb.me/react-async-component-lifecycle-hooks")}if(typeof e.getDerivedStateFromProps==="function"){t.componentWillMount=n;t.componentWillReceiveProps=a}if(typeof t.getSnapshotBeforeUpdate==="function"){if(typeof t.componentDidUpdate!=="function"){throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype")}t.componentWillUpdate=i;var c=t.componentDidUpdate;t.componentDidUpdate=function e(t,r,n){var a=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,t,r,a)}}return e}},function(e,t,r){"use strict";t.__esModule=true;t.classNamesShape=t.timeoutsShape=void 0;var n=a(r(0));function a(e){return e&&e.__esModule?e:{default:e}}var i=false?undefined:null;t.timeoutsShape=i;var o=false?undefined:null;t.classNamesShape=o},function(e,t,r){r(596);r(1001);e.exports=r(30).Array.from},function(e,t,r){"use strict";var n=r(999)(true);r(597)(String,"String",(function(e){this._t=String(e);this._i=0}),(function(){var e=this._t;var t=this._i;var r;if(t>=e.length)return{value:undefined,done:true};r=n(e,t);this._i+=r.length;return{value:r,done:false}}))},function(e,t,r){"use strict";var n=r(192);var a=r(42);var i=r(598);var o=r(129);var s=r(159);var u=r(1e3);var l=r(284);var c=r(599);var f=r(68)("iterator");var d=!([].keys&&"next"in[].keys());var p="@@iterator";var h="keys";var v="values";var m=function(){return this};e.exports=function(e,t,r,y,g,b,A){u(r,t,y);var _=function(e){if(!d&&e in k)return k[e];switch(e){case h:return function t(){return new r(this,e)};case v:return function t(){return new r(this,e)}}return function t(){return new r(this,e)}};var w=t+" Iterator";var E=g==v;var x=false;var k=e.prototype;var S=k[f]||k[p]||g&&k[g];var O=S||_(g);var M=g?!E?O:_("entries"):undefined;var D=t=="Array"?k.entries||S:S;var T,L,C;if(D){C=c(D.call(new e));if(C!==Object.prototype&&C.next){l(C,w,true);if(!n&&typeof C[f]!="function")o(C,f,m)}}if(E&&S&&S.name!==v){x=true;O=function e(){return S.call(this)}}if((!n||A)&&(d||x||!k[f])){o(k,f,O)}s[t]=O;s[w]=m;if(g){T={values:E?O:_(v),keys:b?O:_(h),entries:M};if(A)for(L in T){if(!(L in k))i(k,L,T[L])}else a(a.P+a.F*(d||x),t,T)}return T}},function(e,t,r){e.exports=r(129)},function(e,t,r){var n=r(109);var a=r(133);var i=r(278)("IE_PROTO");var o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){e=a(e);if(n(e,i))return e[i];if(typeof e.constructor=="function"&&e instanceof e.constructor){return e.constructor.prototype}return e instanceof Object?o:null}},function(e,t,r){"use strict";t.__esModule=true;t.default=function(e,t,r,n){(0,a.default)(e,t,r,n);return{remove:function a(){(0,o.default)(e,t,r,n)}}};var n=r(285);var a=s(n);var i=r(286);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=i;var a=n(r(602));function i(e,t){if(e.classList)e.classList.add(t);else if(!(0,a.default)(e,t))if(typeof e.className==="string")e.className=e.className+" "+t;else e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t)}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=n;function n(e,t){if(e.classList)return!!t&&e.classList.contains(t);else return(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}e.exports=t["default"]},function(e,t,r){"use strict";function n(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function e(t,r){if(t.classList)t.classList.remove(r);else if(typeof t.className==="string")t.className=n(t.className,r);else t.setAttribute("class",n(t.className&&t.className.baseVal||"",r))}},function(e,t,r){"use strict";t.__esModule=true;var n=r(0);var a=y(n);var i=r(194);var o=y(i);var s=r(1);var u=y(s);var l=r(18);var c=y(l);var f=r(196);var d=y(f);var p=r(134);var h=y(p);var v=r(1016);var m=y(v);function y(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function b(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function A(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var _=function(e){A(t,e);function t(){var r,n,a;g(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++){o[s]=arguments[s]}return a=(r=(n=b(this,e.call.apply(e,[this].concat(o))),n),n.setContainer=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:n.props;n._portalContainerNode=(0,d.default)(e.container,(0,h.default)(n).body)},n.getMountNode=function(){return n._portalContainerNode},r),b(n,a)}t.prototype.componentDidMount=function e(){this.setContainer();this.forceUpdate(this.props.onRendered)};t.prototype.componentWillReceiveProps=function e(t){if(t.container!==this.props.container){this.setContainer(t)}};t.prototype.componentWillUnmount=function e(){this._portalContainerNode=null};t.prototype.render=function e(){return this.props.children&&this._portalContainerNode?c.default.createPortal(this.props.children,this._portalContainerNode):null};return t}(u.default.Component);_.displayName="Portal";_.propTypes={container:a.default.oneOfType([o.default,a.default.func]),onRendered:a.default.func};t.default=c.default.createPortal?_:m.default;e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=s;var a=n(r(93));var i=n(r(195));var o=n(r(119));function s(e){var t=(0,o.default)(e),r=(0,i.default)(t),n=t&&t.documentElement,s={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,a.default)(n,e))return s;if(e.getBoundingClientRect!==undefined)s=e.getBoundingClientRect();s={top:s.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:s.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0),width:(s.width==null?e.offsetWidth:s.width)||0,height:(s.height==null?e.offsetHeight:s.height)||0};return s}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=i;var a=n(r(195));function i(e,t){var r=(0,a.default)(e);if(t===undefined)return r?"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop:e.scrollTop;if(r)r.scrollTo("pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft,t);else e.scrollTop=t}e.exports=t["default"]},function(e,t,r){var n=r(276);e.exports=Array.isArray||function e(t){return n(t)=="Array"}},function(e,t,r){(function(t){var r=typeof t=="object"&&t&&t.Object===Object&&t;e.exports=r}).call(this,r(25))},function(e,t,r){var n=r(1040),a=r(290),i=r(12),o=r(291),s=r(292),u=r(610);var l=Object.prototype;var c=l.hasOwnProperty;function f(e,t){var r=i(e),l=!r&&a(e),f=!r&&!l&&o(e),d=!r&&!l&&!f&&u(e),p=r||l||f||d,h=p?n(e.length,String):[],v=h.length;for(var m in e){if((t||c.call(e,m))&&!(p&&(m=="length"||f&&(m=="offset"||m=="parent")||d&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||s(m,v)))){h.push(m)}}return h}e.exports=f},function(e,t,r){var n=r(1043),a=r(160),i=r(294);var o=i&&i.isTypedArray;var s=o?a(o):n;e.exports=s},function(e,t){function r(e,t){return function(r){return e(t(r))}}e.exports=r},function(e,t,r){var n=r(137),a=r(52),i=r(624),o=r(12);function s(e,t){var r=o(e)?n:i;return r(e,a(t,3))}e.exports=s},function(e,t){var r=Function.prototype;var n=r.toString;function a(e){if(e!=null){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}e.exports=a},function(e,t,r){var n=r(301),a=r(615),i=r(302);var o=1,s=2;function u(e,t,r,u,l,c){var f=r&o,d=e.length,p=t.length;if(d!=p&&!(f&&p>d)){return false}var h=c.get(e);var v=c.get(t);if(h&&v){return h==t&&v==e}var m=-1,y=true,g=r&s?new n:undefined;c.set(e,t);c.set(t,e);while(++m<d){var b=e[m],A=t[m];if(u){var _=f?u(A,b,m,t,e,c):u(b,A,m,e,t,c)}if(_!==undefined){if(_){continue}y=false;break}if(g){if(!a(t,(function(e,t){if(!i(g,t)&&(b===e||l(b,e,r,u,c))){return g.push(t)}}))){y=false;break}}else if(!(b===A||l(b,A,r,u,c))){y=false;break}}c["delete"](e);c["delete"](t);return y}e.exports=u},function(e,t){function r(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)){return true}}return false}e.exports=r},function(e,t,r){var n=r(60);var a=n.Uint8Array;e.exports=a},function(e,t,r){var n=r(618),a=r(305),i=r(136);function o(e){return n(e,i,a)}e.exports=o},function(e,t,r){var n=r(304),a=r(12);function i(e,t,r){var i=t(e);return a(e)?i:n(i,r(e))}e.exports=i},function(e,t){function r(e,t){var r=-1,n=e==null?0:e.length,a=0,i=[];while(++r<n){var o=e[r];if(t(o,r,e)){i[a++]=o}}return i}e.exports=r},function(e,t){function r(){return[]}e.exports=r},function(e,t,r){var n=r(113),a=r(60);var i=n(a,"Set");e.exports=i},function(e,t,r){var n=r(27);function a(e){return e===e&&!n(e)}e.exports=a},function(e,t){function r(e,t){return function(r){if(r==null){return false}return r[e]===t&&(t!==undefined||e in Object(r))}}e.exports=r},function(e,t,r){var n=r(206),a=r(111);function i(e,t){var r=-1,i=a(e)?Array(e.length):[];n(e,(function(e,n,a){i[++r]=t(e,n,a)}));return i}e.exports=i},function(e,t,r){var n=r(297),a=r(1100),i=r(626),o=r(1101),s=r(1102),u=r(1105),l=r(1106),c=r(1107),f=r(1108),d=r(617),p=r(629),h=r(203),v=r(1109),m=r(1110),y=r(1115),g=r(12),b=r(291),A=r(1117),_=r(27),w=r(1119),E=r(136),x=r(308);var k=1,S=2,O=4;var M="[object Arguments]",D="[object Array]",T="[object Boolean]",L="[object Date]",C="[object Error]",j="[object Function]",N="[object GeneratorFunction]",I="[object Map]",P="[object Number]",R="[object Object]",F="[object RegExp]",Y="[object Set]",B="[object String]",H="[object Symbol]",U="[object WeakMap]";var z="[object ArrayBuffer]",q="[object DataView]",V="[object Float32Array]",W="[object Float64Array]",K="[object Int8Array]",G="[object Int16Array]",Q="[object Int32Array]",J="[object Uint8Array]",Z="[object Uint8ClampedArray]",X="[object Uint16Array]",$="[object Uint32Array]";var ee={};ee[M]=ee[D]=ee[z]=ee[q]=ee[T]=ee[L]=ee[V]=ee[W]=ee[K]=ee[G]=ee[Q]=ee[I]=ee[P]=ee[R]=ee[F]=ee[Y]=ee[B]=ee[H]=ee[J]=ee[Z]=ee[X]=ee[$]=true;ee[C]=ee[j]=ee[U]=false;function te(e,t,r,D,T,L){var C,I=t&k,P=t&S,F=t&O;if(r){C=T?r(e,D,T,L):r(e)}if(C!==undefined){return C}if(!_(e)){return e}var Y=g(e);if(Y){C=v(e);if(!I){return l(e,C)}}else{var B=h(e),H=B==j||B==N;if(b(e)){return u(e,I)}if(B==R||B==M||H&&!T){C=P||H?{}:y(e);if(!I){return P?f(e,s(C,e)):c(e,o(C,e))}}else{if(!ee[B]){return T?e:{}}C=m(e,B,I)}}L||(L=new n);var U=L.get(e);if(U){return U}L.set(e,C);if(w(e)){e.forEach((function(n){C.add(te(n,t,r,n,e,L))}))}else if(A(e)){e.forEach((function(n,a){C.set(a,te(n,t,r,a,e,L))}))}var z=F?P?p:d:P?x:E;var q=Y?undefined:z(e);a(q||e,(function(n,a){if(q){a=n;n=e[a]}i(C,a,te(n,t,r,a,e,L))}));return C}e.exports=te},function(e,t,r){var n=r(307),a=r(200);var i=Object.prototype;var o=i.hasOwnProperty;function s(e,t,r){var i=e[t];if(!(o.call(e,t)&&a(i,r))||r===undefined&&!(t in e)){n(e,t,r)}}e.exports=s},function(e,t,r){var n=r(113);var a=function(){try{var e=n(Object,"defineProperty");e({},"",{});return e}catch(e){}}();e.exports=a},function(e,t,r){var n=r(304),a=r(296),i=r(305),o=r(620);var s=Object.getOwnPropertySymbols;var u=!s?o:function(e){var t=[];while(e){n(t,i(e));e=a(e)}return t};e.exports=u},function(e,t,r){var n=r(618),a=r(628),i=r(308);function o(e){return n(e,i,a)}e.exports=o},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={show:false};r.showToolTip=r.showToolTip.bind(r);r.hideToolTip=r.hideToolTip.bind(r);return r}t.prototype.render=function(){return a.createElement("div",{className:"tool-tip-container",onMouseEnter:this.showToolTip,onMouseLeave:this.hideToolTip,role:"tooltip"},this.props.trigger,a.createElement("span",{className:"tool-tip "+(this.state.show?"":"hide")+" "+(this.props.direction?this.props.direction:""),dangerouslySetInnerHTML:{__html:this.props.text}}))};t.prototype.showToolTip=function(){this.setState({show:true})};t.prototype.hideToolTip=function(){this.setState({show:false})};return t}(a.Component);t.default=i},function(e,t,r){e.exports={default:r(1138),__esModule:true}},function(e,t,r){var n=r(582);var a=r(280).concat("length","prototype");t.f=Object.getOwnPropertyNames||function e(t){return n(t,a)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e,t){return function(r){return r<=t&&r>=e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.draggingDraggableSelector=t.dragSelector=t.pendingDropSelector=t.phaseSelector=undefined;var n=r(166);var a=t.phaseSelector=function e(t){return t.phase};var i=t.pendingDropSelector=function e(t){if(!t.drop||!t.drop.pending){return null}return t.drop.pending};var o=t.dragSelector=function e(t){return t.drag};var s=function e(t){return t.dimension.draggable};var u=t.draggingDraggableSelector=(0,n.createSelector)([a,o,i,s],(function(e,t,r,n){if(e==="DRAGGING"){if(!t){console.error("cannot get placeholder dimensions as there is an invalid drag state");return null}var a=n[t.current.id];return a}if(e==="DROP_ANIMATING"){if(!r){console.error("cannot get placeholder dimensions as there is an invalid drag state");return null}if(!r.result.destination){return null}var i=n[r.result.draggableId];return i}return null}))},function(e,t,r){"use strict";r.r(t);t["default"]=function(e){var t=[];var r=null;var n=function n(){for(var a=arguments.length,i=Array(a),o=0;o<a;o++){i[o]=arguments[o]}t=i;if(r){return r}r=requestAnimationFrame((function(){r=null;e.apply(undefined,t)}));return r};n.cancel=function(){if(!r){return}cancelAnimationFrame(r);r=null};var a=n;return a}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1187);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";t.__esModule=true;t["default"]={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}};e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.css=t.physics=undefined;var n=r(116);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}var o=t.physics=function(){var e={stiffness:1e3,damping:60,precision:.99};var t=(0,a.default)({},e);var r=(0,a.default)({},e,{stiffness:e.stiffness*2});return{standard:t,fast:r}}();var s=t.css={outOfTheWay:"transform 0.2s cubic-bezier(0.2, 0, 0, 1)"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=t.sloppyClickThreshold=5;t.default=function(e,t){return Math.abs(t.x-e.x)>=n||Math.abs(t.y-e.y)>=n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(326);var a=u(n);var i=r(209);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}var l=[a.enter,a.tab];t.default=function(e){if(l.indexOf(e.keyCode)>=0){(0,o.default)(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e){var t=e.getBoundingClientRect(),r=t.top,n=t.right,a=t.bottom,i=t.left;var o=(i+n)/2;var s=(r+a)/2;return{x:o,y:s}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 50 50","aria-hidden":"true"},n.createElement("path",{d:"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"},n.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"0.6s",repeatCount:"indefinite"})))};t.default=a},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return A}));var n=r(98);var a=r.n(n);var i=r(1);var o=r.n(i);var s=r(1397);var u=r(220);var l=["children"];function c(e,t){return v(e)||h(e,t)||d(e,t)||f()}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){if(!e)return;if(typeof e==="string")return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}function p(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++){n[r]=e[r]}return n}function h(e,t){var r=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r==null)return;var n=[];var a=true;var i=false;var o,s;try{for(r=r.call(e);!(a=(o=r.next()).done);a=true){n.push(o.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!a&&r["return"]!=null)r["return"]()}finally{if(i)throw s}}return n}function v(e){if(Array.isArray(e))return e}function m(e,t){if(e==null)return{};var r=y(e,t);var n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++){n=i[a];if(t.indexOf(n)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,n))continue;r[n]=e[n]}}return r}function y(e,t){if(e==null)return{};var r={};var n=Object.keys(e);var a,i;for(i=0;i<n.length;i++){a=n[i];if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}var g=0;var b=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var A=Object(i["memo"])((function e(t){var r=t.children,a=m(t,l);var o=_(a),s=c(o,2),f=s[0],d=s[1];Object(i["useEffect"])((function(){if(d){var e=E();++g;return function(){if(--g===0){e[b]=null}}}}),[]);return Object(n["jsx"])(u["a"].Provider,Object.assign({value:f},{children:r}),void 0)}));function _(e){if("manager"in e){var t={dragDropManager:e.manager};return[t,false]}var r=w(e.backend,e.context,e.options,e.debugMode);var n=!e.context;return[r,n]}function w(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:E();var r=arguments.length>2?arguments[2]:undefined;var n=arguments.length>3?arguments[3]:undefined;var a=t;if(!a[b]){a[b]={dragDropManager:Object(s["a"])(e,t,r,n)}}return a[b]}function E(){return typeof e!=="undefined"?e:window}}).call(this,r(25))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1217);class a{enqueueTask(e){const{queue:t,requestFlush:r}=this;if(!t.length){r();this.flushing=true}t[t.length]=e}constructor(){this.queue=[];this.pendingErrors=[];this.flushing=false;this.index=0;this.capacity=1024;this.flush=()=>{const{queue:e}=this;while(this.index<e.length){const t=this.index;this.index++;e[t].call();if(this.index>this.capacity){for(let t=0,r=e.length-this.index;t<r;t++){e[t]=e[t+this.index]}e.length-=this.index;this.index=0}}e.length=0;this.index=0;this.flushing=false};this.registerPendingError=e=>{this.pendingErrors.push(e);this.requestErrorThrow()};this.requestFlush=(0,n).makeRequestCall(this.flush);this.requestErrorThrow=(0,n).makeRequestCallFromTimer(()=>{if(this.pendingErrors.length){throw this.pendingErrors.shift()}})}}t.AsapQueue=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1218);class a{create(e){const t=this.freeTasks;const r=t.length?t.pop():new n.RawTask(this.onError,e=>t[t.length]=e);r.task=e;return r}constructor(e){this.onError=e;this.freeTasks=[]}}t.TaskFactory=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=r(1222);var i=r(1223);function o(e){var t=e.query,r=e.readOnly,o=e.selectedQueryId,s=e.onBooleanChange,u=e.onMove,l=e.onSelect,c=e.onRemove;if(t){if(t.and||t.or){return n.createElement(a.default,{query:t,readOnly:r,selectedQueryId:o,onBooleanChange:s,onMove:u,onSelect:l,onRemove:c})}return n.createElement(i.default,{query:t,readOnly:r,selected:t.id===o,onMove:u,onSelect:l,onRemove:c})}return n.createElement("span",null,"No filters configured.")}t.default=o},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(19);var o=r(212);var s=r(13);var u=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.textRef=a.createRef();r.state={text:r.props.text||"",editMode:!r.props.text};r.updateText=r.updateText.bind(r);r.startEditMode=r.startEditMode.bind(r);r.reset=r.reset.bind(r);return r}t.prototype.render=function(){var e=this;return a.createElement("div",null,this.state.editMode&&a.createElement("h3",null,a.createElement(i.default,{type:"text",placeholder:this.props.placeholder,value:this.state.text,optionalText:false,ref:this.textRef,"aria-label":this.props["aria-label"],onChange:function(t){return e.setText(t)}}),a.createElement(s.Button,{className:"inverted inline",callback:this.updateText,content:"Save "+this.props.placeholder,disabled:this.props.disableIfBlank&&!this.state.text.length})),!this.state.editMode&&a.createElement("h3",null,this.state.text,a.createElement(s.Button,{callback:this.startEditMode,className:"inverted inline",content:a.createElement("span",null,"Edit ",this.props.placeholder," ",a.createElement(o.default,null))})))};t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(e.text!==this.props.text){this.setState({text:e.text,editMode:!e.text})}};t.prototype.setText=function(e){this.setState({text:e})};t.prototype.updateText=function(){var e=this.textRef.current.getValue();this.setState({text:e,editMode:false});if(this.props.onUpdate){this.props.onUpdate(e)}};t.prototype.startEditMode=function(){this.setState({text:this.state.text,editMode:true})};t.prototype.getText=function(){if(this.state.editMode){var e=this.textRef.current.getValue();this.updateText();return e}else{return this.state.text}};t.prototype.reset=function(){this.setState({text:this.props.text,editMode:!this.props.text});if(this.props.onUpdate){this.props.onUpdate(this.props.text)}};return t}(a.Component);t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"68",height:"57.88234",viewBox:"0 0 68 57.88234","aria-hidden":"true"},n.createElement("title",null,"Hidden Icon"),n.createElement("path",{d:"M54.20147,13.85528l7.67984-7.67984a3.61726,3.61726,0,1,0-5.11558-5.11558L47.12957,10.696A40.31406,40.31406,0,0,0,34,8.44117c-18.77773,0-34,14-34,20.5C0,32.82209,5.42875,39.375,13.79853,44.02706L6.11869,51.7069a3.61726,3.61726,0,1,0,5.11558,5.11558l9.63616-9.63616A40.31406,40.31406,0,0,0,34,49.44116c18.77773,0,34-14,34-20.5C68,25.06025,62.57125,18.50732,54.20147,13.85528ZM19.791,28.94117a14.10561,14.10561,0,0,1,14.209-14,14.28974,14.28974,0,0,1,7.03672,1.84768l-4.55106,4.55106a7.99259,7.99259,0,0,0-10.0869,10.0869L21.775,36.0506A13.75949,13.75949,0,0,1,19.791,28.94117Zm14.209,14a14.28974,14.28974,0,0,1-7.03672-1.84768l4.55106-4.55106a7.99259,7.99259,0,0,0,10.0869-10.0869l4.62385-4.62385A13.75969,13.75969,0,0,1,48.209,28.94117,14.10566,14.10566,0,0,1,34,42.94115Z"}))};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"40.84054",viewBox:"0 0 48 40.84054","aria-hidden":"true"},n.createElement("title",null,"Reset Icon"),n.createElement("path",{d:"M14.30581,12.04054,25.36758,4.37413A2.4,2.4,0,0,0,22.63242.4296L2.25352,14.553,23.45977,29.54835a2.39954,2.39954,0,1,0,2.77031-3.91875L13.80146,16.84054H43.2v19.2H2.4a2.4,2.4,0,1,0,0,4.8H48v-28.8Z"}))};t.default=a},function(e,t,r){var n=r(329);var a=r(653);e.exports=r(141)?function(e,t,r){return n.f(e,t,a(1,r))}:function(e,t,r){e[t]=r;return e}},function(e,t,r){e.exports=!r(141)&&!r(90)((function(){return Object.defineProperty(r(652)("div"),"a",{get:function(){return 7}}).a!=7}))},function(e,t,r){var n=r(140);var a=r(78).document;var i=n(a)&&n(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t){e.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}},function(e,t,r){var n=r(78);var a=r(650);var i=r(215);var o=r(655)("src");var s=r(1239);var u="toString";var l=(""+s).split(u);r(167).inspectSource=function(e){return s.call(e)};(e.exports=function(e,t,r,s){var u=typeof r=="function";if(u)i(r,"name")||a(r,"name",t);if(e[t]===r)return;if(u)i(r,o)||a(r,o,e[t]?""+e[t]:l.join(String(t)));if(e===n){e[t]=r}else if(!s){delete e[t];a(e,t,r)}else if(e[t]){e[t]=r}else{a(e,t,r)}})(Function.prototype,u,(function e(){return typeof this=="function"&&this[o]||s.call(this)}))},function(e,t){var r=0;var n=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++r+n).toString(36))}},function(e,t,r){var n=r(167);var a=r(78);var i="__core-js_shared__";var o=a[i]||(a[i]={});(e.exports=function(e,t){return o[e]||(o[e]=t!==undefined?t:{})})("versions",[]).push({version:n.version,mode:r(1240)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(1241);e.exports=function(e,t,r){n(e);if(t===undefined)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=Math.log1p||function e(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(e,t,r){var n=r(1263);var a=r(653);var i=r(334);var o=r(330);var s=r(215);var u=r(651);var l=Object.getOwnPropertyDescriptor;t.f=r(141)?l:function e(t,r){t=i(t);r=o(r,true);if(u)try{return l(t,r)}catch(e){}if(s(t,r))return a(!n.f.call(t,r),t[r])}},function(e,t,r){var n=r(215);var a=r(334);var i=r(1266)(false);var o=r(661)("IE_PROTO");e.exports=function(e,t){var r=a(e);var s=0;var u=[];var l;for(l in r)if(l!=o)n(r,l)&&u.push(l);while(t.length>s)if(n(r,l=t[s++])){~i(u,l)||u.push(l)}return u}},function(e,t,r){var n=r(656)("keys");var a=r(655);e.exports=function(e){return n[e]||(n[e]=a(e))}},function(e,t,r){var n=r(333);e.exports=function(e,t){if(typeof e!="number"&&n(e)!="Number")throw TypeError(t);return+e}},function(e,t,r){var n=r(140);var a=Math.floor;e.exports=function e(t){return!n(t)&&isFinite(t)&&a(t)===t}},function(e,t,r){var n=r(1288);function a(e,t){var r=e==null?0:e.length;return!!r&&n(e,t,0)>-1}e.exports=a},function(e,t){function r(e,t,r,n){var a=e.length,i=r+(n?1:-1);while(n?i--:++i<a){if(t(e[i],i,e)){return i}}return-1}e.exports=r},function(e,t){function r(e,t,r){var n=-1,a=e==null?0:e.length;while(++n<a){if(r(t,e[n])){return true}}return false}e.exports=r},function(e,t,r){var n=r(112),a=r(668),i=r(669);function o(e,t){return i(a(e,t,n),e+"")}e.exports=o},function(e,t,r){var n=r(1294);var a=Math.max;function i(e,t,r){t=a(t===undefined?e.length-1:t,0);return function(){var i=arguments,o=-1,s=a(i.length-t,0),u=Array(s);while(++o<s){u[o]=i[t+o]}o=-1;var l=Array(t+1);while(++o<t){l[o]=i[o]}l[t]=r(u);return n(e,this,l)}}e.exports=i},function(e,t,r){var n=r(1295),a=r(1297);var i=a(n);e.exports=i},function(e,t,r){"use strict";t.__esModule=true;t.default=void 0;var n=s(r(0));var a=s(r(1));var i=r(593);var o=r(1303);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(e==null)return{};var r={};var n=Object.keys(e);var a,i;for(i=0;i<n.length;i++){a=n[i];if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function l(){l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};return l.apply(this,arguments)}function c(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}function f(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}var d=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))};var p={component:"div",childFactory:function e(t){return t}};var h=function(e){c(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;var a=n.handleExited.bind(f(f(n)));n.state={handleExited:a,firstRender:true};return n}var r=t.prototype;r.getChildContext=function e(){return{transitionGroup:{isMounting:!this.appeared}}};r.componentDidMount=function e(){this.appeared=true;this.mounted=true};r.componentWillUnmount=function e(){this.mounted=false};t.getDerivedStateFromProps=function e(t,r){var n=r.children,a=r.handleExited,i=r.firstRender;return{children:i?(0,o.getInitialChildMapping)(t,a):(0,o.getNextChildMapping)(t,n,a),firstRender:false}};r.handleExited=function e(t,r){var n=(0,o.getChildMapping)(this.props.children);if(t.key in n)return;if(t.props.onExited){t.props.onExited(r)}if(this.mounted){this.setState((function(e){var r=l({},e.children);delete r[t.key];return{children:r}}))}};r.render=function e(){var t=this.props,r=t.component,n=t.childFactory,i=u(t,["component","childFactory"]);var o=d(this.state.children).map(n);delete i.appear;delete i.enter;delete i.exit;if(r===null){return o}return a.default.createElement(r,i,o)};return t}(a.default.Component);h.childContextTypes={transitionGroup:n.default.object.isRequired};h.propTypes=false?undefined:{};h.defaultProps=p;var v=(0,i.polyfill)(h);t.default=v;e.exports=t["default"]},function(e,t,r){var n=r(27),a=r(138);var i=0/0;var o=/^\s+|\s+$/g;var s=/^[-+]0x[0-9a-f]+$/i;var u=/^0b[01]+$/i;var l=/^0o[0-7]+$/i;var c=parseInt;function f(e){if(typeof e=="number"){return e}if(a(e)){return i}if(n(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=n(t)?t+"":t}if(typeof e!="string"){return e===0?e:+e}e=e.replace(o,"");var r=u.test(e);return r||l.test(e)?c(e.slice(2),r?2:8):s.test(e)?i:+e}e.exports=f},function(e,t){function r(e,t){return e>t}e.exports=r},function(e,t){function r(e,t){return e<t}e.exports=r},function(e,t,r){var n;/*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE */(function(a){"use strict";var i=1e9,o={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},s=true,u="[DecimalError] ",l=u+"Invalid argument: ",c=u+"Exponent out of range: ",f=Math.floor,d=Math.pow,p=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,h,v=1e7,m=7,y=9007199254740991,g=f(y/m),b={};b.absoluteValue=b.abs=function(){var e=new this.constructor(this);if(e.s)e.s=1;return e};b.comparedTo=b.cmp=function(e){var t,r,n,a,i=this;e=new i.constructor(e);if(i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;n=i.d.length;a=e.d.length;for(t=0,r=n<a?n:a;t<r;++t){if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1}return n===a?0:n>a^i.s<0?1:-1};b.decimalPlaces=b.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*m;t=e.d[t];if(t)for(;t%10==0;t/=10)r--;return r<0?0:r};b.dividedBy=b.div=function(e){return E(this,new this.constructor(e))};b.dividedToIntegerBy=b.idiv=function(e){var t=this,r=t.constructor;return T(E(t,new r(e),0,1),r.precision)};b.equals=b.eq=function(e){return!this.cmp(e)};b.exponent=function(){return k(this)};b.greaterThan=b.gt=function(e){return this.cmp(e)>0};b.greaterThanOrEqualTo=b.gte=function(e){return this.cmp(e)>=0};b.isInteger=b.isint=function(){return this.e>this.d.length-2};b.isNegative=b.isneg=function(){return this.s<0};b.isPositive=b.ispos=function(){return this.s>0};b.isZero=function(){return this.s===0};b.lessThan=b.lt=function(e){return this.cmp(e)<0};b.lessThanOrEqualTo=b.lte=function(e){return this.cmp(e)<1};b.logarithm=b.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(e===void 0){e=new n(10)}else{e=new n(e);if(e.s<1||e.eq(h))throw Error(u+"NaN")}if(r.s<1)throw Error(u+(r.s?"NaN":"-Infinity"));if(r.eq(h))return new n(0);s=false;t=E(M(r,i),M(e,i),i);s=true;return T(t,a)};b.minus=b.sub=function(e){var t=this;e=new t.constructor(e);return t.s==e.s?L(t,e):A(t,(e.s=-e.s,e))};b.modulo=b.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;e=new n(e);if(!e.s)throw Error(u+"NaN");if(!r.s)return T(new n(r),a);s=false;t=E(r,e,0,1).times(e);s=true;return r.minus(t)};b.naturalExponential=b.exp=function(){return x(this)};b.naturalLogarithm=b.ln=function(){return M(this)};b.negated=b.neg=function(){var e=new this.constructor(this);e.s=-e.s||0;return e};b.plus=b.add=function(e){var t=this;e=new t.constructor(e);return t.s==e.s?A(t,e):L(t,(e.s=-e.s,e))};b.precision=b.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(l+e);t=k(a)+1;n=a.d.length-1;r=n*m+1;n=a.d[n];if(n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};b.squareRoot=b.sqrt=function(){var e,t,r,n,a,i,o,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error(u+"NaN")}e=k(l);s=false;a=Math.sqrt(+l);if(a==0||a==1/0){t=w(l.d);if((t.length+e)%2==0)t+="0";a=Math.sqrt(t);e=f((e+1)/2)-(e<0||e%2);if(a==1/0){t="5e"+e}else{t=a.toExponential();t=t.slice(0,t.indexOf("e")+1)+e}n=new c(t)}else{n=new c(a.toString())}r=c.precision;a=o=r+3;for(;;){i=n;n=i.plus(E(l,i,o+2)).times(.5);if(w(i.d).slice(0,o)===(t=w(n.d)).slice(0,o)){t=t.slice(o-3,o+1);if(a==o&&t=="4999"){T(i,r+1,0);if(i.times(i).eq(l)){n=i;break}}else if(t!="9999"){break}o+=4}}s=true;return T(n,r)};b.times=b.mul=function(e){var t,r,n,a,i,o,u,l,c,f=this,d=f.constructor,p=f.d,h=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);e.s*=f.s;r=f.e+e.e;l=p.length;c=h.length;if(l<c){i=p;p=h;h=i;o=l;l=c;c=o}i=[];o=l+c;for(n=o;n--;)i.push(0);for(n=c;--n>=0;){t=0;for(a=l+n;a>n;){u=i[a]+h[n]*p[a-n-1]+t;i[a--]=u%v|0;t=u/v|0}i[a]=(i[a]+t)%v|0}for(;!i[--o];)i.pop();if(t)++r;else i.shift();e.d=i;e.e=r;return s?T(e,d.precision):e};b.toDecimalPlaces=b.todp=function(e,t){var r=this,n=r.constructor;r=new n(r);if(e===void 0)return r;_(e,0,i);if(t===void 0)t=n.rounding;else _(t,0,8);return T(r,e+k(r)+1,t)};b.toExponential=function(e,t){var r,n=this,a=n.constructor;if(e===void 0){r=C(n,true)}else{_(e,0,i);if(t===void 0)t=a.rounding;else _(t,0,8);n=T(new a(n),e+1,t);r=C(n,true,e+1)}return r};b.toFixed=function(e,t){var r,n,a=this,o=a.constructor;if(e===void 0)return C(a);_(e,0,i);if(t===void 0)t=o.rounding;else _(t,0,8);n=T(new o(a),e+k(a)+1,t);r=C(n.abs(),false,e+k(n)+1);return a.isneg()&&!a.isZero()?"-"+r:r};b.toInteger=b.toint=function(){var e=this,t=e.constructor;return T(new t(e),k(e)+1,t.rounding)};b.toNumber=function(){return+this};b.toPower=b.pow=function(e){var t,r,n,a,i,o,l=this,c=l.constructor,d=12,p=+(e=new c(e));if(!e.s)return new c(h);l=new c(l);if(!l.s){if(e.s<1)throw Error(u+"Infinity");return l}if(l.eq(h))return l;n=c.precision;if(e.eq(h))return T(l,n);t=e.e;r=e.d.length-1;o=t>=r;i=l.s;if(!o){if(i<0)throw Error(u+"NaN")}else if((r=p<0?-p:p)<=y){a=new c(h);t=Math.ceil(n/m+4);s=false;for(;;){if(r%2){a=a.times(l);j(a.d,t)}r=f(r/2);if(r===0)break;l=l.times(l);j(l.d,t)}s=true;return e.s<0?new c(h).div(a):T(a,n)}i=i<0&&e.d[Math.max(t,r)]&1?-1:1;l.s=1;s=false;a=e.times(M(l,n+d));s=true;a=x(a);a.s=i;return a};b.toPrecision=function(e,t){var r,n,a=this,o=a.constructor;if(e===void 0){r=k(a);n=C(a,r<=o.toExpNeg||r>=o.toExpPos)}else{_(e,1,i);if(t===void 0)t=o.rounding;else _(t,0,8);a=T(new o(a),e,t);r=k(a);n=C(a,e<=r||r<=o.toExpNeg,e)}return n};b.toSignificantDigits=b.tosd=function(e,t){var r=this,n=r.constructor;if(e===void 0){e=n.precision;t=n.rounding}else{_(e,1,i);if(t===void 0)t=n.rounding;else _(t,0,8)}return T(new n(r),e,t)};b.toString=b.valueOf=b.val=b.toJSON=function(){var e=this,t=k(e),r=e.constructor;return C(e,t<=r.toExpNeg||t>=r.toExpPos)};function A(e,t){var r,n,a,i,o,u,l,c,f=e.constructor,d=f.precision;if(!e.s||!t.s){if(!t.s)t=new f(e);return s?T(t,d):t}l=e.d;c=t.d;o=e.e;a=t.e;l=l.slice();i=o-a;if(i){if(i<0){n=l;i=-i;u=c.length}else{n=c;a=o;u=l.length}o=Math.ceil(d/m);u=o>u?o+1:u+1;if(i>u){i=u;n.length=1}n.reverse();for(;i--;)n.push(0);n.reverse()}u=l.length;i=c.length;if(u-i<0){i=u;n=c;c=l;l=n}for(r=0;i;){r=(l[--i]=l[i]+c[i]+r)/v|0;l[i]%=v}if(r){l.unshift(r);++a}for(u=l.length;l[--u]==0;)l.pop();t.d=l;t.e=a;return s?T(t,d):t}function _(e,t,r){if(e!==~~e||e<t||e>r){throw Error(l+e)}}function w(e){var t,r,n,a=e.length-1,i="",o=e[0];if(a>0){i+=o;for(t=1;t<a;t++){n=e[t]+"";r=m-n.length;if(r)i+=O(r);i+=n}o=e[t];n=o+"";r=m-n.length;if(r)i+=O(r)}else if(o===0){return"0"}for(;o%10===0;)o/=10;return i+o}var E=function(){function e(e,t){var r,n=0,a=e.length;for(e=e.slice();a--;){r=e[a]*t+n;e[a]=r%v|0;n=r/v|0}if(n)e.unshift(n);return e}function t(e,t,r,n){var a,i;if(r!=n){i=r>n?1:-1}else{for(a=i=0;a<r;a++){if(e[a]!=t[a]){i=e[a]>t[a]?1:-1;break}}}return i}function r(e,t,r){var n=0;for(;r--;){e[r]-=n;n=e[r]<t[r]?1:0;e[r]=n*v+e[r]-t[r]}for(;!e[0]&&e.length>1;)e.shift()}return function(n,a,i,o){var s,l,c,f,d,p,h,y,g,b,A,_,w,E,x,S,O,M,D=n.constructor,L=n.s==a.s?1:-1,C=n.d,j=a.d;if(!n.s)return new D(n);if(!a.s)throw Error(u+"Division by zero");l=n.e-a.e;O=j.length;x=C.length;h=new D(L);y=h.d=[];for(c=0;j[c]==(C[c]||0);)++c;if(j[c]>(C[c]||0))--l;if(i==null){_=i=D.precision}else if(o){_=i+(k(n)-k(a))+1}else{_=i}if(_<0)return new D(0);_=_/m+2|0;c=0;if(O==1){f=0;j=j[0];_++;for(;(c<x||f)&&_--;c++){w=f*v+(C[c]||0);y[c]=w/j|0;f=w%j|0}}else{f=v/(j[0]+1)|0;if(f>1){j=e(j,f);C=e(C,f);O=j.length;x=C.length}E=O;g=C.slice(0,O);b=g.length;for(;b<O;)g[b++]=0;M=j.slice();M.unshift(0);S=j[0];if(j[1]>=v/2)++S;do{f=0;s=t(j,g,O,b);if(s<0){A=g[0];if(O!=b)A=A*v+(g[1]||0);f=A/S|0;if(f>1){if(f>=v)f=v-1;d=e(j,f);p=d.length;b=g.length;s=t(d,g,p,b);if(s==1){f--;r(d,O<p?M:j,p)}}else{if(f==0)s=f=1;d=j.slice()}p=d.length;if(p<b)d.unshift(0);r(g,d,b);if(s==-1){b=g.length;s=t(j,g,O,b);if(s<1){f++;r(g,O<b?M:j,b)}}b=g.length}else if(s===0){f++;g=[0]}y[c++]=f;if(s&&g[0]){g[b++]=C[E]||0}else{g=[C[E]];b=1}}while((E++<x||g[0]!==void 0)&&_--)}if(!y[0])y.shift();h.e=l;return T(h,o?i+k(h)+1:i)}}();function x(e,t){var r,n,a,i,o,u,l=0,f=0,p=e.constructor,v=p.precision;if(k(e)>16)throw Error(c+k(e));if(!e.s)return new p(h);if(t==null){s=false;u=v}else{u=t}o=new p(.03125);while(e.abs().gte(.1)){e=e.times(o);f+=5}n=Math.log(d(2,f))/Math.LN10*2+5|0;u+=n;r=a=i=new p(h);p.precision=u;for(;;){a=T(a.times(e),u);r=r.times(++l);o=i.plus(E(a,r,u));if(w(o.d).slice(0,u)===w(i.d).slice(0,u)){while(f--)i=T(i.times(i),u);p.precision=v;return t==null?(s=true,T(i,v)):i}i=o}}function k(e){var t=e.e*m,r=e.d[0];for(;r>=10;r/=10)t++;return t}function S(e,t,r){if(t>e.LN10.sd()){s=true;if(r)e.precision=r;throw Error(u+"LN10 precision limit exceeded")}return T(new e(e.LN10),t)}function O(e){var t="";for(;e--;)t+="0";return t}function M(e,t){var r,n,a,i,o,l,c,f,d,p=1,v=10,m=e,y=m.d,g=m.constructor,b=g.precision;if(m.s<1)throw Error(u+(m.s?"NaN":"-Infinity"));if(m.eq(h))return new g(0);if(t==null){s=false;f=b}else{f=t}if(m.eq(10)){if(t==null)s=true;return S(g,f)}f+=v;g.precision=f;r=w(y);n=r.charAt(0);i=k(m);if(Math.abs(i)<15e14){while(n<7&&n!=1||n==1&&r.charAt(1)>3){m=m.times(e);r=w(m.d);n=r.charAt(0);p++}i=k(m);if(n>1){m=new g("0."+r);i++}else{m=new g(n+"."+r.slice(1))}}else{c=S(g,f+2,b).times(i+"");m=M(new g(n+"."+r.slice(1)),f-v).plus(c);g.precision=b;return t==null?(s=true,T(m,b)):m}l=o=m=E(m.minus(h),m.plus(h),f);d=T(m.times(m),f);a=3;for(;;){o=T(o.times(d),f);c=l.plus(E(o,new g(a),f));if(w(c.d).slice(0,f)===w(l.d).slice(0,f)){l=l.times(2);if(i!==0)l=l.plus(S(g,f+2,b).times(i+""));l=E(l,new g(p),f);g.precision=b;return t==null?(s=true,T(l,b)):l}l=c;a+=2}}function D(e,t){var r,n,a;if((r=t.indexOf("."))>-1)t=t.replace(".","");if((n=t.search(/e/i))>0){if(r<0)r=n;r+=+t.slice(n+1);t=t.substring(0,n)}else if(r<0){r=t.length}for(n=0;t.charCodeAt(n)===48;)++n;for(a=t.length;t.charCodeAt(a-1)===48;)--a;t=t.slice(n,a);if(t){a-=n;r=r-n-1;e.e=f(r/m);e.d=[];n=(r+1)%m;if(r<0)n+=m;if(n<a){if(n)e.d.push(+t.slice(0,n));for(a-=m;n<a;)e.d.push(+t.slice(n,n+=m));t=t.slice(n);n=m-t.length}else{n-=a}for(;n--;)t+="0";e.d.push(+t);if(s&&(e.e>g||e.e<-g))throw Error(c+r)}else{e.s=0;e.e=0;e.d=[0]}return e}function T(e,t,r){var n,a,i,o,u,l,p,h,y=e.d;for(o=1,i=y[0];i>=10;i/=10)o++;n=t-o;if(n<0){n+=m;a=t;p=y[h=0]}else{h=Math.ceil((n+1)/m);i=y.length;if(h>=i)return e;p=i=y[h];for(o=1;i>=10;i/=10)o++;n%=m;a=n-m+o}if(r!==void 0){i=d(10,o-a-1);u=p/i%10|0;l=t<0||y[h+1]!==void 0||p%i;l=r<4?(u||l)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||l||r==6&&(n>0?a>0?p/d(10,o-a):0:y[h-1])%10&1||r==(e.s<0?8:7))}if(t<1||!y[0]){if(l){i=k(e);y.length=1;t=t-i-1;y[0]=d(10,(m-t%m)%m);e.e=f(-t/m)||0}else{y.length=1;y[0]=e.e=e.s=0}return e}if(n==0){y.length=h;i=1;h--}else{y.length=h+1;i=d(10,m-n);y[h]=a>0?(p/d(10,o-a)%d(10,a)|0)*i:0}if(l){for(;;){if(h==0){if((y[0]+=i)==v){y[0]=1;++e.e}break}else{y[h]+=i;if(y[h]!=v)break;y[h--]=0;i=1}}}for(n=y.length;y[--n]===0;)y.pop();if(s&&(e.e>g||e.e<-g)){throw Error(c+k(e))}return e}function L(e,t){var r,n,a,i,o,u,l,c,f,d,p=e.constructor,h=p.precision;if(!e.s||!t.s){if(t.s)t.s=-t.s;else t=new p(e);return s?T(t,h):t}l=e.d;d=t.d;n=t.e;c=e.e;l=l.slice();o=c-n;if(o){f=o<0;if(f){r=l;o=-o;u=d.length}else{r=d;n=c;u=l.length}a=Math.max(Math.ceil(h/m),u)+2;if(o>a){o=a;r.length=1}r.reverse();for(a=o;a--;)r.push(0);r.reverse()}else{a=l.length;u=d.length;f=a<u;if(f)u=a;for(a=0;a<u;a++){if(l[a]!=d[a]){f=l[a]<d[a];break}}o=0}if(f){r=l;l=d;d=r;t.s=-t.s}u=l.length;for(a=d.length-u;a>0;--a)l[u++]=0;for(a=d.length;a>o;){if(l[--a]<d[a]){for(i=a;i&&l[--i]===0;)l[i]=v-1;--l[i];l[a]+=v}l[a]-=d[a]}for(;l[--u]===0;)l.pop();for(;l[0]===0;l.shift())--n;if(!l[0])return new p(0);t.d=l;t.e=n;return s?T(t,h):t}function C(e,t,r){var n,a=k(e),i=w(e.d),o=i.length;if(t){if(r&&(n=r-o)>0){i=i.charAt(0)+"."+i.slice(1)+O(n)}else if(o>1){i=i.charAt(0)+"."+i.slice(1)}i=i+(a<0?"e":"e+")+a}else if(a<0){i="0."+O(-a-1)+i;if(r&&(n=r-o)>0)i+=O(n)}else if(a>=o){i+=O(a+1-o);if(r&&(n=r-a-1)>0)i=i+"."+O(n)}else{if((n=a+1)<o)i=i.slice(0,n)+"."+i.slice(n);if(r&&(n=r-o)>0){if(a+1===o)i+=".";i+=O(n)}}return e.s<0?"-"+i:i}function j(e,t){if(e.length>t){e.length=t;return true}}function N(e){var t,r,n;function a(e){var t=this;if(!(t instanceof a))return new a(e);t.constructor=a;if(e instanceof a){t.s=e.s;t.e=e.e;t.d=(e=e.d)?e.slice():e;return}if(typeof e==="number"){if(e*0!==0){throw Error(l+e)}if(e>0){t.s=1}else if(e<0){e=-e;t.s=-1}else{t.s=0;t.e=0;t.d=[0];return}if(e===~~e&&e<1e7){t.e=0;t.d=[e];return}return D(t,e.toString())}else if(typeof e!=="string"){throw Error(l+e)}if(e.charCodeAt(0)===45){e=e.slice(1);t.s=-1}else{t.s=1}if(p.test(e))D(t,e);else throw Error(l+e)}a.prototype=b;a.ROUND_UP=0;a.ROUND_DOWN=1;a.ROUND_CEIL=2;a.ROUND_FLOOR=3;a.ROUND_HALF_UP=4;a.ROUND_HALF_DOWN=5;a.ROUND_HALF_EVEN=6;a.ROUND_HALF_CEIL=7;a.ROUND_HALF_FLOOR=8;a.clone=N;a.config=a.set=I;if(e===void 0)e={};if(e){n=["precision","rounding","toExpNeg","toExpPos","LN10"];for(t=0;t<n.length;)if(!e.hasOwnProperty(r=n[t++]))e[r]=this[r]}a.config(e);return a}function I(e){if(!e||typeof e!=="object"){throw Error(u+"Object expected")}var t,r,n,a=["precision",1,i,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3){if((n=e[r=a[t]])!==void 0){if(f(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(l+r+": "+n)}}if((n=e[r="LN10"])!==void 0){if(n==Math.LN10)this[r]=new this(n);else throw Error(l+r+": "+n)}return this}o=N(o);o["default"]=o.Decimal=o;h=new o(1);if(true){!(n=function(){return o}.call(t,r,t,e),n!==undefined&&(e.exports=n))}else{}})(this)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=t.reverse=t.compose=t.map=t.range=t.curry=t.PLACE_HOLDER=void 0;function n(e){return o(e)||i(e)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function i(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function o(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++){r[t]=e[t]}return r}}var s=function e(t){return t};var u={"@@functional/placeholder":true};t.PLACE_HOLDER=u;var l=function e(t){return t===u};var c=function e(t){return function e(){if(arguments.length===0||arguments.length===1&&l(arguments.length<=0?undefined:arguments[0])){return e}return t.apply(void 0,arguments)}};var f=function e(t,r){if(t===1){return r}return c((function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++){i[o]=arguments[o]}var s=i.filter((function(e){return e!==u})).length;if(s>=t){return r.apply(void 0,i)}return e(t-s,c((function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++){t[a]=arguments[a]}var o=i.map((function(e){return l(e)?t.shift():e}));return r.apply(void 0,n(o).concat(t))})))}))};var d=function e(t){return f(t.length,t)};t.curry=d;var p=function e(t,r){var n=[];for(var a=t;a<r;++a){n[a-t]=a}return n};t.range=p;var h=d((function(e,t){if(Array.isArray(t)){return t.map(e)}return Object.keys(t).map((function(e){return t[e]})).map(e)}));t.map=h;var v=function e(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++){r[n]=arguments[n]}if(!r.length){return s}var a=r.reverse();var i=a[0];var o=a.slice(1);return function(){return o.reduce((function(e,t){return t(e)}),i.apply(void 0,arguments))}};t.compose=v;var m=function e(t){if(Array.isArray(t)){return t.reverse()}return t.split("").reverse.join("")};t.reverse=m;var y=function e(t){var r=null;var n=null;return function(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++){a[i]=arguments[i]}if(r&&a.every((function(e,t){return e===r[t]}))){return n}r=a;n=t.apply(void 0,a);return n}};t.memoize=y},function(e,t,r){var n=r(671);var a=1/0,i=17976931348623157e292;function o(e){if(!e){return e===0?e:0}e=n(e);if(e===a||e===-a){var t=e<0?-1:1;return t*i}return e===e?e:0}e.exports=o},function(e,t,r){"use strict";var n=r(340);var a=Object.prototype.hasOwnProperty;var i=Array.isArray;var o=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var s=function e(t){while(t.length>1){var r=t.pop();var n=r.obj[r.prop];if(i(n)){var a=[];for(var o=0;o<n.length;++o){if(typeof n[o]!=="undefined"){a.push(n[o])}}r.obj[r.prop]=a}}};var u=function e(t,r){var n=r&&r.plainObjects?Object.create(null):{};for(var a=0;a<t.length;++a){if(typeof t[a]!=="undefined"){n[a]=t[a]}}return n};var l=function e(t,r,n){if(!r){return t}if(typeof r!=="object"){if(i(t)){t.push(r)}else if(t&&typeof t==="object"){if(n&&(n.plainObjects||n.allowPrototypes)||!a.call(Object.prototype,r)){t[r]=true}}else{return[t,r]}return t}if(!t||typeof t!=="object"){return[t].concat(r)}var o=t;if(i(t)&&!i(r)){o=u(t,n)}if(i(t)&&i(r)){r.forEach((function(r,i){if(a.call(t,i)){var o=t[i];if(o&&typeof o==="object"&&r&&typeof r==="object"){t[i]=e(o,r,n)}else{t.push(r)}}else{t[i]=r}}));return t}return Object.keys(r).reduce((function(t,i){var o=r[i];if(a.call(t,i)){t[i]=e(t[i],o,n)}else{t[i]=o}return t}),o)};var c=function e(t,r){return Object.keys(r).reduce((function(e,t){e[t]=r[t];return e}),t)};var f=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1"){return n.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(n)}catch(e){return n}};var d=function e(t,r,a,i,s){if(t.length===0){return t}var u=t;if(typeof t==="symbol"){u=Symbol.prototype.toString.call(t)}else if(typeof t!=="string"){u=String(t)}if(a==="iso-8859-1"){return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}))}var l="";for(var c=0;c<u.length;++c){var f=u.charCodeAt(c);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||s===n.RFC1738&&(f===40||f===41)){l+=u.charAt(c);continue}if(f<128){l=l+o[f];continue}if(f<2048){l=l+(o[192|f>>6]+o[128|f&63]);continue}if(f<55296||f>=57344){l=l+(o[224|f>>12]+o[128|f>>6&63]+o[128|f&63]);continue}c+=1;f=65536+((f&1023)<<10|u.charCodeAt(c)&1023);l+=o[240|f>>18]+o[128|f>>12&63]+o[128|f>>6&63]+o[128|f&63]}return l};var p=function e(t){var r=[{obj:{o:t},prop:"o"}];var n=[];for(var a=0;a<r.length;++a){var i=r[a];var o=i.obj[i.prop];var u=Object.keys(o);for(var l=0;l<u.length;++l){var c=u[l];var f=o[c];if(typeof f==="object"&&f!==null&&n.indexOf(f)===-1){r.push({obj:o,prop:c});n.push(f)}}}s(r);return t};var h=function e(t){return Object.prototype.toString.call(t)==="[object RegExp]"};var v=function e(t){if(!t||typeof t!=="object"){return false}return!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))};var m=function e(t,r){return[].concat(t,r)};var y=function e(t,r){if(i(t)){var n=[];for(var a=0;a<t.length;a+=1){n.push(r(t[a]))}return n}return r(t)};e.exports={arrayToObject:u,assign:c,combine:m,compact:p,decode:f,encode:d,isBuffer:v,isRegExp:h,maybeMap:y,merge:l}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(1350);var o=r(1351);var s=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.addAnnouncement=r.addAnnouncement.bind(r);r.deleteAnnouncement=r.deleteAnnouncement.bind(r);r.editAnnouncement=r.editAnnouncement.bind(r);r.getValue=r.getValue.bind(r);r.state={currentAnnouncements:Array.isArray(r.props.value)?r.props.value:[],editing:null};return r}t.prototype.addAnnouncement=function(e){var t=this.state.currentAnnouncements;if(!e.id){var r=["temp_1","temp_2","temp_3"].find((function(e){return!t.map((function(e){return e.id})).includes(e)}));e.id=r}this.setState({currentAnnouncements:t.concat(e),editing:null})};t.prototype.deleteAnnouncement=function(e){if(window.confirm("This will remove this announcement from your list. Are you sure you want to continue?")){this.setState({currentAnnouncements:this.state.currentAnnouncements.filter((function(t){return t.id!==e})),editing:null})}};t.prototype.editAnnouncement=function(e){var t=this.state.currentAnnouncements.find((function(t){return t.id===e}));var r=this.state.currentAnnouncements.filter((function(t){return t.id!==e}));if(this.state.editing&&this.state.editing.id!==e){r=r.concat(this.state.editing)}this.setState({editing:t,currentAnnouncements:r})};t.prototype.renderAnnouncement=function(e){return a.createElement(o.default,{key:e.id,content:e.content,start:e.start,finish:e.finish,id:e.id,delete:this.deleteAnnouncement,edit:this.editAnnouncement})};t.prototype.renderList=function(){var e=this;var t=function(e,t){if(e.start<t.start){return-1}else if(e.start>t.start){return 1}};return a.createElement("ul",{className:"announcements-ul"},a.createElement("h4",null,"Scheduled Announcements:"),a.createElement("p",null,"You can have a maximum of 3 announcements."),a.createElement("hr",null),Array.isArray(this.state.currentAnnouncements)&&this.state.currentAnnouncements.sort(t).map((function(t){return a.createElement("li",{key:t.id},e.renderAnnouncement(t))})))};t.prototype.renderForm=function(){var e,t,r,n;return a.createElement(i.default,{add:this.addAnnouncement,content:(e=this.state.editing)===null||e===void 0?void 0:e.content,start:(t=this.state.editing)===null||t===void 0?void 0:t.start,finish:(r=this.state.editing)===null||r===void 0?void 0:r.finish,id:(n=this.state.editing)===null||n===void 0?void 0:n.id})};t.prototype.render=function(){return a.createElement("div",{className:"announcements-section"},this.state.currentAnnouncements.length>0&&this.renderList(),this.state.currentAnnouncements.length<3&&this.renderForm())};t.prototype.getValue=function(){return this.state.currentAnnouncements.map((function(e){return e.id.match(/temp_/)?{content:e.content,start:e.start,finish:e.finish}:e}))};return t}(a.Component);t.default=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(0);var o=r(69);var s=r(1354);var u=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return a.createElement("div",null,e.prototype.render.call(this),a.createElement(s.default,{registerLibrary:this.context.registerLibrary,protocol:this.state.protocol,item:this.props.item,data:this.props.data,disabled:this.props.disabled,save:this.props.save,urlBase:this.props.urlBase,listDataKey:this.props.listDataKey}))};t.contextTypes={registerLibrary:i.func};return t}(o.default);t.default=u},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(0);var i=r(33);var o=r(14);var s=r(8);var u=r(1357);var l=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=u.default;t.listDataKey="individualAdmins";t.itemTypeName="individual admin";t.urlBase="/admin/web/config/individualAdmins/";t.identifierKey="email";t.labelKey="email";return t}t.prototype.canCreate=function(){return this.context.admin&&this.context.admin.isLibraryManagerOfSomeLibrary()};t.prototype.canDelete=function(){return this.context.admin&&this.context.admin.isSystemAdmin()};t.prototype.canEdit=function(){return this.context.admin&&this.context.admin.isLibraryManagerOfSomeLibrary()};t.prototype.getHeaders=function(){var e=this.props.settingUp?"Welcome!":"Individual admin configuration";var t=this.props.settingUp?"Set up your system admin account":"Create a new individual admin";return{h2:e,h3:t}};t.prototype.getClassName=function(){var e=this.props.settingUp?"set-up":"";return e};t.prototype.save=function(e){var t=this;this.editItem(e).then((function(){if(t.props.settingUp){window.location.reload();return}}))};t.contextTypes={admin:a.object.isRequired};return t}(i.default);t.IndividualAdmins=l;function c(e,t){var r=Object.assign({},e.editor.individualAdmins&&e.editor.individualAdmins.data||{});if(e.editor.libraries&&e.editor.libraries.data){r.allLibraries=e.editor.libraries.data.libraries}return{data:r,responseBody:e.editor.individualAdmins&&e.editor.individualAdmins.successMessage,fetchError:e.editor.individualAdmins.fetchError,formError:e.editor.individualAdmins.formError,isFetching:e.editor.individualAdmins.isFetching||e.editor.individualAdmins.isEditing}}function f(e,t){var r=new s.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchIndividualAdmins())},editItem:function(t){return e(r.editIndividualAdmin(t))},deleteItem:function(t){return e(r.deleteIndividualAdmin(t))}}}var d=o.connect(c,f)(l);t.default=d},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(19);var o=r(13);var s=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={selected:t.currentValue||""};r.handleNeighborhoodChange=r.handleNeighborhoodChange.bind(r);r.renderNeighborhoodForm=r.renderNeighborhoodForm.bind(r);return r}t.prototype.render=function(){return a.createElement(o.Panel,{headerText:"Patron Neighborhood Analytics: "+(this.isEnabled()?"En":"Dis")+"abled",content:this.renderNeighborhoodForm(),id:"neighborhood"})};t.prototype.isEnabled=function(){return this.state.selected&&this.state.selected!=="disabled"};t.prototype.handleNeighborhoodChange=function(e){this.setState({selected:e})};t.prototype.renderNeighborhoodForm=function(){var e=this;var t=this.props.setting;var r=this.getPairedService(t),n=r[0],o=r[1];return a.createElement("fieldset",null,a.createElement("legend",{className:"visuallyHidden"},"Patron Neighborhood Analytics"),a.createElement("p",{dangerouslySetInnerHTML:{__html:t.description}}),a.createElement(i.default,{key:t.key,label:t.label,elementType:"select",disabled:this.props.disabled,value:this.props.currentValue,error:this.props.error,onChange:this.handleNeighborhoodChange},t.options.map((function(t){return a.createElement("option",{key:t.key,value:t.key,"aria-selected":t.key===e.props.currentValue},t.label)}))),this.isEnabled()&&a.createElement("p",{className:"bg-warning"},"This feature will work only if it is also enabled in your"," ",a.createElement("a",{href:n},o),"."))};t.prototype.getPairedService=function(e){var t={patronAuth:"patron authentication",analytics:"local analytics"};var r=e.key==="location_source"?"patronAuth":"analytics";var n="/admin/web/config/"+r;var a=t[r]+" service configuration settings";return[n,a]};t.prototype.getValue=function(){return this.state.selected};return t}(a.Component);t.default=s},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(24);var i=p(a);var o=r(9);var s=p(o);var u=r(124);var l=r(81);var c=r(234);var f=p(c);var d=r(168);function p(e){return e&&e.__esModule?e:{default:e}}var h=function e(t){return t.filter((function(e){return e.state})).reduce((function(e,t){e[t.key]=t.state;return e}),{})};var v=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(Array.isArray(t)){t={entries:t}}else if(typeof t==="string"){t={entries:[t]}}var r=function e(){var t=m[y];var r=(0,l.createPath)(t);var a=void 0,i=void 0;if(t.key){a=t.key;i=A(a)}var o=(0,l.parsePath)(r);return(0,u.createLocation)(n({},o,{state:i}),undefined,a)};var a=function e(t){var r=y+t;return r>=0&&r<m.length};var i=function e(t){if(!t)return;if(!a(t)){false?undefined:void 0;return}y+=t;var i=r();p.transitionTo(n({},i,{action:d.POP}))};var o=function e(t){y+=1;if(y<m.length)m.splice(y);m.push(t);b(t.key,t.state)};var c=function e(t){m[y]=t;b(t.key,t.state)};var p=(0,f.default)(n({},t,{getCurrentLocation:r,pushLocation:o,replaceLocation:c,go:i}));var v=t,m=v.entries,y=v.current;if(typeof m==="string"){m=[m]}else if(!Array.isArray(m)){m=["/"]}m=m.map((function(e){return(0,u.createLocation)(e)}));if(y==null){y=m.length-1}else{!(y>=0&&y<m.length)?false?undefined:(0,s.default)(false):void 0}var g=h(m);var b=function e(t,r){return g[t]=r};var A=function e(t){return g[t]};return n({},p,{canGo:a})};t.default=v},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(9);var i=v(a);var o=r(235);var s=r(236);var u=h(s);var l=r(727);var c=h(l);var f=r(171);var d=r(234);var p=v(d);function h(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function v(e){return e&&e.__esModule?e:{default:e}}var m=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};!o.canUseDOM?false?undefined:(0,i.default)(false):void 0;var r=t.forceRefresh||!(0,f.supportsHistory)();var a=r?c:u;var s=a.getUserConfirmation,l=a.getCurrentLocation,d=a.pushLocation,h=a.replaceLocation,v=a.go;var m=(0,p.default)(n({getUserConfirmation:s},t,{getCurrentLocation:l,pushLocation:d,replaceLocation:h,go:v}));var y=0,g=void 0;var b=function e(t,r){if(++y===1)g=u.startListener(m.transitionTo);var n=r?m.listenBefore(t):m.listen(t);return function(){n();if(--y===0)g()}};var A=function e(t){return b(t,true)};var _=function e(t){return b(t,false)};return n({},m,{listenBefore:A,listen:_})};t.default=m},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(24);var i=v(a);var o=r(9);var s=v(o);var u=r(235);var l=r(171);var c=r(728);var f=h(c);var d=r(234);var p=v(d);function h(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function v(e){return e&&e.__esModule?e:{default:e}}var m="_k";var y=function e(t){return t.charAt(0)==="/"?t:"/"+t};var g={hashbang:{encodePath:function e(t){return t.charAt(0)==="!"?t:"!"+t},decodePath:function e(t){return t.charAt(0)==="!"?t.substring(1):t}},noslash:{encodePath:function e(t){return t.charAt(0)==="/"?t.substring(1):t},decodePath:y},slash:{encodePath:y,decodePath:y}};var b=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};!u.canUseDOM?false?undefined:(0,s.default)(false):void 0;var r=t.queryKey,a=t.hashType;false?undefined:void 0;if(typeof r!=="string")r=m;if(a==null)a="slash";if(!(a in g)){false?undefined:void 0;a="slash"}var i=g[a];var o=f.getUserConfirmation;var c=function e(){return f.getCurrentLocation(i,r)};var d=function e(t){return f.pushLocation(t,i,r)};var h=function e(t){return f.replaceLocation(t,i,r)};var v=(0,p.default)(n({getUserConfirmation:o},t,{getCurrentLocation:c,pushLocation:d,replaceLocation:h,go:f.go}));var y=0,b=void 0;var A=function e(t,n){if(++y===1)b=f.startListener(v.transitionTo,i,r);var a=n?v.listenBefore(t):v.listen(t);return function(){a();if(--y===0)b()}};var _=function e(t){return A(t,true)};var w=function e(t){return A(t,false)};var E=(0,l.supportsGoWithoutReloadUsingHash)();var x=function e(t){false?undefined:void 0;v.go(t)};var k=function e(t){return"#"+i.encodePath(v.createHref(t))};return n({},v,{listenBefore:_,listen:w,go:x,createHref:k})};t.default=b},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));function n(e){var t;var r=e.Symbol;if(typeof r==="function"){if(r.observable){t=r.observable}else{t=r("observable");r.observable=t}}else{t="@@observable"}return t}},function(e,t,r){e.exports=r(585)},function(e,t,r){e.exports=r(586)},function(e,t,r){e.exports=r(588)},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(988));t.end=a.default;var i=n(r(283));t.properties=i.default;var o={end:a.default,properties:i.default};t.default=o},function(e,t,r){e.exports=r(595)},function(e,t,r){e.exports=r(1025)},function(e,t,r){"use strict";function n(){return false}t["a"]=n},function(e,t,r){"use strict";(function(e){var n=r(22);var a=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var i=a&&typeof e=="object"&&e&&!e.nodeType&&e;var o=i&&i.exports===a;var s=o?n["a"].Buffer:undefined,u=s?s.allocUnsafe:undefined;function l(e,t){if(t){return e.slice()}var r=e.length,n=u?u(r):new e.constructor(r);e.copy(n);return n}t["a"]=l}).call(this,r(172)(e))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(1);var i=o(a);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var r={};for(var n in e){if(t.indexOf(n)>=0)continue;if(!Object.prototype.hasOwnProperty.call(e,n))continue;r[n]=e[n]}return r}var u=24;t.default=function(e){var t=e.fill,r=t===undefined?"currentColor":t,a=e.width,o=a===undefined?u:a,l=e.height,c=l===undefined?u:l,f=e.style,d=f===undefined?{}:f,p=s(e,["fill","width","height","style"]);return i.default.createElement("svg",n({viewBox:"0 0 "+u+" "+u,style:n({fill:r,width:o,height:c},d)},p),i.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(1);var i=o(a);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var r={};for(var n in e){if(t.indexOf(n)>=0)continue;if(!Object.prototype.hasOwnProperty.call(e,n))continue;r[n]=e[n]}return r}var u=24;t.default=function(e){var t=e.fill,r=t===undefined?"currentColor":t,a=e.width,o=a===undefined?u:a,l=e.height,c=l===undefined?u:l,f=e.style,d=f===undefined?{}:f,p=s(e,["fill","width","height","style"]);return i.default.createElement("svg",n({viewBox:"0 0 "+u+" "+u,style:n({fill:r,width:o,height:c},d)},p),i.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n={};var a=u(r(1216));Object.keys(a).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(n,e))return;if(e in t&&t[e]===a[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return a[e]}})}));var i=u(r(1219));Object.keys(i).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(n,e))return;if(e in t&&t[e]===i[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return i[e]}})}));var o=u(r(644));Object.keys(o).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(n,e))return;if(e in t&&t[e]===o[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return o[e]}})}));var s=u(r(645));Object.keys(s).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(n,e))return;if(e in t&&t[e]===s[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return s[e]}})}));function u(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t.default=e;return t}}},function(e,t,r){"use strict";e.exports=function e(t,r){if(t===r)return true;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return false;var n,a,i;if(Array.isArray(t)){n=t.length;if(n!=r.length)return false;for(a=n;a--!==0;)if(!e(t[a],r[a]))return false;return true}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();i=Object.keys(t);n=i.length;if(n!==Object.keys(r).length)return false;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return false;for(a=n;a--!==0;){var o=i[a];if(!e(t[o],r[o]))return false}return true}return t!==t&&r!==r}},function(e,t,r){var n=r(137),a=r(1293),i=r(667),o=r(1298);var s=i((function(e){var t=n(e,o);return t.length&&t[0]===e[0]?a(t):[]}));e.exports=s},function(e,t,r){var n=r(619),a=r(1300),i=r(52),o=r(12);function s(e,t){var r=o(e)?n:a;return r(e,i(t,3))}e.exports=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1310);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=a.default},function(e,t,r){var n=r(339),a=r(612);function i(e,t){return n(a(e,t),1)}e.exports=i},function(e,t,r){var n=r(218),a=r(52),i=r(673);function o(e,t){return e&&e.length?n(e,a(t,2),i):undefined}e.exports=o},function(e,t,r){var n=r(615),a=r(52),i=r(1326),o=r(12),s=r(217);function u(e,t,r){var u=o(e)?n:i;if(r&&s(e,t,r)){t=undefined}return u(e,a(t,3))}e.exports=u},function(e,t,r){var n=r(1329),a=r(1330);var i=n(a);e.exports=i},function(e,t,r){var n=r(345),a=r(27);var i="Expected a function";function o(e,t,r){var o=true,s=true;if(typeof e!="function"){throw new TypeError(i)}if(a(r)){o="leading"in r?!!r.leading:o;s="trailing"in r?!!r.trailing:s}return n(e,t,{leading:o,maxWait:t,trailing:s})}e.exports=o},function(e,t,r){var n=r(52),a=r(1338);function i(e,t){return e&&e.length?a(e,n(t,2)):0}e.exports=i},,,,,,,function(e,t,r){r(714);e.exports=r(715)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};var a=r(1);var i=r(18);var o=r(92);var s=r(729);var u=r(397);var l=r(823);var c=r(1132);var f=r(1227);var d=r(1234);var p=r(1345);var h=r(1370);var v=r(1372);var m=r(1373);var y=r(1378);var g=function(){function e(e){var t=document.createElement("div");t.id="opds-catalog";t.className="palace";document.getElementsByTagName("body")[0].appendChild(t);var g="/admin/web(/collection/:collectionUrl)(/book/:bookUrl)(/tab/:tab)";var b="/admin/web/lists(/:library)(/:editOrCreate)(/:identifier)";var A="/admin/web/lanes(/:library)(/:editOrCreate)(/:identifier)";var _="opds-catalog";var w=e.settingUp?a.createElement(s.default,n({},e),a.createElement(v.default,null)):a.createElement(s.default,n({},e),a.createElement(u.TOSContextProvider,{value:[e.tos_link_text,e.tos_link_href]},a.createElement(o.Router,{history:o.browserHistory},a.createElement(o.Route,{path:g,component:l.default}),a.createElement(o.Route,{path:b,component:c.default}),a.createElement(o.Route,{path:A,component:f.default}),a.createElement(o.Route,{path:"/admin/web/dashboard(/:library)",component:d.default}),a.createElement(o.Route,{path:"/admin/web/config(/:tab)(/:editOrCreate)(/:identifier)",component:p.default}),a.createElement(o.Route,{path:"/admin/web/account",component:h.default}),a.createElement(o.Route,{path:"/admin/web/patrons/:library(/:tab)",component:m.default}),a.createElement(o.Route,{path:"/admin/web/troubleshooting(/:tab)(/:subtab)",component:y.default}))));if(undefined==="true"){Promise.resolve().then((function(){return r(1389)})).then((function(e){e(a,i,1e3);i.render(w,document.getElementById(_))}))}else{i.render(w,document.getElementById(_))}}return e}();e.exports=g},function(e,t,r){"use strict";
|
|
312
312
|
/** @license React v16.14.0
|
|
313
313
|
* react.production.min.js
|
|
314
314
|
*
|
|
@@ -368,7 +368,7 @@ t.read=function(e,t,r,n,a){var i,o;var s=a*8-n-1;var u=(1<<s)-1;var l=u>>1;var c
|
|
|
368
368
|
*
|
|
369
369
|
* This source code is licensed under the MIT license found in the
|
|
370
370
|
* LICENSE file in the root directory of this source tree.
|
|
371
|
-
*/var n=r(46),a=r(1);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o="function"===typeof Symbol&&Symbol.for,s=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,f=o?Symbol.for("react.provider"):60109,d=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.concurrent_mode"):60111,h=o?Symbol.for("react.forward_ref"):60112,v=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.block"):60121,A=o?Symbol.for("react.fundamental"):60117,_=o?Symbol.for("react.scope"):60119;function w(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t();e._result=t;t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}function E(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case u:return"Fragment";case s:return"Portal";case c:return"Profiler";case l:return"StrictMode";case v:return"Suspense";case m:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case d:return"Context.Consumer";case f:return"Context.Provider";case h:var t=e.render;t=t.displayName||t.name||"";return e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case y:return E(e.type);case b:return E(e.render);case g:if(e=1===e._status?e._result:null)return E(e)}return null}var x=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;x.hasOwnProperty("ReactCurrentDispatcher")||(x.ReactCurrentDispatcher={current:null});x.hasOwnProperty("ReactCurrentBatchConfig")||(x.ReactCurrentBatchConfig={suspense:null});var k={};function S(e,t){for(var r=e._threadCount|0;r<=t;r++)e[r]=e._currentValue2,e._threadCount=r+1}function O(e,t,r,n){if(n&&(n=e.contextType,"object"===typeof n&&null!==n))return S(n,r),n[r];if(e=e.contextTypes){r={};for(var a in e)r[a]=t[a];t=r}else t=k;return t}for(var M=new Uint16Array(16),D=0;15>D;D++)M[D]=D+1;M[15]=0;var T=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,L=Object.prototype.hasOwnProperty,C={},j={};function N(e){if(L.call(j,e))return!0;if(L.call(C,e))return!1;if(T.test(e))return j[e]=!0;C[e]=!0;return!1}function I(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(n)return!1;if(null!==r)return!r.acceptsBooleans;e=e.toLowerCase().slice(0,5);return"data-"!==e&&"aria-"!==e;default:return!1}}function P(e,t,r,n){if(null===t||"undefined"===typeof t||I(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function R(e,t,r,n,a,i){this.acceptsBooleans=2===t||3===t||4===t;this.attributeName=n;this.attributeNamespace=a;this.mustUseProperty=r;this.propertyName=e;this.type=t;this.sanitizeURL=i}var F={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){F[e]=new R(e,0,!1,e,null,!1)}));[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];F[t]=new R(t,1,!1,e[1],null,!1)}));["contentEditable","draggable","spellCheck","value"].forEach((function(e){F[e]=new R(e,2,!1,e.toLowerCase(),null,!1)}));["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){F[e]=new R(e,2,!1,e,null,!1)}));"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){F[e]=new R(e,3,!1,e.toLowerCase(),null,!1)}));["checked","multiple","muted","selected"].forEach((function(e){F[e]=new R(e,3,!0,e,null,!1)}));["capture","download"].forEach((function(e){F[e]=new R(e,4,!1,e,null,!1)}));["cols","rows","size","span"].forEach((function(e){F[e]=new R(e,6,!1,e,null,!1)}));["rowSpan","start"].forEach((function(e){F[e]=new R(e,5,!1,e.toLowerCase(),null,!1)}));var Y=/[\-:]([a-z])/g;function B(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Y,B);F[t]=new R(t,1,!1,e,null,!1)}));"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Y,B);F[t]=new R(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}));["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Y,B);F[t]=new R(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}));["tabIndex","crossOrigin"].forEach((function(e){F[e]=new R(e,1,!1,e.toLowerCase(),null,!1)}));F.xlinkHref=new R("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach((function(e){F[e]=new R(e,1,!1,e.toLowerCase(),null,!0)}));var H=/["'&<>]/;function U(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=H.exec(e);if(t){var r="",n,a=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}a!==n&&(r+=e.substring(a,n));a=n+1;r+=t}e=a!==n?r+e.substring(a,n):r}return e}function z(e,t){var r=F.hasOwnProperty(e)?F[e]:null;var n;if(n="style"!==e)n=null!==r?0===r.type:!(2<e.length)||"o"!==e[0]&&"O"!==e[0]||"n"!==e[1]&&"N"!==e[1]?!1:!0;if(n||P(e,t,r,!1))return"";if(null!==r){e=r.attributeName;n=r.type;if(3===n||4===n&&!0===t)return e+'=""';r.sanitizeURL&&(t=""+t);return e+'="'+(U(t)+'"')}return N(e)?e+'="'+(U(t)+'"'):""}function q(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t}var V="function"===typeof Object.is?Object.is:q,W=null,K=null,G=null,Q=!1,J=!1,Z=null,X=0;function $(){if(null===W)throw Error(i(321));return W}function ee(){if(0<X)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function te(){null===G?null===K?(Q=!1,K=G=ee()):(Q=!0,G=K):null===G.next?(Q=!1,G=G.next=ee()):(Q=!0,G=G.next);return G}function re(e,t,r,n){for(;J;)J=!1,X+=1,G=null,r=e(t,n);K=W=null;X=0;G=Z=null;return r}function ne(e,t){return"function"===typeof t?t(e):t}function ae(e,t,r){W=$();G=te();if(Q){var n=G.queue;t=n.dispatch;if(null!==Z&&(r=Z.get(n),void 0!==r)){Z.delete(n);n=G.memoizedState;do{n=e(n,r.action),r=r.next}while(null!==r);G.memoizedState=n;return[n,t]}return[G.memoizedState,t]}e=e===ne?"function"===typeof t?t():t:void 0!==r?r(t):t;G.memoizedState=e;e=G.queue={last:null,dispatch:null};e=e.dispatch=ie.bind(null,W,e);return[G.memoizedState,e]}function ie(e,t,r){if(!(25>X))throw Error(i(301));if(e===W)if(J=!0,e={action:r,next:null},null===Z&&(Z=new Map),r=Z.get(t),void 0===r)Z.set(t,e);else{for(t=r;null!==t.next;)t=t.next;t.next=e}}function oe(){}var se=0,ue={readContext:function(e){var t=se;S(e,t);return e[t]},useContext:function(e){$();var t=se;S(e,t);return e[t]},useMemo:function(e,t){W=$();G=te();t=void 0===t?null:t;if(null!==G){var r=G.memoizedState;if(null!==r&&null!==t){e:{var n=r[1];if(null===n)n=!1;else{for(var a=0;a<n.length&&a<t.length;a++)if(!V(t[a],n[a])){n=!1;break e}n=!0}}if(n)return r[0]}}e=e();G.memoizedState=[e,t];return e},useReducer:ae,useRef:function(e){W=$();G=te();var t=G.memoizedState;return null===t?(e={current:e},G.memoizedState=e):t},useState:function(e){return ae(ne,e)},useLayoutEffect:function(){},useCallback:function(e){return e},useImperativeHandle:oe,useEffect:oe,useDebugValue:oe,useResponder:function(e,t){return{props:t,responder:e}},useDeferredValue:function(e){$();return e},useTransition:function(){$();return[function(e){e()},!1]}},le={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function ce(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var fe={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},de=n({menuitem:!0},fe),pe={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1);pe[t]=pe[e]}))}));var ve=/([A-Z])/g,me=/^ms-/,ye=a.Children.toArray,ge=x.ReactCurrentDispatcher,be={listing:!0,pre:!0,textarea:!0},Ae=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,_e={},we={};function Ee(e){if(void 0===e||null===e)return e;var t="";a.Children.forEach(e,(function(e){null!=e&&(t+=e)}));return t}var xe=Object.prototype.hasOwnProperty,ke={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Se(e,t){if(void 0===e)throw Error(i(152,E(t)||"Component"))}function Oe(e,t,r){function o(a,o){var s=o.prototype&&o.prototype.isReactComponent,u=O(o,t,r,s),l=[],c=!1,f={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===l)return null},enqueueReplaceState:function(e,t){c=!0;l=[t]},enqueueSetState:function(e,t){if(null===l)return null;l.push(t)}};if(s){if(s=new o(a.props,u,f),"function"===typeof o.getDerivedStateFromProps){var d=o.getDerivedStateFromProps.call(null,a.props,s.state);null!=d&&(s.state=n({},s.state,d))}}else if(W={},s=o(a.props,u,f),s=re(o,a.props,s,u),null==s||null==s.render){e=s;Se(e,o);return}s.props=a.props;s.context=u;s.updater=f;f=s.state;void 0===f&&(s.state=f=null);if("function"===typeof s.UNSAFE_componentWillMount||"function"===typeof s.componentWillMount)if("function"===typeof s.componentWillMount&&"function"!==typeof o.getDerivedStateFromProps&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&"function"!==typeof o.getDerivedStateFromProps&&s.UNSAFE_componentWillMount(),l.length){f=l;var p=c;l=null;c=!1;if(p&&1===f.length)s.state=f[0];else{d=p?f[0]:s.state;var h=!0;for(p=p?1:0;p<f.length;p++){var v=f[p];v="function"===typeof v?v.call(s,d,a.props,u):v;null!=v&&(h?(h=!1,d=n({},d,v)):n(d,v))}s.state=d}}else l=null;e=s.render();Se(e,o);if("function"===typeof s.getChildContext&&(a=o.childContextTypes,"object"===typeof a)){var m=s.getChildContext();for(var y in m)if(!(y in a))throw Error(i(108,E(o)||"Unknown",y))}m&&(t=n({},t,m))}for(;a.isValidElement(e);){var s=e,u=s.type;if("function"!==typeof u)break;o(s,u)}return{child:e,context:t}}var Me=function(){function e(e,t){a.isValidElement(e)?e.type!==u?e=[e]:(e=e.props.children,e=a.isValidElement(e)?[e]:ye(e)):e=ye(e);e={type:null,domNamespace:le.html,children:e,childIndex:0,context:k,footer:""};var r=M[0];if(0===r){var n=M;r=n.length;var o=2*r;if(!(65536>=o))throw Error(i(304));var s=new Uint16Array(o);s.set(n);M=s;M[0]=r+1;for(n=r;n<o-1;n++)M[n]=n+1;M[o-1]=0}else M[0]=M[r];this.threadID=r;this.stack=[e];this.exhausted=!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=t;this.suspenseDepth=0;this.contextIndex=-1;this.contextStack=[];this.contextValueStack=[]}var t=e.prototype;t.destroy=function(){if(!this.exhausted){this.exhausted=!0;this.clearProviders();var e=this.threadID;M[e]=M[0];M[0]=e}};t.pushProvider=function(e){var t=++this.contextIndex,r=e.type._context,n=this.threadID;S(r,n);var a=r[n];this.contextStack[t]=r;this.contextValueStack[t]=a;r[n]=e.props.value};t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],r=this.contextValueStack[e];this.contextStack[e]=null;this.contextValueStack[e]=null;this.contextIndex--;t[this.threadID]=r};t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]};t.read=function(e){if(this.exhausted)return null;var t=se;se=this.threadID;var r=ge.current;ge.current=ue;try{for(var n=[""],a=!1;n[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var o=this.threadID;M[o]=M[0];M[0]=o;break}var s=this.stack[this.stack.length-1];if(a||s.childIndex>=s.children.length){var u=s.footer;""!==u&&(this.previousWasTextNode=!1);this.stack.pop();if("select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===f)this.popProvider(s.type);else if(s.type===v){this.suspenseDepth--;var l=n.pop();if(a){a=!1;var c=s.fallbackFrame;if(!c)throw Error(i(303));this.stack.push(c);n[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}else n[this.suspenseDepth]+=l}n[this.suspenseDepth]+=u}else{var d=s.children[s.childIndex++],p="";try{p+=this.render(d,s.context,s.domNamespace)}catch(e){if(null!=e&&"function"===typeof e.then)throw Error(i(294));throw e}finally{}n.length<=this.suspenseDepth&&n.push("");n[this.suspenseDepth]+=p}}return n[0]}finally{ge.current=r,se=t}};t.render=function(e,t,r){if("string"===typeof e||"number"===typeof e){r=""+e;if(""===r)return"";if(this.makeStaticMarkup)return U(r);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+U(r);this.previousWasTextNode=!0;return U(r)}t=Oe(e,t,this.threadID);e=t.child;t=t.context;if(null===e||!1===e)return"";if(!a.isValidElement(e)){if(null!=e&&null!=e.$$typeof){r=e.$$typeof;if(r===s)throw Error(i(257));throw Error(i(258,r.toString()))}e=ye(e);this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""});return""}var o=e.type;if("string"===typeof o)return this.renderDOM(e,t,r);switch(o){case l:case p:case c:case m:case u:return e=ye(e.props.children),this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""}),"";case v:throw Error(i(294))}if("object"===typeof o&&null!==o)switch(o.$$typeof){case h:W={};var b=o.render(e.props,e.ref);b=re(o.render,e.props,b,e.ref);b=ye(b);this.stack.push({type:null,domNamespace:r,children:b,childIndex:0,context:t,footer:""});return"";case y:return e=[a.createElement(o.type,n({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""}),"";case f:return o=ye(e.props.children),r={type:e,domNamespace:r,children:o,childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(r),"";case d:o=e.type;b=e.props;var E=this.threadID;S(o,E);o=ye(b.children(o[E]));this.stack.push({type:e,domNamespace:r,children:o,childIndex:0,context:t,footer:""});return"";case A:throw Error(i(338));case g:switch(o=e.type,w(o),o._status){case 1:return e=[a.createElement(o._result,n({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw o._result;default:throw Error(i(295))}case _:throw Error(i(343))}throw Error(i(130,null==o?o:typeof o,""))};t.renderDOM=function(e,t,r){var a=e.type.toLowerCase();r===le.html&&ce(a);if(!_e.hasOwnProperty(a)){if(!Ae.test(a))throw Error(i(65,a));_e[a]=!0}var o=e.props;if("input"===a)o=n({type:void 0},o,{defaultChecked:void 0,defaultValue:void 0,value:null!=o.value?o.value:o.defaultValue,checked:null!=o.checked?o.checked:o.defaultChecked});else if("textarea"===a){var s=o.value;if(null==s){s=o.defaultValue;var u=o.children;if(null!=u){if(null!=s)throw Error(i(92));if(Array.isArray(u)){if(!(1>=u.length))throw Error(i(93));u=u[0]}s=""+u}null==s&&(s="")}o=n({},o,{value:void 0,children:""+s})}else if("select"===a)this.currentSelectValue=null!=o.value?o.value:o.defaultValue,o=n({},o,{value:void 0});else if("option"===a){u=this.currentSelectValue;var l=Ee(o.children);if(null!=u){var c=null!=o.value?o.value+"":l;s=!1;if(Array.isArray(u))for(var f=0;f<u.length;f++){if(""+u[f]===c){s=!0;break}}else s=""+u===c;o=n({selected:void 0,children:void 0},o,{selected:s,children:l})}}if(s=o){if(de[a]&&(null!=s.children||null!=s.dangerouslySetInnerHTML))throw Error(i(137,a,""));if(null!=s.dangerouslySetInnerHTML){if(null!=s.children)throw Error(i(60));if(!("object"===typeof s.dangerouslySetInnerHTML&&"__html"in s.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=s.style&&"object"!==typeof s.style)throw Error(i(62,""))}s=o;u=this.makeStaticMarkup;l=1===this.stack.length;c="<"+e.type;for(b in s)if(xe.call(s,b)){var d=s[b];if(null!=d){if("style"===b){f=void 0;var p="",h="";for(f in d)if(d.hasOwnProperty(f)){var v=0===f.indexOf("--"),m=d[f];if(null!=m){if(v)var y=f;else if(y=f,we.hasOwnProperty(y))y=we[y];else{var g=y.replace(ve,"-$1").toLowerCase().replace(me,"-ms-");y=we[y]=g}p+=h+y+":";h=f;v=null==m||"boolean"===typeof m||""===m?"":v||"number"!==typeof m||0===m||pe.hasOwnProperty(h)&&pe[h]?(""+m).trim():m+"px";p+=v;h=";"}}d=p||null}f=null;e:if(v=a,m=s,-1===v.indexOf("-"))v="string"===typeof m.is;else switch(v){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":v=!1;break e;default:v=!0}v?ke.hasOwnProperty(b)||(f=b,f=N(f)&&null!=d?f+'="'+(U(d)+'"'):""):f=z(b,d);f&&(c+=" "+f)}}u||l&&(c+=' data-reactroot=""');var b=c;s="";fe.hasOwnProperty(a)?b+="/>":(b+=">",s="</"+e.type+">");e:{u=o.dangerouslySetInnerHTML;if(null!=u){if(null!=u.__html){u=u.__html;break e}}else if(u=o.children,"string"===typeof u||"number"===typeof u){u=U(u);break e}u=null}null!=u?(o=[],be.hasOwnProperty(a)&&"\n"===u.charAt(0)&&(b+="\n"),b+=u):o=ye(o.children);e=e.type;r=null==r||"http://www.w3.org/1999/xhtml"===r?ce(e):"http://www.w3.org/2000/svg"===r&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":r;this.stack.push({domNamespace:r,type:a,children:o,childIndex:0,context:t,footer:s});this.previousWasTextNode=!1;return b};return e}(),De={renderToString:function(e){e=new Me(e,!1);try{return e.read(Infinity)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new Me(e,!0);try{return e.read(Infinity)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(i(207))},renderToStaticNodeStream:function(){throw Error(i(208))},version:"16.14.0"};e.exports=De.default||De},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(19);var o=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.inputRef=a.createRef();return t}t.prototype.render=function(){var e=this;return a.createElement("div",null,a.createElement(i.default,{elementType:"input",type:"text",disabled:this.props.disabled,name:this.props.name,list:this.props.name+"-autocomplete-list",label:this.props.label,value:this.props.value,ref:this.inputRef,optionalText:false,onChange:this.props.onChange}),a.createElement("datalist",{id:this.props.name+"-autocomplete-list"},this.props.autocompleteValues.map((function(t){return a.createElement("option",{value:t,key:t,"aria-selected":e.props.value===t})}))))};t.prototype.getValue=function(){return this.inputRef.current.getValue()};t.prototype.clear=function(){this.inputRef.current.setState({value:""})};return t}(a.Component);t.default=o},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(19);var o=r(13);var s=r(190);var u=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.addContributorRole=a.createRef();r.addContributorName=a.createRef();r.state={contributors:r.props.contributors||[],disabled:true};r.addContributor=r.addContributor.bind(r);r.removeContributor=r.removeContributor.bind(r);r.toggleDisabled=r.toggleDisabled.bind(r);return r}t.prototype.render=function(){return a.createElement("div",{className:"form-group"},a.createElement("label",null,"Authors and Contributors"),this.existingContributors(),this.newContributor())};t.prototype.newContributor=function(){var e=this.addContributorRole.current;var t=e&&e.getValue();var r=this.state.disabled||this.props.disabled;return a.createElement("span",{className:"contributor-form"},this.contributorSelect(t,true),this.contributorField(),a.createElement(o.Button,{type:"button",className:"add-contributor small",disabled:r,callback:this.addContributor,content:"Add"}))};t.prototype.contributorSelect=function(e,t){if(t===void 0){t=false}return a.createElement(i.default,{elementType:"select",disabled:this.props.disabled,name:"contributor-role",value:e||"Author",ref:t&&this.addContributorRole,"aria-label":"Select a contributor role type"},this.props.roles&&Object.values(this.props.roles).map((function(t){return a.createElement("option",{value:t,key:t,"aria-selected":e===t},t)})))};t.prototype.contributorField=function(e){return a.createElement(i.default,{elementType:"input",type:"text",disabled:this.props.disabled,name:"contributor-name","aria-label":"Enter contributor name",value:e&&e.name,ref:!e&&this.addContributorName,onChange:this.toggleDisabled,optionalText:false})};t.prototype.existingContributors=function(){var e=this;return this.state.contributors.map((function(t){var r=e.getContributorRole(t);return a.createElement(s.default,{key:t.name+t.role,disabled:e.props.disabled,onRemove:function(){return e.removeContributor(t)}},a.createElement("span",{className:"contributor-form"},e.contributorSelect(r),e.contributorField(t)))}))};t.prototype.toggleDisabled=function(e){this.setState({disabled:e.length<1})};t.prototype.getContributorRole=function(e){if(this.props.roles){if(this.props.roles[e.role]){return this.props.roles[e.role]}}return e.role};t.prototype.removeContributor=function(e){var t=this.state.contributors.filter((function(t){return!(t.name===e.name&&t.role===e.role)}));this.setState({contributors:t})};t.prototype.addContributor=function(){var e=this.addContributorName.current.getValue();var t=this.addContributorRole.current.getValue();this.setState({contributors:this.state.contributors.concat({role:t,name:e}),disabled:true});this.addContributorName.current.clear();this.addContributorRole.current.setValue("Author")};return t}(a.Component);t.default=u},function(e,t,r){var n=r(42);n(n.S+n.F,"Object",{assign:r(974)})},function(e,t){e.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(e,t,r){"use strict";var n=r(75);var a=r(132);var i=r(281);var o=r(158);var s=r(133);var u=r(583);var l=Object.assign;e.exports=!l||r(108)((function(){var e={};var t={};var r=Symbol();var n="abcdefghijklmnopqrst";e[r]=7;n.split("").forEach((function(e){t[e]=e}));return l({},e)[r]!=7||Object.keys(l({},t)).join("")!=n}))?function e(t,r){var l=s(t);var c=arguments.length;var f=1;var d=i.f;var p=o.f;while(c>f){var h=u(arguments[f++]);var v=d?a(h).concat(d(h)):a(h);var m=v.length;var y=0;var g;while(m>y){g=v[y++];if(!n||p.call(h,g))l[g]=h[g]}}return l}:l},function(e,t,r){var n=r(110);var a=r(584);var i=r(976);e.exports=function(e){return function(t,r,o){var s=n(t);var u=a(s.length);var l=i(o,u);var c;if(e&&r!=r)while(u>l){c=s[l++];if(c!=c)return true}else for(;u>l;l++)if(e||l in s){if(s[l]===r)return e||l||0}return!e&&-1}}},function(e,t,r){var n=r(277);var a=Math.max;var i=Math.min;e.exports=function(e,t){e=n(e);return e<0?a(e+t,0):i(e,t)}},function(e,t,r){var n=r(42);n(n.S,"Object",{create:r(282)})},function(e,t,r){var n=r(83);var a=r(130);var i=r(132);e.exports=r(75)?Object.defineProperties:function e(t,r){a(t);var o=i(r);var s=o.length;var u=0;var l;while(s>u)n.f(t,l=o[u++],r[l]);return t}},function(e,t,r){var n=r(74).document;e.exports=n&&n.documentElement},function(e,t,r){var n=r(42);n(n.S,"Object",{setPrototypeOf:r(981).set})},function(e,t,r){var n=r(131);var a=r(130);var i=function(e,t){a(e);if(!n(t)&&t!==null)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{n=r(274)(Function.call,r(587).f(Object.prototype,"__proto__").set,2);n(e,[]);t=!(e instanceof Array)}catch(e){t=true}return function e(r,a){i(r,a);if(t)r.__proto__=a;else n(r,a);return r}}({},false):undefined),check:i}},function(e,t,r){var n=r(133);var a=r(132);r(589)("keys",(function(){return function e(t){return a(n(t))}}))},function(e,t,r){"use strict";t.__esModule=true;t.uncontrolledPropTypes=s;t.isProp=u;t.defaultKey=l;t.isReactComponent=c;var n=a(r(9));function a(e){return e&&e.__esModule?e:{default:e}}var i=function e(){};function o(e,t){return function(r,n){if(r[n]!==undefined){if(!r[e]){return new Error("You have provided a `"+n+"` prop to `"+t+"` "+("without an `"+e+"` handler prop. This will render a read-only field. ")+("If the field should be mutable use `"+l(n)+"`. ")+("Otherwise, set `"+e+"`."))}}}}function s(e,t){var r={};Object.keys(e).forEach((function(e){r[l(e)]=i;if(false){var t}}));return r}function u(e,t){return e[t]!==undefined}function l(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function c(e){return!!(e&&e.prototype&&e.prototype.isReactComponent)}},function(e,t,r){r(985);e.exports=r(30).Object.entries},function(e,t,r){var n=r(42);var a=r(590)(true);n(n.S,"Object",{entries:function e(t){return a(t)}})},function(e,t,r){r(987);e.exports=r(30).Object.values},function(e,t,r){var n=r(42);var a=r(590)(false);n(n.S,"Object",{values:function e(t){return a(t)}})},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(283));var i=n(r(120));function o(e,t,r){var n={target:e,currentTarget:e},i;if(!a.default.end)r=0;else if(r==null)r=u(e)||0;if(a.default.end){e.addEventListener(a.default.end,o,false);i=setTimeout((function(){return o(n)}),(r||100)*1.5)}else setTimeout(o.bind(null,n),0);function o(e){if(e.target!==e.currentTarget)return;clearTimeout(i);e.target.removeEventListener(a.default.end,o);t.call(this)}}o._parseDuration=u;var s=o;t.default=s;function u(e){var t=(0,i.default)(e,a.default.duration),r=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*r}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=a;var n=/-(.)/g;function a(e){return e.replace(n,(function(e,t){return t.toUpperCase()}))}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=o;var a=n(r(991));var i=/^ms-/;function o(e){return(0,a.default)(e).replace(i,"-ms-")}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=a;var n=/([A-Z])/g;function a(e){return e.replace(n,"-$1").toLowerCase()}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=s;var a=n(r(591));var i=/^(top|right|bottom|left)$/;var o=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;function s(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function t(r){var n=e.style;r=(0,a.default)(r);if(r=="float")r="styleFloat";var s=e.currentStyle[r]||null;if(s==null&&n&&n[r])s=n[r];if(o.test(s)&&!i.test(r)){var u=n.left;var l=e.runtimeStyle;var c=l&&l.left;if(c)l.left=e.currentStyle.left;n.left=r==="fontSize"?"1em":s;s=n.pixelLeft+"px";n.left=u;if(c)l.left=c}return s}}}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=n;function n(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=a;var n=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function a(e){return!!(e&&n.test(e))}e.exports=t["default"]},function(e,t,r){r(996);e.exports=r(30).parseInt},function(e,t,r){var n=r(42);var a=r(997);n(n.G+n.F*(parseInt!=a),{parseInt:a})},function(e,t,r){var n=r(74).parseInt;var a=r(998).trim;var i=r(592);var o=/^[-+]?0[xX]/;e.exports=n(i+"08")!==8||n(i+"0x16")!==22?function e(t,r){var i=a(String(t),3);return n(i,r>>>0||(o.test(i)?16:10))}:n},function(e,t,r){var n=r(42);var a=r(191);var i=r(108);var o=r(592);var s="["+o+"]";var u="
";var l=RegExp("^"+s+s+"*");var c=RegExp(s+s+"*$");var f=function(e,t,r){var a={};var s=i((function(){return!!o[e]()||u[e]()!=u}));var l=a[e]=s?t(d):o[e];if(r)a[r]=l;n(n.P+n.F*s,"String",a)};var d=f.trim=function(e,t){e=String(a(e));if(t&1)e=e.replace(l,"");if(t&2)e=e.replace(c,"");return e};e.exports=f},function(e,t,r){var n=r(277);var a=r(191);e.exports=function(e){return function(t,r){var i=String(a(t));var o=n(r);var s=i.length;var u,l;if(o<0||o>=s)return e?"":undefined;u=i.charCodeAt(o);return u<55296||u>56319||o+1===s||(l=i.charCodeAt(o+1))<56320||l>57343?e?i.charAt(o):u:e?i.slice(o,o+2):(u-55296<<10)+(l-56320)+65536}}},function(e,t,r){"use strict";var n=r(282);var a=r(157);var i=r(284);var o={};r(129)(o,r(68)("iterator"),(function(){return this}));e.exports=function(e,t,r){e.prototype=n(o,{next:a(1,r)});i(e,t+" Iterator")}},function(e,t,r){"use strict";var n=r(274);var a=r(42);var i=r(133);var o=r(1002);var s=r(1003);var u=r(584);var l=r(1004);var c=r(1005);a(a.S+a.F*!r(1007)((function(e){Array.from(e)})),"Array",{from:function e(t){var r=i(t);var a=typeof this=="function"?this:Array;var f=arguments.length;var d=f>1?arguments[1]:undefined;var p=d!==undefined;var h=0;var v=c(r);var m,y,g,b;if(p)d=n(d,f>2?arguments[2]:undefined,2);if(v!=undefined&&!(a==Array&&s(v))){for(b=v.call(r),y=new a;!(g=b.next()).done;h++){l(y,h,p?o(b,d,[g.value,h],true):g.value)}}else{m=u(r.length);for(y=new a(m);m>h;h++){l(y,h,p?d(r[h],h):r[h])}}y.length=h;return y}})},function(e,t,r){var n=r(130);e.exports=function(e,t,r,a){try{return a?t(n(r)[0],r[1]):t(r)}catch(t){var i=e["return"];if(i!==undefined)n(i.call(e));throw t}}},function(e,t,r){var n=r(159);var a=r(68)("iterator");var i=Array.prototype;e.exports=function(e){return e!==undefined&&(n.Array===e||i[a]===e)}},function(e,t,r){"use strict";var n=r(83);var a=r(157);e.exports=function(e,t,r){if(t in e)n.f(e,t,a(0,r));else e[t]=r}},function(e,t,r){var n=r(1006);var a=r(68)("iterator");var i=r(159);e.exports=r(30).getIteratorMethod=function(e){if(e!=undefined)return e[a]||e["@@iterator"]||i[n(e)]}},function(e,t,r){var n=r(276);var a=r(68)("toStringTag");var i=n(function(){return arguments}())=="Arguments";var o=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,r,s;return e===undefined?"Undefined":e===null?"Null":typeof(r=o(t=Object(e),a))=="string"?r:i?n(t):(s=n(t))=="Object"&&typeof t.callee=="function"?"Arguments":s}},function(e,t,r){var n=r(68)("iterator");var a=false;try{var i=[7][n]();i["return"]=function(){a=true};Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!a)return false;var r=false;try{var i=[7];var o=i[n]();o.next=function(){return{done:r=true}};i[n]=function(){return o};e(i)}catch(e){}return r}},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=o;var a=n(r(93));var i=n(r(1009));function o(e,t){return function r(n){var o=n.currentTarget,s=n.target,u=(0,i.default)(o,e);if(u.some((function(e){return(0,a.default)(e,s)})))t.call(this,n)}}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=i;var n=/^[\w-]*$/;var a=Function.prototype.bind.call(Function.prototype.call,[].slice);function i(e,t){var r=t[0]==="#",i=t[0]===".",o=r||i?t.slice(1):t,s=n.test(o),u;if(s){if(r){e=e.getElementById?e:document;return(u=e.getElementById(o))?[u]:[]}if(e.getElementsByClassName&&i)return a(e.getElementsByClassName(o));return a(e.getElementsByTagName(t))}return a(e.querySelectorAll(t))}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(79));var i=n(r(285));var o=n(r(286));var s=function e(){};if(a.default){s=function e(t,r,n,a){(0,i.default)(t,r,n,a);return function(){(0,o.default)(t,r,n,a)}}}var u=s;t.default=u;e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=s;var n=r(1012);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}var o={};function s(e,t){return function r(n,i,s,u,l){var c=s||"<<anonymous>>";var f=l||i;if(n[i]!=null){var d=s+"."+i;(0,a.default)(o[d],"The "+u+" `"+f+"` of "+("`"+c+"` is deprecated. "+t+"."));o[d]=true}for(var p=arguments.length,h=Array(p>5?p-5:0),v=5;v<p;v++){h[v-5]=arguments[v]}return e.apply(undefined,[n,i,s,u,l].concat(h))}}function u(){o={}}s._resetWarned=u;e.exports=t["default"]},function(e,t,r){"use strict";var n="production"!=="production";var a=function(){};if(n){var i=function e(t,r){var n=arguments.length;r=new Array(n>1?n-1:0);for(var a=1;a<n;a++){r[a-1]=arguments[a]}var i=0;var o="Warning: "+t.replace(/%s/g,(function(){return r[i++]}));if(typeof console!=="undefined"){console.error(o)}try{throw new Error(o)}catch(e){}};a=function(e,t,r){var n=arguments.length;r=new Array(n>2?n-2:0);for(var a=2;a<n;a++){r[a-2]=arguments[a]}if(t===undefined){throw new Error("`warning(condition, format, ...args)` requires a warning "+"message argument")}if(!e){i.apply(null,[t].concat(r))}}}e.exports=a},function(e,t,r){"use strict";t.__esModule=true;var n=r(1014);var a=d(n);var i=r(120);var o=d(i);var s=r(224);var u=d(s);var l=r(344);var c=d(l);var f=r(1015);function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function h(e,t){var r=-1;e.some((function(e,n){if(t(e,n)){r=n;return true}}));return r}function v(e,t){return h(e,(function(e){return e.modals.indexOf(t)!==-1}))}function m(e,t){var r={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight};if(e.overflowing){r.paddingRight=parseInt((0,o.default)(t,"paddingRight")||0,10)+(0,u.default)()+"px"}(0,o.default)(t,r)}function y(e,t){var r=e.style;Object.keys(r).forEach((function(e){return t.style[e]=r[e]}))}var g=function e(){var t=this;var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=r.hideSiblingNodes,i=n===undefined?true:n,o=r.handleContainerOverflow,s=o===undefined?true:o;p(this,e);this.add=function(e,r,n){var i=t.modals.indexOf(e);var o=t.containers.indexOf(r);if(i!==-1){return i}i=t.modals.length;t.modals.push(e);if(t.hideSiblingNodes){(0,f.hideSiblings)(r,e.mountNode)}if(o!==-1){t.data[o].modals.push(e);return i}var s={modals:[e],classes:n?n.split(/\s+/):[],overflowing:(0,c.default)(r)};if(t.handleContainerOverflow){m(s,r)}s.classes.forEach(a.default.addClass.bind(null,r));t.containers.push(r);t.data.push(s);return i};this.remove=function(e){var r=t.modals.indexOf(e);if(r===-1){return}var n=v(t.data,e);var i=t.data[n];var o=t.containers[n];i.modals.splice(i.modals.indexOf(e),1);t.modals.splice(r,1);if(i.modals.length===0){i.classes.forEach(a.default.removeClass.bind(null,o));if(t.handleContainerOverflow){y(i,o)}if(t.hideSiblingNodes){(0,f.showSiblings)(o,e.mountNode)}t.containers.splice(n,1);t.data.splice(n,1)}else if(t.hideSiblingNodes){(0,f.ariaHidden)(false,i.modals[i.modals.length-1].mountNode)}};this.isTopModal=function(e){return!!t.modals.length&&t.modals[t.modals.length-1]===e};this.hideSiblingNodes=i;this.handleContainerOverflow=s;this.modals=[];this.containers=[];this.data=[]};t.default=g;e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(601));t.addClass=a.default;var i=n(r(603));t.removeClass=i.default;var o=n(r(602));t.hasClass=o.default;var s={addClass:a.default,removeClass:i.default,hasClass:o.default};t.default=s},function(e,t,r){"use strict";t.__esModule=true;t.ariaHidden=o;t.hideSiblings=s;t.showSiblings=u;var n=["template","script","style"];var a=function e(t){var r=t.nodeType,a=t.tagName;return r===1&&n.indexOf(a.toLowerCase())===-1};var i=function e(t,r,n){r=[].concat(r);[].forEach.call(t.children,(function(e){if(r.indexOf(e)===-1&&a(e)){n(e)}}))};function o(e,t){if(!t){return}if(e){t.setAttribute("aria-hidden","true")}else{t.removeAttribute("aria-hidden")}}function s(e,t){i(e,t,(function(e){return o(true,e)}))}function u(e,t){i(e,t,(function(e){return o(false,e)}))}},function(e,t,r){"use strict";t.__esModule=true;var n=r(0);var a=v(n);var i=r(194);var o=v(i);var s=r(1);var u=v(s);var l=r(18);var c=v(l);var f=r(196);var d=v(f);var p=r(134);var h=v(p);function v(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function y(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function g(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var b=function(e){g(t,e);function t(){var r,n,a;m(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++){o[s]=arguments[s]}return a=(r=(n=y(this,e.call.apply(e,[this].concat(o))),n),n._mountOverlayTarget=function(){if(!n._overlayTarget){n._overlayTarget=document.createElement("div");n._portalContainerNode=(0,d.default)(n.props.container,(0,h.default)(n).body);n._portalContainerNode.appendChild(n._overlayTarget)}},n._unmountOverlayTarget=function(){if(n._overlayTarget){n._portalContainerNode.removeChild(n._overlayTarget);n._overlayTarget=null}n._portalContainerNode=null},n._renderOverlay=function(){var e=!n.props.children?null:u.default.Children.only(n.props.children);if(e!==null){n._mountOverlayTarget();var t=!n._overlayInstance;n._overlayInstance=c.default.unstable_renderSubtreeIntoContainer(n,e,n._overlayTarget,(function(){if(t&&n.props.onRendered){n.props.onRendered()}}))}else{n._unrenderOverlay();n._unmountOverlayTarget()}},n._unrenderOverlay=function(){if(n._overlayTarget){c.default.unmountComponentAtNode(n._overlayTarget);n._overlayInstance=null}},n.getMountNode=function(){return n._overlayTarget},r),y(n,a)}t.prototype.componentDidMount=function e(){this._isMounted=true;this._renderOverlay()};t.prototype.componentDidUpdate=function e(){this._renderOverlay()};t.prototype.componentWillReceiveProps=function e(t){if(this._overlayTarget&&t.container!==this.props.container){this._portalContainerNode.removeChild(this._overlayTarget);this._portalContainerNode=(0,d.default)(t.container,(0,h.default)(this).body);this._portalContainerNode.appendChild(this._overlayTarget)}};t.prototype.componentWillUnmount=function e(){this._isMounted=false;this._unrenderOverlay();this._unmountOverlayTarget()};t.prototype.render=function e(){return null};return t}(u.default.Component);b.displayName="Portal";b.propTypes={container:a.default.oneOfType([o.default,a.default.func]),onRendered:a.default.func};t.default=b;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=r(0);var a=s(n);var i=r(1);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function c(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var f={children:a.default.node};var d=function(e){c(t,e);function t(){u(this,t);return l(this,e.apply(this,arguments))}t.prototype.render=function e(){return this.props.children};return t}(o.default.Component);d.propTypes=f;t.default=d;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=n;function n(e){var t=!document.addEventListener;var r=void 0;if(t){document.attachEvent("onfocusin",e);r=function t(){return document.detachEvent("onfocusin",e)}}else{document.addEventListener("focus",e,true);r=function t(){return document.removeEventListener("focus",e,true)}}return{remove:r}}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(2);var i=A(a);var o=r(0);var s=A(o);var u=r(194);var l=A(u);var c=r(1);var f=A(c);var d=r(18);var p=A(d);var h=r(1020);var v=A(h);var m=r(196);var y=A(m);var g=r(134);var b=A(g);function A(e){return e&&e.__esModule?e:{default:e}}function _(e,t){var r={};for(var n in e){if(t.indexOf(n)>=0)continue;if(!Object.prototype.hasOwnProperty.call(e,n))continue;r[n]=e[n]}return r}function w(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function E(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function x(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var k=function(e){x(t,e);function t(r,n){w(this,t);var a=E(this,e.call(this,r,n));a.getTarget=function(){var e=a.props.target;var t=typeof e==="function"?e():e;return t&&p.default.findDOMNode(t)||null};a.maybeUpdatePosition=function(e){var t=a.getTarget();if(!a.props.shouldUpdatePosition&&t===a._lastTarget&&!e){return}a.updatePosition(t)};a.state={positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null};a._needsFlush=false;a._lastTarget=null;return a}t.prototype.componentDidMount=function e(){this.updatePosition(this.getTarget())};t.prototype.componentWillReceiveProps=function e(){this._needsFlush=true};t.prototype.componentDidUpdate=function e(t){if(this._needsFlush){this._needsFlush=false;this.maybeUpdatePosition(this.props.placement!==t.placement)}};t.prototype.render=function e(){var t=this.props,r=t.children,a=t.className,o=_(t,["children","className"]);var s=this.state,u=s.positionLeft,l=s.positionTop,d=_(s,["positionLeft","positionTop"]);delete o.target;delete o.container;delete o.containerPadding;delete o.shouldUpdatePosition;var p=f.default.Children.only(r);return(0,c.cloneElement)(p,n({},o,d,{positionLeft:u,positionTop:l,className:(0,i.default)(a,p.props.className),style:n({},p.props.style,{left:u,top:l})}))};t.prototype.updatePosition=function e(t){this._lastTarget=t;if(!t){this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null});return}var r=p.default.findDOMNode(this);var n=(0,y.default)(this.props.container,(0,b.default)(this).body);this.setState((0,v.default)(this.props.placement,r,t,n,this.props.containerPadding))};return t}(f.default.Component);k.propTypes={target:s.default.oneOfType([l.default,s.default.func]),container:s.default.oneOfType([l.default,s.default.func]),containerPadding:s.default.number,placement:s.default.oneOf(["top","right","bottom","left"]),shouldUpdatePosition:s.default.bool};k.displayName="Position";k.defaultProps={containerPadding:0,placement:"right",shouldUpdatePosition:false};t.default=k;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=v;var n=r(605);var a=f(n);var i=r(1021);var o=f(i);var s=r(606);var u=f(s);var l=r(134);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}function d(e){var t=void 0,r=void 0,n=void 0;if(e.tagName==="BODY"){t=window.innerWidth;r=window.innerHeight;n=(0,u.default)((0,c.default)(e).documentElement)||(0,u.default)(e)}else{var i=(0,a.default)(e);t=i.width;r=i.height;n=(0,u.default)(e)}return{width:t,height:r,scroll:n}}function p(e,t,r,n){var a=d(r);var i=a.scroll;var o=a.height;var s=e-n-i;var u=e+n-i+t;if(s<0){return-s}else if(u>o){return o-u}else{return 0}}function h(e,t,r,n){var a=d(r);var i=a.width;var o=e-n;var s=e+n+t;if(o<0){return-o}else if(s>i){return i-s}return 0}function v(e,t,r,n,i){var s=n.tagName==="BODY"?(0,a.default)(r):(0,o.default)(r,n);var u=(0,a.default)(t),l=u.height,c=u.width;var f=void 0,d=void 0,v=void 0,m=void 0;if(e==="left"||e==="right"){d=s.top+(s.height-l)/2;if(e==="left"){f=s.left-c}else{f=s.left+s.width}var y=p(d,l,n,i);d+=y;m=50*(1-2*y/l)+"%";v=void 0}else if(e==="top"||e==="bottom"){f=s.left+(s.width-c)/2;if(e==="top"){d=s.top-l}else{d=s.top+s.height}var g=h(f,c,n,i);f+=g;v=50*(1-2*g/c)+"%";m=void 0}else{throw new Error('calcOverlayPosition(): No such placement of "'+e+'" found.')}return{positionLeft:f,positionTop:d,arrowOffsetLeft:v,arrowOffsetTop:m}}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=f;var a=n(r(1022));var i=n(r(605));var o=n(r(1023));var s=n(r(606));var u=n(r(1024));var l=n(r(120));function c(e){return e.nodeName&&e.nodeName.toLowerCase()}function f(e,t){var r={top:0,left:0},n;if((0,l.default)(e,"position")==="fixed"){n=e.getBoundingClientRect()}else{t=t||(0,o.default)(e);n=(0,i.default)(e);if(c(t)!=="html")r=(0,i.default)(t);r.top+=parseInt((0,l.default)(t,"borderTopWidth"),10)-(0,s.default)(t)||0;r.left+=parseInt((0,l.default)(t,"borderLeftWidth"),10)-(0,u.default)(t)||0}return(0,a.default)({},n,{top:n.top-r.top-(parseInt((0,l.default)(e,"marginTop"),10)||0),left:n.left-r.left-(parseInt((0,l.default)(e,"marginLeft"),10)||0)})}e.exports=t["default"]},function(e,t){function r(){e.exports=r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};return r.apply(this,arguments)}e.exports=r},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=s;var a=n(r(119));var i=n(r(120));function o(e){return e.nodeName&&e.nodeName.toLowerCase()}function s(e){var t=(0,a.default)(e),r=e&&e.offsetParent;while(r&&o(e)!=="html"&&(0,i.default)(r,"position")==="static"){r=r.offsetParent}return r||t.documentElement}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=i;var a=n(r(195));function i(e,t){var r=(0,a.default)(e);if(t===undefined)return r?"pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft:e.scrollLeft;if(r)r.scrollTo(t,"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop);else e.scrollLeft=t}e.exports=t["default"]},function(e,t,r){r(1026);e.exports=r(30).Array.isArray},function(e,t,r){var n=r(42);n(n.S,"Array",{isArray:r(607)})},function(e,t,r){"use strict";t.__esModule=true;t.default=n;function n(e){function t(t,r,n,a,i,o){var s=a||"<<anonymous>>";var u=o||n;if(r[n]==null){if(t){return new Error("Required "+i+" `"+u+"` was not specified "+("in `"+s+"`."))}return null}for(var l=arguments.length,c=Array(l>6?l-6:0),f=6;f<l;f++){c[f-6]=arguments[f]}return e.apply(undefined,[r,n,s,i,u].concat(c))}var r=t.bind(null,false);r.isRequired=t.bind(null,true);return r}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(14);var o=r(179);var s=r(41);var u=r(8);var l=r(32);var c=r(1029);var f=r(1031);var d=r(287);var p=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.refresh=r.refresh.bind(r);r.editClassifications=r.editClassifications.bind(r);return r}t.prototype.render=function(){return a.createElement("div",{className:"classifications"},this.props.book&&a.createElement(a.Fragment,null,a.createElement("h2",null,this.props.book.title),a.createElement(d.default,{show:this.props.isFetching})),this.props.fetchError&&a.createElement(l.default,{error:this.props.fetchError}),this.props.book&&this.props.genreTree&&a.createElement(c.default,{book:this.props.book,genreTree:this.props.genreTree,disabled:this.props.isFetching,editClassifications:this.editClassifications}),this.props.classifications&&this.props.classifications.length>0&&a.createElement(f.default,{classifications:this.props.classifications}))};t.prototype.UNSAFE_componentWillMount=function(){if(this.props.bookUrl){this.props.fetchGenreTree("/admin/genres");this.props.fetchClassifications(this.classificationsUrl())}};t.prototype.classificationsUrl=function(){return this.props.bookUrl.replace("works","admin/works")+"/classifications"};t.prototype.editClassificationsUrl=function(){return this.props.bookUrl.replace("works","admin/works")+"/edit_classifications"};t.prototype.refresh=function(){this.props.fetchBook(this.props.bookAdminUrl);this.props.fetchClassifications(this.classificationsUrl());this.props.refreshCatalog()};t.prototype.editClassifications=function(e){var t=this;return this.props.editClassifications(this.editClassificationsUrl(),e).then((function(e){t.refresh()}))};return t}(a.Component);t.Classifications=p;function h(e,t){return{bookAdminUrl:e.editor.book.url,genreTree:e.editor.classifications.genreTree,classifications:e.editor.classifications.classifications,isFetching:e.editor.classifications.isFetchingGenreTree||e.editor.classifications.isEditingClassifications||e.editor.classifications.isFetchingClassifications||e.editor.book.isFetching,fetchError:e.editor.classifications.fetchError}}function v(e,t){var r=new s.default({adapter:o.default});var n=new u.default(r,t.csrfToken);return{fetchBook:function(t){return e(n.fetchBookAdmin(t))},fetchGenreTree:function(t){return e(n.fetchGenreTree(t))},fetchClassifications:function(t){return e(n.fetchClassifications(t))},editClassifications:function(t,r){return e(n.editClassifications(t,r))}}}var m=i.connect(h,v)(p);t.default=m},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(18);var o=r(19);var s=r(190);var u=r(1030);var l=r(13);var c=r(91);var f=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.errorMessageRef=a.createRef();r.audienceRef=a.createRef();r.targetAgeMinRef=a.createRef();r.targetAgeMaxRef=a.createRef();r.noFictionSelectedRef=a.createRef();r.fictionRef=a.createRef();r.nonfictionRef=a.createRef();r.state={audience:t.book&&t.book.audience?t.book.audience:"None",fiction:t.book?t.book.fiction:undefined,genres:[],error:null};r.handleAudienceChange=r.handleAudienceChange.bind(r);r.handleFictionChange=r.handleFictionChange.bind(r);r.addGenre=r.addGenre.bind(r);r.removeGenre=r.removeGenre.bind(r);r.submit=r.submit.bind(r);return r}t.prototype.render=function(){var e=this;var t=this.state,r=t.audience,n=t.fiction,i=t.error,f=t.genres;var d=this.genreOptions();var p=r==="None"||i&&i["audience"];var h=n===undefined||i&&i["fiction"];return a.createElement("fieldset",{className:"classifications-form"},a.createElement("legend",{className:"visuallyHidden"},"Classifications"),i&&a.createElement(c.Alert,{bsStyle:"danger",ref:this.errorMessageRef,tabIndex:-1},Object.keys(i).map((function(e){return a.createElement("p",{key:e},i[e])}))),a.createElement(l.Panel,{id:"classifications",headerText:"Classifications",collapsible:false,onEnter:this.submit,content:a.createElement("div",null,a.createElement(o.default,{elementType:"select",disabled:this.props.disabled,name:"audience",label:"Audience",ref:this.audienceRef,value:this.props.book.audience||"None",onChange:this.handleAudienceChange,clientError:p},(!r||r==="None")&&a.createElement("option",{value:"None","aria-selected":r==="None"},"None"),a.createElement("option",{value:"Children","aria-selected":r==="Children"},"Children"),a.createElement("option",{value:"Young Adult","aria-selected":r==="Young Adult"},"Young Adult"),a.createElement("option",{value:"Adult","aria-selected":r==="Adult"},"Adult"),a.createElement("option",{value:"Adults Only","aria-selected":r==="Adults Only"},"Adults Only"),a.createElement("option",{value:"All Ages","aria-selected":r==="All Ages"},"All Ages"),a.createElement("option",{value:"Research","aria-selected":r==="Research"},"Research")),this.shouldShowTargetAge()&&a.createElement("div",{className:"form-group target-age"},a.createElement("p",null,"Target Age Range"),a.createElement("div",{className:"form-inline"},a.createElement(o.default,{elementType:"input",ref:this.targetAgeMinRef,type:"text",disabled:this.props.disabled,name:"target_age_min","aria-label":"Enter a minimum target age",value:this.props.book.targetAgeRange[0]}),a.createElement("span",null," - "),a.createElement(o.default,{elementType:"input",ref:this.targetAgeMaxRef,type:"text",disabled:this.props.disabled,name:"target_age_max","aria-label":"Enter a maximum target age",value:this.props.book.targetAgeRange[1]}))),a.createElement("div",{className:"form-group fiction-radio-input"},a.createElement("p",null,"Fiction Classification"),a.createElement("div",{className:"form-inline"},n===undefined&&a.createElement(o.default,{type:"radio",disabled:this.props.disabled,name:"fiction",value:"none",label:"None",ref:this.noFictionSelectedRef,checked:true,onChange:this.handleFictionChange,clientError:h}),a.createElement(o.default,{type:"radio",disabled:this.props.disabled,name:"fiction",value:"fiction",label:"Fiction",ref:this.fictionRef,checked:n!==undefined&&n,onChange:this.handleFictionChange,clientError:h}),a.createElement(o.default,{type:"radio",disabled:this.props.disabled,name:"fiction",value:"nonfiction",label:"Nonfiction",ref:this.nonfictionRef,checked:n!==undefined&&!n,onChange:this.handleFictionChange,clientError:h}))),a.createElement("div",{className:"form-group genre-group-form"},a.createElement("p",null,"Genres"),f.sort().map((function(t){return a.createElement(s.default,{key:t,disabled:e.props.disabled,onRemove:function(){return e.removeGenre(t)}},e.fullGenre(t))})),a.createElement("p",{className:"add-genre-form-title"},"Add Genre"),a.createElement(u.default,{disabled:this.props.disabled,genreOptions:d,bookGenres:f,addGenre:this.addGenre})))}),a.createElement(l.Button,{className:"left-align",callback:this.submit,content:"Save"}))};t.prototype.UNSAFE_componentWillMount=function(){if(this.props.book){this.setState({audience:this.props.book.audience||"None"});this.setState({fiction:this.props.book.fiction});this.setState({genres:this.bookGenres(this.props.book)})}};t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(this.bookChanged(e.book)){this.setState({audience:e.book.audience});this.setState({fiction:e.book.fiction});this.setState({genres:this.bookGenres(e.book)})}};t.prototype.bookChanged=function(e){return e.audience!==this.props.book.audience||e.targetAgeRange[0]!==this.props.book.targetAgeRange[0]||e.targetAgeRange[1]!==this.props.book.targetAgeRange[1]||e.fiction!==this.props.book.fiction||e.categories.sort()!==this.props.book.categories.sort()};t.prototype.bookGenres=function(e){var t=this;if(!e||!e.categories||!this.props.genreTree){return[]}return e.categories.filter((function(e){return!!t.props.genreTree["Fiction"][e]||!!t.props.genreTree["Nonfiction"][e]}))};t.prototype.shouldShowTargetAge=function(){return this.state.audience==="Children"||this.state.audience==="Young Adult"};t.prototype.filterGenres=function(e,t){var r=this;if(t===void 0){t=true}var n=t?"Fiction":"Nonfiction";if(!this.props.genreTree[n]){return[]}return e.filter((function(e){return r.props.genreTree[n][e]}))};t.prototype.genreOptions=function(){var e=this;if(!this.props.book||!this.props.genreTree){return[]}var t=this.state.fiction?"Fiction":"Nonfiction";if(!this.props.genreTree[t]){return[]}return Object.keys(this.props.genreTree[t]).map((function(r){return e.props.genreTree[t][r]}))};t.prototype.fullGenre=function(e){for(var t=0,r=["Fiction","Nonfiction"];t<r.length;t++){var n=r[t];var a=this.props.genreTree[n][e];if(a){return a.parents.concat([a.name]).join(" > ")}}return e};t.prototype.validateAudience=function(e,t){if(t.indexOf("Erotica")!==-1&&e!=="Adults Only"){alert("Erotica genre requires Adults Only audience");return false}else{return true}};t.prototype.handleAudienceChange=function(){var e=this.audienceRef.current.getValue();if(this.validateAudience(e,this.state.genres)){this.setState({audience:e})}else{return false}};t.prototype.handleFictionChange=function(){var e=this.fictionRef.current.getChecked();var t=e?"Nonfiction":"Fiction";var r="Are you sure? This will clear any "+t+" genres you have chosen!";if(this.state.genres.length===0||window.confirm(r)){this.setState({fiction:e,genres:this.filterGenres(this.state.genres,e)})}};t.prototype.addGenre=function(e){if(this.validateAudience(this.state.audience,[e])){this.setState({genres:this.state.genres.concat([e])})}};t.prototype.removeGenre=function(e){this.setState({genres:this.state.genres.filter((function(t){return t!==e}))})};t.prototype.submit=function(){var e=this;var t=this.state,r=t.audience,n=t.fiction;var a=new window.FormData;var o={};if(!r||r==="None"){o["audience"]="No Audience classification selected."}if(n===undefined){o["fiction"]="No Fiction classification selected."}if(o["audience"]||o["fiction"]){this.setState({error:o});setTimeout((function(){if(e.errorMessageRef.current){i.findDOMNode(e.errorMessageRef.current).focus()}}),500);return}a.append("audience",r);if(this.shouldShowTargetAge()){a.append("target_age_min",this.targetAgeMinRef.current.getValue());a.append("target_age_max",this.targetAgeMaxRef.current.getValue())}a.append("fiction",n?"fiction":"nonfiction");this.state.genres.forEach((function(e){return a.append("genres",e)}));this.setState({error:null});return this.props.editClassifications(a)};return t}(a.Component);t.default=f},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var a=this&&this.__assign||function(){a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});var i=r(1);var o=r(13);var s=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={genre:null,subgenre:null};r.handleGenreSelect=r.handleGenreSelect.bind(r);r.handleSubgenreSelect=r.handleSubgenreSelect.bind(r);r.addGenre=r.addGenre.bind(r);return r}t.prototype.render=function(){var e=this;var t=null;if(this.state.genre){var r=this.props.genreOptions.find((function(t){return t.name===e.state.genre}));if(r){t=r.subgenres.sort()}}var n=this.props.disabled?{disabled:true}:{};return i.createElement("div",{className:"genre-form"},i.createElement("div",{className:"form-inline"},i.createElement("select",a({name:"genre","aria-label":"Select one of the following genres",size:this.topLevelGenres().length,className:"form-control"},n),this.topLevelGenres().map((function(t){return i.createElement("option",{key:t.name,value:t.name,disabled:e.bookHasGenre(t.name),onClick:e.handleGenreSelect,"aria-selected":t.name===e.state.genre},t.name+(t.subgenres.length>0?" >":""))}))),t&&t.length>0&&i.createElement("select",a({name:"subgenre",size:t.length,className:"form-control subgenres"},n),t.map((function(t){return i.createElement("option",{key:t,value:t,disabled:e.bookHasGenre(t),onClick:e.handleSubgenreSelect,"aria-selected":t===e.state.subgenre},t)}))),this.state.genre&&i.createElement(o.Button,{className:"top-align",callback:this.addGenre,content:"Add"})))};t.prototype.topLevelGenres=function(){return this.props.genreOptions.filter((function(e){return e.parents.length===0}))};t.prototype.bookHasGenre=function(e){return this.props.bookGenres.indexOf(e)!==-1};t.prototype.handleGenreSelect=function(e){this.setState({genre:e.target.value,subgenre:null})};t.prototype.handleSubgenreSelect=function(e){this.setState({genre:this.state.genre,subgenre:e.target.value})};t.prototype.resetForm=function(){this.setState({genre:null,subgenre:null})};t.prototype.addGenre=function(){var e=this.state.subgenre||this.state.genre;this.props.addGenre(e);this.resetForm()};return t}(i.Component);t.default=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e=this;return a.createElement("div",{className:"classifications-table"},a.createElement("h3",null,"Related Classifications"),a.createElement("table",{className:"table"},a.createElement("thead",null,a.createElement("tr",null,a.createElement("th",null,"Type"),a.createElement("th",null,"Name"),a.createElement("th",null,"Source"),a.createElement("th",null,"Weight"))),a.createElement("tbody",null,this.props.classifications.map((function(t,r){return a.createElement("tr",{key:t.source+":"+(t.name||r)},a.createElement("td",null,e.readableType(t.type)),a.createElement("td",null,t.name),a.createElement("td",null,t.source),a.createElement("td",null,t.weight))})))))};t.prototype.readableType=function(e){return e.replace(/http:\/\/librarysimplified\.org\/terms\/genres\/([^\/]+)\//,"$1")};return t}(a.Component);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(14);var o=r(179);var s=r(41);var u=r(8);var l=r(32);var c=r(19);var f=r(13);var d=r(287);var p=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.formContainerRef=a.createRef();r.imageFormRef=a.createRef();r.coverUrlRef=a.createRef();r.coverFileRef=a.createRef();r.titlePositionRef=a.createRef();r.rightsFormRef=a.createRef();r.rightStatusRef=a.createRef();r.refresh=r.refresh.bind(r);r.preview=r.preview.bind(r);r.save=r.save.bind(r);r.renderCoverForm=r.renderCoverForm.bind(r);return r}t.prototype.UNSAFE_componentWillMount=function(){if(this.props.clearPreview){this.props.clearPreview()}if(this.props.fetchRightsStatuses){this.props.fetchRightsStatuses()}};t.prototype.render=function(){return this.props.book&&a.createElement("div",null,a.createElement("h2",null,this.props.book.title),a.createElement(d.default,{show:this.props.isFetching}),a.createElement("div",null,a.createElement("h3",null,"Current cover:"),a.createElement("img",{src:this.props.book.coverUrl,className:"book-cover current-cover",alt:"Current book cover"})),a.createElement("div",{ref:this.formContainerRef,className:"cover-edit-form"},a.createElement("h3",null,"Change cover:"),a.createElement(f.Panel,{id:"cover-metadata",headerText:"Cover Metadata",openByDefault:true,content:this.renderCoverForm(),onEnter:this.save}),this.props.rightsStatuses&&a.createElement(f.Panel,{id:"rights",headerText:"Rights",openByDefault:true,onEnter:this.save,content:this.renderRightsForm()}),a.createElement(f.Button,{className:"left-align",content:"Save this cover",disabled:this.props.isFetching||!this.props.preview,callback:this.save})),this.props.fetchError&&a.createElement(l.default,{error:this.props.fetchError}))};t.prototype.renderCoverForm=function(){var e=this.titlePositionRef.current;var t=e&&e.getValue();return a.createElement("div",null,a.createElement("p",null,"Cover must be at least 600px x 900px and in PNG, JPG, or GIF format."),a.createElement(f.Form,{ref:this.imageFormRef,className:"edit-form",onSubmit:this.preview,buttonContent:"Preview",buttonClass:"top-align",errorText:this.props.previewFetchError&&a.createElement(l.default,{error:this.props.previewFetchError}),content:a.createElement("fieldset",{key:"cover-image"},a.createElement("legend",{className:"visuallyHidden"},"Cover Image"),a.createElement(c.default,{elementType:"input",type:"text",disabled:this.props.isFetching,name:"cover_url",label:"URL for cover image",description:this.props.book.coverUrl?"Current URL: "+this.props.book.coverUrl:"",ref:this.coverUrlRef,optionalText:false}),a.createElement(c.default,{elementType:"input",type:"file",disabled:this.props.isFetching,name:"cover_file",label:"Or upload cover image",accept:"image/*",ref:this.coverFileRef,optionalText:false}),a.createElement(c.default,{elementType:"select",disabled:this.props.isFetching,name:"title_position",label:"Title and Author Position",value:"none",ref:this.titlePositionRef},a.createElement("option",{value:"none","aria-selected":t==="none"},"None"),a.createElement("option",{value:"top","aria-selected":t==="top"},"Top"),a.createElement("option",{value:"center","aria-selected":t==="center"},"Center"),a.createElement("option",{value:"bottom","aria-selected":t==="bottom"},"Bottom")))}),a.createElement(d.default,{text:"Updating Preview",show:this.props.isFetchingPreview}),this.props.preview&&a.createElement("div",null,a.createElement("h4",null,"Preview:"),a.createElement("img",{src:this.props.preview,className:"book-cover preview-cover",alt:"Preview of new cover"})))};t.prototype.previewUrl=function(){return this.props.bookAdminUrl+"/preview_book_cover"};t.prototype.preview=function(e){var t=this.coverFileRef.current.getValue();var r=this.coverUrlRef.current.getValue();if(!t&&!r&&this.props.clearPreview){this.props.clearPreview()}if((t||r)&&this.props.fetchPreview){this.props.fetchPreview(this.previewUrl(),e)}};t.prototype.renderRightsForm=function(){var e=this;var t="http://librarysimplified.org/terms/rights-status/in-copyright";var r="http://librarysimplified.org/terms/rights-status/unknown";var n=this.rightStatusRef.current;var i=n&&n.getValue();return a.createElement(f.Form,{ref:this.rightsFormRef,onSubmit:this.save,className:"edit-form",withoutButton:true,content:a.createElement("fieldset",{key:"rights"},a.createElement("legend",{className:"visuallyHidden"},"Rights:"),a.createElement(c.default,{elementType:"select",disabled:this.props.isFetching,name:"rights_status",ref:this.rightStatusRef,label:"License"},Object.keys(this.props.rightsStatuses).map((function(t){var r=e.props.rightsStatuses[t];if(r.allows_derivatives){return a.createElement("option",{value:t,key:t,"aria-selected":i===t},r.name)}return null})),a.createElement("option",{value:t,"aria-selected":i===t},"In Copyright"),a.createElement("option",{value:r,"aria-selected":i===r},"Other")),a.createElement(c.default,{elementType:"textarea",disabled:this.props.isFetching,name:"rights_explanation",label:"Explanation of rights",optionalText:false}))})};t.prototype.refresh=function(){this.props.fetchBook(this.props.bookAdminUrl);this.props.refreshCatalog()};t.prototype.save=function(){var e=new window.FormData;var t=this.props.book&&this.props.book.changeCoverLink&&this.props.book.changeCoverLink.href;var r=this.imageFormRef.current.formRef.current;var n=new window.FormData(r);e.append("cover_file",n.get("cover_file"));e.append("cover_url",n.get("cover_url"));e.append("title_position",n.get("title_position"));var a=this.rightsFormRef.current.formRef.current;var i=new window.FormData(a);e.append("rights_status",i.get("rights_status"));e.append("rights_explanation",i.get("rights_explanation"));if(t&&this.props.preview&&this.props.editCover){this.props.editCover(t,e).then(this.refresh)}};return t}(a.Component);t.BookCoverEditor=p;function h(e,t){return{bookAdminUrl:e.editor.book.url,preview:e.editor.bookCoverPreview.data,rightsStatuses:e.editor.rightsStatuses.data,isFetching:e.editor.book.isFetching||e.editor.bookCover.isFetching||e.editor.rightsStatuses.isFetching||e.editor.bookCover.isEditing,fetchError:e.editor.book.fetchError||e.editor.bookCover.fetchError||e.editor.rightsStatuses.fetchError,isFetchingPreview:e.editor.bookCoverPreview.isFetching,previewFetchError:e.editor.bookCoverPreview.fetchError}}function v(e,t){var r=new s.default({adapter:o.default});var n=new u.default(r,t.csrfToken);return{fetchBook:function(t){return e(n.fetchBookAdmin(t))},fetchPreview:function(t,r){return e(n.fetchBookCoverPreview(t,r))},clearPreview:function(){return e(n.clearBookCoverPreview())},editCover:function(t,r){return e(n.editBookCover(t,r))},fetchRightsStatuses:function(){return e(n.fetchRightsStatuses())}}}var m=i.connect(h,v)(p);t.default=m},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(14);var o=r(41);var s=r(8);var u=r(32);var l=r(197);var c=r(92);var f=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.addListRef=a.createRef();r.state={customLists:r.props.customListsForBook};r.refresh=r.refresh.bind(r);r.save=r.save.bind(r);r.makeURL=r.makeURL.bind(r);return r}t.prototype.render=function(){return a.createElement("div",{className:"custom-list-for-book"},this.props.book&&a.createElement("h2",null,this.props.book.title),a.createElement("h3",null,"Lists:"),this.props.fetchError&&a.createElement(u.default,{error:this.props.fetchError,tryAgain:this.refresh}),a.createElement("div",{className:"edit-form"},this.renderInputList(),this.renderLink()))};t.prototype.makeOption=function(e){return a.createElement("option",{value:e.name,key:e.id,"aria-selected":false},e.name)};t.prototype.renderLink=function(){return a.createElement("div",{key:"list-creator-link"},a.createElement(c.Link,{to:{pathname:"/admin/web/lists/"+this.props.library+"/create",state:{bookTitle:this.props.book&&this.props.book.title}}},"Create a new list"),a.createElement("p",null,"(The book title will be automatically copied and searched on the list creator page.)"))};t.prototype.renderInputList=function(){var e=this;var t=this.props.allCustomLists||[];if(t.length>0){return a.createElement(l.default,{key:"lists",ref:this.addListRef,setting:{menuTitle:"Select an existing list",type:"menu",format:"narrow",key:"lists-input",label:null,custom_lists:this.state.customLists,required:false,menuOptions:t.filter((function(e){return e.name})).map((function(t){return e.makeOption(t)})),urlBase:this.makeURL},title:"Current Lists",disabled:this.props.isFetching,value:this.props.customListsForBook&&this.props.customListsForBook.map((function(e){return e.name})),altValue:"This book is not currently on any lists.",onSubmit:this.save,onEmpty:"This book has been added to all the available lists."})}else{return a.createElement("p",null,"There are no available lists.")}};t.prototype.makeURL=function(e){var t=(this.props.allCustomLists||[]).find((function(t){return t.name===e}));if(t){return"/admin/web/lists/"+this.props.library+"/edit/"+t.id}};t.prototype.UNSAFE_componentWillMount=function(){if(this.props.bookUrl){this.props.fetchCustomListsForBook(this.listsUrl());if(!this.props.allCustomLists){this.props.fetchAllCustomLists()}}};t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(this.props.bookUrl!==e.bookUrl){this.setState({customLists:e.customListsForBook})}};t.prototype.listsUrl=function(){return this.props.bookUrl.replace("works","admin/works")+"/lists"};t.prototype.refresh=function(){this.props.fetchAllCustomLists();this.props.fetchCustomListsForBook(this.listsUrl());this.props.refreshCatalog()};t.prototype.save=function(){var e=this;var t=this.addListRef.current.getValue();var r=this.listsUrl();var n=new window.FormData;var a=[];t.map((function(t){var r=e.props.allCustomLists.find((function(e){return e.name===t}));a.push(r)}));n.append("lists",JSON.stringify(a));return this.props.editCustomListsForBook(r,n).then(this.refresh)};return t}(a.Component);t.CustomListsForBook=f;function d(e,t){return{allCustomLists:e.editor.customLists.data&&e.editor.customLists.data.custom_lists,customListsForBook:e.editor.customListsForBook.data&&e.editor.customListsForBook.data.custom_lists,isFetching:e.editor.customListsForBook.isFetching,fetchError:e.editor.customListsForBook.fetchError}}function p(e,t){var r=new o.default;var n=new s.default(r,t.csrfToken);return{fetchAllCustomLists:function(){return e(n.fetchCustomLists(t.library))},fetchCustomListsForBook:function(t){return e(n.fetchCustomListsForBook(t))},editCustomListsForBook:function(t,r){return e(n.editCustomListsForBook(t,r))}}}var h=i.connect(d,p)(f);t.default=h},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(1394);var o=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={value:r.props.value};r.handleChange=r.handleChange.bind(r);return r}t.prototype.render=function(){return a.createElement("div",{className:"color-picker"},a.createElement(i.CompactPicker,{color:this.state.value,triangle:"hide",width:"500px",onChangeComplete:this.handleChange}),a.createElement("input",{type:"hidden",name:this.props.setting.key,value:this.state.value}))};t.prototype.handleChange=function(e,t){this.setState({value:e.hex})};t.prototype.getValue=function(){return this.state.value};return t}(a.Component);t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.flattenNames=undefined;var n=r(55);var a=f(n);var i=r(288);var o=f(i);var s=r(144);var u=f(s);var l=r(612);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}var d=t.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var r=[];(0,c.default)(t,(function(t){if(Array.isArray(t)){e(t).map((function(e){return r.push(e)}))}else if((0,u.default)(t)){(0,o.default)(t,(function(e,t){e===true&&r.push(t);r.push(t+"-"+e)}))}else if((0,a.default)(t)){r.push(t)}}));return r};t.default=d},function(e,t,r){var n=r(135);var a=Object.prototype;var i=a.hasOwnProperty;var o=a.toString;var s=n?n.toStringTag:undefined;function u(e){var t=i.call(e,s),r=e[s];try{e[s]=undefined;var n=true}catch(e){}var a=o.call(e);if(n){if(t){e[s]=r}else{delete e[s]}}return a}e.exports=u},function(e,t){var r=Object.prototype;var n=r.toString;function a(e){return n.call(e)}e.exports=a},function(e,t,r){var n=r(1039);var a=n();e.exports=a},function(e,t){function r(e){return function(t,r,n){var a=-1,i=Object(t),o=n(t),s=o.length;while(s--){var u=o[e?s:++a];if(r(i[u],u,i)===false){break}}return t}}e.exports=r},function(e,t){function r(e,t){var r=-1,n=Array(e);while(++r<e){n[r]=t(r)}return n}e.exports=r},function(e,t,r){var n=r(84),a=r(61);var i="[object Arguments]";function o(e){return a(e)&&n(e)==i}e.exports=o},function(e,t){function r(){return false}e.exports=r},function(e,t,r){var n=r(84),a=r(293),i=r(61);var o="[object Arguments]",s="[object Array]",u="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",p="[object Number]",h="[object Object]",v="[object RegExp]",m="[object Set]",y="[object String]",g="[object WeakMap]";var b="[object ArrayBuffer]",A="[object DataView]",_="[object Float32Array]",w="[object Float64Array]",E="[object Int8Array]",x="[object Int16Array]",k="[object Int32Array]",S="[object Uint8Array]",O="[object Uint8ClampedArray]",M="[object Uint16Array]",D="[object Uint32Array]";var T={};T[_]=T[w]=T[E]=T[x]=T[k]=T[S]=T[O]=T[M]=T[D]=true;T[o]=T[s]=T[b]=T[u]=T[A]=T[l]=T[c]=T[f]=T[d]=T[p]=T[h]=T[v]=T[m]=T[y]=T[g]=false;function L(e){return i(e)&&a(e.length)&&!!T[n(e)]}e.exports=L},function(e,t,r){var n=r(295),a=r(1045);var i=Object.prototype;var o=i.hasOwnProperty;function s(e){if(!n(e)){return a(e)}var t=[];for(var r in Object(e)){if(o.call(e,r)&&r!="constructor"){t.push(r)}}return t}e.exports=s},function(e,t,r){var n=r(611);var a=n(Object.keys,Object);e.exports=a},function(e,t,r){var n=r(112);function a(e){return typeof e=="function"?e:n}e.exports=a},function(e,t,r){var n=r(1048),a=r(1084),i=r(623);function o(e){var t=a(e);if(t.length==1&&t[0][2]){return i(t[0][0],t[0][1])}return function(r){return r===e||n(r,e,t)}}e.exports=o},function(e,t,r){var n=r(297),a=r(300);var i=1,o=2;function s(e,t,r,s){var u=r.length,l=u,c=!s;if(e==null){return!l}e=Object(e);while(u--){var f=r[u];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e)){return false}}while(++u<l){f=r[u];var d=f[0],p=e[d],h=f[1];if(c&&f[2]){if(p===undefined&&!(d in e)){return false}}else{var v=new n;if(s){var m=s(p,h,d,e,t,v)}if(!(m===undefined?a(h,p,i|o,s,v):m)){return false}}}return true}e.exports=s},function(e,t){function r(){this.__data__=[];this.size=0}e.exports=r},function(e,t,r){var n=r(199);var a=Array.prototype;var i=a.splice;function o(e){var t=this.__data__,r=n(t,e);if(r<0){return false}var a=t.length-1;if(r==a){t.pop()}else{i.call(t,r,1)}--this.size;return true}e.exports=o},function(e,t,r){var n=r(199);function a(e){var t=this.__data__,r=n(t,e);return r<0?undefined:t[r][1]}e.exports=a},function(e,t,r){var n=r(199);function a(e){return n(this.__data__,e)>-1}e.exports=a},function(e,t,r){var n=r(199);function a(e,t){var r=this.__data__,a=n(r,e);if(a<0){++this.size;r.push([e,t])}else{r[a][1]=t}return this}e.exports=a},function(e,t,r){var n=r(198);function a(){this.__data__=new n;this.size=0}e.exports=a},function(e,t){function r(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}e.exports=r},function(e,t){function r(e){return this.__data__.get(e)}e.exports=r},function(e,t){function r(e){return this.__data__.has(e)}e.exports=r},function(e,t,r){var n=r(198),a=r(298),i=r(299);var o=200;function s(e,t){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!a||s.length<o-1){s.push([e,t]);this.size=++r.size;return this}r=this.__data__=new i(s)}r.set(e,t);this.size=r.size;return this}e.exports=s},function(e,t,r){var n=r(4),a=r(1060),i=r(27),o=r(613);var s=/[\\^$.*+?()[\]{}|]/g;var u=/^\[object .+?Constructor\]$/;var l=Function.prototype,c=Object.prototype;var f=l.toString;var d=c.hasOwnProperty;var p=RegExp("^"+f.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(e){if(!i(e)||a(e)){return false}var t=n(e)?p:u;return t.test(o(e))}e.exports=h},function(e,t,r){var n=r(1061);var a=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function i(e){return!!a&&a in e}e.exports=i},function(e,t,r){var n=r(60);var a=n["__core-js_shared__"];e.exports=a},function(e,t){function r(e,t){return e==null?undefined:e[t]}e.exports=r},function(e,t,r){var n=r(1064),a=r(198),i=r(298);function o(){this.size=0;this.__data__={hash:new n,map:new(i||a),string:new n}}e.exports=o},function(e,t,r){var n=r(1065),a=r(1066),i=r(1067),o=r(1068),s=r(1069);function u(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n;u.prototype["delete"]=a;u.prototype.get=i;u.prototype.has=o;u.prototype.set=s;e.exports=u},function(e,t,r){var n=r(201);function a(){this.__data__=n?n(null):{};this.size=0}e.exports=a},function(e,t){function r(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}e.exports=r},function(e,t,r){var n=r(201);var a="__lodash_hash_undefined__";var i=Object.prototype;var o=i.hasOwnProperty;function s(e){var t=this.__data__;if(n){var r=t[e];return r===a?undefined:r}return o.call(t,e)?t[e]:undefined}e.exports=s},function(e,t,r){var n=r(201);var a=Object.prototype;var i=a.hasOwnProperty;function o(e){var t=this.__data__;return n?t[e]!==undefined:i.call(t,e)}e.exports=o},function(e,t,r){var n=r(201);var a="__lodash_hash_undefined__";function i(e,t){var r=this.__data__;this.size+=this.has(e)?0:1;r[e]=n&&t===undefined?a:t;return this}e.exports=i},function(e,t,r){var n=r(202);function a(e){var t=n(this,e)["delete"](e);this.size-=t?1:0;return t}e.exports=a},function(e,t){function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}e.exports=r},function(e,t,r){var n=r(202);function a(e){return n(this,e).get(e)}e.exports=a},function(e,t,r){var n=r(202);function a(e){return n(this,e).has(e)}e.exports=a},function(e,t,r){var n=r(202);function a(e,t){var r=n(this,e),a=r.size;r.set(e,t);this.size+=r.size==a?0:1;return this}e.exports=a},function(e,t,r){var n=r(297),a=r(614),i=r(1078),o=r(1080),s=r(203),u=r(12),l=r(291),c=r(610);var f=1;var d="[object Arguments]",p="[object Array]",h="[object Object]";var v=Object.prototype;var m=v.hasOwnProperty;function y(e,t,r,v,y,g){var b=u(e),A=u(t),_=b?p:s(e),w=A?p:s(t);_=_==d?h:_;w=w==d?h:w;var E=_==h,x=w==h,k=_==w;if(k&&l(e)){if(!l(t)){return false}b=true;E=false}if(k&&!E){g||(g=new n);return b||c(e)?a(e,t,r,v,y,g):i(e,t,_,r,v,y,g)}if(!(r&f)){var S=E&&m.call(e,"__wrapped__"),O=x&&m.call(t,"__wrapped__");if(S||O){var M=S?e.value():e,D=O?t.value():t;g||(g=new n);return y(M,D,r,v,g)}}if(!k){return false}g||(g=new n);return o(e,t,r,v,y,g)}e.exports=y},function(e,t){var r="__lodash_hash_undefined__";function n(e){this.__data__.set(e,r);return this}e.exports=n},function(e,t){function r(e){return this.__data__.has(e)}e.exports=r},function(e,t,r){var n=r(135),a=r(616),i=r(200),o=r(614),s=r(1079),u=r(303);var l=1,c=2;var f="[object Boolean]",d="[object Date]",p="[object Error]",h="[object Map]",v="[object Number]",m="[object RegExp]",y="[object Set]",g="[object String]",b="[object Symbol]";var A="[object ArrayBuffer]",_="[object DataView]";var w=n?n.prototype:undefined,E=w?w.valueOf:undefined;function x(e,t,r,n,w,x,k){switch(r){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case A:if(e.byteLength!=t.byteLength||!x(new a(e),new a(t))){return false}return true;case f:case d:case v:return i(+e,+t);case p:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+"";case h:var S=s;case y:var O=n&l;S||(S=u);if(e.size!=t.size&&!O){return false}var M=k.get(e);if(M){return M==t}n|=c;k.set(e,t);var D=o(S(e),S(t),n,w,x,k);k["delete"](e);return D;case b:if(E){return E.call(e)==E.call(t)}}return false}e.exports=x},function(e,t){function r(e){var t=-1,r=Array(e.size);e.forEach((function(e,n){r[++t]=[n,e]}));return r}e.exports=r},function(e,t,r){var n=r(617);var a=1;var i=Object.prototype;var o=i.hasOwnProperty;function s(e,t,r,i,s,u){var l=r&a,c=n(e),f=c.length,d=n(t),p=d.length;if(f!=p&&!l){return false}var h=f;while(h--){var v=c[h];if(!(l?v in t:o.call(t,v))){return false}}var m=u.get(e);var y=u.get(t);if(m&&y){return m==t&&y==e}var g=true;u.set(e,t);u.set(t,e);var b=l;while(++h<f){v=c[h];var A=e[v],_=t[v];if(i){var w=l?i(_,A,v,t,e,u):i(A,_,v,e,t,u)}if(!(w===undefined?A===_||s(A,_,r,i,u):w)){g=false;break}b||(b=v=="constructor")}if(g&&!b){var E=e.constructor,x=t.constructor;if(E!=x&&("constructor"in e&&"constructor"in t)&&!(typeof E=="function"&&E instanceof E&&typeof x=="function"&&x instanceof x)){g=false}}u["delete"](e);u["delete"](t);return g}e.exports=s},function(e,t,r){var n=r(113),a=r(60);var i=n(a,"DataView");e.exports=i},function(e,t,r){var n=r(113),a=r(60);var i=n(a,"Promise");e.exports=i},function(e,t,r){var n=r(113),a=r(60);var i=n(a,"WeakMap");e.exports=i},function(e,t,r){var n=r(622),a=r(136);function i(e){var t=a(e),r=t.length;while(r--){var i=t[r],o=e[i];t[r]=[i,o,n(o)]}return t}e.exports=i},function(e,t,r){var n=r(300),a=r(35),i=r(1091),o=r(306),s=r(622),u=r(623),l=r(161);var c=1,f=2;function d(e,t){if(o(e)&&s(t)){return u(l(e),t)}return function(r){var o=a(r,e);return o===undefined&&o===t?i(r,e):n(t,o,c|f)}}e.exports=d},function(e,t,r){var n=r(1087);var a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var i=/\\(\\)?/g;var o=n((function(e){var t=[];if(e.charCodeAt(0)===46){t.push("")}e.replace(a,(function(e,r,n,a){t.push(n?a.replace(i,"$1"):r||e)}));return t}));e.exports=o},function(e,t,r){var n=r(1088);var a=500;function i(e){var t=n(e,(function(e){if(r.size===a){r.clear()}return e}));var r=t.cache;return t}e.exports=i},function(e,t,r){var n=r(299);var a="Expected a function";function i(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new TypeError(a)}var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a)){return i.get(a)}var o=e.apply(this,n);r.cache=i.set(a,o)||i;return o};r.cache=new(i.Cache||n);return r}i.Cache=n;e.exports=i},function(e,t,r){var n=r(1090);function a(e){return e==null?"":n(e)}e.exports=a},function(e,t,r){var n=r(135),a=r(137),i=r(12),o=r(138);var s=1/0;var u=n?n.prototype:undefined,l=u?u.toString:undefined;function c(e){if(typeof e=="string"){return e}if(i(e)){return a(e,c)+""}if(o(e)){return l?l.call(e):""}var t=e+"";return t=="0"&&1/e==-s?"-0":t}e.exports=c},function(e,t,r){var n=r(1092),a=r(1093);function i(e,t){return e!=null&&a(e,t,n)}e.exports=i},function(e,t){function r(e,t){return e!=null&&t in Object(e)}e.exports=r},function(e,t,r){var n=r(205),a=r(290),i=r(12),o=r(292),s=r(293),u=r(161);function l(e,t,r){t=n(t,e);var l=-1,c=t.length,f=false;while(++l<c){var d=u(t[l]);if(!(f=e!=null&&r(e,d))){break}e=e[d]}if(f||++l!=c){return f}c=e==null?0:e.length;return!!c&&s(c)&&o(d,c)&&(i(e)||a(e))}e.exports=l},function(e,t,r){var n=r(1095),a=r(1096),i=r(306),o=r(161);function s(e){return i(e)?n(o(e)):a(e)}e.exports=s},function(e,t){function r(e){return function(t){return t==null?undefined:t[e]}}e.exports=r},function(e,t,r){var n=r(204);function a(e){return function(t){return n(t,e)}}e.exports=a},function(e,t,r){var n=r(111);function a(e,t){return function(r,a){if(r==null){return r}if(!n(r)){return e(r,a)}var i=r.length,o=t?i:-1,s=Object(r);while(t?o--:++o<i){if(a(s[o],o,s)===false){break}}return r}}e.exports=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeClasses=undefined;var n=r(288);var a=u(n);var i=r(1099);var o=u(i);var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};function u(e){return e&&e.__esModule?e:{default:e}}var l=t.mergeClasses=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=t.default&&(0,o.default)(t.default)||{};r.map((function(e){var r=t[e];if(r){(0,a.default)(r,(function(e,t){if(!n[t]){n[t]={}}n[t]=s({},n[t],r[t])}))}return e}));return n};t.default=l},function(e,t,r){var n=r(625);var a=1,i=4;function o(e){return n(e,a|i)}e.exports=o},function(e,t){function r(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)===false){break}}return e}e.exports=r},function(e,t,r){var n=r(162),a=r(136);function i(e,t){return e&&n(t,a(t),e)}e.exports=i},function(e,t,r){var n=r(162),a=r(308);function i(e,t){return e&&n(t,a(t),e)}e.exports=i},function(e,t,r){var n=r(27),a=r(295),i=r(1104);var o=Object.prototype;var s=o.hasOwnProperty;function u(e){if(!n(e)){return i(e)}var t=a(e),r=[];for(var o in e){if(!(o=="constructor"&&(t||!s.call(e,o)))){r.push(o)}}return r}e.exports=u},function(e,t){function r(e){var t=[];if(e!=null){for(var r in Object(e)){t.push(r)}}return t}e.exports=r},function(e,t,r){(function(e){var n=r(60);var a=true&&t&&!t.nodeType&&t;var i=a&&typeof e=="object"&&e&&!e.nodeType&&e;var o=i&&i.exports===a;var s=o?n.Buffer:undefined,u=s?s.allocUnsafe:undefined;function l(e,t){if(t){return e.slice()}var r=e.length,n=u?u(r):new e.constructor(r);e.copy(n);return n}e.exports=l}).call(this,r(48)(e))},function(e,t){function r(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n){t[r]=e[r]}return t}e.exports=r},function(e,t,r){var n=r(162),a=r(305);function i(e,t){return n(e,a(e),t)}e.exports=i},function(e,t,r){var n=r(162),a=r(628);function i(e,t){return n(e,a(e),t)}e.exports=i},function(e,t){var r=Object.prototype;var n=r.hasOwnProperty;function a(e){var t=e.length,r=new e.constructor(t);if(t&&typeof e[0]=="string"&&n.call(e,"index")){r.index=e.index;r.input=e.input}return r}e.exports=a},function(e,t,r){var n=r(309),a=r(1111),i=r(1112),o=r(1113),s=r(1114);var u="[object Boolean]",l="[object Date]",c="[object Map]",f="[object Number]",d="[object RegExp]",p="[object Set]",h="[object String]",v="[object Symbol]";var m="[object ArrayBuffer]",y="[object DataView]",g="[object Float32Array]",b="[object Float64Array]",A="[object Int8Array]",_="[object Int16Array]",w="[object Int32Array]",E="[object Uint8Array]",x="[object Uint8ClampedArray]",k="[object Uint16Array]",S="[object Uint32Array]";function O(e,t,r){var O=e.constructor;switch(t){case m:return n(e);case u:case l:return new O(+e);case y:return a(e,r);case g:case b:case A:case _:case w:case E:case x:case k:case S:return s(e,r);case c:return new O;case f:case h:return new O(e);case d:return i(e);case p:return new O;case v:return o(e)}}e.exports=O},function(e,t,r){var n=r(309);function a(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}e.exports=a},function(e,t){var r=/\w*$/;function n(e){var t=new e.constructor(e.source,r.exec(e));t.lastIndex=e.lastIndex;return t}e.exports=n},function(e,t,r){var n=r(135);var a=n?n.prototype:undefined,i=a?a.valueOf:undefined;function o(e){return i?Object(i.call(e)):{}}e.exports=o},function(e,t,r){var n=r(309);function a(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}e.exports=a},function(e,t,r){var n=r(1116),a=r(296),i=r(295);function o(e){return typeof e.constructor=="function"&&!i(e)?n(a(e)):{}}e.exports=o},function(e,t,r){var n=r(27);var a=Object.create;var i=function(){function e(){}return function(t){if(!n(t)){return{}}if(a){return a(t)}e.prototype=t;var r=new e;e.prototype=undefined;return r}}();e.exports=i},function(e,t,r){var n=r(1118),a=r(160),i=r(294);var o=i&&i.isMap;var s=o?a(o):n;e.exports=s},function(e,t,r){var n=r(203),a=r(61);var i="[object Map]";function o(e){return a(e)&&n(e)==i}e.exports=o},function(e,t,r){var n=r(1120),a=r(160),i=r(294);var o=i&&i.isSet;var s=o?a(o):n;e.exports=s},function(e,t,r){var n=r(203),a=r(61);var i="[object Set]";function o(e){return a(e)&&n(e)==i}e.exports=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.autoprefix=undefined;var n=r(288);var a=o(n);var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};function o(e){return e&&e.__esModule?e:{default:e}}var s={borderRadius:function e(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function e(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function e(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function e(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function e(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function e(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function e(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function e(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function e(t){var r=t&&t.split(" ");return{position:"absolute",top:r&&r[0],right:r&&r[1],bottom:r&&r[2],left:r&&r[3]}},extend:function e(t,r){var n=r[t];if(n){return n}return{extend:t}}};var u=t.autoprefix=function e(t){var r={};(0,a.default)(t,(function(e,t){var n={};(0,a.default)(e,(function(e,t){var r=s[t];if(r){n=i({},n,r(e))}else{n[t]=e}}));r[t]=n}));return r};t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hover=undefined;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(1);var i=o(a);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function u(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function l(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var c=t.hover=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"span";return function(e){l(a,e);function a(){var e;var o,l,c;s(this,a);for(var f=arguments.length,d=Array(f),p=0;p<f;p++){d[p]=arguments[p]}return c=(o=(l=u(this,(e=a.__proto__||Object.getPrototypeOf(a)).call.apply(e,[this].concat(d))),l),l.state={hover:false},l.handleMouseOver=function(){return l.setState({hover:true})},l.handleMouseOut=function(){return l.setState({hover:false})},l.render=function(){return i.default.createElement(r,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},i.default.createElement(t,n({},l.props,l.state)))},o),u(l,c)}return a}(i.default.Component)};t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.active=undefined;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(1);var i=o(a);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function u(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function l(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var c=t.active=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"span";return function(e){l(a,e);function a(){var e;var o,l,c;s(this,a);for(var f=arguments.length,d=Array(f),p=0;p<f;p++){d[p]=arguments[p]}return c=(o=(l=u(this,(e=a.__proto__||Object.getPrototypeOf(a)).call.apply(e,[this].concat(d))),l),l.state={active:false},l.handleMouseDown=function(){return l.setState({active:true})},l.handleMouseUp=function(){return l.setState({active:false})},l.render=function(){return i.default.createElement(r,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},i.default.createElement(t,n({},l.props,l.state)))},o),u(l,c)}return a}(i.default.Component)};t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function e(t,r){var n={};var a=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;n[t]=r};t===0&&a("first-child");t===r-1&&a("last-child");(t===0||t%2===0)&&a("even");Math.abs(t%2)===1&&a("odd");a("nth-child",t);return n};t.default=n},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var a=this&&this.__assign||function(){a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return a.apply(this,arguments)};var i=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n["throw"](e))}catch(e){i(e)}}function u(e){e.done?r(e.value):a(e.value).then(o,s)}u((n=n.apply(e,t||[])).next())}))};var o=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};Object.defineProperty(t,"__esModule",{value:true});var s=r(1);var u=r(190);var l=r(578);var c=r(630);var f=r(127);var d=r(13);var p=r(106);var h=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.addListItemRef=s.createRef();var n=t.setting.type==="menu";r.state={listItems:t.value||t.setting.default||[],newItem:"",options:n&&r.filterMenu()};r.updateNewItem=r.updateNewItem.bind(r);r.addListItem=r.addListItem.bind(r);r.removeListItem=r.removeListItem.bind(r);r.clear=r.clear.bind(r);r.filterMenu=r.filterMenu.bind(r);r.capitalize=r.capitalize.bind(r);return r}t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(this.state.listItems&&e.value&&!p.isEqual(this.state.listItems,e.value)){this.setState({listItems:e.value})}};t.prototype.componentDidUpdate=function(e,t){if(t.listItems&&this.state.listItems&&!p.isEqual(t.listItems,this.state.listItems)){this.props.setting.format==="narrow"&&this.setState({options:this.filterMenu()})}};t.prototype.render=function(){var e=this.props.setting;var t=!this.state.options||this.state.options.length>0;var r=this.state.listItems&&this.state.listItems.length>0;var n;var a=this.props.disabled||this.props.disableButton||e.type!=="menu"&&!this.state.newItem.length;if(e.format==="language-code"){n=s.createElement(l.default,{disabled:this.props.disabled,ref:this.addListItemRef,name:e.key,languages:this.props.additionalData,onChange:this.updateNewItem})}else if(e.type==="menu"){n=this.renderMenu(e)}else{n=this.props.createEditableInput(e,{value:null,disabled:this.props.disabled,onChange:this.updateNewItem,ref:this.addListItemRef,label:null,description:null,readOnly:this.props.readOnly})}return s.createElement("div",{className:"input-list"},this.props.labelAndDescription&&this.props.labelAndDescription(e),this.props.altValue&&!r&&s.createElement("span",null,this.props.altValue),this.props.title&&r&&s.createElement("h4",null,this.props.title),r&&this.renderList(this.state.listItems,e),s.createElement("div",{className:"add-list-item-container"},s.createElement("span",{className:"add-list-item"},n),t&&s.createElement(d.Button,{type:"button",className:"add-list-item inline small bottom-align",callback:this.addListItem,content:"Add",disabled:a})))};t.prototype.renderList=function(e,t){var r=this;return s.createElement("ul",{className:"input-list-ul"},e.filter((function(e){return e})).map((function(e){var n=typeof e==="string"?e:Object.keys(e)[0];return r.renderListItem(t,n,e)})))};t.prototype.renderListItem=function(e,t,r){var n=this;var a;var i;var o=e.options?(a=e.options.find((function(e){return e.key===t})))===null||a===void 0?void 0:a.label:t;if(e.format==="language-code"){i=s.createElement(l.default,{disabled:this.props.disabled,value:t,name:e.key,languages:this.props.additionalData})}else if(e.urlBase){i=s.createElement("a",{href:e.urlBase(r)},r)}else{i=this.props.createEditableInput(e,{type:"text",description:null,disabled:this.props.disabled,value:o,name:e.type==="menu"?e.key+"_"+t:e.key,label:null,extraContent:this.renderToolTip(r,e.format),optionalText:false,readOnly:this.props.readOnly})}var c=this.props.disabled||this.props.disableButton;return s.createElement("li",{className:"input-list-item",key:t},s.createElement(u.default,{disabled:c,onRemove:function(){return n.removeListItem(r)}},i))};t.prototype.renderMenu=function(e){var t=this.state.options;if(t&&t.length>0){return this.props.createEditableInput(e,{elementType:"select",name:e.key+"_menu",value:e.key,label:e.menuTitle,required:e.required,ref:this.addListItemRef,optionalText:!e.required,description:!e.required?"(Optional) ":""},t)}else if(this.props.onEmpty){return this.props.onEmpty}};t.prototype.renderToolTip=function(e,t){var r={geographic:s.createElement(f.LocatorIcon,null)};if(typeof e==="object"){return s.createElement("span",{className:"input-group-addon"},s.createElement(c.default,{trigger:r[t],direction:"point-right",text:Object.values(e)[0].toString()}))}return null};t.prototype.filterMenu=function(){var e=this.props.setting.menuOptions;if(!e){try{e=this.props.setting.options.map((function(e){return s.createElement("option",{key:e.key,value:e.key,"aria-selected":false},e.label)}))}catch(e){return}}var t=this.state?this.state.listItems:this.props.value||this.props.setting.default;var r=t?e.filter((function(e){return t.indexOf(e.props.value)<0})):[];return r};t.prototype.updateNewItem=function(){var e=this.props.setting.format==="language-code"?this.addListItemRef.current.autocompleteRef.current:this.addListItemRef.current;this.setState(a(a({},this.state),{newItem:e.getValue()}))};t.prototype.removeListItem=function(e){return i(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.setState({listItems:this.state.listItems.filter((function(t){return t!==e}))})];case 1:t.sent();this.props.onChange&&this.props.onChange(this.state);if(!this.props.onSubmit)return[3,3];return[4,this.props.onSubmit()];case 2:t.sent();t.label=3;case 3:return[2]}}))}))};t.prototype.addListItem=function(){return i(this,void 0,void 0,(function(){var e,t;return o(this,(function(r){switch(r.label){case 0:e=this.props.setting.format==="language-code"?this.addListItemRef.current.autocompleteRef.current:this.addListItemRef.current;t=this.props.setting.capitalize?this.capitalize(e.getValue()):e.getValue();return[4,this.setState({listItems:this.state.listItems.concat(t),newItem:""})];case 1:r.sent();this.props.onChange&&this.props.onChange(this.state);if(!this.props.onSubmit)return[3,3];return[4,this.props.onSubmit()];case 2:r.sent();r.label=3;case 3:if(this.props.setting.type!=="menu"){e.clear()}return[2]}}))}))};t.prototype.capitalize=function(e){var t=this;return e.split(" ").map((function(e){return e.length===2&&t.props.setting.format==="geographic"?e.toUpperCase():p.formatString(e)})).join(" ")};t.prototype.getValue=function(){return this.state.listItems};t.prototype.clear=function(){this.setState({listItems:[]})};return t}(s.Component);t.default=h},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(398);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.fieldNames=function(){return["Published","Publisher","Audience","Categories","Distributed By"]};t.prototype.fields=function(){var t=e.prototype.fields.call(this);var r=t.findIndex((function(e){return e.name==="Categories"}));t[r].value=this.categories();t.push({name:"Audience",value:this.audience()});t.push({name:"Distributed By",value:this.distributor()});return t};t.prototype.audience=function(){if(!this.props.book){return null}var e=this.props.book.raw.category;if(!e){return null}var t=e.find((function(e){return e["$"]["scheme"]&&e["$"]["scheme"]["value"]==="http://schema.org/audience"}));if(!t){return null}var r=t["$"]["label"]&&t["$"]["label"]["value"];if(["Adult","Adults Only"].indexOf(r)!==-1){return r}var n=e.find((function(e){return e["$"]["scheme"]&&e["$"]["scheme"]["value"]==="http://schema.org/typicalAgeRange"}));if(n){var a=n["$"]["label"]&&n["$"]["label"]["value"];r+=" (age "+a+")"}return r};t.prototype.categories=function(){if(!this.props.book){return null}var e=["http://schema.org/audience","http://schema.org/typicalAgeRange"];var t="http://librarysimplified.org/terms/fiction/";var r=this.props.book.raw.category||[];var n=r.filter((function(r){return r["$"]["label"]&&r["$"]["scheme"]&&e.concat([t]).indexOf(r["$"]["scheme"]["value"])===-1})).map((function(e){return e["$"]["label"]["value"]}));if(!n.length){n=r.filter((function(e){return e["$"]["label"]&&e["$"]["scheme"]&&e["$"]["scheme"]["value"]===t})).map((function(e){return e["$"]["label"]["value"]}))}return n.length>0?n.join(", "):null};t.prototype.distributor=function(){if(!this.props.book){return null}var e=this.props.book.raw["bibframe:distribution"];if(!e||e.length<1){return null}var t=e[0]["$"]["bibframe:ProviderName"];if(!t){return null}return t.value};t.prototype.circulationLinks=function(){return null};return t}(a.default);t.default=i},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjQuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1NDkuNyAyODIuNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTQ5LjcgMjgyLjc7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojM0RCQUU4O30KCS5zdDF7ZmlsbDojMjEyNkFEO30KCS5zdDJ7ZmlsbDojRkM4NTQyO30KCS5zdDN7ZmlsbDojRkEzNjFDO30KPC9zdHlsZT4KPGc+Cgk8cG9seWdvbiBjbGFzcz0ic3QwIiBwb2ludHM9Ijc4LjcsMTEwLjIgNzguNywxNjggMTU3LjMsMTEyLjkgMTU3LjMsNTUuMSAJIi8+Cgk8cG9seWdvbiBjbGFzcz0ic3QxIiBwb2ludHM9IjE1Ny4zLDU1LjEgMTU3LjMsNTUuMSA3OC43LDAgNzguNyw2Ny44IDEwOSw4OSAJIi8+Cgk8cG9seWdvbiBjbGFzcz0ic3QyIiBwb2ludHM9IjAsMTc3LjQgMjQuNCwxNjYgNDguNywyMTEuNSA0OC43LDg5LjIgMCw1NS4xIAkiLz4KCTxwb2x5Z29uIGNsYXNzPSJzdDMiIHBvaW50cz0iMCw1NS4xIDAuMiw1NS4yIDQ4LjcsODkuMiA3OC43LDY3LjggNzguNywwIAkiLz4KCTxnPgoJCTxwYXRoIGQ9Ik0yMjMuOSw4MC4zYzItMS41LDIuOS0zLjgsMi45LTYuN2MwLTIuOS0xLTUtMi45LTYuNGMtMS45LTEuNC00LjUtMi4xLTcuOC0yLjFoLTguOHYxNy42aDguNwoJCQlDMjE5LjMsODIuNiwyMjEuOSw4MS44LDIyMy45LDgwLjMgTTIyOC41LDU3LjVjMy4yLDEuNiw1LjcsMy43LDcuNSw2LjVjMS43LDIuOCwyLjYsNS45LDIuNiw5LjNjMCwzLjUtMSw2LjgtMi45LDkuNwoJCQljLTEuOSwyLjktNC41LDUuMi03LjgsNi44Yy0zLjMsMS43LTcsMi41LTExLDIuNWgtOS41djIwLjRoLTExLjhWNTUuMkgyMTdDMjIxLjQsNTUuMiwyMjUuMiw1NiwyMjguNSw1Ny41Ii8+CgkJPHBhdGggZD0iTTI2OS4zLDkwLjVjLTAuNSwxLTEuNSwxLjktMi44LDIuN2MtMS4zLDAuOC0zLjIsMS40LTUuOCwyYy0yLjYsMC41LTQuNSwxLjItNS43LDIuMWMtMS4yLDAuOS0xLjgsMi0xLjgsMy40CgkJCWMwLDEuNCwwLjYsMi42LDEuNywzLjZjMS4xLDAuOSwyLjgsMS40LDQuOSwxLjRjMi44LDAsNS4xLTEsNi44LTIuOWMxLjctMS45LDIuNi01LjEsMi42LTkuNVY5MC41eiBNMjgxLDExMi43aC0xMS4zCgkJCWMtMC4zLTEuMy0wLjQtMi42LTAuNC0zLjd2LTIuM2gtMC4xYy0yLjYsNC43LTYuOCw3LjEtMTIuNyw3LjFjLTIuOSwwLTUuNS0wLjUtNy43LTEuNmMtMi4yLTEtMy45LTIuNS01LjItNC40CgkJCWMtMS4yLTEuOS0xLjgtNC4xLTEuOC02LjVjMC0zLjQsMS4xLTYuMSwzLjItOGMyLjEtMS45LDQuNS0zLjIsNy0zLjhjMi41LTAuNyw1LjQtMS4yLDguOC0xLjdjMi4xLTAuMywzLjctMC42LDQuOC0wLjgKCQkJYzEuMS0wLjMsMS45LTAuOCwyLjUtMS40YzAuNi0wLjYsMC45LTEuNSwwLjktMi43YzAtMS42LTAuNi0yLjgtMS45LTMuNmMtMS4zLTAuOS0zLTEuMy01LjItMS4zYy0xLjksMC0zLjYsMC41LTQuOSwxLjYKCQkJYy0xLjMsMS0yLjMsMi41LTIuOCw0LjNoLTEwLjZjMC40LTIuNSwxLjQtNC44LDIuOS02LjljMS41LTIuMSwzLjYtMy45LDYuMi01LjJjMi42LTEuMyw1LjYtMiw5LjEtMmM2LDAsMTAuNiwxLjYsMTMuNyw0LjcKCQkJYzMuMSwzLjEsNC42LDcuNiw0LjYsMTMuNFYxMDJDMjgwLjIsMTA2LjgsMjgwLjUsMTEwLjMsMjgxLDExMi43Ii8+Cgk8L2c+Cgk8cmVjdCB4PSIyODkuMiIgeT0iNTUuMiIgd2lkdGg9IjExLjQiIGhlaWdodD0iNTcuNSIvPgoJPGc+CgkJPHBhdGggZD0iTTMzNS4zLDkwLjVjLTAuNSwxLTEuNSwxLjktMi44LDIuN2MtMS4zLDAuOC0zLjIsMS40LTUuOCwyYy0yLjYsMC41LTQuNSwxLjItNS43LDIuMWMtMS4yLDAuOS0xLjgsMi0xLjgsMy40CgkJCWMwLDEuNCwwLjYsMi42LDEuNywzLjZjMS4xLDAuOSwyLjgsMS40LDQuOSwxLjRjMi44LDAsNS4xLTEsNi44LTIuOWMxLjctMS45LDIuNi01LjEsMi42LTkuNVY5MC41eiBNMzQ3LDExMi43aC0xMS4zCgkJCWMtMC4zLTEuMy0wLjQtMi42LTAuNC0zLjd2LTIuM2gtMC4xYy0yLjYsNC43LTYuOCw3LjEtMTIuNyw3LjFjLTIuOSwwLTUuNS0wLjUtNy43LTEuNmMtMi4yLTEtMy45LTIuNS01LjItNC40CgkJCWMtMS4yLTEuOS0xLjgtNC4xLTEuOC02LjVjMC0zLjQsMS4xLTYuMSwzLjItOGMyLjEtMS45LDQuNS0zLjIsNy0zLjhjMi41LTAuNyw1LjQtMS4yLDguOC0xLjdjMi4xLTAuMywzLjctMC42LDQuOC0wLjgKCQkJYzEuMS0wLjMsMS45LTAuOCwyLjUtMS40YzAuNi0wLjYsMC45LTEuNSwwLjktMi43YzAtMS42LTAuNi0yLjgtMS45LTMuNmMtMS4zLTAuOS0zLTEuMy01LjItMS4zYy0xLjksMC0zLjYsMC41LTQuOSwxLjYKCQkJYy0xLjMsMS0yLjMsMi41LTIuOCw0LjNoLTEwLjZjMC40LTIuNSwxLjQtNC44LDIuOS02LjljMS41LTIuMSwzLjYtMy45LDYuMi01LjJjMi42LTEuMyw1LjYtMiw5LjEtMmM2LDAsMTAuNiwxLjYsMTMuNyw0LjcKCQkJYzMuMSwzLjEsNC42LDcuNiw0LjYsMTMuNFYxMDJDMzQ2LjIsMTA2LjgsMzQ2LjUsMTEwLjMsMzQ3LDExMi43Ii8+CgkJPHBhdGggZD0iTTM5MS40LDEwNi44Yy0xLjksMi40LTQuMiw0LjEtNyw1LjRjLTIuOCwxLjItNS45LDEuOC05LjIsMS44Yy00LjEsMC03LjgtMC45LTExLjMtMi43Yy0zLjQtMS44LTYuMi00LjMtOC4yLTcuNwoJCQljLTItMy40LTMuMS03LjMtMy4xLTExLjhjMC00LjUsMS04LjQsMy4xLTExLjhjMi0zLjMsNC44LTUuOSw4LjItNy42YzMuNC0xLjcsNy4yLTIuNiwxMS4zLTIuNmMzLjMsMCw2LjQsMC42LDkuMiwxLjgKCQkJYzIuOCwxLjIsNS4xLDMsNyw1LjJjMS44LDIuMywzLDUsMy41LDguMWgtMTAuNmMtMC42LTIuMS0xLjgtMy43LTMuNC00LjdjLTEuNi0xLTMuNS0xLjYtNS43LTEuNmMtMi4zLDAtNC4yLDAuNi01LjksMS43CgkJCWMtMS43LDEuMi0zLDIuNy0zLjksNC44Yy0wLjksMi0xLjQsNC4zLTEuNCw2LjdjMCwyLjUsMC41LDQuNywxLjQsNi43YzAuOSwyLDIuMiwzLjYsMy45LDQuOGMxLjcsMS4yLDMuNywxLjcsNS45LDEuNwoJCQljMi4zLDAsNC4yLTAuNiw1LjktMS43YzEuNy0xLjEsMi44LTIuOCwzLjQtNS4xSDM5NUMzOTQuNCwxMDEuNiwzOTMuMiwxMDQuNSwzOTEuNCwxMDYuOCIvPgoJCTxwYXRoIGQ9Ik00MzEuNCw4Ny43Yy0wLjMtMi42LTEuMy00LjktMy02LjdjLTEuNy0xLjgtNC0yLjctNy0yLjdjLTIuOCwwLTUuMiwwLjktNy4xLDIuNmMtMS45LDEuNy0zLjEsNC0zLjUsNi44SDQzMS40egoJCQkgTTQ0Mi4yLDk1LjFoLTMxLjZjMC4zLDIsMC45LDMuNywxLjksNS4yYzEsMS41LDIuMiwyLjcsMy43LDMuNWMxLjUsMC44LDMuMiwxLjIsNS4xLDEuMmMyLDAsMy44LTAuNCw1LjQtMS4xCgkJCWMxLjYtMC44LDIuNy0xLjksMy41LTMuNGgxMS40Yy0wLjksMi43LTIuMiw1LjEtNC4xLDcuMmMtMS45LDItNC4yLDMuNi03LDQuOGMtMi44LDEuMS01LjgsMS43LTkuMiwxLjdjLTQuMiwwLTcuOS0wLjktMTEuMi0yLjgKCQkJYy0zLjMtMS45LTUuOC00LjUtNy43LTcuOWMtMS44LTMuNC0yLjctNy4zLTIuNy0xMS42YzAtNC4yLDAuOS04LDIuOC0xMS4zYzEuOS0zLjQsNC41LTYsNy44LTcuOWMzLjMtMS45LDctMi45LDExLjItMi45CgkJCWM0LjUsMCw4LjIsMSwxMS40LDNjMy4xLDIsNS40LDQuOCw3LDguMmMxLjYsMy41LDIuNCw3LjQsMi40LDExLjhDNDQyLjMsOTMuNyw0NDIuMyw5NC41LDQ0Mi4yLDk1LjEiLz4KCQk8cGF0aCBkPSJNMjQzLjMsMTgxLjljLTIuMywyLjctNS4yLDQuOC04LjgsNi40Yy0zLjYsMS42LTcuNywyLjQtMTIuMiwyLjRjLTYuMSwwLTExLjMtMS4zLTE1LjctNGMtNC40LTIuNy03LjgtNi4yLTEwLjEtMTAuOAoJCQljLTIuMy00LjUtMy41LTkuNS0zLjUtMTVjMC01LjUsMS4yLTEwLjUsMy41LTE1YzIuMy00LjUsNS43LTguMSwxMC4xLTEwLjhjNC40LTIuNyw5LjYtNCwxNS43LTRjNi43LDAsMTIuMiwxLjYsMTYuNCw0LjgKCQkJYzQuMiwzLjIsNy4zLDcuNCw5LjEsMTIuOGgtNi44Yy0xLjYtMy44LTMuOS02LjctNi45LTguOGMtMy0yLTYuOS0zLjEtMTEuOC0zLjFjLTQuOCwwLTguOSwxLjEtMTIuMiwzLjMKCQkJYy0zLjQsMi4yLTUuOSw1LjEtNy43LDguOGMtMS43LDMuNy0yLjYsNy42LTIuNiwxMS45YzAsNC4zLDAuOCw4LjMsMi41LDExLjljMS43LDMuNyw0LjIsNi42LDcuNiw4LjhjMy40LDIuMiw3LjUsMy4zLDEyLjMsMy4zCgkJCWM0LjksMCw4LjktMS4xLDEyLjEtMy4zYzMuMi0yLjIsNS40LTUuMSw2LjYtOC43aDYuOEMyNDcuMSwxNzYuMiwyNDUuNSwxNzkuMiwyNDMuMywxODEuOSIvPgoJCTxwYXRoIGQ9Ik0yODIuNywxODIuOWMyLjEtMS41LDMuOC0zLjQsNS01LjljMS4yLTIuNSwxLjgtNS4yLDEuOC04LjFjMC0zLTAuNi01LjctMS44LTguMmMtMS4yLTIuNS0yLjktNC40LTUtNS45CgkJCWMtMi4xLTEuNC00LjYtMi4yLTcuNC0yLjJjLTIuNywwLTUuMiwwLjctNy40LDIuMmMtMi4yLDEuNS0zLjksMy40LTUsNS45Yy0xLjIsMi41LTEuOCw1LjItMS44LDguMmMwLDMsMC42LDUuNywxLjgsOC4xCgkJCWMxLjIsMi41LDIuOSw0LjQsNSw1LjljMi4yLDEuNCw0LjYsMi4yLDcuNCwyLjJDMjc4LDE4NS4xLDI4MC41LDE4NC40LDI4Mi43LDE4Mi45IE0yNjQuNCwxODcuN2MtMy4xLTEuOS01LjUtNC41LTcuMi03LjgKCQkJYy0xLjctMy4zLTIuNS02LjktMi41LTExYzAtNCwwLjgtNy43LDIuNS0xMWMxLjctMy4zLDQuMS01LjksNy4yLTcuOGMzLjEtMS45LDYuNy0yLjksMTAuOS0yLjljNC4xLDAsNy44LDEsMTAuOSwyLjkKCQkJYzMuMSwxLjksNS42LDQuNSw3LjMsNy44YzEuNywzLjMsMi41LDcsMi41LDExYzAsNC0wLjgsNy43LTIuNSwxMWMtMS43LDMuMy00LjEsNS45LTcuMyw3LjhjLTMuMSwxLjktNi44LDIuOS0xMC45LDIuOQoJCQlDMjcxLjEsMTkwLjUsMjY3LjUsMTg5LjYsMjY0LjQsMTg3LjciLz4KCTwvZz4KCTxyZWN0IHg9IjMwMy44IiB5PSIxMzIuMiIgd2lkdGg9IjYuNCIgaGVpZ2h0PSI1Ny41Ii8+Cgk8cmVjdCB4PSIzMjAuOCIgeT0iMTMyLjIiIHdpZHRoPSI2LjQiIGhlaWdodD0iNTcuNSIvPgoJPGc+CgkJPHBhdGggZD0iTTM0OC4zLDE1NC4xYy0yLDEuMS0zLjUsMi42LTQuNyw0LjZjLTEuMiwyLTEuOSw0LjItMi4zLDYuOGgyNi41Yy0wLjQtNC4xLTEuNi03LjMtMy43LTkuNmMtMi4xLTIuMy01LjEtMy41LTktMy41CgkJCUMzNTIuNiwxNTIuNSwzNTAuMywxNTMsMzQ4LjMsMTU0LjEgTTM2My4xLDE4My4yYzIuMS0xLjMsMy42LTMuMyw0LjQtNS45aDYuNGMtMS4yLDQuMi0zLjQsNy41LTYuNiw5LjgKCQkJYy0zLjIsMi4zLTcuMiwzLjQtMTEuOCwzLjRjLTQuMSwwLTcuNy0wLjktMTAuNy0yLjhjLTMuMS0xLjktNS40LTQuNC03LjEtNy43Yy0xLjctMy4zLTIuNS03LTIuNS0xMS4yYzAtNC4xLDAuOC03LjgsMi41LTExCgkJCWMxLjctMy4zLDQuMS01LjgsNy4xLTcuN2MzLTEuOSw2LjUtMi44LDEwLjQtMi44YzQuNSwwLDguMSwxLDEwLjksMy4xYzIuOCwyLDQuOSw0LjcsNi4yLDhjMS4zLDMuMywyLDYuOSwyLjEsMTAuOGwwLjEsMS42aC0zMy4xCgkJCWMwLjIsMywwLjgsNS41LDIuMSw3LjdjMS4yLDIuMiwyLjgsMy45LDQuOSw1YzIsMS4yLDQuNCwxLjcsNywxLjdDMzU4LjMsMTg1LjIsMzYwLjksMTg0LjUsMzYzLjEsMTgzLjIiLz4KCQk8cGF0aCBkPSJNNDEzLDE4Ny4xYy0zLjEsMi4zLTcsMy41LTExLjksMy41Yy00LjIsMC03LjktMC45LTExLjEtMi44Yy0zLjItMS45LTUuNy00LjUtNy40LTcuN2MtMS43LTMuMy0yLjYtNy0yLjYtMTEKCQkJYzAtNC4xLDAuOS03LjgsMi42LTExLjFjMS43LTMuMyw0LjItNS45LDcuNC03LjhjMy4yLTEuOSw2LjktMi44LDExLjEtMi44YzQuOSwwLDguOSwxLjIsMTEuOSwzLjVjMy4xLDIuNCw1LjEsNS41LDYsOS40aC02LjUKCQkJYy0wLjktMi4zLTIuMy00LjItNC4xLTUuNmMtMS45LTEuNC00LjMtMi4xLTcuNS0yLjFjLTIuOCwwLTUuNCwwLjctNy42LDIuMmMtMi4yLDEuNC0zLjksMy40LTUuMSw1LjljLTEuMiwyLjUtMS44LDUuMy0xLjgsOC4zCgkJCXMwLjYsNS44LDEuOCw4LjNjMS4yLDIuNSwyLjksNC40LDUuMSw1LjhjMi4yLDEuNCw0LjcsMi4xLDcuNiwyLjFjNiwwLDkuOS0yLjcsMTEuOC04aDYuNUM0MTguMiwxODEuNSw0MTYuMSwxODQuNyw0MTMsMTg3LjEiLz4KCQk8cGF0aCBkPSJNNDQzLjgsMTg0LjR2NS4zaC0zLjVjLTMuNywwLTYuNS0wLjktOC4zLTIuOGMtMS44LTEuOS0yLjctNC40LTIuNy03Ljd2LTI1LjloLTYuM3YtNS4zaDYuM3YtOS44bDYuMy0yLjl2MTIuN2g4djUuM2gtOAoJCQl2MjUuNWMwLDEuOCwwLjUsMy4xLDEuNCw0LjFjMC45LDAuOSwyLjIsMS40LDMuOCwxLjRINDQzLjh6Ii8+Cgk8L2c+Cgk8cGF0aCBkPSJNNDUxLjYsMTMyLjJoNi45djguMWgtNi45VjEzMi4yeiBNNDUxLjUsMTQ4LjFoNi40djQxLjZoLTYuNFYxNDguMXoiLz4KCTxnPgoJCTxwYXRoIGQ9Ik00OTQuNCwxODIuOWMyLjEtMS41LDMuOC0zLjQsNS01LjljMS4yLTIuNSwxLjgtNS4yLDEuOC04LjFjMC0zLTAuNi01LjctMS44LTguMmMtMS4yLTIuNS0yLjktNC40LTUtNS45CgkJCWMtMi4xLTEuNC00LjYtMi4yLTcuNC0yLjJjLTIuNywwLTUuMiwwLjctNy40LDIuMmMtMi4yLDEuNS0zLjksMy40LTUsNS45Yy0xLjIsMi41LTEuOCw1LjItMS44LDguMmMwLDMsMC42LDUuNywxLjgsOC4xCgkJCWMxLjIsMi41LDIuOSw0LjQsNSw1LjljMi4yLDEuNCw0LjYsMi4yLDcuNCwyLjJDNDg5LjcsMTg1LjEsNDkyLjIsMTg0LjQsNDk0LjQsMTgyLjkgTTQ3Ni4xLDE4Ny43Yy0zLjEtMS45LTUuNS00LjUtNy4yLTcuOAoJCQljLTEuNy0zLjMtMi41LTYuOS0yLjUtMTFjMC00LDAuOC03LjcsMi41LTExYzEuNy0zLjMsNC4xLTUuOSw3LjItNy44YzMuMS0xLjksNi43LTIuOSwxMC45LTIuOWM0LjEsMCw3LjgsMSwxMC45LDIuOQoJCQljMy4xLDEuOSw1LjYsNC41LDcuMyw3LjhjMS43LDMuMywyLjUsNywyLjUsMTFjMCw0LTAuOCw3LjctMi41LDExYy0xLjcsMy4zLTQuMSw1LjktNy4zLDcuOGMtMy4xLDEuOS02LjgsMi45LTEwLjksMi45CgkJCUM0ODIuOCwxOTAuNSw0NzkuMiwxODkuNiw0NzYuMSwxODcuNyIvPgoJCTxwYXRoIGQ9Ik01MjIsMTQ4LjF2Ny44YzEuMi0yLjYsMi44LTQuNyw0LjktNi4yYzIuMS0xLjYsNC43LTIuNCw3LjctMi40YzUsMCw4LjgsMS40LDExLjMsNC4yYzIuNSwyLjgsMy44LDYuNiwzLjgsMTEuNXYyNi43CgkJCWgtNi40di0yNi4yYzAtMy44LTAuOC02LjYtMi40LTguM2MtMS42LTEuNy0zLjktMi42LTYuOS0yLjZjLTIuMSwwLTQuMSwwLjYtNS45LDEuN2MtMS44LDEuMi0zLjIsMy00LjQsNS40CgkJCWMtMS4xLDIuNC0xLjcsNS41LTEuNyw5LjF2MjAuOGgtNi40di00MS42SDUyMnoiLz4KCTwvZz4KCTxwb2x5Z29uIHBvaW50cz0iMTk2LjEsMjA5LjIgMjA3LjMsMjA5LjMgMjI0LjMsMjU4LjcgMjI0LjQsMjU4LjcgMjQxLjMsMjA5LjIgMjUyLjYsMjA5LjIgMjUyLjYsMjY2LjcgMjQ1LjgsMjY2LjcgMjQ1LjgsMjE2LjggCgkJMjQ1LjcsMjE2LjggMjI4LjMsMjY2LjcgMjIwLjUsMjY2LjcgMjAzLDIxNi44IDIwMi44LDIxNi44IDIwMi44LDI2Ni43IDE5Ni4xLDI2Ni43IAkiLz4KCTxnPgoJCTxwYXRoIGQ9Ik0yODMuOSwyNjAuN2MyLTEuMSwzLjYtMi44LDQuOC01YzEuMi0yLjIsMS44LTUsMS44LTguM3YtNmMtMC41LDEuNS0xLjcsMi44LTMuNSwzLjhjLTEuOCwxLTQuNywxLjktOC43LDIuNQoJCQljLTMuNCwwLjYtNiwxLjUtNy44LDIuN2MtMS43LDEuMi0yLjYsMi44LTIuNiw0LjljMCwxLjQsMC40LDIuNiwxLjIsMy43YzAuOCwxLDEuOSwxLjksMy4zLDIuNWMxLjQsMC42LDMsMC45LDQuOSwwLjkKCQkJQzI3OS43LDI2Mi40LDI4MS45LDI2MS44LDI4My45LDI2MC43IE0yOTAuNSwyNjAuNXYtMS44aC0wLjFjLTAuOCwyLjMtMi4zLDQuNC00LjYsNi4yYy0yLjIsMS44LTUuNCwyLjctOS41LDIuNwoJCQljLTMuMiwwLTUuOS0wLjYtOC4xLTEuN2MtMi4yLTEuMi0zLjktMi43LTUtNC42Yy0xLjEtMS45LTEuNy0zLjktMS43LTZjMC0zLDAuOS01LjQsMi44LTcuMWMxLjktMS43LDQuMS0zLDYuNS0zLjcKCQkJYzIuNS0wLjcsNS40LTEuNCw4LjktMS45bDEuOS0wLjNjMi4xLTAuNCwzLjgtMC44LDUtMS4zYzEuMi0wLjUsMi4xLTEuMSwyLjctMS45YzAuNi0wLjgsMC45LTEuNywwLjktMi45YzAtMi4xLTAuOS0zLjctMi43LTQuOQoJCQljLTEuOC0xLjItNC4yLTEuOC03LjMtMS44Yy0yLjYsMC00LjksMC43LTYuNywyLjFjLTEuOSwxLjQtMywzLjQtMy42LDUuOGgtNi40YzAuNC0yLjIsMS4yLTQuMywyLjUtNi40YzEuMy0yLDMuMi0zLjcsNS41LTUKCQkJYzIuNC0xLjMsNS4yLTIsOC41LTJjMTEsMCwxNi40LDUuMiwxNi40LDE1LjV2MTguNWMwLDIuOCwwLjIsNS42LDAuNiw4LjVoLTYuOEMyOTAuNSwyNjUuMywyOTAuNSwyNjMuMywyOTAuNSwyNjAuNSIvPgoJCTxwYXRoIGQ9Ik0zMTMuNiwyMjUuMXY3LjhjMS4yLTIuNiwyLjgtNC43LDQuOS02LjJjMi4xLTEuNiw0LjctMi40LDcuNy0yLjRjNSwwLDguOCwxLjQsMTEuMyw0LjJjMi41LDIuOCwzLjgsNi42LDMuOCwxMS41djI2LjcKCQkJaC02LjR2LTI2LjJjMC0zLjgtMC44LTYuNi0yLjQtOC4zYy0xLjYtMS43LTMuOS0yLjYtNi45LTIuNmMtMi4xLDAtNC4xLDAuNi01LjksMS43Yy0xLjgsMS4yLTMuMiwzLTQuNCw1LjQKCQkJYy0xLjEsMi40LTEuNyw1LjUtMS43LDkuMXYyMC44aC02LjR2LTQxLjZIMzEzLjZ6Ii8+CgkJPHBhdGggZD0iTTM3MS42LDI2MC43YzItMS4xLDMuNi0yLjgsNC44LTVjMS4yLTIuMiwxLjgtNSwxLjgtOC4zdi02Yy0wLjUsMS41LTEuNywyLjgtMy41LDMuOGMtMS44LDEtNC43LDEuOS04LjcsMi41CgkJCWMtMy40LDAuNi02LDEuNS03LjgsMi43Yy0xLjcsMS4yLTIuNiwyLjgtMi42LDQuOWMwLDEuNCwwLjQsMi42LDEuMiwzLjdjMC44LDEsMS45LDEuOSwzLjMsMi41czMsMC45LDQuOSwwLjkKCQkJQzM2Ny40LDI2Mi40LDM2OS42LDI2MS44LDM3MS42LDI2MC43IE0zNzguMiwyNjAuNXYtMS44aC0wLjFjLTAuOCwyLjMtMi4zLDQuNC00LjYsNi4yYy0yLjIsMS44LTUuNCwyLjctOS41LDIuNwoJCQljLTMuMiwwLTUuOS0wLjYtOC4xLTEuN2MtMi4yLTEuMi0zLjktMi43LTUtNC42Yy0xLjEtMS45LTEuNy0zLjktMS43LTZjMC0zLDAuOS01LjQsMi44LTcuMWMxLjktMS43LDQuMS0zLDYuNS0zLjcKCQkJYzIuNS0wLjcsNS40LTEuNCw4LjktMS45bDEuOS0wLjNjMi4xLTAuNCwzLjgtMC44LDUtMS4zYzEuMi0wLjUsMi4xLTEuMSwyLjctMS45YzAuNi0wLjgsMC45LTEuNywwLjktMi45YzAtMi4xLTAuOS0zLjctMi43LTQuOQoJCQljLTEuOC0xLjItNC4yLTEuOC03LjMtMS44Yy0yLjYsMC00LjksMC43LTYuNywyLjFjLTEuOSwxLjQtMywzLjQtMy42LDUuOGgtNi40YzAuNC0yLjIsMS4yLTQuMywyLjUtNi40YzEuMy0yLDMuMi0zLjcsNS41LTUKCQkJYzIuNC0xLjMsNS4yLTIsOC41LTJjMTEsMCwxNi40LDUuMiwxNi40LDE1LjV2MTguNWMwLDIuOCwwLjIsNS42LDAuNiw4LjVoLTYuOEMzNzguMiwyNjUuMywzNzguMiwyNjMuMywzNzguMiwyNjAuNSIvPgoJCTxwYXRoIGQ9Ik00MDAuMywyNTRjMSwyLjUsMi41LDQuNCw0LjYsNS45YzIsMS40LDQuNiwyLjIsNy42LDIuMmMzLjIsMCw1LjktMC44LDcuOS0yLjVjMi4xLTEuNiwzLjUtMy43LDQuNC02LjIKCQkJYzAuOS0yLjUsMS4zLTUsMS4zLTcuNmMwLTIuNi0wLjUtNS4xLTEuNi03LjZjLTEtMi41LTIuNi00LjYtNC43LTYuMmMtMi4xLTEuNi00LjYtMi40LTcuNC0yLjRjLTIuOSwwLTUuNCwwLjctNy41LDIuMgoJCQljLTIuMSwxLjUtMy42LDMuNC00LjcsNS45Yy0xLDIuNC0xLjYsNS4xLTEuNiw4LjFDMzk4LjcsMjQ4LjgsMzk5LjIsMjUxLjUsNDAwLjMsMjU0IE00MzIuMiwyNjMuOWMwLDMuOC0wLjgsNy4xLTIuNSwxMAoJCQljLTEuNiwyLjgtMy45LDUtNi44LDYuNmMtMi45LDEuNS02LjEsMi4zLTkuNywyLjNjLTMuNCwwLTYuNS0wLjYtOS4zLTEuN2MtMi43LTEuMS01LTIuOC02LjYtNC45Yy0xLjctMi4xLTIuNy00LjYtMy03LjVoNi41CgkJCWMwLjQsMywxLjcsNS4xLDMuOCw2LjVjMi4xLDEuNCw1LDIuMSw4LjYsMi4xYzMuOSwwLDYuOS0xLjEsOS4yLTMuNGMyLjMtMi4zLDMuNC01LjYsMy40LTEwLjJ2LTUuNGgtMC4xYy0xLjEsMi44LTIuOCw1LjEtNSw2LjcKCQkJYy0yLjMsMS42LTUuNCwyLjUtOS4yLDIuNWMtMy45LDAtNy4zLTEtMTAuMi0yLjljLTIuOS0xLjktNS4xLTQuNS02LjYtNy44Yy0xLjUtMy4zLTIuMy03LTIuMy0xMWMwLTQuMSwwLjgtNy44LDIuMy0xMQoJCQljMS41LTMuMywzLjctNS45LDYuNi03LjdjMi45LTEuOSw2LjMtMi44LDEwLjItMi44YzMuOCwwLDYuOCwwLjgsOS4yLDIuNWMyLjQsMS43LDQuMSwzLjcsNSw2LjJoMC4xdi03LjloNi40VjI2My45eiIvPgoJCTxwYXRoIGQ9Ik00NTMuNCwyMzEuMWMtMiwxLjEtMy41LDIuNi00LjcsNC42Yy0xLjIsMi0xLjksNC4yLTIuMyw2LjhoMjYuNWMtMC40LTQuMS0xLjYtNy4zLTMuNy05LjZjLTIuMS0yLjMtNS4xLTMuNS05LTMuNQoJCQlDNDU3LjYsMjI5LjUsNDU1LjQsMjMwLDQ1My40LDIzMS4xIE00NjguMSwyNjAuMmMyLjEtMS4zLDMuNi0zLjMsNC40LTUuOWg2LjRjLTEuMiw0LjItMy40LDcuNS02LjYsOS44CgkJCWMtMy4yLDIuMy03LjIsMy40LTExLjgsMy40Yy00LjEsMC03LjctMC45LTEwLjctMi44Yy0zLjEtMS45LTUuNC00LjQtNy4xLTcuN2MtMS43LTMuMy0yLjUtNy0yLjUtMTEuMmMwLTQuMSwwLjgtNy44LDIuNS0xMQoJCQljMS43LTMuMyw0LjEtNS44LDcuMS03LjdjMy0xLjksNi41LTIuOCwxMC40LTIuOGM0LjUsMCw4LjEsMSwxMC45LDMuMWMyLjgsMiw0LjksNC43LDYuMiw4YzEuMywzLjMsMiw2LjksMi4xLDEwLjhsMC4xLDEuNmgtMzMuMQoJCQljMC4yLDMsMC44LDUuNSwyLjEsNy43YzEuMiwyLjIsMi44LDMuOSw0LjksNXM0LjQsMS43LDcsMS43QzQ2My4zLDI2Mi4yLDQ2NS45LDI2MS41LDQ2OC4xLDI2MC4yIi8+CgkJPHBhdGggZD0iTTQ5OC43LDIyN2MyLjEtMS40LDQuNy0yLjEsOC0yLjF2NmMtMC41LDAtMS4xLDAuMS0xLjgsMC4yYy0wLjcsMC4xLTEuMywwLjItMS45LDAuNGMtMS44LDAuNS0zLjMsMS4yLTQuNiwyLjIKCQkJYy0xLjMsMS0yLjMsMi41LTMuMSw0LjZjLTAuOCwyLjEtMS4yLDQuOC0xLjIsOC4zdjIwLjFoLTYuNHYtNDEuNmg2LjR2OC4zQzQ5NS4xLDIzMC41LDQ5Ni42LDIyOC4zLDQ5OC43LDIyNyIvPgoJPC9nPgo8L2c+Cjwvc3ZnPgo="},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(536);t.default=function(e,t){var r=[];if(e&&e.raw&&e.raw["simplified:breadcrumbs"]&&e.raw["simplified:breadcrumbs"][0]&&e.raw["simplified:breadcrumbs"][0].link){var a=e.raw["simplified:breadcrumbs"][0].link;r=a.map((function(e){return{url:e["$"].href.value,text:e["$"].title.value}}));r.push({url:e.url,text:e.title})}else{r=n.hierarchyComputeBreadcrumbs(e,t)}return r}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(1130);var o=r(537);var s=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e=a.Children.only(this.props.children);var t=JSON.parse(JSON.stringify(e.props.collection));var r=t&&t.facetGroups?t.facetGroups:[];var n=Object.assign({},e.props);var s=[];if(r&&r.length){var u;r.forEach((function(e,t){if(e.label==="Formats"){u=t;s=e.facets.slice()}}));if(u!==undefined){r.splice(u,1)}}t.facetGroups=r;n.collection=t;var l=a.createElement(o.default,n);return a.createElement("div",{className:"entry-points-tab-container"},a.createElement(i.default,{facets:s}),l)};return t}(a.Component);t.default=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(65);var o=r(0);var s=r(127);var u=function(e){n(t,e);function t(t){return e.call(this,t)||this}t.prototype.render=function(){var e=this.props.facets?this.props.facets:[];if(!e.length){return null}var t={All:"http://schema.org/CreativeWork",eBooks:"http://schema.org/EBook",Audiobooks:"http://bib.schema.org/Audiobook"};var r={"http://bib.schema.org/Audiobook":a.createElement(s.AudioHeadphoneIcon,{ariaHidden:true,title:"Audio Headphones Icon"}),"http://schema.org/EBook":a.createElement(s.BookIcon,{ariaHidden:true,title:"Book Icon"}),"http://schema.org/CreativeWork":null};return a.createElement("ul",{className:"nav nav-tabs entry-points-list"},e.map((function(e){var n=e.label;var o=t[n];var s=e.active?"active":"";var u=e.href;var l=r[o]?r[o]:null;var c=!l?"no-svg":"";return a.createElement("li",{key:n,role:"presentation",className:s+" "+c},a.createElement(i.default,{collectionUrl:u,bookUrl:null},l,n))})))};t.contextTypes={router:o.object.isRequired,pathFor:o.func.isRequired};return t}(a.Component);t.EntryPointsTabs=u;t.default=u},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(76);var o=r(77);var s=r(91);var u=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return a.createElement("div",{className:"welcome-page"},a.createElement(i.default,null),a.createElement(s.Jumbotron,null,a.createElement("h2",null,"Welcome to the Circulation Admin Interface!"),a.createElement("hr",null),a.createElement("p",null,"You don't have any libraries yet. To get started, go to the System Configuration section and",a.createElement("a",{href:"/admin/web/config/libraries/create"}," ","create a new library"),".")),a.createElement(o.default,null))};return t}(a.Component);t.default=u},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(0);var o=r(76);var s=r(77);var u=r(1133);var l=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.getChildContext=function(){var e=this;return{library:function(){return e.props.params.library}}};t.prototype.render=function(){var e;if(this.props.location&&this.props.location.state){e=this.props.location.state.bookTitle}return a.createElement("div",{className:"custom-list-page"},a.createElement(o.default,null),a.createElement(u.default,{library:this.props.params.library,editOrCreate:this.props.params.editOrCreate,identifier:this.props.params.identifier,store:this.context.editorStore,csrfToken:this.context.csrfToken,startingTitle:e}),a.createElement(s.default,null))};t.contextTypes={editorStore:i.object.isRequired,csrfToken:i.string.isRequired};t.childContextTypes={library:i.func};return t}(a.Component);t.default=l},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var a=this&&this.__assign||function(){a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return a.apply(this,arguments)};var i=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n["throw"](e))}catch(e){i(e)}}function u(e){e.done?r(e.value):a(e.value).then(o,s)}u((n=n.apply(e,t||[])).next())}))};var o=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};Object.defineProperty(t,"__esModule",{value:true});var s=r(1);var u=r(14);var l=r(0);var c=r(8);var f=r(41);var d=r(178);var p=r(1134);var h=r(66);var v=r(32);var m=r(1226);var y=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.saveCustomListEditor=r.saveCustomListEditor.bind(r);r.deleteCustomList=r.deleteCustomList.bind(r);r.changeFilter=r.changeFilter.bind(r);r.changeSort=r.changeSort.bind(r);r.getEnabledEntryPoints=r.getEnabledEntryPoints.bind(r);r.state={filter:"owned",sort:"asc"};return r}t.prototype.render=function(){return s.createElement("main",{className:"custom-lists-container"},this.props.fetchError&&s.createElement(v.default,{error:this.props.fetchError}),this.props.isFetching&&s.createElement(h.default,null),s.createElement("div",{className:"custom-lists"},this.renderSidebar(),this.props.editOrCreate&&this.renderEditor()))};t.prototype.renderSidebar=function(){return s.createElement(m.default,{lists:this.filteredSortedLists(),library:this.props.library,identifier:this.props.identifier,isLibraryManager:this.context.admin.isLibraryManager(this.props.library),deleteCustomList:this.deleteCustomList,changeSort:this.changeSort,sortOrder:this.state.sort,changeFilter:this.changeFilter,filter:this.state.filter})};t.prototype.renderEditor=function(){var e=this;var t,r,n;var i={collections:this.collectionsForLibrary(),autoUpdateStatus:this.props.customListEditorAutoUpdateStatus,isAutoUpdateEnabled:this.props.customListEditorIsAutoUpdateEnabled,properties:this.props.customListEditorProperties,savedName:this.props.customListEditorSavedName,searchParams:this.props.customListEditorSearchParams,isLoaded:this.props.customListEditorIsLoaded,isValid:this.props.customListEditorIsValid,isModified:this.props.customListEditorIsModified,isSearchModified:this.props.customListEditorIsSearchModified,isOwner:this.props.customListEditorIsOwner,isShared:this.props.customListEditorIsShared,isSharePending:this.props.customListEditorIsSharePending,entries:this.props.customListEditorEntries,save:this.saveCustomListEditor,reset:this.props.resetCustomListEditor,entryPoints:this.getEnabledEntryPoints(this.props.libraries),isFetchingMoreCustomListEntries:this.props.isFetchingMoreCustomListEntries,isFetchingSearchResults:this.props.isFetchingSearchResults,isFetchingMoreSearchResults:this.props.isFetchingMoreSearchResults,languages:this.props.languages,library:(t=this.props.libraries)===null||t===void 0?void 0:t.find((function(t){return t.short_name===e.props.library})),loadMoreEntries:((r=this.props.listDetails)===null||r===void 0?void 0:r.nextPageUrl)&&this.props.loadMoreEntries,loadMoreSearchResults:((n=this.props.searchResults)===null||n===void 0?void 0:n.nextPageUrl)&&this.props.loadMoreSearchResults,search:this.props.executeCustomListEditorSearch,searchResults:this.props.searchResults,updateProperty:this.props.updateCustomListEditorProperty,toggleCollection:this.props.toggleCustomListEditorCollection,updateSearchParam:this.props.updateCustomListEditorSearchParam,addAdvSearchQuery:this.props.addCustomListEditorAdvSearchQuery,updateAdvSearchQueryBoolean:this.props.updateCustomListEditorAdvSearchQueryBoolean,moveAdvSearchQuery:this.props.moveCustomListEditorAdvSearchQuery,removeAdvSearchQuery:this.props.removeCustomListEditorAdvSearchQuery,selectAdvSearchQuery:this.props.selectCustomListEditorAdvSearchQuery,addEntry:this.props.addCustomListEditorEntry,addAllEntries:this.props.addAllCustomListEditorEntries,deleteEntry:this.props.deleteCustomListEditorEntry,deleteAllEntries:this.props.deleteAllCustomListEditorEntries,share:function(){var t,r;return(r=(t=e.props).shareCustomList)===null||r===void 0?void 0:r.call(t,e.props.identifier)}};var o=this.props.editOrCreate==="create"?{startingTitle:this.props.startingTitle}:{listId:this.props.identifier};return s.createElement(p.default,a({},a(a({},i),o)))};t.prototype.UNSAFE_componentWillMount=function(){var e,t,r,n,a,i;var o=this.props,s=o.editOrCreate,u=o.fetchCollections,l=o.fetchCustomListDetails,c=o.fetchCustomLists,f=o.fetchLibraries,d=o.fetchLanguages,p=o.identifier,h=o.openCustomListEditor;(e=c)===null||e===void 0?void 0:e();(t=h)===null||t===void 0?void 0:t(p);if(s==="edit"){(r=l)===null||r===void 0?void 0:r(p)}(n=u)===null||n===void 0?void 0:n();(a=f)===null||a===void 0?void 0:a();(i=d)===null||i===void 0?void 0:i()};t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t,r;var n=e.editOrCreate,a=e.fetchError,i=e.lists;if(!n&&i&&!a){var o=this.filteredSortedLists(i);if(o.length===0){window.location.href+="/create"}else{var s=o[0];window.location.href+="/edit/"+s.id}}var u=e.identifier,l=e.fetchCustomListDetails,c=e.openCustomListEditor;if(u!==this.props.identifier){(t=c)===null||t===void 0?void 0:t(u);if(u){(r=l)===null||r===void 0?void 0:r(u)}}};t.prototype.changeFilter=function(e){this.setState({filter:e})};t.prototype.changeSort=function(e){this.setState({sort:e})};t.prototype.filterLists=function(e){var t=this.state.filter;var r=null;if(t==="owned"){r=function(e){return e.is_owner}}else if(t==="shared-in"){r=function(e){return!e.is_owner}}else if(t==="shared-out"){r=function(e){return e.is_owner&&e.is_shared}}return r?e.filter(r):e};t.prototype.filteredSortedLists=function(e){var t=this;e=e||this.props.lists||[];return this.filterLists(e).sort((function(e,r){var n=e;var a=r;if(t.state.sort==="desc"){n=r;a=e}if(n.name<a.name){return-1}else if(n.name===a.name){return 0}else{return 1}}))};t.prototype.getEnabledEntryPoints=function(e){var t=this;if(!e){return[]}var r;e.forEach((function(e){if(e.short_name===t.props.library){r=e}}));return r.settings.enabled_entry_points||[]};t.prototype.saveCustomListEditor=function(){return i(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:e=this.props.identifier;return[4,this.props.saveCustomListEditor()];case 1:t.sent();this.props.fetchCustomLists();if(e){this.props.fetchCustomListDetails(e)}return[2]}}))}))};t.prototype.deleteCustomList=function(e){return i(this,void 0,void 0,(function(){var t,r,n;return o(this,(function(a){switch(a.label){case 0:return[4,this.getDeletedLanes(e.id)];case 1:t=a.sent();r="";if(t&&t.length){r=this.deletedLaneNames(t)}n='Delete list "'+e.name+'"? '+r;if(!window.confirm(n))return[3,3];return[4,this.props.deleteCustomList(String(e.id))];case 2:a.sent();this.props.fetchCustomLists();a.label=3;case 3:return[2]}}))}))};t.prototype.getDeletedLanes=function(e){return i(this,void 0,void 0,(function(){var t,r;return o(this,(function(n){switch(n.label){case 0:t=[];r=this.props.lanes;if(!!r)return[3,2];return[4,this.props.fetchLanes()];case 1:n.sent();r=this.props.lanes;n.label=2;case 2:if(r&&r.length){r.forEach((function(r){var n=r.custom_list_ids;if(n.length===1&&n[0]===e){t.push(r)}}))}return[2,t]}}))}))};t.prototype.deletedLaneNames=function(e){var t="Deleting this list will delete the following lanes:\n";e.forEach((function(e){return t+="\nLane name: "+e.display_name}));return t};t.prototype.collectionsForLibrary=function(){var e=[];for(var t=0,r=this.props.collections||[];t<r.length;t++){var n=r[t];for(var a=0,i=n.libraries||[];a<i.length;a++){var o=i[a];if(o.short_name===this.props.library){e.push(n);break}}}return e};t.contextTypes={admin:l.object.isRequired};return t}(s.Component);t.CustomLists=y;function g(e,t){var r,n;return{customListEditorProperties:e.editor.customListEditor.properties.current,customListEditorSavedName:e.editor.customListEditor.properties.baseline.name,customListEditorSearchParams:e.editor.customListEditor.searchParams.current,customListEditorEntries:e.editor.customListEditor.entries,customListEditorAutoUpdateStatus:e.editor.customListEditor.autoUpdateStatus,customListEditorIsLoaded:e.editor.customListEditor.isLoaded,customListEditorIsOwner:e.editor.customListEditor.isOwner,customListEditorIsShared:e.editor.customListEditor.isShared,customListEditorIsSharePending:e.editor.customListEditor.isSharePending,customListEditorIsValid:e.editor.customListEditor.isValid,customListEditorIsModified:e.editor.customListEditor.isModified,customListEditorIsSearchModified:e.editor.customListEditor.isSearchModified,customListEditorIsAutoUpdateEnabled:e.editor.customListEditor.isAutoUpdateEnabled,lists:e.editor.customLists&&e.editor.customLists.data&&e.editor.customLists.data.custom_lists,listDetails:e.editor.customListDetails&&e.editor.customListDetails.data,isFetchingMoreCustomListEntries:e.editor.customListDetails&&e.editor.customListDetails.isFetchingMoreEntries,fetchError:e.editor.customLists.fetchError||e.editor.collections.fetchError,isFetching:e.editor.customLists.isFetching||e.editor.customLists.isEditing||e.editor.customListDetails.isFetching||e.editor.customListDetails.isEditing||!t.editOrCreate||e.editor.collections.isFetching,searchResults:e.editor.collection&&e.editor.collection.data,isFetchingSearchResults:(r=e.editor.collection)===null||r===void 0?void 0:r.isFetching,isFetchingMoreSearchResults:(n=e.editor.collection)===null||n===void 0?void 0:n.isFetchingPage,collections:e.editor.collections&&e.editor.collections.data&&e.editor.collections.data.collections,languages:e.editor.languages&&e.editor.languages.data,libraries:e.editor.libraries.data&&e.editor.libraries.data.libraries,lanes:e.editor.lanes.data&&e.editor.lanes.data.lanes}}function b(e,t){var r=new f.default({adapter:d.adapter});var n=new c.default(r,t.csrfToken);return{fetchCustomLists:function(){return e(n.fetchCustomLists(t.library))},fetchCustomListDetails:function(r){return e(n.fetchCustomListDetails(t.library,r))},saveCustomListEditor:function(){return e(n.saveCustomListEditor(t.library))},resetCustomListEditor:function(){e(n.resetCustomListEditor());e(n.executeCustomListEditorSearch(t.library))},executeCustomListEditorSearch:function(){return e(n.executeCustomListEditorSearch(t.library))},loadMoreSearchResults:function(){return e(n.fetchMoreCustomListEditorSearchResults())},deleteCustomList:function(r){return e(n.deleteCustomList(t.library,r))},shareCustomList:function(r){return e(n.shareCustomList(t.library,r))},openCustomListEditor:function(t){return e(n.openCustomListEditor(t))},loadMoreEntries:function(){return e(n.fetchMoreCustomListEntries())},fetchCollections:function(){return e(n.fetchCollections())},fetchLibraries:function(){return e(n.fetchLibraries())},fetchLanes:function(){return e(n.fetchLanes(t.library))},fetchLanguages:function(){return e(n.fetchLanguages())},updateCustomListEditorProperty:function(t,r){return e(n.updateCustomListEditorProperty(t,r))},toggleCustomListEditorCollection:function(t){return e(n.toggleCustomListEditorCollection(t))},updateCustomListEditorSearchParam:function(r,a){e(n.updateCustomListEditorSearchParam(r,a));e(n.executeCustomListEditorSearch(t.library))},addCustomListEditorAdvSearchQuery:function(r,a){e(n.addCustomListEditorAdvSearchQuery(r,a));e(n.executeCustomListEditorSearch(t.library))},updateCustomListEditorAdvSearchQueryBoolean:function(r,a,i){e(n.updateCustomListEditorAdvSearchQueryBoolean(r,a,i));e(n.executeCustomListEditorSearch(t.library))},moveCustomListEditorAdvSearchQuery:function(r,a,i){e(n.moveCustomListEditorAdvSearchQuery(r,a,i));e(n.executeCustomListEditorSearch(t.library))},removeCustomListEditorAdvSearchQuery:function(r,a){e(n.removeCustomListEditorAdvSearchQuery(r,a));e(n.executeCustomListEditorSearch(t.library))},selectCustomListEditorAdvSearchQuery:function(t,r){return e(n.selectCustomListEditorAdvSearchQuery(t,r))},addCustomListEditorEntry:function(t){return e(n.addCustomListEditorEntry(t))},addAllCustomListEditorEntries:function(){return e(n.addAllCustomListEditorEntries())},deleteCustomListEditorEntry:function(t){return e(n.deleteCustomListEditorEntry(t))},deleteAllCustomListEditorEntries:function(){return e(n.deleteAllCustomListEditorEntries())}}}var A=u.connect(g,b)(y);t.default=A},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=r(13);var i=r(1135);var o=r(1214);var s=r(19);var u=r(1225);var l=r(647);var c=r(211);function f(e){var t=e.autoUpdateStatus,r=e.collections,f=e.entries,d=e.entryPoints,p=e.isAutoUpdateEnabled,h=e.isFetchingMoreCustomListEntries,v=e.isFetchingSearchResults,m=e.isFetchingMoreSearchResults,y=e.isLoaded,g=e.isModified,b=e.isSearchModified,A=e.isOwner,_=e.isShared,w=e.isSharePending,E=e.isValid,x=e.languages,k=e.library,S=e.listId,O=e.properties,M=e.savedName,D=e.searchParams,T=e.searchResults,L=e.startingTitle,C=e.addAllEntries,j=e.addEntry,N=e.deleteAllEntries,I=e.deleteEntry,P=e.loadMoreEntries,R=e.loadMoreSearchResults,F=e.reset,Y=e.save,B=e.search,H=e.share,U=e.toggleCollection,z=e.updateProperty,q=e.updateSearchParam,V=e.addAdvSearchQuery,W=e.updateAdvSearchQueryBoolean,K=e.moveAdvSearchQuery,G=e.removeAdvSearchQuery,Q=e.selectAdvSearchQuery;var J,Z;var X=O.collections,$=O.name;n.useEffect((function(){var e;(e=B)===null||e===void 0?void 0:e()}),[S,y]);var ee=!A;var te=S&&M?((J=k)===null||J===void 0?void 0:J.short_name)+"/lists/"+M+"/crawlable":undefined;return n.createElement("div",{className:"custom-list-editor"},n.createElement("div",{className:"custom-list-editor-header"},n.createElement("div",{className:"edit-custom-list-title"},ee&&n.createElement("h3",null,$),!ee&&n.createElement("fieldset",{className:"save-or-edit"},n.createElement("legend",{className:"visuallyHidden"},"List name"),n.createElement(l.default,{text:$,placeholder:"list title",onUpdate:function(e){var t;return(t=z)===null||t===void 0?void 0:t("name",e)},"aria-label":"Enter a title for this list",disableIfBlank:true})),S&&n.createElement("h4",null,"ID-",S)),!ee&&n.createElement("div",{className:"save-or-cancel-list"},n.createElement(a.Button,{callback:Y,disabled:!g||!E,content:"Save this list"}),n.createElement(a.Button,{className:"inverted",callback:F,disabled:!g,content:"Cancel changes"}))),n.createElement("div",{className:"custom-list-editor-body"},n.createElement("section",null,S&&n.createElement(a.Panel,{headerText:"Sharing",id:"sharing",content:A?n.createElement("div",{className:"sharing-info"},n.createElement("p",{className:"sharing-status"},_?"Shared ":"Not shared",_&&n.createElement(c.default,null)),n.createElement("p",null,_?"This list has been shared with other libraries.":"This list can be shared with the other libraries that are currently configured in this Collection Manager."," ","A shared list may be edited only by the owning library. Each library that is subscribed to a shared list will obtain only the titles that are available to that library."),n.createElement("p",null,n.createElement("i",null,"Once shared, a list cannot be unshared or deleted.")),_&&n.createElement("p",null,"Sharing this list again will make it available to any libraries that have been registered in this Collection Manager since the list was last shared."),n.createElement(u.default,{disabled:w,pending:w,submit:H,text:_?"Share again":"Share"})):n.createElement("div",{className:"sharing-info"},n.createElement("p",{className:"sharing-status"},n.createElement(c.default,null)," Subscribed"),n.createElement("p",null,"This list has been shared by another library. It may be edited only by the owning library. Only the titles in the shared list that are available to this library will be obtained."))}),((Z=r)===null||Z===void 0?void 0:Z.length)>0&&n.createElement("div",{className:"custom-list-filters"},n.createElement(a.Panel,{headerText:"Add from collections",id:"add-from-collections",content:n.createElement("div",{className:"collections"},n.createElement("div",null,"Automatically add new books from these collections to this list:"),r.map((function(e){var t=e.id,r=e.name;return n.createElement(s.default,{disabled:ee,key:t,type:"checkbox",name:"collection",checked:X.includes(t),label:r,value:t,onChange:function(e){var t;return(t=U)===null||t===void 0?void 0:t(parseInt(e))}})})))})),n.createElement(o.default,{autoUpdate:O.autoUpdate,isOwner:A,listId:S,searchParams:D,updateAutoUpdate:function(e){var t;return(t=z)===null||t===void 0?void 0:t("autoUpdate",e)},updateSearchParam:q,search:B,entryPoints:d,startingTitle:L,library:k,languages:x,showAutoUpdate:p,addAdvSearchQuery:V,updateAdvSearchQueryBoolean:W,moveAdvSearchQuery:K,removeAdvSearchQuery:G,selectAdvSearchQuery:Q})),n.createElement(i.default,{autoUpdateStatus:t,autoUpdate:O.autoUpdate,isOwner:A,isSearchModified:b,searchResults:T,entries:f.current,loadMoreSearchResults:R,loadMoreEntries:P,isFetchingSearchResults:v,isFetchingMoreSearchResults:m,isFetchingMoreCustomListEntries:h,opdsFeedUrl:te,entryCount:f.currentTotalCount,listId:S,addEntry:j,addAllEntries:C,deleteEntry:I,deleteAllEntries:N,refreshResults:B})))}t.default=f},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(13);var o=r(65);var s=r(177);var u=r(310);var l=r(1209);var c=r(107);var f=r(327);var d=r(210);var p=r(1210);var h=r(1211);var v=r(1212);var m=function(e,t){var r=e.title,n=e.url;if(!n){return null}return a.createElement(o.default,{collectionUrl:t,bookUrl:n,title:r,target:"_blank",className:"btn inverted left-align small top-align"},"View details")};var y=function(e){var t=e.autoUpdate,r=e.autoUpdateStatus,o=e.entries,y=o===void 0?[]:o,g=e.entryCount,b=g===void 0?0:g,A=e.isFetchingMoreCustomListEntries,_=e.isFetchingSearchResults,w=e.isFetchingMoreSearchResults,E=e.isOwner,x=e.isSearchModified,k=e.listId,S=e.opdsFeedUrl,O=e.searchResults,M=e.addAllEntries,D=e.addEntry,T=e.deleteAllEntries,L=e.deleteEntry,C=e.loadMoreEntries,j=e.loadMoreSearchResults,N=e.refreshResults;var I;var P=a.useState(null),R=P[0],F=P[1];a.useEffect((function(){F(null)}),[k,y]);a.useEffect((function(){var e;if(y){(e=document.getElementById("custom-list-entries-droppable"))===null||e===void 0?void 0:e.scrollTo(0,0)}}),[y]);var Y=a.useMemo((function(){var e,r;if(!((r=(e=O)===null||e===void 0?void 0:e.books)===null||r===void 0?void 0:r.length)){return[]}if(t){return O.books}var n=y.reduce((function(e,t){e[t.id]=true;return e}),{});return O.books.filter((function(e){return!n[e.id]}))}),[t,y,O]);var B=function(e){F(e.source.droppableId);document.body.classList.add("dragging")};var H=function(e){var t,r,n,a;var i=e.draggableId,o=e.source,s=e.destination;if(o.droppableId==="search-results"&&((t=s)===null||t===void 0?void 0:t.droppableId)==="custom-list-entries"){(r=D)===null||r===void 0?void 0:r(i)}else if(o.droppableId==="custom-list-entries"&&((n=s)===null||n===void 0?void 0:n.droppableId)==="search-results"){(a=L)===null||a===void 0?void 0:a(i)}else{F(null)}document.body.classList.remove("dragging")};var U=!E||t;var z=null;if(E){z=a.createElement("div",{className:"custom-list-search-results"},a.createElement("div",{className:"droppable-header"},a.createElement("h4",null,"Search Results"),a.createElement(i.Button,{"aria-label":"Refresh",className:"refresh-button inverted",callback:N,content:a.createElement(p.default,null),disabled:_}),!U&&!_&&Y.length>0&&a.createElement(i.Button,{className:"add-all-button",callback:M,content:a.createElement("span",null,"Add all to list",a.createElement(l.default,null))})),_&&a.createElement(h.default,null),!_&&a.createElement(u.Droppable,{droppableId:"search-results",isDropDisabled:U||R!=="custom-list-entries"},(function(e,t){return a.createElement("ul",{ref:e.innerRef,className:t.isDraggingOver?"droppable dragging-over":"droppable"},R==="custom-list-entries"&&a.createElement("p",null,"Drag books here to remove them from the list."),R!=="custom-list-entries"&&Y.map((function(e){return a.createElement(u.Draggable,{key:e.id,draggableId:e.id,isDragDisabled:U},(function(t,r){var o;return a.createElement("li",null,a.createElement("div",n({className:"search-result"+(r.isDragging?" dragging":""),ref:t.innerRef,style:t.draggableStyle},t.dragHandleProps),!U&&a.createElement(f.default,null),a.createElement("div",null,a.createElement("div",{className:"title"},e.title),a.createElement("div",{className:"authors"},(o=e.authors)===null||o===void 0?void 0:o.join(", "))),s.getMediumSVG(s.getMedium(e)),a.createElement("div",{className:"links"},m(e),!U&&a.createElement(i.Button,{callback:function(){var t;return(t=D)===null||t===void 0?void 0:t(e.id)},className:"right-align",content:a.createElement("span",null,"Add to list",a.createElement(d.default,null))}))),t.placeholder)}))})),e.placeholder)})),!_&&j&&a.createElement(v.default,{isFetching:w,loadMore:j}))}var q=y.length;var V=q>0?1:0;var W=q;var K=b===1?"book":"books";var G=b>0?"Displaying "+V+" - "+W+" of "+b+" "+K:"No books in this list";var Q=null;var J=null;if(!k){Q="New";J="This is a new list. Once the initial search criteria have been saved, the system will begin to populate its entries; however, the list might not be fully populated until the next scheduled update."}else if(x){Q="Search criteria modified";J="There are unsaved changes to the search criteria for this list. Once the changes have been saved, the new search criteria will be used to repopulate the list during the next scheduled update."}else{if(r==="init"){Q="Initializing";J="This list was created recently. The system has partially populated the list using the configured search criteria and will fully populate the list during the next scheduled update."}else if(r==="repopulate"){Q="Repopulating";J="The search criteria for this list were changed recently, but the entries have not yet been updated. The new search criteria will be used to repopulate the list during the next scheduled update."}else if(r==="updated"){Q="Updated";J="This list was fully populated during the last scheduled update, using the configured search criteria and the titles that were available at the time. New titles matching the criteria will be added to the list during the next scheduled update."}else if(!r){Q="Changing to automatic";J="This list was populated manually, but is being changed to be updated automatically. The configured search criteria will be used to repopulate the list during the next scheduled update."}else{Q=r}}var Z=a.createElement("div",{className:"custom-list-entries"},a.createElement("div",{className:"droppable-header"},a.createElement("h4",null,"List Entries: ",G),t&&a.createElement(a.Fragment,null,a.createElement("div",{className:"auto-update-status-name"},"Status: ",Q),a.createElement("aside",{className:"auto-update-status-desc"},J)),!U&&((I=y)===null||I===void 0?void 0:I.length)>0&&a.createElement("div",null,a.createElement("span",null,"Remove all currently visible items from list:"),a.createElement(i.Button,{className:"danger delete-all-button top-align",callback:T,content:a.createElement("span",null,"Delete",a.createElement(c.default,null))}))),!U&&a.createElement("p",null,"Drag search results here to add them to the list."),a.createElement(u.Droppable,{droppableId:"custom-list-entries",isDropDisabled:U||R!=="search-results"},(function(e,t){var r;return a.createElement("ul",{ref:e.innerRef,id:"custom-list-entries-droppable",className:t.isDraggingOver?" droppable dragging-over":"droppable"},(r=y)===null||r===void 0?void 0:r.map((function(e){return a.createElement(u.Draggable,{key:e.id,draggableId:e.id,isDragDisabled:U},(function(t,r){var o;return a.createElement("li",null,a.createElement("div",n({className:"custom-list-entry"+(r.isDragging?" dragging":""),ref:t.innerRef,style:t.draggableStyle},t.dragHandleProps),!U&&a.createElement(f.default,null),a.createElement("div",null,a.createElement("div",{className:"title"},e.title),a.createElement("div",{className:"authors"},(o=e.authors)===null||o===void 0?void 0:o.join(", "))),s.getMediumSVG(s.getMedium(e)),a.createElement("div",{className:"links"},m(e,S),!U&&a.createElement(i.Button,{className:"small right-align",callback:function(){var t;return(t=L)===null||t===void 0?void 0:t(e.id)},content:a.createElement("span",null,"Remove from list",a.createElement(c.default,null))}))),t.placeholder)}))})),e.placeholder)})),C&&a.createElement(v.default,{isFetching:A,loadMore:C}));return a.createElement(u.DragDropContext,{onDragStart:B,onDragEnd:H},a.createElement("div",{className:"custom-list-drag-and-drop"},z,Z))};t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1137);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(163);var a=x(n);var i=r(85);var o=x(i);var s=r(86);var u=x(s);var l=r(87);var c=x(l);var f=r(88);var d=x(f);var p=r(89);var h=x(p);var v=r(1);var m=x(v);var y=r(0);var g=x(y);var b=r(1159);var A=x(b);var _=r(1178);var w=x(_);var E=r(118);function x(e){return e&&e.__esModule?e:{default:e}}var k=function(e){(0,h.default)(t,e);function t(){(0,u.default)(this,t);return(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}(0,c.default)(t,[{key:"getChildContext",value:function e(){return(0,a.default)({},E.storeKey,this.store)}},{key:"componentWillMount",value:function e(){var t=this;this.store=(0,A.default)();var r=this.store.getState();this.unsubscribe=this.store.subscribe((function(){var e=t.store.getState();var n={onDragStart:t.props.onDragStart,onDragEnd:t.props.onDragEnd};(0,w.default)(n,e,r);r=e}))}},{key:"componentWillUnmount",value:function e(){this.unsubscribe()}},{key:"render",value:function e(){return this.props.children}}]);return t}(m.default.Component);k.childContextTypes=(0,a.default)({},E.storeKey,g.default.shape({dispatch:g.default.func.isRequired,subscribe:g.default.func.isRequired,getState:g.default.func.isRequired}).isRequired);t.default=k},function(e,t,r){r(1139);var n=r(30).Object;e.exports=function e(t,r,a){return n.defineProperty(t,r,a)}},function(e,t,r){var n=r(42);n(n.S+n.F*!r(75),"Object",{defineProperty:r(83).f})},function(e,t,r){r(1141);e.exports=r(30).Object.getPrototypeOf},function(e,t,r){var n=r(133);var a=r(599);r(589)("getPrototypeOf",(function(){return function e(t){return a(n(t))}}))},function(e,t,r){e.exports={default:r(1143),__esModule:true}},function(e,t,r){r(596);r(1144);e.exports=r(312).f("iterator")},function(e,t,r){r(1145);var n=r(74);var a=r(129);var i=r(159);var o=r(68)("toStringTag");var s=("CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,"+"DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,"+"MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,"+"SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,"+"TextTrackList,TouchList").split(",");for(var u=0;u<s.length;u++){var l=s[u];var c=n[l];var f=c&&c.prototype;if(f&&!f[o])a(f,o,l);i[l]=i.Array}},function(e,t,r){"use strict";var n=r(1146);var a=r(1147);var i=r(159);var o=r(110);e.exports=r(597)(Array,"Array",(function(e,t){this._t=o(e);this._i=0;this._k=t}),(function(){var e=this._t;var t=this._k;var r=this._i++;if(!e||r>=e.length){this._t=undefined;return a(1)}if(t=="keys")return a(0,r);if(t=="values")return a(0,e[r]);return a(0,[r,e[r]])}),"values");i.Arguments=i.Array;n("keys");n("values");n("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){e.exports={default:r(1149),__esModule:true}},function(e,t,r){r(1150);r(1154);r(1155);r(1156);e.exports=r(30).Symbol},function(e,t,r){"use strict";var n=r(74);var a=r(109);var i=r(75);var o=r(42);var s=r(598);var u=r(1151).KEY;var l=r(108);var c=r(279);var f=r(284);var d=r(193);var p=r(68);var h=r(312);var v=r(313);var m=r(1152);var y=r(607);var g=r(130);var b=r(131);var A=r(133);var _=r(110);var w=r(275);var E=r(157);var x=r(282);var k=r(1153);var S=r(587);var O=r(281);var M=r(83);var D=r(132);var T=S.f;var L=M.f;var C=k.f;var j=n.Symbol;var N=n.JSON;var I=N&&N.stringify;var P="prototype";var R=p("_hidden");var F=p("toPrimitive");var Y={}.propertyIsEnumerable;var B=c("symbol-registry");var H=c("symbols");var U=c("op-symbols");var z=Object[P];var q=typeof j=="function"&&!!O.f;var V=n.QObject;var W=!V||!V[P]||!V[P].findChild;var K=i&&l((function(){return x(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a!=7}))?function(e,t,r){var n=T(z,t);if(n)delete z[t];L(e,t,r);if(n&&e!==z)L(z,t,n)}:L;var G=function(e){var t=H[e]=x(j[P]);t._k=e;return t};var Q=q&&typeof j.iterator=="symbol"?function(e){return typeof e=="symbol"}:function(e){return e instanceof j};var J=function e(t,r,n){if(t===z)J(U,r,n);g(t);r=w(r,true);g(n);if(a(H,r)){if(!n.enumerable){if(!a(t,R))L(t,R,E(1,{}));t[R][r]=true}else{if(a(t,R)&&t[R][r])t[R][r]=false;n=x(n,{enumerable:E(0,false)})}return K(t,r,n)}return L(t,r,n)};var Z=function e(t,r){g(t);var n=m(r=_(r));var a=0;var i=n.length;var o;while(i>a)J(t,o=n[a++],r[o]);return t};var X=function e(t,r){return r===undefined?x(t):Z(x(t),r)};var $=function e(t){var r=Y.call(this,t=w(t,true));if(this===z&&a(H,t)&&!a(U,t))return false;return r||!a(this,t)||!a(H,t)||a(this,R)&&this[R][t]?r:true};var ee=function e(t,r){t=_(t);r=w(r,true);if(t===z&&a(H,r)&&!a(U,r))return;var n=T(t,r);if(n&&a(H,r)&&!(a(t,R)&&t[R][r]))n.enumerable=true;return n};var te=function e(t){var r=C(_(t));var n=[];var i=0;var o;while(r.length>i){if(!a(H,o=r[i++])&&o!=R&&o!=u)n.push(o)}return n};var re=function e(t){var r=t===z;var n=C(r?U:_(t));var i=[];var o=0;var s;while(n.length>o){if(a(H,s=n[o++])&&(r?a(z,s):true))i.push(H[s])}return i};if(!q){j=function e(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:undefined);var r=function(e){if(this===z)r.call(U,e);if(a(this,R)&&a(this[R],t))this[R][t]=false;K(this,t,E(1,e))};if(i&&W)K(z,t,{configurable:true,set:r});return G(t)};s(j[P],"toString",(function e(){return this._k}));S.f=ee;M.f=J;r(632).f=k.f=te;r(158).f=$;O.f=re;if(i&&!r(192)){s(z,"propertyIsEnumerable",$,true)}h.f=function(e){return G(p(e))}}o(o.G+o.W+o.F*!q,{Symbol:j});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ae=0;ne.length>ae;)p(ne[ae++]);for(var ie=D(p.store),oe=0;ie.length>oe;)v(ie[oe++]);o(o.S+o.F*!q,"Symbol",{for:function(e){return a(B,e+="")?B[e]:B[e]=j(e)},keyFor:function e(t){if(!Q(t))throw TypeError(t+" is not a symbol!");for(var r in B)if(B[r]===t)return r},useSetter:function(){W=true},useSimple:function(){W=false}});o(o.S+o.F*!q,"Object",{create:X,defineProperty:J,defineProperties:Z,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:re});var se=l((function(){O.f(1)}));o(o.S+o.F*se,"Object",{getOwnPropertySymbols:function e(t){return O.f(A(t))}});N&&o(o.S+o.F*(!q||l((function(){var e=j();return I([e])!="[null]"||I({a:e})!="{}"||I(Object(e))!="{}"}))),"JSON",{stringify:function e(t){var r=[t];var n=1;var a,i;while(arguments.length>n)r.push(arguments[n++]);i=a=r[1];if(!b(a)&&t===undefined||Q(t))return;if(!y(a))a=function(e,t){if(typeof i=="function")t=i.call(this,e,t);if(!Q(t))return t};r[1]=a;return I.apply(N,r)}});j[P][F]||r(129)(j[P],F,j[P].valueOf);f(j,"Symbol");f(Math,"Math",true);f(n.JSON,"JSON",true)},function(e,t,r){var n=r(193)("meta");var a=r(131);var i=r(109);var o=r(83).f;var s=0;var u=Object.isExtensible||function(){return true};var l=!r(108)((function(){return u(Object.preventExtensions({}))}));var c=function(e){o(e,n,{value:{i:"O"+ ++s,w:{}}})};var f=function(e,t){if(!a(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!i(e,n)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[n].i};var d=function(e,t){if(!i(e,n)){if(!u(e))return true;if(!t)return false;c(e)}return e[n].w};var p=function(e){if(l&&h.NEED&&u(e)&&!i(e,n))c(e);return e};var h=e.exports={KEY:n,NEED:false,fastKey:f,getWeak:d,onFreeze:p}},function(e,t,r){var n=r(132);var a=r(281);var i=r(158);e.exports=function(e){var t=n(e);var r=a.f;if(r){var o=r(e);var s=i.f;var u=0;var l;while(o.length>u)if(s.call(e,l=o[u++]))t.push(l)}return t}},function(e,t,r){var n=r(110);var a=r(632).f;var i={}.toString;var o=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var s=function(e){try{return a(e)}catch(e){return o.slice()}};e.exports.f=function e(t){return o&&i.call(t)=="[object Window]"?s(t):a(n(t))}},function(e,t){},function(e,t,r){r(313)("asyncIterator")},function(e,t,r){r(313)("observable")},function(e,t,r){e.exports={default:r(586),__esModule:true}},function(e,t,r){e.exports={default:r(585),__esModule:true}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(311);var a=c(n);var i=r(347);var o=r(263);var s=c(o);var u=r(1160);var l=c(u);function c(e){return e&&e.__esModule?e:{default:e}}var f=(typeof window==="undefined"?"undefined":(0,a.default)(window))==="object"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:i.compose;t.default=function(){return(0,i.createStore)(l.default,f((0,i.applyMiddleware)(s.default)))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(115);var a=A(n);var i=r(163);var o=A(i);var s=r(116);var u=A(s);var l=r(53);var c=A(l);var f=r(1162);var d=A(f);var p=r(43);var h=r(1164);var v=A(h);var m=r(1169);var y=A(m);var g=r(1172);var b=A(g);function A(e){return e&&e.__esModule?e:{default:e}}var _={request:null,draggable:{},droppable:{}};var w={x:0,y:0};var E=(0,c.default)((function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"IDLE";return{phase:e,drag:null,drop:null,dimension:_}}));var x=function e(t){var r=t.state,n=t.clientSelection,a=t.shouldAnimate,i=a===undefined?false:a,o=t.windowScroll,s=t.impact;if(r.phase!=="DRAGGING"){console.error("cannot move while not dragging");return E()}if(r.drag==null){console.error("cannot move if there is no drag information");return E()}var l=r.drag.current;var c=r.drag.initial;var f=o||l.windowScroll;var d=function(){var e=(0,p.subtract)(n,c.client.selection);var t={offset:e,selection:n,center:(0,p.add)(e,c.client.center)};return t}();var h={selection:(0,p.add)(d.selection,f),offset:(0,p.add)(d.offset,f),center:(0,p.add)(d.center,f)};var m={id:l.id,type:l.type,isScrollAllowed:l.isScrollAllowed,client:d,page:h,shouldAnimate:i,windowScroll:f};var y=r.drag&&r.drag.impact.destination?r.drag.impact.destination.droppableId:null;var g=s||(0,v.default)({pageCenter:h.center,draggable:r.dimension.draggable[m.id],draggables:r.dimension.draggable,droppables:r.dimension.droppable,previousDroppableOverId:y});var b={initial:c,impact:g,current:m,previous:{droppableOverId:y}};return(0,u.default)({},r,{drag:b})};t.default=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:E("IDLE");var t=arguments[1];if(t.type==="CLEAN"){return E()}if(t.type==="PREPARE"){return E("PREPARING")}if(t.type==="REQUEST_DIMENSIONS"){if(e.phase!=="PREPARING"){console.error("trying to start a lift while not preparing for a lift");return E()}var r=t.payload;return{phase:"COLLECTING_DIMENSIONS",drag:null,drop:null,dimension:{request:r,draggable:{},droppable:{}}}}if(t.type==="PUBLISH_DRAGGABLE_DIMENSION"){var n=t.payload;if(e.phase!=="COLLECTING_DIMENSIONS"){console.warn("dimension rejected as no longer requesting dimensions",n);return e}if(e.dimension.draggable[n.id]){console.error("dimension already exists for "+n.id);return e}return(0,u.default)({},e,{dimension:{request:e.dimension.request,droppable:e.dimension.droppable,draggable:(0,u.default)({},e.dimension.draggable,(0,o.default)({},n.id,n))}})}if(t.type==="PUBLISH_DROPPABLE_DIMENSION"){var i=t.payload;if(e.phase!=="COLLECTING_DIMENSIONS"){console.warn("dimension rejected as no longer requesting dimensions",i);return e}if(e.dimension.droppable[i.id]){console.error("dimension already exists for "+i.id);return e}return(0,u.default)({},e,{dimension:{request:e.dimension.request,draggable:e.dimension.draggable,droppable:(0,u.default)({},e.dimension.droppable,(0,o.default)({},i.id,i))}})}if(t.type==="COMPLETE_LIFT"){if(e.phase!=="COLLECTING_DIMENSIONS"){console.error("trying complete lift without collecting dimensions");return e}var s=t.payload,l=s.id,c=s.type,f=s.client,h=s.windowScroll,v=s.isScrollAllowed;var m=e.dimension.draggable;var g=e.dimension.draggable[l];var A=e.dimension.droppable[g.droppableId];var k={selection:(0,p.add)(f.selection,h),center:(0,p.add)(f.center,h)};var S=(0,d.default)({draggable:g,droppable:A,draggables:m});if(!S||!S.destination){console.error("invalid lift state");return E()}var O=S.destination;var M={source:O,client:f,page:k,windowScroll:h};var D={id:l,type:c,client:{selection:f.selection,center:f.center,offset:w},page:{selection:k.selection,center:k.center,offset:w},windowScroll:h,isScrollAllowed:v,shouldAnimate:false};return(0,u.default)({},e,{phase:"DRAGGING",drag:{initial:M,current:D,impact:S}})}if(t.type==="UPDATE_DROPPABLE_DIMENSION_SCROLL"){if(e.phase!=="DRAGGING"){console.error("cannot update a droppable dimensions scroll when not dragging");return E()}if(e.drag==null){console.error("invalid store state");return E()}if(!e.drag.current.isScrollAllowed){return E()}var T=t.payload,L=T.id,C=T.offset;var j=e.dimension.droppable[L];if(!j){console.error("cannot update a droppable that is not inside of the state",L);return E()}var N=(0,u.default)({},j,{container:(0,u.default)({},j.container,{scroll:(0,u.default)({},j.container.scroll,{current:C})})});var I=(0,u.default)({},e,{dimension:{request:e.dimension.request,draggable:e.dimension.draggable,droppable:(0,u.default)({},e.dimension.droppable,(0,o.default)({},L,N))}});return x({state:I,clientSelection:e.drag.current.client.selection})}if(t.type==="UPDATE_DROPPABLE_DIMENSION_IS_ENABLED"){if(!(0,a.default)(e.dimension.droppable).length){return e}var P=t.payload,R=P.id,F=P.isEnabled;var Y=e.dimension.droppable[R];if(!Y){console.error("cannot update enabled flag on droppable that does not have a dimension");return E()}if(Y.isEnabled===F){console.warn("trying to set droppable isEnabled to "+String(F)+" but it is already "+String(F));return e}var B=(0,u.default)({},Y,{isEnabled:F});return(0,u.default)({},e,{dimension:(0,u.default)({},e.dimension,{droppable:(0,u.default)({},e.dimension.droppable,(0,o.default)({},R,B))})})}if(t.type==="MOVE"){var H=t.payload,U=H.client,z=H.windowScroll;return x({state:e,clientSelection:U,windowScroll:z})}if(t.type==="MOVE_BY_WINDOW_SCROLL"){var q=t.payload.windowScroll;if(!e.drag){console.error("cannot move with window scrolling if no current drag");return E()}return x({state:e,clientSelection:e.drag.current.client.selection,windowScroll:q})}if(t.type==="MOVE_FORWARD"||t.type==="MOVE_BACKWARD"){if(e.phase!=="DRAGGING"){console.error("cannot move while not dragging",t);return E()}if(!e.drag){console.error("cannot move if there is no drag information");return E()}var V=e.drag;var W=t.type==="MOVE_FORWARD";if(!V.impact.destination){console.error("cannot move if there is no previous destination");return E()}var K=e.dimension.droppable[V.impact.destination.droppableId];var G=(0,y.default)({isMovingForward:W,draggableId:V.current.id,impact:V.impact,droppable:K,draggables:e.dimension.draggable});if(!G){return e}var Q=G.impact;var J=G.pageCenter;var Z=(0,p.subtract)(J,V.current.windowScroll);return x({state:e,impact:Q,clientSelection:Z,shouldAnimate:true})}if(t.type==="CROSS_AXIS_MOVE_FORWARD"||t.type==="CROSS_AXIS_MOVE_BACKWARD"){if(e.phase!=="DRAGGING"){console.error("cannot move cross axis when not dragging");return E()}if(!e.drag){console.error("cannot move cross axis if there is no drag information");return E()}if(!e.drag.impact.destination){console.error("cannot move cross axis if not in a droppable");return E()}var X=e.drag.current;var $=X.id;var ee=X.page.center;var te=e.drag.impact.destination.droppableId;var re=e.drag.initial.source;var ne=(0,b.default)({isMovingForward:t.type==="CROSS_AXIS_MOVE_FORWARD",pageCenter:ee,draggableId:$,droppableId:te,home:re,draggables:e.dimension.draggable,droppables:e.dimension.droppable});if(!ne){return e}var ae=ne.pageCenter;var ie=(0,p.subtract)(ae,X.windowScroll);return x({state:e,clientSelection:ie,impact:ne.impact,shouldAnimate:true})}if(t.type==="DROP_ANIMATE"){var oe=t.payload,se=oe.trigger,ue=oe.newHomeOffset,le=oe.impact,ce=oe.result;if(e.phase!=="DRAGGING"){console.error("cannot animate drop while not dragging",t);return e}if(!e.drag){console.error("cannot animate drop - invalid drag state");return E()}var fe={trigger:se,newHomeOffset:ue,result:ce,impact:le};return{phase:"DROP_ANIMATING",drag:null,drop:{pending:fe,result:null},dimension:e.dimension}}if(t.type==="DROP_COMPLETE"){var de=t.payload;return{phase:"DROP_COMPLETE",drag:null,drop:{pending:null,result:de},dimension:_}}return e}},function(e,t,r){e.exports={default:r(579),__esModule:true}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(117);var a=o(n);var i=r(314);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.draggable,r=e.droppable,n=e.draggables;var o=(0,a.default)(r,n);var s=o.indexOf(t);if(s===-1){console.error("lifting a draggable that is not inside a droppable");return null}var u={index:s,droppableId:r.id};var l={movement:i.noMovement,direction:r.axis.direction,destination:u};return l}},function(e,t,r){e.exports={default:r(595),__esModule:true}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1165);var a=p(n);var i=r(117);var o=p(i);var s=r(314);var u=p(s);var l=r(1167);var c=p(l);var f=r(1168);var d=p(f);function p(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.pageCenter,r=e.draggable,n=e.draggables,i=e.droppables,s=e.previousDroppableOverId;var l=(0,a.default)({target:t,draggable:r,draggables:n,droppables:i,previousDroppableOverId:s});if(!l){return u.default}var f=i[l];if(!f.isEnabled){return u.default}var p=i[r.droppableId];var h=p.id===l;var v=(0,o.default)(f,n);if(h){return(0,c.default)({pageCenter:t,draggable:r,home:p,insideHome:v})}return(0,d.default)({pageCenter:t,draggable:r,destination:f,insideDestination:v})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(115);var a=y(n);var i=r(116);var o=y(i);var s=r(53);var u=y(s);var l=r(316);var c=r(317);var f=y(c);var d=r(117);var p=y(d);var h=r(164);var v=r(43);var m=r(207);function y(e){return e&&e.__esModule?e:{default:e}}var g={x:0,y:0};var b=function e(t){return function(e){return(0,l.getFragment)((0,f.default)((0,m.addPosition)(e,t)))}};var A=(0,u.default)((function(e,t){var r=t.id,n=t.axis,a=t.isEnabled,i=t.client,s=t.container,u=t.page;var l=b(e);var c={withoutMargin:l(i.withoutMargin),withMargin:l(i.withMargin),withMarginAndPadding:l(i.withMarginAndPadding)};var f={withoutMargin:l(u.withoutMargin),withMargin:l(u.withMargin),withMarginAndPadding:l(u.withMarginAndPadding)};var d=t.page.withMargin[t.axis.size]<=t.container.bounds[t.axis.size];var p=d?l(s.bounds):(0,o.default)({},s.bounds);return{id:r,axis:n,isEnabled:a,client:c,page:f,container:{scroll:s.scroll,bounds:p}}}));var _=(0,u.default)((function(e,t,r){var n=(0,p.default)(r,t);if(!n.length){return g}var a=r.page.withMargin[r.axis.end]-n[n.length-1].page.withMargin[r.axis.end];var i=Math.max(e.page.withMargin[r.axis.size]-a,0);var o=(0,v.patch)(r.axis.line,i);return o}));var w=function e(t){var r=t.draggable,n=t.draggables,a=t.droppable,i=t.previousDroppableOverId;var o=r.droppableId===a.id;var s=i&&i===a.id;if(o||!s){return a}var u=_(r,n,a);return A(u,a)};t.default=function(e){var t=e.target,r=e.draggable,n=e.draggables,i=e.droppables,o=e.previousDroppableOverId;var s=(0,a.default)(i).map((function(e){return i[e]})).find((function(e){var a=w({draggable:r,draggables:n,droppable:e,previousDroppableOverId:o});return(0,h.isPointWithinDroppable)(a)(t)}));return s?s.id:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=t.vertical={direction:"vertical",line:"y",crossLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"};var a=t.horizontal={direction:"horizontal",line:"x",crossLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(43);t.default=function(e){var t=e.pageCenter,r=e.draggable,a=e.home,i=e.insideHome;var o=a.axis;var s=(0,n.subtract)(a.container.scroll.current,a.container.scroll.initial);var u=(0,n.add)(t,s);var l=r.page.withoutMargin.center;var c=u[o.line]-l[o.line]>0;var f=i.filter((function(e){if(e===r){return false}var t=e.page.withoutMargin;if(c){if(t.center[o.line]<l[o.line]){return false}return u[o.line]>t[o.start]}if(l[o.line]<t.center[o.line]){return false}return u[o.line]<t[o.end]})).map((function(e){return e.id}));var d=c?f.reverse():f;var p=function(){var e=i.indexOf(r);if(!f.length){return e}if(c){return e+f.length}return e-f.length}();var h={amount:(0,n.patch)(o.line,r.page.withMargin[o.size]),draggables:d,isBeyondStartPosition:c};var v={movement:h,direction:o.direction,destination:{droppableId:a.id,index:p}};return v}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(43);t.default=function(e){var t=e.pageCenter,r=e.draggable,a=e.destination,i=e.insideDestination;var o=a.axis;var s=(0,n.subtract)(a.container.scroll.current,a.container.scroll.initial);var u=(0,n.add)(t,s);var l=i.filter((function(e){var t=e.page.withoutMargin[o.end];return t>u[o.line]})).map((function(e){return e.id}));var c=i.length-l.length;var f={amount:(0,n.patch)(o.line,r.page.withMargin[o.size]),draggables:l,isBeyondStartPosition:false};var d={movement:f,direction:o.direction,destination:{droppableId:a.id,index:c}};return d}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1170);var a=s(n);var i=r(1171);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.draggableId,r=e.draggables,n=e.droppable;var i=r[t];var s=i.droppableId===n.id;if(!n.isEnabled){return null}if(s){return(0,a.default)(e)}return(0,o.default)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(315);var a=p(n);var i=r(53);var o=p(i);var s=r(117);var u=p(s);var l=r(164);var c=r(43);var f=r(165);var d=p(f);function p(e){return e&&e.__esModule?e:{default:e}}var h=(0,o.default)((function(e,t){return e.indexOf(t)}));t.default=function(e){var t=e.isMovingForward,r=e.draggableId,n=e.impact,i=e.droppable,o=e.draggables;if(!n.destination){console.error("cannot move to next index when there is not previous destination");return null}var s=n.destination;var f=o[r];var p=i.axis;var v=(0,u.default)(i,o);var m=h(v,f);var y=s.index;var g=t?y+1:y-1;if(m===-1){console.error("could not find draggable inside current droppable");return null}if(g>v.length-1){return null}if(g<0){return null}var b=v[g];var A=t&&g<=m||!t&&g>=m;var _=function(){if(!A){return t?"end":"start"}return t?"start":"end"}();var w=(0,d.default)({source:f.page.withoutMargin,sourceEdge:_,destination:b.page.withoutMargin,destinationEdge:_,destinationAxis:i.axis});var E=(0,l.isPointWithinDroppable)(i)(w);if(!E){return null}var x=A?n.movement.draggables.slice(1,n.movement.draggables.length):[b.id].concat((0,a.default)(n.movement.draggables));var k={movement:{draggables:x,amount:(0,c.patch)(p.line,f.page.withMargin[p.size]),isBeyondStartPosition:g>m},destination:{droppableId:i.id,index:g},direction:i.axis.direction};var S={pageCenter:w,impact:k};return S}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(315);var a=f(n);var i=r(117);var o=f(i);var s=r(164);var u=r(43);var l=r(165);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.isMovingForward,r=e.draggableId,n=e.impact,i=e.droppable,l=e.draggables;if(!n.destination){console.error("cannot move to next index when there is not previous destination");return null}var f=n.destination;var d=l[r];var p=i.axis;var h=(0,o.default)(i,l);var v=f.index;var m=t?v+1:v-1;var y=h.length-1;if(m>h.length){return null}if(m<0){return null}var g=h[Math.min(m,y)];var b=m>y;var A="start";var _=function(){if(b){return"end"}return"start"}();var w=(0,c.default)({source:d.page.withoutMargin,sourceEdge:A,destination:g.page.withMargin,destinationEdge:_,destinationAxis:i.axis});var E=function(){if(b){return true}return(0,s.isPointWithinDroppable)(i)(w)}();if(!E){return null}var x=t?n.movement.draggables.slice(1,n.movement.draggables.length):[g.id].concat((0,a.default)(n.movement.draggables));var k={movement:{draggables:x,amount:(0,u.patch)(p.line,d.page.withMargin[p.size]),isBeyondStartPosition:false},destination:{droppableId:i.id,index:m},direction:i.axis.direction};return{pageCenter:w,impact:k}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1173);var a=f(n);var i=r(1174);var o=f(i);var s=r(1175);var u=f(s);var l=r(117);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.isMovingForward,r=e.pageCenter,n=e.draggableId,i=e.droppableId,s=e.home,l=e.draggables,f=e.droppables;var d=l[n];var p=f[i];var h=(0,a.default)({isMovingForward:t,pageCenter:r,source:p,droppables:f});if(!h){return null}var v=(0,c.default)(h,l);var m=(0,o.default)({axis:h.axis,pageCenter:r,destination:h,insideDestination:v});if(v.length&&!m){return null}return(0,u.default)({pageCenter:r,destination:h,draggable:d,target:m,insideDestination:v,home:s})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(115);var a=c(n);var i=r(43);var o=r(633);var s=c(o);var u=r(207);var l=r(164);function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.isMovingForward,r=e.pageCenter,n=e.source,o=e.droppables;var c=n.axis;var f=(0,l.getVisibleBounds)(n);var d=(0,a.default)(o).map((function(e){return o[e]})).filter((function(e){return e!==n})).filter((function(e){return e.isEnabled})).map((function(e){return{bounds:(0,l.getVisibleBounds)(e),droppable:e}})).filter((function(e){var r=e.bounds;if(t){return f[c.crossAxisEnd]<=r[c.crossAxisStart]}return r[c.crossAxisEnd]<=f[c.crossAxisStart]})).filter((function(e){var t=e.bounds;var r=(0,s.default)(f[c.start],f[c.end]);var n=(0,s.default)(t[c.start],t[c.end]);return r(t[c.start])||r(t[c.end])||n(f[c.start])||n(f[c.end])})).filter((function(e){var t=e.droppable;return t.page.withoutMargin[c.crossAxisStart]>=t.container.bounds[c.crossAxisStart]&&t.page.withoutMargin[c.crossAxisEnd]<=t.container.bounds[c.crossAxisEnd]})).sort((function(e,r){var n=e.bounds;var a=r.bounds;var i=n[c.crossAxisStart];var o=a[c.crossAxisStart];if(t){return i-o}return o-i})).filter((function(e,t,r){var n=e.bounds;return n[c.crossAxisStart]===r[0].bounds[c.crossAxisStart]}));if(!d.length){return null}if(d.length===1){return d[0].droppable}var p=d.filter((function(e){var t=e.bounds;var n=(0,s.default)(t[c.start],t[c.end]);return n(r[c.line])}));if(p.length===1){return p[0].droppable}if(p.length>1){return p.sort((function(e,t){var r=e.bounds;var n=t.bounds;return r[c.start]-n[c.start]}))[0].droppable}return d.sort((function(e,t){var n=e.bounds;var a=t.bounds;var o=(0,i.closest)(r,(0,u.getCorners)(n));var s=(0,i.closest)(r,(0,u.getCorners)(a));if(o!==s){return o-s}return n[c.start]-a[c.start]}))[0].droppable}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(43);var a=r(164);t.default=function(e){var t=e.axis,r=e.pageCenter,i=e.destination,o=e.insideDestination;if(!o.length){return null}var s=(0,a.isDraggableWithin)(i.container.bounds);var u=o.filter(s).sort((function(e,a){var i=(0,n.distance)(r,e.page.withMargin.center);var o=(0,n.distance)(r,a.page.withMargin.center);if(i<o){return-1}if(o<i){return 1}return e.page.withMargin[t.start]-a.page.withMargin[t.start]}));return u.length?u[0]:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1176);var a=u(n);var i=r(1177);var o=u(i);var s=r(43);function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.pageCenter,r=e.destination,n=e.draggable,i=e.target,u=e.home,l=e.insideDestination;var c=(0,s.patch)(r.axis.line,n.page.withMargin[r.axis.size]);if(r.id===n.droppableId){return(0,a.default)({amount:c,originalIndex:u.index,target:i,insideDroppable:l,draggable:n,droppable:r})}return(0,o.default)({amount:c,pageCenter:t,target:i,insideDroppable:l,draggable:n,droppable:r})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(165);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.amount,r=e.originalIndex,n=e.target,i=e.insideDroppable,o=e.draggable,s=e.droppable;if(!n){console.error("there will always be a target in the original list");return null}var u=s.axis;var l=i.indexOf(n);if(l===-1){console.error("unable to find target in destination droppable");return null}if(l===r){var c=o.page.withoutMargin.center;var f={movement:{draggables:[],amount:t,isBeyondStartPosition:false},direction:s.axis.direction,destination:{droppableId:s.id,index:r}};return{pageCenter:c,impact:f}}var d=l>r;var p=d?"end":"start";var h=(0,a.default)({source:o.page.withoutMargin,sourceEdge:p,destination:d?n.page.withoutMargin:n.page.withMargin,destinationEdge:p,destinationAxis:u});var v=function(){if(!d){return i.slice(l,r)}var e=r+1;var t=l+1;return i.slice(e,t).reverse()}().map((function(e){return e.id}));var m={movement:{draggables:v,amount:t,isBeyondStartPosition:d},direction:u.direction,destination:{droppableId:s.id,index:l}};return{pageCenter:h,impact:m}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(165);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.amount,r=e.pageCenter,n=e.target,i=e.insideDroppable,o=e.draggable,s=e.droppable;var u=s.axis;var l=Boolean(n&&r[s.axis.line]<n.page.withMargin.center[s.axis.line]);if(!n){var c=(0,a.default)({source:o.page.withoutMargin,sourceEdge:"start",destination:s.page.withMarginAndPadding,destinationEdge:"start",destinationAxis:u});var f={movement:{draggables:[],amount:t,isBeyondStartPosition:false},direction:u.direction,destination:{droppableId:s.id,index:0}};return{pageCenter:c,impact:f}}var d=i.indexOf(n);var p=l?d:d+1;if(d===-1){console.error("could not find target inside destination");return null}var h=(0,a.default)({source:o.page.withoutMargin,sourceEdge:"start",destination:n.page.withMargin,destinationEdge:l?"start":"end",destinationAxis:u});var v=i.slice(p,i.length).map((function(e){return e.id}));var m={movement:{draggables:v,amount:t,isBeyondStartPosition:false},direction:u.direction,destination:{droppableId:s.id,index:p}};return{pageCenter:h,impact:m}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e,t,r){var n=e.onDragStart,a=e.onDragEnd;var i=t.phase;var o=r.phase;if(i===o){return}if(i==="DRAGGING"&&o!=="DRAGGING"){if(!n){return}if(!t.drag){console.error("cannot fire onDragStart hook without drag state",{current:t,previous:r});return}var s={draggableId:t.drag.current.id,type:t.drag.current.type,source:t.drag.initial.source};n(s);return}if(i==="DROP_COMPLETE"&&o!=="DROP_COMPLETE"){if(!t.drop||!t.drop.result){console.error("cannot fire onDragEnd hook without drag state",{current:t,previous:r});return}var u=t.drop.result,l=u.source,c=u.destination,f=u.draggableId,d=u.type;if(!c){a(t.drop.result);return}var p=l.droppableId!==c.droppableId||l.index!==c.index;if(p){a(t.drop.result);return}var h={draggableId:f,type:d,source:l,destination:null};a(h)}if(i==="IDLE"&&o==="DRAGGING"){if(!r.drag){console.error("cannot fire onDragEnd for cancel because cannot find previous drag");return}var v={draggableId:r.drag.current.id,type:r.drag.current.type,source:r.drag.initial.source,destination:null};a(v)}if(i==="IDLE"&&o==="DROP_ANIMATING"){if(!r.drop||!r.drop.pending){console.error("cannot fire onDragEnd for cancel because cannot find previous pending drop");return}var m={draggableId:r.drop.pending.result.draggableId,type:r.drop.pending.result.type,source:r.drop.pending.result.source,destination:null};a(m)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1180);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeSelector=undefined;var n=r(219);var a=r(166);var i=r(53);var o=f(i);var s=r(118);var u=r(634);var l=r(1181);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}var d=t.makeSelector=function e(){var t=function e(t,r){return r.droppableId};var r=function e(t,r){return r.isDropDisabled||false};var n=(0,o.default)((function(e,t){if(!t){return false}return t.droppableId===e}));var i=(0,o.default)((function(e,t){return{width:e,height:t}}));var s=(0,o.default)((function(e,t,r,n){if(!r){return null}if(r.droppableId!==e){return null}if(t.droppableId===r.droppableId){return null}if(!n){return null}var a=i(n.client.withoutMargin.width,n.client.withoutMargin.height);return a}));var l=(0,o.default)((function(e,t){return{isDraggingOver:e,placeholder:t}}));return(0,a.createSelector)([u.phaseSelector,u.dragSelector,u.draggingDraggableSelector,u.pendingDropSelector,t,r],(function(e,t,r,a,i,o){if(o){return l(false,null)}if(e==="DRAGGING"){if(!t){console.error("cannot determine dragging over as there is not drag");return l(false,null)}var u=n(i,t.impact.destination);var c=s(i,t.initial.source,t.impact.destination,r);return l(u,c)}if(e==="DROP_ANIMATING"){if(!a){console.error("cannot determine dragging over as there is no pending result");return l(false,null)}var f=n(i,a.impact.destination);var d=s(i,a.result.source,a.result.destination,r);return l(f,d)}return l(false,null)}))};var p=function e(){var t=d();return function(e,r){return t(e,r)}};t.default=(0,n.connect)(p,null,null,{storeKey:s.storeKey})(c.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(163);var a=x(n);var i=r(85);var o=x(i);var s=r(86);var u=x(s);var l=r(87);var c=x(l);var f=r(88);var d=x(f);var p=r(89);var h=x(p);var v=r(1);var m=x(v);var y=r(0);var g=x(y);var b=r(1182);var A=x(b);var _=r(636);var w=x(_);var E=r(118);function x(e){return e&&e.__esModule?e:{default:e}}var k=function(e){(0,h.default)(t,e);function t(){var e;var r,n,a;(0,u.default)(this,t);for(var i=arguments.length,s=Array(i),l=0;l<i;l++){s[l]=arguments[l]}return a=(r=(n=(0,d.default)(this,(e=t.__proto__||(0,o.default)(t)).call.apply(e,[this].concat(s))),n),n.state={ref:null},n.setRef=function(e){if(e===null){return}if(e===n.state.ref){return}n.setState({ref:e})},r),(0,d.default)(n,a)}(0,c.default)(t,[{key:"getChildContext",value:function e(){var t=(0,a.default)({},E.droppableIdKey,this.props.droppableId);return t}},{key:"getPlaceholder",value:function e(){if(!this.props.placeholder){return null}return m.default.createElement(w.default,{height:this.props.placeholder.height,width:this.props.placeholder.width})}},{key:"render",value:function e(){var t=this.props,r=t.children,n=t.direction,a=t.droppableId,i=t.ignoreContainerClipping,o=t.isDraggingOver,s=t.isDropDisabled,u=t.type;var l={innerRef:this.setRef,placeholder:this.getPlaceholder()};var c={isDraggingOver:o};return m.default.createElement(A.default,{droppableId:a,direction:n,ignoreContainerClipping:i,isDropDisabled:s,type:u,targetRef:this.state.ref},r(l,c))}}]);return t}(v.Component);k.defaultProps={type:"DEFAULT",isDropDisabled:false,direction:"vertical",ignoreContainerClipping:false};k.childContextTypes=(0,a.default)({},E.droppableIdKey,g.default.string.isRequired);t.default=k},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1183);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeSelector=undefined;var n=r(219);var a=r(166);var i=r(53);var o=f(i);var s=r(118);var u=r(1184);var l=f(u);var c=r(319);function f(e){return e&&e.__esModule?e:{default:e}}var d=function e(t){return t.dimension.request};var p=function e(t,r){return r.type};var h=t.makeSelector=function e(){var t=(0,o.default)((function(e){return{shouldPublish:e}}));return(0,a.createSelector)([p,d],(function(e,r){return t(e===r)}))};var v=function e(){var t=h();return function(e,r){return t(e,r)}};var m={publish:c.publishDroppableDimension,updateScroll:c.updateDroppableDimensionScroll,updateIsEnabled:c.updateDroppableDimensionIsEnabled};t.default=(0,n.connect)(v,m,null,{storeKey:s.storeKey})(l.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=O(n);var i=r(86);var o=O(i);var s=r(87);var u=O(s);var l=r(88);var c=O(l);var f=r(89);var d=O(f);var p=r(1);var h=r(9);var v=O(h);var m=r(635);var y=O(m);var g=r(53);var b=O(g);var A=r(318);var _=O(A);var w=r(317);var E=O(w);var x=r(316);var k=r(1185);var S=O(k);function O(e){return e&&e.__esModule?e:{default:e}}var M={x:0,y:0};var D=function(e){(0,d.default)(t,e);function t(){var e;var r,n,i;(0,o.default)(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++){u[l]=arguments[l]}return i=(r=(n=(0,c.default)(this,(e=t.__proto__||(0,a.default)(t)).call.apply(e,[this].concat(u))),n),n.isWatchingScroll=false,n.closestScrollable=null,n.getScrollOffset=function(){if(!n.closestScrollable){return M}var e={x:n.closestScrollable.scrollLeft,y:n.closestScrollable.scrollTop};return e},n.getDimension=function(){var e=n.props,t=e.droppableId,r=e.direction,a=e.ignoreContainerClipping,i=e.isDropDisabled,o=e.targetRef;if(!o){throw new Error("DimensionPublisher cannot calculate a dimension when not attached to the DOM")}var s=n.getScrollOffset();var u=window.getComputedStyle(o);var l={top:parseInt(u.marginTop,10),right:parseInt(u.marginRight,10),bottom:parseInt(u.marginBottom,10),left:parseInt(u.marginLeft,10)};var c={top:parseInt(u.paddingTop,10),right:parseInt(u.paddingRight,10),bottom:parseInt(u.paddingBottom,10),left:parseInt(u.paddingLeft,10)};var f=o.getBoundingClientRect();var d=a||!n.closestScrollable||n.closestScrollable===o?f:(0,E.default)(n.closestScrollable.getBoundingClientRect());var p=(0,x.getDroppableDimension)({id:t,direction:r,clientRect:f,containerRect:d,margin:l,padding:c,windowScroll:(0,_.default)(),scroll:s,isEnabled:!i});return p},n.memoizedUpdateScroll=(0,b.default)((function(e,t){var r={x:e,y:t};n.props.updateScroll(n.props.droppableId,r)})),n.scheduleScrollUpdate=(0,y.default)((function(e){if(n.isWatchingScroll){n.memoizedUpdateScroll(e.x,e.y)}})),n.onClosestScroll=function(){n.scheduleScrollUpdate(n.getScrollOffset())},n.watchScroll=function(){(0,v.default)(n.props.targetRef,"cannot watch scroll if not in the dom");if(n.closestScrollable==null){return}if(n.isWatchingScroll){return}n.isWatchingScroll=true;n.closestScrollable.addEventListener("scroll",n.onClosestScroll,{passive:true})},n.unwatchScroll=function(){if(!n.isWatchingScroll){return}n.isWatchingScroll=false;if(!n.closestScrollable){console.error("cannot unbind event listener if element is null");return}n.closestScrollable.removeEventListener("scroll",n.onClosestScroll)},r),(0,c.default)(n,i)}(0,u.default)(t,[{key:"componentWillUnmount",value:function e(){if(this.isWatchingScroll){this.unwatchScroll()}}},{key:"componentWillReceiveProps",value:function e(t){var r=!this.props.shouldPublish&&t.shouldPublish;var n=this.props.shouldPublish&&t.shouldPublish;var a=this.props.shouldPublish&&!t.shouldPublish;if(a){this.unwatchScroll();return}if(n){if(t.targetRef!==this.props.targetRef){if(this.isWatchingScroll){console.warn("changing targetRef while watching scroll!");this.unwatchScroll()}}if(t.isDropDisabled!==this.props.isDropDisabled){this.props.updateIsEnabled(this.props.droppableId,!t.isDropDisabled)}return}if(!r){return}this.closestScrollable=(0,S.default)(this.props.targetRef);this.props.publish(this.getDimension());this.watchScroll()}},{key:"render",value:function e(){return this.props.children}}]);return t}(p.Component);t.default=D},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function e(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++){r[n]=arguments[n]}return r.some((function(e){return e==="auto"||e==="scroll"}))};var a=function e(t){var r=window.getComputedStyle(t);return n(r.overflow,r.overflowY,r.overflowX)};var i=function e(t){if(t==null){return null}if(!a(t)){return e(t.parentElement)}return t};t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(165);var a=s(n);var i=r(117);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.movement,r=e.draggable,n=e.draggables,i=e.destination;var s=r.client.withMargin.center;if(i==null){return s}var u=t.draggables,l=t.isBeyondStartPosition;var c=i.axis;var f=i.id===r.droppableId;if(f&&!u.length){return s}var d=(0,o.default)(i,n);var p=function(){if(f){return n[u[0]].client.withMargin}if(u.length){return n[u[0]].client.withMargin}if(d.length){return d[d.length-1].client.withMargin}return i.client.withMarginAndPadding}();var h=function(){if(f){if(l){return{sourceEdge:"end",destinationEdge:"end"}}return{sourceEdge:"start",destinationEdge:"start"}}if(!u.length&&d.length){return{sourceEdge:"start",destinationEdge:"end"}}return{sourceEdge:"start",destinationEdge:"start"}}(),v=h.sourceEdge,m=h.destinationEdge;var y=r.client.withMargin;var g=(0,a.default)({source:y,sourceEdge:v,destination:p,destinationEdge:m,destinationAxis:c});return g}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=v(n);var i=r(86);var o=v(i);var s=r(87);var u=v(s);var l=r(88);var c=v(l);var f=r(89);var d=v(f);var p=r(1);var h=v(p);function v(e){return e&&e.__esModule?e:{default:e}}var m=function(e){(0,d.default)(t,e);function t(){(0,o.default)(this,t);return(0,c.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}(0,u.default)(t,[{key:"render",value:function e(){var t={width:this.props.width,height:this.props.height,pointerEvents:"none"};return h.default.createElement("div",{style:t})}}]);return t}(p.PureComponent);t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1189);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeSelector=undefined;var n=r(116);var a=v(n);var i=r(53);var o=v(i);var s=r(219);var u=r(166);var l=r(634);var c=r(1190);var f=v(c);var d=r(118);var p=r(43);var h=r(319);function v(e){return e&&e.__esModule?e:{default:e}}var m={x:0,y:0};var y={isDropAnimating:false,isDragging:false,canLift:true,canAnimate:false,offset:m,dimension:null,direction:null};var g=(0,a.default)({},y,{canLift:false});var b=t.makeSelector=function e(){var t=function e(t,r){return r.draggableId};var r=function e(t,r){return r.type||"DEFAULT"};var n=(0,o.default)((function(e,t){return{x:e,y:t}}));var a=(0,o.default)((function(e,t){return{isDropAnimating:false,isDragging:false,canAnimate:true,canLift:t,offset:e,dimension:null,direction:null}}));var i=(0,o.default)((function(e,t,r){var i=t.draggables.indexOf(e)!==-1;if(!i){return a(m,r)}var o=t.isBeyondStartPosition?(0,p.negate)(t.amount):t.amount;return a(n(o.x,o.y),r)}));var s=function e(t,r){if(!t.dimension){return null}var n=t.dimension.draggable[r.draggableId];if(!n){return null}return n};return(0,u.createSelector)([t,r,l.phaseSelector,l.dragSelector,l.pendingDropSelector,s],(function(e,t,r,n,a,o){if(r==="DRAGGING"){if(!n){console.error("invalid dragging state");return y}var s=n.current,u=n.impact;if(s.type!==t){return y}if(s.id!==e){return i(e,u.movement,false)}var l=s.client.offset;var c=s.shouldAnimate;return{isDragging:true,canLift:false,isDropAnimating:false,canAnimate:c,offset:l,dimension:o,direction:u.direction}}if(r==="DROP_ANIMATING"){if(!a){console.error("cannot animate drop without a pending drop");return y}if(t!==a.result.type){return y}if(a.result.draggableId!==e){var f=a.trigger==="DROP";return i(e,a.impact.movement,f)}return{isDragging:false,isDropAnimating:true,canAnimate:true,offset:a.newHomeOffset,canLift:false,dimension:o,direction:null}}if(r==="PREPARING"||r==="COLLECTING_DIMENSIONS"){return g}return y}))};var A=function e(){var t=b();return function(e,r){return t(e,r)}};var _={lift:h.lift,move:h.move,moveForward:h.moveForward,moveBackward:h.moveBackward,crossAxisMoveForward:h.crossAxisMoveForward,crossAxisMoveBackward:h.crossAxisMoveBackward,moveByWindowScroll:h.moveByWindowScroll,drop:h.drop,dropAnimationFinished:h.dropAnimationFinished,cancel:h.cancel};t.default=(0,s.connect)(A,_,null,{storeKey:d.storeKey})(f.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.zIndexOptions=undefined;var n=r(163);var a=R(n);var i=r(85);var o=R(i);var s=r(86);var u=R(s);var l=r(87);var c=R(l);var f=r(88);var d=R(f);var p=r(89);var h=R(p);var v=r(1);var m=R(v);var y=r(0);var g=R(y);var b=r(53);var A=R(b);var _=r(9);var w=R(_);var E=r(1191);var x=R(E);var k=r(1194);var S=R(k);var O=r(1204);var M=R(O);var D=r(638);var T=r(318);var L=R(T);var C=r(641);var j=R(C);var N=r(636);var I=R(N);var P=r(118);function R(e){return e&&e.__esModule?e:{default:e}}var F=t.zIndexOptions={dragging:5e3,dropAnimating:4500};var Y=function(e){(0,h.default)(t,e);function t(e,r){(0,u.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,r));n.state={ref:null};n.onMoveEnd=function(){if(!n.props.isDropAnimating){return}n.props.dropAnimationFinished()};n.onLift=function(e){n.throwIfCannotDrag();var t=e.client,r=e.isScrollAllowed;var a=n.props,i=a.lift,o=a.draggableId,s=a.type;var u=n.state.ref;if(!u){throw new Error("cannot lift at this time")}var l={selection:t,center:(0,j.default)(u)};var c=(0,L.default)();i(o,s,l,c,r)};n.onMove=function(e){n.throwIfCannotDrag();var t=n.props,r=t.draggableId,a=t.dimension,i=t.move;if(!a){return}var o=(0,L.default)();i(r,e,o)};n.onMoveForward=function(){n.throwIfCannotDrag();n.props.moveForward(n.props.draggableId)};n.onMoveBackward=function(){n.throwIfCannotDrag();n.props.moveBackward(n.props.draggableId)};n.onCrossAxisMoveForward=function(){n.throwIfCannotDrag();n.props.crossAxisMoveForward(n.props.draggableId)};n.onCrossAxisMoveBackward=function(){n.throwIfCannotDrag();n.props.crossAxisMoveBackward(n.props.draggableId)};n.onWindowScroll=function(){n.throwIfCannotDrag();var e=(0,L.default)();n.props.moveByWindowScroll(n.props.draggableId,e)};n.onDrop=function(){n.throwIfCannotDrag();n.props.drop()};n.onCancel=function(){n.props.cancel()};n.setRef=function(e){if(e===null){return}if(e===n.state.ref){return}n.setState({ref:e})};n.getDraggableRef=function(){return n.state.ref};n.getDraggingStyle=(0,A.default)((function(e,t,r,n,a,i){var o={position:"fixed",boxSizing:"border-box",pointerEvents:"none",zIndex:a?F.dropAnimating:F.dragging,width:e,height:t,top:r,left:n,margin:0,transform:i.transform?""+i.transform:null,WebkitTouchCallout:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",touchAction:"none"};return o}));n.getNotDraggingStyle=(0,A.default)((function(e,t,r){var n={transition:e?D.css.outOfTheWay:null,transform:t.transform,pointerEvents:r?"auto":"none",WebkitTouchCallout:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",touchAction:"none"};return n}));n.getProvided=(0,A.default)((function(e,t,r,a,i,o,s){var u=e||t;var l=function(){if(!u){return n.getNotDraggingStyle(a,s,r)}(0,w.default)(i,"draggable dimension required for dragging");var e=i.client.withoutMargin,o=e.width,l=e.height,c=e.top,f=e.left;return n.getDraggingStyle(o,l,c,f,t,s)}();var c={innerRef:n.setRef,placeholder:u?n.getPlaceholder():null,dragHandleProps:o,draggableStyle:l};return c}));n.getSnapshot=(0,A.default)((function(e,t){return{isDragging:e||t}}));n.getSpeed=(0,A.default)((function(e,t,r){if(!r){return"INSTANT"}if(t){return"STANDARD"}if(e){return"FAST"}return"INSTANT"}));var a={onLift:n.onLift,onMove:n.onMove,onDrop:n.onDrop,onCancel:n.onCancel,onMoveBackward:n.onMoveBackward,onMoveForward:n.onMoveForward,onCrossAxisMoveForward:n.onCrossAxisMoveForward,onCrossAxisMoveBackward:n.onCrossAxisMoveBackward,onWindowScroll:n.onWindowScroll};n.callbacks=a;return n}(0,c.default)(t,[{key:"throwIfCannotDrag",value:function e(){(0,w.default)(this.state.ref,"Draggable: cannot drag as no DOM node has been provided");(0,w.default)(!this.props.isDragDisabled,"Draggable: cannot drag as dragging is not enabled")}},{key:"getPlaceholder",value:function e(){var t=this.props.dimension;(0,w.default)(t,"cannot get a drag placeholder when not dragging");return m.default.createElement(I.default,{height:t.page.withMargin.height,width:t.page.withMargin.width})}},{key:"render",value:function e(){var t=this;var r=this.props,n=r.draggableId,a=r.type,i=r.offset,o=r.isDragging,s=r.isDropAnimating,u=r.canLift,l=r.canAnimate,c=r.isDragDisabled,f=r.dimension,d=r.children,p=r.direction;var h=this.getSpeed(o,s,l);return m.default.createElement(x.default,{draggableId:n,droppableId:this.context[P.droppableIdKey],type:a,targetRef:this.state.ref},m.default.createElement(S.default,{speed:h,destination:i,onMoveEnd:this.onMoveEnd},(function(e){return m.default.createElement(M.default,{isDragging:o,direction:p,isEnabled:!c,canLift:u,callbacks:t.callbacks,getDraggableRef:t.getDraggableRef},(function(r){return d(t.getProvided(o,s,u,l,f,r,e),t.getSnapshot(o,s))}))})))}}]);return t}(v.Component);Y.defaultProps={isDragDisabled:false,type:"DEFAULT"};Y.contextTypes=(0,a.default)({},P.droppableIdKey,g.default.string.isRequired);t.default=Y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1192);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeSelector=undefined;var n=r(219);var a=r(53);var i=f(a);var o=r(166);var s=r(118);var u=r(319);var l=r(1193);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}var d=function e(t){return t.dimension.request};var p=function e(t,r){return r.type};var h=t.makeSelector=function e(){var t=(0,i.default)((function(e){return{shouldPublish:e}}));return(0,o.createSelector)([p,d],(function(e,r){return t(e===r)}))};var v=function e(){var t=h();return function(e,r){return t(e,r)}};var m={publish:u.publishDraggableDimension};t.default=(0,n.connect)(v,m,null,{storeKey:s.storeKey})(c.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=b(n);var i=r(86);var o=b(i);var s=r(87);var u=b(s);var l=r(88);var c=b(l);var f=r(89);var d=b(f);var p=r(1);var h=r(9);var v=b(h);var m=r(318);var y=b(m);var g=r(316);function b(e){return e&&e.__esModule?e:{default:e}}var A=function(e){(0,d.default)(t,e);function t(){var e;var r,n,i;(0,o.default)(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++){u[l]=arguments[l]}return i=(r=(n=(0,c.default)(this,(e=t.__proto__||(0,a.default)(t)).call.apply(e,[this].concat(u))),n),n.getDimension=function(){var e=n.props,t=e.draggableId,r=e.droppableId,a=e.targetRef;(0,v.default)(a,"DraggableDimensionPublisher cannot calculate a dimension when not attached to the DOM");var i=window.getComputedStyle(a);var o={top:parseInt(i.marginTop,10),right:parseInt(i.marginRight,10),bottom:parseInt(i.marginBottom,10),left:parseInt(i.marginLeft,10)};var s=a.getBoundingClientRect();var u=(0,g.getDraggableDimension)({id:t,droppableId:r,clientRect:s,margin:o,windowScroll:(0,y.default)()});return u},r),(0,c.default)(n,i)}(0,u.default)(t,[{key:"componentWillReceiveProps",value:function e(t){var r=!this.props.shouldPublish&&t.shouldPublish;if(r){this.props.publish(this.getDimension())}}},{key:"render",value:function e(){return this.props.children}}]);return t}(p.Component);t.default=A},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1195);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=y(n);var i=r(86);var o=y(i);var s=r(87);var u=y(s);var l=r(88);var c=y(l);var f=r(89);var d=y(f);var p=r(1);var h=y(p);var v=r(1196);var m=r(638);function y(e){return e&&e.__esModule?e:{default:e}}var g={x:0,y:0};var b={transform:null};var A=function e(t){return t.x===g.x&&t.y===g.y};var _=function e(t,r,n){if(t){return b}var a={x:r,y:n};if(A(a)){return b}var i={transform:"translate("+a.x+"px, "+a.y+"px)"};return i};var w=function(e){(0,d.default)(t,e);function t(){var e;var r,n,i;(0,o.default)(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++){u[l]=arguments[l]}return i=(r=(n=(0,c.default)(this,(e=t.__proto__||(0,a.default)(t)).call.apply(e,[this].concat(u))),n),n.onRest=function(){var e=n.props.onMoveEnd;if(!e){return}setTimeout((function(){return e()}))},n.getFinal=function(){var e=n.props.destination;var t=n.props.speed;if(t==="INSTANT"){return e}var r=t==="FAST"?m.physics.fast:m.physics.standard;return{x:(0,v.spring)(e.x,r),y:(0,v.spring)(e.y,r)}},r),(0,c.default)(n,i)}(0,u.default)(t,[{key:"render",value:function e(){var t=this;var r=this.getFinal();var n=A(r);return h.default.createElement(v.Motion,{defaultStyle:g,style:r,onRest:this.onRest},(function(e){return t.props.children(_(n,e.x,e.y))}))}}]);return t}(p.Component);w.defaultProps={destination:g};t.default=w},function(e,t,r){"use strict";t.__esModule=true;function n(e){return e&&e.__esModule?e["default"]:e}var a=r(1197);t.Motion=n(a);var i=r(1199);t.StaggeredMotion=n(i);var o=r(1200);t.TransitionMotion=n(o);var s=r(1202);t.spring=n(s);var u=r(637);t.presets=n(u);var l=r(208);t.stripStyle=n(l);var c=r(1203);t.reorderKeys=n(c)},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var u=r(320);var l=i(u);var c=r(208);var f=i(c);var d=r(321);var p=i(d);var h=r(322);var v=i(h);var m=r(63);var y=i(m);var g=r(323);var b=i(g);var A=r(1);var _=i(A);var w=r(0);var E=i(w);var x=1e3/60;var k=function(e){s(t,e);a(t,null,[{key:"propTypes",value:{defaultStyle:E["default"].objectOf(E["default"].number),style:E["default"].objectOf(E["default"].oneOfType([E["default"].number,E["default"].object])).isRequired,children:E["default"].func.isRequired,onRest:E["default"].func},enumerable:true}]);function t(r){var a=this;o(this,t);e.call(this,r);this.wasAnimating=false;this.animationID=null;this.prevTime=0;this.accumulatedTime=0;this.unreadPropStyle=null;this.clearUnreadPropStyle=function(e){var t=false;var r=a.state;var i=r.currentStyle;var o=r.currentVelocity;var s=r.lastIdealStyle;var u=r.lastIdealVelocity;for(var l in e){if(!Object.prototype.hasOwnProperty.call(e,l)){continue}var c=e[l];if(typeof c==="number"){if(!t){t=true;i=n({},i);o=n({},o);s=n({},s);u=n({},u)}i[l]=c;o[l]=0;s[l]=c;u[l]=0}}if(t){a.setState({currentStyle:i,currentVelocity:o,lastIdealStyle:s,lastIdealVelocity:u})}};this.startAnimationIfNecessary=function(){a.animationID=y["default"]((function(e){var t=a.props.style;if(b["default"](a.state.currentStyle,t,a.state.currentVelocity)){if(a.wasAnimating&&a.props.onRest){a.props.onRest()}a.animationID=null;a.wasAnimating=false;a.accumulatedTime=0;return}a.wasAnimating=true;var r=e||v["default"]();var n=r-a.prevTime;a.prevTime=r;a.accumulatedTime=a.accumulatedTime+n;if(a.accumulatedTime>x*10){a.accumulatedTime=0}if(a.accumulatedTime===0){a.animationID=null;a.startAnimationIfNecessary();return}var i=(a.accumulatedTime-Math.floor(a.accumulatedTime/x)*x)/x;var o=Math.floor(a.accumulatedTime/x);var s={};var u={};var l={};var c={};for(var f in t){if(!Object.prototype.hasOwnProperty.call(t,f)){continue}var d=t[f];if(typeof d==="number"){l[f]=d;c[f]=0;s[f]=d;u[f]=0}else{var h=a.state.lastIdealStyle[f];var m=a.state.lastIdealVelocity[f];for(var y=0;y<o;y++){var g=p["default"](x/1e3,h,m,d.val,d.stiffness,d.damping,d.precision);h=g[0];m=g[1]}var A=p["default"](x/1e3,h,m,d.val,d.stiffness,d.damping,d.precision);var _=A[0];var w=A[1];l[f]=h+(_-h)*i;c[f]=m+(w-m)*i;s[f]=h;u[f]=m}}a.animationID=null;a.accumulatedTime-=o*x;a.setState({currentStyle:l,currentVelocity:c,lastIdealStyle:s,lastIdealVelocity:u});a.unreadPropStyle=null;a.startAnimationIfNecessary()}))};this.state=this.defaultState()}t.prototype.defaultState=function e(){var t=this.props;var r=t.defaultStyle;var n=t.style;var a=r||f["default"](n);var i=l["default"](a);return{currentStyle:a,currentVelocity:i,lastIdealStyle:a,lastIdealVelocity:i}};t.prototype.componentDidMount=function e(){this.prevTime=v["default"]();this.startAnimationIfNecessary()};t.prototype.componentWillReceiveProps=function e(t){if(this.unreadPropStyle!=null){this.clearUnreadPropStyle(this.unreadPropStyle)}this.unreadPropStyle=t.style;if(this.animationID==null){this.prevTime=v["default"]();this.startAnimationIfNecessary()}};t.prototype.componentWillUnmount=function e(){if(this.animationID!=null){y["default"].cancel(this.animationID);this.animationID=null}};t.prototype.render=function e(){var t=this.props.children(this.state.currentStyle);return t&&_["default"].Children.only(t)};return t}(_["default"].Component);t["default"]=k;e.exports=t["default"]},function(e,t,r){(function(t){(function(){var r,n,a,i,o,s;if(typeof performance!=="undefined"&&performance!==null&&performance.now){e.exports=function(){return performance.now()}}else if(typeof t!=="undefined"&&t!==null&&t.hrtime){e.exports=function(){return(r()-o)/1e6};n=t.hrtime;r=function(){var e;e=n();return e[0]*1e9+e[1]};i=r();s=t.uptime()*1e9;o=i-s}else if(Date.now){e.exports=function(){return Date.now()-a};a=Date.now()}else{e.exports=function(){return(new Date).getTime()-a};a=(new Date).getTime()}}).call(this)}).call(this,r(126))},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var u=r(320);var l=i(u);var c=r(208);var f=i(c);var d=r(321);var p=i(d);var h=r(322);var v=i(h);var m=r(63);var y=i(m);var g=r(323);var b=i(g);var A=r(1);var _=i(A);var w=r(0);var E=i(w);var x=1e3/60;function k(e,t,r){for(var n=0;n<e.length;n++){if(!b["default"](e[n],t[n],r[n])){return false}}return true}var S=function(e){s(t,e);a(t,null,[{key:"propTypes",value:{defaultStyles:E["default"].arrayOf(E["default"].objectOf(E["default"].number)),styles:E["default"].func.isRequired,children:E["default"].func.isRequired},enumerable:true}]);function t(r){var a=this;o(this,t);e.call(this,r);this.animationID=null;this.prevTime=0;this.accumulatedTime=0;this.unreadPropStyles=null;this.clearUnreadPropStyle=function(e){var t=a.state;var r=t.currentStyles;var i=t.currentVelocities;var o=t.lastIdealStyles;var s=t.lastIdealVelocities;var u=false;for(var l=0;l<e.length;l++){var c=e[l];var f=false;for(var d in c){if(!Object.prototype.hasOwnProperty.call(c,d)){continue}var p=c[d];if(typeof p==="number"){if(!f){f=true;u=true;r[l]=n({},r[l]);i[l]=n({},i[l]);o[l]=n({},o[l]);s[l]=n({},s[l])}r[l][d]=p;i[l][d]=0;o[l][d]=p;s[l][d]=0}}}if(u){a.setState({currentStyles:r,currentVelocities:i,lastIdealStyles:o,lastIdealVelocities:s})}};this.startAnimationIfNecessary=function(){a.animationID=y["default"]((function(e){var t=a.props.styles(a.state.lastIdealStyles);if(k(a.state.currentStyles,t,a.state.currentVelocities)){a.animationID=null;a.accumulatedTime=0;return}var r=e||v["default"]();var n=r-a.prevTime;a.prevTime=r;a.accumulatedTime=a.accumulatedTime+n;if(a.accumulatedTime>x*10){a.accumulatedTime=0}if(a.accumulatedTime===0){a.animationID=null;a.startAnimationIfNecessary();return}var i=(a.accumulatedTime-Math.floor(a.accumulatedTime/x)*x)/x;var o=Math.floor(a.accumulatedTime/x);var s=[];var u=[];var l=[];var c=[];for(var f=0;f<t.length;f++){var d=t[f];var h={};var m={};var y={};var g={};for(var b in d){if(!Object.prototype.hasOwnProperty.call(d,b)){continue}var A=d[b];if(typeof A==="number"){h[b]=A;m[b]=0;y[b]=A;g[b]=0}else{var _=a.state.lastIdealStyles[f][b];var w=a.state.lastIdealVelocities[f][b];for(var E=0;E<o;E++){var S=p["default"](x/1e3,_,w,A.val,A.stiffness,A.damping,A.precision);_=S[0];w=S[1]}var O=p["default"](x/1e3,_,w,A.val,A.stiffness,A.damping,A.precision);var M=O[0];var D=O[1];h[b]=_+(M-_)*i;m[b]=w+(D-w)*i;y[b]=_;g[b]=w}}l[f]=h;c[f]=m;s[f]=y;u[f]=g}a.animationID=null;a.accumulatedTime-=o*x;a.setState({currentStyles:l,currentVelocities:c,lastIdealStyles:s,lastIdealVelocities:u});a.unreadPropStyles=null;a.startAnimationIfNecessary()}))};this.state=this.defaultState()}t.prototype.defaultState=function e(){var t=this.props;var r=t.defaultStyles;var n=t.styles;var a=r||n().map(f["default"]);var i=a.map((function(e){return l["default"](e)}));return{currentStyles:a,currentVelocities:i,lastIdealStyles:a,lastIdealVelocities:i}};t.prototype.componentDidMount=function e(){this.prevTime=v["default"]();this.startAnimationIfNecessary()};t.prototype.componentWillReceiveProps=function e(t){if(this.unreadPropStyles!=null){this.clearUnreadPropStyle(this.unreadPropStyles)}this.unreadPropStyles=t.styles(this.state.lastIdealStyles);if(this.animationID==null){this.prevTime=v["default"]();this.startAnimationIfNecessary()}};t.prototype.componentWillUnmount=function e(){if(this.animationID!=null){y["default"].cancel(this.animationID);this.animationID=null}};t.prototype.render=function e(){var t=this.props.children(this.state.currentStyles);return t&&_["default"].Children.only(t)};return t}(_["default"].Component);t["default"]=S;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var u=r(320);var l=i(u);var c=r(208);var f=i(c);var d=r(321);var p=i(d);var h=r(1201);var v=i(h);var m=r(322);var y=i(m);var g=r(63);var b=i(g);var A=r(323);var _=i(A);var w=r(1);var E=i(w);var x=r(0);var k=i(x);var S=1e3/60;function O(e,t,r){var n=t;if(n==null){return e.map((function(e,t){return{key:e.key,data:e.data,style:r[t]}}))}return e.map((function(e,t){for(var a=0;a<n.length;a++){if(n[a].key===e.key){return{key:n[a].key,data:n[a].data,style:r[t]}}}return{key:e.key,data:e.data,style:r[t]}}))}function M(e,t,r,n){if(n.length!==t.length){return false}for(var a=0;a<n.length;a++){if(n[a].key!==t[a].key){return false}}for(var a=0;a<n.length;a++){if(!_["default"](e[a],t[a].style,r[a])){return false}}return true}function D(e,t,r,n,a,i,o,s,u){var c=v["default"](n,a,(function(e,n){var a=t(n);if(a==null){r({key:n.key,data:n.data});return null}if(_["default"](i[e],a,o[e])){r({key:n.key,data:n.data});return null}return{key:n.key,data:n.data,style:a}}));var f=[];var d=[];var p=[];var h=[];for(var m=0;m<c.length;m++){var y=c[m];var g=null;for(var b=0;b<n.length;b++){if(n[b].key===y.key){g=b;break}}if(g==null){var A=e(y);f[m]=A;p[m]=A;var w=l["default"](y.style);d[m]=w;h[m]=w}else{f[m]=i[g];p[m]=s[g];d[m]=o[g];h[m]=u[g]}}return[c,f,d,p,h]}var T=function(e){s(t,e);a(t,null,[{key:"propTypes",value:{defaultStyles:k["default"].arrayOf(k["default"].shape({key:k["default"].string.isRequired,data:k["default"].any,style:k["default"].objectOf(k["default"].number).isRequired})),styles:k["default"].oneOfType([k["default"].func,k["default"].arrayOf(k["default"].shape({key:k["default"].string.isRequired,data:k["default"].any,style:k["default"].objectOf(k["default"].oneOfType([k["default"].number,k["default"].object])).isRequired}))]).isRequired,children:k["default"].func.isRequired,willEnter:k["default"].func,willLeave:k["default"].func,didLeave:k["default"].func},enumerable:true},{key:"defaultProps",value:{willEnter:function e(t){return f["default"](t.style)},willLeave:function e(){return null},didLeave:function e(){}},enumerable:true}]);function t(r){var a=this;o(this,t);e.call(this,r);this.unmounting=false;this.animationID=null;this.prevTime=0;this.accumulatedTime=0;this.unreadPropStyles=null;this.clearUnreadPropStyle=function(e){var t=D(a.props.willEnter,a.props.willLeave,a.props.didLeave,a.state.mergedPropsStyles,e,a.state.currentStyles,a.state.currentVelocities,a.state.lastIdealStyles,a.state.lastIdealVelocities);var r=t[0];var i=t[1];var o=t[2];var s=t[3];var u=t[4];for(var l=0;l<e.length;l++){var c=e[l].style;var f=false;for(var d in c){if(!Object.prototype.hasOwnProperty.call(c,d)){continue}var p=c[d];if(typeof p==="number"){if(!f){f=true;i[l]=n({},i[l]);o[l]=n({},o[l]);s[l]=n({},s[l]);u[l]=n({},u[l]);r[l]={key:r[l].key,data:r[l].data,style:n({},r[l].style)}}i[l][d]=p;o[l][d]=0;s[l][d]=p;u[l][d]=0;r[l].style[d]=p}}}a.setState({currentStyles:i,currentVelocities:o,mergedPropsStyles:r,lastIdealStyles:s,lastIdealVelocities:u})};this.startAnimationIfNecessary=function(){if(a.unmounting){return}a.animationID=b["default"]((function(e){if(a.unmounting){return}var t=a.props.styles;var r=typeof t==="function"?t(O(a.state.mergedPropsStyles,a.unreadPropStyles,a.state.lastIdealStyles)):t;if(M(a.state.currentStyles,r,a.state.currentVelocities,a.state.mergedPropsStyles)){a.animationID=null;a.accumulatedTime=0;return}var n=e||y["default"]();var i=n-a.prevTime;a.prevTime=n;a.accumulatedTime=a.accumulatedTime+i;if(a.accumulatedTime>S*10){a.accumulatedTime=0}if(a.accumulatedTime===0){a.animationID=null;a.startAnimationIfNecessary();return}var o=(a.accumulatedTime-Math.floor(a.accumulatedTime/S)*S)/S;var s=Math.floor(a.accumulatedTime/S);var u=D(a.props.willEnter,a.props.willLeave,a.props.didLeave,a.state.mergedPropsStyles,r,a.state.currentStyles,a.state.currentVelocities,a.state.lastIdealStyles,a.state.lastIdealVelocities);var l=u[0];var c=u[1];var f=u[2];var d=u[3];var h=u[4];for(var v=0;v<l.length;v++){var m=l[v].style;var g={};var b={};var A={};var _={};for(var w in m){if(!Object.prototype.hasOwnProperty.call(m,w)){continue}var E=m[w];if(typeof E==="number"){g[w]=E;b[w]=0;A[w]=E;_[w]=0}else{var x=d[v][w];var k=h[v][w];for(var T=0;T<s;T++){var L=p["default"](S/1e3,x,k,E.val,E.stiffness,E.damping,E.precision);x=L[0];k=L[1]}var C=p["default"](S/1e3,x,k,E.val,E.stiffness,E.damping,E.precision);var j=C[0];var N=C[1];g[w]=x+(j-x)*o;b[w]=k+(N-k)*o;A[w]=x;_[w]=k}}d[v]=A;h[v]=_;c[v]=g;f[v]=b}a.animationID=null;a.accumulatedTime-=s*S;a.setState({currentStyles:c,currentVelocities:f,lastIdealStyles:d,lastIdealVelocities:h,mergedPropsStyles:l});a.unreadPropStyles=null;a.startAnimationIfNecessary()}))};this.state=this.defaultState()}t.prototype.defaultState=function e(){var t=this.props;var r=t.defaultStyles;var n=t.styles;var a=t.willEnter;var i=t.willLeave;var o=t.didLeave;var s=typeof n==="function"?n(r):n;var u=undefined;if(r==null){u=s}else{u=r.map((function(e){for(var t=0;t<s.length;t++){if(s[t].key===e.key){return s[t]}}return e}))}var c=r==null?s.map((function(e){return f["default"](e.style)})):r.map((function(e){return f["default"](e.style)}));var d=r==null?s.map((function(e){return l["default"](e.style)})):r.map((function(e){return l["default"](e.style)}));var p=D(a,i,o,u,s,c,d,c,d);var h=p[0];var v=p[1];var m=p[2];var y=p[3];var g=p[4];return{currentStyles:v,currentVelocities:m,lastIdealStyles:y,lastIdealVelocities:g,mergedPropsStyles:h}};t.prototype.componentDidMount=function e(){this.prevTime=y["default"]();this.startAnimationIfNecessary()};t.prototype.componentWillReceiveProps=function e(t){if(this.unreadPropStyles){this.clearUnreadPropStyle(this.unreadPropStyles)}var r=t.styles;if(typeof r==="function"){this.unreadPropStyles=r(O(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles))}else{this.unreadPropStyles=r}if(this.animationID==null){this.prevTime=y["default"]();this.startAnimationIfNecessary()}};t.prototype.componentWillUnmount=function e(){this.unmounting=true;if(this.animationID!=null){b["default"].cancel(this.animationID);this.animationID=null}};t.prototype.render=function e(){var t=O(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles);var r=this.props.children(t);return r&&E["default"].Children.only(r)};return t}(E["default"].Component);t["default"]=T;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t["default"]=n;function n(e,t,r){var n={};for(var a=0;a<e.length;a++){n[e[a].key]=a}var i={};for(var a=0;a<t.length;a++){i[t[a].key]=a}var o=[];for(var a=0;a<t.length;a++){o[a]=t[a]}for(var a=0;a<e.length;a++){if(!Object.prototype.hasOwnProperty.call(i,e[a].key)){var s=r(a,e[a]);if(s!=null){o.push(s)}}}return o.sort((function(e,r){var a=i[e.key];var o=i[r.key];var s=n[e.key];var u=n[r.key];if(a!=null&&o!=null){return i[e.key]-i[r.key]}else if(s!=null&&u!=null){return n[e.key]-n[r.key]}else if(a!=null){for(var l=0;l<t.length;l++){var c=t[l].key;if(!Object.prototype.hasOwnProperty.call(n,c)){continue}if(a<i[c]&&u>n[c]){return-1}else if(a>i[c]&&u<n[c]){return 1}}return 1}for(var l=0;l<t.length;l++){var c=t[l].key;if(!Object.prototype.hasOwnProperty.call(n,c)){continue}if(o<i[c]&&s>n[c]){return 1}else if(o>i[c]&&s<n[c]){return-1}}return-1}))}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};t["default"]=u;function a(e){return e&&e.__esModule?e:{default:e}}var i=r(637);var o=a(i);var s=n({},o["default"].noWobble,{precision:.01});function u(e,t){return n({},s,t,{val:e})}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t["default"]=a;var n=false;function a(){if(false){}}e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1205);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=w(n);var i=r(86);var o=w(i);var s=r(87);var u=w(s);var l=r(88);var c=w(l);var f=r(89);var d=w(f);var p=r(1);var h=r(53);var v=w(h);var m=r(1206);var y=w(m);var g=r(1207);var b=w(g);var A=r(1208);var _=w(A);function w(e){return e&&e.__esModule?e:{default:e}}var E=function e(){return false};var x=function(e){(0,d.default)(t,e);function t(){var e;var r,n,i;(0,o.default)(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++){u[l]=arguments[l]}return i=(r=(n=(0,c.default)(this,(e=t.__proto__||(0,a.default)(t)).call.apply(e,[this].concat(u))),n),n.mouseSensor=(0,y.default)(n.props.callbacks,n.props.getDraggableRef),n.keyboardSensor=(0,b.default)(n.props.callbacks,n.props.getDraggableRef),n.touchSensor=(0,_.default)(n.props.callbacks,n.props.getDraggableRef),n.sensors=[n.mouseSensor,n.keyboardSensor,n.touchSensor],n.onKeyDown=function(e){if(n.mouseSensor.isCapturing()){return}n.keyboardSensor.onKeyDown(e,n.props)},n.onMouseDown=function(e){if(n.keyboardSensor.isCapturing()){return}n.mouseSensor.onMouseDown(e,n.props)},n.onTouchStart=function(e){if(n.mouseSensor.isCapturing()||n.keyboardSensor.isCapturing()){console.error("mouse or keyboard already listening when attempting to touch drag");return}n.touchSensor.onTouchStart(e,n.props)},n.onTouchMove=function(e){n.touchSensor.onTouchMove(e)},n.onClick=function(e){n.mouseSensor.onClick(e);n.touchSensor.onClick(e)},n.isAnySensorDragging=function(){return n.sensors.some((function(e){return e.isDragging()}))},n.isAnySensorCapturing=function(){return n.sensors.some((function(e){return e.isCapturing()}))},n.getProvided=(0,v.default)((function(e,t){if(!e){return null}var r={onMouseDown:n.onMouseDown,onKeyDown:n.onKeyDown,onTouchStart:n.onTouchStart,onTouchMove:n.onTouchMove,onClick:n.onClick,tabIndex:0,"aria-grabbed":t,draggable:false,onDragStart:E,onDrop:E};return r})),r),(0,c.default)(n,i)}(0,u.default)(t,[{key:"componentWillUnmount",value:function e(){var t=this;this.sensors.forEach((function(e){var r=e.isCapturing();var n=e.isDragging();if(r){e.kill()}if(n){t.props.callbacks.onCancel()}}))}},{key:"componentWillReceiveProps",value:function e(t){var r=this;var n=this.isAnySensorCapturing();if(!n){return}var a=this.props.isDragging&&!t.isDragging;if(a){this.sensors.forEach((function(e){if(e.isCapturing()){e.kill()}}));return}if(!t.isEnabled){this.sensors.forEach((function(e){if(e.isCapturing()){var t=e.isDragging();e.kill();if(t){r.props.callbacks.onCancel()}}}))}}},{key:"render",value:function e(){var t=this.props,r=t.children,n=t.isEnabled;return r(this.getProvided(n,this.isAnySensorDragging()))}}]);return t}(p.Component);t.default=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(115);var a=A(n);var i=r(116);var o=A(i);var s=r(209);var u=A(s);var l=r(324);var c=A(l);var f=r(639);var d=A(f);var p=r(325);var h=A(p);var v=r(326);var m=b(v);var y=r(640);var g=A(y);function b(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function A(e){return e&&e.__esModule?e:{default:e}}var _=0;var w=function e(){};t.default=function(e,t){var r={isDragging:false,pending:null,preventClick:false};var n=function e(t){var n=(0,o.default)({},r,t);r=n};var i=function e(){return r.isDragging};var s=function e(){return Boolean(r.pending||r.isDragging)};var l=(0,c.default)(e,i);var f=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:w;n({pending:null,isDragging:true,preventClick:true});t()};var p=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:w;S();n({isDragging:false,pending:null});t()};var v=function e(t){n({pending:t,isDragging:false});k()};var y=function e(){n({preventClick:false});p()};var b=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:w;if(r.pending){y();return}p(t)};var A=function t(){b(e.onCancel)};var E={mousemove:function t(n){var a=n.button,i=n.clientX,o=n.clientY;if(a!==_){return}var s={x:i,y:o};if(r.isDragging){l.move(s);return}if(!r.pending){console.error("invalid state");return}if(!(0,d.default)(r.pending,s)){return}f((function(){return e.onLift({client:s,isScrollAllowed:true})}))},mouseup:function t(){if(r.pending){y();return}p(e.onDrop)},mousedown:function t(){p(e.onCancel)},keydown:function e(t){if(t.keyCode===m.escape){(0,u.default)(t);A();return}(0,g.default)(t)},resize:A,scroll:function e(){if(r.pending){y();return}l.windowScrollMove()},webkitmouseforcechanged:function e(t){if(t.webkitForce==null||MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN==null){console.error("handling a mouse force changed event when it is not supported");return}var r=MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN;var n=t.webkitForce>=r;if(n){A()}}};var x=(0,a.default)(E);var k=function e(){var r=(0,h.default)(t());x.forEach((function(e){if(e==="scroll"){r.addEventListener(e,E.scroll,{passive:true});return}r.addEventListener(e,E[e])}))};var S=function e(){var r=(0,h.default)(t());x.forEach((function(e){return r.removeEventListener(e,E[e])}))};var O=function e(t,r){if(!r.canLift){return}if(s()){console.error("should not be able to perform a mouse down while a drag or pending drag is occurring");A();return}var n=t.button,a=t.clientX,i=t.clientY;if(n!==_){return}(0,u.default)(t);var o={x:a,y:i};v(o)};var M=function e(t){if(!r.preventClick){return}n({preventClick:false});(0,u.default)(t)};var D={onMouseDown:O,onClick:M,kill:b,isCapturing:s,isDragging:i};return D}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(115);var a=g(n);var i=r(209);var o=g(i);var s=r(324);var u=g(s);var l=r(640);var c=g(l);var f=r(326);var d=y(f);var p=r(325);var h=g(p);var v=r(641);var m=g(v);function y(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function g(e){return e&&e.__esModule?e:{default:e}}var b=function e(){};t.default=function(e,t){var r={isDragging:false};var n=function e(t){r=t};var i=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:b;n({isDragging:true});_();t()};var s=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:b;w();n({isDragging:false});t()};var l=function e(){return s()};var f=function t(){s(e.onCancel)};var p=function e(){return r.isDragging};var v=(0,u.default)(e,p);var y=function r(n,a){var u=a.canLift,l=a.direction;if(!p()){if(!u){return}if(n.keyCode!==d.space){return}(0,o.default)(n);var h=t();if(!h){console.error("cannot start a keyboard drag without a draggable ref");return}var y=(0,m.default)(h);i((function(){return e.onLift({client:y,isScrollAllowed:false})}));return}if(!l){console.error("cannot handle keyboard event if direction is not provided");(0,o.default)(n);f();return}if(n.keyCode===d.escape){(0,o.default)(n);f();return}if(n.keyCode===d.space){(0,o.default)(n);s(e.onDrop);return}var g=function e(t){if(l==="vertical"){t.vertical();return}t.horizontal()};if(n.keyCode===d.arrowDown){(0,o.default)(n);g({vertical:v.moveForward,horizontal:v.crossAxisMoveForward});return}if(n.keyCode===d.arrowUp){(0,o.default)(n);g({vertical:v.moveBackward,horizontal:v.crossAxisMoveBackward});return}if(n.keyCode===d.arrowRight){(0,o.default)(n);g({vertical:v.crossAxisMoveForward,horizontal:v.moveForward});return}if(n.keyCode===d.arrowLeft){(0,o.default)(n);g({vertical:v.crossAxisMoveBackward,horizontal:v.moveBackward})}(0,c.default)(n)};var g={mousedown:f,resize:f,scroll:f};var A=(0,a.default)(g);var _=function e(){var r=(0,h.default)(t());A.forEach((function(e){r.addEventListener(e,g[e])}))};var w=function e(){var r=(0,h.default)(t());A.forEach((function(e){r.removeEventListener(e,g[e])}))};var E={onKeyDown:y,kill:l,isDragging:p,isCapturing:p};return E}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.forcePressThreshold=t.timeForLongPress=undefined;var n=r(115);var a=v(n);var i=r(116);var o=v(i);var s=r(209);var u=v(s);var l=r(324);var c=v(l);var f=r(639);var d=v(f);var p=r(325);var h=v(p);function v(e){return e&&e.__esModule?e:{default:e}}var m=t.timeForLongPress=200;var y=t.forcePressThreshold=.15;var g=function e(){};var b={isDragging:false,pending:null,hasMoved:false,preventClick:false,longPressTimerId:null};t.default=function(e,t){var r=b;var n=function e(t){r=(0,o.default)({},r,t)};var i=function e(){return r.isDragging};var s=function e(){return Boolean(r.pending||r.isDragging||r.longPressTimerId)};var l=(0,c.default)(e,i);var f=function t(){if(r.longPressTimerId){clearTimeout(r.longPressTimerId)}var a=r.pending;if(!r.pending){console.error("cannot start a touch drag without a pending position");_();return}n({isDragging:true,hasMoved:false,pending:null,longPressTimerId:null});e.onLift({client:a,isScrollAllowed:false})};var p=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:g;S();n((0,o.default)({},b,{preventClick:true}));t()};var v=function e(t){var r=t.touches[0];var a=r.clientX,i=r.clientY;var o={x:a,y:i};var s=setTimeout(f,m);n({longPressTimerId:s,pending:o,isDragging:false,hasMoved:false});k()};var A=function e(){clearTimeout(r.longPressTimerId);S();n(b)};var _=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:g;if(r.pending){A();return}p(t)};var w=function t(){_(e.onCancel)};var E={touchmove:function e(t){var a=t.touches[0],i=a.clientX,o=a.clientY;var s={x:i,y:o};(0,u.default)(t);if(!r.hasMoved){n({hasMoved:true})}if(r.pending){if(!(0,d.default)(r.pending,s)){return}f();return}l.move(s)},touchend:function t(n){if(r.pending){A();return}p(e.onDrop);(0,u.default)(n)},touchcancel:function e(){if(r.pending){A();return}w()},touchstart:function e(){if(i()){console.error("touch start fired while already dragging");w()}},orientationchange:w,resize:w,scroll:w,contextmenu:u.default,keydown:w,touchforcechange:function e(t){if(r.hasMoved){return}var n=t.touches[0];if(n.force>=y){w()}}};var x=(0,a.default)(E);var k=function e(){var r=(0,h.default)(t());x.forEach((function(e){var t=E[e];if(e==="touchmove"){r.addEventListener(e,t,{passive:false});return}r.addEventListener(e,t)}))};var S=function e(){var r=(0,h.default)(t());x.forEach((function(e){return r.removeEventListener(e,E[e])}))};var O=function e(t,r){if(!r.canLift){return}if(s()){console.error("should not be able to perform a touch start while a drag or pending drag is occurring");w();return}t.stopPropagation();v(t)};var M=function e(t){if(s()){t.preventDefault()}};var D=function e(t){if(!r.preventClick){return}(0,u.default)(t);n(b)};var T={onTouchStart:O,onTouchMove:M,onClick:D,kill:_,isCapturing:s,isDragging:i};return T}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"41.66739",height:"49.79988",viewBox:"0 0 41.66739 49.79988","aria-hidden":"true"},n.createElement("title",null,"Apply Icon"),n.createElement("g",null,n.createElement("path",{d:"M38.97923,20.60587a3.1833,3.1833,0,0,0-4.332,0L23.33308,31.71167V2.91584C23.33308,1.31208,22.43745,0,20.83369,0s-2.49938,1.31208-2.49938,2.91584V31.71167L7.0202,20.60587a3.05228,3.05228,0,0,0-4.22789,0,2.925,2.925,0,0,0-.05208,4.12374L18.78063,40.796c.0061.0061-.00539.01464.00071.02075a2.92278,2.92278,0,0,0,4.121,0c.0061-.0061.006-.01464.0121-.02075L38.98,24.7296A2.92444,2.92444,0,0,0,38.97923,20.60587Z"}),n.createElement("rect",{x:"17.91775",y:"26.05024",width:"5.83189",height:"41.66739",rx:"1.16667",ry:"1.16667",transform:"translate(-26.05024 67.71763) rotate(-90)"})))};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"48",width:"48",viewBox:"0 0 48 48","aria-hidden":"true"},n.createElement("title",null,"Refresh Icon"),n.createElement("path",{d:"M24 40q-6.65 0-11.325-4.675Q8 30.65 8 24q0-6.65 4.675-11.325Q17.35 8 24 8q4.25 0 7.45 1.725T37 14.45V8h3v12.7H27.3v-3h8.4q-1.9-3-4.85-4.85Q27.9 11 24 11q-5.45 0-9.225 3.775Q11 18.55 11 24q0 5.45 3.775 9.225Q18.55 37 24 37q4.15 0 7.6-2.375 3.45-2.375 4.8-6.275h3.1q-1.45 5.25-5.75 8.45Q29.45 40 24 40Z"}))};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=r(642);function i(){return n.createElement("div",{className:"list-loading"},n.createElement(a.default,null)," Loading...")}t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(1213);var o=r(13);var s=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return a.createElement(o.Button,{className:"load-more-button",disabled:this.props.isFetching,callback:this.props.loadMore,content:this.props.isFetching?a.createElement(i.default,null):"Load more"})};return t}(a.Component);t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48.55458",height:"8.74913",viewBox:"0 0 48.55458 8.74913","aria-hidden":"true"},n.createElement("title",null,"More Dots Icon"),n.createElement("g",null,n.createElement("circle",{cx:"4.37456",cy:"4.37456",r:"4.37456"}),n.createElement("circle",{cx:"24.27729",cy:"4.37456",r:"4.37456"}),n.createElement("circle",{cx:"44.18002",cy:"4.37456",r:"4.37456"})))};t.default=a},function(e,t,r){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n};Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(13);var o=r(328);var s=r(1224);var u=r(19);var l=[{value:null,label:"Relevance"},{value:"title",label:"Title"},{value:"author",label:"Author"}];var c=function(e){var t=e.autoUpdate,r=e.entryPoints,c=e.isOwner,f=e.library,d=e.listId,p=e.searchParams,h=e.showAutoUpdate,v=e.startingTitle,m=e.updateAutoUpdate,y=e.updateSearchParam,g=e.search,b=e.addAdvSearchQuery,A=e.updateAdvSearchQueryBoolean,_=e.moveAdvSearchQuery,w=e.removeAdvSearchQuery,E=e.selectAdvSearchQuery;var x;a.useEffect((function(){var e,t;if(v){(e=b)===null||e===void 0?void 0:e("include",{key:"title",op:"eq",value:v});(t=g)===null||t===void 0?void 0:t()}}),[]);var k=!c;var S=r.includes("All")?r:n(["All"],r);var O=p.entryPoint.toLowerCase();var M=function(e){var t=p.advanced[e];return a.createElement(o.default,{isOwner:c,name:e,query:t.query,selectedQueryId:t.selectedQueryId,addQuery:b,updateQueryBoolean:A,moveQuery:_,removeQuery:w,selectQuery:E})};var D=a.createElement("div",{className:"search-titles"},a.createElement("div",{className:"entry-points"},a.createElement("span",null,"Search for:"),a.createElement("div",{className:"entry-points-selection"},S.map((function(e){return a.createElement(u.default,{disabled:k,key:e,type:"radio",name:"entry-points-selection",checked:e.toLowerCase()===O,label:e,value:e,onChange:function(){var t;return(t=y)===null||t===void 0?void 0:t("entryPoint",e)}})})))),a.createElement("div",{className:"search-options"},a.createElement("span",null,"Sort by:"),a.createElement("div",{className:"search-options-selection"},l.map((function(e){var t=e.value,r=e.label;return a.createElement(u.default,{disabled:k,key:t,type:"radio",name:"sort-selection",value:t,label:r,checked:t===p.sort,onChange:function(){var e;return(e=y)===null||e===void 0?void 0:e("sort",t)}})}))),a.createElement("aside",null,'Results can be sorted by attributes that are enabled in this library\'s Lanes & Filters configuration. Selecting "Title" or "Author" will automatically filter out less relevant results.')),a.createElement("div",{className:"search-builders"},a.createElement(i.Panel,{headerText:"Works to include",id:"search-filters-include",openByDefault:true,content:M("include")}),a.createElement(i.Panel,{headerText:"Works to exclude",id:"search-filters-exclude",openByDefault:false,content:M("exclude")})),a.createElement("div",{key:"query-viewer"},a.createElement(s.default,{library:(x=f)===null||x===void 0?void 0:x.short_name,searchParams:p})),h&&a.createElement("div",{className:"auto-update"},a.createElement("span",null,"Use search to:"),a.createElement("div",{className:"auto-update-selection"},a.createElement("div",null,a.createElement(u.default,{disabled:k||!!d,type:"radio",name:"auto-update",checked:t,label:"Automatically update this list",onChange:function(){var e;return(e=m)===null||e===void 0?void 0:e(true)}}),a.createElement("aside",null,"The system will periodically execute this search and automatically update the list with the results.",!k&&"The search results below represent the titles that would be in the list if it were updated now, but the actual contents of the list will change over time.")),a.createElement("div",null,a.createElement(u.default,{disabled:k||!!d,type:"radio",name:"auto-update",checked:!t,label:"Manually select titles",onChange:function(){var e;return(e=m)===null||e===void 0?void 0:e(false)}}),a.createElement("aside",null,"The list entries are manually selected."," ",!k&&"Move the desired titles from the search results column on the left to the column on the right to add them to the list. ","Titles may be removed from the list automatically if they become unavailable, but the list is otherwise fixed.")))));return a.createElement(i.Panel,{headerText:"Search for titles",id:"search-titles",openByDefault:true,onEnter:g,content:D})};t.default=c},function(e,t,r){"use strict";
|
|
371
|
+
*/var n=r(46),a=r(1);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o="function"===typeof Symbol&&Symbol.for,s=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,f=o?Symbol.for("react.provider"):60109,d=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.concurrent_mode"):60111,h=o?Symbol.for("react.forward_ref"):60112,v=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.block"):60121,A=o?Symbol.for("react.fundamental"):60117,_=o?Symbol.for("react.scope"):60119;function w(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t();e._result=t;t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}function E(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case u:return"Fragment";case s:return"Portal";case c:return"Profiler";case l:return"StrictMode";case v:return"Suspense";case m:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case d:return"Context.Consumer";case f:return"Context.Provider";case h:var t=e.render;t=t.displayName||t.name||"";return e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case y:return E(e.type);case b:return E(e.render);case g:if(e=1===e._status?e._result:null)return E(e)}return null}var x=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;x.hasOwnProperty("ReactCurrentDispatcher")||(x.ReactCurrentDispatcher={current:null});x.hasOwnProperty("ReactCurrentBatchConfig")||(x.ReactCurrentBatchConfig={suspense:null});var k={};function S(e,t){for(var r=e._threadCount|0;r<=t;r++)e[r]=e._currentValue2,e._threadCount=r+1}function O(e,t,r,n){if(n&&(n=e.contextType,"object"===typeof n&&null!==n))return S(n,r),n[r];if(e=e.contextTypes){r={};for(var a in e)r[a]=t[a];t=r}else t=k;return t}for(var M=new Uint16Array(16),D=0;15>D;D++)M[D]=D+1;M[15]=0;var T=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,L=Object.prototype.hasOwnProperty,C={},j={};function N(e){if(L.call(j,e))return!0;if(L.call(C,e))return!1;if(T.test(e))return j[e]=!0;C[e]=!0;return!1}function I(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(n)return!1;if(null!==r)return!r.acceptsBooleans;e=e.toLowerCase().slice(0,5);return"data-"!==e&&"aria-"!==e;default:return!1}}function P(e,t,r,n){if(null===t||"undefined"===typeof t||I(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function R(e,t,r,n,a,i){this.acceptsBooleans=2===t||3===t||4===t;this.attributeName=n;this.attributeNamespace=a;this.mustUseProperty=r;this.propertyName=e;this.type=t;this.sanitizeURL=i}var F={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){F[e]=new R(e,0,!1,e,null,!1)}));[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];F[t]=new R(t,1,!1,e[1],null,!1)}));["contentEditable","draggable","spellCheck","value"].forEach((function(e){F[e]=new R(e,2,!1,e.toLowerCase(),null,!1)}));["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){F[e]=new R(e,2,!1,e,null,!1)}));"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){F[e]=new R(e,3,!1,e.toLowerCase(),null,!1)}));["checked","multiple","muted","selected"].forEach((function(e){F[e]=new R(e,3,!0,e,null,!1)}));["capture","download"].forEach((function(e){F[e]=new R(e,4,!1,e,null,!1)}));["cols","rows","size","span"].forEach((function(e){F[e]=new R(e,6,!1,e,null,!1)}));["rowSpan","start"].forEach((function(e){F[e]=new R(e,5,!1,e.toLowerCase(),null,!1)}));var Y=/[\-:]([a-z])/g;function B(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Y,B);F[t]=new R(t,1,!1,e,null,!1)}));"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Y,B);F[t]=new R(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}));["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Y,B);F[t]=new R(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}));["tabIndex","crossOrigin"].forEach((function(e){F[e]=new R(e,1,!1,e.toLowerCase(),null,!1)}));F.xlinkHref=new R("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach((function(e){F[e]=new R(e,1,!1,e.toLowerCase(),null,!0)}));var H=/["'&<>]/;function U(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=H.exec(e);if(t){var r="",n,a=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}a!==n&&(r+=e.substring(a,n));a=n+1;r+=t}e=a!==n?r+e.substring(a,n):r}return e}function z(e,t){var r=F.hasOwnProperty(e)?F[e]:null;var n;if(n="style"!==e)n=null!==r?0===r.type:!(2<e.length)||"o"!==e[0]&&"O"!==e[0]||"n"!==e[1]&&"N"!==e[1]?!1:!0;if(n||P(e,t,r,!1))return"";if(null!==r){e=r.attributeName;n=r.type;if(3===n||4===n&&!0===t)return e+'=""';r.sanitizeURL&&(t=""+t);return e+'="'+(U(t)+'"')}return N(e)?e+'="'+(U(t)+'"'):""}function q(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t}var V="function"===typeof Object.is?Object.is:q,W=null,K=null,G=null,Q=!1,J=!1,Z=null,X=0;function $(){if(null===W)throw Error(i(321));return W}function ee(){if(0<X)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function te(){null===G?null===K?(Q=!1,K=G=ee()):(Q=!0,G=K):null===G.next?(Q=!1,G=G.next=ee()):(Q=!0,G=G.next);return G}function re(e,t,r,n){for(;J;)J=!1,X+=1,G=null,r=e(t,n);K=W=null;X=0;G=Z=null;return r}function ne(e,t){return"function"===typeof t?t(e):t}function ae(e,t,r){W=$();G=te();if(Q){var n=G.queue;t=n.dispatch;if(null!==Z&&(r=Z.get(n),void 0!==r)){Z.delete(n);n=G.memoizedState;do{n=e(n,r.action),r=r.next}while(null!==r);G.memoizedState=n;return[n,t]}return[G.memoizedState,t]}e=e===ne?"function"===typeof t?t():t:void 0!==r?r(t):t;G.memoizedState=e;e=G.queue={last:null,dispatch:null};e=e.dispatch=ie.bind(null,W,e);return[G.memoizedState,e]}function ie(e,t,r){if(!(25>X))throw Error(i(301));if(e===W)if(J=!0,e={action:r,next:null},null===Z&&(Z=new Map),r=Z.get(t),void 0===r)Z.set(t,e);else{for(t=r;null!==t.next;)t=t.next;t.next=e}}function oe(){}var se=0,ue={readContext:function(e){var t=se;S(e,t);return e[t]},useContext:function(e){$();var t=se;S(e,t);return e[t]},useMemo:function(e,t){W=$();G=te();t=void 0===t?null:t;if(null!==G){var r=G.memoizedState;if(null!==r&&null!==t){e:{var n=r[1];if(null===n)n=!1;else{for(var a=0;a<n.length&&a<t.length;a++)if(!V(t[a],n[a])){n=!1;break e}n=!0}}if(n)return r[0]}}e=e();G.memoizedState=[e,t];return e},useReducer:ae,useRef:function(e){W=$();G=te();var t=G.memoizedState;return null===t?(e={current:e},G.memoizedState=e):t},useState:function(e){return ae(ne,e)},useLayoutEffect:function(){},useCallback:function(e){return e},useImperativeHandle:oe,useEffect:oe,useDebugValue:oe,useResponder:function(e,t){return{props:t,responder:e}},useDeferredValue:function(e){$();return e},useTransition:function(){$();return[function(e){e()},!1]}},le={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function ce(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var fe={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},de=n({menuitem:!0},fe),pe={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1);pe[t]=pe[e]}))}));var ve=/([A-Z])/g,me=/^ms-/,ye=a.Children.toArray,ge=x.ReactCurrentDispatcher,be={listing:!0,pre:!0,textarea:!0},Ae=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,_e={},we={};function Ee(e){if(void 0===e||null===e)return e;var t="";a.Children.forEach(e,(function(e){null!=e&&(t+=e)}));return t}var xe=Object.prototype.hasOwnProperty,ke={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Se(e,t){if(void 0===e)throw Error(i(152,E(t)||"Component"))}function Oe(e,t,r){function o(a,o){var s=o.prototype&&o.prototype.isReactComponent,u=O(o,t,r,s),l=[],c=!1,f={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===l)return null},enqueueReplaceState:function(e,t){c=!0;l=[t]},enqueueSetState:function(e,t){if(null===l)return null;l.push(t)}};if(s){if(s=new o(a.props,u,f),"function"===typeof o.getDerivedStateFromProps){var d=o.getDerivedStateFromProps.call(null,a.props,s.state);null!=d&&(s.state=n({},s.state,d))}}else if(W={},s=o(a.props,u,f),s=re(o,a.props,s,u),null==s||null==s.render){e=s;Se(e,o);return}s.props=a.props;s.context=u;s.updater=f;f=s.state;void 0===f&&(s.state=f=null);if("function"===typeof s.UNSAFE_componentWillMount||"function"===typeof s.componentWillMount)if("function"===typeof s.componentWillMount&&"function"!==typeof o.getDerivedStateFromProps&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&"function"!==typeof o.getDerivedStateFromProps&&s.UNSAFE_componentWillMount(),l.length){f=l;var p=c;l=null;c=!1;if(p&&1===f.length)s.state=f[0];else{d=p?f[0]:s.state;var h=!0;for(p=p?1:0;p<f.length;p++){var v=f[p];v="function"===typeof v?v.call(s,d,a.props,u):v;null!=v&&(h?(h=!1,d=n({},d,v)):n(d,v))}s.state=d}}else l=null;e=s.render();Se(e,o);if("function"===typeof s.getChildContext&&(a=o.childContextTypes,"object"===typeof a)){var m=s.getChildContext();for(var y in m)if(!(y in a))throw Error(i(108,E(o)||"Unknown",y))}m&&(t=n({},t,m))}for(;a.isValidElement(e);){var s=e,u=s.type;if("function"!==typeof u)break;o(s,u)}return{child:e,context:t}}var Me=function(){function e(e,t){a.isValidElement(e)?e.type!==u?e=[e]:(e=e.props.children,e=a.isValidElement(e)?[e]:ye(e)):e=ye(e);e={type:null,domNamespace:le.html,children:e,childIndex:0,context:k,footer:""};var r=M[0];if(0===r){var n=M;r=n.length;var o=2*r;if(!(65536>=o))throw Error(i(304));var s=new Uint16Array(o);s.set(n);M=s;M[0]=r+1;for(n=r;n<o-1;n++)M[n]=n+1;M[o-1]=0}else M[0]=M[r];this.threadID=r;this.stack=[e];this.exhausted=!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=t;this.suspenseDepth=0;this.contextIndex=-1;this.contextStack=[];this.contextValueStack=[]}var t=e.prototype;t.destroy=function(){if(!this.exhausted){this.exhausted=!0;this.clearProviders();var e=this.threadID;M[e]=M[0];M[0]=e}};t.pushProvider=function(e){var t=++this.contextIndex,r=e.type._context,n=this.threadID;S(r,n);var a=r[n];this.contextStack[t]=r;this.contextValueStack[t]=a;r[n]=e.props.value};t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],r=this.contextValueStack[e];this.contextStack[e]=null;this.contextValueStack[e]=null;this.contextIndex--;t[this.threadID]=r};t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]};t.read=function(e){if(this.exhausted)return null;var t=se;se=this.threadID;var r=ge.current;ge.current=ue;try{for(var n=[""],a=!1;n[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var o=this.threadID;M[o]=M[0];M[0]=o;break}var s=this.stack[this.stack.length-1];if(a||s.childIndex>=s.children.length){var u=s.footer;""!==u&&(this.previousWasTextNode=!1);this.stack.pop();if("select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===f)this.popProvider(s.type);else if(s.type===v){this.suspenseDepth--;var l=n.pop();if(a){a=!1;var c=s.fallbackFrame;if(!c)throw Error(i(303));this.stack.push(c);n[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}else n[this.suspenseDepth]+=l}n[this.suspenseDepth]+=u}else{var d=s.children[s.childIndex++],p="";try{p+=this.render(d,s.context,s.domNamespace)}catch(e){if(null!=e&&"function"===typeof e.then)throw Error(i(294));throw e}finally{}n.length<=this.suspenseDepth&&n.push("");n[this.suspenseDepth]+=p}}return n[0]}finally{ge.current=r,se=t}};t.render=function(e,t,r){if("string"===typeof e||"number"===typeof e){r=""+e;if(""===r)return"";if(this.makeStaticMarkup)return U(r);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+U(r);this.previousWasTextNode=!0;return U(r)}t=Oe(e,t,this.threadID);e=t.child;t=t.context;if(null===e||!1===e)return"";if(!a.isValidElement(e)){if(null!=e&&null!=e.$$typeof){r=e.$$typeof;if(r===s)throw Error(i(257));throw Error(i(258,r.toString()))}e=ye(e);this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""});return""}var o=e.type;if("string"===typeof o)return this.renderDOM(e,t,r);switch(o){case l:case p:case c:case m:case u:return e=ye(e.props.children),this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""}),"";case v:throw Error(i(294))}if("object"===typeof o&&null!==o)switch(o.$$typeof){case h:W={};var b=o.render(e.props,e.ref);b=re(o.render,e.props,b,e.ref);b=ye(b);this.stack.push({type:null,domNamespace:r,children:b,childIndex:0,context:t,footer:""});return"";case y:return e=[a.createElement(o.type,n({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""}),"";case f:return o=ye(e.props.children),r={type:e,domNamespace:r,children:o,childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(r),"";case d:o=e.type;b=e.props;var E=this.threadID;S(o,E);o=ye(b.children(o[E]));this.stack.push({type:e,domNamespace:r,children:o,childIndex:0,context:t,footer:""});return"";case A:throw Error(i(338));case g:switch(o=e.type,w(o),o._status){case 1:return e=[a.createElement(o._result,n({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw o._result;default:throw Error(i(295))}case _:throw Error(i(343))}throw Error(i(130,null==o?o:typeof o,""))};t.renderDOM=function(e,t,r){var a=e.type.toLowerCase();r===le.html&&ce(a);if(!_e.hasOwnProperty(a)){if(!Ae.test(a))throw Error(i(65,a));_e[a]=!0}var o=e.props;if("input"===a)o=n({type:void 0},o,{defaultChecked:void 0,defaultValue:void 0,value:null!=o.value?o.value:o.defaultValue,checked:null!=o.checked?o.checked:o.defaultChecked});else if("textarea"===a){var s=o.value;if(null==s){s=o.defaultValue;var u=o.children;if(null!=u){if(null!=s)throw Error(i(92));if(Array.isArray(u)){if(!(1>=u.length))throw Error(i(93));u=u[0]}s=""+u}null==s&&(s="")}o=n({},o,{value:void 0,children:""+s})}else if("select"===a)this.currentSelectValue=null!=o.value?o.value:o.defaultValue,o=n({},o,{value:void 0});else if("option"===a){u=this.currentSelectValue;var l=Ee(o.children);if(null!=u){var c=null!=o.value?o.value+"":l;s=!1;if(Array.isArray(u))for(var f=0;f<u.length;f++){if(""+u[f]===c){s=!0;break}}else s=""+u===c;o=n({selected:void 0,children:void 0},o,{selected:s,children:l})}}if(s=o){if(de[a]&&(null!=s.children||null!=s.dangerouslySetInnerHTML))throw Error(i(137,a,""));if(null!=s.dangerouslySetInnerHTML){if(null!=s.children)throw Error(i(60));if(!("object"===typeof s.dangerouslySetInnerHTML&&"__html"in s.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=s.style&&"object"!==typeof s.style)throw Error(i(62,""))}s=o;u=this.makeStaticMarkup;l=1===this.stack.length;c="<"+e.type;for(b in s)if(xe.call(s,b)){var d=s[b];if(null!=d){if("style"===b){f=void 0;var p="",h="";for(f in d)if(d.hasOwnProperty(f)){var v=0===f.indexOf("--"),m=d[f];if(null!=m){if(v)var y=f;else if(y=f,we.hasOwnProperty(y))y=we[y];else{var g=y.replace(ve,"-$1").toLowerCase().replace(me,"-ms-");y=we[y]=g}p+=h+y+":";h=f;v=null==m||"boolean"===typeof m||""===m?"":v||"number"!==typeof m||0===m||pe.hasOwnProperty(h)&&pe[h]?(""+m).trim():m+"px";p+=v;h=";"}}d=p||null}f=null;e:if(v=a,m=s,-1===v.indexOf("-"))v="string"===typeof m.is;else switch(v){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":v=!1;break e;default:v=!0}v?ke.hasOwnProperty(b)||(f=b,f=N(f)&&null!=d?f+'="'+(U(d)+'"'):""):f=z(b,d);f&&(c+=" "+f)}}u||l&&(c+=' data-reactroot=""');var b=c;s="";fe.hasOwnProperty(a)?b+="/>":(b+=">",s="</"+e.type+">");e:{u=o.dangerouslySetInnerHTML;if(null!=u){if(null!=u.__html){u=u.__html;break e}}else if(u=o.children,"string"===typeof u||"number"===typeof u){u=U(u);break e}u=null}null!=u?(o=[],be.hasOwnProperty(a)&&"\n"===u.charAt(0)&&(b+="\n"),b+=u):o=ye(o.children);e=e.type;r=null==r||"http://www.w3.org/1999/xhtml"===r?ce(e):"http://www.w3.org/2000/svg"===r&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":r;this.stack.push({domNamespace:r,type:a,children:o,childIndex:0,context:t,footer:s});this.previousWasTextNode=!1;return b};return e}(),De={renderToString:function(e){e=new Me(e,!1);try{return e.read(Infinity)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new Me(e,!0);try{return e.read(Infinity)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(i(207))},renderToStaticNodeStream:function(){throw Error(i(208))},version:"16.14.0"};e.exports=De.default||De},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(19);var o=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.inputRef=a.createRef();return t}t.prototype.render=function(){var e=this;return a.createElement("div",null,a.createElement(i.default,{elementType:"input",type:"text",disabled:this.props.disabled,name:this.props.name,list:this.props.name+"-autocomplete-list",label:this.props.label,value:this.props.value,ref:this.inputRef,optionalText:false,onChange:this.props.onChange}),a.createElement("datalist",{id:this.props.name+"-autocomplete-list"},this.props.autocompleteValues.map((function(t){return a.createElement("option",{value:t,key:t,"aria-selected":e.props.value===t})}))))};t.prototype.getValue=function(){return this.inputRef.current.getValue()};t.prototype.clear=function(){this.inputRef.current.setState({value:""})};return t}(a.Component);t.default=o},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(19);var o=r(13);var s=r(190);var u=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.addContributorRole=a.createRef();r.addContributorName=a.createRef();r.state={contributors:r.props.contributors||[],disabled:true};r.addContributor=r.addContributor.bind(r);r.removeContributor=r.removeContributor.bind(r);r.toggleDisabled=r.toggleDisabled.bind(r);return r}t.prototype.render=function(){return a.createElement("div",{className:"form-group"},a.createElement("label",null,"Authors and Contributors"),this.existingContributors(),this.newContributor())};t.prototype.newContributor=function(){var e=this.addContributorRole.current;var t=e&&e.getValue();var r=this.state.disabled||this.props.disabled;return a.createElement("span",{className:"contributor-form"},this.contributorSelect(t,true),this.contributorField(),a.createElement(o.Button,{type:"button",className:"add-contributor small",disabled:r,callback:this.addContributor,content:"Add"}))};t.prototype.contributorSelect=function(e,t){if(t===void 0){t=false}return a.createElement(i.default,{elementType:"select",disabled:this.props.disabled,name:"contributor-role",value:e||"Author",ref:t&&this.addContributorRole,"aria-label":"Select a contributor role type"},this.props.roles&&Object.values(this.props.roles).map((function(t){return a.createElement("option",{value:t,key:t,"aria-selected":e===t},t)})))};t.prototype.contributorField=function(e){return a.createElement(i.default,{elementType:"input",type:"text",disabled:this.props.disabled,name:"contributor-name","aria-label":"Enter contributor name",value:e&&e.name,ref:!e&&this.addContributorName,onChange:this.toggleDisabled,optionalText:false})};t.prototype.existingContributors=function(){var e=this;return this.state.contributors.map((function(t){var r=e.getContributorRole(t);return a.createElement(s.default,{key:t.name+t.role,disabled:e.props.disabled,onRemove:function(){return e.removeContributor(t)}},a.createElement("span",{className:"contributor-form"},e.contributorSelect(r),e.contributorField(t)))}))};t.prototype.toggleDisabled=function(e){this.setState({disabled:e.length<1})};t.prototype.getContributorRole=function(e){if(this.props.roles){if(this.props.roles[e.role]){return this.props.roles[e.role]}}return e.role};t.prototype.removeContributor=function(e){var t=this.state.contributors.filter((function(t){return!(t.name===e.name&&t.role===e.role)}));this.setState({contributors:t})};t.prototype.addContributor=function(){var e=this.addContributorName.current.getValue();var t=this.addContributorRole.current.getValue();this.setState({contributors:this.state.contributors.concat({role:t,name:e}),disabled:true});this.addContributorName.current.clear();this.addContributorRole.current.setValue("Author")};return t}(a.Component);t.default=u},function(e,t,r){var n=r(42);n(n.S+n.F,"Object",{assign:r(974)})},function(e,t){e.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(e,t,r){"use strict";var n=r(75);var a=r(132);var i=r(281);var o=r(158);var s=r(133);var u=r(583);var l=Object.assign;e.exports=!l||r(108)((function(){var e={};var t={};var r=Symbol();var n="abcdefghijklmnopqrst";e[r]=7;n.split("").forEach((function(e){t[e]=e}));return l({},e)[r]!=7||Object.keys(l({},t)).join("")!=n}))?function e(t,r){var l=s(t);var c=arguments.length;var f=1;var d=i.f;var p=o.f;while(c>f){var h=u(arguments[f++]);var v=d?a(h).concat(d(h)):a(h);var m=v.length;var y=0;var g;while(m>y){g=v[y++];if(!n||p.call(h,g))l[g]=h[g]}}return l}:l},function(e,t,r){var n=r(110);var a=r(584);var i=r(976);e.exports=function(e){return function(t,r,o){var s=n(t);var u=a(s.length);var l=i(o,u);var c;if(e&&r!=r)while(u>l){c=s[l++];if(c!=c)return true}else for(;u>l;l++)if(e||l in s){if(s[l]===r)return e||l||0}return!e&&-1}}},function(e,t,r){var n=r(277);var a=Math.max;var i=Math.min;e.exports=function(e,t){e=n(e);return e<0?a(e+t,0):i(e,t)}},function(e,t,r){var n=r(42);n(n.S,"Object",{create:r(282)})},function(e,t,r){var n=r(83);var a=r(130);var i=r(132);e.exports=r(75)?Object.defineProperties:function e(t,r){a(t);var o=i(r);var s=o.length;var u=0;var l;while(s>u)n.f(t,l=o[u++],r[l]);return t}},function(e,t,r){var n=r(74).document;e.exports=n&&n.documentElement},function(e,t,r){var n=r(42);n(n.S,"Object",{setPrototypeOf:r(981).set})},function(e,t,r){var n=r(131);var a=r(130);var i=function(e,t){a(e);if(!n(t)&&t!==null)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{n=r(274)(Function.call,r(587).f(Object.prototype,"__proto__").set,2);n(e,[]);t=!(e instanceof Array)}catch(e){t=true}return function e(r,a){i(r,a);if(t)r.__proto__=a;else n(r,a);return r}}({},false):undefined),check:i}},function(e,t,r){var n=r(133);var a=r(132);r(589)("keys",(function(){return function e(t){return a(n(t))}}))},function(e,t,r){"use strict";t.__esModule=true;t.uncontrolledPropTypes=s;t.isProp=u;t.defaultKey=l;t.isReactComponent=c;var n=a(r(9));function a(e){return e&&e.__esModule?e:{default:e}}var i=function e(){};function o(e,t){return function(r,n){if(r[n]!==undefined){if(!r[e]){return new Error("You have provided a `"+n+"` prop to `"+t+"` "+("without an `"+e+"` handler prop. This will render a read-only field. ")+("If the field should be mutable use `"+l(n)+"`. ")+("Otherwise, set `"+e+"`."))}}}}function s(e,t){var r={};Object.keys(e).forEach((function(e){r[l(e)]=i;if(false){var t}}));return r}function u(e,t){return e[t]!==undefined}function l(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function c(e){return!!(e&&e.prototype&&e.prototype.isReactComponent)}},function(e,t,r){r(985);e.exports=r(30).Object.entries},function(e,t,r){var n=r(42);var a=r(590)(true);n(n.S,"Object",{entries:function e(t){return a(t)}})},function(e,t,r){r(987);e.exports=r(30).Object.values},function(e,t,r){var n=r(42);var a=r(590)(false);n(n.S,"Object",{values:function e(t){return a(t)}})},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(283));var i=n(r(120));function o(e,t,r){var n={target:e,currentTarget:e},i;if(!a.default.end)r=0;else if(r==null)r=u(e)||0;if(a.default.end){e.addEventListener(a.default.end,o,false);i=setTimeout((function(){return o(n)}),(r||100)*1.5)}else setTimeout(o.bind(null,n),0);function o(e){if(e.target!==e.currentTarget)return;clearTimeout(i);e.target.removeEventListener(a.default.end,o);t.call(this)}}o._parseDuration=u;var s=o;t.default=s;function u(e){var t=(0,i.default)(e,a.default.duration),r=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*r}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=a;var n=/-(.)/g;function a(e){return e.replace(n,(function(e,t){return t.toUpperCase()}))}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=o;var a=n(r(991));var i=/^ms-/;function o(e){return(0,a.default)(e).replace(i,"-ms-")}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=a;var n=/([A-Z])/g;function a(e){return e.replace(n,"-$1").toLowerCase()}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=s;var a=n(r(591));var i=/^(top|right|bottom|left)$/;var o=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;function s(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function t(r){var n=e.style;r=(0,a.default)(r);if(r=="float")r="styleFloat";var s=e.currentStyle[r]||null;if(s==null&&n&&n[r])s=n[r];if(o.test(s)&&!i.test(r)){var u=n.left;var l=e.runtimeStyle;var c=l&&l.left;if(c)l.left=e.currentStyle.left;n.left=r==="fontSize"?"1em":s;s=n.pixelLeft+"px";n.left=u;if(c)l.left=c}return s}}}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=n;function n(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=a;var n=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function a(e){return!!(e&&n.test(e))}e.exports=t["default"]},function(e,t,r){r(996);e.exports=r(30).parseInt},function(e,t,r){var n=r(42);var a=r(997);n(n.G+n.F*(parseInt!=a),{parseInt:a})},function(e,t,r){var n=r(74).parseInt;var a=r(998).trim;var i=r(592);var o=/^[-+]?0[xX]/;e.exports=n(i+"08")!==8||n(i+"0x16")!==22?function e(t,r){var i=a(String(t),3);return n(i,r>>>0||(o.test(i)?16:10))}:n},function(e,t,r){var n=r(42);var a=r(191);var i=r(108);var o=r(592);var s="["+o+"]";var u="
";var l=RegExp("^"+s+s+"*");var c=RegExp(s+s+"*$");var f=function(e,t,r){var a={};var s=i((function(){return!!o[e]()||u[e]()!=u}));var l=a[e]=s?t(d):o[e];if(r)a[r]=l;n(n.P+n.F*s,"String",a)};var d=f.trim=function(e,t){e=String(a(e));if(t&1)e=e.replace(l,"");if(t&2)e=e.replace(c,"");return e};e.exports=f},function(e,t,r){var n=r(277);var a=r(191);e.exports=function(e){return function(t,r){var i=String(a(t));var o=n(r);var s=i.length;var u,l;if(o<0||o>=s)return e?"":undefined;u=i.charCodeAt(o);return u<55296||u>56319||o+1===s||(l=i.charCodeAt(o+1))<56320||l>57343?e?i.charAt(o):u:e?i.slice(o,o+2):(u-55296<<10)+(l-56320)+65536}}},function(e,t,r){"use strict";var n=r(282);var a=r(157);var i=r(284);var o={};r(129)(o,r(68)("iterator"),(function(){return this}));e.exports=function(e,t,r){e.prototype=n(o,{next:a(1,r)});i(e,t+" Iterator")}},function(e,t,r){"use strict";var n=r(274);var a=r(42);var i=r(133);var o=r(1002);var s=r(1003);var u=r(584);var l=r(1004);var c=r(1005);a(a.S+a.F*!r(1007)((function(e){Array.from(e)})),"Array",{from:function e(t){var r=i(t);var a=typeof this=="function"?this:Array;var f=arguments.length;var d=f>1?arguments[1]:undefined;var p=d!==undefined;var h=0;var v=c(r);var m,y,g,b;if(p)d=n(d,f>2?arguments[2]:undefined,2);if(v!=undefined&&!(a==Array&&s(v))){for(b=v.call(r),y=new a;!(g=b.next()).done;h++){l(y,h,p?o(b,d,[g.value,h],true):g.value)}}else{m=u(r.length);for(y=new a(m);m>h;h++){l(y,h,p?d(r[h],h):r[h])}}y.length=h;return y}})},function(e,t,r){var n=r(130);e.exports=function(e,t,r,a){try{return a?t(n(r)[0],r[1]):t(r)}catch(t){var i=e["return"];if(i!==undefined)n(i.call(e));throw t}}},function(e,t,r){var n=r(159);var a=r(68)("iterator");var i=Array.prototype;e.exports=function(e){return e!==undefined&&(n.Array===e||i[a]===e)}},function(e,t,r){"use strict";var n=r(83);var a=r(157);e.exports=function(e,t,r){if(t in e)n.f(e,t,a(0,r));else e[t]=r}},function(e,t,r){var n=r(1006);var a=r(68)("iterator");var i=r(159);e.exports=r(30).getIteratorMethod=function(e){if(e!=undefined)return e[a]||e["@@iterator"]||i[n(e)]}},function(e,t,r){var n=r(276);var a=r(68)("toStringTag");var i=n(function(){return arguments}())=="Arguments";var o=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,r,s;return e===undefined?"Undefined":e===null?"Null":typeof(r=o(t=Object(e),a))=="string"?r:i?n(t):(s=n(t))=="Object"&&typeof t.callee=="function"?"Arguments":s}},function(e,t,r){var n=r(68)("iterator");var a=false;try{var i=[7][n]();i["return"]=function(){a=true};Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!a)return false;var r=false;try{var i=[7];var o=i[n]();o.next=function(){return{done:r=true}};i[n]=function(){return o};e(i)}catch(e){}return r}},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=o;var a=n(r(93));var i=n(r(1009));function o(e,t){return function r(n){var o=n.currentTarget,s=n.target,u=(0,i.default)(o,e);if(u.some((function(e){return(0,a.default)(e,s)})))t.call(this,n)}}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=i;var n=/^[\w-]*$/;var a=Function.prototype.bind.call(Function.prototype.call,[].slice);function i(e,t){var r=t[0]==="#",i=t[0]===".",o=r||i?t.slice(1):t,s=n.test(o),u;if(s){if(r){e=e.getElementById?e:document;return(u=e.getElementById(o))?[u]:[]}if(e.getElementsByClassName&&i)return a(e.getElementsByClassName(o));return a(e.getElementsByTagName(t))}return a(e.querySelectorAll(t))}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(79));var i=n(r(285));var o=n(r(286));var s=function e(){};if(a.default){s=function e(t,r,n,a){(0,i.default)(t,r,n,a);return function(){(0,o.default)(t,r,n,a)}}}var u=s;t.default=u;e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=s;var n=r(1012);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}var o={};function s(e,t){return function r(n,i,s,u,l){var c=s||"<<anonymous>>";var f=l||i;if(n[i]!=null){var d=s+"."+i;(0,a.default)(o[d],"The "+u+" `"+f+"` of "+("`"+c+"` is deprecated. "+t+"."));o[d]=true}for(var p=arguments.length,h=Array(p>5?p-5:0),v=5;v<p;v++){h[v-5]=arguments[v]}return e.apply(undefined,[n,i,s,u,l].concat(h))}}function u(){o={}}s._resetWarned=u;e.exports=t["default"]},function(e,t,r){"use strict";var n="production"!=="production";var a=function(){};if(n){var i=function e(t,r){var n=arguments.length;r=new Array(n>1?n-1:0);for(var a=1;a<n;a++){r[a-1]=arguments[a]}var i=0;var o="Warning: "+t.replace(/%s/g,(function(){return r[i++]}));if(typeof console!=="undefined"){console.error(o)}try{throw new Error(o)}catch(e){}};a=function(e,t,r){var n=arguments.length;r=new Array(n>2?n-2:0);for(var a=2;a<n;a++){r[a-2]=arguments[a]}if(t===undefined){throw new Error("`warning(condition, format, ...args)` requires a warning "+"message argument")}if(!e){i.apply(null,[t].concat(r))}}}e.exports=a},function(e,t,r){"use strict";t.__esModule=true;var n=r(1014);var a=d(n);var i=r(120);var o=d(i);var s=r(224);var u=d(s);var l=r(344);var c=d(l);var f=r(1015);function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function h(e,t){var r=-1;e.some((function(e,n){if(t(e,n)){r=n;return true}}));return r}function v(e,t){return h(e,(function(e){return e.modals.indexOf(t)!==-1}))}function m(e,t){var r={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight};if(e.overflowing){r.paddingRight=parseInt((0,o.default)(t,"paddingRight")||0,10)+(0,u.default)()+"px"}(0,o.default)(t,r)}function y(e,t){var r=e.style;Object.keys(r).forEach((function(e){return t.style[e]=r[e]}))}var g=function e(){var t=this;var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=r.hideSiblingNodes,i=n===undefined?true:n,o=r.handleContainerOverflow,s=o===undefined?true:o;p(this,e);this.add=function(e,r,n){var i=t.modals.indexOf(e);var o=t.containers.indexOf(r);if(i!==-1){return i}i=t.modals.length;t.modals.push(e);if(t.hideSiblingNodes){(0,f.hideSiblings)(r,e.mountNode)}if(o!==-1){t.data[o].modals.push(e);return i}var s={modals:[e],classes:n?n.split(/\s+/):[],overflowing:(0,c.default)(r)};if(t.handleContainerOverflow){m(s,r)}s.classes.forEach(a.default.addClass.bind(null,r));t.containers.push(r);t.data.push(s);return i};this.remove=function(e){var r=t.modals.indexOf(e);if(r===-1){return}var n=v(t.data,e);var i=t.data[n];var o=t.containers[n];i.modals.splice(i.modals.indexOf(e),1);t.modals.splice(r,1);if(i.modals.length===0){i.classes.forEach(a.default.removeClass.bind(null,o));if(t.handleContainerOverflow){y(i,o)}if(t.hideSiblingNodes){(0,f.showSiblings)(o,e.mountNode)}t.containers.splice(n,1);t.data.splice(n,1)}else if(t.hideSiblingNodes){(0,f.ariaHidden)(false,i.modals[i.modals.length-1].mountNode)}};this.isTopModal=function(e){return!!t.modals.length&&t.modals[t.modals.length-1]===e};this.hideSiblingNodes=i;this.handleContainerOverflow=s;this.modals=[];this.containers=[];this.data=[]};t.default=g;e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=void 0;var a=n(r(601));t.addClass=a.default;var i=n(r(603));t.removeClass=i.default;var o=n(r(602));t.hasClass=o.default;var s={addClass:a.default,removeClass:i.default,hasClass:o.default};t.default=s},function(e,t,r){"use strict";t.__esModule=true;t.ariaHidden=o;t.hideSiblings=s;t.showSiblings=u;var n=["template","script","style"];var a=function e(t){var r=t.nodeType,a=t.tagName;return r===1&&n.indexOf(a.toLowerCase())===-1};var i=function e(t,r,n){r=[].concat(r);[].forEach.call(t.children,(function(e){if(r.indexOf(e)===-1&&a(e)){n(e)}}))};function o(e,t){if(!t){return}if(e){t.setAttribute("aria-hidden","true")}else{t.removeAttribute("aria-hidden")}}function s(e,t){i(e,t,(function(e){return o(true,e)}))}function u(e,t){i(e,t,(function(e){return o(false,e)}))}},function(e,t,r){"use strict";t.__esModule=true;var n=r(0);var a=v(n);var i=r(194);var o=v(i);var s=r(1);var u=v(s);var l=r(18);var c=v(l);var f=r(196);var d=v(f);var p=r(134);var h=v(p);function v(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function y(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function g(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var b=function(e){g(t,e);function t(){var r,n,a;m(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++){o[s]=arguments[s]}return a=(r=(n=y(this,e.call.apply(e,[this].concat(o))),n),n._mountOverlayTarget=function(){if(!n._overlayTarget){n._overlayTarget=document.createElement("div");n._portalContainerNode=(0,d.default)(n.props.container,(0,h.default)(n).body);n._portalContainerNode.appendChild(n._overlayTarget)}},n._unmountOverlayTarget=function(){if(n._overlayTarget){n._portalContainerNode.removeChild(n._overlayTarget);n._overlayTarget=null}n._portalContainerNode=null},n._renderOverlay=function(){var e=!n.props.children?null:u.default.Children.only(n.props.children);if(e!==null){n._mountOverlayTarget();var t=!n._overlayInstance;n._overlayInstance=c.default.unstable_renderSubtreeIntoContainer(n,e,n._overlayTarget,(function(){if(t&&n.props.onRendered){n.props.onRendered()}}))}else{n._unrenderOverlay();n._unmountOverlayTarget()}},n._unrenderOverlay=function(){if(n._overlayTarget){c.default.unmountComponentAtNode(n._overlayTarget);n._overlayInstance=null}},n.getMountNode=function(){return n._overlayTarget},r),y(n,a)}t.prototype.componentDidMount=function e(){this._isMounted=true;this._renderOverlay()};t.prototype.componentDidUpdate=function e(){this._renderOverlay()};t.prototype.componentWillReceiveProps=function e(t){if(this._overlayTarget&&t.container!==this.props.container){this._portalContainerNode.removeChild(this._overlayTarget);this._portalContainerNode=(0,d.default)(t.container,(0,h.default)(this).body);this._portalContainerNode.appendChild(this._overlayTarget)}};t.prototype.componentWillUnmount=function e(){this._isMounted=false;this._unrenderOverlay();this._unmountOverlayTarget()};t.prototype.render=function e(){return null};return t}(u.default.Component);b.displayName="Portal";b.propTypes={container:a.default.oneOfType([o.default,a.default.func]),onRendered:a.default.func};t.default=b;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=r(0);var a=s(n);var i=r(1);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function c(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var f={children:a.default.node};var d=function(e){c(t,e);function t(){u(this,t);return l(this,e.apply(this,arguments))}t.prototype.render=function e(){return this.props.children};return t}(o.default.Component);d.propTypes=f;t.default=d;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=n;function n(e){var t=!document.addEventListener;var r=void 0;if(t){document.attachEvent("onfocusin",e);r=function t(){return document.detachEvent("onfocusin",e)}}else{document.addEventListener("focus",e,true);r=function t(){return document.removeEventListener("focus",e,true)}}return{remove:r}}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(2);var i=A(a);var o=r(0);var s=A(o);var u=r(194);var l=A(u);var c=r(1);var f=A(c);var d=r(18);var p=A(d);var h=r(1020);var v=A(h);var m=r(196);var y=A(m);var g=r(134);var b=A(g);function A(e){return e&&e.__esModule?e:{default:e}}function _(e,t){var r={};for(var n in e){if(t.indexOf(n)>=0)continue;if(!Object.prototype.hasOwnProperty.call(e,n))continue;r[n]=e[n]}return r}function w(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function E(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function x(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var k=function(e){x(t,e);function t(r,n){w(this,t);var a=E(this,e.call(this,r,n));a.getTarget=function(){var e=a.props.target;var t=typeof e==="function"?e():e;return t&&p.default.findDOMNode(t)||null};a.maybeUpdatePosition=function(e){var t=a.getTarget();if(!a.props.shouldUpdatePosition&&t===a._lastTarget&&!e){return}a.updatePosition(t)};a.state={positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null};a._needsFlush=false;a._lastTarget=null;return a}t.prototype.componentDidMount=function e(){this.updatePosition(this.getTarget())};t.prototype.componentWillReceiveProps=function e(){this._needsFlush=true};t.prototype.componentDidUpdate=function e(t){if(this._needsFlush){this._needsFlush=false;this.maybeUpdatePosition(this.props.placement!==t.placement)}};t.prototype.render=function e(){var t=this.props,r=t.children,a=t.className,o=_(t,["children","className"]);var s=this.state,u=s.positionLeft,l=s.positionTop,d=_(s,["positionLeft","positionTop"]);delete o.target;delete o.container;delete o.containerPadding;delete o.shouldUpdatePosition;var p=f.default.Children.only(r);return(0,c.cloneElement)(p,n({},o,d,{positionLeft:u,positionTop:l,className:(0,i.default)(a,p.props.className),style:n({},p.props.style,{left:u,top:l})}))};t.prototype.updatePosition=function e(t){this._lastTarget=t;if(!t){this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null});return}var r=p.default.findDOMNode(this);var n=(0,y.default)(this.props.container,(0,b.default)(this).body);this.setState((0,v.default)(this.props.placement,r,t,n,this.props.containerPadding))};return t}(f.default.Component);k.propTypes={target:s.default.oneOfType([l.default,s.default.func]),container:s.default.oneOfType([l.default,s.default.func]),containerPadding:s.default.number,placement:s.default.oneOf(["top","right","bottom","left"]),shouldUpdatePosition:s.default.bool};k.displayName="Position";k.defaultProps={containerPadding:0,placement:"right",shouldUpdatePosition:false};t.default=k;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=v;var n=r(605);var a=f(n);var i=r(1021);var o=f(i);var s=r(606);var u=f(s);var l=r(134);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}function d(e){var t=void 0,r=void 0,n=void 0;if(e.tagName==="BODY"){t=window.innerWidth;r=window.innerHeight;n=(0,u.default)((0,c.default)(e).documentElement)||(0,u.default)(e)}else{var i=(0,a.default)(e);t=i.width;r=i.height;n=(0,u.default)(e)}return{width:t,height:r,scroll:n}}function p(e,t,r,n){var a=d(r);var i=a.scroll;var o=a.height;var s=e-n-i;var u=e+n-i+t;if(s<0){return-s}else if(u>o){return o-u}else{return 0}}function h(e,t,r,n){var a=d(r);var i=a.width;var o=e-n;var s=e+n+t;if(o<0){return-o}else if(s>i){return i-s}return 0}function v(e,t,r,n,i){var s=n.tagName==="BODY"?(0,a.default)(r):(0,o.default)(r,n);var u=(0,a.default)(t),l=u.height,c=u.width;var f=void 0,d=void 0,v=void 0,m=void 0;if(e==="left"||e==="right"){d=s.top+(s.height-l)/2;if(e==="left"){f=s.left-c}else{f=s.left+s.width}var y=p(d,l,n,i);d+=y;m=50*(1-2*y/l)+"%";v=void 0}else if(e==="top"||e==="bottom"){f=s.left+(s.width-c)/2;if(e==="top"){d=s.top-l}else{d=s.top+s.height}var g=h(f,c,n,i);f+=g;v=50*(1-2*g/c)+"%";m=void 0}else{throw new Error('calcOverlayPosition(): No such placement of "'+e+'" found.')}return{positionLeft:f,positionTop:d,arrowOffsetLeft:v,arrowOffsetTop:m}}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=f;var a=n(r(1022));var i=n(r(605));var o=n(r(1023));var s=n(r(606));var u=n(r(1024));var l=n(r(120));function c(e){return e.nodeName&&e.nodeName.toLowerCase()}function f(e,t){var r={top:0,left:0},n;if((0,l.default)(e,"position")==="fixed"){n=e.getBoundingClientRect()}else{t=t||(0,o.default)(e);n=(0,i.default)(e);if(c(t)!=="html")r=(0,i.default)(t);r.top+=parseInt((0,l.default)(t,"borderTopWidth"),10)-(0,s.default)(t)||0;r.left+=parseInt((0,l.default)(t,"borderLeftWidth"),10)-(0,u.default)(t)||0}return(0,a.default)({},n,{top:n.top-r.top-(parseInt((0,l.default)(e,"marginTop"),10)||0),left:n.left-r.left-(parseInt((0,l.default)(e,"marginLeft"),10)||0)})}e.exports=t["default"]},function(e,t){function r(){e.exports=r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};return r.apply(this,arguments)}e.exports=r},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=s;var a=n(r(119));var i=n(r(120));function o(e){return e.nodeName&&e.nodeName.toLowerCase()}function s(e){var t=(0,a.default)(e),r=e&&e.offsetParent;while(r&&o(e)!=="html"&&(0,i.default)(r,"position")==="static"){r=r.offsetParent}return r||t.documentElement}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(21);t.__esModule=true;t.default=i;var a=n(r(195));function i(e,t){var r=(0,a.default)(e);if(t===undefined)return r?"pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft:e.scrollLeft;if(r)r.scrollTo(t,"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop);else e.scrollLeft=t}e.exports=t["default"]},function(e,t,r){r(1026);e.exports=r(30).Array.isArray},function(e,t,r){var n=r(42);n(n.S,"Array",{isArray:r(607)})},function(e,t,r){"use strict";t.__esModule=true;t.default=n;function n(e){function t(t,r,n,a,i,o){var s=a||"<<anonymous>>";var u=o||n;if(r[n]==null){if(t){return new Error("Required "+i+" `"+u+"` was not specified "+("in `"+s+"`."))}return null}for(var l=arguments.length,c=Array(l>6?l-6:0),f=6;f<l;f++){c[f-6]=arguments[f]}return e.apply(undefined,[r,n,s,i,u].concat(c))}var r=t.bind(null,false);r.isRequired=t.bind(null,true);return r}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(14);var o=r(179);var s=r(41);var u=r(8);var l=r(32);var c=r(1029);var f=r(1031);var d=r(287);var p=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.refresh=r.refresh.bind(r);r.editClassifications=r.editClassifications.bind(r);return r}t.prototype.render=function(){return a.createElement("div",{className:"classifications"},this.props.book&&a.createElement(a.Fragment,null,a.createElement("h2",null,this.props.book.title),a.createElement(d.default,{show:this.props.isFetching})),this.props.fetchError&&a.createElement(l.default,{error:this.props.fetchError}),this.props.book&&this.props.genreTree&&a.createElement(c.default,{book:this.props.book,genreTree:this.props.genreTree,disabled:this.props.isFetching,editClassifications:this.editClassifications}),this.props.classifications&&this.props.classifications.length>0&&a.createElement(f.default,{classifications:this.props.classifications}))};t.prototype.UNSAFE_componentWillMount=function(){if(this.props.bookUrl){this.props.fetchGenreTree("/admin/genres");this.props.fetchClassifications(this.classificationsUrl())}};t.prototype.classificationsUrl=function(){return this.props.bookUrl.replace("works","admin/works")+"/classifications"};t.prototype.editClassificationsUrl=function(){return this.props.bookUrl.replace("works","admin/works")+"/edit_classifications"};t.prototype.refresh=function(){this.props.fetchBook(this.props.bookAdminUrl);this.props.fetchClassifications(this.classificationsUrl());this.props.refreshCatalog()};t.prototype.editClassifications=function(e){var t=this;return this.props.editClassifications(this.editClassificationsUrl(),e).then((function(e){t.refresh()}))};return t}(a.Component);t.Classifications=p;function h(e,t){return{bookAdminUrl:e.editor.book.url,genreTree:e.editor.classifications.genreTree,classifications:e.editor.classifications.classifications,isFetching:e.editor.classifications.isFetchingGenreTree||e.editor.classifications.isEditingClassifications||e.editor.classifications.isFetchingClassifications||e.editor.book.isFetching,fetchError:e.editor.classifications.fetchError}}function v(e,t){var r=new s.default({adapter:o.default});var n=new u.default(r,t.csrfToken);return{fetchBook:function(t){return e(n.fetchBookAdmin(t))},fetchGenreTree:function(t){return e(n.fetchGenreTree(t))},fetchClassifications:function(t){return e(n.fetchClassifications(t))},editClassifications:function(t,r){return e(n.editClassifications(t,r))}}}var m=i.connect(h,v)(p);t.default=m},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(18);var o=r(19);var s=r(190);var u=r(1030);var l=r(13);var c=r(91);var f=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.errorMessageRef=a.createRef();r.audienceRef=a.createRef();r.targetAgeMinRef=a.createRef();r.targetAgeMaxRef=a.createRef();r.noFictionSelectedRef=a.createRef();r.fictionRef=a.createRef();r.nonfictionRef=a.createRef();r.state={audience:t.book&&t.book.audience?t.book.audience:"None",fiction:t.book?t.book.fiction:undefined,genres:[],error:null};r.handleAudienceChange=r.handleAudienceChange.bind(r);r.handleFictionChange=r.handleFictionChange.bind(r);r.addGenre=r.addGenre.bind(r);r.removeGenre=r.removeGenre.bind(r);r.submit=r.submit.bind(r);return r}t.prototype.render=function(){var e=this;var t=this.state,r=t.audience,n=t.fiction,i=t.error,f=t.genres;var d=this.genreOptions();var p=r==="None"||i&&i["audience"];var h=n===undefined||i&&i["fiction"];return a.createElement("fieldset",{className:"classifications-form"},a.createElement("legend",{className:"visuallyHidden"},"Classifications"),i&&a.createElement(c.Alert,{bsStyle:"danger",ref:this.errorMessageRef,tabIndex:-1},Object.keys(i).map((function(e){return a.createElement("p",{key:e},i[e])}))),a.createElement(l.Panel,{id:"classifications",headerText:"Classifications",collapsible:false,onEnter:this.submit,content:a.createElement("div",null,a.createElement(o.default,{elementType:"select",disabled:this.props.disabled,name:"audience",label:"Audience",ref:this.audienceRef,value:this.props.book.audience||"None",onChange:this.handleAudienceChange,clientError:p},(!r||r==="None")&&a.createElement("option",{value:"None","aria-selected":r==="None"},"None"),a.createElement("option",{value:"Children","aria-selected":r==="Children"},"Children"),a.createElement("option",{value:"Young Adult","aria-selected":r==="Young Adult"},"Young Adult"),a.createElement("option",{value:"Adult","aria-selected":r==="Adult"},"Adult"),a.createElement("option",{value:"Adults Only","aria-selected":r==="Adults Only"},"Adults Only"),a.createElement("option",{value:"All Ages","aria-selected":r==="All Ages"},"All Ages"),a.createElement("option",{value:"Research","aria-selected":r==="Research"},"Research")),this.shouldShowTargetAge()&&a.createElement("div",{className:"form-group target-age"},a.createElement("p",null,"Target Age Range"),a.createElement("div",{className:"form-inline"},a.createElement(o.default,{elementType:"input",ref:this.targetAgeMinRef,type:"text",disabled:this.props.disabled,name:"target_age_min","aria-label":"Enter a minimum target age",value:this.props.book.targetAgeRange[0]}),a.createElement("span",null," - "),a.createElement(o.default,{elementType:"input",ref:this.targetAgeMaxRef,type:"text",disabled:this.props.disabled,name:"target_age_max","aria-label":"Enter a maximum target age",value:this.props.book.targetAgeRange[1]}))),a.createElement("div",{className:"form-group fiction-radio-input"},a.createElement("p",null,"Fiction Classification"),a.createElement("div",{className:"form-inline"},n===undefined&&a.createElement(o.default,{type:"radio",disabled:this.props.disabled,name:"fiction",value:"none",label:"None",ref:this.noFictionSelectedRef,checked:true,onChange:this.handleFictionChange,clientError:h}),a.createElement(o.default,{type:"radio",disabled:this.props.disabled,name:"fiction",value:"fiction",label:"Fiction",ref:this.fictionRef,checked:n!==undefined&&n,onChange:this.handleFictionChange,clientError:h}),a.createElement(o.default,{type:"radio",disabled:this.props.disabled,name:"fiction",value:"nonfiction",label:"Nonfiction",ref:this.nonfictionRef,checked:n!==undefined&&!n,onChange:this.handleFictionChange,clientError:h}))),a.createElement("div",{className:"form-group genre-group-form"},a.createElement("p",null,"Genres"),f.sort().map((function(t){return a.createElement(s.default,{key:t,disabled:e.props.disabled,onRemove:function(){return e.removeGenre(t)}},e.fullGenre(t))})),a.createElement("p",{className:"add-genre-form-title"},"Add Genre"),a.createElement(u.default,{disabled:this.props.disabled,genreOptions:d,bookGenres:f,addGenre:this.addGenre})))}),a.createElement(l.Button,{className:"left-align",callback:this.submit,content:"Save"}))};t.prototype.UNSAFE_componentWillMount=function(){if(this.props.book){this.setState({audience:this.props.book.audience||"None"});this.setState({fiction:this.props.book.fiction});this.setState({genres:this.bookGenres(this.props.book)})}};t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(this.bookChanged(e.book)){this.setState({audience:e.book.audience});this.setState({fiction:e.book.fiction});this.setState({genres:this.bookGenres(e.book)})}};t.prototype.bookChanged=function(e){return e.audience!==this.props.book.audience||e.targetAgeRange[0]!==this.props.book.targetAgeRange[0]||e.targetAgeRange[1]!==this.props.book.targetAgeRange[1]||e.fiction!==this.props.book.fiction||e.categories.sort()!==this.props.book.categories.sort()};t.prototype.bookGenres=function(e){var t=this;if(!e||!e.categories||!this.props.genreTree){return[]}return e.categories.filter((function(e){return!!t.props.genreTree["Fiction"][e]||!!t.props.genreTree["Nonfiction"][e]}))};t.prototype.shouldShowTargetAge=function(){return this.state.audience==="Children"||this.state.audience==="Young Adult"};t.prototype.filterGenres=function(e,t){var r=this;if(t===void 0){t=true}var n=t?"Fiction":"Nonfiction";if(!this.props.genreTree[n]){return[]}return e.filter((function(e){return r.props.genreTree[n][e]}))};t.prototype.genreOptions=function(){var e=this;if(!this.props.book||!this.props.genreTree){return[]}var t=this.state.fiction?"Fiction":"Nonfiction";if(!this.props.genreTree[t]){return[]}return Object.keys(this.props.genreTree[t]).map((function(r){return e.props.genreTree[t][r]}))};t.prototype.fullGenre=function(e){for(var t=0,r=["Fiction","Nonfiction"];t<r.length;t++){var n=r[t];var a=this.props.genreTree[n][e];if(a){return a.parents.concat([a.name]).join(" > ")}}return e};t.prototype.validateAudience=function(e,t){if(t.indexOf("Erotica")!==-1&&e!=="Adults Only"){alert("Erotica genre requires Adults Only audience");return false}else{return true}};t.prototype.handleAudienceChange=function(){var e=this.audienceRef.current.getValue();if(this.validateAudience(e,this.state.genres)){this.setState({audience:e})}else{return false}};t.prototype.handleFictionChange=function(){var e=this.fictionRef.current.getChecked();var t=e?"Nonfiction":"Fiction";var r="Are you sure? This will clear any "+t+" genres you have chosen!";if(this.state.genres.length===0||window.confirm(r)){this.setState({fiction:e,genres:this.filterGenres(this.state.genres,e)})}};t.prototype.addGenre=function(e){if(this.validateAudience(this.state.audience,[e])){this.setState({genres:this.state.genres.concat([e])})}};t.prototype.removeGenre=function(e){this.setState({genres:this.state.genres.filter((function(t){return t!==e}))})};t.prototype.submit=function(){var e=this;var t=this.state,r=t.audience,n=t.fiction;var a=new window.FormData;var o={};if(!r||r==="None"){o["audience"]="No Audience classification selected."}if(n===undefined){o["fiction"]="No Fiction classification selected."}if(o["audience"]||o["fiction"]){this.setState({error:o});setTimeout((function(){if(e.errorMessageRef.current){i.findDOMNode(e.errorMessageRef.current).focus()}}),500);return}a.append("audience",r);if(this.shouldShowTargetAge()){a.append("target_age_min",this.targetAgeMinRef.current.getValue());a.append("target_age_max",this.targetAgeMaxRef.current.getValue())}a.append("fiction",n?"fiction":"nonfiction");this.state.genres.forEach((function(e){return a.append("genres",e)}));this.setState({error:null});return this.props.editClassifications(a)};return t}(a.Component);t.default=f},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var a=this&&this.__assign||function(){a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});var i=r(1);var o=r(13);var s=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={genre:null,subgenre:null};r.handleGenreSelect=r.handleGenreSelect.bind(r);r.handleSubgenreSelect=r.handleSubgenreSelect.bind(r);r.addGenre=r.addGenre.bind(r);return r}t.prototype.render=function(){var e=this;var t=null;if(this.state.genre){var r=this.props.genreOptions.find((function(t){return t.name===e.state.genre}));if(r){t=r.subgenres.sort()}}var n=this.props.disabled?{disabled:true}:{};return i.createElement("div",{className:"genre-form"},i.createElement("div",{className:"form-inline"},i.createElement("select",a({name:"genre","aria-label":"Select one of the following genres",size:this.topLevelGenres().length,className:"form-control"},n),this.topLevelGenres().map((function(t){return i.createElement("option",{key:t.name,value:t.name,disabled:e.bookHasGenre(t.name),onClick:e.handleGenreSelect,"aria-selected":t.name===e.state.genre},t.name+(t.subgenres.length>0?" >":""))}))),t&&t.length>0&&i.createElement("select",a({name:"subgenre",size:t.length,className:"form-control subgenres"},n),t.map((function(t){return i.createElement("option",{key:t,value:t,disabled:e.bookHasGenre(t),onClick:e.handleSubgenreSelect,"aria-selected":t===e.state.subgenre},t)}))),this.state.genre&&i.createElement(o.Button,{className:"top-align",callback:this.addGenre,content:"Add"})))};t.prototype.topLevelGenres=function(){return this.props.genreOptions.filter((function(e){return e.parents.length===0}))};t.prototype.bookHasGenre=function(e){return this.props.bookGenres.indexOf(e)!==-1};t.prototype.handleGenreSelect=function(e){this.setState({genre:e.target.value,subgenre:null})};t.prototype.handleSubgenreSelect=function(e){this.setState({genre:this.state.genre,subgenre:e.target.value})};t.prototype.resetForm=function(){this.setState({genre:null,subgenre:null})};t.prototype.addGenre=function(){var e=this.state.subgenre||this.state.genre;this.props.addGenre(e);this.resetForm()};return t}(i.Component);t.default=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e=this;return a.createElement("div",{className:"classifications-table"},a.createElement("h3",null,"Related Classifications"),a.createElement("table",{className:"table"},a.createElement("thead",null,a.createElement("tr",null,a.createElement("th",null,"Type"),a.createElement("th",null,"Name"),a.createElement("th",null,"Source"),a.createElement("th",null,"Weight"))),a.createElement("tbody",null,this.props.classifications.map((function(t,r){return a.createElement("tr",{key:t.source+":"+(t.name||r)},a.createElement("td",null,e.readableType(t.type)),a.createElement("td",null,t.name),a.createElement("td",null,t.source),a.createElement("td",null,t.weight))})))))};t.prototype.readableType=function(e){return e.replace(/http:\/\/librarysimplified\.org\/terms\/genres\/([^\/]+)\//,"$1")};return t}(a.Component);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(14);var o=r(179);var s=r(41);var u=r(8);var l=r(32);var c=r(19);var f=r(13);var d=r(287);var p=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.formContainerRef=a.createRef();r.imageFormRef=a.createRef();r.coverUrlRef=a.createRef();r.coverFileRef=a.createRef();r.titlePositionRef=a.createRef();r.rightsFormRef=a.createRef();r.rightStatusRef=a.createRef();r.refresh=r.refresh.bind(r);r.preview=r.preview.bind(r);r.save=r.save.bind(r);r.renderCoverForm=r.renderCoverForm.bind(r);return r}t.prototype.UNSAFE_componentWillMount=function(){if(this.props.clearPreview){this.props.clearPreview()}if(this.props.fetchRightsStatuses){this.props.fetchRightsStatuses()}};t.prototype.render=function(){return this.props.book&&a.createElement("div",null,a.createElement("h2",null,this.props.book.title),a.createElement(d.default,{show:this.props.isFetching}),a.createElement("div",null,a.createElement("h3",null,"Current cover:"),a.createElement("img",{src:this.props.book.coverUrl,className:"book-cover current-cover",alt:"Current book cover"})),a.createElement("div",{ref:this.formContainerRef,className:"cover-edit-form"},a.createElement("h3",null,"Change cover:"),a.createElement(f.Panel,{id:"cover-metadata",headerText:"Cover Metadata",openByDefault:true,content:this.renderCoverForm(),onEnter:this.save}),this.props.rightsStatuses&&a.createElement(f.Panel,{id:"rights",headerText:"Rights",openByDefault:true,onEnter:this.save,content:this.renderRightsForm()}),a.createElement(f.Button,{className:"left-align",content:"Save this cover",disabled:this.props.isFetching||!this.props.preview,callback:this.save})),this.props.fetchError&&a.createElement(l.default,{error:this.props.fetchError}))};t.prototype.renderCoverForm=function(){var e=this.titlePositionRef.current;var t=e&&e.getValue();return a.createElement("div",null,a.createElement("p",null,"Cover must be at least 600px x 900px and in PNG, JPG, or GIF format."),a.createElement(f.Form,{ref:this.imageFormRef,className:"edit-form",onSubmit:this.preview,buttonContent:"Preview",buttonClass:"top-align",errorText:this.props.previewFetchError&&a.createElement(l.default,{error:this.props.previewFetchError}),content:a.createElement("fieldset",{key:"cover-image"},a.createElement("legend",{className:"visuallyHidden"},"Cover Image"),a.createElement(c.default,{elementType:"input",type:"text",disabled:this.props.isFetching,name:"cover_url",label:"URL for cover image",description:this.props.book.coverUrl?"Current URL: "+this.props.book.coverUrl:"",ref:this.coverUrlRef,optionalText:false}),a.createElement(c.default,{elementType:"input",type:"file",disabled:this.props.isFetching,name:"cover_file",label:"Or upload cover image",accept:"image/*",ref:this.coverFileRef,optionalText:false}),a.createElement(c.default,{elementType:"select",disabled:this.props.isFetching,name:"title_position",label:"Title and Author Position",value:"none",ref:this.titlePositionRef},a.createElement("option",{value:"none","aria-selected":t==="none"},"None"),a.createElement("option",{value:"top","aria-selected":t==="top"},"Top"),a.createElement("option",{value:"center","aria-selected":t==="center"},"Center"),a.createElement("option",{value:"bottom","aria-selected":t==="bottom"},"Bottom")))}),a.createElement(d.default,{text:"Updating Preview",show:this.props.isFetchingPreview}),this.props.preview&&a.createElement("div",null,a.createElement("h4",null,"Preview:"),a.createElement("img",{src:this.props.preview,className:"book-cover preview-cover",alt:"Preview of new cover"})))};t.prototype.previewUrl=function(){return this.props.bookAdminUrl+"/preview_book_cover"};t.prototype.preview=function(e){var t=this.coverFileRef.current.getValue();var r=this.coverUrlRef.current.getValue();if(!t&&!r&&this.props.clearPreview){this.props.clearPreview()}if((t||r)&&this.props.fetchPreview){this.props.fetchPreview(this.previewUrl(),e)}};t.prototype.renderRightsForm=function(){var e=this;var t="http://librarysimplified.org/terms/rights-status/in-copyright";var r="http://librarysimplified.org/terms/rights-status/unknown";var n=this.rightStatusRef.current;var i=n&&n.getValue();return a.createElement(f.Form,{ref:this.rightsFormRef,onSubmit:this.save,className:"edit-form",withoutButton:true,content:a.createElement("fieldset",{key:"rights"},a.createElement("legend",{className:"visuallyHidden"},"Rights:"),a.createElement(c.default,{elementType:"select",disabled:this.props.isFetching,name:"rights_status",ref:this.rightStatusRef,label:"License"},Object.keys(this.props.rightsStatuses).map((function(t){var r=e.props.rightsStatuses[t];if(r.allows_derivatives){return a.createElement("option",{value:t,key:t,"aria-selected":i===t},r.name)}return null})),a.createElement("option",{value:t,"aria-selected":i===t},"In Copyright"),a.createElement("option",{value:r,"aria-selected":i===r},"Other")),a.createElement(c.default,{elementType:"textarea",disabled:this.props.isFetching,name:"rights_explanation",label:"Explanation of rights",optionalText:false}))})};t.prototype.refresh=function(){this.props.fetchBook(this.props.bookAdminUrl);this.props.refreshCatalog()};t.prototype.save=function(){var e=new window.FormData;var t=this.props.book&&this.props.book.changeCoverLink&&this.props.book.changeCoverLink.href;var r=this.imageFormRef.current.formRef.current;var n=new window.FormData(r);e.append("cover_file",n.get("cover_file"));e.append("cover_url",n.get("cover_url"));e.append("title_position",n.get("title_position"));var a=this.rightsFormRef.current.formRef.current;var i=new window.FormData(a);e.append("rights_status",i.get("rights_status"));e.append("rights_explanation",i.get("rights_explanation"));if(t&&this.props.preview&&this.props.editCover){this.props.editCover(t,e).then(this.refresh)}};return t}(a.Component);t.BookCoverEditor=p;function h(e,t){return{bookAdminUrl:e.editor.book.url,preview:e.editor.bookCoverPreview.data,rightsStatuses:e.editor.rightsStatuses.data,isFetching:e.editor.book.isFetching||e.editor.bookCover.isFetching||e.editor.rightsStatuses.isFetching||e.editor.bookCover.isEditing,fetchError:e.editor.book.fetchError||e.editor.bookCover.fetchError||e.editor.rightsStatuses.fetchError,isFetchingPreview:e.editor.bookCoverPreview.isFetching,previewFetchError:e.editor.bookCoverPreview.fetchError}}function v(e,t){var r=new s.default({adapter:o.default});var n=new u.default(r,t.csrfToken);return{fetchBook:function(t){return e(n.fetchBookAdmin(t))},fetchPreview:function(t,r){return e(n.fetchBookCoverPreview(t,r))},clearPreview:function(){return e(n.clearBookCoverPreview())},editCover:function(t,r){return e(n.editBookCover(t,r))},fetchRightsStatuses:function(){return e(n.fetchRightsStatuses())}}}var m=i.connect(h,v)(p);t.default=m},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(14);var o=r(41);var s=r(8);var u=r(32);var l=r(197);var c=r(92);var f=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.addListRef=a.createRef();r.state={customLists:r.props.customListsForBook};r.refresh=r.refresh.bind(r);r.save=r.save.bind(r);r.makeURL=r.makeURL.bind(r);return r}t.prototype.render=function(){return a.createElement("div",{className:"custom-list-for-book"},this.props.book&&a.createElement("h2",null,this.props.book.title),a.createElement("h3",null,"Lists:"),this.props.fetchError&&a.createElement(u.default,{error:this.props.fetchError,tryAgain:this.refresh}),a.createElement("div",{className:"edit-form"},this.renderInputList(),this.renderLink()))};t.prototype.makeOption=function(e){return a.createElement("option",{value:e.name,key:e.id,"aria-selected":false},e.name)};t.prototype.renderLink=function(){return a.createElement("div",{key:"list-creator-link"},a.createElement(c.Link,{to:{pathname:"/admin/web/lists/"+this.props.library+"/create",state:{bookTitle:this.props.book&&this.props.book.title}}},"Create a new list"),a.createElement("p",null,"(The book title will be automatically copied and searched on the list creator page.)"))};t.prototype.renderInputList=function(){var e=this;var t=this.props.allCustomLists||[];if(t.length>0){return a.createElement(l.default,{key:"lists",ref:this.addListRef,setting:{menuTitle:"Select an existing list",type:"menu",format:"narrow",key:"lists-input",label:null,custom_lists:this.state.customLists,required:false,menuOptions:t.filter((function(e){return e.name})).map((function(t){return e.makeOption(t)})),urlBase:this.makeURL},title:"Current Lists",disabled:this.props.isFetching,value:this.props.customListsForBook&&this.props.customListsForBook.map((function(e){return e.name})),altValue:"This book is not currently on any lists.",onSubmit:this.save,onEmpty:"This book has been added to all the available lists."})}else{return a.createElement("p",null,"There are no available lists.")}};t.prototype.makeURL=function(e){var t=(this.props.allCustomLists||[]).find((function(t){return t.name===e}));if(t){return"/admin/web/lists/"+this.props.library+"/edit/"+t.id}};t.prototype.UNSAFE_componentWillMount=function(){if(this.props.bookUrl){this.props.fetchCustomListsForBook(this.listsUrl());if(!this.props.allCustomLists){this.props.fetchAllCustomLists()}}};t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(this.props.bookUrl!==e.bookUrl){this.setState({customLists:e.customListsForBook})}};t.prototype.listsUrl=function(){return this.props.bookUrl.replace("works","admin/works")+"/lists"};t.prototype.refresh=function(){this.props.fetchAllCustomLists();this.props.fetchCustomListsForBook(this.listsUrl());this.props.refreshCatalog()};t.prototype.save=function(){var e=this;var t=this.addListRef.current.getValue();var r=this.listsUrl();var n=new window.FormData;var a=[];t.map((function(t){var r=e.props.allCustomLists.find((function(e){return e.name===t}));a.push(r)}));n.append("lists",JSON.stringify(a));return this.props.editCustomListsForBook(r,n).then(this.refresh)};return t}(a.Component);t.CustomListsForBook=f;function d(e,t){return{allCustomLists:e.editor.customLists.data&&e.editor.customLists.data.custom_lists,customListsForBook:e.editor.customListsForBook.data&&e.editor.customListsForBook.data.custom_lists,isFetching:e.editor.customListsForBook.isFetching,fetchError:e.editor.customListsForBook.fetchError}}function p(e,t){var r=new o.default;var n=new s.default(r,t.csrfToken);return{fetchAllCustomLists:function(){return e(n.fetchCustomLists(t.library))},fetchCustomListsForBook:function(t){return e(n.fetchCustomListsForBook(t))},editCustomListsForBook:function(t,r){return e(n.editCustomListsForBook(t,r))}}}var h=i.connect(d,p)(f);t.default=h},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(1394);var o=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={value:r.props.value};r.handleChange=r.handleChange.bind(r);return r}t.prototype.render=function(){return a.createElement("div",{className:"color-picker"},a.createElement(i.CompactPicker,{color:this.state.value,triangle:"hide",width:"500px",onChangeComplete:this.handleChange}),a.createElement("input",{type:"hidden",name:this.props.setting.key,value:this.state.value}))};t.prototype.handleChange=function(e,t){this.setState({value:e.hex})};t.prototype.getValue=function(){return this.state.value};return t}(a.Component);t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.flattenNames=undefined;var n=r(55);var a=f(n);var i=r(288);var o=f(i);var s=r(144);var u=f(s);var l=r(612);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}var d=t.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var r=[];(0,c.default)(t,(function(t){if(Array.isArray(t)){e(t).map((function(e){return r.push(e)}))}else if((0,u.default)(t)){(0,o.default)(t,(function(e,t){e===true&&r.push(t);r.push(t+"-"+e)}))}else if((0,a.default)(t)){r.push(t)}}));return r};t.default=d},function(e,t,r){var n=r(135);var a=Object.prototype;var i=a.hasOwnProperty;var o=a.toString;var s=n?n.toStringTag:undefined;function u(e){var t=i.call(e,s),r=e[s];try{e[s]=undefined;var n=true}catch(e){}var a=o.call(e);if(n){if(t){e[s]=r}else{delete e[s]}}return a}e.exports=u},function(e,t){var r=Object.prototype;var n=r.toString;function a(e){return n.call(e)}e.exports=a},function(e,t,r){var n=r(1039);var a=n();e.exports=a},function(e,t){function r(e){return function(t,r,n){var a=-1,i=Object(t),o=n(t),s=o.length;while(s--){var u=o[e?s:++a];if(r(i[u],u,i)===false){break}}return t}}e.exports=r},function(e,t){function r(e,t){var r=-1,n=Array(e);while(++r<e){n[r]=t(r)}return n}e.exports=r},function(e,t,r){var n=r(84),a=r(61);var i="[object Arguments]";function o(e){return a(e)&&n(e)==i}e.exports=o},function(e,t){function r(){return false}e.exports=r},function(e,t,r){var n=r(84),a=r(293),i=r(61);var o="[object Arguments]",s="[object Array]",u="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",p="[object Number]",h="[object Object]",v="[object RegExp]",m="[object Set]",y="[object String]",g="[object WeakMap]";var b="[object ArrayBuffer]",A="[object DataView]",_="[object Float32Array]",w="[object Float64Array]",E="[object Int8Array]",x="[object Int16Array]",k="[object Int32Array]",S="[object Uint8Array]",O="[object Uint8ClampedArray]",M="[object Uint16Array]",D="[object Uint32Array]";var T={};T[_]=T[w]=T[E]=T[x]=T[k]=T[S]=T[O]=T[M]=T[D]=true;T[o]=T[s]=T[b]=T[u]=T[A]=T[l]=T[c]=T[f]=T[d]=T[p]=T[h]=T[v]=T[m]=T[y]=T[g]=false;function L(e){return i(e)&&a(e.length)&&!!T[n(e)]}e.exports=L},function(e,t,r){var n=r(295),a=r(1045);var i=Object.prototype;var o=i.hasOwnProperty;function s(e){if(!n(e)){return a(e)}var t=[];for(var r in Object(e)){if(o.call(e,r)&&r!="constructor"){t.push(r)}}return t}e.exports=s},function(e,t,r){var n=r(611);var a=n(Object.keys,Object);e.exports=a},function(e,t,r){var n=r(112);function a(e){return typeof e=="function"?e:n}e.exports=a},function(e,t,r){var n=r(1048),a=r(1084),i=r(623);function o(e){var t=a(e);if(t.length==1&&t[0][2]){return i(t[0][0],t[0][1])}return function(r){return r===e||n(r,e,t)}}e.exports=o},function(e,t,r){var n=r(297),a=r(300);var i=1,o=2;function s(e,t,r,s){var u=r.length,l=u,c=!s;if(e==null){return!l}e=Object(e);while(u--){var f=r[u];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e)){return false}}while(++u<l){f=r[u];var d=f[0],p=e[d],h=f[1];if(c&&f[2]){if(p===undefined&&!(d in e)){return false}}else{var v=new n;if(s){var m=s(p,h,d,e,t,v)}if(!(m===undefined?a(h,p,i|o,s,v):m)){return false}}}return true}e.exports=s},function(e,t){function r(){this.__data__=[];this.size=0}e.exports=r},function(e,t,r){var n=r(199);var a=Array.prototype;var i=a.splice;function o(e){var t=this.__data__,r=n(t,e);if(r<0){return false}var a=t.length-1;if(r==a){t.pop()}else{i.call(t,r,1)}--this.size;return true}e.exports=o},function(e,t,r){var n=r(199);function a(e){var t=this.__data__,r=n(t,e);return r<0?undefined:t[r][1]}e.exports=a},function(e,t,r){var n=r(199);function a(e){return n(this.__data__,e)>-1}e.exports=a},function(e,t,r){var n=r(199);function a(e,t){var r=this.__data__,a=n(r,e);if(a<0){++this.size;r.push([e,t])}else{r[a][1]=t}return this}e.exports=a},function(e,t,r){var n=r(198);function a(){this.__data__=new n;this.size=0}e.exports=a},function(e,t){function r(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}e.exports=r},function(e,t){function r(e){return this.__data__.get(e)}e.exports=r},function(e,t){function r(e){return this.__data__.has(e)}e.exports=r},function(e,t,r){var n=r(198),a=r(298),i=r(299);var o=200;function s(e,t){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!a||s.length<o-1){s.push([e,t]);this.size=++r.size;return this}r=this.__data__=new i(s)}r.set(e,t);this.size=r.size;return this}e.exports=s},function(e,t,r){var n=r(4),a=r(1060),i=r(27),o=r(613);var s=/[\\^$.*+?()[\]{}|]/g;var u=/^\[object .+?Constructor\]$/;var l=Function.prototype,c=Object.prototype;var f=l.toString;var d=c.hasOwnProperty;var p=RegExp("^"+f.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(e){if(!i(e)||a(e)){return false}var t=n(e)?p:u;return t.test(o(e))}e.exports=h},function(e,t,r){var n=r(1061);var a=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function i(e){return!!a&&a in e}e.exports=i},function(e,t,r){var n=r(60);var a=n["__core-js_shared__"];e.exports=a},function(e,t){function r(e,t){return e==null?undefined:e[t]}e.exports=r},function(e,t,r){var n=r(1064),a=r(198),i=r(298);function o(){this.size=0;this.__data__={hash:new n,map:new(i||a),string:new n}}e.exports=o},function(e,t,r){var n=r(1065),a=r(1066),i=r(1067),o=r(1068),s=r(1069);function u(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n;u.prototype["delete"]=a;u.prototype.get=i;u.prototype.has=o;u.prototype.set=s;e.exports=u},function(e,t,r){var n=r(201);function a(){this.__data__=n?n(null):{};this.size=0}e.exports=a},function(e,t){function r(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}e.exports=r},function(e,t,r){var n=r(201);var a="__lodash_hash_undefined__";var i=Object.prototype;var o=i.hasOwnProperty;function s(e){var t=this.__data__;if(n){var r=t[e];return r===a?undefined:r}return o.call(t,e)?t[e]:undefined}e.exports=s},function(e,t,r){var n=r(201);var a=Object.prototype;var i=a.hasOwnProperty;function o(e){var t=this.__data__;return n?t[e]!==undefined:i.call(t,e)}e.exports=o},function(e,t,r){var n=r(201);var a="__lodash_hash_undefined__";function i(e,t){var r=this.__data__;this.size+=this.has(e)?0:1;r[e]=n&&t===undefined?a:t;return this}e.exports=i},function(e,t,r){var n=r(202);function a(e){var t=n(this,e)["delete"](e);this.size-=t?1:0;return t}e.exports=a},function(e,t){function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}e.exports=r},function(e,t,r){var n=r(202);function a(e){return n(this,e).get(e)}e.exports=a},function(e,t,r){var n=r(202);function a(e){return n(this,e).has(e)}e.exports=a},function(e,t,r){var n=r(202);function a(e,t){var r=n(this,e),a=r.size;r.set(e,t);this.size+=r.size==a?0:1;return this}e.exports=a},function(e,t,r){var n=r(297),a=r(614),i=r(1078),o=r(1080),s=r(203),u=r(12),l=r(291),c=r(610);var f=1;var d="[object Arguments]",p="[object Array]",h="[object Object]";var v=Object.prototype;var m=v.hasOwnProperty;function y(e,t,r,v,y,g){var b=u(e),A=u(t),_=b?p:s(e),w=A?p:s(t);_=_==d?h:_;w=w==d?h:w;var E=_==h,x=w==h,k=_==w;if(k&&l(e)){if(!l(t)){return false}b=true;E=false}if(k&&!E){g||(g=new n);return b||c(e)?a(e,t,r,v,y,g):i(e,t,_,r,v,y,g)}if(!(r&f)){var S=E&&m.call(e,"__wrapped__"),O=x&&m.call(t,"__wrapped__");if(S||O){var M=S?e.value():e,D=O?t.value():t;g||(g=new n);return y(M,D,r,v,g)}}if(!k){return false}g||(g=new n);return o(e,t,r,v,y,g)}e.exports=y},function(e,t){var r="__lodash_hash_undefined__";function n(e){this.__data__.set(e,r);return this}e.exports=n},function(e,t){function r(e){return this.__data__.has(e)}e.exports=r},function(e,t,r){var n=r(135),a=r(616),i=r(200),o=r(614),s=r(1079),u=r(303);var l=1,c=2;var f="[object Boolean]",d="[object Date]",p="[object Error]",h="[object Map]",v="[object Number]",m="[object RegExp]",y="[object Set]",g="[object String]",b="[object Symbol]";var A="[object ArrayBuffer]",_="[object DataView]";var w=n?n.prototype:undefined,E=w?w.valueOf:undefined;function x(e,t,r,n,w,x,k){switch(r){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case A:if(e.byteLength!=t.byteLength||!x(new a(e),new a(t))){return false}return true;case f:case d:case v:return i(+e,+t);case p:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+"";case h:var S=s;case y:var O=n&l;S||(S=u);if(e.size!=t.size&&!O){return false}var M=k.get(e);if(M){return M==t}n|=c;k.set(e,t);var D=o(S(e),S(t),n,w,x,k);k["delete"](e);return D;case b:if(E){return E.call(e)==E.call(t)}}return false}e.exports=x},function(e,t){function r(e){var t=-1,r=Array(e.size);e.forEach((function(e,n){r[++t]=[n,e]}));return r}e.exports=r},function(e,t,r){var n=r(617);var a=1;var i=Object.prototype;var o=i.hasOwnProperty;function s(e,t,r,i,s,u){var l=r&a,c=n(e),f=c.length,d=n(t),p=d.length;if(f!=p&&!l){return false}var h=f;while(h--){var v=c[h];if(!(l?v in t:o.call(t,v))){return false}}var m=u.get(e);var y=u.get(t);if(m&&y){return m==t&&y==e}var g=true;u.set(e,t);u.set(t,e);var b=l;while(++h<f){v=c[h];var A=e[v],_=t[v];if(i){var w=l?i(_,A,v,t,e,u):i(A,_,v,e,t,u)}if(!(w===undefined?A===_||s(A,_,r,i,u):w)){g=false;break}b||(b=v=="constructor")}if(g&&!b){var E=e.constructor,x=t.constructor;if(E!=x&&("constructor"in e&&"constructor"in t)&&!(typeof E=="function"&&E instanceof E&&typeof x=="function"&&x instanceof x)){g=false}}u["delete"](e);u["delete"](t);return g}e.exports=s},function(e,t,r){var n=r(113),a=r(60);var i=n(a,"DataView");e.exports=i},function(e,t,r){var n=r(113),a=r(60);var i=n(a,"Promise");e.exports=i},function(e,t,r){var n=r(113),a=r(60);var i=n(a,"WeakMap");e.exports=i},function(e,t,r){var n=r(622),a=r(136);function i(e){var t=a(e),r=t.length;while(r--){var i=t[r],o=e[i];t[r]=[i,o,n(o)]}return t}e.exports=i},function(e,t,r){var n=r(300),a=r(35),i=r(1091),o=r(306),s=r(622),u=r(623),l=r(161);var c=1,f=2;function d(e,t){if(o(e)&&s(t)){return u(l(e),t)}return function(r){var o=a(r,e);return o===undefined&&o===t?i(r,e):n(t,o,c|f)}}e.exports=d},function(e,t,r){var n=r(1087);var a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var i=/\\(\\)?/g;var o=n((function(e){var t=[];if(e.charCodeAt(0)===46){t.push("")}e.replace(a,(function(e,r,n,a){t.push(n?a.replace(i,"$1"):r||e)}));return t}));e.exports=o},function(e,t,r){var n=r(1088);var a=500;function i(e){var t=n(e,(function(e){if(r.size===a){r.clear()}return e}));var r=t.cache;return t}e.exports=i},function(e,t,r){var n=r(299);var a="Expected a function";function i(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new TypeError(a)}var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a)){return i.get(a)}var o=e.apply(this,n);r.cache=i.set(a,o)||i;return o};r.cache=new(i.Cache||n);return r}i.Cache=n;e.exports=i},function(e,t,r){var n=r(1090);function a(e){return e==null?"":n(e)}e.exports=a},function(e,t,r){var n=r(135),a=r(137),i=r(12),o=r(138);var s=1/0;var u=n?n.prototype:undefined,l=u?u.toString:undefined;function c(e){if(typeof e=="string"){return e}if(i(e)){return a(e,c)+""}if(o(e)){return l?l.call(e):""}var t=e+"";return t=="0"&&1/e==-s?"-0":t}e.exports=c},function(e,t,r){var n=r(1092),a=r(1093);function i(e,t){return e!=null&&a(e,t,n)}e.exports=i},function(e,t){function r(e,t){return e!=null&&t in Object(e)}e.exports=r},function(e,t,r){var n=r(205),a=r(290),i=r(12),o=r(292),s=r(293),u=r(161);function l(e,t,r){t=n(t,e);var l=-1,c=t.length,f=false;while(++l<c){var d=u(t[l]);if(!(f=e!=null&&r(e,d))){break}e=e[d]}if(f||++l!=c){return f}c=e==null?0:e.length;return!!c&&s(c)&&o(d,c)&&(i(e)||a(e))}e.exports=l},function(e,t,r){var n=r(1095),a=r(1096),i=r(306),o=r(161);function s(e){return i(e)?n(o(e)):a(e)}e.exports=s},function(e,t){function r(e){return function(t){return t==null?undefined:t[e]}}e.exports=r},function(e,t,r){var n=r(204);function a(e){return function(t){return n(t,e)}}e.exports=a},function(e,t,r){var n=r(111);function a(e,t){return function(r,a){if(r==null){return r}if(!n(r)){return e(r,a)}var i=r.length,o=t?i:-1,s=Object(r);while(t?o--:++o<i){if(a(s[o],o,s)===false){break}}return r}}e.exports=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeClasses=undefined;var n=r(288);var a=u(n);var i=r(1099);var o=u(i);var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};function u(e){return e&&e.__esModule?e:{default:e}}var l=t.mergeClasses=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=t.default&&(0,o.default)(t.default)||{};r.map((function(e){var r=t[e];if(r){(0,a.default)(r,(function(e,t){if(!n[t]){n[t]={}}n[t]=s({},n[t],r[t])}))}return e}));return n};t.default=l},function(e,t,r){var n=r(625);var a=1,i=4;function o(e){return n(e,a|i)}e.exports=o},function(e,t){function r(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)===false){break}}return e}e.exports=r},function(e,t,r){var n=r(162),a=r(136);function i(e,t){return e&&n(t,a(t),e)}e.exports=i},function(e,t,r){var n=r(162),a=r(308);function i(e,t){return e&&n(t,a(t),e)}e.exports=i},function(e,t,r){var n=r(27),a=r(295),i=r(1104);var o=Object.prototype;var s=o.hasOwnProperty;function u(e){if(!n(e)){return i(e)}var t=a(e),r=[];for(var o in e){if(!(o=="constructor"&&(t||!s.call(e,o)))){r.push(o)}}return r}e.exports=u},function(e,t){function r(e){var t=[];if(e!=null){for(var r in Object(e)){t.push(r)}}return t}e.exports=r},function(e,t,r){(function(e){var n=r(60);var a=true&&t&&!t.nodeType&&t;var i=a&&typeof e=="object"&&e&&!e.nodeType&&e;var o=i&&i.exports===a;var s=o?n.Buffer:undefined,u=s?s.allocUnsafe:undefined;function l(e,t){if(t){return e.slice()}var r=e.length,n=u?u(r):new e.constructor(r);e.copy(n);return n}e.exports=l}).call(this,r(48)(e))},function(e,t){function r(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n){t[r]=e[r]}return t}e.exports=r},function(e,t,r){var n=r(162),a=r(305);function i(e,t){return n(e,a(e),t)}e.exports=i},function(e,t,r){var n=r(162),a=r(628);function i(e,t){return n(e,a(e),t)}e.exports=i},function(e,t){var r=Object.prototype;var n=r.hasOwnProperty;function a(e){var t=e.length,r=new e.constructor(t);if(t&&typeof e[0]=="string"&&n.call(e,"index")){r.index=e.index;r.input=e.input}return r}e.exports=a},function(e,t,r){var n=r(309),a=r(1111),i=r(1112),o=r(1113),s=r(1114);var u="[object Boolean]",l="[object Date]",c="[object Map]",f="[object Number]",d="[object RegExp]",p="[object Set]",h="[object String]",v="[object Symbol]";var m="[object ArrayBuffer]",y="[object DataView]",g="[object Float32Array]",b="[object Float64Array]",A="[object Int8Array]",_="[object Int16Array]",w="[object Int32Array]",E="[object Uint8Array]",x="[object Uint8ClampedArray]",k="[object Uint16Array]",S="[object Uint32Array]";function O(e,t,r){var O=e.constructor;switch(t){case m:return n(e);case u:case l:return new O(+e);case y:return a(e,r);case g:case b:case A:case _:case w:case E:case x:case k:case S:return s(e,r);case c:return new O;case f:case h:return new O(e);case d:return i(e);case p:return new O;case v:return o(e)}}e.exports=O},function(e,t,r){var n=r(309);function a(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}e.exports=a},function(e,t){var r=/\w*$/;function n(e){var t=new e.constructor(e.source,r.exec(e));t.lastIndex=e.lastIndex;return t}e.exports=n},function(e,t,r){var n=r(135);var a=n?n.prototype:undefined,i=a?a.valueOf:undefined;function o(e){return i?Object(i.call(e)):{}}e.exports=o},function(e,t,r){var n=r(309);function a(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}e.exports=a},function(e,t,r){var n=r(1116),a=r(296),i=r(295);function o(e){return typeof e.constructor=="function"&&!i(e)?n(a(e)):{}}e.exports=o},function(e,t,r){var n=r(27);var a=Object.create;var i=function(){function e(){}return function(t){if(!n(t)){return{}}if(a){return a(t)}e.prototype=t;var r=new e;e.prototype=undefined;return r}}();e.exports=i},function(e,t,r){var n=r(1118),a=r(160),i=r(294);var o=i&&i.isMap;var s=o?a(o):n;e.exports=s},function(e,t,r){var n=r(203),a=r(61);var i="[object Map]";function o(e){return a(e)&&n(e)==i}e.exports=o},function(e,t,r){var n=r(1120),a=r(160),i=r(294);var o=i&&i.isSet;var s=o?a(o):n;e.exports=s},function(e,t,r){var n=r(203),a=r(61);var i="[object Set]";function o(e){return a(e)&&n(e)==i}e.exports=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.autoprefix=undefined;var n=r(288);var a=o(n);var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};function o(e){return e&&e.__esModule?e:{default:e}}var s={borderRadius:function e(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function e(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function e(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function e(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function e(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function e(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function e(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function e(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function e(t){var r=t&&t.split(" ");return{position:"absolute",top:r&&r[0],right:r&&r[1],bottom:r&&r[2],left:r&&r[3]}},extend:function e(t,r){var n=r[t];if(n){return n}return{extend:t}}};var u=t.autoprefix=function e(t){var r={};(0,a.default)(t,(function(e,t){var n={};(0,a.default)(e,(function(e,t){var r=s[t];if(r){n=i({},n,r(e))}else{n[t]=e}}));r[t]=n}));return r};t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hover=undefined;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(1);var i=o(a);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function u(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function l(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var c=t.hover=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"span";return function(e){l(a,e);function a(){var e;var o,l,c;s(this,a);for(var f=arguments.length,d=Array(f),p=0;p<f;p++){d[p]=arguments[p]}return c=(o=(l=u(this,(e=a.__proto__||Object.getPrototypeOf(a)).call.apply(e,[this].concat(d))),l),l.state={hover:false},l.handleMouseOver=function(){return l.setState({hover:true})},l.handleMouseOut=function(){return l.setState({hover:false})},l.render=function(){return i.default.createElement(r,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},i.default.createElement(t,n({},l.props,l.state)))},o),u(l,c)}return a}(i.default.Component)};t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.active=undefined;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=r(1);var i=o(a);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function u(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function l(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var c=t.active=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"span";return function(e){l(a,e);function a(){var e;var o,l,c;s(this,a);for(var f=arguments.length,d=Array(f),p=0;p<f;p++){d[p]=arguments[p]}return c=(o=(l=u(this,(e=a.__proto__||Object.getPrototypeOf(a)).call.apply(e,[this].concat(d))),l),l.state={active:false},l.handleMouseDown=function(){return l.setState({active:true})},l.handleMouseUp=function(){return l.setState({active:false})},l.render=function(){return i.default.createElement(r,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},i.default.createElement(t,n({},l.props,l.state)))},o),u(l,c)}return a}(i.default.Component)};t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function e(t,r){var n={};var a=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;n[t]=r};t===0&&a("first-child");t===r-1&&a("last-child");(t===0||t%2===0)&&a("even");Math.abs(t%2)===1&&a("odd");a("nth-child",t);return n};t.default=n},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var a=this&&this.__assign||function(){a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return a.apply(this,arguments)};var i=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n["throw"](e))}catch(e){i(e)}}function u(e){e.done?r(e.value):a(e.value).then(o,s)}u((n=n.apply(e,t||[])).next())}))};var o=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};Object.defineProperty(t,"__esModule",{value:true});var s=r(1);var u=r(190);var l=r(578);var c=r(630);var f=r(127);var d=r(13);var p=r(106);var h=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.addListItemRef=s.createRef();var n=t.setting.type==="menu";r.state={listItems:t.value||t.setting.default||[],newItem:"",options:n&&r.filterMenu()};r.updateNewItem=r.updateNewItem.bind(r);r.addListItem=r.addListItem.bind(r);r.removeListItem=r.removeListItem.bind(r);r.clear=r.clear.bind(r);r.filterMenu=r.filterMenu.bind(r);r.capitalize=r.capitalize.bind(r);return r}t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(this.state.listItems&&e.value&&!p.isEqual(this.state.listItems,e.value)){this.setState({listItems:e.value})}};t.prototype.componentDidUpdate=function(e,t){if(t.listItems&&this.state.listItems&&!p.isEqual(t.listItems,this.state.listItems)){this.props.setting.format==="narrow"&&this.setState({options:this.filterMenu()})}};t.prototype.render=function(){var e=this.props.setting;var t=!this.state.options||this.state.options.length>0;var r=this.state.listItems&&this.state.listItems.length>0;var n;var a=this.props.disabled||this.props.disableButton||e.type!=="menu"&&!this.state.newItem.length;if(e.format==="language-code"){n=s.createElement(l.default,{disabled:this.props.disabled,ref:this.addListItemRef,name:e.key,languages:this.props.additionalData,onChange:this.updateNewItem})}else if(e.type==="menu"){n=this.renderMenu(e)}else{n=this.props.createEditableInput(e,{value:null,disabled:this.props.disabled,onChange:this.updateNewItem,ref:this.addListItemRef,label:null,description:null,readOnly:this.props.readOnly})}return s.createElement("div",{className:"input-list"},this.props.labelAndDescription&&this.props.labelAndDescription(e),this.props.altValue&&!r&&s.createElement("span",null,this.props.altValue),this.props.title&&r&&s.createElement("h4",null,this.props.title),r&&this.renderList(this.state.listItems,e),s.createElement("div",{className:"add-list-item-container"},s.createElement("span",{className:"add-list-item"},n),t&&s.createElement(d.Button,{type:"button",className:"add-list-item inline small bottom-align",callback:this.addListItem,content:"Add",disabled:a})))};t.prototype.renderList=function(e,t){var r=this;return s.createElement("ul",{className:"input-list-ul"},e.filter((function(e){return e})).map((function(e){var n=typeof e==="string"?e:Object.keys(e)[0];return r.renderListItem(t,n,e)})))};t.prototype.renderListItem=function(e,t,r){var n=this;var a;var i;var o=e.options?(a=e.options.find((function(e){return e.key===t})))===null||a===void 0?void 0:a.label:t;if(e.format==="language-code"){i=s.createElement(l.default,{disabled:this.props.disabled,value:t,name:e.key,languages:this.props.additionalData})}else if(e.urlBase){i=s.createElement("a",{href:e.urlBase(r)},r)}else{i=this.props.createEditableInput(e,{type:"text",description:null,disabled:this.props.disabled,value:o,name:e.type==="menu"?e.key+"_"+t:e.key,label:null,extraContent:this.renderToolTip(r,e.format),optionalText:false,readOnly:this.props.readOnly})}var c=this.props.disabled||this.props.disableButton;return s.createElement("li",{className:"input-list-item",key:t},s.createElement(u.default,{disabled:c,onRemove:function(){return n.removeListItem(r)}},i))};t.prototype.renderMenu=function(e){var t=this.state.options;if(t&&t.length>0){return this.props.createEditableInput(e,{elementType:"select",name:e.key+"_menu",value:e.key,label:e.menuTitle,required:e.required,ref:this.addListItemRef,optionalText:!e.required,description:!e.required?"(Optional) ":""},t)}else if(this.props.onEmpty){return this.props.onEmpty}};t.prototype.renderToolTip=function(e,t){var r={geographic:s.createElement(f.LocatorIcon,null)};if(typeof e==="object"){return s.createElement("span",{className:"input-group-addon"},s.createElement(c.default,{trigger:r[t],direction:"point-right",text:Object.values(e)[0].toString()}))}return null};t.prototype.filterMenu=function(){var e=this.props.setting.menuOptions;if(!e){try{e=this.props.setting.options.map((function(e){return s.createElement("option",{key:e.key,value:e.key,"aria-selected":false},e.label)}))}catch(e){return}}var t=this.state?this.state.listItems:this.props.value||this.props.setting.default;var r=t?e.filter((function(e){return t.indexOf(e.props.value)<0})):[];return r};t.prototype.updateNewItem=function(){var e=this.props.setting.format==="language-code"?this.addListItemRef.current.autocompleteRef.current:this.addListItemRef.current;this.setState(a(a({},this.state),{newItem:e.getValue()}))};t.prototype.removeListItem=function(e){return i(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.setState({listItems:this.state.listItems.filter((function(t){return t!==e}))})];case 1:t.sent();this.props.onChange&&this.props.onChange(this.state);if(!this.props.onSubmit)return[3,3];return[4,this.props.onSubmit()];case 2:t.sent();t.label=3;case 3:return[2]}}))}))};t.prototype.addListItem=function(){return i(this,void 0,void 0,(function(){var e,t;return o(this,(function(r){switch(r.label){case 0:e=this.props.setting.format==="language-code"?this.addListItemRef.current.autocompleteRef.current:this.addListItemRef.current;t=this.props.setting.capitalize?this.capitalize(e.getValue()):e.getValue();return[4,this.setState({listItems:this.state.listItems.concat(t),newItem:""})];case 1:r.sent();this.props.onChange&&this.props.onChange(this.state);if(!this.props.onSubmit)return[3,3];return[4,this.props.onSubmit()];case 2:r.sent();r.label=3;case 3:if(this.props.setting.type!=="menu"){e.clear()}return[2]}}))}))};t.prototype.capitalize=function(e){var t=this;return e.split(" ").map((function(e){return e.length===2&&t.props.setting.format==="geographic"?e.toUpperCase():p.formatString(e)})).join(" ")};t.prototype.getValue=function(){return this.state.listItems};t.prototype.clear=function(){this.setState({listItems:[]})};return t}(s.Component);t.default=h},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(398);var i=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.fieldNames=function(){return["Published","Publisher","Audience","Categories","Distributed By"]};t.prototype.fields=function(){var t=e.prototype.fields.call(this);var r=t.findIndex((function(e){return e.name==="Categories"}));t[r].value=this.categories();t.push({name:"Audience",value:this.audience()});t.push({name:"Distributed By",value:this.distributor()});return t};t.prototype.audience=function(){if(!this.props.book){return null}var e=this.props.book.raw.category;if(!e){return null}var t=e.find((function(e){return e["$"]["scheme"]&&e["$"]["scheme"]["value"]==="http://schema.org/audience"}));if(!t){return null}var r=t["$"]["label"]&&t["$"]["label"]["value"];if(["Adult","Adults Only"].indexOf(r)!==-1){return r}var n=e.find((function(e){return e["$"]["scheme"]&&e["$"]["scheme"]["value"]==="http://schema.org/typicalAgeRange"}));if(n){var a=n["$"]["label"]&&n["$"]["label"]["value"];r+=" (age "+a+")"}return r};t.prototype.categories=function(){if(!this.props.book){return null}var e=["http://schema.org/audience","http://schema.org/typicalAgeRange"];var t="http://librarysimplified.org/terms/fiction/";var r=this.props.book.raw.category||[];var n=r.filter((function(r){return r["$"]["label"]&&r["$"]["scheme"]&&e.concat([t]).indexOf(r["$"]["scheme"]["value"])===-1})).map((function(e){return e["$"]["label"]["value"]}));if(!n.length){n=r.filter((function(e){return e["$"]["label"]&&e["$"]["scheme"]&&e["$"]["scheme"]["value"]===t})).map((function(e){return e["$"]["label"]["value"]}))}return n.length>0?n.join(", "):null};t.prototype.distributor=function(){if(!this.props.book){return null}var e=this.props.book.raw["bibframe:distribution"];if(!e||e.length<1){return null}var t=e[0]["$"]["bibframe:ProviderName"];if(!t){return null}return t.value};t.prototype.circulationLinks=function(){return null};return t}(a.default);t.default=i},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjQuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1NDkuNyAyODIuNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTQ5LjcgMjgyLjc7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojM0RCQUU4O30KCS5zdDF7ZmlsbDojMjEyNkFEO30KCS5zdDJ7ZmlsbDojRkM4NTQyO30KCS5zdDN7ZmlsbDojRkEzNjFDO30KPC9zdHlsZT4KPGc+Cgk8cG9seWdvbiBjbGFzcz0ic3QwIiBwb2ludHM9Ijc4LjcsMTEwLjIgNzguNywxNjggMTU3LjMsMTEyLjkgMTU3LjMsNTUuMSAJIi8+Cgk8cG9seWdvbiBjbGFzcz0ic3QxIiBwb2ludHM9IjE1Ny4zLDU1LjEgMTU3LjMsNTUuMSA3OC43LDAgNzguNyw2Ny44IDEwOSw4OSAJIi8+Cgk8cG9seWdvbiBjbGFzcz0ic3QyIiBwb2ludHM9IjAsMTc3LjQgMjQuNCwxNjYgNDguNywyMTEuNSA0OC43LDg5LjIgMCw1NS4xIAkiLz4KCTxwb2x5Z29uIGNsYXNzPSJzdDMiIHBvaW50cz0iMCw1NS4xIDAuMiw1NS4yIDQ4LjcsODkuMiA3OC43LDY3LjggNzguNywwIAkiLz4KCTxnPgoJCTxwYXRoIGQ9Ik0yMjMuOSw4MC4zYzItMS41LDIuOS0zLjgsMi45LTYuN2MwLTIuOS0xLTUtMi45LTYuNGMtMS45LTEuNC00LjUtMi4xLTcuOC0yLjFoLTguOHYxNy42aDguNwoJCQlDMjE5LjMsODIuNiwyMjEuOSw4MS44LDIyMy45LDgwLjMgTTIyOC41LDU3LjVjMy4yLDEuNiw1LjcsMy43LDcuNSw2LjVjMS43LDIuOCwyLjYsNS45LDIuNiw5LjNjMCwzLjUtMSw2LjgtMi45LDkuNwoJCQljLTEuOSwyLjktNC41LDUuMi03LjgsNi44Yy0zLjMsMS43LTcsMi41LTExLDIuNWgtOS41djIwLjRoLTExLjhWNTUuMkgyMTdDMjIxLjQsNTUuMiwyMjUuMiw1NiwyMjguNSw1Ny41Ii8+CgkJPHBhdGggZD0iTTI2OS4zLDkwLjVjLTAuNSwxLTEuNSwxLjktMi44LDIuN2MtMS4zLDAuOC0zLjIsMS40LTUuOCwyYy0yLjYsMC41LTQuNSwxLjItNS43LDIuMWMtMS4yLDAuOS0xLjgsMi0xLjgsMy40CgkJCWMwLDEuNCwwLjYsMi42LDEuNywzLjZjMS4xLDAuOSwyLjgsMS40LDQuOSwxLjRjMi44LDAsNS4xLTEsNi44LTIuOWMxLjctMS45LDIuNi01LjEsMi42LTkuNVY5MC41eiBNMjgxLDExMi43aC0xMS4zCgkJCWMtMC4zLTEuMy0wLjQtMi42LTAuNC0zLjd2LTIuM2gtMC4xYy0yLjYsNC43LTYuOCw3LjEtMTIuNyw3LjFjLTIuOSwwLTUuNS0wLjUtNy43LTEuNmMtMi4yLTEtMy45LTIuNS01LjItNC40CgkJCWMtMS4yLTEuOS0xLjgtNC4xLTEuOC02LjVjMC0zLjQsMS4xLTYuMSwzLjItOGMyLjEtMS45LDQuNS0zLjIsNy0zLjhjMi41LTAuNyw1LjQtMS4yLDguOC0xLjdjMi4xLTAuMywzLjctMC42LDQuOC0wLjgKCQkJYzEuMS0wLjMsMS45LTAuOCwyLjUtMS40YzAuNi0wLjYsMC45LTEuNSwwLjktMi43YzAtMS42LTAuNi0yLjgtMS45LTMuNmMtMS4zLTAuOS0zLTEuMy01LjItMS4zYy0xLjksMC0zLjYsMC41LTQuOSwxLjYKCQkJYy0xLjMsMS0yLjMsMi41LTIuOCw0LjNoLTEwLjZjMC40LTIuNSwxLjQtNC44LDIuOS02LjljMS41LTIuMSwzLjYtMy45LDYuMi01LjJjMi42LTEuMyw1LjYtMiw5LjEtMmM2LDAsMTAuNiwxLjYsMTMuNyw0LjcKCQkJYzMuMSwzLjEsNC42LDcuNiw0LjYsMTMuNFYxMDJDMjgwLjIsMTA2LjgsMjgwLjUsMTEwLjMsMjgxLDExMi43Ii8+Cgk8L2c+Cgk8cmVjdCB4PSIyODkuMiIgeT0iNTUuMiIgd2lkdGg9IjExLjQiIGhlaWdodD0iNTcuNSIvPgoJPGc+CgkJPHBhdGggZD0iTTMzNS4zLDkwLjVjLTAuNSwxLTEuNSwxLjktMi44LDIuN2MtMS4zLDAuOC0zLjIsMS40LTUuOCwyYy0yLjYsMC41LTQuNSwxLjItNS43LDIuMWMtMS4yLDAuOS0xLjgsMi0xLjgsMy40CgkJCWMwLDEuNCwwLjYsMi42LDEuNywzLjZjMS4xLDAuOSwyLjgsMS40LDQuOSwxLjRjMi44LDAsNS4xLTEsNi44LTIuOWMxLjctMS45LDIuNi01LjEsMi42LTkuNVY5MC41eiBNMzQ3LDExMi43aC0xMS4zCgkJCWMtMC4zLTEuMy0wLjQtMi42LTAuNC0zLjd2LTIuM2gtMC4xYy0yLjYsNC43LTYuOCw3LjEtMTIuNyw3LjFjLTIuOSwwLTUuNS0wLjUtNy43LTEuNmMtMi4yLTEtMy45LTIuNS01LjItNC40CgkJCWMtMS4yLTEuOS0xLjgtNC4xLTEuOC02LjVjMC0zLjQsMS4xLTYuMSwzLjItOGMyLjEtMS45LDQuNS0zLjIsNy0zLjhjMi41LTAuNyw1LjQtMS4yLDguOC0xLjdjMi4xLTAuMywzLjctMC42LDQuOC0wLjgKCQkJYzEuMS0wLjMsMS45LTAuOCwyLjUtMS40YzAuNi0wLjYsMC45LTEuNSwwLjktMi43YzAtMS42LTAuNi0yLjgtMS45LTMuNmMtMS4zLTAuOS0zLTEuMy01LjItMS4zYy0xLjksMC0zLjYsMC41LTQuOSwxLjYKCQkJYy0xLjMsMS0yLjMsMi41LTIuOCw0LjNoLTEwLjZjMC40LTIuNSwxLjQtNC44LDIuOS02LjljMS41LTIuMSwzLjYtMy45LDYuMi01LjJjMi42LTEuMyw1LjYtMiw5LjEtMmM2LDAsMTAuNiwxLjYsMTMuNyw0LjcKCQkJYzMuMSwzLjEsNC42LDcuNiw0LjYsMTMuNFYxMDJDMzQ2LjIsMTA2LjgsMzQ2LjUsMTEwLjMsMzQ3LDExMi43Ii8+CgkJPHBhdGggZD0iTTM5MS40LDEwNi44Yy0xLjksMi40LTQuMiw0LjEtNyw1LjRjLTIuOCwxLjItNS45LDEuOC05LjIsMS44Yy00LjEsMC03LjgtMC45LTExLjMtMi43Yy0zLjQtMS44LTYuMi00LjMtOC4yLTcuNwoJCQljLTItMy40LTMuMS03LjMtMy4xLTExLjhjMC00LjUsMS04LjQsMy4xLTExLjhjMi0zLjMsNC44LTUuOSw4LjItNy42YzMuNC0xLjcsNy4yLTIuNiwxMS4zLTIuNmMzLjMsMCw2LjQsMC42LDkuMiwxLjgKCQkJYzIuOCwxLjIsNS4xLDMsNyw1LjJjMS44LDIuMywzLDUsMy41LDguMWgtMTAuNmMtMC42LTIuMS0xLjgtMy43LTMuNC00LjdjLTEuNi0xLTMuNS0xLjYtNS43LTEuNmMtMi4zLDAtNC4yLDAuNi01LjksMS43CgkJCWMtMS43LDEuMi0zLDIuNy0zLjksNC44Yy0wLjksMi0xLjQsNC4zLTEuNCw2LjdjMCwyLjUsMC41LDQuNywxLjQsNi43YzAuOSwyLDIuMiwzLjYsMy45LDQuOGMxLjcsMS4yLDMuNywxLjcsNS45LDEuNwoJCQljMi4zLDAsNC4yLTAuNiw1LjktMS43YzEuNy0xLjEsMi44LTIuOCwzLjQtNS4xSDM5NUMzOTQuNCwxMDEuNiwzOTMuMiwxMDQuNSwzOTEuNCwxMDYuOCIvPgoJCTxwYXRoIGQ9Ik00MzEuNCw4Ny43Yy0wLjMtMi42LTEuMy00LjktMy02LjdjLTEuNy0xLjgtNC0yLjctNy0yLjdjLTIuOCwwLTUuMiwwLjktNy4xLDIuNmMtMS45LDEuNy0zLjEsNC0zLjUsNi44SDQzMS40egoJCQkgTTQ0Mi4yLDk1LjFoLTMxLjZjMC4zLDIsMC45LDMuNywxLjksNS4yYzEsMS41LDIuMiwyLjcsMy43LDMuNWMxLjUsMC44LDMuMiwxLjIsNS4xLDEuMmMyLDAsMy44LTAuNCw1LjQtMS4xCgkJCWMxLjYtMC44LDIuNy0xLjksMy41LTMuNGgxMS40Yy0wLjksMi43LTIuMiw1LjEtNC4xLDcuMmMtMS45LDItNC4yLDMuNi03LDQuOGMtMi44LDEuMS01LjgsMS43LTkuMiwxLjdjLTQuMiwwLTcuOS0wLjktMTEuMi0yLjgKCQkJYy0zLjMtMS45LTUuOC00LjUtNy43LTcuOWMtMS44LTMuNC0yLjctNy4zLTIuNy0xMS42YzAtNC4yLDAuOS04LDIuOC0xMS4zYzEuOS0zLjQsNC41LTYsNy44LTcuOWMzLjMtMS45LDctMi45LDExLjItMi45CgkJCWM0LjUsMCw4LjIsMSwxMS40LDNjMy4xLDIsNS40LDQuOCw3LDguMmMxLjYsMy41LDIuNCw3LjQsMi40LDExLjhDNDQyLjMsOTMuNyw0NDIuMyw5NC41LDQ0Mi4yLDk1LjEiLz4KCQk8cGF0aCBkPSJNMjQzLjMsMTgxLjljLTIuMywyLjctNS4yLDQuOC04LjgsNi40Yy0zLjYsMS42LTcuNywyLjQtMTIuMiwyLjRjLTYuMSwwLTExLjMtMS4zLTE1LjctNGMtNC40LTIuNy03LjgtNi4yLTEwLjEtMTAuOAoJCQljLTIuMy00LjUtMy41LTkuNS0zLjUtMTVjMC01LjUsMS4yLTEwLjUsMy41LTE1YzIuMy00LjUsNS43LTguMSwxMC4xLTEwLjhjNC40LTIuNyw5LjYtNCwxNS43LTRjNi43LDAsMTIuMiwxLjYsMTYuNCw0LjgKCQkJYzQuMiwzLjIsNy4zLDcuNCw5LjEsMTIuOGgtNi44Yy0xLjYtMy44LTMuOS02LjctNi45LTguOGMtMy0yLTYuOS0zLjEtMTEuOC0zLjFjLTQuOCwwLTguOSwxLjEtMTIuMiwzLjMKCQkJYy0zLjQsMi4yLTUuOSw1LjEtNy43LDguOGMtMS43LDMuNy0yLjYsNy42LTIuNiwxMS45YzAsNC4zLDAuOCw4LjMsMi41LDExLjljMS43LDMuNyw0LjIsNi42LDcuNiw4LjhjMy40LDIuMiw3LjUsMy4zLDEyLjMsMy4zCgkJCWM0LjksMCw4LjktMS4xLDEyLjEtMy4zYzMuMi0yLjIsNS40LTUuMSw2LjYtOC43aDYuOEMyNDcuMSwxNzYuMiwyNDUuNSwxNzkuMiwyNDMuMywxODEuOSIvPgoJCTxwYXRoIGQ9Ik0yODIuNywxODIuOWMyLjEtMS41LDMuOC0zLjQsNS01LjljMS4yLTIuNSwxLjgtNS4yLDEuOC04LjFjMC0zLTAuNi01LjctMS44LTguMmMtMS4yLTIuNS0yLjktNC40LTUtNS45CgkJCWMtMi4xLTEuNC00LjYtMi4yLTcuNC0yLjJjLTIuNywwLTUuMiwwLjctNy40LDIuMmMtMi4yLDEuNS0zLjksMy40LTUsNS45Yy0xLjIsMi41LTEuOCw1LjItMS44LDguMmMwLDMsMC42LDUuNywxLjgsOC4xCgkJCWMxLjIsMi41LDIuOSw0LjQsNSw1LjljMi4yLDEuNCw0LjYsMi4yLDcuNCwyLjJDMjc4LDE4NS4xLDI4MC41LDE4NC40LDI4Mi43LDE4Mi45IE0yNjQuNCwxODcuN2MtMy4xLTEuOS01LjUtNC41LTcuMi03LjgKCQkJYy0xLjctMy4zLTIuNS02LjktMi41LTExYzAtNCwwLjgtNy43LDIuNS0xMWMxLjctMy4zLDQuMS01LjksNy4yLTcuOGMzLjEtMS45LDYuNy0yLjksMTAuOS0yLjljNC4xLDAsNy44LDEsMTAuOSwyLjkKCQkJYzMuMSwxLjksNS42LDQuNSw3LjMsNy44YzEuNywzLjMsMi41LDcsMi41LDExYzAsNC0wLjgsNy43LTIuNSwxMWMtMS43LDMuMy00LjEsNS45LTcuMyw3LjhjLTMuMSwxLjktNi44LDIuOS0xMC45LDIuOQoJCQlDMjcxLjEsMTkwLjUsMjY3LjUsMTg5LjYsMjY0LjQsMTg3LjciLz4KCTwvZz4KCTxyZWN0IHg9IjMwMy44IiB5PSIxMzIuMiIgd2lkdGg9IjYuNCIgaGVpZ2h0PSI1Ny41Ii8+Cgk8cmVjdCB4PSIzMjAuOCIgeT0iMTMyLjIiIHdpZHRoPSI2LjQiIGhlaWdodD0iNTcuNSIvPgoJPGc+CgkJPHBhdGggZD0iTTM0OC4zLDE1NC4xYy0yLDEuMS0zLjUsMi42LTQuNyw0LjZjLTEuMiwyLTEuOSw0LjItMi4zLDYuOGgyNi41Yy0wLjQtNC4xLTEuNi03LjMtMy43LTkuNmMtMi4xLTIuMy01LjEtMy41LTktMy41CgkJCUMzNTIuNiwxNTIuNSwzNTAuMywxNTMsMzQ4LjMsMTU0LjEgTTM2My4xLDE4My4yYzIuMS0xLjMsMy42LTMuMyw0LjQtNS45aDYuNGMtMS4yLDQuMi0zLjQsNy41LTYuNiw5LjgKCQkJYy0zLjIsMi4zLTcuMiwzLjQtMTEuOCwzLjRjLTQuMSwwLTcuNy0wLjktMTAuNy0yLjhjLTMuMS0xLjktNS40LTQuNC03LjEtNy43Yy0xLjctMy4zLTIuNS03LTIuNS0xMS4yYzAtNC4xLDAuOC03LjgsMi41LTExCgkJCWMxLjctMy4zLDQuMS01LjgsNy4xLTcuN2MzLTEuOSw2LjUtMi44LDEwLjQtMi44YzQuNSwwLDguMSwxLDEwLjksMy4xYzIuOCwyLDQuOSw0LjcsNi4yLDhjMS4zLDMuMywyLDYuOSwyLjEsMTAuOGwwLjEsMS42aC0zMy4xCgkJCWMwLjIsMywwLjgsNS41LDIuMSw3LjdjMS4yLDIuMiwyLjgsMy45LDQuOSw1YzIsMS4yLDQuNCwxLjcsNywxLjdDMzU4LjMsMTg1LjIsMzYwLjksMTg0LjUsMzYzLjEsMTgzLjIiLz4KCQk8cGF0aCBkPSJNNDEzLDE4Ny4xYy0zLjEsMi4zLTcsMy41LTExLjksMy41Yy00LjIsMC03LjktMC45LTExLjEtMi44Yy0zLjItMS45LTUuNy00LjUtNy40LTcuN2MtMS43LTMuMy0yLjYtNy0yLjYtMTEKCQkJYzAtNC4xLDAuOS03LjgsMi42LTExLjFjMS43LTMuMyw0LjItNS45LDcuNC03LjhjMy4yLTEuOSw2LjktMi44LDExLjEtMi44YzQuOSwwLDguOSwxLjIsMTEuOSwzLjVjMy4xLDIuNCw1LjEsNS41LDYsOS40aC02LjUKCQkJYy0wLjktMi4zLTIuMy00LjItNC4xLTUuNmMtMS45LTEuNC00LjMtMi4xLTcuNS0yLjFjLTIuOCwwLTUuNCwwLjctNy42LDIuMmMtMi4yLDEuNC0zLjksMy40LTUuMSw1LjljLTEuMiwyLjUtMS44LDUuMy0xLjgsOC4zCgkJCXMwLjYsNS44LDEuOCw4LjNjMS4yLDIuNSwyLjksNC40LDUuMSw1LjhjMi4yLDEuNCw0LjcsMi4xLDcuNiwyLjFjNiwwLDkuOS0yLjcsMTEuOC04aDYuNUM0MTguMiwxODEuNSw0MTYuMSwxODQuNyw0MTMsMTg3LjEiLz4KCQk8cGF0aCBkPSJNNDQzLjgsMTg0LjR2NS4zaC0zLjVjLTMuNywwLTYuNS0wLjktOC4zLTIuOGMtMS44LTEuOS0yLjctNC40LTIuNy03Ljd2LTI1LjloLTYuM3YtNS4zaDYuM3YtOS44bDYuMy0yLjl2MTIuN2g4djUuM2gtOAoJCQl2MjUuNWMwLDEuOCwwLjUsMy4xLDEuNCw0LjFjMC45LDAuOSwyLjIsMS40LDMuOCwxLjRINDQzLjh6Ii8+Cgk8L2c+Cgk8cGF0aCBkPSJNNDUxLjYsMTMyLjJoNi45djguMWgtNi45VjEzMi4yeiBNNDUxLjUsMTQ4LjFoNi40djQxLjZoLTYuNFYxNDguMXoiLz4KCTxnPgoJCTxwYXRoIGQ9Ik00OTQuNCwxODIuOWMyLjEtMS41LDMuOC0zLjQsNS01LjljMS4yLTIuNSwxLjgtNS4yLDEuOC04LjFjMC0zLTAuNi01LjctMS44LTguMmMtMS4yLTIuNS0yLjktNC40LTUtNS45CgkJCWMtMi4xLTEuNC00LjYtMi4yLTcuNC0yLjJjLTIuNywwLTUuMiwwLjctNy40LDIuMmMtMi4yLDEuNS0zLjksMy40LTUsNS45Yy0xLjIsMi41LTEuOCw1LjItMS44LDguMmMwLDMsMC42LDUuNywxLjgsOC4xCgkJCWMxLjIsMi41LDIuOSw0LjQsNSw1LjljMi4yLDEuNCw0LjYsMi4yLDcuNCwyLjJDNDg5LjcsMTg1LjEsNDkyLjIsMTg0LjQsNDk0LjQsMTgyLjkgTTQ3Ni4xLDE4Ny43Yy0zLjEtMS45LTUuNS00LjUtNy4yLTcuOAoJCQljLTEuNy0zLjMtMi41LTYuOS0yLjUtMTFjMC00LDAuOC03LjcsMi41LTExYzEuNy0zLjMsNC4xLTUuOSw3LjItNy44YzMuMS0xLjksNi43LTIuOSwxMC45LTIuOWM0LjEsMCw3LjgsMSwxMC45LDIuOQoJCQljMy4xLDEuOSw1LjYsNC41LDcuMyw3LjhjMS43LDMuMywyLjUsNywyLjUsMTFjMCw0LTAuOCw3LjctMi41LDExYy0xLjcsMy4zLTQuMSw1LjktNy4zLDcuOGMtMy4xLDEuOS02LjgsMi45LTEwLjksMi45CgkJCUM0ODIuOCwxOTAuNSw0NzkuMiwxODkuNiw0NzYuMSwxODcuNyIvPgoJCTxwYXRoIGQ9Ik01MjIsMTQ4LjF2Ny44YzEuMi0yLjYsMi44LTQuNyw0LjktNi4yYzIuMS0xLjYsNC43LTIuNCw3LjctMi40YzUsMCw4LjgsMS40LDExLjMsNC4yYzIuNSwyLjgsMy44LDYuNiwzLjgsMTEuNXYyNi43CgkJCWgtNi40di0yNi4yYzAtMy44LTAuOC02LjYtMi40LTguM2MtMS42LTEuNy0zLjktMi42LTYuOS0yLjZjLTIuMSwwLTQuMSwwLjYtNS45LDEuN2MtMS44LDEuMi0zLjIsMy00LjQsNS40CgkJCWMtMS4xLDIuNC0xLjcsNS41LTEuNyw5LjF2MjAuOGgtNi40di00MS42SDUyMnoiLz4KCTwvZz4KCTxwb2x5Z29uIHBvaW50cz0iMTk2LjEsMjA5LjIgMjA3LjMsMjA5LjMgMjI0LjMsMjU4LjcgMjI0LjQsMjU4LjcgMjQxLjMsMjA5LjIgMjUyLjYsMjA5LjIgMjUyLjYsMjY2LjcgMjQ1LjgsMjY2LjcgMjQ1LjgsMjE2LjggCgkJMjQ1LjcsMjE2LjggMjI4LjMsMjY2LjcgMjIwLjUsMjY2LjcgMjAzLDIxNi44IDIwMi44LDIxNi44IDIwMi44LDI2Ni43IDE5Ni4xLDI2Ni43IAkiLz4KCTxnPgoJCTxwYXRoIGQ9Ik0yODMuOSwyNjAuN2MyLTEuMSwzLjYtMi44LDQuOC01YzEuMi0yLjIsMS44LTUsMS44LTguM3YtNmMtMC41LDEuNS0xLjcsMi44LTMuNSwzLjhjLTEuOCwxLTQuNywxLjktOC43LDIuNQoJCQljLTMuNCwwLjYtNiwxLjUtNy44LDIuN2MtMS43LDEuMi0yLjYsMi44LTIuNiw0LjljMCwxLjQsMC40LDIuNiwxLjIsMy43YzAuOCwxLDEuOSwxLjksMy4zLDIuNWMxLjQsMC42LDMsMC45LDQuOSwwLjkKCQkJQzI3OS43LDI2Mi40LDI4MS45LDI2MS44LDI4My45LDI2MC43IE0yOTAuNSwyNjAuNXYtMS44aC0wLjFjLTAuOCwyLjMtMi4zLDQuNC00LjYsNi4yYy0yLjIsMS44LTUuNCwyLjctOS41LDIuNwoJCQljLTMuMiwwLTUuOS0wLjYtOC4xLTEuN2MtMi4yLTEuMi0zLjktMi43LTUtNC42Yy0xLjEtMS45LTEuNy0zLjktMS43LTZjMC0zLDAuOS01LjQsMi44LTcuMWMxLjktMS43LDQuMS0zLDYuNS0zLjcKCQkJYzIuNS0wLjcsNS40LTEuNCw4LjktMS45bDEuOS0wLjNjMi4xLTAuNCwzLjgtMC44LDUtMS4zYzEuMi0wLjUsMi4xLTEuMSwyLjctMS45YzAuNi0wLjgsMC45LTEuNywwLjktMi45YzAtMi4xLTAuOS0zLjctMi43LTQuOQoJCQljLTEuOC0xLjItNC4yLTEuOC03LjMtMS44Yy0yLjYsMC00LjksMC43LTYuNywyLjFjLTEuOSwxLjQtMywzLjQtMy42LDUuOGgtNi40YzAuNC0yLjIsMS4yLTQuMywyLjUtNi40YzEuMy0yLDMuMi0zLjcsNS41LTUKCQkJYzIuNC0xLjMsNS4yLTIsOC41LTJjMTEsMCwxNi40LDUuMiwxNi40LDE1LjV2MTguNWMwLDIuOCwwLjIsNS42LDAuNiw4LjVoLTYuOEMyOTAuNSwyNjUuMywyOTAuNSwyNjMuMywyOTAuNSwyNjAuNSIvPgoJCTxwYXRoIGQ9Ik0zMTMuNiwyMjUuMXY3LjhjMS4yLTIuNiwyLjgtNC43LDQuOS02LjJjMi4xLTEuNiw0LjctMi40LDcuNy0yLjRjNSwwLDguOCwxLjQsMTEuMyw0LjJjMi41LDIuOCwzLjgsNi42LDMuOCwxMS41djI2LjcKCQkJaC02LjR2LTI2LjJjMC0zLjgtMC44LTYuNi0yLjQtOC4zYy0xLjYtMS43LTMuOS0yLjYtNi45LTIuNmMtMi4xLDAtNC4xLDAuNi01LjksMS43Yy0xLjgsMS4yLTMuMiwzLTQuNCw1LjQKCQkJYy0xLjEsMi40LTEuNyw1LjUtMS43LDkuMXYyMC44aC02LjR2LTQxLjZIMzEzLjZ6Ii8+CgkJPHBhdGggZD0iTTM3MS42LDI2MC43YzItMS4xLDMuNi0yLjgsNC44LTVjMS4yLTIuMiwxLjgtNSwxLjgtOC4zdi02Yy0wLjUsMS41LTEuNywyLjgtMy41LDMuOGMtMS44LDEtNC43LDEuOS04LjcsMi41CgkJCWMtMy40LDAuNi02LDEuNS03LjgsMi43Yy0xLjcsMS4yLTIuNiwyLjgtMi42LDQuOWMwLDEuNCwwLjQsMi42LDEuMiwzLjdjMC44LDEsMS45LDEuOSwzLjMsMi41czMsMC45LDQuOSwwLjkKCQkJQzM2Ny40LDI2Mi40LDM2OS42LDI2MS44LDM3MS42LDI2MC43IE0zNzguMiwyNjAuNXYtMS44aC0wLjFjLTAuOCwyLjMtMi4zLDQuNC00LjYsNi4yYy0yLjIsMS44LTUuNCwyLjctOS41LDIuNwoJCQljLTMuMiwwLTUuOS0wLjYtOC4xLTEuN2MtMi4yLTEuMi0zLjktMi43LTUtNC42Yy0xLjEtMS45LTEuNy0zLjktMS43LTZjMC0zLDAuOS01LjQsMi44LTcuMWMxLjktMS43LDQuMS0zLDYuNS0zLjcKCQkJYzIuNS0wLjcsNS40LTEuNCw4LjktMS45bDEuOS0wLjNjMi4xLTAuNCwzLjgtMC44LDUtMS4zYzEuMi0wLjUsMi4xLTEuMSwyLjctMS45YzAuNi0wLjgsMC45LTEuNywwLjktMi45YzAtMi4xLTAuOS0zLjctMi43LTQuOQoJCQljLTEuOC0xLjItNC4yLTEuOC03LjMtMS44Yy0yLjYsMC00LjksMC43LTYuNywyLjFjLTEuOSwxLjQtMywzLjQtMy42LDUuOGgtNi40YzAuNC0yLjIsMS4yLTQuMywyLjUtNi40YzEuMy0yLDMuMi0zLjcsNS41LTUKCQkJYzIuNC0xLjMsNS4yLTIsOC41LTJjMTEsMCwxNi40LDUuMiwxNi40LDE1LjV2MTguNWMwLDIuOCwwLjIsNS42LDAuNiw4LjVoLTYuOEMzNzguMiwyNjUuMywzNzguMiwyNjMuMywzNzguMiwyNjAuNSIvPgoJCTxwYXRoIGQ9Ik00MDAuMywyNTRjMSwyLjUsMi41LDQuNCw0LjYsNS45YzIsMS40LDQuNiwyLjIsNy42LDIuMmMzLjIsMCw1LjktMC44LDcuOS0yLjVjMi4xLTEuNiwzLjUtMy43LDQuNC02LjIKCQkJYzAuOS0yLjUsMS4zLTUsMS4zLTcuNmMwLTIuNi0wLjUtNS4xLTEuNi03LjZjLTEtMi41LTIuNi00LjYtNC43LTYuMmMtMi4xLTEuNi00LjYtMi40LTcuNC0yLjRjLTIuOSwwLTUuNCwwLjctNy41LDIuMgoJCQljLTIuMSwxLjUtMy42LDMuNC00LjcsNS45Yy0xLDIuNC0xLjYsNS4xLTEuNiw4LjFDMzk4LjcsMjQ4LjgsMzk5LjIsMjUxLjUsNDAwLjMsMjU0IE00MzIuMiwyNjMuOWMwLDMuOC0wLjgsNy4xLTIuNSwxMAoJCQljLTEuNiwyLjgtMy45LDUtNi44LDYuNmMtMi45LDEuNS02LjEsMi4zLTkuNywyLjNjLTMuNCwwLTYuNS0wLjYtOS4zLTEuN2MtMi43LTEuMS01LTIuOC02LjYtNC45Yy0xLjctMi4xLTIuNy00LjYtMy03LjVoNi41CgkJCWMwLjQsMywxLjcsNS4xLDMuOCw2LjVjMi4xLDEuNCw1LDIuMSw4LjYsMi4xYzMuOSwwLDYuOS0xLjEsOS4yLTMuNGMyLjMtMi4zLDMuNC01LjYsMy40LTEwLjJ2LTUuNGgtMC4xYy0xLjEsMi44LTIuOCw1LjEtNSw2LjcKCQkJYy0yLjMsMS42LTUuNCwyLjUtOS4yLDIuNWMtMy45LDAtNy4zLTEtMTAuMi0yLjljLTIuOS0xLjktNS4xLTQuNS02LjYtNy44Yy0xLjUtMy4zLTIuMy03LTIuMy0xMWMwLTQuMSwwLjgtNy44LDIuMy0xMQoJCQljMS41LTMuMywzLjctNS45LDYuNi03LjdjMi45LTEuOSw2LjMtMi44LDEwLjItMi44YzMuOCwwLDYuOCwwLjgsOS4yLDIuNWMyLjQsMS43LDQuMSwzLjcsNSw2LjJoMC4xdi03LjloNi40VjI2My45eiIvPgoJCTxwYXRoIGQ9Ik00NTMuNCwyMzEuMWMtMiwxLjEtMy41LDIuNi00LjcsNC42Yy0xLjIsMi0xLjksNC4yLTIuMyw2LjhoMjYuNWMtMC40LTQuMS0xLjYtNy4zLTMuNy05LjZjLTIuMS0yLjMtNS4xLTMuNS05LTMuNQoJCQlDNDU3LjYsMjI5LjUsNDU1LjQsMjMwLDQ1My40LDIzMS4xIE00NjguMSwyNjAuMmMyLjEtMS4zLDMuNi0zLjMsNC40LTUuOWg2LjRjLTEuMiw0LjItMy40LDcuNS02LjYsOS44CgkJCWMtMy4yLDIuMy03LjIsMy40LTExLjgsMy40Yy00LjEsMC03LjctMC45LTEwLjctMi44Yy0zLjEtMS45LTUuNC00LjQtNy4xLTcuN2MtMS43LTMuMy0yLjUtNy0yLjUtMTEuMmMwLTQuMSwwLjgtNy44LDIuNS0xMQoJCQljMS43LTMuMyw0LjEtNS44LDcuMS03LjdjMy0xLjksNi41LTIuOCwxMC40LTIuOGM0LjUsMCw4LjEsMSwxMC45LDMuMWMyLjgsMiw0LjksNC43LDYuMiw4YzEuMywzLjMsMiw2LjksMi4xLDEwLjhsMC4xLDEuNmgtMzMuMQoJCQljMC4yLDMsMC44LDUuNSwyLjEsNy43YzEuMiwyLjIsMi44LDMuOSw0LjksNXM0LjQsMS43LDcsMS43QzQ2My4zLDI2Mi4yLDQ2NS45LDI2MS41LDQ2OC4xLDI2MC4yIi8+CgkJPHBhdGggZD0iTTQ5OC43LDIyN2MyLjEtMS40LDQuNy0yLjEsOC0yLjF2NmMtMC41LDAtMS4xLDAuMS0xLjgsMC4yYy0wLjcsMC4xLTEuMywwLjItMS45LDAuNGMtMS44LDAuNS0zLjMsMS4yLTQuNiwyLjIKCQkJYy0xLjMsMS0yLjMsMi41LTMuMSw0LjZjLTAuOCwyLjEtMS4yLDQuOC0xLjIsOC4zdjIwLjFoLTYuNHYtNDEuNmg2LjR2OC4zQzQ5NS4xLDIzMC41LDQ5Ni42LDIyOC4zLDQ5OC43LDIyNyIvPgoJPC9nPgo8L2c+Cjwvc3ZnPgo="},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(536);t.default=function(e,t){var r=[];if(e&&e.raw&&e.raw["simplified:breadcrumbs"]&&e.raw["simplified:breadcrumbs"][0]&&e.raw["simplified:breadcrumbs"][0].link){var a=e.raw["simplified:breadcrumbs"][0].link;r=a.map((function(e){return{url:e["$"].href.value,text:e["$"].title.value}}));r.push({url:e.url,text:e.title})}else{r=n.hierarchyComputeBreadcrumbs(e,t)}return r}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(1130);var o=r(537);var s=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e=a.Children.only(this.props.children);var t=JSON.parse(JSON.stringify(e.props.collection));var r=t&&t.facetGroups?t.facetGroups:[];var n=Object.assign({},e.props);var s=[];if(r&&r.length){var u;r.forEach((function(e,t){if(e.label==="Formats"){u=t;s=e.facets.slice()}}));if(u!==undefined){r.splice(u,1)}}t.facetGroups=r;n.collection=t;n.showCirculationLinks=false;var l=a.createElement(o.default,n);return a.createElement("div",{className:"entry-points-tab-container"},a.createElement(i.default,{facets:s}),l)};return t}(a.Component);t.default=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(65);var o=r(0);var s=r(127);var u=function(e){n(t,e);function t(t){return e.call(this,t)||this}t.prototype.render=function(){var e=this.props.facets?this.props.facets:[];if(!e.length){return null}var t={All:"http://schema.org/CreativeWork",eBooks:"http://schema.org/EBook",Audiobooks:"http://bib.schema.org/Audiobook"};var r={"http://bib.schema.org/Audiobook":a.createElement(s.AudioHeadphoneIcon,{ariaHidden:true,title:"Audio Headphones Icon"}),"http://schema.org/EBook":a.createElement(s.BookIcon,{ariaHidden:true,title:"Book Icon"}),"http://schema.org/CreativeWork":null};return a.createElement("ul",{className:"nav nav-tabs entry-points-list"},e.map((function(e){var n=e.label;var o=t[n];var s=e.active?"active":"";var u=e.href;var l=r[o]?r[o]:null;var c=!l?"no-svg":"";return a.createElement("li",{key:n,role:"presentation",className:s+" "+c},a.createElement(i.default,{collectionUrl:u,bookUrl:null},l,n))})))};t.contextTypes={router:o.object.isRequired,pathFor:o.func.isRequired};return t}(a.Component);t.EntryPointsTabs=u;t.default=u},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(76);var o=r(77);var s=r(91);var u=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return a.createElement("div",{className:"welcome-page"},a.createElement(i.default,null),a.createElement(s.Jumbotron,null,a.createElement("h2",null,"Welcome to the Circulation Admin Interface!"),a.createElement("hr",null),a.createElement("p",null,"You don't have any libraries yet. To get started, go to the System Configuration section and",a.createElement("a",{href:"/admin/web/config/libraries/create"}," ","create a new library"),".")),a.createElement(o.default,null))};return t}(a.Component);t.default=u},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(0);var o=r(76);var s=r(77);var u=r(1133);var l=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.getChildContext=function(){var e=this;return{library:function(){return e.props.params.library}}};t.prototype.render=function(){var e;if(this.props.location&&this.props.location.state){e=this.props.location.state.bookTitle}return a.createElement("div",{className:"custom-list-page"},a.createElement(o.default,null),a.createElement(u.default,{library:this.props.params.library,editOrCreate:this.props.params.editOrCreate,identifier:this.props.params.identifier,store:this.context.editorStore,csrfToken:this.context.csrfToken,startingTitle:e}),a.createElement(s.default,null))};t.contextTypes={editorStore:i.object.isRequired,csrfToken:i.string.isRequired};t.childContextTypes={library:i.func};return t}(a.Component);t.default=l},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var a=this&&this.__assign||function(){a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return a.apply(this,arguments)};var i=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n["throw"](e))}catch(e){i(e)}}function u(e){e.done?r(e.value):a(e.value).then(o,s)}u((n=n.apply(e,t||[])).next())}))};var o=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};Object.defineProperty(t,"__esModule",{value:true});var s=r(1);var u=r(14);var l=r(0);var c=r(8);var f=r(41);var d=r(178);var p=r(1134);var h=r(66);var v=r(32);var m=r(1226);var y=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.saveCustomListEditor=r.saveCustomListEditor.bind(r);r.deleteCustomList=r.deleteCustomList.bind(r);r.changeFilter=r.changeFilter.bind(r);r.changeSort=r.changeSort.bind(r);r.getEnabledEntryPoints=r.getEnabledEntryPoints.bind(r);r.state={filter:"owned",sort:"asc"};return r}t.prototype.render=function(){return s.createElement("main",{className:"custom-lists-container"},this.props.fetchError&&s.createElement(v.default,{error:this.props.fetchError}),this.props.isFetching&&s.createElement(h.default,null),s.createElement("div",{className:"custom-lists"},this.renderSidebar(),this.props.editOrCreate&&this.renderEditor()))};t.prototype.renderSidebar=function(){return s.createElement(m.default,{lists:this.filteredSortedLists(),library:this.props.library,identifier:this.props.identifier,isLibraryManager:this.context.admin.isLibraryManager(this.props.library),deleteCustomList:this.deleteCustomList,changeSort:this.changeSort,sortOrder:this.state.sort,changeFilter:this.changeFilter,filter:this.state.filter})};t.prototype.renderEditor=function(){var e=this;var t,r,n;var i={collections:this.collectionsForLibrary(),autoUpdateStatus:this.props.customListEditorAutoUpdateStatus,isAutoUpdateEnabled:this.props.customListEditorIsAutoUpdateEnabled,properties:this.props.customListEditorProperties,savedName:this.props.customListEditorSavedName,searchParams:this.props.customListEditorSearchParams,isLoaded:this.props.customListEditorIsLoaded,isValid:this.props.customListEditorIsValid,isModified:this.props.customListEditorIsModified,isSearchModified:this.props.customListEditorIsSearchModified,isOwner:this.props.customListEditorIsOwner,isShared:this.props.customListEditorIsShared,isSharePending:this.props.customListEditorIsSharePending,entries:this.props.customListEditorEntries,save:this.saveCustomListEditor,reset:this.props.resetCustomListEditor,entryPoints:this.getEnabledEntryPoints(this.props.libraries),isFetchingMoreCustomListEntries:this.props.isFetchingMoreCustomListEntries,isFetchingSearchResults:this.props.isFetchingSearchResults,isFetchingMoreSearchResults:this.props.isFetchingMoreSearchResults,languages:this.props.languages,library:(t=this.props.libraries)===null||t===void 0?void 0:t.find((function(t){return t.short_name===e.props.library})),loadMoreEntries:((r=this.props.listDetails)===null||r===void 0?void 0:r.nextPageUrl)&&this.props.loadMoreEntries,loadMoreSearchResults:((n=this.props.searchResults)===null||n===void 0?void 0:n.nextPageUrl)&&this.props.loadMoreSearchResults,search:this.props.executeCustomListEditorSearch,searchResults:this.props.searchResults,updateProperty:this.props.updateCustomListEditorProperty,toggleCollection:this.props.toggleCustomListEditorCollection,updateSearchParam:this.props.updateCustomListEditorSearchParam,addAdvSearchQuery:this.props.addCustomListEditorAdvSearchQuery,updateAdvSearchQueryBoolean:this.props.updateCustomListEditorAdvSearchQueryBoolean,moveAdvSearchQuery:this.props.moveCustomListEditorAdvSearchQuery,removeAdvSearchQuery:this.props.removeCustomListEditorAdvSearchQuery,selectAdvSearchQuery:this.props.selectCustomListEditorAdvSearchQuery,addEntry:this.props.addCustomListEditorEntry,addAllEntries:this.props.addAllCustomListEditorEntries,deleteEntry:this.props.deleteCustomListEditorEntry,deleteAllEntries:this.props.deleteAllCustomListEditorEntries,share:function(){var t,r;return(r=(t=e.props).shareCustomList)===null||r===void 0?void 0:r.call(t,e.props.identifier)}};var o=this.props.editOrCreate==="create"?{startingTitle:this.props.startingTitle}:{listId:this.props.identifier};return s.createElement(p.default,a({},a(a({},i),o)))};t.prototype.UNSAFE_componentWillMount=function(){var e,t,r,n,a,i;var o=this.props,s=o.editOrCreate,u=o.fetchCollections,l=o.fetchCustomListDetails,c=o.fetchCustomLists,f=o.fetchLibraries,d=o.fetchLanguages,p=o.identifier,h=o.openCustomListEditor;(e=c)===null||e===void 0?void 0:e();(t=h)===null||t===void 0?void 0:t(p);if(s==="edit"){(r=l)===null||r===void 0?void 0:r(p)}(n=u)===null||n===void 0?void 0:n();(a=f)===null||a===void 0?void 0:a();(i=d)===null||i===void 0?void 0:i()};t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t,r;var n=e.editOrCreate,a=e.fetchError,i=e.lists;if(!n&&i&&!a){var o=this.filteredSortedLists(i);if(o.length===0){window.location.href+="/create"}else{var s=o[0];window.location.href+="/edit/"+s.id}}var u=e.identifier,l=e.fetchCustomListDetails,c=e.openCustomListEditor;if(u!==this.props.identifier){(t=c)===null||t===void 0?void 0:t(u);if(u){(r=l)===null||r===void 0?void 0:r(u)}}};t.prototype.changeFilter=function(e){this.setState({filter:e})};t.prototype.changeSort=function(e){this.setState({sort:e})};t.prototype.filterLists=function(e){var t=this.state.filter;var r=null;if(t==="owned"){r=function(e){return e.is_owner}}else if(t==="shared-in"){r=function(e){return!e.is_owner}}else if(t==="shared-out"){r=function(e){return e.is_owner&&e.is_shared}}return r?e.filter(r):e};t.prototype.filteredSortedLists=function(e){var t=this;e=e||this.props.lists||[];return this.filterLists(e).sort((function(e,r){var n=e;var a=r;if(t.state.sort==="desc"){n=r;a=e}if(n.name<a.name){return-1}else if(n.name===a.name){return 0}else{return 1}}))};t.prototype.getEnabledEntryPoints=function(e){var t=this;if(!e){return[]}var r;e.forEach((function(e){if(e.short_name===t.props.library){r=e}}));return r.settings.enabled_entry_points||[]};t.prototype.saveCustomListEditor=function(){return i(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:e=this.props.identifier;return[4,this.props.saveCustomListEditor()];case 1:t.sent();this.props.fetchCustomLists();if(e){this.props.fetchCustomListDetails(e)}return[2]}}))}))};t.prototype.deleteCustomList=function(e){return i(this,void 0,void 0,(function(){var t,r,n;return o(this,(function(a){switch(a.label){case 0:return[4,this.getDeletedLanes(e.id)];case 1:t=a.sent();r="";if(t&&t.length){r=this.deletedLaneNames(t)}n='Delete list "'+e.name+'"? '+r;if(!window.confirm(n))return[3,3];return[4,this.props.deleteCustomList(String(e.id))];case 2:a.sent();this.props.fetchCustomLists();a.label=3;case 3:return[2]}}))}))};t.prototype.getDeletedLanes=function(e){return i(this,void 0,void 0,(function(){var t,r;return o(this,(function(n){switch(n.label){case 0:t=[];r=this.props.lanes;if(!!r)return[3,2];return[4,this.props.fetchLanes()];case 1:n.sent();r=this.props.lanes;n.label=2;case 2:if(r&&r.length){r.forEach((function(r){var n=r.custom_list_ids;if(n.length===1&&n[0]===e){t.push(r)}}))}return[2,t]}}))}))};t.prototype.deletedLaneNames=function(e){var t="Deleting this list will delete the following lanes:\n";e.forEach((function(e){return t+="\nLane name: "+e.display_name}));return t};t.prototype.collectionsForLibrary=function(){var e=[];for(var t=0,r=this.props.collections||[];t<r.length;t++){var n=r[t];for(var a=0,i=n.libraries||[];a<i.length;a++){var o=i[a];if(o.short_name===this.props.library){e.push(n);break}}}return e};t.contextTypes={admin:l.object.isRequired};return t}(s.Component);t.CustomLists=y;function g(e,t){var r,n;return{customListEditorProperties:e.editor.customListEditor.properties.current,customListEditorSavedName:e.editor.customListEditor.properties.baseline.name,customListEditorSearchParams:e.editor.customListEditor.searchParams.current,customListEditorEntries:e.editor.customListEditor.entries,customListEditorAutoUpdateStatus:e.editor.customListEditor.autoUpdateStatus,customListEditorIsLoaded:e.editor.customListEditor.isLoaded,customListEditorIsOwner:e.editor.customListEditor.isOwner,customListEditorIsShared:e.editor.customListEditor.isShared,customListEditorIsSharePending:e.editor.customListEditor.isSharePending,customListEditorIsValid:e.editor.customListEditor.isValid,customListEditorIsModified:e.editor.customListEditor.isModified,customListEditorIsSearchModified:e.editor.customListEditor.isSearchModified,customListEditorIsAutoUpdateEnabled:e.editor.customListEditor.isAutoUpdateEnabled,lists:e.editor.customLists&&e.editor.customLists.data&&e.editor.customLists.data.custom_lists,listDetails:e.editor.customListDetails&&e.editor.customListDetails.data,isFetchingMoreCustomListEntries:e.editor.customListDetails&&e.editor.customListDetails.isFetchingMoreEntries,fetchError:e.editor.customLists.fetchError||e.editor.collections.fetchError,isFetching:e.editor.customLists.isFetching||e.editor.customLists.isEditing||e.editor.customListDetails.isFetching||e.editor.customListDetails.isEditing||!t.editOrCreate||e.editor.collections.isFetching,searchResults:e.editor.collection&&e.editor.collection.data,isFetchingSearchResults:(r=e.editor.collection)===null||r===void 0?void 0:r.isFetching,isFetchingMoreSearchResults:(n=e.editor.collection)===null||n===void 0?void 0:n.isFetchingPage,collections:e.editor.collections&&e.editor.collections.data&&e.editor.collections.data.collections,languages:e.editor.languages&&e.editor.languages.data,libraries:e.editor.libraries.data&&e.editor.libraries.data.libraries,lanes:e.editor.lanes.data&&e.editor.lanes.data.lanes}}function b(e,t){var r=new f.default({adapter:d.adapter});var n=new c.default(r,t.csrfToken);return{fetchCustomLists:function(){return e(n.fetchCustomLists(t.library))},fetchCustomListDetails:function(r){return e(n.fetchCustomListDetails(t.library,r))},saveCustomListEditor:function(){return e(n.saveCustomListEditor(t.library))},resetCustomListEditor:function(){e(n.resetCustomListEditor());e(n.executeCustomListEditorSearch(t.library))},executeCustomListEditorSearch:function(){return e(n.executeCustomListEditorSearch(t.library))},loadMoreSearchResults:function(){return e(n.fetchMoreCustomListEditorSearchResults())},deleteCustomList:function(r){return e(n.deleteCustomList(t.library,r))},shareCustomList:function(r){return e(n.shareCustomList(t.library,r))},openCustomListEditor:function(t){return e(n.openCustomListEditor(t))},loadMoreEntries:function(){return e(n.fetchMoreCustomListEntries())},fetchCollections:function(){return e(n.fetchCollections())},fetchLibraries:function(){return e(n.fetchLibraries())},fetchLanes:function(){return e(n.fetchLanes(t.library))},fetchLanguages:function(){return e(n.fetchLanguages())},updateCustomListEditorProperty:function(t,r){return e(n.updateCustomListEditorProperty(t,r))},toggleCustomListEditorCollection:function(t){return e(n.toggleCustomListEditorCollection(t))},updateCustomListEditorSearchParam:function(r,a){e(n.updateCustomListEditorSearchParam(r,a));e(n.executeCustomListEditorSearch(t.library))},addCustomListEditorAdvSearchQuery:function(r,a){e(n.addCustomListEditorAdvSearchQuery(r,a));e(n.executeCustomListEditorSearch(t.library))},updateCustomListEditorAdvSearchQueryBoolean:function(r,a,i){e(n.updateCustomListEditorAdvSearchQueryBoolean(r,a,i));e(n.executeCustomListEditorSearch(t.library))},moveCustomListEditorAdvSearchQuery:function(r,a,i){e(n.moveCustomListEditorAdvSearchQuery(r,a,i));e(n.executeCustomListEditorSearch(t.library))},removeCustomListEditorAdvSearchQuery:function(r,a){e(n.removeCustomListEditorAdvSearchQuery(r,a));e(n.executeCustomListEditorSearch(t.library))},selectCustomListEditorAdvSearchQuery:function(t,r){return e(n.selectCustomListEditorAdvSearchQuery(t,r))},addCustomListEditorEntry:function(t){return e(n.addCustomListEditorEntry(t))},addAllCustomListEditorEntries:function(){return e(n.addAllCustomListEditorEntries())},deleteCustomListEditorEntry:function(t){return e(n.deleteCustomListEditorEntry(t))},deleteAllCustomListEditorEntries:function(){return e(n.deleteAllCustomListEditorEntries())}}}var A=u.connect(g,b)(y);t.default=A},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=r(13);var i=r(1135);var o=r(1214);var s=r(19);var u=r(1225);var l=r(647);var c=r(211);function f(e){var t=e.autoUpdateStatus,r=e.collections,f=e.entries,d=e.entryPoints,p=e.isAutoUpdateEnabled,h=e.isFetchingMoreCustomListEntries,v=e.isFetchingSearchResults,m=e.isFetchingMoreSearchResults,y=e.isLoaded,g=e.isModified,b=e.isSearchModified,A=e.isOwner,_=e.isShared,w=e.isSharePending,E=e.isValid,x=e.languages,k=e.library,S=e.listId,O=e.properties,M=e.savedName,D=e.searchParams,T=e.searchResults,L=e.startingTitle,C=e.addAllEntries,j=e.addEntry,N=e.deleteAllEntries,I=e.deleteEntry,P=e.loadMoreEntries,R=e.loadMoreSearchResults,F=e.reset,Y=e.save,B=e.search,H=e.share,U=e.toggleCollection,z=e.updateProperty,q=e.updateSearchParam,V=e.addAdvSearchQuery,W=e.updateAdvSearchQueryBoolean,K=e.moveAdvSearchQuery,G=e.removeAdvSearchQuery,Q=e.selectAdvSearchQuery;var J,Z;var X=O.collections,$=O.name;n.useEffect((function(){var e;(e=B)===null||e===void 0?void 0:e()}),[S,y]);var ee=!A;var te=S&&M?((J=k)===null||J===void 0?void 0:J.short_name)+"/lists/"+M+"/crawlable":undefined;return n.createElement("div",{className:"custom-list-editor"},n.createElement("div",{className:"custom-list-editor-header"},n.createElement("div",{className:"edit-custom-list-title"},ee&&n.createElement("h3",null,$),!ee&&n.createElement("fieldset",{className:"save-or-edit"},n.createElement("legend",{className:"visuallyHidden"},"List name"),n.createElement(l.default,{text:$,placeholder:"list title",onUpdate:function(e){var t;return(t=z)===null||t===void 0?void 0:t("name",e)},"aria-label":"Enter a title for this list",disableIfBlank:true})),S&&n.createElement("h4",null,"ID-",S)),!ee&&n.createElement("div",{className:"save-or-cancel-list"},n.createElement(a.Button,{callback:Y,disabled:!g||!E,content:"Save this list"}),n.createElement(a.Button,{className:"inverted",callback:F,disabled:!g,content:"Cancel changes"}))),n.createElement("div",{className:"custom-list-editor-body"},n.createElement("section",null,S&&n.createElement(a.Panel,{headerText:"Sharing",id:"sharing",content:A?n.createElement("div",{className:"sharing-info"},n.createElement("p",{className:"sharing-status"},_?"Shared ":"Not shared",_&&n.createElement(c.default,null)),n.createElement("p",null,_?"This list has been shared with other libraries.":"This list can be shared with the other libraries that are currently configured in this Collection Manager."," ","A shared list may be edited only by the owning library. Each library that is subscribed to a shared list will obtain only the titles that are available to that library."),n.createElement("p",null,n.createElement("i",null,"Once shared, a list cannot be unshared or deleted.")),_&&n.createElement("p",null,"Sharing this list again will make it available to any libraries that have been registered in this Collection Manager since the list was last shared."),n.createElement(u.default,{disabled:w,pending:w,submit:H,text:_?"Share again":"Share"})):n.createElement("div",{className:"sharing-info"},n.createElement("p",{className:"sharing-status"},n.createElement(c.default,null)," Subscribed"),n.createElement("p",null,"This list has been shared by another library. It may be edited only by the owning library. Only the titles in the shared list that are available to this library will be obtained."))}),((Z=r)===null||Z===void 0?void 0:Z.length)>0&&n.createElement("div",{className:"custom-list-filters"},n.createElement(a.Panel,{headerText:"Add from collections",id:"add-from-collections",content:n.createElement("div",{className:"collections"},n.createElement("div",null,"Automatically add new books from these collections to this list:"),r.map((function(e){var t=e.id,r=e.name;return n.createElement(s.default,{disabled:ee,key:t,type:"checkbox",name:"collection",checked:X.includes(t),label:r,value:t,onChange:function(e){var t;return(t=U)===null||t===void 0?void 0:t(parseInt(e))}})})))})),n.createElement(o.default,{autoUpdate:O.autoUpdate,isOwner:A,listId:S,searchParams:D,updateAutoUpdate:function(e){var t;return(t=z)===null||t===void 0?void 0:t("autoUpdate",e)},updateSearchParam:q,search:B,entryPoints:d,startingTitle:L,library:k,languages:x,showAutoUpdate:p,addAdvSearchQuery:V,updateAdvSearchQueryBoolean:W,moveAdvSearchQuery:K,removeAdvSearchQuery:G,selectAdvSearchQuery:Q})),n.createElement(i.default,{autoUpdateStatus:t,autoUpdate:O.autoUpdate,isOwner:A,isSearchModified:b,searchResults:T,entries:f.current,loadMoreSearchResults:R,loadMoreEntries:P,isFetchingSearchResults:v,isFetchingMoreSearchResults:m,isFetchingMoreCustomListEntries:h,opdsFeedUrl:te,entryCount:f.currentTotalCount,listId:S,addEntry:j,addAllEntries:C,deleteEntry:I,deleteAllEntries:N,refreshResults:B})))}t.default=f},function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(13);var o=r(65);var s=r(177);var u=r(310);var l=r(1209);var c=r(107);var f=r(327);var d=r(210);var p=r(1210);var h=r(1211);var v=r(1212);var m=function(e,t){var r=e.title,n=e.url;if(!n){return null}return a.createElement(o.default,{collectionUrl:t,bookUrl:n,title:r,target:"_blank",className:"btn inverted left-align small top-align"},"View details")};var y=function(e){var t=e.autoUpdate,r=e.autoUpdateStatus,o=e.entries,y=o===void 0?[]:o,g=e.entryCount,b=g===void 0?0:g,A=e.isFetchingMoreCustomListEntries,_=e.isFetchingSearchResults,w=e.isFetchingMoreSearchResults,E=e.isOwner,x=e.isSearchModified,k=e.listId,S=e.opdsFeedUrl,O=e.searchResults,M=e.addAllEntries,D=e.addEntry,T=e.deleteAllEntries,L=e.deleteEntry,C=e.loadMoreEntries,j=e.loadMoreSearchResults,N=e.refreshResults;var I;var P=a.useState(null),R=P[0],F=P[1];a.useEffect((function(){F(null)}),[k,y]);a.useEffect((function(){var e;if(y){(e=document.getElementById("custom-list-entries-droppable"))===null||e===void 0?void 0:e.scrollTo(0,0)}}),[y]);var Y=a.useMemo((function(){var e,r;if(!((r=(e=O)===null||e===void 0?void 0:e.books)===null||r===void 0?void 0:r.length)){return[]}if(t){return O.books}var n=y.reduce((function(e,t){e[t.id]=true;return e}),{});return O.books.filter((function(e){return!n[e.id]}))}),[t,y,O]);var B=function(e){F(e.source.droppableId);document.body.classList.add("dragging")};var H=function(e){var t,r,n,a;var i=e.draggableId,o=e.source,s=e.destination;if(o.droppableId==="search-results"&&((t=s)===null||t===void 0?void 0:t.droppableId)==="custom-list-entries"){(r=D)===null||r===void 0?void 0:r(i)}else if(o.droppableId==="custom-list-entries"&&((n=s)===null||n===void 0?void 0:n.droppableId)==="search-results"){(a=L)===null||a===void 0?void 0:a(i)}else{F(null)}document.body.classList.remove("dragging")};var U=!E||t;var z=null;if(E){z=a.createElement("div",{className:"custom-list-search-results"},a.createElement("div",{className:"droppable-header"},a.createElement("h4",null,"Search Results"),a.createElement(i.Button,{"aria-label":"Refresh",className:"refresh-button inverted",callback:N,content:a.createElement(p.default,null),disabled:_}),!U&&!_&&Y.length>0&&a.createElement(i.Button,{className:"add-all-button",callback:M,content:a.createElement("span",null,"Add all to list",a.createElement(l.default,null))})),_&&a.createElement(h.default,null),!_&&a.createElement(u.Droppable,{droppableId:"search-results",isDropDisabled:U||R!=="custom-list-entries"},(function(e,t){return a.createElement("ul",{ref:e.innerRef,className:t.isDraggingOver?"droppable dragging-over":"droppable"},R==="custom-list-entries"&&a.createElement("p",null,"Drag books here to remove them from the list."),R!=="custom-list-entries"&&Y.map((function(e){return a.createElement(u.Draggable,{key:e.id,draggableId:e.id,isDragDisabled:U},(function(t,r){var o;return a.createElement("li",null,a.createElement("div",n({className:"search-result"+(r.isDragging?" dragging":""),ref:t.innerRef,style:t.draggableStyle},t.dragHandleProps),!U&&a.createElement(f.default,null),a.createElement("div",null,a.createElement("div",{className:"title"},e.title),a.createElement("div",{className:"authors"},(o=e.authors)===null||o===void 0?void 0:o.join(", "))),s.getMediumSVG(s.getMedium(e)),a.createElement("div",{className:"links"},m(e),!U&&a.createElement(i.Button,{callback:function(){var t;return(t=D)===null||t===void 0?void 0:t(e.id)},className:"right-align",content:a.createElement("span",null,"Add to list",a.createElement(d.default,null))}))),t.placeholder)}))})),e.placeholder)})),!_&&j&&a.createElement(v.default,{isFetching:w,loadMore:j}))}var q=y.length;var V=q>0?1:0;var W=q;var K=b===1?"book":"books";var G=b>0?"Displaying "+V+" - "+W+" of "+b+" "+K:"No books in this list";var Q=null;var J=null;if(!k){Q="New";J="This is a new list. Once the initial search criteria have been saved, the system will begin to populate its entries; however, the list might not be fully populated until the next scheduled update."}else if(x){Q="Search criteria modified";J="There are unsaved changes to the search criteria for this list. Once the changes have been saved, the new search criteria will be used to repopulate the list during the next scheduled update."}else{if(r==="init"){Q="Initializing";J="This list was created recently. The system has partially populated the list using the configured search criteria and will fully populate the list during the next scheduled update."}else if(r==="repopulate"){Q="Repopulating";J="The search criteria for this list were changed recently, but the entries have not yet been updated. The new search criteria will be used to repopulate the list during the next scheduled update."}else if(r==="updated"){Q="Updated";J="This list was fully populated during the last scheduled update, using the configured search criteria and the titles that were available at the time. New titles matching the criteria will be added to the list during the next scheduled update."}else if(!r){Q="Changing to automatic";J="This list was populated manually, but is being changed to be updated automatically. The configured search criteria will be used to repopulate the list during the next scheduled update."}else{Q=r}}var Z=a.createElement("div",{className:"custom-list-entries"},a.createElement("div",{className:"droppable-header"},a.createElement("h4",null,"List Entries: ",G),t&&a.createElement(a.Fragment,null,a.createElement("div",{className:"auto-update-status-name"},"Status: ",Q),a.createElement("aside",{className:"auto-update-status-desc"},J)),!U&&((I=y)===null||I===void 0?void 0:I.length)>0&&a.createElement("div",null,a.createElement("span",null,"Remove all currently visible items from list:"),a.createElement(i.Button,{className:"danger delete-all-button top-align",callback:T,content:a.createElement("span",null,"Delete",a.createElement(c.default,null))}))),!U&&a.createElement("p",null,"Drag search results here to add them to the list."),a.createElement(u.Droppable,{droppableId:"custom-list-entries",isDropDisabled:U||R!=="search-results"},(function(e,t){var r;return a.createElement("ul",{ref:e.innerRef,id:"custom-list-entries-droppable",className:t.isDraggingOver?" droppable dragging-over":"droppable"},(r=y)===null||r===void 0?void 0:r.map((function(e){return a.createElement(u.Draggable,{key:e.id,draggableId:e.id,isDragDisabled:U},(function(t,r){var o;return a.createElement("li",null,a.createElement("div",n({className:"custom-list-entry"+(r.isDragging?" dragging":""),ref:t.innerRef,style:t.draggableStyle},t.dragHandleProps),!U&&a.createElement(f.default,null),a.createElement("div",null,a.createElement("div",{className:"title"},e.title),a.createElement("div",{className:"authors"},(o=e.authors)===null||o===void 0?void 0:o.join(", "))),s.getMediumSVG(s.getMedium(e)),a.createElement("div",{className:"links"},m(e,S),!U&&a.createElement(i.Button,{className:"small right-align",callback:function(){var t;return(t=L)===null||t===void 0?void 0:t(e.id)},content:a.createElement("span",null,"Remove from list",a.createElement(c.default,null))}))),t.placeholder)}))})),e.placeholder)})),C&&a.createElement(v.default,{isFetching:A,loadMore:C}));return a.createElement(u.DragDropContext,{onDragStart:B,onDragEnd:H},a.createElement("div",{className:"custom-list-drag-and-drop"},z,Z))};t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1137);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(163);var a=x(n);var i=r(85);var o=x(i);var s=r(86);var u=x(s);var l=r(87);var c=x(l);var f=r(88);var d=x(f);var p=r(89);var h=x(p);var v=r(1);var m=x(v);var y=r(0);var g=x(y);var b=r(1159);var A=x(b);var _=r(1178);var w=x(_);var E=r(118);function x(e){return e&&e.__esModule?e:{default:e}}var k=function(e){(0,h.default)(t,e);function t(){(0,u.default)(this,t);return(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}(0,c.default)(t,[{key:"getChildContext",value:function e(){return(0,a.default)({},E.storeKey,this.store)}},{key:"componentWillMount",value:function e(){var t=this;this.store=(0,A.default)();var r=this.store.getState();this.unsubscribe=this.store.subscribe((function(){var e=t.store.getState();var n={onDragStart:t.props.onDragStart,onDragEnd:t.props.onDragEnd};(0,w.default)(n,e,r);r=e}))}},{key:"componentWillUnmount",value:function e(){this.unsubscribe()}},{key:"render",value:function e(){return this.props.children}}]);return t}(m.default.Component);k.childContextTypes=(0,a.default)({},E.storeKey,g.default.shape({dispatch:g.default.func.isRequired,subscribe:g.default.func.isRequired,getState:g.default.func.isRequired}).isRequired);t.default=k},function(e,t,r){r(1139);var n=r(30).Object;e.exports=function e(t,r,a){return n.defineProperty(t,r,a)}},function(e,t,r){var n=r(42);n(n.S+n.F*!r(75),"Object",{defineProperty:r(83).f})},function(e,t,r){r(1141);e.exports=r(30).Object.getPrototypeOf},function(e,t,r){var n=r(133);var a=r(599);r(589)("getPrototypeOf",(function(){return function e(t){return a(n(t))}}))},function(e,t,r){e.exports={default:r(1143),__esModule:true}},function(e,t,r){r(596);r(1144);e.exports=r(312).f("iterator")},function(e,t,r){r(1145);var n=r(74);var a=r(129);var i=r(159);var o=r(68)("toStringTag");var s=("CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,"+"DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,"+"MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,"+"SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,"+"TextTrackList,TouchList").split(",");for(var u=0;u<s.length;u++){var l=s[u];var c=n[l];var f=c&&c.prototype;if(f&&!f[o])a(f,o,l);i[l]=i.Array}},function(e,t,r){"use strict";var n=r(1146);var a=r(1147);var i=r(159);var o=r(110);e.exports=r(597)(Array,"Array",(function(e,t){this._t=o(e);this._i=0;this._k=t}),(function(){var e=this._t;var t=this._k;var r=this._i++;if(!e||r>=e.length){this._t=undefined;return a(1)}if(t=="keys")return a(0,r);if(t=="values")return a(0,e[r]);return a(0,[r,e[r]])}),"values");i.Arguments=i.Array;n("keys");n("values");n("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){e.exports={default:r(1149),__esModule:true}},function(e,t,r){r(1150);r(1154);r(1155);r(1156);e.exports=r(30).Symbol},function(e,t,r){"use strict";var n=r(74);var a=r(109);var i=r(75);var o=r(42);var s=r(598);var u=r(1151).KEY;var l=r(108);var c=r(279);var f=r(284);var d=r(193);var p=r(68);var h=r(312);var v=r(313);var m=r(1152);var y=r(607);var g=r(130);var b=r(131);var A=r(133);var _=r(110);var w=r(275);var E=r(157);var x=r(282);var k=r(1153);var S=r(587);var O=r(281);var M=r(83);var D=r(132);var T=S.f;var L=M.f;var C=k.f;var j=n.Symbol;var N=n.JSON;var I=N&&N.stringify;var P="prototype";var R=p("_hidden");var F=p("toPrimitive");var Y={}.propertyIsEnumerable;var B=c("symbol-registry");var H=c("symbols");var U=c("op-symbols");var z=Object[P];var q=typeof j=="function"&&!!O.f;var V=n.QObject;var W=!V||!V[P]||!V[P].findChild;var K=i&&l((function(){return x(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a!=7}))?function(e,t,r){var n=T(z,t);if(n)delete z[t];L(e,t,r);if(n&&e!==z)L(z,t,n)}:L;var G=function(e){var t=H[e]=x(j[P]);t._k=e;return t};var Q=q&&typeof j.iterator=="symbol"?function(e){return typeof e=="symbol"}:function(e){return e instanceof j};var J=function e(t,r,n){if(t===z)J(U,r,n);g(t);r=w(r,true);g(n);if(a(H,r)){if(!n.enumerable){if(!a(t,R))L(t,R,E(1,{}));t[R][r]=true}else{if(a(t,R)&&t[R][r])t[R][r]=false;n=x(n,{enumerable:E(0,false)})}return K(t,r,n)}return L(t,r,n)};var Z=function e(t,r){g(t);var n=m(r=_(r));var a=0;var i=n.length;var o;while(i>a)J(t,o=n[a++],r[o]);return t};var X=function e(t,r){return r===undefined?x(t):Z(x(t),r)};var $=function e(t){var r=Y.call(this,t=w(t,true));if(this===z&&a(H,t)&&!a(U,t))return false;return r||!a(this,t)||!a(H,t)||a(this,R)&&this[R][t]?r:true};var ee=function e(t,r){t=_(t);r=w(r,true);if(t===z&&a(H,r)&&!a(U,r))return;var n=T(t,r);if(n&&a(H,r)&&!(a(t,R)&&t[R][r]))n.enumerable=true;return n};var te=function e(t){var r=C(_(t));var n=[];var i=0;var o;while(r.length>i){if(!a(H,o=r[i++])&&o!=R&&o!=u)n.push(o)}return n};var re=function e(t){var r=t===z;var n=C(r?U:_(t));var i=[];var o=0;var s;while(n.length>o){if(a(H,s=n[o++])&&(r?a(z,s):true))i.push(H[s])}return i};if(!q){j=function e(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:undefined);var r=function(e){if(this===z)r.call(U,e);if(a(this,R)&&a(this[R],t))this[R][t]=false;K(this,t,E(1,e))};if(i&&W)K(z,t,{configurable:true,set:r});return G(t)};s(j[P],"toString",(function e(){return this._k}));S.f=ee;M.f=J;r(632).f=k.f=te;r(158).f=$;O.f=re;if(i&&!r(192)){s(z,"propertyIsEnumerable",$,true)}h.f=function(e){return G(p(e))}}o(o.G+o.W+o.F*!q,{Symbol:j});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ae=0;ne.length>ae;)p(ne[ae++]);for(var ie=D(p.store),oe=0;ie.length>oe;)v(ie[oe++]);o(o.S+o.F*!q,"Symbol",{for:function(e){return a(B,e+="")?B[e]:B[e]=j(e)},keyFor:function e(t){if(!Q(t))throw TypeError(t+" is not a symbol!");for(var r in B)if(B[r]===t)return r},useSetter:function(){W=true},useSimple:function(){W=false}});o(o.S+o.F*!q,"Object",{create:X,defineProperty:J,defineProperties:Z,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:re});var se=l((function(){O.f(1)}));o(o.S+o.F*se,"Object",{getOwnPropertySymbols:function e(t){return O.f(A(t))}});N&&o(o.S+o.F*(!q||l((function(){var e=j();return I([e])!="[null]"||I({a:e})!="{}"||I(Object(e))!="{}"}))),"JSON",{stringify:function e(t){var r=[t];var n=1;var a,i;while(arguments.length>n)r.push(arguments[n++]);i=a=r[1];if(!b(a)&&t===undefined||Q(t))return;if(!y(a))a=function(e,t){if(typeof i=="function")t=i.call(this,e,t);if(!Q(t))return t};r[1]=a;return I.apply(N,r)}});j[P][F]||r(129)(j[P],F,j[P].valueOf);f(j,"Symbol");f(Math,"Math",true);f(n.JSON,"JSON",true)},function(e,t,r){var n=r(193)("meta");var a=r(131);var i=r(109);var o=r(83).f;var s=0;var u=Object.isExtensible||function(){return true};var l=!r(108)((function(){return u(Object.preventExtensions({}))}));var c=function(e){o(e,n,{value:{i:"O"+ ++s,w:{}}})};var f=function(e,t){if(!a(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!i(e,n)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[n].i};var d=function(e,t){if(!i(e,n)){if(!u(e))return true;if(!t)return false;c(e)}return e[n].w};var p=function(e){if(l&&h.NEED&&u(e)&&!i(e,n))c(e);return e};var h=e.exports={KEY:n,NEED:false,fastKey:f,getWeak:d,onFreeze:p}},function(e,t,r){var n=r(132);var a=r(281);var i=r(158);e.exports=function(e){var t=n(e);var r=a.f;if(r){var o=r(e);var s=i.f;var u=0;var l;while(o.length>u)if(s.call(e,l=o[u++]))t.push(l)}return t}},function(e,t,r){var n=r(110);var a=r(632).f;var i={}.toString;var o=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var s=function(e){try{return a(e)}catch(e){return o.slice()}};e.exports.f=function e(t){return o&&i.call(t)=="[object Window]"?s(t):a(n(t))}},function(e,t){},function(e,t,r){r(313)("asyncIterator")},function(e,t,r){r(313)("observable")},function(e,t,r){e.exports={default:r(586),__esModule:true}},function(e,t,r){e.exports={default:r(585),__esModule:true}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(311);var a=c(n);var i=r(347);var o=r(263);var s=c(o);var u=r(1160);var l=c(u);function c(e){return e&&e.__esModule?e:{default:e}}var f=(typeof window==="undefined"?"undefined":(0,a.default)(window))==="object"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:i.compose;t.default=function(){return(0,i.createStore)(l.default,f((0,i.applyMiddleware)(s.default)))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(115);var a=A(n);var i=r(163);var o=A(i);var s=r(116);var u=A(s);var l=r(53);var c=A(l);var f=r(1162);var d=A(f);var p=r(43);var h=r(1164);var v=A(h);var m=r(1169);var y=A(m);var g=r(1172);var b=A(g);function A(e){return e&&e.__esModule?e:{default:e}}var _={request:null,draggable:{},droppable:{}};var w={x:0,y:0};var E=(0,c.default)((function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"IDLE";return{phase:e,drag:null,drop:null,dimension:_}}));var x=function e(t){var r=t.state,n=t.clientSelection,a=t.shouldAnimate,i=a===undefined?false:a,o=t.windowScroll,s=t.impact;if(r.phase!=="DRAGGING"){console.error("cannot move while not dragging");return E()}if(r.drag==null){console.error("cannot move if there is no drag information");return E()}var l=r.drag.current;var c=r.drag.initial;var f=o||l.windowScroll;var d=function(){var e=(0,p.subtract)(n,c.client.selection);var t={offset:e,selection:n,center:(0,p.add)(e,c.client.center)};return t}();var h={selection:(0,p.add)(d.selection,f),offset:(0,p.add)(d.offset,f),center:(0,p.add)(d.center,f)};var m={id:l.id,type:l.type,isScrollAllowed:l.isScrollAllowed,client:d,page:h,shouldAnimate:i,windowScroll:f};var y=r.drag&&r.drag.impact.destination?r.drag.impact.destination.droppableId:null;var g=s||(0,v.default)({pageCenter:h.center,draggable:r.dimension.draggable[m.id],draggables:r.dimension.draggable,droppables:r.dimension.droppable,previousDroppableOverId:y});var b={initial:c,impact:g,current:m,previous:{droppableOverId:y}};return(0,u.default)({},r,{drag:b})};t.default=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:E("IDLE");var t=arguments[1];if(t.type==="CLEAN"){return E()}if(t.type==="PREPARE"){return E("PREPARING")}if(t.type==="REQUEST_DIMENSIONS"){if(e.phase!=="PREPARING"){console.error("trying to start a lift while not preparing for a lift");return E()}var r=t.payload;return{phase:"COLLECTING_DIMENSIONS",drag:null,drop:null,dimension:{request:r,draggable:{},droppable:{}}}}if(t.type==="PUBLISH_DRAGGABLE_DIMENSION"){var n=t.payload;if(e.phase!=="COLLECTING_DIMENSIONS"){console.warn("dimension rejected as no longer requesting dimensions",n);return e}if(e.dimension.draggable[n.id]){console.error("dimension already exists for "+n.id);return e}return(0,u.default)({},e,{dimension:{request:e.dimension.request,droppable:e.dimension.droppable,draggable:(0,u.default)({},e.dimension.draggable,(0,o.default)({},n.id,n))}})}if(t.type==="PUBLISH_DROPPABLE_DIMENSION"){var i=t.payload;if(e.phase!=="COLLECTING_DIMENSIONS"){console.warn("dimension rejected as no longer requesting dimensions",i);return e}if(e.dimension.droppable[i.id]){console.error("dimension already exists for "+i.id);return e}return(0,u.default)({},e,{dimension:{request:e.dimension.request,draggable:e.dimension.draggable,droppable:(0,u.default)({},e.dimension.droppable,(0,o.default)({},i.id,i))}})}if(t.type==="COMPLETE_LIFT"){if(e.phase!=="COLLECTING_DIMENSIONS"){console.error("trying complete lift without collecting dimensions");return e}var s=t.payload,l=s.id,c=s.type,f=s.client,h=s.windowScroll,v=s.isScrollAllowed;var m=e.dimension.draggable;var g=e.dimension.draggable[l];var A=e.dimension.droppable[g.droppableId];var k={selection:(0,p.add)(f.selection,h),center:(0,p.add)(f.center,h)};var S=(0,d.default)({draggable:g,droppable:A,draggables:m});if(!S||!S.destination){console.error("invalid lift state");return E()}var O=S.destination;var M={source:O,client:f,page:k,windowScroll:h};var D={id:l,type:c,client:{selection:f.selection,center:f.center,offset:w},page:{selection:k.selection,center:k.center,offset:w},windowScroll:h,isScrollAllowed:v,shouldAnimate:false};return(0,u.default)({},e,{phase:"DRAGGING",drag:{initial:M,current:D,impact:S}})}if(t.type==="UPDATE_DROPPABLE_DIMENSION_SCROLL"){if(e.phase!=="DRAGGING"){console.error("cannot update a droppable dimensions scroll when not dragging");return E()}if(e.drag==null){console.error("invalid store state");return E()}if(!e.drag.current.isScrollAllowed){return E()}var T=t.payload,L=T.id,C=T.offset;var j=e.dimension.droppable[L];if(!j){console.error("cannot update a droppable that is not inside of the state",L);return E()}var N=(0,u.default)({},j,{container:(0,u.default)({},j.container,{scroll:(0,u.default)({},j.container.scroll,{current:C})})});var I=(0,u.default)({},e,{dimension:{request:e.dimension.request,draggable:e.dimension.draggable,droppable:(0,u.default)({},e.dimension.droppable,(0,o.default)({},L,N))}});return x({state:I,clientSelection:e.drag.current.client.selection})}if(t.type==="UPDATE_DROPPABLE_DIMENSION_IS_ENABLED"){if(!(0,a.default)(e.dimension.droppable).length){return e}var P=t.payload,R=P.id,F=P.isEnabled;var Y=e.dimension.droppable[R];if(!Y){console.error("cannot update enabled flag on droppable that does not have a dimension");return E()}if(Y.isEnabled===F){console.warn("trying to set droppable isEnabled to "+String(F)+" but it is already "+String(F));return e}var B=(0,u.default)({},Y,{isEnabled:F});return(0,u.default)({},e,{dimension:(0,u.default)({},e.dimension,{droppable:(0,u.default)({},e.dimension.droppable,(0,o.default)({},R,B))})})}if(t.type==="MOVE"){var H=t.payload,U=H.client,z=H.windowScroll;return x({state:e,clientSelection:U,windowScroll:z})}if(t.type==="MOVE_BY_WINDOW_SCROLL"){var q=t.payload.windowScroll;if(!e.drag){console.error("cannot move with window scrolling if no current drag");return E()}return x({state:e,clientSelection:e.drag.current.client.selection,windowScroll:q})}if(t.type==="MOVE_FORWARD"||t.type==="MOVE_BACKWARD"){if(e.phase!=="DRAGGING"){console.error("cannot move while not dragging",t);return E()}if(!e.drag){console.error("cannot move if there is no drag information");return E()}var V=e.drag;var W=t.type==="MOVE_FORWARD";if(!V.impact.destination){console.error("cannot move if there is no previous destination");return E()}var K=e.dimension.droppable[V.impact.destination.droppableId];var G=(0,y.default)({isMovingForward:W,draggableId:V.current.id,impact:V.impact,droppable:K,draggables:e.dimension.draggable});if(!G){return e}var Q=G.impact;var J=G.pageCenter;var Z=(0,p.subtract)(J,V.current.windowScroll);return x({state:e,impact:Q,clientSelection:Z,shouldAnimate:true})}if(t.type==="CROSS_AXIS_MOVE_FORWARD"||t.type==="CROSS_AXIS_MOVE_BACKWARD"){if(e.phase!=="DRAGGING"){console.error("cannot move cross axis when not dragging");return E()}if(!e.drag){console.error("cannot move cross axis if there is no drag information");return E()}if(!e.drag.impact.destination){console.error("cannot move cross axis if not in a droppable");return E()}var X=e.drag.current;var $=X.id;var ee=X.page.center;var te=e.drag.impact.destination.droppableId;var re=e.drag.initial.source;var ne=(0,b.default)({isMovingForward:t.type==="CROSS_AXIS_MOVE_FORWARD",pageCenter:ee,draggableId:$,droppableId:te,home:re,draggables:e.dimension.draggable,droppables:e.dimension.droppable});if(!ne){return e}var ae=ne.pageCenter;var ie=(0,p.subtract)(ae,X.windowScroll);return x({state:e,clientSelection:ie,impact:ne.impact,shouldAnimate:true})}if(t.type==="DROP_ANIMATE"){var oe=t.payload,se=oe.trigger,ue=oe.newHomeOffset,le=oe.impact,ce=oe.result;if(e.phase!=="DRAGGING"){console.error("cannot animate drop while not dragging",t);return e}if(!e.drag){console.error("cannot animate drop - invalid drag state");return E()}var fe={trigger:se,newHomeOffset:ue,result:ce,impact:le};return{phase:"DROP_ANIMATING",drag:null,drop:{pending:fe,result:null},dimension:e.dimension}}if(t.type==="DROP_COMPLETE"){var de=t.payload;return{phase:"DROP_COMPLETE",drag:null,drop:{pending:null,result:de},dimension:_}}return e}},function(e,t,r){e.exports={default:r(579),__esModule:true}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(117);var a=o(n);var i=r(314);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.draggable,r=e.droppable,n=e.draggables;var o=(0,a.default)(r,n);var s=o.indexOf(t);if(s===-1){console.error("lifting a draggable that is not inside a droppable");return null}var u={index:s,droppableId:r.id};var l={movement:i.noMovement,direction:r.axis.direction,destination:u};return l}},function(e,t,r){e.exports={default:r(595),__esModule:true}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1165);var a=p(n);var i=r(117);var o=p(i);var s=r(314);var u=p(s);var l=r(1167);var c=p(l);var f=r(1168);var d=p(f);function p(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.pageCenter,r=e.draggable,n=e.draggables,i=e.droppables,s=e.previousDroppableOverId;var l=(0,a.default)({target:t,draggable:r,draggables:n,droppables:i,previousDroppableOverId:s});if(!l){return u.default}var f=i[l];if(!f.isEnabled){return u.default}var p=i[r.droppableId];var h=p.id===l;var v=(0,o.default)(f,n);if(h){return(0,c.default)({pageCenter:t,draggable:r,home:p,insideHome:v})}return(0,d.default)({pageCenter:t,draggable:r,destination:f,insideDestination:v})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(115);var a=y(n);var i=r(116);var o=y(i);var s=r(53);var u=y(s);var l=r(316);var c=r(317);var f=y(c);var d=r(117);var p=y(d);var h=r(164);var v=r(43);var m=r(207);function y(e){return e&&e.__esModule?e:{default:e}}var g={x:0,y:0};var b=function e(t){return function(e){return(0,l.getFragment)((0,f.default)((0,m.addPosition)(e,t)))}};var A=(0,u.default)((function(e,t){var r=t.id,n=t.axis,a=t.isEnabled,i=t.client,s=t.container,u=t.page;var l=b(e);var c={withoutMargin:l(i.withoutMargin),withMargin:l(i.withMargin),withMarginAndPadding:l(i.withMarginAndPadding)};var f={withoutMargin:l(u.withoutMargin),withMargin:l(u.withMargin),withMarginAndPadding:l(u.withMarginAndPadding)};var d=t.page.withMargin[t.axis.size]<=t.container.bounds[t.axis.size];var p=d?l(s.bounds):(0,o.default)({},s.bounds);return{id:r,axis:n,isEnabled:a,client:c,page:f,container:{scroll:s.scroll,bounds:p}}}));var _=(0,u.default)((function(e,t,r){var n=(0,p.default)(r,t);if(!n.length){return g}var a=r.page.withMargin[r.axis.end]-n[n.length-1].page.withMargin[r.axis.end];var i=Math.max(e.page.withMargin[r.axis.size]-a,0);var o=(0,v.patch)(r.axis.line,i);return o}));var w=function e(t){var r=t.draggable,n=t.draggables,a=t.droppable,i=t.previousDroppableOverId;var o=r.droppableId===a.id;var s=i&&i===a.id;if(o||!s){return a}var u=_(r,n,a);return A(u,a)};t.default=function(e){var t=e.target,r=e.draggable,n=e.draggables,i=e.droppables,o=e.previousDroppableOverId;var s=(0,a.default)(i).map((function(e){return i[e]})).find((function(e){var a=w({draggable:r,draggables:n,droppable:e,previousDroppableOverId:o});return(0,h.isPointWithinDroppable)(a)(t)}));return s?s.id:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=t.vertical={direction:"vertical",line:"y",crossLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"};var a=t.horizontal={direction:"horizontal",line:"x",crossLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(43);t.default=function(e){var t=e.pageCenter,r=e.draggable,a=e.home,i=e.insideHome;var o=a.axis;var s=(0,n.subtract)(a.container.scroll.current,a.container.scroll.initial);var u=(0,n.add)(t,s);var l=r.page.withoutMargin.center;var c=u[o.line]-l[o.line]>0;var f=i.filter((function(e){if(e===r){return false}var t=e.page.withoutMargin;if(c){if(t.center[o.line]<l[o.line]){return false}return u[o.line]>t[o.start]}if(l[o.line]<t.center[o.line]){return false}return u[o.line]<t[o.end]})).map((function(e){return e.id}));var d=c?f.reverse():f;var p=function(){var e=i.indexOf(r);if(!f.length){return e}if(c){return e+f.length}return e-f.length}();var h={amount:(0,n.patch)(o.line,r.page.withMargin[o.size]),draggables:d,isBeyondStartPosition:c};var v={movement:h,direction:o.direction,destination:{droppableId:a.id,index:p}};return v}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(43);t.default=function(e){var t=e.pageCenter,r=e.draggable,a=e.destination,i=e.insideDestination;var o=a.axis;var s=(0,n.subtract)(a.container.scroll.current,a.container.scroll.initial);var u=(0,n.add)(t,s);var l=i.filter((function(e){var t=e.page.withoutMargin[o.end];return t>u[o.line]})).map((function(e){return e.id}));var c=i.length-l.length;var f={amount:(0,n.patch)(o.line,r.page.withMargin[o.size]),draggables:l,isBeyondStartPosition:false};var d={movement:f,direction:o.direction,destination:{droppableId:a.id,index:c}};return d}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1170);var a=s(n);var i=r(1171);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.draggableId,r=e.draggables,n=e.droppable;var i=r[t];var s=i.droppableId===n.id;if(!n.isEnabled){return null}if(s){return(0,a.default)(e)}return(0,o.default)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(315);var a=p(n);var i=r(53);var o=p(i);var s=r(117);var u=p(s);var l=r(164);var c=r(43);var f=r(165);var d=p(f);function p(e){return e&&e.__esModule?e:{default:e}}var h=(0,o.default)((function(e,t){return e.indexOf(t)}));t.default=function(e){var t=e.isMovingForward,r=e.draggableId,n=e.impact,i=e.droppable,o=e.draggables;if(!n.destination){console.error("cannot move to next index when there is not previous destination");return null}var s=n.destination;var f=o[r];var p=i.axis;var v=(0,u.default)(i,o);var m=h(v,f);var y=s.index;var g=t?y+1:y-1;if(m===-1){console.error("could not find draggable inside current droppable");return null}if(g>v.length-1){return null}if(g<0){return null}var b=v[g];var A=t&&g<=m||!t&&g>=m;var _=function(){if(!A){return t?"end":"start"}return t?"start":"end"}();var w=(0,d.default)({source:f.page.withoutMargin,sourceEdge:_,destination:b.page.withoutMargin,destinationEdge:_,destinationAxis:i.axis});var E=(0,l.isPointWithinDroppable)(i)(w);if(!E){return null}var x=A?n.movement.draggables.slice(1,n.movement.draggables.length):[b.id].concat((0,a.default)(n.movement.draggables));var k={movement:{draggables:x,amount:(0,c.patch)(p.line,f.page.withMargin[p.size]),isBeyondStartPosition:g>m},destination:{droppableId:i.id,index:g},direction:i.axis.direction};var S={pageCenter:w,impact:k};return S}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(315);var a=f(n);var i=r(117);var o=f(i);var s=r(164);var u=r(43);var l=r(165);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.isMovingForward,r=e.draggableId,n=e.impact,i=e.droppable,l=e.draggables;if(!n.destination){console.error("cannot move to next index when there is not previous destination");return null}var f=n.destination;var d=l[r];var p=i.axis;var h=(0,o.default)(i,l);var v=f.index;var m=t?v+1:v-1;var y=h.length-1;if(m>h.length){return null}if(m<0){return null}var g=h[Math.min(m,y)];var b=m>y;var A="start";var _=function(){if(b){return"end"}return"start"}();var w=(0,c.default)({source:d.page.withoutMargin,sourceEdge:A,destination:g.page.withMargin,destinationEdge:_,destinationAxis:i.axis});var E=function(){if(b){return true}return(0,s.isPointWithinDroppable)(i)(w)}();if(!E){return null}var x=t?n.movement.draggables.slice(1,n.movement.draggables.length):[g.id].concat((0,a.default)(n.movement.draggables));var k={movement:{draggables:x,amount:(0,u.patch)(p.line,d.page.withMargin[p.size]),isBeyondStartPosition:false},destination:{droppableId:i.id,index:m},direction:i.axis.direction};return{pageCenter:w,impact:k}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1173);var a=f(n);var i=r(1174);var o=f(i);var s=r(1175);var u=f(s);var l=r(117);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.isMovingForward,r=e.pageCenter,n=e.draggableId,i=e.droppableId,s=e.home,l=e.draggables,f=e.droppables;var d=l[n];var p=f[i];var h=(0,a.default)({isMovingForward:t,pageCenter:r,source:p,droppables:f});if(!h){return null}var v=(0,c.default)(h,l);var m=(0,o.default)({axis:h.axis,pageCenter:r,destination:h,insideDestination:v});if(v.length&&!m){return null}return(0,u.default)({pageCenter:r,destination:h,draggable:d,target:m,insideDestination:v,home:s})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(115);var a=c(n);var i=r(43);var o=r(633);var s=c(o);var u=r(207);var l=r(164);function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.isMovingForward,r=e.pageCenter,n=e.source,o=e.droppables;var c=n.axis;var f=(0,l.getVisibleBounds)(n);var d=(0,a.default)(o).map((function(e){return o[e]})).filter((function(e){return e!==n})).filter((function(e){return e.isEnabled})).map((function(e){return{bounds:(0,l.getVisibleBounds)(e),droppable:e}})).filter((function(e){var r=e.bounds;if(t){return f[c.crossAxisEnd]<=r[c.crossAxisStart]}return r[c.crossAxisEnd]<=f[c.crossAxisStart]})).filter((function(e){var t=e.bounds;var r=(0,s.default)(f[c.start],f[c.end]);var n=(0,s.default)(t[c.start],t[c.end]);return r(t[c.start])||r(t[c.end])||n(f[c.start])||n(f[c.end])})).filter((function(e){var t=e.droppable;return t.page.withoutMargin[c.crossAxisStart]>=t.container.bounds[c.crossAxisStart]&&t.page.withoutMargin[c.crossAxisEnd]<=t.container.bounds[c.crossAxisEnd]})).sort((function(e,r){var n=e.bounds;var a=r.bounds;var i=n[c.crossAxisStart];var o=a[c.crossAxisStart];if(t){return i-o}return o-i})).filter((function(e,t,r){var n=e.bounds;return n[c.crossAxisStart]===r[0].bounds[c.crossAxisStart]}));if(!d.length){return null}if(d.length===1){return d[0].droppable}var p=d.filter((function(e){var t=e.bounds;var n=(0,s.default)(t[c.start],t[c.end]);return n(r[c.line])}));if(p.length===1){return p[0].droppable}if(p.length>1){return p.sort((function(e,t){var r=e.bounds;var n=t.bounds;return r[c.start]-n[c.start]}))[0].droppable}return d.sort((function(e,t){var n=e.bounds;var a=t.bounds;var o=(0,i.closest)(r,(0,u.getCorners)(n));var s=(0,i.closest)(r,(0,u.getCorners)(a));if(o!==s){return o-s}return n[c.start]-a[c.start]}))[0].droppable}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(43);var a=r(164);t.default=function(e){var t=e.axis,r=e.pageCenter,i=e.destination,o=e.insideDestination;if(!o.length){return null}var s=(0,a.isDraggableWithin)(i.container.bounds);var u=o.filter(s).sort((function(e,a){var i=(0,n.distance)(r,e.page.withMargin.center);var o=(0,n.distance)(r,a.page.withMargin.center);if(i<o){return-1}if(o<i){return 1}return e.page.withMargin[t.start]-a.page.withMargin[t.start]}));return u.length?u[0]:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1176);var a=u(n);var i=r(1177);var o=u(i);var s=r(43);function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.pageCenter,r=e.destination,n=e.draggable,i=e.target,u=e.home,l=e.insideDestination;var c=(0,s.patch)(r.axis.line,n.page.withMargin[r.axis.size]);if(r.id===n.droppableId){return(0,a.default)({amount:c,originalIndex:u.index,target:i,insideDroppable:l,draggable:n,droppable:r})}return(0,o.default)({amount:c,pageCenter:t,target:i,insideDroppable:l,draggable:n,droppable:r})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(165);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.amount,r=e.originalIndex,n=e.target,i=e.insideDroppable,o=e.draggable,s=e.droppable;if(!n){console.error("there will always be a target in the original list");return null}var u=s.axis;var l=i.indexOf(n);if(l===-1){console.error("unable to find target in destination droppable");return null}if(l===r){var c=o.page.withoutMargin.center;var f={movement:{draggables:[],amount:t,isBeyondStartPosition:false},direction:s.axis.direction,destination:{droppableId:s.id,index:r}};return{pageCenter:c,impact:f}}var d=l>r;var p=d?"end":"start";var h=(0,a.default)({source:o.page.withoutMargin,sourceEdge:p,destination:d?n.page.withoutMargin:n.page.withMargin,destinationEdge:p,destinationAxis:u});var v=function(){if(!d){return i.slice(l,r)}var e=r+1;var t=l+1;return i.slice(e,t).reverse()}().map((function(e){return e.id}));var m={movement:{draggables:v,amount:t,isBeyondStartPosition:d},direction:u.direction,destination:{droppableId:s.id,index:l}};return{pageCenter:h,impact:m}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(165);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.amount,r=e.pageCenter,n=e.target,i=e.insideDroppable,o=e.draggable,s=e.droppable;var u=s.axis;var l=Boolean(n&&r[s.axis.line]<n.page.withMargin.center[s.axis.line]);if(!n){var c=(0,a.default)({source:o.page.withoutMargin,sourceEdge:"start",destination:s.page.withMarginAndPadding,destinationEdge:"start",destinationAxis:u});var f={movement:{draggables:[],amount:t,isBeyondStartPosition:false},direction:u.direction,destination:{droppableId:s.id,index:0}};return{pageCenter:c,impact:f}}var d=i.indexOf(n);var p=l?d:d+1;if(d===-1){console.error("could not find target inside destination");return null}var h=(0,a.default)({source:o.page.withoutMargin,sourceEdge:"start",destination:n.page.withMargin,destinationEdge:l?"start":"end",destinationAxis:u});var v=i.slice(p,i.length).map((function(e){return e.id}));var m={movement:{draggables:v,amount:t,isBeyondStartPosition:false},direction:u.direction,destination:{droppableId:s.id,index:p}};return{pageCenter:h,impact:m}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e,t,r){var n=e.onDragStart,a=e.onDragEnd;var i=t.phase;var o=r.phase;if(i===o){return}if(i==="DRAGGING"&&o!=="DRAGGING"){if(!n){return}if(!t.drag){console.error("cannot fire onDragStart hook without drag state",{current:t,previous:r});return}var s={draggableId:t.drag.current.id,type:t.drag.current.type,source:t.drag.initial.source};n(s);return}if(i==="DROP_COMPLETE"&&o!=="DROP_COMPLETE"){if(!t.drop||!t.drop.result){console.error("cannot fire onDragEnd hook without drag state",{current:t,previous:r});return}var u=t.drop.result,l=u.source,c=u.destination,f=u.draggableId,d=u.type;if(!c){a(t.drop.result);return}var p=l.droppableId!==c.droppableId||l.index!==c.index;if(p){a(t.drop.result);return}var h={draggableId:f,type:d,source:l,destination:null};a(h)}if(i==="IDLE"&&o==="DRAGGING"){if(!r.drag){console.error("cannot fire onDragEnd for cancel because cannot find previous drag");return}var v={draggableId:r.drag.current.id,type:r.drag.current.type,source:r.drag.initial.source,destination:null};a(v)}if(i==="IDLE"&&o==="DROP_ANIMATING"){if(!r.drop||!r.drop.pending){console.error("cannot fire onDragEnd for cancel because cannot find previous pending drop");return}var m={draggableId:r.drop.pending.result.draggableId,type:r.drop.pending.result.type,source:r.drop.pending.result.source,destination:null};a(m)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1180);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeSelector=undefined;var n=r(219);var a=r(166);var i=r(53);var o=f(i);var s=r(118);var u=r(634);var l=r(1181);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}var d=t.makeSelector=function e(){var t=function e(t,r){return r.droppableId};var r=function e(t,r){return r.isDropDisabled||false};var n=(0,o.default)((function(e,t){if(!t){return false}return t.droppableId===e}));var i=(0,o.default)((function(e,t){return{width:e,height:t}}));var s=(0,o.default)((function(e,t,r,n){if(!r){return null}if(r.droppableId!==e){return null}if(t.droppableId===r.droppableId){return null}if(!n){return null}var a=i(n.client.withoutMargin.width,n.client.withoutMargin.height);return a}));var l=(0,o.default)((function(e,t){return{isDraggingOver:e,placeholder:t}}));return(0,a.createSelector)([u.phaseSelector,u.dragSelector,u.draggingDraggableSelector,u.pendingDropSelector,t,r],(function(e,t,r,a,i,o){if(o){return l(false,null)}if(e==="DRAGGING"){if(!t){console.error("cannot determine dragging over as there is not drag");return l(false,null)}var u=n(i,t.impact.destination);var c=s(i,t.initial.source,t.impact.destination,r);return l(u,c)}if(e==="DROP_ANIMATING"){if(!a){console.error("cannot determine dragging over as there is no pending result");return l(false,null)}var f=n(i,a.impact.destination);var d=s(i,a.result.source,a.result.destination,r);return l(f,d)}return l(false,null)}))};var p=function e(){var t=d();return function(e,r){return t(e,r)}};t.default=(0,n.connect)(p,null,null,{storeKey:s.storeKey})(c.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(163);var a=x(n);var i=r(85);var o=x(i);var s=r(86);var u=x(s);var l=r(87);var c=x(l);var f=r(88);var d=x(f);var p=r(89);var h=x(p);var v=r(1);var m=x(v);var y=r(0);var g=x(y);var b=r(1182);var A=x(b);var _=r(636);var w=x(_);var E=r(118);function x(e){return e&&e.__esModule?e:{default:e}}var k=function(e){(0,h.default)(t,e);function t(){var e;var r,n,a;(0,u.default)(this,t);for(var i=arguments.length,s=Array(i),l=0;l<i;l++){s[l]=arguments[l]}return a=(r=(n=(0,d.default)(this,(e=t.__proto__||(0,o.default)(t)).call.apply(e,[this].concat(s))),n),n.state={ref:null},n.setRef=function(e){if(e===null){return}if(e===n.state.ref){return}n.setState({ref:e})},r),(0,d.default)(n,a)}(0,c.default)(t,[{key:"getChildContext",value:function e(){var t=(0,a.default)({},E.droppableIdKey,this.props.droppableId);return t}},{key:"getPlaceholder",value:function e(){if(!this.props.placeholder){return null}return m.default.createElement(w.default,{height:this.props.placeholder.height,width:this.props.placeholder.width})}},{key:"render",value:function e(){var t=this.props,r=t.children,n=t.direction,a=t.droppableId,i=t.ignoreContainerClipping,o=t.isDraggingOver,s=t.isDropDisabled,u=t.type;var l={innerRef:this.setRef,placeholder:this.getPlaceholder()};var c={isDraggingOver:o};return m.default.createElement(A.default,{droppableId:a,direction:n,ignoreContainerClipping:i,isDropDisabled:s,type:u,targetRef:this.state.ref},r(l,c))}}]);return t}(v.Component);k.defaultProps={type:"DEFAULT",isDropDisabled:false,direction:"vertical",ignoreContainerClipping:false};k.childContextTypes=(0,a.default)({},E.droppableIdKey,g.default.string.isRequired);t.default=k},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1183);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeSelector=undefined;var n=r(219);var a=r(166);var i=r(53);var o=f(i);var s=r(118);var u=r(1184);var l=f(u);var c=r(319);function f(e){return e&&e.__esModule?e:{default:e}}var d=function e(t){return t.dimension.request};var p=function e(t,r){return r.type};var h=t.makeSelector=function e(){var t=(0,o.default)((function(e){return{shouldPublish:e}}));return(0,a.createSelector)([p,d],(function(e,r){return t(e===r)}))};var v=function e(){var t=h();return function(e,r){return t(e,r)}};var m={publish:c.publishDroppableDimension,updateScroll:c.updateDroppableDimensionScroll,updateIsEnabled:c.updateDroppableDimensionIsEnabled};t.default=(0,n.connect)(v,m,null,{storeKey:s.storeKey})(l.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=O(n);var i=r(86);var o=O(i);var s=r(87);var u=O(s);var l=r(88);var c=O(l);var f=r(89);var d=O(f);var p=r(1);var h=r(9);var v=O(h);var m=r(635);var y=O(m);var g=r(53);var b=O(g);var A=r(318);var _=O(A);var w=r(317);var E=O(w);var x=r(316);var k=r(1185);var S=O(k);function O(e){return e&&e.__esModule?e:{default:e}}var M={x:0,y:0};var D=function(e){(0,d.default)(t,e);function t(){var e;var r,n,i;(0,o.default)(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++){u[l]=arguments[l]}return i=(r=(n=(0,c.default)(this,(e=t.__proto__||(0,a.default)(t)).call.apply(e,[this].concat(u))),n),n.isWatchingScroll=false,n.closestScrollable=null,n.getScrollOffset=function(){if(!n.closestScrollable){return M}var e={x:n.closestScrollable.scrollLeft,y:n.closestScrollable.scrollTop};return e},n.getDimension=function(){var e=n.props,t=e.droppableId,r=e.direction,a=e.ignoreContainerClipping,i=e.isDropDisabled,o=e.targetRef;if(!o){throw new Error("DimensionPublisher cannot calculate a dimension when not attached to the DOM")}var s=n.getScrollOffset();var u=window.getComputedStyle(o);var l={top:parseInt(u.marginTop,10),right:parseInt(u.marginRight,10),bottom:parseInt(u.marginBottom,10),left:parseInt(u.marginLeft,10)};var c={top:parseInt(u.paddingTop,10),right:parseInt(u.paddingRight,10),bottom:parseInt(u.paddingBottom,10),left:parseInt(u.paddingLeft,10)};var f=o.getBoundingClientRect();var d=a||!n.closestScrollable||n.closestScrollable===o?f:(0,E.default)(n.closestScrollable.getBoundingClientRect());var p=(0,x.getDroppableDimension)({id:t,direction:r,clientRect:f,containerRect:d,margin:l,padding:c,windowScroll:(0,_.default)(),scroll:s,isEnabled:!i});return p},n.memoizedUpdateScroll=(0,b.default)((function(e,t){var r={x:e,y:t};n.props.updateScroll(n.props.droppableId,r)})),n.scheduleScrollUpdate=(0,y.default)((function(e){if(n.isWatchingScroll){n.memoizedUpdateScroll(e.x,e.y)}})),n.onClosestScroll=function(){n.scheduleScrollUpdate(n.getScrollOffset())},n.watchScroll=function(){(0,v.default)(n.props.targetRef,"cannot watch scroll if not in the dom");if(n.closestScrollable==null){return}if(n.isWatchingScroll){return}n.isWatchingScroll=true;n.closestScrollable.addEventListener("scroll",n.onClosestScroll,{passive:true})},n.unwatchScroll=function(){if(!n.isWatchingScroll){return}n.isWatchingScroll=false;if(!n.closestScrollable){console.error("cannot unbind event listener if element is null");return}n.closestScrollable.removeEventListener("scroll",n.onClosestScroll)},r),(0,c.default)(n,i)}(0,u.default)(t,[{key:"componentWillUnmount",value:function e(){if(this.isWatchingScroll){this.unwatchScroll()}}},{key:"componentWillReceiveProps",value:function e(t){var r=!this.props.shouldPublish&&t.shouldPublish;var n=this.props.shouldPublish&&t.shouldPublish;var a=this.props.shouldPublish&&!t.shouldPublish;if(a){this.unwatchScroll();return}if(n){if(t.targetRef!==this.props.targetRef){if(this.isWatchingScroll){console.warn("changing targetRef while watching scroll!");this.unwatchScroll()}}if(t.isDropDisabled!==this.props.isDropDisabled){this.props.updateIsEnabled(this.props.droppableId,!t.isDropDisabled)}return}if(!r){return}this.closestScrollable=(0,S.default)(this.props.targetRef);this.props.publish(this.getDimension());this.watchScroll()}},{key:"render",value:function e(){return this.props.children}}]);return t}(p.Component);t.default=D},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function e(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++){r[n]=arguments[n]}return r.some((function(e){return e==="auto"||e==="scroll"}))};var a=function e(t){var r=window.getComputedStyle(t);return n(r.overflow,r.overflowY,r.overflowX)};var i=function e(t){if(t==null){return null}if(!a(t)){return e(t.parentElement)}return t};t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(165);var a=s(n);var i=r(117);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.movement,r=e.draggable,n=e.draggables,i=e.destination;var s=r.client.withMargin.center;if(i==null){return s}var u=t.draggables,l=t.isBeyondStartPosition;var c=i.axis;var f=i.id===r.droppableId;if(f&&!u.length){return s}var d=(0,o.default)(i,n);var p=function(){if(f){return n[u[0]].client.withMargin}if(u.length){return n[u[0]].client.withMargin}if(d.length){return d[d.length-1].client.withMargin}return i.client.withMarginAndPadding}();var h=function(){if(f){if(l){return{sourceEdge:"end",destinationEdge:"end"}}return{sourceEdge:"start",destinationEdge:"start"}}if(!u.length&&d.length){return{sourceEdge:"start",destinationEdge:"end"}}return{sourceEdge:"start",destinationEdge:"start"}}(),v=h.sourceEdge,m=h.destinationEdge;var y=r.client.withMargin;var g=(0,a.default)({source:y,sourceEdge:v,destination:p,destinationEdge:m,destinationAxis:c});return g}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=v(n);var i=r(86);var o=v(i);var s=r(87);var u=v(s);var l=r(88);var c=v(l);var f=r(89);var d=v(f);var p=r(1);var h=v(p);function v(e){return e&&e.__esModule?e:{default:e}}var m=function(e){(0,d.default)(t,e);function t(){(0,o.default)(this,t);return(0,c.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}(0,u.default)(t,[{key:"render",value:function e(){var t={width:this.props.width,height:this.props.height,pointerEvents:"none"};return h.default.createElement("div",{style:t})}}]);return t}(p.PureComponent);t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1189);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeSelector=undefined;var n=r(116);var a=v(n);var i=r(53);var o=v(i);var s=r(219);var u=r(166);var l=r(634);var c=r(1190);var f=v(c);var d=r(118);var p=r(43);var h=r(319);function v(e){return e&&e.__esModule?e:{default:e}}var m={x:0,y:0};var y={isDropAnimating:false,isDragging:false,canLift:true,canAnimate:false,offset:m,dimension:null,direction:null};var g=(0,a.default)({},y,{canLift:false});var b=t.makeSelector=function e(){var t=function e(t,r){return r.draggableId};var r=function e(t,r){return r.type||"DEFAULT"};var n=(0,o.default)((function(e,t){return{x:e,y:t}}));var a=(0,o.default)((function(e,t){return{isDropAnimating:false,isDragging:false,canAnimate:true,canLift:t,offset:e,dimension:null,direction:null}}));var i=(0,o.default)((function(e,t,r){var i=t.draggables.indexOf(e)!==-1;if(!i){return a(m,r)}var o=t.isBeyondStartPosition?(0,p.negate)(t.amount):t.amount;return a(n(o.x,o.y),r)}));var s=function e(t,r){if(!t.dimension){return null}var n=t.dimension.draggable[r.draggableId];if(!n){return null}return n};return(0,u.createSelector)([t,r,l.phaseSelector,l.dragSelector,l.pendingDropSelector,s],(function(e,t,r,n,a,o){if(r==="DRAGGING"){if(!n){console.error("invalid dragging state");return y}var s=n.current,u=n.impact;if(s.type!==t){return y}if(s.id!==e){return i(e,u.movement,false)}var l=s.client.offset;var c=s.shouldAnimate;return{isDragging:true,canLift:false,isDropAnimating:false,canAnimate:c,offset:l,dimension:o,direction:u.direction}}if(r==="DROP_ANIMATING"){if(!a){console.error("cannot animate drop without a pending drop");return y}if(t!==a.result.type){return y}if(a.result.draggableId!==e){var f=a.trigger==="DROP";return i(e,a.impact.movement,f)}return{isDragging:false,isDropAnimating:true,canAnimate:true,offset:a.newHomeOffset,canLift:false,dimension:o,direction:null}}if(r==="PREPARING"||r==="COLLECTING_DIMENSIONS"){return g}return y}))};var A=function e(){var t=b();return function(e,r){return t(e,r)}};var _={lift:h.lift,move:h.move,moveForward:h.moveForward,moveBackward:h.moveBackward,crossAxisMoveForward:h.crossAxisMoveForward,crossAxisMoveBackward:h.crossAxisMoveBackward,moveByWindowScroll:h.moveByWindowScroll,drop:h.drop,dropAnimationFinished:h.dropAnimationFinished,cancel:h.cancel};t.default=(0,s.connect)(A,_,null,{storeKey:d.storeKey})(f.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.zIndexOptions=undefined;var n=r(163);var a=R(n);var i=r(85);var o=R(i);var s=r(86);var u=R(s);var l=r(87);var c=R(l);var f=r(88);var d=R(f);var p=r(89);var h=R(p);var v=r(1);var m=R(v);var y=r(0);var g=R(y);var b=r(53);var A=R(b);var _=r(9);var w=R(_);var E=r(1191);var x=R(E);var k=r(1194);var S=R(k);var O=r(1204);var M=R(O);var D=r(638);var T=r(318);var L=R(T);var C=r(641);var j=R(C);var N=r(636);var I=R(N);var P=r(118);function R(e){return e&&e.__esModule?e:{default:e}}var F=t.zIndexOptions={dragging:5e3,dropAnimating:4500};var Y=function(e){(0,h.default)(t,e);function t(e,r){(0,u.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,r));n.state={ref:null};n.onMoveEnd=function(){if(!n.props.isDropAnimating){return}n.props.dropAnimationFinished()};n.onLift=function(e){n.throwIfCannotDrag();var t=e.client,r=e.isScrollAllowed;var a=n.props,i=a.lift,o=a.draggableId,s=a.type;var u=n.state.ref;if(!u){throw new Error("cannot lift at this time")}var l={selection:t,center:(0,j.default)(u)};var c=(0,L.default)();i(o,s,l,c,r)};n.onMove=function(e){n.throwIfCannotDrag();var t=n.props,r=t.draggableId,a=t.dimension,i=t.move;if(!a){return}var o=(0,L.default)();i(r,e,o)};n.onMoveForward=function(){n.throwIfCannotDrag();n.props.moveForward(n.props.draggableId)};n.onMoveBackward=function(){n.throwIfCannotDrag();n.props.moveBackward(n.props.draggableId)};n.onCrossAxisMoveForward=function(){n.throwIfCannotDrag();n.props.crossAxisMoveForward(n.props.draggableId)};n.onCrossAxisMoveBackward=function(){n.throwIfCannotDrag();n.props.crossAxisMoveBackward(n.props.draggableId)};n.onWindowScroll=function(){n.throwIfCannotDrag();var e=(0,L.default)();n.props.moveByWindowScroll(n.props.draggableId,e)};n.onDrop=function(){n.throwIfCannotDrag();n.props.drop()};n.onCancel=function(){n.props.cancel()};n.setRef=function(e){if(e===null){return}if(e===n.state.ref){return}n.setState({ref:e})};n.getDraggableRef=function(){return n.state.ref};n.getDraggingStyle=(0,A.default)((function(e,t,r,n,a,i){var o={position:"fixed",boxSizing:"border-box",pointerEvents:"none",zIndex:a?F.dropAnimating:F.dragging,width:e,height:t,top:r,left:n,margin:0,transform:i.transform?""+i.transform:null,WebkitTouchCallout:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",touchAction:"none"};return o}));n.getNotDraggingStyle=(0,A.default)((function(e,t,r){var n={transition:e?D.css.outOfTheWay:null,transform:t.transform,pointerEvents:r?"auto":"none",WebkitTouchCallout:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",touchAction:"none"};return n}));n.getProvided=(0,A.default)((function(e,t,r,a,i,o,s){var u=e||t;var l=function(){if(!u){return n.getNotDraggingStyle(a,s,r)}(0,w.default)(i,"draggable dimension required for dragging");var e=i.client.withoutMargin,o=e.width,l=e.height,c=e.top,f=e.left;return n.getDraggingStyle(o,l,c,f,t,s)}();var c={innerRef:n.setRef,placeholder:u?n.getPlaceholder():null,dragHandleProps:o,draggableStyle:l};return c}));n.getSnapshot=(0,A.default)((function(e,t){return{isDragging:e||t}}));n.getSpeed=(0,A.default)((function(e,t,r){if(!r){return"INSTANT"}if(t){return"STANDARD"}if(e){return"FAST"}return"INSTANT"}));var a={onLift:n.onLift,onMove:n.onMove,onDrop:n.onDrop,onCancel:n.onCancel,onMoveBackward:n.onMoveBackward,onMoveForward:n.onMoveForward,onCrossAxisMoveForward:n.onCrossAxisMoveForward,onCrossAxisMoveBackward:n.onCrossAxisMoveBackward,onWindowScroll:n.onWindowScroll};n.callbacks=a;return n}(0,c.default)(t,[{key:"throwIfCannotDrag",value:function e(){(0,w.default)(this.state.ref,"Draggable: cannot drag as no DOM node has been provided");(0,w.default)(!this.props.isDragDisabled,"Draggable: cannot drag as dragging is not enabled")}},{key:"getPlaceholder",value:function e(){var t=this.props.dimension;(0,w.default)(t,"cannot get a drag placeholder when not dragging");return m.default.createElement(I.default,{height:t.page.withMargin.height,width:t.page.withMargin.width})}},{key:"render",value:function e(){var t=this;var r=this.props,n=r.draggableId,a=r.type,i=r.offset,o=r.isDragging,s=r.isDropAnimating,u=r.canLift,l=r.canAnimate,c=r.isDragDisabled,f=r.dimension,d=r.children,p=r.direction;var h=this.getSpeed(o,s,l);return m.default.createElement(x.default,{draggableId:n,droppableId:this.context[P.droppableIdKey],type:a,targetRef:this.state.ref},m.default.createElement(S.default,{speed:h,destination:i,onMoveEnd:this.onMoveEnd},(function(e){return m.default.createElement(M.default,{isDragging:o,direction:p,isEnabled:!c,canLift:u,callbacks:t.callbacks,getDraggableRef:t.getDraggableRef},(function(r){return d(t.getProvided(o,s,u,l,f,r,e),t.getSnapshot(o,s))}))})))}}]);return t}(v.Component);Y.defaultProps={isDragDisabled:false,type:"DEFAULT"};Y.contextTypes=(0,a.default)({},P.droppableIdKey,g.default.string.isRequired);t.default=Y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1192);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeSelector=undefined;var n=r(219);var a=r(53);var i=f(a);var o=r(166);var s=r(118);var u=r(319);var l=r(1193);var c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}var d=function e(t){return t.dimension.request};var p=function e(t,r){return r.type};var h=t.makeSelector=function e(){var t=(0,i.default)((function(e){return{shouldPublish:e}}));return(0,o.createSelector)([p,d],(function(e,r){return t(e===r)}))};var v=function e(){var t=h();return function(e,r){return t(e,r)}};var m={publish:u.publishDraggableDimension};t.default=(0,n.connect)(v,m,null,{storeKey:s.storeKey})(c.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=b(n);var i=r(86);var o=b(i);var s=r(87);var u=b(s);var l=r(88);var c=b(l);var f=r(89);var d=b(f);var p=r(1);var h=r(9);var v=b(h);var m=r(318);var y=b(m);var g=r(316);function b(e){return e&&e.__esModule?e:{default:e}}var A=function(e){(0,d.default)(t,e);function t(){var e;var r,n,i;(0,o.default)(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++){u[l]=arguments[l]}return i=(r=(n=(0,c.default)(this,(e=t.__proto__||(0,a.default)(t)).call.apply(e,[this].concat(u))),n),n.getDimension=function(){var e=n.props,t=e.draggableId,r=e.droppableId,a=e.targetRef;(0,v.default)(a,"DraggableDimensionPublisher cannot calculate a dimension when not attached to the DOM");var i=window.getComputedStyle(a);var o={top:parseInt(i.marginTop,10),right:parseInt(i.marginRight,10),bottom:parseInt(i.marginBottom,10),left:parseInt(i.marginLeft,10)};var s=a.getBoundingClientRect();var u=(0,g.getDraggableDimension)({id:t,droppableId:r,clientRect:s,margin:o,windowScroll:(0,y.default)()});return u},r),(0,c.default)(n,i)}(0,u.default)(t,[{key:"componentWillReceiveProps",value:function e(t){var r=!this.props.shouldPublish&&t.shouldPublish;if(r){this.props.publish(this.getDimension())}}},{key:"render",value:function e(){return this.props.children}}]);return t}(p.Component);t.default=A},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1195);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=y(n);var i=r(86);var o=y(i);var s=r(87);var u=y(s);var l=r(88);var c=y(l);var f=r(89);var d=y(f);var p=r(1);var h=y(p);var v=r(1196);var m=r(638);function y(e){return e&&e.__esModule?e:{default:e}}var g={x:0,y:0};var b={transform:null};var A=function e(t){return t.x===g.x&&t.y===g.y};var _=function e(t,r,n){if(t){return b}var a={x:r,y:n};if(A(a)){return b}var i={transform:"translate("+a.x+"px, "+a.y+"px)"};return i};var w=function(e){(0,d.default)(t,e);function t(){var e;var r,n,i;(0,o.default)(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++){u[l]=arguments[l]}return i=(r=(n=(0,c.default)(this,(e=t.__proto__||(0,a.default)(t)).call.apply(e,[this].concat(u))),n),n.onRest=function(){var e=n.props.onMoveEnd;if(!e){return}setTimeout((function(){return e()}))},n.getFinal=function(){var e=n.props.destination;var t=n.props.speed;if(t==="INSTANT"){return e}var r=t==="FAST"?m.physics.fast:m.physics.standard;return{x:(0,v.spring)(e.x,r),y:(0,v.spring)(e.y,r)}},r),(0,c.default)(n,i)}(0,u.default)(t,[{key:"render",value:function e(){var t=this;var r=this.getFinal();var n=A(r);return h.default.createElement(v.Motion,{defaultStyle:g,style:r,onRest:this.onRest},(function(e){return t.props.children(_(n,e.x,e.y))}))}}]);return t}(p.Component);w.defaultProps={destination:g};t.default=w},function(e,t,r){"use strict";t.__esModule=true;function n(e){return e&&e.__esModule?e["default"]:e}var a=r(1197);t.Motion=n(a);var i=r(1199);t.StaggeredMotion=n(i);var o=r(1200);t.TransitionMotion=n(o);var s=r(1202);t.spring=n(s);var u=r(637);t.presets=n(u);var l=r(208);t.stripStyle=n(l);var c=r(1203);t.reorderKeys=n(c)},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var u=r(320);var l=i(u);var c=r(208);var f=i(c);var d=r(321);var p=i(d);var h=r(322);var v=i(h);var m=r(63);var y=i(m);var g=r(323);var b=i(g);var A=r(1);var _=i(A);var w=r(0);var E=i(w);var x=1e3/60;var k=function(e){s(t,e);a(t,null,[{key:"propTypes",value:{defaultStyle:E["default"].objectOf(E["default"].number),style:E["default"].objectOf(E["default"].oneOfType([E["default"].number,E["default"].object])).isRequired,children:E["default"].func.isRequired,onRest:E["default"].func},enumerable:true}]);function t(r){var a=this;o(this,t);e.call(this,r);this.wasAnimating=false;this.animationID=null;this.prevTime=0;this.accumulatedTime=0;this.unreadPropStyle=null;this.clearUnreadPropStyle=function(e){var t=false;var r=a.state;var i=r.currentStyle;var o=r.currentVelocity;var s=r.lastIdealStyle;var u=r.lastIdealVelocity;for(var l in e){if(!Object.prototype.hasOwnProperty.call(e,l)){continue}var c=e[l];if(typeof c==="number"){if(!t){t=true;i=n({},i);o=n({},o);s=n({},s);u=n({},u)}i[l]=c;o[l]=0;s[l]=c;u[l]=0}}if(t){a.setState({currentStyle:i,currentVelocity:o,lastIdealStyle:s,lastIdealVelocity:u})}};this.startAnimationIfNecessary=function(){a.animationID=y["default"]((function(e){var t=a.props.style;if(b["default"](a.state.currentStyle,t,a.state.currentVelocity)){if(a.wasAnimating&&a.props.onRest){a.props.onRest()}a.animationID=null;a.wasAnimating=false;a.accumulatedTime=0;return}a.wasAnimating=true;var r=e||v["default"]();var n=r-a.prevTime;a.prevTime=r;a.accumulatedTime=a.accumulatedTime+n;if(a.accumulatedTime>x*10){a.accumulatedTime=0}if(a.accumulatedTime===0){a.animationID=null;a.startAnimationIfNecessary();return}var i=(a.accumulatedTime-Math.floor(a.accumulatedTime/x)*x)/x;var o=Math.floor(a.accumulatedTime/x);var s={};var u={};var l={};var c={};for(var f in t){if(!Object.prototype.hasOwnProperty.call(t,f)){continue}var d=t[f];if(typeof d==="number"){l[f]=d;c[f]=0;s[f]=d;u[f]=0}else{var h=a.state.lastIdealStyle[f];var m=a.state.lastIdealVelocity[f];for(var y=0;y<o;y++){var g=p["default"](x/1e3,h,m,d.val,d.stiffness,d.damping,d.precision);h=g[0];m=g[1]}var A=p["default"](x/1e3,h,m,d.val,d.stiffness,d.damping,d.precision);var _=A[0];var w=A[1];l[f]=h+(_-h)*i;c[f]=m+(w-m)*i;s[f]=h;u[f]=m}}a.animationID=null;a.accumulatedTime-=o*x;a.setState({currentStyle:l,currentVelocity:c,lastIdealStyle:s,lastIdealVelocity:u});a.unreadPropStyle=null;a.startAnimationIfNecessary()}))};this.state=this.defaultState()}t.prototype.defaultState=function e(){var t=this.props;var r=t.defaultStyle;var n=t.style;var a=r||f["default"](n);var i=l["default"](a);return{currentStyle:a,currentVelocity:i,lastIdealStyle:a,lastIdealVelocity:i}};t.prototype.componentDidMount=function e(){this.prevTime=v["default"]();this.startAnimationIfNecessary()};t.prototype.componentWillReceiveProps=function e(t){if(this.unreadPropStyle!=null){this.clearUnreadPropStyle(this.unreadPropStyle)}this.unreadPropStyle=t.style;if(this.animationID==null){this.prevTime=v["default"]();this.startAnimationIfNecessary()}};t.prototype.componentWillUnmount=function e(){if(this.animationID!=null){y["default"].cancel(this.animationID);this.animationID=null}};t.prototype.render=function e(){var t=this.props.children(this.state.currentStyle);return t&&_["default"].Children.only(t)};return t}(_["default"].Component);t["default"]=k;e.exports=t["default"]},function(e,t,r){(function(t){(function(){var r,n,a,i,o,s;if(typeof performance!=="undefined"&&performance!==null&&performance.now){e.exports=function(){return performance.now()}}else if(typeof t!=="undefined"&&t!==null&&t.hrtime){e.exports=function(){return(r()-o)/1e6};n=t.hrtime;r=function(){var e;e=n();return e[0]*1e9+e[1]};i=r();s=t.uptime()*1e9;o=i-s}else if(Date.now){e.exports=function(){return Date.now()-a};a=Date.now()}else{e.exports=function(){return(new Date).getTime()-a};a=(new Date).getTime()}}).call(this)}).call(this,r(126))},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var u=r(320);var l=i(u);var c=r(208);var f=i(c);var d=r(321);var p=i(d);var h=r(322);var v=i(h);var m=r(63);var y=i(m);var g=r(323);var b=i(g);var A=r(1);var _=i(A);var w=r(0);var E=i(w);var x=1e3/60;function k(e,t,r){for(var n=0;n<e.length;n++){if(!b["default"](e[n],t[n],r[n])){return false}}return true}var S=function(e){s(t,e);a(t,null,[{key:"propTypes",value:{defaultStyles:E["default"].arrayOf(E["default"].objectOf(E["default"].number)),styles:E["default"].func.isRequired,children:E["default"].func.isRequired},enumerable:true}]);function t(r){var a=this;o(this,t);e.call(this,r);this.animationID=null;this.prevTime=0;this.accumulatedTime=0;this.unreadPropStyles=null;this.clearUnreadPropStyle=function(e){var t=a.state;var r=t.currentStyles;var i=t.currentVelocities;var o=t.lastIdealStyles;var s=t.lastIdealVelocities;var u=false;for(var l=0;l<e.length;l++){var c=e[l];var f=false;for(var d in c){if(!Object.prototype.hasOwnProperty.call(c,d)){continue}var p=c[d];if(typeof p==="number"){if(!f){f=true;u=true;r[l]=n({},r[l]);i[l]=n({},i[l]);o[l]=n({},o[l]);s[l]=n({},s[l])}r[l][d]=p;i[l][d]=0;o[l][d]=p;s[l][d]=0}}}if(u){a.setState({currentStyles:r,currentVelocities:i,lastIdealStyles:o,lastIdealVelocities:s})}};this.startAnimationIfNecessary=function(){a.animationID=y["default"]((function(e){var t=a.props.styles(a.state.lastIdealStyles);if(k(a.state.currentStyles,t,a.state.currentVelocities)){a.animationID=null;a.accumulatedTime=0;return}var r=e||v["default"]();var n=r-a.prevTime;a.prevTime=r;a.accumulatedTime=a.accumulatedTime+n;if(a.accumulatedTime>x*10){a.accumulatedTime=0}if(a.accumulatedTime===0){a.animationID=null;a.startAnimationIfNecessary();return}var i=(a.accumulatedTime-Math.floor(a.accumulatedTime/x)*x)/x;var o=Math.floor(a.accumulatedTime/x);var s=[];var u=[];var l=[];var c=[];for(var f=0;f<t.length;f++){var d=t[f];var h={};var m={};var y={};var g={};for(var b in d){if(!Object.prototype.hasOwnProperty.call(d,b)){continue}var A=d[b];if(typeof A==="number"){h[b]=A;m[b]=0;y[b]=A;g[b]=0}else{var _=a.state.lastIdealStyles[f][b];var w=a.state.lastIdealVelocities[f][b];for(var E=0;E<o;E++){var S=p["default"](x/1e3,_,w,A.val,A.stiffness,A.damping,A.precision);_=S[0];w=S[1]}var O=p["default"](x/1e3,_,w,A.val,A.stiffness,A.damping,A.precision);var M=O[0];var D=O[1];h[b]=_+(M-_)*i;m[b]=w+(D-w)*i;y[b]=_;g[b]=w}}l[f]=h;c[f]=m;s[f]=y;u[f]=g}a.animationID=null;a.accumulatedTime-=o*x;a.setState({currentStyles:l,currentVelocities:c,lastIdealStyles:s,lastIdealVelocities:u});a.unreadPropStyles=null;a.startAnimationIfNecessary()}))};this.state=this.defaultState()}t.prototype.defaultState=function e(){var t=this.props;var r=t.defaultStyles;var n=t.styles;var a=r||n().map(f["default"]);var i=a.map((function(e){return l["default"](e)}));return{currentStyles:a,currentVelocities:i,lastIdealStyles:a,lastIdealVelocities:i}};t.prototype.componentDidMount=function e(){this.prevTime=v["default"]();this.startAnimationIfNecessary()};t.prototype.componentWillReceiveProps=function e(t){if(this.unreadPropStyles!=null){this.clearUnreadPropStyle(this.unreadPropStyles)}this.unreadPropStyles=t.styles(this.state.lastIdealStyles);if(this.animationID==null){this.prevTime=v["default"]();this.startAnimationIfNecessary()}};t.prototype.componentWillUnmount=function e(){if(this.animationID!=null){y["default"].cancel(this.animationID);this.animationID=null}};t.prototype.render=function e(){var t=this.props.children(this.state.currentStyles);return t&&_["default"].Children.only(t)};return t}(_["default"].Component);t["default"]=S;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var u=r(320);var l=i(u);var c=r(208);var f=i(c);var d=r(321);var p=i(d);var h=r(1201);var v=i(h);var m=r(322);var y=i(m);var g=r(63);var b=i(g);var A=r(323);var _=i(A);var w=r(1);var E=i(w);var x=r(0);var k=i(x);var S=1e3/60;function O(e,t,r){var n=t;if(n==null){return e.map((function(e,t){return{key:e.key,data:e.data,style:r[t]}}))}return e.map((function(e,t){for(var a=0;a<n.length;a++){if(n[a].key===e.key){return{key:n[a].key,data:n[a].data,style:r[t]}}}return{key:e.key,data:e.data,style:r[t]}}))}function M(e,t,r,n){if(n.length!==t.length){return false}for(var a=0;a<n.length;a++){if(n[a].key!==t[a].key){return false}}for(var a=0;a<n.length;a++){if(!_["default"](e[a],t[a].style,r[a])){return false}}return true}function D(e,t,r,n,a,i,o,s,u){var c=v["default"](n,a,(function(e,n){var a=t(n);if(a==null){r({key:n.key,data:n.data});return null}if(_["default"](i[e],a,o[e])){r({key:n.key,data:n.data});return null}return{key:n.key,data:n.data,style:a}}));var f=[];var d=[];var p=[];var h=[];for(var m=0;m<c.length;m++){var y=c[m];var g=null;for(var b=0;b<n.length;b++){if(n[b].key===y.key){g=b;break}}if(g==null){var A=e(y);f[m]=A;p[m]=A;var w=l["default"](y.style);d[m]=w;h[m]=w}else{f[m]=i[g];p[m]=s[g];d[m]=o[g];h[m]=u[g]}}return[c,f,d,p,h]}var T=function(e){s(t,e);a(t,null,[{key:"propTypes",value:{defaultStyles:k["default"].arrayOf(k["default"].shape({key:k["default"].string.isRequired,data:k["default"].any,style:k["default"].objectOf(k["default"].number).isRequired})),styles:k["default"].oneOfType([k["default"].func,k["default"].arrayOf(k["default"].shape({key:k["default"].string.isRequired,data:k["default"].any,style:k["default"].objectOf(k["default"].oneOfType([k["default"].number,k["default"].object])).isRequired}))]).isRequired,children:k["default"].func.isRequired,willEnter:k["default"].func,willLeave:k["default"].func,didLeave:k["default"].func},enumerable:true},{key:"defaultProps",value:{willEnter:function e(t){return f["default"](t.style)},willLeave:function e(){return null},didLeave:function e(){}},enumerable:true}]);function t(r){var a=this;o(this,t);e.call(this,r);this.unmounting=false;this.animationID=null;this.prevTime=0;this.accumulatedTime=0;this.unreadPropStyles=null;this.clearUnreadPropStyle=function(e){var t=D(a.props.willEnter,a.props.willLeave,a.props.didLeave,a.state.mergedPropsStyles,e,a.state.currentStyles,a.state.currentVelocities,a.state.lastIdealStyles,a.state.lastIdealVelocities);var r=t[0];var i=t[1];var o=t[2];var s=t[3];var u=t[4];for(var l=0;l<e.length;l++){var c=e[l].style;var f=false;for(var d in c){if(!Object.prototype.hasOwnProperty.call(c,d)){continue}var p=c[d];if(typeof p==="number"){if(!f){f=true;i[l]=n({},i[l]);o[l]=n({},o[l]);s[l]=n({},s[l]);u[l]=n({},u[l]);r[l]={key:r[l].key,data:r[l].data,style:n({},r[l].style)}}i[l][d]=p;o[l][d]=0;s[l][d]=p;u[l][d]=0;r[l].style[d]=p}}}a.setState({currentStyles:i,currentVelocities:o,mergedPropsStyles:r,lastIdealStyles:s,lastIdealVelocities:u})};this.startAnimationIfNecessary=function(){if(a.unmounting){return}a.animationID=b["default"]((function(e){if(a.unmounting){return}var t=a.props.styles;var r=typeof t==="function"?t(O(a.state.mergedPropsStyles,a.unreadPropStyles,a.state.lastIdealStyles)):t;if(M(a.state.currentStyles,r,a.state.currentVelocities,a.state.mergedPropsStyles)){a.animationID=null;a.accumulatedTime=0;return}var n=e||y["default"]();var i=n-a.prevTime;a.prevTime=n;a.accumulatedTime=a.accumulatedTime+i;if(a.accumulatedTime>S*10){a.accumulatedTime=0}if(a.accumulatedTime===0){a.animationID=null;a.startAnimationIfNecessary();return}var o=(a.accumulatedTime-Math.floor(a.accumulatedTime/S)*S)/S;var s=Math.floor(a.accumulatedTime/S);var u=D(a.props.willEnter,a.props.willLeave,a.props.didLeave,a.state.mergedPropsStyles,r,a.state.currentStyles,a.state.currentVelocities,a.state.lastIdealStyles,a.state.lastIdealVelocities);var l=u[0];var c=u[1];var f=u[2];var d=u[3];var h=u[4];for(var v=0;v<l.length;v++){var m=l[v].style;var g={};var b={};var A={};var _={};for(var w in m){if(!Object.prototype.hasOwnProperty.call(m,w)){continue}var E=m[w];if(typeof E==="number"){g[w]=E;b[w]=0;A[w]=E;_[w]=0}else{var x=d[v][w];var k=h[v][w];for(var T=0;T<s;T++){var L=p["default"](S/1e3,x,k,E.val,E.stiffness,E.damping,E.precision);x=L[0];k=L[1]}var C=p["default"](S/1e3,x,k,E.val,E.stiffness,E.damping,E.precision);var j=C[0];var N=C[1];g[w]=x+(j-x)*o;b[w]=k+(N-k)*o;A[w]=x;_[w]=k}}d[v]=A;h[v]=_;c[v]=g;f[v]=b}a.animationID=null;a.accumulatedTime-=s*S;a.setState({currentStyles:c,currentVelocities:f,lastIdealStyles:d,lastIdealVelocities:h,mergedPropsStyles:l});a.unreadPropStyles=null;a.startAnimationIfNecessary()}))};this.state=this.defaultState()}t.prototype.defaultState=function e(){var t=this.props;var r=t.defaultStyles;var n=t.styles;var a=t.willEnter;var i=t.willLeave;var o=t.didLeave;var s=typeof n==="function"?n(r):n;var u=undefined;if(r==null){u=s}else{u=r.map((function(e){for(var t=0;t<s.length;t++){if(s[t].key===e.key){return s[t]}}return e}))}var c=r==null?s.map((function(e){return f["default"](e.style)})):r.map((function(e){return f["default"](e.style)}));var d=r==null?s.map((function(e){return l["default"](e.style)})):r.map((function(e){return l["default"](e.style)}));var p=D(a,i,o,u,s,c,d,c,d);var h=p[0];var v=p[1];var m=p[2];var y=p[3];var g=p[4];return{currentStyles:v,currentVelocities:m,lastIdealStyles:y,lastIdealVelocities:g,mergedPropsStyles:h}};t.prototype.componentDidMount=function e(){this.prevTime=y["default"]();this.startAnimationIfNecessary()};t.prototype.componentWillReceiveProps=function e(t){if(this.unreadPropStyles){this.clearUnreadPropStyle(this.unreadPropStyles)}var r=t.styles;if(typeof r==="function"){this.unreadPropStyles=r(O(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles))}else{this.unreadPropStyles=r}if(this.animationID==null){this.prevTime=y["default"]();this.startAnimationIfNecessary()}};t.prototype.componentWillUnmount=function e(){this.unmounting=true;if(this.animationID!=null){b["default"].cancel(this.animationID);this.animationID=null}};t.prototype.render=function e(){var t=O(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles);var r=this.props.children(t);return r&&E["default"].Children.only(r)};return t}(E["default"].Component);t["default"]=T;e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t["default"]=n;function n(e,t,r){var n={};for(var a=0;a<e.length;a++){n[e[a].key]=a}var i={};for(var a=0;a<t.length;a++){i[t[a].key]=a}var o=[];for(var a=0;a<t.length;a++){o[a]=t[a]}for(var a=0;a<e.length;a++){if(!Object.prototype.hasOwnProperty.call(i,e[a].key)){var s=r(a,e[a]);if(s!=null){o.push(s)}}}return o.sort((function(e,r){var a=i[e.key];var o=i[r.key];var s=n[e.key];var u=n[r.key];if(a!=null&&o!=null){return i[e.key]-i[r.key]}else if(s!=null&&u!=null){return n[e.key]-n[r.key]}else if(a!=null){for(var l=0;l<t.length;l++){var c=t[l].key;if(!Object.prototype.hasOwnProperty.call(n,c)){continue}if(a<i[c]&&u>n[c]){return-1}else if(a>i[c]&&u<n[c]){return 1}}return 1}for(var l=0;l<t.length;l++){var c=t[l].key;if(!Object.prototype.hasOwnProperty.call(n,c)){continue}if(o<i[c]&&s>n[c]){return 1}else if(o>i[c]&&s<n[c]){return-1}}return-1}))}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};t["default"]=u;function a(e){return e&&e.__esModule?e:{default:e}}var i=r(637);var o=a(i);var s=n({},o["default"].noWobble,{precision:.01});function u(e,t){return n({},s,t,{val:e})}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t["default"]=a;var n=false;function a(){if(false){}}e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1205);Object.defineProperty(t,"default",{enumerable:true,get:function e(){return a(n).default}});function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(85);var a=w(n);var i=r(86);var o=w(i);var s=r(87);var u=w(s);var l=r(88);var c=w(l);var f=r(89);var d=w(f);var p=r(1);var h=r(53);var v=w(h);var m=r(1206);var y=w(m);var g=r(1207);var b=w(g);var A=r(1208);var _=w(A);function w(e){return e&&e.__esModule?e:{default:e}}var E=function e(){return false};var x=function(e){(0,d.default)(t,e);function t(){var e;var r,n,i;(0,o.default)(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++){u[l]=arguments[l]}return i=(r=(n=(0,c.default)(this,(e=t.__proto__||(0,a.default)(t)).call.apply(e,[this].concat(u))),n),n.mouseSensor=(0,y.default)(n.props.callbacks,n.props.getDraggableRef),n.keyboardSensor=(0,b.default)(n.props.callbacks,n.props.getDraggableRef),n.touchSensor=(0,_.default)(n.props.callbacks,n.props.getDraggableRef),n.sensors=[n.mouseSensor,n.keyboardSensor,n.touchSensor],n.onKeyDown=function(e){if(n.mouseSensor.isCapturing()){return}n.keyboardSensor.onKeyDown(e,n.props)},n.onMouseDown=function(e){if(n.keyboardSensor.isCapturing()){return}n.mouseSensor.onMouseDown(e,n.props)},n.onTouchStart=function(e){if(n.mouseSensor.isCapturing()||n.keyboardSensor.isCapturing()){console.error("mouse or keyboard already listening when attempting to touch drag");return}n.touchSensor.onTouchStart(e,n.props)},n.onTouchMove=function(e){n.touchSensor.onTouchMove(e)},n.onClick=function(e){n.mouseSensor.onClick(e);n.touchSensor.onClick(e)},n.isAnySensorDragging=function(){return n.sensors.some((function(e){return e.isDragging()}))},n.isAnySensorCapturing=function(){return n.sensors.some((function(e){return e.isCapturing()}))},n.getProvided=(0,v.default)((function(e,t){if(!e){return null}var r={onMouseDown:n.onMouseDown,onKeyDown:n.onKeyDown,onTouchStart:n.onTouchStart,onTouchMove:n.onTouchMove,onClick:n.onClick,tabIndex:0,"aria-grabbed":t,draggable:false,onDragStart:E,onDrop:E};return r})),r),(0,c.default)(n,i)}(0,u.default)(t,[{key:"componentWillUnmount",value:function e(){var t=this;this.sensors.forEach((function(e){var r=e.isCapturing();var n=e.isDragging();if(r){e.kill()}if(n){t.props.callbacks.onCancel()}}))}},{key:"componentWillReceiveProps",value:function e(t){var r=this;var n=this.isAnySensorCapturing();if(!n){return}var a=this.props.isDragging&&!t.isDragging;if(a){this.sensors.forEach((function(e){if(e.isCapturing()){e.kill()}}));return}if(!t.isEnabled){this.sensors.forEach((function(e){if(e.isCapturing()){var t=e.isDragging();e.kill();if(t){r.props.callbacks.onCancel()}}}))}}},{key:"render",value:function e(){var t=this.props,r=t.children,n=t.isEnabled;return r(this.getProvided(n,this.isAnySensorDragging()))}}]);return t}(p.Component);t.default=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(115);var a=A(n);var i=r(116);var o=A(i);var s=r(209);var u=A(s);var l=r(324);var c=A(l);var f=r(639);var d=A(f);var p=r(325);var h=A(p);var v=r(326);var m=b(v);var y=r(640);var g=A(y);function b(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function A(e){return e&&e.__esModule?e:{default:e}}var _=0;var w=function e(){};t.default=function(e,t){var r={isDragging:false,pending:null,preventClick:false};var n=function e(t){var n=(0,o.default)({},r,t);r=n};var i=function e(){return r.isDragging};var s=function e(){return Boolean(r.pending||r.isDragging)};var l=(0,c.default)(e,i);var f=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:w;n({pending:null,isDragging:true,preventClick:true});t()};var p=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:w;S();n({isDragging:false,pending:null});t()};var v=function e(t){n({pending:t,isDragging:false});k()};var y=function e(){n({preventClick:false});p()};var b=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:w;if(r.pending){y();return}p(t)};var A=function t(){b(e.onCancel)};var E={mousemove:function t(n){var a=n.button,i=n.clientX,o=n.clientY;if(a!==_){return}var s={x:i,y:o};if(r.isDragging){l.move(s);return}if(!r.pending){console.error("invalid state");return}if(!(0,d.default)(r.pending,s)){return}f((function(){return e.onLift({client:s,isScrollAllowed:true})}))},mouseup:function t(){if(r.pending){y();return}p(e.onDrop)},mousedown:function t(){p(e.onCancel)},keydown:function e(t){if(t.keyCode===m.escape){(0,u.default)(t);A();return}(0,g.default)(t)},resize:A,scroll:function e(){if(r.pending){y();return}l.windowScrollMove()},webkitmouseforcechanged:function e(t){if(t.webkitForce==null||MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN==null){console.error("handling a mouse force changed event when it is not supported");return}var r=MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN;var n=t.webkitForce>=r;if(n){A()}}};var x=(0,a.default)(E);var k=function e(){var r=(0,h.default)(t());x.forEach((function(e){if(e==="scroll"){r.addEventListener(e,E.scroll,{passive:true});return}r.addEventListener(e,E[e])}))};var S=function e(){var r=(0,h.default)(t());x.forEach((function(e){return r.removeEventListener(e,E[e])}))};var O=function e(t,r){if(!r.canLift){return}if(s()){console.error("should not be able to perform a mouse down while a drag or pending drag is occurring");A();return}var n=t.button,a=t.clientX,i=t.clientY;if(n!==_){return}(0,u.default)(t);var o={x:a,y:i};v(o)};var M=function e(t){if(!r.preventClick){return}n({preventClick:false});(0,u.default)(t)};var D={onMouseDown:O,onClick:M,kill:b,isCapturing:s,isDragging:i};return D}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(115);var a=g(n);var i=r(209);var o=g(i);var s=r(324);var u=g(s);var l=r(640);var c=g(l);var f=r(326);var d=y(f);var p=r(325);var h=g(p);var v=r(641);var m=g(v);function y(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function g(e){return e&&e.__esModule?e:{default:e}}var b=function e(){};t.default=function(e,t){var r={isDragging:false};var n=function e(t){r=t};var i=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:b;n({isDragging:true});_();t()};var s=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:b;w();n({isDragging:false});t()};var l=function e(){return s()};var f=function t(){s(e.onCancel)};var p=function e(){return r.isDragging};var v=(0,u.default)(e,p);var y=function r(n,a){var u=a.canLift,l=a.direction;if(!p()){if(!u){return}if(n.keyCode!==d.space){return}(0,o.default)(n);var h=t();if(!h){console.error("cannot start a keyboard drag without a draggable ref");return}var y=(0,m.default)(h);i((function(){return e.onLift({client:y,isScrollAllowed:false})}));return}if(!l){console.error("cannot handle keyboard event if direction is not provided");(0,o.default)(n);f();return}if(n.keyCode===d.escape){(0,o.default)(n);f();return}if(n.keyCode===d.space){(0,o.default)(n);s(e.onDrop);return}var g=function e(t){if(l==="vertical"){t.vertical();return}t.horizontal()};if(n.keyCode===d.arrowDown){(0,o.default)(n);g({vertical:v.moveForward,horizontal:v.crossAxisMoveForward});return}if(n.keyCode===d.arrowUp){(0,o.default)(n);g({vertical:v.moveBackward,horizontal:v.crossAxisMoveBackward});return}if(n.keyCode===d.arrowRight){(0,o.default)(n);g({vertical:v.crossAxisMoveForward,horizontal:v.moveForward});return}if(n.keyCode===d.arrowLeft){(0,o.default)(n);g({vertical:v.crossAxisMoveBackward,horizontal:v.moveBackward})}(0,c.default)(n)};var g={mousedown:f,resize:f,scroll:f};var A=(0,a.default)(g);var _=function e(){var r=(0,h.default)(t());A.forEach((function(e){r.addEventListener(e,g[e])}))};var w=function e(){var r=(0,h.default)(t());A.forEach((function(e){r.removeEventListener(e,g[e])}))};var E={onKeyDown:y,kill:l,isDragging:p,isCapturing:p};return E}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.forcePressThreshold=t.timeForLongPress=undefined;var n=r(115);var a=v(n);var i=r(116);var o=v(i);var s=r(209);var u=v(s);var l=r(324);var c=v(l);var f=r(639);var d=v(f);var p=r(325);var h=v(p);function v(e){return e&&e.__esModule?e:{default:e}}var m=t.timeForLongPress=200;var y=t.forcePressThreshold=.15;var g=function e(){};var b={isDragging:false,pending:null,hasMoved:false,preventClick:false,longPressTimerId:null};t.default=function(e,t){var r=b;var n=function e(t){r=(0,o.default)({},r,t)};var i=function e(){return r.isDragging};var s=function e(){return Boolean(r.pending||r.isDragging||r.longPressTimerId)};var l=(0,c.default)(e,i);var f=function t(){if(r.longPressTimerId){clearTimeout(r.longPressTimerId)}var a=r.pending;if(!r.pending){console.error("cannot start a touch drag without a pending position");_();return}n({isDragging:true,hasMoved:false,pending:null,longPressTimerId:null});e.onLift({client:a,isScrollAllowed:false})};var p=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:g;S();n((0,o.default)({},b,{preventClick:true}));t()};var v=function e(t){var r=t.touches[0];var a=r.clientX,i=r.clientY;var o={x:a,y:i};var s=setTimeout(f,m);n({longPressTimerId:s,pending:o,isDragging:false,hasMoved:false});k()};var A=function e(){clearTimeout(r.longPressTimerId);S();n(b)};var _=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:g;if(r.pending){A();return}p(t)};var w=function t(){_(e.onCancel)};var E={touchmove:function e(t){var a=t.touches[0],i=a.clientX,o=a.clientY;var s={x:i,y:o};(0,u.default)(t);if(!r.hasMoved){n({hasMoved:true})}if(r.pending){if(!(0,d.default)(r.pending,s)){return}f();return}l.move(s)},touchend:function t(n){if(r.pending){A();return}p(e.onDrop);(0,u.default)(n)},touchcancel:function e(){if(r.pending){A();return}w()},touchstart:function e(){if(i()){console.error("touch start fired while already dragging");w()}},orientationchange:w,resize:w,scroll:w,contextmenu:u.default,keydown:w,touchforcechange:function e(t){if(r.hasMoved){return}var n=t.touches[0];if(n.force>=y){w()}}};var x=(0,a.default)(E);var k=function e(){var r=(0,h.default)(t());x.forEach((function(e){var t=E[e];if(e==="touchmove"){r.addEventListener(e,t,{passive:false});return}r.addEventListener(e,t)}))};var S=function e(){var r=(0,h.default)(t());x.forEach((function(e){return r.removeEventListener(e,E[e])}))};var O=function e(t,r){if(!r.canLift){return}if(s()){console.error("should not be able to perform a touch start while a drag or pending drag is occurring");w();return}t.stopPropagation();v(t)};var M=function e(t){if(s()){t.preventDefault()}};var D=function e(t){if(!r.preventClick){return}(0,u.default)(t);n(b)};var T={onTouchStart:O,onTouchMove:M,onClick:D,kill:_,isCapturing:s,isDragging:i};return T}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"41.66739",height:"49.79988",viewBox:"0 0 41.66739 49.79988","aria-hidden":"true"},n.createElement("title",null,"Apply Icon"),n.createElement("g",null,n.createElement("path",{d:"M38.97923,20.60587a3.1833,3.1833,0,0,0-4.332,0L23.33308,31.71167V2.91584C23.33308,1.31208,22.43745,0,20.83369,0s-2.49938,1.31208-2.49938,2.91584V31.71167L7.0202,20.60587a3.05228,3.05228,0,0,0-4.22789,0,2.925,2.925,0,0,0-.05208,4.12374L18.78063,40.796c.0061.0061-.00539.01464.00071.02075a2.92278,2.92278,0,0,0,4.121,0c.0061-.0061.006-.01464.0121-.02075L38.98,24.7296A2.92444,2.92444,0,0,0,38.97923,20.60587Z"}),n.createElement("rect",{x:"17.91775",y:"26.05024",width:"5.83189",height:"41.66739",rx:"1.16667",ry:"1.16667",transform:"translate(-26.05024 67.71763) rotate(-90)"})))};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"48",width:"48",viewBox:"0 0 48 48","aria-hidden":"true"},n.createElement("title",null,"Refresh Icon"),n.createElement("path",{d:"M24 40q-6.65 0-11.325-4.675Q8 30.65 8 24q0-6.65 4.675-11.325Q17.35 8 24 8q4.25 0 7.45 1.725T37 14.45V8h3v12.7H27.3v-3h8.4q-1.9-3-4.85-4.85Q27.9 11 24 11q-5.45 0-9.225 3.775Q11 18.55 11 24q0 5.45 3.775 9.225Q18.55 37 24 37q4.15 0 7.6-2.375 3.45-2.375 4.8-6.275h3.1q-1.45 5.25-5.75 8.45Q29.45 40 24 40Z"}))};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=r(642);function i(){return n.createElement("div",{className:"list-loading"},n.createElement(a.default,null)," Loading...")}t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(1213);var o=r(13);var s=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return a.createElement(o.Button,{className:"load-more-button",disabled:this.props.isFetching,callback:this.props.loadMore,content:this.props.isFetching?a.createElement(i.default,null):"Load more"})};return t}(a.Component);t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1);var a=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48.55458",height:"8.74913",viewBox:"0 0 48.55458 8.74913","aria-hidden":"true"},n.createElement("title",null,"More Dots Icon"),n.createElement("g",null,n.createElement("circle",{cx:"4.37456",cy:"4.37456",r:"4.37456"}),n.createElement("circle",{cx:"24.27729",cy:"4.37456",r:"4.37456"}),n.createElement("circle",{cx:"44.18002",cy:"4.37456",r:"4.37456"})))};t.default=a},function(e,t,r){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n};Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(13);var o=r(328);var s=r(1224);var u=r(19);var l=[{value:null,label:"Relevance"},{value:"title",label:"Title"},{value:"author",label:"Author"}];var c=function(e){var t=e.autoUpdate,r=e.entryPoints,c=e.isOwner,f=e.library,d=e.listId,p=e.searchParams,h=e.showAutoUpdate,v=e.startingTitle,m=e.updateAutoUpdate,y=e.updateSearchParam,g=e.search,b=e.addAdvSearchQuery,A=e.updateAdvSearchQueryBoolean,_=e.moveAdvSearchQuery,w=e.removeAdvSearchQuery,E=e.selectAdvSearchQuery;var x;a.useEffect((function(){var e,t;if(v){(e=b)===null||e===void 0?void 0:e("include",{key:"title",op:"eq",value:v});(t=g)===null||t===void 0?void 0:t()}}),[]);var k=!c;var S=r.includes("All")?r:n(["All"],r);var O=p.entryPoint.toLowerCase();var M=function(e){var t=p.advanced[e];return a.createElement(o.default,{isOwner:c,name:e,query:t.query,selectedQueryId:t.selectedQueryId,addQuery:b,updateQueryBoolean:A,moveQuery:_,removeQuery:w,selectQuery:E})};var D=a.createElement("div",{className:"search-titles"},a.createElement("div",{className:"entry-points"},a.createElement("span",null,"Search for:"),a.createElement("div",{className:"entry-points-selection"},S.map((function(e){return a.createElement(u.default,{disabled:k,key:e,type:"radio",name:"entry-points-selection",checked:e.toLowerCase()===O,label:e,value:e,onChange:function(){var t;return(t=y)===null||t===void 0?void 0:t("entryPoint",e)}})})))),a.createElement("div",{className:"search-options"},a.createElement("span",null,"Sort by:"),a.createElement("div",{className:"search-options-selection"},l.map((function(e){var t=e.value,r=e.label;return a.createElement(u.default,{disabled:k,key:t,type:"radio",name:"sort-selection",value:t,label:r,checked:t===p.sort,onChange:function(){var e;return(e=y)===null||e===void 0?void 0:e("sort",t)}})}))),a.createElement("aside",null,'Results can be sorted by attributes that are enabled in this library\'s Lanes & Filters configuration. Selecting "Title" or "Author" will automatically filter out less relevant results.')),a.createElement("div",{className:"search-builders"},a.createElement(i.Panel,{headerText:"Works to include",id:"search-filters-include",openByDefault:true,content:M("include")}),a.createElement(i.Panel,{headerText:"Works to exclude",id:"search-filters-exclude",openByDefault:false,content:M("exclude")})),a.createElement("div",{key:"query-viewer"},a.createElement(s.default,{library:(x=f)===null||x===void 0?void 0:x.short_name,searchParams:p})),h&&a.createElement("div",{className:"auto-update"},a.createElement("span",null,"Use search to:"),a.createElement("div",{className:"auto-update-selection"},a.createElement("div",null,a.createElement(u.default,{disabled:k||!!d,type:"radio",name:"auto-update",checked:t,label:"Automatically update this list",onChange:function(){var e;return(e=m)===null||e===void 0?void 0:e(true)}}),a.createElement("aside",null,"The system will periodically execute this search and automatically update the list with the results.",!k&&"The search results below represent the titles that would be in the list if it were updated now, but the actual contents of the list will change over time.")),a.createElement("div",null,a.createElement(u.default,{disabled:k||!!d,type:"radio",name:"auto-update",checked:!t,label:"Manually select titles",onChange:function(){var e;return(e=m)===null||e===void 0?void 0:e(false)}}),a.createElement("aside",null,"The list entries are manually selected."," ",!k&&"Move the desired titles from the search results column on the left to the column on the right to add them to the list. ","Titles may be removed from the list automatically if they become unavailable, but the list is otherwise fixed.")))));return a.createElement(i.Panel,{headerText:"Search for titles",id:"search-titles",openByDefault:true,onEnter:g,content:D})};t.default=c},function(e,t,r){"use strict";
|
|
372
372
|
/** @license React v16.14.0
|
|
373
373
|
* react-jsx-runtime.production.min.js
|
|
374
374
|
*
|