@thepalaceproject/circulation-admin 0.0.6 → 0.0.7

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.
@@ -23,7 +23,7 @@ a.version="2.29.1";i(Qr);a.fn=li;a.min=$r;a.max=en;a.now=tn;a.utc=v;a.unix=ci;a.
23
23
  object-assign
24
24
  (c) Sindre Sorhus
25
25
  @license MIT
26
- */var n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,s,u=o(e),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))a.call(r,c)&&(u[c]=r[c]);if(n){s=n(r);for(var f=0;f<s.length;f++)i.call(r,s[f])&&(u[s[f]]=r[s[f]])}}return u}},function(e,t,r){var n={"./Button":1,"./Button.tsx":1,"./Fieldset":4,"./Fieldset.tsx":4,"./Form":5,"./Form.tsx":5,"./Header":3,"./Header.tsx":3,"./Input":6,"./Input.tsx":6,"./Panel":2,"./Panel.tsx":2,"./Tabs":7,"./Tabs.tsx":7,"./logo.png":15};function a(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}a.keys=function(){return Object.keys(n)},a.resolve=i,e.exports=a,a.id=14},function(e,t,r){"use strict";r.r(t),t.default="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4QQIACoNMCJcPQAAIABJREFUeNrt3X1wFHd+5/Fv9zxIamQJEDPTkpBACDGjGYlnDAbxbMDGPHv3bGfjvdqq3Upqr877cLmtXDaXS2VTdZe93KWyV+ekNlvZVPZ2y3fJ8oxtnp8xzw9mpqWREOAZNGppJJAQ6hHz8Ov7gx/rQbYxhhbqnvm8q/SXBeX5zfSLX/d0/35ECCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhL4oAUOARrtw/HgdEVUk+vWLM6cuGcCIIICFTFXFPKqrW0bLy2rELUUlwgIiKk0N0akDf53ZcLuFejFCCGChUW3acue0umWOlWU1ts1FJcKLOqPSdFInnT34705JoI6rmU27//O9HRgt9HnZMQRohJHyZSE1T2dUkk7qlNT0z/yuzogySX0MRg0BLPQ8kaqvW+Z4uazGtonPpIq/CKnPiWEEEcBCI41UIAupeTqjMV8BKYQAFhpxpBrqljlWZSFVBKQQwEJmQqqxbpljNUdqrs6oEEghgIXMhNT0umWOV8pqbBuLSoQ5OqMCIIUAFjITUjPqljnWltXYNhSVCLN1Rk4jkLI7H9xJk04COwSw0LMhNYsjtZ4j5TACKZuTSBQFEkT6RG1OHyOilKvW9lYmTUUYdQSw0BM1rsomuKbaZtUtc7xWVmNbx5GyG4zUjXh75li8LbO1/UTqVCyY7iEiev1/Fl8fX237y8+ZaYl4ZxDAQg+Rsg1DapbOyGYwUu3x9szReFtmW/uJ1EexYPozj9p0t2b2ebz2R8CyOwWyOYV7eJcQwMpvpOwcqXVZSAkGI3Ut3p45zJE6HQum7zzuz13dnbzs8dr+tKzGtllnVCqIlOluSx/9eMf9g3jH0BeFZwlztIoGu0MqE2d5Vzg2lNXYXisqEWbq7MHFbv0Z7yXPQqo13p45xJE6Ewum+5/i/1NgjEpFkTKxYBorNSCAlUdIOWubHHNcdbYNrlrbqzqjGUSGI9USb88c5EidiwXTd3Ni8EorZCKyUX+sA58kgIVGDqkCjtQmV61tjc5oOmM6ZZLP/ndnIaVwpLa2n0idjwXTuXGdqbSiksrqFtML7s00xrWQRJuN4q1/Q+G9/x2fLICFjEOqsLbJMc9VZ9voqrWt1hk1jgBSwXh75kC8LbOdz6S0HEGqisrqmjhSTUR6Oek6EUs/+O+Ooh66+tsA9ce68UkzX7jobh2kimqbHC9ypFbpjBoYM+Zu8yykrsbbM3vjbZmdHKmhHEGqms+kttAY1yIi3UO6Tp8rPEsT6bqETxzAQl8dqTHDZlJ+I5ASxE/vOBdEuhJvz3wQb8vsaj+RuhALpu/nxOC5vZPI5V1CUtkWchQtJNLdX4jUo+n8BwEs9ARIFXOkNrtqbS/rjOqNREoQSU/c1a90hdN77nay3RypVI4gNZlc3qUcqZeIdBexNBlyrowAFvodUi/w072HSHkNRool7uqXu8Lp3W1HUrvj1zKX7kQz6RxBqoZc3uUklW0mR9ECIn0CkAJYyHikSmqbHPNddbYtrlrb8hFAKs2R2tV2JLWHI5Ubq3m6vbXDkBpvIFIi4fEggIWIKhrspbVNjgUcqWU6o2kGI5VK3NUvcqTej1/LXL4TzeTG9Ri3t44jtYkjNW6EZlI2/oMAVl4iNa62yfESP91bpjOaajBSycRd/TxH6oPWw8krOTN4bu+0YTOpUpzuASxkPFJlHKlNHKlag5Ea4kjtaDuS2tt6OHk1h5Dyksu7gl84f5FILzEEKUEgEu1ERD1EdIWIJhJLe0nHF4IAKz+RmjBsJlVjMFIaR2p725HU/tbDyWAOIeUjl3dlFlLFhiAl2h9ARUI3pRKnaKBrK3W3HKd4601yTSulyQuPkc0xfRhaAuGGaoCVo0i5s65JLdUZTTYYqXscqW1tR1IHWg8nlRxCqp5c3lX8dG/uCCCl0mD8FA10b6XetuPUH4s88nvx1n5yeQ/QuOrplH3rmSCIJAj38ekGWLmE1EJXne11V61tic6o2mCk7ibu6uc4UgdbDydbcgipALm8q0kq28iRGmMwUjEajJ/kSJ2g/titx/65wfgvqESeTzann0gvJBLuUSb1C0rfxwPQJg1T3ydDSq5tciziM6nFOqMqI57dy0KqP3FXP9N7I7OdI9WaQ0g1kMu7JgupIv74i1FI3aLB+IkspDq/0t9TNM5GzqJJpOtFJAj3qD/2yWgNVVVVdSMRvaBp2pne3p4MjjyA9VWQKq9tcjRxpJp0RhMNRuoOR2pb25HU4dbDybYcQqpxGFKFBiMVocH4cRro3saR6rLqUPkDDY1+f+AVt9uzUZKkuURUkEwmf/Wb3/zqOz3xOE5NcUr4WKQqa5sci/mF80U6o0qDT/duJ+7qH/HTvSOth5PtOYTUjGFIOQ0+3btJg/FjHKlTVl5NwR9omMGR2iBJ0lzGmDOdTtP9+w98KigoeLuwsPCnRBTEUQmwhiNVxZHaxGdS5QYj1ZO4q5/qCqe3th1JHWs9nLyRY0itJalsAzmK5hDpDoORukGD8SMcqY+oP9ZjYaRm+v2BVzlScxhjjmyksmOM6bquF4AngEVERNOWO6vrljkWOwqFLR6vbZHOyGMEUlnLtHQPQ+qTnBg4abxAxa6ZWUjNJtLtBiPVzpHaSr1tp6k/dtuKQ1VWNkHwyPJMvz+wliM1mzFm/yKkhoUVI/IdLI7U0rIa25aiEmGhzshtMFKd8fbMKb4q5/FYMB3NEaREjtQ6ksrWk6No5ggg1ZqF1Fnqj92xKFIiR2qd2+1ZL0nSLMaY7QmRQgCLaMl3i9bWNjm+5ZSEJTojt8E7xXTE2zMn+frmx2PBdG58HS6Nt1Gxaxa5vOtJKnuNI2UzGKkwDcYPc6TOUH/MkmvDl5VNsHlkeZbfH1jvdnvWSZI0A0gBrK/chjdXOAtXHvn7cS7nt1JDhiJ1K96eOc6ROhELpjtzYsCk8XYqds3mSK0lR9EsIl0wGKlmGowfpIHu7RwpS64NX1Y2we6R5dl+f2CD2+15lc+kBCAFsJ66mVucX2tPCt96FqiykIrw3Yu3tZ9InYwF0105MUilFQ4qq5tLRaXrOFIzifj65sYhpdBgfD9H6hz1xwatOFRVVdUOr69+7tixY9dzpGYyxghIASxDesEtrtIj9JVXNspC6ibfvXgr3xg0NzYlKK0ooLK62fSCewONcb1KpM8gIqORCtJgfC8NdO/kSCUsilSB11c/R5bL18uy/Cpj7MG2aQYgZbfbiTFGjDEoBLCIWJoqngKp68OQ6smJwSitKORIbaIxrleI9MYnXN/8qyB1lQbjH9JA9w7qbbtA/TFLbmBRVVVdyJHaKMvyK4yxRl3XDZlF2e12EgSBRFEM37p168S4sWNdBYWF6zOZDG7gznewiOhL72MRRCJHoRCNt2f2ZSF1OydefWlFEZXVzeFIrSHSGwxB6tNlWohIuEKD8Q/4TOoC9ccsuVBVVVV1EUdqkyzLaxhjDSOAVLOqqgdUtXNbuKX5XDQauUdE9N1/9842u92+SceKEXkPlv5lWCUH6dLxv0usbTuaVHMIqRc5UquI9ICxSAk6pRKXaKDrA+pu2UnJe5eoP2bJDSyqqqolr69+HkdqFWMsMAJIhVRV3a+qndvDLc3no9HIZ67fdXd3fThlSu2mRCIx/M9r4Cm/wHr8aaBdoIHujGJ5rEorxlBZ3Ty+595KIt1vMFIZjtT7FA/vonvxS6TdtuSDuVVV1WM4UltkWV7JGPOPAFJXVVXdx5G6EI1GHnv97uLF8+9JkjTX7fbMZ4yNEUVxSFU7fz00NNQGngDW70ondSr321ZOXeKsu3bMYg8el1YUU1ndfD6TWkmk1xuMVJpSiYs00LWL4uH3OVK6RZEq9vrq58ty+WZZllcwxuqNQEoQBLLbHxw+oiheUVV1r6p27uBIPfFffr29vf96e/t3qqqqnUxnY0RBvB+NRjC7AlifLZnQ5cV/WPh/79/TN0YvpqImR6pkGFJeg5FKUSpxgQa6dlI8/AF1hy9b9X2tqqou4Uht4jMpr5FIiaJImqZdjsU63u/r69vNT/ee6dQ4Go0kiQiL1QOsL05nRDY7zXr5j4o+bD9hf/vYu4mLJkOqlCO1mca4VhDp0wxG6j5HagfFw3upO2zZDSyqqqpLvb76BRypFYyxaQYjpWuadikW69ijKKHdXap6sbe3Jw1CANZzLZMmEkTyN6x1Hix4QfiT87+5//ejujVWacU4fuF8C0dqqsFIJThS2zlSll3CpKqqepzXV/8ivya1gjE21WCkMhypXYoS2tOlqpettrBeVVV1CRF5BwYG2vr67vQBrByZaSXu6mNr5jvenTjDvrH9ROovjr2bOPWckXqJI7WMSK81GKlBSiXO85nUPuoOhyyM1Hg+k9oiy/IyxlitwUilOFI7FSX0PkdKt9gYlXp99S89nG0SUV1vb+/ZH/7gnfWNjY3dACtHSg3pJIi0pn61c0Vtk2Nr+4nUz6/uSh69E81kRgCpsiyklhLpUwxG6h6lEmf5TOoAdYebLYxUGT8At8iyvJQxNsVgpJKapl3gM6n3lVDwigXH6LGzzYKCghclaYyfiABWrs22kpruEER6o361843JCxzne29kfhs+lNqr9bJQLJhOPgNSE6isbiFHagmRXmMwUnc5UtsoHj5E3eEWCyM1weurX8gPwCWMsRqDkRriSO1QlNCHSih41aJIvfQks81ceQwIYD0eLrI7aW5lo31uZaP9LwWRQl3hzOXUkH4yfCil3IuzTiKKq0r68Uuj1C5bQcWut/np3mSDkeqnVOI0DXRtpXj4CHWHWy2MlDsLqcWMsckGI5XQNO0cR2qfEgoGLThG2bPNJUadEgOsHIIrNaQTEdmIaPqEWnG6KArfrGy0ExHdIaK4o1Do2fqje9/uDKYfPe0aWz2OfGv+gUTH66QzI5G6TanEmSykrlkYKY/XV7+I3ye1hDFWbTBSgxypbYoSOqiEgiELjtEEjtRmPpOqySekANYzlEkSZT596mcc/5mmM6ogokfBmrTgL0i0v/5MUH2KVA+fSW3jSF23MFLlw073JhqM1ABHaquihA4poWCzBcco+5R4qVGzTYCFfmfZsOtVEhVPWE1Pc8nr0S3WH57uHaXu8E0LI1XBZ1IPT/cqDUaqX9O0s3wmdUgJBcMWPiV+nY/RJCAFsJ7TuaReRrpe+hRIddGAepJYejtHKmJhpCq9vvrFHKkmxli5wUjd4UhtVZTQYSUUbLPgGI3IKTHAQl+1AnqCJW4enPI51GEbg1p2A4uqquqqLKQWjgBStzVN+ygW69jOkWq34BjJWbNNw06JARYa2QSBKJP6LV0/9n3qDt+y6svwBxqq/f7AUqfTubmionIhY8xjMFI9mqad4kgdUUJBy+3tyK/bNWXNNoEUwLJYop2oL/prK2LlDzRM9vsDS91uzyZJkhYyxtxGHIBZy7R0c6S2KUromBIK3rTwKfEmjlQlkAJY1o2liUoqvkZE2yyCVA1HajNHaoJR65tzpFRVVU+paufWcEvz8Wg0Yrnrd1VV1ROHzaTKgRTAyo10nche8BZ515yh8N6fmRSpWo7UFkmSXmKMjTcYqZiqqic5Uiei0YjlZptZ1+1el2V5kVGnxAhgma9MSqAJdX9DRDqF9/4vkyA11e8PLONILWCMjTMYqVuqqp7gSJ2MRiMxC54Sj8h1OwSwzF96SKSyKT+jmf9mCn1y+k/pTmRwFA7AOr8/sJwjNZ8xNtZgpCKqqh7nmzCciEYjltvbkV+3W8zHyLDrdghgWXGmRSSVfZ+mrV5EPdf+E7UfOfgcDsBpfn9gJb8m9SJjrNRgpG6qqnqMI3UqGo1YbqWArC8Xthh53Q4BrNxASxDmkce/lyZM/Rfqufa31H7ktMEHoC8LqXmMsRKDkbqhquoRjtRH0WjEcns78i8XlvMxWgCkABb6oh6s5GAjQXiTPP6v0/iao6T1/vpZnh8sK5tQOGfO3K97fb63CwoKX2KMFRuMVDtHamu4pflMNBrptSBStfy63WYjv1xAACu/4LLZV1Bp5QoqnXibJi28TFrvcUr0n6ae1k+IqJPudj522duamimu9Rs2ved0Olckk0kjkWpTVfUwR+psNBq5Y0GkRuTLBQSw8hyuFBHR+E/xqiSS/YNE1EkkxGlAvUN65jTdOPFfabD3kY0RFi9Z+sd2u33FsxyE2VusZyF1JhqN3LUgUiPy5QICWOiL8SIiGkNEU4loKhW7iezOWRQ997+J6PbDX5hYVSW63Z5lT3MwDtti/SDfGPTMwy3WLYbUNL8/sIKf7s036ssFBLDQ08TSRBlBI13XH/VNL2aMvfAUSClZW6yf+7wt1i2AlJcjtYV/A1oCpAAWMndO/vPYBEEgp9PZoqrqHlXt3MmRSlgQqYffgD5EqhhIASxknQT+81isUqnUewcO7PuOEgpa8XSv3u8PrOIPYc8DUgAL5fIHwG6nTz65ud9KWPkDDYFh95KNAVIAC+VB6XSaKisn/n5NzZR/unHjumn3geJIrc6aSRUBKYCF8ixd16mwsHD54iVLf3rjxvU/MhlSDX5/YA1Hag6QQgALUSqVovHjy/7DO9/7obhr5/b/eOPG9cxo/H/wLdZnjh07do3b7VkpSdIMxlgBkEIACz1SJpMhm832g3XrN0w5ePDAO0oo+FwWz+OPxLzodDpfq6ionM8Ym/rwVBVIIYA1QrF0bqAlCOLGdes2vDh1at1PTp44/sve3p4hg2dRBcUvFDcGAo0r3G7PK5IkzWSMjcMyLQhgPcdKykXqbrX+69B1nRKJRPnUqXXvTpo06dvNzc0/C7c074hGI33PgNQkr69+uiyXr+UrcjYQkYBZFAJYo5R3haPg2tFkzryeVCpFgiDOnj59xj/NnDnrmqqqWy9cOPvbewP3LkWjkdSXAOXx+uqnjR07dqnb7VkhSVIDY8yFWRQCWOY5JRRy7TXpuk6pVIqIaKrL5frRq6+u+5EoildisY5zQ0ND54go2nHrVqJy4sQSIppIRPWyXN4oSVItY2wiEa5FIYCFRqF0+ncX6WZ4PPIMQRC+TUQ0eXLNZ34PQJk2y/+jCrAMSsyjkczCC1nlQH+wIe0dy78OvJXGFD6USmIUkNmQerhLUXv7tf+jaYMhgIWIiOhuJ2MYBWQmpPgGIA+3UlO3bf1X678+vMU4JUQ5g1QkC6lTVtxKDWAhlNtIWX4rNYCFUG4jdWPYTKonb8YAH4Ocei9tGIacRurhVmofWXErNYCFsvvS1UWR5ZDK3u/xdDQauY1/lRFCZkLqmqqqh/gGIKetuN8jwEIot5Fq5TOpbfx0rx+jA7AQMhNSlt+UFmAhlPtIHeAzqbPRaGQAowOwEDITUs1ZSJ2z4s7ZAAuh3EZKGYbUIEYHYCFkJqRCqqru59/unbXiztkAC6HcRiqoqupejtQFIAWwEDIbUldVVf1QVTt3cKSGMDoAC6FRTRAEstsfHB6iKF7hSO3kSGFJVYCFkDmQEkWRNE27HIt1fNjX17cz3NJ8/ss23kAAC6HniZSuadqVWKxjj6KEdnap6sXe3h6sBQ2wEDIVUpdisY7dihLa1aWql4EUwELITEhlspDa06Wql3p7ezIYIYCFkFmQSmuadpGf7u3mSOkYIYCFkFmQSvGZ1E5FCb2vhIKXMDoACyGzIXUhC6krGB2AhZCZkEpqmnY+FuvYoSihvUAKYCFkNqSGOFI7FSX0oRIKXsXoACyEzIRUgp/ubeczqSBGB2AhZI4Ppt1ONpstoWnaOY7UPiUUDGFkABZCpsrhcNzq7u7+Hxcvnt+nhIIKRgQBLGTWmRVrbQ1/e/euHXsxGmh4IoYgZ0oTkeXv2BYEIXHu3JnreDsRwMrtdP6TC7Ms7GCNABZCyOL/mGEIEMrdqqqqJxDR1IGBgda+vjuW3+oeYCGUe0i5vb76hbJcvlmW5aVENKm3t/fSD3/wztrGxkYVYCFkXIxy5Frcc0bK4/XVN8ly+SZZlpcwxqp1Xaf79x+s5lxQUDBLksZMISKAhZCBZSgHvu18TkiVc6Q2y7K8mDE2MRupR/4VYIwYYwJOCRFCzxOpSq+vfjGfSTUxxiq/CKlcDGAhZH6kqjhSm2VZXsQYK88npAAWQibPH2io9vsDS51O56aKispFjDFPviIFsBAyJ1KT/f7AUrfbs1mSpJcYY24gBbAQMhNSNX5/YFkWUhPS6TSQAljIIuXMI0aPQarW7w8sd7s9mzhS44EUwELWLM1/cg2pOo7UZkmS5jPGxgEpgIWQmZCa5vcHVvKZ1HzGWCmQAlgImQkpH0dqsyRJ8xhjJUAKYCFkJqTq/f7AKrfbs1GSpBcZY8VACmAhZCakAn5/YDVHai5jbAyQAlgImQmpBr8/sCYLqSIgBbAQMhNSjX5/4FW327NBkqQ5jLFCIAWwEHrYqN/W4A80zPD7A2vdbs96jpQTSAEshD6vUblx1B9omJWF1GzGmANIASyETFFZ2QTRI8sz/f7AOrfbs06SpFmMMXuOI2XHC0DIOkjZPLI8y+8PrHe7Pa9JkjSTMWbLo5kUFvBDyMxVVVXbi18onh0ING5wuz1rOVICTvcAFkJmQcrp9dXPkeXyDbIsv8oYm0FEBKQAFkJmQaqAI7VJluU1jLHpWEsKYCE00j3xJhRVVdVFWUitZow1AimAhdDzjGUymfRjkJK8vvp5HKlVjLEAkAJYCI1WJaWlY4vUzs5spIq9vvq5sly+RZbllYwxP5ACWAiNeul0etzLL6/+M13X/3pi5cSKisqJX+NI+YAUAljIVOm6Tjab7Tvr1m14g4hKgBQCWMj0aKVSqRKMBBqeiCFACAEshBACWAghgIUQQgArb9IxBAgBLKuUxhAg0x7ookiiKFr+eMdtDQjlaIIgkN1uJ1EU6d69e0c0bTAMsBBCZkRK1zTtUizW8YGihHbFOjrO/fIf/4EBLISQWZBKa5p2MRbr2KMooT1dqnq5t7cnk0uvFWAhZG2k7nOkdipK6EMlFLycy68bYCFkPaQ0TdPOc6T2KaHg1XwZA4CFkDWQGtA07Vws1rFdUUIHlVBQycfxAFgImRepPk3TzsZiHdsUJXRYCQXD+T42AAshcyHVq2naaY7UUSUUvIbRAVj5UoZwQ6t5Dz67nQRBIFEUuzRN+4gjdVwJBW9gdABWPjYq276jJ0IqpqrqSVXt3BZuaT4RjUaiGB2AhZCZkIqoqnqCI3UyGo10YnQAFkJmQuqGqqrHOFIfRaORbowOwELITEhdU1X1qKp2bg23NJ+JRiO9GB2AhZCZkAqrqnqYz6TORKORfowOwELITEgpqqoeUNXO7eGW5nPRaOQeRgdgITSqPbxHiohIFMWrqqruU9XOHeGW5vPRaCSBEQJYCJkCKb5My5VYrOODvr6+XeGW5ovRaAQbJQIshEyDVIavJbVHUUK7+TItuAEXYCFkGqSSfJmWXYoS+oAjhZtuARZCpkEqoWnahVisYwdfpuVjjA7AQshMSN3ja0ltV5TQASUUDGF0ABZCZkKqny/Tsl1RQoeUULAFowOw0OiW4T9A6gFStzVNOxOLdWzly7S04SMCsJB5Yvwn/z7En97I2Z21ltQxJRS8jo8FwELITEh1xmIdp5LJ5MO1pCIYHYCFkJmQujVsmZYOjA7AQshMSN1UVfU4R+pUNBrpwugALIRGvawL5+18mZZt4Zbm09FopAejA7AQMhVWmUzmqKKE/oojdQejggAWMuspYP/evR98O9zSjN1i0GcSMQTIZPX19/dhVoUAFrLGWaHNZsPnEgEshBDAQgiZNH+gYeYbb/7e79VMqfXnwuvBRXeEcqiysgmCR5Zn+v2BV9xuzwZJkmYzxpxr17rUH3z/nYVTp9ZaeldpgIWQ9ZGyeWR5lt8feM3t9qyTJGkmY8yeTqfp/v0HqzmnUilZ1/UaIgJYCKHnW1VVtdPrq589duzY9W6351WOlJCN1Odk+YfjAdbIpfMfhIxCqsjrq58jy+UbZFlewxibTkT0JUjlVABr5ErzH4SeBalir69+riyXb5Jl+WXGWEDX9bwBCmAhZH6kSry++vkcqRWMMV8+IwWwEDIfUuM5UptlWV7GGKsDUgBrJMP1KvRVkXJ5ffUv8ZnUUsbYFCAFsJ5XGQwBegKkZK+vfiGfSS1mjE0CUgALITMhNdHrq1/EkVrEGJsIpAAWQqbJH2iY5PcHFjudzs0VFZULGWMykAJYCJkJqSl+f2Cp2+3ZLEnSAsaYC0gBLITMhFSd3x9Y7nZ7NkmSNJ8xNj6fbuQEWAiZHymf3x9YwWdSLzLGSoAUwELITEgF/P7AKrfbs1GSpLmMsWIgBbAQMhNS0/3+wBq+TMscxlgRkAJYCJmirLWkXnW7PesfriUFpAAWQmZBys6RWud2e16TJGkWY8wGpAAWQqaIryU1h68l9coTriWFABZCzw2pIr5My8O1pBqJ8mstKYCFkLmRKvb66udlrSXlx42cAMusJfH25iVSpVlrSS3HWlIAyyphuZf8QWq811e/gCOFtaQAFkKmQ8o9bC2pGiAFsBB67qXT6fQXIFU+bC2paiAFsBAavfN4XXfPmzffv3vXjpMcqYleX30Tn0k1McYqgRTAQsgss6vCadO877351u//KxFVTpw4cTHWkkIAC5m2VCo1sby8/PtEBKQQwEKWmGlhENBnEvHaEEI4qEe/Aby9CAEsa7wwO+3It7Mo/oMQwLJabUdS2+1Oasuj91In3N2PAJY1+/mf77/bdoz9maNQwLuMUI4c7zl9Yfqjd/X30kn6uQ3fhaI8ThAEcjgcuiAI3QDL5O3/qfY9xoTdQAvlIVJUUFAwoOvs8MdXLr85dWpt0OqvK+cP4+jF1ND+n2pvrPqR9I+OQnojNYTLPCh3kbIwxsNZAAAF/UlEQVTb7SSK4h1N087EYh3bFSV0RAkFw7nyGvNi3hG9mNL2/1T7xvy3C0JlNbYfp4b0Ap3hA45y4AC220kQBBJFsVvTtI84UseUUPB6Tr7efHljoxdTmejF1E+WfLfoSG2T4785JWFhakgnwIUsjFSHqqonVbVze7il+WQ0Gonk/GvPtzf72LuJ41d3JZc3rnd+o7bJ8e+dkjArk9Ypg/VJkTWQuqmq6glV7dwWbmn+KBqNdObVOOTjm38nmkkeezfxy6u7kr9pXO9cMqHW9qar1rZKZ1TF2FfHy+4USBDJhsMKjRBS11RVPcpnUqej0UhP3o5JPn8g7kQz94+9m9hPRPsrGuye2ibHQledbZOr1rZAZzTtCf4KXRCpubstffT+Pb0NhxgyEKlmVVUPc6TORqORfowOVmv4XbFguisWTG8jom0VDfYSqUz0eVc4GlmaGomoiojG0YM7ye8QUUS008fhQ6mrWi9TYsF0AiOInqaH3+wREYmieFVV1f2q2rkz3NJ8PhqNDGKEANaT4HWXiM5eO5o8i9FAI4WUKIq6pmmXY7GOD/r6+naHW5ovRqMRLAAGsEbnc8l/EMpGKqVp2sVYrGOPooTe71LVy729PRmMEMAa7U9okgQBH0QgRaIoJjRNuxCLdexUlNA+JRS8gtEBWOYqfV+ldPICCcJa0nF3fR4iNaBp2jl+I+chJRQMYXQAlnkb7GUUb/0ZlTeupTQuS+QJUrc1TTsbi3VsU5TQ0Vx6JAZg5UOdH+8j17R/IUH4OmZZOXbgfPaRmG2KEjqeq4/EAKx8KNGn0/WjPyTvK3MolZiCAckZpG6pqnqK321+MhqNRDE6ACs3irfdovFTvkET6vZQemg8BsSySN1UVfV41iMxKkYHYOVm4b2niWgzuaa9R+mhcpweWgaptqxHYs7k8yMxACv/0DpGd26upJrFvyCbYyFlUhgTcyLVrKrqIVXt3IFHYgBWftcdbqZUYjVNWvAnJE34HrHUGMy2RqcveCRmR7il+QIeiQFY6GF3IoN0J/Jjcnv/H9Us/mOyObeQzpzEsEPX80JKFEXGH4n5sK+vbxd/JAYLDAEs9JjZ1hXqDr9Fbu9MKp/+Fo1xbSDSfaTr9FR4iXaJBDwJ9BikkpqmXYrFOnYrSugDPBIDsNDTwXWZusOXqbTiJ1RW9xK94N5IY1zLiXT/736Hpekzp46inT4FSojQva7dlL6PC2OPIqUNeyTmY4wOwEJG1B+7R/2x/US0n0orishZ3EBu31ximflU7J5CjqJSIr2AiNJEwj0aUGPE0hcp0X+aets+pv5Y9+ccuGlRFPNiFpGF1F3+SMwORQkdVEJBBR8ugIVGFq8EEZ2jeOs5Ivo7IiIqrXCSrjuJKEN3O59o/a2hoaFBTdPu2u120nPw4v6wR2Kyd4lpxYcIYKHRRSxJRF/pwnBPPM66utQTkyZNnptK5cbZYtbtB13Ddom5gQ8JwEIWr7lZ+UVNzZQ/JKLCHEDq1rBdYvBITJ6Fr5XyoG/+22/9+YQJrv9ipVlWFlI3+CMx2/FIDAJYeVBNzRT7+g2b/lkUxbcyGfNeg/+cR2K28UdievEuIoCVX2gVrN+w6W/tdvsfmGmm9TmPxDzcJeYu3jUEsPK8DRs3/4HPV/+ToaEh12h8czjskZiPh+0So+EdQgALPZI/0DB55cqXf1xQUPjNZDLpHGm4hj8S093dlb1LDB6JQQALfXmrV78yz+vzfa+goHBzJpOR0mnjnmcc/khMd3cXHolBAAsZMuPyz54995uyLL/OGJuq6zo9DV7DH4np7u7CIzEIYKGRady48WO9vvpFsly+RZblBYwxLxHZnuTPiqLYw0/3dihK6FDkk5t4JAYBLPR8evvtbxYVFxf7Ag2N01iGBYhoMhG5iaiA/4pGRKpoE1v7+vo+Drc0N//qV/98EyOHEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCyNL9f38s0C2AuXuaAAAAAElFTkSuQmCC"}])}))},function(e,t,r){"use strict";r.r(t);r.d(t,"Provider",(function(){return m}));r.d(t,"connectAdvanced",(function(){return L}));r.d(t,"ReactReduxContext",(function(){return o}));r.d(t,"connect",(function(){return se}));r.d(t,"batch",(function(){return ye["unstable_batchedUpdates"]}));r.d(t,"useDispatch",(function(){return de}));r.d(t,"createDispatchHook",(function(){return fe}));r.d(t,"useSelector",(function(){return me}));r.d(t,"createSelectorHook",(function(){return ve}));r.d(t,"useStore",(function(){return ce}));r.d(t,"createStoreHook",(function(){return le}));r.d(t,"shallowEqual",(function(){return j}));var n=r(1);var a=r.n(n);var i=r(0);var o=a.a.createContext(null);if(false){}var s=o;function u(e){e()}var l=u;var c=function e(t){return l=t};var f=function e(){return l};var d={notify:function e(){}};function p(){var e=f();var t=null;var r=null;return{clear:function e(){t=null;r=null},notify:function r(){e((function(){var e=t;while(e){e.callback();e=e.next}}))},get:function e(){var r=[];var n=t;while(n){r.push(n);n=n.next}return r},subscribe:function e(n){var a=true;var i=r={callback:n,next:null,prev:r};if(i.prev){i.prev.next=i}else{t=i}return function e(){if(!a||t===null)return;a=false;if(i.next){i.next.prev=i.prev}else{r=i.prev}if(i.prev){i.prev.next=i.next}else{t=i.next}}}}}var h=function(){function e(e,t){this.store=e;this.parentSub=t;this.unsubscribe=null;this.listeners=d;this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;t.addNestedSub=function e(t){this.trySubscribe();return this.listeners.subscribe(t)};t.notifyNestedSubs=function e(){this.listeners.notify()};t.handleChangeWrapper=function e(){if(this.onStateChange){this.onStateChange()}};t.isSubscribed=function e(){return Boolean(this.unsubscribe)};t.trySubscribe=function e(){if(!this.unsubscribe){this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper);this.listeners=p()}};t.tryUnsubscribe=function e(){if(this.unsubscribe){this.unsubscribe();this.unsubscribe=null;this.listeners.clear();this.listeners=d}};return e}();function v(e){var t=e.store,r=e.context,i=e.children;var s=Object(n["useMemo"])((function(){var e=new h(t);e.onStateChange=e.notifyNestedSubs;return{store:t,subscription:e}}),[t]);var u=Object(n["useMemo"])((function(){return t.getState()}),[t]);Object(n["useEffect"])((function(){var e=s.subscription;e.trySubscribe();if(u!==t.getState()){e.notifyNestedSubs()}return function(){e.tryUnsubscribe();e.onStateChange=null}}),[s,u]);var l=r||o;return a.a.createElement(l.Provider,{value:s},i)}if(false){}var m=v;var y=r(30);var g=r(43);var b=r(119);var A=r.n(b);var _=r(93);var w=typeof window!=="undefined"&&typeof window.document!=="undefined"&&typeof window.document.createElement!=="undefined"?n["useLayoutEffect"]:n["useEffect"];var E=[];var x=[null,null];var k=function e(t){try{return JSON.stringify(t)}catch(e){return String(t)}};function M(e,t){var r=e[1];return[t.payload,r+1]}function S(e,t,r){w((function(){return e.apply(void 0,t)}),r)}function O(e,t,r,n,a,i,o){e.current=n;t.current=a;r.current=false;if(i.current){i.current=null;o()}}function D(e,t,r,n,a,i,o,s,u,l){if(!e)return;var c=false;var f=null;var d=function e(){if(c){return}var r=t.getState();var d,p;try{d=n(r,a.current)}catch(e){p=e;f=e}if(!p){f=null}if(d===i.current){if(!o.current){u()}}else{i.current=d;s.current=d;o.current=true;l({type:"STORE_UPDATED",payload:{error:p}})}};r.onStateChange=d;r.trySubscribe();d();var p=function e(){c=true;r.tryUnsubscribe();r.onStateChange=null;if(f){throw f}};return p}var T=function e(){return[null,0]};function L(e,t){if(t===void 0){t={}}var r=t,i=r.getDisplayName,s=i===void 0?function(e){return"ConnectAdvanced("+e+")"}:i,u=r.methodName,l=u===void 0?"connectAdvanced":u,c=r.renderCountProp,f=c===void 0?undefined:c,d=r.shouldHandleStateChanges,p=d===void 0?true:d,v=r.storeKey,m=v===void 0?"store":v,b=r.withRef,w=b===void 0?false:b,k=r.forwardRef,L=k===void 0?false:k,C=r.context,j=C===void 0?o:C,N=Object(g["a"])(r,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);if(false){var I}var P=j;return function t(r){if(false){}var i=r.displayName||r.name||"Component";var o=s(i);var u=Object(y["a"])({},N,{getDisplayName:s,methodName:l,renderCountProp:f,shouldHandleStateChanges:p,storeKey:m,displayName:o,wrappedComponentName:i,WrappedComponent:r});var c=N.pure;function d(t){return e(t.dispatch,u)}var v=c?n["useMemo"]:function(e){return e()};function b(e){var t=Object(n["useMemo"])((function(){var t=e.reactReduxForwardedRef,r=Object(g["a"])(e,["reactReduxForwardedRef"]);return[e.context,t,r]}),[e]),i=t[0],o=t[1],s=t[2];var u=Object(n["useMemo"])((function(){return i&&i.Consumer&&Object(_["isContextConsumer"])(a.a.createElement(i.Consumer,null))?i:P}),[i,P]);var l=Object(n["useContext"])(u);var c=Boolean(e.store)&&Boolean(e.store.getState)&&Boolean(e.store.dispatch);var f=Boolean(l)&&Boolean(l.store);if(false){}var m=c?e.store:l.store;var b=Object(n["useMemo"])((function(){return d(m)}),[m]);var A=Object(n["useMemo"])((function(){if(!p)return x;var e=new h(m,c?null:l.subscription);var t=e.notifyNestedSubs.bind(e);return[e,t]}),[m,c,l]),w=A[0],k=A[1];var L=Object(n["useMemo"])((function(){if(c){return l}return Object(y["a"])({},l,{subscription:w})}),[c,l,w]);var C=Object(n["useReducer"])(M,E,T),j=C[0],N=j[0],I=C[1];if(N&&N.error){throw N.error}var R=Object(n["useRef"])();var F=Object(n["useRef"])(s);var Y=Object(n["useRef"])();var B=Object(n["useRef"])(false);var H=v((function(){if(Y.current&&s===F.current){return Y.current}return b(m.getState(),s)}),[m,N,s]);S(O,[F,R,B,s,H,Y,k]);S(D,[p,m,w,b,F,R,B,Y,k,I],[m,w,b]);var z=Object(n["useMemo"])((function(){return a.a.createElement(r,Object(y["a"])({},H,{ref:o}))}),[o,r,H]);var U=Object(n["useMemo"])((function(){if(p){return a.a.createElement(u.Provider,{value:L},z)}return z}),[u,z,L]);return U}var w=c?a.a.memo(b):b;w.WrappedComponent=r;w.displayName=o;if(L){var k=a.a.forwardRef((function e(t,r){return a.a.createElement(w,Object(y["a"])({},t,{reactReduxForwardedRef:r}))}));k.displayName=o;k.WrappedComponent=r;return A()(k,r)}return A()(w,r)}}function C(e,t){if(e===t){return e!==0||t!==0||1/e===1/t}else{return e!==e&&t!==t}}function j(e,t){if(C(e,t))return true;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null){return false}var r=Object.keys(e);var n=Object.keys(t);if(r.length!==n.length)return false;for(var a=0;a<r.length;a++){if(!Object.prototype.hasOwnProperty.call(t,r[a])||!C(e[r[a]],t[r[a]])){return false}}return true}var N=r(165);function I(e){if(typeof e!=="object"||e===null)return false;var t=Object.getPrototypeOf(e);if(t===null)return true;var r=t;while(Object.getPrototypeOf(r)!==null){r=Object.getPrototypeOf(r)}return t===r}function P(e){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error(e)}try{throw new Error(e)}catch(e){}}function R(e,t,r){if(!I(e)){P(r+"() in "+t+" must return a plain object. Instead received "+e+".")}}function F(e){return function t(r,n){var a=e(r,n);function i(){return a}i.dependsOnOwnProps=false;return i}}function Y(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==undefined?Boolean(e.dependsOnOwnProps):e.length!==1}function B(e,t){return function t(r,n){var a=n.displayName;var i=function e(t,r){return i.dependsOnOwnProps?i.mapToProps(t,r):i.mapToProps(t)};i.dependsOnOwnProps=true;i.mapToProps=function t(r,n){i.mapToProps=e;i.dependsOnOwnProps=Y(e);var a=i(r,n);if(typeof a==="function"){i.mapToProps=a;i.dependsOnOwnProps=Y(a);a=i(r,n)}if(false){}return a};return i}}function H(e){return typeof e==="function"?B(e,"mapDispatchToProps"):undefined}function z(e){return!e?F((function(e){return{dispatch:e}})):undefined}function U(e){return e&&typeof e==="object"?F((function(t){return Object(N["bindActionCreators"])(e,t)})):undefined}var q=[H,z,U];function V(e){return typeof e==="function"?B(e,"mapStateToProps"):undefined}function W(e){return!e?F((function(){return{}})):undefined}var K=[V,W];function G(e,t,r){return Object(y["a"])({},r,e,t)}function Q(e){return function t(r,n){var a=n.displayName,i=n.pure,o=n.areMergedPropsEqual;var s=false;var u;return function t(r,n,a){var l=e(r,n,a);if(s){if(!i||!o(l,u))u=l}else{s=true;u=l;if(false){}}return u}}}function J(e){return typeof e==="function"?Q(e):undefined}function Z(e){return!e?function(){return G}:undefined}var X=[J,Z];function $(e,t,r){if(!e){throw new Error("Unexpected value for "+t+" in "+r+".")}else if(t==="mapStateToProps"||t==="mapDispatchToProps"){if(!Object.prototype.hasOwnProperty.call(e,"dependsOnOwnProps")){P("The selector for "+t+" of "+r+" did not specify a value for dependsOnOwnProps.")}}}function ee(e,t,r,n){$(e,"mapStateToProps",n);$(t,"mapDispatchToProps",n);$(r,"mergeProps",n)}function te(e,t,r,n){return function a(i,o){return r(e(i,o),t(n,o),o)}}function re(e,t,r,n,a){var i=a.areStatesEqual,o=a.areOwnPropsEqual,s=a.areStatePropsEqual;var u=false;var l;var c;var f;var d;var p;function h(a,i){l=a;c=i;f=e(l,c);d=t(n,c);p=r(f,d,c);u=true;return p}function v(){f=e(l,c);if(t.dependsOnOwnProps)d=t(n,c);p=r(f,d,c);return p}function m(){if(e.dependsOnOwnProps)f=e(l,c);if(t.dependsOnOwnProps)d=t(n,c);p=r(f,d,c);return p}function y(){var t=e(l,c);var n=!s(t,f);f=t;if(n)p=r(f,d,c);return p}function g(e,t){var r=!o(t,c);var n=!i(e,l);l=e;c=t;if(r&&n)return v();if(r)return m();if(n)return y();return p}return function e(t,r){return u?g(t,r):h(t,r)}}function ne(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,a=t.initMergeProps,i=Object(g["a"])(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]);var o=r(e,i);var s=n(e,i);var u=a(e,i);if(false){}var l=i.pure?re:te;return l(o,s,u,e,i)}function ae(e,t,r){for(var n=t.length-1;n>=0;n--){var a=t[n](e);if(a)return a}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function ie(e,t){return e===t}function oe(e){var t=e===void 0?{}:e,r=t.connectHOC,n=r===void 0?L:r,a=t.mapStateToPropsFactories,i=a===void 0?K:a,o=t.mapDispatchToPropsFactories,s=o===void 0?q:o,u=t.mergePropsFactories,l=u===void 0?X:u,c=t.selectorFactory,f=c===void 0?ne:c;return function e(t,r,a,o){if(o===void 0){o={}}var u=o,c=u.pure,d=c===void 0?true:c,p=u.areStatesEqual,h=p===void 0?ie:p,v=u.areOwnPropsEqual,m=v===void 0?j:v,b=u.areStatePropsEqual,A=b===void 0?j:b,_=u.areMergedPropsEqual,w=_===void 0?j:_,E=Object(g["a"])(u,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]);var x=ae(t,i,"mapStateToProps");var k=ae(r,s,"mapDispatchToProps");var M=ae(a,l,"mergeProps");return n(f,Object(y["a"])({methodName:"connect",getDisplayName:function e(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:x,initMapDispatchToProps:k,initMergeProps:M,pure:d,areStatesEqual:h,areOwnPropsEqual:m,areStatePropsEqual:A,areMergedPropsEqual:w},E))}}var se=oe();function ue(){var e=Object(n["useContext"])(o);if(false){}return e}function le(e){if(e===void 0){e=o}var t=e===o?ue:function(){return Object(n["useContext"])(e)};return function e(){var r=t(),n=r.store;return n}}var ce=le();function fe(e){if(e===void 0){e=o}var t=e===o?ce:le(e);return function e(){var r=t();return r.dispatch}}var de=fe();var pe=function e(t,r){return t===r};function he(e,t,r,a){var i=Object(n["useReducer"])((function(e){return e+1}),0),o=i[1];var s=Object(n["useMemo"])((function(){return new h(r,a)}),[r,a]);var u=Object(n["useRef"])();var l=Object(n["useRef"])();var c=Object(n["useRef"])();var f=Object(n["useRef"])();var d=r.getState();var p;try{if(e!==l.current||d!==c.current||u.current){p=e(d)}else{p=f.current}}catch(e){if(u.current){e.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"}throw e}w((function(){l.current=e;c.current=d;f.current=p;u.current=undefined}));w((function(){function e(){try{var e=l.current(r.getState());if(t(e,f.current)){return}f.current=e}catch(e){u.current=e}o()}s.onStateChange=e;s.trySubscribe();e();return function(){return s.tryUnsubscribe()}}),[r,s]);return p}function ve(e){if(e===void 0){e=o}var t=e===o?ue:function(){return Object(n["useContext"])(e)};return function e(r,a){if(a===void 0){a=pe}if(false){}var i=t(),o=i.store,s=i.subscription;var u=he(r,a,o,s);Object(n["useDebugValue"])(u);return u}}var me=ve();var ye=r(17);c(ye["unstable_batchedUpdates"])},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(7);t.default=function(e,t,r){var a={data:null,isFetching:false,isEditing:false,fetchError:null,formError:null,isLoaded:false,responseBody:null,successMessage:null};var i=function(i,o){if(i===void 0){i=a}switch(o.type){case e+"_"+n.default.REQUEST:return Object.assign({},i,{data:null,isLoaded:false,isFetching:true,fetchError:null,formError:null,responseBody:null});case e+"_"+n.default.FAILURE:return Object.assign({},i,{fetchError:o.error,formError:null,isFetching:false,isLoaded:true});case e+"_"+n.default.SUCCESS:return Object.assign({},i,{fetchError:null,formError:null,isFetching:false});case e+"_"+n.default.LOAD:return Object.assign({},i,{data:o.data,isFetching:false,isLoaded:true});default:if(r){var s=void 0;if(o.type in r){s=r[o.type];return s(i,o)}}if(t){switch(o.type){case t+"_"+n.default.REQUEST:return Object.assign({},i,{isEditing:true,fetchError:null,formError:null,responseBody:null,successMessage:null});case t+"_"+n.default.SUCCESS:return Object.assign({},i,{isEditing:false,fetchError:null,formError:null,responseBody:null,successMessage:null});case t+"_"+n.default.FAILURE:return Object.assign({},i,{isEditing:false,formError:o.error});case t+"_"+n.default.LOAD:return Object.assign({},i,{responseBody:o.data,successMessage:o.data,formError:null});default:return i}}return i}};return i}},function(e,t,r){"use strict";var n=false?undefined:function(e){};function a(e,t){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;i<r;i++){a[i-2]=arguments[i]}n(t);if(!e){var o;if(t===undefined){o=new Error("Minified exception occurred; use the non-minified dev environment "+"for the full error message and additional helpful warnings.")}else{var s=0;o=new Error(t.replace(/%s/g,(function(){return String(a[s++])})));o.name="Invariant Violation"}o.framesToPop=1;throw o}}e.exports=a},function(e,t,r){var n=r(77);var a=r(163);var i=r(637);var o=r(641);var s=r(644);var u="prototype";var l=function(e,t,r){var c=e&l.F;var f=e&l.G;var d=e&l.S;var p=e&l.P;var h=e&l.B;var v=f?n:d?n[t]||(n[t]={}):(n[t]||{})[u];var m=f?a:a[t]||(a[t]={});var y=m[u]||(m[u]={});var g,b,A,_;if(f)r=t;for(g in r){b=!c&&v&&v[g]!==undefined;A=(b?v:r)[g];_=h&&b?s(A,n):p&&typeof A=="function"?s(Function.call,A):A;if(v)o(v,g,A,e&l.U);if(m[g]!=A)i(m,g,_);if(p&&y[g]!=A)y[g]=A}};n.core=a;l.F=1;l.G=2;l.S=4;l.P=8;l.B=16;l.W=32;l.U=64;l.R=128;e.exports=l},function(e,t,r){"use strict";function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__==="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function"){return}if(false){}try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}if(true){n();e.exports=r(698)}else{}},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}var i=r(866);var o=r(259);var s=r(868);var u=r(178);var l=r(10);var c=l.OrderedSet,f=l.Record,d=l.Stack,p=l.OrderedMap,h=l.List;var v={allowUndo:true,currentContent:null,decorator:null,directionMap:null,forceSelection:false,inCompositionMode:false,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:d(),selection:null,treeMap:null,undoStack:d()};var m=f(v);var y=function(){t.createEmpty=function e(t){return this.createWithText("",t)};t.createWithText=function e(r,n){return t.createWithContent(o.createFromText(r),n)};t.createWithContent=function e(r,n){if(r.getBlockMap().count()===0){return t.createEmpty(n)}var a=r.getBlockMap().first().getKey();return t.create({currentContent:r,undoStack:d(),redoStack:d(),decorator:n||null,selection:u.createEmpty(a)})};t.create=function e(r){var a=r.currentContent,i=r.decorator;var o=n({},r,{treeMap:b(a,i),directionMap:s.getDirectionMap(a)});return new t(new m(o))};t.fromJS=function e(r){return new t(new m(n({},r,{directionMap:r.directionMap!=null?p(r.directionMap):r.directionMap,inlineStyleOverride:r.inlineStyleOverride!=null?c(r.inlineStyleOverride):r.inlineStyleOverride,nativelyRenderedContent:r.nativelyRenderedContent!=null?o.fromJS(r.nativelyRenderedContent):r.nativelyRenderedContent,redoStack:r.redoStack!=null?d(r.redoStack.map((function(e){return o.fromJS(e)}))):r.redoStack,selection:r.selection!=null?new u(r.selection):r.selection,treeMap:r.treeMap!=null?p(r.treeMap).map((function(e){return h(e).map((function(e){return i.fromJS(e)}))})):r.treeMap,undoStack:r.undoStack!=null?d(r.undoStack.map((function(e){return o.fromJS(e)}))):r.undoStack,currentContent:o.fromJS(r.currentContent)})))};t.set=function e(r,n){var a=r.getImmutable().withMutations((function(e){var t=e.get("decorator");var a=t;if(n.decorator===null){a=null}else if(n.decorator){a=n.decorator}var i=n.currentContent||r.getCurrentContent();if(a!==t){var o=e.get("treeMap");var s;if(a&&t){s=_(i,i.getBlockMap(),o,a,t)}else{s=b(i,a)}e.merge({decorator:a,treeMap:s,nativelyRenderedContent:null});return}var u=r.getCurrentContent();if(i!==u){e.set("treeMap",A(r,i.getBlockMap(),i.getEntityMap(),a))}e.merge(n)}));return new t(a)};var e=t.prototype;e.toJS=function e(){return this.getImmutable().toJS()};e.getAllowUndo=function e(){return this.getImmutable().get("allowUndo")};e.getCurrentContent=function e(){return this.getImmutable().get("currentContent")};e.getUndoStack=function e(){return this.getImmutable().get("undoStack")};e.getRedoStack=function e(){return this.getImmutable().get("redoStack")};e.getSelection=function e(){return this.getImmutable().get("selection")};e.getDecorator=function e(){return this.getImmutable().get("decorator")};e.isInCompositionMode=function e(){return this.getImmutable().get("inCompositionMode")};e.mustForceSelection=function e(){return this.getImmutable().get("forceSelection")};e.getNativelyRenderedContent=function e(){return this.getImmutable().get("nativelyRenderedContent")};e.getLastChangeType=function e(){return this.getImmutable().get("lastChangeType")};e.getInlineStyleOverride=function e(){return this.getImmutable().get("inlineStyleOverride")};t.setInlineStyleOverride=function e(r,n){return t.set(r,{inlineStyleOverride:n})};e.getCurrentInlineStyle=function e(){var t=this.getInlineStyleOverride();if(t!=null){return t}var r=this.getCurrentContent();var n=this.getSelection();if(n.isCollapsed()){return E(r,n)}return x(r,n)};e.getBlockTree=function e(t){return this.getImmutable().getIn(["treeMap",t])};e.isSelectionAtStartOfContent=function e(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)};e.isSelectionAtEndOfContent=function e(){var t=this.getCurrentContent();var r=t.getBlockMap();var n=r.last();var a=n.getLength();return this.getSelection().hasEdgeWithin(n.getKey(),a,a)};e.getDirectionMap=function e(){return this.getImmutable().get("directionMap")};t.acceptSelection=function e(t,r){return g(t,r,false)};t.forceSelection=function e(t,r){if(!r.getHasFocus()){r=r.set("hasFocus",true)}return g(t,r,true)};t.moveSelectionToEnd=function e(r){var n=r.getCurrentContent();var a=n.getLastBlock();var i=a.getKey();var o=a.getLength();return t.acceptSelection(r,new u({anchorKey:i,anchorOffset:o,focusKey:i,focusOffset:o,isBackward:false}))};t.moveFocusToEnd=function e(r){var n=t.moveSelectionToEnd(r);return t.forceSelection(n,n.getSelection())};t.push=function e(r,n,a){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:true;if(r.getCurrentContent()===n){return r}var o=s.getDirectionMap(n,r.getDirectionMap());if(!r.getAllowUndo()){return t.set(r,{currentContent:n,directionMap:o,lastChangeType:a,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null})}var u=r.getSelection();var l=r.getCurrentContent();var c=r.getUndoStack();var f=n;if(u!==l.getSelectionAfter()||w(r,a)){c=c.push(l);f=f.set("selectionBefore",u)}else if(a==="insert-characters"||a==="backspace-character"||a==="delete-character"){f=f.set("selectionBefore",l.getSelectionBefore())}var p=r.getInlineStyleOverride();var h=["adjust-depth","change-block-type","split-block"];if(h.indexOf(a)===-1){p=null}var v={currentContent:f,directionMap:o,undoStack:c,redoStack:d(),lastChangeType:a,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:p};return t.set(r,v)};t.undo=function e(r){if(!r.getAllowUndo()){return r}var n=r.getUndoStack();var a=n.peek();if(!a){return r}var i=r.getCurrentContent();var o=s.getDirectionMap(a,r.getDirectionMap());return t.set(r,{currentContent:a,directionMap:o,undoStack:n.shift(),redoStack:r.getRedoStack().push(i),forceSelection:true,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})};t.redo=function e(r){if(!r.getAllowUndo()){return r}var n=r.getRedoStack();var a=n.peek();if(!a){return r}var i=r.getCurrentContent();var o=s.getDirectionMap(a,r.getDirectionMap());return t.set(r,{currentContent:a,directionMap:o,undoStack:r.getUndoStack().push(i),redoStack:n.shift(),forceSelection:true,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:a.getSelectionAfter()})};function t(e){a(this,"_immutable",void 0);this._immutable=e}e.getImmutable=function e(){return this._immutable};return t}();function g(e,t,r){return y.set(e,{selection:t,forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function b(e,t){return e.getBlockMap().map((function(r){return i.generate(e,r,t)})).toOrderedMap()}function A(e,t,r,n){var a=e.getCurrentContent().set("entityMap",r);var o=a.getBlockMap();var s=e.getImmutable().get("treeMap");return s.merge(t.toSeq().filter((function(e,t){return e!==o.get(t)})).map((function(e){return i.generate(a,e,n)})))}function _(e,t,r,n,a){return r.merge(t.toSeq().filter((function(t){return n.getDecorations(t,e)!==a.getDecorations(t,e)})).map((function(t){return i.generate(e,t,n)})))}function w(e,t){var r=e.getLastChangeType();return t!==r||t!=="insert-characters"&&t!=="backspace-character"&&t!=="delete-character"}function E(e,t){var r=t.getStartKey();var n=t.getStartOffset();var a=e.getBlockForKey(r);if(n>0){return a.getInlineStyleAt(n-1)}if(a.getLength()){return a.getInlineStyleAt(0)}return k(e,r)}function x(e,t){var r=t.getStartKey();var n=t.getStartOffset();var a=e.getBlockForKey(r);if(n<a.getLength()){return a.getInlineStyleAt(n)}if(n>0){return a.getInlineStyleAt(n-1)}return k(e,r)}function k(e,t){var r=e.getBlockMap().reverse().skipUntil((function(e,r){return r===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();if(r){return r.getInlineStyleAt(r.getLength()-1)}return c()}e.exports=y},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.elementRef=a.createRef();r.state={value:t.value||"",checked:t.checked||false};r.handleChange=r.handleChange.bind(r);return r}t.prototype.render=function(){var e=this.props,t=e.type,r=e.elementType,n=e.optionalText,i=e.required,o=e.description,s=e.clientError,u=e.error,l=e.label,c=e.extraContent;var f=!!(t==="checkbox"||t==="radio"||r==="select");var d=n&&!i&&!f?"(Optional) ":"";var p=o?o:"";var h=""+d+p;var v=s||u&&u.status>=400&&!this.state.value&&i?"field-error":"";return a.createElement("div",{className:"form-group "+v+" "+this.props.className},l&&a.createElement("label",{className:"control-label"},t!=="checkbox"&&t!=="radio"&&l,i&&a.createElement("span",{className:"required-field"},"Required"),this.renderElement(),t==="checkbox"&&l,t==="radio"&&a.createElement("span",null,l)),(c||!l)&&a.createElement("div",{className:c?"with-add-on":""},c,!l&&this.renderElement()),h.trim()&&this.renderDescription(h))};t.prototype.renderElement=function(){var e;var t=this.props,r=t.type,n=t.elementType,i=t.placeholder,o=t.accept,s=t.list,u=t.min,l=t.max,c=t.children,f=t.disabled,d=t.readOnly,p=t.name,h=t.validation,v=t.style,m=t.minLength,y=t.maxLength;return a.createElement(n||"input",(e={className:r!=="checkbox"&&r!=="radio"?"form-control":"",ref:this.elementRef,value:this.state.value,checked:this.state.checked,onKeyPress:h&&h==="number"&&this.validateNumber,onChange:this.handleChange,type:r,disabled:f,readOnly:d,name:p,style:v,placeholder:i,accept:o,list:s,min:u,max:l,minLength:m,maxLength:y},e["aria-label"]=this.props["aria-label"],e),c)};t.prototype.renderDescription=function(e){return a.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e}})};t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this.state.value;var r=this.state.checked;var n=false;if(e.value!==this.props.value){t=e.value||"";n=true}if(e.checked!==this.props.checked){r=e.checked||false;n=true}if(n){this.setState({value:t,checked:r})}};t.prototype.handleChange=function(){if(!this.props.readOnly&&(!this.props.onChange||this.props.onChange(this.getValue())!==false)){var e=this.state.value;var t=this.state.checked;if(this.props.type==="checkbox"||this.props.type==="radio"){t=!this.state.checked}else{e=this.getValue()}this.setState({value:e,checked:t})}};t.prototype.validateNumber=function(e){var t=["0","1","2","3","4","5","6","7","8","9",".","Enter"];if(t.indexOf(e.key)<0){e.preventDefault()}};t.prototype.getValue=function(){var e;return(e=this.elementRef.current)===null||e===void 0?void 0:e.value};t.prototype.getChecked=function(){var e;return(e=this.elementRef.current)===null||e===void 0?void 0:e.checked};t.prototype.setValue=function(e){this.setState({value:e})};t.prototype.clear=function(){this.setState({value:"",checked:false})};t.defaultProps={optionalText:true,readOnly:false};return t}(a.Component);t.default=i},function(e,t){function r(e){return e&&e.__esModule?e:{default:e}}e.exports=r},function(e,t,r){"use strict";var n=r(219);var a=typeof self=="object"&&self&&self.Object===Object&&self;var i=n["a"]||a||Function("return this")();t["a"]=i},function(e,t,r){var n=r(293);function a(e,t){return n(e,t)}e.exports=a},function(e,t,r){"use strict";var n=function(){};if(false){}e.exports=n},function(e,t){(function(){e.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},function(e,t){function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}e.exports=r},function(e,t,r){"use strict";var n=r(855);var a=r(149);var i=r(49);var o=r(871);var s=r(100);var u=r(259);var l=r(261);var c=r(540);var f=r(872);var d=r(556);var p=r(177);var h=r(35);var v=r(538);var m=r(18);var y=r(267);var g=r(936);var b=r(567);var A=r(178);var _=r(937);var w=r(940);var E=r(64);var x=r(568);var k=r(946);var M=r(565);var S={Editor:f,EditorBlock:d,EditorState:m,CompositeDecorator:o,Entity:p,EntityInstance:v,BlockMapBuilder:a,CharacterMetadata:i,ContentBlock:s,ContentState:u,RawDraftContentState:g,SelectionState:A,AtomicBlockUtils:n,KeyBindingUtil:y,Modifier:h,RichUtils:b,DefaultDraftBlockRenderMap:l,DefaultDraftInlineStyle:c,convertFromHTML:M,convertFromRaw:w,convertToRaw:_,genKey:E,getDefaultKeyBinding:x,getVisibleSelectionRect:k};e.exports=S},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){if(typeof window==="object")r=window}e.exports=r},function(e,t,r){"use strict";var n=r(1);var a=r(701);if(typeof n==="undefined"){throw Error("create-react-class could not find the React object. If you are using script tags, "+"make sure that React is being loaded before create-react-class.")}var i=(new n.Component).updater;e.exports=a(n.Component,n.isValidElement,i)},function(e,t){var r=e.exports={version:"2.6.12"};if(typeof __e=="number")__e=r},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));function n(){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};return n.apply(this,arguments)}},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(17);var o=r(116);var s=r(12);var u=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.errorMessageRef=a.createRef();return t}t.prototype.render=function(){var e=this.props.error.status;var t;var r;var n;if(e===401){n=a.createElement(o.Alert,{bsStyle:"danger"},a.createElement("h4",null,"You have been logged out.",a.createElement("br",null),a.createElement("a",{target:"_blank",href:"/admin/sign_in_again"},"Log in again"),this.props.tryAgain&&a.createElement(s.Button,{className:"left-align",callback:this.tryAgain.bind(this),content:"Try again"})))}else{var i=void 0;try{i=JSON.parse(this.props.error.response).detail}catch(e){i=this.props.error.response;var u="Remote service returned a problem detail document";if(this.isProblemDetail(i,u)){i=this.parseProblemDetail(i,u);t=i.title?i.title:"Error";r=""+i.description+i.status+": "+i.detail}}if(!r){r="Error: "+i}n=a.createElement(o.Alert,{bsStyle:"danger"},a.createElement("h4",null,t&&a.createElement("p",null,a.createElement("b",null,t)," "),a.createElement("span",{dangerouslySetInnerHTML:{__html:r}}),a.createElement("br",null),this.props.tryAgain&&a.createElement(s.Button,{className:"left-align",callback:this.tryAgain.bind(this),content:"Try again"})))}return a.createElement("div",{tabIndex:0,ref:this.errorMessageRef},n)};t.prototype.componentDidMount=function(){if(this.errorMessageRef.current){i.findDOMNode(this.errorMessageRef.current).focus()}};t.prototype.isProblemDetail=function(e,t){var r=new RegExp(t);return r.test(e)};t.prototype.parseProblemDetail=function(e,t){var r=e.split(t)[1];var n=this.extractProperties(r,['"status": ','"detail": ','"title": ']);n["description"]=n["status"]?t+" with status ":t;return n};t.prototype.extractProperties=function(e,t){var r={};t.map((function(t){var n=t.replace(/[": ]/g,"");var a=new RegExp(n);var i="";if(a.test(e)){i=e.split(n)[1].split(",")[0].replace(/["':}]/g,"").trim()}r[n]=i}));return r};t.prototype.tryAgain=function(){this.props.tryAgain()};return t}(a.Component);t.default=u},function(e,t,r){"use strict";function n(e){return e!=null&&typeof e=="object"}t["a"]=n},function(e,t,r){var n=r(201);function a(e,t,r){var a=e==null?undefined:n(e,t);return a===undefined?r:a}e.exports=a},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(354);var i=r(753);var o=r(760);r(761);var s=function(){function e(e){if(e===void 0){e={}}this.proxyUrl=e.proxyUrl;this.adapter=e.adapter;this.authKey="authCredentials"}e.prototype.fetchOPDSData=function(e){var t=this;var r=new a.default;if(!this.adapter){return Promise.reject({status:null,response:"No adapter has been configured in DataFetcher.",url:e})}return new Promise((function(n,a){t.fetch(e).then((function(i){i.text().then((function(o){if(t.isErrorCode(i.status)){a({status:i.status,response:o,url:e,headers:i.headers})}r.parse(o).then((function(r){var a;n((a=t.adapter)===null||a===void 0?void 0:a.call(t,r,e))})).catch((function(t){a({status:null,response:"Failed to parse OPDS data",url:e})}))})).catch((function(t){a({status:i.status,response:t.message,url:e,headers:i.headers})}))})).catch((function(e){return a(e)}))}))};e.prototype.fetchSearchDescriptionData=function(e){var t=this;var r=new i.default;return new Promise((function(n,a){t.fetch(e).then((function(i){i.text().then((function(o){if(t.isErrorCode(i.status)){a({status:i.status,response:o,url:e})}r.parse(o,e).then((function(e){n(e)})).catch((function(t){a({status:null,response:"Failed to parse OPDS data",url:e})}))}))})).catch(a)}))};e.prototype.fetch=function(e,t){if(t===void 0){t={}}t=Object.assign({credentials:"same-origin"},t);if(this.proxyUrl){var r=new window.FormData;r.append("url",e);Object.assign(t,{method:"POST",body:r});e=this.proxyUrl}t["headers"]=this.prepareAuthHeaders(t["headers"]);return fetch(e,t)};e.prototype.setAuthCredentials=function(e){if(e){o.set(this.authKey,JSON.stringify(e))}};e.prototype.getAuthCredentials=function(){var e=o.get(this.authKey);if(e){return JSON.parse(e)}};e.prototype.clearAuthCredentials=function(){o.remove(this.authKey)};e.prototype.prepareAuthHeaders=function(e){var t;if(e===void 0){e={}}var r=this.getAuthCredentials();return n({Authorization:(t=r===null||r===void 0?void 0:r.credentials)!==null&&t!==void 0?t:"","X-Requested-With":"XMLHttpRequest"},e)};e.prototype.isErrorCode=function(e){return e<200||e>=400};return e}();t.default=s},function(e,t,r){"use strict";var n=r(49);var a=r(856);var i=r(857);var o=r(859);var s=r(176);var u=r(10);var l=r(862);var c=r(863);var f=r(15);var d=r(535);var p=r(533);var h=r(864);var v=r(865);var m=u.OrderedSet;var y={replaceText:function e(t,r,a,i,o){var s=p(t,r);var u=h(s,r);var l=n.create({style:i||m(),entity:o||null});return c(u,u.getSelectionAfter(),a,l)},insertText:function e(t,r,n,a,i){!r.isCollapsed()?false?undefined:f(false):void 0;return y.replaceText(t,r,n,a,i)},moveText:function e(t,r,n){var a=s(t,r);var i=y.removeRange(t,r,"backward");return y.replaceWithFragment(i,n,a)},replaceWithFragment:function e(t,r,n){var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:"REPLACE_WITH_NEW_DATA";var i=p(t,r);var o=h(i,r);return l(o,o.getSelectionAfter(),n,a)},removeRange:function e(t,r,n){var a,i,s,u;if(r.getIsBackward()){r=r.merge({anchorKey:r.getFocusKey(),anchorOffset:r.getFocusOffset(),focusKey:r.getAnchorKey(),focusOffset:r.getAnchorOffset(),isBackward:false})}a=r.getAnchorKey();i=r.getFocusKey();s=t.getBlockForKey(a);u=t.getBlockForKey(i);var l=r.getStartOffset();var c=r.getEndOffset();var f=s.getEntityAt(l);var d=u.getEntityAt(c-1);if(a===i){if(f&&f===d){var v=o(t.getEntityMap(),s,u,r,n);return h(t,v)}}var m=p(t,r);return h(m,r)},splitBlock:function e(t,r){var n=p(t,r);var a=h(n,r);return v(a,a.getSelectionAfter())},applyInlineStyle:function e(t,r,n){return a.add(t,r,n)},removeInlineStyle:function e(t,r,n){return a.remove(t,r,n)},setBlockType:function e(t,r,n){return d(t,r,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function e(t,r,n){return d(t,r,(function(e){return e.merge({data:n})}))},mergeBlockData:function e(t,r,n){return d(t,r,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function e(t,r,n){var a=p(t,r);return i(a,r,n)}};e.exports=y},function(e,t,r){"use strict";var n=function e(t){if(t!=null){return t}throw new Error("Got unexpected null or undefined")};e.exports=n},function(e,t,r){"use strict";var n=r(875);var a=r(877);var i=r(878);var o=r(879);function s(e,t,r,n){if(e===r){return true}if(!r.startsWith(e)){return false}var i=r.slice(e.length);if(t){i=n?n(i):i;return a.contains(i,t)}return false}function u(e){if(n.platformName==="Windows"){return e.replace(/^\s*NT/,"")}return e}var l={isBrowser:function e(t){return s(n.browserName,n.browserFullVersion,t)},isBrowserArchitecture:function e(t){return s(n.browserArchitecture,null,t)},isDevice:function e(t){return s(n.deviceName,null,t)},isEngine:function e(t){return s(n.engineName,n.engineVersion,t)},isPlatform:function e(t){return s(n.platformName,n.platformFullVersion,t,u)},isPlatformArchitecture:function e(t){return s(n.platformArchitecture,null,t)}};e.exports=i(l,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)}}();var a=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 i=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 o=r(1);var s=r(116);var u=r(12);var l=r(70);var c=r(31);var f=r(204);var d=r(104);var p=r(321);var h=r(0);var v=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.limitOne=false;r.editFormRef=o.createRef();r.editItem=r.editItem.bind(r);r.save=r.save.bind(r);r.label=r.label.bind(r);r.renderLi=r.renderLi.bind(r);return r}t.prototype.UNSAFE_componentWillMount=function(){if(this.props.fetchData){this.props.fetchData()}};t.prototype.render=function(){var e=this;var t=this.getHeaders();var r=!this.props.isFetching&&!this.props.editOrCreate&&this.props.data&&this.props.data[this.listDataKey];var n=this.EditForm;var a=this.ExtraFormSection;var i=this.itemToEdit();return o.createElement("div",{className:this.getClassName()},o.createElement("h2",null,t["h2"]),r&&this.links&&this.links["info"]&&o.createElement(s.Alert,{bsStyle:"info"},this.links["info"]),this.props.responseBody&&this.props.editOrCreate&&o.createElement(s.Alert,{bsStyle:"success"},this.successMessage()),this.props.fetchError&&!this.props.editOrCreate&&o.createElement(c.default,{error:this.props.fetchError}),this.props.formError&&this.props.editOrCreate&&o.createElement(c.default,{error:this.props.formError}),this.props.isFetching&&o.createElement(l.default,null),r&&o.createElement("div",null,(!this.limitOne||this.props.data[this.listDataKey].length===0)&&this.canCreate()&&o.createElement("a",{className:"btn btn-default create-item",href:this.urlBase+"create"},"Create new ",this.itemTypeName),o.createElement("ul",null,this.props.data[this.listDataKey].map((function(t,r){return e.renderLi(t,r)})))),this.props.editOrCreate==="create"&&o.createElement("div",null,o.createElement("h3",null,t["h3"]),o.createElement(n,{ref:this.editFormRef,data:this.props.data,additionalData:this.props.additionalData,disabled:this.props.isFetching,save:this.save,urlBase:this.urlBase,listDataKey:this.listDataKey,responseBody:this.props.responseBody,error:this.props.formError,extraFormSection:a,extraFormKey:this.extraFormKey,adminLevel:this.getAdminLevel()})),i&&o.createElement("div",null,o.createElement("h3",null,"Edit ",this.label(i)),o.createElement(n,{item:i,data:this.props.data,additionalData:this.props.additionalData,disabled:this.props.isFetching,save:this.save,urlBase:this.urlBase,listDataKey:this.listDataKey,responseBody:this.props.responseBody,error:this.props.formError,extraFormSection:a,extraFormKey:this.extraFormKey,adminLevel:this.getAdminLevel()})),this.links&&this.links["footer"]&&o.createElement("p",null,this.links["footer"]))};t.prototype.renderLi=function(e,t){var r=this;var n=this.AdditionalContent||null;return o.createElement("li",{key:t},o.createElement("a",{className:"btn small edit-item",href:this.urlBase+"edit/"+e[this.identifierKey]},this.canEdit(e)?o.createElement("span",null,"Edit ",o.createElement(f.default,null)):o.createElement("span",null,"View ",o.createElement(p.default,null))),o.createElement("h3",null,this.label(e)),this.canDelete()&&o.createElement(u.Button,{className:"danger delete-item small",callback:function(){return r.delete(e)},content:o.createElement("span",null,"Delete",o.createElement(d.default,null))}),n&&o.createElement(n,{type:this.itemTypeName,item:e,store:this.props.store,csrfToken:this.props.csrfToken}))};t.prototype.label=function(e){return e[this.labelKey]};t.prototype.getAdminLevel=function(){var e,t;var r;if((e=this.context.admin)===null||e===void 0?void 0:e.isSystemAdmin()){r=3}else if((t=this.context.admin)===null||t===void 0?void 0:t.isLibraryManagerOfSomeLibrary()){r=2}else{r=1}return r};t.prototype.getHeaders=function(){var e=this.getItemType()+" configuration";var t="Create a new "+this.itemTypeName;return{h2:e,h3:t}};t.prototype.getClassName=function(){var e=this.AdditionalContent?"has-additional-content":"";return e};t.prototype.getItemType=function(){return this.itemTypeName.slice(0,1).toUpperCase()+this.itemTypeName.slice(1)};t.prototype.formatItemType=function(){var e=this.getItemType();var t=/^[A-Z]*$/;var r=t.test(e.split(" service")[0]);var n=r?e:e.toLowerCase();return n};t.prototype.successMessage=function(){var e;if(this.props.editOrCreate==="create"){e="Successfully created ";return o.createElement("span",null,e,o.createElement("a",{href:this.getLink()},"a new ",this.formatItemType()))}else{e="Successfully edited this ";return o.createElement("span",null,e,this.formatItemType())}};t.prototype.getLink=function(){return this.urlBase+"edit/"+this.props.responseBody};t.prototype.canCreate=function(){return true};t.prototype.canDelete=function(){return this.getAdminLevel()===3};t.prototype.canEdit=function(e){return!e.level||e.level<=this.getAdminLevel()};t.prototype.save=function(e){var t=this;this.editItem(e).then((function(){if(t.limitOne&&t.props.editOrCreate==="create"){setTimeout((function(){window.location.href=t.urlBase+"edit/"+t.props.responseBody}),2e3)}}))};t.prototype.editItem=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:window.scrollTo(0,0);return[4,this.props.editItem(e)];case 1:t.sent();this.props.fetchData();return[2]}}))}))};t.prototype.itemToEdit=function(){if(this.props.editOrCreate==="edit"&&this.props.data&&this.props.data[this.listDataKey]){for(var e=0,t=this.props.data[this.listDataKey];e<t.length;e++){var r=t[e];if(String(r[this.identifierKey])===this.props.identifier){return r}}}return null};t.prototype.delete=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:if(!window.confirm('Delete "'+this.label(e)+'"?'))return[3,2];return[4,this.props.deleteItem(e[this.identifierKey])];case 1:t.sent();this.props.fetchData();t.label=2;case 2:return[2]}}))}))};t.contextTypes={admin:h.object.isRequired};return t}(o.Component);t.GenericEditableConfigList=v;var m=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(v);t.EditableConfigList=m;t.default=m},function(e,t,r){"use strict";t.__esModule=true;t.default=c;var n=s(r(1));var a=s(r(8));var i=o(r(962));function o(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 s(e){return e&&e.__esModule?e:{default:e}}function u(){u=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 u.apply(this,arguments)}function l(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}function c(e,t,r){if(r===void 0){r=[]}var a=e.displayName||e.name||"Component";var o=i.isReactComponent(e);var s=Object.keys(t);var f=s.map(i.defaultKey);!(o||!r.length)?false?undefined:invariant(false):void 0;var d=function(r){l(a,r);function a(){var e;for(var n=arguments.length,a=new Array(n),i=0;i<n;i++){a[i]=arguments[i]}e=r.call.apply(r,[this].concat(a))||this;e.handlers=Object.create(null);s.forEach((function(r){var n=t[r];var a=function t(a){if(e.props[n]){var i;e._notifying=true;for(var o=arguments.length,s=new Array(o>1?o-1:0),u=1;u<o;u++){s[u-1]=arguments[u]}(i=e.props)[n].apply(i,[a].concat(s));e._notifying=false}e._values[r]=a;if(!e.unmounted)e.forceUpdate()};e.handlers[n]=a}));if(o)e.attachRef=function(t){e.inner=t};return e}var c=a.prototype;c.shouldComponentUpdate=function e(){return!this._notifying};c.componentWillMount=function e(){var t=this;var r=this.props;this._values=Object.create(null);s.forEach((function(e){t._values[e]=r[i.defaultKey(e)]}))};c.componentWillReceiveProps=function e(t){var r=this;var n=this.props;s.forEach((function(e){if(!i.isProp(t,e)&&i.isProp(n,e)){r._values[e]=t[i.defaultKey(e)]}}))};c.componentWillUnmount=function e(){this.unmounted=true};c.getControlledInstance=function e(){return this.inner};c.render=function t(){var r=this;var a=u({},this.props);f.forEach((function(e){delete a[e]}));var i={};s.forEach((function(e){var t=r.props[e];i[e]=t!==undefined?t:r._values[e]}));return n.default.createElement(e,u({},a,i,this.handlers,{ref:this.attachRef}))};return a}(n.default.Component);d.displayName="Uncontrolled("+a+")";d.propTypes=i.uncontrolledPropTypes(t,a);r.forEach((function(e){d.prototype[e]=function t(){var r;return(r=this.inner)[e].apply(r,arguments)}}));d.ControlledComponent=e;d.deferControlTo=function(e,r,n){if(r===void 0){r={}}return c(e,u({},t,r),n)};return d}e.exports=t["default"]},function(e,t){function r(e){if(e&&"object"===typeof e){var t=e.which||e.keyCode||e.charCode;if(t)e=t}if("number"===typeof e)return o[e];var r=String(e);var i=n[r.toLowerCase()];if(i)return i;var i=a[r.toLowerCase()];if(i)return i;if(r.length===1)return r.charCodeAt(0);return undefined}r.isEventKey=function e(t,r){if(t&&"object"===typeof t){var i=t.which||t.keyCode||t.charCode;if(i===null||i===undefined){return false}if(typeof r==="string"){var o=n[r.toLowerCase()];if(o){return o===i}var o=a[r.toLowerCase()];if(o){return o===i}}else if(typeof r==="number"){return r===i}return false}};t=e.exports=r;var n=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222};var a=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};
26
+ */var n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,s,u=o(e),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))a.call(r,c)&&(u[c]=r[c]);if(n){s=n(r);for(var f=0;f<s.length;f++)i.call(r,s[f])&&(u[s[f]]=r[s[f]])}}return u}},function(e,t,r){var n={"./Button":1,"./Button.tsx":1,"./Fieldset":4,"./Fieldset.tsx":4,"./Form":5,"./Form.tsx":5,"./Header":3,"./Header.tsx":3,"./Input":6,"./Input.tsx":6,"./Panel":2,"./Panel.tsx":2,"./Tabs":7,"./Tabs.tsx":7,"./logo.png":15};function a(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}a.keys=function(){return Object.keys(n)},a.resolve=i,e.exports=a,a.id=14},function(e,t,r){"use strict";r.r(t),t.default="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4QQIACoNMCJcPQAAIABJREFUeNrt3X1wFHd+5/Fv9zxIamQJEDPTkpBACDGjGYlnDAbxbMDGPHv3bGfjvdqq3Upqr877cLmtXDaXS2VTdZe93KWyV+ekNlvZVPZ2y3fJ8oxtnp8xzw9mpqWREOAZNGppJJAQ6hHz8Ov7gx/rQbYxhhbqnvm8q/SXBeX5zfSLX/d0/35ECCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhL4oAUOARrtw/HgdEVUk+vWLM6cuGcCIIICFTFXFPKqrW0bLy2rELUUlwgIiKk0N0akDf53ZcLuFejFCCGChUW3acue0umWOlWU1ts1FJcKLOqPSdFInnT34705JoI6rmU27//O9HRgt9HnZMQRohJHyZSE1T2dUkk7qlNT0z/yuzogySX0MRg0BLPQ8kaqvW+Z4uazGtonPpIq/CKnPiWEEEcBCI41UIAupeTqjMV8BKYQAFhpxpBrqljlWZSFVBKQQwEJmQqqxbpljNUdqrs6oEEghgIXMhNT0umWOV8pqbBuLSoQ5OqMCIIUAFjITUjPqljnWltXYNhSVCLN1Rk4jkLI7H9xJk04COwSw0LMhNYsjtZ4j5TACKZuTSBQFEkT6RG1OHyOilKvW9lYmTUUYdQSw0BM1rsomuKbaZtUtc7xWVmNbx5GyG4zUjXh75li8LbO1/UTqVCyY7iEiev1/Fl8fX237y8+ZaYl4ZxDAQg+Rsg1DapbOyGYwUu3x9szReFtmW/uJ1EexYPozj9p0t2b2ebz2R8CyOwWyOYV7eJcQwMpvpOwcqXVZSAkGI3Ut3p45zJE6HQum7zzuz13dnbzs8dr+tKzGtllnVCqIlOluSx/9eMf9g3jH0BeFZwlztIoGu0MqE2d5Vzg2lNXYXisqEWbq7MHFbv0Z7yXPQqo13p45xJE6Ewum+5/i/1NgjEpFkTKxYBorNSCAlUdIOWubHHNcdbYNrlrbqzqjGUSGI9USb88c5EidiwXTd3Ni8EorZCKyUX+sA58kgIVGDqkCjtQmV61tjc5oOmM6ZZLP/ndnIaVwpLa2n0idjwXTuXGdqbSiksrqFtML7s00xrWQRJuN4q1/Q+G9/x2fLICFjEOqsLbJMc9VZ9voqrWt1hk1jgBSwXh75kC8LbOdz6S0HEGqisrqmjhSTUR6Oek6EUs/+O+Ooh66+tsA9ce68UkzX7jobh2kimqbHC9ypFbpjBoYM+Zu8yykrsbbM3vjbZmdHKmhHEGqms+kttAY1yIi3UO6Tp8rPEsT6bqETxzAQl8dqTHDZlJ+I5ASxE/vOBdEuhJvz3wQb8vsaj+RuhALpu/nxOC5vZPI5V1CUtkWchQtJNLdX4jUo+n8BwEs9ARIFXOkNrtqbS/rjOqNREoQSU/c1a90hdN77nay3RypVI4gNZlc3qUcqZeIdBexNBlyrowAFvodUi/w072HSHkNRool7uqXu8Lp3W1HUrvj1zKX7kQz6RxBqoZc3uUklW0mR9ECIn0CkAJYyHikSmqbHPNddbYtrlrb8hFAKs2R2tV2JLWHI5Ubq3m6vbXDkBpvIFIi4fEggIWIKhrspbVNjgUcqWU6o2kGI5VK3NUvcqTej1/LXL4TzeTG9Ri3t44jtYkjNW6EZlI2/oMAVl4iNa62yfESP91bpjOaajBSycRd/TxH6oPWw8krOTN4bu+0YTOpUpzuASxkPFJlHKlNHKlag5Ea4kjtaDuS2tt6OHk1h5Dyksu7gl84f5FILzEEKUEgEu1ERD1EdIWIJhJLe0nHF4IAKz+RmjBsJlVjMFIaR2p725HU/tbDyWAOIeUjl3dlFlLFhiAl2h9ARUI3pRKnaKBrK3W3HKd4601yTSulyQuPkc0xfRhaAuGGaoCVo0i5s65JLdUZTTYYqXscqW1tR1IHWg8nlRxCqp5c3lX8dG/uCCCl0mD8FA10b6XetuPUH4s88nvx1n5yeQ/QuOrplH3rmSCIJAj38ekGWLmE1EJXne11V61tic6o2mCk7ibu6uc4UgdbDydbcgipALm8q0kq28iRGmMwUjEajJ/kSJ2g/titx/65wfgvqESeTzann0gvJBLuUSb1C0rfxwPQJg1T3ydDSq5tciziM6nFOqMqI57dy0KqP3FXP9N7I7OdI9WaQ0g1kMu7JgupIv74i1FI3aLB+IkspDq/0t9TNM5GzqJJpOtFJAj3qD/2yWgNVVVVdSMRvaBp2pne3p4MjjyA9VWQKq9tcjRxpJp0RhMNRuoOR2pb25HU4dbDybYcQqpxGFKFBiMVocH4cRro3saR6rLqUPkDDY1+f+AVt9uzUZKkuURUkEwmf/Wb3/zqOz3xOE5NcUr4WKQqa5sci/mF80U6o0qDT/duJ+7qH/HTvSOth5PtOYTUjGFIOQ0+3btJg/FjHKlTVl5NwR9omMGR2iBJ0lzGmDOdTtP9+w98KigoeLuwsPCnRBTEUQmwhiNVxZHaxGdS5QYj1ZO4q5/qCqe3th1JHWs9nLyRY0itJalsAzmK5hDpDoORukGD8SMcqY+oP9ZjYaRm+v2BVzlScxhjjmyksmOM6bquF4AngEVERNOWO6vrljkWOwqFLR6vbZHOyGMEUlnLtHQPQ+qTnBg4abxAxa6ZWUjNJtLtBiPVzpHaSr1tp6k/dtuKQ1VWNkHwyPJMvz+wliM1mzFm/yKkhoUVI/IdLI7U0rIa25aiEmGhzshtMFKd8fbMKb4q5/FYMB3NEaREjtQ6ksrWk6No5ggg1ZqF1Fnqj92xKFIiR2qd2+1ZL0nSLMaY7QmRQgCLaMl3i9bWNjm+5ZSEJTojt8E7xXTE2zMn+frmx2PBdG58HS6Nt1Gxaxa5vOtJKnuNI2UzGKkwDcYPc6TOUH/MkmvDl5VNsHlkeZbfH1jvdnvWSZI0A0gBrK/chjdXOAtXHvn7cS7nt1JDhiJ1K96eOc6ROhELpjtzYsCk8XYqds3mSK0lR9EsIl0wGKlmGowfpIHu7RwpS64NX1Y2we6R5dl+f2CD2+15lc+kBCAFsJ66mVucX2tPCt96FqiykIrw3Yu3tZ9InYwF0105MUilFQ4qq5tLRaXrOFIzifj65sYhpdBgfD9H6hz1xwatOFRVVdUOr69+7tixY9dzpGYyxghIASxDesEtrtIj9JVXNspC6ibfvXgr3xg0NzYlKK0ooLK62fSCewONcb1KpM8gIqORCtJgfC8NdO/kSCUsilSB11c/R5bL18uy/Cpj7MG2aQYgZbfbiTFGjDEoBLCIWJoqngKp68OQ6smJwSitKORIbaIxrleI9MYnXN/8qyB1lQbjH9JA9w7qbbtA/TFLbmBRVVVdyJHaKMvyK4yxRl3XDZlF2e12EgSBRFEM37p168S4sWNdBYWF6zOZDG7gznewiOhL72MRRCJHoRCNt2f2ZSF1OydefWlFEZXVzeFIrSHSGwxB6tNlWohIuEKD8Q/4TOoC9ccsuVBVVVV1EUdqkyzLaxhjDSOAVLOqqgdUtXNbuKX5XDQauUdE9N1/9842u92+SceKEXkPlv5lWCUH6dLxv0usbTuaVHMIqRc5UquI9ICxSAk6pRKXaKDrA+pu2UnJe5eoP2bJDSyqqqolr69+HkdqFWMsMAJIhVRV3a+qndvDLc3no9HIZ67fdXd3fThlSu2mRCIx/M9r4Cm/wHr8aaBdoIHujGJ5rEorxlBZ3Ty+595KIt1vMFIZjtT7FA/vonvxS6TdtuSDuVVV1WM4UltkWV7JGPOPAFJXVVXdx5G6EI1GHnv97uLF8+9JkjTX7fbMZ4yNEUVxSFU7fz00NNQGngDW70ondSr321ZOXeKsu3bMYg8el1YUU1ndfD6TWkmk1xuMVJpSiYs00LWL4uH3OVK6RZEq9vrq58ty+WZZllcwxuqNQEoQBLLbHxw+oiheUVV1r6p27uBIPfFffr29vf96e/t3qqqqnUxnY0RBvB+NRjC7AlifLZnQ5cV/WPh/79/TN0YvpqImR6pkGFJeg5FKUSpxgQa6dlI8/AF1hy9b9X2tqqou4Uht4jMpr5FIiaJImqZdjsU63u/r69vNT/ee6dQ4Go0kiQiL1QOsL05nRDY7zXr5j4o+bD9hf/vYu4mLJkOqlCO1mca4VhDp0wxG6j5HagfFw3upO2zZDSyqqqpLvb76BRypFYyxaQYjpWuadikW69ijKKHdXap6sbe3Jw1CANZzLZMmEkTyN6x1Hix4QfiT87+5//ejujVWacU4fuF8C0dqqsFIJThS2zlSll3CpKqqepzXV/8ivya1gjE21WCkMhypXYoS2tOlqpettrBeVVV1CRF5BwYG2vr67vQBrByZaSXu6mNr5jvenTjDvrH9ROovjr2bOPWckXqJI7WMSK81GKlBSiXO85nUPuoOhyyM1Hg+k9oiy/IyxlitwUilOFI7FSX0PkdKt9gYlXp99S89nG0SUV1vb+/ZH/7gnfWNjY3dACtHSg3pJIi0pn61c0Vtk2Nr+4nUz6/uSh69E81kRgCpsiyklhLpUwxG6h6lEmf5TOoAdYebLYxUGT8At8iyvJQxNsVgpJKapl3gM6n3lVDwigXH6LGzzYKCghclaYyfiABWrs22kpruEER6o361843JCxzne29kfhs+lNqr9bJQLJhOPgNSE6isbiFHagmRXmMwUnc5UtsoHj5E3eEWCyM1weurX8gPwCWMsRqDkRriSO1QlNCHSih41aJIvfQks81ceQwIYD0eLrI7aW5lo31uZaP9LwWRQl3hzOXUkH4yfCil3IuzTiKKq0r68Uuj1C5bQcWut/np3mSDkeqnVOI0DXRtpXj4CHWHWy2MlDsLqcWMsckGI5XQNO0cR2qfEgoGLThG2bPNJUadEgOsHIIrNaQTEdmIaPqEWnG6KArfrGy0ExHdIaK4o1Do2fqje9/uDKYfPe0aWz2OfGv+gUTH66QzI5G6TanEmSykrlkYKY/XV7+I3ye1hDFWbTBSgxypbYoSOqiEgiELjtEEjtRmPpOqySekANYzlEkSZT596mcc/5mmM6ogokfBmrTgL0i0v/5MUH2KVA+fSW3jSF23MFLlw073JhqM1ABHaquihA4poWCzBcco+5R4qVGzTYCFfmfZsOtVEhVPWE1Pc8nr0S3WH57uHaXu8E0LI1XBZ1IPT/cqDUaqX9O0s3wmdUgJBcMWPiV+nY/RJCAFsJ7TuaReRrpe+hRIddGAepJYejtHKmJhpCq9vvrFHKkmxli5wUjd4UhtVZTQYSUUbLPgGI3IKTHAQl+1AnqCJW4enPI51GEbg1p2A4uqquqqLKQWjgBStzVN+ygW69jOkWq34BjJWbNNw06JARYa2QSBKJP6LV0/9n3qDt+y6svwBxqq/f7AUqfTubmionIhY8xjMFI9mqad4kgdUUJBy+3tyK/bNWXNNoEUwLJYop2oL/prK2LlDzRM9vsDS91uzyZJkhYyxtxGHIBZy7R0c6S2KUromBIK3rTwKfEmjlQlkAJY1o2liUoqvkZE2yyCVA1HajNHaoJR65tzpFRVVU+paufWcEvz8Wg0Yrnrd1VV1ROHzaTKgRTAyo10nche8BZ515yh8N6fmRSpWo7UFkmSXmKMjTcYqZiqqic5Uiei0YjlZptZ1+1el2V5kVGnxAhgma9MSqAJdX9DRDqF9/4vkyA11e8PLONILWCMjTMYqVuqqp7gSJ2MRiMxC54Sj8h1OwSwzF96SKSyKT+jmf9mCn1y+k/pTmRwFA7AOr8/sJwjNZ8xNtZgpCKqqh7nmzCciEYjltvbkV+3W8zHyLDrdghgWXGmRSSVfZ+mrV5EPdf+E7UfOfgcDsBpfn9gJb8m9SJjrNRgpG6qqnqMI3UqGo1YbqWArC8Xthh53Q4BrNxASxDmkce/lyZM/Rfqufa31H7ktMEHoC8LqXmMsRKDkbqhquoRjtRH0WjEcns78i8XlvMxWgCkABb6oh6s5GAjQXiTPP6v0/iao6T1/vpZnh8sK5tQOGfO3K97fb63CwoKX2KMFRuMVDtHamu4pflMNBrptSBStfy63WYjv1xAACu/4LLZV1Bp5QoqnXibJi28TFrvcUr0n6ae1k+IqJPudj522duamimu9Rs2ved0Olckk0kjkWpTVfUwR+psNBq5Y0GkRuTLBQSw8hyuFBHR+E/xqiSS/YNE1EkkxGlAvUN65jTdOPFfabD3kY0RFi9Z+sd2u33FsxyE2VusZyF1JhqN3LUgUiPy5QICWOiL8SIiGkNEU4loKhW7iezOWRQ997+J6PbDX5hYVSW63Z5lT3MwDtti/SDfGPTMwy3WLYbUNL8/sIKf7s036ssFBLDQ08TSRBlBI13XH/VNL2aMvfAUSClZW6yf+7wt1i2AlJcjtYV/A1oCpAAWMndO/vPYBEEgp9PZoqrqHlXt3MmRSlgQqYffgD5EqhhIASxknQT+81isUqnUewcO7PuOEgpa8XSv3u8PrOIPYc8DUgAL5fIHwG6nTz65ud9KWPkDDYFh95KNAVIAC+VB6XSaKisn/n5NzZR/unHjumn3geJIrc6aSRUBKYCF8ixd16mwsHD54iVLf3rjxvU/MhlSDX5/YA1Hag6QQgALUSqVovHjy/7DO9/7obhr5/b/eOPG9cxo/H/wLdZnjh07do3b7VkpSdIMxlgBkEIACz1SJpMhm832g3XrN0w5ePDAO0oo+FwWz+OPxLzodDpfq6ionM8Ym/rwVBVIIYA1QrF0bqAlCOLGdes2vDh1at1PTp44/sve3p4hg2dRBcUvFDcGAo0r3G7PK5IkzWSMjcMyLQhgPcdKykXqbrX+69B1nRKJRPnUqXXvTpo06dvNzc0/C7c074hGI33PgNQkr69+uiyXr+UrcjYQkYBZFAJYo5R3haPg2tFkzryeVCpFgiDOnj59xj/NnDnrmqqqWy9cOPvbewP3LkWjkdSXAOXx+uqnjR07dqnb7VkhSVIDY8yFWRQCWOY5JRRy7TXpuk6pVIqIaKrL5frRq6+u+5EoildisY5zQ0ND54go2nHrVqJy4sQSIppIRPWyXN4oSVItY2wiEa5FIYCFRqF0+ncX6WZ4PPIMQRC+TUQ0eXLNZ34PQJk2y/+jCrAMSsyjkczCC1nlQH+wIe0dy78OvJXGFD6USmIUkNmQerhLUXv7tf+jaYMhgIWIiOhuJ2MYBWQmpPgGIA+3UlO3bf1X678+vMU4JUQ5g1QkC6lTVtxKDWAhlNtIWX4rNYCFUG4jdWPYTKonb8YAH4Ocei9tGIacRurhVmofWXErNYCFsvvS1UWR5ZDK3u/xdDQauY1/lRFCZkLqmqqqh/gGIKetuN8jwEIot5Fq5TOpbfx0rx+jA7AQMhNSlt+UFmAhlPtIHeAzqbPRaGQAowOwEDITUs1ZSJ2z4s7ZAAuh3EZKGYbUIEYHYCFkJqRCqqru59/unbXiztkAC6HcRiqoqupejtQFIAWwEDIbUldVVf1QVTt3cKSGMDoAC6FRTRAEstsfHB6iKF7hSO3kSGFJVYCFkDmQEkWRNE27HIt1fNjX17cz3NJ8/ss23kAAC6HniZSuadqVWKxjj6KEdnap6sXe3h6sBQ2wEDIVUpdisY7dihLa1aWql4EUwELITEhlspDa06Wql3p7ezIYIYCFkFmQSmuadpGf7u3mSOkYIYCFkFmQSvGZ1E5FCb2vhIKXMDoACyGzIXUhC6krGB2AhZCZkEpqmnY+FuvYoSihvUAKYCFkNqSGOFI7FSX0oRIKXsXoACyEzIRUgp/ubeczqSBGB2AhZI4Ppt1ONpstoWnaOY7UPiUUDGFkABZCpsrhcNzq7u7+Hxcvnt+nhIIKRgQBLGTWmRVrbQ1/e/euHXsxGmh4IoYgZ0oTkeXv2BYEIXHu3JnreDsRwMrtdP6TC7Ms7GCNABZCyOL/mGEIEMrdqqqqJxDR1IGBgda+vjuW3+oeYCGUe0i5vb76hbJcvlmW5aVENKm3t/fSD3/wztrGxkYVYCFkXIxy5Frcc0bK4/XVN8ly+SZZlpcwxqp1Xaf79x+s5lxQUDBLksZMISKAhZCBZSgHvu18TkiVc6Q2y7K8mDE2MRupR/4VYIwYYwJOCRFCzxOpSq+vfjGfSTUxxiq/CKlcDGAhZH6kqjhSm2VZXsQYK88npAAWQibPH2io9vsDS51O56aKispFjDFPviIFsBAyJ1KT/f7AUrfbs1mSpJcYY24gBbAQMhNSNX5/YFkWUhPS6TSQAljIIuXMI0aPQarW7w8sd7s9mzhS44EUwELWLM1/cg2pOo7UZkmS5jPGxgEpgIWQmZCa5vcHVvKZ1HzGWCmQAlgImQkpH0dqsyRJ8xhjJUAKYCFkJqTq/f7AKrfbs1GSpBcZY8VACmAhZCakAn5/YDVHai5jbAyQAlgImQmpBr8/sCYLqSIgBbAQMhNSjX5/4FW327NBkqQ5jLFCIAWwEHrYqN/W4A80zPD7A2vdbs96jpQTSAEshD6vUblx1B9omJWF1GzGmANIASyETFFZ2QTRI8sz/f7AOrfbs06SpFmMMXuOI2XHC0DIOkjZPLI8y+8PrHe7Pa9JkjSTMWbLo5kUFvBDyMxVVVXbi18onh0ING5wuz1rOVICTvcAFkJmQcrp9dXPkeXyDbIsv8oYm0FEBKQAFkJmQaqAI7VJluU1jLHpWEsKYCE00j3xJhRVVdVFWUitZow1AimAhdDzjGUymfRjkJK8vvp5HKlVjLEAkAJYCI1WJaWlY4vUzs5spIq9vvq5sly+RZbllYwxP5ACWAiNeul0etzLL6/+M13X/3pi5cSKisqJX+NI+YAUAljIVOm6Tjab7Tvr1m14g4hKgBQCWMj0aKVSqRKMBBqeiCFACAEshBACWAghgIUQQgArb9IxBAgBLKuUxhAg0x7ookiiKFr+eMdtDQjlaIIgkN1uJ1EU6d69e0c0bTAMsBBCZkRK1zTtUizW8YGihHbFOjrO/fIf/4EBLISQWZBKa5p2MRbr2KMooT1dqnq5t7cnk0uvFWAhZG2k7nOkdipK6EMlFLycy68bYCFkPaQ0TdPOc6T2KaHg1XwZA4CFkDWQGtA07Vws1rFdUUIHlVBQycfxAFgImRepPk3TzsZiHdsUJXRYCQXD+T42AAshcyHVq2naaY7UUSUUvIbRAVj5UoZwQ6t5Dz67nQRBIFEUuzRN+4gjdVwJBW9gdABWPjYq276jJ0IqpqrqSVXt3BZuaT4RjUaiGB2AhZCZkIqoqnqCI3UyGo10YnQAFkJmQuqGqqrHOFIfRaORbowOwELITEhdU1X1qKp2bg23NJ+JRiO9GB2AhZCZkAqrqnqYz6TORKORfowOwELITEgpqqoeUNXO7eGW5nPRaOQeRgdgITSqPbxHiohIFMWrqqruU9XOHeGW5vPRaCSBEQJYCJkCKb5My5VYrOODvr6+XeGW5ovRaAQbJQIshEyDVIavJbVHUUK7+TItuAEXYCFkGqSSfJmWXYoS+oAjhZtuARZCpkEqoWnahVisYwdfpuVjjA7AQshMSN3ja0ltV5TQASUUDGF0ABZCZkKqny/Tsl1RQoeUULAFowOw0OiW4T9A6gFStzVNOxOLdWzly7S04SMCsJB5Yvwn/z7En97I2Z21ltQxJRS8jo8FwELITEh1xmIdp5LJ5MO1pCIYHYCFkJmQujVsmZYOjA7AQshMSN1UVfU4R+pUNBrpwugALIRGvawL5+18mZZt4Zbm09FopAejA7AQMhVWmUzmqKKE/oojdQejggAWMuspYP/evR98O9zSjN1i0GcSMQTIZPX19/dhVoUAFrLGWaHNZsPnEgEshBDAQgiZNH+gYeYbb/7e79VMqfXnwuvBRXeEcqiysgmCR5Zn+v2BV9xuzwZJkmYzxpxr17rUH3z/nYVTp9ZaeldpgIWQ9ZGyeWR5lt8feM3t9qyTJGkmY8yeTqfp/v0HqzmnUilZ1/UaIgJYCKHnW1VVtdPrq589duzY9W6351WOlJCN1Odk+YfjAdbIpfMfhIxCqsjrq58jy+UbZFlewxibTkT0JUjlVABr5ErzH4SeBalir69+riyXb5Jl+WXGWEDX9bwBCmAhZH6kSry++vkcqRWMMV8+IwWwEDIfUuM5UptlWV7GGKsDUgBrJMP1KvRVkXJ5ffUv8ZnUUsbYFCAFsJ5XGQwBegKkZK+vfiGfSS1mjE0CUgALITMhNdHrq1/EkVrEGJsIpAAWQqbJH2iY5PcHFjudzs0VFZULGWMykAJYCJkJqSl+f2Cp2+3ZLEnSAsaYC0gBLITMhFSd3x9Y7nZ7NkmSNJ8xNj6fbuQEWAiZHymf3x9YwWdSLzLGSoAUwELITEgF/P7AKrfbs1GSpLmMsWIgBbAQMhNS0/3+wBq+TMscxlgRkAJYCJmirLWkXnW7PesfriUFpAAWQmZBys6RWud2e16TJGkWY8wGpAAWQqaIryU1h68l9coTriWFABZCzw2pIr5My8O1pBqJ8mstKYCFkLmRKvb66udlrSXlx42cAMusJfH25iVSpVlrSS3HWlIAyyphuZf8QWq811e/gCOFtaQAFkKmQ8o9bC2pGiAFsBB67qXT6fQXIFU+bC2paiAFsBAavfN4XXfPmzffv3vXjpMcqYleX30Tn0k1McYqgRTAQsgss6vCadO877351u//KxFVTpw4cTHWkkIAC5m2VCo1sby8/PtEBKQQwEKWmGlhENBnEvHaEEI4qEe/Aby9CAEsa7wwO+3It7Mo/oMQwLJabUdS2+1Oasuj91In3N2PAJY1+/mf77/bdoz9maNQwLuMUI4c7zl9Yfqjd/X30kn6uQ3fhaI8ThAEcjgcuiAI3QDL5O3/qfY9xoTdQAvlIVJUUFAwoOvs8MdXLr85dWpt0OqvK+cP4+jF1ND+n2pvrPqR9I+OQnojNYTLPCh3kbIwxsNZAAAF/UlEQVTb7SSK4h1N087EYh3bFSV0RAkFw7nyGvNi3hG9mNL2/1T7xvy3C0JlNbYfp4b0Ap3hA45y4AC220kQBBJFsVvTtI84UseUUPB6Tr7efHljoxdTmejF1E+WfLfoSG2T4785JWFhakgnwIUsjFSHqqonVbVze7il+WQ0Gonk/GvPtzf72LuJ41d3JZc3rnd+o7bJ8e+dkjArk9Ypg/VJkTWQuqmq6glV7dwWbmn+KBqNdObVOOTjm38nmkkeezfxy6u7kr9pXO9cMqHW9qar1rZKZ1TF2FfHy+4USBDJhsMKjRBS11RVPcpnUqej0UhP3o5JPn8g7kQz94+9m9hPRPsrGuye2ibHQledbZOr1rZAZzTtCf4KXRCpubstffT+Pb0NhxgyEKlmVVUPc6TORqORfowOVmv4XbFguisWTG8jom0VDfYSqUz0eVc4GlmaGomoiojG0YM7ye8QUUS008fhQ6mrWi9TYsF0AiOInqaH3+wREYmieFVV1f2q2rkz3NJ8PhqNDGKEANaT4HWXiM5eO5o8i9FAI4WUKIq6pmmXY7GOD/r6+naHW5ovRqMRLAAGsEbnc8l/EMpGKqVp2sVYrGOPooTe71LVy729PRmMEMAa7U9okgQBH0QgRaIoJjRNuxCLdexUlNA+JRS8gtEBWOYqfV+ldPICCcJa0nF3fR4iNaBp2jl+I+chJRQMYXQAlnkb7GUUb/0ZlTeupTQuS+QJUrc1TTsbi3VsU5TQ0Vx6JAZg5UOdH+8j17R/IUH4OmZZOXbgfPaRmG2KEjqeq4/EAKx8KNGn0/WjPyTvK3MolZiCAckZpG6pqnqK321+MhqNRDE6ACs3irfdovFTvkET6vZQemg8BsSySN1UVfV41iMxKkYHYOVm4b2niWgzuaa9R+mhcpweWgaptqxHYs7k8yMxACv/0DpGd26upJrFvyCbYyFlUhgTcyLVrKrqIVXt3IFHYgBWftcdbqZUYjVNWvAnJE34HrHUGMy2RqcveCRmR7il+QIeiQFY6GF3IoN0J/Jjcnv/H9Us/mOyObeQzpzEsEPX80JKFEXGH4n5sK+vbxd/JAYLDAEs9JjZ1hXqDr9Fbu9MKp/+Fo1xbSDSfaTr9FR4iXaJBDwJ9BikkpqmXYrFOnYrSugDPBIDsNDTwXWZusOXqbTiJ1RW9xK94N5IY1zLiXT/736Hpekzp46inT4FSojQva7dlL6PC2OPIqUNeyTmY4wOwEJG1B+7R/2x/US0n0orishZ3EBu31ximflU7J5CjqJSIr2AiNJEwj0aUGPE0hcp0X+aets+pv5Y9+ccuGlRFPNiFpGF1F3+SMwORQkdVEJBBR8ugIVGFq8EEZ2jeOs5Ivo7IiIqrXCSrjuJKEN3O59o/a2hoaFBTdPu2u120nPw4v6wR2Kyd4lpxYcIYKHRRSxJRF/pwnBPPM66utQTkyZNnptK5cbZYtbtB13Ddom5gQ8JwEIWr7lZ+UVNzZQ/JKLCHEDq1rBdYvBITJ6Fr5XyoG/+22/9+YQJrv9ipVlWFlI3+CMx2/FIDAJYeVBNzRT7+g2b/lkUxbcyGfNeg/+cR2K28UdievEuIoCVX2gVrN+w6W/tdvsfmGmm9TmPxDzcJeYu3jUEsPK8DRs3/4HPV/+ToaEh12h8czjskZiPh+0So+EdQgALPZI/0DB55cqXf1xQUPjNZDLpHGm4hj8S093dlb1LDB6JQQALfXmrV78yz+vzfa+goHBzJpOR0mnjnmcc/khMd3cXHolBAAsZMuPyz54995uyLL/OGJuq6zo9DV7DH4np7u7CIzEIYKGRady48WO9vvpFsly+RZblBYwxLxHZnuTPiqLYw0/3dihK6FDkk5t4JAYBLPR8evvtbxYVFxf7Ag2N01iGBYhoMhG5iaiA/4pGRKpoE1v7+vo+Drc0N//qV/98EyOHEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCyNL9f38s0C2AuXuaAAAAAElFTkSuQmCC"}])}))},function(e,t,r){"use strict";r.r(t);r.d(t,"Provider",(function(){return m}));r.d(t,"connectAdvanced",(function(){return L}));r.d(t,"ReactReduxContext",(function(){return o}));r.d(t,"connect",(function(){return se}));r.d(t,"batch",(function(){return ye["unstable_batchedUpdates"]}));r.d(t,"useDispatch",(function(){return de}));r.d(t,"createDispatchHook",(function(){return fe}));r.d(t,"useSelector",(function(){return me}));r.d(t,"createSelectorHook",(function(){return ve}));r.d(t,"useStore",(function(){return ce}));r.d(t,"createStoreHook",(function(){return le}));r.d(t,"shallowEqual",(function(){return j}));var n=r(1);var a=r.n(n);var i=r(0);var o=a.a.createContext(null);if(false){}var s=o;function u(e){e()}var l=u;var c=function e(t){return l=t};var f=function e(){return l};var d={notify:function e(){}};function p(){var e=f();var t=null;var r=null;return{clear:function e(){t=null;r=null},notify:function r(){e((function(){var e=t;while(e){e.callback();e=e.next}}))},get:function e(){var r=[];var n=t;while(n){r.push(n);n=n.next}return r},subscribe:function e(n){var a=true;var i=r={callback:n,next:null,prev:r};if(i.prev){i.prev.next=i}else{t=i}return function e(){if(!a||t===null)return;a=false;if(i.next){i.next.prev=i.prev}else{r=i.prev}if(i.prev){i.prev.next=i.next}else{t=i.next}}}}}var h=function(){function e(e,t){this.store=e;this.parentSub=t;this.unsubscribe=null;this.listeners=d;this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;t.addNestedSub=function e(t){this.trySubscribe();return this.listeners.subscribe(t)};t.notifyNestedSubs=function e(){this.listeners.notify()};t.handleChangeWrapper=function e(){if(this.onStateChange){this.onStateChange()}};t.isSubscribed=function e(){return Boolean(this.unsubscribe)};t.trySubscribe=function e(){if(!this.unsubscribe){this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper);this.listeners=p()}};t.tryUnsubscribe=function e(){if(this.unsubscribe){this.unsubscribe();this.unsubscribe=null;this.listeners.clear();this.listeners=d}};return e}();function v(e){var t=e.store,r=e.context,i=e.children;var s=Object(n["useMemo"])((function(){var e=new h(t);e.onStateChange=e.notifyNestedSubs;return{store:t,subscription:e}}),[t]);var u=Object(n["useMemo"])((function(){return t.getState()}),[t]);Object(n["useEffect"])((function(){var e=s.subscription;e.trySubscribe();if(u!==t.getState()){e.notifyNestedSubs()}return function(){e.tryUnsubscribe();e.onStateChange=null}}),[s,u]);var l=r||o;return a.a.createElement(l.Provider,{value:s},i)}if(false){}var m=v;var y=r(30);var g=r(43);var b=r(119);var A=r.n(b);var _=r(93);var w=typeof window!=="undefined"&&typeof window.document!=="undefined"&&typeof window.document.createElement!=="undefined"?n["useLayoutEffect"]:n["useEffect"];var E=[];var x=[null,null];var k=function e(t){try{return JSON.stringify(t)}catch(e){return String(t)}};function M(e,t){var r=e[1];return[t.payload,r+1]}function S(e,t,r){w((function(){return e.apply(void 0,t)}),r)}function O(e,t,r,n,a,i,o){e.current=n;t.current=a;r.current=false;if(i.current){i.current=null;o()}}function D(e,t,r,n,a,i,o,s,u,l){if(!e)return;var c=false;var f=null;var d=function e(){if(c){return}var r=t.getState();var d,p;try{d=n(r,a.current)}catch(e){p=e;f=e}if(!p){f=null}if(d===i.current){if(!o.current){u()}}else{i.current=d;s.current=d;o.current=true;l({type:"STORE_UPDATED",payload:{error:p}})}};r.onStateChange=d;r.trySubscribe();d();var p=function e(){c=true;r.tryUnsubscribe();r.onStateChange=null;if(f){throw f}};return p}var T=function e(){return[null,0]};function L(e,t){if(t===void 0){t={}}var r=t,i=r.getDisplayName,s=i===void 0?function(e){return"ConnectAdvanced("+e+")"}:i,u=r.methodName,l=u===void 0?"connectAdvanced":u,c=r.renderCountProp,f=c===void 0?undefined:c,d=r.shouldHandleStateChanges,p=d===void 0?true:d,v=r.storeKey,m=v===void 0?"store":v,b=r.withRef,w=b===void 0?false:b,k=r.forwardRef,L=k===void 0?false:k,C=r.context,j=C===void 0?o:C,N=Object(g["a"])(r,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);if(false){var I}var P=j;return function t(r){if(false){}var i=r.displayName||r.name||"Component";var o=s(i);var u=Object(y["a"])({},N,{getDisplayName:s,methodName:l,renderCountProp:f,shouldHandleStateChanges:p,storeKey:m,displayName:o,wrappedComponentName:i,WrappedComponent:r});var c=N.pure;function d(t){return e(t.dispatch,u)}var v=c?n["useMemo"]:function(e){return e()};function b(e){var t=Object(n["useMemo"])((function(){var t=e.reactReduxForwardedRef,r=Object(g["a"])(e,["reactReduxForwardedRef"]);return[e.context,t,r]}),[e]),i=t[0],o=t[1],s=t[2];var u=Object(n["useMemo"])((function(){return i&&i.Consumer&&Object(_["isContextConsumer"])(a.a.createElement(i.Consumer,null))?i:P}),[i,P]);var l=Object(n["useContext"])(u);var c=Boolean(e.store)&&Boolean(e.store.getState)&&Boolean(e.store.dispatch);var f=Boolean(l)&&Boolean(l.store);if(false){}var m=c?e.store:l.store;var b=Object(n["useMemo"])((function(){return d(m)}),[m]);var A=Object(n["useMemo"])((function(){if(!p)return x;var e=new h(m,c?null:l.subscription);var t=e.notifyNestedSubs.bind(e);return[e,t]}),[m,c,l]),w=A[0],k=A[1];var L=Object(n["useMemo"])((function(){if(c){return l}return Object(y["a"])({},l,{subscription:w})}),[c,l,w]);var C=Object(n["useReducer"])(M,E,T),j=C[0],N=j[0],I=C[1];if(N&&N.error){throw N.error}var R=Object(n["useRef"])();var F=Object(n["useRef"])(s);var Y=Object(n["useRef"])();var B=Object(n["useRef"])(false);var H=v((function(){if(Y.current&&s===F.current){return Y.current}return b(m.getState(),s)}),[m,N,s]);S(O,[F,R,B,s,H,Y,k]);S(D,[p,m,w,b,F,R,B,Y,k,I],[m,w,b]);var z=Object(n["useMemo"])((function(){return a.a.createElement(r,Object(y["a"])({},H,{ref:o}))}),[o,r,H]);var U=Object(n["useMemo"])((function(){if(p){return a.a.createElement(u.Provider,{value:L},z)}return z}),[u,z,L]);return U}var w=c?a.a.memo(b):b;w.WrappedComponent=r;w.displayName=o;if(L){var k=a.a.forwardRef((function e(t,r){return a.a.createElement(w,Object(y["a"])({},t,{reactReduxForwardedRef:r}))}));k.displayName=o;k.WrappedComponent=r;return A()(k,r)}return A()(w,r)}}function C(e,t){if(e===t){return e!==0||t!==0||1/e===1/t}else{return e!==e&&t!==t}}function j(e,t){if(C(e,t))return true;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null){return false}var r=Object.keys(e);var n=Object.keys(t);if(r.length!==n.length)return false;for(var a=0;a<r.length;a++){if(!Object.prototype.hasOwnProperty.call(t,r[a])||!C(e[r[a]],t[r[a]])){return false}}return true}var N=r(165);function I(e){if(typeof e!=="object"||e===null)return false;var t=Object.getPrototypeOf(e);if(t===null)return true;var r=t;while(Object.getPrototypeOf(r)!==null){r=Object.getPrototypeOf(r)}return t===r}function P(e){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error(e)}try{throw new Error(e)}catch(e){}}function R(e,t,r){if(!I(e)){P(r+"() in "+t+" must return a plain object. Instead received "+e+".")}}function F(e){return function t(r,n){var a=e(r,n);function i(){return a}i.dependsOnOwnProps=false;return i}}function Y(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==undefined?Boolean(e.dependsOnOwnProps):e.length!==1}function B(e,t){return function t(r,n){var a=n.displayName;var i=function e(t,r){return i.dependsOnOwnProps?i.mapToProps(t,r):i.mapToProps(t)};i.dependsOnOwnProps=true;i.mapToProps=function t(r,n){i.mapToProps=e;i.dependsOnOwnProps=Y(e);var a=i(r,n);if(typeof a==="function"){i.mapToProps=a;i.dependsOnOwnProps=Y(a);a=i(r,n)}if(false){}return a};return i}}function H(e){return typeof e==="function"?B(e,"mapDispatchToProps"):undefined}function z(e){return!e?F((function(e){return{dispatch:e}})):undefined}function U(e){return e&&typeof e==="object"?F((function(t){return Object(N["bindActionCreators"])(e,t)})):undefined}var q=[H,z,U];function V(e){return typeof e==="function"?B(e,"mapStateToProps"):undefined}function W(e){return!e?F((function(){return{}})):undefined}var K=[V,W];function G(e,t,r){return Object(y["a"])({},r,e,t)}function Q(e){return function t(r,n){var a=n.displayName,i=n.pure,o=n.areMergedPropsEqual;var s=false;var u;return function t(r,n,a){var l=e(r,n,a);if(s){if(!i||!o(l,u))u=l}else{s=true;u=l;if(false){}}return u}}}function J(e){return typeof e==="function"?Q(e):undefined}function Z(e){return!e?function(){return G}:undefined}var X=[J,Z];function $(e,t,r){if(!e){throw new Error("Unexpected value for "+t+" in "+r+".")}else if(t==="mapStateToProps"||t==="mapDispatchToProps"){if(!Object.prototype.hasOwnProperty.call(e,"dependsOnOwnProps")){P("The selector for "+t+" of "+r+" did not specify a value for dependsOnOwnProps.")}}}function ee(e,t,r,n){$(e,"mapStateToProps",n);$(t,"mapDispatchToProps",n);$(r,"mergeProps",n)}function te(e,t,r,n){return function a(i,o){return r(e(i,o),t(n,o),o)}}function re(e,t,r,n,a){var i=a.areStatesEqual,o=a.areOwnPropsEqual,s=a.areStatePropsEqual;var u=false;var l;var c;var f;var d;var p;function h(a,i){l=a;c=i;f=e(l,c);d=t(n,c);p=r(f,d,c);u=true;return p}function v(){f=e(l,c);if(t.dependsOnOwnProps)d=t(n,c);p=r(f,d,c);return p}function m(){if(e.dependsOnOwnProps)f=e(l,c);if(t.dependsOnOwnProps)d=t(n,c);p=r(f,d,c);return p}function y(){var t=e(l,c);var n=!s(t,f);f=t;if(n)p=r(f,d,c);return p}function g(e,t){var r=!o(t,c);var n=!i(e,l);l=e;c=t;if(r&&n)return v();if(r)return m();if(n)return y();return p}return function e(t,r){return u?g(t,r):h(t,r)}}function ne(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,a=t.initMergeProps,i=Object(g["a"])(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]);var o=r(e,i);var s=n(e,i);var u=a(e,i);if(false){}var l=i.pure?re:te;return l(o,s,u,e,i)}function ae(e,t,r){for(var n=t.length-1;n>=0;n--){var a=t[n](e);if(a)return a}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function ie(e,t){return e===t}function oe(e){var t=e===void 0?{}:e,r=t.connectHOC,n=r===void 0?L:r,a=t.mapStateToPropsFactories,i=a===void 0?K:a,o=t.mapDispatchToPropsFactories,s=o===void 0?q:o,u=t.mergePropsFactories,l=u===void 0?X:u,c=t.selectorFactory,f=c===void 0?ne:c;return function e(t,r,a,o){if(o===void 0){o={}}var u=o,c=u.pure,d=c===void 0?true:c,p=u.areStatesEqual,h=p===void 0?ie:p,v=u.areOwnPropsEqual,m=v===void 0?j:v,b=u.areStatePropsEqual,A=b===void 0?j:b,_=u.areMergedPropsEqual,w=_===void 0?j:_,E=Object(g["a"])(u,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]);var x=ae(t,i,"mapStateToProps");var k=ae(r,s,"mapDispatchToProps");var M=ae(a,l,"mergeProps");return n(f,Object(y["a"])({methodName:"connect",getDisplayName:function e(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:x,initMapDispatchToProps:k,initMergeProps:M,pure:d,areStatesEqual:h,areOwnPropsEqual:m,areStatePropsEqual:A,areMergedPropsEqual:w},E))}}var se=oe();function ue(){var e=Object(n["useContext"])(o);if(false){}return e}function le(e){if(e===void 0){e=o}var t=e===o?ue:function(){return Object(n["useContext"])(e)};return function e(){var r=t(),n=r.store;return n}}var ce=le();function fe(e){if(e===void 0){e=o}var t=e===o?ce:le(e);return function e(){var r=t();return r.dispatch}}var de=fe();var pe=function e(t,r){return t===r};function he(e,t,r,a){var i=Object(n["useReducer"])((function(e){return e+1}),0),o=i[1];var s=Object(n["useMemo"])((function(){return new h(r,a)}),[r,a]);var u=Object(n["useRef"])();var l=Object(n["useRef"])();var c=Object(n["useRef"])();var f=Object(n["useRef"])();var d=r.getState();var p;try{if(e!==l.current||d!==c.current||u.current){p=e(d)}else{p=f.current}}catch(e){if(u.current){e.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"}throw e}w((function(){l.current=e;c.current=d;f.current=p;u.current=undefined}));w((function(){function e(){try{var e=l.current(r.getState());if(t(e,f.current)){return}f.current=e}catch(e){u.current=e}o()}s.onStateChange=e;s.trySubscribe();e();return function(){return s.tryUnsubscribe()}}),[r,s]);return p}function ve(e){if(e===void 0){e=o}var t=e===o?ue:function(){return Object(n["useContext"])(e)};return function e(r,a){if(a===void 0){a=pe}if(false){}var i=t(),o=i.store,s=i.subscription;var u=he(r,a,o,s);Object(n["useDebugValue"])(u);return u}}var me=ve();var ye=r(17);c(ye["unstable_batchedUpdates"])},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(7);t.default=function(e,t,r){var a={data:null,isFetching:false,isEditing:false,fetchError:null,formError:null,isLoaded:false,responseBody:null,successMessage:null};var i=function(i,o){if(i===void 0){i=a}switch(o.type){case e+"_"+n.default.REQUEST:return Object.assign({},i,{data:null,isLoaded:false,isFetching:true,fetchError:null,formError:null,responseBody:null});case e+"_"+n.default.FAILURE:return Object.assign({},i,{fetchError:o.error,formError:null,isFetching:false,isLoaded:true});case e+"_"+n.default.SUCCESS:return Object.assign({},i,{fetchError:null,formError:null,isFetching:false});case e+"_"+n.default.LOAD:return Object.assign({},i,{data:o.data,isFetching:false,isLoaded:true});default:if(r){var s=void 0;if(o.type in r){s=r[o.type];return s(i,o)}}if(t){switch(o.type){case t+"_"+n.default.REQUEST:return Object.assign({},i,{isEditing:true,fetchError:null,formError:null,responseBody:null,successMessage:null});case t+"_"+n.default.SUCCESS:return Object.assign({},i,{isEditing:false,fetchError:null,formError:null,responseBody:null,successMessage:null});case t+"_"+n.default.FAILURE:return Object.assign({},i,{isEditing:false,formError:o.error});case t+"_"+n.default.LOAD:return Object.assign({},i,{responseBody:o.data,successMessage:o.data,formError:null});default:return i}}return i}};return i}},function(e,t,r){"use strict";var n=false?undefined:function(e){};function a(e,t){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;i<r;i++){a[i-2]=arguments[i]}n(t);if(!e){var o;if(t===undefined){o=new Error("Minified exception occurred; use the non-minified dev environment "+"for the full error message and additional helpful warnings.")}else{var s=0;o=new Error(t.replace(/%s/g,(function(){return String(a[s++])})));o.name="Invariant Violation"}o.framesToPop=1;throw o}}e.exports=a},function(e,t,r){var n=r(77);var a=r(163);var i=r(637);var o=r(641);var s=r(644);var u="prototype";var l=function(e,t,r){var c=e&l.F;var f=e&l.G;var d=e&l.S;var p=e&l.P;var h=e&l.B;var v=f?n:d?n[t]||(n[t]={}):(n[t]||{})[u];var m=f?a:a[t]||(a[t]={});var y=m[u]||(m[u]={});var g,b,A,_;if(f)r=t;for(g in r){b=!c&&v&&v[g]!==undefined;A=(b?v:r)[g];_=h&&b?s(A,n):p&&typeof A=="function"?s(Function.call,A):A;if(v)o(v,g,A,e&l.U);if(m[g]!=A)i(m,g,_);if(p&&y[g]!=A)y[g]=A}};n.core=a;l.F=1;l.G=2;l.S=4;l.P=8;l.B=16;l.W=32;l.U=64;l.R=128;e.exports=l},function(e,t,r){"use strict";function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__==="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function"){return}if(false){}try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}if(true){n();e.exports=r(698)}else{}},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}var i=r(866);var o=r(259);var s=r(868);var u=r(178);var l=r(10);var c=l.OrderedSet,f=l.Record,d=l.Stack,p=l.OrderedMap,h=l.List;var v={allowUndo:true,currentContent:null,decorator:null,directionMap:null,forceSelection:false,inCompositionMode:false,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:d(),selection:null,treeMap:null,undoStack:d()};var m=f(v);var y=function(){t.createEmpty=function e(t){return this.createWithText("",t)};t.createWithText=function e(r,n){return t.createWithContent(o.createFromText(r),n)};t.createWithContent=function e(r,n){if(r.getBlockMap().count()===0){return t.createEmpty(n)}var a=r.getBlockMap().first().getKey();return t.create({currentContent:r,undoStack:d(),redoStack:d(),decorator:n||null,selection:u.createEmpty(a)})};t.create=function e(r){var a=r.currentContent,i=r.decorator;var o=n({},r,{treeMap:b(a,i),directionMap:s.getDirectionMap(a)});return new t(new m(o))};t.fromJS=function e(r){return new t(new m(n({},r,{directionMap:r.directionMap!=null?p(r.directionMap):r.directionMap,inlineStyleOverride:r.inlineStyleOverride!=null?c(r.inlineStyleOverride):r.inlineStyleOverride,nativelyRenderedContent:r.nativelyRenderedContent!=null?o.fromJS(r.nativelyRenderedContent):r.nativelyRenderedContent,redoStack:r.redoStack!=null?d(r.redoStack.map((function(e){return o.fromJS(e)}))):r.redoStack,selection:r.selection!=null?new u(r.selection):r.selection,treeMap:r.treeMap!=null?p(r.treeMap).map((function(e){return h(e).map((function(e){return i.fromJS(e)}))})):r.treeMap,undoStack:r.undoStack!=null?d(r.undoStack.map((function(e){return o.fromJS(e)}))):r.undoStack,currentContent:o.fromJS(r.currentContent)})))};t.set=function e(r,n){var a=r.getImmutable().withMutations((function(e){var t=e.get("decorator");var a=t;if(n.decorator===null){a=null}else if(n.decorator){a=n.decorator}var i=n.currentContent||r.getCurrentContent();if(a!==t){var o=e.get("treeMap");var s;if(a&&t){s=_(i,i.getBlockMap(),o,a,t)}else{s=b(i,a)}e.merge({decorator:a,treeMap:s,nativelyRenderedContent:null});return}var u=r.getCurrentContent();if(i!==u){e.set("treeMap",A(r,i.getBlockMap(),i.getEntityMap(),a))}e.merge(n)}));return new t(a)};var e=t.prototype;e.toJS=function e(){return this.getImmutable().toJS()};e.getAllowUndo=function e(){return this.getImmutable().get("allowUndo")};e.getCurrentContent=function e(){return this.getImmutable().get("currentContent")};e.getUndoStack=function e(){return this.getImmutable().get("undoStack")};e.getRedoStack=function e(){return this.getImmutable().get("redoStack")};e.getSelection=function e(){return this.getImmutable().get("selection")};e.getDecorator=function e(){return this.getImmutable().get("decorator")};e.isInCompositionMode=function e(){return this.getImmutable().get("inCompositionMode")};e.mustForceSelection=function e(){return this.getImmutable().get("forceSelection")};e.getNativelyRenderedContent=function e(){return this.getImmutable().get("nativelyRenderedContent")};e.getLastChangeType=function e(){return this.getImmutable().get("lastChangeType")};e.getInlineStyleOverride=function e(){return this.getImmutable().get("inlineStyleOverride")};t.setInlineStyleOverride=function e(r,n){return t.set(r,{inlineStyleOverride:n})};e.getCurrentInlineStyle=function e(){var t=this.getInlineStyleOverride();if(t!=null){return t}var r=this.getCurrentContent();var n=this.getSelection();if(n.isCollapsed()){return E(r,n)}return x(r,n)};e.getBlockTree=function e(t){return this.getImmutable().getIn(["treeMap",t])};e.isSelectionAtStartOfContent=function e(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)};e.isSelectionAtEndOfContent=function e(){var t=this.getCurrentContent();var r=t.getBlockMap();var n=r.last();var a=n.getLength();return this.getSelection().hasEdgeWithin(n.getKey(),a,a)};e.getDirectionMap=function e(){return this.getImmutable().get("directionMap")};t.acceptSelection=function e(t,r){return g(t,r,false)};t.forceSelection=function e(t,r){if(!r.getHasFocus()){r=r.set("hasFocus",true)}return g(t,r,true)};t.moveSelectionToEnd=function e(r){var n=r.getCurrentContent();var a=n.getLastBlock();var i=a.getKey();var o=a.getLength();return t.acceptSelection(r,new u({anchorKey:i,anchorOffset:o,focusKey:i,focusOffset:o,isBackward:false}))};t.moveFocusToEnd=function e(r){var n=t.moveSelectionToEnd(r);return t.forceSelection(n,n.getSelection())};t.push=function e(r,n,a){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:true;if(r.getCurrentContent()===n){return r}var o=s.getDirectionMap(n,r.getDirectionMap());if(!r.getAllowUndo()){return t.set(r,{currentContent:n,directionMap:o,lastChangeType:a,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null})}var u=r.getSelection();var l=r.getCurrentContent();var c=r.getUndoStack();var f=n;if(u!==l.getSelectionAfter()||w(r,a)){c=c.push(l);f=f.set("selectionBefore",u)}else if(a==="insert-characters"||a==="backspace-character"||a==="delete-character"){f=f.set("selectionBefore",l.getSelectionBefore())}var p=r.getInlineStyleOverride();var h=["adjust-depth","change-block-type","split-block"];if(h.indexOf(a)===-1){p=null}var v={currentContent:f,directionMap:o,undoStack:c,redoStack:d(),lastChangeType:a,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:p};return t.set(r,v)};t.undo=function e(r){if(!r.getAllowUndo()){return r}var n=r.getUndoStack();var a=n.peek();if(!a){return r}var i=r.getCurrentContent();var o=s.getDirectionMap(a,r.getDirectionMap());return t.set(r,{currentContent:a,directionMap:o,undoStack:n.shift(),redoStack:r.getRedoStack().push(i),forceSelection:true,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})};t.redo=function e(r){if(!r.getAllowUndo()){return r}var n=r.getRedoStack();var a=n.peek();if(!a){return r}var i=r.getCurrentContent();var o=s.getDirectionMap(a,r.getDirectionMap());return t.set(r,{currentContent:a,directionMap:o,undoStack:r.getUndoStack().push(i),redoStack:n.shift(),forceSelection:true,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:a.getSelectionAfter()})};function t(e){a(this,"_immutable",void 0);this._immutable=e}e.getImmutable=function e(){return this._immutable};return t}();function g(e,t,r){return y.set(e,{selection:t,forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function b(e,t){return e.getBlockMap().map((function(r){return i.generate(e,r,t)})).toOrderedMap()}function A(e,t,r,n){var a=e.getCurrentContent().set("entityMap",r);var o=a.getBlockMap();var s=e.getImmutable().get("treeMap");return s.merge(t.toSeq().filter((function(e,t){return e!==o.get(t)})).map((function(e){return i.generate(a,e,n)})))}function _(e,t,r,n,a){return r.merge(t.toSeq().filter((function(t){return n.getDecorations(t,e)!==a.getDecorations(t,e)})).map((function(t){return i.generate(e,t,n)})))}function w(e,t){var r=e.getLastChangeType();return t!==r||t!=="insert-characters"&&t!=="backspace-character"&&t!=="delete-character"}function E(e,t){var r=t.getStartKey();var n=t.getStartOffset();var a=e.getBlockForKey(r);if(n>0){return a.getInlineStyleAt(n-1)}if(a.getLength()){return a.getInlineStyleAt(0)}return k(e,r)}function x(e,t){var r=t.getStartKey();var n=t.getStartOffset();var a=e.getBlockForKey(r);if(n<a.getLength()){return a.getInlineStyleAt(n)}if(n>0){return a.getInlineStyleAt(n-1)}return k(e,r)}function k(e,t){var r=e.getBlockMap().reverse().skipUntil((function(e,r){return r===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();if(r){return r.getInlineStyleAt(r.getLength()-1)}return c()}e.exports=y},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.elementRef=a.createRef();r.state={value:t.value||"",checked:t.checked||false};r.handleChange=r.handleChange.bind(r);return r}t.prototype.render=function(){var e=this.props,t=e.type,r=e.elementType,n=e.optionalText,i=e.required,o=e.description,s=e.clientError,u=e.error,l=e.label,c=e.extraContent;var f=!!(t==="checkbox"||t==="radio"||r==="select");var d=n&&!i&&!f?"(Optional) ":"";var p=o?o:"";var h=""+d+p;var v=s||u&&u.status>=400&&!this.state.value&&i?"field-error":"";return a.createElement("div",{className:"form-group "+v+" "+this.props.className},l&&a.createElement("label",{className:"control-label"},t!=="checkbox"&&t!=="radio"&&l,i&&a.createElement("span",{className:"required-field"},"Required"),this.renderElement(),t==="checkbox"&&l,t==="radio"&&a.createElement("span",null,l)),(c||!l)&&a.createElement("div",{className:c?"with-add-on":""},c,!l&&this.renderElement()),h.trim()&&this.renderDescription(h))};t.prototype.renderElement=function(){var e;var t=this.props,r=t.type,n=t.elementType,i=t.placeholder,o=t.accept,s=t.list,u=t.min,l=t.max,c=t.children,f=t.disabled,d=t.readOnly,p=t.name,h=t.validation,v=t.style,m=t.minLength,y=t.maxLength;return a.createElement(n||"input",(e={className:r!=="checkbox"&&r!=="radio"?"form-control":"",ref:this.elementRef,value:this.state.value,checked:this.state.checked,onKeyPress:h&&h==="number"&&this.validateNumber,onChange:this.handleChange,type:r,disabled:f,readOnly:d,name:p,style:v,placeholder:i,accept:o,list:s,min:u,max:l,minLength:m,maxLength:y},e["aria-label"]=this.props["aria-label"],e),c)};t.prototype.renderDescription=function(e){return a.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e}})};t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this.state.value;var r=this.state.checked;var n=false;if(e.value!==this.props.value){t=e.value||"";n=true}if(e.checked!==this.props.checked){r=e.checked||false;n=true}if(n){this.setState({value:t,checked:r})}};t.prototype.handleChange=function(){if(!this.props.readOnly&&(!this.props.onChange||this.props.onChange(this.getValue())!==false)){var e=this.state.value;var t=this.state.checked;if(this.props.type==="checkbox"||this.props.type==="radio"){t=!this.state.checked}else{e=this.getValue()}this.setState({value:e,checked:t})}};t.prototype.validateNumber=function(e){var t=["0","1","2","3","4","5","6","7","8","9",".","Enter"];if(t.indexOf(e.key)<0){e.preventDefault()}};t.prototype.getValue=function(){var e;return(e=this.elementRef.current)===null||e===void 0?void 0:e.value};t.prototype.getChecked=function(){var e;return(e=this.elementRef.current)===null||e===void 0?void 0:e.checked};t.prototype.setValue=function(e){this.setState({value:e})};t.prototype.clear=function(){this.setState({value:"",checked:false})};t.defaultProps={optionalText:true,readOnly:false};return t}(a.Component);t.default=i},function(e,t){function r(e){return e&&e.__esModule?e:{default:e}}e.exports=r},function(e,t,r){"use strict";var n=r(219);var a=typeof self=="object"&&self&&self.Object===Object&&self;var i=n["a"]||a||Function("return this")();t["a"]=i},function(e,t,r){var n=r(293);function a(e,t){return n(e,t)}e.exports=a},function(e,t,r){"use strict";var n=function(){};if(false){}e.exports=n},function(e,t){(function(){e.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},function(e,t){function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}e.exports=r},function(e,t,r){"use strict";var n=r(855);var a=r(149);var i=r(49);var o=r(871);var s=r(100);var u=r(259);var l=r(261);var c=r(540);var f=r(872);var d=r(556);var p=r(177);var h=r(35);var v=r(538);var m=r(18);var y=r(267);var g=r(936);var b=r(567);var A=r(178);var _=r(937);var w=r(940);var E=r(64);var x=r(568);var k=r(946);var M=r(565);var S={Editor:f,EditorBlock:d,EditorState:m,CompositeDecorator:o,Entity:p,EntityInstance:v,BlockMapBuilder:a,CharacterMetadata:i,ContentBlock:s,ContentState:u,RawDraftContentState:g,SelectionState:A,AtomicBlockUtils:n,KeyBindingUtil:y,Modifier:h,RichUtils:b,DefaultDraftBlockRenderMap:l,DefaultDraftInlineStyle:c,convertFromHTML:M,convertFromRaw:w,convertToRaw:_,genKey:E,getDefaultKeyBinding:x,getVisibleSelectionRect:k};e.exports=S},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){if(typeof window==="object")r=window}e.exports=r},function(e,t,r){"use strict";var n=r(1);var a=r(701);if(typeof n==="undefined"){throw Error("create-react-class could not find the React object. If you are using script tags, "+"make sure that React is being loaded before create-react-class.")}var i=(new n.Component).updater;e.exports=a(n.Component,n.isValidElement,i)},function(e,t){var r=e.exports={version:"2.6.12"};if(typeof __e=="number")__e=r},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));function n(){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};return n.apply(this,arguments)}},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(17);var o=r(116);var s=r(12);var u=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.errorMessageRef=a.createRef();return t}t.prototype.render=function(){var e=this.props.error.status;var t;var r;var n;if(e===401){n=a.createElement(o.Alert,{bsStyle:"danger"},a.createElement("h4",null,"You have been logged out.",a.createElement("br",null),a.createElement("a",{target:"_blank",href:"/admin/sign_in_again"},"Log in again"),this.props.tryAgain&&a.createElement(s.Button,{className:"left-align",callback:this.tryAgain.bind(this),content:"Try again"})))}else{var i=void 0;try{i=JSON.parse(this.props.error.response).detail}catch(e){i=this.props.error.response;var u="Remote service returned a problem detail document";if(this.isProblemDetail(i,u)){i=this.parseProblemDetail(i,u);t=i.title?i.title:"Error";r=""+i.description+i.status+": "+i.detail}}if(!r){r="Error: "+i}n=a.createElement(o.Alert,{bsStyle:"danger"},a.createElement("h4",null,t&&a.createElement("p",null,a.createElement("b",null,t)," "),a.createElement("span",{dangerouslySetInnerHTML:{__html:r}}),a.createElement("br",null),this.props.tryAgain&&a.createElement(s.Button,{className:"left-align",callback:this.tryAgain.bind(this),content:"Try again"})))}return a.createElement("div",{tabIndex:0,ref:this.errorMessageRef},n)};t.prototype.componentDidMount=function(){if(this.errorMessageRef.current){i.findDOMNode(this.errorMessageRef.current).focus()}};t.prototype.isProblemDetail=function(e,t){var r=new RegExp(t);return r.test(e)};t.prototype.parseProblemDetail=function(e,t){var r=e.split(t)[1];var n=this.extractProperties(r,['"status": ','"detail": ','"title": ']);n["description"]=n["status"]?t+" with status ":t;return n};t.prototype.extractProperties=function(e,t){var r={};t.map((function(t){var n=t.replace(/[": ]/g,"");var a=new RegExp(n);var i="";if(a.test(e)){i=e.split(n)[1].split(",")[0].replace(/["':}]/g,"").trim()}r[n]=i}));return r};t.prototype.tryAgain=function(){this.props.tryAgain()};return t}(a.Component);t.default=u},function(e,t,r){"use strict";function n(e){return e!=null&&typeof e=="object"}t["a"]=n},function(e,t,r){var n=r(201);function a(e,t,r){var a=e==null?undefined:n(e,t);return a===undefined?r:a}e.exports=a},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(354);var i=r(753);var o=r(760);r(761);var s=function(){function e(e){if(e===void 0){e={}}this.proxyUrl=e.proxyUrl;this.adapter=e.adapter;this.authKey="authCredentials"}e.prototype.fetchOPDSData=function(e){var t=this;var r=new a.default;if(!this.adapter){return Promise.reject({status:null,response:"No adapter has been configured in DataFetcher.",url:e})}return new Promise((function(n,a){t.fetch(e).then((function(i){i.text().then((function(o){if(t.isErrorCode(i.status)){a({status:i.status,response:o,url:e,headers:i.headers})}r.parse(o).then((function(r){var a;n((a=t.adapter)===null||a===void 0?void 0:a.call(t,r,e))})).catch((function(t){a({status:null,response:"Failed to parse OPDS data",url:e})}))})).catch((function(t){a({status:i.status,response:t.message,url:e,headers:i.headers})}))})).catch((function(e){return a(e)}))}))};e.prototype.fetchSearchDescriptionData=function(e){var t=this;var r=new i.default;return new Promise((function(n,a){t.fetch(e).then((function(i){i.text().then((function(o){if(t.isErrorCode(i.status)){a({status:i.status,response:o,url:e})}r.parse(o,e).then((function(e){n(e)})).catch((function(t){a({status:null,response:"Failed to parse OPDS data",url:e})}))}))})).catch(a)}))};e.prototype.fetch=function(e,t){if(t===void 0){t={}}t=Object.assign({credentials:"same-origin"},t);if(this.proxyUrl){var r=new window.FormData;r.append("url",e);Object.assign(t,{method:"POST",body:r});e=this.proxyUrl}t["headers"]=this.prepareAuthHeaders(t["headers"]);return fetch(e,t)};e.prototype.setAuthCredentials=function(e){if(e){o.set(this.authKey,JSON.stringify(e))}};e.prototype.getAuthCredentials=function(){var e=o.get(this.authKey);if(e){return JSON.parse(e)}};e.prototype.clearAuthCredentials=function(){o.remove(this.authKey)};e.prototype.prepareAuthHeaders=function(e){var t;if(e===void 0){e={}}var r=this.getAuthCredentials();return n({Authorization:(t=r===null||r===void 0?void 0:r.credentials)!==null&&t!==void 0?t:"","X-Requested-With":"XMLHttpRequest"},e)};e.prototype.isErrorCode=function(e){return e<200||e>=400};return e}();t.default=s},function(e,t,r){"use strict";var n=r(49);var a=r(856);var i=r(857);var o=r(859);var s=r(176);var u=r(10);var l=r(862);var c=r(863);var f=r(15);var d=r(535);var p=r(533);var h=r(864);var v=r(865);var m=u.OrderedSet;var y={replaceText:function e(t,r,a,i,o){var s=p(t,r);var u=h(s,r);var l=n.create({style:i||m(),entity:o||null});return c(u,u.getSelectionAfter(),a,l)},insertText:function e(t,r,n,a,i){!r.isCollapsed()?false?undefined:f(false):void 0;return y.replaceText(t,r,n,a,i)},moveText:function e(t,r,n){var a=s(t,r);var i=y.removeRange(t,r,"backward");return y.replaceWithFragment(i,n,a)},replaceWithFragment:function e(t,r,n){var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:"REPLACE_WITH_NEW_DATA";var i=p(t,r);var o=h(i,r);return l(o,o.getSelectionAfter(),n,a)},removeRange:function e(t,r,n){var a,i,s,u;if(r.getIsBackward()){r=r.merge({anchorKey:r.getFocusKey(),anchorOffset:r.getFocusOffset(),focusKey:r.getAnchorKey(),focusOffset:r.getAnchorOffset(),isBackward:false})}a=r.getAnchorKey();i=r.getFocusKey();s=t.getBlockForKey(a);u=t.getBlockForKey(i);var l=r.getStartOffset();var c=r.getEndOffset();var f=s.getEntityAt(l);var d=u.getEntityAt(c-1);if(a===i){if(f&&f===d){var v=o(t.getEntityMap(),s,u,r,n);return h(t,v)}}var m=p(t,r);return h(m,r)},splitBlock:function e(t,r){var n=p(t,r);var a=h(n,r);return v(a,a.getSelectionAfter())},applyInlineStyle:function e(t,r,n){return a.add(t,r,n)},removeInlineStyle:function e(t,r,n){return a.remove(t,r,n)},setBlockType:function e(t,r,n){return d(t,r,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function e(t,r,n){return d(t,r,(function(e){return e.merge({data:n})}))},mergeBlockData:function e(t,r,n){return d(t,r,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function e(t,r,n){var a=p(t,r);return i(a,r,n)}};e.exports=y},function(e,t,r){"use strict";var n=function e(t){if(t!=null){return t}throw new Error("Got unexpected null or undefined")};e.exports=n},function(e,t,r){"use strict";var n=r(875);var a=r(877);var i=r(878);var o=r(879);function s(e,t,r,n){if(e===r){return true}if(!r.startsWith(e)){return false}var i=r.slice(e.length);if(t){i=n?n(i):i;return a.contains(i,t)}return false}function u(e){if(n.platformName==="Windows"){return e.replace(/^\s*NT/,"")}return e}var l={isBrowser:function e(t){return s(n.browserName,n.browserFullVersion,t)},isBrowserArchitecture:function e(t){return s(n.browserArchitecture,null,t)},isDevice:function e(t){return s(n.deviceName,null,t)},isEngine:function e(t){return s(n.engineName,n.engineVersion,t)},isPlatform:function e(t){return s(n.platformName,n.platformFullVersion,t,u)},isPlatformArchitecture:function e(t){return s(n.platformArchitecture,null,t)}};e.exports=i(l,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)}}();var a=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 i=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 o=r(1);var s=r(116);var u=r(12);var l=r(70);var c=r(31);var f=r(204);var d=r(104);var p=r(321);var h=r(0);var v=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.limitOne=false;r.editFormRef=o.createRef();r.editItem=r.editItem.bind(r);r.save=r.save.bind(r);r.label=r.label.bind(r);r.renderLi=r.renderLi.bind(r);return r}t.prototype.UNSAFE_componentWillMount=function(){var e=this.props,t=e.fetchData,r=e.isFetching;if(t&&!r){t()}};t.prototype.render=function(){var e=this;var t=this.getHeaders();var r=!this.props.isFetching&&!this.props.editOrCreate&&this.props.data&&this.props.data[this.listDataKey];var n=this.EditForm;var a=this.ExtraFormSection;var i=this.itemToEdit();var u=i&&this.canEdit(i);return o.createElement("div",{className:this.getClassName()},o.createElement("h2",null,t["h2"]),r&&this.links&&this.links["info"]&&o.createElement(s.Alert,{bsStyle:"info"},this.links["info"]),this.props.responseBody&&this.props.editOrCreate&&o.createElement(s.Alert,{bsStyle:"success"},this.successMessage()),this.props.fetchError&&!this.props.editOrCreate&&o.createElement(c.default,{error:this.props.fetchError}),this.props.formError&&this.props.editOrCreate&&o.createElement(c.default,{error:this.props.formError}),this.props.isFetching&&o.createElement(l.default,null),r&&o.createElement("div",null,(!this.limitOne||this.props.data[this.listDataKey].length===0)&&this.canCreate()&&o.createElement("a",{className:"btn btn-default create-item",href:this.urlBase+"create"},"Create new ",this.itemTypeName),o.createElement("ul",null,this.props.data[this.listDataKey].map((function(t,r){return e.renderLi(t,r)})))),this.props.editOrCreate==="create"&&o.createElement("div",null,o.createElement("h3",null,t["h3"]),o.createElement(n,{ref:this.editFormRef,data:this.props.data,additionalData:this.props.additionalData,disabled:this.props.isFetching,save:this.save,urlBase:this.urlBase,listDataKey:this.listDataKey,responseBody:this.props.responseBody,error:this.props.formError,extraFormSection:a,extraFormKey:this.extraFormKey,adminLevel:this.getAdminLevel()})),i&&o.createElement("div",null,o.createElement("h3",null,u?"Edit ":"",this.label(i)),o.createElement(n,{item:i,data:this.props.data,additionalData:this.props.additionalData,disabled:!u||this.props.isFetching,save:u?this.save:undefined,urlBase:this.urlBase,listDataKey:this.listDataKey,responseBody:this.props.responseBody,error:this.props.formError,extraFormSection:a,extraFormKey:this.extraFormKey,adminLevel:this.getAdminLevel()})),this.links&&this.links["footer"]&&o.createElement("p",null,this.links["footer"]))};t.prototype.renderLi=function(e,t){var r=this;var n=this.AdditionalContent||null;return o.createElement("li",{key:t},o.createElement("a",{className:"btn small edit-item",href:this.urlBase+"edit/"+e[this.identifierKey]},this.canEdit(e)?o.createElement("span",null,"Edit ",o.createElement(f.default,null)):o.createElement("span",null,"View ",o.createElement(p.default,null))),o.createElement("h3",null,this.label(e)),this.canDelete()&&o.createElement(u.Button,{className:"danger delete-item small",callback:function(){return r.delete(e)},content:o.createElement("span",null,"Delete",o.createElement(d.default,null))}),n&&o.createElement(n,{type:this.itemTypeName,item:e,store:this.props.store,csrfToken:this.props.csrfToken}))};t.prototype.label=function(e){return e[this.labelKey]};t.prototype.getAdminLevel=function(){var e,t;var r;if((e=this.context.admin)===null||e===void 0?void 0:e.isSystemAdmin()){r=3}else if((t=this.context.admin)===null||t===void 0?void 0:t.isLibraryManagerOfSomeLibrary()){r=2}else{r=1}return r};t.prototype.getHeaders=function(){var e=this.getItemType()+" configuration";var t="Create a new "+this.itemTypeName;return{h2:e,h3:t}};t.prototype.getClassName=function(){var e=this.AdditionalContent?"has-additional-content":"";return e};t.prototype.getItemType=function(){return this.itemTypeName.slice(0,1).toUpperCase()+this.itemTypeName.slice(1)};t.prototype.formatItemType=function(){var e=this.getItemType();var t=/^[A-Z]*$/;var r=t.test(e.split(" service")[0]);var n=r?e:e.toLowerCase();return n};t.prototype.successMessage=function(){var e;if(this.props.editOrCreate==="create"){e="Successfully created ";return o.createElement("span",null,e,o.createElement("a",{href:this.getLink()},"a new ",this.formatItemType()))}else{e="Successfully edited this ";return o.createElement("span",null,e,this.formatItemType())}};t.prototype.getLink=function(){return this.urlBase+"edit/"+this.props.responseBody};t.prototype.canCreate=function(){return true};t.prototype.canDelete=function(){return this.getAdminLevel()===3};t.prototype.canEdit=function(e){return!e.level||e.level<=this.getAdminLevel()};t.prototype.save=function(e){var t=this;this.editItem(e).then((function(){if(t.limitOne&&t.props.editOrCreate==="create"){setTimeout((function(){window.location.href=t.urlBase+"edit/"+t.props.responseBody}),2e3)}}))};t.prototype.editItem=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:window.scrollTo(0,0);return[4,this.props.editItem(e)];case 1:t.sent();this.props.fetchData();return[2]}}))}))};t.prototype.itemToEdit=function(){if(this.props.editOrCreate==="edit"&&this.props.data&&this.props.data[this.listDataKey]){for(var e=0,t=this.props.data[this.listDataKey];e<t.length;e++){var r=t[e];if(String(r[this.identifierKey])===this.props.identifier){return r}}}return null};t.prototype.delete=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:if(!window.confirm('Delete "'+this.label(e)+'"?'))return[3,2];return[4,this.props.deleteItem(e[this.identifierKey])];case 1:t.sent();this.props.fetchData();t.label=2;case 2:return[2]}}))}))};t.contextTypes={admin:h.object.isRequired};return t}(o.Component);t.GenericEditableConfigList=v;var m=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(v);t.EditableConfigList=m;t.default=m},function(e,t,r){"use strict";t.__esModule=true;t.default=c;var n=s(r(1));var a=s(r(8));var i=o(r(962));function o(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 s(e){return e&&e.__esModule?e:{default:e}}function u(){u=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 u.apply(this,arguments)}function l(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}function c(e,t,r){if(r===void 0){r=[]}var a=e.displayName||e.name||"Component";var o=i.isReactComponent(e);var s=Object.keys(t);var f=s.map(i.defaultKey);!(o||!r.length)?false?undefined:invariant(false):void 0;var d=function(r){l(a,r);function a(){var e;for(var n=arguments.length,a=new Array(n),i=0;i<n;i++){a[i]=arguments[i]}e=r.call.apply(r,[this].concat(a))||this;e.handlers=Object.create(null);s.forEach((function(r){var n=t[r];var a=function t(a){if(e.props[n]){var i;e._notifying=true;for(var o=arguments.length,s=new Array(o>1?o-1:0),u=1;u<o;u++){s[u-1]=arguments[u]}(i=e.props)[n].apply(i,[a].concat(s));e._notifying=false}e._values[r]=a;if(!e.unmounted)e.forceUpdate()};e.handlers[n]=a}));if(o)e.attachRef=function(t){e.inner=t};return e}var c=a.prototype;c.shouldComponentUpdate=function e(){return!this._notifying};c.componentWillMount=function e(){var t=this;var r=this.props;this._values=Object.create(null);s.forEach((function(e){t._values[e]=r[i.defaultKey(e)]}))};c.componentWillReceiveProps=function e(t){var r=this;var n=this.props;s.forEach((function(e){if(!i.isProp(t,e)&&i.isProp(n,e)){r._values[e]=t[i.defaultKey(e)]}}))};c.componentWillUnmount=function e(){this.unmounted=true};c.getControlledInstance=function e(){return this.inner};c.render=function t(){var r=this;var a=u({},this.props);f.forEach((function(e){delete a[e]}));var i={};s.forEach((function(e){var t=r.props[e];i[e]=t!==undefined?t:r._values[e]}));return n.default.createElement(e,u({},a,i,this.handlers,{ref:this.attachRef}))};return a}(n.default.Component);d.displayName="Uncontrolled("+a+")";d.propTypes=i.uncontrolledPropTypes(t,a);r.forEach((function(e){d.prototype[e]=function t(){var r;return(r=this.inner)[e].apply(r,arguments)}}));d.ControlledComponent=e;d.deferControlTo=function(e,r,n){if(r===void 0){r={}}return c(e,u({},t,r),n)};return d}e.exports=t["default"]},function(e,t){function r(e){if(e&&"object"===typeof e){var t=e.which||e.keyCode||e.charCode;if(t)e=t}if("number"===typeof e)return o[e];var r=String(e);var i=n[r.toLowerCase()];if(i)return i;var i=a[r.toLowerCase()];if(i)return i;if(r.length===1)return r.charCodeAt(0);return undefined}r.isEventKey=function e(t,r){if(t&&"object"===typeof t){var i=t.which||t.keyCode||t.charCode;if(i===null||i===undefined){return false}if(typeof r==="string"){var o=n[r.toLowerCase()];if(o){return o===i}var o=a[r.toLowerCase()];if(o){return o===i}}else if(typeof r==="number"){return r===i}return false}};t=e.exports=r;var n=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222};var a=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};
27
27
  /*!
28
28
  * Programatically add the following
29
29
  */for(i=97;i<123;i++)n[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)n[i-48]=i;for(i=1;i<13;i++)n["f"+i]=i+111;for(i=0;i<10;i++)n["numpad "+i]=i+96;var o=t.names=t.title={};for(i in n)o[n[i]]=i;for(var s in a){n[s]=a[s]}},function(e,t,r){var n=r(73);var a=r(29);var i=r(268);var o=r(126);var s=r(106);var u="prototype";var l=function(e,t,r){var c=e&l.F;var f=e&l.G;var d=e&l.S;var p=e&l.P;var h=e&l.B;var v=e&l.W;var m=f?a:a[t]||(a[t]={});var y=m[u];var g=f?n:d?n[t]:(n[t]||{})[u];var b,A,_;if(f)r=t;for(b in r){A=!c&&g&&g[b]!==undefined;if(A&&s(m,b))continue;_=A?g[b]:r[b];m[b]=f&&typeof g[b]!="function"?r[b]:h&&A?i(_,n):v&&g[b]==_?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};t[u]=e[u];return t}(_):p&&typeof _=="function"?i(Function.call,_):_;if(p){(m.virtual||(m.virtual={}))[b]=_;if(e&l.R&&y&&!y[b])o(y,b,_)}}};l.F=1;l.G=2;l.S=4;l.P=8;l.B=16;l.W=32;l.U=64;l.R=128;e.exports=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.closest=t.distance=t.patch=t.absolute=t.negate=t.isEqual=t.subtract=t.add=undefined;var n=r(308);var a=s(n);var i=r(159);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.add=function e(t,r){return{x:t.x+r.x,y:t.y+r.y}};var l=t.subtract=function e(t,r){return{x:t.x-r.x,y:t.y-r.y}};var c=t.isEqual=function e(t,r){return t.x===r.x&&t.y===r.y};var f=t.negate=function e(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}};var d=t.absolute=function e(t){return{x:Math.abs(t.x),y:Math.abs(t.y)}};var p=t.patch=function e(t,r){var n;var a=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;return n={},(0,o.default)(n,t,r),(0,o.default)(n,t==="x"?"y":"x",a),n};var h=t.distance=function e(t,r){return Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))};var v=t.closest=function e(t,r){return Math.min.apply(Math,(0,a.default)(r.map((function(e){return h(t,e)}))))}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));function n(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(e,t,r){"use strict";var n=r(56);var a=Object.prototype;var i=a.hasOwnProperty;var o=a.toString;var s=n["a"]?n["a"].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}var l=u;var c=Object.prototype;var f=c.toString;function d(e){return f.call(e)}var p=d;var h="[object Null]",v="[object Undefined]";var m=n["a"]?n["a"].toStringTag:undefined;function y(e){if(e==null){return e===undefined?v:h}return m&&m in Object(e)?l(e):p(e)}var g=t["a"]=y},function(e,t,r){"use strict";
@@ -31,7 +31,7 @@ object-assign
31
31
  object-assign
32
32
  (c) Sindre Sorhus
33
33
  @license MIT
34
- */var n=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty;var i=Object.prototype.propertyIsEnumerable;function o(e){if(e===null||e===undefined){throw new TypeError("Object.assign cannot be called with null or undefined")}return Object(e)}function s(){try{if(!Object.assign){return false}var e=new String("abc");e[5]="de";if(Object.getOwnPropertyNames(e)[0]==="5"){return false}var t={};for(var r=0;r<10;r++){t["_"+String.fromCharCode(r)]=r}var n=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if(n.join("")!=="0123456789"){return false}var a={};"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e}));if(Object.keys(Object.assign({},a)).join("")!=="abcdefghijklmnopqrst"){return false}return true}catch(e){return false}}e.exports=s()?Object.assign:function(e,t){var r;var s=o(e);var u;for(var l=1;l<arguments.length;l++){r=Object(arguments[l]);for(var c in r){if(a.call(r,c)){s[c]=r[c]}}if(n){u=n(r);for(var f=0;f<u.length;f++){if(i.call(r,u[f])){s[u[f]]=r[u[f]]}}}}return s}},function(e,t,r){(function(){var t,n,a,i,o,s,u,l,c,f,d,p,h,v,m,y,g,b,A,_={}.hasOwnProperty;A=r(69),b=A.isObject,g=A.isFunction,y=A.isEmpty,m=A.getValue;l=null;a=null;i=null;o=null;s=null;h=null;v=null;p=null;u=null;n=null;d=null;c=null;t=null;e.exports=f=function(){function e(e){this.parent=e;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}this.value=null;this.children=[];this.baseURI=null;if(!l){l=r(237);a=r(239);i=r(240);o=r(241);s=r(242);h=r(247);v=r(248);p=r(249);u=r(375);n=r(24);d=r(734);c=r(238);t=r(735)}}Object.defineProperty(e.prototype,"nodeName",{get:function(){return this.name}});Object.defineProperty(e.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.value}});Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent}});Object.defineProperty(e.prototype,"childNodes",{get:function(){if(!this.childNodeList||!this.childNodeList.nodes){this.childNodeList=new d(this.children)}return this.childNodeList}});Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.children[0]||null}});Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}});Object.defineProperty(e.prototype,"previousSibling",{get:function(){var e;e=this.parent.children.indexOf(this);return this.parent.children[e-1]||null}});Object.defineProperty(e.prototype,"nextSibling",{get:function(){var e;e=this.parent.children.indexOf(this);return this.parent.children[e+1]||null}});Object.defineProperty(e.prototype,"ownerDocument",{get:function(){return this.document()||null}});Object.defineProperty(e.prototype,"textContent",{get:function(){var e,t,r,a,i;if(this.nodeType===n.Element||this.nodeType===n.DocumentFragment){i="";a=this.children;for(t=0,r=a.length;t<r;t++){e=a[t];if(e.textContent){i+=e.textContent}}return i}else{return null}},set:function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())}});e.prototype.setParent=function(e){var t,r,n,a,i;this.parent=e;if(e){this.options=e.options;this.stringify=e.stringify}a=this.children;i=[];for(r=0,n=a.length;r<n;r++){t=a[r];i.push(t.setParent(this))}return i};e.prototype.element=function(e,t,r){var n,a,i,o,s,u,l,c,f,d,p;u=null;if(t===null&&r==null){f=[{},null],t=f[0],r=f[1]}if(t==null){t={}}t=m(t);if(!b(t)){d=[t,r],r=d[0],t=d[1]}if(e!=null){e=m(e)}if(Array.isArray(e)){for(i=0,l=e.length;i<l;i++){a=e[i];u=this.element(a)}}else if(g(e)){u=this.element(e.apply())}else if(b(e)){for(s in e){if(!_.call(e,s))continue;p=e[s];if(g(p)){p=p.apply()}if(!this.options.ignoreDecorators&&this.stringify.convertAttKey&&s.indexOf(this.stringify.convertAttKey)===0){u=this.attribute(s.substr(this.stringify.convertAttKey.length),p)}else if(!this.options.separateArrayItems&&Array.isArray(p)&&y(p)){u=this.dummy()}else if(b(p)&&y(p)){u=this.element(s)}else if(!this.options.keepNullNodes&&p==null){u=this.dummy()}else if(!this.options.separateArrayItems&&Array.isArray(p)){for(o=0,c=p.length;o<c;o++){a=p[o];n={};n[s]=a;u=this.element(n)}}else if(b(p)){if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&s.indexOf(this.stringify.convertTextKey)===0){u=this.element(p)}else{u=this.element(s);u.element(p)}}else{u=this.element(s,p)}}}else if(!this.options.keepNullNodes&&r===null){u=this.dummy()}else{if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&e.indexOf(this.stringify.convertTextKey)===0){u=this.text(r)}else if(!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&e.indexOf(this.stringify.convertCDataKey)===0){u=this.cdata(r)}else if(!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&e.indexOf(this.stringify.convertCommentKey)===0){u=this.comment(r)}else if(!this.options.ignoreDecorators&&this.stringify.convertRawKey&&e.indexOf(this.stringify.convertRawKey)===0){u=this.raw(r)}else if(!this.options.ignoreDecorators&&this.stringify.convertPIKey&&e.indexOf(this.stringify.convertPIKey)===0){u=this.instruction(e.substr(this.stringify.convertPIKey.length),r)}else{u=this.node(e,t,r)}}if(u==null){throw new Error("Could not create any elements with: "+e+". "+this.debugInfo())}return u};e.prototype.insertBefore=function(e,t,r){var n,a,i,o,s;if(e!=null?e.type:void 0){i=e;o=t;i.setParent(this);if(o){a=children.indexOf(o);s=children.splice(a);children.push(i);Array.prototype.push.apply(children,s)}else{children.push(i)}return i}else{if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(e))}a=this.parent.children.indexOf(this);s=this.parent.children.splice(a);n=this.parent.element(e,t,r);Array.prototype.push.apply(this.parent.children,s);return n}};e.prototype.insertAfter=function(e,t,r){var n,a,i;if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(e))}a=this.parent.children.indexOf(this);i=this.parent.children.splice(a+1);n=this.parent.element(e,t,r);Array.prototype.push.apply(this.parent.children,i);return n};e.prototype.remove=function(){var e,t;if(this.isRoot){throw new Error("Cannot remove the root element. "+this.debugInfo())}e=this.parent.children.indexOf(this);[].splice.apply(this.parent.children,[e,e-e+1].concat(t=[])),t;return this.parent};e.prototype.node=function(e,t,r){var n,a;if(e!=null){e=m(e)}t||(t={});t=m(t);if(!b(t)){a=[t,r],r=a[0],t=a[1]}n=new l(this,e,t);if(r!=null){n.text(r)}this.children.push(n);return n};e.prototype.text=function(e){var t;if(b(e)){this.element(e)}t=new v(this,e);this.children.push(t);return this};e.prototype.cdata=function(e){var t;t=new a(this,e);this.children.push(t);return this};e.prototype.comment=function(e){var t;t=new i(this,e);this.children.push(t);return this};e.prototype.commentBefore=function(e){var t,r,n;r=this.parent.children.indexOf(this);n=this.parent.children.splice(r);t=this.parent.comment(e);Array.prototype.push.apply(this.parent.children,n);return this};e.prototype.commentAfter=function(e){var t,r,n;r=this.parent.children.indexOf(this);n=this.parent.children.splice(r+1);t=this.parent.comment(e);Array.prototype.push.apply(this.parent.children,n);return this};e.prototype.raw=function(e){var t;t=new h(this,e);this.children.push(t);return this};e.prototype.dummy=function(){var e;e=new u(this);return e};e.prototype.instruction=function(e,t){var r,n,a,i,o;if(e!=null){e=m(e)}if(t!=null){t=m(t)}if(Array.isArray(e)){for(i=0,o=e.length;i<o;i++){r=e[i];this.instruction(r)}}else if(b(e)){for(r in e){if(!_.call(e,r))continue;n=e[r];this.instruction(r,n)}}else{if(g(t)){t=t.apply()}a=new p(this,e,t);this.children.push(a)}return this};e.prototype.instructionBefore=function(e,t){var r,n,a;n=this.parent.children.indexOf(this);a=this.parent.children.splice(n);r=this.parent.instruction(e,t);Array.prototype.push.apply(this.parent.children,a);return this};e.prototype.instructionAfter=function(e,t){var r,n,a;n=this.parent.children.indexOf(this);a=this.parent.children.splice(n+1);r=this.parent.instruction(e,t);Array.prototype.push.apply(this.parent.children,a);return this};e.prototype.declaration=function(e,t,r){var a,i;a=this.document();i=new o(a,e,t,r);if(a.children.length===0){a.children.unshift(i)}else if(a.children[0].type===n.Declaration){a.children[0]=i}else{a.children.unshift(i)}return a.root()||a};e.prototype.dtd=function(e,t){var r,a,i,o,u,l,c,f,d,p;a=this.document();i=new s(a,e,t);d=a.children;for(o=u=0,c=d.length;u<c;o=++u){r=d[o];if(r.type===n.DocType){a.children[o]=i;return i}}p=a.children;for(o=l=0,f=p.length;l<f;o=++l){r=p[o];if(r.isRoot){a.children.splice(o,0,i);return i}}a.children.push(i);return i};e.prototype.up=function(){if(this.isRoot){throw new Error("The root node has no parent. Use doc() if you need to get the document object.")}return this.parent};e.prototype.root=function(){var e;e=this;while(e){if(e.type===n.Document){return e.rootObject}else if(e.isRoot){return e}else{e=e.parent}}};e.prototype.document=function(){var e;e=this;while(e){if(e.type===n.Document){return e}else{e=e.parent}}};e.prototype.end=function(e){return this.document().end(e)};e.prototype.prev=function(){var e;e=this.parent.children.indexOf(this);if(e<1){throw new Error("Already at the first node. "+this.debugInfo())}return this.parent.children[e-1]};e.prototype.next=function(){var e;e=this.parent.children.indexOf(this);if(e===-1||e===this.parent.children.length-1){throw new Error("Already at the last node. "+this.debugInfo())}return this.parent.children[e+1]};e.prototype.importDocument=function(e){var t;t=e.root().clone();t.parent=this;t.isRoot=false;this.children.push(t);return this};e.prototype.debugInfo=function(e){var t,r;e=e||this.name;if(e==null&&!((t=this.parent)!=null?t.name:void 0)){return""}else if(e==null){return"parent: <"+this.parent.name+">"}else if(!((r=this.parent)!=null?r.name:void 0)){return"node: <"+e+">"}else{return"node: <"+e+">, parent: <"+this.parent.name+">"}};e.prototype.ele=function(e,t,r){return this.element(e,t,r)};e.prototype.nod=function(e,t,r){return this.node(e,t,r)};e.prototype.txt=function(e){return this.text(e)};e.prototype.dat=function(e){return this.cdata(e)};e.prototype.com=function(e){return this.comment(e)};e.prototype.ins=function(e,t){return this.instruction(e,t)};e.prototype.doc=function(){return this.document()};e.prototype.dec=function(e,t,r){return this.declaration(e,t,r)};e.prototype.e=function(e,t,r){return this.element(e,t,r)};e.prototype.n=function(e,t,r){return this.node(e,t,r)};e.prototype.t=function(e){return this.text(e)};e.prototype.d=function(e){return this.cdata(e)};e.prototype.c=function(e){return this.comment(e)};e.prototype.r=function(e){return this.raw(e)};e.prototype.i=function(e,t){return this.instruction(e,t)};e.prototype.u=function(){return this.up()};e.prototype.importXMLBuilder=function(e){return this.importDocument(e)};e.prototype.replaceChild=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.removeChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.appendChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.hasChildNodes=function(){return this.children.length!==0};e.prototype.cloneNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.isSupported=function(e,t){return true};e.prototype.hasAttributes=function(){return this.attribs.length!==0};e.prototype.compareDocumentPosition=function(e){var r,n;r=this;if(r===e){return 0}else if(this.document()!==e.document()){n=t.Disconnected|t.ImplementationSpecific;if(Math.random()<.5){n|=t.Preceding}else{n|=t.Following}return n}else if(r.isAncestor(e)){return t.Contains|t.Preceding}else if(r.isDescendant(e)){return t.Contains|t.Following}else if(r.isPreceding(e)){return t.Preceding}else{return t.Following}};e.prototype.isSameNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.lookupPrefix=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.isDefaultNamespace=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.lookupNamespaceURI=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.isEqualNode=function(e){var t,r,n;if(e.nodeType!==this.nodeType){return false}if(e.children.length!==this.children.length){return false}for(t=r=0,n=this.children.length-1;0<=n?r<=n:r>=n;t=0<=n?++r:--r){if(!this.children[t].isEqualNode(e.children[t])){return false}}return true};e.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.setUserData=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.getUserData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.contains=function(e){if(!e){return false}return e===this||this.isDescendant(e)};e.prototype.isDescendant=function(e){var t,r,n,a,i;i=this.children;for(n=0,a=i.length;n<a;n++){t=i[n];if(e===t){return true}r=t.isDescendant(e);if(r){return true}}return false};e.prototype.isAncestor=function(e){return e.isDescendant(this)};e.prototype.isPreceding=function(e){var t,r;t=this.treePosition(e);r=this.treePosition(this);if(t===-1||r===-1){return false}else{return t<r}};e.prototype.isFollowing=function(e){var t,r;t=this.treePosition(e);r=this.treePosition(this);if(t===-1||r===-1){return false}else{return t>r}};e.prototype.treePosition=function(e){var t,r;r=0;t=false;this.foreachTreeNode(this.document(),(function(n){r++;if(!t&&n===e){return t=true}}));if(t){return r}else{return-1}};e.prototype.foreachTreeNode=function(e,t){var r,n,a,i,o;e||(e=this.document());i=e.children;for(n=0,a=i.length;n<a;n++){r=i[n];if(o=t(r)){return o}else{o=this.foreachTreeNode(r,t);if(o){return o}}}};return e}()}).call(this)},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){e.deprecate=function(){};e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});e.webpackPolyfill=1}return e}},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},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(10),i=a.Map,o=a.OrderedSet,s=a.Record;var u=o();var l={style:u,entity:null};var c=s(l);var f=function(e){n(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.getStyle=function e(){return this.get("style")};r.getEntity=function e(){return this.get("entity")};r.hasStyle=function e(t){return this.getStyle().includes(t)};t.applyStyle=function e(r,n){var a=r.set("style",r.getStyle().add(n));return t.create(a)};t.removeStyle=function e(r,n){var a=r.set("style",r.getStyle().remove(n));return t.create(a)};t.applyEntity=function e(r,n){var a=r.getEntity()===n?r:r.set("entity",n);return t.create(a)};t.create=function e(r){if(!r){return d}var n={style:u,entity:null};var a=i(n).merge(r);var o=p.get(a);if(o){return o}var s=new t(a);p=p.set(a,s);return s};t.fromJS=function e(r){var n=r.style,a=r.entity;return new t({style:Array.isArray(n)?o(n):n,entity:Array.isArray(a)?o(a):a})};return t}(c);var d=new f;var p=i([[i(l),d]]);f.EMPTY=d;e.exports=f},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(49);var i=r(150);var o=r(10);var s=o.List,u=o.Map,l=o.OrderedSet,c=o.Record,f=o.Repeat;var d=l();var p={parent:null,characterList:s(),data:u(),depth:0,key:"",text:"",type:"unstyled",children:s(),prevSibling:null,nextSibling:null};var h=function e(t,r){return t.getStyle()===r.getStyle()};var v=function e(t,r){return t.getEntity()===r.getEntity()};var m=function e(t){if(!t){return t}var r=t.characterList,n=t.text;if(n&&!r){t.characterList=s(f(a.EMPTY,n.length))}return t};var y=function(e){n(t,e);function t(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:p;return e.call(this,m(t))||this}var r=t.prototype;r.getKey=function e(){return this.get("key")};r.getType=function e(){return this.get("type")};r.getText=function e(){return this.get("text")};r.getCharacterList=function e(){return this.get("characterList")};r.getLength=function e(){return this.getText().length};r.getDepth=function e(){return this.get("depth")};r.getData=function e(){return this.get("data")};r.getInlineStyleAt=function e(t){var r=this.getCharacterList().get(t);return r?r.getStyle():d};r.getEntityAt=function e(t){var r=this.getCharacterList().get(t);return r?r.getEntity():null};r.getChildKeys=function e(){return this.get("children")};r.getParentKey=function e(){return this.get("parent")};r.getPrevSiblingKey=function e(){return this.get("prevSibling")};r.getNextSiblingKey=function e(){return this.get("nextSibling")};r.findStyleRanges=function e(t,r){i(this.getCharacterList(),h,t,r)};r.findEntityRanges=function e(t,r){i(this.getCharacterList(),v,t,r)};return t}(c(p));e.exports=y},function(e,t,r){var n=r(1028),a=r(1066),i=r(109),o=r(11),s=r(1075);function u(e){if(typeof e=="function"){return e}if(e==null){return i}if(typeof e=="object"){return o(e)?a(e[0],e[1]):n(e)}return s(e)}e.exports=u},function(e,t,r){"use strict";r.r(t);var n=function e(t,r){return t===r};t["default"]=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:n;var r=void 0;var a=[];var i=void 0;var o=false;var s=function e(r,n){return t(r,a[n])};var u=function t(){for(var n=arguments.length,u=Array(n),l=0;l<n;l++){u[l]=arguments[l]}if(o&&r===this&&u.length===a.length&&u.every(s)){return i}o=true;r=this;a=u;i=e.apply(this,u);return i};return u}},function(e,t,r){e.exports=r(965)},function(e,t,r){var n=r(85),a=r(11),i=r(60);var o="[object String]";function s(e){return typeof e=="string"||!a(e)&&i(e)&&n(e)==o}e.exports=s},function(e,t,r){"use strict";t.__esModule=true;t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var n=l(r(0));var a=u(r(1));var i=u(r(17));var o=r(585);var s=r(586);function u(e){return e&&e.__esModule?e:{default:e}}function l(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 c(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 f(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var d="unmounted";t.UNMOUNTED=d;var p="exited";t.EXITED=p;var h="entering";t.ENTERING=h;var v="entered";t.ENTERED=v;var m="exiting";t.EXITING=m;var y=function(e){f(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;var a=r.transitionGroup;var i=a&&!a.isMounting?t.enter:t.appear;var o;n.appearStatus=null;if(t.in){if(i){o=p;n.appearStatus=h}else{o=v}}else{if(t.unmountOnExit||t.mountOnEnter){o=d}else{o=p}}n.state={status:o};n.nextCallback=null;return n}var r=t.prototype;r.getChildContext=function e(){return{transitionGroup:null}};t.getDerivedStateFromProps=function e(t,r){var n=t.in;if(n&&r.status===d){return{status:p}}return null};r.componentDidMount=function e(){this.updateStatus(true,this.appearStatus)};r.componentDidUpdate=function e(t){var r=null;if(t!==this.props){var n=this.state.status;if(this.props.in){if(n!==h&&n!==v){r=h}}else{if(n===h||n===v){r=m}}}this.updateStatus(false,r)};r.componentWillUnmount=function e(){this.cancelNextCallback()};r.getTimeouts=function e(){var t=this.props.timeout;var r,n,a;r=n=a=t;if(t!=null&&typeof t!=="number"){r=t.exit;n=t.enter;a=t.appear!==undefined?t.appear:n}return{exit:r,enter:n,appear:a}};r.updateStatus=function e(t,r){if(t===void 0){t=false}if(r!==null){this.cancelNextCallback();var n=i.default.findDOMNode(this);if(r===h){this.performEnter(n,t)}else{this.performExit(n)}}else if(this.props.unmountOnExit&&this.state.status===p){this.setState({status:d})}};r.performEnter=function e(t,r){var n=this;var a=this.props.enter;var i=this.context.transitionGroup?this.context.transitionGroup.isMounting:r;var o=this.getTimeouts();var s=i?o.appear:o.enter;if(!r&&!a){this.safeSetState({status:v},(function(){n.props.onEntered(t)}));return}this.props.onEnter(t,i);this.safeSetState({status:h},(function(){n.props.onEntering(t,i);n.onTransitionEnd(t,s,(function(){n.safeSetState({status:v},(function(){n.props.onEntered(t,i)}))}))}))};r.performExit=function e(t){var r=this;var n=this.props.exit;var a=this.getTimeouts();if(!n){this.safeSetState({status:p},(function(){r.props.onExited(t)}));return}this.props.onExit(t);this.safeSetState({status:m},(function(){r.props.onExiting(t);r.onTransitionEnd(t,a.exit,(function(){r.safeSetState({status:p},(function(){r.props.onExited(t)}))}))}))};r.cancelNextCallback=function e(){if(this.nextCallback!==null){this.nextCallback.cancel();this.nextCallback=null}};r.safeSetState=function e(t,r){r=this.setNextCallback(r);this.setState(t,r)};r.setNextCallback=function e(t){var r=this;var n=true;this.nextCallback=function(e){if(n){n=false;r.nextCallback=null;t(e)}};this.nextCallback.cancel=function(){n=false};return this.nextCallback};r.onTransitionEnd=function e(t,r,n){this.setNextCallback(n);var a=r==null&&!this.props.addEndListener;if(!t||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){this.props.addEndListener(t,this.nextCallback)}if(r!=null){setTimeout(this.nextCallback,r)}};r.render=function e(){var t=this.state.status;if(t===d){return null}var r=this.props,n=r.children,i=c(r,["children"]);delete i.in;delete i.mountOnEnter;delete i.unmountOnExit;delete i.appear;delete i.enter;delete i.exit;delete i.timeout;delete i.addEndListener;delete i.onEnter;delete i.onEntering;delete i.onEntered;delete i.onExit;delete i.onExiting;delete i.onExited;if(typeof n==="function"){return n(t,i)}var o=a.default.Children.only(n);return a.default.cloneElement(o,i)};return t}(a.default.Component);y.contextTypes={transitionGroup:n.object};y.childContextTypes={transitionGroup:function e(){}};y.propTypes=false?undefined:{};function g(){}y.defaultProps={in:false,mountOnEnter:false,unmountOnExit:false,appear:false,enter:true,exit:true,onEnter:g,onEntering:g,onEntered:g,onExit:g,onExiting:g,onExited:g};y.UNMOUNTED=0;y.EXITED=1;y.ENTERING=2;y.ENTERED=3;y.EXITING=4;var b=(0,o.polyfill)(y);t.default=b},function(e,t,r){"use strict";var n=r(21);var a=n["a"].Symbol;t["a"]=a},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){this.prefixes=e}e.prototype.parse=function(e){throw new Error("must be implemented in subclass")};e.prototype.parseAttribute=function(e,t){var r=e["$"];if(r){var n=r[t];if(n){return n.value}}return undefined};e.prototype.parseSubtagContent=function(e,t){var r=e[t];if(r&&r.length>0){return r[0]["_"]}else{return undefined}};e.prototype.parseSubtags=function(e,t,r){var n=e[t];var a;if(n&&n.length){a=n.map((function(e){return r.parse(e)}))}else{a=[]}return a};e.prototype.parseSubtag=function(e,t,r){var n=this.parseSubtags(e,t,r);return n.length>0?n[0]:null};return e}();t.default=n},function(e,t,r){var n=r(600);var a=typeof self=="object"&&self&&self.Object===Object&&self;var i=n||a||Function("return this")();e.exports=i},function(e,t){function r(e){return e!=null&&typeof e=="object"}e.exports=r},function(e,t,r){(function(t){var n=r(1179),a=typeof window==="undefined"?t:window,i=["moz","webkit"],o="AnimationFrame",s=a["request"+o],u=a["cancel"+o]||a["cancelRequest"+o];for(var l=0;!s&&l<i.length;l++){s=a[i[l]+"Request"+o];u=a[i[l]+"Cancel"+o]||a[i[l]+"CancelRequest"+o]}if(!s||!u){var c=0,f=0,d=[],p=1e3/60;s=function(e){if(d.length===0){var t=n(),r=Math.max(0,p-(t-c));c=r+t;setTimeout((function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++){if(!e[t].cancelled){try{e[t].callback(c)}catch(e){setTimeout((function(){throw e}),0)}}}}),Math.round(r))}d.push({handle:++f,callback:e,cancelled:false});return f};u=function(e){for(var t=0;t<d.length;t++){if(d[t].handle===e){d[t].cancelled=true}}}}e.exports=function(e){return s.call(a,e)};e.exports.cancel=function(){u.apply(a,arguments)};e.exports.polyfill=function(e){if(!e){e=a}e.requestAnimationFrame=s;e.cancelAnimationFrame=u}}).call(this,r(27))},function(e,t,r){"use strict";var n=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 a=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 i=r(353);var o=function(){function e(e){this.fetcher=e}e.prototype.fetchBlob=function(e,t){var r=this;return function(i){return n(r,void 0,void 0,(function(){var r,n,o,n,s;return a(this,(function(a){switch(a.label){case 0:i(this.request(e,t));a.label=1;case 1:a.trys.push([1,8,,9]);return[4,this.fetcher.fetch(t)];case 2:r=a.sent();if(!r.ok)return[3,4];return[4,r.blob()];case 3:n=a.sent();i(this.success(e));return[2,n];case 4:if(!r.redirected)return[3,7];return[4,this.fetcher.fetch(r.url,{headers:{Authorization:""}})];case 5:o=a.sent();return[4,o.blob()];case 6:n=a.sent();if(o.ok){i(this.success(e));return[2,n]}console.error("Original Response ",r);console.error("New Response ",o);throw{status:500,response:"Retried fetch after redirect. The retry did not succeed.",url:t};case 7:console.error("Response: ",r);throw{status:500,url:t,response:"Response was not okay and was not retried (wasn't the result of a redirect)."};case 8:s=a.sent();i(this.failure(e,s));throw s;case 9:return[2]}}))}))}};e.prototype.fetchJSON=function(e,t){var r=this;var n;return function(a){return new Promise((function(i,o){a(r.request(e,t));r.fetcher.fetch(t).then((function(s){if(s.ok){s.json().then((function(t){a(r.success(e));a(r.load(e,t));i(t)})).catch((function(i){n={status:s.status,response:"Non-json response",url:t};a(r.failure(e,n));o(n)}))}else{s.json().then((function(i){n={status:s.status,response:i.detail,url:t};a(r.failure(e,n));o(n)})).catch((function(i){n={status:s.status,response:"Request failed",url:t};a(r.failure(e,n));o(n)}))}})).catch((function(n){n={status:null,response:n.message,url:t};a(r.failure(e,n));o(n)}))}))}};e.prototype.fetchOPDS=function(e,t){var r=this;return function(n){n(r.request(e,t));return new Promise((function(a,i){r.fetcher.fetchOPDSData(t).then((function(i){n(r.success(e));n(r.load(e,i,t));a(i)})).catch((function(t){n(r.failure(e,t));i(t)}))}))}};e.prototype.request=function(t,r){return{type:t+"_"+e.REQUEST,url:r}};e.prototype.success=function(t){return{type:t+"_"+e.SUCCESS}};e.prototype.failure=function(t,r){return{type:t+"_"+e.FAILURE,error:r}};e.prototype.load=function(t,r,n){return{type:t+"_"+e.LOAD,data:r,url:n}};e.prototype.clear=function(t){return{type:t+"_"+e.CLEAR}};e.prototype.fetchCollection=function(t){return this.fetchOPDS(e.COLLECTION,t)};e.prototype.fetchPage=function(t){return this.fetchOPDS(e.PAGE,t)};e.prototype.fetchBook=function(t){return this.fetchOPDS(e.BOOK,t)};e.prototype.fetchSearchDescription=function(t){var r=this;return function(n){return new Promise((function(a,i){r.fetcher.fetchSearchDescriptionData(t).then((function(i){n(r.load(e.SEARCH_DESCRIPTION,i,t));a(i)})).catch((function(e){return i(e)}))}))}};e.prototype.clearCollection=function(){return this.clear(e.COLLECTION)};e.prototype.closeError=function(){return{type:e.CLOSE_ERROR}};e.prototype.loadBook=function(t,r){return this.load(e.BOOK,t,r)};e.prototype.clearBook=function(){return this.clear(e.BOOK)};e.prototype.updateBook=function(t){return this.fetchOPDS(e.UPDATE_BOOK,t)};e.prototype.fulfillBook=function(t){return this.fetchBlob(e.FULFILL_BOOK,t)};e.prototype.indirectFulfillBook=function(t,r){var n=this;return function(a){return new Promise((function(i,o){a(n.request(e.FULFILL_BOOK,t));n.fetcher.fetchOPDSData(t).then((function(o){var s;var u=(s=o.fulfillmentLinks)===null||s===void 0?void 0:s.find((function(e){return e.type===r}));if(u){a(n.success(e.FULFILL_BOOK));i(u.url)}else{throw{status:200,response:"Couldn't fulfill book",url:t}}})).catch((function(t){a(n.failure(e.FULFILL_BOOK,t));o(t)}))}))}};e.prototype.fetchLoans=function(t){return this.fetchOPDS(e.LOANS,t)};e.prototype.showAuthForm=function(t,r,n,a,o,s){var u=i.flattenSamlProviders(n);return{type:e.SHOW_AUTH_FORM,callback:t,cancel:r,providers:u,title:a,error:o,attemptedProvider:s}};e.prototype.closeErrorAndHideAuthForm=function(){var e=this;return function(t){t(e.closeError());t(e.hideAuthForm())}};e.prototype.hideAuthForm=function(){return{type:e.HIDE_AUTH_FORM}};e.prototype.saveAuthCredentials=function(t){this.fetcher.setAuthCredentials(t);return{type:e.SAVE_AUTH_CREDENTIALS,credentials:t}};e.prototype.clearAuthCredentials=function(){this.fetcher.clearAuthCredentials();return{type:e.CLEAR_AUTH_CREDENTIALS}};e.prototype.setPreference=function(t,r){return{type:e.SET_PREFERENCE,key:t,value:r}};e.REQUEST="REQUEST";e.SUCCESS="SUCCESS";e.FAILURE="FAILURE";e.LOAD="LOAD";e.CLEAR="CLEAR";e.COLLECTION="COLLECTION";e.PAGE="PAGE";e.BOOK="BOOK";e.SEARCH_DESCRIPTION="SEARCH_DESCRIPTION";e.UPDATE_BOOK="UPDATE_BOOK";e.FULFILL_BOOK="FULFILL_BOOK";e.LOANS="LOANS";e.COLLECTION_REQUEST="COLLECTION_REQUEST";e.COLLECTION_SUCCESS="COLLECTION_SUCCESS";e.COLLECTION_FAILURE="COLLECTION_FAILURE";e.COLLECTION_LOAD="COLLECTION_LOAD";e.COLLECTION_CLEAR="COLLECTION_CLEAR";e.PAGE_REQUEST="PAGE_REQUEST";e.PAGE_SUCCESS="PAGE_SUCCESS";e.PAGE_FAILURE="PAGE_FAILURE";e.PAGE_LOAD="PAGE_LOAD";e.BOOK_REQUEST="BOOK_REQUEST";e.BOOK_SUCCESS="BOOK_SUCCESS";e.BOOK_FAILURE="BOOK_FAILURE";e.BOOK_LOAD="BOOK_LOAD";e.BOOK_CLEAR="BOOK_CLEAR";e.SEARCH_DESCRIPTION_LOAD="SEARCH_DESCRIPTION_LOAD";e.CLOSE_ERROR="CLOSE_ERROR";e.UPDATE_BOOK_REQUEST="UPDATE_BOOK_REQUEST";e.UPDATE_BOOK_SUCCESS="UPDATE_BOOK_SUCCESS";e.UPDATE_BOOK_FAILURE="UPDATE_BOOK_FAILURE";e.UPDATE_BOOK_LOAD="UPDATE_BOOK_LOAD";e.FULFILL_BOOK_REQUEST="FULFILL_BOOK_REQUEST";e.FULFILL_BOOK_SUCCESS="FULFILL_BOOK_SUCCESS";e.FULFILL_BOOK_FAILURE="FULFILL_BOOK_FAILURE";e.LOANS_REQUEST="LOANS_REQUEST";e.LOANS_SUCCESS="LOANS_SUCCESS";e.LOANS_FAILURE="LOANS_FAILURE";e.LOANS_LOAD="LOANS_LOAD";e.SHOW_AUTH_FORM="SHOW_AUTH_FORM";e.HIDE_AUTH_FORM="HIDE_AUTH_FORM";e.SAVE_AUTH_CREDENTIALS="SAVE_AUTH_CREDENTIALS";e.CLEAR_AUTH_CREDENTIALS="CLEAR_AUTH_CREDENTIALS";e.SET_PREFERENCE="SET_PREFERENCE";return e}();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)}}();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.__rest||function(e,t){var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0)r[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++){if(t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a]))r[n[a]]=e[n[a]]}return r};Object.defineProperty(t,"__esModule",{value:true});var o=r(1);var s=r(0);var u=r(78);var l=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.getChildContext=function(){var e=function(){};var t=Object.assign({},this.context.router,{replace:e,go:e,goBack:e,goForward:e,setRouteLeaveHook:e});return{router:t}};t.prototype.render=function(){var e=this.props,t=e.collectionUrl,r=t===void 0?null:t,n=e.bookUrl,s=n===void 0?null:n,l=e.ref,c=i(e,["collectionUrl","bookUrl","ref"]);var f=this.context.pathFor(r,s);return o.createElement(u.Link,a({to:f},c))};t.contextTypes={router:s.object.isRequired,pathFor:s.func.isRequired};t.childContextTypes={router:s.object.isRequired};return t}(o.Component);t.default=l},function(e,t,r){"use strict";var n={};var a=Math.pow(2,24);function i(){var e;while(e===undefined||n.hasOwnProperty(e)||!isNaN(+e)){e=Math.floor(Math.random()*a).toString(32)}n[e]=true;return e}e.exports=i},function(e,t,r){var n=r(273)("wks");var a=r(189);var i=r(73).Symbol;var o=typeof i=="function";var s=e.exports=function(e){return n[e]||(n[e]=o&&i[e]||(o?i:a)("Symbol."+e))};s.store=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.__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 i=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 o=r(1);var s=r(19);var u=r(194);var l=r(12);var c=r(1323);var f=r(186);var d=r(72);var p=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.extraForm=o.createRef();var n;if(r.availableProtocols().length){n=r.availableProtocols()[0].name}r.state={protocol:r.props.item&&r.props.item.protocol||n,parentId:r.props.item&&r.props.item.parent_id&&String(r.props.item.parent_id)||null,libraries:r.props.item&&r.props.item.libraries||[],expandedLibraries:[],selectedLibrary:null,analyticsOption:null};r.handleProtocolChange=r.handleProtocolChange.bind(r);r.handleParentChange=r.handleParentChange.bind(r);r.selectLibrary=r.selectLibrary.bind(r);r.addLibrary=r.addLibrary.bind(r);r.editLibrary=r.editLibrary.bind(r);r.expandLibrary=r.expandLibrary.bind(r);r.removeLibrary=r.removeLibrary.bind(r);r.handleData=r.handleData.bind(r);r.submit=r.submit.bind(r);r.renderRequiredFields=r.renderRequiredFields.bind(r);r.renderOptionalFields=r.renderOptionalFields.bind(r);r.renderLibrariesForm=r.renderLibrariesForm.bind(r);return r}t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this.state.protocol;var r=this.state.parentId;var n=this.state.libraries;if(e.item&&e.item.protocol){if(!this.props.item||!this.props.item.protocol||this.props.item.protocol!==e.item.protocol){t=e.item.protocol}}if(!t&&this.availableProtocols(e).length>0){t=this.availableProtocols(e)[0].name}if(e.item&&e.item.parent_id){if(!this.props.item||!this.props.item.parent_id||this.props.item.parent_id!==e.item.parent_id){r=e.item.parent_id}}if(e.item&&e.item.libraries){if(!this.props.item||!this.props.item.libraries||this.props.item.libraries!==e.item.libraries){n=e.item.libraries}}var a=Object.assign({},this.state,{protocol:t,parentId:r,libraries:n});this.setState(a);if(e.responseBody&&!e.fetchError){d.clearForm(this.refs)}};t.prototype.shouldDisable=function(){var e;return this.props.disabled||((e=this.props.item)===null||e===void 0?void 0:e.level)&&this.props.item.level>this.props.adminLevel};t.prototype.render=function(){var e=this.findProtocol();var t=this.props.listDataKey;var r=this.protocolSettings(e),n=r.requiredFields,a=r.nonRequiredFields,i=r.extraFields;var s=!this.sitewide(e)||this.protocolLibrarySettings(e).length>0;var u=a.length>0;var c=this.props.data&&this.protocolInstructions(e);var f=this.shouldDisable();var d=c&&o.createElement("div",{className:"form-group",key:"instructions"},o.createElement("label",{className:"control-label"},"Instructions"),o.createElement(l.Panel,{id:"form-"+t+"-instructions",headerText:this.protocolDescription(e),style:"instruction",onEnter:this.submit,content:this.protocolInstructions(e)}));var p=o.createElement(l.Panel,{key:"required",id:"form-"+t+"-required",headerText:"Required Fields",openByDefault:true,collapsible:u||s,content:this.renderRequiredFields(n,e,f)});var h=u&&o.createElement(l.Panel,{id:"form-"+t+"-optional",key:"optional",headerText:"Optional Fields",content:this.renderOptionalFields(a,f)});var v=this.props.extraFormSection&&i.length>0&&o.createElement(this.props.extraFormSection,{key:this.props.extraFormKey,setting:i[0],ref:this.extraForm,currentValue:this.props.item&&this.props.item.settings&&this.props.item.settings[this.props.extraFormKey],disabled:f});var m=s&&o.createElement(l.Panel,{key:"libraries",id:"form-"+t+"-libraries",headerText:"Libraries",content:this.renderLibrariesForm(e,f)});return o.createElement(l.Form,{onSubmit:this.submit,className:"no-border edit-form",hiddenName:this.props.item&&this.props.item.id&&"id",hiddenValue:this.props.item&&this.props.item.id&&String(this.props.item.id),disableButton:f,content:[d,p,h,v,m]})};t.prototype.renderRequiredFields=function(e,t,r){var n=this;return o.createElement("fieldset",null,o.createElement("legend",{className:"visuallyHidden"},o.createElement("h4",null,"Required Fields")),o.createElement(s.default,{elementType:"input",type:"text",disabled:r,readOnly:r,required:true,name:"name",ref:"name",label:"Name",value:this.props.item&&this.props.item.name,error:this.props.error}),o.createElement(s.default,{elementType:"select",disabled:r,readOnly:r||!!(this.props.item&&this.props.item.protocol),name:"protocol",label:"Protocol",value:this.state.protocol,ref:"protocol",onChange:this.handleProtocolChange,description:!this.protocolInstructions(t)&&this.protocolDescription(t)},this.availableProtocols().map((function(e){return o.createElement("option",{key:e.name,value:e.name,"aria-selected":n.state.protocol===e.name},e.label||e.name)}))),this.props.data&&this.allowsParent(t)&&this.availableParents().length>0&&o.createElement(s.default,{elementType:"select",readOnly:r,disabled:r,name:"parent_id",label:"Parent",value:this.state.parentId,ref:"parent",onChange:this.handleParentChange},o.createElement("option",{value:"","aria-selected":this.state.parentId===""},"None"),this.availableParents().map((function(e){return o.createElement("option",{key:e.id,value:e.id,"aria-selected":n.state.parentId===e.id},e.name||e.id)}))),e.map((function(e){return o.createElement(u.default,{key:e.key,ref:e.key,setting:e,readOnly:r,disabled:r,value:n.props.item&&n.props.item.settings&&n.props.item.settings[e.key],error:n.props.error})})))};t.prototype.renderOptionalFields=function(e,t){var r=this;return o.createElement("fieldset",null,o.createElement("legend",{className:"visuallyHidden"},"Additional Fields"),e.map((function(e){return o.createElement(u.default,{key:e.key,ref:e.key,setting:e,readOnly:t,disabled:t,value:r.props.item&&r.props.item.settings&&r.props.item.settings[e.key],error:r.props.error})})))};t.prototype.renderLibrariesForm=function(e,t){var r=this;return o.createElement("fieldset",{className:"update-libraries"},o.createElement("legend",{className:"visuallyHidden"},"Libraries"),o.createElement("div",{className:"form-group"},this.state.libraries.map((function(n){return o.createElement("div",{key:n.short_name},o.createElement(f.default,{disabled:t,onRemove:function(){return r.removeLibrary(n)},ref:n.short_name},r.props.data&&r.props.data.protocols&&r.protocolLibrarySettings(e)&&r.protocolLibrarySettings(e).length>0&&o.createElement(c.default,{disabled:t,onEdit:function(){return r.expandLibrary(n)}},r.getLibrary(n.short_name)&&r.getLibrary(n.short_name).name),!(r.props.data&&r.props.data.protocols&&r.protocolLibrarySettings(e)&&r.protocolLibrarySettings(e).length>0)&&r.getLibrary(n.short_name)&&r.getLibrary(n.short_name).name),r.isExpanded(n)&&o.createElement("div",{className:"edit-library-settings"},r.props.data&&r.props.data.protocols&&r.protocolLibrarySettings(e)&&r.protocolLibrarySettings(e).map((function(e){return o.createElement(u.default,{key:e.key,setting:e,disabled:t,value:n[e.key],ref:n.short_name+"_"+e.key})})),o.createElement(l.Button,{type:"button",className:"edit-library",disabled:t,callback:function(){return r.editLibrary(n,e)},content:"Save"})))}))),this.availableLibraries().length>0&&o.createElement("div",{className:"form-group"},o.createElement(s.default,{elementType:"select",disabled:t,readOnly:t,name:"add-library",label:"Add Library",ref:"addLibrary",value:this.state.selectedLibrary,onChange:this.selectLibrary},o.createElement("option",{value:"none","aria-selected":this.state.selectedLibrary==="none"},"Select a library"),this.availableLibraries().map((function(e){return o.createElement("option",{key:e.short_name,value:e.short_name,"aria-selected":r.state.selectedLibrary==="library.short_name"},e.name)}))),this.state.selectedLibrary&&o.createElement("div",null,this.props.data&&this.props.data.protocols&&this.protocolLibrarySettings(e)&&this.protocolLibrarySettings(e).map((function(e){return o.createElement(u.default,{key:e.key,setting:e,disabled:t,readOnly:t,ref:e.key})})),o.createElement(l.Button,{type:"button",disabled:t,callback:function(){return r.addLibrary(e)},content:"Add Library",className:"left-align"}))))};t.prototype.availableProtocols=function(e){e=e||this.props;var t=e.data&&e.data.protocols||[];if(e.item){for(var r=0,n=t;r<n.length;r++){var a=n[r];if(a.name===e.item.protocol){return[a]}}}return t};t.prototype.handleProtocolChange=function(){var e=this.refs["protocol"].getValue();var t=Object.assign({},this.state,{protocol:e});this.setState(t)};t.prototype.allowsParent=function(e){return e&&!!e.child_settings};t.prototype.availableParents=function(){var e=this.props.data&&this.props.data[this.props.listDataKey]||[];var t=[];for(var r=0,n=e;r<n.length;r++){var a=n[r];if(a.protocol===this.state.protocol&&a.id!==(this.props.item&&this.props.item.id)){t.push(a)}}return t};t.prototype.handleParentChange=function(){var e=this.refs["parent"].getValue();if(e===""){e=null}var t=Object.assign({},this.state,{parentId:e});this.setState(t)};t.prototype.protocols=function(){return this.state.protocol&&this.props.data&&this.props.data.protocols};t.prototype.findProtocol=function(){var e=this;return this.protocols()&&this.protocols().find((function(t){return t.name===e.state.protocol}))};t.prototype.protocolSettings=function(e){var t=[];var r=[];var n=[];var a=[this.props.extraFormKey];var i;if(e){i=this.state.parentId?e.child_settings:e.settings;i&&i.forEach((function(e){a.includes(e.key)?n.push(e):e.required?t.push(e):r.push(e)}))}return{requiredFields:t,nonRequiredFields:r,extraFields:n}};t.prototype.protocolDescription=function(e){return e&&e.description||""};t.prototype.protocolInstructions=function(e){return e&&e.instructions||""};t.prototype.protocolLibrarySettings=function(e){return e&&e.library_settings||[]};t.prototype.sitewide=function(e){return e&&e.sitewide};t.prototype.getLibrary=function(e){var t=this.props.data&&this.props.data.allLibraries||[];for(var r=0,n=t;r<n.length;r++){var a=n[r];if(a.short_name===e){return a}}return null};t.prototype.availableLibraries=function(){var e=this;var t=this.props.data&&this.props.data.allLibraries||[];return t.filter((function(t){for(var r=0,n=e.state.libraries;r<n.length;r++){var a=n[r];if(a.short_name===t.short_name){return false}}return true}))};t.prototype.selectLibrary=function(){var e=this.refs["addLibrary"].getValue();if(e==="none"){e=null}var t=Object.assign({},this.state,{selectedLibrary:e});this.setState(t)};t.prototype.isExpanded=function(e){return this.state.expandedLibraries.indexOf(e.short_name)!==-1};t.prototype.removeLibrary=function(e){var t=this.state.libraries.filter((function(t){return t.short_name!==e.short_name}));var r=this.state.expandedLibraries.filter((function(t){return t!==e.short_name}));var n=Object.assign({},this.state,{libraries:t,expandedLibraries:r});this.setState(n)};t.prototype.expandLibrary=function(e){if(!this.isExpanded(e)){var t=this.state.expandedLibraries;t.push(e.short_name);var r=Object.assign({},this.state,{expandedLibraries:t});this.setState(r)}else{var t=this.state.expandedLibraries.filter((function(t){return t!==e.short_name}));var r=Object.assign({},this.state,{expandedLibraries:t});this.setState(r)}};t.prototype.editLibrary=function(e,t){var r=this.state.libraries.filter((function(t){return t.short_name!==e.short_name}));var n=this.state.expandedLibraries.filter((function(t){return t!==e.short_name}));var a={short_name:e.short_name};for(var i=0,o=this.protocolLibrarySettings(t);i<o.length;i++){var s=o[i];var u=this.refs[e.short_name+"_"+s.key].getValue();if(u){a[s.key]=u}}r.push(a);var l=Object.assign({},this.state,{libraries:r,expandedLibraries:n});this.setState(l)};t.prototype.addLibrary=function(e){var t=this.state.selectedLibrary;var r={short_name:t};for(var n=0,a=this.protocolLibrarySettings(e);n<a.length;n++){var i=a[n];var o=this.refs[i.key].getValue();if(o){r[i.key]=o}this.refs[i.key].clear()}var s=this.state.libraries.concat(r);var u=Object.assign({},this.state,{libraries:s,selectedLibrary:null});this.setState(u)};t.prototype.handleData=function(e){var t=this.extraForm.current;t&&e.append(this.props.extraFormKey,t.getValue());e&&e.append("libraries",JSON.stringify(this.state.libraries));return e};t.prototype.submit=function(e){return a(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:t=this.handleData(e);return[4,this.props.save(t)];case 1:r.sent();return[2]}}))}))};return t}(o.Component);t.default=p},function(e,t,r){var n=r(96);function a(e){return n(e)&&e!=+e}e.exports=a},function(e,t,r){var n=r(213),a=r(659),i=r(109);function o(e){return e&&e.length?n(e,i,a):undefined}e.exports=o},function(e,t){(function(){var t,r,n,a,i,o,s,u=[].slice,l={}.hasOwnProperty;t=function(){var e,t,r,n,a,o;o=arguments[0],a=2<=arguments.length?u.call(arguments,1):[];if(i(Object.assign)){Object.assign.apply(null,arguments)}else{for(e=0,r=a.length;e<r;e++){n=a[e];if(n!=null){for(t in n){if(!l.call(n,t))continue;o[t]=n[t]}}}}return o};i=function(e){return!!e&&Object.prototype.toString.call(e)==="[object Function]"};o=function(e){var t;return!!e&&((t=typeof e)==="function"||t==="object")};n=function(e){if(i(Array.isArray)){return Array.isArray(e)}else{return Object.prototype.toString.call(e)==="[object Array]"}};a=function(e){var t;if(n(e)){return!e.length}else{for(t in e){if(!l.call(e,t))continue;return false}return true}};s=function(e){var t,r;return o(e)&&(r=Object.getPrototypeOf(e))&&(t=r.constructor)&&typeof t==="function"&&t instanceof t&&Function.prototype.toString.call(t)===Function.prototype.toString.call(Object)};r=function(e){if(i(e.valueOf)){return e.valueOf()}else{return e}};e.exports.assign=t;e.exports.isFunction=i;e.exports.isObject=o;e.exports.isArray=n;e.exports.isEmpty=a;e.exports.isPlainObject=s;e.exports.getValue=r}).call(this)},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(){return a.createElement("div",{className:"loading",role:"dialog","aria-labelledby":"loading"},a.createElement("h1",{id:"loading"},"Loading"))};return t}(a.Component);t.default=i},function(e,t,r){"use strict";var n="-";var a={encode:function e(t,r,a){return t+n+r+n+a},decode:function e(t){var r=t.split(n).reverse(),a=r[0],i=r[1],o=r.slice(2);return{blockKey:o.reverse().join(n),decoratorKey:parseInt(i,10),leafKey:parseInt(a,10)}}};e.exports=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function n(e){var t=[];e.options&&e.default&&e.options.map((function(r){if(e.default.indexOf(r.key)>=0||e.default===r.key){t.push(r)}}));if(t.length>0){return t}}t.findDefault=n;function a(e,t){if(t===void 0){t=false}var r,n,a,i;if(e){var o=Object.keys(e);for(var s=0;s<o.length;s++){var u=o[s];if(t){((r=e[u].current)===null||r===void 0?void 0:r.clear)&&e[u].current.clear();if(((n=e[u].current)===null||n===void 0?void 0:n.props)&&e[u].current.props.onRemove){e[u].current.props.onRemove()}}else{((a=e[u])===null||a===void 0?void 0:a.clear)&&e[u].clear();if(((i=e[u])===null||i===void 0?void 0:i.props)&&e[u].props.onRemove){e[u].props.onRemove()}}}}}t.clearForm=a;function i(e,t,r){if(r===void 0){r=true}if(r){e=e.substr(0,1).toUpperCase()+e.substr(1)}if(t){var n=t.length>1?t.pop():" ";t.forEach((function(t){e=e.replace(new RegExp(t,"g"),n)}))}return e}t.formatString=i;function o(e,t){return e.length===t.length&&e.every((function(e){return t.indexOf(e)>=0}))}t.isEqual=o},function(e,t){var r=e.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number")__g=r},function(e,t,r){e.exports=!r(105)((function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}))},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(13);var o=r(0);var s=r(7);var u=r(19);var l=r(78);var c=r(116);var f=r(12);var d=r(99);var p=r(1108);var h=r(136);var v=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.libraryRef=a.createRef();r.state={showAccountDropdown:false};r.changeLibrary=r.changeLibrary.bind(r);r.toggleAccountDropdown=r.toggleAccountDropdown.bind(r);r.renderNavItem=r.renderNavItem.bind(r);document.body.addEventListener("click",(function(e){if(r.state.showAccountDropdown&&e.target.className.indexOf("account-dropdown-toggle")===-1){r.toggleAccountDropdown()}}));return r}t.prototype.displayPermissions=function(e,t){var r=e?"system admin":t?"library manager":"librarian";return a.createElement("li",{className:"permissions"},"Logged in as a ",r)};t.prototype.render=function(){var e=this;var t=this.context.router&&this.context.router.getCurrentLocation()&&this.context.router.getCurrentLocation().pathname||"";var r=this.context.library&&this.context.library();var n=this.context.admin.isLibraryManager(r);var i=this.context.admin.isSystemAdmin();var o=!this.context.library||!r;var s=this.context.admin.isLibraryManagerOfSomeLibrary();var l=[{label:"Catalog",href:"%2Fgroups?max_cache_age=0"},{label:"Complaints",href:"%2Fadmin%2Fcomplaints"},{label:"Hidden Books",href:"%2Fadmin%2Fsuppressed"}];var v=[{label:"Lists",href:"lists/"},{label:"Lanes",href:"lanes/",auth:n},{label:"Dashboard",href:"dashboard/"},{label:"Patrons",href:"patrons/",auth:n}];var m=[{label:"Dashboard",href:"dashboard/",auth:o},{label:"System Configuration",href:"config/"},{label:"Troubleshooting",href:"troubleshooting/",auth:i}];var y={label:"Change password",href:"account/"};return a.createElement(c.Navbar,{fluid:true},a.createElement(c.Navbar.Header,null,a.createElement("img",{src:p,alt:h.default()}),this.props.libraries&&this.props.libraries.length>0&&a.createElement(u.default,{elementType:"select",ref:this.libraryRef,value:r,onChange:this.changeLibrary,"aria-label":"Select a library"},(!this.context.library||!r)&&a.createElement("option",{"aria-selected":false},"Select a library"),this.props.libraries.map((function(e){return a.createElement("option",{key:e.short_name,value:e.short_name,"aria-selected":r===e.short_name},e.name||e.short_name)}))),a.createElement(c.Navbar.Toggle,null)),a.createElement(c.Navbar.Collapse,{className:"menu"},r&&a.createElement(c.Nav,null,l.map((function(n){return e.renderNavItem(n,t,r)})),v.map((function(n){return e.renderLinkItem(n,t,r)}))),a.createElement(c.Nav,{className:"pull-right"},m.map((function(r){return e.renderLinkItem(r,t)})),this.context.admin.email&&a.createElement("li",{className:"dropdown"},a.createElement(f.Button,{className:"account-dropdown-toggle transparent",type:"button","aria-haspopup":"true","aria-expanded":this.state.showAccountDropdown,callback:this.toggleAccountDropdown,content:a.createElement("span",null,this.context.admin.email," ",a.createElement(d.GenericWedgeIcon,null))}),this.state.showAccountDropdown&&a.createElement("ul",{className:"dropdown-menu"},this.displayPermissions(i,n),this.renderLinkItem(y,t),a.createElement("li",null,a.createElement("a",{href:"/admin/sign_out"},"Sign out")))))))};t.prototype.UNSAFE_componentWillMount=function(){if(this.props.fetchLibraries){this.props.fetchLibraries()}};t.prototype.changeLibrary=function(){var e=this.libraryRef.current.getValue();if(e){this.context.router.push("/admin/web/collection/"+e+"%2Fgroups?max_cache_age=0");this.forceUpdate()}};t.prototype.toggleAccountDropdown=function(){var e=!this.state.showAccountDropdown;this.setState({showAccountDropdown:e})};t.prototype.renderNavItem=function(e,t,r){if(r===void 0){r=""}var n="/admin/web/collection/";var i=e.label,o=e.href;var s=t.indexOf(o)!==-1;return a.createElement(c.NavItem,{key:o,className:"header-link",href:""+n+r+o,active:s},i)};t.prototype.renderLinkItem=function(e,t,r){if(r===void 0){r=""}var n="/admin/web/";var i=e.label,o=e.href,s=e.auth;var u=t.indexOf(o)!==-1;if(r){u=!!(u&&r)}var c=a.createElement("li",{className:"header-link",key:o},a.createElement(l.Link,{to:""+n+o+r,className:u?"active-link":""},i));if(s!==undefined){if(s){return c}else{return}}return c};t.contextTypes={library:o.func,router:o.object.isRequired,admin:o.object.isRequired};return t}(a.Component);t.Header=v;function m(e,t){return{libraries:e.editor.libraries&&e.editor.libraries.data&&e.editor.libraries.data.libraries}}function y(e){var t=new s.default;return{fetchLibraries:function(){return e(t.fetchLibraries())}}}var g=i.connect(m,y)(v);var b=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return a.createElement(g,{store:this.context.editorStore})};t.contextTypes={editorStore:o.object.isRequired};return t}(a.Component);t.default=b},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(389);var o=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e=this.context,t=e[0],r=e[1];return a.createElement("footer",{className:this.props.className},a.createElement("p",null,a.createElement("a",{href:r,target:"_blank",rel:"noreferrer"},this.decode(t))))};t.prototype.decode=function(e){var t=document.createElement("textarea");t.innerHTML=e;return t.value};t.contextType=i.TOSContext;return t}(a.Component);t.default=o},function(e,t){var r=e.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number")__g=r},function(e,t,r){"use strict";r.r(t);r.d(t,"Router",(function(){return Le}));r.d(t,"Link",(function(){return He}));r.d(t,"IndexLink",(function(){return qe}));r.d(t,"withRouter",(function(){return Qe}));r.d(t,"IndexRedirect",(function(){return $e}));r.d(t,"IndexRoute",(function(){return tt}));r.d(t,"Redirect",(function(){return Ze}));r.d(t,"Route",(function(){return nt}));r.d(t,"createRoutes",(function(){return G}));r.d(t,"RouterContext",(function(){return we}));r.d(t,"locationShape",(function(){return je}));r.d(t,"routerShape",(function(){return Ce}));r.d(t,"match",(function(){return vt}));r.d(t,"useRouterHistory",(function(){return mt}));r.d(t,"formatPattern",(function(){return E}));r.d(t,"applyRouterMiddleware",(function(){return gt}));r.d(t,"browserHistory",(function(){return Et}));r.d(t,"hashHistory",(function(){return Mt}));r.d(t,"createMemoryHistory",(function(){return ft}));var n=r(8);var a=r.n(n);var i=r(1);var o=r.n(i);var s=r(28);var u=r.n(s);var l=r(0);var c=r.n(l);var f=r(23);var d=r.n(f);var p={};function h(e,t){if(t.indexOf("deprecated")!==-1){if(p[t]){return}p[t]=true}t="[react-router] "+t;for(var r=arguments.length,n=Array(r>2?r-2:0),a=2;a<r;a++){n[a-2]=arguments[a]}d.a.apply(undefined,[e,t].concat(n))}function v(){p={}}function m(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function y(e){var t="";var r=[];var n=[];var a=void 0,i=0,o=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)|\\\(|\\\)/g;while(a=o.exec(e)){if(a.index!==i){n.push(e.slice(i,a.index));t+=m(e.slice(i,a.index))}if(a[1]){t+="([^/]+)";r.push(a[1])}else if(a[0]==="**"){t+="(.*)";r.push("splat")}else if(a[0]==="*"){t+="(.*?)";r.push("splat")}else if(a[0]==="("){t+="(?:"}else if(a[0]===")"){t+=")?"}else if(a[0]==="\\("){t+="\\("}else if(a[0]==="\\)"){t+="\\)"}n.push(a[0]);i=o.lastIndex}if(i!==e.length){n.push(e.slice(i,e.length));t+=m(e.slice(i,e.length))}return{pattern:e,regexpSource:t,paramNames:r,tokens:n}}var g=Object.create(null);function b(e){if(!g[e])g[e]=y(e);return g[e]}function A(e,t){if(e.charAt(0)!=="/"){e="/"+e}var r=b(e),n=r.regexpSource,a=r.paramNames,i=r.tokens;if(e.charAt(e.length-1)!=="/"){n+="/?"}if(i[i.length-1]==="*"){n+="$"}var o=t.match(new RegExp("^"+n,"i"));if(o==null){return null}var s=o[0];var u=t.substr(s.length);if(u){if(s.charAt(s.length-1)!=="/"){return null}u="/"+u}return{remainingPathname:u,paramNames:a,paramValues:o.slice(1).map((function(e){return e&&decodeURIComponent(e)}))}}function _(e){return b(e).paramNames}function w(e,t){var r=A(e,t);if(!r){return null}var n=r.paramNames,a=r.paramValues;var i={};n.forEach((function(e,t){i[e]=a[t]}));return i}function E(e,t){t=t||{};var r=b(e),n=r.tokens;var i=0,o="",s=0,u=[];var l=void 0,c=void 0,f=void 0;for(var d=0,p=n.length;d<p;++d){l=n[d];if(l==="*"||l==="**"){f=Array.isArray(t.splat)?t.splat[s++]:t.splat;!(f!=null||i>0)?false?undefined:a()(false):void 0;if(f!=null)o+=encodeURI(f)}else if(l==="("){u[i]="";i+=1}else if(l===")"){var h=u.pop();i-=1;if(i)u[i-1]+=h;else o+=h}else if(l==="\\("){o+="("}else if(l==="\\)"){o+=")"}else if(l.charAt(0)===":"){c=l.substring(1);f=t[c];!(f!=null||i>0)?false?undefined:a()(false):void 0;if(f==null){if(i){u[i-1]="";var v=n.indexOf(l);var m=n.slice(v,n.length);var y=-1;for(var g=0;g<m.length;g++){if(m[g]==")"){y=g;break}}!(y>0)?false?undefined:a()(false):void 0;d=v+y-1}}else if(i)u[i-1]+=encodeURIComponent(f);else o+=encodeURIComponent(f)}else{if(i)u[i-1]+=l;else o+=l}}!(i<=0)?false?undefined:a()(false):void 0;return o.replace(/\/+/g,"/")}function x(e,t,r){if(!e.path)return false;var n=_(e.path);return n.some((function(e){return t.params[e]!==r.params[e]}))}function k(e,t){var r=e&&e.routes;var n=t.routes;var a=void 0,i=void 0,o=void 0;if(r){var s=false;a=r.filter((function(r){if(s){return true}else{var a=n.indexOf(r)===-1||x(r,e,t);if(a)s=true;return a}}));a.reverse();o=[];i=[];n.forEach((function(e){var t=r.indexOf(e)===-1;var n=a.indexOf(e)!==-1;if(t||n)o.push(e);else i.push(e)}))}else{a=[];i=[];o=n}return{leaveRoutes:a,changeRoutes:i,enterRoutes:o}}var M=k;function S(e,t,r){var n=0,a=false;var i=false,o=false,s=void 0;function u(){a=true;if(i){s=[].concat(Array.prototype.slice.call(arguments));return}r.apply(this,arguments)}function l(){if(a){return}o=true;if(i){return}i=true;while(!a&&n<e&&o){o=false;t.call(this,n++,l,u)}i=false;if(a){r.apply(this,s);return}if(n>=e&&o){a=true;r()}}l()}function O(e,t,r){var n=e.length;var a=[];if(n===0)return r(null,a);var i=false,o=0;function s(e,t,s){if(i)return;if(t){i=true;r(t)}else{a[e]=s;i=++o===n;if(i)r(null,a)}}e.forEach((function(e,r){t(e,r,(function(e,t){s(r,e,t)}))}))}function D(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var T=function e(){var t=this;D(this,e);this.hooks=[];this.add=function(e){return t.hooks.push(e)};this.remove=function(e){return t.hooks=t.hooks.filter((function(t){return t!==e}))};this.has=function(e){return t.hooks.indexOf(e)!==-1};this.clear=function(){return t.hooks=[]}};function L(){var e=new T;var t=new T;function r(e,t,r,n){var a=e.length<r;var i=function r(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++){i[o]=arguments[o]}e.apply(t,i);if(a){var s=i[i.length-1];s()}};n.add(i);return i}function n(t){return t.reduce((function(t,n){if(n.onEnter)t.push(r(n.onEnter,n,3,e));return t}),[])}function a(e){return e.reduce((function(e,n){if(n.onChange)e.push(r(n.onChange,n,4,t));return e}),[])}function i(e,t,r){if(!e){r();return}var n=void 0;function a(e){n=e}S(e,(function(e,r,i){t(e,a,(function(e){if(e||n){i(e,n)}else{r()}}))}),r)}function o(t,r,a){e.clear();var o=n(t);return i(o.length,(function(t,n,a){var i=function r(){if(e.has(o[t])){a.apply(undefined,arguments);e.remove(o[t])}};o[t](r,n,i)}),a)}function s(e,r,n,o){t.clear();var s=a(e);return i(s.length,(function(e,a,i){var o=function r(){if(t.has(s[e])){i.apply(undefined,arguments);t.remove(s[e])}};s[e](r,n,a,o)}),o)}function u(e,t){for(var r=0,n=e.length;r<n;++r){if(e[r].onLeave)e[r].onLeave.call(e[r],t)}}return{runEnterHooks:o,runChangeHooks:s,runLeaveHooks:u}}var C=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function j(e,t){if(e==t)return true;if(e==null||t==null)return false;if(Array.isArray(e)){return Array.isArray(t)&&e.length===t.length&&e.every((function(e,r){return j(e,t[r])}))}if((typeof e==="undefined"?"undefined":C(e))==="object"){for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r)){continue}if(e[r]===undefined){if(t[r]!==undefined){return false}}else if(!Object.prototype.hasOwnProperty.call(t,r)){return false}else if(!j(e[r],t[r])){return false}}return true}return String(e)===String(t)}function N(e,t){if(t.charAt(0)!=="/"){t="/"+t}if(e.charAt(e.length-1)!=="/"){e+="/"}if(t.charAt(t.length-1)!=="/"){t+="/"}return t===e}function I(e,t,r){var n=e,a=[],i=[];for(var o=0,s=t.length;o<s;++o){var u=t[o];var l=u.path||"";if(l.charAt(0)==="/"){n=e;a=[];i=[]}if(n!==null&&l){var c=A(l,n);if(c){n=c.remainingPathname;a=[].concat(a,c.paramNames);i=[].concat(i,c.paramValues)}else{n=null}if(n===""){return a.every((function(e,t){return String(i[t])===String(r[e])}))}}}return false}function P(e,t){if(t==null)return e==null;if(e==null)return true;return j(e,t)}function R(e,t,r,n,a){var i=e.pathname,o=e.query;if(r==null)return false;if(i.charAt(0)!=="/"){i="/"+i}if(!N(i,r.pathname)){if(t||!I(i,n,a)){return false}}return P(o,r.query)}function F(e){return e&&typeof e.then==="function"}function Y(e,t,r){if(t.component||t.components){r(null,t.component||t.components);return}var n=t.getComponent||t.getComponents;if(n){var a=n.call(t,e,r);if(F(a))a.then((function(e){return r(null,e)}),r)}else{r()}}function B(e,t){O(e.routes,(function(t,r,n){Y(e,t,n)}),t)}var H=B;var z=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==null||o.a.isValidElement(e)}function q(e){return U(e)||Array.isArray(e)&&e.every(U)}function V(e,t){return z({},e,t)}function W(e){var t=e.type;var r=V(t.defaultProps,e.props);if(r.children){var n=K(r.children,r);if(n.length)r.childRoutes=n;delete r.children}return r}function K(e,t){var r=[];o.a.Children.forEach(e,(function(e){if(o.a.isValidElement(e)){if(e.type.createRouteFromReactElement){var n=e.type.createRouteFromReactElement(e,t);if(n)r.push(n)}else{r.push(W(e))}}}));return r}function G(e){if(q(e)){e=K(e)}else if(e&&!Array.isArray(e)){e=[e]}return e}var Q=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 J(e,t,r,n,a){if(e.childRoutes){return[null,e.childRoutes]}if(!e.getChildRoutes){return[]}var i=true,o=void 0;var s={location:t,params:$(r,n)};var u=e.getChildRoutes(s,(function(e,t){t=!e&&G(t);if(i){o=[e,t];return}a(e,t)}));if(F(u))u.then((function(e){return a(null,G(e))}),a);i=false;return o}function Z(e,t,r,n,a){if(e.indexRoute){a(null,e.indexRoute)}else if(e.getIndexRoute){var i={location:t,params:$(r,n)};var o=e.getIndexRoute(i,(function(e,t){a(e,!e&&G(t)[0])}));if(F(o))o.then((function(e){return a(null,G(e)[0])}),a)}else if(e.childRoutes||e.getChildRoutes){var s=function e(i,o){if(i){a(i);return}var s=o.filter((function(e){return!e.path}));S(s.length,(function(e,a,i){Z(s[e],t,r,n,(function(t,r){if(t||r){var n=[s[e]].concat(Array.isArray(r)?r:[r]);i(t,n)}else{a()}}))}),(function(e,t){a(null,t)}))};var u=J(e,t,r,n,s);if(u){s.apply(undefined,u)}}else{a()}}function X(e,t,r){return t.reduce((function(e,t,n){var a=r&&r[n];if(Array.isArray(e[t])){e[t].push(a)}else if(t in e){e[t]=[e[t],a]}else{e[t]=a}return e}),e)}function $(e,t){return X({},e,t)}function ee(e,t,r,n,a,i){var o=e.path||"";if(o.charAt(0)==="/"){r=t.pathname;n=[];a=[]}if(r!==null&&o){try{var s=A(o,r);if(s){r=s.remainingPathname;n=[].concat(n,s.paramNames);a=[].concat(a,s.paramValues)}else{r=null}}catch(e){i(e)}if(r===""){var u={routes:[e],params:$(n,a)};Z(e,t,n,a,(function(e,t){if(e){i(e)}else{if(Array.isArray(t)){var r;false?undefined:void 0;(r=u.routes).push.apply(r,t)}else if(t){false?undefined:void 0;u.routes.push(t)}i(null,u)}}));return}}if(r!=null||e.childRoutes){var l=function o(s,u){if(s){i(s)}else if(u){te(u,t,(function(t,r){if(t){i(t)}else if(r){r.routes.unshift(e);i(null,r)}else{i()}}),r,n,a)}else{i()}};var c=J(e,t,n,a,l);if(c){l.apply(undefined,c)}}else{i()}}function te(e,t,r,n){var a=arguments.length>4&&arguments[4]!==undefined?arguments[4]:[];var i=arguments.length>5&&arguments[5]!==undefined?arguments[5]:[];if(n===undefined){if(t.pathname.charAt(0)!=="/"){t=Q({},t,{pathname:"/"+t.pathname})}n=t.pathname}S(e.length,(function(r,o,s){ee(e[r],t,n,a,i,(function(e,t){if(e||t){s(e,t)}else{o()}}))}),r)}var re=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 ne(e){for(var t in e){if(Object.prototype.hasOwnProperty.call(e,t))return true}return false}function ae(e,t){var r={};var n=L(),a=n.runEnterHooks,i=n.runChangeHooks,o=n.runLeaveHooks;function s(t,n){t=e.createLocation(t);return R(t,n,r.location,r.routes,r.params)}var u=void 0;function l(e,r){if(u&&u.location===e){c(u,r)}else{te(t,e,(function(t,n){if(t){r(t)}else if(n){c(re({},n,{location:e}),r)}else{r()}}))}}function c(e,t){var n=M(r,e),s=n.leaveRoutes,u=n.changeRoutes,l=n.enterRoutes;o(s,r);s.filter((function(e){return l.indexOf(e)===-1})).forEach(b);i(u,r,e,(function(t,r){if(t||r)return f(t,r);a(l,e,c)}));function c(n,a){if(n||a)return f(n,a);H(e,(function(n,a){if(n){t(n)}else{t(null,null,r=re({},e,{components:a}))}}))}function f(e,r){if(e)t(e);else t(null,r)}}var f=1;function d(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;return e.__id__||t&&(e.__id__=f++)}var p=Object.create(null);function h(e){return e.map((function(e){return p[d(e)]})).filter((function(e){return e}))}function v(e,n){te(t,e,(function(t,a){if(a==null){n();return}u=re({},a,{location:e});var i=h(M(r,u).leaveRoutes);var o=void 0;for(var s=0,l=i.length;o==null&&s<l;++s){o=i[s](e)}n(o)}))}function m(){if(r.routes){var e=h(r.routes);var t=void 0;for(var n=0,a=e.length;typeof t!=="string"&&n<a;++n){t=e[n]()}return t}}var y=void 0,g=void 0;function b(e){var t=d(e);if(!t){return}delete p[t];if(!ne(p)){if(y){y();y=null}if(g){g();g=null}}}function A(t,r){var n=!ne(p);var a=d(t,true);p[a]=r;if(n){y=e.listenBefore(v);if(e.listenBeforeUnload)g=e.listenBeforeUnload(m)}return function(){b(t)}}function _(t){function n(n){if(r.location===n){t(null,r)}else{l(n,(function(r,n,a){if(r){t(r)}else if(n){e.replace(n)}else if(a){t(null,a)}else{false?undefined:void 0}}))}}var a=e.listen(n);if(r.location){t(null,r)}else{n(e.getCurrentLocation())}return a}return{isActive:s,match:l,listenBeforeLeavingRoute:A,listen:_}}function ie(e,t,r){if(e[t])return new Error("<"+r+'> should not have a "'+t+'" prop')}var oe=Object(l["shape"])({listen:l["func"].isRequired,push:l["func"].isRequired,replace:l["func"].isRequired,go:l["func"].isRequired,goBack:l["func"].isRequired,goForward:l["func"].isRequired});var se=l["elementType"];var ue=Object(l["oneOfType"])([se,l["object"]]);var le=Object(l["oneOfType"])([l["object"],l["element"]]);var ce=Object(l["oneOfType"])([le,Object(l["arrayOf"])(le)]);var fe=r(93);function de(e,t){var r={};if(!e.path)return r;_(e.path).forEach((function(e){if(Object.prototype.hasOwnProperty.call(t,e)){r[e]=t[e]}}));return r}var pe=de;var he=c.a.shape({subscribe:c.a.func.isRequired,eventIndex:c.a.number.isRequired});function ve(e){return"@@contextSubscriber/"+e}var me=typeof o.a.forwardRef!=="undefined";function ye(e){var t,r;var n=ve(e);var a=n+"/listeners";var i=n+"/eventIndex";var o=n+"/subscribe";var s=(r={childContextTypes:(t={},t[n]=he.isRequired,t),getChildContext:function e(){var t;return t={},t[n]={eventIndex:this[i],subscribe:this[o]},t},componentWillMount:function e(){this[a]=[];this[i]=0},componentWillReceiveProps:function e(){this[i]++},componentDidUpdate:function e(){var t=this;this[a].forEach((function(e){return e(t[i])}))}},r[o]=function(e){var t=this;this[a].push(e);return function(){t[a]=t[a].filter((function(t){return t!==e}))}},r);if(me){s.UNSAFE_componentWillMount=s.componentWillMount;s.UNSAFE_componentWillReceiveProps=s.componentWillReceiveProps;delete s.componentWillMount;delete s.componentWillReceiveProps}return s}function ge(e){var t,r;var n=ve(e);var a=n+"/lastRenderedEventIndex";var i=n+"/handleContextUpdate";var o=n+"/unsubscribe";var s=(r={contextTypes:(t={},t[n]=he,t),getInitialState:function e(){var t;if(!this.context[n]){return{}}return t={},t[a]=this.context[n].eventIndex,t},componentDidMount:function e(){if(!this.context[n]){return}this[o]=this.context[n].subscribe(this[i])},componentWillReceiveProps:function e(){var t;if(!this.context[n]){return}this.setState((t={},t[a]=this.context[n].eventIndex,t))},componentWillUnmount:function e(){if(!this[o]){return}this[o]();this[o]=null}},r[i]=function(e){if(e!==this.state[a]){var t;this.setState((t={},t[a]=e,t))}},r);if(me){s.UNSAFE_componentWillReceiveProps=s.componentWillReceiveProps;delete s.componentWillReceiveProps}return s}var be=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 Ae=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var _e=u()({displayName:"RouterContext",mixins:[ye("router")],propTypes:{router:l["object"].isRequired,location:l["object"].isRequired,routes:l["array"].isRequired,params:l["object"].isRequired,components:l["array"].isRequired,createElement:l["func"].isRequired},getDefaultProps:function e(){return{createElement:o.a.createElement}},childContextTypes:{router:l["object"].isRequired},getChildContext:function e(){return{router:this.props.router}},createElement:function e(t,r){return t==null?null:this.props.createElement(t,r)},render:function e(){var t=this;var r=this.props,n=r.location,i=r.routes,s=r.params,u=r.components,l=r.router;var c=null;if(u){c=u.reduceRight((function(e,r,a){if(r==null)return e;var o=i[a];var u=pe(o,s);var c={location:n,params:s,route:o,router:l,routeParams:u,routes:i};if(q(e)){c.children=e}else if(e){for(var f in e){if(Object.prototype.hasOwnProperty.call(e,f))c[f]=e[f]}}if((typeof r==="undefined"?"undefined":Ae(r))==="object"&&!Object(fe["isValidElementType"])(r)){var d={};for(var p in r){if(Object.prototype.hasOwnProperty.call(r,p)){d[p]=t.createElement(r[p],be({key:p},c))}}return d}return t.createElement(r,c)}),c)}!(c===null||c===false||o.a.isValidElement(c))?false?undefined:a()(false):void 0;return c}});var we=_e;var Ee=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 xe(e,t,r){var n=Ee({},e,{setRouteLeaveHook:t.listenBeforeLeavingRoute,isActive:t.isActive});return ke(n,r)}function ke(e,t){var r=t.location,n=t.params,a=t.routes;e.location=r;e.params=n;e.routes=a;return e}var Me=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 Se(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 Oe={history:l["object"],children:ce,routes:ce,render:l["func"],createElement:l["func"],onError:l["func"],onUpdate:l["func"],matchContext:l["object"]};var De=typeof o.a.forwardRef!=="undefined";var Te=u()({displayName:"Router",propTypes:Oe,getDefaultProps:function e(){return{render:function e(t){return o.a.createElement(we,t)}}},getInitialState:function e(){return{location:null,routes:null,params:null,components:null}},handleError:function e(t){if(this.props.onError){this.props.onError.call(this,t)}else{throw t}},createRouterObject:function e(t){var r=this.props.matchContext;if(r){return r.router}var n=this.props.history;return xe(n,this.transitionManager,t)},createTransitionManager:function e(){var t=this.props.matchContext;if(t){return t.transitionManager}var r=this.props.history;var n=this.props,i=n.routes,o=n.children;!r.getCurrentLocation?false?undefined:a()(false):void 0;return ae(r,G(i||o))},componentWillMount:function e(){var t=this;this.transitionManager=this.createTransitionManager();this.router=this.createRouterObject(this.state);this._unlisten=this.transitionManager.listen((function(e,r){if(e){t.handleError(e)}else{ke(t.router,r);t.setState(r,t.props.onUpdate)}}))},componentWillReceiveProps:function e(t){false?undefined:void 0;false?undefined:void 0},componentWillUnmount:function e(){if(this._unlisten)this._unlisten()},render:function e(){var t=this.state,r=t.location,n=t.routes,a=t.params,i=t.components;var o=this.props,s=o.createElement,e=o.render,u=Se(o,["createElement","render"]);if(r==null)return null;Object.keys(Oe).forEach((function(e){return delete u[e]}));return e(Me({},u,{router:this.router,location:r,routes:n,params:a,components:i,createElement:s}))}});if(De){Te.prototype.UNSAFE_componentWillReceiveProps=Te.prototype.componentWillReceiveProps;Te.prototype.UNSAFE_componentWillMount=Te.prototype.componentWillMount;delete Te.prototype.componentWillReceiveProps;delete Te.prototype.componentWillMount}var Le=Te;var Ce=Object(l["shape"])({push:l["func"].isRequired,replace:l["func"].isRequired,go:l["func"].isRequired,goBack:l["func"].isRequired,goForward:l["func"].isRequired,setRouteLeaveHook:l["func"].isRequired,isActive:l["func"].isRequired});var je=Object(l["shape"])({pathname:l["string"].isRequired,search:l["string"].isRequired,state:l["object"],action:l["string"].isRequired,key:l["string"]});var Ne=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 Ie(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 Pe(e){return e.button===0}function Re(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Fe(e){for(var t in e){if(Object.prototype.hasOwnProperty.call(e,t))return false}return true}function Ye(e,t){return typeof e==="function"?e(t.location):e}var Be=u()({displayName:"Link",mixins:[ge("router")],contextTypes:{router:Ce},propTypes:{to:Object(l["oneOfType"])([l["string"],l["object"],l["func"]]),activeStyle:l["object"],activeClassName:l["string"],onlyActiveOnIndex:l["bool"].isRequired,onClick:l["func"],target:l["string"],innerRef:Object(l["oneOfType"])([l["string"],l["func"],Object(l["shape"])({current:l["elementType"]})])},getDefaultProps:function e(){return{onlyActiveOnIndex:false,style:{}}},handleClick:function e(t){if(this.props.onClick)this.props.onClick(t);if(t.defaultPrevented)return;var r=this.context.router;!r?false?undefined:a()(false):void 0;if(Re(t)||!Pe(t))return;if(this.props.target)return;t.preventDefault();r.push(Ye(this.props.to,r))},render:function e(){var t=this.props,r=t.to,n=t.activeClassName,a=t.activeStyle,i=t.onlyActiveOnIndex,s=t.innerRef,u=Ie(t,["to","activeClassName","activeStyle","onlyActiveOnIndex","innerRef"]);var l=this.context.router;if(l){if(!r){return o.a.createElement("a",Ne({},u,{ref:s}))}var c=Ye(r,l);u.href=l.createHref(c);if(n||a!=null&&!Fe(a)){if(l.isActive(c,i)){if(n){if(u.className){u.className+=" "+n}else{u.className=n}}if(a)u.style=Ne({},u.style,a)}}}return o.a.createElement("a",Ne({},u,{onClick:this.handleClick,ref:s}))}});var He=Be;var ze=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 Ue=u()({displayName:"IndexLink",render:function e(){return o.a.createElement(He,ze({},this.props,{onlyActiveOnIndex:true}))}});var qe=Ue;var Ve=r(119);var We=r.n(Ve);var Ke=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 Ge(e){return e.displayName||e.name||"Component"}function Qe(e,t){var r=t&&t.withRef;var n=u()({displayName:"WithRouter",mixins:[ge("router")],contextTypes:{router:Ce},propTypes:{router:Ce},getWrappedInstance:function e(){!r?false?undefined:a()(false):void 0;return this.wrappedInstance},render:function t(){var n=this;var a=this.props.router||this.context.router;if(!a){return o.a.createElement(e,this.props)}var i=a.params,s=a.location,u=a.routes;var l=Ke({},this.props,{router:a,params:i,location:s,routes:u});if(r){l.ref=function(e){n.wrappedInstance=e}}return o.a.createElement(e,l)}});n.displayName="withRouter("+Ge(e)+")";n.WrappedComponent=e;return We()(n,e)}var Je=u()({displayName:"Redirect",statics:{createRouteFromReactElement:function e(t){var r=W(t);if(r.from)r.path=r.from;r.onEnter=function(e,t){var n=e.location,a=e.params;var i=void 0;if(r.to.charAt(0)==="/"){i=E(r.to,a)}else if(!r.to){i=n.pathname}else{var o=e.routes.indexOf(r);var s=Je.getRoutePattern(e.routes,o-1);var u=s.replace(/\/*$/,"/")+r.to;i=E(u,a)}t({pathname:i,query:r.query||n.query,state:r.state||n.state})};return r},getRoutePattern:function e(t,r){var n="";for(var a=r;a>=0;a--){var i=t[a];var o=i.path||"";n=o.replace(/\/*$/,"/")+n;if(o.indexOf("/")===0)break}return"/"+n}},propTypes:{path:l["string"],from:l["string"],to:l["string"].isRequired,query:l["object"],state:l["object"],onEnter:ie,children:ie},render:function e(){true?false?undefined:a()(false):undefined}});var Ze=Je;var Xe=u()({displayName:"IndexRedirect",statics:{createRouteFromReactElement:function e(t,r){if(r){r.indexRoute=Ze.createRouteFromReactElement(t)}else{false?undefined:void 0}}},propTypes:{to:l["string"].isRequired,query:l["object"],state:l["object"],onEnter:ie,children:ie},render:function e(){true?false?undefined:a()(false):undefined}});var $e=Xe;var et=u()({displayName:"IndexRoute",statics:{createRouteFromReactElement:function e(t,r){if(r){r.indexRoute=W(t)}else{false?undefined:void 0}}},propTypes:{path:ie,component:se,components:ue,getComponent:l["func"],getComponents:l["func"]},render:function e(){true?false?undefined:a()(false):undefined}});var tt=et;var rt=u()({displayName:"Route",statics:{createRouteFromReactElement:W},propTypes:{path:l["string"],component:se,components:ue,getComponent:l["func"],getComponents:l["func"]},render:function e(){true?false?undefined:a()(false):undefined}});var nt=rt;var at=r(164);var it=r(215);var ot=r.n(it);var st=r(216);var ut=r.n(st);var lt=r(668);var ct=r.n(lt);function ft(e){var t=ct()(e);var r=function e(){return t};var n=ot()(ut()(r))(e);return n}var dt=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 pt(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 ht(e,t){var r=e.history,n=e.routes,i=e.location,o=pt(e,["history","routes","location"]);!(r||i)?false?undefined:a()(false):void 0;r=r?r:ft(o);var s=ae(r,G(n));if(i){i=r.createLocation(i)}else{i=r.getCurrentLocation()}s.match(i,(function(e,n,a){var i=void 0;if(a){var o=xe(r,s,a);i=dt({},a,{router:o,matchContext:{transitionManager:s,router:o}})}t(e,n&&r.createLocation(n,at["REPLACE"]),i)}))}var vt=ht;function mt(e){return function(t){var r=ot()(ut()(e))(t);return r}}var yt=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 gt=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}if(false){}var n=t.map((function(e){return e.renderRouterContext})).filter(Boolean);var a=t.map((function(e){return e.renderRouteComponent})).filter(Boolean);var s=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:i["createElement"];return function(e,r){return a.reduceRight((function(e,t){return t(e,r)}),t(e,r))}};return function(e){return n.reduceRight((function(t,r){return r(t,e)}),o.a.createElement(we,yt({},e,{createElement:s(e.createElement)})))}};var bt=r(669);var At=r.n(bt);var _t=!!(typeof window!=="undefined"&&window.document&&window.document.createElement);function wt(e){var t=void 0;if(_t)t=mt(e)();return t}var Et=wt(At.a);var xt=r(670);var kt=r.n(xt);var Mt=wt(kt.a)},function(e,t,r){"use strict";t.__esModule=true;t.default=void 0;var n=!!(typeof window!=="undefined"&&window.document&&window.document.createElement);t.default=n;e.exports=t["default"]},function(e,t,r){"use strict";if(true){e.exports=r(948)}else{}},function(e,t,r){"use strict";(function(e,n){var a=r(671);var i;if(typeof self!=="undefined"){i=self}else if(typeof window!=="undefined"){i=window}else if(typeof e!=="undefined"){i=e}else if(true){i=n}else{}var o=Object(a["a"])(i);t["a"]=o}).call(this,r(27),r(169)(e))},function(e,t,r){"use strict";t.__esModule=true;t.createPath=t.parsePath=t.getQueryStringValueFromPath=t.stripQueryStringValueFromPath=t.addQueryStringValueToPath=undefined;var n=r(23);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}var o=t.addQueryStringValueToPath=function e(t,r,n){var a=c(t),i=a.pathname,o=a.search,s=a.hash;return f({pathname:i,search:o+(o.indexOf("?")===-1?"?":"&")+r+"="+n,hash:s})};var s=t.stripQueryStringValueFromPath=function e(t,r){var n=c(t),a=n.pathname,i=n.search,o=n.hash;return f({pathname:a,search:i.replace(new RegExp("([?&])"+r+"=[a-zA-Z0-9]+(&?)"),(function(e,t,r){return t==="?"?t:r})),hash:o})};var u=t.getQueryStringValueFromPath=function e(t,r){var n=c(t),a=n.search;var i=a.match(new RegExp("[?&]"+r+"=([a-zA-Z0-9]+)"));return i&&i[1]};var l=function e(t){var r=t.match(/^(https?:)?\/\/[^\/]*/);return r==null?t:t.substring(r[0].length)};var c=t.parsePath=function e(t){var r=l(t);var n="";var a="";false?undefined:void 0;var i=r.indexOf("#");if(i!==-1){a=r.substring(i);r=r.substring(0,i)}var o=r.indexOf("?");if(o!==-1){n=r.substring(o);r=r.substring(0,o)}if(r==="")r="/";return{pathname:r,search:n,hash:a}};var f=t.createPath=function e(t){if(t==null||typeof t==="string")return t;var r=t.basename,n=t.pathname,a=t.search,i=t.hash;var o=(r||"")+n;if(a&&a!=="?")o+=a;if(i)o+=i;return o}},function(e,t,r){"use strict";e.exports=function(e){if(typeof window!=="undefined"&&window.__DRAFT_GKX){return!!window.__DRAFT_GKX[e]}return false}},function(e,t,r){var n=r(127);var a=r(572);var i=r(269);var o=Object.defineProperty;t.f=r(74)?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(132),a=r(1017),i=r(1018);var o="[object Null]",s="[object Undefined]";var u=n?n.toStringTag:undefined;function l(e){if(e==null){return e===undefined?s:o}return u&&u in Object(e)?a(e):i(e)}e.exports=l},function(e,t,r){e.exports={default:r(1121),__esModule:true}},function(e,t,r){"use strict";t.__esModule=true;t.default=function(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}},function(e,t,r){"use strict";t.__esModule=true;var n=r(624);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=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;(0,a.default)(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}()},function(e,t,r){"use strict";t.__esModule=true;var n=r(304);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&((typeof t==="undefined"?"undefined":(0,a.default)(t))==="object"||typeof t==="function")?t:e}},function(e,t,r){"use strict";t.__esModule=true;var n=r(1138);var a=l(n);var i=r(1139);var o=l(i);var s=r(304);var u=l(s);function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+(typeof t==="undefined"?"undefined":(0,u.default)(t)))}e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)a.default?(0,a.default)(e,t):e.__proto__=t}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return true}}},function(e,t,r){"use strict";var n=r(20);t.__esModule=true;t.default=void 0;var a=n(r(79));var i=function(){return a.default?function(e,t){if(e.contains){return e.contains(t)}else if(e.compareDocumentPosition){return e===t||!!(e.compareDocumentPosition(t)&16)}else{return o(e,t)}}:o}();t.default=i;function o(e,t){if(t)do{if(t===e)return true}while(t=t.parentNode);return false}e.exports=t["default"]},function(e,t,r){"use strict";if(true){e.exports=r(704)}else{}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=o;var n=r(140);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}function n(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++){r[n]=arguments[n]}var a=null;t.forEach((function(e){if(a!=null){return}var t=e.apply(undefined,r);if(t!=null){a=t}}));return a}return(0,a.default)(n)}e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=n;function n(e){return function t(r,n,a,i,o){var s=a||"<<anonymous>>";var u=o||n;if(r[n]==null){return new Error("The "+i+" `"+u+"` is required to make "+("`"+s+"` accessible for users of assistive ")+"technologies such as screen readers.")}for(var l=arguments.length,c=Array(l>5?l-5:0),f=5;f<l;f++){c[f-5]=arguments[f]}return e.apply(undefined,[r,n,a,i,o].concat(c))}}e.exports=t["default"]},function(e,t,r){var n=r(85),a=r(60);var i="[object Number]";function o(e){return typeof e=="number"||a(e)&&n(e)==i}e.exports=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(){}e.prototype.prefixes=function(t){var r={};var n=Object.keys(t["$"]||{}).map((function(e){return t["$"][e]}));e.URIS.forEach((function(e){var t=n.find((function(t){return t.value===e}));var a="";if(t){a=t.local;if(a.length>0){a+=":"}}r[e]=a}));return r};e.ATOM_URI="http://www.w3.org/2005/Atom";e.OPDS_URI="http://opds-spec.org/2010/catalog";e.DC_URI="http://purl.org/dc/terms/";e.SCHEMA_URI="http://schema.org/";e.THR_URI="http://purl.org/syndication/thread/1.0";e.OPEN_SEARCH_URI="http://a9.com/-/spec/opensearch/1.1/";e.FH_URI="http://purl.org/syndication/history/1.0";e.OPF_URI="http://www.idpf.org/2007/opf";e.URIS=[e.ATOM_URI,e.OPDS_URI,e.DC_URI,e.SCHEMA_URI,e.THR_URI,e.OPEN_SEARCH_URI,e.FH_URI,e.OPF_URI];return e}();t.default=n},function(e,t,r){"use strict";var n=r(172);var a=Object.keys||function(e){var t=[];for(var r in e){t.push(r)}return t};e.exports=f;var i=Object.create(r(148));i.inherits=r(123);var o=r(379);var s=r(253);i.inherits(f,o);{var u=a(s.prototype);for(var l=0;l<u.length;l++){var c=u[l];if(!f.prototype[c])f.prototype[c]=s.prototype[c]}}function f(e){if(!(this instanceof f))return new f(e);o.call(this,e);s.call(this,e);if(e&&e.readable===false)this.readable=false;if(e&&e.writable===false)this.writable=false;this.allowHalfOpen=true;if(e&&e.allowHalfOpen===false)this.allowHalfOpen=false;this.once("end",d)}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function d(){if(this.allowHalfOpen||this._writableState.ended)return;n.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(f.prototype,"destroyed",{get:function(){if(this._readableState===undefined||this._writableState===undefined){return false}return this._readableState.destroyed&&this._writableState.destroyed},set:function(e){if(this._readableState===undefined||this._writableState===undefined){return}this._readableState.destroyed=e;this._writableState.destroyed=e}});f.prototype._destroy=function(e,t){this.push(null);this.end();n.nextTick(t,e)}},function(e,t,r){!function(t,n){true?e.exports=n(r(1)):undefined}(this,(function(e){return function(e){function t(n){if(r[n])return r[n].exports;var a=r[n]={exports:{},id:n,loaded:!1};return e[n].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(55)},function(e,t,r){(function(t){if("production"!==t.env.NODE_ENV){var n="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,a=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},i=!0;e.exports=r(58)(a,i)}else e.exports=r(57)()}).call(t,r(3))},function(t,r){t.exports=e},function(e,t){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function a(e){if(c===setTimeout)return setTimeout(e,0);if((c===r||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===n||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function o(){v&&p&&(v=!1,p.length?h=p.concat(h):m=-1,h.length&&s())}function s(){if(!v){var e=a(o);v=!0;for(var t=h.length;t;){for(p=h,h=[];++m<t;)p&&p[m].run();m=-1,t=h.length}p=null,v=!1,i(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}var c,f,d=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:r}catch(e){c=r}try{f="function"==typeof clearTimeout?clearTimeout:n}catch(e){f=n}}();var p,h=[],v=!1,m=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new u(e,t)),1!==h.length||v||a(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t){"use strict";function r(e){return function(){return e}}var n=function(){};n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,r){(function(t){"use strict";function r(e,t,r,a,i,o,s,u){if(n(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,a,i,o,s,u],f=0;l=new Error(t.replace(/%s/g,(function(){return c[f++]}))),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=r}).call(t,r(3))},function(e,t){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=r},function(e,t,r){(function(t){"use strict";var n=r(4),a=n;if("production"!==t.env.NODE_ENV){var i=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,i="Warning: "+e.replace(/%s/g,(function(){return r[a++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};a=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var r=arguments.length,n=Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];i.apply(void 0,[t].concat(n))}}}e.exports=a}).call(t,r(3))},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width;return i["default"].createElement("svg",{"aria-hidden":t,"aria-labelledby":a,className:r+" svgIcon",height:n,preserveAspectRatio:o,viewBox:u,width:l},i["default"].createElement("title",{id:a},s),i["default"].createElement("g",null,i["default"].createElement("path",{d:"M47.1181,31.16626v9.81838a7.69657,7.69657,0,0,1-7.69659,7.69659H14.65722a7.69657,7.69657,0,0,1-7.69659-7.69659V16.22035a7.69657,7.69657,0,0,1,7.69659-7.69659h24.7643A7.68562,7.68562,0,0,1,46.04723,12.318v-.029l4.98249-4.98249A14.61787,14.61787,0,0,0,39.42151,1.56313H14.65722A14.67381,14.67381,0,0,0,0,16.22035v24.7643A14.67381,14.67381,0,0,0,14.65722,55.64186h24.7643A14.67381,14.67381,0,0,0,54.07873,40.98464V24.20557Z"}),i["default"].createElement("path",{d:"M66.88559,1.11424q-.04628-.04628-.09412-.09092a3.8044,3.8044,0,0,0-5.28616.091L52.99074,9.62894,47.1181,15.50158,32.5635,30.05624,17.90785,15.40066a3.80454,3.80454,0,0,0-5.39511,5.3657l.01458.01458L32.5635,40.81739,47.1181,26.26266,54.07873,19.302,66.88565,6.49491A3.80469,3.80469,0,0,0,66.88559,1.11424Z"})))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,iconId:s["default"].string.isRequired,preserveAspectRatio:s["default"].string,title:s["default"].string,viewBox:s["default"].string,width:s["default"].string},u.defaultProps={ariaHidden:!0,className:"apply-icon",height:"68",preserveAspectRatio:"xMidYMid meet",title:"apply",viewBox:"0 0 68 55",width:"55"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M16,4.0625A11.9375,11.9375,0,1,0,27.9375,16,11.9375,11.9375,0,0,0,16,4.0625ZM16,19.75A3.75,3.75,0,1,1,19.75,16,3.75,3.75,0,0,1,16,19.75Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"audio-disc-icon",title:"NYPL Audio Disc SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s},i["default"].createElement("title",null,a),i["default"].createElement("g",null,i["default"].createElement("path",{d:"M7.50842,19.29355A0.94557,0.94557,0,0,1,6.56284,18.348V15.376a9.47232,9.47232,0,0,1,18.94464,0v2.91654a0.94558,0.94558,0,0,1-1.89117,0V15.376a7.58115,7.58115,0,0,0-15.16231,0v2.972A0.94557,0.94557,0,0,1,7.50842,19.29355Z"}),i["default"].createElement("g",null,i["default"].createElement("path",{d:"M21.82651,23.66863a0.94557,0.94557,0,0,1-.94558-0.94558V16.22111a0.94558,0.94558,0,0,1,1.89117,0V22.723A0.94557,0.94557,0,0,1,21.82651,23.66863Z"}),i["default"].createElement("path",{d:"M10.24381,23.75a0.94557,0.94557,0,0,1-.94558-0.94558V16.22111a0.94558,0.94558,0,1,1,1.89117,0v6.58331A0.94557,0.94557,0,0,1,10.24381,23.75Z"}))))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"audio-headphone-icon",title:"NYPL Audio/Headphone SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden,u=e.preserveAspectRatio;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s,preserveAspectRatio:u},i["default"].createElement("title",null,a),i["default"].createElement("g",null,i["default"].createElement("path",{d:"M26.09478,8.31652A13.1617,13.1617,0,0,0,15.97189,8.1603a13.079,13.079,0,0,0-10.09165.18746,0.88881,0.88881,0,0,0-.46865.84357V21.81371a0.89164,0.89164,0,0,0,.37492.81233,0.93487,0.93487,0,0,0,.90606.06249,11.44018,11.44018,0,0,1,8.9044,0c0.03124,0,.03124,0,0.03124.03124a0.06237,0.06237,0,0,1,.06249.03124,0.70873,0.70873,0,0,0,.125.03124h0.18746a0.5317,0.5317,0,0,0,.2187-0.03124,0.06237,0.06237,0,0,0,.06249-0.03124,0.70873,0.70873,0,0,1,.125-0.03124,11.464,11.464,0,0,1,8.9044,0,0.86486,0.86486,0,0,0,.40617.09373A1.05326,1.05326,0,0,0,26.251,22.626a0.94244,0.94244,0,0,0,.43741-0.81233V9.19133A1.04849,1.04849,0,0,0,26.09478,8.31652ZM24.78256,20.439a13.30172,13.30172,0,0,0-8.74818.34368A13.26349,13.26349,0,0,0,7.2862,20.439V9.8162a11.30538,11.30538,0,0,1,8.342.2187c0.03124,0,.03124,0,0.03124.03124a0.06237,0.06237,0,0,1,.06249.03124,0.70872,0.70872,0,0,0,.125.03124h0.34368a0.11478,0.11478,0,0,0,.09373-0.03124c0.03125,0,.06249-0.03124.09373-0.03124,0,0,.06249,0,0.06249-0.03124a11.51979,11.51979,0,0,1,8.37326-.2187V20.439H24.78256Z"}),i["default"].createElement("path",{d:"M16.00313,17.81454a0.76028,0.76028,0,0,1-.74984-0.74984V13.378a0.74984,0.74984,0,0,1,1.49969,0V17.0647A0.74014,0.74014,0,0,1,16.00313,17.81454Z"})))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,preserveAspectRatio:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"book-icon",title:"NYPL Book SVG Icon",height:"24px",width:"24px",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.style,u=e.ariaHidden,l=e.preserveAspectRatio,c=e.iconId,f=e.svgRole;return i["default"].createElement("svg",{viewBox:t,height:r,width:n,className:o+" svgIcon",style:s,"aria-hidden":u,preserveAspectRatio:l,"aria-labelledby":c,role:f},i["default"].createElement("title",{id:c},a),i["default"].createElement("path",{d:"M13.329 9.245a1.466 1.466 0 0 0 .766-.217l9.536-5.834 9.536 5.834a1.47 1.47 0 0 0 1.535-2.509L24.398.216a1.473 1.473 0 0 0-1.535 0L12.56 6.519a1.47 1.47 0 0 0 .769 2.726zM45.811 36.982h-1.564V20.08h1.423a1.51 1.51 0 0 0 0-3.018h-5.817a1.51 1.51 0 0 0 0 3.018h1.376v16.902H6.218V20.08h1.8a1.51 1.51 0 0 0 0-3.018H2.202a1.51 1.51 0 0 0 0 3.018h.997v16.902H1.47a1.51 1.51 0 0 0 0 3.018h44.341a1.51 1.51 0 0 0 0-3.018z"}),i["default"].createElement("path",{d:"M21.007 35.128a1.504 1.504 0 0 0 1.509-1.47V22.512a5.435 5.435 0 1 0-10.866 0v11.146a1.51 1.51 0 0 0 3.019 0V22.512a2.424 2.424 0 1 1 4.829 0v11.146a1.504 1.504 0 0 0 1.509 1.47zM34.287 35.128a1.504 1.504 0 0 0 1.509-1.47V22.512a5.435 5.435 0 1 0-10.866 0v11.146a1.51 1.51 0 0 0 3.019 0V22.512a2.424 2.424 0 1 1 4.829 0v11.146a1.504 1.504 0 0 0 1.509 1.47zM2.06 14.647h43.613a1.51 1.51 0 0 0 0-3.018H2.06a1.51 1.51 0 0 0 0 3.018z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool,preserveAspectRatio:s["default"].string,svgRole:s["default"].string,iconId:s["default"].string},u.defaultProps={ariaHidden:!0,className:"bldgIcon",height:"40",preserveAspectRatio:"xMidYMid meet",svgRole:"img",title:"NYPL Building Icon",viewBox:"0 0 47.282 40",width:"47.282"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){return i["default"].createElement("path",{d:"M12,4a8,8,0,1,1-8,8,8.00906,8.00906,0,0,1,8-8m0-4A12,12,0,1,0,24,12,12,12,0,0,0,12,0h0Z",fill:e})},l=function(e){return i["default"].createElement("path",{d:"M12,0A12,12,0,1,0,24,12,12,12,0,0,0,12,0h0Z",fill:e})},c=function(e){var t=e.className,r=e.title,n=e.type,a=e.height,o=e.width,s=e.viewBox,c=e.fill,f=e.ariaHidden;return i["default"].createElement("svg",{className:t+" svgIcon",width:o,height:a,viewBox:s,"aria-hidden":f},i["default"].createElement("title",null,r),"solid"!==n?u(c):l(c))};c.propTypes={className:s["default"].string,title:s["default"].string,type:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool},c.defaultProps={className:"nyplCarouselCircle-icon",title:"NYPL Carousel Circle SVG Icon",ref:"nyplCarouselCircle",type:"",height:"24px",width:"24px",viewBox:"0 0 24 24",fill:"#000"},t["default"]=c},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M25.51266,9.42987a1.40287,1.40287,0,0,0-1.94927.03357L12.891,20.13586,7.48668,14.73156a1.40294,1.40294,0,1,0-1.9841,1.984L12.891,24.10406,25.5474,11.44754A1.403,1.403,0,0,0,25.51266,9.42987Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"check-solo-icon",title:"NYPL Check Solo SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.fill,u=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon",fill:s,"aria-hidden":u},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M16,3A13,13,0,1,1,3,16,13.0147,13.0147,0,0,1,16,3m0-3A16,16,0,1,0,32,16,16,16,0,0,0,16,0h0Z"}),i["default"].createElement("path",{d:"M24,14H8a2.0025,2.0025,0,0,0,0,4H24A2.0025,2.0025,0,0,0,24,14Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"circle-dash-icon",title:"NYPL Circle Dash SVG Icon",width:"24",height:"24",viewBox:"0 0 32 32",fill:"#000"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.length,o=e.stroke,s=e.strokeWidth,u=e.title,l=e.viewBox,c=e.width;return i["default"].createElement("svg",{"aria-hidden":t,className:r+" svgIcon",height:n,viewBox:l,width:c},i["default"].createElement("title",null,u),i["default"].createElement("line",{x1:"0",y1:"0",x2:a,y2:"0",stroke:o,strokeWidth:s}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,length:s["default"].string,stroke:s["default"].string,strokeWidth:s["default"].string,title:s["default"].string,viewBox:s["default"].string,width:s["default"].string},u.defaultProps={ariaHidden:!0,className:"divideLine-icon",height:"2",length:"84",stroke:"#000",strokeWidth:"2",title:"NYPL Divide Line SVG Icon",viewBox:"0 0 84 2",width:"84"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.className,r=e.title,n=e.height,a=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden;return i["default"].createElement("svg",{width:a,height:n,viewBox:o,className:t+" svgIcon",fill:s,"aria-hidden":u},i["default"].createElement("title",null,r),i["default"].createElement("circle",{cx:"16",cy:"16",r:"1.9029"}),i["default"].createElement("circle",{cx:"24",cy:"16",r:"1.9029"}),i["default"].createElement("circle",{cx:"8",cy:"16",r:"1.9029"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"dotsIcon",title:"NYPL Dots SVG Icon",height:"24px",width:"24px",viewBox:"0 0 32 32",fill:"#000"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.iconId,o=e.title,s=e.viewBox,u=e.width;return i["default"].createElement("svg",{"aria-hidden":t,"aria-labelledby":a,className:r+" svgIcon",height:n,viewBox:s,width:u},i["default"].createElement("title",{id:a},o),i["default"].createElement("path",{d:"M23.26,13.1819a1.2736,1.2736,0,0,0-1.7332,0L17,17.6253V6.1041a1.0119,1.0119,0,1,0-2,0V17.6253l-4.5268-4.4434a1.2212,1.2212,0,0,0-1.6916,0,1.17,1.17,0,0,0-.0208,1.65L15.1786,21.26l0,0.0083a1.1694,1.1694,0,0,0,1.6488,0l0.0048-.0083L23.26,14.8318A1.17,1.17,0,0,0,23.26,13.1819Z"}),i["default"].createElement("rect",{x:"14.8333",y:"16.3602",width:"2.3333",height:"16.6711",rx:"1.1667",ry:"1.1667",transform:"translate(-8.6957 40.6957) rotate(-90)"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,iconId:s["default"].string.isRequired,title:s["default"].string,viewBox:s["default"].string,width:s["default"].string},u.defaultProps={ariaHidden:!0,className:"download-icon",height:"32",title:"Download",viewBox:"0 0 32 32",width:"32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.fill,u=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":u,fill:s},i["default"].createElement("title",null,a),i["default"].createElement("circle",{cx:"16",cy:"16",r:"3.75",fill:"none"}),i["default"].createElement("path",{d:"M16,10.625A5.375,5.375,0,1,0,21.375,16,5.381,5.381,0,0,0,16,10.625Zm0,9.125A3.75,3.75,0,1,1,19.75,16,3.75,3.75,0,0,1,16,19.75Z"}),i["default"].createElement("path",{d:"M16,4.0625A11.9375,11.9375,0,1,0,27.9375,16,11.9375,11.9375,0,0,0,16,4.0625Zm0,19.65625A7.71875,7.71875,0,1,1,23.71875,16,7.72719,7.72719,0,0,1,16,23.71875Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"dvd-disc-icon",title:"NYPL DVD Disc SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M23.02352,5.00588H9.00588a2.38332,2.38332,0,0,0-2,2.00588V24.99412A2.45762,2.45762,0,0,0,9,27.00588H22.99412A2.22259,2.22259,0,0,0,24.98824,25V6.98843a1.97259,1.97259,0,0,0-1.6106-1.94478ZM23,23.99608H9V7.0002l14.02352-.01178Z"}),i["default"].createElement("path",{d:"M20.61338,9.99038h-9.186a0.456,0.456,0,0,1,0-.9121h9.12081a0.44532,0.44532,0,0,1,.456.456,0.43566,0.43566,0,0,1-.3909.456h0Z"}),i["default"].createElement("path",{d:"M20.642,13H11.456a0.50163,0.50163,0,1,1,0-1h9.12081a0.674,0.674,0,0,1,.6497.49219A0.74346,0.74346,0,0,1,20.642,13h0Z"}),i["default"].createElement("path",{d:"M20.65624,15.956h-9.186a0.456,0.456,0,1,1,0-.9121h9.12081a0.44532,0.44532,0,0,1,.456.456,0.43566,0.43566,0,0,1-.3909.456h0Z"}),i["default"].createElement("path",{d:"M20.55608,18.9121h-9.186a0.456,0.456,0,1,1,0-.9121h9.12081a0.44532,0.44532,0,0,1,.456.456,0.43566,0.43566,0,0,1-.3909.456h0Z"}),i["default"].createElement("path",{d:"M20.61338,21.98237h-9.186a0.456,0.456,0,0,1,0-.9121h9.12081a0.44532,0.44532,0,0,1,.456.456,0.43566,0.43566,0,0,1-.3909.456h0Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"eReader-icon",title:"NYPL eReader SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width;return i["default"].createElement("svg",{"aria-hidden":t,"aria-labelledby":a,className:r+" svgIcon",height:n,preserveAspectRatio:o,viewBox:u,width:l},i["default"].createElement("title",{id:a},s),i["default"].createElement("path",{d:"M46.052 36.91H1.948A1.938 1.938 0 0 1 0 34.981V1.927A1.937 1.937 0 0 1 1.948 0h44.104A1.938 1.938 0 0 1 48 1.927v33.055a1.938 1.938 0 0 1-1.948 1.927zM3.896 33.054h40.208V3.854H3.896z"}),i["default"].createElement("path",{d:"M24 25.007a1.915 1.915 0 0 1-1.176-.402l-11.93-9.251a1.925 1.925 0 0 1 2.352-3.049L24 20.644l10.754-8.339a1.925 1.925 0 0 1 2.352 3.049l-11.93 9.25a1.917 1.917 0 0 1-1.176.403z"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,iconId:s["default"].string.isRequired,preserveAspectRatio:s["default"].string,title:s["default"].string,viewBox:s["default"].string,width:s["default"].string},u.defaultProps={ariaHidden:!0,className:"envelope-icon",height:"48",preserveAspectRatio:"xMidYMid meet",title:"mail",viewBox:"0 0 48 36.909",width:"36.909"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.iconId,a=e.height,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width;return i["default"].createElement("svg",{"aria-hidden":t,"aria-labelledby":n,className:r+" svgIcon",height:a,preserveAspectRatio:o,title:s,viewBox:u,width:l},i["default"].createElement("title",{id:n},s),i["default"].createElement("path",{d:"M7.1267,13.68408v9.7265H0V35.30576H7.1267V67.94592H21.76584V35.30576H31.588s.9207-5.70326,1.36529-11.94H21.82116v-8.1318a3.45468,3.45468,0,0,1,3.17363-2.85086h7.9757V0H22.12679C6.76506,0,7.1267,11.90635,7.1267,13.68408Z"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,iconId:s["default"].string.isRequired,preserveAspectRatio:s["default"].string,title:s["default"].string,viewBox:s["default"].string,width:s["default"].string},u.defaultProps={ariaHidden:!0,className:"face-book-icon",height:"32",preserveAspectRatio:"xMidYMid meet",title:"Facebook",viewBox:"0 0 32 67",width:"67"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.title,o=e.viewBox,s=e.width;return i["default"].createElement("svg",{"aria-hidden":t,className:r+" svgIcon",height:n,viewBox:o,width:s},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M21.649 67.67a2.657 2.657 0 0 1-2.657-2.657V36.3L.706 16.584a2.657 2.657 0 1 1 3.902-3.608l19.697 21.242v30.795a2.657 2.657 0 0 1-2.656 2.656zM32.441 59.93a2.657 2.657 0 0 1-2.656-2.656V34.235l19.922-21.848a2.657 2.657 0 0 1 3.943 3.563L35.098 36.283v20.991a2.657 2.657 0 0 1-2.657 2.657zM29.36 10.54l7.325-7.325A1.884 1.884 0 0 0 34.02.552l-7.325 7.325L19.37.552a1.884 1.884 0 1 0-2.664 2.663l7.325 7.326-7.325 7.325a1.884 1.884 0 1 0 2.664 2.664l7.325-7.326 7.325 7.326a1.884 1.884 0 1 0 2.664-2.664z"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,title:s["default"].string,width:s["default"].string,viewBox:s["default"].string},u.defaultProps={ariaHidden:!0,className:"filter-cancel-icon",height:"67.669",title:"NYPL Cancel Filter SVG Icon",width:"54.333",viewBox:"0 0 54.333 67.669"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.fill,a=e.height,o=e.title,s=e.viewBox,u=e.width;return i["default"].createElement("svg",{"aria-hidden":t,className:r+" svgIcon",fill:n,height:a,viewBox:s,width:u},i["default"].createElement("title",null,o),i["default"].createElement("g",null,i["default"].createElement("circle",{cx:"13.0944",cy:"7.375",r:"1.3192"}),i["default"].createElement("circle",{cx:"19.6222",cy:"6.375",r:"1.3189"}),i["default"].createElement("circle",{cx:"15.9997",cy:"10.5242",r:"1.3193"}),i["default"].createElement("g",null,i["default"].createElement("path",{d:"M14.1785,27.562a0.95,0.95,0,0,1-.95-0.95v-10.27L6.6875,9.2893a0.95,0.95,0,0,1,1.3956-1.29l7.0455,7.598v11.015A0.95,0.95,0,0,1,14.1785,27.562Z"}),i["default"].createElement("path",{d:"M18.0387,24.794a0.95,0.95,0,0,1-.95-0.95V15.603l7.126-7.8149a0.95,0.95,0,0,1,1.41,1.2744l-6.636,7.2729v7.5083A0.95,0.95,0,0,1,18.0387,24.794Z"}))))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,fill:s["default"].string,height:s["default"].string,title:s["default"].string,width:s["default"].string,viewBox:s["default"].string},u.defaultProps={ariaHidden:!0,className:"filter-icon",fill:"#000",height:"32",title:"NYPL Filter SVG Icon",width:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden,u=e.preserveAspectRatio,l=e.iconId,c=e.svgRole;return i["default"].createElement("svg",{viewBox:t,height:r,width:n,className:o+" svgIcon","aria-hidden":s,preserveAspectRatio:u,"aria-labelledby":l,role:c},i["default"].createElement("title",{id:l},a),i["default"].createElement("path",{d:"M17.749 26.818L6.205 15.288 17.832 3.592a2.075 2.075 0 0 0 .01-2.901 2.278 2.278 0 0 0-3.243-.026L0 15.225 14.693 29.87a2.16 2.16 0 0 0 3.065-.016 2.16 2.16 0 0 0-.01-3.036z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool,preserveAspectRatio:s["default"].string,svgRole:s["default"].string,iconId:s["default"].string},u.defaultProps={ariaHidden:!0,className:"GenericWedgeIcon",title:"NYPL Wedge Down Icon",width:"30.5",height:"18.428",viewBox:"0 0 18.428 30.5",preserveAspectRatio:"xMidYMid meet",svgRole:"img"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s},i["default"].createElement("title",null,a),i["default"].createElement("rect",{x:"8",y:"8",width:"7",height:"7"}),i["default"].createElement("rect",{x:"17",y:"8",width:"7",height:"7"}),i["default"].createElement("rect",{x:"8",y:"17",width:"7",height:"7"}),i["default"].createElement("rect",{x:"17",y:"17",width:"7",height:"7"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"grid-icon",title:"NYPL Grid SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M7.132,6.0411H24.97514l0.16949,5.36219h-0.755a6.43678,6.43678,0,0,0-1.40988-3.28973q-0.85518-.76272-3.5979-0.76272H17.62525V23.499q0,1.824.57012,2.25992a5.26381,5.26381,0,0,0,2.49619.57525v0.58553H11.49263V26.3342a4.36809,4.36809,0,0,0,2.49619-.66,4.1201,4.1201,0,0,0,.49307-2.545V7.35083h-1.772a6.022,6.022,0,0,0-3.56709.755,5.57976,5.57976,0,0,0-1.42529,3.29744H6.9471Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"large-print-icon",title:"NYPL Large Print SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden,u=e.preserveAspectRatio,l=e.iconId,c=e.svgRole;return i["default"].createElement("svg",{viewBox:t,height:r,width:n,className:o+" svgIcon","aria-hidden":s,preserveAspectRatio:u,"aria-labelledby":l,role:c},i["default"].createElement("title",{id:l},a),i["default"].createElement("polygon",{points:"16.959 24.065 9.905 16.963 27.298 16.963 27.298 14.548 9.905 14.548 16.959 7.397 15.026 5.417 4.688 15.707 15.026 25.998 16.959 24.065"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool,preserveAspectRatio:s["default"].string,svgRole:s["default"].string,iconId:s["default"].string},u.defaultProps={ariaHidden:!0,className:"leftArrowIcon",title:"NYPL Left Arrow Icon",width:"32",height:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.fill,a=e.height,o=e.title,s=e.viewBox,u=e.width;return i["default"].createElement("svg",{"aria-hidden":t,className:r+" svgIcon",fill:n,height:a,viewBox:s,width:u},i["default"].createElement("title",null,o),i["default"].createElement("polygon",{points:"19.156 23.563 11.593 16 19.156 8.438 20.563 9.845 14.408 16 20.563 22.155 19.156 23.563"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,fill:s["default"].string,height:s["default"].string,title:s["default"].string,width:s["default"].string,viewBox:s["default"].string},u.defaultProps={ariaHidden:!0,className:"left-wedge-icon",fill:"#000",height:"32",title:"NYPL Left Wedge SVG Icon",width:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width;return i["default"].createElement("svg",{"aria-hidden":t,"aria-labelledby":a,className:r+" svgIcon",height:n,preserveAspectRatio:o,viewBox:u,width:l},i["default"].createElement("title",{id:a},s),i["default"].createElement("path",{d:"M61.554 46.28H6.824A6.832 6.832 0 0 1 0 39.453V6.824A6.833 6.833 0 0 1 6.825 0h54.729a6.832 6.832 0 0 1 6.823 6.825v32.63a6.832 6.832 0 0 1-6.823 6.824zM6.824 3.31A3.52 3.52 0 0 0 3.31 6.824v32.63a3.52 3.52 0 0 0 3.516 3.515h54.729a3.519 3.519 0 0 0 3.514-3.516V6.824a3.519 3.519 0 0 0-3.514-3.515z"}),i["default"].createElement("path",{d:"M56.943 14.56H42.59a1.707 1.707 0 1 1 0-3.413h14.353a1.707 1.707 0 0 1 0 3.413zM56.943 20.971H42.59a1.707 1.707 0 1 1 0-3.413h14.353a1.707 1.707 0 1 1 0 3.413zM56.943 27.382H42.59a1.707 1.707 0 1 1 0-3.414h14.353a1.707 1.707 0 1 1 0 3.414zM22.471 14.335c1.003 0 1.851 1.129 1.851 2.465s-.848 2.464-1.85 2.464-1.852-1.128-1.852-2.464.848-2.465 1.851-2.465m0-3.111c-2.597 0-4.703 2.496-4.703 5.576s2.106 5.576 4.703 5.576 4.703-2.497 4.703-5.576-2.106-5.576-4.703-5.576zM22.403 24.634a49.169 49.169 0 0 0-7.08.613 2.834 2.834 0 0 0-2.175 1.805l-2.26 5.898a2.793 2.793 0 0 0 2.601 3.81h4.106a1.793 1.793 0 0 0 0-3.587l-2.934-.046 1.666-4.35a44.936 44.936 0 0 1 6.076-.557 42.747 42.747 0 0 1 5.961.49l1.71 4.463h-2.892a1.793 1.793 0 0 0 0 3.586h4.105a2.794 2.794 0 0 0 2.6-3.816l-2.318-5.892a2.92 2.92 0 0 0-2.215-1.817 47.371 47.371 0 0 0-6.95-.6z"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,iconId:s["default"].string.isRequired,preserveAspectRatio:s["default"].string,title:s["default"].string,viewBox:s["default"].string,width:s["default"].string},u.defaultProps={ariaHidden:!0,className:"library-card-icon",height:"46.279",preserveAspectRatio:"xMidYMid meet",title:"library-card",viewBox:"0 0 68.377 46.279",width:"68.377"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)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:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(2),l=n(u),c=r(1),f=n(c),d=function(e){function t(){return a(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),s(t,[{key:"getViewBox",value:function(){return"0 0 "+this.props.width+" "+this.props.height}},{key:"renderSvgIcon",value:function(){return l["default"].createElement("svg",{className:this.props.className+" svgIcon",width:this.props.width,height:this.props.height,viewBox:this.getViewBox(),style:this.props.style,"aria-hidden":this.props.ariaHidden},l["default"].createElement("title",null,this.props.title),l["default"].createElement("ellipse",{cx:"12.503",cy:"12.485",rx:"12.251",ry:"12.24",fill:this.props.fill}),l["default"].createElement("path",{d:"M13.048,8.85a4.934,4.934,0,0,1,.879.322,0.893,0.893,0,0,0,.475.263,0.771,0.771,0,0,0,.352-0.609,1.481,1.481,0,0,0-.076-0.837,1.18,1.18,0,0,0-1.119-.351,2.931,2.931,0,0,0-.773.123c-0.27.082-.644,0.263-0.486,0.638A1.2,1.2,0,0,0,13.048,8.85Z"}),l["default"].createElement("path",{d:"M12.444,0A12.5,12.5,0,1,0,25,12.5,12.468,12.468,0,0,0,12.444,0ZM5.15,21.271a1.841,1.841,0,0,1-.457-0.562c-1.06-1.7-1.658-7.7-.287-9.746,0.434-.714.9-0.386,0.744,0.17a4.505,4.505,0,0,0,.5,3.278c0.949,2,3.873,4.771,4.646,5.777a7.852,7.852,0,0,1,1.764,3.319c-0.006.258-.059,0.427-0.516,0.386A11.339,11.339,0,0,1,5.15,21.271Zm18.344-5.7c-0.094.293-.205,0.661-0.445,0.492a10.744,10.744,0,0,0-2.39-1.317c-0.053-.012-0.047-0.082-0.029-0.123a1.67,1.67,0,0,0,.129-0.468,1.228,1.228,0,0,1,.228-0.41,4.186,4.186,0,0,0,.434-1.5,3.646,3.646,0,0,0-.07-1.188A2.7,2.7,0,0,1,21.2,10.53c0-.17.082-0.345,0.1-0.544a1.614,1.614,0,0,0-1.072-1.235c-0.9-.416-1.851-0.79-2.818-1.305a11.027,11.027,0,0,1-1.424-1.258,10.435,10.435,0,0,0-2.437-1.054,0.228,0.228,0,0,1-.193-0.193,5.677,5.677,0,0,0-2.127-3.3c-0.4-.31.047-0.486,0.6-0.515A11.389,11.389,0,0,1,23.494,15.57Zm-3.527-3.834c-0.006-.047-0.023-0.193-0.023-0.222a0.6,0.6,0,0,1,.24-0.246,2.091,2.091,0,0,1,.334-0.234c0.029-.018.053,0.023,0.059,0.035a3.181,3.181,0,0,1-.029,2.254c-0.029.059-.076,0.082-0.094,0.041a1.454,1.454,0,0,0-.492-0.615,0.115,0.115,0,0,1-.035-0.1A2.749,2.749,0,0,0,19.967,11.736ZM9.491,6.4a3.811,3.811,0,0,1,3.029-.433,13.8,13.8,0,0,1,2.15.784c0.685,0.316,1.172.9,1.81,1.247,0.8,0.445,1.91.656,2.76,1.071a0.8,0.8,0,0,1,.5.451,3.059,3.059,0,0,1-1.623-.023,0.524,0.524,0,0,0-.615.094,0.906,0.906,0,0,0,.059.749,0.979,0.979,0,0,0,.469.509c0.275,0.129.656,0.135,0.908,0.281a1.227,1.227,0,0,1,.182,1.6,2.206,2.206,0,0,1-1.746.4,5.289,5.289,0,0,0-2,.105,2.328,2.328,0,0,0-1.043,1,0.12,0.12,0,0,1-.17.023c-1.775-1.065-4.019-1.616-5.214-3.307a3.638,3.638,0,0,1-.58-1.528A3.018,3.018,0,0,1,9.491,6.4ZM6.72,3.214c-0.352-.041-0.357-0.3-0.205-0.4a8.284,8.284,0,0,1,1.623-.837A0.8,0.8,0,0,1,8.589,1.9a4.956,4.956,0,0,1,2.086.972c1.043,0.743,1.974,2.16,1.353,2.043a5.866,5.866,0,0,0-.68-0.1c-0.469-.041-0.779.006-1-0.018a0.434,0.434,0,0,1-.234-0.123A5.867,5.867,0,0,0,6.72,3.214Zm9.292,11.473a0.675,0.675,0,0,1,.3-0.41,3.043,3.043,0,0,1,1.242-.222,3.994,3.994,0,0,0,1.26-.2,0.773,0.773,0,0,1,.691-0.217,0.5,0.5,0,0,1,.264.322,1.25,1.25,0,0,1,.07.486,13.41,13.41,0,0,1-.58,1.352,0.451,0.451,0,0,1-.07.246,2.132,2.132,0,0,1-1.652.217,2.074,2.074,0,0,1-.592-0.1,1.145,1.145,0,0,1-.293-0.24,6.619,6.619,0,0,1-.51-0.544,0.851,0.851,0,0,1-.228-0.293A1.2,1.2,0,0,1,16.012,14.686ZM4.09,4.812a0.521,0.521,0,0,1,.27-0.17,6.908,6.908,0,0,1,4.365.369C8.982,5.128,9.1,5.286,8.929,5.4a8.935,8.935,0,0,0-1.236.89,0.562,0.562,0,0,1-.4.082,6.571,6.571,0,0,0-4.1.486C2.883,6.983,2.6,6.808,2.742,6.562A10.008,10.008,0,0,1,4.09,4.812Zm-2.818,5.45a0.49,0.49,0,0,1,.123-0.3,7.869,7.869,0,0,1,4.412-2.54,0.628,0.628,0,0,1,.644.111c0.1,0.24-.1.38-0.34,0.515-4.166,2.488-3.873,6.187-3.914,7.7,0.012,0.62-.434.732-0.545,0.439A10.877,10.877,0,0,1,1.271,10.261Zm5.25,2.909a4.944,4.944,0,0,1,.07-4c0.164-.31.322-0.509,0.533-0.451,0.228,0.064.281,0.293,0.311,0.726,0.228,3.565,2.39,4.771,5.1,6.029a15.622,15.622,0,0,1,6.615,5.368c0.311,0.439.352,0.7,0.006,0.954a11.145,11.145,0,0,1-4.019,1.826c-0.246.059-.5,0.012-0.727-0.55C12.122,17.168,8.279,17.437,6.521,13.17Zm14.19,7.252c-0.352.345-.545,0.076-0.662-0.146a10.28,10.28,0,0,0-1.734-2.745,0.178,0.178,0,0,1,.164-0.3,1.287,1.287,0,0,0,.691-0.111,1.383,1.383,0,0,0,.633-0.9c0.1-.339.1-0.445,0.311-0.462a0.632,0.632,0,0,1,.205.023,2.5,2.5,0,0,1,.732.433,6.868,6.868,0,0,1,1.412,1.539,0.4,0.4,0,0,1-.047.4A11.284,11.284,0,0,1,20.711,20.423Z"}))}},{key:"renderInverseSvgIcon",value:function(){return l["default"].createElement("svg",{className:this.props.className+" svgIcon",width:this.props.width,height:this.props.height,viewBox:this.getViewBox(),style:this.props.style,"aria-hidden":this.props.ariaHidden},l["default"].createElement("title",null,this.props.title),l["default"].createElement("path",{d:"M19.87,8.731c-0.93-.457-2.136-0.685-3.011-1.176-0.7-.387-1.226-1.024-1.97-1.37a14.467,14.467,0,0,0-2.349-.858,4.167,4.167,0,0,0-3.307.477,3.358,3.358,0,0,0-1.247,3.32A3.951,3.951,0,0,0,8.619,10.8c1.309,1.854,3.755,2.456,5.691,3.625a0.126,0.126,0,0,0,.178-0.016L14.5,14.4a2.572,2.572,0,0,1,1.137-1.1,5.759,5.759,0,0,1,2.191-.118,2.41,2.41,0,0,0,1.908-.443,1.36,1.36,0,0,0-.2-1.757c-0.276-.159-0.689-0.166-0.992-0.3a1.049,1.049,0,0,1-.51-0.56,1.012,1.012,0,0,1-.062-0.823,0.572,0.572,0,0,1,.675-0.1,3.42,3.42,0,0,0,1.771.028A0.872,0.872,0,0,0,19.87,8.731Zm-4.885-.27a0.84,0.84,0,0,1-.386.664,0.906,0.906,0,0,1-.517-0.291,5.687,5.687,0,0,0-.958-0.353,1.245,1.245,0,0,1-.806-0.5c-0.172-.415.234-0.609,0.53-0.706A3.233,3.233,0,0,1,13.69,7.14a1.265,1.265,0,0,1,1.219.387,1.855,1.855,0,0,1,.076.934h0Z",transform:"translate(0 0)",fill:this.props.inverseFill}),l["default"].createElement("path",{d:"M0.262,10.039A0.554,0.554,0,0,1,.4,9.714,8.544,8.544,0,0,1,5.215,6.926a0.661,0.661,0,0,1,.7.125c0.11,0.263-.11.415-0.372,0.567C1,10.35,1.323,14.4,1.275,16.064c0.014,0.678-.475.8-0.6,0.484A12.07,12.07,0,0,1,.262,10.039Z",transform:"translate(0 0)",fill:this.props.inverseFill}),l["default"].createElement("path",{d:"M3.342,4.062a0.587,0.587,0,0,1,.289-0.187,7.477,7.477,0,0,1,4.761.408c0.282,0.125.413,0.3,0.227,0.422a10.347,10.347,0,0,0-1.35.975,0.642,0.642,0,0,1-.441.09A7.209,7.209,0,0,0,2.356,6.3c-0.344.145-.648-0.055-0.489-0.318A11.264,11.264,0,0,1,3.342,4.062Z",transform:"translate(0 0)",fill:this.props.inverseFill}),l["default"].createElement("path",{d:"M6.214,2.305C5.829,2.264,5.829,1.98,5.987,1.87A9.3,9.3,0,0,1,7.758.956a0.868,0.868,0,0,1,.5-0.083,5.4,5.4,0,0,1,2.28,1.065c1.137,0.816,2.15,2.366,1.474,2.241a5.93,5.93,0,0,0-.744-0.111c-0.517-.048-0.847.007-1.089-0.014a0.443,0.443,0,0,1-.255-0.138A6.36,6.36,0,0,0,6.214,2.305Z",transform:"translate(0 0)",fill:this.props.inverseFill}),l["default"].createElement("path",{d:"M24.52,15.856c-0.1.318-.227,0.726-0.482,0.54a11.846,11.846,0,0,0-2.6-1.446c-0.055-.014-0.048-0.09-0.028-0.131a1.752,1.752,0,0,0,.138-0.512,1.251,1.251,0,0,1,.248-0.45,4.545,4.545,0,0,0,.468-1.646,4.133,4.133,0,0,0-.076-1.307,2.725,2.725,0,0,1-.158-0.574c0-.187.09-0.374,0.11-0.595a1.779,1.779,0,0,0-1.171-1.356c-0.978-.457-2.019-0.872-3.073-1.432a12.154,12.154,0,0,1-1.557-1.383,11.185,11.185,0,0,0-2.659-1.155,0.255,0.255,0,0,1-.214-0.214A6.25,6.25,0,0,0,11.141.569C10.707,0.23,11.2.036,11.8,0.009A12.484,12.484,0,0,1,24.52,15.856Z",transform:"translate(0 0)",fill:this.props.inverseFill}),l["default"].createElement("path",{d:"M20.676,11.65c-0.007-.048-0.028-0.214-0.028-0.249a0.69,0.69,0,0,1,.262-0.27,2.766,2.766,0,0,1,.365-0.256c0.034-.021.055,0.028,0.062,0.042a3.471,3.471,0,0,1-.034,2.469c-0.028.062-.083,0.09-0.1,0.042a1.624,1.624,0,0,0-.537-0.678,0.147,0.147,0,0,1-.041-0.111A2.876,2.876,0,0,0,20.676,11.65Z",transform:"translate(0 0)",fill:this.props.inverseFill}),l["default"].createElement("path",{d:"M16.356,14.888a0.757,0.757,0,0,1,.331-0.45,3.224,3.224,0,0,1,1.357-.242,4.209,4.209,0,0,0,1.371-.228,0.831,0.831,0,0,1,.751-0.235,0.545,0.545,0,0,1,.289.353,1.279,1.279,0,0,1,.076.533,16.052,16.052,0,0,1-.634,1.487,0.478,0.478,0,0,1-.076.27,2.322,2.322,0,0,1-1.805.235,1.945,1.945,0,0,1-.648-0.111,1.289,1.289,0,0,1-.324-0.263c-0.214-.2-0.338-0.353-0.558-0.595a1.078,1.078,0,0,1-.255-0.325A2.709,2.709,0,0,1,16.356,14.888Z",transform:"translate(0 0)",fill:this.props.inverseFill}),l["default"].createElement("path",{d:"M4.5,22.116A1.977,1.977,0,0,1,4,21.494c-1.164-1.861-1.812-8.446-.317-10.68,0.475-.782.978-0.422,0.813,0.18a4.977,4.977,0,0,0,.544,3.6c1.033,2.193,4.23,5.236,5.071,6.336a8.635,8.635,0,0,1,1.922,3.645c-0.007.284-.062,0.463-0.558,0.422A12.362,12.362,0,0,1,4.5,22.116Z",transform:"translate(0 0)",fill:this.props.inverseFill}),l["default"].createElement("path",{d:"M5.994,13.228A5.45,5.45,0,0,1,6.07,8.842c0.179-.339.351-0.56,0.579-0.491,0.248,0.069.3,0.325,0.338,0.8,0.255,3.915,2.611,5.229,5.567,6.613a17.018,17.018,0,0,1,7.22,5.887c0.338,0.477.386,0.768,0.007,1.044a12.064,12.064,0,0,1-4.389,2c-0.269.062-.551,0.014-0.792-0.609C12.105,17.613,7.909,17.9,5.994,13.228Z",transform:"translate(0 0)",fill:this.props.inverseFill}),l["default"].createElement("path",{d:"M21.482,21.182c-0.379.38-.6,0.083-0.723-0.166A11.3,11.3,0,0,0,18.864,18a0.194,0.194,0,0,1,.179-0.332,1.341,1.341,0,0,0,.751-0.125,1.519,1.519,0,0,0,.689-0.982c0.1-.374.11-0.484,0.338-0.512a0.68,0.68,0,0,1,.227.028,2.921,2.921,0,0,1,.8.477,7.656,7.656,0,0,1,1.543,1.688,0.459,0.459,0,0,1-.048.443A12.318,12.318,0,0,1,21.482,21.182Z",transform:"translate(0 0)",fill:this.props.inverseFill}))}},{key:"render",value:function(){return"inverse"!==this.props.type?this.renderSvgIcon():this.renderInverseSvgIcon()}}]),t}(l["default"].Component);d.propTypes={className:f["default"].string,title:f["default"].string,type:f["default"].string,height:f["default"].number,width:f["default"].number,fill:f["default"].string,inverseFill:f["default"].string,style:f["default"].object,ariaHidden:f["default"].bool},d.defaultProps={className:"nyplLionLogo-icon",title:"NYPL Lion Logo",ref:"nyplLionLogoIcon",type:"",height:"50",width:"50",fill:"#FFF",inverseFill:"#000"},t["default"]=d},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.className,r=e.width,n=e.height,a=e.viewBox,o=e.style,s=e.ariaHidden,u=e.title,l=e.fill;return i["default"].createElement("svg",{className:t+" svgIcon",width:r,height:n,viewBox:a,style:o,"aria-hidden":s},i["default"].createElement("title",null,u),i["default"].createElement("g",{className:t+"-text"},i["default"].createElement("g",{className:t+"-text-ny"},i["default"].createElement("path",{d:"M156.36639,26.64949h1.93408l14.21812,20.593v-20.593H174.381V50.5016h-1.82667L158.19274,29.76519V50.5016h-1.82635V26.64949Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M178.14171,41.79879c0-4.83479,2.79354-8.77447,7.34205-8.77447,4.36937,0,6.769,3.50975,6.41048,8.38043h-11.7828v0.394c0.036,3.90364,1.68361,7.48511,5.76653,7.48511a8.46392,8.46392,0,0,0,4.942-1.6117l0.78812,1.46846a9.8233,9.8233,0,0,1-5.80219,1.755C180.577,50.89564,178.14171,46.70533,178.14171,41.79879Zm11.89053-1.934c-0.03568-2.57842-1.36073-5.22886-4.61985-5.22886-2.97264,0-4.69193,2.29208-5.19321,5.22886h9.81306Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M193.899,33.41818h2.00542l4.155,14.21833,4.47647-14.21833h1.82667l4.47679,14.254,4.18995-14.254H216.892L211.73445,50.5016h-1.71894L205.3953,36.10434,200.77545,50.5016h-1.71894Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M233.365,41.51212l-7.98639-14.86264h2.22057l6.76869,12.8929h0.07172l6.76869-12.8929H243.214l-7.915,14.86264V50.5016H233.365V41.51212Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M241.60144,41.97789c0-4.29786,2.29194-8.95357,7.66422-8.95357s7.84333,4.62,7.84333,8.88188c0,4.2975-2.43536,8.98944-7.80764,8.98944C243.92939,50.89564,241.60144,46.27543,241.60144,41.97789Zm13.53778,0c0-3.83227-2.04146-7.342-5.94493-7.342-3.86813,0-5.62308,3.4382-5.62308,7.27032,0,3.868,1.89836,7.3777,5.76582,7.3777C253.24085,49.2839,255.13922,45.84571,255.13922,41.97789Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M260.68578,33.41818h1.86268v2.97264c0.64469-1.25353,2.18453-3.3665,4.5842-3.3665a4.68342,4.68342,0,0,1,1.64757.28648l-0.46591,1.7548a3.56466,3.56466,0,0,0-1.39677-.25066c-2.36363,0-3.90381,2.79371-4.36909,3.79644V50.5016h-1.86268V33.41818Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M272.21742,24.7154h1.86236V50.5016h-1.86236V24.7154Zm2.04111,16.18807,7.48547-7.48529h2.32795l-7.55684,7.48529,7.9507,9.59813h-2.32795Z",transform:"translate(-27.25197 -24.7154)"})),i["default"].createElement("g",{className:t+"-text-public"},i["default"].createElement("path",{d:"M156.40225,62.53555h5.193c5.01407,0,8.16582,2.47119,8.16582,6.733,0,4.29754-2.97264,6.98369-8.38061,6.98369h-3.00833V86.38762h-1.96991V62.53555ZM161.34481,74.569c4.54816,0,6.41052-2.07729,6.41052-5.22886,0-2.97264-1.79067-5.12148-6.33914-5.12148h-3.044V74.569h2.97264Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M172.76837,81.37373V69.30424h1.86271V80.97966c0,2.50723.89514,4.11861,3.5096,4.11861,2.54306,0,4.65554-2.39949,5.22886-3.40219V69.30424h1.862V83.09285a14.41314,14.41314,0,0,0,.32252,3.29478h-1.898a18.73138,18.73138,0,0,1-.2508-2.79354,6.85642,6.85642,0,0,1-5.65845,3.18761C174.16549,86.7817,172.76837,84.45358,172.76837,81.37373Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M189.88744,85.49231V60.60146h1.862V70.88029a6.07292,6.07292,0,0,1,4.47714-1.96974c4.87033,0,7.23432,3.90347,7.23432,8.88171,0,4.79913-3.22344,8.98944-8.45233,8.98944A9.6515,9.6515,0,0,1,189.88744,85.49231ZM201.49116,77.864c0-3.72489-1.43281-7.27032-5.58707-7.27032a6.12767,6.12767,0,0,0-4.15465,1.934V84.48962a7.70565,7.70565,0,0,0,3.33121.68035C199.41366,85.17,201.49116,81.40938,201.49116,77.864Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M207.292,60.60146h1.86271V86.38762H207.292V60.60146Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M214.23944,64.25466a1.41471,1.41471,0,1,1,2.82919,0A1.41558,1.41558,0,1,1,214.23944,64.25466Zm0.46559,5.04958h1.898V86.38762h-1.898V69.30424Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M220.184,77.82795c0-5.40782,3.116-8.91739,7.52112-8.91739a7.42136,7.42136,0,0,1,5.08548,1.79045l-0.96686,1.36094a6.121,6.121,0,0,0-4.1543-1.54c-3.79641,0-5.5157,3.295-5.5157,7.23464,0,3.79623,1.68361,7.41339,5.48,7.41339a6.88911,6.88911,0,0,0,4.36941-1.54l0.82344,1.39677a8.00839,8.00839,0,0,1-5.30059,1.755C222.61969,86.7817,220.184,82.41229,220.184,77.82795Z",transform:"translate(-27.25197 -24.7154)"})),i["default"].createElement("g",{className:t+"-text-library"},i["default"].createElement("path",{d:"M155.86494,122.27422V98.42179h5.08565v19.76915h8.88188v4.08328H155.86494Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M176.00777,102.5764A2.8586,2.8586,0,0,1,173.1065,99.711a2.82221,2.82221,0,0,1,2.90127-2.79354,2.85364,2.85364,0,0,1,2.9366,2.79354A2.88946,2.88946,0,0,1,176.00777,102.5764Zm-2.39967,19.69782V104.83195h4.799v17.44227h-4.799Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M187.36031,96.4877v9.706a6.22015,6.22015,0,0,1,4.26168-1.791c4.36973,0,7.41374,3.008,7.41374,9.0253,0,5.94493-4.0112,9.27574-9.27578,9.27574A16.58426,16.58426,0,0,1,182.597,121.307V96.4877h4.76327Zm0,22.09713a6.72755,6.72755,0,0,0,2.39964.39457c2.65011,0,4.22563-1.96974,4.22563-5.55139,0-3.25913-1.10993-5.26455-3.68867-5.26455a4.14376,4.14376,0,0,0-2.9366,1.325v9.09632Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M212.42937,109.02257a3.39138,3.39138,0,0,0-1.827-.39386c-2.11248,0-3.36615,1.86271-3.79605,2.65012v10.99539H202.043V104.83195h4.7633v2.36431a5.16217,5.16217,0,0,1,4.40506-2.79354,4.7777,4.7777,0,0,1,2.364.46594Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M225.03561,122.27422a9.70593,9.70593,0,0,1-.28684-1.86271,6.43294,6.43294,0,0,1-4.90634,2.29226c-2.97264,0-5.26454-1.79028-5.26454-4.90669,0-4.54851,4.69154-6.19573,9.31143-6.19573h0.609v-1.00291c0-1.5045-.609-2.435-2.82922-2.435a7.36142,7.36142,0,0,0-4.4411,1.64721l-2.07715-2.90091a10.36488,10.36488,0,0,1,7.05553-2.50705c4.76331,0,7.01953,1.82667,7.01953,6.44656v6.26742a23.45627,23.45627,0,0,0,.50128,5.15752h-4.69158Zm-0.53728-7.73627h-0.609c-2.79318,0-4.72727.82412-4.72727,2.86523a1.86412,1.86412,0,0,0,2.11284,1.82635,4.27676,4.27676,0,0,0,3.22344-1.53951V114.538Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M243.44337,109.02257a3.39017,3.39017,0,0,0-1.82632-.39386c-2.11315,0-3.36686,1.86271-3.79676,2.65012v10.99539H233.057V104.83195h4.76331v2.36431a5.16277,5.16277,0,0,1,4.40541-2.79354,4.77608,4.77608,0,0,1,2.36363.46594Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M246.30792,104.83195h5.08548l3.86813,11.497h0.17907l3.54564-11.497h4.90669l-7.19863,19.30392c-1.54019,4.119-3.36686,6.51825-8.12981,6.51825a9.32322,9.32322,0,0,1-2.68612-.32217l0.68038-3.7604a5.485,5.485,0,0,0,1.68325.17879c2.43532,0,3.29481-1.1813,3.97516-3.044l0.64469-1.79031Z",transform:"translate(-27.25197 -24.7154)"}))),i["default"].createElement("g",{className:t+"-lion"},i["default"].createElement("path",{d:"M111.90871,99.19328c-3.7417-1.83124-8.60114-2.74854-12.13721-4.7124-2.7998-1.55231-4.946-4.11652-7.95886-5.498a60.02908,60.02908,0,0,0-9.468-3.45349c-6.25116-1.53778-11.50183.46472-13.323,1.90582A13.4137,13.4137,0,0,0,64.00112,100.774a15.94352,15.94352,0,0,0,2.55627,6.72852c5.27264,7.447,15.14136,9.86646,22.95953,14.56458a0.50625,0.50625,0,0,0,.73907-0.10187c1.31311-1.93127,2.3808-3.48566,4.59235-4.40546,2.24567-.93738,5.7793-0.619,8.82611-0.47076,3.14771,0.1521,6.54541-.14337,7.68689-1.77087,1.36383-1.94238,1.28436-5.85663-.7973-7.05243-1.117-.64368-2.78278-0.6731-3.9975-1.23328a4.3204,4.3204,0,0,1-2.059-2.24237,4.07459,4.07459,0,0,1-.25964-3.31146c0.489-.88025,1.7226-0.63116,2.71332-0.40076,1.9635,0.45068,5.24432.92871,7.13336,0.1001C114.65114,100.89348,112.66127,99.56114,111.90871,99.19328ZM92.18856,98.119c-0.16821.87573-.7019,2.567-1.55566,2.67712-0.86029.1098-1.48022-.81232-2.09686-1.15808a24.4124,24.4124,0,0,0-3.87262-1.41064c-1.17352-.38867-2.78247-0.87018-3.254-1.98981-0.707-1.66663.94434-2.45544,2.13348-2.82123a12.11641,12.11641,0,0,1,3.40045-.54181c2.1485-.10327,4.19965.20435,4.92053,1.55475A6.49319,6.49319,0,0,1,92.18856,98.119Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M32.83333,104.45157a2.29443,2.29443,0,0,1,.54613-1.31607A34.48454,34.48454,0,0,1,52.806,91.93851c1.50521-.21582,2.58985-0.11156,2.83649.49191,0.43235,1.05764-.4436,1.66732-1.49758,2.27736C35.79955,105.672,37.1,121.9711,36.92438,128.639c0.05527,2.72734-1.91432,3.22379-2.40623,1.93891A48.03813,48.03813,0,0,1,32.83333,104.45157Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M45.24681,80.43961a2.19666,2.19666,0,0,1,1.1785-.73891,30.35514,30.35514,0,0,1,19.20314,1.6337c1.14285,0.50578,1.65764,1.2227.90727,1.704a38.83021,38.83021,0,0,0-5.4445,3.92461,2.4715,2.4715,0,0,1-1.782.35665c-5.96657-.78655-9.06564-1.25111-18.03517,2.149-1.37634.57868-2.61425-.20873-1.98084-1.29042A45.71179,45.71179,0,0,1,45.24681,80.43961Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M56.83993,73.40033c-1.54242-.17563-1.56427-1.30393-0.91213-1.74352a37.79982,37.79982,0,0,1,7.13141-3.67693,3.616,3.616,0,0,1,1.99226-.33359c2.016,0.20181,5.35429,1.55906,9.18483,4.292,4.59371,3.27786,8.68043,9.50494,5.94738,9.0009a25.58659,25.58659,0,0,0-3.00191-.43945c-2.07059-.18361-3.42908.02891-4.3831-0.06825a1.96274,1.96274,0,0,1-1.03614-.55044C67.88555,76.40433,63.4065,74.19781,56.83993,73.40033Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M130.64639,127.82663c-0.41362,1.29077-.90482,2.91-1.9576,2.15892a47.305,47.305,0,0,0-10.51423-5.80672c-0.22586-.05055-0.20021-0.36442-0.12054-0.54143a7.76418,7.76418,0,0,0,.56119-2.05533,5.10548,5.10548,0,0,1,1.01156-1.8083,18.619,18.619,0,0,0,1.89907-6.60278,16.56311,16.56311,0,0,0-.30071-5.24067,10.43877,10.43877,0,0,1-.63877-2.31961c0.01245-.73927.36027-1.51387,0.43164-2.38651,0.20819-2.525-2.97853-4.63025-4.71776-5.44156-3.94536-1.84228-8.13861-3.48984-12.39993-5.73812-2.40556-1.26892-4.33617-4.05224-6.26607-5.546-1.94966-1.50432-8.21587-3.9897-10.72015-4.65121a1.03792,1.03792,0,0,1-.86172-0.86328,25.0259,25.0259,0,0,0-9.3712-14.55086c-1.759-1.36679.21341-2.14416,2.63539-2.26232C117.499,62.86187,139.47112,98.00018,130.64639,127.82663Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M115.14271,110.93761c-0.02739-.19436-0.111-0.85254-0.11036-0.98836a2.60871,2.60871,0,0,1,1.04881-1.08393,10.66027,10.66027,0,0,1,1.47176-1.03614c0.13838-.08695.23019,0.114,0.24892,0.15381,1.40748,2.13671.87988,7.41754-.13721,9.92874-0.11795.25534-.33306,0.35473-0.42089,0.16768a6.365,6.365,0,0,0-2.17328-2.71248,0.53647,0.53647,0,0,1-.16314-0.43959A10.78454,10.78454,0,0,0,115.14271,110.93761Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M97.73573,123.93565a3.07547,3.07547,0,0,1,1.33667-1.817c1.28091-.80333,3.40964-0.838,5.46408-0.97864a17.34326,17.34326,0,0,0,5.53425-.90517c0.85722-.39425,1.71461-1.517,3.03915-0.945a2.19649,2.19649,0,0,1,1.15583,1.41653,5.15178,5.15178,0,0,1,.29759,2.13323c-0.19071,2.46342-2.1913,3.66618-2.55122,5.96884a2.05507,2.05507,0,0,1-.29862,1.07563c-1.52756,1.55473-4.54834,1.22774-7.27933.95267a8.69735,8.69735,0,0,1-2.6051-.43856,5.72964,5.72964,0,0,1-1.302-1.04622,30.722,30.722,0,0,1-2.24377-2.38822,4.156,4.156,0,0,1-1.01465-1.30081A6.83012,6.83012,0,0,1,97.73573,123.93565Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M49.90735,152.96743a8.06424,8.06424,0,0,1-2.0101-2.48694c-4.67633-7.4744-7.29718-33.94506-1.27119-42.92361,1.91762-3.14586,3.94919-1.69538,3.274.73615-1.15409,5.45855-.44672,8.51743,2.20759,14.44054,4.1714,8.80221,17.047,21.02289,20.4556,25.45534,5.84308,7.6015,7.7877,13.13937,7.76138,14.63142-0.03154,1.14459-.25115,1.87413-2.25675,1.70475A50.122,50.122,0,0,1,49.90735,152.96743Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M55.95568,117.26983A21.79207,21.79207,0,0,1,56.26125,99.645c0.7188-1.35484,1.42117-2.24,2.33834-1.985,0.998,0.27818,1.22855,1.29978,1.36626,3.19329,1.01553,15.714,10.52044,21.00487,22.459,26.55281,9.41867,4.81489,20.135,10.31952,29.11613,23.65392,1.35938,1.92507,1.55544,3.09321.02079,4.19587A48.8677,48.8677,0,0,1,93.868,163.29216c-1.09244.25566-2.21933,0.06375-3.187-2.43259C80.59868,134.8822,63.671,136.05311,55.95568,117.26983Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M118.40353,149.20773c-1.535,1.5343-2.40553.3315-2.907-.65371a45.56777,45.56777,0,0,0-7.63545-12.10255,0.78694,0.78694,0,0,1,.72767-1.34444,5.49981,5.49981,0,0,0,3.03671-.493,6.08555,6.08555,0,0,0,2.787-3.94433c0.427-1.50695.447-1.95037,1.37041-2.04423a3.03406,3.03406,0,0,1,.90418.10947,10.91687,10.91687,0,0,1,3.21234,1.91465,31.19354,31.19354,0,0,1,6.22659,6.775,1.79563,1.79563,0,0,1-.19539,1.76708A50.13544,50.13544,0,0,1,118.40353,149.20773Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M82.02851,59.23935a55.06858,55.06858,0,1,0,55.25255,55.07377A54.89374,54.89374,0,0,0,82.02851,59.23935ZM49.90735,152.95427a8.06426,8.06426,0,0,1-2.0101-2.48694c-4.67633-7.4744-7.29718-33.9451-1.27119-42.92361,1.91762-3.14586,3.94919-1.69538,3.274.73615-1.15409,5.45855-.44672,8.51743,2.20759,14.44054,4.1714,8.80221,17.047,21.02289,20.4556,25.45534,5.84308,7.6015,7.7877,13.13937,7.76138,14.63142-0.03154,1.14455-.25115,1.87413-2.25675,1.70471A50.12176,50.12176,0,0,1,49.90735,152.95427Zm80.739-25.14079c-0.41362,1.29077-.90482,2.90992-1.9576,2.15892a47.30207,47.30207,0,0,0-10.51423-5.80672c-0.22586-.05059-0.20021-0.36442-0.12054-0.54143a7.76415,7.76415,0,0,0,.56119-2.05533,5.10548,5.10548,0,0,1,1.01156-1.80829,18.61918,18.61918,0,0,0,1.89907-6.60278,16.56311,16.56311,0,0,0-.30071-5.24067,10.43874,10.43874,0,0,1-.63877-2.31961c0.01245-.73927.36027-1.51387,0.43164-2.38652,0.20819-2.525-2.97853-4.63007-4.71776-5.44138-3.94536-1.84228-8.13861-3.48984-12.39993-5.73812-2.40556-1.269-4.33617-4.05224-6.26607-5.546-1.94966-1.50432-8.21587-3.98974-10.72015-4.65121a1.038,1.038,0,0,1-.86172-0.86328,25.02589,25.02589,0,0,0-9.3712-14.55086c-1.759-1.36683.21341-2.14419,2.63539-2.26232C117.499,62.84888,139.47112,97.9872,130.64639,127.81347Zm-15.50368-16.889c-0.02739-.19436-0.111-0.85253-0.11036-0.98836a2.60871,2.60871,0,0,1,1.04881-1.08393,10.66026,10.66026,0,0,1,1.47176-1.03614c0.13838-.08695.23019,0.114,0.24892,0.15381,1.40748,2.13671.87988,7.41754-.13721,9.92874-0.11795.25534-.33306,0.35473-0.42089,0.16768a6.365,6.365,0,0,0-2.17328-2.71248,0.5365,0.5365,0,0,1-.16314-0.43962A10.7843,10.7843,0,0,0,115.14271,110.92445ZM69.02163,87.42221c1.82114-1.44111,7.07185-3.44359,13.323-1.90581a60.02216,60.02216,0,0,1,9.468,3.45363c3.0128,1.3812,5.159,3.94557,7.95883,5.49789,3.5361,1.96385,8.39551,2.88116,12.13721,4.71233,0.75257,0.3679,2.74242,1.70007,2.18591,1.98449-1.889.82862-5.16983,0.3509-7.13332-.10014-0.99077-.23036-2.22436-0.47942-2.71333.40081a4.07468,4.07468,0,0,0,.25963,3.31145,4.32051,4.32051,0,0,0,2.059,2.24238c1.21472,0.56016,2.88048.5896,3.99751,1.23324,2.08165,1.19584,2.16115,5.11006.7973,7.05245-1.14147,1.62749-4.53915,1.923-7.68689,1.7709-3.04678-.14828-6.58043-0.46662-8.82612.47077-2.21156.91976-3.2792,2.47413-4.59232,4.40545a0.50625,0.50625,0,0,1-.73909.10184c-7.81818-4.69814-17.68686-7.11757-22.95953-14.56456a15.94379,15.94379,0,0,1-2.55625-6.72854A13.41361,13.41361,0,0,1,69.02163,87.42221ZM56.83993,73.38734c-1.54242-.17563-1.56427-1.30394-0.91213-1.74356a37.7999,37.7999,0,0,1,7.13141-3.6769,3.616,3.616,0,0,1,1.99226-.33359c2.016,0.20177,5.35429,1.55906,9.18483,4.292,4.59371,3.27782,8.68043,9.5049,5.94738,9.00086a25.59524,25.59524,0,0,0-3.00191-.43941c-2.07059-.18361-3.42908.02891-4.3831-0.06825a1.96255,1.96255,0,0,1-1.03614-.55048C67.88555,76.39134,63.4065,74.18479,56.83993,73.38734Zm40.8958,50.53515a3.07547,3.07547,0,0,1,1.33667-1.817c1.28091-.80333,3.40964-0.838,5.46408-0.97864a17.3433,17.3433,0,0,0,5.53425-.90518c0.85722-.39425,1.71461-1.517,3.03915-0.945a2.1965,2.1965,0,0,1,1.15583,1.41653,5.15179,5.15179,0,0,1,.29759,2.13323c-0.19071,2.46342-2.1913,3.66618-2.55122,5.96884a2.05507,2.05507,0,0,1-.29862,1.07563c-1.52756,1.55473-4.54834,1.22774-7.27933.95268a8.69731,8.69731,0,0,1-2.6051-.43859,5.72851,5.72851,0,0,1-1.302-1.04618,30.72225,30.72225,0,0,1-2.24377-2.38822,4.156,4.156,0,0,1-1.01465-1.30081A6.83011,6.83011,0,0,1,97.73573,123.92249ZM45.24681,80.42659a2.19709,2.19709,0,0,1,1.1785-.73891,30.35515,30.35515,0,0,1,19.20314,1.63373c1.14285,0.50578,1.65764,1.2227.90727,1.704a38.83021,38.83021,0,0,0-5.4445,3.92461,2.4715,2.4715,0,0,1-1.782.35665c-5.96657-.78655-9.06564-1.25111-18.03517,2.149-1.37634.57868-2.61425-.20873-1.98084-1.29042A45.71349,45.71349,0,0,1,45.24681,80.42659Zm-12.404,24.0215a2.29577,2.29577,0,0,1,.54631-1.316A34.484,34.484,0,0,1,52.81575,91.93521c1.505-.21547,2.58967-0.11153,2.83632.49191,0.43232,1.058-.4436,1.66768-1.49741,2.2774-18.34557,10.964-17.04493,27.26345-17.22056,33.931,0.05523,2.72738-1.91434,3.22379-2.40625,1.93926A48.03957,48.03957,0,0,1,32.84285,104.44809Zm23.11943,12.81412a21.79159,21.79159,0,0,1,.30553-17.62467c0.71883-1.35484,1.42121-2.24,2.33834-1.985,0.998,0.27818,1.22859,1.29978,1.3663,3.19314,1.01553,15.714,10.52044,21.00487,22.459,26.55278,9.41867,4.81489,20.135,10.31952,29.11613,23.654,1.35934,1.925,1.55544,3.09318.02079,4.19584a48.8677,48.8677,0,0,1-17.69378,8.03627c-1.09244.25566-2.21936,0.06375-3.18708-2.43256C80.60524,134.87457,63.67758,136.04548,55.96228,117.26221Zm62.44125,31.94758c-1.535,1.5343-2.40553.33154-2.907-.65367a45.56724,45.56724,0,0,0-7.63545-12.10256,0.787,0.787,0,0,1,.72767-1.34448,5.49979,5.49979,0,0,0,3.03671-.49294,6.08554,6.08554,0,0,0,2.787-3.94437c0.427-1.50691.447-1.95033,1.37041-2.04423a3.03522,3.03522,0,0,1,.90418.10947,10.91777,10.91777,0,0,1,3.21234,1.91468,31.19269,31.19269,0,0,1,6.22659,6.77494,1.7957,1.7957,0,0,1-.19539,1.76711A50.13426,50.13426,0,0,1,118.40353,149.20979Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M84.67135,98.22743a24.39354,24.39354,0,0,1,3.87228,1.41064c0.61681,0.34572,1.23657,1.26789,2.09726,1.15807,0.85356-.11015,1.38723-1.80138,1.55541-2.67715a6.49165,6.49165,0,0,0-.32458-3.6897c-0.72075-1.35037-2.77207-1.658-4.92038-1.55473a12.1195,12.1195,0,0,0-3.40063.54179c-1.18893.36584-2.84033,1.15463-2.13345,2.82124C81.88892,97.35723,83.49753,97.83874,84.67135,98.22743Z",transform:"translate(-27.25197 -24.7154)"})))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool,style:s["default"].object},u.defaultProps={className:"nyplLionLogo",title:"The New York Public Library",ref:"nyplLionLogo",type:"",height:"144",width:"257",viewBox:"0 0 257 144",fill:"#FFF"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.className,r=e.title,n=e.width,a=e.height,o=e.viewBox,s=e.ariaHidden,u=e.fill,l=e.style;return i["default"].createElement("svg",{className:t+" svgIcon",width:n,height:a,viewBox:o,style:l,"aria-hidden":s},i["default"].createElement("title",null,r),i["default"].createElement("g",{className:t+"-text"},i["default"].createElement("g",{className:t+"-text-ny"},i["default"].createElement("path",{d:"M156.36639,26.64949h1.93408l14.21812,20.593v-20.593H174.381V50.5016h-1.82667L158.19274,29.76519V50.5016h-1.82635V26.64949Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M178.14171,41.79879c0-4.83479,2.79354-8.77447,7.34205-8.77447,4.36937,0,6.769,3.50975,6.41048,8.38043h-11.7828v0.394c0.036,3.90364,1.68361,7.48511,5.76653,7.48511a8.46392,8.46392,0,0,0,4.942-1.6117l0.78812,1.46846a9.8233,9.8233,0,0,1-5.80219,1.755C180.577,50.89564,178.14171,46.70533,178.14171,41.79879Zm11.89053-1.934c-0.03568-2.57842-1.36073-5.22886-4.61985-5.22886-2.97264,0-4.69193,2.29208-5.19321,5.22886h9.81306Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M193.899,33.41818h2.00542l4.155,14.21833,4.47647-14.21833h1.82667l4.47679,14.254,4.18995-14.254H216.892L211.73445,50.5016h-1.71894L205.3953,36.10434,200.77545,50.5016h-1.71894Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M233.365,41.51212l-7.98639-14.86264h2.22057l6.76869,12.8929h0.07172l6.76869-12.8929H243.214l-7.915,14.86264V50.5016H233.365V41.51212Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M241.60144,41.97789c0-4.29786,2.29194-8.95357,7.66422-8.95357s7.84333,4.62,7.84333,8.88188c0,4.2975-2.43536,8.98944-7.80764,8.98944C243.92939,50.89564,241.60144,46.27543,241.60144,41.97789Zm13.53778,0c0-3.83227-2.04146-7.342-5.94493-7.342-3.86813,0-5.62308,3.4382-5.62308,7.27032,0,3.868,1.89836,7.3777,5.76582,7.3777C253.24085,49.2839,255.13922,45.84571,255.13922,41.97789Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M260.68578,33.41818h1.86268v2.97264c0.64469-1.25353,2.18453-3.3665,4.5842-3.3665a4.68342,4.68342,0,0,1,1.64757.28648l-0.46591,1.7548a3.56466,3.56466,0,0,0-1.39677-.25066c-2.36363,0-3.90381,2.79371-4.36909,3.79644V50.5016h-1.86268V33.41818Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M272.21742,24.7154h1.86236V50.5016h-1.86236V24.7154Zm2.04111,16.18807,7.48547-7.48529h2.32795l-7.55684,7.48529,7.9507,9.59813h-2.32795Z",transform:"translate(-31.77892 -24.7154)"})),i["default"].createElement("g",{className:t+"-text-public"},i["default"].createElement("path",{d:"M156.40225,62.53555h5.193c5.01407,0,8.16582,2.47119,8.16582,6.733,0,4.29754-2.97264,6.98369-8.38061,6.98369h-3.00833V86.38762h-1.96991V62.53555ZM161.34481,74.569c4.54816,0,6.41052-2.07729,6.41052-5.22886,0-2.97264-1.79067-5.12148-6.33914-5.12148h-3.044V74.569h2.97264Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M172.76837,81.37373V69.30424h1.86271V80.97966c0,2.50723.89514,4.11861,3.5096,4.11861,2.54306,0,4.65554-2.39949,5.22886-3.40219V69.30424h1.862V83.09285a14.41314,14.41314,0,0,0,.32252,3.29478h-1.898a18.73138,18.73138,0,0,1-.2508-2.79354,6.85642,6.85642,0,0,1-5.65845,3.18761C174.16549,86.7817,172.76837,84.45358,172.76837,81.37373Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M189.88744,85.49231V60.60146h1.862V70.88029a6.07292,6.07292,0,0,1,4.47714-1.96974c4.87033,0,7.23432,3.90347,7.23432,8.88171,0,4.79913-3.22344,8.98944-8.45233,8.98944A9.6515,9.6515,0,0,1,189.88744,85.49231ZM201.49116,77.864c0-3.72489-1.43281-7.27032-5.58707-7.27032a6.12767,6.12767,0,0,0-4.15465,1.934V84.48962a7.70565,7.70565,0,0,0,3.33121.68035C199.41366,85.17,201.49116,81.40938,201.49116,77.864Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M207.292,60.60146h1.86271V86.38762H207.292V60.60146Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M214.23944,64.25466a1.41471,1.41471,0,1,1,2.82919,0A1.41558,1.41558,0,1,1,214.23944,64.25466Zm0.46559,5.04958h1.898V86.38762h-1.898V69.30424Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M220.184,77.82795c0-5.40782,3.116-8.91739,7.52112-8.91739a7.42136,7.42136,0,0,1,5.08548,1.79045l-0.96686,1.36094a6.121,6.121,0,0,0-4.1543-1.54c-3.79641,0-5.5157,3.295-5.5157,7.23464,0,3.79623,1.68361,7.41339,5.48,7.41339a6.88911,6.88911,0,0,0,4.36941-1.54l0.82344,1.39677a8.00839,8.00839,0,0,1-5.30059,1.755C222.61969,86.7817,220.184,82.41229,220.184,77.82795Z",transform:"translate(-31.77892 -24.7154)"})),i["default"].createElement("g",{className:t+"-text-library"},i["default"].createElement("path",{d:"M155.86494,122.27422V98.42179h5.08565v19.76915h8.88188v4.08328H155.86494Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M176.00777,102.5764A2.8586,2.8586,0,0,1,173.1065,99.711a2.82221,2.82221,0,0,1,2.90127-2.79354,2.85364,2.85364,0,0,1,2.9366,2.79354A2.88946,2.88946,0,0,1,176.00777,102.5764Zm-2.39967,19.69782V104.83195h4.799v17.44227h-4.799Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M187.36031,96.4877v9.706a6.22015,6.22015,0,0,1,4.26168-1.791c4.36973,0,7.41374,3.008,7.41374,9.0253,0,5.94493-4.0112,9.27574-9.27578,9.27574A16.58426,16.58426,0,0,1,182.597,121.307V96.4877h4.76327Zm0,22.09713a6.72755,6.72755,0,0,0,2.39964.39457c2.65011,0,4.22563-1.96974,4.22563-5.55139,0-3.25913-1.10993-5.26455-3.68867-5.26455a4.14376,4.14376,0,0,0-2.9366,1.325v9.09632Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M212.42937,109.02257a3.39138,3.39138,0,0,0-1.827-.39386c-2.11248,0-3.36615,1.86271-3.79605,2.65012v10.99539H202.043V104.83195h4.7633v2.36431a5.16217,5.16217,0,0,1,4.40506-2.79354,4.7777,4.7777,0,0,1,2.364.46594Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M225.03561,122.27422a9.70593,9.70593,0,0,1-.28684-1.86271,6.43294,6.43294,0,0,1-4.90634,2.29226c-2.97264,0-5.26454-1.79028-5.26454-4.90669,0-4.54851,4.69154-6.19573,9.31143-6.19573h0.609v-1.00291c0-1.5045-.609-2.435-2.82922-2.435a7.36142,7.36142,0,0,0-4.4411,1.64721l-2.07715-2.90091a10.36488,10.36488,0,0,1,7.05553-2.50705c4.76331,0,7.01953,1.82667,7.01953,6.44656v6.26742a23.45627,23.45627,0,0,0,.50128,5.15752h-4.69158Zm-0.53728-7.73627h-0.609c-2.79318,0-4.72727.82412-4.72727,2.86523a1.86412,1.86412,0,0,0,2.11284,1.82635,4.27676,4.27676,0,0,0,3.22344-1.53951V114.538Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M243.44337,109.02257a3.39017,3.39017,0,0,0-1.82632-.39386c-2.11315,0-3.36686,1.86271-3.79676,2.65012v10.99539H233.057V104.83195h4.76331v2.36431a5.16277,5.16277,0,0,1,4.40541-2.79354,4.77608,4.77608,0,0,1,2.36363.46594Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M246.30792,104.83195h5.08548l3.86813,11.497h0.17907l3.54564-11.497h4.90669l-7.19863,19.30392c-1.54019,4.119-3.36686,6.51825-8.12981,6.51825a9.32322,9.32322,0,0,1-2.68612-.32217l0.68038-3.7604a5.485,5.485,0,0,0,1.68325.17879c2.43532,0,3.29481-1.1813,3.97516-3.044l0.64469-1.79031Z",transform:"translate(-31.77892 -24.7154)"}))),i["default"].createElement("g",{className:t+"-lion",fill:u},i["default"].createElement("path",{d:"M111.90871,99.19328c-3.7417-1.83124-8.60114-2.74854-12.13721-4.7124-2.7998-1.55231-4.946-4.11652-7.95886-5.498a60.02908,60.02908,0,0,0-9.468-3.45349c-6.25116-1.53778-11.50183.46472-13.323,1.90582A13.4137,13.4137,0,0,0,64.00112,100.774a15.94352,15.94352,0,0,0,2.55627,6.72852c5.27264,7.447,15.14136,9.86646,22.95953,14.56458a0.50625,0.50625,0,0,0,.73907-0.10187c1.31311-1.93127,2.3808-3.48566,4.59235-4.40546,2.24567-.93738,5.7793-0.619,8.82611-0.47076,3.14771,0.1521,6.54541-.14337,7.68689-1.77087,1.36383-1.94238,1.28436-5.85663-.7973-7.05243-1.117-.64368-2.78278-0.6731-3.9975-1.23328a4.3204,4.3204,0,0,1-2.059-2.24237,4.07459,4.07459,0,0,1-.25964-3.31146c0.489-.88025,1.7226-0.63116,2.71332-0.40076,1.9635,0.45068,5.24432.92871,7.13336,0.1001C114.65114,100.89348,112.66127,99.56114,111.90871,99.19328ZM92.18856,98.119c-0.16821.87573-.7019,2.567-1.55566,2.67712-0.86029.1098-1.48022-.81232-2.09686-1.15808a24.4124,24.4124,0,0,0-3.87262-1.41064c-1.17352-.38867-2.78247-0.87018-3.254-1.98981-0.707-1.66663.94434-2.45544,2.13348-2.82123a12.11641,12.11641,0,0,1,3.40045-.54181c2.1485-.10327,4.19965.20435,4.92053,1.55475A6.49319,6.49319,0,0,1,92.18856,98.119Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M32.83333,104.45157a2.29443,2.29443,0,0,1,.54613-1.31607A34.48454,34.48454,0,0,1,52.806,91.93851c1.50521-.21582,2.58985-0.11156,2.83649.49191,0.43235,1.05764-.4436,1.66732-1.49758,2.27736C35.79955,105.672,37.1,121.9711,36.92438,128.639c0.05527,2.72734-1.91432,3.22379-2.40623,1.93891A48.03813,48.03813,0,0,1,32.83333,104.45157Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M45.24681,80.43961a2.19666,2.19666,0,0,1,1.1785-.73891,30.35514,30.35514,0,0,1,19.20314,1.6337c1.14285,0.50578,1.65764,1.2227.90727,1.704a38.83021,38.83021,0,0,0-5.4445,3.92461,2.4715,2.4715,0,0,1-1.782.35665c-5.96657-.78655-9.06564-1.25111-18.03517,2.149-1.37634.57868-2.61425-.20873-1.98084-1.29042A45.71179,45.71179,0,0,1,45.24681,80.43961Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M56.83993,73.40033c-1.54242-.17563-1.56427-1.30393-0.91213-1.74352a37.79982,37.79982,0,0,1,7.13141-3.67693,3.616,3.616,0,0,1,1.99226-.33359c2.016,0.20181,5.35429,1.55906,9.18483,4.292,4.59371,3.27786,8.68043,9.50494,5.94738,9.0009a25.58659,25.58659,0,0,0-3.00191-.43945c-2.07059-.18361-3.42908.02891-4.3831-0.06825a1.96274,1.96274,0,0,1-1.03614-.55044C67.88555,76.40433,63.4065,74.19781,56.83993,73.40033Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M130.64639,127.82663c-0.41362,1.29077-.90482,2.91-1.9576,2.15892a47.305,47.305,0,0,0-10.51423-5.80672c-0.22586-.05055-0.20021-0.36442-0.12054-0.54143a7.76418,7.76418,0,0,0,.56119-2.05533,5.10548,5.10548,0,0,1,1.01156-1.8083,18.619,18.619,0,0,0,1.89907-6.60278,16.56311,16.56311,0,0,0-.30071-5.24067,10.43877,10.43877,0,0,1-.63877-2.31961c0.01245-.73927.36027-1.51387,0.43164-2.38651,0.20819-2.525-2.97853-4.63025-4.71776-5.44156-3.94536-1.84228-8.13861-3.48984-12.39993-5.73812-2.40556-1.26892-4.33617-4.05224-6.26607-5.546-1.94966-1.50432-8.21587-3.9897-10.72015-4.65121a1.03792,1.03792,0,0,1-.86172-0.86328,25.0259,25.0259,0,0,0-9.3712-14.55086c-1.759-1.36679.21341-2.14416,2.63539-2.26232C117.499,62.86187,139.47112,98.00018,130.64639,127.82663Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M115.14271,110.93761c-0.02739-.19436-0.111-0.85254-0.11036-0.98836a2.60871,2.60871,0,0,1,1.04881-1.08393,10.66027,10.66027,0,0,1,1.47176-1.03614c0.13838-.08695.23019,0.114,0.24892,0.15381,1.40748,2.13671.87988,7.41754-.13721,9.92874-0.11795.25534-.33306,0.35473-0.42089,0.16768a6.365,6.365,0,0,0-2.17328-2.71248,0.53647,0.53647,0,0,1-.16314-0.43959A10.78454,10.78454,0,0,0,115.14271,110.93761Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M97.73573,123.93565a3.07547,3.07547,0,0,1,1.33667-1.817c1.28091-.80333,3.40964-0.838,5.46408-0.97864a17.34326,17.34326,0,0,0,5.53425-.90517c0.85722-.39425,1.71461-1.517,3.03915-0.945a2.19649,2.19649,0,0,1,1.15583,1.41653,5.15178,5.15178,0,0,1,.29759,2.13323c-0.19071,2.46342-2.1913,3.66618-2.55122,5.96884a2.05507,2.05507,0,0,1-.29862,1.07563c-1.52756,1.55473-4.54834,1.22774-7.27933.95267a8.69735,8.69735,0,0,1-2.6051-.43856,5.72964,5.72964,0,0,1-1.302-1.04622,30.722,30.722,0,0,1-2.24377-2.38822,4.156,4.156,0,0,1-1.01465-1.30081A6.83012,6.83012,0,0,1,97.73573,123.93565Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M49.90735,152.96743a8.06424,8.06424,0,0,1-2.0101-2.48694c-4.67633-7.4744-7.29718-33.94506-1.27119-42.92361,1.91762-3.14586,3.94919-1.69538,3.274.73615-1.15409,5.45855-.44672,8.51743,2.20759,14.44054,4.1714,8.80221,17.047,21.02289,20.4556,25.45534,5.84308,7.6015,7.7877,13.13937,7.76138,14.63142-0.03154,1.14459-.25115,1.87413-2.25675,1.70475A50.122,50.122,0,0,1,49.90735,152.96743Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M55.95568,117.26983A21.79207,21.79207,0,0,1,56.26125,99.645c0.7188-1.35484,1.42117-2.24,2.33834-1.985,0.998,0.27818,1.22855,1.29978,1.36626,3.19329,1.01553,15.714,10.52044,21.00487,22.459,26.55281,9.41867,4.81489,20.135,10.31952,29.11613,23.65392,1.35938,1.92507,1.55544,3.09321.02079,4.19587A48.8677,48.8677,0,0,1,93.868,163.29216c-1.09244.25566-2.21933,0.06375-3.187-2.43259C80.59868,134.8822,63.671,136.05311,55.95568,117.26983Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M118.40353,149.20773c-1.535,1.5343-2.40553.3315-2.907-.65371a45.56777,45.56777,0,0,0-7.63545-12.10255,0.78694,0.78694,0,0,1,.72767-1.34444,5.49981,5.49981,0,0,0,3.03671-.493,6.08555,6.08555,0,0,0,2.787-3.94433c0.427-1.50695.447-1.95037,1.37041-2.04423a3.03406,3.03406,0,0,1,.90418.10947,10.91687,10.91687,0,0,1,3.21234,1.91465,31.19354,31.19354,0,0,1,6.22659,6.775,1.79563,1.79563,0,0,1-.19539,1.76708A50.13544,50.13544,0,0,1,118.40353,149.20773Z",transform:"translate(-31.77892 -24.7154)"})))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool,style:s["default"].object},u.defaultProps={className:"nyplLionLogoInverse",title:"The New York Public Library",height:"139",width:"252",viewBox:"0 0 252 139",fill:"#000"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M23.4829,9.5H7.83a1.0143,1.0143,0,1,1,0-2.0285H23.4829A1.0143,1.0143,0,1,1,23.4829,9.5Z"}),i["default"].createElement("path",{d:"M23.4829,19.5285H7.83a1.0143,1.0143,0,1,1,0-2.0285H23.4829A1.0143,1.0143,0,1,1,23.4829,19.5285Z"}),i["default"].createElement("path",{d:"M16.8125,14.5h-9a0.977,0.977,0,0,1-1-.9857A1.0155,1.0155,0,0,1,7.83,12.5h8.7651a1.1951,1.1951,0,0,1,1.2178,1A0.9889,0.9889,0,0,1,16.8125,14.5Z"}),i["default"].createElement("path",{d:"M16.5947,25.4H7.83a1.0143,1.0143,0,1,1,0-2.0285h8.7651A1.0143,1.0143,0,1,1,16.5947,25.4Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"list-icon",title:"NYPL List SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){return"large"===e?i["default"].createElement("g",null,i["default"].createElement("path",{d:"M15.9996,11.594a2.00366,2.00366,0,1,1-2.00366,2.00366A2.00388,2.00388,0,0,1,15.9996,11.594m0-1.68708a3.69114,3.69114,0,1,0,3.69074,3.69074A3.69513,3.69513,0,0,0,15.9996,9.90695"}),i["default"].createElement("path",{d:"M27.23733,10.69471a11.53736,11.53736,0,0,0-2.931-5.21513c-0.03126-.03206-0.0577-0.06732-0.089-0.09938-0.03286-.03286-0.06973-0.06011-0.10259-0.093a11.5287,11.5287,0,0,0-5.22074-2.935,11.3323,11.3323,0,0,0-5.789,0,11.52609,11.52609,0,0,0-5.21994,2.935c-0.03366.03286-.06973,0.06011-0.10259,0.093-0.03206.03206-.05851,0.06732-0.08976,0.09938a11.52831,11.52831,0,0,0-2.93015,5.21513,11.69294,11.69294,0,0,0,0,5.80581,11.52676,11.52676,0,0,0,2.93015,5.21593c0.03126,0.03206.05771,0.06732,0.08976,0.09858,0.03286,0.03366.06893,0.06091,0.10259,0.09377L16,30.02362l8.11482-8.11482c0.03286-.03286.06973-0.06011,0.10259-0.09377,0.03126-.03126.05771-0.06652,0.089-0.09858a11.5358,11.5358,0,0,0,2.931-5.21593,11.693,11.693,0,0,0,0-5.80581M22.79321,20.94463l-3.89912,3.89912L16,27.73784l-2.89489-2.89409L9.206,20.94383l-0.55221-.55221A10.00247,10.00247,0,0,1,8.653,6.8044l0.55381-.553a9.97128,9.97128,0,0,1,13.58562-.0008L23.347,6.8052a10.00228,10.00228,0,0,1-.0008,13.58642Z"})):i["default"].createElement("g",null,i["default"].createElement("path",{d:"M25.70866,11.094a9.9406,9.9406,0,0,0-2.53-4.49511c-0.027-.02763-0.04981-0.058-0.07679-0.08566-0.02837-.02832-0.06019-0.05181-0.08855-0.08013A9.95556,9.95556,0,0,0,18.50669,3.9033a9.79611,9.79611,0,0,0-4.9971,0,9.95331,9.95331,0,0,0-4.5059,2.52975c-0.02906.02832-.06019,0.05181-0.08855,0.08013-0.02767.02763-.0505,0.058-0.07748,0.08566A9.9328,9.9328,0,0,0,6.30831,11.094a10.06419,10.06419,0,0,0,0,5.00424A9.93146,9.93146,0,0,0,8.83765,20.594c0.027,0.02763.04981,0.058,0.07748,0.085,0.02837,0.029.0595,0.0525,0.08855,0.08082l7.0048,6.99447,7.0048-6.99447c0.02837-.02832.06019-0.05181,0.08855-0.08082,0.027-.02694.04981-0.05734,0.07679-0.085a9.93926,9.93926,0,0,0,2.53-4.4958,10.06422,10.06422,0,0,0,0-5.00424m-4.20385,8.54915-3.15475,3.1501-2.34158,2.33813-2.34223-2.33813L10.5115,19.64246l-0.44679-.44613a8.07225,8.07225,0,0,1-.00065-10.97711l0.44808-.44678a8.0764,8.0764,0,0,1,10.992-.00065L21.9529,8.21987a8.0721,8.0721,0,0,1-.00065,10.97646Z"}),i["default"].createElement("circle",{cx:"15.9996",cy:"13.59769",r:"2.00366"}))},l=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.size,l=e.style,c=e.fill,f=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon",style:l,fill:c,"aria-hidden":f},i["default"].createElement("title",null,a),u(s))};l.propTypes={size:s["default"].string,className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,style:s["default"].object,fill:s["default"].string,ariaHidden:s["default"].bool},l.defaultProps={className:"locatorIcon",title:"NYPL Locator SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=l},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden,c=e.preserveAspectRatio,f=e.iconId,d=e.svgRole;return i["default"].createElement("svg",{viewBox:t,height:r,width:n,className:o+" svgIcon",style:s,fill:u,"aria-hidden":l,preserveAspectRatio:c,"aria-labelledby":f,role:d},i["default"].createElement("title",{id:f},a),i["default"].createElement("path",{d:"M16.07184,6.52418c1.24313,0,2.29334,1.39823,2.29334,3.05329s-1.05022,3.05329-2.29334,3.05329S13.7785,11.23252,13.7785,9.57746s1.05022-3.05329,2.29334-3.05329m0-1.8c-2.26069,0-4.09334,2.17289-4.09334,4.85329s1.83265,4.85329,4.09334,4.85329,4.09334-2.17289,4.09334-4.85329-1.83265-4.85329-4.09334-4.85329Z",opacity:"0.85"}),i["default"].createElement("path",{d:"M25.28125,27.34375H21a1,1,0,0,1,0-2h4.28125l-2.377-6.2041a.28873.28873,0,0,0-.10547-.11719,47.03461,47.03461,0,0,0-6.7832-.585,48.40643,48.40643,0,0,0-6.957.6084h.00049c.0249,0-.00244.03418-.02246.085l-2.355,6.14551L11,25.34375a1,1,0,0,1,0,2H6.71826a2.04254,2.04254,0,0,1-1.90088-2.791l2.355-6.14551a2.07691,2.07691,0,0,1,1.57617-1.33789,50.4409,50.4409,0,0,1,7.26709-.63184,48.54187,48.54187,0,0,1,7.11816.61621,2.19071,2.19071,0,0,1,1.63184,1.35352l2.417,6.14551a2.04377,2.04377,0,0,1-1.90137,2.791Z",opacity:"0.85"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool,preserveAspectRatio:s["default"].string,iconId:s["default"].string,svgRole:s["default"].string},u.defaultProps={className:"loginIcon",title:"Log in to your account",width:"32",height:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden,c=e.preserveAspectRatio,f=e.iconId,d=e.svgRole;return i["default"].createElement("svg",{viewBox:t,height:r,width:n,className:o+" svgIcon",style:s,fill:u,"aria-hidden":l,preserveAspectRatio:c,"aria-labelledby":f,role:d},i["default"].createElement("title",{id:f},a),i["default"].createElement("ellipse",{cx:"16.07184",cy:"9.57746",rx:"4.09334",ry:"4.85329"}),i["default"].createElement("path",{d:"M25.25882,27.3451,6.61176,27.33725a2.05352,2.05352,0,0,1-1.87843-2.5451l2.46189-6.50245a2.1203,2.1203,0,0,1,1.34706-1.18431,45.76876,45.76876,0,0,1,7.00567-.657c2.94823,0,5.86851.45206,7.09041.53934a2.20375,2.20375,0,0,1,1.97255,1.1098l2.62353,6.64706A2.01818,2.01818,0,0,1,25.25882,27.3451Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool,preserveAspectRatio:s["default"].string,iconId:s["default"].string,svgRole:s["default"].string},u.defaultProps={className:"loginIcon",title:"You are logged in to your account",width:"32",height:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.style,u=e.ariaHidden;return i["default"].createElement("svg",{viewBox:t,height:r,width:n,className:o+" svgIcon",style:s,"aria-hidden":u},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M35.951 9.268a2.826 2.826 0 1 0-4.084 3.906l5.418 5.664H13.187a2.826 2.826 0 0 0 0 5.652h24.258l-5.742 6.222a2.826 2.826 0 0 0 4.154 3.834l11.916-12.917z"}),i["default"].createElement("path",{d:"M45.173 39.56H5.652V5.653h17.366a2.826 2.826 0 0 0 0-5.652H0v45.212h45.173a2.826 2.826 0 0 0 0-5.651z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool},u.defaultProps={className:"logoutIcon",height:"45.212",title:"NYPL Logout SVG Icon",viewBox:"0 0 47.99 45.212",width:"47.99"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M12.25,16a3.738,3.738,0,0,0,1.09839,2.65161l5.30328-5.30328A3.75,3.75,0,0,0,12.25,16Z",fill:"none"}),i["default"].createElement("path",{d:"M16,19.75a3.75,3.75,0,0,0,2.65167-6.40167l-5.30328,5.30328A3.738,3.738,0,0,0,16,19.75Z"}),i["default"].createElement("path",{d:"M24.4411,7.5589A11.93752,11.93752,0,1,0,27.9375,16,11.90013,11.90013,0,0,0,24.4411,7.5589ZM12.25,16a3.75013,3.75013,0,1,1,1.09839,2.65161A3.75,3.75,0,0,1,12.25,16ZM16,26.9375a10.85556,10.85556,0,0,1-6.99524-2.52808l4.41772-4.41772a4.75228,4.75228,0,0,0,6.56927-6.56927l4.41766-4.41766A10.9387,10.9387,0,0,1,16,26.9375Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"media-blu-ray-icon",title:"NYPL Media/Blu-Ray SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden;return i["default"].createElement("svg",{viewBox:t,width:n,height:r,className:o+" svgIcon",fill:u,style:s,"aria-hidden":l},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M26.22029,10.40244H5.77971a1.09221,1.09221,0,1,1,0-2.18441H26.22029A1.09221,1.09221,0,1,1,26.22029,10.40244Z"}),i["default"].createElement("path",{d:"M26.22029,16.95568H5.77971a1.09221,1.09221,0,0,1,0-2.18441H26.22029A1.09221,1.09221,0,0,1,26.22029,16.95568Z"}),i["default"].createElement("path",{d:"M26.22029,23.782H5.77971a1.09221,1.09221,0,1,1,0-2.18441H26.22029A1.09221,1.09221,0,1,1,26.22029,23.782Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool},u.defaultProps={className:"menuIcon",title:"NYPL Hamburger Menu SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.title,o=e.viewBox,s=e.width;return i["default"].createElement("svg",{"aria-hidden":t,className:r+" svgIcon",height:n,viewBox:o,width:s},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M9.826 45.06l28.026-28.026-6.964-6.964L2.862 38.096 0 47.923l9.826-2.863zM33.409 7.626l2.792-2.792 6.965 6.964-2.793 2.793zM38.243 2.793L41.036 0 48 6.965l-2.792 2.792z"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,title:s["default"].string,width:s["default"].string,viewBox:s["default"].string},u.defaultProps={ariaHidden:!0,className:"filter-cancel-icon",height:"47.923",title:"NYPL Cancel Filter SVG Icon",width:"48",viewBox:"0 0 48 47.923"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.className,r=e.title,n=e.height,a=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden;return i["default"].createElement("svg",{width:a,height:n,viewBox:o,className:t+" svgIcon",fill:s,"aria-hidden":u},i["default"].createElement("title",null,r),i["default"].createElement("path",{d:"M7.96875,4.64844A3.32031,3.32031,0,1,1,4.64844,7.96875,3.32407,3.32407,0,0,1,7.96875,4.64844M7.96875,0A7.96875,7.96875,0,1,0,15.9375,7.96875,7.96875,7.96875,0,0,0,7.96875,0Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"radioActiveIcon",title:"NYPL Radio Active Icon",height:"16px",width:"16px",viewBox:"0 0 16 16",fill:"#000"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.className,r=e.title,n=e.height,a=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden;return i["default"].createElement("svg",{width:a,height:n,viewBox:o,className:t+" svgIcon",fill:s,"aria-hidden":u},i["default"].createElement("title",null,r),i["default"].createElement("path",{d:"M7.96875,1A6.96875,6.96875,0,1,1,1,7.96875,6.97663,6.97663,0,0,1,7.96875,1m0-1A7.96875,7.96875,0,1,0,15.9375,7.96875,7.96873,7.96873,0,0,0,7.96875,0Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"radioInactiveIcon",title:"NYPL Radio Inactive Icon",height:"16px",width:"16px",viewBox:"0 0 16 16",fill:"#000"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.fill,u=e.ariaHidden,l=e.labelledById;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":u,"aria-labelledby":l,fill:s},i["default"].createElement("title",{id:l},a),i["default"].createElement("path",{d:"M10.96075,11l4.60907-3.19434a1,1,0,0,0-1.13965-1.64355L5.939,12.04688l8.83594,6.248a0.99981,0.99981,0,0,0,1.1543-1.63281L10.75061,13H23v8H6a1,1,0,0,0,0,2H25V11H10.96075Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool,labelledById:s["default"].string.isRequired},u.defaultProps={ariaHidden:!0,className:"reset-icon",title:"NYPL Reset SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32",fill:"#000",labelledById:""},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden,u=e.preserveAspectRatio,l=e.iconId,c=e.svgRole;return i["default"].createElement("svg",{viewBox:t,height:r,width:n,className:o+" svgIcon","aria-hidden":s,preserveAspectRatio:u,"aria-labelledby":l,role:c},i["default"].createElement("title",{id:l},a),i["default"].createElement("polygon",{points:"16.959 25.998 27.298 15.707 16.959 5.417 15.026 7.397 22.08 14.548 4.688 14.548 4.687 16.963 22.08 16.963 15.026 24.065 16.959 25.998"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool,preserveAspectRatio:s["default"].string,svgRole:s["default"].string,iconId:s["default"].string},u.defaultProps={ariaHidden:!0,className:"rightArrowIcon",title:"NYPL Right Arrow Icon",width:"32",height:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.fill,a=e.height,o=e.title,s=e.viewBox,u=e.width;return i["default"].createElement("svg",{"aria-hidden":t,className:r+" svgIcon",fill:n,height:a,viewBox:s,width:u},i["default"].createElement("title",null,o),i["default"].createElement("polygon",{points:"13 8.437 20.563 16 13 23.563 11.593 22.155 17.748 16 11.593 9.845 13 8.437"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,fill:s["default"].string,height:s["default"].string,title:s["default"].string,width:s["default"].string,viewBox:s["default"].string},u.defaultProps={ariaHidden:!0,className:"right-wedge-icon",fill:"#000",height:"32",title:"NYPL Right Wedge SVG Icon",width:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden;return i["default"].createElement("svg",{viewBox:t,width:n,height:r,className:o+" svgIcon",fill:u,style:s,"aria-hidden":l},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M25.26014,23.627l-3.76-3.75948a8.53632,8.53632,0,1,0-2.07145,1.85393l3.86877,3.86822A1.38781,1.38781,0,0,0,25.26014,23.627ZM9.109,14.52943a5.75012,5.75012,0,1,1,5.75012,5.74948A5.75662,5.75662,0,0,1,9.109,14.52943Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool},u.defaultProps={ariaHidden:!0,className:"searchIcon",title:"NYPL Search SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width;return i["default"].createElement("svg",{"aria-hidden":t,"aria-labelledby":a,className:r+" svgIcon",height:n,preserveAspectRatio:o,viewBox:u,width:l},i["default"].createElement("title",{id:a},s),i["default"].createElement("path",{d:"M45.163 50.301l-6.19-32.137a6.754 6.754 0 0 0-6.75-5.289h-.07V6.25A6.25 6.25 0 0 0 25.902 0h-6.5a6.25 6.25 0 0 0-6.25 6.25v6.625h-.102a6.754 6.754 0 0 0-6.75 5.289L.11 50.3a6.568 6.568 0 0 0 6.75 7.574h31.551a6.568 6.568 0 0 0 6.75-7.574zM17.682 6.671a2.235 2.235 0 0 1 2.234-2.234h5.533a2.235 2.235 0 0 1 2.234 2.235v6.203H17.682zm22.925 46.492a2.891 2.891 0 0 1-2.195.962H6.862a2.89 2.89 0 0 1-2.195-.962 2.535 2.535 0 0 1-.62-2.196l6.19-32.137a2.814 2.814 0 0 1 2.814-2.205h.101v5.57a2.235 2.235 0 0 0 2.243 2.234h.06a2.235 2.235 0 0 0 2.227-2.234v-5.57h10.001v5.518a2.235 2.235 0 1 0 4.47 0v-5.518h.07a2.814 2.814 0 0 1 2.814 2.205l6.19 32.137a2.535 2.535 0 0 1-.62 2.196z"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,iconId:s["default"].string.isRequired,preserveAspectRatio:s["default"].string,title:s["default"].string,viewBox:s["default"].string,width:s["default"].string},u.defaultProps={ariaHidden:!0,className:"shopping-bag-icon",height:"45.274",preserveAspectRatio:"xMidYMid meet",title:"shop",viewBox:"0 0 45.274 57.875",width:"57.875"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.className,r=e.title,n=e.height,a=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden;return i["default"].createElement("svg",{width:a,height:n,viewBox:o,className:t+" svgIcon",fill:s,"aria-hidden":u},i["default"].createElement("title",null,r),i["default"].createElement("circle",{cx:"6",cy:"6",r:"6",fill:s}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"smallDotClosedIcon",title:"NYPL Small Dot Closed Icon",height:"12px",width:"12px",viewBox:"0 0 12 12",fill:"#010101"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.className,r=e.title,n=e.height,a=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden;return i["default"].createElement("svg",{width:a,height:n,viewBox:o,className:t+" svgIcon",fill:s,"aria-hidden":u},i["default"].createElement("title",null,r),i["default"].createElement("path",{d:"M6,2A4,4,0,1,1,2,6,4.00454,4.00454,0,0,1,6,2M6,0a6,6,0,1,0,6,6A6,6,0,0,0,6,0Z",fill:s}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"smallDotOpenIcon",title:"NYPL Small Dot Open Icon",height:"12px",width:"12px",viewBox:"0 0 12 12",fill:"#010101"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M26.45536,26.45536H16.80078L4.92843,14.58216l9.65373-9.65373,11.8732,11.87235v9.65458ZM17.87606,23.859h5.983v-5.983L14.58216,8.5992l-5.983,5.983Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"tag-icon",title:"NYPL Tag SVG Icon",width:"24",height:"24",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width;return i["default"].createElement("svg",{"aria-hidden":t,"aria-labelledby":a,className:r+" svgIcon",height:n,preserveAspectRatio:o,title:s,viewBox:u,width:l},i["default"].createElement("title",{id:a},s),i["default"].createElement("path",{d:"M68,6.51074a27.99231,27.99231,0,0,1-8.01276,2.18635,13.937,13.937,0,0,0,6.13419-7.68177,28.01282,28.01282,0,0,1-8.859,3.36949A13.94135,13.94135,0,0,0,33.48906,17.04873,39.66941,39.66941,0,0,1,4.73387,2.54149,13.85672,13.85672,0,0,0,9.05141,21.0789a13.94473,13.94473,0,0,1-6.319-1.73673c-.001.058-.0012.11605-.0012.17455a13.91,13.91,0,0,0,11.1911,13.61485,14.05089,14.05089,0,0,1-6.30034.23787,13.95724,13.95724,0,0,0,13.03232,9.6428A28.07735,28.07735,0,0,1,3.328,48.95584,28.53232,28.53232,0,0,1,0,48.762,39.625,39.625,0,0,0,21.38562,55c25.66113,0,39.69344-21.15722,39.69344-39.50546q0-.90295-.04031-1.79619A28.279,28.279,0,0,0,68,6.51074Z"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,iconId:s["default"].string.isRequired,preserveAspectRatio:s["default"].string,title:s["default"].string,viewBox:s["default"].string,width:s["default"].string},u.defaultProps={ariaHidden:!0,className:"twitter-icon",height:"68",preserveAspectRatio:"xMidYMid meet",title:"Twitter",viewBox:"0 0 68 55",width:"55"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width;return i["default"].createElement("svg",{"aria-hidden":t,"aria-labelledby":a,className:r+" svgIcon",height:n,preserveAspectRatio:o,viewBox:u,width:l},i["default"].createElement("title",{id:a},s),i["default"].createElement("g",null,i["default"].createElement("path",{d:"M52.36107,47.9805,65.04781,35.29375a2.97433,2.97433,0,1,0-4.20634-4.20634L48.18214,43.74674,35.509,30.90731a2.97542,2.97542,0,0,0-4.23539,4.1802L43.97471,47.95417,31.095,60.83392a2.97433,2.97433,0,1,0,4.20634,4.20634L48.154,52.18757,60.82695,65.02573a2.9744,2.9744,0,0,0,4.23539-4.17729Z"}),i["default"].createElement("path",{d:"M48.07141,96.142A48.0713,48.0713,0,1,1,82.07922,82.07849h0A47.94915,47.94915,0,0,1,48.07141,96.142Zm0-90.48193A42.41114,42.41114,0,1,0,78.07532,18.06775,42.29216,42.29216,0,0,0,48.07141,5.66Z"})))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,iconId:s["default"].string.isRequired,preserveAspectRatio:s["default"].string,title:s["default"].string,viewBox:s["default"].string,width:s["default"].string},u.defaultProps={ariaHidden:!0,className:"x-close-circle-icon",height:"48",preserveAspectRatio:"xMidYMid meet",title:"close",viewBox:"0 0 98 98",width:"48"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden,c=e.preserveAspectRatio,f=e.iconId,d=e.svgRole;return i["default"].createElement("svg",{viewBox:t,height:r,width:n,className:o+" svgIcon",style:s,fill:u,"aria-hidden":l,preserveAspectRatio:c,"aria-labelledby":f,role:d},i["default"].createElement("title",{id:f},a),i["default"].createElement("path",{d:"M17.91272,15.97339l5.65689-5.65689A1.32622,1.32622,0,0,0,21.694,8.44093L16.04938,14.0856l-5.65082-5.725A1.32671,1.32671,0,1,0,8.51,10.22454l5.66329,5.73712L8.43038,21.7046a1.32622,1.32622,0,1,0,1.87557,1.87557l5.73088-5.73088,5.65074,5.72441a1.32626,1.32626,0,1,0,1.88852-1.86261Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool,preserveAspectRatio:s["default"].string,iconId:s["default"].string,svgRole:s["default"].string},u.defaultProps={ariaHidden:!0,className:"x-icon",title:"Close Icon",fill:"#000",height:"32",width:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ShoppingBagIcon=t.PencilIcon=t.LibraryCardIcon=t.EnvelopeIcon=t.TwitterIcon=t.FaceBookIcon=t.RightArrowIcon=t.LeftArrowIcon=t.GenericWedgeIcon=t.BuildingIcon=t.SmallDotOpenIcon=t.SmallDotClosedIcon=t.RadioActiveIcon=t.RadioInactiveIcon=t.LeftWedgeIcon=t.RightWedgeIcon=t.DivideLineIcon=t.CheckSoloIcon=t.SearchIcon=t.LogoutIcon=t.LoginIconSolid=t.LoginIcon=t.MenuIcon=t.LocatorIcon=t.TagIcon=t.EReaderIcon=t.LargePrintIcon=t.DvdDiscIcon=t.AudioDiscIcon=t.MediaBluRayIcon=t.AudioHeadphoneIcon=t.CircleDashIcon=t.ResetIcon=t.DownLoadIcon=t.ApplyIcon=t.GridIcon=t.ListIcon=t.FilterCancelIcon=t.FilterIcon=t.XCloseIcon=t.XIcon=t.DotsIcon=t.BookIcon=t.CarouselCircleIcon=t.LionLogoWithTextInverse=t.LionLogoWithText=t.LionLogoIcon=void 0;var a=r(31),i=n(a),o=r(32),s=n(o),u=r(33),l=n(u),c=r(13),f=n(c),d=r(11),p=n(d),h=r(17),v=n(h),m=r(54),y=n(m),g=r(53),b=n(g),A=r(24),_=n(A),w=r(23),E=n(w),x=r(34),k=n(x),M=r(26),S=n(M),O=r(8),D=n(O),T=r(18),L=n(T),C=r(44),j=n(C),N=r(15),I=n(N),P=r(10),R=n(P),F=r(39),Y=n(F),B=r(9),H=n(B),z=r(19),U=n(z),q=r(27),V=n(q),W=r(20),K=n(W),G=r(51),Q=n(G),J=r(35),Z=n(J),X=r(40),$=n(X),ee=r(36),te=n(ee),re=r(37),ne=n(re),ae=r(38),ie=n(ae),oe=r(47),se=n(oe),ue=r(14),le=n(ue),ce=r(16),fe=n(ce),de=r(46),pe=n(de),he=r(29),ve=n(he),me=r(43),ye=n(me),ge=r(42),be=n(ge),Ae=r(49),_e=n(Ae),we=r(50),Ee=n(we),xe=r(12),ke=n(xe),Me=r(25),Se=n(Me),Oe=r(28),De=n(Oe),Te=r(45),Le=n(Te),Ce=r(22),je=n(Ce),Ne=r(52),Ie=n(Ne),Pe=r(21),Re=n(Pe),Fe=r(30),Ye=n(Fe),Be=r(41),He=n(Be),ze=r(48),Ue=n(ze);t.LionLogoIcon=i["default"],t.LionLogoWithText=s["default"],t.LionLogoWithTextInverse=l["default"],t.CarouselCircleIcon=f["default"],t.BookIcon=p["default"],t.DotsIcon=v["default"],t.XIcon=y["default"],t.XCloseIcon=b["default"],t.FilterIcon=_["default"],t.FilterCancelIcon=E["default"],t.ListIcon=k["default"],t.GridIcon=S["default"],t.ApplyIcon=D["default"],t.DownLoadIcon=L["default"],t.ResetIcon=j["default"],t.CircleDashIcon=I["default"],t.AudioHeadphoneIcon=R["default"],t.MediaBluRayIcon=Y["default"],t.AudioDiscIcon=H["default"],t.DvdDiscIcon=U["default"],t.LargePrintIcon=V["default"],t.EReaderIcon=K["default"],t.TagIcon=Q["default"],t.LocatorIcon=Z["default"],t.MenuIcon=$["default"],t.LoginIcon=te["default"],t.LoginIconSolid=ne["default"],t.LogoutIcon=ie["default"],t.SearchIcon=se["default"],t.CheckSoloIcon=le["default"],t.DivideLineIcon=fe["default"],t.RightWedgeIcon=pe["default"],t.LeftWedgeIcon=ve["default"],t.RadioInactiveIcon=ye["default"],t.RadioActiveIcon=be["default"],t.SmallDotClosedIcon=_e["default"],t.SmallDotOpenIcon=Ee["default"],t.BuildingIcon=ke["default"],t.GenericWedgeIcon=Se["default"],t.LeftArrowIcon=De["default"],t.RightArrowIcon=Le["default"],t.FaceBookIcon=je["default"],t.TwitterIcon=Ie["default"],t.EnvelopeIcon=Re["default"],t.LibraryCardIcon=Ye["default"],t.PencilIcon=He["default"],t.ShoppingBagIcon=Ue["default"]},function(e,t,r){(function(t){"use strict";function n(e,r,n,u,l){if("production"!==t.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var f;try{a("function"==typeof e[c],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",u||"React class",n,c),f=e[c](r,c,u,n,null,o)}catch(e){f=e}if(i(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",n,c,typeof f),f instanceof Error&&!(f.message in s)){s[f.message]=!0;var d=l?l():"";i(!1,"Failed %s type: %s%s",n,f.message,null!=d?d:"")}}}if("production"!==t.env.NODE_ENV)var a=r(5),i=r(7),o=r(6),s={};e.exports=n}).call(t,r(3))},function(e,t,r){"use strict";var n=r(4),a=r(5),i=r(6);e.exports=function(){function e(e,t,r,n,o,s){s!==i&&a(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return r.checkPropTypes=n,r.PropTypes=r,r}},function(e,t,r){(function(t){"use strict";var n=r(4),a=r(5),i=r(7),o=r(6),s=r(56);e.exports=function(e,r){function u(e){var t=e&&(O&&e[O]||e[D]);if("function"==typeof t)return t}function l(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function c(e){this.message=e,this.stack=""}function f(e){function n(n,l,f,d,p,h,v){if(d=d||T,h=h||f,v!==o)if(r)a(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var m=d+":"+f;!s[m]&&u<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",h,d),s[m]=!0,u++)}return null==l[f]?n?new c(null===l[f]?"The "+p+" `"+h+"` is marked as required "+("in `"+d+"`, but its value is `null`."):"The "+p+" `"+h+"` is marked as required in "+("`"+d+"`, but its value is `undefined`.")):null:e(l,f,d,p,h)}if("production"!==t.env.NODE_ENV)var s={},u=0;var l=n.bind(null,!1);return l.isRequired=n.bind(null,!0),l}function d(e){function t(t,r,n,a,i,o){var s=t[r],u=x(s);if(u!==e){var l=k(s);return new c("Invalid "+a+" `"+i+"` of type "+("`"+l+"` supplied to `"+n+"`, expected ")+("`"+e+"`."))}return null}return f(t)}function p(){return f(n.thatReturnsNull)}function h(e){function t(t,r,n,a,i){if("function"!=typeof e)return new c("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s)){var u=x(s);return new c("Invalid "+a+" `"+i+"` of type "+("`"+u+"` supplied to `"+n+"`, expected an array."))}for(var l=0;l<s.length;l++){var f=e(s,l,n,a,i+"["+l+"]",o);if(f instanceof Error)return f}return null}return f(t)}function v(){function t(t,r,n,a,i){var o=t[r];if(!e(o)){var s=x(o);return new c("Invalid "+a+" `"+i+"` of type "+("`"+s+"` supplied to `"+n+"`, expected a single ReactElement."))}return null}return f(t)}function m(e){function t(t,r,n,a,i){if(!(t[r]instanceof e)){var o=e.name||T,s=S(t[r]);return new c("Invalid "+a+" `"+i+"` of type "+("`"+s+"` supplied to `"+n+"`, expected ")+("instance of `"+o+"`."))}return null}return f(t)}function y(e){function r(t,r,n,a,i){for(var o=t[r],s=0;s<e.length;s++)if(l(o,e[s]))return null;var u=JSON.stringify(e);return new c("Invalid "+a+" `"+i+"` of value `"+o+"` "+("supplied to `"+n+"`, expected one of "+u+"."))}return Array.isArray(e)?f(r):("production"!==t.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOf, expected an instance of array."):void 0,n.thatReturnsNull)}function g(e){function t(t,r,n,a,i){if("function"!=typeof e)return new c("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var s=t[r],u=x(s);if("object"!==u)return new c("Invalid "+a+" `"+i+"` of type "+("`"+u+"` supplied to `"+n+"`, expected an object."));for(var l in s)if(s.hasOwnProperty(l)){var f=e(s,l,n,a,i+"."+l,o);if(f instanceof Error)return f}return null}return f(t)}function b(e){function r(t,r,n,a,i){for(var s=0;s<e.length;s++){var u=e[s];if(null==u(t,r,n,a,i,o))return null}return new c("Invalid "+a+" `"+i+"` supplied to "+("`"+n+"`."))}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."):void 0,n.thatReturnsNull;for(var a=0;a<e.length;a++){var s=e[a];if("function"!=typeof s)return i(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",M(s),a),n.thatReturnsNull}return f(r)}function A(){function e(e,t,r,n,a){return w(e[t])?null:new c("Invalid "+n+" `"+a+"` supplied to "+("`"+r+"`, expected a ReactNode."))}return f(e)}function _(e){function t(t,r,n,a,i){var s=t[r],u=x(s);if("object"!==u)return new c("Invalid "+a+" `"+i+"` of type `"+u+"` "+("supplied to `"+n+"`, expected `object`."));for(var l in e){var f=e[l];if(f){var d=f(s,l,n,a,i+"."+l,o);if(d)return d}}return null}return f(t)}function w(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(w);if(null===t||e(t))return!0;var r=u(t);if(!r)return!1;var n,a=r.call(t);if(r!==t.entries){for(;!(n=a.next()).done;)if(!w(n.value))return!1}else for(;!(n=a.next()).done;){var i=n.value;if(i&&!w(i[1]))return!1}return!0;default:return!1}}function E(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}function x(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":E(t,e)?"symbol":t}function k(e){if("undefined"==typeof e||null===e)return""+e;var t=x(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function M(e){var t=k(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function S(e){return e.constructor&&e.constructor.name?e.constructor.name:T}var O="function"==typeof Symbol&&Symbol.iterator,D="@@iterator",T="<<anonymous>>",L={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:p(),arrayOf:h,element:v(),instanceOf:m,node:A(),objectOf:g,oneOf:y,oneOfType:b,shape:_};return c.prototype=Error.prototype,L.checkPropTypes=s,L.PropTypes=L,L}}).call(t,r(3))}])}))},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(49);var i=r(150);var o=r(10);var s=o.List,u=o.Map,l=o.OrderedSet,c=o.Record,f=o.Repeat;var d=l();var p={key:"",type:"unstyled",text:"",characterList:s(),depth:0,data:u()};var h=c(p);var v=function e(t){if(!t){return t}var r=t.characterList,n=t.text;if(n&&!r){t.characterList=s(f(a.EMPTY,n.length))}return t};var m=function(e){n(t,e);function t(t){return e.call(this,v(t))||this}var r=t.prototype;r.getKey=function e(){return this.get("key")};r.getType=function e(){return this.get("type")};r.getText=function e(){return this.get("text")};r.getCharacterList=function e(){return this.get("characterList")};r.getLength=function e(){return this.getText().length};r.getDepth=function e(){return this.get("depth")};r.getData=function e(){return this.get("data")};r.getInlineStyleAt=function e(t){var r=this.getCharacterList().get(t);return r?r.getStyle():d};r.getEntityAt=function e(t){var r=this.getCharacterList().get(t);return r?r.getEntity():null};r.findStyleRanges=function e(t,r){i(this.getCharacterList(),y,t,r)};r.findEntityRanges=function e(t,r){i(this.getCharacterList(),g,t,r)};return t}(h);function y(e,t){return e.getStyle()===t.getStyle()}function g(e,t){return e.getEntity()===t.getEntity()}e.exports=m},function(e,t,r){"use strict";function n(e){if(typeof e=="object"){return Object.keys(e).filter((function(t){return e[t]})).map(a).join(" ")}return Array.prototype.map.call(arguments,a).join(" ")}function a(e){return e.replace(/\//g,"-")}e.exports=n},function(e,t,r){"use strict";function n(e){if(!e||!e.ownerDocument){return false}return e.nodeType===Node.ELEMENT_NODE}e.exports=n},function(e,t,r){"use strict";var n=r(15);var a=55296;var i=56319;var o=56320;var s=57343;var u=/[\uD800-\uDFFF]/;function l(e){return a<=e&&e<=s}function c(e,t){!(0<=t&&t<e.length)?false?undefined:n(false):void 0;if(t+1===e.length){return false}var r=e.charCodeAt(t);var u=e.charCodeAt(t+1);return a<=r&&r<=i&&o<=u&&u<=s}function f(e){return u.test(e)}function d(e,t){return 1+l(e.charCodeAt(t))}function p(e){if(!f(e)){return e.length}var t=0;for(var r=0;r<e.length;r+=d(e,r)){t++}return t}function h(e,t,r){t=t||0;r=r===undefined?Infinity:r||0;if(!f(e)){return e.substr(t,r)}var n=e.length;if(n<=0||t>n||r<=0){return""}var a=0;if(t>0){for(;t>0&&a<n;t--){a+=d(e,a)}if(a>=n){return""}}else if(t<0){for(a=n;t<0&&0<a;t++){a-=d(e,a-1)}if(a<0){a=0}}var i=n;if(r<n){for(i=a;r>0&&i<n;r--){i+=d(e,i)}}return e.substring(a,i)}function v(e,t,r){t=t||0;r=r===undefined?Infinity:r||0;if(t<0){t=0}if(r<0){r=0}var n=Math.abs(r-t);t=t<r?t:r;return h(e,t,n)}function m(e){var t=[];for(var r=0;r<e.length;r+=d(e,r)){t.push(e.codePointAt(r))}return t}var y={getCodePoints:m,getUTF16Length:d,hasSurrogateUnit:f,isCodeUnitInSurrogateRange:l,isSurrogatePair:c,strlen:p,substring:v,substr:h};e.exports=y},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:"44",height:"58",viewBox:"0 0 44 58","aria-hidden":"true"},n.createElement("title",null,"Trash Icon"),n.createElement("g",null,n.createElement("polygon",{points:"1 13 6 58 22 58 38 58 43 13 22 13 1 13"}),n.createElement("path",{d:"M30,7V2a2,2,0,0,0-2-2H16a2,2,0,0,0-2,2V7H0v3H44V7ZM27,7H17V3H27Z"})))};t.default=a},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return true}}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(575);var a=r(187);e.exports=function(e){return n(a(e))}},function(e,t,r){var n=r(4),a=r(286);function i(e){return e!=null&&a(e.length)&&!n(e)}e.exports=i},function(e,t){function r(e){return e}e.exports=r},function(e,t,r){var n=r(1040),a=r(1043);function i(e,t){var r=a(e,t);return n(r)?r:undefined}e.exports=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(0);var o=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.handleSelect=r.handleSelect.bind(r);r.currentTab=r.currentTab.bind(r);r.defaultTab=r.defaultTab.bind(r);r.tabs=r.tabs.bind(r);r.tabClass=r.tabClass.bind(r);r.tabDisplayName=r.tabDisplayName.bind(r);r.renderTab=r.renderTab.bind(r);return r}t.prototype.render=function(){var e=this;var t=this.props.class?"tab-container "+this.props.class:"tab-container";return a.createElement("div",{className:t},a.createElement("ul",{className:"nav nav-tabs"},Object.keys(this.tabs()).map((function(t){return a.createElement("li",{key:t,role:"presentation",className:e.tabClass(t)},a.createElement("a",{href:"javascript:void(0)",onClick:e.handleSelect,"data-tabkey":t},e.tabDisplayName(t)))}))),a.createElement("div",{className:"tab-content"},Object.keys(this.tabs()).map((function(t){return e.renderTab(t,e.tabs()[t])}))))};t.prototype.defaultTab=function(){return Object.keys(this.tabs())[0]};t.prototype.currentTab=function(){return this.props.tab||this.defaultTab()};t.prototype.tabClass=function(e){return this.currentTab()===e?"active":null};t.prototype.tabDisplayName=function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);return t};t.prototype.renderTab=function(e,t){var r=this.currentTab()===e?"block":"none";return a.createElement("div",{style:{display:r},key:e},t)};t.contextTypes={router:i.object.isRequired,pathFor:i.func.isRequired};return t}(a.Component);t.TabContainer=o;t.default=o},function(e,t,r){e.exports={default:r(580),__esModule:true}},function(e,t,r){"use strict";t.__esModule=true;var n=r(1142);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=a.default||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(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(112);var a=s(n);var i=r(52);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((function(e,t){return(0,a.default)(t).map((function(e){return t[e]})).filter((function(t){return e.id===t.droppableId})).sort((function(t,r){return t.page.withoutMargin.center[e.axis.line]-r.page.withoutMargin.center[e.axis.line]}))}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function e(t){return"private-drag-drop-key-do-not-use-store-"+t};var a=t.storeKey=n("store");var i=t.droppableIdKey=n("droppable-id")},function(e,t,r){"use strict";r.r(t);r.d(t,"Accordion",(function(){return pe}));r.d(t,"Alert",(function(){return Ee}));r.d(t,"Badge",(function(){return Se}));r.d(t,"Breadcrumb",(function(){return Ue}));r.d(t,"BreadcrumbItem",(function(){return He}));r.d(t,"Button",(function(){return Ke}));r.d(t,"ButtonGroup",(function(){return $e}));r.d(t,"ButtonToolbar",(function(){return tt}));r.d(t,"Carousel",(function(){return At}));r.d(t,"CarouselItem",(function(){return pt}));r.d(t,"Checkbox",(function(){return kt}));r.d(t,"Clearfix",(function(){return Tt}));r.d(t,"CloseButton",(function(){return be}));r.d(t,"ControlLabel",(function(){return It}));r.d(t,"Col",(function(){return Yt}));r.d(t,"Collapse",(function(){return er}));r.d(t,"Dropdown",(function(){return Sr}));r.d(t,"DropdownButton",(function(){return Lr}));r.d(t,"Fade",(function(){return Rr}));r.d(t,"Form",(function(){return Hr}));r.d(t,"FormControl",(function(){return en}));r.d(t,"FormGroup",(function(){return an}));r.d(t,"Glyphicon",(function(){return mt}));r.d(t,"Grid",(function(){return ln}));r.d(t,"HelpBlock",(function(){return fn}));r.d(t,"Image",(function(){return vn}));r.d(t,"InputGroup",(function(){return _n}));r.d(t,"Jumbotron",(function(){return kn}));r.d(t,"Label",(function(){return Sn}));r.d(t,"ListGroup",(function(){return In}));r.d(t,"ListGroupItem",(function(){return Ln}));r.d(t,"Media",(function(){return na}));r.d(t,"MenuItem",(function(){return sa}));r.d(t,"Modal",(function(){return Wa}));r.d(t,"ModalBody",(function(){return Ea}));r.d(t,"ModalDialog",(function(){return Ma}));r.d(t,"ModalFooter",(function(){return Ta}));r.d(t,"ModalHeader",(function(){return Ia}));r.d(t,"ModalTitle",(function(){return Ya}));r.d(t,"Nav",(function(){return Za}));r.d(t,"Navbar",(function(){return yi}));r.d(t,"NavbarBrand",(function(){return ei}));r.d(t,"NavDropdown",(function(){return Ai}));r.d(t,"NavItem",(function(){return xi}));r.d(t,"Overlay",(function(){return Ti}));r.d(t,"OverlayTrigger",(function(){return Fi}));r.d(t,"PageHeader",(function(){return Bi}));r.d(t,"PageItem",(function(){return Qi}));r.d(t,"Pager",(function(){return Xi}));r.d(t,"Pagination",(function(){return lo}));r.d(t,"Panel",(function(){return Ko}));r.d(t,"PanelGroup",(function(){return fe}));r.d(t,"Popover",(function(){return Zo}));r.d(t,"ProgressBar",(function(){return as}));r.d(t,"Radio",(function(){return us}));r.d(t,"ResponsiveEmbed",(function(){return ds}));r.d(t,"Row",(function(){return ms}));r.d(t,"SafeAnchor",(function(){return Re}));r.d(t,"SplitButton",(function(){return _s}));r.d(t,"Tab",(function(){return zs}));r.d(t,"TabContainer",(function(){return Os}));r.d(t,"TabContent",(function(){return Ns}));r.d(t,"Table",(function(){return Ws}));r.d(t,"TabPane",(function(){return Ys}));r.d(t,"Tabs",(function(){return Xs}));r.d(t,"Thumbnail",(function(){return tu}));r.d(t,"ToggleButton",(function(){return au}));r.d(t,"ToggleButtonGroup",(function(){return lu}));r.d(t,"Tooltip",(function(){return pu}));r.d(t,"Well",(function(){return vu}));r.d(t,"utils",(function(){return a}));var n={};r.r(n);r.d(n,"prefix",(function(){return I}));r.d(n,"bsClass",(function(){return P}));r.d(n,"bsStyles",(function(){return R}));r.d(n,"bsSizes",(function(){return F}));r.d(n,"getClassSet",(function(){return Y}));r.d(n,"splitBsProps",(function(){return z}));r.d(n,"splitBsPropsAndOmit",(function(){return U}));r.d(n,"addStyle",(function(){return q}));r.d(n,"_curry",(function(){return V}));var a={};r.r(a);r.d(a,"bootstrapUtils",(function(){return n}));r.d(a,"createChainedFunction",(function(){return Ce}));r.d(a,"ValidComponentChildren",(function(){return ee}));var i=r(217);var o=r.n(i);function s(){s=o.a||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 s.apply(this,arguments)}var u=r(672);var l=r.n(u);var c=r(673);var f=r.n(c);function d(e,t){d=f.a||function e(t,r){t.__proto__=r;return t};return d(e,t)}function p(e,t){e.prototype=l()(t.prototype);e.prototype.constructor=e;d(e,t)}var h=r(1);var v=r.n(h);var m=r(674);var y=r.n(m);function g(e,t){if(e==null)return{};var r={};var n=y()(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 b=r(2);var A=r.n(b);var _=r(0);var w=r.n(_);var E=r(39);var x=r.n(E);var k=r(166);var M=r.n(k);var S=r(8);var O=r.n(S);var D={LARGE:"large",SMALL:"small",XSMALL:"xsmall"};var T={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"};var L=["lg","md","sm","xs"];var C={SUCCESS:"success",WARNING:"warning",DANGER:"danger",INFO:"info"};var j={DEFAULT:"default",PRIMARY:"primary",LINK:"link",INVERSE:"inverse"};function N(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++){r[n]=arguments[n]}var a=r[r.length-1];if(typeof a==="function"){return e.apply(void 0,r)}return function(t){return e.apply(void 0,r.concat([t]))}}}function I(e,t){var r=(e.bsClass||"").trim();!(r!=null)?false?undefined:O()(false):void 0;return r+(t?"-"+t:"")}var P=N((function(e,t){var r=t.propTypes||(t.propTypes={});var n=t.defaultProps||(t.defaultProps={});r.bsClass=w.a.string;n.bsClass=e;return t}));var R=N((function(e,t,r){if(typeof t!=="string"){r=t;t=undefined}var n=r.STYLES||[];var a=r.propTypes||{};e.forEach((function(e){if(n.indexOf(e)===-1){n.push(e)}}));var i=w.a.oneOf(n);r.STYLES=n;i._values=n;r.propTypes=s({},a,{bsStyle:i});if(t!==undefined){var o=r.defaultProps||(r.defaultProps={});o.bsStyle=t}return r}));var F=N((function(e,t,r){if(typeof t!=="string"){r=t;t=undefined}var n=r.SIZES||[];var a=r.propTypes||{};e.forEach((function(e){if(n.indexOf(e)===-1){n.push(e)}}));var i=[];n.forEach((function(e){var t=T[e];if(t&&t!==e){i.push(t)}i.push(e)}));var o=w.a.oneOf(i);o._values=i;r.SIZES=n;r.propTypes=s({},a,{bsSize:o});if(t!==undefined){if(!r.defaultProps){r.defaultProps={}}r.defaultProps.bsSize=t}return r}));function Y(e){var t;var r=(t={},t[I(e)]=true,t);if(e.bsSize){var n=T[e.bsSize]||e.bsSize;r[I(e,n)]=true}if(e.bsStyle){r[I(e,e.bsStyle)]=true}return r}function B(e){return{bsClass:e.bsClass,bsSize:e.bsSize,bsStyle:e.bsStyle,bsRole:e.bsRole}}function H(e){return e==="bsClass"||e==="bsSize"||e==="bsStyle"||e==="bsRole"}function z(e){var t={};M()(e).forEach((function(e){var r=e[0],n=e[1];if(!H(r)){t[r]=n}}));return[B(e),t]}function U(e,t){var r={};t.forEach((function(e){r[e]=true}));var n={};M()(e).forEach((function(e){var t=e[0],a=e[1];if(!H(t)&&!r[t]){n[t]=a}}));return[B(e),n]}function q(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++){r[n-1]=arguments[n]}R(r,e)}var V=N;function W(e,t,r){var n=0;return v.a.Children.map(e,(function(e){if(!v.a.isValidElement(e)){return e}return t.call(r,e,n++)}))}function K(e,t,r){var n=0;v.a.Children.forEach(e,(function(e){if(!v.a.isValidElement(e)){return}t.call(r,e,n++)}))}function G(e){var t=0;v.a.Children.forEach(e,(function(e){if(!v.a.isValidElement(e)){return}++t}));return t}function Q(e,t,r){var n=0;var a=[];v.a.Children.forEach(e,(function(e){if(!v.a.isValidElement(e)){return}if(t.call(r,e,n++)){a.push(e)}}));return a}function J(e,t,r){var n=0;var a;v.a.Children.forEach(e,(function(e){if(a){return}if(!v.a.isValidElement(e)){return}if(t.call(r,e,n++)){a=e}}));return a}function Z(e,t,r){var n=0;var a=true;v.a.Children.forEach(e,(function(e){if(!a){return}if(!v.a.isValidElement(e)){return}if(!t.call(r,e,n++)){a=false}}));return a}function X(e,t,r){var n=0;var a=false;v.a.Children.forEach(e,(function(e){if(a){return}if(!v.a.isValidElement(e)){return}if(t.call(r,e,n++)){a=true}}));return a}function $(e){var t=[];v.a.Children.forEach(e,(function(e){if(!v.a.isValidElement(e)){return}t.push(e)}));return t}var ee={map:W,forEach:K,count:G,find:J,filter:Q,every:Z,some:X,toArray:$};var te=r(140);var re=r.n(te);var ne=w.a.oneOfType([w.a.string,w.a.number]);function ae(e){return function(t){var r=null;if(!t.generateChildId){for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++){a[i-1]=arguments[i]}r=ne.apply(void 0,[t].concat(a));if(!r&&!t.id){r=new Error("In order to properly initialize the "+e+" in a way that is accessible to assistive technologies "+("(such as screen readers) an `id` or a `generateChildId` prop to "+e+" is required"))}}return r}}function ie(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return re()((function(e,r,n){var a;t.every((function(t){if(!ee.some(e.children,(function(e){return e.props.bsRole===t}))){a=t;return false}return true}));if(a){return new Error("(children) "+n+" - Missing a required child with bsRole: "+(a+". "+n+" must have at least one child of each of ")+("the following bsRoles: "+t.join(", ")))}return null}))}function oe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return re()((function(e,r,n){var a;t.every((function(t){var r=ee.filter(e.children,(function(e){return e.props.bsRole===t}));if(r.length>1){a=t;return false}return true}));if(a){return new Error("(children) "+n+" - Duplicate children detected of bsRole: "+(a+". Only one child each allowed with the following ")+("bsRoles: "+t.join(", ")))}return null}))}var se={accordion:w.a.bool,activeKey:w.a.any,onSelect:w.a.func,role:w.a.string,generateChildId:w.a.func,id:ae("PanelGroup")};var ue={accordion:false};var le={$bs_panelGroup:w.a.shape({getId:w.a.func,headerRole:w.a.string,panelRole:w.a.string,activeKey:w.a.any,onToggle:w.a.func})};var ce=function(e){p(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;t.handleSelect=function(e,r,n){if(r){t.props.onSelect(e,n)}else if(t.props.activeKey===e){t.props.onSelect(null,n)}};return t}var r=t.prototype;r.getChildContext=function e(){var t=this.props,r=t.activeKey,n=t.accordion,a=t.generateChildId,i=t.id;var o=null;if(n){o=a||function(e,t){return i?i+"-"+t+"-"+e:null}}return{$bs_panelGroup:s({getId:o,headerRole:"tab",panelRole:"tabpanel"},n&&{activeKey:r,onToggle:this.handleSelect})}};r.render=function e(){var t=this.props,r=t.accordion,n=t.className,a=t.children,i=g(t,["accordion","className","children"]);var o=U(i,["onSelect","activeKey"]),u=o[0],l=o[1];if(r){l.role=l.role||"tablist"}var c=Y(u);return v.a.createElement("div",s({},l,{className:A()(n,c)}),ee.map(a,(function(e){return Object(h["cloneElement"])(e,{bsStyle:e.props.bsStyle||u.bsStyle})})))};return t}(v.a.Component);ce.propTypes=se;ce.defaultProps=ue;ce.childContextTypes=le;var fe=x()(P("panel-group",ce),{activeKey:"onSelect"});var de=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){return v.a.createElement(fe,s({},this.props,{accordion:true}),this.props.children)};return t}(v.a.Component);var pe=de;var he=r(53);var ve=r.n(he);var me={label:w.a.string.isRequired,onClick:w.a.func};var ye={label:"Close"};var ge=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.label,n=t.onClick;return v.a.createElement("button",{type:"button",className:"close",onClick:n},v.a.createElement("span",{"aria-hidden":"true"},"×"),v.a.createElement("span",{className:"sr-only"},r))};return t}(v.a.Component);ge.propTypes=me;ge.defaultProps=ye;var be=ge;var Ae={onDismiss:w.a.func,closeLabel:w.a.string};var _e={closeLabel:"Close alert"};var we=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t;var r=this.props,n=r.onDismiss,a=r.closeLabel,i=r.className,o=r.children,u=g(r,["onDismiss","closeLabel","className","children"]);var l=z(u),c=l[0],f=l[1];var d=!!n;var p=s({},Y(c),(t={},t[I(c,"dismissable")]=d,t));return v.a.createElement("div",s({},f,{role:"alert",className:A()(i,p)}),d&&v.a.createElement(be,{onClick:n,label:a}),o)};return t}(v.a.Component);we.propTypes=Ae;we.defaultProps=_e;var Ee=R(ve()(C),C.INFO,P("alert",we));var xe={pullRight:w.a.bool};var ke={pullRight:false};var Me=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.hasContent=function e(t){var r=false;v.a.Children.forEach(t,(function(e){if(r){return}if(e||e===0){r=true}}));return r};r.render=function e(){var t=this.props,r=t.pullRight,n=t.className,a=t.children,i=g(t,["pullRight","className","children"]);var o=z(i),u=o[0],l=o[1];var c=s({},Y(u),{"pull-right":r,hidden:!this.hasContent(a)});return v.a.createElement("span",s({},l,{className:A()(n,c)}),a)};return t}(v.a.Component);Me.propTypes=xe;Me.defaultProps=ke;var Se=P("badge",Me);function Oe(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}var De=r(9);var Te=r.n(De);function Le(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return t.filter((function(e){return e!=null})).reduce((function(e,t){if(typeof t!=="function"){throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.")}if(e===null){return t}return function r(){for(var n=arguments.length,a=new Array(n),i=0;i<n;i++){a[i]=arguments[i]}e.apply(this,a);t.apply(this,a)}}),null)}var Ce=Le;var je={href:w.a.string,onClick:w.a.func,onKeyDown:w.a.func,disabled:w.a.bool,role:w.a.string,tabIndex:w.a.oneOfType([w.a.number,w.a.string]),componentClass:Te.a};var Ne={componentClass:"a"};function Ie(e){return!e||e.trim()==="#"}var Pe=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleClick=n.handleClick.bind(Oe(Oe(n)));n.handleKeyDown=n.handleKeyDown.bind(Oe(Oe(n)));return n}var r=t.prototype;r.handleClick=function e(t){var r=this.props,n=r.disabled,a=r.href,i=r.onClick;if(n||Ie(a)){t.preventDefault()}if(n){t.stopPropagation();return}if(i){i(t)}};r.handleKeyDown=function e(t){if(t.key===" "){t.preventDefault();this.handleClick(t)}};r.render=function e(){var t=this.props,r=t.componentClass,n=t.disabled,a=t.onKeyDown,i=g(t,["componentClass","disabled","onKeyDown"]);if(Ie(i.href)){i.role=i.role||"button";i.href=i.href||"#"}if(n){i.tabIndex=-1;i.style=s({pointerEvents:"none"},i.style)}return v.a.createElement(r,s({},i,{onClick:this.handleClick,onKeyDown:Ce(this.handleKeyDown,a)}))};return t}(v.a.Component);Pe.propTypes=je;Pe.defaultProps=Ne;var Re=Pe;var Fe={active:w.a.bool,href:w.a.string,title:w.a.node,target:w.a.string};var Ye={active:false};var Be=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.active,n=t.href,a=t.title,i=t.target,o=t.className,u=g(t,["active","href","title","target","className"]);var l={href:n,title:a,target:i};return v.a.createElement("li",{className:A()(o,{active:r})},r?v.a.createElement("span",u):v.a.createElement(Re,s({},u,l)))};return t}(v.a.Component);Be.propTypes=Fe;Be.defaultProps=Ye;var He=Be;var ze=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=z(n),i=a[0],o=a[1];var u=Y(i);return v.a.createElement("ol",s({},o,{role:"navigation","aria-label":"breadcrumbs",className:A()(r,u)}))};return t}(v.a.Component);ze.Item=He;var Ue=P("breadcrumb",ze);var qe={active:w.a.bool,disabled:w.a.bool,block:w.a.bool,onClick:w.a.func,componentClass:Te.a,href:w.a.string,type:w.a.oneOf(["button","reset","submit"])};var Ve={active:false,block:false,disabled:false};var We=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.renderAnchor=function e(t,r){return v.a.createElement(Re,s({},t,{className:A()(r,t.disabled&&"disabled")}))};r.renderButton=function e(t,r){var n=t.componentClass,a=g(t,["componentClass"]);var i=n||"button";return v.a.createElement(i,s({},a,{type:a.type||"button",className:r}))};r.render=function e(){var t;var r=this.props,n=r.active,a=r.block,i=r.className,o=g(r,["active","block","className"]);var u=z(o),l=u[0],c=u[1];var f=s({},Y(l),(t={active:n},t[I(l,"block")]=a,t));var d=A()(i,f);if(c.href){return this.renderAnchor(c,d)}return this.renderButton(c,d)};return t}(v.a.Component);We.propTypes=qe;We.defaultProps=Ve;var Ke=P("btn",F([D.LARGE,D.SMALL,D.XSMALL],R(ve()(C).concat([j.DEFAULT,j.PRIMARY,j.LINK]),j.DEFAULT,We)));var Ge=r(94);var Qe=r.n(Ge);var Je={vertical:w.a.bool,justified:w.a.bool,block:Qe()(w.a.bool,(function(e){var t=e.block,r=e.vertical;return t&&!r?new Error("`block` requires `vertical` to be set to have any effect"):null}))};var Ze={block:false,justified:false,vertical:false};var Xe=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t;var r=this.props,n=r.block,a=r.justified,i=r.vertical,o=r.className,u=g(r,["block","justified","vertical","className"]);var l=z(u),c=l[0],f=l[1];var d=s({},Y(c),(t={},t[I(c)]=!i,t[I(c,"vertical")]=i,t[I(c,"justified")]=a,t[I(Ke.defaultProps,"block")]=n,t));return v.a.createElement("div",s({},f,{className:A()(o,d)}))};return t}(v.a.Component);Xe.propTypes=Je;Xe.defaultProps=Ze;var $e=P("btn-group",Xe);var et=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=z(n),i=a[0],o=a[1];var u=Y(i);return v.a.createElement("div",s({},o,{role:"toolbar",className:A()(r,u)}))};return t}(v.a.Component);var tt=P("btn-toolbar",et);var rt={componentClass:Te.a};var nt={componentClass:"div"};var at=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);at.propTypes=rt;at.defaultProps=nt;var it=P("carousel-caption",at);var ot=r(17);var st=r.n(ot);var ut=r(675);var lt=r.n(ut);var ct={direction:w.a.oneOf(["prev","next"]),onAnimateOutEnd:w.a.func,active:w.a.bool,animateIn:w.a.bool,animateOut:w.a.bool,index:w.a.number};var ft={active:false,animateIn:false,animateOut:false};var dt=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleAnimateOutEnd=n.handleAnimateOutEnd.bind(Oe(Oe(n)));n.state={direction:null};n.isUnmounted=false;return n}var r=t.prototype;r.componentWillReceiveProps=function e(t){if(this.props.active!==t.active){this.setState({direction:null})}};r.componentDidUpdate=function e(t){var r=this;var n=this.props.active;var a=t.active;if(!n&&a){lt.a.end(st.a.findDOMNode(this),this.handleAnimateOutEnd)}if(n!==a){setTimeout((function(){return r.startAnimation()}),20)}};r.componentWillUnmount=function e(){this.isUnmounted=true};r.handleAnimateOutEnd=function e(){if(this.isUnmounted){return}if(this.props.onAnimateOutEnd){this.props.onAnimateOutEnd(this.props.index)}};r.startAnimation=function e(){if(this.isUnmounted){return}this.setState({direction:this.props.direction==="prev"?"right":"left"})};r.render=function e(){var t=this.props,r=t.direction,n=t.active,a=t.animateIn,i=t.animateOut,o=t.className,u=g(t,["direction","active","animateIn","animateOut","className"]);delete u.onAnimateOutEnd;delete u.index;var l={item:true,active:n&&!a||i};if(r&&n&&a){l[r]=true}if(this.state.direction&&(a||i)){l[this.state.direction]=true}return v.a.createElement("div",s({},u,{className:A()(o,l)}))};return t}(v.a.Component);dt.propTypes=ct;dt.defaultProps=ft;var pt=dt;var ht={glyph:w.a.string.isRequired};var vt=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t;var r=this.props,n=r.glyph,a=r.className,i=g(r,["glyph","className"]);var o=z(i),u=o[0],l=o[1];var c=s({},Y(u),(t={},t[I(u,n)]=true,t));return v.a.createElement("span",s({},l,{className:A()(a,c)}))};return t}(v.a.Component);vt.propTypes=ht;var mt=P("glyphicon",vt);var yt={slide:w.a.bool,indicators:w.a.bool,interval:w.a.number,controls:w.a.bool,pauseOnHover:w.a.bool,wrap:w.a.bool,onSelect:w.a.func,onSlideEnd:w.a.func,activeIndex:w.a.number,defaultActiveIndex:w.a.number,direction:w.a.oneOf(["prev","next"]),prevIcon:w.a.node,prevLabel:w.a.string,nextIcon:w.a.node,nextLabel:w.a.string};var gt={slide:true,interval:5e3,pauseOnHover:true,wrap:true,indicators:true,controls:true,prevIcon:v.a.createElement(mt,{glyph:"chevron-left"}),prevLabel:"Previous",nextIcon:v.a.createElement(mt,{glyph:"chevron-right"}),nextLabel:"Next"};var bt=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleMouseOver=n.handleMouseOver.bind(Oe(Oe(n)));n.handleMouseOut=n.handleMouseOut.bind(Oe(Oe(n)));n.handlePrev=n.handlePrev.bind(Oe(Oe(n)));n.handleNext=n.handleNext.bind(Oe(Oe(n)));n.handleItemAnimateOutEnd=n.handleItemAnimateOutEnd.bind(Oe(Oe(n)));var a=t.defaultActiveIndex;n.state={activeIndex:a!=null?a:0,previousActiveIndex:null,direction:null};n.isUnmounted=false;return n}var r=t.prototype;r.componentDidMount=function e(){this.waitForNext()};r.componentWillReceiveProps=function e(t){var r=this.getActiveIndex();if(t.activeIndex!=null&&t.activeIndex!==r){clearTimeout(this.timeout);this.setState({previousActiveIndex:r,direction:t.direction!=null?t.direction:this.getDirection(r,t.activeIndex)})}if(t.activeIndex==null&&this.state.activeIndex>=t.children.length){this.setState({activeIndex:0,previousActiveIndex:null,direction:null})}};r.componentWillUnmount=function e(){clearTimeout(this.timeout);this.isUnmounted=true};r.getActiveIndex=function e(){var t=this.props.activeIndex;return t!=null?t:this.state.activeIndex};r.getDirection=function e(t,r){if(t===r){return null}return t>r?"prev":"next"};r.handleItemAnimateOutEnd=function e(){var t=this;this.setState({previousActiveIndex:null,direction:null},(function(){t.waitForNext();if(t.props.onSlideEnd){t.props.onSlideEnd()}}))};r.handleMouseOut=function e(){if(this.isPaused){this.play()}};r.handleMouseOver=function e(){if(this.props.pauseOnHover){this.pause()}};r.handleNext=function e(t){var r=this.getActiveIndex()+1;var n=ee.count(this.props.children);if(r>n-1){if(!this.props.wrap){return}r=0}this.select(r,t,"next")};r.handlePrev=function e(t){var r=this.getActiveIndex()-1;if(r<0){if(!this.props.wrap){return}r=ee.count(this.props.children)-1}this.select(r,t,"prev")};r.pause=function e(){this.isPaused=true;clearTimeout(this.timeout)};r.play=function e(){this.isPaused=false;this.waitForNext()};r.select=function e(t,r,n){clearTimeout(this.timeout);if(this.isUnmounted){return}var a=this.props.slide?this.getActiveIndex():null;n=n||this.getDirection(a,t);var i=this.props.onSelect;if(i){if(i.length>1){if(r){r.persist();r.direction=n}else{r={direction:n}}i(t,r)}else{i(t)}}if(this.props.activeIndex==null&&t!==a){if(this.state.previousActiveIndex!=null){return}this.setState({activeIndex:t,previousActiveIndex:a,direction:n})}};r.waitForNext=function e(){var t=this.props,r=t.slide,n=t.interval,a=t.activeIndex;if(!this.isPaused&&r&&n&&a==null){this.timeout=setTimeout(this.handleNext,n)}};r.renderControls=function e(t){var r=t.wrap,n=t.children,a=t.activeIndex,i=t.prevIcon,o=t.nextIcon,s=t.bsProps,u=t.prevLabel,l=t.nextLabel;var c=I(s,"control");var f=ee.count(n);return[(r||a!==0)&&v.a.createElement(Re,{key:"prev",className:A()(c,"left"),onClick:this.handlePrev},i,u&&v.a.createElement("span",{className:"sr-only"},u)),(r||a!==f-1)&&v.a.createElement(Re,{key:"next",className:A()(c,"right"),onClick:this.handleNext},o,l&&v.a.createElement("span",{className:"sr-only"},l))]};r.renderIndicators=function e(t,r,n){var a=this;var i=[];ee.forEach(t,(function(e,t){i.push(v.a.createElement("li",{key:t,className:t===r?"active":null,onClick:function e(r){return a.select(t,r)}})," ")}));return v.a.createElement("ol",{className:I(n,"indicators")},i)};r.render=function e(){var t=this;var r=this.props,n=r.slide,a=r.indicators,i=r.controls,o=r.wrap,u=r.prevIcon,l=r.prevLabel,c=r.nextIcon,f=r.nextLabel,d=r.className,p=r.children,m=g(r,["slide","indicators","controls","wrap","prevIcon","prevLabel","nextIcon","nextLabel","className","children"]);var y=this.state,b=y.previousActiveIndex,_=y.direction;var w=U(m,["interval","pauseOnHover","onSelect","onSlideEnd","activeIndex","defaultActiveIndex","direction"]),E=w[0],x=w[1];var k=this.getActiveIndex();var M=s({},Y(E),{slide:n});return v.a.createElement("div",s({},x,{className:A()(d,M),onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut}),a&&this.renderIndicators(p,k,E),v.a.createElement("div",{className:I(E,"inner")},ee.map(p,(function(e,r){var a=r===k;var i=n&&r===b;return Object(h["cloneElement"])(e,{active:a,index:r,animateOut:i,animateIn:a&&b!=null&&n,direction:_,onAnimateOutEnd:i?t.handleItemAnimateOutEnd:null})}))),i&&this.renderControls({wrap:o,children:p,activeIndex:k,prevIcon:u,prevLabel:l,nextIcon:c,nextLabel:f,bsProps:E}))};return t}(v.a.Component);bt.propTypes=yt;bt.defaultProps=gt;bt.Caption=it;bt.Item=pt;var At=P("carousel",bt);var _t=r(23);var wt={inline:w.a.bool,disabled:w.a.bool,title:w.a.string,validationState:w.a.oneOf(["success","warning","error",null]),inputRef:w.a.func};var Et={inline:false,disabled:false,title:""};var xt=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.inline,n=t.disabled,a=t.validationState,i=t.inputRef,o=t.className,u=t.style,l=t.title,c=t.children,f=g(t,["inline","disabled","validationState","inputRef","className","style","title","children"]);var d=z(f),p=d[0],h=d[1];var m=v.a.createElement("input",s({},h,{ref:i,type:"checkbox",disabled:n}));if(r){var y;var b=(y={},y[I(p,"inline")]=true,y.disabled=n,y);false?undefined:void 0;return v.a.createElement("label",{className:A()(o,b),style:u,title:l},m,c)}var _=s({},Y(p),{disabled:n});if(a){_["has-"+a]=true}return v.a.createElement("div",{className:A()(o,_),style:u},v.a.createElement("label",{title:l},m,c))};return t}(v.a.Component);xt.propTypes=wt;xt.defaultProps=Et;var kt=P("checkbox",xt);function Mt(e){return""+e.charAt(0).toUpperCase()+e.slice(1)}var St={componentClass:Te.a,visibleXsBlock:w.a.bool,visibleSmBlock:w.a.bool,visibleMdBlock:w.a.bool,visibleLgBlock:w.a.bool};var Ot={componentClass:"div"};var Dt=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);L.forEach((function(e){var t="visible"+Mt(e)+"Block";if(u[t]){l["visible-"+e+"-block"]=true}delete u[t]}));return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);Dt.propTypes=St;Dt.defaultProps=Ot;var Tt=P("clearfix",Dt);var Lt={htmlFor:w.a.string,srOnly:w.a.bool};var Ct={srOnly:false};var jt={$bs_formGroup:w.a.object};var Nt=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.context.$bs_formGroup;var r=t&&t.controlId;var n=this.props,a=n.htmlFor,i=a===void 0?r:a,o=n.srOnly,u=n.className,l=g(n,["htmlFor","srOnly","className"]);var c=z(l),f=c[0],d=c[1];false?undefined:void 0;var p=s({},Y(f),{"sr-only":o});return v.a.createElement("label",s({},d,{htmlFor:i,className:A()(u,p)}))};return t}(v.a.Component);Nt.propTypes=Lt;Nt.defaultProps=Ct;Nt.contextTypes=jt;var It=P("control-label",Nt);var Pt={componentClass:Te.a,xs:w.a.number,sm:w.a.number,md:w.a.number,lg:w.a.number,xsHidden:w.a.bool,smHidden:w.a.bool,mdHidden:w.a.bool,lgHidden:w.a.bool,xsOffset:w.a.number,smOffset:w.a.number,mdOffset:w.a.number,lgOffset:w.a.number,xsPush:w.a.number,smPush:w.a.number,mdPush:w.a.number,lgPush:w.a.number,xsPull:w.a.number,smPull:w.a.number,mdPull:w.a.number,lgPull:w.a.number};var Rt={componentClass:"div"};var Ft=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=[];L.forEach((function(e){function t(t,r){var n=""+e+t;var a=u[n];if(a!=null){l.push(I(o,""+e+r+"-"+a))}delete u[n]}t("","");t("Offset","-offset");t("Push","-push");t("Pull","-pull");var r=e+"Hidden";if(u[r]){l.push("hidden-"+e)}delete u[r]}));return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);Ft.propTypes=Pt;Ft.defaultProps=Rt;var Yt=P("col",Ft);var Bt=r(340);var Ht=r.n(Bt);var zt=r(118);var Ut=r.n(zt);var qt=r(55);var Vt=r.n(qt);var Wt;var Kt={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Gt(e){e.offsetHeight}function Qt(e,t){var r=t["offset"+Mt(e)];var n=Kt[e];return r+Ht()(Ut()(t,n[0]),10)+Ht()(Ut()(t,n[1]),10)}var Jt=(Wt={},Wt[qt["EXITED"]]="collapse",Wt[qt["EXITING"]]="collapsing",Wt[qt["ENTERING"]]="collapsing",Wt[qt["ENTERED"]]="collapse in",Wt);var Zt={in:w.a.bool,mountOnEnter:w.a.bool,unmountOnExit:w.a.bool,appear:w.a.bool,timeout:w.a.number,onEnter:w.a.func,onEntering:w.a.func,onEntered:w.a.func,onExit:w.a.func,onExiting:w.a.func,onExited:w.a.func,dimension:w.a.oneOfType([w.a.oneOf(["height","width"]),w.a.func]),getDimensionValue:w.a.func,role:w.a.string};var Xt={in:false,timeout:300,mountOnEnter:false,unmountOnExit:false,appear:false,dimension:"height",getDimensionValue:Qt};var $t=function(e){p(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;t.handleEnter=function(e){e.style[t.getDimension()]="0"};t.handleEntering=function(e){var r=t.getDimension();e.style[r]=t._getScrollDimensionValue(e,r)};t.handleEntered=function(e){e.style[t.getDimension()]=null};t.handleExit=function(e){var r=t.getDimension();e.style[r]=t.props.getDimensionValue(r,e)+"px";Gt(e)};t.handleExiting=function(e){e.style[t.getDimension()]="0"};return t}var r=t.prototype;r.getDimension=function e(){return typeof this.props.dimension==="function"?this.props.dimension():this.props.dimension};r._getScrollDimensionValue=function e(t,r){return t["scroll"+Mt(r)]+"px"};r.render=function e(){var t=this;var r=this.props,n=r.onEnter,a=r.onEntering,i=r.onEntered,o=r.onExit,u=r.onExiting,l=r.className,c=r.children,f=g(r,["onEnter","onEntering","onEntered","onExit","onExiting","className","children"]);delete f.dimension;delete f.getDimensionValue;var d=Ce(this.handleEnter,n);var p=Ce(this.handleEntering,a);var h=Ce(this.handleEntered,i);var m=Ce(this.handleExit,o);var y=Ce(this.handleExiting,u);return v.a.createElement(Vt.a,s({},f,{"aria-expanded":f.role?f.in:null,onEnter:d,onEntering:p,onEntered:h,onExit:m,onExiting:y}),(function(e,r){return v.a.cloneElement(c,s({},r,{className:A()(l,c.props.className,Jt[e],t.getDimension()==="width"&&"width")}))}))};return t}(v.a.Component);$t.propTypes=Zt;$t.defaultProps=Xt;var er=$t;var tr=r(334);var rr=r.n(tr);var nr=r(92);var ar=r.n(nr);var ir=r(40);var or=r.n(ir);var sr=r(95);var ur=r.n(sr);var lr=r(676);var cr=r.n(lr);var fr=r(335);var dr=r.n(fr);var pr={open:w.a.bool,pullRight:w.a.bool,onClose:w.a.func,labelledBy:w.a.oneOfType([w.a.string,w.a.number]),onSelect:w.a.func,rootCloseEvent:w.a.oneOf(["click","mousedown"])};var hr={bsRole:"menu",pullRight:false};var vr=function(e){p(t,e);function t(t){var r;r=e.call(this,t)||this;r.handleRootClose=r.handleRootClose.bind(Oe(Oe(r)));r.handleKeyDown=r.handleKeyDown.bind(Oe(Oe(r)));return r}var r=t.prototype;r.getFocusableMenuItems=function e(){var t=st.a.findDOMNode(this);if(!t){return[]}return cr()(t.querySelectorAll('[tabIndex="-1"]'))};r.getItemsAndActiveIndex=function e(){var t=this.getFocusableMenuItems();var r=t.indexOf(document.activeElement);return{items:t,activeIndex:r}};r.focusNext=function e(){var t=this.getItemsAndActiveIndex(),r=t.items,n=t.activeIndex;if(r.length===0){return}var a=n===r.length-1?0:n+1;r[a].focus()};r.focusPrevious=function e(){var t=this.getItemsAndActiveIndex(),r=t.items,n=t.activeIndex;if(r.length===0){return}var a=n===0?r.length-1:n-1;r[a].focus()};r.handleKeyDown=function e(t){switch(t.keyCode){case or.a.codes.down:this.focusNext();t.preventDefault();break;case or.a.codes.up:this.focusPrevious();t.preventDefault();break;case or.a.codes.esc:case or.a.codes.tab:this.props.onClose(t,{source:"keydown"});break;default:}};r.handleRootClose=function e(t){this.props.onClose(t,{source:"rootClose"})};r.render=function e(){var t,r=this;var n=this.props,a=n.open,i=n.pullRight,o=n.labelledBy,u=n.onSelect,l=n.className,c=n.rootCloseEvent,f=n.children,d=g(n,["open","pullRight","labelledBy","onSelect","className","rootCloseEvent","children"]);var p=U(d,["onClose"]),h=p[0],m=p[1];var y=s({},Y(h),(t={},t[I(h,"right")]=i,t));return v.a.createElement(dr.a,{disabled:!a,onRootClose:this.handleRootClose,event:c},v.a.createElement("ul",s({},m,{role:"menu",className:A()(l,y),"aria-labelledby":o}),ee.map(f,(function(e){return v.a.cloneElement(e,{onKeyDown:Ce(e.props.onKeyDown,r.handleKeyDown),onSelect:Ce(e.props.onSelect,u)})}))))};return t}(v.a.Component);vr.propTypes=pr;vr.defaultProps=hr;var mr=P("dropdown-menu",vr);var yr={noCaret:w.a.bool,open:w.a.bool,title:w.a.string,useAnchor:w.a.bool};var gr={open:false,useAnchor:false,bsRole:"toggle"};var br=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.noCaret,n=t.open,a=t.useAnchor,i=t.bsClass,o=t.className,u=t.children,l=g(t,["noCaret","open","useAnchor","bsClass","className","children"]);delete l.bsRole;var c=a?Re:Ke;var f=!r;return v.a.createElement(c,s({},l,{role:"button",className:A()(o,i),"aria-haspopup":true,"aria-expanded":n}),u||l.title,f&&" ",f&&v.a.createElement("span",{className:"caret"}))};return t}(v.a.Component);br.propTypes=yr;br.defaultProps=gr;var Ar=P("dropdown-toggle",br);var _r=Ar.defaultProps.bsRole;var wr=mr.defaultProps.bsRole;var Er={dropup:w.a.bool,id:ur()(w.a.oneOfType([w.a.string,w.a.number])),componentClass:Te.a,children:Qe()(ie(_r,wr),oe(wr)),disabled:w.a.bool,pullRight:w.a.bool,open:w.a.bool,defaultOpen:w.a.bool,onToggle:w.a.func,onSelect:w.a.func,role:w.a.string,rootCloseEvent:w.a.oneOf(["click","mousedown"]),onMouseEnter:w.a.func,onMouseLeave:w.a.func};var xr={componentClass:$e};var kr=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleClick=n.handleClick.bind(Oe(Oe(n)));n.handleKeyDown=n.handleKeyDown.bind(Oe(Oe(n)));n.handleClose=n.handleClose.bind(Oe(Oe(n)));n._focusInDropdown=false;n.lastOpenEventType=null;return n}var r=t.prototype;r.componentDidMount=function e(){this.focusNextOnOpen()};r.componentWillUpdate=function e(t){if(!t.open&&this.props.open){this._focusInDropdown=ar()(st.a.findDOMNode(this.menu),rr()(document))}};r.componentDidUpdate=function e(t){var r=this.props.open;var n=t.open;if(r&&!n){this.focusNextOnOpen()}if(!r&&n){if(this._focusInDropdown){this._focusInDropdown=false;this.focus()}}};r.focus=function e(){var t=st.a.findDOMNode(this.toggle);if(t&&t.focus){t.focus()}};r.focusNextOnOpen=function e(){var t=this.menu;if(!t||!t.focusNext){return}if(this.lastOpenEventType==="keydown"||this.props.role==="menuitem"){t.focusNext()}};r.handleClick=function e(t){if(this.props.disabled){return}this.toggleOpen(t,{source:"click"})};r.handleClose=function e(t,r){if(!this.props.open){return}this.toggleOpen(t,r)};r.handleKeyDown=function e(t){if(this.props.disabled){return}switch(t.keyCode){case or.a.codes.down:if(!this.props.open){this.toggleOpen(t,{source:"keydown"})}else if(this.menu.focusNext){this.menu.focusNext()}t.preventDefault();break;case or.a.codes.esc:case or.a.codes.tab:this.handleClose(t,{source:"keydown"});break;default:}};r.toggleOpen=function e(t,r){var n=!this.props.open;if(n){this.lastOpenEventType=r.source}if(this.props.onToggle){this.props.onToggle(n,t,r)}};r.renderMenu=function e(t,r){var n=this;var a=r.id,i=r.onSelect,o=r.rootCloseEvent,u=g(r,["id","onSelect","rootCloseEvent"]);var l=function e(t){n.menu=t};if(typeof t.ref==="string"){false?undefined:void 0}else{l=Ce(t.ref,l)}return Object(h["cloneElement"])(t,s({},u,{ref:l,labelledBy:a,bsClass:I(u,"menu"),onClose:Ce(t.props.onClose,this.handleClose),onSelect:Ce(t.props.onSelect,i,(function(e,t){return n.handleClose(t,{source:"select"})})),rootCloseEvent:o}))};r.renderToggle=function e(t,r){var n=this;var a=function e(t){n.toggle=t};if(typeof t.ref==="string"){false?undefined:void 0}else{a=Ce(t.ref,a)}return Object(h["cloneElement"])(t,s({},r,{ref:a,bsClass:I(r,"toggle"),onClick:Ce(t.props.onClick,this.handleClick),onKeyDown:Ce(t.props.onKeyDown,this.handleKeyDown)}))};r.render=function e(){var t,r=this;var n=this.props,a=n.componentClass,i=n.id,o=n.dropup,u=n.disabled,l=n.pullRight,c=n.open,f=n.onSelect,d=n.role,p=n.bsClass,h=n.className,m=n.rootCloseEvent,y=n.children,b=g(n,["componentClass","id","dropup","disabled","pullRight","open","onSelect","role","bsClass","className","rootCloseEvent","children"]);delete b.onToggle;var _=(t={},t[p]=true,t.open=c,t.disabled=u,t);if(o){_[p]=false;_.dropup=true}return v.a.createElement(a,s({},b,{className:A()(h,_)}),ee.map(y,(function(e){switch(e.props.bsRole){case _r:return r.renderToggle(e,{id:i,disabled:u,open:c,role:d,bsClass:p});case wr:return r.renderMenu(e,{id:i,open:c,pullRight:l,bsClass:p,onSelect:f,rootCloseEvent:m});default:return e}})))};return t}(v.a.Component);kr.propTypes=Er;kr.defaultProps=xr;P("dropdown",kr);var Mr=x()(kr,{open:"onToggle"});Mr.Toggle=Ar;Mr.Menu=mr;var Sr=Mr;function Or(e,t){var r=t.propTypes;var n={};var a={};M()(e).forEach((function(e){var t=e[0],i=e[1];if(r[t]){n[t]=i}else{a[t]=i}}));return[n,a]}var Dr=s({},Sr.propTypes,{bsStyle:w.a.string,bsSize:w.a.string,title:w.a.node.isRequired,noCaret:w.a.bool,children:w.a.node});var Tr=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.bsSize,n=t.bsStyle,a=t.title,i=t.children,o=g(t,["bsSize","bsStyle","title","children"]);var u=Or(o,Sr.ControlledComponent),l=u[0],c=u[1];return v.a.createElement(Sr,s({},l,{bsSize:r,bsStyle:n}),v.a.createElement(Sr.Toggle,s({},c,{bsSize:r,bsStyle:n}),a),v.a.createElement(Sr.Menu,null,i))};return t}(v.a.Component);Tr.propTypes=Dr;var Lr=Tr;var Cr;var jr={in:w.a.bool,mountOnEnter:w.a.bool,unmountOnExit:w.a.bool,appear:w.a.bool,timeout:w.a.number,onEnter:w.a.func,onEntering:w.a.func,onEntered:w.a.func,onExit:w.a.func,onExiting:w.a.func,onExited:w.a.func};var Nr={in:false,timeout:300,mountOnEnter:false,unmountOnExit:false,appear:false};var Ir=(Cr={},Cr[qt["ENTERING"]]="in",Cr[qt["ENTERED"]]="in",Cr);var Pr=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=t.children,a=g(t,["className","children"]);return v.a.createElement(Vt.a,a,(function(e,t){return v.a.cloneElement(n,s({},t,{className:A()("fade",r,n.props.className,Ir[e])}))}))};return t}(v.a.Component);Pr.propTypes=jr;Pr.defaultProps=Nr;var Rr=Pr;var Fr={horizontal:w.a.bool,inline:w.a.bool,componentClass:Te.a};var Yr={horizontal:false,inline:false,componentClass:"form"};var Br=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.horizontal,n=t.inline,a=t.componentClass,i=t.className,o=g(t,["horizontal","inline","componentClass","className"]);var u=z(o),l=u[0],c=u[1];var f=[];if(r){f.push(I(l,"horizontal"))}if(n){f.push(I(l,"inline"))}return v.a.createElement(a,s({},c,{className:A()(i,f)}))};return t}(v.a.Component);Br.propTypes=Fr;Br.defaultProps=Yr;var Hr=P("form",Br);var zr={bsRole:"feedback"};var Ur={$bs_formGroup:w.a.object};var qr=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.getGlyph=function e(t){switch(t){case"success":return"ok";case"warning":return"warning-sign";case"error":return"remove";default:return null}};r.renderDefaultFeedback=function e(t,r,n,a){var i=this.getGlyph(t&&t.validationState);if(!i){return null}return v.a.createElement(mt,s({},a,{glyph:i,className:A()(r,n)}))};r.render=function e(){var t=this.props,r=t.className,n=t.children,a=g(t,["className","children"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);if(!n){return this.renderDefaultFeedback(this.context.$bs_formGroup,r,l,u)}var c=v.a.Children.only(n);return v.a.cloneElement(c,s({},u,{className:A()(c.props.className,r,l)}))};return t}(v.a.Component);qr.defaultProps=zr;qr.contextTypes=Ur;var Vr=P("form-control-feedback",qr);var Wr={componentClass:Te.a};var Kr={componentClass:"p"};var Gr=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);Gr.propTypes=Wr;Gr.defaultProps=Kr;var Qr=P("form-control-static",Gr);var Jr={componentClass:Te.a,type:w.a.string,id:w.a.string,inputRef:w.a.func};var Zr={componentClass:"input"};var Xr={$bs_formGroup:w.a.object};var $r=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.context.$bs_formGroup;var r=t&&t.controlId;var n=this.props,a=n.componentClass,i=n.type,o=n.id,u=o===void 0?r:o,l=n.inputRef,c=n.className,f=n.bsSize,d=g(n,["componentClass","type","id","inputRef","className","bsSize"]);var p=z(d),h=p[0],m=p[1];false?undefined:void 0;var y;if(i!=="file"){y=Y(h)}if(f){var b=T[f]||f;y[I({bsClass:"input"},b)]=true}return v.a.createElement(a,s({},m,{type:i,id:u,ref:l,className:A()(c,y)}))};return t}(v.a.Component);$r.propTypes=Jr;$r.defaultProps=Zr;$r.contextTypes=Xr;$r.Feedback=Vr;$r.Static=Qr;var en=P("form-control",F([D.SMALL,D.LARGE],$r));var tn={controlId:w.a.string,validationState:w.a.oneOf(["success","warning","error",null])};var rn={$bs_formGroup:w.a.object.isRequired};var nn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.getChildContext=function e(){var t=this.props,r=t.controlId,n=t.validationState;return{$bs_formGroup:{controlId:r,validationState:n}}};r.hasFeedback=function e(t){var r=this;return ee.some(t,(function(e){return e.props.bsRole==="feedback"||e.props.children&&r.hasFeedback(e.props.children)}))};r.render=function e(){var t=this.props,r=t.validationState,n=t.className,a=t.children,i=g(t,["validationState","className","children"]);var o=U(i,["controlId"]),u=o[0],l=o[1];var c=s({},Y(u),{"has-feedback":this.hasFeedback(a)});if(r){c["has-"+r]=true}return v.a.createElement("div",s({},l,{className:A()(n,c)}),a)};return t}(v.a.Component);nn.propTypes=tn;nn.childContextTypes=rn;var an=P("form-group",F([D.LARGE,D.SMALL],nn));var on={fluid:w.a.bool,componentClass:Te.a};var sn={componentClass:"div",fluid:false};var un=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.fluid,n=t.componentClass,a=t.className,i=g(t,["fluid","componentClass","className"]);var o=z(i),u=o[0],l=o[1];var c=I(u,r&&"fluid");return v.a.createElement(n,s({},l,{className:A()(a,c)}))};return t}(v.a.Component);un.propTypes=on;un.defaultProps=sn;var ln=P("container",un);var cn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=z(n),i=a[0],o=a[1];var u=Y(i);return v.a.createElement("span",s({},o,{className:A()(r,u)}))};return t}(v.a.Component);var fn=P("help-block",cn);var dn={responsive:w.a.bool,rounded:w.a.bool,circle:w.a.bool,thumbnail:w.a.bool};var pn={responsive:false,rounded:false,circle:false,thumbnail:false};var hn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t;var r=this.props,n=r.responsive,a=r.rounded,i=r.circle,o=r.thumbnail,u=r.className,l=g(r,["responsive","rounded","circle","thumbnail","className"]);var c=z(l),f=c[0],d=c[1];var p=(t={},t[I(f,"responsive")]=n,t[I(f,"rounded")]=a,t[I(f,"circle")]=i,t[I(f,"thumbnail")]=o,t);return v.a.createElement("img",s({},d,{className:A()(u,p)}))};return t}(v.a.Component);hn.propTypes=dn;hn.defaultProps=pn;var vn=P("img",hn);var mn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=z(n),i=a[0],o=a[1];var u=Y(i);return v.a.createElement("span",s({},o,{className:A()(r,u)}))};return t}(v.a.Component);var yn=P("input-group-addon",mn);var gn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=z(n),i=a[0],o=a[1];var u=Y(i);return v.a.createElement("span",s({},o,{className:A()(r,u)}))};return t}(v.a.Component);var bn=P("input-group-btn",gn);var An=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=z(n),i=a[0],o=a[1];var u=Y(i);return v.a.createElement("span",s({},o,{className:A()(r,u)}))};return t}(v.a.Component);An.Addon=yn;An.Button=bn;var _n=P("input-group",F([D.LARGE,D.SMALL],An));var wn={componentClass:Te.a};var En={componentClass:"div"};var xn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);xn.propTypes=wn;xn.defaultProps=En;var kn=P("jumbotron",xn);var Mn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.hasContent=function e(t){var r=false;v.a.Children.forEach(t,(function(e){if(r){return}if(e||e===0){r=true}}));return r};r.render=function e(){var t=this.props,r=t.className,n=t.children,a=g(t,["className","children"]);var i=z(a),o=i[0],u=i[1];var l=s({},Y(o),{hidden:!this.hasContent(n)});return v.a.createElement("span",s({},u,{className:A()(r,l)}),n)};return t}(v.a.Component);var Sn=P("label",R(ve()(C).concat([j.DEFAULT,j.PRIMARY]),j.DEFAULT,Mn));var On={active:w.a.any,disabled:w.a.any,header:w.a.node,listItem:w.a.bool,onClick:w.a.func,href:w.a.string,type:w.a.string};var Dn={listItem:false};var Tn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.renderHeader=function e(t,r){if(v.a.isValidElement(t)){return Object(h["cloneElement"])(t,{className:A()(t.props.className,r)})}return v.a.createElement("h4",{className:r},t)};r.render=function e(){var t=this.props,r=t.active,n=t.disabled,a=t.className,i=t.header,o=t.listItem,u=t.children,l=g(t,["active","disabled","className","header","listItem","children"]);var c=z(l),f=c[0],d=c[1];var p=s({},Y(f),{active:r,disabled:n});var h;if(d.href){h="a"}else if(d.onClick){h="button";d.type=d.type||"button"}else if(o){h="li"}else{h="span"}d.className=A()(a,p);if(i){return v.a.createElement(h,d,this.renderHeader(i,I(f,"heading")),v.a.createElement("p",{className:I(f,"text")},u))}return v.a.createElement(h,d,u)};return t}(v.a.Component);Tn.propTypes=On;Tn.defaultProps=Dn;var Ln=P("list-group-item",R(ve()(C),Tn));var Cn={componentClass:Te.a};function jn(e){if(!e){return"div"}if(ee.some(e,(function(e){return e.type!==Ln||e.props.href||e.props.onClick}))){return"div"}return"ul"}var Nn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.children,n=t.componentClass,a=n===void 0?jn(r):n,i=t.className,o=g(t,["children","componentClass","className"]);var u=z(o),l=u[0],c=u[1];var f=Y(l);var d=a==="ul"&&ee.every(r,(function(e){return e.type===Ln}));return v.a.createElement(a,s({},c,{className:A()(i,f)}),d?ee.map(r,(function(e){return Object(h["cloneElement"])(e,{listItem:true})})):r)};return t}(v.a.Component);Nn.propTypes=Cn;var In=P("list-group",Nn);var Pn={align:w.a.oneOf(["top","middle","bottom"]),componentClass:Te.a};var Rn={componentClass:"div"};var Fn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.align,a=t.className,i=g(t,["componentClass","align","className"]);var o=z(i),u=o[0],l=o[1];var c=Y(u);if(n){c[I(na.defaultProps,n)]=true}return v.a.createElement(r,s({},l,{className:A()(a,c)}))};return t}(v.a.Component);Fn.propTypes=Pn;Fn.defaultProps=Rn;var Yn=P("media-body",Fn);var Bn={componentClass:Te.a};var Hn={componentClass:"h4"};var zn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);zn.propTypes=Bn;zn.defaultProps=Hn;var Un=P("media-heading",zn);var qn={align:w.a.oneOf(["top","middle","bottom"])};var Vn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.align,n=t.className,a=g(t,["align","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);if(r){l[I(na.defaultProps,r)]=true}return v.a.createElement("div",s({},u,{className:A()(n,l)}))};return t}(v.a.Component);Vn.propTypes=qn;var Wn=P("media-left",Vn);var Kn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=z(n),i=a[0],o=a[1];var u=Y(i);return v.a.createElement("ul",s({},o,{className:A()(r,u)}))};return t}(v.a.Component);var Gn=P("media-list",Kn);var Qn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=z(n),i=a[0],o=a[1];var u=Y(i);return v.a.createElement("li",s({},o,{className:A()(r,u)}))};return t}(v.a.Component);var Jn=P("media",Qn);var Zn={align:w.a.oneOf(["top","middle","bottom"])};var Xn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.align,n=t.className,a=g(t,["align","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);if(r){l[I(na.defaultProps,r)]=true}return v.a.createElement("div",s({},u,{className:A()(n,l)}))};return t}(v.a.Component);Xn.propTypes=Zn;var $n=P("media-right",Xn);var ea={componentClass:Te.a};var ta={componentClass:"div"};var ra=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);ra.propTypes=ea;ra.defaultProps=ta;ra.Heading=Un;ra.Body=Yn;ra.Left=Wn;ra.Right=$n;ra.List=Gn;ra.ListItem=Jn;var na=P("media",ra);var aa={active:w.a.bool,disabled:w.a.bool,divider:Qe()(w.a.bool,(function(e){var t=e.divider,r=e.children;return t&&r?new Error("Children will not be rendered for dividers"):null})),eventKey:w.a.any,header:w.a.bool,href:w.a.string,onClick:w.a.func,onSelect:w.a.func};var ia={divider:false,disabled:false,header:false};var oa=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleClick=n.handleClick.bind(Oe(Oe(n)));return n}var r=t.prototype;r.handleClick=function e(t){var r=this.props,n=r.href,a=r.disabled,i=r.onSelect,o=r.eventKey;if(!n||a){t.preventDefault()}if(a){return}if(i){i(o,t)}};r.render=function e(){var t=this.props,r=t.active,n=t.disabled,a=t.divider,i=t.header,o=t.onClick,u=t.className,l=t.style,c=g(t,["active","disabled","divider","header","onClick","className","style"]);var f=U(c,["eventKey","onSelect"]),d=f[0],p=f[1];if(a){p.children=undefined;return v.a.createElement("li",s({},p,{role:"separator",className:A()(u,"divider"),style:l}))}if(i){return v.a.createElement("li",s({},p,{role:"heading",className:A()(u,I(d,"header")),style:l}))}return v.a.createElement("li",{role:"presentation",className:A()(u,{active:r,disabled:n}),style:l},v.a.createElement(Re,s({},p,{role:"menuitem",tabIndex:"-1",onClick:Ce(o,this.handleClick)})))};return t}(v.a.Component);oa.propTypes=aa;oa.defaultProps=ia;var sa=P("dropdown",oa);var ua=r(341);var la=r.n(ua);var ca=r(117);var fa=r.n(ca);var da=r(79);var pa=r.n(da);var ha=r(218);var va=r.n(ha);var ma=r(147);var ya=r.n(ma);var ga=r(336);var ba=r.n(ga);var Aa={componentClass:Te.a};var _a={componentClass:"div"};var wa=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);wa.propTypes=Aa;wa.defaultProps=_a;var Ea=P("modal-body",wa);var xa={dialogClassName:w.a.string};var ka=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t;var r=this.props,n=r.dialogClassName,a=r.className,i=r.style,o=r.children,u=g(r,["dialogClassName","className","style","children"]);var l=z(u),c=l[0],f=l[1];var d=I(c);var p=s({display:"block"},i);var h=s({},Y(c),(t={},t[d]=false,t[I(c,"dialog")]=true,t));return v.a.createElement("div",s({},f,{tabIndex:"-1",role:"dialog",style:p,className:A()(a,d)}),v.a.createElement("div",{className:A()(n,h)},v.a.createElement("div",{className:I(c,"content"),role:"document"},o)))};return t}(v.a.Component);ka.propTypes=xa;var Ma=P("modal",F([D.LARGE,D.SMALL],ka));var Sa={componentClass:Te.a};var Oa={componentClass:"div"};var Da=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);Da.propTypes=Sa;Da.defaultProps=Oa;var Ta=P("modal-footer",Da);var La={closeLabel:w.a.string,closeButton:w.a.bool,onHide:w.a.func};var Ca={closeLabel:"Close",closeButton:false};var ja={$bs_modal:w.a.shape({onHide:w.a.func})};var Na=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.closeLabel,n=t.closeButton,a=t.onHide,i=t.className,o=t.children,u=g(t,["closeLabel","closeButton","onHide","className","children"]);var l=this.context.$bs_modal;var c=z(u),f=c[0],d=c[1];var p=Y(f);return v.a.createElement("div",s({},d,{className:A()(i,p)}),n&&v.a.createElement(be,{label:r,onClick:Ce(l&&l.onHide,a)}),o)};return t}(v.a.Component);Na.propTypes=La;Na.defaultProps=Ca;Na.contextTypes=ja;var Ia=P("modal-header",Na);var Pa={componentClass:Te.a};var Ra={componentClass:"h4"};var Fa=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);Fa.propTypes=Pa;Fa.defaultProps=Ra;var Ya=P("modal-title",Fa);var Ba=s({},ya.a.propTypes,Ma.propTypes,{backdrop:w.a.oneOf(["static",true,false]),backdropClassName:w.a.string,keyboard:w.a.bool,animation:w.a.bool,dialogComponentClass:Te.a,autoFocus:w.a.bool,enforceFocus:w.a.bool,restoreFocus:w.a.bool,show:w.a.bool,onHide:w.a.func,onEnter:w.a.func,onEntering:w.a.func,onEntered:w.a.func,onExit:w.a.func,onExiting:w.a.func,onExited:w.a.func,container:ya.a.propTypes.container});var Ha=s({},ya.a.defaultProps,{animation:true,dialogComponentClass:Ma});var za={$bs_modal:w.a.shape({onHide:w.a.func})};function Ua(e){return v.a.createElement(Rr,s({},e,{timeout:Va.TRANSITION_DURATION}))}function qa(e){return v.a.createElement(Rr,s({},e,{timeout:Va.BACKDROP_TRANSITION_DURATION}))}var Va=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleEntering=n.handleEntering.bind(Oe(Oe(n)));n.handleExited=n.handleExited.bind(Oe(Oe(n)));n.handleWindowResize=n.handleWindowResize.bind(Oe(Oe(n)));n.handleDialogClick=n.handleDialogClick.bind(Oe(Oe(n)));n.setModalRef=n.setModalRef.bind(Oe(Oe(n)));n.state={style:{}};return n}var r=t.prototype;r.getChildContext=function e(){return{$bs_modal:{onHide:this.props.onHide}}};r.componentWillUnmount=function e(){this.handleExited()};r.setModalRef=function e(t){this._modal=t};r.handleDialogClick=function e(t){if(t.target!==t.currentTarget){return}this.props.onHide()};r.handleEntering=function e(){la.a.on(window,"resize",this.handleWindowResize);this.updateStyle()};r.handleExited=function e(){la.a.off(window,"resize",this.handleWindowResize)};r.handleWindowResize=function e(){this.updateStyle()};r.updateStyle=function e(){if(!pa.a){return}var t=this._modal.getDialogElement();var r=t.scrollHeight;var n=fa()(t);var a=ba()(st.a.findDOMNode(this.props.container||n.body));var i=r>n.documentElement.clientHeight;this.setState({style:{paddingRight:a&&!i?va()():undefined,paddingLeft:!a&&i?va()():undefined}})};r.render=function e(){var t=this.props,r=t.backdrop,n=t.backdropClassName,a=t.animation,i=t.show,o=t.dialogComponentClass,u=t.className,l=t.style,c=t.children,f=t.onEntering,d=t.onExited,p=g(t,["backdrop","backdropClassName","animation","show","dialogComponentClass","className","style","children","onEntering","onExited"]);var h=Or(p,ya.a),m=h[0],y=h[1];var b=i&&!a&&"in";return v.a.createElement(ya.a,s({},m,{ref:this.setModalRef,show:i,containerClassName:I(p,"open"),transition:a?Ua:undefined,backdrop:r,backdropTransition:a?qa:undefined,backdropClassName:A()(I(p,"backdrop"),n,b),onEntering:Ce(f,this.handleEntering),onExited:Ce(d,this.handleExited)}),v.a.createElement(o,s({},y,{style:s({},this.state.style,l),className:A()(u,b),onClick:r===true?this.handleDialogClick:null}),c))};return t}(v.a.Component);Va.propTypes=Ba;Va.defaultProps=Ha;Va.childContextTypes=za;Va.Body=Ea;Va.Header=Ia;Va.Title=Ya;Va.Footer=Ta;Va.Dialog=Ma;Va.TRANSITION_DURATION=300;Va.BACKDROP_TRANSITION_DURATION=150;var Wa=P("modal",F([D.LARGE,D.SMALL],Va));var Ka={activeKey:w.a.any,activeHref:w.a.string,stacked:w.a.bool,justified:Qe()(w.a.bool,(function(e){var t=e.justified,r=e.navbar;return t&&r?Error("justified navbar `Nav`s are not supported"):null})),onSelect:w.a.func,role:w.a.string,navbar:w.a.bool,pullRight:w.a.bool,pullLeft:w.a.bool};var Ga={justified:false,pullRight:false,pullLeft:false,stacked:false};var Qa={$bs_navbar:w.a.shape({bsClass:w.a.string,onSelect:w.a.func}),$bs_tabContainer:w.a.shape({activeKey:w.a.any,onSelect:w.a.func.isRequired,getTabId:w.a.func.isRequired,getPaneId:w.a.func.isRequired})};var Ja=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.componentDidUpdate=function e(){var t=this;if(!this._needsRefocus){return}this._needsRefocus=false;var r=this.props.children;var n=this.getActiveProps(),a=n.activeKey,i=n.activeHref;var o=ee.find(r,(function(e){return t.isActive(e,a,i)}));var s=ee.toArray(r);var u=s.indexOf(o);var l=st.a.findDOMNode(this).children;var c=l&&l[u];if(!c||!c.firstChild){return}c.firstChild.focus()};r.getActiveProps=function e(){var t=this.context.$bs_tabContainer;if(t){false?undefined:void 0;return t}return this.props};r.getNextActiveChild=function e(t){var r=this;var n=this.props.children;var a=n.filter((function(e){return e.props.eventKey!=null&&!e.props.disabled}));var i=this.getActiveProps(),o=i.activeKey,s=i.activeHref;var u=ee.find(n,(function(e){return r.isActive(e,o,s)}));var l=a.indexOf(u);if(l===-1){return a[0]}var c=l+t;var f=a.length;if(c>=f){c=0}else if(c<0){c=f-1}return a[c]};r.getTabProps=function e(t,r,n,a,i){var o=this;if(!r&&n!=="tablist"){return null}var s=t.props,u=s.id,l=s["aria-controls"],c=s.eventKey,f=s.role,d=s.onKeyDown,p=s.tabIndex;if(r){false?undefined:void 0;u=r.getTabId(c);l=r.getPaneId(c)}if(n==="tablist"){f=f||"tab";d=Ce((function(e){return o.handleTabKeyDown(i,e)}),d);p=a?p:-1}return{id:u,role:f,onKeyDown:d,"aria-controls":l,tabIndex:p}};r.handleTabKeyDown=function e(t,r){var n;switch(r.keyCode){case or.a.codes.left:case or.a.codes.up:n=this.getNextActiveChild(-1);break;case or.a.codes.right:case or.a.codes.down:n=this.getNextActiveChild(1);break;default:return}r.preventDefault();if(t&&n&&n.props.eventKey!=null){t(n.props.eventKey)}this._needsRefocus=true};r.isActive=function e(t,r,n){var a=t.props;if(a.active||r!=null&&a.eventKey===r||n&&a.href===n){return true}return a.active};r.render=function e(){var t,r=this;var n=this.props,a=n.stacked,i=n.justified,o=n.onSelect,u=n.role,l=n.navbar,c=n.pullRight,f=n.pullLeft,d=n.className,p=n.children,m=g(n,["stacked","justified","onSelect","role","navbar","pullRight","pullLeft","className","children"]);var y=this.context.$bs_tabContainer;var b=u||(y?"tablist":null);var _=this.getActiveProps(),w=_.activeKey,E=_.activeHref;delete m.activeKey;delete m.activeHref;var x=z(m),k=x[0],M=x[1];var S=s({},Y(k),(t={},t[I(k,"stacked")]=a,t[I(k,"justified")]=i,t));var O=l!=null?l:this.context.$bs_navbar;var D;var T;if(O){var L=this.context.$bs_navbar||{bsClass:"navbar"};S[I(L,"nav")]=true;T=I(L,"right");D=I(L,"left")}else{T="pull-right";D="pull-left"}S[T]=c;S[D]=f;return v.a.createElement("ul",s({},M,{role:b,className:A()(d,S)}),ee.map(p,(function(e){var t=r.isActive(e,w,E);var n=Ce(e.props.onSelect,o,O&&O.onSelect,y&&y.onSelect);return Object(h["cloneElement"])(e,s({},r.getTabProps(e,y,b,t,n),{active:t,activeKey:w,activeHref:E,onSelect:n}))})))};return t}(v.a.Component);Ja.propTypes=Ka;Ja.defaultProps=Ga;Ja.contextTypes=Qa;var Za=P("nav",R(["tabs","pills"],Ja));var Xa={$bs_navbar:w.a.shape({bsClass:w.a.string})};var $a=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=t.children,a=g(t,["className","children"]);var i=this.context.$bs_navbar||{bsClass:"navbar"};var o=I(i,"brand");if(v.a.isValidElement(n)){return v.a.cloneElement(n,{className:A()(n.props.className,r,o)})}return v.a.createElement("span",s({},a,{className:A()(r,o)}),n)};return t}(v.a.Component);$a.contextTypes=Xa;var ei=$a;var ti={$bs_navbar:w.a.shape({bsClass:w.a.string,expanded:w.a.bool})};var ri=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.children,n=g(t,["children"]);var a=this.context.$bs_navbar||{bsClass:"navbar"};var i=I(a,"collapse");return v.a.createElement(er,s({in:a.expanded},n),v.a.createElement("div",{className:i},r))};return t}(v.a.Component);ri.contextTypes=ti;var ni=ri;var ai={$bs_navbar:w.a.shape({bsClass:w.a.string})};var ii=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=this.context.$bs_navbar||{bsClass:"navbar"};var i=I(a,"header");return v.a.createElement("div",s({},n,{className:A()(r,i)}))};return t}(v.a.Component);ii.contextTypes=ai;var oi=ii;var si={onClick:w.a.func,children:w.a.node};var ui={$bs_navbar:w.a.shape({bsClass:w.a.string,expanded:w.a.bool,onToggle:w.a.func.isRequired})};var li=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.onClick,n=t.className,a=t.children,i=g(t,["onClick","className","children"]);var o=this.context.$bs_navbar||{bsClass:"navbar"};var u=s({type:"button"},i,{onClick:Ce(r,o.onToggle),className:A()(n,I(o,"toggle"),!o.expanded&&"collapsed")});if(a){return v.a.createElement("button",u,a)}return v.a.createElement("button",u,v.a.createElement("span",{className:"sr-only"},"Toggle navigation"),v.a.createElement("span",{className:"icon-bar"}),v.a.createElement("span",{className:"icon-bar"}),v.a.createElement("span",{className:"icon-bar"}))};return t}(v.a.Component);li.propTypes=si;li.contextTypes=ui;var ci=li;var fi={fixedTop:w.a.bool,fixedBottom:w.a.bool,staticTop:w.a.bool,inverse:w.a.bool,fluid:w.a.bool,componentClass:Te.a,onToggle:w.a.func,onSelect:w.a.func,collapseOnSelect:w.a.bool,expanded:w.a.bool,role:w.a.string};var di={componentClass:"nav",fixedTop:false,fixedBottom:false,staticTop:false,inverse:false,fluid:false,collapseOnSelect:false};var pi={$bs_navbar:w.a.shape({bsClass:w.a.string,expanded:w.a.bool,onToggle:w.a.func.isRequired,onSelect:w.a.func})};var hi=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleToggle=n.handleToggle.bind(Oe(Oe(n)));n.handleCollapse=n.handleCollapse.bind(Oe(Oe(n)));return n}var r=t.prototype;r.getChildContext=function e(){var t=this.props,r=t.bsClass,n=t.expanded,a=t.onSelect,i=t.collapseOnSelect;return{$bs_navbar:{bsClass:r,expanded:n,onToggle:this.handleToggle,onSelect:Ce(a,i?this.handleCollapse:null)}}};r.handleCollapse=function e(){var t=this.props,r=t.onToggle,n=t.expanded;if(n){r(false)}};r.handleToggle=function e(){var t=this.props,r=t.onToggle,n=t.expanded;r(!n)};r.render=function e(){var t;var r=this.props,n=r.componentClass,a=r.fixedTop,i=r.fixedBottom,o=r.staticTop,u=r.inverse,l=r.fluid,c=r.className,f=r.children,d=g(r,["componentClass","fixedTop","fixedBottom","staticTop","inverse","fluid","className","children"]);var p=U(d,["expanded","onToggle","onSelect","collapseOnSelect"]),h=p[0],m=p[1];if(m.role===undefined&&n!=="nav"){m.role="navigation"}if(u){h.bsStyle=j.INVERSE}var y=s({},Y(h),(t={},t[I(h,"fixed-top")]=a,t[I(h,"fixed-bottom")]=i,t[I(h,"static-top")]=o,t));return v.a.createElement(n,s({},m,{className:A()(c,y)}),v.a.createElement(ln,{fluid:l},f))};return t}(v.a.Component);hi.propTypes=fi;hi.defaultProps=di;hi.childContextTypes=pi;P("navbar",hi);var vi=x()(hi,{expanded:"onToggle"});function mi(e,t,r){var n=function e(r,n){var a=r.componentClass,i=r.className,o=r.pullRight,u=r.pullLeft,l=g(r,["componentClass","className","pullRight","pullLeft"]);var c=n.$bs_navbar,f=c===void 0?{bsClass:"navbar"}:c;return v.a.createElement(a,s({},l,{className:A()(i,I(f,t),o&&I(f,"right"),u&&I(f,"left"))}))};n.displayName=r;n.propTypes={componentClass:Te.a,pullRight:w.a.bool,pullLeft:w.a.bool};n.defaultProps={componentClass:e,pullRight:false,pullLeft:false};n.contextTypes={$bs_navbar:w.a.shape({bsClass:w.a.string})};return n}vi.Brand=ei;vi.Header=oi;vi.Toggle=ci;vi.Collapse=ni;vi.Form=mi("div","form","NavbarForm");vi.Text=mi("p","text","NavbarText");vi.Link=mi("a","link","NavbarLink");var yi=R([j.DEFAULT,j.INVERSE],j.DEFAULT,vi);var gi=s({},Sr.propTypes,{title:w.a.node.isRequired,noCaret:w.a.bool,active:w.a.bool,activeKey:w.a.any,activeHref:w.a.string,children:w.a.node});var bi=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.isActive=function e(t,r,n){var a=this;var i=t.props;if(i.active||r!=null&&i.eventKey===r||n&&i.href===n){return true}if(ee.some(i.children,(function(e){return a.isActive(e,r,n)}))){return true}return i.active};r.render=function e(){var t=this;var r=this.props,n=r.title,a=r.activeKey,i=r.activeHref,o=r.className,u=r.style,l=r.children,c=g(r,["title","activeKey","activeHref","className","style","children"]);var f=this.isActive(this,a,i);delete c.active;delete c.eventKey;var d=Or(c,Sr.ControlledComponent),p=d[0],h=d[1];return v.a.createElement(Sr,s({},p,{componentClass:"li",className:A()(o,{active:f}),style:u}),v.a.createElement(Sr.Toggle,s({},h,{useAnchor:true}),n),v.a.createElement(Sr.Menu,null,ee.map(l,(function(e){return v.a.cloneElement(e,{active:t.isActive(e,a,i)})}))))};return t}(v.a.Component);bi.propTypes=gi;var Ai=bi;var _i={active:w.a.bool,disabled:w.a.bool,role:w.a.string,href:w.a.string,onClick:w.a.func,onSelect:w.a.func,eventKey:w.a.any};var wi={active:false,disabled:false};var Ei=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleClick=n.handleClick.bind(Oe(Oe(n)));return n}var r=t.prototype;r.handleClick=function e(t){if(this.props.disabled){t.preventDefault();return}if(this.props.onSelect){this.props.onSelect(this.props.eventKey,t)}};r.render=function e(){var t=this.props,r=t.active,n=t.disabled,a=t.onClick,i=t.className,o=t.style,u=g(t,["active","disabled","onClick","className","style"]);delete u.onSelect;delete u.eventKey;delete u.activeKey;delete u.activeHref;if(!u.role){if(u.href==="#"){u.role="button"}}else if(u.role==="tab"){u["aria-selected"]=r}return v.a.createElement("li",{role:"presentation",className:A()(i,{active:r,disabled:n}),style:o},v.a.createElement(Re,s({},u,{disabled:n,onClick:Ce(a,this.handleClick)})))};return t}(v.a.Component);Ei.propTypes=_i;Ei.defaultProps=wi;var xi=Ei;var ki=r(342);var Mi=r.n(ki);var Si=s({},Mi.a.propTypes,{show:w.a.bool,rootClose:w.a.bool,onHide:w.a.func,animation:w.a.oneOfType([w.a.bool,Te.a]),onEnter:w.a.func,onEntering:w.a.func,onEntered:w.a.func,onExit:w.a.func,onExiting:w.a.func,onExited:w.a.func,placement:w.a.oneOf(["top","right","bottom","left"])});var Oi={animation:Rr,rootClose:false,show:false,placement:"right"};var Di=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.animation,n=t.children,a=g(t,["animation","children"]);var i=r===true?Rr:r||null;var o;if(!i){o=Object(h["cloneElement"])(n,{className:A()(n.props.className,"in")})}else{o=n}return v.a.createElement(Mi.a,s({},a,{transition:i}),o)};return t}(v.a.Component);Di.propTypes=Si;Di.defaultProps=Oi;var Ti=Di;var Li=r(677);var Ci=r.n(Li);function ji(e,t){if(Ci()(t)){return t.indexOf(e)>=0}return e===t}var Ni=w.a.oneOf(["click","hover","focus"]);var Ii=s({},Ti.propTypes,{trigger:w.a.oneOfType([Ni,w.a.arrayOf(Ni)]),delay:w.a.number,delayShow:w.a.number,delayHide:w.a.number,defaultOverlayShown:w.a.bool,overlay:w.a.node.isRequired,onBlur:w.a.func,onClick:w.a.func,onFocus:w.a.func,onMouseOut:w.a.func,onMouseOver:w.a.func,target:w.a.oneOf([null]),onHide:w.a.oneOf([null]),show:w.a.oneOf([null])});var Pi={defaultOverlayShown:false,trigger:["hover","focus"]};var Ri=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleToggle=n.handleToggle.bind(Oe(Oe(n)));n.handleDelayedShow=n.handleDelayedShow.bind(Oe(Oe(n)));n.handleDelayedHide=n.handleDelayedHide.bind(Oe(Oe(n)));n.handleHide=n.handleHide.bind(Oe(Oe(n)));n.handleMouseOver=function(e){return n.handleMouseOverOut(n.handleDelayedShow,e,"fromElement")};n.handleMouseOut=function(e){return n.handleMouseOverOut(n.handleDelayedHide,e,"toElement")};n._mountNode=null;n.state={show:t.defaultOverlayShown};return n}var r=t.prototype;r.componentDidMount=function e(){this._mountNode=document.createElement("div");this.renderOverlay()};r.componentDidUpdate=function e(){this.renderOverlay()};r.componentWillUnmount=function e(){st.a.unmountComponentAtNode(this._mountNode);this._mountNode=null;clearTimeout(this._hoverShowDelay);clearTimeout(this._hoverHideDelay)};r.handleDelayedHide=function e(){var t=this;if(this._hoverShowDelay!=null){clearTimeout(this._hoverShowDelay);this._hoverShowDelay=null;return}if(!this.state.show||this._hoverHideDelay!=null){return}var r=this.props.delayHide!=null?this.props.delayHide:this.props.delay;if(!r){this.hide();return}this._hoverHideDelay=setTimeout((function(){t._hoverHideDelay=null;t.hide()}),r)};r.handleDelayedShow=function e(){var t=this;if(this._hoverHideDelay!=null){clearTimeout(this._hoverHideDelay);this._hoverHideDelay=null;return}if(this.state.show||this._hoverShowDelay!=null){return}var r=this.props.delayShow!=null?this.props.delayShow:this.props.delay;if(!r){this.show();return}this._hoverShowDelay=setTimeout((function(){t._hoverShowDelay=null;t.show()}),r)};r.handleHide=function e(){this.hide()};r.handleMouseOverOut=function e(t,r,n){var a=r.currentTarget;var i=r.relatedTarget||r.nativeEvent[n];if((!i||i!==a)&&!ar()(a,i)){t(r)}};r.handleToggle=function e(){if(this.state.show){this.hide()}else{this.show()}};r.hide=function e(){this.setState({show:false})};r.makeOverlay=function e(t,r){return v.a.createElement(Ti,s({},r,{show:this.state.show,onHide:this.handleHide,target:this}),t)};r.show=function e(){this.setState({show:true})};r.renderOverlay=function e(){st.a.unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)};r.render=function e(){var t=this.props,r=t.trigger,n=t.overlay,a=t.children,i=t.onBlur,o=t.onClick,s=t.onFocus,u=t.onMouseOut,l=t.onMouseOver,c=g(t,["trigger","overlay","children","onBlur","onClick","onFocus","onMouseOut","onMouseOver"]);delete c.delay;delete c.delayShow;delete c.delayHide;delete c.defaultOverlayShown;var f=v.a.Children.only(a);var d=f.props;var p={};if(this.state.show){p["aria-describedby"]=n.props.id}p.onClick=Ce(d.onClick,o);if(ji("click",r)){p.onClick=Ce(p.onClick,this.handleToggle)}if(ji("hover",r)){false?undefined:void 0;p.onMouseOver=Ce(d.onMouseOver,l,this.handleMouseOver);p.onMouseOut=Ce(d.onMouseOut,u,this.handleMouseOut)}if(ji("focus",r)){p.onFocus=Ce(d.onFocus,s,this.handleDelayedShow);p.onBlur=Ce(d.onBlur,i,this.handleDelayedHide)}this._overlay=this.makeOverlay(n,c);return Object(h["cloneElement"])(f,p)};return t}(v.a.Component);Ri.propTypes=Ii;Ri.defaultProps=Pi;var Fi=Ri;var Yi=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=t.children,a=g(t,["className","children"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement("div",s({},u,{className:A()(r,l)}),v.a.createElement("h1",null,n))};return t}(v.a.Component);var Bi=P("page-header",Yi);var Hi={disabled:w.a.bool,previous:w.a.bool,next:w.a.bool,onClick:w.a.func,onSelect:w.a.func,eventKey:w.a.any};var zi={disabled:false,previous:false,next:false};var Ui=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleSelect=n.handleSelect.bind(Oe(Oe(n)));return n}var r=t.prototype;r.handleSelect=function e(t){var r=this.props,n=r.disabled,a=r.onSelect,i=r.eventKey;if(n){t.preventDefault();return}if(a){a(i,t)}};r.render=function e(){var t=this.props,r=t.disabled,n=t.previous,a=t.next,i=t.onClick,o=t.className,u=t.style,l=g(t,["disabled","previous","next","onClick","className","style"]);delete l.onSelect;delete l.eventKey;return v.a.createElement("li",{className:A()(o,{disabled:r,previous:n,next:a}),style:u},v.a.createElement(Re,s({},l,{disabled:r,onClick:Ce(i,this.handleSelect)})))};return t}(v.a.Component);Ui.propTypes=Hi;Ui.defaultProps=zi;var qi=Ui;var Vi={};function Wi(e,t,r){var n;if(typeof e==="object"){n=e.message}else{n=e+" is deprecated. Use "+t+" instead.";if(r){n+="\nYou can read more about it at "+r}}if(Vi[n]){return}false?undefined:void 0;Vi[n]=true}Wi.wrapper=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++){r[n-1]=arguments[n]}return function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;n.componentWillMount=function t(){Wi.apply(void 0,r);if(e.prototype.componentWillMount){var n;for(var a=arguments.length,i=new Array(a),o=0;o<a;o++){i[o]=arguments[o]}(n=e.prototype.componentWillMount).call.apply(n,[this].concat(i))}};return t}(e)};var Ki=Wi;function Gi(){Vi={}}var Qi=Ki.wrapper(qi,"`<PageItem>`","`<Pager.Item>`");var Ji={onSelect:w.a.func};var Zi=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.onSelect,n=t.className,a=t.children,i=g(t,["onSelect","className","children"]);var o=z(i),u=o[0],l=o[1];var c=Y(u);return v.a.createElement("ul",s({},l,{className:A()(n,c)}),ee.map(a,(function(e){return Object(h["cloneElement"])(e,{onSelect:Ce(e.props.onSelect,r)})})))};return t}(v.a.Component);Zi.propTypes=Ji;Zi.Item=qi;var Xi=P("pager",Zi);var $i={eventKey:w.a.any,className:w.a.string,onSelect:w.a.func,disabled:w.a.bool,active:w.a.bool,activeLabel:w.a.string.isRequired};var eo={active:false,disabled:false,activeLabel:"(current)"};function to(e){var t=e.active,r=e.disabled,n=e.className,a=e.style,i=e.activeLabel,o=e.children,u=g(e,["active","disabled","className","style","activeLabel","children"]);var l=t||r?"span":Re;return v.a.createElement("li",{style:a,className:A()(n,{active:t,disabled:r})},v.a.createElement(l,s({disabled:r},u),o,t&&v.a.createElement("span",{className:"sr-only"},i)))}to.propTypes=$i;to.defaultProps=eo;function ro(e,t,r){var n,a;if(r===void 0){r=e}return a=n=function(e){p(n,e);function n(){return e.apply(this,arguments)||this}var a=n.prototype;a.render=function e(){var n=this.props,a=n.disabled,i=n.children,o=n.className,u=g(n,["disabled","children","className"]);var l=a?"span":Re;return v.a.createElement("li",s({"aria-label":r,className:A()(o,{disabled:a})},u),v.a.createElement(l,null,i||t))};return n}(v.a.Component),n.displayName=e,n.propTypes={disabled:w.a.bool},a}var no=ro("First","«");var ao=ro("Prev","‹");var io=ro("Ellipsis","…","More");var oo=ro("Next","›");var so=ro("Last","»");var uo=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=t.children,a=g(t,["className","children"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement("ul",s({},u,{className:A()(r,l)}),n)};return t}(v.a.Component);P("pagination",uo);uo.First=no;uo.Prev=ao;uo.Ellipsis=io;uo.Item=to;uo.Next=oo;uo.Last=so;var lo=uo;var co={onEnter:w.a.func,onEntering:w.a.func,onEntered:w.a.func,onExit:w.a.func,onExiting:w.a.func,onExited:w.a.func};var fo={$bs_panel:w.a.shape({headingId:w.a.string,bodyId:w.a.string,bsClass:w.a.string,expanded:w.a.bool})};var po=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props.children;var r=this.context.$bs_panel||{},n=r.headingId,a=r.bodyId,i=r.bsClass,o=r.expanded;var u=z(this.props),l=u[0],c=u[1];l.bsClass=i||l.bsClass;if(n&&a){c.id=a;c.role=c.role||"tabpanel";c["aria-labelledby"]=n}return v.a.createElement(er,s({in:o},c),v.a.createElement("div",{className:I(l,"collapse")},t))};return t}(v.a.Component);po.propTypes=co;po.contextTypes=fo;var ho=P("panel",po);var vo={collapsible:w.a.bool.isRequired};var mo={collapsible:false};var yo={$bs_panel:w.a.shape({bsClass:w.a.string})};var go=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.children,n=t.className,a=t.collapsible;var i=this.context.$bs_panel||{},o=i.bsClass;var u=U(this.props,["collapsible"]),l=u[0],c=u[1];l.bsClass=o||l.bsClass;var f=v.a.createElement("div",s({},c,{className:A()(n,I(l,"body"))}),r);if(a){f=v.a.createElement(ho,null,f)}return f};return t}(v.a.Component);go.propTypes=vo;go.defaultProps=mo;go.contextTypes=yo;var bo=P("panel",go);var Ao=r(142);var _o=r.n(Ao);var wo={componentClass:_o.a};var Eo={componentClass:"div"};var xo={$bs_panel:w.a.shape({headingId:w.a.string,bsClass:w.a.string})};var ko=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.children,n=t.className,a=t.componentClass,i=g(t,["children","className","componentClass"]);var o=this.context.$bs_panel||{},u=o.headingId,l=o.bsClass;var c=z(i),f=c[0],d=c[1];f.bsClass=l||f.bsClass;if(u){d.role=d.role||"tab";d.id=u}return v.a.createElement(a,s({},d,{className:A()(n,I(f,"heading"))}),r)};return t}(v.a.Component);ko.propTypes=wo;ko.defaultProps=Eo;ko.contextTypes=xo;var Mo=P("panel",ko);var So={onClick:w.a.func,componentClass:_o.a};var Oo={componentClass:Re};var Do={$bs_panel:w.a.shape({bodyId:w.a.string,onToggle:w.a.func,expanded:w.a.bool})};var To=function(e){p(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;t.handleToggle=t.handleToggle.bind(Oe(Oe(t)));return t}var r=t.prototype;r.handleToggle=function e(t){var r=this.context.$bs_panel||{},n=r.onToggle;if(n){n(t)}};r.render=function e(){var t=this.props,r=t.onClick,n=t.className,a=t.componentClass,i=g(t,["onClick","className","componentClass"]);var o=this.context.$bs_panel||{},s=o.expanded,u=o.bodyId;var l=a;i.onClick=Ce(r,this.handleToggle);i["aria-expanded"]=s;i.className=A()(n,!s&&"collapsed");if(u){i["aria-controls"]=u}return v.a.createElement(l,i)};return t}(v.a.Component);To.propTypes=So;To.defaultProps=Oo;To.contextTypes=Do;var Lo=To;var Co={componentClass:_o.a,toggle:w.a.bool};var jo={$bs_panel:w.a.shape({bsClass:w.a.string})};var No={componentClass:"div"};var Io=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.children,n=t.className,a=t.toggle,i=t.componentClass,o=g(t,["children","className","toggle","componentClass"]);var u=this.context.$bs_panel||{},l=u.bsClass;var c=z(o),f=c[0],d=c[1];f.bsClass=l||f.bsClass;if(a){r=v.a.createElement(Lo,null,r)}return v.a.createElement(i,s({},d,{className:A()(n,I(f,"title"))}),r)};return t}(v.a.Component);Io.propTypes=Co;Io.defaultProps=No;Io.contextTypes=jo;var Po=P("panel",Io);var Ro={$bs_panel:w.a.shape({bsClass:w.a.string})};var Fo=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.children,n=t.className;var a=this.context.$bs_panel||{},i=a.bsClass;var o=z(this.props),u=o[0],l=o[1];u.bsClass=i||u.bsClass;return v.a.createElement("div",s({},l,{className:A()(n,I(u,"footer"))}),r)};return t}(v.a.Component);Fo.contextTypes=Ro;var Yo=P("panel",Fo);var Bo=Object.prototype.hasOwnProperty;var Ho=function e(t,r){return t?t+"--"+r:null};var zo={expanded:w.a.bool,onToggle:w.a.func,eventKey:w.a.any,id:w.a.string};var Uo={$bs_panelGroup:w.a.shape({getId:w.a.func,activeKey:w.a.any,onToggle:w.a.func})};var qo={$bs_panel:w.a.shape({headingId:w.a.string,bodyId:w.a.string,bsClass:w.a.string,onToggle:w.a.func,expanded:w.a.bool})};var Vo=function(e){p(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;t.handleToggle=function(e){var r=t.context.$bs_panelGroup;var n=!t.getExpanded();if(r&&r.onToggle){r.onToggle(t.props.eventKey,n,e)}else{t.props.onToggle(n,e)}};return t}var r=t.prototype;r.getChildContext=function e(){var t=this.props,r=t.eventKey,n=t.id;var a=r==null?n:r;var i;if(a!==null){var o=this.context.$bs_panelGroup;var u=o&&o.getId||Ho;i={headingId:u(a,"heading"),bodyId:u(a,"body")}}return{$bs_panel:s({},i,{bsClass:this.props.bsClass,expanded:this.getExpanded(),onToggle:this.handleToggle})}};r.getExpanded=function e(){var t=this.context.$bs_panelGroup;if(t&&Bo.call(t,"activeKey")){false?undefined:void 0;return t.activeKey===this.props.eventKey}return!!this.props.expanded};r.render=function e(){var t=this.props,r=t.className,n=t.children;var a=U(this.props,["onToggle","eventKey","expanded"]),i=a[0],o=a[1];return v.a.createElement("div",s({},o,{className:A()(r,Y(i))}),n)};return t}(v.a.Component);Vo.propTypes=zo;Vo.contextTypes=Uo;Vo.childContextTypes=qo;var Wo=x()(P("panel",R(ve()(C).concat([j.DEFAULT,j.PRIMARY]),j.DEFAULT,Vo)),{expanded:"onToggle"});o()(Wo,{Heading:Mo,Title:Po,Body:bo,Footer:Yo,Toggle:Lo,Collapse:ho});var Ko=Wo;var Go={id:ur()(w.a.oneOfType([w.a.string,w.a.number])),placement:w.a.oneOf(["top","right","bottom","left"]),positionTop:w.a.oneOfType([w.a.number,w.a.string]),positionLeft:w.a.oneOfType([w.a.number,w.a.string]),arrowOffsetTop:w.a.oneOfType([w.a.number,w.a.string]),arrowOffsetLeft:w.a.oneOfType([w.a.number,w.a.string]),title:w.a.node};var Qo={placement:"right"};var Jo=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t;var r=this.props,n=r.placement,a=r.positionTop,i=r.positionLeft,o=r.arrowOffsetTop,u=r.arrowOffsetLeft,l=r.title,c=r.className,f=r.style,d=r.children,p=g(r,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","title","className","style","children"]);var h=z(p),m=h[0],y=h[1];var b=s({},Y(m),(t={},t[n]=true,t));var _=s({display:"block",top:a,left:i},f);var w={top:o,left:u};return v.a.createElement("div",s({},y,{role:"tooltip",className:A()(c,b),style:_}),v.a.createElement("div",{className:"arrow",style:w}),l&&v.a.createElement("h3",{className:I(m,"title")},l),v.a.createElement("div",{className:I(m,"content")},d))};return t}(v.a.Component);Jo.propTypes=Go;Jo.defaultProps=Qo;var Zo=P("popover",Jo);var Xo=1e3;function $o(e,t,r){var n=e[t];if(!n){return null}var a=null;v.a.Children.forEach(n,(function(e){if(a){return}var t=v.a.createElement(ns,null);if(e.type===t.type)return;var n=v.a.isValidElement(e)?e.type.displayName||e.type.name||e.type:e;a=new Error("Children of "+r+" can contain only ProgressBar "+("components. Found "+n+"."))}));return a}var es={min:w.a.number,now:w.a.number,max:w.a.number,label:w.a.node,srOnly:w.a.bool,striped:w.a.bool,active:w.a.bool,children:$o,isChild:w.a.bool};var ts={min:0,max:100,active:false,isChild:false,srOnly:false,striped:false};function rs(e,t,r){var n=(e-t)/(r-t)*100;return Math.round(n*Xo)/Xo}var ns=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.renderProgressBar=function e(t){var r;var n=t.min,a=t.now,i=t.max,o=t.label,u=t.srOnly,l=t.striped,c=t.active,f=t.className,d=t.style,p=g(t,["min","now","max","label","srOnly","striped","active","className","style"]);var h=z(p),m=h[0],y=h[1];var b=s({},Y(m),(r={active:c},r[I(m,"striped")]=c||l,r));return v.a.createElement("div",s({},y,{role:"progressbar",className:A()(f,b),style:s({width:rs(a,n,i)+"%"},d),"aria-valuenow":a,"aria-valuemin":n,"aria-valuemax":i}),u?v.a.createElement("span",{className:"sr-only"},o):o)};r.render=function e(){var t=this.props,r=t.isChild,n=g(t,["isChild"]);if(r){return this.renderProgressBar(n)}var a=n.min,i=n.now,o=n.max,u=n.label,l=n.srOnly,c=n.striped,f=n.active,d=n.bsClass,p=n.bsStyle,m=n.className,y=n.children,b=g(n,["min","now","max","label","srOnly","striped","active","bsClass","bsStyle","className","children"]);return v.a.createElement("div",s({},b,{className:A()(m,"progress")}),y?ee.map(y,(function(e){return Object(h["cloneElement"])(e,{isChild:true})})):this.renderProgressBar({min:a,now:i,max:o,label:u,srOnly:l,striped:c,active:f,bsClass:d,bsStyle:p}))};return t}(v.a.Component);ns.propTypes=es;ns.defaultProps=ts;var as=P("progress-bar",R(ve()(C),ns));var is={inline:w.a.bool,disabled:w.a.bool,title:w.a.string,validationState:w.a.oneOf(["success","warning","error",null]),inputRef:w.a.func};var os={inline:false,disabled:false,title:""};var ss=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.inline,n=t.disabled,a=t.validationState,i=t.inputRef,o=t.className,u=t.style,l=t.title,c=t.children,f=g(t,["inline","disabled","validationState","inputRef","className","style","title","children"]);var d=z(f),p=d[0],h=d[1];var m=v.a.createElement("input",s({},h,{ref:i,type:"radio",disabled:n}));if(r){var y;var b=(y={},y[I(p,"inline")]=true,y.disabled=n,y);false?undefined:void 0;return v.a.createElement("label",{className:A()(o,b),style:u,title:l},m,c)}var _=s({},Y(p),{disabled:n});if(a){_["has-"+a]=true}return v.a.createElement("div",{className:A()(o,_),style:u},v.a.createElement("label",{title:l},m,c))};return t}(v.a.Component);ss.propTypes=is;ss.defaultProps=os;var us=P("radio",ss);var ls={children:w.a.element.isRequired,a16by9:w.a.bool,a4by3:w.a.bool};var cs={a16by9:false,a4by3:false};var fs=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t;var r=this.props,n=r.a16by9,a=r.a4by3,i=r.className,o=r.children,u=g(r,["a16by9","a4by3","className","children"]);var l=z(u),c=l[0],f=l[1];false?undefined:void 0;false?undefined:void 0;var d=s({},Y(c),(t={},t[I(c,"16by9")]=n,t[I(c,"4by3")]=a,t));return v.a.createElement("div",{className:A()(d)},Object(h["cloneElement"])(o,s({},f,{className:A()(i,I(c,"item"))})))};return t}(v.a.Component);fs.propTypes=ls;fs.defaultProps=cs;var ds=P("embed-responsive",fs);var ps={componentClass:Te.a};var hs={componentClass:"div"};var vs=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);vs.propTypes=ps;vs.defaultProps=hs;var ms=P("row",vs);var ys=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){return v.a.createElement(Ar,s({},this.props,{useAnchor:false,noCaret:false}))};return t}(v.a.Component);ys.defaultProps=Ar.defaultProps;var gs=ys;var bs=s({},Sr.propTypes,{bsStyle:w.a.string,bsSize:w.a.string,href:w.a.string,onClick:w.a.func,title:w.a.node.isRequired,toggleLabel:w.a.string,children:w.a.node});var As=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.bsSize,n=t.bsStyle,a=t.title,i=t.toggleLabel,o=t.children,u=g(t,["bsSize","bsStyle","title","toggleLabel","children"]);var l=Or(u,Sr.ControlledComponent),c=l[0],f=l[1];return v.a.createElement(Sr,s({},c,{bsSize:r,bsStyle:n}),v.a.createElement(Ke,s({},f,{disabled:u.disabled,bsSize:r,bsStyle:n}),a),v.a.createElement(gs,{"aria-label":i||a,bsSize:r,bsStyle:n}),v.a.createElement(Sr.Menu,null,o))};return t}(v.a.Component);As.propTypes=bs;As.Toggle=gs;var _s=As;var ws="tab";var Es="pane";var xs=w.a.oneOfType([w.a.string,w.a.number]);var ks={id:function e(t){var r=null;if(!t.generateChildId){for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++){a[i-1]=arguments[i]}r=xs.apply(void 0,[t].concat(a));if(!r&&!t.id){r=new Error("In order to properly initialize Tabs in a way that is accessible "+"to assistive technologies (such as screen readers) an `id` or a "+"`generateChildId` prop to TabContainer is required")}}return r},generateChildId:w.a.func,onSelect:w.a.func,activeKey:w.a.any};var Ms={$bs_tabContainer:w.a.shape({activeKey:w.a.any,onSelect:w.a.func.isRequired,getTabId:w.a.func.isRequired,getPaneId:w.a.func.isRequired})};var Ss=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.getChildContext=function e(){var t=this.props,r=t.activeKey,n=t.onSelect,a=t.generateChildId,i=t.id;var o=a||function(e,t){return i?i+"-"+t+"-"+e:null};return{$bs_tabContainer:{activeKey:r,onSelect:n,getTabId:function e(t){return o(t,ws)},getPaneId:function e(t){return o(t,Es)}}}};r.render=function e(){var t=this.props,r=t.children,n=g(t,["children"]);delete n.generateChildId;delete n.onSelect;delete n.activeKey;return v.a.cloneElement(v.a.Children.only(r),n)};return t}(v.a.Component);Ss.propTypes=ks;Ss.childContextTypes=Ms;var Os=x()(Ss,{activeKey:"onSelect"});var Ds={componentClass:Te.a,animation:w.a.oneOfType([w.a.bool,Te.a]),mountOnEnter:w.a.bool,unmountOnExit:w.a.bool};var Ts={componentClass:"div",animation:true,mountOnEnter:false,unmountOnExit:false};var Ls={$bs_tabContainer:w.a.shape({activeKey:w.a.any})};var Cs={$bs_tabContent:w.a.shape({bsClass:w.a.string,animation:w.a.oneOfType([w.a.bool,Te.a]),activeKey:w.a.any,mountOnEnter:w.a.bool,unmountOnExit:w.a.bool,onPaneEnter:w.a.func.isRequired,onPaneExited:w.a.func.isRequired,exiting:w.a.bool.isRequired})};var js=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handlePaneEnter=n.handlePaneEnter.bind(Oe(Oe(n)));n.handlePaneExited=n.handlePaneExited.bind(Oe(Oe(n)));n.state={activeKey:null,activeChild:null};return n}var r=t.prototype;r.getChildContext=function e(){var t=this.props,r=t.bsClass,n=t.animation,a=t.mountOnEnter,i=t.unmountOnExit;var o=this.state.activeKey;var s=this.getContainerActiveKey();var u=o!=null?o:s;var l=o!=null&&o!==s;return{$bs_tabContent:{bsClass:r,animation:n,activeKey:u,mountOnEnter:a,unmountOnExit:i,onPaneEnter:this.handlePaneEnter,onPaneExited:this.handlePaneExited,exiting:l}}};r.componentWillReceiveProps=function e(t){if(!t.animation&&this.state.activeChild){this.setState({activeKey:null,activeChild:null})}};r.componentWillUnmount=function e(){this.isUnmounted=true};r.getContainerActiveKey=function e(){var t=this.context.$bs_tabContainer;return t&&t.activeKey};r.handlePaneEnter=function e(t,r){if(!this.props.animation){return false}if(r!==this.getContainerActiveKey()){return false}this.setState({activeKey:r,activeChild:t});return true};r.handlePaneExited=function e(t){if(this.isUnmounted){return}this.setState((function(e){var r=e.activeChild;if(r!==t){return null}return{activeKey:null,activeChild:null}}))};r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=U(a,["animation","mountOnEnter","unmountOnExit"]),o=i[0],u=i[1];return v.a.createElement(r,s({},u,{className:A()(n,I(o,"content"))}))};return t}(v.a.Component);js.propTypes=Ds;js.defaultProps=Ts;js.contextTypes=Ls;js.childContextTypes=Cs;var Ns=P("tab",js);var Is={eventKey:w.a.any,animation:w.a.oneOfType([w.a.bool,Te.a]),id:w.a.string,"aria-labelledby":w.a.string,bsClass:w.a.string,onEnter:w.a.func,onEntering:w.a.func,onEntered:w.a.func,onExit:w.a.func,onExiting:w.a.func,onExited:w.a.func,mountOnEnter:w.a.bool,unmountOnExit:w.a.bool};var Ps={$bs_tabContainer:w.a.shape({getTabId:w.a.func,getPaneId:w.a.func}),$bs_tabContent:w.a.shape({bsClass:w.a.string,animation:w.a.oneOfType([w.a.bool,Te.a]),activeKey:w.a.any,mountOnEnter:w.a.bool,unmountOnExit:w.a.bool,onPaneEnter:w.a.func.isRequired,onPaneExited:w.a.func.isRequired,exiting:w.a.bool.isRequired})};var Rs={$bs_tabContainer:w.a.oneOf([null])};var Fs=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleEnter=n.handleEnter.bind(Oe(Oe(n)));n.handleExited=n.handleExited.bind(Oe(Oe(n)));n.in=false;return n}var r=t.prototype;r.getChildContext=function e(){return{$bs_tabContainer:null}};r.componentDidMount=function e(){if(this.shouldBeIn()){this.handleEnter()}};r.componentDidUpdate=function e(){if(this.in){if(!this.shouldBeIn()){this.handleExited()}}else if(this.shouldBeIn()){this.handleEnter()}};r.componentWillUnmount=function e(){if(this.in){this.handleExited()}};r.getAnimation=function e(){if(this.props.animation!=null){return this.props.animation}var t=this.context.$bs_tabContent;return t&&t.animation};r.handleEnter=function e(){var t=this.context.$bs_tabContent;if(!t){return}this.in=t.onPaneEnter(this,this.props.eventKey)};r.handleExited=function e(){var t=this.context.$bs_tabContent;if(!t){return}t.onPaneExited(this);this.in=false};r.isActive=function e(){var t=this.context.$bs_tabContent;var r=t&&t.activeKey;return this.props.eventKey===r};r.shouldBeIn=function e(){return this.getAnimation()&&this.isActive()};r.render=function e(){var t=this.props,r=t.eventKey,n=t.className,a=t.onEnter,i=t.onEntering,o=t.onEntered,u=t.onExit,l=t.onExiting,c=t.onExited,f=t.mountOnEnter,d=t.unmountOnExit,p=g(t,["eventKey","className","onEnter","onEntering","onEntered","onExit","onExiting","onExited","mountOnEnter","unmountOnExit"]);var h=this.context,m=h.$bs_tabContent,y=h.$bs_tabContainer;var b=U(p,["animation"]),_=b[0],w=b[1];var E=this.isActive();var x=this.getAnimation();var k=f!=null?f:m&&m.mountOnEnter;var M=d!=null?d:m&&m.unmountOnExit;if(!E&&!x&&M){return null}var S=x===true?Rr:x||null;if(m){_.bsClass=I(m,"pane")}var O=s({},Y(_),{active:E});if(y){false?undefined:void 0;w.id=y.getPaneId(r);w["aria-labelledby"]=y.getTabId(r)}var D=v.a.createElement("div",s({},w,{role:"tabpanel","aria-hidden":!E,className:A()(n,O)}));if(S){var T=m&&m.exiting;return v.a.createElement(S,{in:E&&!T,onEnter:Ce(this.handleEnter,a),onEntering:i,onEntered:o,onExit:u,onExiting:l,onExited:Ce(this.handleExited,c),mountOnEnter:k,unmountOnExit:M},D)}return D};return t}(v.a.Component);Fs.propTypes=Is;Fs.contextTypes=Ps;Fs.childContextTypes=Rs;var Ys=P("tab-pane",Fs);var Bs=s({},Ys.propTypes,{disabled:w.a.bool,title:w.a.node,tabClassName:w.a.string});var Hs=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=s({},this.props);delete t.title;delete t.disabled;delete t.tabClassName;return v.a.createElement(Ys,t)};return t}(v.a.Component);Hs.propTypes=Bs;Hs.Container=Os;Hs.Content=Ns;Hs.Pane=Ys;var zs=Hs;var Us={striped:w.a.bool,bordered:w.a.bool,condensed:w.a.bool,hover:w.a.bool,responsive:w.a.bool};var qs={bordered:false,condensed:false,hover:false,responsive:false,striped:false};var Vs=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t;var r=this.props,n=r.striped,a=r.bordered,i=r.condensed,o=r.hover,u=r.responsive,l=r.className,c=g(r,["striped","bordered","condensed","hover","responsive","className"]);var f=z(c),d=f[0],p=f[1];var h=s({},Y(d),(t={},t[I(d,"striped")]=n,t[I(d,"bordered")]=a,t[I(d,"condensed")]=i,t[I(d,"hover")]=o,t));var m=v.a.createElement("table",s({},p,{className:A()(l,h)}));if(u){return v.a.createElement("div",{className:I(d,"responsive")},m)}return m};return t}(v.a.Component);Vs.propTypes=Us;Vs.defaultProps=qs;var Ws=P("table",Vs);var Ks=Os.ControlledComponent;var Gs={activeKey:w.a.any,bsStyle:w.a.oneOf(["tabs","pills"]),animation:w.a.oneOfType([w.a.bool,Te.a]),id:ur()(w.a.oneOfType([w.a.string,w.a.number])),onSelect:w.a.func,mountOnEnter:w.a.bool,unmountOnExit:w.a.bool};var Qs={bsStyle:"tabs",animation:true,mountOnEnter:false,unmountOnExit:false};function Js(e){var t;ee.forEach(e,(function(e){if(t==null){t=e.props.eventKey}}));return t}var Zs=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.renderTab=function e(t){var r=t.props,n=r.title,a=r.eventKey,i=r.disabled,o=r.tabClassName;if(n==null){return null}return v.a.createElement(xi,{eventKey:a,disabled:i,className:o},n)};r.render=function e(){var t=this.props,r=t.id,n=t.onSelect,a=t.animation,i=t.mountOnEnter,o=t.unmountOnExit,u=t.bsClass,l=t.className,c=t.style,f=t.children,d=t.activeKey,p=d===void 0?Js(f):d,h=g(t,["id","onSelect","animation","mountOnEnter","unmountOnExit","bsClass","className","style","children","activeKey"]);return v.a.createElement(Ks,{id:r,activeKey:p,onSelect:n,className:l,style:c},v.a.createElement("div",null,v.a.createElement(Za,s({},h,{role:"tablist"}),ee.map(f,this.renderTab)),v.a.createElement(Ns,{bsClass:u,animation:a,mountOnEnter:i,unmountOnExit:o},f)))};return t}(v.a.Component);Zs.propTypes=Gs;Zs.defaultProps=Qs;P("tab",Zs);var Xs=x()(Zs,{activeKey:"onSelect"});var $s={src:w.a.string,alt:w.a.string,href:w.a.string,onError:w.a.func,onLoad:w.a.func};var eu=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.src,n=t.alt,a=t.onError,i=t.onLoad,o=t.className,u=t.children,l=g(t,["src","alt","onError","onLoad","className","children"]);var c=z(l),f=c[0],d=c[1];var p=d.href?Re:"div";var h=Y(f);return v.a.createElement(p,s({},d,{className:A()(o,h)}),v.a.createElement("img",{src:r,alt:n,onError:a,onLoad:i}),u&&v.a.createElement("div",{className:"caption"},u))};return t}(v.a.Component);eu.propTypes=$s;var tu=P("thumbnail",eu);var ru={type:w.a.oneOf(["checkbox","radio"]),name:w.a.string,checked:w.a.bool,disabled:w.a.bool,onChange:w.a.func,value:w.a.any.isRequired};var nu=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.children,n=t.name,a=t.checked,i=t.type,o=t.onChange,u=t.value,l=g(t,["children","name","checked","type","onChange","value"]);var c=l.disabled;return v.a.createElement(Ke,s({},l,{active:!!a,componentClass:"label"}),v.a.createElement("input",{name:n,type:i,autoComplete:"off",value:u,checked:!!a,disabled:!!c,onChange:o}),r)};return t}(v.a.Component);nu.propTypes=ru;var au=nu;var iu={name:w.a.string,value:w.a.any,onChange:w.a.func,type:w.a.oneOf(["checkbox","radio"]).isRequired};var ou={type:"radio"};var su=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.getValues=function e(){var t=this.props.value;return t==null?[]:[].concat(t)};r.handleToggle=function e(t){var r=this.props,n=r.type,a=r.onChange;var i=this.getValues();var o=i.indexOf(t)!==-1;if(n==="radio"){if(!o){a(t)}return}if(o){a(i.filter((function(e){return e!==t})))}else{a(i.concat([t]))}};r.render=function e(){var t=this;var r=this.props,n=r.children,a=r.type,i=r.name,o=g(r,["children","type","name"]);var u=this.getValues();!(a!=="radio"||!!i)?false?undefined:O()(false):void 0;delete o.onChange;delete o.value;return v.a.createElement($e,s({},o,{"data-toggle":"buttons"}),ee.map(n,(function(e){var r=e.props,n=r.value,o=r.onChange;var s=function e(){return t.handleToggle(n)};return v.a.cloneElement(e,{type:a,name:e.name||i,checked:u.indexOf(n)!==-1,onChange:Ce(o,s)})})))};return t}(v.a.Component);su.propTypes=iu;su.defaultProps=ou;var uu=x()(su,{value:"onChange"});uu.Button=au;var lu=uu;var cu={id:ur()(w.a.oneOfType([w.a.string,w.a.number])),placement:w.a.oneOf(["top","right","bottom","left"]),positionTop:w.a.oneOfType([w.a.number,w.a.string]),positionLeft:w.a.oneOfType([w.a.number,w.a.string]),arrowOffsetTop:w.a.oneOfType([w.a.number,w.a.string]),arrowOffsetLeft:w.a.oneOfType([w.a.number,w.a.string])};var fu={placement:"right"};var du=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t;var r=this.props,n=r.placement,a=r.positionTop,i=r.positionLeft,o=r.arrowOffsetTop,u=r.arrowOffsetLeft,l=r.className,c=r.style,f=r.children,d=g(r,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","className","style","children"]);var p=z(d),h=p[0],m=p[1];var y=s({},Y(h),(t={},t[n]=true,t));var b=s({top:a,left:i},c);var _={top:o,left:u};return v.a.createElement("div",s({},m,{role:"tooltip",className:A()(l,y),style:b}),v.a.createElement("div",{className:I(h,"arrow"),style:_}),v.a.createElement("div",{className:I(h,"inner")},f))};return t}(v.a.Component);du.propTypes=cu;du.defaultProps=fu;var pu=P("tooltip",du);var hu=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=z(n),i=a[0],o=a[1];var u=Y(i);return v.a.createElement("div",s({},o,{className:A()(r,u)}))};return t}(v.a.Component);var vu=P("well",F([D.LARGE,D.SMALL],hu))},function(e,t,r){"use strict";t.__esModule=true;t.default=n;function n(e){return e&&e.ownerDocument||document}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(20);t.__esModule=true;t.default=c;var a=n(r(583));var i=n(r(969));var o=n(r(971));var s=n(r(972));var u=r(277);var l=n(r(973));function c(e,t,r){var n="";var c="";var f=t;if(typeof t==="string"){if(r===undefined){return e.style[(0,a.default)(t)]||(0,o.default)(e).getPropertyValue((0,i.default)(t))}else{(f={})[t]=r}}Object.keys(f).forEach((function(t){var r=f[t];if(!r&&r!==0){(0,s.default)(e,(0,i.default)(t))}else if((0,l.default)(t)){c+=t+"("+r+") "}else{n+=(0,i.default)(t)+": "+r+";"}}));if(c){n+=u.transform+": "+c+";"}e.style.cssText+=";"+n}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(93);var a={childContextTypes:true,contextType:true,contextTypes:true,defaultProps:true,displayName:true,getDefaultProps:true,getDerivedStateFromError:true,getDerivedStateFromProps:true,mixins:true,propTypes:true,type:true};var i={name:true,length:true,prototype:true,caller:true,callee:true,arguments:true,arity:true};var o={$$typeof:true,render:true,defaultProps:true,displayName:true,propTypes:true};var s={$$typeof:true,compare:true,defaultProps:true,displayName:true,propTypes:true,type:true};var u={};u[n.ForwardRef]=o;u[n.Memo]=s;function l(e){if(n.isMemo(e)){return s}return u[e["$$typeof"]]||a}var c=Object.defineProperty;var f=Object.getOwnPropertyNames;var d=Object.getOwnPropertySymbols;var p=Object.getOwnPropertyDescriptor;var h=Object.getPrototypeOf;var v=Object.prototype;function m(e,t,r){if(typeof t!=="string"){if(v){var n=h(t);if(n&&n!==v){m(e,n,r)}}var a=f(t);if(d){a=a.concat(d(t))}var o=l(e);var s=l(t);for(var u=0;u<a.length;++u){var y=a[u];if(!i[y]&&!(r&&r[y])&&!(s&&s[y])&&!(o&&o[y])){var g=p(t,y);try{c(e,y,g)}catch(e){}}}}return e}e.exports=m},function(e,t,r){"use strict";(function(e){var n=r(21);var a=r(678);var i=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var o=i&&typeof e=="object"&&e&&!e.nodeType&&e;var s=o&&o.exports===i;var u=s?n["a"].Buffer:undefined;var l=u?u.isBuffer:undefined;var c=l||a["a"];t["a"]=c}).call(this,r(169)(e))},function(e,t,r){var n=r(213),a=r(660),i=r(109);function o(e){return e&&e.length?n(e,i,a):undefined}e.exports=o},function(e,t,r){"use strict";t.__esModule=true;t.locationsAreEqual=t.statesAreEqual=t.createLocation=t.createQuery=undefined;var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var a=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 i=r(8);var o=f(i);var s=r(23);var u=f(s);var l=r(82);var c=r(164);function f(e){return e&&e.__esModule?e:{default:e}}var d=t.createQuery=function e(t){return a(Object.create(null),t)};var p=t.createLocation=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"/";var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:c.POP;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var a=typeof t==="string"?(0,l.parsePath)(t):t;false?undefined:void 0;var i=a.pathname||"/";var o=a.search||"";var s=a.hash||"";var u=a.state;return{pathname:i,search:o,hash:s,state:u,action:r,key:n}};var h=function e(t){return Object.prototype.toString.call(t)==="[object Date]"};var v=t.statesAreEqual=function e(t,r){if(t===r)return true;var a=typeof t==="undefined"?"undefined":n(t);var i=typeof r==="undefined"?"undefined":n(r);if(a!==i)return false;!(a!=="function")?false?undefined:(0,o.default)(false):void 0;if(a==="object"){!!(h(t)&&h(r))?false?undefined:(0,o.default)(false):void 0;if(!Array.isArray(t)){var s=Object.keys(t);var u=Object.keys(r);return s.length===u.length&&s.every((function(n){return e(t[n],r[n])}))}return Array.isArray(r)&&t.length===r.length&&t.every((function(t,n){return e(t,r[n])}))}return false};var m=t.locationsAreEqual=function e(t,r){return t.key===r.key&&t.pathname===r.pathname&&t.search===r.search&&t.hash===r.hash&&v(t.state,r.state)}},function(e,t){if(typeof Object.create==="function"){e.exports=function e(t,r){if(r){t.super_=r;t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function e(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype;t.prototype=new n;t.prototype.constructor=t}}}},function(e,t){var r=e.exports={};var n;var a;function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){n=setTimeout}else{n=i}}catch(e){n=i}try{if(typeof clearTimeout==="function"){a=clearTimeout}else{a=o}}catch(e){a=o}})();function s(e){if(n===setTimeout){return setTimeout(e,0)}if((n===i||!n)&&setTimeout){n=setTimeout;return setTimeout(e,0)}try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}function u(e){if(a===clearTimeout){return clearTimeout(e)}if((a===o||!a)&&clearTimeout){a=clearTimeout;return clearTimeout(e)}try{return a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}var l=[];var c=false;var f;var d=-1;function p(){if(!c||!f){return}c=false;if(f.length){l=f.concat(l)}else{d=-1}if(l.length){h()}}function h(){if(c){return}var e=s(p);c=true;var t=l.length;while(t){f=l;l=[];while(++d<t){if(f){f[d].run()}}d=-1;t=l.length}f=null;c=false;u(e)}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1){for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}}l.push(new v(e,t));if(l.length===1&&!c){s(h)}};function v(e,t){this.fun=e;this.array=t}v.prototype.run=function(){this.fun.apply(null,this.array)};r.title="browser";r.browser=true;r.env={};r.argv=[];r.version="";r.versions={};function m(){}r.on=m;r.addListener=m;r.once=m;r.off=m;r.removeListener=m;r.removeAllListeners=m;r.emit=m;r.prependListener=m;r.prependOnceListener=m;r.listeners=function(e){return[]};r.binding=function(e){throw new Error("process.binding is not supported")};r.cwd=function(){return"/"};r.chdir=function(e){throw new Error("process.chdir is not supported")};r.umask=function(){return 0}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,r){var n=r(84);var a=r(153);e.exports=r(74)?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){var n=r(128);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return typeof e==="object"?e!==null:typeof e==="function"}},function(e,t,r){var n=r(574);var a=r(274);e.exports=Object.keys||function e(t){return n(t,a)}},function(e,t,r){var n=r(187);e.exports=function(e){return Object(n(e))}},function(e,t,r){"use strict";t.__esModule=true;t.default=function(e){return(0,o.default)(a.default.findDOMNode(e))};var n=r(17);var a=s(n);var i=r(117);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t["default"]},function(e,t,r){var n=r(59);var a=n.Symbol;e.exports=a},function(e,t,r){var n=r(601),a=r(1025),i=r(108);function o(e){return i(e)?n(e):a(e)}e.exports=o},function(e,t){function r(e,t){var r=-1,n=e==null?0:e.length,a=Array(n);while(++r<n){a[r]=t(e[r],r,e)}return a}e.exports=r},function(e,t,r){var n=r(85),a=r(60);var i="[object Symbol]";function o(e){return typeof e=="symbol"||a(e)&&n(e)==i}e.exports=o},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="Palace Collection Manager";t.default=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return n([a],e).filter((function(e){return!!e})).join(" - ")}},function(e,t){e.exports=function(e){return typeof e==="object"?e!==null:typeof e==="function"}},function(e,t,r){e.exports=!r(91)((function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}))},function(e,t,r){"use strict";var n=typeof Reflect==="object"?Reflect:null;var a=n&&typeof n.apply==="function"?n.apply:function e(t,r,n){return Function.prototype.apply.call(t,r,n)};var i;if(n&&typeof n.ownKeys==="function"){i=n.ownKeys}else if(Object.getOwnPropertySymbols){i=function e(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}}else{i=function e(t){return Object.getOwnPropertyNames(t)}}function o(e){if(console&&console.warn)console.warn(e)}var s=Number.isNaN||function e(t){return t!==t};function u(){u.init.call(this)}e.exports=u;e.exports.once=A;u.EventEmitter=u;u.prototype._events=undefined;u.prototype._eventsCount=0;u.prototype._maxListeners=undefined;var l=10;function c(e){if(typeof e!=="function"){throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}}Object.defineProperty(u,"defaultMaxListeners",{enumerable:true,get:function(){return l},set:function(e){if(typeof e!=="number"||e<0||s(e)){throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".")}l=e}});u.init=function(){if(this._events===undefined||this._events===Object.getPrototypeOf(this)._events){this._events=Object.create(null);this._eventsCount=0}this._maxListeners=this._maxListeners||undefined};u.prototype.setMaxListeners=function e(t){if(typeof t!=="number"||t<0||s(t)){throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".")}this._maxListeners=t;return this};function f(e){if(e._maxListeners===undefined)return u.defaultMaxListeners;return e._maxListeners}u.prototype.getMaxListeners=function e(){return f(this)};u.prototype.emit=function e(t){var r=[];for(var n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error";var o=this._events;if(o!==undefined)i=i&&o.error===undefined;else if(!i)return false;if(i){var s;if(r.length>0)s=r[0];if(s instanceof Error){throw s}var u=new Error("Unhandled error."+(s?" ("+s.message+")":""));u.context=s;throw u}var l=o[t];if(l===undefined)return false;if(typeof l==="function"){a(l,this,r)}else{var c=l.length;var f=y(l,c);for(var n=0;n<c;++n)a(f[n],this,r)}return true};function d(e,t,r,n){var a;var i;var s;c(r);i=e._events;if(i===undefined){i=e._events=Object.create(null);e._eventsCount=0}else{if(i.newListener!==undefined){e.emit("newListener",t,r.listener?r.listener:r);i=e._events}s=i[t]}if(s===undefined){s=i[t]=r;++e._eventsCount}else{if(typeof s==="function"){s=i[t]=n?[r,s]:[s,r]}else if(n){s.unshift(r)}else{s.push(r)}a=f(e);if(a>0&&s.length>a&&!s.warned){s.warned=true;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners "+"added. Use emitter.setMaxListeners() to "+"increase limit");u.name="MaxListenersExceededWarning";u.emitter=e;u.type=t;u.count=s.length;o(u)}}return e}u.prototype.addListener=function e(t,r){return d(this,t,r,false)};u.prototype.on=u.prototype.addListener;u.prototype.prependListener=function e(t,r){return d(this,t,r,true)};function p(){if(!this.fired){this.target.removeListener(this.type,this.wrapFn);this.fired=true;if(arguments.length===0)return this.listener.call(this.target);return this.listener.apply(this.target,arguments)}}function h(e,t,r){var n={fired:false,wrapFn:undefined,target:e,type:t,listener:r};var a=p.bind(n);a.listener=r;n.wrapFn=a;return a}u.prototype.once=function e(t,r){c(r);this.on(t,h(this,t,r));return this};u.prototype.prependOnceListener=function e(t,r){c(r);this.prependListener(t,h(this,t,r));return this};u.prototype.removeListener=function e(t,r){var n,a,i,o,s;c(r);a=this._events;if(a===undefined)return this;n=a[t];if(n===undefined)return this;if(n===r||n.listener===r){if(--this._eventsCount===0)this._events=Object.create(null);else{delete a[t];if(a.removeListener)this.emit("removeListener",t,n.listener||r)}}else if(typeof n!=="function"){i=-1;for(o=n.length-1;o>=0;o--){if(n[o]===r||n[o].listener===r){s=n[o].listener;i=o;break}}if(i<0)return this;if(i===0)n.shift();else{g(n,i)}if(n.length===1)a[t]=n[0];if(a.removeListener!==undefined)this.emit("removeListener",t,s||r)}return this};u.prototype.off=u.prototype.removeListener;u.prototype.removeAllListeners=function e(t){var r,n,a;n=this._events;if(n===undefined)return this;if(n.removeListener===undefined){if(arguments.length===0){this._events=Object.create(null);this._eventsCount=0}else if(n[t]!==undefined){if(--this._eventsCount===0)this._events=Object.create(null);else delete n[t]}return this}if(arguments.length===0){var i=Object.keys(n);var o;for(a=0;a<i.length;++a){o=i[a];if(o==="removeListener")continue;this.removeAllListeners(o)}this.removeAllListeners("removeListener");this._events=Object.create(null);this._eventsCount=0;return this}r=n[t];if(typeof r==="function"){this.removeListener(t,r)}else if(r!==undefined){for(a=r.length-1;a>=0;a--){this.removeListener(t,r[a])}}return this};function v(e,t,r){var n=e._events;if(n===undefined)return[];var a=n[t];if(a===undefined)return[];if(typeof a==="function")return r?[a.listener||a]:[a];return r?b(a):y(a,a.length)}u.prototype.listeners=function e(t){return v(this,t,true)};u.prototype.rawListeners=function e(t){return v(this,t,false)};u.listenerCount=function(e,t){if(typeof e.listenerCount==="function"){return e.listenerCount(t)}else{return m.call(e,t)}};u.prototype.listenerCount=m;function m(e){var t=this._events;if(t!==undefined){var r=t[e];if(typeof r==="function"){return 1}else if(r!==undefined){return r.length}}return 0}u.prototype.eventNames=function e(){return this._eventsCount>0?i(this._events):[]};function y(e,t){var r=new Array(t);for(var n=0;n<t;++n)r[n]=e[n];return r}function g(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function b(e){var t=new Array(e.length);for(var r=0;r<t.length;++r){t[r]=e[r].listener||e[r]}return t}function A(e,t){return new Promise((function(r,n){function a(){if(i!==undefined){e.removeListener("error",i)}r([].slice.call(arguments))}var i;if(t!=="error"){i=function r(i){e.removeListener(t,a);n(i)};e.once("error",i)}e.once(t,a)}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value: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}e.exports=t["default"]},function(e,t,r){var n=r(85),a=r(289),i=r(60);var o="[object Object]";var s=Function.prototype,u=Object.prototype;var l=s.toString;var c=u.hasOwnProperty;var f=l.call(Object);function d(e){if(!i(e)||n(e)!=o){return false}var t=a(e);if(t===null){return true}var r=c.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&l.call(r)==f}e.exports=d},function(e,t,r){"use strict";t.__esModule=true;var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol?"symbol":typeof e};var a=r(1);var i=u(a);var o=r(1006);var s=u(o);function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,r,a,o){var s=e[t];var u=typeof s==="undefined"?"undefined":n(s);if(i.default.isValidElement(s)){return new Error("Invalid "+a+" `"+o+"` of type ReactElement "+("supplied to `"+r+"`, expected an element type (a string ")+"or a ReactClass).")}if(u!=="function"&&u!=="string"){return new Error("Invalid "+a+" `"+o+"` of value `"+s+"` "+("supplied to `"+r+"`, expected an element type (a string ")+"or a ReactClass).")}return null}t.default=(0,s.default)(l)},function(e,t,r){"use strict";var n=r(44);var a=r(220);var i=r(32);var o="[object Object]";var s=Function.prototype,u=Object.prototype;var l=s.toString;var c=u.hasOwnProperty;var f=l.call(Object);function d(e){if(!Object(i["a"])(e)||Object(n["a"])(e)!=o){return false}var t=Object(a["a"])(e);if(t===null){return true}var r=c.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&l.call(r)==f}t["a"]=d},function(e,t,r){var n=r(332),a=r(1274),i=r(654),o=r(212);var s=i((function(e,t){if(e==null){return[]}var r=t.length;if(r>1&&o(e,t[0],t[1])){t=[]}else if(r>2&&o(t[0],t[1],t[2])){t=[t[0]]}return a(e,n(t,1),[])}));e.exports=s},function(e,t,r){var n=r(51),a=r(1256);function i(e,t){return e&&e.length?a(e,n(t,2)):[]}e.exports=i},function(e,t,r){var n=r(1293);var a=n();e.exports=a},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(334);var i=F(a);var o=r(92);var s=F(o);var u=r(79);var l=F(u);var c=r(0);var f=F(c);var d=r(190);var p=F(d);var h=r(990);var v=F(h);var m=r(9);var y=F(m);var g=r(1);var b=F(g);var A=r(17);var _=F(A);var w=r(23);var E=F(w);var x=r(992);var k=F(x);var M=r(596);var S=F(M);var O=r(996);var D=F(O);var T=r(592);var L=F(T);var C=r(997);var j=F(C);var N=r(192);var I=F(N);var P=r(131);var R=F(P);function F(e){return e&&e.__esModule?e:{default:e}}function Y(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 H(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 z=new k.default;var U=function(e){H(t,e);function t(){var r,n,a;Y(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),q.call(n),r),B(n,a)}t.prototype.omitProps=function e(t,r){var n=Object.keys(t);var a={};n.map((function(e){if(!Object.prototype.hasOwnProperty.call(r,e)){a[e]=t[e]}}));return a};t.prototype.render=function e(){var r=this.props,a=r.show,i=r.container,o=r.children,s=r.transition,u=r.backdrop,l=r.className,c=r.style,f=r.onExit,d=r.onExiting,p=r.onEnter,h=r.onEntering,v=r.onEntered;var m=b.default.Children.only(o);var y=this.omitProps(this.props,t.propTypes);var A=a||s&&!this.state.exited;if(!A){return null}var _=m.props,w=_.role,E=_.tabIndex;if(w===undefined||E===undefined){m=(0,g.cloneElement)(m,{role:w===undefined?"document":w,tabIndex:E==null?"-1":E})}if(s){m=b.default.createElement(s,{appear:true,unmountOnExit:true,in:a,onExit:f,onExiting:d,onExited:this.handleHidden,onEnter:p,onEntering:h,onEntered:v},m)}return b.default.createElement(S.default,{ref:this.setMountNode,container:i,onRendered:this.onPortalRendered},b.default.createElement("div",n({ref:this.setModalNodeRef,role:w||"dialog"},y,{style:c,className:l}),u&&this.renderBackdrop(),b.default.createElement(D.default,{ref:this.setDialogRef},m)))};t.prototype.componentWillReceiveProps=function e(t){if(t.show){this.setState({exited:false})}else if(!t.transition){this.setState({exited:true})}};t.prototype.componentWillUpdate=function e(t){if(!this.props.show&&t.show){this.checkForFocus()}};t.prototype.componentDidMount=function e(){this._isMounted=true;if(this.props.show){this.onShow()}};t.prototype.componentDidUpdate=function e(t){var r=this.props.transition;if(t.show&&!this.props.show&&!r){this.onHide()}else if(!t.show&&this.props.show){this.onShow()}};t.prototype.componentWillUnmount=function e(){var t=this.props,r=t.show,n=t.transition;this._isMounted=false;if(r||n&&!this.state.exited){this.onHide()}};t.prototype.autoFocus=function e(){if(!this.props.autoFocus){return}var t=this.getDialogElement();var r=(0,i.default)((0,R.default)(this));if(t&&!(0,s.default)(t,r)){this.lastFocus=r;if(!t.hasAttribute("tabIndex")){(0,E.default)(false,"The modal content node does not accept focus. For the benefit of "+"assistive technologies, the tabIndex of the node is being set "+'to "-1".');t.setAttribute("tabIndex",-1)}t.focus()}};t.prototype.restoreLastFocus=function e(){if(this.lastFocus&&this.lastFocus.focus){this.lastFocus.focus();this.lastFocus=null}};t.prototype.getDialogElement=function e(){return _.default.findDOMNode(this.dialog)};t.prototype.isTopModal=function e(){return this.props.manager.isTopModal(this)};return t}(b.default.Component);U.propTypes=n({},S.default.propTypes,{show:f.default.bool,container:f.default.oneOfType([p.default,f.default.func]),onShow:f.default.func,onHide:f.default.func,backdrop:f.default.oneOfType([f.default.bool,f.default.oneOf(["static"])]),renderBackdrop:f.default.func,onEscapeKeyDown:f.default.func,onEscapeKeyUp:(0,v.default)(f.default.func,"Please use onEscapeKeyDown instead for consistency"),onBackdropClick:f.default.func,backdropStyle:f.default.object,backdropClassName:f.default.string,containerClassName:f.default.string,keyboard:f.default.bool,transition:y.default,backdropTransition:y.default,autoFocus:f.default.bool,enforceFocus:f.default.bool,restoreFocus:f.default.bool,onEnter:f.default.func,onEntering:f.default.func,onEntered:f.default.func,onExit:f.default.func,onExiting:f.default.func,onExited:f.default.func,manager:f.default.object.isRequired});U.defaultProps={show:false,backdrop:true,keyboard:true,autoFocus:true,enforceFocus:true,restoreFocus:true,onHide:function e(){},manager:z,renderBackdrop:function e(t){return b.default.createElement("div",t)}};var q=function e(){var t=this;this.state={exited:!this.props.show};this.renderBackdrop=function(){var e=t.props,r=e.backdropStyle,n=e.backdropClassName,a=e.renderBackdrop,i=e.backdropTransition;var o=function e(r){return t.backdrop=r};var s=a({ref:o,style:r,className:n,onClick:t.handleBackdropClick});if(i){s=b.default.createElement(i,{appear:true,in:t.props.show},s)}return s};this.onPortalRendered=function(){t.autoFocus();if(t.props.onShow){t.props.onShow()}};this.onShow=function(){var e=(0,R.default)(t);var r=(0,I.default)(t.props.container,e.body);t.props.manager.add(t,r,t.props.containerClassName);t._onDocumentKeydownListener=(0,L.default)(e,"keydown",t.handleDocumentKeyDown);t._onDocumentKeyupListener=(0,L.default)(e,"keyup",t.handleDocumentKeyUp);t._onFocusinListener=(0,j.default)(t.enforceFocus)};this.onHide=function(){t.props.manager.remove(t);t._onDocumentKeydownListener.remove();t._onDocumentKeyupListener.remove();t._onFocusinListener.remove();if(t.props.restoreFocus){t.restoreLastFocus()}};this.setMountNode=function(e){t.mountNode=e?e.getMountNode():e};this.setModalNodeRef=function(e){t.modalNode=e};this.setDialogRef=function(e){t.dialog=e};this.handleHidden=function(){t.setState({exited:true});t.onHide();if(t.props.onExited){var e;(e=t.props).onExited.apply(e,arguments)}};this.handleBackdropClick=function(e){if(e.target!==e.currentTarget){return}if(t.props.onBackdropClick){t.props.onBackdropClick(e)}if(t.props.backdrop===true){t.props.onHide()}};this.handleDocumentKeyDown=function(e){if(t.props.keyboard&&e.keyCode===27&&t.isTopModal()){if(t.props.onEscapeKeyDown){t.props.onEscapeKeyDown(e)}t.props.onHide()}};this.handleDocumentKeyUp=function(e){if(t.props.keyboard&&e.keyCode===27&&t.isTopModal()){if(t.props.onEscapeKeyUp){t.props.onEscapeKeyUp(e)}}};this.checkForFocus=function(){if(l.default){t.lastFocus=(0,i.default)()}};this.enforceFocus=function(){if(!t.props.enforceFocus||!t._isMounted||!t.isTopModal()){return}var e=t.getDialogElement();var r=(0,i.default)((0,R.default)(t));if(e&&!(0,s.default)(e,r)){e.focus()}}};U.Manager=k.default;t.default=U;e.exports=t["default"]},function(e,t,r){(function(e){function r(e){if(Array.isArray){return Array.isArray(e)}return m(e)==="[object Array]"}t.isArray=r;function n(e){return typeof e==="boolean"}t.isBoolean=n;function a(e){return e===null}t.isNull=a;function i(e){return e==null}t.isNullOrUndefined=i;function o(e){return typeof e==="number"}t.isNumber=o;function s(e){return typeof e==="string"}t.isString=s;function u(e){return typeof e==="symbol"}t.isSymbol=u;function l(e){return e===void 0}t.isUndefined=l;function c(e){return m(e)==="[object RegExp]"}t.isRegExp=c;function f(e){return typeof e==="object"&&e!==null}t.isObject=f;function d(e){return m(e)==="[object Date]"}t.isDate=d;function p(e){return m(e)==="[object Error]"||e instanceof Error}t.isError=p;function h(e){return typeof e==="function"}t.isFunction=h;function v(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}t.isPrimitive=v;t.isBuffer=e.isBuffer;function m(e){return Object.prototype.toString.call(e)}}).call(this,r(251).Buffer)},function(e,t,r){"use strict";var n=r(10);var a=n.OrderedMap;var i={createFromArray:function e(t){return a(t.map((function(e){return[e.getKey(),e]})))}};e.exports=i},function(e,t,r){"use strict";function n(e,t,r,n){if(!e.size){return}var a=0;e.reduce((function(e,i,o){if(!t(e,i)){if(r(e)){n(a,o)}a=o}return i}));r(e.last())&&n(a,e.count())}e.exports=n},function(e,t,r){"use strict";function n(e){if(!e||!e.ownerDocument){return false}if(!e.ownerDocument.defaultView){return e instanceof HTMLElement}if(e instanceof e.ownerDocument.defaultView.HTMLElement){return true}return false}e.exports=n},function(e,t,r){"use strict";var n=r(35);var a=r(83);var i=a("draft_tree_data_support");function o(e,t,r){var a=e.getSelection();var o=e.getCurrentContent();var s=a;var u=a.getAnchorKey();var l=a.getFocusKey();var c=o.getBlockForKey(u);if(i){if(r==="forward"){if(u!==l){return o}}}if(a.isCollapsed()){if(r==="forward"){if(e.isSelectionAtEndOfContent()){return o}if(i){var f=a.getAnchorOffset()===o.getBlockForKey(u).getLength();if(f){var d=o.getBlockForKey(c.nextSibling);if(!d||d.getLength()===0){return o}}}}else if(e.isSelectionAtStartOfContent()){return o}s=t(e);if(s===a){return o}}return n.removeRange(o,s,r)}e.exports=o},function(e,t){e.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports={}},function(e,t){function r(e){return function(t){return e(t)}}e.exports=r},function(e,t,r){var n=r(135);var a=1/0;function i(e){if(typeof e=="string"||n(e)){return e}var t=e+"";return t=="0"&&1/e==-a?"-0":t}e.exports=i},function(e,t,r){var n=r(618),a=r(300);function i(e,t,r,i){var o=!r;r||(r={});var s=-1,u=t.length;while(++s<u){var l=t[s];var c=i?i(r[l],e[l],l,r,e):undefined;if(c===undefined){c=e[l]}if(o){a(r,l,c)}else{n(r,l,c)}}return r}e.exports=i},function(e,t,r){"use strict";t.__esModule=true;var n=r(624);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r){if(t in e){(0,a.default)(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isDraggableWithin=t.isPointWithinDroppable=t.getVisibleBounds=undefined;var n=r(626);var a=s(n);var i=r(42);var o=r(205);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.getVisibleBounds=function e(t){var r=t.container,n=r.scroll,a=r.bounds;var s=(0,i.subtract)(n.initial,n.current);var u=(0,o.offset)(t.page.withMargin,s);var l={top:Math.max(u.top,a.top),right:Math.min(u.right,a.right),bottom:Math.min(u.bottom,a.bottom),left:Math.max(u.left,a.left)};return l};var l=function e(t){var r=(0,a.default)(t.left,t.right);var n=(0,a.default)(t.top,t.bottom);return function(e){return r(e.x)&&n(e.y)}};var c=t.isPointWithinDroppable=function e(t){return l(u(t))};var f=t.isDraggableWithin=function e(t){var r=t.top,n=t.right,i=t.bottom,o=t.left;var s=(0,a.default)(o-1,n+1);var u=(0,a.default)(r-1,i+1);return function(e){var t=e.page.withMargin;return s(t.left)&&s(t.right)&&u(t.top)&&u(t.bottom)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(42);t.default=function(e){var t=e.source,r=e.sourceEdge,a=e.destination,i=e.destinationEdge,o=e.destinationAxis;var s=function e(t){return(0,n.patch)(o.line,t[o[i]],t[o.crossAxisStart])};var u=s(a);var l=(0,n.absolute)((0,n.subtract)(t.center,s(t)));var c=(0,n.patch)(o.line,(r==="end"?-1:1)*l[o.line],l[o.crossLine]);return(0,n.add)(u,c)}},function(e,t,r){"use strict";t.__esModule=true;t.defaultMemoize=i;t.createSelectorCreator=s;t.createStructuredSelector=l;function n(e,t){return e===t}function a(e,t,r){if(t===null||r===null||t.length!==r.length){return false}var n=t.length;for(var a=0;a<n;a++){if(!e(t[a],r[a])){return false}}return true}function i(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:n;var r=null;var i=null;return function(){if(!a(t,r,arguments)){i=e.apply(null,arguments)}r=arguments;return i}}function o(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return typeof e==="function"}))){var r=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, "+("instead received the following types: ["+r+"]"))}return t}function s(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++){r[n-1]=arguments[n]}return function(){for(var t=arguments.length,n=Array(t),a=0;a<t;a++){n[a]=arguments[a]}var s=0;var u=n.pop();var l=o(n);var c=e.apply(undefined,[function(){s++;return u.apply(null,arguments)}].concat(r));var f=i((function(){var e=[];var t=l.length;for(var r=0;r<t;r++){e.push(l[r].apply(null,arguments))}return c.apply(null,e)}));f.resultFunc=u;f.recomputations=function(){return s};f.resetRecomputations=function(){return s=0};return f}}var u=t.createSelector=s(i);function l(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:u;if(typeof e!=="object"){throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof e))}var r=Object.keys(e);return t(r.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++){t[n]=arguments[n]}return t.reduce((function(e,t,n){e[r[n]]=t;return e}),{})}))}},function(e,t){var r=e.exports={version:"2.6.12"};if(typeof __e=="number")__e=r},function(e,t,r){"use strict";t.__esModule=true;var n=t.PUSH="PUSH";var a=t.REPLACE="REPLACE";var i=t.POP="POP"},function(e,t,r){"use strict";r.r(t);r.d(t,"__DO_NOT_USE__ActionTypes",(function(){return i}));r.d(t,"applyMiddleware",(function(){return b}));r.d(t,"bindActionCreators",(function(){return h}));r.d(t,"combineReducers",(function(){return d}));r.d(t,"compose",(function(){return g}));r.d(t,"createStore",(function(){return s}));var n=r(81);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#subscribelistener 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#subscribelistener for more details.")}t=false;p();var n=f.indexOf(e);f.splice(n,1);c=null}}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}o=o||i.length!==Object.keys(t).length;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={};for(var n in e){var a=e[n];if(typeof a==="function"){r[n]=p(a,t)}}return r}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,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){r.push.apply(r,Object.getOwnPropertySymbols(e))}if(t)r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}));return r}function y(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};if(t%2){m(r,true).forEach((function(t){v(e,t,r[t])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(r))}else{m(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}}return e}function g(){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 b(){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=g.apply(void 0,i)(r.dispatch);return y({},r,{dispatch:n})}}}function A(){}if(false){}},function(e,t,r){e.exports=r(963)},function(e,t,r){var n;(function(a){var i=/^\s+/,o=/\s+$/,s=0,u=a.round,l=a.min,c=a.max,f=a.random;function d(e,t){e=e?e:"";t=t||{};if(e instanceof d){return e}if(!(this instanceof d)){return new d(e,t)}var r=p(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=u(100*this._a)/100,this._format=t.format||r.format;this._gradientType=t.gradientType;if(this._r<1){this._r=u(this._r)}if(this._g<1){this._g=u(this._g)}if(this._b<1){this._b=u(this._b)}this._ok=r.ok;this._tc_id=s++}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb();var t,r,n,i,o,s;t=e.r/255;r=e.g/255;n=e.b/255;if(t<=.03928){i=t/12.92}else{i=a.pow((t+.055)/1.055,2.4)}if(r<=.03928){o=r/12.92}else{o=a.pow((r+.055)/1.055,2.4)}if(n<=.03928){s=n/12.92}else{s=a.pow((n+.055)/1.055,2.4)}return.2126*i+.7152*o+.0722*s},setAlpha:function(e){this._a=F(e);this._roundA=u(100*this._a)/100;return this},toHsv:function(){var e=y(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=y(this._r,this._g,this._b);var t=u(e.h*360),r=u(e.s*100),n=u(e.v*100);return this._a==1?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=v(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=v(this._r,this._g,this._b);var t=u(e.h*360),r=u(e.s*100),n=u(e.l*100);return this._a==1?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return A(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(Y(this._r,255)*100)+"%",g:u(Y(this._g,255)*100)+"%",b:u(Y(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+u(Y(this._r,255)*100)+"%, "+u(Y(this._g,255)*100)+"%, "+u(Y(this._b,255)*100)+"%)":"rgba("+u(Y(this._r,255)*100)+"%, "+u(Y(this._g,255)*100)+"%, "+u(Y(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){if(this._a===0){return"transparent"}if(this._a<1){return false}return P[b(this._r,this._g,this._b,true)]||false},toFilter:function(e){var t="#"+_(this._r,this._g,this._b,this._a);var r=t;var n=this._gradientType?"GradientType = 1, ":"";if(e){var a=d(e);r="#"+_(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=false;var n=this._a<1&&this._a>=0;var a=!t&&n&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");if(a){if(e==="name"&&this._a===0){return this.toName()}return this.toRgbString()}if(e==="rgb"){r=this.toRgbString()}if(e==="prgb"){r=this.toPercentageRgbString()}if(e==="hex"||e==="hex6"){r=this.toHexString()}if(e==="hex3"){r=this.toHexString(true)}if(e==="hex4"){r=this.toHex8String(true)}if(e==="hex8"){r=this.toHex8String()}if(e==="name"){r=this.toName()}if(e==="hsl"){r=this.toHslString()}if(e==="hsv"){r=this.toHsvString()}return r||this.toHexString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));this._r=r._r;this._g=r._g;this._b=r._b;this.setAlpha(r._a);return this},lighten:function(){return this._applyModification(k,arguments)},brighten:function(){return this._applyModification(M,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(E,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(j,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(L,arguments)}};d.fromRatio=function(e,t){if(typeof e=="object"){var r={};for(var n in e){if(e.hasOwnProperty(n)){if(n==="a"){r[n]=e[n]}else{r[n]=V(e[n])}}}e=r}return d(e,t)};function p(e){var t={r:0,g:0,b:0};var r=1;var n=null;var a=null;var i=null;var o=false;var s=false;if(typeof e=="string"){e=J(e)}if(typeof e=="object"){if(Q(e.r)&&Q(e.g)&&Q(e.b)){t=h(e.r,e.g,e.b);o=true;s=String(e.r).substr(-1)==="%"?"prgb":"rgb"}else if(Q(e.h)&&Q(e.s)&&Q(e.v)){n=V(e.s);a=V(e.v);t=g(e.h,n,a);o=true;s="hsv"}else if(Q(e.h)&&Q(e.s)&&Q(e.l)){n=V(e.s);i=V(e.l);t=m(e.h,n,i);o=true;s="hsl"}if(e.hasOwnProperty("a")){r=e.a}}r=F(r);return{ok:o,format:e.format||s,r:l(255,c(t.r,0)),g:l(255,c(t.g,0)),b:l(255,c(t.b,0)),a:r}}function h(e,t,r){return{r:Y(e,255)*255,g:Y(t,255)*255,b:Y(r,255)*255}}function v(e,t,r){e=Y(e,255);t=Y(t,255);r=Y(r,255);var n=c(e,t,r),a=l(e,t,r);var i,o,s=(n+a)/2;if(n==a){i=o=0}else{var u=n-a;o=s>.5?u/(2-n-a):u/(n+a);switch(n){case e:i=(t-r)/u+(t<r?6:0);break;case t:i=(r-e)/u+2;break;case r:i=(e-t)/u+4;break}i/=6}return{h:i,s:o,l:s}}function m(e,t,r){var n,a,i;e=Y(e,360);t=Y(t,100);r=Y(r,100);function o(e,t,r){if(r<0)r+=1;if(r>1)r-=1;if(r<1/6)return e+(t-e)*6*r;if(r<1/2)return t;if(r<2/3)return e+(t-e)*(2/3-r)*6;return e}if(t===0){n=a=i=r}else{var s=r<.5?r*(1+t):r+t-r*t;var u=2*r-s;n=o(u,s,e+1/3);a=o(u,s,e);i=o(u,s,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function y(e,t,r){e=Y(e,255);t=Y(t,255);r=Y(r,255);var n=c(e,t,r),a=l(e,t,r);var i,o,s=n;var u=n-a;o=n===0?0:u/n;if(n==a){i=0}else{switch(n){case e:i=(t-r)/u+(t<r?6:0);break;case t:i=(r-e)/u+2;break;case r:i=(e-t)/u+4;break}i/=6}return{h:i,s:o,v:s}}function g(e,t,r){e=Y(e,360)*6;t=Y(t,100);r=Y(r,100);var n=a.floor(e),i=e-n,o=r*(1-t),s=r*(1-i*t),u=r*(1-(1-i)*t),l=n%6,c=[r,s,o,o,u,r][l],f=[u,r,r,s,o,o][l],d=[o,o,u,r,r,s][l];return{r:c*255,g:f*255,b:d*255}}function b(e,t,r,n){var a=[q(u(e).toString(16)),q(u(t).toString(16)),q(u(r).toString(16))];if(n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)){return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)}return a.join("")}function A(e,t,r,n,a){var i=[q(u(e).toString(16)),q(u(t).toString(16)),q(u(r).toString(16)),q(W(n))];if(a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)){return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0)}return i.join("")}function _(e,t,r,n){var a=[q(W(n)),q(u(e).toString(16)),q(u(t).toString(16)),q(u(r).toString(16))];return a.join("")}d.equals=function(e,t){if(!e||!t){return false}return d(e).toRgbString()==d(t).toRgbString()};d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})};function w(e,t){t=t===0?0:t||10;var r=d(e).toHsl();r.s-=t/100;r.s=B(r.s);return d(r)}function E(e,t){t=t===0?0:t||10;var r=d(e).toHsl();r.s+=t/100;r.s=B(r.s);return d(r)}function x(e){return d(e).desaturate(100)}function k(e,t){t=t===0?0:t||10;var r=d(e).toHsl();r.l+=t/100;r.l=B(r.l);return d(r)}function M(e,t){t=t===0?0:t||10;var r=d(e).toRgb();r.r=c(0,l(255,r.r-u(255*-(t/100))));r.g=c(0,l(255,r.g-u(255*-(t/100))));r.b=c(0,l(255,r.b-u(255*-(t/100))));return d(r)}function S(e,t){t=t===0?0:t||10;var r=d(e).toHsl();r.l-=t/100;r.l=B(r.l);return d(r)}function O(e,t){var r=d(e).toHsl();var n=(r.h+t)%360;r.h=n<0?360+n:n;return d(r)}function D(e){var t=d(e).toHsl();t.h=(t.h+180)%360;return d(t)}function T(e){var t=d(e).toHsl();var r=t.h;return[d(e),d({h:(r+120)%360,s:t.s,l:t.l}),d({h:(r+240)%360,s:t.s,l:t.l})]}function L(e){var t=d(e).toHsl();var r=t.h;return[d(e),d({h:(r+90)%360,s:t.s,l:t.l}),d({h:(r+180)%360,s:t.s,l:t.l}),d({h:(r+270)%360,s:t.s,l:t.l})]}function C(e){var t=d(e).toHsl();var r=t.h;return[d(e),d({h:(r+72)%360,s:t.s,l:t.l}),d({h:(r+216)%360,s:t.s,l:t.l})]}function j(e,t,r){t=t||6;r=r||30;var n=d(e).toHsl();var a=360/r;var i=[d(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;){n.h=(n.h+a)%360;i.push(d(n))}return i}function N(e,t){t=t||6;var r=d(e).toHsv();var n=r.h,a=r.s,i=r.v;var o=[];var s=1/t;while(t--){o.push(d({h:n,s:a,v:i}));i=(i+s)%1}return o}d.mix=function(e,t,r){r=r===0?0:r||50;var n=d(e).toRgb();var a=d(t).toRgb();var i=r/100;var o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return d(o)};d.readability=function(e,t){var r=d(e);var n=d(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)};d.isReadable=function(e,t,r){var n=d.readability(e,t);var a,i;i=false;a=Z(r);switch(a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i};d.mostReadable=function(e,t,r){var n=null;var a=0;var i;var o,s,u;r=r||{};o=r.includeFallbackColors;s=r.level;u=r.size;for(var l=0;l<t.length;l++){i=d.readability(e,t[l]);if(i>a){a=i;n=d(t[l])}}if(d.isReadable(e,n,{level:s,size:u})||!o){return n}else{r.includeFallbackColors=false;return d.mostReadable(e,["#fff","#000"],r)}};var I=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var P=d.hexNames=R(I);function R(e){var t={};for(var r in e){if(e.hasOwnProperty(r)){t[e[r]]=r}}return t}function F(e){e=parseFloat(e);if(isNaN(e)||e<0||e>1){e=1}return e}function Y(e,t){if(z(e)){e="100%"}var r=U(e);e=l(t,c(0,parseFloat(e)));if(r){e=parseInt(e*t,10)/100}if(a.abs(e-t)<1e-6){return 1}return e%t/parseFloat(t)}function B(e){return l(1,c(0,e))}function H(e){return parseInt(e,16)}function z(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function U(e){return typeof e==="string"&&e.indexOf("%")!=-1}function q(e){return e.length==1?"0"+e:""+e}function V(e){if(e<=1){e=e*100+"%"}return e}function W(e){return a.round(parseFloat(e)*255).toString(16)}function K(e){return H(e)/255}var G=function(){var e="[-\\+]?\\d+%?";var t="[-\\+]?\\d*\\.\\d+%?";var r="(?:"+t+")|(?:"+e+")";var n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";var a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Q(e){return!!G.CSS_UNIT.exec(e)}function J(e){e=e.replace(i,"").replace(o,"").toLowerCase();var t=false;if(I[e]){e=I[e];t=true}else if(e=="transparent"){return{r:0,g:0,b:0,a:0,format:"name"}}var r;if(r=G.rgb.exec(e)){return{r:r[1],g:r[2],b:r[3]}}if(r=G.rgba.exec(e)){return{r:r[1],g:r[2],b:r[3],a:r[4]}}if(r=G.hsl.exec(e)){return{h:r[1],s:r[2],l:r[3]}}if(r=G.hsla.exec(e)){return{h:r[1],s:r[2],l:r[3],a:r[4]}}if(r=G.hsv.exec(e)){return{h:r[1],s:r[2],v:r[3]}}if(r=G.hsva.exec(e)){return{h:r[1],s:r[2],v:r[3],a:r[4]}}if(r=G.hex8.exec(e)){return{r:H(r[1]),g:H(r[2]),b:H(r[3]),a:K(r[4]),format:t?"name":"hex8"}}if(r=G.hex6.exec(e)){return{r:H(r[1]),g:H(r[2]),b:H(r[3]),format:t?"name":"hex"}}if(r=G.hex4.exec(e)){return{r:H(r[1]+""+r[1]),g:H(r[2]+""+r[2]),b:H(r[3]+""+r[3]),a:K(r[4]+""+r[4]),format:t?"name":"hex8"}}if(r=G.hex3.exec(e)){return{r:H(r[1]+""+r[1]),g:H(r[2]+""+r[2]),b:H(r[3]+""+r[3]),format:t?"name":"hex"}}return false}function Z(e){var t,r;e=e||{level:"AA",size:"small"};t=(e.level||"AA").toUpperCase();r=(e.size||"small").toLowerCase();if(t!=="AA"&&t!=="AAA"){t="AA"}if(r!=="small"&&r!=="large"){r="small"}return{level:t,size:r}}if(true&&e.exports){e.exports=d}else if(true){!(n=function(){return d}.call(t,r,t,e),n!==undefined&&(e.exports=n))}else{}})(Math)},function(e,t,r){"use strict";t.__esModule=true;var n=t.addEventListener=function e(t,r,n){return t.addEventListener?t.addEventListener(r,n,false):t.attachEvent("on"+r,n)};var a=t.removeEventListener=function e(t,r,n){return t.removeEventListener?t.removeEventListener(r,n,false):t.detachEvent("on"+r,n)};var i=t.supportsHistory=function e(){var t=window.navigator.userAgent;if((t.indexOf("Android 2.")!==-1||t.indexOf("Android 4.0")!==-1)&&t.indexOf("Mobile Safari")!==-1&&t.indexOf("Chrome")===-1&&t.indexOf("Windows Phone")===-1)return false;return window.history&&"pushState"in window.history};var o=t.supportsGoWithoutReloadUsingHash=function e(){return window.navigator.userAgent.indexOf("Firefox")===-1};var s=t.supportsPopstateOnHashchange=function e(){return window.navigator.userAgent.indexOf("Trident")===-1};var u=t.isExtraneousPopstateEvent=function e(t){return t.state===undefined&&navigator.userAgent.indexOf("CriOS")===-1}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);if(!t.children)t.children=[];Object.defineProperty(t,"loaded",{enumerable:true,get:function(){return t.l}});Object.defineProperty(t,"id",{enumerable:true,get:function(){return t.i}});Object.defineProperty(t,"exports",{enumerable:true});t.webpackPolyfill=1}return t}},function(e,t,r){(function(){var t,n,a=function(e,t){for(var r in t){if(i.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},i={}.hasOwnProperty;n=r(46);e.exports=t=function(e){a(t,e);function t(e){t.__super__.constructor.call(this,e);this.value=""}Object.defineProperty(t.prototype,"data",{get:function(){return this.value},set:function(e){return this.value=e||""}});Object.defineProperty(t.prototype,"length",{get:function(){return this.value.length}});Object.defineProperty(t.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}});t.prototype.clone=function(){return Object.create(this)};t.prototype.substringData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};t.prototype.appendData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};t.prototype.insertData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};t.prototype.deleteData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};t.prototype.replaceData=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};t.prototype.isEqualNode=function(e){if(!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)){return false}if(e.data!==this.data){return false}return true};return t}(n)}).call(this)},function(e,t){(function(){e.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},function(e,t,r){"use strict";(function(t){if(typeof t==="undefined"||!t.version||t.version.indexOf("v0.")===0||t.version.indexOf("v1.")===0&&t.version.indexOf("v1.8.")!==0){e.exports={nextTick:r}}else{e.exports=t}function r(e,r,n,a){if(typeof e!=="function"){throw new TypeError('"callback" argument must be a function')}var i=arguments.length;var o,s;switch(i){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function t(){e.call(null,r)}));case 3:return t.nextTick((function t(){e.call(null,r,n)}));case 4:return t.nextTick((function t(){e.call(null,r,n,a)}));default:o=new Array(i-1);s=0;while(s<o.length){o[s++]=arguments[s]}return t.nextTick((function t(){e.apply(null,o)}))}}}).call(this,r(124))},function(e,t,r){var n=r(251);var a=n.Buffer;function i(e,t){for(var r in e){t[r]=e[r]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){e.exports=n}else{i(n,t);t.Buffer=o}function o(e,t,r){return a(e,t,r)}i(a,o);o.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return a(e,t,r)};o.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=a(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};o.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return a(e)};o.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.feedToCollection=t.entryToBook=t.adapter=void 0;var n=r(354);var a;var i=r(807);if(typeof window==="undefined"){var o=r(!function e(){var t=new Error("Cannot find module 'jsdom'");t.code="MODULE_NOT_FOUND";throw t}()).JSDOM;var s=new o("<!doctype html><html><body></body></html>",{url:"http://localhost",FetchExternalResources:false,ProcessExternalResources:false});var u=s.window;var l=u.defaultView;a=i(l).sanitize}else{a=i(window).sanitize}function c(e,t){if(e instanceof n.OPDSFeed){var r=m(e,t);return r}else if(e instanceof n.OPDSEntry){var a=f(e,t);return a}else{throw"parsed data must be OPDSFeed or OPDSEntry"}}t.adapter=c;function f(e,t){var r=e.authors.map((function(e){return e.name}));var i=e.contributors.map((function(e){return e.name}));var o,s;var u=e.links.filter((function(e){return e instanceof n.OPDSArtworkLink}));if(u.length>0){s=u.find((function(e){return e.rel==="http://opds-spec.org/image/thumbnail"}));if(s){o=s.href}else{console.log("WARNING: using possibly large image for "+e.title);o=u[0].href}}var l;var c=e.links.find((function(e){return e instanceof n.CompleteEntryLink}));if(c){l=c.href}var f=e.categories.filter((function(e){return!!e.label})).map((function(e){return e.label}));var d=e.links.filter((function(e){return e instanceof n.OPDSAcquisitionLink&&e.rel===n.OPDSAcquisitionLink.OPEN_ACCESS_REL})).map((function(e){return{url:e.href,type:e.type}}));var p;var v=e.links.find((function(e){return e instanceof n.OPDSAcquisitionLink&&e.rel===n.OPDSAcquisitionLink.BORROW_REL}));if(v){p=v.href}var m=e.links.filter((function(e){return e instanceof n.OPDSAcquisitionLink&&e.rel===n.OPDSAcquisitionLink.BORROW_REL})).map((function(e){var t;var r=e.indirectAcquisitions;if(r&&r.length>0){t=r[0].type}return{url:e.href,type:e.type,indirectType:t}}));var y;var g=e.links.filter((function(e){return e instanceof n.OPDSAcquisitionLink&&e.rel===n.OPDSAcquisitionLink.GENERIC_REL})).map((function(e){var t;var r=e.indirectAcquisitions;if(r&&r.length>0){t=r[0].type}return{url:e.href,type:e.type,indirectType:t}}));var b;var A;var _;var w=e.links.find((function(e){return e instanceof n.OPDSAcquisitionLink&&!!e.availability}));if(w){b=w.availability,A=w.holds,_=w.copies}return{id:e.id,title:e.title,series:e.series,authors:r,contributors:i,subtitle:e.subtitle,summary:e.summary.content&&a(e.summary.content),imageUrl:o,openAccessLinks:d,borrowUrl:p,allBorrowLinks:m,fulfillmentLinks:g,availability:b,holds:A,copies:_,publisher:e.publisher,published:e.issued&&h(e.issued),categories:f,language:e.language,url:l,raw:e.unparsed}}t.entryToBook=f;function d(e,t){var r=e.links;if(r.length>0){var n=r[0].href;return{id:e.id,text:e.title,url:n}}console.error("Attempting to create Link with undefined url. entry is: ",e);return null}function p(e){var t=e.reduce((function(e,t){e.set(t.id,t);return e}),new Map);return Array.from(t.values())}function h(e){var t=["January","February","March","April","May","June","July","August","September","October","November","December"];var r=new Date(e);var n=r.getUTCDate();var a=r.getUTCMonth();var i=t[a];var o=r.getUTCFullYear();return i+" "+n+", "+o}function v(e,t){if(t===void 0){t=null}if(!t||!t.href){return null}return{url:t.href,text:t.title,type:t.rel}}function m(e,t){var r={id:e.id,title:e.title,url:t};var a=[];var i=[];var o=[];var s=[];var u=[];var l=[];var c=undefined;var h=undefined;var m;var y;var g=undefined;var b=[];e.entries.forEach((function(r){if(e instanceof n.AcquisitionFeed){var o=f(r,t);var l=r.links.find((function(e){return e instanceof n.OPDSCollectionLink}));if(l){var c=l.title,p=l.href;if(u[c]){u[c].books.push(o)}else{u[c]={title:c,url:p,books:[o]};s.push(c)}}else{a.push(o)}}else{var h=d(r,t);if(h)i.push(h)}}));o=s.reduce((function(e,t){var r=u[t];r.books=p(r.books);e.push(r);return e}),o);var A=[];if(e.links){A=e.links.filter((function(e){return e instanceof n.OPDSFacetLink}));var _=e.links.find((function(e){return e instanceof n.SearchLink}));if(_){c={url:_.href}}var w=e.links.find((function(e){return e.rel==="next"}));if(w){h=w.href}m=e.links.find((function(e){return e instanceof n.OPDSCatalogRootLink}));y=e.links.find((function(e){return e.rel==="up"}));var E=e.links.find((function(e){return e instanceof n.OPDSShelfLink}));if(E){g=E.href}b=e.links}l=A.reduce((function(e,t){var r=t.facetGroup;var n=t.title;var a=t.href;var i=t.activeFacet;var o={label:n,href:a,active:i};var s=[];var u=false;e.forEach((function(e){if(e.label===r){var t=e.facets.concat(o);s.push({label:r,facets:t});u=true}else{s.push(e)}}));if(!u){var l=[o];s.push({label:r,facets:l})}return s}),[]);r.lanes=o;r.navigationLinks=i;r.books=p(a);r.facetGroups=l;r.search=c;r.nextPageUrl=h;r.catalogRootLink=v(t,m);r.parentLink=v(t,y);r.shelfUrl=g;function x(e){return e!==null&&e!==undefined}r.links=b.map((function(e){return v(t,e)})).filter(x);r.raw=e.unparsed;Object.freeze(r);return r}t.feedToCollection=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function n(e){var t=e.links.find((function(e){return e.rel==="http://librarysimplified.org/terms/rel/hide"}));var r=e.links.find((function(e){return e.rel==="http://librarysimplified.org/terms/rel/restore"}));var n=e.links.find((function(e){return e.rel==="http://librarysimplified.org/terms/rel/refresh"}));var a=e.links.find((function(e){return e.rel==="edit"}));var i=e.links.find((function(e){return e.rel==="issues"}));var o=e.links.find((function(e){return e.rel==="http://librarysimplified.org/terms/rel/change_cover"}));var s=e.categories.find((function(e){return e.scheme==="http://schema.org/audience"}));var u=e.categories.find((function(e){return e.scheme==="http://schema.org/typicalAgeRange"}));var l=[];if(u&&/\d\d?-?\d?\d?/.test(u.term)){l=u.term.split("-")}var c=e.categories.find((function(e){return e.scheme==="http://librarysimplified.org/terms/fiction/"}));var f;if(c){f=c.label==="Fiction"}var d=e.categories.map((function(e){return e.label}));var p;try{p=e.unparsed["$"]["schema:additionalType"]["value"]}catch(e){p=null}var h;try{h=e.unparsed["bib:publisherImprint"][0]["_"]}catch(e){h=null}var v=[];for(var m=0,y=e.authors;m<y.length;m++){var g=y[m];v.push(Object.assign({},g,{role:"aut"}))}var b;try{var A=e.unparsed["schema:Rating"];for(var _=0,w=A;_<w.length;_++){var E=w[_];if(E["$"]["schema:additionalType"]["value"]==="http://schema.org/ratingValue"){b=E["$"]["schema:ratingValue"]["value"];break}}}catch(e){b=null}var x=e.links.find((function(e){return e.rel==="http://opds-spec.org/image"}));var k;if(x){k=x.href}return{id:e.id,title:e.title,authors:v,contributors:e.contributors,subtitle:e.subtitle,summary:e.summary.content,audience:s&&s.term,targetAgeRange:l,fiction:f,categories:d,hideLink:t,restoreLink:r,refreshLink:n,editLink:a,issuesLink:i,changeCoverLink:o,series:e.series&&e.series.name,seriesPosition:e.series&&e.series.position,medium:p,language:e.language,publisher:e.publisher,imprint:h,issued:e.issued,rating:b,coverUrl:k}}t.default=n},function(e,t,r){"use strict";var n=r(532);var a=r(533);var i=function e(t,r){var i=r.getStartKey();var o=r.getStartOffset();var s=r.getEndKey();var u=r.getEndOffset();var l=a(t,r);var c=l.getBlockMap();var f=c.keySeq();var d=f.indexOf(i);var p=f.indexOf(s)+1;return n(c.slice(d,p).map((function(e,t){var r=e.getText();var n=e.getCharacterList();if(i===s){return e.merge({text:r.slice(o,u),characterList:n.slice(o,u)})}if(t===i){return e.merge({text:r.slice(o),characterList:n.slice(o)})}if(t===s){return e.merge({text:r.slice(0,u),characterList:n.slice(0,u)})}return e})))};e.exports=i},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}var i=r(538);var o=r(10);var s=r(15);var u=r(867);var l=o.Map;var c=l();var f=u();function d(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var p={getLastCreatedEntityKey:function e(){d("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey");return p.__getLastCreatedEntityKey()},create:function e(t,r,n){d("DraftEntity.create","contentState.createEntity");return p.__create(t,r,n)},add:function e(t){d("DraftEntity.add","contentState.addEntity");return p.__add(t)},get:function e(t){d("DraftEntity.get","contentState.getEntity");return p.__get(t)},__getAll:function e(){return c},__loadWithEntities:function e(t){c=t;f=u()},mergeData:function e(t,r){d("DraftEntity.mergeData","contentState.mergeEntityData");return p.__mergeData(t,r)},replaceData:function e(t,r){d("DraftEntity.replaceData","contentState.replaceEntityData");return p.__replaceData(t,r)},__getLastCreatedEntityKey:function e(){return f},__create:function e(t,r,n){return p.__add(new i({type:t,mutability:r,data:n||{}}))},__add:function e(t){f=u();c=c.set(f,t);return f},__get:function e(t){var r=c.get(t);!!!r?false?undefined:s(false):void 0;return r},__mergeData:function e(t,r){var a=p.__get(t);var i=n({},a.getData(),r);var o=a.set("data",i);c=c.set(t,o);return o},__replaceData:function e(t,r){var n=p.__get(t);var a=n.set("data",r);c=c.set(t,a);return a}};e.exports=p},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(10);var i=a.Record;var o={anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:false,hasFocus:false};var s=i(o);var u=function(e){n(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.serialize=function e(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", "+"Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", "+"Is Backward: "+String(this.getIsBackward())+", "+"Has Focus: "+String(this.getHasFocus())};r.getAnchorKey=function e(){return this.get("anchorKey")};r.getAnchorOffset=function e(){return this.get("anchorOffset")};r.getFocusKey=function e(){return this.get("focusKey")};r.getFocusOffset=function e(){return this.get("focusOffset")};r.getIsBackward=function e(){return this.get("isBackward")};r.getHasFocus=function e(){return this.get("hasFocus")};r.hasEdgeWithin=function e(t,r,n){var a=this.getAnchorKey();var i=this.getFocusKey();if(a===i&&a===t){var o=this.getStartOffset();var s=this.getEndOffset();return r<=o&&o<=n||r<=s&&s<=n}if(t!==a&&t!==i){return false}var u=t===a?this.getAnchorOffset():this.getFocusOffset();return r<=u&&n>=u};r.isCollapsed=function e(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()};r.getStartKey=function e(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()};r.getStartOffset=function e(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()};r.getEndKey=function e(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()};r.getEndOffset=function e(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()};t.createEmpty=function e(r){return new t({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:false,hasFocus:false})};return t}(s);e.exports=u},function(e,t,r){"use strict";var n=r(15);var a="NEUTRAL";var i="LTR";var o="RTL";var s=null;function u(e){return e===i||e===o}function l(e){!u(e)?false?undefined:n(false):void 0;return e===i?"ltr":"rtl"}function c(e,t){!u(e)?false?undefined:n(false):void 0;!u(t)?false?undefined:n(false):void 0;return e===t?null:l(e)}function f(e){s=e}function d(){f(i)}function p(){if(!s){this.initGlobalDir()}!s?false?undefined:n(false):void 0;return s}var h={NEUTRAL:a,LTR:i,RTL:o,isStrong:u,getHTMLDir:l,getHTMLDirIfDifferent:c,setGlobalDir:f,initGlobalDir:d,getGlobalDir:p};e.exports=h},function(e,t,r){"use strict";var n=r(181);var a=r(541);function i(e){var t=e;while(t&&t!==n(e).documentElement){var r=a(t);if(r!=null){return r}t=t.parentNode}return null}e.exports=i},function(e,t,r){"use strict";function n(e){if(!e||!e.ownerDocument){return document}return e.ownerDocument}e.exports=n},function(e,t,r){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,r){"use strict";var n=r(889);function a(e,t){var r=i.get(e,t);return r==="auto"||r==="scroll"}var i={get:n,getScrollParent:function e(t){if(!t){return null}var r=t.ownerDocument;while(t&&t!==r.body){if(a(t,"overflow")||a(t,"overflowY")||a(t,"overflowX")){return t}t=t.parentNode}return r.defaultView||r.parentWindow}};e.exports=i},function(e,t,r){"use strict";var n=r(893);var a=r(894);function i(e){var t=n(e.ownerDocument||e.document);if(e.Window&&e instanceof e.Window){e=t}var r=a(e);var i=e===t?e.ownerDocument.documentElement:e;var o=e.scrollWidth-i.clientWidth;var s=e.scrollHeight-i.clientHeight;r.x=Math.max(0,Math.min(r.x,o));r.y=Math.max(0,Math.min(r.y,s));return r}e.exports=i},function(e,t,r){"use strict";function n(e){return e==="handled"||e===true}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(1);var i=r(12);var o=r(104);var s=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e=a.createElement("span",null,"Delete ",a.createElement(o.default,null));return a.createElement("div",{className:"with-remove-button"},a.createElement("span",null,this.props.children),a.createElement(i.Button,{className:"remove-btn danger small",callback:this.onClick.bind(this),content:e,type:"button",disabled:this.props.disabled}))};t.prototype.onClick=function(e){e.preventDefault();!this.props.disabled&&this.props.onRemove()};t.defaultProps={disabled:false};return t}(a.Component);t.default=s},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=true},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){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var a=r(1);var i=u(a);var o=r(140);var s=u(o);function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,r,a,o){var s=e[t];var u=typeof s==="undefined"?"undefined":n(s);if(i.default.isValidElement(s)){return new Error("Invalid "+a+" `"+o+"` of type ReactElement "+("supplied to `"+r+"`, expected a ReactComponent or a ")+"DOMElement. You can usually obtain a ReactComponent or DOMElement "+"from a ReactElement by attaching a ref to it.")}if((u!=="object"||typeof s.render!=="function")&&s.nodeType!==1){return new Error("Invalid "+a+" `"+o+"` of value `"+s+"` "+("supplied to `"+r+"`, expected a ReactComponent or a ")+"DOMElement.")}return null}t.default=(0,s.default)(l);e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=n;function n(e){return e===e.window?e:e.nodeType===9?e.defaultView||e.parentWindow:false}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=o;var n=r(17);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){e=typeof e==="function"?e():e;return a.default.findDOMNode(e)||t}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){"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(19);var s=r(1015);var u=r(12);var l=r(1106);var c=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.inputListRef=i.createRef();r.colorPickerRef=i.createRef();r.elementRef=i.createRef();r.randomize=r.randomize.bind(r);r.isDefault=r.isDefault.bind(r);r.createEditableInput=r.createEditableInput.bind(r);return r}t.prototype.render=function(){var e=this.props.setting;if(e.type==="select"){return this.renderSelectSetting(e)}else if(e.type==="list"||e.type==="menu"){return this.renderListSetting(e)}else if(e.type==="color-picker"){return this.renderColorPickerSetting(e)}else{return this.renderSetting(e)}};t.prototype.renderSetting=function(e,t){if(t===void 0){t=null}return i.createElement("div",{className:e.randomizable?"randomizable":""},this.props.value&&e.type==="image"&&i.createElement("img",{src:String(this.props.value),alt:"",role:"presentation"}),this.createEditableInput(e),e.randomizable&&!this.props.value&&i.createElement("div",{className:"text-right"},i.createElement(u.Button,{disabled:this.props.disabled,callback:this.randomize,content:"Set to random value",type:"button"})))};t.prototype.createEditableInput=function(e,t,r){if(t===void 0){t=null}if(r===void 0){r=null}var n=e.type&&["text","textarea","select"].includes(e.type)?e.type:"input";var s={image:{accept:"image/*",type:"file",value:undefined},number:{validation:"number",step:1}};var u={key:e.key,elementType:n,type:"text",disabled:this.props&&this.props.disabled,name:e.key,label:e.label,required:e.required,description:e.description,value:this.props&&this.props.value||e.default,error:this.props&&this.props.error,ref:this.elementRef,onChange:this.props.onChange,readOnly:this.props.readOnly};var l=s[e.type]?a(a({},u),s[e.type]):u;if(t){l=a(a({},l),t)}return i.createElement(o.default,l,r)};t.prototype.renderSelectSetting=function(e){var t=e.options&&e.options.map((function(e){return i.createElement("option",{key:e.key,value:e.key,"aria-selected":false},e.label)}));return this.createEditableInput(e,null,t)};t.prototype.renderListSetting=function(e){var t=Array.isArray(this.props.value)?this.props.value:this.props.value&&[].concat.apply([],Object.values(this.props.value));return i.createElement(l.default,{ref:this.inputListRef,setting:e,createEditableInput:this.createEditableInput,labelAndDescription:e.label&&this.labelAndDescription,disabled:this.props.disabled,value:t,altValue:this.props.altValue,additionalData:this.props.additionalData,onSubmit:this.props.onSubmit,onEmpty:this.props.onEmpty,title:this.props.title,onChange:this.props.onChange,readOnly:this.props.readOnly,disableButton:this.props.disableButton})};t.prototype.renderColorPickerSetting=function(e){return i.createElement("div",null,this.labelAndDescription(e),i.createElement(s.default,{value:String(this.props.value||e.default),setting:e,ref:this.colorPickerRef}))};t.prototype.labelAndDescription=function(e){var t=i.createElement("label",{key:e.label},e.label);var r=e.description&&i.createElement("span",{key:e.description,className:"description",dangerouslySetInnerHTML:{__html:e.description}});var n=e.instructions&&i.createElement("div",{className:"well description",dangerouslySetInnerHTML:{__html:e.instructions}});return[t,r,n]};t.prototype.isDefault=function(e){if(this.props.default){return this.props.default.indexOf(e)>=0||this.props.default.indexOf(e.key)>=0}};t.prototype.getValue=function(){return this.findRef().getValue()};t.prototype.randomize=function(){var e;var t=this.findRef();var r="1234567890abcdefghijklmnopqrstuvwxyz!@#$%^&*()";var n="";for(var a=0;a<32;a++){n+=r.charAt(Math.floor(Math.random()*r.length))}(e=t)===null||e===void 0?void 0:e.setState({value:n})};t.prototype.findRef=function(){var e,t,r;return((e=this.inputListRef)===null||e===void 0?void 0:e.current)||((t=this.elementRef)===null||t===void 0?void 0:t.current)||((r=this.colorPickerRef)===null||r===void 0?void 0:r.current)};t.prototype.clear=function(){var e=this.findRef();if(e&&e.clear){e.clear()}};t.defaultProps={readOnly:false};return t}(i.Component);t.default=c},function(e,t,r){var n=r(1030),a=r(1031),i=r(1032),o=r(1033),s=r(1034);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(197);function a(e,t){var r=e.length;while(r--){if(n(e[r][0],t)){return r}}return-1}e.exports=a},function(e,t){function r(e,t){return e===t||e!==e&&t!==t}e.exports=r},function(e,t,r){var n=r(110);var a=n(Object,"create");e.exports=a},function(e,t,r){var n=r(1052);function a(e,t){var r=e.__data__;return n(t)?r[typeof t=="string"?"string":"hash"]:r.map}e.exports=a},function(e,t,r){var n=r(1062),a=r(291),i=r(1063),o=r(613),s=r(1064),u=r(85),l=r(605);var c="[object Map]",f="[object Object]",d="[object Promise]",p="[object Set]",h="[object WeakMap]";var v="[object DataView]";var m=l(n),y=l(a),g=l(i),b=l(o),A=l(s);var _=u;if(n&&_(new n(new ArrayBuffer(1)))!=v||a&&_(new a)!=c||i&&_(i.resolve())!=d||o&&_(new o)!=p||s&&_(new s)!=h){_=function(e){var t=u(e),r=t==f?e.constructor:undefined,n=r?l(r):"";if(n){switch(n){case m:return v;case y:return c;case g:return d;case b:return p;case A:return h}}return t}}e.exports=_},function(e,t,r){var n=r(202),a=r(157);function i(e,t){t=n(t,e);var r=0,i=t.length;while(e!=null&&r<i){e=e[a(t[r++])]}return r&&r==i?e:undefined}e.exports=i},function(e,t,r){var n=r(11),a=r(299),i=r(1067),o=r(1070);function s(e,t){if(n(e)){return e}return a(e,t)?[e]:i(o(e))}e.exports=s},function(e,t,r){var n=r(282),a=r(1078);var i=a(n);e.exports=i},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:"57.375",height:"57.28257",viewBox:"0 0 57.375 57.28257","aria-hidden":"true"},n.createElement("title",null,"Pencil Icon"),n.createElement("g",null,n.createElement("polygon",{points:"11.745 53.861 45.246 20.361 36.921 12.037 3.421 45.537 0 57.283 11.745 53.861"}),n.createElement("rect",{x:"44.60049",y:"4.52822",width:"4.72034",height:"11.77225",transform:"translate(6.39041 36.25649) rotate(-45)"}),n.createElement("rect",{x:"49.18382",y:"-0.05512",width:"4.72034",height:"11.77225",transform:"translate(10.97374 38.15497) rotate(-45)"})))};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCorners=t.offset=t.isEqual=t.addPosition=t.add=undefined;var n=r(113);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}var o=t.add=function e(t,r){return{top:t.top+r.top,left:t.left+r.left,right:t.right+r.right,bottom:t.bottom+r.bottom}};var s=t.addPosition=function e(t,r){return(0,a.default)({},t,{right:t.right+r.x,bottom:t.bottom+r.y})};var u=t.isEqual=function e(t,r){return t.top===r.top&&t.right===r.right&&t.bottom===r.bottom&&t.left===r.left};var l=t.offset=function e(t,r){return{top:t.top+r.y,right:t.right+r.x,bottom:t.bottom+r.y,left:t.left+r.x}};var c=t.getCorners=function e(t){return[{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}]}},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)){continue}t[r]=typeof e[r]==="number"?e[r]:e[r].val}return t}e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e){e.preventDefault();e.stopPropagation()}},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.01772",height:"48.01658",viewBox:"0 0 48.01772 48.01658","aria-hidden":"true"},n.createElement("title",null,"Add Icon"),n.createElement("path",{d:"M26.98371,20.9161V2.97433a2.97433,2.97433,0,0,0-5.94867,0v17.903l-18.04011-.1176a2.97542,2.97542,0,0,0-.039,5.95072l18.07914.11708V45.04224a2.97433,2.97433,0,1,0,5.94867,0V26.86579l18.03908.11683a2.9744,2.9744,0,0,0,.04108-5.94867Z"}))};t.default=a},function(e,t,r){var n=r(137);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},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(197),a=r(108),i=r(285),o=r(25);function s(e,t,r){if(!o(r)){return false}var s=typeof t;if(s=="number"?a(r)&&i(t,r.length):s=="string"&&t in r){return n(r[t],e)}return false}e.exports=s},function(e,t,r){var n=r(135);function a(e,t,r){var a=-1,i=e.length;while(++a<i){var o=e[a],s=t(o);if(s!=null&&(u===undefined?s===s&&!n(s):r(s,u))){var u=s,l=o}}return l}e.exports=a},function(e,t,r){"use strict";r.r(t);r.d(t,"Provider",(function(){return m}));r.d(t,"createProvider",(function(){return v}));r.d(t,"connectAdvanced",(function(){return N}));r.d(t,"connect",(function(){return ce}));function n(e,t){n=Object.setPrototypeOf||function e(t,r){t.__proto__=r;return t};return n(e,t)}function a(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;n(e,t)}var i=r(1);var o=r.n(i);var s=r(0);var u=r.n(s);var l=u.a.shape({trySubscribe:u.a.func.isRequired,tryUnsubscribe:u.a.func.isRequired,notifyNestedSubs:u.a.func.isRequired,isSubscribed:u.a.func.isRequired});var c=u.a.shape({subscribe:u.a.func.isRequired,dispatch:u.a.func.isRequired,getState:u.a.func.isRequired});function f(e){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error(e)}try{throw new Error(e)}catch(e){}}var d=typeof o.a.forwardRef!=="undefined";var p=false;function h(){if(p){return}p=true;f("<Provider> does not support changing `store` on the fly. "+"It is most likely that you see this error because you updated to "+"Redux 2.x and React Redux 2.x which no longer hot reload reducers "+"automatically. See https://github.com/reduxjs/react-redux/releases/"+"tag/v2.0.0 for the migration instructions.")}function v(e){var t;if(e===void 0){e="store"}var r=e+"Subscription";var n=function(t){a(o,t);var n=o.prototype;n.getChildContext=function t(){var n;return n={},n[e]=this[e],n[r]=null,n};function o(r,n){var a;a=t.call(this,r,n)||this;a[e]=r.store;return a}n.render=function e(){return i["Children"].only(this.props.children)};return o}(i["Component"]);if(false){var o}n.propTypes={store:c.isRequired,children:u.a.element.isRequired};n.childContextTypes=(t={},t[e]=c.isRequired,t[r]=l,t);return n}var m=v();function y(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}var g=r(30);var b=r(43);var A=r(119);var _=r.n(A);var w=r(8);var E=r.n(w);var x=r(93);var k=null;var M={notify:function e(){}};function S(){var e=[];var t=[];return{clear:function r(){t=k;e=k},notify:function r(){var n=e=t;for(var a=0;a<n.length;a++){n[a]()}},get:function e(){return t},subscribe:function r(n){var a=true;if(t===e)t=e.slice();t.push(n);return function r(){if(!a||e===k)return;a=false;if(t===e)t=e.slice();t.splice(t.indexOf(n),1)}}}}var O=function(){function e(e,t,r){this.store=e;this.parentSub=t;this.onStateChange=r;this.unsubscribe=null;this.listeners=M}var t=e.prototype;t.addNestedSub=function e(t){this.trySubscribe();return this.listeners.subscribe(t)};t.notifyNestedSubs=function e(){this.listeners.notify()};t.isSubscribed=function e(){return Boolean(this.unsubscribe)};t.trySubscribe=function e(){if(!this.unsubscribe){this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange);this.listeners=S()}};t.tryUnsubscribe=function e(){if(this.unsubscribe){this.unsubscribe();this.unsubscribe=null;this.listeners.clear();this.listeners=M}};return e}();var D=typeof o.a.forwardRef!=="undefined";var T=0;var L={};function C(){}function j(e,t){var r={run:function n(a){try{var i=e(t.getState(),a);if(i!==r.props||r.error){r.shouldComponentUpdate=true;r.props=i;r.error=null}}catch(e){r.shouldComponentUpdate=true;r.error=e}}};return r}function N(e,t){var r,n;if(t===void 0){t={}}var o=t,s=o.getDisplayName,u=s===void 0?function(e){return"ConnectAdvanced("+e+")"}:s,f=o.methodName,d=f===void 0?"connectAdvanced":f,p=o.renderCountProp,h=p===void 0?undefined:p,v=o.shouldHandleStateChanges,m=v===void 0?true:v,A=o.storeKey,w=A===void 0?"store":A,k=o.withRef,M=k===void 0?false:k,S=Object(b["a"])(o,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]);var N=w+"Subscription";var I=T++;var P=(r={},r[w]=c,r[N]=l,r);var R=(n={},n[N]=l,n);return function t(r){E()(Object(x["isValidElementType"])(r),"You must pass a component to the function returned by "+(d+". Instead received "+JSON.stringify(r)));var n=r.displayName||r.name||"Component";var o=u(n);var s=Object(g["a"])({},S,{getDisplayName:u,methodName:d,renderCountProp:h,shouldHandleStateChanges:m,storeKey:w,withRef:M,displayName:o,wrappedComponentName:n,WrappedComponent:r});var l=function(t){a(n,t);function n(e,r){var n;n=t.call(this,e,r)||this;n.version=I;n.state={};n.renderCount=0;n.store=e[w]||r[w];n.propsMode=Boolean(e[w]);n.setWrappedInstance=n.setWrappedInstance.bind(y(y(n)));E()(n.store,'Could not find "'+w+'" in either the context or props of '+('"'+o+'". Either wrap the root component in a <Provider>, ')+('or explicitly pass "'+w+'" as a prop to "'+o+'".'));n.initSelector();n.initSubscription();return n}var u=n.prototype;u.getChildContext=function e(){var t;var r=this.propsMode?null:this.subscription;return t={},t[N]=r||this.context[N],t};u.componentDidMount=function e(){if(!m)return;this.subscription.trySubscribe();this.selector.run(this.props);if(this.selector.shouldComponentUpdate)this.forceUpdate()};u.componentWillReceiveProps=function e(t){this.selector.run(t)};u.shouldComponentUpdate=function e(){return this.selector.shouldComponentUpdate};u.componentWillUnmount=function e(){if(this.subscription)this.subscription.tryUnsubscribe();this.subscription=null;this.notifyNestedSubs=C;this.store=null;this.selector.run=C;this.selector.shouldComponentUpdate=false};u.getWrappedInstance=function e(){E()(M,"To access the wrapped instance, you need to specify "+("{ withRef: true } in the options argument of the "+d+"() call."));return this.wrappedInstance};u.setWrappedInstance=function e(t){this.wrappedInstance=t};u.initSelector=function t(){var r=e(this.store.dispatch,s);this.selector=j(r,this.store);this.selector.run(this.props)};u.initSubscription=function e(){if(!m)return;var t=(this.propsMode?this.props:this.context)[N];this.subscription=new O(this.store,t,this.onStateChange.bind(this));this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)};u.onStateChange=function e(){this.selector.run(this.props);if(!this.selector.shouldComponentUpdate){this.notifyNestedSubs()}else{this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate;this.setState(L)}};u.notifyNestedSubsOnComponentDidUpdate=function e(){this.componentDidUpdate=undefined;this.notifyNestedSubs()};u.isSubscribed=function e(){return Boolean(this.subscription)&&this.subscription.isSubscribed()};u.addExtraProps=function e(t){if(!M&&!h&&!(this.propsMode&&this.subscription))return t;var r=Object(g["a"])({},t);if(M)r.ref=this.setWrappedInstance;if(h)r[h]=this.renderCount++;if(this.propsMode&&this.subscription)r[N]=this.subscription;return r};u.render=function e(){var t=this.selector;t.shouldComponentUpdate=false;if(t.error){throw t.error}else{return Object(i["createElement"])(r,this.addExtraProps(t.props))}};return n}(i["Component"]);if(D){l.prototype.UNSAFE_componentWillReceiveProps=l.prototype.componentWillReceiveProps;delete l.prototype.componentWillReceiveProps}l.WrappedComponent=r;l.displayName=o;l.childContextTypes=R;l.contextTypes=P;l.propTypes=P;if(false){var c}return _()(l,r)}}var I=Object.prototype.hasOwnProperty;function P(e,t){if(e===t){return e!==0||t!==0||1/e===1/t}else{return e!==e&&t!==t}}function R(e,t){if(P(e,t))return true;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null){return false}var r=Object.keys(e);var n=Object.keys(t);if(r.length!==n.length)return false;for(var a=0;a<r.length;a++){if(!I.call(t,r[a])||!P(e[r[a]],t[r[a]])){return false}}return true}var F=r(339);function Y(e){if(typeof e!=="object"||e===null)return false;var t=Object.getPrototypeOf(e);if(t===null)return true;var r=t;while(Object.getPrototypeOf(r)!==null){r=Object.getPrototypeOf(r)}return t===r}function B(e,t,r){if(!Y(e)){f(r+"() in "+t+" must return a plain object. Instead received "+e+".")}}function H(e){return function t(r,n){var a=e(r,n);function i(){return a}i.dependsOnOwnProps=false;return i}}function z(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==undefined?Boolean(e.dependsOnOwnProps):e.length!==1}function U(e,t){return function t(r,n){var a=n.displayName;var i=function e(t,r){return i.dependsOnOwnProps?i.mapToProps(t,r):i.mapToProps(t)};i.dependsOnOwnProps=true;i.mapToProps=function t(r,n){i.mapToProps=e;i.dependsOnOwnProps=z(e);var a=i(r,n);if(typeof a==="function"){i.mapToProps=a;i.dependsOnOwnProps=z(a);a=i(r,n)}if(false){}return a};return i}}function q(e){return typeof e==="function"?U(e,"mapDispatchToProps"):undefined}function V(e){return!e?H((function(e){return{dispatch:e}})):undefined}function W(e){return e&&typeof e==="object"?H((function(t){return Object(F["bindActionCreators"])(e,t)})):undefined}var K=[q,V,W];function G(e){return typeof e==="function"?U(e,"mapStateToProps"):undefined}function Q(e){return!e?H((function(){return{}})):undefined}var J=[G,Q];function Z(e,t,r){return Object(g["a"])({},r,e,t)}function X(e){return function t(r,n){var a=n.displayName,i=n.pure,o=n.areMergedPropsEqual;var s=false;var u;return function t(r,n,a){var l=e(r,n,a);if(s){if(!i||!o(l,u))u=l}else{s=true;u=l;if(false){}}return u}}}function $(e){return typeof e==="function"?X(e):undefined}function ee(e){return!e?function(){return Z}:undefined}var te=[$,ee];function re(e,t,r){if(!e){throw new Error("Unexpected value for "+t+" in "+r+".")}else if(t==="mapStateToProps"||t==="mapDispatchToProps"){if(!e.hasOwnProperty("dependsOnOwnProps")){f("The selector for "+t+" of "+r+" did not specify a value for dependsOnOwnProps.")}}}function ne(e,t,r,n){re(e,"mapStateToProps",n);re(t,"mapDispatchToProps",n);re(r,"mergeProps",n)}function ae(e,t,r,n){return function a(i,o){return r(e(i,o),t(n,o),o)}}function ie(e,t,r,n,a){var i=a.areStatesEqual,o=a.areOwnPropsEqual,s=a.areStatePropsEqual;var u=false;var l;var c;var f;var d;var p;function h(a,i){l=a;c=i;f=e(l,c);d=t(n,c);p=r(f,d,c);u=true;return p}function v(){f=e(l,c);if(t.dependsOnOwnProps)d=t(n,c);p=r(f,d,c);return p}function m(){if(e.dependsOnOwnProps)f=e(l,c);if(t.dependsOnOwnProps)d=t(n,c);p=r(f,d,c);return p}function y(){var t=e(l,c);var n=!s(t,f);f=t;if(n)p=r(f,d,c);return p}function g(e,t){var r=!o(t,c);var n=!i(e,l);l=e;c=t;if(r&&n)return v();if(r)return m();if(n)return y();return p}return function e(t,r){return u?g(t,r):h(t,r)}}function oe(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,a=t.initMergeProps,i=Object(b["a"])(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]);var o=r(e,i);var s=n(e,i);var u=a(e,i);if(false){}var l=i.pure?ie:ae;return l(o,s,u,e,i)}function se(e,t,r){for(var n=t.length-1;n>=0;n--){var a=t[n](e);if(a)return a}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function ue(e,t){return e===t}function le(e){var t=e===void 0?{}:e,r=t.connectHOC,n=r===void 0?N:r,a=t.mapStateToPropsFactories,i=a===void 0?J:a,o=t.mapDispatchToPropsFactories,s=o===void 0?K:o,u=t.mergePropsFactories,l=u===void 0?te:u,c=t.selectorFactory,f=c===void 0?oe:c;return function e(t,r,a,o){if(o===void 0){o={}}var u=o,c=u.pure,d=c===void 0?true:c,p=u.areStatesEqual,h=p===void 0?ue:p,v=u.areOwnPropsEqual,m=v===void 0?R:v,y=u.areStatePropsEqual,A=y===void 0?R:y,_=u.areMergedPropsEqual,w=_===void 0?R:_,E=Object(b["a"])(u,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]);var x=se(t,i,"mapStateToProps");var k=se(r,s,"mapDispatchToProps");var M=se(a,l,"mergeProps");return n(f,Object(g["a"])({methodName:"connect",getDisplayName:function e(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:x,initMapDispatchToProps:k,initMergeProps:M,pure:d,areStatesEqual:h,areOwnPropsEqual:m,areStatePropsEqual:A,areMergedPropsEqual:w},E))}}var ce=le()},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(705);var i=r(227);var o=l(i);var s=r(122);var u=r(82);function l(e){return e&&e.__esModule?e:{default:e}}var c=function e(t){return(0,a.stringify)(t).replace(/%20/g,"+")};var f=a.parse;var d=function e(t){return function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=t(e);var a=e.stringifyQuery,i=e.parseQueryString;if(typeof a!=="function")a=c;if(typeof i!=="function")i=f;var l=function e(t){if(!t)return t;if(t.query==null)t.query=i(t.search.substring(1));return t};var d=function e(t,r){if(r==null)return t;var i=typeof t==="string"?(0,u.parsePath)(t):t;var o=a(r);var s=o?"?"+o:"";return n({},i,{search:s})};var p=function e(){return l(r.getCurrentLocation())};var h=function e(t){return r.listenBefore((function(e,r){return(0,o.default)(t,l(e),r)}))};var v=function e(t){return r.listen((function(e){return t(l(e))}))};var m=function e(t){return r.push(d(t,t.query))};var y=function e(t){return r.replace(d(t,t.query))};var g=function e(t){return r.createPath(d(t,t.query))};var b=function e(t){return r.createHref(d(t,t.query))};var A=function e(t){for(var n=arguments.length,a=Array(n>1?n-1:0),i=1;i<n;i++){a[i-1]=arguments[i]}var o=r.createLocation.apply(r,[d(t,t.query)].concat(a));if(t.query)o.query=(0,s.createQuery)(t.query);return l(o)};return n({},r,{getCurrentLocation:p,listenBefore:h,listen:v,push:m,replace:y,createPath:g,createHref:b,createLocation:A})}};t.default=d},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(227);var i=s(a);var o=r(82);function s(e){return e&&e.__esModule?e:{default:e}}var u=function e(t){return function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=t(e);var a=e.basename;var s=function e(t){if(!t)return t;if(a&&t.basename==null){if(t.pathname.toLowerCase().indexOf(a.toLowerCase())===0){t.pathname=t.pathname.substring(a.length);t.basename=a;if(t.pathname==="")t.pathname="/"}else{t.basename=""}}return t};var u=function e(t){if(!a)return t;var r=typeof t==="string"?(0,o.parsePath)(t):t;var i=r.pathname;var s=a.slice(-1)==="/"?a:a+"/";var u=i.charAt(0)==="/"?i.slice(1):i;var l=s+u;return n({},r,{pathname:l})};var l=function e(){return s(r.getCurrentLocation())};var c=function e(t){return r.listenBefore((function(e,r){return(0,i.default)(t,s(e),r)}))};var f=function e(t){return r.listen((function(e){return t(s(e))}))};var d=function e(t){return r.push(u(t))};var p=function e(t){return r.replace(u(t))};var h=function e(t){return r.createPath(u(t))};var v=function e(t){return r.createHref(u(t))};var m=function e(t){for(var n=arguments.length,a=Array(n>1?n-1:0),i=1;i<n;i++){a[i-1]=arguments[i]}return s(r.createLocation.apply(r,[u(t)].concat(a)))};return n({},r,{getCurrentLocation:l,listenBefore:c,listen:f,push:d,replace:p,createPath:h,createHref:v,createLocation:m})}};t.default=u},function(e,t,r){e.exports=r(571)},function(e,t,r){"use strict";var n=r(20);t.__esModule=true;t.default=o;var a=n(r(79));var i;function o(e){if(!i&&i!==0||e){if(a.default){var t=document.createElement("div");t.style.position="absolute";t.style.top="-9999px";t.style.width="50px";t.style.height="50px";t.style.overflow="scroll";document.body.appendChild(t);i=t.offsetWidth-t.clientWidth;document.body.removeChild(t)}}return i}e.exports=t["default"]},function(e,t,r){"use strict";(function(e){var r=typeof e=="object"&&e&&e.Object===Object&&e;t["a"]=r}).call(this,r(27))},function(e,t,r){"use strict";var n=r(221);var a=Object(n["a"])(Object.getPrototypeOf,Object);t["a"]=a},function(e,t,r){"use strict";function n(e,t){return function(r){return e(t(r))}}t["a"]=n},function(e,t,r){"use strict";var n=s(r(1270));var a=s(r(1271));var i=s(r(657));var o=s(r(55));function s(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:o.default,TransitionGroup:i.default,ReplaceTransition:a.default,CSSTransition:n.default}},function(e,t,r){var n=r(213),a=r(659),i=r(51);function o(e,t){return e&&e.length?n(e,i(t,2),a):undefined}e.exports=o},function(e,t,r){var n=r(1296),a=r(1297),i=r(51),o=r(11),s=r(212);function u(e,t,r){var u=o(e)?n:a;if(r&&s(e,t,r)){t=undefined}return u(e,i(t,3))}e.exports=u},function(e,t,r){var n=r(134),a=r(617),i=r(1301),o=r(202),s=r(158),u=r(1304),l=r(1305),c=r(621);var f=1,d=2,p=4;var h=l((function(e,t){var r={};if(e==null){return r}var l=false;t=n(t,(function(t){t=o(t,e);l||(l=t.length>1);return t}));s(e,c(e),r);if(l){r=a(r,f|d|p,u)}var h=t.length;while(h--){i(r,t[h])}return r}));e.exports=h},function(e,t,r){var n=r(1283);var a=r(1284);var i=r(1286);var o=100;var s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;var u;e.exports=l;function l(e,t){u=0;t=Math.pow(10,t===undefined?5:t);e=e.replace(/\n+/g," ");function r(e,r,n){if(u++>o){u=0;throw new Error("Call stack overflow for "+n)}if(e===""){throw new Error(r+"(): '"+n+"' must contain a non-whitespace string")}e=l(e,n);var a=c(e);if(a.length>1||e.indexOf("var(")>-1){return r+"("+e+")"}var s=a[0]||"";if(s==="%"){e=e.replace(/\b[0-9\.]+%/g,(function(e){return parseFloat(e.slice(0,-1))*.01}))}var f=e.replace(new RegExp(s,"gi"),"");var d;try{d=i.eval(f)}catch(t){return r+"("+e+")"}if(s==="%"){d*=100}if(r.length||s==="%"){d=Math.round(d*t)/t}d+=s;return d}function l(e,t){e=e.replace(/((?:\-[a-z]+\-)?calc)/g,"");var a="";var i=e;var o;while(o=s.exec(i)){if(o[0].index>0){a+=i.substring(0,o[0].index)}var u=n("(",")",i.substring([0].index));if(u.body===""){throw new Error("'"+e+"' must contain a non-whitespace string")}var l=r(u.body,"",t);a+=u.pre+l;i=u.post}return a+i}return a(e,/((?:\-[a-z]+\-)?calc)\(/,r)}function c(e){var t=[];var r=[];var n=/[\.0-9]([%a-z]+)/gi;var a=n.exec(e);while(a){if(!a||!a[1]){continue}if(r.indexOf(a[1].toLowerCase())===-1){t.push(a[1]);r.push(a[1].toLowerCase())}a=n.exec(e)}return t}},function(e,t,r){"use strict";t.__esModule=true;var n=r(23);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}var o=function e(t,r,n){var a=t(r,n);if(t.length<2){n(a)}else{false?undefined:void 0}};t.default=o},function(e,t,r){"use strict";t.__esModule=true;var n=r(707);var a=r(82);var i=r(227);var o=l(i);var s=r(164);var u=r(122);function l(e){return e&&e.__esModule?e:{default:e}}var c=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=t.getCurrentLocation,i=t.getUserConfirmation,l=t.pushLocation,c=t.replaceLocation,f=t.go,d=t.keyLength;var p=void 0;var h=void 0;var v=[];var m=[];var y=[];var g=function e(){if(h&&h.action===s.POP)return y.indexOf(h.key);if(p)return y.indexOf(p.key);return-1};var b=function e(t){var r=g();p=t;if(p.action===s.PUSH){y=[].concat(y.slice(0,r+1),[p.key])}else if(p.action===s.REPLACE){y[r]=p.key}m.forEach((function(e){return e(p)}))};var A=function e(t){v.push(t);return function(){return v=v.filter((function(e){return e!==t}))}};var _=function e(t){m.push(t);return function(){return m=m.filter((function(e){return e!==t}))}};var w=function e(t,r){(0,n.loopAsync)(v.length,(function(e,r,n){(0,o.default)(v[e],t,(function(e){return e!=null?n(e):r()}))}),(function(e){if(i&&typeof e==="string"){i(e,(function(e){return r(e!==false)}))}else{r(e!==false)}}))};var E=function e(t){if(p&&(0,u.locationsAreEqual)(p,t)||h&&(0,u.locationsAreEqual)(h,t))return;h=t;w(t,(function(e){if(h!==t)return;h=null;if(e){if(t.action===s.PUSH){var r=(0,a.createPath)(p);var n=(0,a.createPath)(t);if(n===r&&(0,u.statesAreEqual)(p.state,t.state))t.action=s.REPLACE}if(t.action===s.POP){b(t)}else if(t.action===s.PUSH){if(l(t)!==false)b(t)}else if(t.action===s.REPLACE){if(c(t)!==false)b(t)}}else if(p&&t.action===s.POP){var i=y.indexOf(p.key);var o=y.indexOf(t.key);if(i!==-1&&o!==-1)f(i-o)}}))};var x=function e(t){return E(T(t,s.PUSH))};var k=function e(t){return E(T(t,s.REPLACE))};var M=function e(){return f(-1)};var S=function e(){return f(1)};var O=function e(){return Math.random().toString(36).substr(2,d||6)};var D=function e(t){return(0,a.createPath)(t)};var T=function e(t,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:O();return(0,u.createLocation)(t,r,n)};return{getCurrentLocation:r,listenBefore:A,listen:_,transitionTo:E,push:x,replace:k,go:f,goBack:M,goForward:S,createKey:O,createPath:a.createPath,createHref:D,createLocation:T}};t.default=c},function(e,t,r){"use strict";t.__esModule=true;var n=t.canUseDOM=!!(typeof window!=="undefined"&&window.document&&window.document.createElement)},function(e,t,r){"use strict";t.__esModule=true;t.go=t.replaceLocation=t.pushLocation=t.startListener=t.getUserConfirmation=t.getCurrentLocation=undefined;var n=r(122);var a=r(168);var i=r(349);var o=r(82);var s=r(229);var u="popstate";var l="hashchange";var c=s.canUseDOM&&!(0,a.supportsPopstateOnHashchange)();var f=function e(t){var r=t&&t.key;return(0,n.createLocation)({pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,state:r?(0,i.readState)(r):undefined},undefined,r)};var d=t.getCurrentLocation=function e(){var t=void 0;try{t=window.history.state||{}}catch(e){t={}}return f(t)};var p=t.getUserConfirmation=function e(t,r){return r(window.confirm(t))};var h=t.startListener=function e(t){var r=function e(r){if((0,a.isExtraneousPopstateEvent)(r))return;t(f(r.state))};(0,a.addEventListener)(window,u,r);var n=function e(){return t(d())};if(c){(0,a.addEventListener)(window,l,n)}return function(){(0,a.removeEventListener)(window,u,r);if(c){(0,a.removeEventListener)(window,l,n)}}};var v=function e(t,r){var n=t.state,a=t.key;if(n!==undefined)(0,i.saveState)(a,n);r({key:a},(0,o.createPath)(t))};var m=t.pushLocation=function e(t){return v(t,(function(e,t){return window.history.pushState(e,null,t)}))};var y=t.replaceLocation=function e(t){return v(t,(function(e,t){return window.history.replaceState(e,null,t)}))};var g=t.go=function e(t){if(t)window.history.go(t)}},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(57);var i=function(e){n(t,e);function t(t){return e.call(this,t)||this}t.BASE_REL="http://opds-spec.org/acquisition";t.GENERIC_REL=t.BASE_REL;t.OPEN_ACCESS_REL=t.BASE_REL+"/open-access";t.BORROW_REL=t.BASE_REL+"/borrow";t.BUY_REL=t.BASE_REL+"/buy";t.SAMPLE_REL=t.BASE_REL+"/sample";t.SUBSCRIBE_REL=t.BASE_REL+"/subscribe";t.RELS=[t.GENERIC_REL,t.OPEN_ACCESS_REL,t.BORROW_REL,t.BUY_REL,t.SAMPLE_REL,t.SUBSCRIBE_REL];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";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(57);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="alternate";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(233);var i=function(e){n(t,e);function t(r){var n=this;r.type=t.TYPE;n=e.call(this,r)||this;return n}t.TYPE="application/atom+xml;type=entry;profile=opds-catalog";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){(function(){t.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},function(e,t,r){(function(){var t,n,a,i,o,s,u,l,c,f=function(e,t){for(var r in t){if(d.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},d={}.hasOwnProperty;c=r(69),l=c.isObject,u=c.isFunction,s=c.getValue;o=r(46);t=r(24);n=r(374);i=r(238);e.exports=a=function(e){f(r,e);function r(e,n,a){var i,o,s,u;r.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing element name. "+this.debugInfo())}this.name=this.stringify.name(n);this.type=t.Element;this.attribs={};this.schemaTypeInfo=null;if(a!=null){this.attribute(a)}if(e.type===t.Document){this.isRoot=true;this.documentObject=e;e.rootObject=this;if(e.children){u=e.children;for(o=0,s=u.length;o<s;o++){i=u[o];if(i.type===t.DocType){i.name=this.name;break}}}}}Object.defineProperty(r.prototype,"tagName",{get:function(){return this.name}});Object.defineProperty(r.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(r.prototype,"prefix",{get:function(){return""}});Object.defineProperty(r.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(r.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(r.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(r.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(r.prototype,"attributes",{get:function(){if(!this.attributeMap||!this.attributeMap.nodes){this.attributeMap=new i(this.attribs)}return this.attributeMap}});r.prototype.clone=function(){var e,t,r,n;r=Object.create(this);if(r.isRoot){r.documentObject=null}r.attribs={};n=this.attribs;for(t in n){if(!d.call(n,t))continue;e=n[t];r.attribs[t]=e.clone()}r.children=[];this.children.forEach((function(e){var t;t=e.clone();t.parent=r;return r.children.push(t)}));return r};r.prototype.attribute=function(e,t){var r,a;if(e!=null){e=s(e)}if(l(e)){for(r in e){if(!d.call(e,r))continue;a=e[r];this.attribute(r,a)}}else{if(u(t)){t=t.apply()}if(this.options.keepNullAttributes&&t==null){this.attribs[e]=new n(this,e,"")}else if(t!=null){this.attribs[e]=new n(this,e,t)}}return this};r.prototype.removeAttribute=function(e){var t,r,n;if(e==null){throw new Error("Missing attribute name. "+this.debugInfo())}e=s(e);if(Array.isArray(e)){for(r=0,n=e.length;r<n;r++){t=e[r];delete this.attribs[t]}}else{delete this.attribs[e]}return this};r.prototype.toString=function(e){return this.options.writer.element(this,this.options.writer.filterOptions(e))};r.prototype.att=function(e,t){return this.attribute(e,t)};r.prototype.a=function(e,t){return this.attribute(e,t)};r.prototype.getAttribute=function(e){if(this.attribs.hasOwnProperty(e)){return this.attribs[e].value}else{return null}};r.prototype.setAttribute=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getAttributeNode=function(e){if(this.attribs.hasOwnProperty(e)){return this.attribs[e]}else{return null}};r.prototype.setAttributeNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.removeAttributeNode=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.getAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.setAttributeNS=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.removeAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getAttributeNodeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.setAttributeNodeNS=function(e){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.hasAttribute=function(e){return this.attribs.hasOwnProperty(e)};r.prototype.hasAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.setIdAttribute=function(e,t){if(this.attribs.hasOwnProperty(e)){return this.attribs[e].isId}else{return t}};r.prototype.setIdAttributeNS=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.setIdAttributeNode=function(e,t){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.getElementsByTagNameNS=function(e,t){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.isEqualNode=function(e){var t,n,a;if(!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)){return false}if(e.namespaceURI!==this.namespaceURI){return false}if(e.prefix!==this.prefix){return false}if(e.localName!==this.localName){return false}if(e.attribs.length!==this.attribs.length){return false}for(t=n=0,a=this.attribs.length-1;0<=a?n<=a:n>=a;t=0<=a?++n:--n){if(!this.attribs[t].isEqualNode(e.attribs[t])){return false}}return true};return r}(o)}).call(this)},function(e,t){(function(){var t;e.exports=t=function(){function e(e){this.nodes=e}Object.defineProperty(e.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}});e.prototype.clone=function(){return this.nodes=null};e.prototype.getNamedItem=function(e){return this.nodes[e]};e.prototype.setNamedItem=function(e){var t;t=this.nodes[e.nodeName];this.nodes[e.nodeName]=e;return t||null};e.prototype.removeNamedItem=function(e){var t;t=this.nodes[e];delete this.nodes[e];return t||null};e.prototype.item=function(e){return this.nodes[Object.keys(this.nodes)[e]]||null};e.prototype.getNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")};e.prototype.setNamedItemNS=function(e){throw new Error("This DOM method is not implemented.")};e.prototype.removeNamedItemNS=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=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;t=r(24);a=r(170);e.exports=n=function(e){i(r,e);function r(e,n){r.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing CDATA text. "+this.debugInfo())}this.name="#cdata-section";this.type=t.CData;this.value=this.stringify.cdata(n)}r.prototype.clone=function(){return Object.create(this)};r.prototype.toString=function(e){return this.options.writer.cdata(this,this.options.writer.filterOptions(e))};return r}(a)}).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;t=r(24);n=r(170);e.exports=a=function(e){i(r,e);function r(e,n){r.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing comment text. "+this.debugInfo())}this.name="#comment";this.type=t.Comment;this.value=this.stringify.comment(n)}r.prototype.clone=function(){return Object.create(this)};r.prototype.toString=function(e){return this.options.writer.comment(this,this.options.writer.filterOptions(e))};return r}(n)}).call(this)},function(e,t,r){(function(){var t,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;i=r(69).isObject;a=r(46);t=r(24);e.exports=n=function(e){o(r,e);function r(e,n,a,o){var s;r.__super__.constructor.call(this,e);if(i(n)){s=n,n=s.version,a=s.encoding,o=s.standalone}if(!n){n="1.0"}this.type=t.Declaration;this.version=this.stringify.xmlVersion(n);if(a!=null){this.encoding=this.stringify.xmlEncoding(a)}if(o!=null){this.standalone=this.stringify.xmlStandalone(o)}}r.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))};return r}(a)}).call(this)},function(e,t,r){(function(){var t,n,a,i,o,s,u,l,c,f=function(e,t){for(var r in t){if(d.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},d={}.hasOwnProperty;c=r(69).isObject;l=r(46);t=r(24);n=r(243);i=r(244);a=r(245);o=r(246);u=r(238);e.exports=s=function(e){f(r,e);function r(e,n,a){var i,o,s,u,l,f;r.__super__.constructor.call(this,e);this.type=t.DocType;if(e.children){u=e.children;for(o=0,s=u.length;o<s;o++){i=u[o];if(i.type===t.Element){this.name=i.name;break}}}this.documentObject=e;if(c(n)){l=n,n=l.pubID,a=l.sysID}if(a==null){f=[n,a],a=f[0],n=f[1]}if(n!=null){this.pubID=this.stringify.dtdPubID(n)}if(a!=null){this.sysID=this.stringify.dtdSysID(a)}}Object.defineProperty(r.prototype,"entities",{get:function(){var e,r,n,a,i;a={};i=this.children;for(r=0,n=i.length;r<n;r++){e=i[r];if(e.type===t.EntityDeclaration&&!e.pe){a[e.name]=e}}return new u(a)}});Object.defineProperty(r.prototype,"notations",{get:function(){var e,r,n,a,i;a={};i=this.children;for(r=0,n=i.length;r<n;r++){e=i[r];if(e.type===t.NotationDeclaration){a[e.name]=e}}return new u(a)}});Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(r.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});r.prototype.element=function(e,t){var r;r=new a(this,e,t);this.children.push(r);return this};r.prototype.attList=function(e,t,r,a,i){var o;o=new n(this,e,t,r,a,i);this.children.push(o);return this};r.prototype.entity=function(e,t){var r;r=new i(this,false,e,t);this.children.push(r);return this};r.prototype.pEntity=function(e,t){var r;r=new i(this,true,e,t);this.children.push(r);return this};r.prototype.notation=function(e,t){var r;r=new o(this,e,t);this.children.push(r);return this};r.prototype.toString=function(e){return this.options.writer.docType(this,this.options.writer.filterOptions(e))};r.prototype.ele=function(e,t){return this.element(e,t)};r.prototype.att=function(e,t,r,n,a){return this.attList(e,t,r,n,a)};r.prototype.ent=function(e,t){return this.entity(e,t)};r.prototype.pent=function(e,t){return this.pEntity(e,t)};r.prototype.not=function(e,t){return this.notation(e,t)};r.prototype.up=function(){return this.root()||this.documentObject};r.prototype.isEqualNode=function(e){if(!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)){return false}if(e.name!==this.name){return false}if(e.publicId!==this.publicId){return false}if(e.systemId!==this.systemId){return false}return true};return r}(l)}).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(46);t=r(24);e.exports=n=function(e){i(r,e);function r(e,n,a,i,o,s){r.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(a==null){throw new Error("Missing DTD attribute name. "+this.debugInfo(n))}if(!i){throw new Error("Missing DTD attribute type. "+this.debugInfo(n))}if(!o){throw new Error("Missing DTD attribute default. "+this.debugInfo(n))}if(o.indexOf("#")!==0){o="#"+o}if(!o.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)){throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(n))}if(s&&!o.match(/^(#FIXED|#DEFAULT)$/)){throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(n))}this.elementName=this.stringify.name(n);this.type=t.AttributeDeclaration;this.attributeName=this.stringify.name(a);this.attributeType=this.stringify.dtdAttType(i);if(s){this.defaultValue=this.stringify.dtdAttDefault(s)}this.defaultValueType=o}r.prototype.toString=function(e){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(e))};return r}(a)}).call(this)},function(e,t,r){(function(){var t,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;i=r(69).isObject;a=r(46);t=r(24);e.exports=n=function(e){o(r,e);function r(e,n,a,o){r.__super__.constructor.call(this,e);if(a==null){throw new Error("Missing DTD entity name. "+this.debugInfo(a))}if(o==null){throw new Error("Missing DTD entity value. "+this.debugInfo(a))}this.pe=!!n;this.name=this.stringify.name(a);this.type=t.EntityDeclaration;if(!i(o)){this.value=this.stringify.dtdEntityValue(o);this.internal=true}else{if(!o.pubID&&!o.sysID){throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(a))}if(o.pubID&&!o.sysID){throw new Error("System identifier is required for a public external entity. "+this.debugInfo(a))}this.internal=false;if(o.pubID!=null){this.pubID=this.stringify.dtdPubID(o.pubID)}if(o.sysID!=null){this.sysID=this.stringify.dtdSysID(o.sysID)}if(o.nData!=null){this.nData=this.stringify.dtdNData(o.nData)}if(this.pe&&this.nData){throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(a))}}}Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(r.prototype,"notationName",{get:function(){return this.nData||null}});Object.defineProperty(r.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(r.prototype,"xmlEncoding",{get:function(){return null}});Object.defineProperty(r.prototype,"xmlVersion",{get:function(){return null}});r.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))};return r}(a)}).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(46);t=r(24);e.exports=n=function(e){i(r,e);function r(e,n,a){r.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(!a){a="(#PCDATA)"}if(Array.isArray(a)){a="("+a.join(",")+")"}this.name=this.stringify.name(n);this.type=t.ElementDeclaration;this.value=this.stringify.dtdElementValue(a)}r.prototype.toString=function(e){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(e))};return r}(a)}).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(46);t=r(24);e.exports=n=function(e){i(r,e);function r(e,n,a){r.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing DTD notation name. "+this.debugInfo(n))}if(!a.pubID&&!a.sysID){throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(n))}this.name=this.stringify.name(n);this.type=t.NotationDeclaration;if(a.pubID!=null){this.pubID=this.stringify.dtdPubID(a.pubID)}if(a.sysID!=null){this.sysID=this.stringify.dtdSysID(a.sysID)}}Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}});r.prototype.toString=function(e){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(e))};return r}(a)}).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;t=r(24);n=r(46);e.exports=a=function(e){i(r,e);function r(e,n){r.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing raw text. "+this.debugInfo())}this.type=t.Raw;this.value=this.stringify.raw(n)}r.prototype.clone=function(){return Object.create(this)};r.prototype.toString=function(e){return this.options.writer.raw(this,this.options.writer.filterOptions(e))};return r}(n)}).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;t=r(24);n=r(170);e.exports=a=function(e){i(r,e);function r(e,n){r.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing element text. "+this.debugInfo())}this.name="#text";this.type=t.Text;this.value=this.stringify.text(n)}Object.defineProperty(r.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(r.prototype,"wholeText",{get:function(){var e,t,r;r="";t=this.previousSibling;while(t){r=t.data+r;t=t.previousSibling}r+=this.data;e=this.nextSibling;while(e){r=r+e.data;e=e.nextSibling}return r}});r.prototype.clone=function(){return Object.create(this)};r.prototype.toString=function(e){return this.options.writer.text(this,this.options.writer.filterOptions(e))};r.prototype.splitText=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.replaceWholeText=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};return r}(n)}).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;t=r(24);n=r(170);e.exports=a=function(e){i(r,e);function r(e,n,a){r.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing instruction target. "+this.debugInfo())}this.type=t.ProcessingInstruction;this.target=this.stringify.insTarget(n);this.name=this.target;if(a){this.value=this.stringify.insValue(a)}}r.prototype.clone=function(){return Object.create(this)};r.prototype.toString=function(e){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(e))};r.prototype.isEqualNode=function(e){if(!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)){return false}if(e.target!==this.target){return false}return true};return r}(n)}).call(this)},function(e,t,r){(function(){var t,n,a=function(e,t){for(var r in t){if(i.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},i={}.hasOwnProperty;n=r(377);e.exports=t=function(e){a(t,e);function t(e){t.__super__.constructor.call(this,e)}t.prototype.document=function(e,t){var r,n,a,i,o;t=this.filterOptions(t);i="";o=e.children;for(n=0,a=o.length;n<a;n++){r=o[n];i+=this.writeChildNode(r,t,0)}if(t.pretty&&i.slice(-t.newline.length)===t.newline){i=i.slice(0,-t.newline.length)}return i};return t}(n)}).call(this)},function(e,t,r){"use strict";(function(e){
34
+ */var n=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty;var i=Object.prototype.propertyIsEnumerable;function o(e){if(e===null||e===undefined){throw new TypeError("Object.assign cannot be called with null or undefined")}return Object(e)}function s(){try{if(!Object.assign){return false}var e=new String("abc");e[5]="de";if(Object.getOwnPropertyNames(e)[0]==="5"){return false}var t={};for(var r=0;r<10;r++){t["_"+String.fromCharCode(r)]=r}var n=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if(n.join("")!=="0123456789"){return false}var a={};"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e}));if(Object.keys(Object.assign({},a)).join("")!=="abcdefghijklmnopqrst"){return false}return true}catch(e){return false}}e.exports=s()?Object.assign:function(e,t){var r;var s=o(e);var u;for(var l=1;l<arguments.length;l++){r=Object(arguments[l]);for(var c in r){if(a.call(r,c)){s[c]=r[c]}}if(n){u=n(r);for(var f=0;f<u.length;f++){if(i.call(r,u[f])){s[u[f]]=r[u[f]]}}}}return s}},function(e,t,r){(function(){var t,n,a,i,o,s,u,l,c,f,d,p,h,v,m,y,g,b,A,_={}.hasOwnProperty;A=r(69),b=A.isObject,g=A.isFunction,y=A.isEmpty,m=A.getValue;l=null;a=null;i=null;o=null;s=null;h=null;v=null;p=null;u=null;n=null;d=null;c=null;t=null;e.exports=f=function(){function e(e){this.parent=e;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}this.value=null;this.children=[];this.baseURI=null;if(!l){l=r(237);a=r(239);i=r(240);o=r(241);s=r(242);h=r(247);v=r(248);p=r(249);u=r(375);n=r(24);d=r(734);c=r(238);t=r(735)}}Object.defineProperty(e.prototype,"nodeName",{get:function(){return this.name}});Object.defineProperty(e.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.value}});Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent}});Object.defineProperty(e.prototype,"childNodes",{get:function(){if(!this.childNodeList||!this.childNodeList.nodes){this.childNodeList=new d(this.children)}return this.childNodeList}});Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.children[0]||null}});Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}});Object.defineProperty(e.prototype,"previousSibling",{get:function(){var e;e=this.parent.children.indexOf(this);return this.parent.children[e-1]||null}});Object.defineProperty(e.prototype,"nextSibling",{get:function(){var e;e=this.parent.children.indexOf(this);return this.parent.children[e+1]||null}});Object.defineProperty(e.prototype,"ownerDocument",{get:function(){return this.document()||null}});Object.defineProperty(e.prototype,"textContent",{get:function(){var e,t,r,a,i;if(this.nodeType===n.Element||this.nodeType===n.DocumentFragment){i="";a=this.children;for(t=0,r=a.length;t<r;t++){e=a[t];if(e.textContent){i+=e.textContent}}return i}else{return null}},set:function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())}});e.prototype.setParent=function(e){var t,r,n,a,i;this.parent=e;if(e){this.options=e.options;this.stringify=e.stringify}a=this.children;i=[];for(r=0,n=a.length;r<n;r++){t=a[r];i.push(t.setParent(this))}return i};e.prototype.element=function(e,t,r){var n,a,i,o,s,u,l,c,f,d,p;u=null;if(t===null&&r==null){f=[{},null],t=f[0],r=f[1]}if(t==null){t={}}t=m(t);if(!b(t)){d=[t,r],r=d[0],t=d[1]}if(e!=null){e=m(e)}if(Array.isArray(e)){for(i=0,l=e.length;i<l;i++){a=e[i];u=this.element(a)}}else if(g(e)){u=this.element(e.apply())}else if(b(e)){for(s in e){if(!_.call(e,s))continue;p=e[s];if(g(p)){p=p.apply()}if(!this.options.ignoreDecorators&&this.stringify.convertAttKey&&s.indexOf(this.stringify.convertAttKey)===0){u=this.attribute(s.substr(this.stringify.convertAttKey.length),p)}else if(!this.options.separateArrayItems&&Array.isArray(p)&&y(p)){u=this.dummy()}else if(b(p)&&y(p)){u=this.element(s)}else if(!this.options.keepNullNodes&&p==null){u=this.dummy()}else if(!this.options.separateArrayItems&&Array.isArray(p)){for(o=0,c=p.length;o<c;o++){a=p[o];n={};n[s]=a;u=this.element(n)}}else if(b(p)){if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&s.indexOf(this.stringify.convertTextKey)===0){u=this.element(p)}else{u=this.element(s);u.element(p)}}else{u=this.element(s,p)}}}else if(!this.options.keepNullNodes&&r===null){u=this.dummy()}else{if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&e.indexOf(this.stringify.convertTextKey)===0){u=this.text(r)}else if(!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&e.indexOf(this.stringify.convertCDataKey)===0){u=this.cdata(r)}else if(!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&e.indexOf(this.stringify.convertCommentKey)===0){u=this.comment(r)}else if(!this.options.ignoreDecorators&&this.stringify.convertRawKey&&e.indexOf(this.stringify.convertRawKey)===0){u=this.raw(r)}else if(!this.options.ignoreDecorators&&this.stringify.convertPIKey&&e.indexOf(this.stringify.convertPIKey)===0){u=this.instruction(e.substr(this.stringify.convertPIKey.length),r)}else{u=this.node(e,t,r)}}if(u==null){throw new Error("Could not create any elements with: "+e+". "+this.debugInfo())}return u};e.prototype.insertBefore=function(e,t,r){var n,a,i,o,s;if(e!=null?e.type:void 0){i=e;o=t;i.setParent(this);if(o){a=children.indexOf(o);s=children.splice(a);children.push(i);Array.prototype.push.apply(children,s)}else{children.push(i)}return i}else{if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(e))}a=this.parent.children.indexOf(this);s=this.parent.children.splice(a);n=this.parent.element(e,t,r);Array.prototype.push.apply(this.parent.children,s);return n}};e.prototype.insertAfter=function(e,t,r){var n,a,i;if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(e))}a=this.parent.children.indexOf(this);i=this.parent.children.splice(a+1);n=this.parent.element(e,t,r);Array.prototype.push.apply(this.parent.children,i);return n};e.prototype.remove=function(){var e,t;if(this.isRoot){throw new Error("Cannot remove the root element. "+this.debugInfo())}e=this.parent.children.indexOf(this);[].splice.apply(this.parent.children,[e,e-e+1].concat(t=[])),t;return this.parent};e.prototype.node=function(e,t,r){var n,a;if(e!=null){e=m(e)}t||(t={});t=m(t);if(!b(t)){a=[t,r],r=a[0],t=a[1]}n=new l(this,e,t);if(r!=null){n.text(r)}this.children.push(n);return n};e.prototype.text=function(e){var t;if(b(e)){this.element(e)}t=new v(this,e);this.children.push(t);return this};e.prototype.cdata=function(e){var t;t=new a(this,e);this.children.push(t);return this};e.prototype.comment=function(e){var t;t=new i(this,e);this.children.push(t);return this};e.prototype.commentBefore=function(e){var t,r,n;r=this.parent.children.indexOf(this);n=this.parent.children.splice(r);t=this.parent.comment(e);Array.prototype.push.apply(this.parent.children,n);return this};e.prototype.commentAfter=function(e){var t,r,n;r=this.parent.children.indexOf(this);n=this.parent.children.splice(r+1);t=this.parent.comment(e);Array.prototype.push.apply(this.parent.children,n);return this};e.prototype.raw=function(e){var t;t=new h(this,e);this.children.push(t);return this};e.prototype.dummy=function(){var e;e=new u(this);return e};e.prototype.instruction=function(e,t){var r,n,a,i,o;if(e!=null){e=m(e)}if(t!=null){t=m(t)}if(Array.isArray(e)){for(i=0,o=e.length;i<o;i++){r=e[i];this.instruction(r)}}else if(b(e)){for(r in e){if(!_.call(e,r))continue;n=e[r];this.instruction(r,n)}}else{if(g(t)){t=t.apply()}a=new p(this,e,t);this.children.push(a)}return this};e.prototype.instructionBefore=function(e,t){var r,n,a;n=this.parent.children.indexOf(this);a=this.parent.children.splice(n);r=this.parent.instruction(e,t);Array.prototype.push.apply(this.parent.children,a);return this};e.prototype.instructionAfter=function(e,t){var r,n,a;n=this.parent.children.indexOf(this);a=this.parent.children.splice(n+1);r=this.parent.instruction(e,t);Array.prototype.push.apply(this.parent.children,a);return this};e.prototype.declaration=function(e,t,r){var a,i;a=this.document();i=new o(a,e,t,r);if(a.children.length===0){a.children.unshift(i)}else if(a.children[0].type===n.Declaration){a.children[0]=i}else{a.children.unshift(i)}return a.root()||a};e.prototype.dtd=function(e,t){var r,a,i,o,u,l,c,f,d,p;a=this.document();i=new s(a,e,t);d=a.children;for(o=u=0,c=d.length;u<c;o=++u){r=d[o];if(r.type===n.DocType){a.children[o]=i;return i}}p=a.children;for(o=l=0,f=p.length;l<f;o=++l){r=p[o];if(r.isRoot){a.children.splice(o,0,i);return i}}a.children.push(i);return i};e.prototype.up=function(){if(this.isRoot){throw new Error("The root node has no parent. Use doc() if you need to get the document object.")}return this.parent};e.prototype.root=function(){var e;e=this;while(e){if(e.type===n.Document){return e.rootObject}else if(e.isRoot){return e}else{e=e.parent}}};e.prototype.document=function(){var e;e=this;while(e){if(e.type===n.Document){return e}else{e=e.parent}}};e.prototype.end=function(e){return this.document().end(e)};e.prototype.prev=function(){var e;e=this.parent.children.indexOf(this);if(e<1){throw new Error("Already at the first node. "+this.debugInfo())}return this.parent.children[e-1]};e.prototype.next=function(){var e;e=this.parent.children.indexOf(this);if(e===-1||e===this.parent.children.length-1){throw new Error("Already at the last node. "+this.debugInfo())}return this.parent.children[e+1]};e.prototype.importDocument=function(e){var t;t=e.root().clone();t.parent=this;t.isRoot=false;this.children.push(t);return this};e.prototype.debugInfo=function(e){var t,r;e=e||this.name;if(e==null&&!((t=this.parent)!=null?t.name:void 0)){return""}else if(e==null){return"parent: <"+this.parent.name+">"}else if(!((r=this.parent)!=null?r.name:void 0)){return"node: <"+e+">"}else{return"node: <"+e+">, parent: <"+this.parent.name+">"}};e.prototype.ele=function(e,t,r){return this.element(e,t,r)};e.prototype.nod=function(e,t,r){return this.node(e,t,r)};e.prototype.txt=function(e){return this.text(e)};e.prototype.dat=function(e){return this.cdata(e)};e.prototype.com=function(e){return this.comment(e)};e.prototype.ins=function(e,t){return this.instruction(e,t)};e.prototype.doc=function(){return this.document()};e.prototype.dec=function(e,t,r){return this.declaration(e,t,r)};e.prototype.e=function(e,t,r){return this.element(e,t,r)};e.prototype.n=function(e,t,r){return this.node(e,t,r)};e.prototype.t=function(e){return this.text(e)};e.prototype.d=function(e){return this.cdata(e)};e.prototype.c=function(e){return this.comment(e)};e.prototype.r=function(e){return this.raw(e)};e.prototype.i=function(e,t){return this.instruction(e,t)};e.prototype.u=function(){return this.up()};e.prototype.importXMLBuilder=function(e){return this.importDocument(e)};e.prototype.replaceChild=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.removeChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.appendChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.hasChildNodes=function(){return this.children.length!==0};e.prototype.cloneNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.isSupported=function(e,t){return true};e.prototype.hasAttributes=function(){return this.attribs.length!==0};e.prototype.compareDocumentPosition=function(e){var r,n;r=this;if(r===e){return 0}else if(this.document()!==e.document()){n=t.Disconnected|t.ImplementationSpecific;if(Math.random()<.5){n|=t.Preceding}else{n|=t.Following}return n}else if(r.isAncestor(e)){return t.Contains|t.Preceding}else if(r.isDescendant(e)){return t.Contains|t.Following}else if(r.isPreceding(e)){return t.Preceding}else{return t.Following}};e.prototype.isSameNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.lookupPrefix=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.isDefaultNamespace=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.lookupNamespaceURI=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.isEqualNode=function(e){var t,r,n;if(e.nodeType!==this.nodeType){return false}if(e.children.length!==this.children.length){return false}for(t=r=0,n=this.children.length-1;0<=n?r<=n:r>=n;t=0<=n?++r:--r){if(!this.children[t].isEqualNode(e.children[t])){return false}}return true};e.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.setUserData=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.getUserData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};e.prototype.contains=function(e){if(!e){return false}return e===this||this.isDescendant(e)};e.prototype.isDescendant=function(e){var t,r,n,a,i;i=this.children;for(n=0,a=i.length;n<a;n++){t=i[n];if(e===t){return true}r=t.isDescendant(e);if(r){return true}}return false};e.prototype.isAncestor=function(e){return e.isDescendant(this)};e.prototype.isPreceding=function(e){var t,r;t=this.treePosition(e);r=this.treePosition(this);if(t===-1||r===-1){return false}else{return t<r}};e.prototype.isFollowing=function(e){var t,r;t=this.treePosition(e);r=this.treePosition(this);if(t===-1||r===-1){return false}else{return t>r}};e.prototype.treePosition=function(e){var t,r;r=0;t=false;this.foreachTreeNode(this.document(),(function(n){r++;if(!t&&n===e){return t=true}}));if(t){return r}else{return-1}};e.prototype.foreachTreeNode=function(e,t){var r,n,a,i,o;e||(e=this.document());i=e.children;for(n=0,a=i.length;n<a;n++){r=i[n];if(o=t(r)){return o}else{o=this.foreachTreeNode(r,t);if(o){return o}}}};return e}()}).call(this)},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){e.deprecate=function(){};e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});e.webpackPolyfill=1}return e}},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},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(10),i=a.Map,o=a.OrderedSet,s=a.Record;var u=o();var l={style:u,entity:null};var c=s(l);var f=function(e){n(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.getStyle=function e(){return this.get("style")};r.getEntity=function e(){return this.get("entity")};r.hasStyle=function e(t){return this.getStyle().includes(t)};t.applyStyle=function e(r,n){var a=r.set("style",r.getStyle().add(n));return t.create(a)};t.removeStyle=function e(r,n){var a=r.set("style",r.getStyle().remove(n));return t.create(a)};t.applyEntity=function e(r,n){var a=r.getEntity()===n?r:r.set("entity",n);return t.create(a)};t.create=function e(r){if(!r){return d}var n={style:u,entity:null};var a=i(n).merge(r);var o=p.get(a);if(o){return o}var s=new t(a);p=p.set(a,s);return s};t.fromJS=function e(r){var n=r.style,a=r.entity;return new t({style:Array.isArray(n)?o(n):n,entity:Array.isArray(a)?o(a):a})};return t}(c);var d=new f;var p=i([[i(l),d]]);f.EMPTY=d;e.exports=f},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(49);var i=r(150);var o=r(10);var s=o.List,u=o.Map,l=o.OrderedSet,c=o.Record,f=o.Repeat;var d=l();var p={parent:null,characterList:s(),data:u(),depth:0,key:"",text:"",type:"unstyled",children:s(),prevSibling:null,nextSibling:null};var h=function e(t,r){return t.getStyle()===r.getStyle()};var v=function e(t,r){return t.getEntity()===r.getEntity()};var m=function e(t){if(!t){return t}var r=t.characterList,n=t.text;if(n&&!r){t.characterList=s(f(a.EMPTY,n.length))}return t};var y=function(e){n(t,e);function t(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:p;return e.call(this,m(t))||this}var r=t.prototype;r.getKey=function e(){return this.get("key")};r.getType=function e(){return this.get("type")};r.getText=function e(){return this.get("text")};r.getCharacterList=function e(){return this.get("characterList")};r.getLength=function e(){return this.getText().length};r.getDepth=function e(){return this.get("depth")};r.getData=function e(){return this.get("data")};r.getInlineStyleAt=function e(t){var r=this.getCharacterList().get(t);return r?r.getStyle():d};r.getEntityAt=function e(t){var r=this.getCharacterList().get(t);return r?r.getEntity():null};r.getChildKeys=function e(){return this.get("children")};r.getParentKey=function e(){return this.get("parent")};r.getPrevSiblingKey=function e(){return this.get("prevSibling")};r.getNextSiblingKey=function e(){return this.get("nextSibling")};r.findStyleRanges=function e(t,r){i(this.getCharacterList(),h,t,r)};r.findEntityRanges=function e(t,r){i(this.getCharacterList(),v,t,r)};return t}(c(p));e.exports=y},function(e,t,r){var n=r(1028),a=r(1066),i=r(109),o=r(11),s=r(1075);function u(e){if(typeof e=="function"){return e}if(e==null){return i}if(typeof e=="object"){return o(e)?a(e[0],e[1]):n(e)}return s(e)}e.exports=u},function(e,t,r){"use strict";r.r(t);var n=function e(t,r){return t===r};t["default"]=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:n;var r=void 0;var a=[];var i=void 0;var o=false;var s=function e(r,n){return t(r,a[n])};var u=function t(){for(var n=arguments.length,u=Array(n),l=0;l<n;l++){u[l]=arguments[l]}if(o&&r===this&&u.length===a.length&&u.every(s)){return i}o=true;r=this;a=u;i=e.apply(this,u);return i};return u}},function(e,t,r){e.exports=r(965)},function(e,t,r){var n=r(85),a=r(11),i=r(60);var o="[object String]";function s(e){return typeof e=="string"||!a(e)&&i(e)&&n(e)==o}e.exports=s},function(e,t,r){"use strict";t.__esModule=true;t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var n=l(r(0));var a=u(r(1));var i=u(r(17));var o=r(585);var s=r(586);function u(e){return e&&e.__esModule?e:{default:e}}function l(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 c(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 f(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var d="unmounted";t.UNMOUNTED=d;var p="exited";t.EXITED=p;var h="entering";t.ENTERING=h;var v="entered";t.ENTERED=v;var m="exiting";t.EXITING=m;var y=function(e){f(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;var a=r.transitionGroup;var i=a&&!a.isMounting?t.enter:t.appear;var o;n.appearStatus=null;if(t.in){if(i){o=p;n.appearStatus=h}else{o=v}}else{if(t.unmountOnExit||t.mountOnEnter){o=d}else{o=p}}n.state={status:o};n.nextCallback=null;return n}var r=t.prototype;r.getChildContext=function e(){return{transitionGroup:null}};t.getDerivedStateFromProps=function e(t,r){var n=t.in;if(n&&r.status===d){return{status:p}}return null};r.componentDidMount=function e(){this.updateStatus(true,this.appearStatus)};r.componentDidUpdate=function e(t){var r=null;if(t!==this.props){var n=this.state.status;if(this.props.in){if(n!==h&&n!==v){r=h}}else{if(n===h||n===v){r=m}}}this.updateStatus(false,r)};r.componentWillUnmount=function e(){this.cancelNextCallback()};r.getTimeouts=function e(){var t=this.props.timeout;var r,n,a;r=n=a=t;if(t!=null&&typeof t!=="number"){r=t.exit;n=t.enter;a=t.appear!==undefined?t.appear:n}return{exit:r,enter:n,appear:a}};r.updateStatus=function e(t,r){if(t===void 0){t=false}if(r!==null){this.cancelNextCallback();var n=i.default.findDOMNode(this);if(r===h){this.performEnter(n,t)}else{this.performExit(n)}}else if(this.props.unmountOnExit&&this.state.status===p){this.setState({status:d})}};r.performEnter=function e(t,r){var n=this;var a=this.props.enter;var i=this.context.transitionGroup?this.context.transitionGroup.isMounting:r;var o=this.getTimeouts();var s=i?o.appear:o.enter;if(!r&&!a){this.safeSetState({status:v},(function(){n.props.onEntered(t)}));return}this.props.onEnter(t,i);this.safeSetState({status:h},(function(){n.props.onEntering(t,i);n.onTransitionEnd(t,s,(function(){n.safeSetState({status:v},(function(){n.props.onEntered(t,i)}))}))}))};r.performExit=function e(t){var r=this;var n=this.props.exit;var a=this.getTimeouts();if(!n){this.safeSetState({status:p},(function(){r.props.onExited(t)}));return}this.props.onExit(t);this.safeSetState({status:m},(function(){r.props.onExiting(t);r.onTransitionEnd(t,a.exit,(function(){r.safeSetState({status:p},(function(){r.props.onExited(t)}))}))}))};r.cancelNextCallback=function e(){if(this.nextCallback!==null){this.nextCallback.cancel();this.nextCallback=null}};r.safeSetState=function e(t,r){r=this.setNextCallback(r);this.setState(t,r)};r.setNextCallback=function e(t){var r=this;var n=true;this.nextCallback=function(e){if(n){n=false;r.nextCallback=null;t(e)}};this.nextCallback.cancel=function(){n=false};return this.nextCallback};r.onTransitionEnd=function e(t,r,n){this.setNextCallback(n);var a=r==null&&!this.props.addEndListener;if(!t||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){this.props.addEndListener(t,this.nextCallback)}if(r!=null){setTimeout(this.nextCallback,r)}};r.render=function e(){var t=this.state.status;if(t===d){return null}var r=this.props,n=r.children,i=c(r,["children"]);delete i.in;delete i.mountOnEnter;delete i.unmountOnExit;delete i.appear;delete i.enter;delete i.exit;delete i.timeout;delete i.addEndListener;delete i.onEnter;delete i.onEntering;delete i.onEntered;delete i.onExit;delete i.onExiting;delete i.onExited;if(typeof n==="function"){return n(t,i)}var o=a.default.Children.only(n);return a.default.cloneElement(o,i)};return t}(a.default.Component);y.contextTypes={transitionGroup:n.object};y.childContextTypes={transitionGroup:function e(){}};y.propTypes=false?undefined:{};function g(){}y.defaultProps={in:false,mountOnEnter:false,unmountOnExit:false,appear:false,enter:true,exit:true,onEnter:g,onEntering:g,onEntered:g,onExit:g,onExiting:g,onExited:g};y.UNMOUNTED=0;y.EXITED=1;y.ENTERING=2;y.ENTERED=3;y.EXITING=4;var b=(0,o.polyfill)(y);t.default=b},function(e,t,r){"use strict";var n=r(21);var a=n["a"].Symbol;t["a"]=a},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){this.prefixes=e}e.prototype.parse=function(e){throw new Error("must be implemented in subclass")};e.prototype.parseAttribute=function(e,t){var r=e["$"];if(r){var n=r[t];if(n){return n.value}}return undefined};e.prototype.parseSubtagContent=function(e,t){var r=e[t];if(r&&r.length>0){return r[0]["_"]}else{return undefined}};e.prototype.parseSubtags=function(e,t,r){var n=e[t];var a;if(n&&n.length){a=n.map((function(e){return r.parse(e)}))}else{a=[]}return a};e.prototype.parseSubtag=function(e,t,r){var n=this.parseSubtags(e,t,r);return n.length>0?n[0]:null};return e}();t.default=n},function(e,t,r){var n=r(600);var a=typeof self=="object"&&self&&self.Object===Object&&self;var i=n||a||Function("return this")();e.exports=i},function(e,t){function r(e){return e!=null&&typeof e=="object"}e.exports=r},function(e,t,r){(function(t){var n=r(1179),a=typeof window==="undefined"?t:window,i=["moz","webkit"],o="AnimationFrame",s=a["request"+o],u=a["cancel"+o]||a["cancelRequest"+o];for(var l=0;!s&&l<i.length;l++){s=a[i[l]+"Request"+o];u=a[i[l]+"Cancel"+o]||a[i[l]+"CancelRequest"+o]}if(!s||!u){var c=0,f=0,d=[],p=1e3/60;s=function(e){if(d.length===0){var t=n(),r=Math.max(0,p-(t-c));c=r+t;setTimeout((function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++){if(!e[t].cancelled){try{e[t].callback(c)}catch(e){setTimeout((function(){throw e}),0)}}}}),Math.round(r))}d.push({handle:++f,callback:e,cancelled:false});return f};u=function(e){for(var t=0;t<d.length;t++){if(d[t].handle===e){d[t].cancelled=true}}}}e.exports=function(e){return s.call(a,e)};e.exports.cancel=function(){u.apply(a,arguments)};e.exports.polyfill=function(e){if(!e){e=a}e.requestAnimationFrame=s;e.cancelAnimationFrame=u}}).call(this,r(27))},function(e,t,r){"use strict";var n=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 a=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 i=r(353);var o=function(){function e(e){this.fetcher=e}e.prototype.fetchBlob=function(e,t){var r=this;return function(i){return n(r,void 0,void 0,(function(){var r,n,o,n,s;return a(this,(function(a){switch(a.label){case 0:i(this.request(e,t));a.label=1;case 1:a.trys.push([1,8,,9]);return[4,this.fetcher.fetch(t)];case 2:r=a.sent();if(!r.ok)return[3,4];return[4,r.blob()];case 3:n=a.sent();i(this.success(e));return[2,n];case 4:if(!r.redirected)return[3,7];return[4,this.fetcher.fetch(r.url,{headers:{Authorization:""}})];case 5:o=a.sent();return[4,o.blob()];case 6:n=a.sent();if(o.ok){i(this.success(e));return[2,n]}console.error("Original Response ",r);console.error("New Response ",o);throw{status:500,response:"Retried fetch after redirect. The retry did not succeed.",url:t};case 7:console.error("Response: ",r);throw{status:500,url:t,response:"Response was not okay and was not retried (wasn't the result of a redirect)."};case 8:s=a.sent();i(this.failure(e,s));throw s;case 9:return[2]}}))}))}};e.prototype.fetchJSON=function(e,t){var r=this;var n;return function(a){return new Promise((function(i,o){a(r.request(e,t));r.fetcher.fetch(t).then((function(s){if(s.ok){s.json().then((function(t){a(r.success(e));a(r.load(e,t));i(t)})).catch((function(i){n={status:s.status,response:"Non-json response",url:t};a(r.failure(e,n));o(n)}))}else{s.json().then((function(i){n={status:s.status,response:i.detail,url:t};a(r.failure(e,n));o(n)})).catch((function(i){n={status:s.status,response:"Request failed",url:t};a(r.failure(e,n));o(n)}))}})).catch((function(n){n={status:null,response:n.message,url:t};a(r.failure(e,n));o(n)}))}))}};e.prototype.fetchOPDS=function(e,t){var r=this;return function(n){n(r.request(e,t));return new Promise((function(a,i){r.fetcher.fetchOPDSData(t).then((function(i){n(r.success(e));n(r.load(e,i,t));a(i)})).catch((function(t){n(r.failure(e,t));i(t)}))}))}};e.prototype.request=function(t,r){return{type:t+"_"+e.REQUEST,url:r}};e.prototype.success=function(t){return{type:t+"_"+e.SUCCESS}};e.prototype.failure=function(t,r){return{type:t+"_"+e.FAILURE,error:r}};e.prototype.load=function(t,r,n){return{type:t+"_"+e.LOAD,data:r,url:n}};e.prototype.clear=function(t){return{type:t+"_"+e.CLEAR}};e.prototype.fetchCollection=function(t){return this.fetchOPDS(e.COLLECTION,t)};e.prototype.fetchPage=function(t){return this.fetchOPDS(e.PAGE,t)};e.prototype.fetchBook=function(t){return this.fetchOPDS(e.BOOK,t)};e.prototype.fetchSearchDescription=function(t){var r=this;return function(n){return new Promise((function(a,i){r.fetcher.fetchSearchDescriptionData(t).then((function(i){n(r.load(e.SEARCH_DESCRIPTION,i,t));a(i)})).catch((function(e){return i(e)}))}))}};e.prototype.clearCollection=function(){return this.clear(e.COLLECTION)};e.prototype.closeError=function(){return{type:e.CLOSE_ERROR}};e.prototype.loadBook=function(t,r){return this.load(e.BOOK,t,r)};e.prototype.clearBook=function(){return this.clear(e.BOOK)};e.prototype.updateBook=function(t){return this.fetchOPDS(e.UPDATE_BOOK,t)};e.prototype.fulfillBook=function(t){return this.fetchBlob(e.FULFILL_BOOK,t)};e.prototype.indirectFulfillBook=function(t,r){var n=this;return function(a){return new Promise((function(i,o){a(n.request(e.FULFILL_BOOK,t));n.fetcher.fetchOPDSData(t).then((function(o){var s;var u=(s=o.fulfillmentLinks)===null||s===void 0?void 0:s.find((function(e){return e.type===r}));if(u){a(n.success(e.FULFILL_BOOK));i(u.url)}else{throw{status:200,response:"Couldn't fulfill book",url:t}}})).catch((function(t){a(n.failure(e.FULFILL_BOOK,t));o(t)}))}))}};e.prototype.fetchLoans=function(t){return this.fetchOPDS(e.LOANS,t)};e.prototype.showAuthForm=function(t,r,n,a,o,s){var u=i.flattenSamlProviders(n);return{type:e.SHOW_AUTH_FORM,callback:t,cancel:r,providers:u,title:a,error:o,attemptedProvider:s}};e.prototype.closeErrorAndHideAuthForm=function(){var e=this;return function(t){t(e.closeError());t(e.hideAuthForm())}};e.prototype.hideAuthForm=function(){return{type:e.HIDE_AUTH_FORM}};e.prototype.saveAuthCredentials=function(t){this.fetcher.setAuthCredentials(t);return{type:e.SAVE_AUTH_CREDENTIALS,credentials:t}};e.prototype.clearAuthCredentials=function(){this.fetcher.clearAuthCredentials();return{type:e.CLEAR_AUTH_CREDENTIALS}};e.prototype.setPreference=function(t,r){return{type:e.SET_PREFERENCE,key:t,value:r}};e.REQUEST="REQUEST";e.SUCCESS="SUCCESS";e.FAILURE="FAILURE";e.LOAD="LOAD";e.CLEAR="CLEAR";e.COLLECTION="COLLECTION";e.PAGE="PAGE";e.BOOK="BOOK";e.SEARCH_DESCRIPTION="SEARCH_DESCRIPTION";e.UPDATE_BOOK="UPDATE_BOOK";e.FULFILL_BOOK="FULFILL_BOOK";e.LOANS="LOANS";e.COLLECTION_REQUEST="COLLECTION_REQUEST";e.COLLECTION_SUCCESS="COLLECTION_SUCCESS";e.COLLECTION_FAILURE="COLLECTION_FAILURE";e.COLLECTION_LOAD="COLLECTION_LOAD";e.COLLECTION_CLEAR="COLLECTION_CLEAR";e.PAGE_REQUEST="PAGE_REQUEST";e.PAGE_SUCCESS="PAGE_SUCCESS";e.PAGE_FAILURE="PAGE_FAILURE";e.PAGE_LOAD="PAGE_LOAD";e.BOOK_REQUEST="BOOK_REQUEST";e.BOOK_SUCCESS="BOOK_SUCCESS";e.BOOK_FAILURE="BOOK_FAILURE";e.BOOK_LOAD="BOOK_LOAD";e.BOOK_CLEAR="BOOK_CLEAR";e.SEARCH_DESCRIPTION_LOAD="SEARCH_DESCRIPTION_LOAD";e.CLOSE_ERROR="CLOSE_ERROR";e.UPDATE_BOOK_REQUEST="UPDATE_BOOK_REQUEST";e.UPDATE_BOOK_SUCCESS="UPDATE_BOOK_SUCCESS";e.UPDATE_BOOK_FAILURE="UPDATE_BOOK_FAILURE";e.UPDATE_BOOK_LOAD="UPDATE_BOOK_LOAD";e.FULFILL_BOOK_REQUEST="FULFILL_BOOK_REQUEST";e.FULFILL_BOOK_SUCCESS="FULFILL_BOOK_SUCCESS";e.FULFILL_BOOK_FAILURE="FULFILL_BOOK_FAILURE";e.LOANS_REQUEST="LOANS_REQUEST";e.LOANS_SUCCESS="LOANS_SUCCESS";e.LOANS_FAILURE="LOANS_FAILURE";e.LOANS_LOAD="LOANS_LOAD";e.SHOW_AUTH_FORM="SHOW_AUTH_FORM";e.HIDE_AUTH_FORM="HIDE_AUTH_FORM";e.SAVE_AUTH_CREDENTIALS="SAVE_AUTH_CREDENTIALS";e.CLEAR_AUTH_CREDENTIALS="CLEAR_AUTH_CREDENTIALS";e.SET_PREFERENCE="SET_PREFERENCE";return e}();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)}}();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.__rest||function(e,t){var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0)r[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++){if(t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a]))r[n[a]]=e[n[a]]}return r};Object.defineProperty(t,"__esModule",{value:true});var o=r(1);var s=r(0);var u=r(78);var l=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.getChildContext=function(){var e=function(){};var t=Object.assign({},this.context.router,{replace:e,go:e,goBack:e,goForward:e,setRouteLeaveHook:e});return{router:t}};t.prototype.render=function(){var e=this.props,t=e.collectionUrl,r=t===void 0?null:t,n=e.bookUrl,s=n===void 0?null:n,l=e.ref,c=i(e,["collectionUrl","bookUrl","ref"]);var f=this.context.pathFor(r,s);return o.createElement(u.Link,a({to:f},c))};t.contextTypes={router:s.object.isRequired,pathFor:s.func.isRequired};t.childContextTypes={router:s.object.isRequired};return t}(o.Component);t.default=l},function(e,t,r){"use strict";var n={};var a=Math.pow(2,24);function i(){var e;while(e===undefined||n.hasOwnProperty(e)||!isNaN(+e)){e=Math.floor(Math.random()*a).toString(32)}n[e]=true;return e}e.exports=i},function(e,t,r){var n=r(273)("wks");var a=r(189);var i=r(73).Symbol;var o=typeof i=="function";var s=e.exports=function(e){return n[e]||(n[e]=o&&i[e]||(o?i:a)("Symbol."+e))};s.store=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.__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 i=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 o=r(1);var s=r(19);var u=r(194);var l=r(12);var c=r(1323);var f=r(186);var d=r(72);var p=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.extraForm=o.createRef();var n;if(r.availableProtocols().length){n=r.availableProtocols()[0].name}r.state={protocol:r.props.item&&r.props.item.protocol||n,parentId:r.props.item&&r.props.item.parent_id&&String(r.props.item.parent_id)||null,libraries:r.props.item&&r.props.item.libraries||[],expandedLibraries:[],selectedLibrary:null,analyticsOption:null};r.handleProtocolChange=r.handleProtocolChange.bind(r);r.handleParentChange=r.handleParentChange.bind(r);r.selectLibrary=r.selectLibrary.bind(r);r.addLibrary=r.addLibrary.bind(r);r.editLibrary=r.editLibrary.bind(r);r.expandLibrary=r.expandLibrary.bind(r);r.removeLibrary=r.removeLibrary.bind(r);r.handleData=r.handleData.bind(r);r.submit=r.submit.bind(r);r.renderRequiredFields=r.renderRequiredFields.bind(r);r.renderOptionalFields=r.renderOptionalFields.bind(r);r.renderLibrariesForm=r.renderLibrariesForm.bind(r);return r}t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this.state.protocol;var r=this.state.parentId;var n=this.state.libraries;if(e.item&&e.item.protocol){if(!this.props.item||!this.props.item.protocol||this.props.item.protocol!==e.item.protocol){t=e.item.protocol}}if(!t&&this.availableProtocols(e).length>0){t=this.availableProtocols(e)[0].name}if(e.item&&e.item.parent_id){if(!this.props.item||!this.props.item.parent_id||this.props.item.parent_id!==e.item.parent_id){r=e.item.parent_id}}if(e.item&&e.item.libraries){if(!this.props.item||!this.props.item.libraries||this.props.item.libraries!==e.item.libraries){n=e.item.libraries}}var a=Object.assign({},this.state,{protocol:t,parentId:r,libraries:n});this.setState(a);if(e.responseBody&&!e.fetchError){d.clearForm(this.refs)}};t.prototype.shouldDisable=function(){var e;return this.props.disabled||((e=this.props.item)===null||e===void 0?void 0:e.level)&&this.props.item.level>this.props.adminLevel};t.prototype.render=function(){var e=this.findProtocol();var t=this.props.listDataKey;var r=this.protocolSettings(e),n=r.requiredFields,a=r.nonRequiredFields,i=r.extraFields;var s=!this.sitewide(e)||this.protocolLibrarySettings(e).length>0;var u=a.length>0;var c=this.props.data&&this.protocolInstructions(e);var f=this.shouldDisable();var d=c&&o.createElement("div",{className:"form-group",key:"instructions"},o.createElement("label",{className:"control-label"},"Instructions"),o.createElement(l.Panel,{id:"form-"+t+"-instructions",headerText:this.protocolDescription(e),style:"instruction",onEnter:this.submit,content:this.protocolInstructions(e)}));var p=o.createElement(l.Panel,{key:"required",id:"form-"+t+"-required",headerText:"Required Fields",openByDefault:true,collapsible:u||s,content:this.renderRequiredFields(n,e,f)});var h=u&&o.createElement(l.Panel,{id:"form-"+t+"-optional",key:"optional",headerText:"Optional Fields",content:this.renderOptionalFields(a,f)});var v=this.props.extraFormSection&&i.length>0&&o.createElement(this.props.extraFormSection,{key:this.props.extraFormKey,setting:i[0],ref:this.extraForm,currentValue:this.props.item&&this.props.item.settings&&this.props.item.settings[this.props.extraFormKey],disabled:f});var m=s&&o.createElement(l.Panel,{key:"libraries",id:"form-"+t+"-libraries",headerText:"Libraries",content:this.renderLibrariesForm(e,f)});return o.createElement(l.Form,{onSubmit:this.submit,className:"no-border edit-form",hiddenName:this.props.item&&this.props.item.id&&"id",hiddenValue:this.props.item&&this.props.item.id&&String(this.props.item.id),disableButton:f,content:[d,p,h,v,m]})};t.prototype.renderRequiredFields=function(e,t,r){var n=this;return o.createElement("fieldset",null,o.createElement("legend",{className:"visuallyHidden"},o.createElement("h4",null,"Required Fields")),o.createElement(s.default,{elementType:"input",type:"text",disabled:r,readOnly:r,required:true,name:"name",ref:"name",label:"Name",value:this.props.item&&this.props.item.name,error:this.props.error}),o.createElement(s.default,{elementType:"select",disabled:r,readOnly:r||!!(this.props.item&&this.props.item.protocol),name:"protocol",label:"Protocol",value:this.state.protocol,ref:"protocol",onChange:this.handleProtocolChange,description:!this.protocolInstructions(t)&&this.protocolDescription(t)},this.availableProtocols().map((function(e){return o.createElement("option",{key:e.name,value:e.name,"aria-selected":n.state.protocol===e.name},e.label||e.name)}))),this.props.data&&this.allowsParent(t)&&this.availableParents().length>0&&o.createElement(s.default,{elementType:"select",readOnly:r,disabled:r,name:"parent_id",label:"Parent",value:this.state.parentId,ref:"parent",onChange:this.handleParentChange},o.createElement("option",{value:"","aria-selected":this.state.parentId===""},"None"),this.availableParents().map((function(e){return o.createElement("option",{key:e.id,value:e.id,"aria-selected":n.state.parentId===e.id},e.name||e.id)}))),e.map((function(e){return o.createElement(u.default,{key:e.key,ref:e.key,setting:e,readOnly:r,disabled:r,value:n.props.item&&n.props.item.settings&&n.props.item.settings[e.key],error:n.props.error})})))};t.prototype.renderOptionalFields=function(e,t){var r=this;return o.createElement("fieldset",null,o.createElement("legend",{className:"visuallyHidden"},"Additional Fields"),e.map((function(e){return o.createElement(u.default,{key:e.key,ref:e.key,setting:e,readOnly:t,disabled:t,value:r.props.item&&r.props.item.settings&&r.props.item.settings[e.key],error:r.props.error})})))};t.prototype.renderLibrariesForm=function(e,t){var r=this;return o.createElement("fieldset",{className:"update-libraries"},o.createElement("legend",{className:"visuallyHidden"},"Libraries"),o.createElement("div",{className:"form-group"},this.state.libraries.map((function(n){return o.createElement("div",{key:n.short_name},o.createElement(f.default,{disabled:t,onRemove:function(){return r.removeLibrary(n)},ref:n.short_name},r.props.data&&r.props.data.protocols&&r.protocolLibrarySettings(e)&&r.protocolLibrarySettings(e).length>0&&o.createElement(c.default,{disabled:t,onEdit:function(){return r.expandLibrary(n)}},r.getLibrary(n.short_name)&&r.getLibrary(n.short_name).name),!(r.props.data&&r.props.data.protocols&&r.protocolLibrarySettings(e)&&r.protocolLibrarySettings(e).length>0)&&r.getLibrary(n.short_name)&&r.getLibrary(n.short_name).name),r.isExpanded(n)&&o.createElement("div",{className:"edit-library-settings"},r.props.data&&r.props.data.protocols&&r.protocolLibrarySettings(e)&&r.protocolLibrarySettings(e).map((function(e){return o.createElement(u.default,{key:e.key,setting:e,disabled:t,value:n[e.key],ref:n.short_name+"_"+e.key})})),o.createElement(l.Button,{type:"button",className:"edit-library",disabled:t,callback:function(){return r.editLibrary(n,e)},content:"Save"})))}))),this.availableLibraries().length>0&&o.createElement("div",{className:"form-group"},o.createElement(s.default,{elementType:"select",disabled:t,readOnly:t,name:"add-library",label:"Add Library",ref:"addLibrary",value:this.state.selectedLibrary,onChange:this.selectLibrary},o.createElement("option",{value:"none","aria-selected":this.state.selectedLibrary==="none"},"Select a library"),this.availableLibraries().map((function(e){return o.createElement("option",{key:e.short_name,value:e.short_name,"aria-selected":r.state.selectedLibrary==="library.short_name"},e.name)}))),this.state.selectedLibrary&&o.createElement("div",null,this.props.data&&this.props.data.protocols&&this.protocolLibrarySettings(e)&&this.protocolLibrarySettings(e).map((function(e){return o.createElement(u.default,{key:e.key,setting:e,disabled:t,readOnly:t,ref:e.key})})),o.createElement(l.Button,{type:"button",disabled:t,callback:function(){return r.addLibrary(e)},content:"Add Library",className:"left-align"}))))};t.prototype.availableProtocols=function(e){e=e||this.props;var t=e.data&&e.data.protocols||[];if(e.item){for(var r=0,n=t;r<n.length;r++){var a=n[r];if(a.name===e.item.protocol){return[a]}}}return t};t.prototype.handleProtocolChange=function(){var e=this.refs["protocol"].getValue();var t=Object.assign({},this.state,{protocol:e});this.setState(t)};t.prototype.allowsParent=function(e){return e&&!!e.child_settings};t.prototype.availableParents=function(){var e=this.props.data&&this.props.data[this.props.listDataKey]||[];var t=[];for(var r=0,n=e;r<n.length;r++){var a=n[r];if(a.protocol===this.state.protocol&&a.id!==(this.props.item&&this.props.item.id)){t.push(a)}}return t};t.prototype.handleParentChange=function(){var e=this.refs["parent"].getValue();if(e===""){e=null}var t=Object.assign({},this.state,{parentId:e});this.setState(t)};t.prototype.protocols=function(){return this.state.protocol&&this.props.data&&this.props.data.protocols};t.prototype.findProtocol=function(){var e=this;return this.protocols()&&this.protocols().find((function(t){return t.name===e.state.protocol}))};t.prototype.protocolSettings=function(e){var t=[];var r=[];var n=[];var a=[this.props.extraFormKey];var i;if(e){i=this.state.parentId?e.child_settings:e.settings;i&&i.forEach((function(e){a.includes(e.key)?n.push(e):e.required?t.push(e):r.push(e)}))}return{requiredFields:t,nonRequiredFields:r,extraFields:n}};t.prototype.protocolDescription=function(e){return e&&e.description||""};t.prototype.protocolInstructions=function(e){return e&&e.instructions||""};t.prototype.protocolLibrarySettings=function(e){return e&&e.library_settings||[]};t.prototype.sitewide=function(e){return e&&e.sitewide};t.prototype.getLibrary=function(e){var t=this.props.data&&this.props.data.allLibraries||[];for(var r=0,n=t;r<n.length;r++){var a=n[r];if(a.short_name===e){return a}}return null};t.prototype.availableLibraries=function(){var e=this;var t=this.props.data&&this.props.data.allLibraries||[];return t.filter((function(t){for(var r=0,n=e.state.libraries;r<n.length;r++){var a=n[r];if(a.short_name===t.short_name){return false}}return true}))};t.prototype.selectLibrary=function(){var e=this.refs["addLibrary"].getValue();if(e==="none"){e=null}var t=Object.assign({},this.state,{selectedLibrary:e});this.setState(t)};t.prototype.isExpanded=function(e){return this.state.expandedLibraries.indexOf(e.short_name)!==-1};t.prototype.removeLibrary=function(e){var t=this.state.libraries.filter((function(t){return t.short_name!==e.short_name}));var r=this.state.expandedLibraries.filter((function(t){return t!==e.short_name}));var n=Object.assign({},this.state,{libraries:t,expandedLibraries:r});this.setState(n)};t.prototype.expandLibrary=function(e){if(!this.isExpanded(e)){var t=this.state.expandedLibraries;t.push(e.short_name);var r=Object.assign({},this.state,{expandedLibraries:t});this.setState(r)}else{var t=this.state.expandedLibraries.filter((function(t){return t!==e.short_name}));var r=Object.assign({},this.state,{expandedLibraries:t});this.setState(r)}};t.prototype.editLibrary=function(e,t){var r=this.state.libraries.filter((function(t){return t.short_name!==e.short_name}));var n=this.state.expandedLibraries.filter((function(t){return t!==e.short_name}));var a={short_name:e.short_name};for(var i=0,o=this.protocolLibrarySettings(t);i<o.length;i++){var s=o[i];var u=this.refs[e.short_name+"_"+s.key].getValue();if(u){a[s.key]=u}}r.push(a);var l=Object.assign({},this.state,{libraries:r,expandedLibraries:n});this.setState(l)};t.prototype.addLibrary=function(e){var t=this.state.selectedLibrary;var r={short_name:t};for(var n=0,a=this.protocolLibrarySettings(e);n<a.length;n++){var i=a[n];var o=this.refs[i.key].getValue();if(o){r[i.key]=o}this.refs[i.key].clear()}var s=this.state.libraries.concat(r);var u=Object.assign({},this.state,{libraries:s,selectedLibrary:null});this.setState(u)};t.prototype.handleData=function(e){var t=this.extraForm.current;t&&e.append(this.props.extraFormKey,t.getValue());e&&e.append("libraries",JSON.stringify(this.state.libraries));return e};t.prototype.submit=function(e){return a(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:if(!this.props.save)return[3,2];t=this.handleData(e);return[4,this.props.save(t)];case 1:r.sent();r.label=2;case 2:return[2]}}))}))};return t}(o.Component);t.default=p},function(e,t,r){var n=r(96);function a(e){return n(e)&&e!=+e}e.exports=a},function(e,t,r){var n=r(213),a=r(659),i=r(109);function o(e){return e&&e.length?n(e,i,a):undefined}e.exports=o},function(e,t){(function(){var t,r,n,a,i,o,s,u=[].slice,l={}.hasOwnProperty;t=function(){var e,t,r,n,a,o;o=arguments[0],a=2<=arguments.length?u.call(arguments,1):[];if(i(Object.assign)){Object.assign.apply(null,arguments)}else{for(e=0,r=a.length;e<r;e++){n=a[e];if(n!=null){for(t in n){if(!l.call(n,t))continue;o[t]=n[t]}}}}return o};i=function(e){return!!e&&Object.prototype.toString.call(e)==="[object Function]"};o=function(e){var t;return!!e&&((t=typeof e)==="function"||t==="object")};n=function(e){if(i(Array.isArray)){return Array.isArray(e)}else{return Object.prototype.toString.call(e)==="[object Array]"}};a=function(e){var t;if(n(e)){return!e.length}else{for(t in e){if(!l.call(e,t))continue;return false}return true}};s=function(e){var t,r;return o(e)&&(r=Object.getPrototypeOf(e))&&(t=r.constructor)&&typeof t==="function"&&t instanceof t&&Function.prototype.toString.call(t)===Function.prototype.toString.call(Object)};r=function(e){if(i(e.valueOf)){return e.valueOf()}else{return e}};e.exports.assign=t;e.exports.isFunction=i;e.exports.isObject=o;e.exports.isArray=n;e.exports.isEmpty=a;e.exports.isPlainObject=s;e.exports.getValue=r}).call(this)},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(){return a.createElement("div",{className:"loading",role:"dialog","aria-labelledby":"loading"},a.createElement("h1",{id:"loading"},"Loading"))};return t}(a.Component);t.default=i},function(e,t,r){"use strict";var n="-";var a={encode:function e(t,r,a){return t+n+r+n+a},decode:function e(t){var r=t.split(n).reverse(),a=r[0],i=r[1],o=r.slice(2);return{blockKey:o.reverse().join(n),decoratorKey:parseInt(i,10),leafKey:parseInt(a,10)}}};e.exports=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function n(e){var t=[];e.options&&e.default&&e.options.map((function(r){if(e.default.indexOf(r.key)>=0||e.default===r.key){t.push(r)}}));if(t.length>0){return t}}t.findDefault=n;function a(e,t){if(t===void 0){t=false}var r,n,a,i;if(e){var o=Object.keys(e);for(var s=0;s<o.length;s++){var u=o[s];if(t){((r=e[u].current)===null||r===void 0?void 0:r.clear)&&e[u].current.clear();if(((n=e[u].current)===null||n===void 0?void 0:n.props)&&e[u].current.props.onRemove){e[u].current.props.onRemove()}}else{((a=e[u])===null||a===void 0?void 0:a.clear)&&e[u].clear();if(((i=e[u])===null||i===void 0?void 0:i.props)&&e[u].props.onRemove){e[u].props.onRemove()}}}}}t.clearForm=a;function i(e,t,r){if(r===void 0){r=true}if(r){e=e.substr(0,1).toUpperCase()+e.substr(1)}if(t){var n=t.length>1?t.pop():" ";t.forEach((function(t){e=e.replace(new RegExp(t,"g"),n)}))}return e}t.formatString=i;function o(e,t){return e.length===t.length&&e.every((function(e){return t.indexOf(e)>=0}))}t.isEqual=o},function(e,t){var r=e.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number")__g=r},function(e,t,r){e.exports=!r(105)((function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}))},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(13);var o=r(0);var s=r(7);var u=r(19);var l=r(78);var c=r(116);var f=r(12);var d=r(99);var p=r(1108);var h=r(136);var v=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.libraryRef=a.createRef();r.state={showAccountDropdown:false};r.changeLibrary=r.changeLibrary.bind(r);r.toggleAccountDropdown=r.toggleAccountDropdown.bind(r);r.renderNavItem=r.renderNavItem.bind(r);document.body.addEventListener("click",(function(e){if(r.state.showAccountDropdown&&e.target.className.indexOf("account-dropdown-toggle")===-1){r.toggleAccountDropdown()}}));return r}t.prototype.displayPermissions=function(e,t){var r=e?"a system admin":t?"an administrator":"a user";return a.createElement("li",{className:"permissions"},"Logged in as ",r)};t.prototype.render=function(){var e=this;var t=this.context.router&&this.context.router.getCurrentLocation()&&this.context.router.getCurrentLocation().pathname||"";var r=this.context.library&&this.context.library();var n=this.context.admin.isLibraryManager(r);var i=this.context.admin.isSystemAdmin();var o=!this.context.library||!r;var s=this.context.admin.isLibraryManagerOfSomeLibrary();var l=[{label:"Catalog",href:"%2Fgroups?max_cache_age=0"},{label:"Complaints",href:"%2Fadmin%2Fcomplaints"},{label:"Hidden Books",href:"%2Fadmin%2Fsuppressed"}];var v=[{label:"Lists",href:"lists/"},{label:"Lanes",href:"lanes/",auth:n},{label:"Dashboard",href:"dashboard/"},{label:"Patrons",href:"patrons/",auth:n}];var m=[{label:"Dashboard",href:"dashboard/",auth:o},{label:"System Configuration",href:"config/"},{label:"Troubleshooting",href:"troubleshooting/",auth:i}];var y={label:"Change password",href:"account/"};return a.createElement(c.Navbar,{fluid:true},a.createElement(c.Navbar.Header,null,a.createElement("img",{src:p,alt:h.default()}),this.props.libraries&&this.props.libraries.length>0&&a.createElement(u.default,{elementType:"select",ref:this.libraryRef,value:r,onChange:this.changeLibrary,"aria-label":"Select a library"},(!this.context.library||!r)&&a.createElement("option",{"aria-selected":false},"Select a library"),this.props.libraries.map((function(e){return a.createElement("option",{key:e.short_name,value:e.short_name,"aria-selected":r===e.short_name},e.name||e.short_name)}))),a.createElement(c.Navbar.Toggle,null)),a.createElement(c.Navbar.Collapse,{className:"menu"},r&&a.createElement(c.Nav,null,l.map((function(n){return e.renderNavItem(n,t,r)})),v.map((function(n){return e.renderLinkItem(n,t,r)}))),a.createElement(c.Nav,{className:"pull-right"},m.map((function(r){return e.renderLinkItem(r,t)})),this.context.admin.email&&a.createElement("li",{className:"dropdown"},a.createElement(f.Button,{className:"account-dropdown-toggle transparent",type:"button","aria-haspopup":"true","aria-expanded":this.state.showAccountDropdown,callback:this.toggleAccountDropdown,content:a.createElement("span",null,this.context.admin.email," ",a.createElement(d.GenericWedgeIcon,null))}),this.state.showAccountDropdown&&a.createElement("ul",{className:"dropdown-menu"},this.displayPermissions(i,n),this.renderLinkItem(y,t),a.createElement("li",null,a.createElement("a",{href:"/admin/sign_out"},"Sign out")))))))};t.prototype.UNSAFE_componentWillMount=function(){var e=this.props,t=e.fetchLibraries,r=e.isFetchingLibraries;if(t&&!r){t()}};t.prototype.changeLibrary=function(){var e=this.libraryRef.current.getValue();if(e){this.context.router.push("/admin/web/collection/"+e+"%2Fgroups?max_cache_age=0");this.forceUpdate()}};t.prototype.toggleAccountDropdown=function(){var e=!this.state.showAccountDropdown;this.setState({showAccountDropdown:e})};t.prototype.renderNavItem=function(e,t,r){if(r===void 0){r=""}var n="/admin/web/collection/";var i=e.label,o=e.href;var s=t.indexOf(o)!==-1;return a.createElement(c.NavItem,{key:o,className:"header-link",href:""+n+r+o,active:s},i)};t.prototype.renderLinkItem=function(e,t,r){if(r===void 0){r=""}var n="/admin/web/";var i=e.label,o=e.href,s=e.auth;var u=t.indexOf(o)!==-1;if(r){u=!!(u&&r)}var c=a.createElement("li",{className:"header-link",key:o},a.createElement(l.Link,{to:""+n+o+r,className:u?"active-link":""},i));if(s!==undefined){if(s){return c}else{return}}return c};t.contextTypes={library:o.func,router:o.object.isRequired,admin:o.object.isRequired};return t}(a.Component);t.Header=v;function m(e,t){var r,n,a;return{isFetchingLibraries:(r=e.editor.libraries)===null||r===void 0?void 0:r.isFetching,libraries:(a=(n=e.editor.libraries)===null||n===void 0?void 0:n.data)===null||a===void 0?void 0:a.libraries}}function y(e){var t=new s.default;return{fetchLibraries:function(){return e(t.fetchLibraries())}}}var g=i.connect(m,y)(v);var b=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return a.createElement(g,{store:this.context.editorStore})};t.contextTypes={editorStore:o.object.isRequired};return t}(a.Component);t.default=b},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(389);var o=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e=this.context,t=e[0],r=e[1];return a.createElement("footer",{className:this.props.className},a.createElement("p",null,a.createElement("a",{href:r,target:"_blank",rel:"noreferrer"},this.decode(t))))};t.prototype.decode=function(e){var t=document.createElement("textarea");t.innerHTML=e;return t.value};t.contextType=i.TOSContext;return t}(a.Component);t.default=o},function(e,t){var r=e.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number")__g=r},function(e,t,r){"use strict";r.r(t);r.d(t,"Router",(function(){return Le}));r.d(t,"Link",(function(){return He}));r.d(t,"IndexLink",(function(){return qe}));r.d(t,"withRouter",(function(){return Qe}));r.d(t,"IndexRedirect",(function(){return $e}));r.d(t,"IndexRoute",(function(){return tt}));r.d(t,"Redirect",(function(){return Ze}));r.d(t,"Route",(function(){return nt}));r.d(t,"createRoutes",(function(){return G}));r.d(t,"RouterContext",(function(){return we}));r.d(t,"locationShape",(function(){return je}));r.d(t,"routerShape",(function(){return Ce}));r.d(t,"match",(function(){return vt}));r.d(t,"useRouterHistory",(function(){return mt}));r.d(t,"formatPattern",(function(){return E}));r.d(t,"applyRouterMiddleware",(function(){return gt}));r.d(t,"browserHistory",(function(){return Et}));r.d(t,"hashHistory",(function(){return Mt}));r.d(t,"createMemoryHistory",(function(){return ft}));var n=r(8);var a=r.n(n);var i=r(1);var o=r.n(i);var s=r(28);var u=r.n(s);var l=r(0);var c=r.n(l);var f=r(23);var d=r.n(f);var p={};function h(e,t){if(t.indexOf("deprecated")!==-1){if(p[t]){return}p[t]=true}t="[react-router] "+t;for(var r=arguments.length,n=Array(r>2?r-2:0),a=2;a<r;a++){n[a-2]=arguments[a]}d.a.apply(undefined,[e,t].concat(n))}function v(){p={}}function m(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function y(e){var t="";var r=[];var n=[];var a=void 0,i=0,o=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)|\\\(|\\\)/g;while(a=o.exec(e)){if(a.index!==i){n.push(e.slice(i,a.index));t+=m(e.slice(i,a.index))}if(a[1]){t+="([^/]+)";r.push(a[1])}else if(a[0]==="**"){t+="(.*)";r.push("splat")}else if(a[0]==="*"){t+="(.*?)";r.push("splat")}else if(a[0]==="("){t+="(?:"}else if(a[0]===")"){t+=")?"}else if(a[0]==="\\("){t+="\\("}else if(a[0]==="\\)"){t+="\\)"}n.push(a[0]);i=o.lastIndex}if(i!==e.length){n.push(e.slice(i,e.length));t+=m(e.slice(i,e.length))}return{pattern:e,regexpSource:t,paramNames:r,tokens:n}}var g=Object.create(null);function b(e){if(!g[e])g[e]=y(e);return g[e]}function A(e,t){if(e.charAt(0)!=="/"){e="/"+e}var r=b(e),n=r.regexpSource,a=r.paramNames,i=r.tokens;if(e.charAt(e.length-1)!=="/"){n+="/?"}if(i[i.length-1]==="*"){n+="$"}var o=t.match(new RegExp("^"+n,"i"));if(o==null){return null}var s=o[0];var u=t.substr(s.length);if(u){if(s.charAt(s.length-1)!=="/"){return null}u="/"+u}return{remainingPathname:u,paramNames:a,paramValues:o.slice(1).map((function(e){return e&&decodeURIComponent(e)}))}}function _(e){return b(e).paramNames}function w(e,t){var r=A(e,t);if(!r){return null}var n=r.paramNames,a=r.paramValues;var i={};n.forEach((function(e,t){i[e]=a[t]}));return i}function E(e,t){t=t||{};var r=b(e),n=r.tokens;var i=0,o="",s=0,u=[];var l=void 0,c=void 0,f=void 0;for(var d=0,p=n.length;d<p;++d){l=n[d];if(l==="*"||l==="**"){f=Array.isArray(t.splat)?t.splat[s++]:t.splat;!(f!=null||i>0)?false?undefined:a()(false):void 0;if(f!=null)o+=encodeURI(f)}else if(l==="("){u[i]="";i+=1}else if(l===")"){var h=u.pop();i-=1;if(i)u[i-1]+=h;else o+=h}else if(l==="\\("){o+="("}else if(l==="\\)"){o+=")"}else if(l.charAt(0)===":"){c=l.substring(1);f=t[c];!(f!=null||i>0)?false?undefined:a()(false):void 0;if(f==null){if(i){u[i-1]="";var v=n.indexOf(l);var m=n.slice(v,n.length);var y=-1;for(var g=0;g<m.length;g++){if(m[g]==")"){y=g;break}}!(y>0)?false?undefined:a()(false):void 0;d=v+y-1}}else if(i)u[i-1]+=encodeURIComponent(f);else o+=encodeURIComponent(f)}else{if(i)u[i-1]+=l;else o+=l}}!(i<=0)?false?undefined:a()(false):void 0;return o.replace(/\/+/g,"/")}function x(e,t,r){if(!e.path)return false;var n=_(e.path);return n.some((function(e){return t.params[e]!==r.params[e]}))}function k(e,t){var r=e&&e.routes;var n=t.routes;var a=void 0,i=void 0,o=void 0;if(r){var s=false;a=r.filter((function(r){if(s){return true}else{var a=n.indexOf(r)===-1||x(r,e,t);if(a)s=true;return a}}));a.reverse();o=[];i=[];n.forEach((function(e){var t=r.indexOf(e)===-1;var n=a.indexOf(e)!==-1;if(t||n)o.push(e);else i.push(e)}))}else{a=[];i=[];o=n}return{leaveRoutes:a,changeRoutes:i,enterRoutes:o}}var M=k;function S(e,t,r){var n=0,a=false;var i=false,o=false,s=void 0;function u(){a=true;if(i){s=[].concat(Array.prototype.slice.call(arguments));return}r.apply(this,arguments)}function l(){if(a){return}o=true;if(i){return}i=true;while(!a&&n<e&&o){o=false;t.call(this,n++,l,u)}i=false;if(a){r.apply(this,s);return}if(n>=e&&o){a=true;r()}}l()}function O(e,t,r){var n=e.length;var a=[];if(n===0)return r(null,a);var i=false,o=0;function s(e,t,s){if(i)return;if(t){i=true;r(t)}else{a[e]=s;i=++o===n;if(i)r(null,a)}}e.forEach((function(e,r){t(e,r,(function(e,t){s(r,e,t)}))}))}function D(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var T=function e(){var t=this;D(this,e);this.hooks=[];this.add=function(e){return t.hooks.push(e)};this.remove=function(e){return t.hooks=t.hooks.filter((function(t){return t!==e}))};this.has=function(e){return t.hooks.indexOf(e)!==-1};this.clear=function(){return t.hooks=[]}};function L(){var e=new T;var t=new T;function r(e,t,r,n){var a=e.length<r;var i=function r(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++){i[o]=arguments[o]}e.apply(t,i);if(a){var s=i[i.length-1];s()}};n.add(i);return i}function n(t){return t.reduce((function(t,n){if(n.onEnter)t.push(r(n.onEnter,n,3,e));return t}),[])}function a(e){return e.reduce((function(e,n){if(n.onChange)e.push(r(n.onChange,n,4,t));return e}),[])}function i(e,t,r){if(!e){r();return}var n=void 0;function a(e){n=e}S(e,(function(e,r,i){t(e,a,(function(e){if(e||n){i(e,n)}else{r()}}))}),r)}function o(t,r,a){e.clear();var o=n(t);return i(o.length,(function(t,n,a){var i=function r(){if(e.has(o[t])){a.apply(undefined,arguments);e.remove(o[t])}};o[t](r,n,i)}),a)}function s(e,r,n,o){t.clear();var s=a(e);return i(s.length,(function(e,a,i){var o=function r(){if(t.has(s[e])){i.apply(undefined,arguments);t.remove(s[e])}};s[e](r,n,a,o)}),o)}function u(e,t){for(var r=0,n=e.length;r<n;++r){if(e[r].onLeave)e[r].onLeave.call(e[r],t)}}return{runEnterHooks:o,runChangeHooks:s,runLeaveHooks:u}}var C=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function j(e,t){if(e==t)return true;if(e==null||t==null)return false;if(Array.isArray(e)){return Array.isArray(t)&&e.length===t.length&&e.every((function(e,r){return j(e,t[r])}))}if((typeof e==="undefined"?"undefined":C(e))==="object"){for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r)){continue}if(e[r]===undefined){if(t[r]!==undefined){return false}}else if(!Object.prototype.hasOwnProperty.call(t,r)){return false}else if(!j(e[r],t[r])){return false}}return true}return String(e)===String(t)}function N(e,t){if(t.charAt(0)!=="/"){t="/"+t}if(e.charAt(e.length-1)!=="/"){e+="/"}if(t.charAt(t.length-1)!=="/"){t+="/"}return t===e}function I(e,t,r){var n=e,a=[],i=[];for(var o=0,s=t.length;o<s;++o){var u=t[o];var l=u.path||"";if(l.charAt(0)==="/"){n=e;a=[];i=[]}if(n!==null&&l){var c=A(l,n);if(c){n=c.remainingPathname;a=[].concat(a,c.paramNames);i=[].concat(i,c.paramValues)}else{n=null}if(n===""){return a.every((function(e,t){return String(i[t])===String(r[e])}))}}}return false}function P(e,t){if(t==null)return e==null;if(e==null)return true;return j(e,t)}function R(e,t,r,n,a){var i=e.pathname,o=e.query;if(r==null)return false;if(i.charAt(0)!=="/"){i="/"+i}if(!N(i,r.pathname)){if(t||!I(i,n,a)){return false}}return P(o,r.query)}function F(e){return e&&typeof e.then==="function"}function Y(e,t,r){if(t.component||t.components){r(null,t.component||t.components);return}var n=t.getComponent||t.getComponents;if(n){var a=n.call(t,e,r);if(F(a))a.then((function(e){return r(null,e)}),r)}else{r()}}function B(e,t){O(e.routes,(function(t,r,n){Y(e,t,n)}),t)}var H=B;var z=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==null||o.a.isValidElement(e)}function q(e){return U(e)||Array.isArray(e)&&e.every(U)}function V(e,t){return z({},e,t)}function W(e){var t=e.type;var r=V(t.defaultProps,e.props);if(r.children){var n=K(r.children,r);if(n.length)r.childRoutes=n;delete r.children}return r}function K(e,t){var r=[];o.a.Children.forEach(e,(function(e){if(o.a.isValidElement(e)){if(e.type.createRouteFromReactElement){var n=e.type.createRouteFromReactElement(e,t);if(n)r.push(n)}else{r.push(W(e))}}}));return r}function G(e){if(q(e)){e=K(e)}else if(e&&!Array.isArray(e)){e=[e]}return e}var Q=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 J(e,t,r,n,a){if(e.childRoutes){return[null,e.childRoutes]}if(!e.getChildRoutes){return[]}var i=true,o=void 0;var s={location:t,params:$(r,n)};var u=e.getChildRoutes(s,(function(e,t){t=!e&&G(t);if(i){o=[e,t];return}a(e,t)}));if(F(u))u.then((function(e){return a(null,G(e))}),a);i=false;return o}function Z(e,t,r,n,a){if(e.indexRoute){a(null,e.indexRoute)}else if(e.getIndexRoute){var i={location:t,params:$(r,n)};var o=e.getIndexRoute(i,(function(e,t){a(e,!e&&G(t)[0])}));if(F(o))o.then((function(e){return a(null,G(e)[0])}),a)}else if(e.childRoutes||e.getChildRoutes){var s=function e(i,o){if(i){a(i);return}var s=o.filter((function(e){return!e.path}));S(s.length,(function(e,a,i){Z(s[e],t,r,n,(function(t,r){if(t||r){var n=[s[e]].concat(Array.isArray(r)?r:[r]);i(t,n)}else{a()}}))}),(function(e,t){a(null,t)}))};var u=J(e,t,r,n,s);if(u){s.apply(undefined,u)}}else{a()}}function X(e,t,r){return t.reduce((function(e,t,n){var a=r&&r[n];if(Array.isArray(e[t])){e[t].push(a)}else if(t in e){e[t]=[e[t],a]}else{e[t]=a}return e}),e)}function $(e,t){return X({},e,t)}function ee(e,t,r,n,a,i){var o=e.path||"";if(o.charAt(0)==="/"){r=t.pathname;n=[];a=[]}if(r!==null&&o){try{var s=A(o,r);if(s){r=s.remainingPathname;n=[].concat(n,s.paramNames);a=[].concat(a,s.paramValues)}else{r=null}}catch(e){i(e)}if(r===""){var u={routes:[e],params:$(n,a)};Z(e,t,n,a,(function(e,t){if(e){i(e)}else{if(Array.isArray(t)){var r;false?undefined:void 0;(r=u.routes).push.apply(r,t)}else if(t){false?undefined:void 0;u.routes.push(t)}i(null,u)}}));return}}if(r!=null||e.childRoutes){var l=function o(s,u){if(s){i(s)}else if(u){te(u,t,(function(t,r){if(t){i(t)}else if(r){r.routes.unshift(e);i(null,r)}else{i()}}),r,n,a)}else{i()}};var c=J(e,t,n,a,l);if(c){l.apply(undefined,c)}}else{i()}}function te(e,t,r,n){var a=arguments.length>4&&arguments[4]!==undefined?arguments[4]:[];var i=arguments.length>5&&arguments[5]!==undefined?arguments[5]:[];if(n===undefined){if(t.pathname.charAt(0)!=="/"){t=Q({},t,{pathname:"/"+t.pathname})}n=t.pathname}S(e.length,(function(r,o,s){ee(e[r],t,n,a,i,(function(e,t){if(e||t){s(e,t)}else{o()}}))}),r)}var re=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 ne(e){for(var t in e){if(Object.prototype.hasOwnProperty.call(e,t))return true}return false}function ae(e,t){var r={};var n=L(),a=n.runEnterHooks,i=n.runChangeHooks,o=n.runLeaveHooks;function s(t,n){t=e.createLocation(t);return R(t,n,r.location,r.routes,r.params)}var u=void 0;function l(e,r){if(u&&u.location===e){c(u,r)}else{te(t,e,(function(t,n){if(t){r(t)}else if(n){c(re({},n,{location:e}),r)}else{r()}}))}}function c(e,t){var n=M(r,e),s=n.leaveRoutes,u=n.changeRoutes,l=n.enterRoutes;o(s,r);s.filter((function(e){return l.indexOf(e)===-1})).forEach(b);i(u,r,e,(function(t,r){if(t||r)return f(t,r);a(l,e,c)}));function c(n,a){if(n||a)return f(n,a);H(e,(function(n,a){if(n){t(n)}else{t(null,null,r=re({},e,{components:a}))}}))}function f(e,r){if(e)t(e);else t(null,r)}}var f=1;function d(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;return e.__id__||t&&(e.__id__=f++)}var p=Object.create(null);function h(e){return e.map((function(e){return p[d(e)]})).filter((function(e){return e}))}function v(e,n){te(t,e,(function(t,a){if(a==null){n();return}u=re({},a,{location:e});var i=h(M(r,u).leaveRoutes);var o=void 0;for(var s=0,l=i.length;o==null&&s<l;++s){o=i[s](e)}n(o)}))}function m(){if(r.routes){var e=h(r.routes);var t=void 0;for(var n=0,a=e.length;typeof t!=="string"&&n<a;++n){t=e[n]()}return t}}var y=void 0,g=void 0;function b(e){var t=d(e);if(!t){return}delete p[t];if(!ne(p)){if(y){y();y=null}if(g){g();g=null}}}function A(t,r){var n=!ne(p);var a=d(t,true);p[a]=r;if(n){y=e.listenBefore(v);if(e.listenBeforeUnload)g=e.listenBeforeUnload(m)}return function(){b(t)}}function _(t){function n(n){if(r.location===n){t(null,r)}else{l(n,(function(r,n,a){if(r){t(r)}else if(n){e.replace(n)}else if(a){t(null,a)}else{false?undefined:void 0}}))}}var a=e.listen(n);if(r.location){t(null,r)}else{n(e.getCurrentLocation())}return a}return{isActive:s,match:l,listenBeforeLeavingRoute:A,listen:_}}function ie(e,t,r){if(e[t])return new Error("<"+r+'> should not have a "'+t+'" prop')}var oe=Object(l["shape"])({listen:l["func"].isRequired,push:l["func"].isRequired,replace:l["func"].isRequired,go:l["func"].isRequired,goBack:l["func"].isRequired,goForward:l["func"].isRequired});var se=l["elementType"];var ue=Object(l["oneOfType"])([se,l["object"]]);var le=Object(l["oneOfType"])([l["object"],l["element"]]);var ce=Object(l["oneOfType"])([le,Object(l["arrayOf"])(le)]);var fe=r(93);function de(e,t){var r={};if(!e.path)return r;_(e.path).forEach((function(e){if(Object.prototype.hasOwnProperty.call(t,e)){r[e]=t[e]}}));return r}var pe=de;var he=c.a.shape({subscribe:c.a.func.isRequired,eventIndex:c.a.number.isRequired});function ve(e){return"@@contextSubscriber/"+e}var me=typeof o.a.forwardRef!=="undefined";function ye(e){var t,r;var n=ve(e);var a=n+"/listeners";var i=n+"/eventIndex";var o=n+"/subscribe";var s=(r={childContextTypes:(t={},t[n]=he.isRequired,t),getChildContext:function e(){var t;return t={},t[n]={eventIndex:this[i],subscribe:this[o]},t},componentWillMount:function e(){this[a]=[];this[i]=0},componentWillReceiveProps:function e(){this[i]++},componentDidUpdate:function e(){var t=this;this[a].forEach((function(e){return e(t[i])}))}},r[o]=function(e){var t=this;this[a].push(e);return function(){t[a]=t[a].filter((function(t){return t!==e}))}},r);if(me){s.UNSAFE_componentWillMount=s.componentWillMount;s.UNSAFE_componentWillReceiveProps=s.componentWillReceiveProps;delete s.componentWillMount;delete s.componentWillReceiveProps}return s}function ge(e){var t,r;var n=ve(e);var a=n+"/lastRenderedEventIndex";var i=n+"/handleContextUpdate";var o=n+"/unsubscribe";var s=(r={contextTypes:(t={},t[n]=he,t),getInitialState:function e(){var t;if(!this.context[n]){return{}}return t={},t[a]=this.context[n].eventIndex,t},componentDidMount:function e(){if(!this.context[n]){return}this[o]=this.context[n].subscribe(this[i])},componentWillReceiveProps:function e(){var t;if(!this.context[n]){return}this.setState((t={},t[a]=this.context[n].eventIndex,t))},componentWillUnmount:function e(){if(!this[o]){return}this[o]();this[o]=null}},r[i]=function(e){if(e!==this.state[a]){var t;this.setState((t={},t[a]=e,t))}},r);if(me){s.UNSAFE_componentWillReceiveProps=s.componentWillReceiveProps;delete s.componentWillReceiveProps}return s}var be=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 Ae=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var _e=u()({displayName:"RouterContext",mixins:[ye("router")],propTypes:{router:l["object"].isRequired,location:l["object"].isRequired,routes:l["array"].isRequired,params:l["object"].isRequired,components:l["array"].isRequired,createElement:l["func"].isRequired},getDefaultProps:function e(){return{createElement:o.a.createElement}},childContextTypes:{router:l["object"].isRequired},getChildContext:function e(){return{router:this.props.router}},createElement:function e(t,r){return t==null?null:this.props.createElement(t,r)},render:function e(){var t=this;var r=this.props,n=r.location,i=r.routes,s=r.params,u=r.components,l=r.router;var c=null;if(u){c=u.reduceRight((function(e,r,a){if(r==null)return e;var o=i[a];var u=pe(o,s);var c={location:n,params:s,route:o,router:l,routeParams:u,routes:i};if(q(e)){c.children=e}else if(e){for(var f in e){if(Object.prototype.hasOwnProperty.call(e,f))c[f]=e[f]}}if((typeof r==="undefined"?"undefined":Ae(r))==="object"&&!Object(fe["isValidElementType"])(r)){var d={};for(var p in r){if(Object.prototype.hasOwnProperty.call(r,p)){d[p]=t.createElement(r[p],be({key:p},c))}}return d}return t.createElement(r,c)}),c)}!(c===null||c===false||o.a.isValidElement(c))?false?undefined:a()(false):void 0;return c}});var we=_e;var Ee=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 xe(e,t,r){var n=Ee({},e,{setRouteLeaveHook:t.listenBeforeLeavingRoute,isActive:t.isActive});return ke(n,r)}function ke(e,t){var r=t.location,n=t.params,a=t.routes;e.location=r;e.params=n;e.routes=a;return e}var Me=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 Se(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 Oe={history:l["object"],children:ce,routes:ce,render:l["func"],createElement:l["func"],onError:l["func"],onUpdate:l["func"],matchContext:l["object"]};var De=typeof o.a.forwardRef!=="undefined";var Te=u()({displayName:"Router",propTypes:Oe,getDefaultProps:function e(){return{render:function e(t){return o.a.createElement(we,t)}}},getInitialState:function e(){return{location:null,routes:null,params:null,components:null}},handleError:function e(t){if(this.props.onError){this.props.onError.call(this,t)}else{throw t}},createRouterObject:function e(t){var r=this.props.matchContext;if(r){return r.router}var n=this.props.history;return xe(n,this.transitionManager,t)},createTransitionManager:function e(){var t=this.props.matchContext;if(t){return t.transitionManager}var r=this.props.history;var n=this.props,i=n.routes,o=n.children;!r.getCurrentLocation?false?undefined:a()(false):void 0;return ae(r,G(i||o))},componentWillMount:function e(){var t=this;this.transitionManager=this.createTransitionManager();this.router=this.createRouterObject(this.state);this._unlisten=this.transitionManager.listen((function(e,r){if(e){t.handleError(e)}else{ke(t.router,r);t.setState(r,t.props.onUpdate)}}))},componentWillReceiveProps:function e(t){false?undefined:void 0;false?undefined:void 0},componentWillUnmount:function e(){if(this._unlisten)this._unlisten()},render:function e(){var t=this.state,r=t.location,n=t.routes,a=t.params,i=t.components;var o=this.props,s=o.createElement,e=o.render,u=Se(o,["createElement","render"]);if(r==null)return null;Object.keys(Oe).forEach((function(e){return delete u[e]}));return e(Me({},u,{router:this.router,location:r,routes:n,params:a,components:i,createElement:s}))}});if(De){Te.prototype.UNSAFE_componentWillReceiveProps=Te.prototype.componentWillReceiveProps;Te.prototype.UNSAFE_componentWillMount=Te.prototype.componentWillMount;delete Te.prototype.componentWillReceiveProps;delete Te.prototype.componentWillMount}var Le=Te;var Ce=Object(l["shape"])({push:l["func"].isRequired,replace:l["func"].isRequired,go:l["func"].isRequired,goBack:l["func"].isRequired,goForward:l["func"].isRequired,setRouteLeaveHook:l["func"].isRequired,isActive:l["func"].isRequired});var je=Object(l["shape"])({pathname:l["string"].isRequired,search:l["string"].isRequired,state:l["object"],action:l["string"].isRequired,key:l["string"]});var Ne=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 Ie(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 Pe(e){return e.button===0}function Re(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Fe(e){for(var t in e){if(Object.prototype.hasOwnProperty.call(e,t))return false}return true}function Ye(e,t){return typeof e==="function"?e(t.location):e}var Be=u()({displayName:"Link",mixins:[ge("router")],contextTypes:{router:Ce},propTypes:{to:Object(l["oneOfType"])([l["string"],l["object"],l["func"]]),activeStyle:l["object"],activeClassName:l["string"],onlyActiveOnIndex:l["bool"].isRequired,onClick:l["func"],target:l["string"],innerRef:Object(l["oneOfType"])([l["string"],l["func"],Object(l["shape"])({current:l["elementType"]})])},getDefaultProps:function e(){return{onlyActiveOnIndex:false,style:{}}},handleClick:function e(t){if(this.props.onClick)this.props.onClick(t);if(t.defaultPrevented)return;var r=this.context.router;!r?false?undefined:a()(false):void 0;if(Re(t)||!Pe(t))return;if(this.props.target)return;t.preventDefault();r.push(Ye(this.props.to,r))},render:function e(){var t=this.props,r=t.to,n=t.activeClassName,a=t.activeStyle,i=t.onlyActiveOnIndex,s=t.innerRef,u=Ie(t,["to","activeClassName","activeStyle","onlyActiveOnIndex","innerRef"]);var l=this.context.router;if(l){if(!r){return o.a.createElement("a",Ne({},u,{ref:s}))}var c=Ye(r,l);u.href=l.createHref(c);if(n||a!=null&&!Fe(a)){if(l.isActive(c,i)){if(n){if(u.className){u.className+=" "+n}else{u.className=n}}if(a)u.style=Ne({},u.style,a)}}}return o.a.createElement("a",Ne({},u,{onClick:this.handleClick,ref:s}))}});var He=Be;var ze=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 Ue=u()({displayName:"IndexLink",render:function e(){return o.a.createElement(He,ze({},this.props,{onlyActiveOnIndex:true}))}});var qe=Ue;var Ve=r(119);var We=r.n(Ve);var Ke=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 Ge(e){return e.displayName||e.name||"Component"}function Qe(e,t){var r=t&&t.withRef;var n=u()({displayName:"WithRouter",mixins:[ge("router")],contextTypes:{router:Ce},propTypes:{router:Ce},getWrappedInstance:function e(){!r?false?undefined:a()(false):void 0;return this.wrappedInstance},render:function t(){var n=this;var a=this.props.router||this.context.router;if(!a){return o.a.createElement(e,this.props)}var i=a.params,s=a.location,u=a.routes;var l=Ke({},this.props,{router:a,params:i,location:s,routes:u});if(r){l.ref=function(e){n.wrappedInstance=e}}return o.a.createElement(e,l)}});n.displayName="withRouter("+Ge(e)+")";n.WrappedComponent=e;return We()(n,e)}var Je=u()({displayName:"Redirect",statics:{createRouteFromReactElement:function e(t){var r=W(t);if(r.from)r.path=r.from;r.onEnter=function(e,t){var n=e.location,a=e.params;var i=void 0;if(r.to.charAt(0)==="/"){i=E(r.to,a)}else if(!r.to){i=n.pathname}else{var o=e.routes.indexOf(r);var s=Je.getRoutePattern(e.routes,o-1);var u=s.replace(/\/*$/,"/")+r.to;i=E(u,a)}t({pathname:i,query:r.query||n.query,state:r.state||n.state})};return r},getRoutePattern:function e(t,r){var n="";for(var a=r;a>=0;a--){var i=t[a];var o=i.path||"";n=o.replace(/\/*$/,"/")+n;if(o.indexOf("/")===0)break}return"/"+n}},propTypes:{path:l["string"],from:l["string"],to:l["string"].isRequired,query:l["object"],state:l["object"],onEnter:ie,children:ie},render:function e(){true?false?undefined:a()(false):undefined}});var Ze=Je;var Xe=u()({displayName:"IndexRedirect",statics:{createRouteFromReactElement:function e(t,r){if(r){r.indexRoute=Ze.createRouteFromReactElement(t)}else{false?undefined:void 0}}},propTypes:{to:l["string"].isRequired,query:l["object"],state:l["object"],onEnter:ie,children:ie},render:function e(){true?false?undefined:a()(false):undefined}});var $e=Xe;var et=u()({displayName:"IndexRoute",statics:{createRouteFromReactElement:function e(t,r){if(r){r.indexRoute=W(t)}else{false?undefined:void 0}}},propTypes:{path:ie,component:se,components:ue,getComponent:l["func"],getComponents:l["func"]},render:function e(){true?false?undefined:a()(false):undefined}});var tt=et;var rt=u()({displayName:"Route",statics:{createRouteFromReactElement:W},propTypes:{path:l["string"],component:se,components:ue,getComponent:l["func"],getComponents:l["func"]},render:function e(){true?false?undefined:a()(false):undefined}});var nt=rt;var at=r(164);var it=r(215);var ot=r.n(it);var st=r(216);var ut=r.n(st);var lt=r(668);var ct=r.n(lt);function ft(e){var t=ct()(e);var r=function e(){return t};var n=ot()(ut()(r))(e);return n}var dt=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 pt(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 ht(e,t){var r=e.history,n=e.routes,i=e.location,o=pt(e,["history","routes","location"]);!(r||i)?false?undefined:a()(false):void 0;r=r?r:ft(o);var s=ae(r,G(n));if(i){i=r.createLocation(i)}else{i=r.getCurrentLocation()}s.match(i,(function(e,n,a){var i=void 0;if(a){var o=xe(r,s,a);i=dt({},a,{router:o,matchContext:{transitionManager:s,router:o}})}t(e,n&&r.createLocation(n,at["REPLACE"]),i)}))}var vt=ht;function mt(e){return function(t){var r=ot()(ut()(e))(t);return r}}var yt=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 gt=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}if(false){}var n=t.map((function(e){return e.renderRouterContext})).filter(Boolean);var a=t.map((function(e){return e.renderRouteComponent})).filter(Boolean);var s=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:i["createElement"];return function(e,r){return a.reduceRight((function(e,t){return t(e,r)}),t(e,r))}};return function(e){return n.reduceRight((function(t,r){return r(t,e)}),o.a.createElement(we,yt({},e,{createElement:s(e.createElement)})))}};var bt=r(669);var At=r.n(bt);var _t=!!(typeof window!=="undefined"&&window.document&&window.document.createElement);function wt(e){var t=void 0;if(_t)t=mt(e)();return t}var Et=wt(At.a);var xt=r(670);var kt=r.n(xt);var Mt=wt(kt.a)},function(e,t,r){"use strict";t.__esModule=true;t.default=void 0;var n=!!(typeof window!=="undefined"&&window.document&&window.document.createElement);t.default=n;e.exports=t["default"]},function(e,t,r){"use strict";if(true){e.exports=r(948)}else{}},function(e,t,r){"use strict";(function(e,n){var a=r(671);var i;if(typeof self!=="undefined"){i=self}else if(typeof window!=="undefined"){i=window}else if(typeof e!=="undefined"){i=e}else if(true){i=n}else{}var o=Object(a["a"])(i);t["a"]=o}).call(this,r(27),r(169)(e))},function(e,t,r){"use strict";t.__esModule=true;t.createPath=t.parsePath=t.getQueryStringValueFromPath=t.stripQueryStringValueFromPath=t.addQueryStringValueToPath=undefined;var n=r(23);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}var o=t.addQueryStringValueToPath=function e(t,r,n){var a=c(t),i=a.pathname,o=a.search,s=a.hash;return f({pathname:i,search:o+(o.indexOf("?")===-1?"?":"&")+r+"="+n,hash:s})};var s=t.stripQueryStringValueFromPath=function e(t,r){var n=c(t),a=n.pathname,i=n.search,o=n.hash;return f({pathname:a,search:i.replace(new RegExp("([?&])"+r+"=[a-zA-Z0-9]+(&?)"),(function(e,t,r){return t==="?"?t:r})),hash:o})};var u=t.getQueryStringValueFromPath=function e(t,r){var n=c(t),a=n.search;var i=a.match(new RegExp("[?&]"+r+"=([a-zA-Z0-9]+)"));return i&&i[1]};var l=function e(t){var r=t.match(/^(https?:)?\/\/[^\/]*/);return r==null?t:t.substring(r[0].length)};var c=t.parsePath=function e(t){var r=l(t);var n="";var a="";false?undefined:void 0;var i=r.indexOf("#");if(i!==-1){a=r.substring(i);r=r.substring(0,i)}var o=r.indexOf("?");if(o!==-1){n=r.substring(o);r=r.substring(0,o)}if(r==="")r="/";return{pathname:r,search:n,hash:a}};var f=t.createPath=function e(t){if(t==null||typeof t==="string")return t;var r=t.basename,n=t.pathname,a=t.search,i=t.hash;var o=(r||"")+n;if(a&&a!=="?")o+=a;if(i)o+=i;return o}},function(e,t,r){"use strict";e.exports=function(e){if(typeof window!=="undefined"&&window.__DRAFT_GKX){return!!window.__DRAFT_GKX[e]}return false}},function(e,t,r){var n=r(127);var a=r(572);var i=r(269);var o=Object.defineProperty;t.f=r(74)?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(132),a=r(1017),i=r(1018);var o="[object Null]",s="[object Undefined]";var u=n?n.toStringTag:undefined;function l(e){if(e==null){return e===undefined?s:o}return u&&u in Object(e)?a(e):i(e)}e.exports=l},function(e,t,r){e.exports={default:r(1121),__esModule:true}},function(e,t,r){"use strict";t.__esModule=true;t.default=function(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}},function(e,t,r){"use strict";t.__esModule=true;var n=r(624);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=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;(0,a.default)(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}()},function(e,t,r){"use strict";t.__esModule=true;var n=r(304);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&((typeof t==="undefined"?"undefined":(0,a.default)(t))==="object"||typeof t==="function")?t:e}},function(e,t,r){"use strict";t.__esModule=true;var n=r(1138);var a=l(n);var i=r(1139);var o=l(i);var s=r(304);var u=l(s);function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+(typeof t==="undefined"?"undefined":(0,u.default)(t)))}e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)a.default?(0,a.default)(e,t):e.__proto__=t}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return true}}},function(e,t,r){"use strict";var n=r(20);t.__esModule=true;t.default=void 0;var a=n(r(79));var i=function(){return a.default?function(e,t){if(e.contains){return e.contains(t)}else if(e.compareDocumentPosition){return e===t||!!(e.compareDocumentPosition(t)&16)}else{return o(e,t)}}:o}();t.default=i;function o(e,t){if(t)do{if(t===e)return true}while(t=t.parentNode);return false}e.exports=t["default"]},function(e,t,r){"use strict";if(true){e.exports=r(704)}else{}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=o;var n=r(140);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}function n(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++){r[n]=arguments[n]}var a=null;t.forEach((function(e){if(a!=null){return}var t=e.apply(undefined,r);if(t!=null){a=t}}));return a}return(0,a.default)(n)}e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=n;function n(e){return function t(r,n,a,i,o){var s=a||"<<anonymous>>";var u=o||n;if(r[n]==null){return new Error("The "+i+" `"+u+"` is required to make "+("`"+s+"` accessible for users of assistive ")+"technologies such as screen readers.")}for(var l=arguments.length,c=Array(l>5?l-5:0),f=5;f<l;f++){c[f-5]=arguments[f]}return e.apply(undefined,[r,n,a,i,o].concat(c))}}e.exports=t["default"]},function(e,t,r){var n=r(85),a=r(60);var i="[object Number]";function o(e){return typeof e=="number"||a(e)&&n(e)==i}e.exports=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(){}e.prototype.prefixes=function(t){var r={};var n=Object.keys(t["$"]||{}).map((function(e){return t["$"][e]}));e.URIS.forEach((function(e){var t=n.find((function(t){return t.value===e}));var a="";if(t){a=t.local;if(a.length>0){a+=":"}}r[e]=a}));return r};e.ATOM_URI="http://www.w3.org/2005/Atom";e.OPDS_URI="http://opds-spec.org/2010/catalog";e.DC_URI="http://purl.org/dc/terms/";e.SCHEMA_URI="http://schema.org/";e.THR_URI="http://purl.org/syndication/thread/1.0";e.OPEN_SEARCH_URI="http://a9.com/-/spec/opensearch/1.1/";e.FH_URI="http://purl.org/syndication/history/1.0";e.OPF_URI="http://www.idpf.org/2007/opf";e.URIS=[e.ATOM_URI,e.OPDS_URI,e.DC_URI,e.SCHEMA_URI,e.THR_URI,e.OPEN_SEARCH_URI,e.FH_URI,e.OPF_URI];return e}();t.default=n},function(e,t,r){"use strict";var n=r(172);var a=Object.keys||function(e){var t=[];for(var r in e){t.push(r)}return t};e.exports=f;var i=Object.create(r(148));i.inherits=r(123);var o=r(379);var s=r(253);i.inherits(f,o);{var u=a(s.prototype);for(var l=0;l<u.length;l++){var c=u[l];if(!f.prototype[c])f.prototype[c]=s.prototype[c]}}function f(e){if(!(this instanceof f))return new f(e);o.call(this,e);s.call(this,e);if(e&&e.readable===false)this.readable=false;if(e&&e.writable===false)this.writable=false;this.allowHalfOpen=true;if(e&&e.allowHalfOpen===false)this.allowHalfOpen=false;this.once("end",d)}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function d(){if(this.allowHalfOpen||this._writableState.ended)return;n.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(f.prototype,"destroyed",{get:function(){if(this._readableState===undefined||this._writableState===undefined){return false}return this._readableState.destroyed&&this._writableState.destroyed},set:function(e){if(this._readableState===undefined||this._writableState===undefined){return}this._readableState.destroyed=e;this._writableState.destroyed=e}});f.prototype._destroy=function(e,t){this.push(null);this.end();n.nextTick(t,e)}},function(e,t,r){!function(t,n){true?e.exports=n(r(1)):undefined}(this,(function(e){return function(e){function t(n){if(r[n])return r[n].exports;var a=r[n]={exports:{},id:n,loaded:!1};return e[n].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(55)},function(e,t,r){(function(t){if("production"!==t.env.NODE_ENV){var n="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,a=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},i=!0;e.exports=r(58)(a,i)}else e.exports=r(57)()}).call(t,r(3))},function(t,r){t.exports=e},function(e,t){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function a(e){if(c===setTimeout)return setTimeout(e,0);if((c===r||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===n||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function o(){v&&p&&(v=!1,p.length?h=p.concat(h):m=-1,h.length&&s())}function s(){if(!v){var e=a(o);v=!0;for(var t=h.length;t;){for(p=h,h=[];++m<t;)p&&p[m].run();m=-1,t=h.length}p=null,v=!1,i(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}var c,f,d=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:r}catch(e){c=r}try{f="function"==typeof clearTimeout?clearTimeout:n}catch(e){f=n}}();var p,h=[],v=!1,m=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new u(e,t)),1!==h.length||v||a(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t){"use strict";function r(e){return function(){return e}}var n=function(){};n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,r){(function(t){"use strict";function r(e,t,r,a,i,o,s,u){if(n(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,a,i,o,s,u],f=0;l=new Error(t.replace(/%s/g,(function(){return c[f++]}))),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=r}).call(t,r(3))},function(e,t){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=r},function(e,t,r){(function(t){"use strict";var n=r(4),a=n;if("production"!==t.env.NODE_ENV){var i=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,i="Warning: "+e.replace(/%s/g,(function(){return r[a++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};a=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var r=arguments.length,n=Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];i.apply(void 0,[t].concat(n))}}}e.exports=a}).call(t,r(3))},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width;return i["default"].createElement("svg",{"aria-hidden":t,"aria-labelledby":a,className:r+" svgIcon",height:n,preserveAspectRatio:o,viewBox:u,width:l},i["default"].createElement("title",{id:a},s),i["default"].createElement("g",null,i["default"].createElement("path",{d:"M47.1181,31.16626v9.81838a7.69657,7.69657,0,0,1-7.69659,7.69659H14.65722a7.69657,7.69657,0,0,1-7.69659-7.69659V16.22035a7.69657,7.69657,0,0,1,7.69659-7.69659h24.7643A7.68562,7.68562,0,0,1,46.04723,12.318v-.029l4.98249-4.98249A14.61787,14.61787,0,0,0,39.42151,1.56313H14.65722A14.67381,14.67381,0,0,0,0,16.22035v24.7643A14.67381,14.67381,0,0,0,14.65722,55.64186h24.7643A14.67381,14.67381,0,0,0,54.07873,40.98464V24.20557Z"}),i["default"].createElement("path",{d:"M66.88559,1.11424q-.04628-.04628-.09412-.09092a3.8044,3.8044,0,0,0-5.28616.091L52.99074,9.62894,47.1181,15.50158,32.5635,30.05624,17.90785,15.40066a3.80454,3.80454,0,0,0-5.39511,5.3657l.01458.01458L32.5635,40.81739,47.1181,26.26266,54.07873,19.302,66.88565,6.49491A3.80469,3.80469,0,0,0,66.88559,1.11424Z"})))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,iconId:s["default"].string.isRequired,preserveAspectRatio:s["default"].string,title:s["default"].string,viewBox:s["default"].string,width:s["default"].string},u.defaultProps={ariaHidden:!0,className:"apply-icon",height:"68",preserveAspectRatio:"xMidYMid meet",title:"apply",viewBox:"0 0 68 55",width:"55"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M16,4.0625A11.9375,11.9375,0,1,0,27.9375,16,11.9375,11.9375,0,0,0,16,4.0625ZM16,19.75A3.75,3.75,0,1,1,19.75,16,3.75,3.75,0,0,1,16,19.75Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"audio-disc-icon",title:"NYPL Audio Disc SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s},i["default"].createElement("title",null,a),i["default"].createElement("g",null,i["default"].createElement("path",{d:"M7.50842,19.29355A0.94557,0.94557,0,0,1,6.56284,18.348V15.376a9.47232,9.47232,0,0,1,18.94464,0v2.91654a0.94558,0.94558,0,0,1-1.89117,0V15.376a7.58115,7.58115,0,0,0-15.16231,0v2.972A0.94557,0.94557,0,0,1,7.50842,19.29355Z"}),i["default"].createElement("g",null,i["default"].createElement("path",{d:"M21.82651,23.66863a0.94557,0.94557,0,0,1-.94558-0.94558V16.22111a0.94558,0.94558,0,0,1,1.89117,0V22.723A0.94557,0.94557,0,0,1,21.82651,23.66863Z"}),i["default"].createElement("path",{d:"M10.24381,23.75a0.94557,0.94557,0,0,1-.94558-0.94558V16.22111a0.94558,0.94558,0,1,1,1.89117,0v6.58331A0.94557,0.94557,0,0,1,10.24381,23.75Z"}))))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"audio-headphone-icon",title:"NYPL Audio/Headphone SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden,u=e.preserveAspectRatio;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s,preserveAspectRatio:u},i["default"].createElement("title",null,a),i["default"].createElement("g",null,i["default"].createElement("path",{d:"M26.09478,8.31652A13.1617,13.1617,0,0,0,15.97189,8.1603a13.079,13.079,0,0,0-10.09165.18746,0.88881,0.88881,0,0,0-.46865.84357V21.81371a0.89164,0.89164,0,0,0,.37492.81233,0.93487,0.93487,0,0,0,.90606.06249,11.44018,11.44018,0,0,1,8.9044,0c0.03124,0,.03124,0,0.03124.03124a0.06237,0.06237,0,0,1,.06249.03124,0.70873,0.70873,0,0,0,.125.03124h0.18746a0.5317,0.5317,0,0,0,.2187-0.03124,0.06237,0.06237,0,0,0,.06249-0.03124,0.70873,0.70873,0,0,1,.125-0.03124,11.464,11.464,0,0,1,8.9044,0,0.86486,0.86486,0,0,0,.40617.09373A1.05326,1.05326,0,0,0,26.251,22.626a0.94244,0.94244,0,0,0,.43741-0.81233V9.19133A1.04849,1.04849,0,0,0,26.09478,8.31652ZM24.78256,20.439a13.30172,13.30172,0,0,0-8.74818.34368A13.26349,13.26349,0,0,0,7.2862,20.439V9.8162a11.30538,11.30538,0,0,1,8.342.2187c0.03124,0,.03124,0,0.03124.03124a0.06237,0.06237,0,0,1,.06249.03124,0.70872,0.70872,0,0,0,.125.03124h0.34368a0.11478,0.11478,0,0,0,.09373-0.03124c0.03125,0,.06249-0.03124.09373-0.03124,0,0,.06249,0,0.06249-0.03124a11.51979,11.51979,0,0,1,8.37326-.2187V20.439H24.78256Z"}),i["default"].createElement("path",{d:"M16.00313,17.81454a0.76028,0.76028,0,0,1-.74984-0.74984V13.378a0.74984,0.74984,0,0,1,1.49969,0V17.0647A0.74014,0.74014,0,0,1,16.00313,17.81454Z"})))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,preserveAspectRatio:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"book-icon",title:"NYPL Book SVG Icon",height:"24px",width:"24px",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.style,u=e.ariaHidden,l=e.preserveAspectRatio,c=e.iconId,f=e.svgRole;return i["default"].createElement("svg",{viewBox:t,height:r,width:n,className:o+" svgIcon",style:s,"aria-hidden":u,preserveAspectRatio:l,"aria-labelledby":c,role:f},i["default"].createElement("title",{id:c},a),i["default"].createElement("path",{d:"M13.329 9.245a1.466 1.466 0 0 0 .766-.217l9.536-5.834 9.536 5.834a1.47 1.47 0 0 0 1.535-2.509L24.398.216a1.473 1.473 0 0 0-1.535 0L12.56 6.519a1.47 1.47 0 0 0 .769 2.726zM45.811 36.982h-1.564V20.08h1.423a1.51 1.51 0 0 0 0-3.018h-5.817a1.51 1.51 0 0 0 0 3.018h1.376v16.902H6.218V20.08h1.8a1.51 1.51 0 0 0 0-3.018H2.202a1.51 1.51 0 0 0 0 3.018h.997v16.902H1.47a1.51 1.51 0 0 0 0 3.018h44.341a1.51 1.51 0 0 0 0-3.018z"}),i["default"].createElement("path",{d:"M21.007 35.128a1.504 1.504 0 0 0 1.509-1.47V22.512a5.435 5.435 0 1 0-10.866 0v11.146a1.51 1.51 0 0 0 3.019 0V22.512a2.424 2.424 0 1 1 4.829 0v11.146a1.504 1.504 0 0 0 1.509 1.47zM34.287 35.128a1.504 1.504 0 0 0 1.509-1.47V22.512a5.435 5.435 0 1 0-10.866 0v11.146a1.51 1.51 0 0 0 3.019 0V22.512a2.424 2.424 0 1 1 4.829 0v11.146a1.504 1.504 0 0 0 1.509 1.47zM2.06 14.647h43.613a1.51 1.51 0 0 0 0-3.018H2.06a1.51 1.51 0 0 0 0 3.018z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool,preserveAspectRatio:s["default"].string,svgRole:s["default"].string,iconId:s["default"].string},u.defaultProps={ariaHidden:!0,className:"bldgIcon",height:"40",preserveAspectRatio:"xMidYMid meet",svgRole:"img",title:"NYPL Building Icon",viewBox:"0 0 47.282 40",width:"47.282"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){return i["default"].createElement("path",{d:"M12,4a8,8,0,1,1-8,8,8.00906,8.00906,0,0,1,8-8m0-4A12,12,0,1,0,24,12,12,12,0,0,0,12,0h0Z",fill:e})},l=function(e){return i["default"].createElement("path",{d:"M12,0A12,12,0,1,0,24,12,12,12,0,0,0,12,0h0Z",fill:e})},c=function(e){var t=e.className,r=e.title,n=e.type,a=e.height,o=e.width,s=e.viewBox,c=e.fill,f=e.ariaHidden;return i["default"].createElement("svg",{className:t+" svgIcon",width:o,height:a,viewBox:s,"aria-hidden":f},i["default"].createElement("title",null,r),"solid"!==n?u(c):l(c))};c.propTypes={className:s["default"].string,title:s["default"].string,type:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool},c.defaultProps={className:"nyplCarouselCircle-icon",title:"NYPL Carousel Circle SVG Icon",ref:"nyplCarouselCircle",type:"",height:"24px",width:"24px",viewBox:"0 0 24 24",fill:"#000"},t["default"]=c},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M25.51266,9.42987a1.40287,1.40287,0,0,0-1.94927.03357L12.891,20.13586,7.48668,14.73156a1.40294,1.40294,0,1,0-1.9841,1.984L12.891,24.10406,25.5474,11.44754A1.403,1.403,0,0,0,25.51266,9.42987Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"check-solo-icon",title:"NYPL Check Solo SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.fill,u=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon",fill:s,"aria-hidden":u},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M16,3A13,13,0,1,1,3,16,13.0147,13.0147,0,0,1,16,3m0-3A16,16,0,1,0,32,16,16,16,0,0,0,16,0h0Z"}),i["default"].createElement("path",{d:"M24,14H8a2.0025,2.0025,0,0,0,0,4H24A2.0025,2.0025,0,0,0,24,14Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"circle-dash-icon",title:"NYPL Circle Dash SVG Icon",width:"24",height:"24",viewBox:"0 0 32 32",fill:"#000"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.length,o=e.stroke,s=e.strokeWidth,u=e.title,l=e.viewBox,c=e.width;return i["default"].createElement("svg",{"aria-hidden":t,className:r+" svgIcon",height:n,viewBox:l,width:c},i["default"].createElement("title",null,u),i["default"].createElement("line",{x1:"0",y1:"0",x2:a,y2:"0",stroke:o,strokeWidth:s}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,length:s["default"].string,stroke:s["default"].string,strokeWidth:s["default"].string,title:s["default"].string,viewBox:s["default"].string,width:s["default"].string},u.defaultProps={ariaHidden:!0,className:"divideLine-icon",height:"2",length:"84",stroke:"#000",strokeWidth:"2",title:"NYPL Divide Line SVG Icon",viewBox:"0 0 84 2",width:"84"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.className,r=e.title,n=e.height,a=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden;return i["default"].createElement("svg",{width:a,height:n,viewBox:o,className:t+" svgIcon",fill:s,"aria-hidden":u},i["default"].createElement("title",null,r),i["default"].createElement("circle",{cx:"16",cy:"16",r:"1.9029"}),i["default"].createElement("circle",{cx:"24",cy:"16",r:"1.9029"}),i["default"].createElement("circle",{cx:"8",cy:"16",r:"1.9029"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"dotsIcon",title:"NYPL Dots SVG Icon",height:"24px",width:"24px",viewBox:"0 0 32 32",fill:"#000"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.iconId,o=e.title,s=e.viewBox,u=e.width;return i["default"].createElement("svg",{"aria-hidden":t,"aria-labelledby":a,className:r+" svgIcon",height:n,viewBox:s,width:u},i["default"].createElement("title",{id:a},o),i["default"].createElement("path",{d:"M23.26,13.1819a1.2736,1.2736,0,0,0-1.7332,0L17,17.6253V6.1041a1.0119,1.0119,0,1,0-2,0V17.6253l-4.5268-4.4434a1.2212,1.2212,0,0,0-1.6916,0,1.17,1.17,0,0,0-.0208,1.65L15.1786,21.26l0,0.0083a1.1694,1.1694,0,0,0,1.6488,0l0.0048-.0083L23.26,14.8318A1.17,1.17,0,0,0,23.26,13.1819Z"}),i["default"].createElement("rect",{x:"14.8333",y:"16.3602",width:"2.3333",height:"16.6711",rx:"1.1667",ry:"1.1667",transform:"translate(-8.6957 40.6957) rotate(-90)"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,iconId:s["default"].string.isRequired,title:s["default"].string,viewBox:s["default"].string,width:s["default"].string},u.defaultProps={ariaHidden:!0,className:"download-icon",height:"32",title:"Download",viewBox:"0 0 32 32",width:"32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.fill,u=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":u,fill:s},i["default"].createElement("title",null,a),i["default"].createElement("circle",{cx:"16",cy:"16",r:"3.75",fill:"none"}),i["default"].createElement("path",{d:"M16,10.625A5.375,5.375,0,1,0,21.375,16,5.381,5.381,0,0,0,16,10.625Zm0,9.125A3.75,3.75,0,1,1,19.75,16,3.75,3.75,0,0,1,16,19.75Z"}),i["default"].createElement("path",{d:"M16,4.0625A11.9375,11.9375,0,1,0,27.9375,16,11.9375,11.9375,0,0,0,16,4.0625Zm0,19.65625A7.71875,7.71875,0,1,1,23.71875,16,7.72719,7.72719,0,0,1,16,23.71875Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"dvd-disc-icon",title:"NYPL DVD Disc SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M23.02352,5.00588H9.00588a2.38332,2.38332,0,0,0-2,2.00588V24.99412A2.45762,2.45762,0,0,0,9,27.00588H22.99412A2.22259,2.22259,0,0,0,24.98824,25V6.98843a1.97259,1.97259,0,0,0-1.6106-1.94478ZM23,23.99608H9V7.0002l14.02352-.01178Z"}),i["default"].createElement("path",{d:"M20.61338,9.99038h-9.186a0.456,0.456,0,0,1,0-.9121h9.12081a0.44532,0.44532,0,0,1,.456.456,0.43566,0.43566,0,0,1-.3909.456h0Z"}),i["default"].createElement("path",{d:"M20.642,13H11.456a0.50163,0.50163,0,1,1,0-1h9.12081a0.674,0.674,0,0,1,.6497.49219A0.74346,0.74346,0,0,1,20.642,13h0Z"}),i["default"].createElement("path",{d:"M20.65624,15.956h-9.186a0.456,0.456,0,1,1,0-.9121h9.12081a0.44532,0.44532,0,0,1,.456.456,0.43566,0.43566,0,0,1-.3909.456h0Z"}),i["default"].createElement("path",{d:"M20.55608,18.9121h-9.186a0.456,0.456,0,1,1,0-.9121h9.12081a0.44532,0.44532,0,0,1,.456.456,0.43566,0.43566,0,0,1-.3909.456h0Z"}),i["default"].createElement("path",{d:"M20.61338,21.98237h-9.186a0.456,0.456,0,0,1,0-.9121h9.12081a0.44532,0.44532,0,0,1,.456.456,0.43566,0.43566,0,0,1-.3909.456h0Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"eReader-icon",title:"NYPL eReader SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width;return i["default"].createElement("svg",{"aria-hidden":t,"aria-labelledby":a,className:r+" svgIcon",height:n,preserveAspectRatio:o,viewBox:u,width:l},i["default"].createElement("title",{id:a},s),i["default"].createElement("path",{d:"M46.052 36.91H1.948A1.938 1.938 0 0 1 0 34.981V1.927A1.937 1.937 0 0 1 1.948 0h44.104A1.938 1.938 0 0 1 48 1.927v33.055a1.938 1.938 0 0 1-1.948 1.927zM3.896 33.054h40.208V3.854H3.896z"}),i["default"].createElement("path",{d:"M24 25.007a1.915 1.915 0 0 1-1.176-.402l-11.93-9.251a1.925 1.925 0 0 1 2.352-3.049L24 20.644l10.754-8.339a1.925 1.925 0 0 1 2.352 3.049l-11.93 9.25a1.917 1.917 0 0 1-1.176.403z"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,iconId:s["default"].string.isRequired,preserveAspectRatio:s["default"].string,title:s["default"].string,viewBox:s["default"].string,width:s["default"].string},u.defaultProps={ariaHidden:!0,className:"envelope-icon",height:"48",preserveAspectRatio:"xMidYMid meet",title:"mail",viewBox:"0 0 48 36.909",width:"36.909"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.iconId,a=e.height,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width;return i["default"].createElement("svg",{"aria-hidden":t,"aria-labelledby":n,className:r+" svgIcon",height:a,preserveAspectRatio:o,title:s,viewBox:u,width:l},i["default"].createElement("title",{id:n},s),i["default"].createElement("path",{d:"M7.1267,13.68408v9.7265H0V35.30576H7.1267V67.94592H21.76584V35.30576H31.588s.9207-5.70326,1.36529-11.94H21.82116v-8.1318a3.45468,3.45468,0,0,1,3.17363-2.85086h7.9757V0H22.12679C6.76506,0,7.1267,11.90635,7.1267,13.68408Z"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,iconId:s["default"].string.isRequired,preserveAspectRatio:s["default"].string,title:s["default"].string,viewBox:s["default"].string,width:s["default"].string},u.defaultProps={ariaHidden:!0,className:"face-book-icon",height:"32",preserveAspectRatio:"xMidYMid meet",title:"Facebook",viewBox:"0 0 32 67",width:"67"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.title,o=e.viewBox,s=e.width;return i["default"].createElement("svg",{"aria-hidden":t,className:r+" svgIcon",height:n,viewBox:o,width:s},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M21.649 67.67a2.657 2.657 0 0 1-2.657-2.657V36.3L.706 16.584a2.657 2.657 0 1 1 3.902-3.608l19.697 21.242v30.795a2.657 2.657 0 0 1-2.656 2.656zM32.441 59.93a2.657 2.657 0 0 1-2.656-2.656V34.235l19.922-21.848a2.657 2.657 0 0 1 3.943 3.563L35.098 36.283v20.991a2.657 2.657 0 0 1-2.657 2.657zM29.36 10.54l7.325-7.325A1.884 1.884 0 0 0 34.02.552l-7.325 7.325L19.37.552a1.884 1.884 0 1 0-2.664 2.663l7.325 7.326-7.325 7.325a1.884 1.884 0 1 0 2.664 2.664l7.325-7.326 7.325 7.326a1.884 1.884 0 1 0 2.664-2.664z"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,title:s["default"].string,width:s["default"].string,viewBox:s["default"].string},u.defaultProps={ariaHidden:!0,className:"filter-cancel-icon",height:"67.669",title:"NYPL Cancel Filter SVG Icon",width:"54.333",viewBox:"0 0 54.333 67.669"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.fill,a=e.height,o=e.title,s=e.viewBox,u=e.width;return i["default"].createElement("svg",{"aria-hidden":t,className:r+" svgIcon",fill:n,height:a,viewBox:s,width:u},i["default"].createElement("title",null,o),i["default"].createElement("g",null,i["default"].createElement("circle",{cx:"13.0944",cy:"7.375",r:"1.3192"}),i["default"].createElement("circle",{cx:"19.6222",cy:"6.375",r:"1.3189"}),i["default"].createElement("circle",{cx:"15.9997",cy:"10.5242",r:"1.3193"}),i["default"].createElement("g",null,i["default"].createElement("path",{d:"M14.1785,27.562a0.95,0.95,0,0,1-.95-0.95v-10.27L6.6875,9.2893a0.95,0.95,0,0,1,1.3956-1.29l7.0455,7.598v11.015A0.95,0.95,0,0,1,14.1785,27.562Z"}),i["default"].createElement("path",{d:"M18.0387,24.794a0.95,0.95,0,0,1-.95-0.95V15.603l7.126-7.8149a0.95,0.95,0,0,1,1.41,1.2744l-6.636,7.2729v7.5083A0.95,0.95,0,0,1,18.0387,24.794Z"}))))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,fill:s["default"].string,height:s["default"].string,title:s["default"].string,width:s["default"].string,viewBox:s["default"].string},u.defaultProps={ariaHidden:!0,className:"filter-icon",fill:"#000",height:"32",title:"NYPL Filter SVG Icon",width:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden,u=e.preserveAspectRatio,l=e.iconId,c=e.svgRole;return i["default"].createElement("svg",{viewBox:t,height:r,width:n,className:o+" svgIcon","aria-hidden":s,preserveAspectRatio:u,"aria-labelledby":l,role:c},i["default"].createElement("title",{id:l},a),i["default"].createElement("path",{d:"M17.749 26.818L6.205 15.288 17.832 3.592a2.075 2.075 0 0 0 .01-2.901 2.278 2.278 0 0 0-3.243-.026L0 15.225 14.693 29.87a2.16 2.16 0 0 0 3.065-.016 2.16 2.16 0 0 0-.01-3.036z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool,preserveAspectRatio:s["default"].string,svgRole:s["default"].string,iconId:s["default"].string},u.defaultProps={ariaHidden:!0,className:"GenericWedgeIcon",title:"NYPL Wedge Down Icon",width:"30.5",height:"18.428",viewBox:"0 0 18.428 30.5",preserveAspectRatio:"xMidYMid meet",svgRole:"img"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s},i["default"].createElement("title",null,a),i["default"].createElement("rect",{x:"8",y:"8",width:"7",height:"7"}),i["default"].createElement("rect",{x:"17",y:"8",width:"7",height:"7"}),i["default"].createElement("rect",{x:"8",y:"17",width:"7",height:"7"}),i["default"].createElement("rect",{x:"17",y:"17",width:"7",height:"7"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"grid-icon",title:"NYPL Grid SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M7.132,6.0411H24.97514l0.16949,5.36219h-0.755a6.43678,6.43678,0,0,0-1.40988-3.28973q-0.85518-.76272-3.5979-0.76272H17.62525V23.499q0,1.824.57012,2.25992a5.26381,5.26381,0,0,0,2.49619.57525v0.58553H11.49263V26.3342a4.36809,4.36809,0,0,0,2.49619-.66,4.1201,4.1201,0,0,0,.49307-2.545V7.35083h-1.772a6.022,6.022,0,0,0-3.56709.755,5.57976,5.57976,0,0,0-1.42529,3.29744H6.9471Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"large-print-icon",title:"NYPL Large Print SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden,u=e.preserveAspectRatio,l=e.iconId,c=e.svgRole;return i["default"].createElement("svg",{viewBox:t,height:r,width:n,className:o+" svgIcon","aria-hidden":s,preserveAspectRatio:u,"aria-labelledby":l,role:c},i["default"].createElement("title",{id:l},a),i["default"].createElement("polygon",{points:"16.959 24.065 9.905 16.963 27.298 16.963 27.298 14.548 9.905 14.548 16.959 7.397 15.026 5.417 4.688 15.707 15.026 25.998 16.959 24.065"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool,preserveAspectRatio:s["default"].string,svgRole:s["default"].string,iconId:s["default"].string},u.defaultProps={ariaHidden:!0,className:"leftArrowIcon",title:"NYPL Left Arrow Icon",width:"32",height:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.fill,a=e.height,o=e.title,s=e.viewBox,u=e.width;return i["default"].createElement("svg",{"aria-hidden":t,className:r+" svgIcon",fill:n,height:a,viewBox:s,width:u},i["default"].createElement("title",null,o),i["default"].createElement("polygon",{points:"19.156 23.563 11.593 16 19.156 8.438 20.563 9.845 14.408 16 20.563 22.155 19.156 23.563"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,fill:s["default"].string,height:s["default"].string,title:s["default"].string,width:s["default"].string,viewBox:s["default"].string},u.defaultProps={ariaHidden:!0,className:"left-wedge-icon",fill:"#000",height:"32",title:"NYPL Left Wedge SVG Icon",width:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width;return i["default"].createElement("svg",{"aria-hidden":t,"aria-labelledby":a,className:r+" svgIcon",height:n,preserveAspectRatio:o,viewBox:u,width:l},i["default"].createElement("title",{id:a},s),i["default"].createElement("path",{d:"M61.554 46.28H6.824A6.832 6.832 0 0 1 0 39.453V6.824A6.833 6.833 0 0 1 6.825 0h54.729a6.832 6.832 0 0 1 6.823 6.825v32.63a6.832 6.832 0 0 1-6.823 6.824zM6.824 3.31A3.52 3.52 0 0 0 3.31 6.824v32.63a3.52 3.52 0 0 0 3.516 3.515h54.729a3.519 3.519 0 0 0 3.514-3.516V6.824a3.519 3.519 0 0 0-3.514-3.515z"}),i["default"].createElement("path",{d:"M56.943 14.56H42.59a1.707 1.707 0 1 1 0-3.413h14.353a1.707 1.707 0 0 1 0 3.413zM56.943 20.971H42.59a1.707 1.707 0 1 1 0-3.413h14.353a1.707 1.707 0 1 1 0 3.413zM56.943 27.382H42.59a1.707 1.707 0 1 1 0-3.414h14.353a1.707 1.707 0 1 1 0 3.414zM22.471 14.335c1.003 0 1.851 1.129 1.851 2.465s-.848 2.464-1.85 2.464-1.852-1.128-1.852-2.464.848-2.465 1.851-2.465m0-3.111c-2.597 0-4.703 2.496-4.703 5.576s2.106 5.576 4.703 5.576 4.703-2.497 4.703-5.576-2.106-5.576-4.703-5.576zM22.403 24.634a49.169 49.169 0 0 0-7.08.613 2.834 2.834 0 0 0-2.175 1.805l-2.26 5.898a2.793 2.793 0 0 0 2.601 3.81h4.106a1.793 1.793 0 0 0 0-3.587l-2.934-.046 1.666-4.35a44.936 44.936 0 0 1 6.076-.557 42.747 42.747 0 0 1 5.961.49l1.71 4.463h-2.892a1.793 1.793 0 0 0 0 3.586h4.105a2.794 2.794 0 0 0 2.6-3.816l-2.318-5.892a2.92 2.92 0 0 0-2.215-1.817 47.371 47.371 0 0 0-6.95-.6z"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,iconId:s["default"].string.isRequired,preserveAspectRatio:s["default"].string,title:s["default"].string,viewBox:s["default"].string,width:s["default"].string},u.defaultProps={ariaHidden:!0,className:"library-card-icon",height:"46.279",preserveAspectRatio:"xMidYMid meet",title:"library-card",viewBox:"0 0 68.377 46.279",width:"68.377"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)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:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(2),l=n(u),c=r(1),f=n(c),d=function(e){function t(){return a(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),s(t,[{key:"getViewBox",value:function(){return"0 0 "+this.props.width+" "+this.props.height}},{key:"renderSvgIcon",value:function(){return l["default"].createElement("svg",{className:this.props.className+" svgIcon",width:this.props.width,height:this.props.height,viewBox:this.getViewBox(),style:this.props.style,"aria-hidden":this.props.ariaHidden},l["default"].createElement("title",null,this.props.title),l["default"].createElement("ellipse",{cx:"12.503",cy:"12.485",rx:"12.251",ry:"12.24",fill:this.props.fill}),l["default"].createElement("path",{d:"M13.048,8.85a4.934,4.934,0,0,1,.879.322,0.893,0.893,0,0,0,.475.263,0.771,0.771,0,0,0,.352-0.609,1.481,1.481,0,0,0-.076-0.837,1.18,1.18,0,0,0-1.119-.351,2.931,2.931,0,0,0-.773.123c-0.27.082-.644,0.263-0.486,0.638A1.2,1.2,0,0,0,13.048,8.85Z"}),l["default"].createElement("path",{d:"M12.444,0A12.5,12.5,0,1,0,25,12.5,12.468,12.468,0,0,0,12.444,0ZM5.15,21.271a1.841,1.841,0,0,1-.457-0.562c-1.06-1.7-1.658-7.7-.287-9.746,0.434-.714.9-0.386,0.744,0.17a4.505,4.505,0,0,0,.5,3.278c0.949,2,3.873,4.771,4.646,5.777a7.852,7.852,0,0,1,1.764,3.319c-0.006.258-.059,0.427-0.516,0.386A11.339,11.339,0,0,1,5.15,21.271Zm18.344-5.7c-0.094.293-.205,0.661-0.445,0.492a10.744,10.744,0,0,0-2.39-1.317c-0.053-.012-0.047-0.082-0.029-0.123a1.67,1.67,0,0,0,.129-0.468,1.228,1.228,0,0,1,.228-0.41,4.186,4.186,0,0,0,.434-1.5,3.646,3.646,0,0,0-.07-1.188A2.7,2.7,0,0,1,21.2,10.53c0-.17.082-0.345,0.1-0.544a1.614,1.614,0,0,0-1.072-1.235c-0.9-.416-1.851-0.79-2.818-1.305a11.027,11.027,0,0,1-1.424-1.258,10.435,10.435,0,0,0-2.437-1.054,0.228,0.228,0,0,1-.193-0.193,5.677,5.677,0,0,0-2.127-3.3c-0.4-.31.047-0.486,0.6-0.515A11.389,11.389,0,0,1,23.494,15.57Zm-3.527-3.834c-0.006-.047-0.023-0.193-0.023-0.222a0.6,0.6,0,0,1,.24-0.246,2.091,2.091,0,0,1,.334-0.234c0.029-.018.053,0.023,0.059,0.035a3.181,3.181,0,0,1-.029,2.254c-0.029.059-.076,0.082-0.094,0.041a1.454,1.454,0,0,0-.492-0.615,0.115,0.115,0,0,1-.035-0.1A2.749,2.749,0,0,0,19.967,11.736ZM9.491,6.4a3.811,3.811,0,0,1,3.029-.433,13.8,13.8,0,0,1,2.15.784c0.685,0.316,1.172.9,1.81,1.247,0.8,0.445,1.91.656,2.76,1.071a0.8,0.8,0,0,1,.5.451,3.059,3.059,0,0,1-1.623-.023,0.524,0.524,0,0,0-.615.094,0.906,0.906,0,0,0,.059.749,0.979,0.979,0,0,0,.469.509c0.275,0.129.656,0.135,0.908,0.281a1.227,1.227,0,0,1,.182,1.6,2.206,2.206,0,0,1-1.746.4,5.289,5.289,0,0,0-2,.105,2.328,2.328,0,0,0-1.043,1,0.12,0.12,0,0,1-.17.023c-1.775-1.065-4.019-1.616-5.214-3.307a3.638,3.638,0,0,1-.58-1.528A3.018,3.018,0,0,1,9.491,6.4ZM6.72,3.214c-0.352-.041-0.357-0.3-0.205-0.4a8.284,8.284,0,0,1,1.623-.837A0.8,0.8,0,0,1,8.589,1.9a4.956,4.956,0,0,1,2.086.972c1.043,0.743,1.974,2.16,1.353,2.043a5.866,5.866,0,0,0-.68-0.1c-0.469-.041-0.779.006-1-0.018a0.434,0.434,0,0,1-.234-0.123A5.867,5.867,0,0,0,6.72,3.214Zm9.292,11.473a0.675,0.675,0,0,1,.3-0.41,3.043,3.043,0,0,1,1.242-.222,3.994,3.994,0,0,0,1.26-.2,0.773,0.773,0,0,1,.691-0.217,0.5,0.5,0,0,1,.264.322,1.25,1.25,0,0,1,.07.486,13.41,13.41,0,0,1-.58,1.352,0.451,0.451,0,0,1-.07.246,2.132,2.132,0,0,1-1.652.217,2.074,2.074,0,0,1-.592-0.1,1.145,1.145,0,0,1-.293-0.24,6.619,6.619,0,0,1-.51-0.544,0.851,0.851,0,0,1-.228-0.293A1.2,1.2,0,0,1,16.012,14.686ZM4.09,4.812a0.521,0.521,0,0,1,.27-0.17,6.908,6.908,0,0,1,4.365.369C8.982,5.128,9.1,5.286,8.929,5.4a8.935,8.935,0,0,0-1.236.89,0.562,0.562,0,0,1-.4.082,6.571,6.571,0,0,0-4.1.486C2.883,6.983,2.6,6.808,2.742,6.562A10.008,10.008,0,0,1,4.09,4.812Zm-2.818,5.45a0.49,0.49,0,0,1,.123-0.3,7.869,7.869,0,0,1,4.412-2.54,0.628,0.628,0,0,1,.644.111c0.1,0.24-.1.38-0.34,0.515-4.166,2.488-3.873,6.187-3.914,7.7,0.012,0.62-.434.732-0.545,0.439A10.877,10.877,0,0,1,1.271,10.261Zm5.25,2.909a4.944,4.944,0,0,1,.07-4c0.164-.31.322-0.509,0.533-0.451,0.228,0.064.281,0.293,0.311,0.726,0.228,3.565,2.39,4.771,5.1,6.029a15.622,15.622,0,0,1,6.615,5.368c0.311,0.439.352,0.7,0.006,0.954a11.145,11.145,0,0,1-4.019,1.826c-0.246.059-.5,0.012-0.727-0.55C12.122,17.168,8.279,17.437,6.521,13.17Zm14.19,7.252c-0.352.345-.545,0.076-0.662-0.146a10.28,10.28,0,0,0-1.734-2.745,0.178,0.178,0,0,1,.164-0.3,1.287,1.287,0,0,0,.691-0.111,1.383,1.383,0,0,0,.633-0.9c0.1-.339.1-0.445,0.311-0.462a0.632,0.632,0,0,1,.205.023,2.5,2.5,0,0,1,.732.433,6.868,6.868,0,0,1,1.412,1.539,0.4,0.4,0,0,1-.047.4A11.284,11.284,0,0,1,20.711,20.423Z"}))}},{key:"renderInverseSvgIcon",value:function(){return l["default"].createElement("svg",{className:this.props.className+" svgIcon",width:this.props.width,height:this.props.height,viewBox:this.getViewBox(),style:this.props.style,"aria-hidden":this.props.ariaHidden},l["default"].createElement("title",null,this.props.title),l["default"].createElement("path",{d:"M19.87,8.731c-0.93-.457-2.136-0.685-3.011-1.176-0.7-.387-1.226-1.024-1.97-1.37a14.467,14.467,0,0,0-2.349-.858,4.167,4.167,0,0,0-3.307.477,3.358,3.358,0,0,0-1.247,3.32A3.951,3.951,0,0,0,8.619,10.8c1.309,1.854,3.755,2.456,5.691,3.625a0.126,0.126,0,0,0,.178-0.016L14.5,14.4a2.572,2.572,0,0,1,1.137-1.1,5.759,5.759,0,0,1,2.191-.118,2.41,2.41,0,0,0,1.908-.443,1.36,1.36,0,0,0-.2-1.757c-0.276-.159-0.689-0.166-0.992-0.3a1.049,1.049,0,0,1-.51-0.56,1.012,1.012,0,0,1-.062-0.823,0.572,0.572,0,0,1,.675-0.1,3.42,3.42,0,0,0,1.771.028A0.872,0.872,0,0,0,19.87,8.731Zm-4.885-.27a0.84,0.84,0,0,1-.386.664,0.906,0.906,0,0,1-.517-0.291,5.687,5.687,0,0,0-.958-0.353,1.245,1.245,0,0,1-.806-0.5c-0.172-.415.234-0.609,0.53-0.706A3.233,3.233,0,0,1,13.69,7.14a1.265,1.265,0,0,1,1.219.387,1.855,1.855,0,0,1,.076.934h0Z",transform:"translate(0 0)",fill:this.props.inverseFill}),l["default"].createElement("path",{d:"M0.262,10.039A0.554,0.554,0,0,1,.4,9.714,8.544,8.544,0,0,1,5.215,6.926a0.661,0.661,0,0,1,.7.125c0.11,0.263-.11.415-0.372,0.567C1,10.35,1.323,14.4,1.275,16.064c0.014,0.678-.475.8-0.6,0.484A12.07,12.07,0,0,1,.262,10.039Z",transform:"translate(0 0)",fill:this.props.inverseFill}),l["default"].createElement("path",{d:"M3.342,4.062a0.587,0.587,0,0,1,.289-0.187,7.477,7.477,0,0,1,4.761.408c0.282,0.125.413,0.3,0.227,0.422a10.347,10.347,0,0,0-1.35.975,0.642,0.642,0,0,1-.441.09A7.209,7.209,0,0,0,2.356,6.3c-0.344.145-.648-0.055-0.489-0.318A11.264,11.264,0,0,1,3.342,4.062Z",transform:"translate(0 0)",fill:this.props.inverseFill}),l["default"].createElement("path",{d:"M6.214,2.305C5.829,2.264,5.829,1.98,5.987,1.87A9.3,9.3,0,0,1,7.758.956a0.868,0.868,0,0,1,.5-0.083,5.4,5.4,0,0,1,2.28,1.065c1.137,0.816,2.15,2.366,1.474,2.241a5.93,5.93,0,0,0-.744-0.111c-0.517-.048-0.847.007-1.089-0.014a0.443,0.443,0,0,1-.255-0.138A6.36,6.36,0,0,0,6.214,2.305Z",transform:"translate(0 0)",fill:this.props.inverseFill}),l["default"].createElement("path",{d:"M24.52,15.856c-0.1.318-.227,0.726-0.482,0.54a11.846,11.846,0,0,0-2.6-1.446c-0.055-.014-0.048-0.09-0.028-0.131a1.752,1.752,0,0,0,.138-0.512,1.251,1.251,0,0,1,.248-0.45,4.545,4.545,0,0,0,.468-1.646,4.133,4.133,0,0,0-.076-1.307,2.725,2.725,0,0,1-.158-0.574c0-.187.09-0.374,0.11-0.595a1.779,1.779,0,0,0-1.171-1.356c-0.978-.457-2.019-0.872-3.073-1.432a12.154,12.154,0,0,1-1.557-1.383,11.185,11.185,0,0,0-2.659-1.155,0.255,0.255,0,0,1-.214-0.214A6.25,6.25,0,0,0,11.141.569C10.707,0.23,11.2.036,11.8,0.009A12.484,12.484,0,0,1,24.52,15.856Z",transform:"translate(0 0)",fill:this.props.inverseFill}),l["default"].createElement("path",{d:"M20.676,11.65c-0.007-.048-0.028-0.214-0.028-0.249a0.69,0.69,0,0,1,.262-0.27,2.766,2.766,0,0,1,.365-0.256c0.034-.021.055,0.028,0.062,0.042a3.471,3.471,0,0,1-.034,2.469c-0.028.062-.083,0.09-0.1,0.042a1.624,1.624,0,0,0-.537-0.678,0.147,0.147,0,0,1-.041-0.111A2.876,2.876,0,0,0,20.676,11.65Z",transform:"translate(0 0)",fill:this.props.inverseFill}),l["default"].createElement("path",{d:"M16.356,14.888a0.757,0.757,0,0,1,.331-0.45,3.224,3.224,0,0,1,1.357-.242,4.209,4.209,0,0,0,1.371-.228,0.831,0.831,0,0,1,.751-0.235,0.545,0.545,0,0,1,.289.353,1.279,1.279,0,0,1,.076.533,16.052,16.052,0,0,1-.634,1.487,0.478,0.478,0,0,1-.076.27,2.322,2.322,0,0,1-1.805.235,1.945,1.945,0,0,1-.648-0.111,1.289,1.289,0,0,1-.324-0.263c-0.214-.2-0.338-0.353-0.558-0.595a1.078,1.078,0,0,1-.255-0.325A2.709,2.709,0,0,1,16.356,14.888Z",transform:"translate(0 0)",fill:this.props.inverseFill}),l["default"].createElement("path",{d:"M4.5,22.116A1.977,1.977,0,0,1,4,21.494c-1.164-1.861-1.812-8.446-.317-10.68,0.475-.782.978-0.422,0.813,0.18a4.977,4.977,0,0,0,.544,3.6c1.033,2.193,4.23,5.236,5.071,6.336a8.635,8.635,0,0,1,1.922,3.645c-0.007.284-.062,0.463-0.558,0.422A12.362,12.362,0,0,1,4.5,22.116Z",transform:"translate(0 0)",fill:this.props.inverseFill}),l["default"].createElement("path",{d:"M5.994,13.228A5.45,5.45,0,0,1,6.07,8.842c0.179-.339.351-0.56,0.579-0.491,0.248,0.069.3,0.325,0.338,0.8,0.255,3.915,2.611,5.229,5.567,6.613a17.018,17.018,0,0,1,7.22,5.887c0.338,0.477.386,0.768,0.007,1.044a12.064,12.064,0,0,1-4.389,2c-0.269.062-.551,0.014-0.792-0.609C12.105,17.613,7.909,17.9,5.994,13.228Z",transform:"translate(0 0)",fill:this.props.inverseFill}),l["default"].createElement("path",{d:"M21.482,21.182c-0.379.38-.6,0.083-0.723-0.166A11.3,11.3,0,0,0,18.864,18a0.194,0.194,0,0,1,.179-0.332,1.341,1.341,0,0,0,.751-0.125,1.519,1.519,0,0,0,.689-0.982c0.1-.374.11-0.484,0.338-0.512a0.68,0.68,0,0,1,.227.028,2.921,2.921,0,0,1,.8.477,7.656,7.656,0,0,1,1.543,1.688,0.459,0.459,0,0,1-.048.443A12.318,12.318,0,0,1,21.482,21.182Z",transform:"translate(0 0)",fill:this.props.inverseFill}))}},{key:"render",value:function(){return"inverse"!==this.props.type?this.renderSvgIcon():this.renderInverseSvgIcon()}}]),t}(l["default"].Component);d.propTypes={className:f["default"].string,title:f["default"].string,type:f["default"].string,height:f["default"].number,width:f["default"].number,fill:f["default"].string,inverseFill:f["default"].string,style:f["default"].object,ariaHidden:f["default"].bool},d.defaultProps={className:"nyplLionLogo-icon",title:"NYPL Lion Logo",ref:"nyplLionLogoIcon",type:"",height:"50",width:"50",fill:"#FFF",inverseFill:"#000"},t["default"]=d},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.className,r=e.width,n=e.height,a=e.viewBox,o=e.style,s=e.ariaHidden,u=e.title,l=e.fill;return i["default"].createElement("svg",{className:t+" svgIcon",width:r,height:n,viewBox:a,style:o,"aria-hidden":s},i["default"].createElement("title",null,u),i["default"].createElement("g",{className:t+"-text"},i["default"].createElement("g",{className:t+"-text-ny"},i["default"].createElement("path",{d:"M156.36639,26.64949h1.93408l14.21812,20.593v-20.593H174.381V50.5016h-1.82667L158.19274,29.76519V50.5016h-1.82635V26.64949Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M178.14171,41.79879c0-4.83479,2.79354-8.77447,7.34205-8.77447,4.36937,0,6.769,3.50975,6.41048,8.38043h-11.7828v0.394c0.036,3.90364,1.68361,7.48511,5.76653,7.48511a8.46392,8.46392,0,0,0,4.942-1.6117l0.78812,1.46846a9.8233,9.8233,0,0,1-5.80219,1.755C180.577,50.89564,178.14171,46.70533,178.14171,41.79879Zm11.89053-1.934c-0.03568-2.57842-1.36073-5.22886-4.61985-5.22886-2.97264,0-4.69193,2.29208-5.19321,5.22886h9.81306Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M193.899,33.41818h2.00542l4.155,14.21833,4.47647-14.21833h1.82667l4.47679,14.254,4.18995-14.254H216.892L211.73445,50.5016h-1.71894L205.3953,36.10434,200.77545,50.5016h-1.71894Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M233.365,41.51212l-7.98639-14.86264h2.22057l6.76869,12.8929h0.07172l6.76869-12.8929H243.214l-7.915,14.86264V50.5016H233.365V41.51212Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M241.60144,41.97789c0-4.29786,2.29194-8.95357,7.66422-8.95357s7.84333,4.62,7.84333,8.88188c0,4.2975-2.43536,8.98944-7.80764,8.98944C243.92939,50.89564,241.60144,46.27543,241.60144,41.97789Zm13.53778,0c0-3.83227-2.04146-7.342-5.94493-7.342-3.86813,0-5.62308,3.4382-5.62308,7.27032,0,3.868,1.89836,7.3777,5.76582,7.3777C253.24085,49.2839,255.13922,45.84571,255.13922,41.97789Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M260.68578,33.41818h1.86268v2.97264c0.64469-1.25353,2.18453-3.3665,4.5842-3.3665a4.68342,4.68342,0,0,1,1.64757.28648l-0.46591,1.7548a3.56466,3.56466,0,0,0-1.39677-.25066c-2.36363,0-3.90381,2.79371-4.36909,3.79644V50.5016h-1.86268V33.41818Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M272.21742,24.7154h1.86236V50.5016h-1.86236V24.7154Zm2.04111,16.18807,7.48547-7.48529h2.32795l-7.55684,7.48529,7.9507,9.59813h-2.32795Z",transform:"translate(-27.25197 -24.7154)"})),i["default"].createElement("g",{className:t+"-text-public"},i["default"].createElement("path",{d:"M156.40225,62.53555h5.193c5.01407,0,8.16582,2.47119,8.16582,6.733,0,4.29754-2.97264,6.98369-8.38061,6.98369h-3.00833V86.38762h-1.96991V62.53555ZM161.34481,74.569c4.54816,0,6.41052-2.07729,6.41052-5.22886,0-2.97264-1.79067-5.12148-6.33914-5.12148h-3.044V74.569h2.97264Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M172.76837,81.37373V69.30424h1.86271V80.97966c0,2.50723.89514,4.11861,3.5096,4.11861,2.54306,0,4.65554-2.39949,5.22886-3.40219V69.30424h1.862V83.09285a14.41314,14.41314,0,0,0,.32252,3.29478h-1.898a18.73138,18.73138,0,0,1-.2508-2.79354,6.85642,6.85642,0,0,1-5.65845,3.18761C174.16549,86.7817,172.76837,84.45358,172.76837,81.37373Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M189.88744,85.49231V60.60146h1.862V70.88029a6.07292,6.07292,0,0,1,4.47714-1.96974c4.87033,0,7.23432,3.90347,7.23432,8.88171,0,4.79913-3.22344,8.98944-8.45233,8.98944A9.6515,9.6515,0,0,1,189.88744,85.49231ZM201.49116,77.864c0-3.72489-1.43281-7.27032-5.58707-7.27032a6.12767,6.12767,0,0,0-4.15465,1.934V84.48962a7.70565,7.70565,0,0,0,3.33121.68035C199.41366,85.17,201.49116,81.40938,201.49116,77.864Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M207.292,60.60146h1.86271V86.38762H207.292V60.60146Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M214.23944,64.25466a1.41471,1.41471,0,1,1,2.82919,0A1.41558,1.41558,0,1,1,214.23944,64.25466Zm0.46559,5.04958h1.898V86.38762h-1.898V69.30424Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M220.184,77.82795c0-5.40782,3.116-8.91739,7.52112-8.91739a7.42136,7.42136,0,0,1,5.08548,1.79045l-0.96686,1.36094a6.121,6.121,0,0,0-4.1543-1.54c-3.79641,0-5.5157,3.295-5.5157,7.23464,0,3.79623,1.68361,7.41339,5.48,7.41339a6.88911,6.88911,0,0,0,4.36941-1.54l0.82344,1.39677a8.00839,8.00839,0,0,1-5.30059,1.755C222.61969,86.7817,220.184,82.41229,220.184,77.82795Z",transform:"translate(-27.25197 -24.7154)"})),i["default"].createElement("g",{className:t+"-text-library"},i["default"].createElement("path",{d:"M155.86494,122.27422V98.42179h5.08565v19.76915h8.88188v4.08328H155.86494Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M176.00777,102.5764A2.8586,2.8586,0,0,1,173.1065,99.711a2.82221,2.82221,0,0,1,2.90127-2.79354,2.85364,2.85364,0,0,1,2.9366,2.79354A2.88946,2.88946,0,0,1,176.00777,102.5764Zm-2.39967,19.69782V104.83195h4.799v17.44227h-4.799Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M187.36031,96.4877v9.706a6.22015,6.22015,0,0,1,4.26168-1.791c4.36973,0,7.41374,3.008,7.41374,9.0253,0,5.94493-4.0112,9.27574-9.27578,9.27574A16.58426,16.58426,0,0,1,182.597,121.307V96.4877h4.76327Zm0,22.09713a6.72755,6.72755,0,0,0,2.39964.39457c2.65011,0,4.22563-1.96974,4.22563-5.55139,0-3.25913-1.10993-5.26455-3.68867-5.26455a4.14376,4.14376,0,0,0-2.9366,1.325v9.09632Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M212.42937,109.02257a3.39138,3.39138,0,0,0-1.827-.39386c-2.11248,0-3.36615,1.86271-3.79605,2.65012v10.99539H202.043V104.83195h4.7633v2.36431a5.16217,5.16217,0,0,1,4.40506-2.79354,4.7777,4.7777,0,0,1,2.364.46594Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M225.03561,122.27422a9.70593,9.70593,0,0,1-.28684-1.86271,6.43294,6.43294,0,0,1-4.90634,2.29226c-2.97264,0-5.26454-1.79028-5.26454-4.90669,0-4.54851,4.69154-6.19573,9.31143-6.19573h0.609v-1.00291c0-1.5045-.609-2.435-2.82922-2.435a7.36142,7.36142,0,0,0-4.4411,1.64721l-2.07715-2.90091a10.36488,10.36488,0,0,1,7.05553-2.50705c4.76331,0,7.01953,1.82667,7.01953,6.44656v6.26742a23.45627,23.45627,0,0,0,.50128,5.15752h-4.69158Zm-0.53728-7.73627h-0.609c-2.79318,0-4.72727.82412-4.72727,2.86523a1.86412,1.86412,0,0,0,2.11284,1.82635,4.27676,4.27676,0,0,0,3.22344-1.53951V114.538Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M243.44337,109.02257a3.39017,3.39017,0,0,0-1.82632-.39386c-2.11315,0-3.36686,1.86271-3.79676,2.65012v10.99539H233.057V104.83195h4.76331v2.36431a5.16277,5.16277,0,0,1,4.40541-2.79354,4.77608,4.77608,0,0,1,2.36363.46594Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M246.30792,104.83195h5.08548l3.86813,11.497h0.17907l3.54564-11.497h4.90669l-7.19863,19.30392c-1.54019,4.119-3.36686,6.51825-8.12981,6.51825a9.32322,9.32322,0,0,1-2.68612-.32217l0.68038-3.7604a5.485,5.485,0,0,0,1.68325.17879c2.43532,0,3.29481-1.1813,3.97516-3.044l0.64469-1.79031Z",transform:"translate(-27.25197 -24.7154)"}))),i["default"].createElement("g",{className:t+"-lion"},i["default"].createElement("path",{d:"M111.90871,99.19328c-3.7417-1.83124-8.60114-2.74854-12.13721-4.7124-2.7998-1.55231-4.946-4.11652-7.95886-5.498a60.02908,60.02908,0,0,0-9.468-3.45349c-6.25116-1.53778-11.50183.46472-13.323,1.90582A13.4137,13.4137,0,0,0,64.00112,100.774a15.94352,15.94352,0,0,0,2.55627,6.72852c5.27264,7.447,15.14136,9.86646,22.95953,14.56458a0.50625,0.50625,0,0,0,.73907-0.10187c1.31311-1.93127,2.3808-3.48566,4.59235-4.40546,2.24567-.93738,5.7793-0.619,8.82611-0.47076,3.14771,0.1521,6.54541-.14337,7.68689-1.77087,1.36383-1.94238,1.28436-5.85663-.7973-7.05243-1.117-.64368-2.78278-0.6731-3.9975-1.23328a4.3204,4.3204,0,0,1-2.059-2.24237,4.07459,4.07459,0,0,1-.25964-3.31146c0.489-.88025,1.7226-0.63116,2.71332-0.40076,1.9635,0.45068,5.24432.92871,7.13336,0.1001C114.65114,100.89348,112.66127,99.56114,111.90871,99.19328ZM92.18856,98.119c-0.16821.87573-.7019,2.567-1.55566,2.67712-0.86029.1098-1.48022-.81232-2.09686-1.15808a24.4124,24.4124,0,0,0-3.87262-1.41064c-1.17352-.38867-2.78247-0.87018-3.254-1.98981-0.707-1.66663.94434-2.45544,2.13348-2.82123a12.11641,12.11641,0,0,1,3.40045-.54181c2.1485-.10327,4.19965.20435,4.92053,1.55475A6.49319,6.49319,0,0,1,92.18856,98.119Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M32.83333,104.45157a2.29443,2.29443,0,0,1,.54613-1.31607A34.48454,34.48454,0,0,1,52.806,91.93851c1.50521-.21582,2.58985-0.11156,2.83649.49191,0.43235,1.05764-.4436,1.66732-1.49758,2.27736C35.79955,105.672,37.1,121.9711,36.92438,128.639c0.05527,2.72734-1.91432,3.22379-2.40623,1.93891A48.03813,48.03813,0,0,1,32.83333,104.45157Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M45.24681,80.43961a2.19666,2.19666,0,0,1,1.1785-.73891,30.35514,30.35514,0,0,1,19.20314,1.6337c1.14285,0.50578,1.65764,1.2227.90727,1.704a38.83021,38.83021,0,0,0-5.4445,3.92461,2.4715,2.4715,0,0,1-1.782.35665c-5.96657-.78655-9.06564-1.25111-18.03517,2.149-1.37634.57868-2.61425-.20873-1.98084-1.29042A45.71179,45.71179,0,0,1,45.24681,80.43961Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M56.83993,73.40033c-1.54242-.17563-1.56427-1.30393-0.91213-1.74352a37.79982,37.79982,0,0,1,7.13141-3.67693,3.616,3.616,0,0,1,1.99226-.33359c2.016,0.20181,5.35429,1.55906,9.18483,4.292,4.59371,3.27786,8.68043,9.50494,5.94738,9.0009a25.58659,25.58659,0,0,0-3.00191-.43945c-2.07059-.18361-3.42908.02891-4.3831-0.06825a1.96274,1.96274,0,0,1-1.03614-.55044C67.88555,76.40433,63.4065,74.19781,56.83993,73.40033Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M130.64639,127.82663c-0.41362,1.29077-.90482,2.91-1.9576,2.15892a47.305,47.305,0,0,0-10.51423-5.80672c-0.22586-.05055-0.20021-0.36442-0.12054-0.54143a7.76418,7.76418,0,0,0,.56119-2.05533,5.10548,5.10548,0,0,1,1.01156-1.8083,18.619,18.619,0,0,0,1.89907-6.60278,16.56311,16.56311,0,0,0-.30071-5.24067,10.43877,10.43877,0,0,1-.63877-2.31961c0.01245-.73927.36027-1.51387,0.43164-2.38651,0.20819-2.525-2.97853-4.63025-4.71776-5.44156-3.94536-1.84228-8.13861-3.48984-12.39993-5.73812-2.40556-1.26892-4.33617-4.05224-6.26607-5.546-1.94966-1.50432-8.21587-3.9897-10.72015-4.65121a1.03792,1.03792,0,0,1-.86172-0.86328,25.0259,25.0259,0,0,0-9.3712-14.55086c-1.759-1.36679.21341-2.14416,2.63539-2.26232C117.499,62.86187,139.47112,98.00018,130.64639,127.82663Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M115.14271,110.93761c-0.02739-.19436-0.111-0.85254-0.11036-0.98836a2.60871,2.60871,0,0,1,1.04881-1.08393,10.66027,10.66027,0,0,1,1.47176-1.03614c0.13838-.08695.23019,0.114,0.24892,0.15381,1.40748,2.13671.87988,7.41754-.13721,9.92874-0.11795.25534-.33306,0.35473-0.42089,0.16768a6.365,6.365,0,0,0-2.17328-2.71248,0.53647,0.53647,0,0,1-.16314-0.43959A10.78454,10.78454,0,0,0,115.14271,110.93761Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M97.73573,123.93565a3.07547,3.07547,0,0,1,1.33667-1.817c1.28091-.80333,3.40964-0.838,5.46408-0.97864a17.34326,17.34326,0,0,0,5.53425-.90517c0.85722-.39425,1.71461-1.517,3.03915-0.945a2.19649,2.19649,0,0,1,1.15583,1.41653,5.15178,5.15178,0,0,1,.29759,2.13323c-0.19071,2.46342-2.1913,3.66618-2.55122,5.96884a2.05507,2.05507,0,0,1-.29862,1.07563c-1.52756,1.55473-4.54834,1.22774-7.27933.95267a8.69735,8.69735,0,0,1-2.6051-.43856,5.72964,5.72964,0,0,1-1.302-1.04622,30.722,30.722,0,0,1-2.24377-2.38822,4.156,4.156,0,0,1-1.01465-1.30081A6.83012,6.83012,0,0,1,97.73573,123.93565Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M49.90735,152.96743a8.06424,8.06424,0,0,1-2.0101-2.48694c-4.67633-7.4744-7.29718-33.94506-1.27119-42.92361,1.91762-3.14586,3.94919-1.69538,3.274.73615-1.15409,5.45855-.44672,8.51743,2.20759,14.44054,4.1714,8.80221,17.047,21.02289,20.4556,25.45534,5.84308,7.6015,7.7877,13.13937,7.76138,14.63142-0.03154,1.14459-.25115,1.87413-2.25675,1.70475A50.122,50.122,0,0,1,49.90735,152.96743Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M55.95568,117.26983A21.79207,21.79207,0,0,1,56.26125,99.645c0.7188-1.35484,1.42117-2.24,2.33834-1.985,0.998,0.27818,1.22855,1.29978,1.36626,3.19329,1.01553,15.714,10.52044,21.00487,22.459,26.55281,9.41867,4.81489,20.135,10.31952,29.11613,23.65392,1.35938,1.92507,1.55544,3.09321.02079,4.19587A48.8677,48.8677,0,0,1,93.868,163.29216c-1.09244.25566-2.21933,0.06375-3.187-2.43259C80.59868,134.8822,63.671,136.05311,55.95568,117.26983Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M118.40353,149.20773c-1.535,1.5343-2.40553.3315-2.907-.65371a45.56777,45.56777,0,0,0-7.63545-12.10255,0.78694,0.78694,0,0,1,.72767-1.34444,5.49981,5.49981,0,0,0,3.03671-.493,6.08555,6.08555,0,0,0,2.787-3.94433c0.427-1.50695.447-1.95037,1.37041-2.04423a3.03406,3.03406,0,0,1,.90418.10947,10.91687,10.91687,0,0,1,3.21234,1.91465,31.19354,31.19354,0,0,1,6.22659,6.775,1.79563,1.79563,0,0,1-.19539,1.76708A50.13544,50.13544,0,0,1,118.40353,149.20773Z",transform:"translate(-27.25197 -24.7154)",fill:l}),i["default"].createElement("path",{d:"M82.02851,59.23935a55.06858,55.06858,0,1,0,55.25255,55.07377A54.89374,54.89374,0,0,0,82.02851,59.23935ZM49.90735,152.95427a8.06426,8.06426,0,0,1-2.0101-2.48694c-4.67633-7.4744-7.29718-33.9451-1.27119-42.92361,1.91762-3.14586,3.94919-1.69538,3.274.73615-1.15409,5.45855-.44672,8.51743,2.20759,14.44054,4.1714,8.80221,17.047,21.02289,20.4556,25.45534,5.84308,7.6015,7.7877,13.13937,7.76138,14.63142-0.03154,1.14455-.25115,1.87413-2.25675,1.70471A50.12176,50.12176,0,0,1,49.90735,152.95427Zm80.739-25.14079c-0.41362,1.29077-.90482,2.90992-1.9576,2.15892a47.30207,47.30207,0,0,0-10.51423-5.80672c-0.22586-.05059-0.20021-0.36442-0.12054-0.54143a7.76415,7.76415,0,0,0,.56119-2.05533,5.10548,5.10548,0,0,1,1.01156-1.80829,18.61918,18.61918,0,0,0,1.89907-6.60278,16.56311,16.56311,0,0,0-.30071-5.24067,10.43874,10.43874,0,0,1-.63877-2.31961c0.01245-.73927.36027-1.51387,0.43164-2.38652,0.20819-2.525-2.97853-4.63007-4.71776-5.44138-3.94536-1.84228-8.13861-3.48984-12.39993-5.73812-2.40556-1.269-4.33617-4.05224-6.26607-5.546-1.94966-1.50432-8.21587-3.98974-10.72015-4.65121a1.038,1.038,0,0,1-.86172-0.86328,25.02589,25.02589,0,0,0-9.3712-14.55086c-1.759-1.36683.21341-2.14419,2.63539-2.26232C117.499,62.84888,139.47112,97.9872,130.64639,127.81347Zm-15.50368-16.889c-0.02739-.19436-0.111-0.85253-0.11036-0.98836a2.60871,2.60871,0,0,1,1.04881-1.08393,10.66026,10.66026,0,0,1,1.47176-1.03614c0.13838-.08695.23019,0.114,0.24892,0.15381,1.40748,2.13671.87988,7.41754-.13721,9.92874-0.11795.25534-.33306,0.35473-0.42089,0.16768a6.365,6.365,0,0,0-2.17328-2.71248,0.5365,0.5365,0,0,1-.16314-0.43962A10.7843,10.7843,0,0,0,115.14271,110.92445ZM69.02163,87.42221c1.82114-1.44111,7.07185-3.44359,13.323-1.90581a60.02216,60.02216,0,0,1,9.468,3.45363c3.0128,1.3812,5.159,3.94557,7.95883,5.49789,3.5361,1.96385,8.39551,2.88116,12.13721,4.71233,0.75257,0.3679,2.74242,1.70007,2.18591,1.98449-1.889.82862-5.16983,0.3509-7.13332-.10014-0.99077-.23036-2.22436-0.47942-2.71333.40081a4.07468,4.07468,0,0,0,.25963,3.31145,4.32051,4.32051,0,0,0,2.059,2.24238c1.21472,0.56016,2.88048.5896,3.99751,1.23324,2.08165,1.19584,2.16115,5.11006.7973,7.05245-1.14147,1.62749-4.53915,1.923-7.68689,1.7709-3.04678-.14828-6.58043-0.46662-8.82612.47077-2.21156.91976-3.2792,2.47413-4.59232,4.40545a0.50625,0.50625,0,0,1-.73909.10184c-7.81818-4.69814-17.68686-7.11757-22.95953-14.56456a15.94379,15.94379,0,0,1-2.55625-6.72854A13.41361,13.41361,0,0,1,69.02163,87.42221ZM56.83993,73.38734c-1.54242-.17563-1.56427-1.30394-0.91213-1.74356a37.7999,37.7999,0,0,1,7.13141-3.6769,3.616,3.616,0,0,1,1.99226-.33359c2.016,0.20177,5.35429,1.55906,9.18483,4.292,4.59371,3.27782,8.68043,9.5049,5.94738,9.00086a25.59524,25.59524,0,0,0-3.00191-.43941c-2.07059-.18361-3.42908.02891-4.3831-0.06825a1.96255,1.96255,0,0,1-1.03614-.55048C67.88555,76.39134,63.4065,74.18479,56.83993,73.38734Zm40.8958,50.53515a3.07547,3.07547,0,0,1,1.33667-1.817c1.28091-.80333,3.40964-0.838,5.46408-0.97864a17.3433,17.3433,0,0,0,5.53425-.90518c0.85722-.39425,1.71461-1.517,3.03915-0.945a2.1965,2.1965,0,0,1,1.15583,1.41653,5.15179,5.15179,0,0,1,.29759,2.13323c-0.19071,2.46342-2.1913,3.66618-2.55122,5.96884a2.05507,2.05507,0,0,1-.29862,1.07563c-1.52756,1.55473-4.54834,1.22774-7.27933.95268a8.69731,8.69731,0,0,1-2.6051-.43859,5.72851,5.72851,0,0,1-1.302-1.04618,30.72225,30.72225,0,0,1-2.24377-2.38822,4.156,4.156,0,0,1-1.01465-1.30081A6.83011,6.83011,0,0,1,97.73573,123.92249ZM45.24681,80.42659a2.19709,2.19709,0,0,1,1.1785-.73891,30.35515,30.35515,0,0,1,19.20314,1.63373c1.14285,0.50578,1.65764,1.2227.90727,1.704a38.83021,38.83021,0,0,0-5.4445,3.92461,2.4715,2.4715,0,0,1-1.782.35665c-5.96657-.78655-9.06564-1.25111-18.03517,2.149-1.37634.57868-2.61425-.20873-1.98084-1.29042A45.71349,45.71349,0,0,1,45.24681,80.42659Zm-12.404,24.0215a2.29577,2.29577,0,0,1,.54631-1.316A34.484,34.484,0,0,1,52.81575,91.93521c1.505-.21547,2.58967-0.11153,2.83632.49191,0.43232,1.058-.4436,1.66768-1.49741,2.2774-18.34557,10.964-17.04493,27.26345-17.22056,33.931,0.05523,2.72738-1.91434,3.22379-2.40625,1.93926A48.03957,48.03957,0,0,1,32.84285,104.44809Zm23.11943,12.81412a21.79159,21.79159,0,0,1,.30553-17.62467c0.71883-1.35484,1.42121-2.24,2.33834-1.985,0.998,0.27818,1.22859,1.29978,1.3663,3.19314,1.01553,15.714,10.52044,21.00487,22.459,26.55278,9.41867,4.81489,20.135,10.31952,29.11613,23.654,1.35934,1.925,1.55544,3.09318.02079,4.19584a48.8677,48.8677,0,0,1-17.69378,8.03627c-1.09244.25566-2.21936,0.06375-3.18708-2.43256C80.60524,134.87457,63.67758,136.04548,55.96228,117.26221Zm62.44125,31.94758c-1.535,1.5343-2.40553.33154-2.907-.65367a45.56724,45.56724,0,0,0-7.63545-12.10256,0.787,0.787,0,0,1,.72767-1.34448,5.49979,5.49979,0,0,0,3.03671-.49294,6.08554,6.08554,0,0,0,2.787-3.94437c0.427-1.50691.447-1.95033,1.37041-2.04423a3.03522,3.03522,0,0,1,.90418.10947,10.91777,10.91777,0,0,1,3.21234,1.91468,31.19269,31.19269,0,0,1,6.22659,6.77494,1.7957,1.7957,0,0,1-.19539,1.76711A50.13426,50.13426,0,0,1,118.40353,149.20979Z",transform:"translate(-27.25197 -24.7154)"}),i["default"].createElement("path",{d:"M84.67135,98.22743a24.39354,24.39354,0,0,1,3.87228,1.41064c0.61681,0.34572,1.23657,1.26789,2.09726,1.15807,0.85356-.11015,1.38723-1.80138,1.55541-2.67715a6.49165,6.49165,0,0,0-.32458-3.6897c-0.72075-1.35037-2.77207-1.658-4.92038-1.55473a12.1195,12.1195,0,0,0-3.40063.54179c-1.18893.36584-2.84033,1.15463-2.13345,2.82124C81.88892,97.35723,83.49753,97.83874,84.67135,98.22743Z",transform:"translate(-27.25197 -24.7154)"})))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool,style:s["default"].object},u.defaultProps={className:"nyplLionLogo",title:"The New York Public Library",ref:"nyplLionLogo",type:"",height:"144",width:"257",viewBox:"0 0 257 144",fill:"#FFF"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.className,r=e.title,n=e.width,a=e.height,o=e.viewBox,s=e.ariaHidden,u=e.fill,l=e.style;return i["default"].createElement("svg",{className:t+" svgIcon",width:n,height:a,viewBox:o,style:l,"aria-hidden":s},i["default"].createElement("title",null,r),i["default"].createElement("g",{className:t+"-text"},i["default"].createElement("g",{className:t+"-text-ny"},i["default"].createElement("path",{d:"M156.36639,26.64949h1.93408l14.21812,20.593v-20.593H174.381V50.5016h-1.82667L158.19274,29.76519V50.5016h-1.82635V26.64949Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M178.14171,41.79879c0-4.83479,2.79354-8.77447,7.34205-8.77447,4.36937,0,6.769,3.50975,6.41048,8.38043h-11.7828v0.394c0.036,3.90364,1.68361,7.48511,5.76653,7.48511a8.46392,8.46392,0,0,0,4.942-1.6117l0.78812,1.46846a9.8233,9.8233,0,0,1-5.80219,1.755C180.577,50.89564,178.14171,46.70533,178.14171,41.79879Zm11.89053-1.934c-0.03568-2.57842-1.36073-5.22886-4.61985-5.22886-2.97264,0-4.69193,2.29208-5.19321,5.22886h9.81306Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M193.899,33.41818h2.00542l4.155,14.21833,4.47647-14.21833h1.82667l4.47679,14.254,4.18995-14.254H216.892L211.73445,50.5016h-1.71894L205.3953,36.10434,200.77545,50.5016h-1.71894Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M233.365,41.51212l-7.98639-14.86264h2.22057l6.76869,12.8929h0.07172l6.76869-12.8929H243.214l-7.915,14.86264V50.5016H233.365V41.51212Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M241.60144,41.97789c0-4.29786,2.29194-8.95357,7.66422-8.95357s7.84333,4.62,7.84333,8.88188c0,4.2975-2.43536,8.98944-7.80764,8.98944C243.92939,50.89564,241.60144,46.27543,241.60144,41.97789Zm13.53778,0c0-3.83227-2.04146-7.342-5.94493-7.342-3.86813,0-5.62308,3.4382-5.62308,7.27032,0,3.868,1.89836,7.3777,5.76582,7.3777C253.24085,49.2839,255.13922,45.84571,255.13922,41.97789Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M260.68578,33.41818h1.86268v2.97264c0.64469-1.25353,2.18453-3.3665,4.5842-3.3665a4.68342,4.68342,0,0,1,1.64757.28648l-0.46591,1.7548a3.56466,3.56466,0,0,0-1.39677-.25066c-2.36363,0-3.90381,2.79371-4.36909,3.79644V50.5016h-1.86268V33.41818Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M272.21742,24.7154h1.86236V50.5016h-1.86236V24.7154Zm2.04111,16.18807,7.48547-7.48529h2.32795l-7.55684,7.48529,7.9507,9.59813h-2.32795Z",transform:"translate(-31.77892 -24.7154)"})),i["default"].createElement("g",{className:t+"-text-public"},i["default"].createElement("path",{d:"M156.40225,62.53555h5.193c5.01407,0,8.16582,2.47119,8.16582,6.733,0,4.29754-2.97264,6.98369-8.38061,6.98369h-3.00833V86.38762h-1.96991V62.53555ZM161.34481,74.569c4.54816,0,6.41052-2.07729,6.41052-5.22886,0-2.97264-1.79067-5.12148-6.33914-5.12148h-3.044V74.569h2.97264Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M172.76837,81.37373V69.30424h1.86271V80.97966c0,2.50723.89514,4.11861,3.5096,4.11861,2.54306,0,4.65554-2.39949,5.22886-3.40219V69.30424h1.862V83.09285a14.41314,14.41314,0,0,0,.32252,3.29478h-1.898a18.73138,18.73138,0,0,1-.2508-2.79354,6.85642,6.85642,0,0,1-5.65845,3.18761C174.16549,86.7817,172.76837,84.45358,172.76837,81.37373Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M189.88744,85.49231V60.60146h1.862V70.88029a6.07292,6.07292,0,0,1,4.47714-1.96974c4.87033,0,7.23432,3.90347,7.23432,8.88171,0,4.79913-3.22344,8.98944-8.45233,8.98944A9.6515,9.6515,0,0,1,189.88744,85.49231ZM201.49116,77.864c0-3.72489-1.43281-7.27032-5.58707-7.27032a6.12767,6.12767,0,0,0-4.15465,1.934V84.48962a7.70565,7.70565,0,0,0,3.33121.68035C199.41366,85.17,201.49116,81.40938,201.49116,77.864Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M207.292,60.60146h1.86271V86.38762H207.292V60.60146Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M214.23944,64.25466a1.41471,1.41471,0,1,1,2.82919,0A1.41558,1.41558,0,1,1,214.23944,64.25466Zm0.46559,5.04958h1.898V86.38762h-1.898V69.30424Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M220.184,77.82795c0-5.40782,3.116-8.91739,7.52112-8.91739a7.42136,7.42136,0,0,1,5.08548,1.79045l-0.96686,1.36094a6.121,6.121,0,0,0-4.1543-1.54c-3.79641,0-5.5157,3.295-5.5157,7.23464,0,3.79623,1.68361,7.41339,5.48,7.41339a6.88911,6.88911,0,0,0,4.36941-1.54l0.82344,1.39677a8.00839,8.00839,0,0,1-5.30059,1.755C222.61969,86.7817,220.184,82.41229,220.184,77.82795Z",transform:"translate(-31.77892 -24.7154)"})),i["default"].createElement("g",{className:t+"-text-library"},i["default"].createElement("path",{d:"M155.86494,122.27422V98.42179h5.08565v19.76915h8.88188v4.08328H155.86494Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M176.00777,102.5764A2.8586,2.8586,0,0,1,173.1065,99.711a2.82221,2.82221,0,0,1,2.90127-2.79354,2.85364,2.85364,0,0,1,2.9366,2.79354A2.88946,2.88946,0,0,1,176.00777,102.5764Zm-2.39967,19.69782V104.83195h4.799v17.44227h-4.799Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M187.36031,96.4877v9.706a6.22015,6.22015,0,0,1,4.26168-1.791c4.36973,0,7.41374,3.008,7.41374,9.0253,0,5.94493-4.0112,9.27574-9.27578,9.27574A16.58426,16.58426,0,0,1,182.597,121.307V96.4877h4.76327Zm0,22.09713a6.72755,6.72755,0,0,0,2.39964.39457c2.65011,0,4.22563-1.96974,4.22563-5.55139,0-3.25913-1.10993-5.26455-3.68867-5.26455a4.14376,4.14376,0,0,0-2.9366,1.325v9.09632Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M212.42937,109.02257a3.39138,3.39138,0,0,0-1.827-.39386c-2.11248,0-3.36615,1.86271-3.79605,2.65012v10.99539H202.043V104.83195h4.7633v2.36431a5.16217,5.16217,0,0,1,4.40506-2.79354,4.7777,4.7777,0,0,1,2.364.46594Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M225.03561,122.27422a9.70593,9.70593,0,0,1-.28684-1.86271,6.43294,6.43294,0,0,1-4.90634,2.29226c-2.97264,0-5.26454-1.79028-5.26454-4.90669,0-4.54851,4.69154-6.19573,9.31143-6.19573h0.609v-1.00291c0-1.5045-.609-2.435-2.82922-2.435a7.36142,7.36142,0,0,0-4.4411,1.64721l-2.07715-2.90091a10.36488,10.36488,0,0,1,7.05553-2.50705c4.76331,0,7.01953,1.82667,7.01953,6.44656v6.26742a23.45627,23.45627,0,0,0,.50128,5.15752h-4.69158Zm-0.53728-7.73627h-0.609c-2.79318,0-4.72727.82412-4.72727,2.86523a1.86412,1.86412,0,0,0,2.11284,1.82635,4.27676,4.27676,0,0,0,3.22344-1.53951V114.538Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M243.44337,109.02257a3.39017,3.39017,0,0,0-1.82632-.39386c-2.11315,0-3.36686,1.86271-3.79676,2.65012v10.99539H233.057V104.83195h4.76331v2.36431a5.16277,5.16277,0,0,1,4.40541-2.79354,4.77608,4.77608,0,0,1,2.36363.46594Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M246.30792,104.83195h5.08548l3.86813,11.497h0.17907l3.54564-11.497h4.90669l-7.19863,19.30392c-1.54019,4.119-3.36686,6.51825-8.12981,6.51825a9.32322,9.32322,0,0,1-2.68612-.32217l0.68038-3.7604a5.485,5.485,0,0,0,1.68325.17879c2.43532,0,3.29481-1.1813,3.97516-3.044l0.64469-1.79031Z",transform:"translate(-31.77892 -24.7154)"}))),i["default"].createElement("g",{className:t+"-lion",fill:u},i["default"].createElement("path",{d:"M111.90871,99.19328c-3.7417-1.83124-8.60114-2.74854-12.13721-4.7124-2.7998-1.55231-4.946-4.11652-7.95886-5.498a60.02908,60.02908,0,0,0-9.468-3.45349c-6.25116-1.53778-11.50183.46472-13.323,1.90582A13.4137,13.4137,0,0,0,64.00112,100.774a15.94352,15.94352,0,0,0,2.55627,6.72852c5.27264,7.447,15.14136,9.86646,22.95953,14.56458a0.50625,0.50625,0,0,0,.73907-0.10187c1.31311-1.93127,2.3808-3.48566,4.59235-4.40546,2.24567-.93738,5.7793-0.619,8.82611-0.47076,3.14771,0.1521,6.54541-.14337,7.68689-1.77087,1.36383-1.94238,1.28436-5.85663-.7973-7.05243-1.117-.64368-2.78278-0.6731-3.9975-1.23328a4.3204,4.3204,0,0,1-2.059-2.24237,4.07459,4.07459,0,0,1-.25964-3.31146c0.489-.88025,1.7226-0.63116,2.71332-0.40076,1.9635,0.45068,5.24432.92871,7.13336,0.1001C114.65114,100.89348,112.66127,99.56114,111.90871,99.19328ZM92.18856,98.119c-0.16821.87573-.7019,2.567-1.55566,2.67712-0.86029.1098-1.48022-.81232-2.09686-1.15808a24.4124,24.4124,0,0,0-3.87262-1.41064c-1.17352-.38867-2.78247-0.87018-3.254-1.98981-0.707-1.66663.94434-2.45544,2.13348-2.82123a12.11641,12.11641,0,0,1,3.40045-.54181c2.1485-.10327,4.19965.20435,4.92053,1.55475A6.49319,6.49319,0,0,1,92.18856,98.119Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M32.83333,104.45157a2.29443,2.29443,0,0,1,.54613-1.31607A34.48454,34.48454,0,0,1,52.806,91.93851c1.50521-.21582,2.58985-0.11156,2.83649.49191,0.43235,1.05764-.4436,1.66732-1.49758,2.27736C35.79955,105.672,37.1,121.9711,36.92438,128.639c0.05527,2.72734-1.91432,3.22379-2.40623,1.93891A48.03813,48.03813,0,0,1,32.83333,104.45157Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M45.24681,80.43961a2.19666,2.19666,0,0,1,1.1785-.73891,30.35514,30.35514,0,0,1,19.20314,1.6337c1.14285,0.50578,1.65764,1.2227.90727,1.704a38.83021,38.83021,0,0,0-5.4445,3.92461,2.4715,2.4715,0,0,1-1.782.35665c-5.96657-.78655-9.06564-1.25111-18.03517,2.149-1.37634.57868-2.61425-.20873-1.98084-1.29042A45.71179,45.71179,0,0,1,45.24681,80.43961Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M56.83993,73.40033c-1.54242-.17563-1.56427-1.30393-0.91213-1.74352a37.79982,37.79982,0,0,1,7.13141-3.67693,3.616,3.616,0,0,1,1.99226-.33359c2.016,0.20181,5.35429,1.55906,9.18483,4.292,4.59371,3.27786,8.68043,9.50494,5.94738,9.0009a25.58659,25.58659,0,0,0-3.00191-.43945c-2.07059-.18361-3.42908.02891-4.3831-0.06825a1.96274,1.96274,0,0,1-1.03614-.55044C67.88555,76.40433,63.4065,74.19781,56.83993,73.40033Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M130.64639,127.82663c-0.41362,1.29077-.90482,2.91-1.9576,2.15892a47.305,47.305,0,0,0-10.51423-5.80672c-0.22586-.05055-0.20021-0.36442-0.12054-0.54143a7.76418,7.76418,0,0,0,.56119-2.05533,5.10548,5.10548,0,0,1,1.01156-1.8083,18.619,18.619,0,0,0,1.89907-6.60278,16.56311,16.56311,0,0,0-.30071-5.24067,10.43877,10.43877,0,0,1-.63877-2.31961c0.01245-.73927.36027-1.51387,0.43164-2.38651,0.20819-2.525-2.97853-4.63025-4.71776-5.44156-3.94536-1.84228-8.13861-3.48984-12.39993-5.73812-2.40556-1.26892-4.33617-4.05224-6.26607-5.546-1.94966-1.50432-8.21587-3.9897-10.72015-4.65121a1.03792,1.03792,0,0,1-.86172-0.86328,25.0259,25.0259,0,0,0-9.3712-14.55086c-1.759-1.36679.21341-2.14416,2.63539-2.26232C117.499,62.86187,139.47112,98.00018,130.64639,127.82663Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M115.14271,110.93761c-0.02739-.19436-0.111-0.85254-0.11036-0.98836a2.60871,2.60871,0,0,1,1.04881-1.08393,10.66027,10.66027,0,0,1,1.47176-1.03614c0.13838-.08695.23019,0.114,0.24892,0.15381,1.40748,2.13671.87988,7.41754-.13721,9.92874-0.11795.25534-.33306,0.35473-0.42089,0.16768a6.365,6.365,0,0,0-2.17328-2.71248,0.53647,0.53647,0,0,1-.16314-0.43959A10.78454,10.78454,0,0,0,115.14271,110.93761Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M97.73573,123.93565a3.07547,3.07547,0,0,1,1.33667-1.817c1.28091-.80333,3.40964-0.838,5.46408-0.97864a17.34326,17.34326,0,0,0,5.53425-.90517c0.85722-.39425,1.71461-1.517,3.03915-0.945a2.19649,2.19649,0,0,1,1.15583,1.41653,5.15178,5.15178,0,0,1,.29759,2.13323c-0.19071,2.46342-2.1913,3.66618-2.55122,5.96884a2.05507,2.05507,0,0,1-.29862,1.07563c-1.52756,1.55473-4.54834,1.22774-7.27933.95267a8.69735,8.69735,0,0,1-2.6051-.43856,5.72964,5.72964,0,0,1-1.302-1.04622,30.722,30.722,0,0,1-2.24377-2.38822,4.156,4.156,0,0,1-1.01465-1.30081A6.83012,6.83012,0,0,1,97.73573,123.93565Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M49.90735,152.96743a8.06424,8.06424,0,0,1-2.0101-2.48694c-4.67633-7.4744-7.29718-33.94506-1.27119-42.92361,1.91762-3.14586,3.94919-1.69538,3.274.73615-1.15409,5.45855-.44672,8.51743,2.20759,14.44054,4.1714,8.80221,17.047,21.02289,20.4556,25.45534,5.84308,7.6015,7.7877,13.13937,7.76138,14.63142-0.03154,1.14459-.25115,1.87413-2.25675,1.70475A50.122,50.122,0,0,1,49.90735,152.96743Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M55.95568,117.26983A21.79207,21.79207,0,0,1,56.26125,99.645c0.7188-1.35484,1.42117-2.24,2.33834-1.985,0.998,0.27818,1.22855,1.29978,1.36626,3.19329,1.01553,15.714,10.52044,21.00487,22.459,26.55281,9.41867,4.81489,20.135,10.31952,29.11613,23.65392,1.35938,1.92507,1.55544,3.09321.02079,4.19587A48.8677,48.8677,0,0,1,93.868,163.29216c-1.09244.25566-2.21933,0.06375-3.187-2.43259C80.59868,134.8822,63.671,136.05311,55.95568,117.26983Z",transform:"translate(-31.77892 -24.7154)"}),i["default"].createElement("path",{d:"M118.40353,149.20773c-1.535,1.5343-2.40553.3315-2.907-.65371a45.56777,45.56777,0,0,0-7.63545-12.10255,0.78694,0.78694,0,0,1,.72767-1.34444,5.49981,5.49981,0,0,0,3.03671-.493,6.08555,6.08555,0,0,0,2.787-3.94433c0.427-1.50695.447-1.95037,1.37041-2.04423a3.03406,3.03406,0,0,1,.90418.10947,10.91687,10.91687,0,0,1,3.21234,1.91465,31.19354,31.19354,0,0,1,6.22659,6.775,1.79563,1.79563,0,0,1-.19539,1.76708A50.13544,50.13544,0,0,1,118.40353,149.20773Z",transform:"translate(-31.77892 -24.7154)"})))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool,style:s["default"].object},u.defaultProps={className:"nyplLionLogoInverse",title:"The New York Public Library",height:"139",width:"252",viewBox:"0 0 252 139",fill:"#000"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M23.4829,9.5H7.83a1.0143,1.0143,0,1,1,0-2.0285H23.4829A1.0143,1.0143,0,1,1,23.4829,9.5Z"}),i["default"].createElement("path",{d:"M23.4829,19.5285H7.83a1.0143,1.0143,0,1,1,0-2.0285H23.4829A1.0143,1.0143,0,1,1,23.4829,19.5285Z"}),i["default"].createElement("path",{d:"M16.8125,14.5h-9a0.977,0.977,0,0,1-1-.9857A1.0155,1.0155,0,0,1,7.83,12.5h8.7651a1.1951,1.1951,0,0,1,1.2178,1A0.9889,0.9889,0,0,1,16.8125,14.5Z"}),i["default"].createElement("path",{d:"M16.5947,25.4H7.83a1.0143,1.0143,0,1,1,0-2.0285h8.7651A1.0143,1.0143,0,1,1,16.5947,25.4Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"list-icon",title:"NYPL List SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){return"large"===e?i["default"].createElement("g",null,i["default"].createElement("path",{d:"M15.9996,11.594a2.00366,2.00366,0,1,1-2.00366,2.00366A2.00388,2.00388,0,0,1,15.9996,11.594m0-1.68708a3.69114,3.69114,0,1,0,3.69074,3.69074A3.69513,3.69513,0,0,0,15.9996,9.90695"}),i["default"].createElement("path",{d:"M27.23733,10.69471a11.53736,11.53736,0,0,0-2.931-5.21513c-0.03126-.03206-0.0577-0.06732-0.089-0.09938-0.03286-.03286-0.06973-0.06011-0.10259-0.093a11.5287,11.5287,0,0,0-5.22074-2.935,11.3323,11.3323,0,0,0-5.789,0,11.52609,11.52609,0,0,0-5.21994,2.935c-0.03366.03286-.06973,0.06011-0.10259,0.093-0.03206.03206-.05851,0.06732-0.08976,0.09938a11.52831,11.52831,0,0,0-2.93015,5.21513,11.69294,11.69294,0,0,0,0,5.80581,11.52676,11.52676,0,0,0,2.93015,5.21593c0.03126,0.03206.05771,0.06732,0.08976,0.09858,0.03286,0.03366.06893,0.06091,0.10259,0.09377L16,30.02362l8.11482-8.11482c0.03286-.03286.06973-0.06011,0.10259-0.09377,0.03126-.03126.05771-0.06652,0.089-0.09858a11.5358,11.5358,0,0,0,2.931-5.21593,11.693,11.693,0,0,0,0-5.80581M22.79321,20.94463l-3.89912,3.89912L16,27.73784l-2.89489-2.89409L9.206,20.94383l-0.55221-.55221A10.00247,10.00247,0,0,1,8.653,6.8044l0.55381-.553a9.97128,9.97128,0,0,1,13.58562-.0008L23.347,6.8052a10.00228,10.00228,0,0,1-.0008,13.58642Z"})):i["default"].createElement("g",null,i["default"].createElement("path",{d:"M25.70866,11.094a9.9406,9.9406,0,0,0-2.53-4.49511c-0.027-.02763-0.04981-0.058-0.07679-0.08566-0.02837-.02832-0.06019-0.05181-0.08855-0.08013A9.95556,9.95556,0,0,0,18.50669,3.9033a9.79611,9.79611,0,0,0-4.9971,0,9.95331,9.95331,0,0,0-4.5059,2.52975c-0.02906.02832-.06019,0.05181-0.08855,0.08013-0.02767.02763-.0505,0.058-0.07748,0.08566A9.9328,9.9328,0,0,0,6.30831,11.094a10.06419,10.06419,0,0,0,0,5.00424A9.93146,9.93146,0,0,0,8.83765,20.594c0.027,0.02763.04981,0.058,0.07748,0.085,0.02837,0.029.0595,0.0525,0.08855,0.08082l7.0048,6.99447,7.0048-6.99447c0.02837-.02832.06019-0.05181,0.08855-0.08082,0.027-.02694.04981-0.05734,0.07679-0.085a9.93926,9.93926,0,0,0,2.53-4.4958,10.06422,10.06422,0,0,0,0-5.00424m-4.20385,8.54915-3.15475,3.1501-2.34158,2.33813-2.34223-2.33813L10.5115,19.64246l-0.44679-.44613a8.07225,8.07225,0,0,1-.00065-10.97711l0.44808-.44678a8.0764,8.0764,0,0,1,10.992-.00065L21.9529,8.21987a8.0721,8.0721,0,0,1-.00065,10.97646Z"}),i["default"].createElement("circle",{cx:"15.9996",cy:"13.59769",r:"2.00366"}))},l=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.size,l=e.style,c=e.fill,f=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon",style:l,fill:c,"aria-hidden":f},i["default"].createElement("title",null,a),u(s))};l.propTypes={size:s["default"].string,className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,style:s["default"].object,fill:s["default"].string,ariaHidden:s["default"].bool},l.defaultProps={className:"locatorIcon",title:"NYPL Locator SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=l},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden,c=e.preserveAspectRatio,f=e.iconId,d=e.svgRole;return i["default"].createElement("svg",{viewBox:t,height:r,width:n,className:o+" svgIcon",style:s,fill:u,"aria-hidden":l,preserveAspectRatio:c,"aria-labelledby":f,role:d},i["default"].createElement("title",{id:f},a),i["default"].createElement("path",{d:"M16.07184,6.52418c1.24313,0,2.29334,1.39823,2.29334,3.05329s-1.05022,3.05329-2.29334,3.05329S13.7785,11.23252,13.7785,9.57746s1.05022-3.05329,2.29334-3.05329m0-1.8c-2.26069,0-4.09334,2.17289-4.09334,4.85329s1.83265,4.85329,4.09334,4.85329,4.09334-2.17289,4.09334-4.85329-1.83265-4.85329-4.09334-4.85329Z",opacity:"0.85"}),i["default"].createElement("path",{d:"M25.28125,27.34375H21a1,1,0,0,1,0-2h4.28125l-2.377-6.2041a.28873.28873,0,0,0-.10547-.11719,47.03461,47.03461,0,0,0-6.7832-.585,48.40643,48.40643,0,0,0-6.957.6084h.00049c.0249,0-.00244.03418-.02246.085l-2.355,6.14551L11,25.34375a1,1,0,0,1,0,2H6.71826a2.04254,2.04254,0,0,1-1.90088-2.791l2.355-6.14551a2.07691,2.07691,0,0,1,1.57617-1.33789,50.4409,50.4409,0,0,1,7.26709-.63184,48.54187,48.54187,0,0,1,7.11816.61621,2.19071,2.19071,0,0,1,1.63184,1.35352l2.417,6.14551a2.04377,2.04377,0,0,1-1.90137,2.791Z",opacity:"0.85"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool,preserveAspectRatio:s["default"].string,iconId:s["default"].string,svgRole:s["default"].string},u.defaultProps={className:"loginIcon",title:"Log in to your account",width:"32",height:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden,c=e.preserveAspectRatio,f=e.iconId,d=e.svgRole;return i["default"].createElement("svg",{viewBox:t,height:r,width:n,className:o+" svgIcon",style:s,fill:u,"aria-hidden":l,preserveAspectRatio:c,"aria-labelledby":f,role:d},i["default"].createElement("title",{id:f},a),i["default"].createElement("ellipse",{cx:"16.07184",cy:"9.57746",rx:"4.09334",ry:"4.85329"}),i["default"].createElement("path",{d:"M25.25882,27.3451,6.61176,27.33725a2.05352,2.05352,0,0,1-1.87843-2.5451l2.46189-6.50245a2.1203,2.1203,0,0,1,1.34706-1.18431,45.76876,45.76876,0,0,1,7.00567-.657c2.94823,0,5.86851.45206,7.09041.53934a2.20375,2.20375,0,0,1,1.97255,1.1098l2.62353,6.64706A2.01818,2.01818,0,0,1,25.25882,27.3451Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool,preserveAspectRatio:s["default"].string,iconId:s["default"].string,svgRole:s["default"].string},u.defaultProps={className:"loginIcon",title:"You are logged in to your account",width:"32",height:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.style,u=e.ariaHidden;return i["default"].createElement("svg",{viewBox:t,height:r,width:n,className:o+" svgIcon",style:s,"aria-hidden":u},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M35.951 9.268a2.826 2.826 0 1 0-4.084 3.906l5.418 5.664H13.187a2.826 2.826 0 0 0 0 5.652h24.258l-5.742 6.222a2.826 2.826 0 0 0 4.154 3.834l11.916-12.917z"}),i["default"].createElement("path",{d:"M45.173 39.56H5.652V5.653h17.366a2.826 2.826 0 0 0 0-5.652H0v45.212h45.173a2.826 2.826 0 0 0 0-5.651z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool},u.defaultProps={className:"logoutIcon",height:"45.212",title:"NYPL Logout SVG Icon",viewBox:"0 0 47.99 45.212",width:"47.99"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M12.25,16a3.738,3.738,0,0,0,1.09839,2.65161l5.30328-5.30328A3.75,3.75,0,0,0,12.25,16Z",fill:"none"}),i["default"].createElement("path",{d:"M16,19.75a3.75,3.75,0,0,0,2.65167-6.40167l-5.30328,5.30328A3.738,3.738,0,0,0,16,19.75Z"}),i["default"].createElement("path",{d:"M24.4411,7.5589A11.93752,11.93752,0,1,0,27.9375,16,11.90013,11.90013,0,0,0,24.4411,7.5589ZM12.25,16a3.75013,3.75013,0,1,1,1.09839,2.65161A3.75,3.75,0,0,1,12.25,16ZM16,26.9375a10.85556,10.85556,0,0,1-6.99524-2.52808l4.41772-4.41772a4.75228,4.75228,0,0,0,6.56927-6.56927l4.41766-4.41766A10.9387,10.9387,0,0,1,16,26.9375Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"media-blu-ray-icon",title:"NYPL Media/Blu-Ray SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden;return i["default"].createElement("svg",{viewBox:t,width:n,height:r,className:o+" svgIcon",fill:u,style:s,"aria-hidden":l},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M26.22029,10.40244H5.77971a1.09221,1.09221,0,1,1,0-2.18441H26.22029A1.09221,1.09221,0,1,1,26.22029,10.40244Z"}),i["default"].createElement("path",{d:"M26.22029,16.95568H5.77971a1.09221,1.09221,0,0,1,0-2.18441H26.22029A1.09221,1.09221,0,0,1,26.22029,16.95568Z"}),i["default"].createElement("path",{d:"M26.22029,23.782H5.77971a1.09221,1.09221,0,1,1,0-2.18441H26.22029A1.09221,1.09221,0,1,1,26.22029,23.782Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool},u.defaultProps={className:"menuIcon",title:"NYPL Hamburger Menu SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.title,o=e.viewBox,s=e.width;return i["default"].createElement("svg",{"aria-hidden":t,className:r+" svgIcon",height:n,viewBox:o,width:s},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M9.826 45.06l28.026-28.026-6.964-6.964L2.862 38.096 0 47.923l9.826-2.863zM33.409 7.626l2.792-2.792 6.965 6.964-2.793 2.793zM38.243 2.793L41.036 0 48 6.965l-2.792 2.792z"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,title:s["default"].string,width:s["default"].string,viewBox:s["default"].string},u.defaultProps={ariaHidden:!0,className:"filter-cancel-icon",height:"47.923",title:"NYPL Cancel Filter SVG Icon",width:"48",viewBox:"0 0 48 47.923"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.className,r=e.title,n=e.height,a=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden;return i["default"].createElement("svg",{width:a,height:n,viewBox:o,className:t+" svgIcon",fill:s,"aria-hidden":u},i["default"].createElement("title",null,r),i["default"].createElement("path",{d:"M7.96875,4.64844A3.32031,3.32031,0,1,1,4.64844,7.96875,3.32407,3.32407,0,0,1,7.96875,4.64844M7.96875,0A7.96875,7.96875,0,1,0,15.9375,7.96875,7.96875,7.96875,0,0,0,7.96875,0Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"radioActiveIcon",title:"NYPL Radio Active Icon",height:"16px",width:"16px",viewBox:"0 0 16 16",fill:"#000"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.className,r=e.title,n=e.height,a=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden;return i["default"].createElement("svg",{width:a,height:n,viewBox:o,className:t+" svgIcon",fill:s,"aria-hidden":u},i["default"].createElement("title",null,r),i["default"].createElement("path",{d:"M7.96875,1A6.96875,6.96875,0,1,1,1,7.96875,6.97663,6.97663,0,0,1,7.96875,1m0-1A7.96875,7.96875,0,1,0,15.9375,7.96875,7.96873,7.96873,0,0,0,7.96875,0Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"radioInactiveIcon",title:"NYPL Radio Inactive Icon",height:"16px",width:"16px",viewBox:"0 0 16 16",fill:"#000"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.fill,u=e.ariaHidden,l=e.labelledById;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":u,"aria-labelledby":l,fill:s},i["default"].createElement("title",{id:l},a),i["default"].createElement("path",{d:"M10.96075,11l4.60907-3.19434a1,1,0,0,0-1.13965-1.64355L5.939,12.04688l8.83594,6.248a0.99981,0.99981,0,0,0,1.1543-1.63281L10.75061,13H23v8H6a1,1,0,0,0,0,2H25V11H10.96075Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool,labelledById:s["default"].string.isRequired},u.defaultProps={ariaHidden:!0,className:"reset-icon",title:"NYPL Reset SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32",fill:"#000",labelledById:""},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden,u=e.preserveAspectRatio,l=e.iconId,c=e.svgRole;return i["default"].createElement("svg",{viewBox:t,height:r,width:n,className:o+" svgIcon","aria-hidden":s,preserveAspectRatio:u,"aria-labelledby":l,role:c},i["default"].createElement("title",{id:l},a),i["default"].createElement("polygon",{points:"16.959 25.998 27.298 15.707 16.959 5.417 15.026 7.397 22.08 14.548 4.688 14.548 4.687 16.963 22.08 16.963 15.026 24.065 16.959 25.998"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool,preserveAspectRatio:s["default"].string,svgRole:s["default"].string,iconId:s["default"].string},u.defaultProps={ariaHidden:!0,className:"rightArrowIcon",title:"NYPL Right Arrow Icon",width:"32",height:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.fill,a=e.height,o=e.title,s=e.viewBox,u=e.width;return i["default"].createElement("svg",{"aria-hidden":t,className:r+" svgIcon",fill:n,height:a,viewBox:s,width:u},i["default"].createElement("title",null,o),i["default"].createElement("polygon",{points:"13 8.437 20.563 16 13 23.563 11.593 22.155 17.748 16 11.593 9.845 13 8.437"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,fill:s["default"].string,height:s["default"].string,title:s["default"].string,width:s["default"].string,viewBox:s["default"].string},u.defaultProps={ariaHidden:!0,className:"right-wedge-icon",fill:"#000",height:"32",title:"NYPL Right Wedge SVG Icon",width:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden;return i["default"].createElement("svg",{viewBox:t,width:n,height:r,className:o+" svgIcon",fill:u,style:s,"aria-hidden":l},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M25.26014,23.627l-3.76-3.75948a8.53632,8.53632,0,1,0-2.07145,1.85393l3.86877,3.86822A1.38781,1.38781,0,0,0,25.26014,23.627ZM9.109,14.52943a5.75012,5.75012,0,1,1,5.75012,5.74948A5.75662,5.75662,0,0,1,9.109,14.52943Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool},u.defaultProps={ariaHidden:!0,className:"searchIcon",title:"NYPL Search SVG Icon",width:"32",height:"32",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width;return i["default"].createElement("svg",{"aria-hidden":t,"aria-labelledby":a,className:r+" svgIcon",height:n,preserveAspectRatio:o,viewBox:u,width:l},i["default"].createElement("title",{id:a},s),i["default"].createElement("path",{d:"M45.163 50.301l-6.19-32.137a6.754 6.754 0 0 0-6.75-5.289h-.07V6.25A6.25 6.25 0 0 0 25.902 0h-6.5a6.25 6.25 0 0 0-6.25 6.25v6.625h-.102a6.754 6.754 0 0 0-6.75 5.289L.11 50.3a6.568 6.568 0 0 0 6.75 7.574h31.551a6.568 6.568 0 0 0 6.75-7.574zM17.682 6.671a2.235 2.235 0 0 1 2.234-2.234h5.533a2.235 2.235 0 0 1 2.234 2.235v6.203H17.682zm22.925 46.492a2.891 2.891 0 0 1-2.195.962H6.862a2.89 2.89 0 0 1-2.195-.962 2.535 2.535 0 0 1-.62-2.196l6.19-32.137a2.814 2.814 0 0 1 2.814-2.205h.101v5.57a2.235 2.235 0 0 0 2.243 2.234h.06a2.235 2.235 0 0 0 2.227-2.234v-5.57h10.001v5.518a2.235 2.235 0 1 0 4.47 0v-5.518h.07a2.814 2.814 0 0 1 2.814 2.205l6.19 32.137a2.535 2.535 0 0 1-.62 2.196z"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,iconId:s["default"].string.isRequired,preserveAspectRatio:s["default"].string,title:s["default"].string,viewBox:s["default"].string,width:s["default"].string},u.defaultProps={ariaHidden:!0,className:"shopping-bag-icon",height:"45.274",preserveAspectRatio:"xMidYMid meet",title:"shop",viewBox:"0 0 45.274 57.875",width:"57.875"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.className,r=e.title,n=e.height,a=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden;return i["default"].createElement("svg",{width:a,height:n,viewBox:o,className:t+" svgIcon",fill:s,"aria-hidden":u},i["default"].createElement("title",null,r),i["default"].createElement("circle",{cx:"6",cy:"6",r:"6",fill:s}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"smallDotClosedIcon",title:"NYPL Small Dot Closed Icon",height:"12px",width:"12px",viewBox:"0 0 12 12",fill:"#010101"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.className,r=e.title,n=e.height,a=e.width,o=e.viewBox,s=e.fill,u=e.ariaHidden;return i["default"].createElement("svg",{width:a,height:n,viewBox:o,className:t+" svgIcon",fill:s,"aria-hidden":u},i["default"].createElement("title",null,r),i["default"].createElement("path",{d:"M6,2A4,4,0,1,1,2,6,4.00454,4.00454,0,0,1,6,2M6,0a6,6,0,1,0,6,6A6,6,0,0,0,6,0Z",fill:s}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"smallDotOpenIcon",title:"NYPL Small Dot Open Icon",height:"12px",width:"12px",viewBox:"0 0 12 12",fill:"#010101"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.ariaHidden;return i["default"].createElement("svg",{width:n,height:r,viewBox:t,className:o+" svgIcon","aria-hidden":s},i["default"].createElement("title",null,a),i["default"].createElement("path",{d:"M26.45536,26.45536H16.80078L4.92843,14.58216l9.65373-9.65373,11.8732,11.87235v9.65458ZM17.87606,23.859h5.983v-5.983L14.58216,8.5992l-5.983,5.983Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,ariaHidden:s["default"].bool},u.defaultProps={className:"tag-icon",title:"NYPL Tag SVG Icon",width:"24",height:"24",viewBox:"0 0 32 32"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width;return i["default"].createElement("svg",{"aria-hidden":t,"aria-labelledby":a,className:r+" svgIcon",height:n,preserveAspectRatio:o,title:s,viewBox:u,width:l},i["default"].createElement("title",{id:a},s),i["default"].createElement("path",{d:"M68,6.51074a27.99231,27.99231,0,0,1-8.01276,2.18635,13.937,13.937,0,0,0,6.13419-7.68177,28.01282,28.01282,0,0,1-8.859,3.36949A13.94135,13.94135,0,0,0,33.48906,17.04873,39.66941,39.66941,0,0,1,4.73387,2.54149,13.85672,13.85672,0,0,0,9.05141,21.0789a13.94473,13.94473,0,0,1-6.319-1.73673c-.001.058-.0012.11605-.0012.17455a13.91,13.91,0,0,0,11.1911,13.61485,14.05089,14.05089,0,0,1-6.30034.23787,13.95724,13.95724,0,0,0,13.03232,9.6428A28.07735,28.07735,0,0,1,3.328,48.95584,28.53232,28.53232,0,0,1,0,48.762,39.625,39.625,0,0,0,21.38562,55c25.66113,0,39.69344-21.15722,39.69344-39.50546q0-.90295-.04031-1.79619A28.279,28.279,0,0,0,68,6.51074Z"}))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,iconId:s["default"].string.isRequired,preserveAspectRatio:s["default"].string,title:s["default"].string,viewBox:s["default"].string,width:s["default"].string},u.defaultProps={ariaHidden:!0,className:"twitter-icon",height:"68",preserveAspectRatio:"xMidYMid meet",title:"Twitter",viewBox:"0 0 68 55",width:"55"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.ariaHidden,r=e.className,n=e.height,a=e.iconId,o=e.preserveAspectRatio,s=e.title,u=e.viewBox,l=e.width;return i["default"].createElement("svg",{"aria-hidden":t,"aria-labelledby":a,className:r+" svgIcon",height:n,preserveAspectRatio:o,viewBox:u,width:l},i["default"].createElement("title",{id:a},s),i["default"].createElement("g",null,i["default"].createElement("path",{d:"M52.36107,47.9805,65.04781,35.29375a2.97433,2.97433,0,1,0-4.20634-4.20634L48.18214,43.74674,35.509,30.90731a2.97542,2.97542,0,0,0-4.23539,4.1802L43.97471,47.95417,31.095,60.83392a2.97433,2.97433,0,1,0,4.20634,4.20634L48.154,52.18757,60.82695,65.02573a2.9744,2.9744,0,0,0,4.23539-4.17729Z"}),i["default"].createElement("path",{d:"M48.07141,96.142A48.0713,48.0713,0,1,1,82.07922,82.07849h0A47.94915,47.94915,0,0,1,48.07141,96.142Zm0-90.48193A42.41114,42.41114,0,1,0,78.07532,18.06775,42.29216,42.29216,0,0,0,48.07141,5.66Z"})))};u.propTypes={ariaHidden:s["default"].bool,className:s["default"].string,height:s["default"].string,iconId:s["default"].string.isRequired,preserveAspectRatio:s["default"].string,title:s["default"].string,viewBox:s["default"].string,width:s["default"].string},u.defaultProps={ariaHidden:!0,className:"x-close-circle-icon",height:"48",preserveAspectRatio:"xMidYMid meet",title:"close",viewBox:"0 0 98 98",width:"48"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=n(a),o=r(1),s=n(o),u=function(e){var t=e.viewBox,r=e.height,n=e.width,a=e.title,o=e.className,s=e.style,u=e.fill,l=e.ariaHidden,c=e.preserveAspectRatio,f=e.iconId,d=e.svgRole;return i["default"].createElement("svg",{viewBox:t,height:r,width:n,className:o+" svgIcon",style:s,fill:u,"aria-hidden":l,preserveAspectRatio:c,"aria-labelledby":f,role:d},i["default"].createElement("title",{id:f},a),i["default"].createElement("path",{d:"M17.91272,15.97339l5.65689-5.65689A1.32622,1.32622,0,0,0,21.694,8.44093L16.04938,14.0856l-5.65082-5.725A1.32671,1.32671,0,1,0,8.51,10.22454l5.66329,5.73712L8.43038,21.7046a1.32622,1.32622,0,1,0,1.87557,1.87557l5.73088-5.73088,5.65074,5.72441a1.32626,1.32626,0,1,0,1.88852-1.86261Z"}))};u.propTypes={className:s["default"].string,title:s["default"].string,height:s["default"].string,width:s["default"].string,viewBox:s["default"].string,fill:s["default"].string,style:s["default"].object,ariaHidden:s["default"].bool,preserveAspectRatio:s["default"].string,iconId:s["default"].string,svgRole:s["default"].string},u.defaultProps={ariaHidden:!0,className:"x-icon",title:"Close Icon",fill:"#000",height:"32",width:"32",viewBox:"0 0 32 32",preserveAspectRatio:"xMidYMid meet",svgRole:"img"},t["default"]=u},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ShoppingBagIcon=t.PencilIcon=t.LibraryCardIcon=t.EnvelopeIcon=t.TwitterIcon=t.FaceBookIcon=t.RightArrowIcon=t.LeftArrowIcon=t.GenericWedgeIcon=t.BuildingIcon=t.SmallDotOpenIcon=t.SmallDotClosedIcon=t.RadioActiveIcon=t.RadioInactiveIcon=t.LeftWedgeIcon=t.RightWedgeIcon=t.DivideLineIcon=t.CheckSoloIcon=t.SearchIcon=t.LogoutIcon=t.LoginIconSolid=t.LoginIcon=t.MenuIcon=t.LocatorIcon=t.TagIcon=t.EReaderIcon=t.LargePrintIcon=t.DvdDiscIcon=t.AudioDiscIcon=t.MediaBluRayIcon=t.AudioHeadphoneIcon=t.CircleDashIcon=t.ResetIcon=t.DownLoadIcon=t.ApplyIcon=t.GridIcon=t.ListIcon=t.FilterCancelIcon=t.FilterIcon=t.XCloseIcon=t.XIcon=t.DotsIcon=t.BookIcon=t.CarouselCircleIcon=t.LionLogoWithTextInverse=t.LionLogoWithText=t.LionLogoIcon=void 0;var a=r(31),i=n(a),o=r(32),s=n(o),u=r(33),l=n(u),c=r(13),f=n(c),d=r(11),p=n(d),h=r(17),v=n(h),m=r(54),y=n(m),g=r(53),b=n(g),A=r(24),_=n(A),w=r(23),E=n(w),x=r(34),k=n(x),M=r(26),S=n(M),O=r(8),D=n(O),T=r(18),L=n(T),C=r(44),j=n(C),N=r(15),I=n(N),P=r(10),R=n(P),F=r(39),Y=n(F),B=r(9),H=n(B),z=r(19),U=n(z),q=r(27),V=n(q),W=r(20),K=n(W),G=r(51),Q=n(G),J=r(35),Z=n(J),X=r(40),$=n(X),ee=r(36),te=n(ee),re=r(37),ne=n(re),ae=r(38),ie=n(ae),oe=r(47),se=n(oe),ue=r(14),le=n(ue),ce=r(16),fe=n(ce),de=r(46),pe=n(de),he=r(29),ve=n(he),me=r(43),ye=n(me),ge=r(42),be=n(ge),Ae=r(49),_e=n(Ae),we=r(50),Ee=n(we),xe=r(12),ke=n(xe),Me=r(25),Se=n(Me),Oe=r(28),De=n(Oe),Te=r(45),Le=n(Te),Ce=r(22),je=n(Ce),Ne=r(52),Ie=n(Ne),Pe=r(21),Re=n(Pe),Fe=r(30),Ye=n(Fe),Be=r(41),He=n(Be),ze=r(48),Ue=n(ze);t.LionLogoIcon=i["default"],t.LionLogoWithText=s["default"],t.LionLogoWithTextInverse=l["default"],t.CarouselCircleIcon=f["default"],t.BookIcon=p["default"],t.DotsIcon=v["default"],t.XIcon=y["default"],t.XCloseIcon=b["default"],t.FilterIcon=_["default"],t.FilterCancelIcon=E["default"],t.ListIcon=k["default"],t.GridIcon=S["default"],t.ApplyIcon=D["default"],t.DownLoadIcon=L["default"],t.ResetIcon=j["default"],t.CircleDashIcon=I["default"],t.AudioHeadphoneIcon=R["default"],t.MediaBluRayIcon=Y["default"],t.AudioDiscIcon=H["default"],t.DvdDiscIcon=U["default"],t.LargePrintIcon=V["default"],t.EReaderIcon=K["default"],t.TagIcon=Q["default"],t.LocatorIcon=Z["default"],t.MenuIcon=$["default"],t.LoginIcon=te["default"],t.LoginIconSolid=ne["default"],t.LogoutIcon=ie["default"],t.SearchIcon=se["default"],t.CheckSoloIcon=le["default"],t.DivideLineIcon=fe["default"],t.RightWedgeIcon=pe["default"],t.LeftWedgeIcon=ve["default"],t.RadioInactiveIcon=ye["default"],t.RadioActiveIcon=be["default"],t.SmallDotClosedIcon=_e["default"],t.SmallDotOpenIcon=Ee["default"],t.BuildingIcon=ke["default"],t.GenericWedgeIcon=Se["default"],t.LeftArrowIcon=De["default"],t.RightArrowIcon=Le["default"],t.FaceBookIcon=je["default"],t.TwitterIcon=Ie["default"],t.EnvelopeIcon=Re["default"],t.LibraryCardIcon=Ye["default"],t.PencilIcon=He["default"],t.ShoppingBagIcon=Ue["default"]},function(e,t,r){(function(t){"use strict";function n(e,r,n,u,l){if("production"!==t.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var f;try{a("function"==typeof e[c],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",u||"React class",n,c),f=e[c](r,c,u,n,null,o)}catch(e){f=e}if(i(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",n,c,typeof f),f instanceof Error&&!(f.message in s)){s[f.message]=!0;var d=l?l():"";i(!1,"Failed %s type: %s%s",n,f.message,null!=d?d:"")}}}if("production"!==t.env.NODE_ENV)var a=r(5),i=r(7),o=r(6),s={};e.exports=n}).call(t,r(3))},function(e,t,r){"use strict";var n=r(4),a=r(5),i=r(6);e.exports=function(){function e(e,t,r,n,o,s){s!==i&&a(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return r.checkPropTypes=n,r.PropTypes=r,r}},function(e,t,r){(function(t){"use strict";var n=r(4),a=r(5),i=r(7),o=r(6),s=r(56);e.exports=function(e,r){function u(e){var t=e&&(O&&e[O]||e[D]);if("function"==typeof t)return t}function l(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function c(e){this.message=e,this.stack=""}function f(e){function n(n,l,f,d,p,h,v){if(d=d||T,h=h||f,v!==o)if(r)a(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var m=d+":"+f;!s[m]&&u<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",h,d),s[m]=!0,u++)}return null==l[f]?n?new c(null===l[f]?"The "+p+" `"+h+"` is marked as required "+("in `"+d+"`, but its value is `null`."):"The "+p+" `"+h+"` is marked as required in "+("`"+d+"`, but its value is `undefined`.")):null:e(l,f,d,p,h)}if("production"!==t.env.NODE_ENV)var s={},u=0;var l=n.bind(null,!1);return l.isRequired=n.bind(null,!0),l}function d(e){function t(t,r,n,a,i,o){var s=t[r],u=x(s);if(u!==e){var l=k(s);return new c("Invalid "+a+" `"+i+"` of type "+("`"+l+"` supplied to `"+n+"`, expected ")+("`"+e+"`."))}return null}return f(t)}function p(){return f(n.thatReturnsNull)}function h(e){function t(t,r,n,a,i){if("function"!=typeof e)return new c("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s)){var u=x(s);return new c("Invalid "+a+" `"+i+"` of type "+("`"+u+"` supplied to `"+n+"`, expected an array."))}for(var l=0;l<s.length;l++){var f=e(s,l,n,a,i+"["+l+"]",o);if(f instanceof Error)return f}return null}return f(t)}function v(){function t(t,r,n,a,i){var o=t[r];if(!e(o)){var s=x(o);return new c("Invalid "+a+" `"+i+"` of type "+("`"+s+"` supplied to `"+n+"`, expected a single ReactElement."))}return null}return f(t)}function m(e){function t(t,r,n,a,i){if(!(t[r]instanceof e)){var o=e.name||T,s=S(t[r]);return new c("Invalid "+a+" `"+i+"` of type "+("`"+s+"` supplied to `"+n+"`, expected ")+("instance of `"+o+"`."))}return null}return f(t)}function y(e){function r(t,r,n,a,i){for(var o=t[r],s=0;s<e.length;s++)if(l(o,e[s]))return null;var u=JSON.stringify(e);return new c("Invalid "+a+" `"+i+"` of value `"+o+"` "+("supplied to `"+n+"`, expected one of "+u+"."))}return Array.isArray(e)?f(r):("production"!==t.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOf, expected an instance of array."):void 0,n.thatReturnsNull)}function g(e){function t(t,r,n,a,i){if("function"!=typeof e)return new c("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var s=t[r],u=x(s);if("object"!==u)return new c("Invalid "+a+" `"+i+"` of type "+("`"+u+"` supplied to `"+n+"`, expected an object."));for(var l in s)if(s.hasOwnProperty(l)){var f=e(s,l,n,a,i+"."+l,o);if(f instanceof Error)return f}return null}return f(t)}function b(e){function r(t,r,n,a,i){for(var s=0;s<e.length;s++){var u=e[s];if(null==u(t,r,n,a,i,o))return null}return new c("Invalid "+a+" `"+i+"` supplied to "+("`"+n+"`."))}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."):void 0,n.thatReturnsNull;for(var a=0;a<e.length;a++){var s=e[a];if("function"!=typeof s)return i(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",M(s),a),n.thatReturnsNull}return f(r)}function A(){function e(e,t,r,n,a){return w(e[t])?null:new c("Invalid "+n+" `"+a+"` supplied to "+("`"+r+"`, expected a ReactNode."))}return f(e)}function _(e){function t(t,r,n,a,i){var s=t[r],u=x(s);if("object"!==u)return new c("Invalid "+a+" `"+i+"` of type `"+u+"` "+("supplied to `"+n+"`, expected `object`."));for(var l in e){var f=e[l];if(f){var d=f(s,l,n,a,i+"."+l,o);if(d)return d}}return null}return f(t)}function w(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(w);if(null===t||e(t))return!0;var r=u(t);if(!r)return!1;var n,a=r.call(t);if(r!==t.entries){for(;!(n=a.next()).done;)if(!w(n.value))return!1}else for(;!(n=a.next()).done;){var i=n.value;if(i&&!w(i[1]))return!1}return!0;default:return!1}}function E(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}function x(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":E(t,e)?"symbol":t}function k(e){if("undefined"==typeof e||null===e)return""+e;var t=x(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function M(e){var t=k(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function S(e){return e.constructor&&e.constructor.name?e.constructor.name:T}var O="function"==typeof Symbol&&Symbol.iterator,D="@@iterator",T="<<anonymous>>",L={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:p(),arrayOf:h,element:v(),instanceOf:m,node:A(),objectOf:g,oneOf:y,oneOfType:b,shape:_};return c.prototype=Error.prototype,L.checkPropTypes=s,L.PropTypes=L,L}}).call(t,r(3))}])}))},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(49);var i=r(150);var o=r(10);var s=o.List,u=o.Map,l=o.OrderedSet,c=o.Record,f=o.Repeat;var d=l();var p={key:"",type:"unstyled",text:"",characterList:s(),depth:0,data:u()};var h=c(p);var v=function e(t){if(!t){return t}var r=t.characterList,n=t.text;if(n&&!r){t.characterList=s(f(a.EMPTY,n.length))}return t};var m=function(e){n(t,e);function t(t){return e.call(this,v(t))||this}var r=t.prototype;r.getKey=function e(){return this.get("key")};r.getType=function e(){return this.get("type")};r.getText=function e(){return this.get("text")};r.getCharacterList=function e(){return this.get("characterList")};r.getLength=function e(){return this.getText().length};r.getDepth=function e(){return this.get("depth")};r.getData=function e(){return this.get("data")};r.getInlineStyleAt=function e(t){var r=this.getCharacterList().get(t);return r?r.getStyle():d};r.getEntityAt=function e(t){var r=this.getCharacterList().get(t);return r?r.getEntity():null};r.findStyleRanges=function e(t,r){i(this.getCharacterList(),y,t,r)};r.findEntityRanges=function e(t,r){i(this.getCharacterList(),g,t,r)};return t}(h);function y(e,t){return e.getStyle()===t.getStyle()}function g(e,t){return e.getEntity()===t.getEntity()}e.exports=m},function(e,t,r){"use strict";function n(e){if(typeof e=="object"){return Object.keys(e).filter((function(t){return e[t]})).map(a).join(" ")}return Array.prototype.map.call(arguments,a).join(" ")}function a(e){return e.replace(/\//g,"-")}e.exports=n},function(e,t,r){"use strict";function n(e){if(!e||!e.ownerDocument){return false}return e.nodeType===Node.ELEMENT_NODE}e.exports=n},function(e,t,r){"use strict";var n=r(15);var a=55296;var i=56319;var o=56320;var s=57343;var u=/[\uD800-\uDFFF]/;function l(e){return a<=e&&e<=s}function c(e,t){!(0<=t&&t<e.length)?false?undefined:n(false):void 0;if(t+1===e.length){return false}var r=e.charCodeAt(t);var u=e.charCodeAt(t+1);return a<=r&&r<=i&&o<=u&&u<=s}function f(e){return u.test(e)}function d(e,t){return 1+l(e.charCodeAt(t))}function p(e){if(!f(e)){return e.length}var t=0;for(var r=0;r<e.length;r+=d(e,r)){t++}return t}function h(e,t,r){t=t||0;r=r===undefined?Infinity:r||0;if(!f(e)){return e.substr(t,r)}var n=e.length;if(n<=0||t>n||r<=0){return""}var a=0;if(t>0){for(;t>0&&a<n;t--){a+=d(e,a)}if(a>=n){return""}}else if(t<0){for(a=n;t<0&&0<a;t++){a-=d(e,a-1)}if(a<0){a=0}}var i=n;if(r<n){for(i=a;r>0&&i<n;r--){i+=d(e,i)}}return e.substring(a,i)}function v(e,t,r){t=t||0;r=r===undefined?Infinity:r||0;if(t<0){t=0}if(r<0){r=0}var n=Math.abs(r-t);t=t<r?t:r;return h(e,t,n)}function m(e){var t=[];for(var r=0;r<e.length;r+=d(e,r)){t.push(e.codePointAt(r))}return t}var y={getCodePoints:m,getUTF16Length:d,hasSurrogateUnit:f,isCodeUnitInSurrogateRange:l,isSurrogatePair:c,strlen:p,substring:v,substr:h};e.exports=y},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:"44",height:"58",viewBox:"0 0 44 58","aria-hidden":"true"},n.createElement("title",null,"Trash Icon"),n.createElement("g",null,n.createElement("polygon",{points:"1 13 6 58 22 58 38 58 43 13 22 13 1 13"}),n.createElement("path",{d:"M30,7V2a2,2,0,0,0-2-2H16a2,2,0,0,0-2,2V7H0v3H44V7ZM27,7H17V3H27Z"})))};t.default=a},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return true}}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(575);var a=r(187);e.exports=function(e){return n(a(e))}},function(e,t,r){var n=r(4),a=r(286);function i(e){return e!=null&&a(e.length)&&!n(e)}e.exports=i},function(e,t){function r(e){return e}e.exports=r},function(e,t,r){var n=r(1040),a=r(1043);function i(e,t){var r=a(e,t);return n(r)?r:undefined}e.exports=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(0);var o=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.handleSelect=r.handleSelect.bind(r);r.currentTab=r.currentTab.bind(r);r.defaultTab=r.defaultTab.bind(r);r.tabs=r.tabs.bind(r);r.tabClass=r.tabClass.bind(r);r.tabDisplayName=r.tabDisplayName.bind(r);r.renderTab=r.renderTab.bind(r);return r}t.prototype.render=function(){var e=this;var t=this.props.class?"tab-container "+this.props.class:"tab-container";return a.createElement("div",{className:t},a.createElement("ul",{className:"nav nav-tabs"},Object.keys(this.tabs()).map((function(t){return a.createElement("li",{key:t,role:"presentation",className:e.tabClass(t)},a.createElement("a",{href:"javascript:void(0)",onClick:e.handleSelect,"data-tabkey":t},e.tabDisplayName(t)))}))),a.createElement("div",{className:"tab-content"},Object.keys(this.tabs()).map((function(t){return e.renderTab(t,e.tabs()[t])}))))};t.prototype.defaultTab=function(){return Object.keys(this.tabs())[0]};t.prototype.currentTab=function(){return this.props.tab||this.defaultTab()};t.prototype.tabClass=function(e){return this.currentTab()===e?"active":null};t.prototype.tabDisplayName=function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);return t};t.prototype.renderTab=function(e,t){var r=this.currentTab()===e?"block":"none";return a.createElement("div",{style:{display:r},key:e},t)};t.contextTypes={router:i.object.isRequired,pathFor:i.func.isRequired};return t}(a.Component);t.TabContainer=o;t.default=o},function(e,t,r){e.exports={default:r(580),__esModule:true}},function(e,t,r){"use strict";t.__esModule=true;var n=r(1142);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=a.default||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(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(112);var a=s(n);var i=r(52);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((function(e,t){return(0,a.default)(t).map((function(e){return t[e]})).filter((function(t){return e.id===t.droppableId})).sort((function(t,r){return t.page.withoutMargin.center[e.axis.line]-r.page.withoutMargin.center[e.axis.line]}))}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function e(t){return"private-drag-drop-key-do-not-use-store-"+t};var a=t.storeKey=n("store");var i=t.droppableIdKey=n("droppable-id")},function(e,t,r){"use strict";r.r(t);r.d(t,"Accordion",(function(){return pe}));r.d(t,"Alert",(function(){return Ee}));r.d(t,"Badge",(function(){return Se}));r.d(t,"Breadcrumb",(function(){return Ue}));r.d(t,"BreadcrumbItem",(function(){return He}));r.d(t,"Button",(function(){return Ke}));r.d(t,"ButtonGroup",(function(){return $e}));r.d(t,"ButtonToolbar",(function(){return tt}));r.d(t,"Carousel",(function(){return At}));r.d(t,"CarouselItem",(function(){return pt}));r.d(t,"Checkbox",(function(){return kt}));r.d(t,"Clearfix",(function(){return Tt}));r.d(t,"CloseButton",(function(){return be}));r.d(t,"ControlLabel",(function(){return It}));r.d(t,"Col",(function(){return Yt}));r.d(t,"Collapse",(function(){return er}));r.d(t,"Dropdown",(function(){return Sr}));r.d(t,"DropdownButton",(function(){return Lr}));r.d(t,"Fade",(function(){return Rr}));r.d(t,"Form",(function(){return Hr}));r.d(t,"FormControl",(function(){return en}));r.d(t,"FormGroup",(function(){return an}));r.d(t,"Glyphicon",(function(){return mt}));r.d(t,"Grid",(function(){return ln}));r.d(t,"HelpBlock",(function(){return fn}));r.d(t,"Image",(function(){return vn}));r.d(t,"InputGroup",(function(){return _n}));r.d(t,"Jumbotron",(function(){return kn}));r.d(t,"Label",(function(){return Sn}));r.d(t,"ListGroup",(function(){return In}));r.d(t,"ListGroupItem",(function(){return Ln}));r.d(t,"Media",(function(){return na}));r.d(t,"MenuItem",(function(){return sa}));r.d(t,"Modal",(function(){return Wa}));r.d(t,"ModalBody",(function(){return Ea}));r.d(t,"ModalDialog",(function(){return Ma}));r.d(t,"ModalFooter",(function(){return Ta}));r.d(t,"ModalHeader",(function(){return Ia}));r.d(t,"ModalTitle",(function(){return Ya}));r.d(t,"Nav",(function(){return Za}));r.d(t,"Navbar",(function(){return yi}));r.d(t,"NavbarBrand",(function(){return ei}));r.d(t,"NavDropdown",(function(){return Ai}));r.d(t,"NavItem",(function(){return xi}));r.d(t,"Overlay",(function(){return Ti}));r.d(t,"OverlayTrigger",(function(){return Fi}));r.d(t,"PageHeader",(function(){return Bi}));r.d(t,"PageItem",(function(){return Qi}));r.d(t,"Pager",(function(){return Xi}));r.d(t,"Pagination",(function(){return lo}));r.d(t,"Panel",(function(){return Ko}));r.d(t,"PanelGroup",(function(){return fe}));r.d(t,"Popover",(function(){return Zo}));r.d(t,"ProgressBar",(function(){return as}));r.d(t,"Radio",(function(){return us}));r.d(t,"ResponsiveEmbed",(function(){return ds}));r.d(t,"Row",(function(){return ms}));r.d(t,"SafeAnchor",(function(){return Re}));r.d(t,"SplitButton",(function(){return _s}));r.d(t,"Tab",(function(){return zs}));r.d(t,"TabContainer",(function(){return Os}));r.d(t,"TabContent",(function(){return Ns}));r.d(t,"Table",(function(){return Ws}));r.d(t,"TabPane",(function(){return Ys}));r.d(t,"Tabs",(function(){return Xs}));r.d(t,"Thumbnail",(function(){return tu}));r.d(t,"ToggleButton",(function(){return au}));r.d(t,"ToggleButtonGroup",(function(){return lu}));r.d(t,"Tooltip",(function(){return pu}));r.d(t,"Well",(function(){return vu}));r.d(t,"utils",(function(){return a}));var n={};r.r(n);r.d(n,"prefix",(function(){return I}));r.d(n,"bsClass",(function(){return P}));r.d(n,"bsStyles",(function(){return R}));r.d(n,"bsSizes",(function(){return F}));r.d(n,"getClassSet",(function(){return Y}));r.d(n,"splitBsProps",(function(){return z}));r.d(n,"splitBsPropsAndOmit",(function(){return U}));r.d(n,"addStyle",(function(){return q}));r.d(n,"_curry",(function(){return V}));var a={};r.r(a);r.d(a,"bootstrapUtils",(function(){return n}));r.d(a,"createChainedFunction",(function(){return Ce}));r.d(a,"ValidComponentChildren",(function(){return ee}));var i=r(217);var o=r.n(i);function s(){s=o.a||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 s.apply(this,arguments)}var u=r(672);var l=r.n(u);var c=r(673);var f=r.n(c);function d(e,t){d=f.a||function e(t,r){t.__proto__=r;return t};return d(e,t)}function p(e,t){e.prototype=l()(t.prototype);e.prototype.constructor=e;d(e,t)}var h=r(1);var v=r.n(h);var m=r(674);var y=r.n(m);function g(e,t){if(e==null)return{};var r={};var n=y()(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 b=r(2);var A=r.n(b);var _=r(0);var w=r.n(_);var E=r(39);var x=r.n(E);var k=r(166);var M=r.n(k);var S=r(8);var O=r.n(S);var D={LARGE:"large",SMALL:"small",XSMALL:"xsmall"};var T={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"};var L=["lg","md","sm","xs"];var C={SUCCESS:"success",WARNING:"warning",DANGER:"danger",INFO:"info"};var j={DEFAULT:"default",PRIMARY:"primary",LINK:"link",INVERSE:"inverse"};function N(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++){r[n]=arguments[n]}var a=r[r.length-1];if(typeof a==="function"){return e.apply(void 0,r)}return function(t){return e.apply(void 0,r.concat([t]))}}}function I(e,t){var r=(e.bsClass||"").trim();!(r!=null)?false?undefined:O()(false):void 0;return r+(t?"-"+t:"")}var P=N((function(e,t){var r=t.propTypes||(t.propTypes={});var n=t.defaultProps||(t.defaultProps={});r.bsClass=w.a.string;n.bsClass=e;return t}));var R=N((function(e,t,r){if(typeof t!=="string"){r=t;t=undefined}var n=r.STYLES||[];var a=r.propTypes||{};e.forEach((function(e){if(n.indexOf(e)===-1){n.push(e)}}));var i=w.a.oneOf(n);r.STYLES=n;i._values=n;r.propTypes=s({},a,{bsStyle:i});if(t!==undefined){var o=r.defaultProps||(r.defaultProps={});o.bsStyle=t}return r}));var F=N((function(e,t,r){if(typeof t!=="string"){r=t;t=undefined}var n=r.SIZES||[];var a=r.propTypes||{};e.forEach((function(e){if(n.indexOf(e)===-1){n.push(e)}}));var i=[];n.forEach((function(e){var t=T[e];if(t&&t!==e){i.push(t)}i.push(e)}));var o=w.a.oneOf(i);o._values=i;r.SIZES=n;r.propTypes=s({},a,{bsSize:o});if(t!==undefined){if(!r.defaultProps){r.defaultProps={}}r.defaultProps.bsSize=t}return r}));function Y(e){var t;var r=(t={},t[I(e)]=true,t);if(e.bsSize){var n=T[e.bsSize]||e.bsSize;r[I(e,n)]=true}if(e.bsStyle){r[I(e,e.bsStyle)]=true}return r}function B(e){return{bsClass:e.bsClass,bsSize:e.bsSize,bsStyle:e.bsStyle,bsRole:e.bsRole}}function H(e){return e==="bsClass"||e==="bsSize"||e==="bsStyle"||e==="bsRole"}function z(e){var t={};M()(e).forEach((function(e){var r=e[0],n=e[1];if(!H(r)){t[r]=n}}));return[B(e),t]}function U(e,t){var r={};t.forEach((function(e){r[e]=true}));var n={};M()(e).forEach((function(e){var t=e[0],a=e[1];if(!H(t)&&!r[t]){n[t]=a}}));return[B(e),n]}function q(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++){r[n-1]=arguments[n]}R(r,e)}var V=N;function W(e,t,r){var n=0;return v.a.Children.map(e,(function(e){if(!v.a.isValidElement(e)){return e}return t.call(r,e,n++)}))}function K(e,t,r){var n=0;v.a.Children.forEach(e,(function(e){if(!v.a.isValidElement(e)){return}t.call(r,e,n++)}))}function G(e){var t=0;v.a.Children.forEach(e,(function(e){if(!v.a.isValidElement(e)){return}++t}));return t}function Q(e,t,r){var n=0;var a=[];v.a.Children.forEach(e,(function(e){if(!v.a.isValidElement(e)){return}if(t.call(r,e,n++)){a.push(e)}}));return a}function J(e,t,r){var n=0;var a;v.a.Children.forEach(e,(function(e){if(a){return}if(!v.a.isValidElement(e)){return}if(t.call(r,e,n++)){a=e}}));return a}function Z(e,t,r){var n=0;var a=true;v.a.Children.forEach(e,(function(e){if(!a){return}if(!v.a.isValidElement(e)){return}if(!t.call(r,e,n++)){a=false}}));return a}function X(e,t,r){var n=0;var a=false;v.a.Children.forEach(e,(function(e){if(a){return}if(!v.a.isValidElement(e)){return}if(t.call(r,e,n++)){a=true}}));return a}function $(e){var t=[];v.a.Children.forEach(e,(function(e){if(!v.a.isValidElement(e)){return}t.push(e)}));return t}var ee={map:W,forEach:K,count:G,find:J,filter:Q,every:Z,some:X,toArray:$};var te=r(140);var re=r.n(te);var ne=w.a.oneOfType([w.a.string,w.a.number]);function ae(e){return function(t){var r=null;if(!t.generateChildId){for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++){a[i-1]=arguments[i]}r=ne.apply(void 0,[t].concat(a));if(!r&&!t.id){r=new Error("In order to properly initialize the "+e+" in a way that is accessible to assistive technologies "+("(such as screen readers) an `id` or a `generateChildId` prop to "+e+" is required"))}}return r}}function ie(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return re()((function(e,r,n){var a;t.every((function(t){if(!ee.some(e.children,(function(e){return e.props.bsRole===t}))){a=t;return false}return true}));if(a){return new Error("(children) "+n+" - Missing a required child with bsRole: "+(a+". "+n+" must have at least one child of each of ")+("the following bsRoles: "+t.join(", ")))}return null}))}function oe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return re()((function(e,r,n){var a;t.every((function(t){var r=ee.filter(e.children,(function(e){return e.props.bsRole===t}));if(r.length>1){a=t;return false}return true}));if(a){return new Error("(children) "+n+" - Duplicate children detected of bsRole: "+(a+". Only one child each allowed with the following ")+("bsRoles: "+t.join(", ")))}return null}))}var se={accordion:w.a.bool,activeKey:w.a.any,onSelect:w.a.func,role:w.a.string,generateChildId:w.a.func,id:ae("PanelGroup")};var ue={accordion:false};var le={$bs_panelGroup:w.a.shape({getId:w.a.func,headerRole:w.a.string,panelRole:w.a.string,activeKey:w.a.any,onToggle:w.a.func})};var ce=function(e){p(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;t.handleSelect=function(e,r,n){if(r){t.props.onSelect(e,n)}else if(t.props.activeKey===e){t.props.onSelect(null,n)}};return t}var r=t.prototype;r.getChildContext=function e(){var t=this.props,r=t.activeKey,n=t.accordion,a=t.generateChildId,i=t.id;var o=null;if(n){o=a||function(e,t){return i?i+"-"+t+"-"+e:null}}return{$bs_panelGroup:s({getId:o,headerRole:"tab",panelRole:"tabpanel"},n&&{activeKey:r,onToggle:this.handleSelect})}};r.render=function e(){var t=this.props,r=t.accordion,n=t.className,a=t.children,i=g(t,["accordion","className","children"]);var o=U(i,["onSelect","activeKey"]),u=o[0],l=o[1];if(r){l.role=l.role||"tablist"}var c=Y(u);return v.a.createElement("div",s({},l,{className:A()(n,c)}),ee.map(a,(function(e){return Object(h["cloneElement"])(e,{bsStyle:e.props.bsStyle||u.bsStyle})})))};return t}(v.a.Component);ce.propTypes=se;ce.defaultProps=ue;ce.childContextTypes=le;var fe=x()(P("panel-group",ce),{activeKey:"onSelect"});var de=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){return v.a.createElement(fe,s({},this.props,{accordion:true}),this.props.children)};return t}(v.a.Component);var pe=de;var he=r(53);var ve=r.n(he);var me={label:w.a.string.isRequired,onClick:w.a.func};var ye={label:"Close"};var ge=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.label,n=t.onClick;return v.a.createElement("button",{type:"button",className:"close",onClick:n},v.a.createElement("span",{"aria-hidden":"true"},"×"),v.a.createElement("span",{className:"sr-only"},r))};return t}(v.a.Component);ge.propTypes=me;ge.defaultProps=ye;var be=ge;var Ae={onDismiss:w.a.func,closeLabel:w.a.string};var _e={closeLabel:"Close alert"};var we=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t;var r=this.props,n=r.onDismiss,a=r.closeLabel,i=r.className,o=r.children,u=g(r,["onDismiss","closeLabel","className","children"]);var l=z(u),c=l[0],f=l[1];var d=!!n;var p=s({},Y(c),(t={},t[I(c,"dismissable")]=d,t));return v.a.createElement("div",s({},f,{role:"alert",className:A()(i,p)}),d&&v.a.createElement(be,{onClick:n,label:a}),o)};return t}(v.a.Component);we.propTypes=Ae;we.defaultProps=_e;var Ee=R(ve()(C),C.INFO,P("alert",we));var xe={pullRight:w.a.bool};var ke={pullRight:false};var Me=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.hasContent=function e(t){var r=false;v.a.Children.forEach(t,(function(e){if(r){return}if(e||e===0){r=true}}));return r};r.render=function e(){var t=this.props,r=t.pullRight,n=t.className,a=t.children,i=g(t,["pullRight","className","children"]);var o=z(i),u=o[0],l=o[1];var c=s({},Y(u),{"pull-right":r,hidden:!this.hasContent(a)});return v.a.createElement("span",s({},l,{className:A()(n,c)}),a)};return t}(v.a.Component);Me.propTypes=xe;Me.defaultProps=ke;var Se=P("badge",Me);function Oe(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}var De=r(9);var Te=r.n(De);function Le(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return t.filter((function(e){return e!=null})).reduce((function(e,t){if(typeof t!=="function"){throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.")}if(e===null){return t}return function r(){for(var n=arguments.length,a=new Array(n),i=0;i<n;i++){a[i]=arguments[i]}e.apply(this,a);t.apply(this,a)}}),null)}var Ce=Le;var je={href:w.a.string,onClick:w.a.func,onKeyDown:w.a.func,disabled:w.a.bool,role:w.a.string,tabIndex:w.a.oneOfType([w.a.number,w.a.string]),componentClass:Te.a};var Ne={componentClass:"a"};function Ie(e){return!e||e.trim()==="#"}var Pe=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleClick=n.handleClick.bind(Oe(Oe(n)));n.handleKeyDown=n.handleKeyDown.bind(Oe(Oe(n)));return n}var r=t.prototype;r.handleClick=function e(t){var r=this.props,n=r.disabled,a=r.href,i=r.onClick;if(n||Ie(a)){t.preventDefault()}if(n){t.stopPropagation();return}if(i){i(t)}};r.handleKeyDown=function e(t){if(t.key===" "){t.preventDefault();this.handleClick(t)}};r.render=function e(){var t=this.props,r=t.componentClass,n=t.disabled,a=t.onKeyDown,i=g(t,["componentClass","disabled","onKeyDown"]);if(Ie(i.href)){i.role=i.role||"button";i.href=i.href||"#"}if(n){i.tabIndex=-1;i.style=s({pointerEvents:"none"},i.style)}return v.a.createElement(r,s({},i,{onClick:this.handleClick,onKeyDown:Ce(this.handleKeyDown,a)}))};return t}(v.a.Component);Pe.propTypes=je;Pe.defaultProps=Ne;var Re=Pe;var Fe={active:w.a.bool,href:w.a.string,title:w.a.node,target:w.a.string};var Ye={active:false};var Be=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.active,n=t.href,a=t.title,i=t.target,o=t.className,u=g(t,["active","href","title","target","className"]);var l={href:n,title:a,target:i};return v.a.createElement("li",{className:A()(o,{active:r})},r?v.a.createElement("span",u):v.a.createElement(Re,s({},u,l)))};return t}(v.a.Component);Be.propTypes=Fe;Be.defaultProps=Ye;var He=Be;var ze=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=z(n),i=a[0],o=a[1];var u=Y(i);return v.a.createElement("ol",s({},o,{role:"navigation","aria-label":"breadcrumbs",className:A()(r,u)}))};return t}(v.a.Component);ze.Item=He;var Ue=P("breadcrumb",ze);var qe={active:w.a.bool,disabled:w.a.bool,block:w.a.bool,onClick:w.a.func,componentClass:Te.a,href:w.a.string,type:w.a.oneOf(["button","reset","submit"])};var Ve={active:false,block:false,disabled:false};var We=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.renderAnchor=function e(t,r){return v.a.createElement(Re,s({},t,{className:A()(r,t.disabled&&"disabled")}))};r.renderButton=function e(t,r){var n=t.componentClass,a=g(t,["componentClass"]);var i=n||"button";return v.a.createElement(i,s({},a,{type:a.type||"button",className:r}))};r.render=function e(){var t;var r=this.props,n=r.active,a=r.block,i=r.className,o=g(r,["active","block","className"]);var u=z(o),l=u[0],c=u[1];var f=s({},Y(l),(t={active:n},t[I(l,"block")]=a,t));var d=A()(i,f);if(c.href){return this.renderAnchor(c,d)}return this.renderButton(c,d)};return t}(v.a.Component);We.propTypes=qe;We.defaultProps=Ve;var Ke=P("btn",F([D.LARGE,D.SMALL,D.XSMALL],R(ve()(C).concat([j.DEFAULT,j.PRIMARY,j.LINK]),j.DEFAULT,We)));var Ge=r(94);var Qe=r.n(Ge);var Je={vertical:w.a.bool,justified:w.a.bool,block:Qe()(w.a.bool,(function(e){var t=e.block,r=e.vertical;return t&&!r?new Error("`block` requires `vertical` to be set to have any effect"):null}))};var Ze={block:false,justified:false,vertical:false};var Xe=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t;var r=this.props,n=r.block,a=r.justified,i=r.vertical,o=r.className,u=g(r,["block","justified","vertical","className"]);var l=z(u),c=l[0],f=l[1];var d=s({},Y(c),(t={},t[I(c)]=!i,t[I(c,"vertical")]=i,t[I(c,"justified")]=a,t[I(Ke.defaultProps,"block")]=n,t));return v.a.createElement("div",s({},f,{className:A()(o,d)}))};return t}(v.a.Component);Xe.propTypes=Je;Xe.defaultProps=Ze;var $e=P("btn-group",Xe);var et=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=z(n),i=a[0],o=a[1];var u=Y(i);return v.a.createElement("div",s({},o,{role:"toolbar",className:A()(r,u)}))};return t}(v.a.Component);var tt=P("btn-toolbar",et);var rt={componentClass:Te.a};var nt={componentClass:"div"};var at=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);at.propTypes=rt;at.defaultProps=nt;var it=P("carousel-caption",at);var ot=r(17);var st=r.n(ot);var ut=r(675);var lt=r.n(ut);var ct={direction:w.a.oneOf(["prev","next"]),onAnimateOutEnd:w.a.func,active:w.a.bool,animateIn:w.a.bool,animateOut:w.a.bool,index:w.a.number};var ft={active:false,animateIn:false,animateOut:false};var dt=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleAnimateOutEnd=n.handleAnimateOutEnd.bind(Oe(Oe(n)));n.state={direction:null};n.isUnmounted=false;return n}var r=t.prototype;r.componentWillReceiveProps=function e(t){if(this.props.active!==t.active){this.setState({direction:null})}};r.componentDidUpdate=function e(t){var r=this;var n=this.props.active;var a=t.active;if(!n&&a){lt.a.end(st.a.findDOMNode(this),this.handleAnimateOutEnd)}if(n!==a){setTimeout((function(){return r.startAnimation()}),20)}};r.componentWillUnmount=function e(){this.isUnmounted=true};r.handleAnimateOutEnd=function e(){if(this.isUnmounted){return}if(this.props.onAnimateOutEnd){this.props.onAnimateOutEnd(this.props.index)}};r.startAnimation=function e(){if(this.isUnmounted){return}this.setState({direction:this.props.direction==="prev"?"right":"left"})};r.render=function e(){var t=this.props,r=t.direction,n=t.active,a=t.animateIn,i=t.animateOut,o=t.className,u=g(t,["direction","active","animateIn","animateOut","className"]);delete u.onAnimateOutEnd;delete u.index;var l={item:true,active:n&&!a||i};if(r&&n&&a){l[r]=true}if(this.state.direction&&(a||i)){l[this.state.direction]=true}return v.a.createElement("div",s({},u,{className:A()(o,l)}))};return t}(v.a.Component);dt.propTypes=ct;dt.defaultProps=ft;var pt=dt;var ht={glyph:w.a.string.isRequired};var vt=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t;var r=this.props,n=r.glyph,a=r.className,i=g(r,["glyph","className"]);var o=z(i),u=o[0],l=o[1];var c=s({},Y(u),(t={},t[I(u,n)]=true,t));return v.a.createElement("span",s({},l,{className:A()(a,c)}))};return t}(v.a.Component);vt.propTypes=ht;var mt=P("glyphicon",vt);var yt={slide:w.a.bool,indicators:w.a.bool,interval:w.a.number,controls:w.a.bool,pauseOnHover:w.a.bool,wrap:w.a.bool,onSelect:w.a.func,onSlideEnd:w.a.func,activeIndex:w.a.number,defaultActiveIndex:w.a.number,direction:w.a.oneOf(["prev","next"]),prevIcon:w.a.node,prevLabel:w.a.string,nextIcon:w.a.node,nextLabel:w.a.string};var gt={slide:true,interval:5e3,pauseOnHover:true,wrap:true,indicators:true,controls:true,prevIcon:v.a.createElement(mt,{glyph:"chevron-left"}),prevLabel:"Previous",nextIcon:v.a.createElement(mt,{glyph:"chevron-right"}),nextLabel:"Next"};var bt=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleMouseOver=n.handleMouseOver.bind(Oe(Oe(n)));n.handleMouseOut=n.handleMouseOut.bind(Oe(Oe(n)));n.handlePrev=n.handlePrev.bind(Oe(Oe(n)));n.handleNext=n.handleNext.bind(Oe(Oe(n)));n.handleItemAnimateOutEnd=n.handleItemAnimateOutEnd.bind(Oe(Oe(n)));var a=t.defaultActiveIndex;n.state={activeIndex:a!=null?a:0,previousActiveIndex:null,direction:null};n.isUnmounted=false;return n}var r=t.prototype;r.componentDidMount=function e(){this.waitForNext()};r.componentWillReceiveProps=function e(t){var r=this.getActiveIndex();if(t.activeIndex!=null&&t.activeIndex!==r){clearTimeout(this.timeout);this.setState({previousActiveIndex:r,direction:t.direction!=null?t.direction:this.getDirection(r,t.activeIndex)})}if(t.activeIndex==null&&this.state.activeIndex>=t.children.length){this.setState({activeIndex:0,previousActiveIndex:null,direction:null})}};r.componentWillUnmount=function e(){clearTimeout(this.timeout);this.isUnmounted=true};r.getActiveIndex=function e(){var t=this.props.activeIndex;return t!=null?t:this.state.activeIndex};r.getDirection=function e(t,r){if(t===r){return null}return t>r?"prev":"next"};r.handleItemAnimateOutEnd=function e(){var t=this;this.setState({previousActiveIndex:null,direction:null},(function(){t.waitForNext();if(t.props.onSlideEnd){t.props.onSlideEnd()}}))};r.handleMouseOut=function e(){if(this.isPaused){this.play()}};r.handleMouseOver=function e(){if(this.props.pauseOnHover){this.pause()}};r.handleNext=function e(t){var r=this.getActiveIndex()+1;var n=ee.count(this.props.children);if(r>n-1){if(!this.props.wrap){return}r=0}this.select(r,t,"next")};r.handlePrev=function e(t){var r=this.getActiveIndex()-1;if(r<0){if(!this.props.wrap){return}r=ee.count(this.props.children)-1}this.select(r,t,"prev")};r.pause=function e(){this.isPaused=true;clearTimeout(this.timeout)};r.play=function e(){this.isPaused=false;this.waitForNext()};r.select=function e(t,r,n){clearTimeout(this.timeout);if(this.isUnmounted){return}var a=this.props.slide?this.getActiveIndex():null;n=n||this.getDirection(a,t);var i=this.props.onSelect;if(i){if(i.length>1){if(r){r.persist();r.direction=n}else{r={direction:n}}i(t,r)}else{i(t)}}if(this.props.activeIndex==null&&t!==a){if(this.state.previousActiveIndex!=null){return}this.setState({activeIndex:t,previousActiveIndex:a,direction:n})}};r.waitForNext=function e(){var t=this.props,r=t.slide,n=t.interval,a=t.activeIndex;if(!this.isPaused&&r&&n&&a==null){this.timeout=setTimeout(this.handleNext,n)}};r.renderControls=function e(t){var r=t.wrap,n=t.children,a=t.activeIndex,i=t.prevIcon,o=t.nextIcon,s=t.bsProps,u=t.prevLabel,l=t.nextLabel;var c=I(s,"control");var f=ee.count(n);return[(r||a!==0)&&v.a.createElement(Re,{key:"prev",className:A()(c,"left"),onClick:this.handlePrev},i,u&&v.a.createElement("span",{className:"sr-only"},u)),(r||a!==f-1)&&v.a.createElement(Re,{key:"next",className:A()(c,"right"),onClick:this.handleNext},o,l&&v.a.createElement("span",{className:"sr-only"},l))]};r.renderIndicators=function e(t,r,n){var a=this;var i=[];ee.forEach(t,(function(e,t){i.push(v.a.createElement("li",{key:t,className:t===r?"active":null,onClick:function e(r){return a.select(t,r)}})," ")}));return v.a.createElement("ol",{className:I(n,"indicators")},i)};r.render=function e(){var t=this;var r=this.props,n=r.slide,a=r.indicators,i=r.controls,o=r.wrap,u=r.prevIcon,l=r.prevLabel,c=r.nextIcon,f=r.nextLabel,d=r.className,p=r.children,m=g(r,["slide","indicators","controls","wrap","prevIcon","prevLabel","nextIcon","nextLabel","className","children"]);var y=this.state,b=y.previousActiveIndex,_=y.direction;var w=U(m,["interval","pauseOnHover","onSelect","onSlideEnd","activeIndex","defaultActiveIndex","direction"]),E=w[0],x=w[1];var k=this.getActiveIndex();var M=s({},Y(E),{slide:n});return v.a.createElement("div",s({},x,{className:A()(d,M),onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut}),a&&this.renderIndicators(p,k,E),v.a.createElement("div",{className:I(E,"inner")},ee.map(p,(function(e,r){var a=r===k;var i=n&&r===b;return Object(h["cloneElement"])(e,{active:a,index:r,animateOut:i,animateIn:a&&b!=null&&n,direction:_,onAnimateOutEnd:i?t.handleItemAnimateOutEnd:null})}))),i&&this.renderControls({wrap:o,children:p,activeIndex:k,prevIcon:u,prevLabel:l,nextIcon:c,nextLabel:f,bsProps:E}))};return t}(v.a.Component);bt.propTypes=yt;bt.defaultProps=gt;bt.Caption=it;bt.Item=pt;var At=P("carousel",bt);var _t=r(23);var wt={inline:w.a.bool,disabled:w.a.bool,title:w.a.string,validationState:w.a.oneOf(["success","warning","error",null]),inputRef:w.a.func};var Et={inline:false,disabled:false,title:""};var xt=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.inline,n=t.disabled,a=t.validationState,i=t.inputRef,o=t.className,u=t.style,l=t.title,c=t.children,f=g(t,["inline","disabled","validationState","inputRef","className","style","title","children"]);var d=z(f),p=d[0],h=d[1];var m=v.a.createElement("input",s({},h,{ref:i,type:"checkbox",disabled:n}));if(r){var y;var b=(y={},y[I(p,"inline")]=true,y.disabled=n,y);false?undefined:void 0;return v.a.createElement("label",{className:A()(o,b),style:u,title:l},m,c)}var _=s({},Y(p),{disabled:n});if(a){_["has-"+a]=true}return v.a.createElement("div",{className:A()(o,_),style:u},v.a.createElement("label",{title:l},m,c))};return t}(v.a.Component);xt.propTypes=wt;xt.defaultProps=Et;var kt=P("checkbox",xt);function Mt(e){return""+e.charAt(0).toUpperCase()+e.slice(1)}var St={componentClass:Te.a,visibleXsBlock:w.a.bool,visibleSmBlock:w.a.bool,visibleMdBlock:w.a.bool,visibleLgBlock:w.a.bool};var Ot={componentClass:"div"};var Dt=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);L.forEach((function(e){var t="visible"+Mt(e)+"Block";if(u[t]){l["visible-"+e+"-block"]=true}delete u[t]}));return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);Dt.propTypes=St;Dt.defaultProps=Ot;var Tt=P("clearfix",Dt);var Lt={htmlFor:w.a.string,srOnly:w.a.bool};var Ct={srOnly:false};var jt={$bs_formGroup:w.a.object};var Nt=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.context.$bs_formGroup;var r=t&&t.controlId;var n=this.props,a=n.htmlFor,i=a===void 0?r:a,o=n.srOnly,u=n.className,l=g(n,["htmlFor","srOnly","className"]);var c=z(l),f=c[0],d=c[1];false?undefined:void 0;var p=s({},Y(f),{"sr-only":o});return v.a.createElement("label",s({},d,{htmlFor:i,className:A()(u,p)}))};return t}(v.a.Component);Nt.propTypes=Lt;Nt.defaultProps=Ct;Nt.contextTypes=jt;var It=P("control-label",Nt);var Pt={componentClass:Te.a,xs:w.a.number,sm:w.a.number,md:w.a.number,lg:w.a.number,xsHidden:w.a.bool,smHidden:w.a.bool,mdHidden:w.a.bool,lgHidden:w.a.bool,xsOffset:w.a.number,smOffset:w.a.number,mdOffset:w.a.number,lgOffset:w.a.number,xsPush:w.a.number,smPush:w.a.number,mdPush:w.a.number,lgPush:w.a.number,xsPull:w.a.number,smPull:w.a.number,mdPull:w.a.number,lgPull:w.a.number};var Rt={componentClass:"div"};var Ft=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=[];L.forEach((function(e){function t(t,r){var n=""+e+t;var a=u[n];if(a!=null){l.push(I(o,""+e+r+"-"+a))}delete u[n]}t("","");t("Offset","-offset");t("Push","-push");t("Pull","-pull");var r=e+"Hidden";if(u[r]){l.push("hidden-"+e)}delete u[r]}));return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);Ft.propTypes=Pt;Ft.defaultProps=Rt;var Yt=P("col",Ft);var Bt=r(340);var Ht=r.n(Bt);var zt=r(118);var Ut=r.n(zt);var qt=r(55);var Vt=r.n(qt);var Wt;var Kt={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Gt(e){e.offsetHeight}function Qt(e,t){var r=t["offset"+Mt(e)];var n=Kt[e];return r+Ht()(Ut()(t,n[0]),10)+Ht()(Ut()(t,n[1]),10)}var Jt=(Wt={},Wt[qt["EXITED"]]="collapse",Wt[qt["EXITING"]]="collapsing",Wt[qt["ENTERING"]]="collapsing",Wt[qt["ENTERED"]]="collapse in",Wt);var Zt={in:w.a.bool,mountOnEnter:w.a.bool,unmountOnExit:w.a.bool,appear:w.a.bool,timeout:w.a.number,onEnter:w.a.func,onEntering:w.a.func,onEntered:w.a.func,onExit:w.a.func,onExiting:w.a.func,onExited:w.a.func,dimension:w.a.oneOfType([w.a.oneOf(["height","width"]),w.a.func]),getDimensionValue:w.a.func,role:w.a.string};var Xt={in:false,timeout:300,mountOnEnter:false,unmountOnExit:false,appear:false,dimension:"height",getDimensionValue:Qt};var $t=function(e){p(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;t.handleEnter=function(e){e.style[t.getDimension()]="0"};t.handleEntering=function(e){var r=t.getDimension();e.style[r]=t._getScrollDimensionValue(e,r)};t.handleEntered=function(e){e.style[t.getDimension()]=null};t.handleExit=function(e){var r=t.getDimension();e.style[r]=t.props.getDimensionValue(r,e)+"px";Gt(e)};t.handleExiting=function(e){e.style[t.getDimension()]="0"};return t}var r=t.prototype;r.getDimension=function e(){return typeof this.props.dimension==="function"?this.props.dimension():this.props.dimension};r._getScrollDimensionValue=function e(t,r){return t["scroll"+Mt(r)]+"px"};r.render=function e(){var t=this;var r=this.props,n=r.onEnter,a=r.onEntering,i=r.onEntered,o=r.onExit,u=r.onExiting,l=r.className,c=r.children,f=g(r,["onEnter","onEntering","onEntered","onExit","onExiting","className","children"]);delete f.dimension;delete f.getDimensionValue;var d=Ce(this.handleEnter,n);var p=Ce(this.handleEntering,a);var h=Ce(this.handleEntered,i);var m=Ce(this.handleExit,o);var y=Ce(this.handleExiting,u);return v.a.createElement(Vt.a,s({},f,{"aria-expanded":f.role?f.in:null,onEnter:d,onEntering:p,onEntered:h,onExit:m,onExiting:y}),(function(e,r){return v.a.cloneElement(c,s({},r,{className:A()(l,c.props.className,Jt[e],t.getDimension()==="width"&&"width")}))}))};return t}(v.a.Component);$t.propTypes=Zt;$t.defaultProps=Xt;var er=$t;var tr=r(334);var rr=r.n(tr);var nr=r(92);var ar=r.n(nr);var ir=r(40);var or=r.n(ir);var sr=r(95);var ur=r.n(sr);var lr=r(676);var cr=r.n(lr);var fr=r(335);var dr=r.n(fr);var pr={open:w.a.bool,pullRight:w.a.bool,onClose:w.a.func,labelledBy:w.a.oneOfType([w.a.string,w.a.number]),onSelect:w.a.func,rootCloseEvent:w.a.oneOf(["click","mousedown"])};var hr={bsRole:"menu",pullRight:false};var vr=function(e){p(t,e);function t(t){var r;r=e.call(this,t)||this;r.handleRootClose=r.handleRootClose.bind(Oe(Oe(r)));r.handleKeyDown=r.handleKeyDown.bind(Oe(Oe(r)));return r}var r=t.prototype;r.getFocusableMenuItems=function e(){var t=st.a.findDOMNode(this);if(!t){return[]}return cr()(t.querySelectorAll('[tabIndex="-1"]'))};r.getItemsAndActiveIndex=function e(){var t=this.getFocusableMenuItems();var r=t.indexOf(document.activeElement);return{items:t,activeIndex:r}};r.focusNext=function e(){var t=this.getItemsAndActiveIndex(),r=t.items,n=t.activeIndex;if(r.length===0){return}var a=n===r.length-1?0:n+1;r[a].focus()};r.focusPrevious=function e(){var t=this.getItemsAndActiveIndex(),r=t.items,n=t.activeIndex;if(r.length===0){return}var a=n===0?r.length-1:n-1;r[a].focus()};r.handleKeyDown=function e(t){switch(t.keyCode){case or.a.codes.down:this.focusNext();t.preventDefault();break;case or.a.codes.up:this.focusPrevious();t.preventDefault();break;case or.a.codes.esc:case or.a.codes.tab:this.props.onClose(t,{source:"keydown"});break;default:}};r.handleRootClose=function e(t){this.props.onClose(t,{source:"rootClose"})};r.render=function e(){var t,r=this;var n=this.props,a=n.open,i=n.pullRight,o=n.labelledBy,u=n.onSelect,l=n.className,c=n.rootCloseEvent,f=n.children,d=g(n,["open","pullRight","labelledBy","onSelect","className","rootCloseEvent","children"]);var p=U(d,["onClose"]),h=p[0],m=p[1];var y=s({},Y(h),(t={},t[I(h,"right")]=i,t));return v.a.createElement(dr.a,{disabled:!a,onRootClose:this.handleRootClose,event:c},v.a.createElement("ul",s({},m,{role:"menu",className:A()(l,y),"aria-labelledby":o}),ee.map(f,(function(e){return v.a.cloneElement(e,{onKeyDown:Ce(e.props.onKeyDown,r.handleKeyDown),onSelect:Ce(e.props.onSelect,u)})}))))};return t}(v.a.Component);vr.propTypes=pr;vr.defaultProps=hr;var mr=P("dropdown-menu",vr);var yr={noCaret:w.a.bool,open:w.a.bool,title:w.a.string,useAnchor:w.a.bool};var gr={open:false,useAnchor:false,bsRole:"toggle"};var br=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.noCaret,n=t.open,a=t.useAnchor,i=t.bsClass,o=t.className,u=t.children,l=g(t,["noCaret","open","useAnchor","bsClass","className","children"]);delete l.bsRole;var c=a?Re:Ke;var f=!r;return v.a.createElement(c,s({},l,{role:"button",className:A()(o,i),"aria-haspopup":true,"aria-expanded":n}),u||l.title,f&&" ",f&&v.a.createElement("span",{className:"caret"}))};return t}(v.a.Component);br.propTypes=yr;br.defaultProps=gr;var Ar=P("dropdown-toggle",br);var _r=Ar.defaultProps.bsRole;var wr=mr.defaultProps.bsRole;var Er={dropup:w.a.bool,id:ur()(w.a.oneOfType([w.a.string,w.a.number])),componentClass:Te.a,children:Qe()(ie(_r,wr),oe(wr)),disabled:w.a.bool,pullRight:w.a.bool,open:w.a.bool,defaultOpen:w.a.bool,onToggle:w.a.func,onSelect:w.a.func,role:w.a.string,rootCloseEvent:w.a.oneOf(["click","mousedown"]),onMouseEnter:w.a.func,onMouseLeave:w.a.func};var xr={componentClass:$e};var kr=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleClick=n.handleClick.bind(Oe(Oe(n)));n.handleKeyDown=n.handleKeyDown.bind(Oe(Oe(n)));n.handleClose=n.handleClose.bind(Oe(Oe(n)));n._focusInDropdown=false;n.lastOpenEventType=null;return n}var r=t.prototype;r.componentDidMount=function e(){this.focusNextOnOpen()};r.componentWillUpdate=function e(t){if(!t.open&&this.props.open){this._focusInDropdown=ar()(st.a.findDOMNode(this.menu),rr()(document))}};r.componentDidUpdate=function e(t){var r=this.props.open;var n=t.open;if(r&&!n){this.focusNextOnOpen()}if(!r&&n){if(this._focusInDropdown){this._focusInDropdown=false;this.focus()}}};r.focus=function e(){var t=st.a.findDOMNode(this.toggle);if(t&&t.focus){t.focus()}};r.focusNextOnOpen=function e(){var t=this.menu;if(!t||!t.focusNext){return}if(this.lastOpenEventType==="keydown"||this.props.role==="menuitem"){t.focusNext()}};r.handleClick=function e(t){if(this.props.disabled){return}this.toggleOpen(t,{source:"click"})};r.handleClose=function e(t,r){if(!this.props.open){return}this.toggleOpen(t,r)};r.handleKeyDown=function e(t){if(this.props.disabled){return}switch(t.keyCode){case or.a.codes.down:if(!this.props.open){this.toggleOpen(t,{source:"keydown"})}else if(this.menu.focusNext){this.menu.focusNext()}t.preventDefault();break;case or.a.codes.esc:case or.a.codes.tab:this.handleClose(t,{source:"keydown"});break;default:}};r.toggleOpen=function e(t,r){var n=!this.props.open;if(n){this.lastOpenEventType=r.source}if(this.props.onToggle){this.props.onToggle(n,t,r)}};r.renderMenu=function e(t,r){var n=this;var a=r.id,i=r.onSelect,o=r.rootCloseEvent,u=g(r,["id","onSelect","rootCloseEvent"]);var l=function e(t){n.menu=t};if(typeof t.ref==="string"){false?undefined:void 0}else{l=Ce(t.ref,l)}return Object(h["cloneElement"])(t,s({},u,{ref:l,labelledBy:a,bsClass:I(u,"menu"),onClose:Ce(t.props.onClose,this.handleClose),onSelect:Ce(t.props.onSelect,i,(function(e,t){return n.handleClose(t,{source:"select"})})),rootCloseEvent:o}))};r.renderToggle=function e(t,r){var n=this;var a=function e(t){n.toggle=t};if(typeof t.ref==="string"){false?undefined:void 0}else{a=Ce(t.ref,a)}return Object(h["cloneElement"])(t,s({},r,{ref:a,bsClass:I(r,"toggle"),onClick:Ce(t.props.onClick,this.handleClick),onKeyDown:Ce(t.props.onKeyDown,this.handleKeyDown)}))};r.render=function e(){var t,r=this;var n=this.props,a=n.componentClass,i=n.id,o=n.dropup,u=n.disabled,l=n.pullRight,c=n.open,f=n.onSelect,d=n.role,p=n.bsClass,h=n.className,m=n.rootCloseEvent,y=n.children,b=g(n,["componentClass","id","dropup","disabled","pullRight","open","onSelect","role","bsClass","className","rootCloseEvent","children"]);delete b.onToggle;var _=(t={},t[p]=true,t.open=c,t.disabled=u,t);if(o){_[p]=false;_.dropup=true}return v.a.createElement(a,s({},b,{className:A()(h,_)}),ee.map(y,(function(e){switch(e.props.bsRole){case _r:return r.renderToggle(e,{id:i,disabled:u,open:c,role:d,bsClass:p});case wr:return r.renderMenu(e,{id:i,open:c,pullRight:l,bsClass:p,onSelect:f,rootCloseEvent:m});default:return e}})))};return t}(v.a.Component);kr.propTypes=Er;kr.defaultProps=xr;P("dropdown",kr);var Mr=x()(kr,{open:"onToggle"});Mr.Toggle=Ar;Mr.Menu=mr;var Sr=Mr;function Or(e,t){var r=t.propTypes;var n={};var a={};M()(e).forEach((function(e){var t=e[0],i=e[1];if(r[t]){n[t]=i}else{a[t]=i}}));return[n,a]}var Dr=s({},Sr.propTypes,{bsStyle:w.a.string,bsSize:w.a.string,title:w.a.node.isRequired,noCaret:w.a.bool,children:w.a.node});var Tr=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.bsSize,n=t.bsStyle,a=t.title,i=t.children,o=g(t,["bsSize","bsStyle","title","children"]);var u=Or(o,Sr.ControlledComponent),l=u[0],c=u[1];return v.a.createElement(Sr,s({},l,{bsSize:r,bsStyle:n}),v.a.createElement(Sr.Toggle,s({},c,{bsSize:r,bsStyle:n}),a),v.a.createElement(Sr.Menu,null,i))};return t}(v.a.Component);Tr.propTypes=Dr;var Lr=Tr;var Cr;var jr={in:w.a.bool,mountOnEnter:w.a.bool,unmountOnExit:w.a.bool,appear:w.a.bool,timeout:w.a.number,onEnter:w.a.func,onEntering:w.a.func,onEntered:w.a.func,onExit:w.a.func,onExiting:w.a.func,onExited:w.a.func};var Nr={in:false,timeout:300,mountOnEnter:false,unmountOnExit:false,appear:false};var Ir=(Cr={},Cr[qt["ENTERING"]]="in",Cr[qt["ENTERED"]]="in",Cr);var Pr=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=t.children,a=g(t,["className","children"]);return v.a.createElement(Vt.a,a,(function(e,t){return v.a.cloneElement(n,s({},t,{className:A()("fade",r,n.props.className,Ir[e])}))}))};return t}(v.a.Component);Pr.propTypes=jr;Pr.defaultProps=Nr;var Rr=Pr;var Fr={horizontal:w.a.bool,inline:w.a.bool,componentClass:Te.a};var Yr={horizontal:false,inline:false,componentClass:"form"};var Br=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.horizontal,n=t.inline,a=t.componentClass,i=t.className,o=g(t,["horizontal","inline","componentClass","className"]);var u=z(o),l=u[0],c=u[1];var f=[];if(r){f.push(I(l,"horizontal"))}if(n){f.push(I(l,"inline"))}return v.a.createElement(a,s({},c,{className:A()(i,f)}))};return t}(v.a.Component);Br.propTypes=Fr;Br.defaultProps=Yr;var Hr=P("form",Br);var zr={bsRole:"feedback"};var Ur={$bs_formGroup:w.a.object};var qr=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.getGlyph=function e(t){switch(t){case"success":return"ok";case"warning":return"warning-sign";case"error":return"remove";default:return null}};r.renderDefaultFeedback=function e(t,r,n,a){var i=this.getGlyph(t&&t.validationState);if(!i){return null}return v.a.createElement(mt,s({},a,{glyph:i,className:A()(r,n)}))};r.render=function e(){var t=this.props,r=t.className,n=t.children,a=g(t,["className","children"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);if(!n){return this.renderDefaultFeedback(this.context.$bs_formGroup,r,l,u)}var c=v.a.Children.only(n);return v.a.cloneElement(c,s({},u,{className:A()(c.props.className,r,l)}))};return t}(v.a.Component);qr.defaultProps=zr;qr.contextTypes=Ur;var Vr=P("form-control-feedback",qr);var Wr={componentClass:Te.a};var Kr={componentClass:"p"};var Gr=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);Gr.propTypes=Wr;Gr.defaultProps=Kr;var Qr=P("form-control-static",Gr);var Jr={componentClass:Te.a,type:w.a.string,id:w.a.string,inputRef:w.a.func};var Zr={componentClass:"input"};var Xr={$bs_formGroup:w.a.object};var $r=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.context.$bs_formGroup;var r=t&&t.controlId;var n=this.props,a=n.componentClass,i=n.type,o=n.id,u=o===void 0?r:o,l=n.inputRef,c=n.className,f=n.bsSize,d=g(n,["componentClass","type","id","inputRef","className","bsSize"]);var p=z(d),h=p[0],m=p[1];false?undefined:void 0;var y;if(i!=="file"){y=Y(h)}if(f){var b=T[f]||f;y[I({bsClass:"input"},b)]=true}return v.a.createElement(a,s({},m,{type:i,id:u,ref:l,className:A()(c,y)}))};return t}(v.a.Component);$r.propTypes=Jr;$r.defaultProps=Zr;$r.contextTypes=Xr;$r.Feedback=Vr;$r.Static=Qr;var en=P("form-control",F([D.SMALL,D.LARGE],$r));var tn={controlId:w.a.string,validationState:w.a.oneOf(["success","warning","error",null])};var rn={$bs_formGroup:w.a.object.isRequired};var nn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.getChildContext=function e(){var t=this.props,r=t.controlId,n=t.validationState;return{$bs_formGroup:{controlId:r,validationState:n}}};r.hasFeedback=function e(t){var r=this;return ee.some(t,(function(e){return e.props.bsRole==="feedback"||e.props.children&&r.hasFeedback(e.props.children)}))};r.render=function e(){var t=this.props,r=t.validationState,n=t.className,a=t.children,i=g(t,["validationState","className","children"]);var o=U(i,["controlId"]),u=o[0],l=o[1];var c=s({},Y(u),{"has-feedback":this.hasFeedback(a)});if(r){c["has-"+r]=true}return v.a.createElement("div",s({},l,{className:A()(n,c)}),a)};return t}(v.a.Component);nn.propTypes=tn;nn.childContextTypes=rn;var an=P("form-group",F([D.LARGE,D.SMALL],nn));var on={fluid:w.a.bool,componentClass:Te.a};var sn={componentClass:"div",fluid:false};var un=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.fluid,n=t.componentClass,a=t.className,i=g(t,["fluid","componentClass","className"]);var o=z(i),u=o[0],l=o[1];var c=I(u,r&&"fluid");return v.a.createElement(n,s({},l,{className:A()(a,c)}))};return t}(v.a.Component);un.propTypes=on;un.defaultProps=sn;var ln=P("container",un);var cn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=z(n),i=a[0],o=a[1];var u=Y(i);return v.a.createElement("span",s({},o,{className:A()(r,u)}))};return t}(v.a.Component);var fn=P("help-block",cn);var dn={responsive:w.a.bool,rounded:w.a.bool,circle:w.a.bool,thumbnail:w.a.bool};var pn={responsive:false,rounded:false,circle:false,thumbnail:false};var hn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t;var r=this.props,n=r.responsive,a=r.rounded,i=r.circle,o=r.thumbnail,u=r.className,l=g(r,["responsive","rounded","circle","thumbnail","className"]);var c=z(l),f=c[0],d=c[1];var p=(t={},t[I(f,"responsive")]=n,t[I(f,"rounded")]=a,t[I(f,"circle")]=i,t[I(f,"thumbnail")]=o,t);return v.a.createElement("img",s({},d,{className:A()(u,p)}))};return t}(v.a.Component);hn.propTypes=dn;hn.defaultProps=pn;var vn=P("img",hn);var mn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=z(n),i=a[0],o=a[1];var u=Y(i);return v.a.createElement("span",s({},o,{className:A()(r,u)}))};return t}(v.a.Component);var yn=P("input-group-addon",mn);var gn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=z(n),i=a[0],o=a[1];var u=Y(i);return v.a.createElement("span",s({},o,{className:A()(r,u)}))};return t}(v.a.Component);var bn=P("input-group-btn",gn);var An=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=z(n),i=a[0],o=a[1];var u=Y(i);return v.a.createElement("span",s({},o,{className:A()(r,u)}))};return t}(v.a.Component);An.Addon=yn;An.Button=bn;var _n=P("input-group",F([D.LARGE,D.SMALL],An));var wn={componentClass:Te.a};var En={componentClass:"div"};var xn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);xn.propTypes=wn;xn.defaultProps=En;var kn=P("jumbotron",xn);var Mn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.hasContent=function e(t){var r=false;v.a.Children.forEach(t,(function(e){if(r){return}if(e||e===0){r=true}}));return r};r.render=function e(){var t=this.props,r=t.className,n=t.children,a=g(t,["className","children"]);var i=z(a),o=i[0],u=i[1];var l=s({},Y(o),{hidden:!this.hasContent(n)});return v.a.createElement("span",s({},u,{className:A()(r,l)}),n)};return t}(v.a.Component);var Sn=P("label",R(ve()(C).concat([j.DEFAULT,j.PRIMARY]),j.DEFAULT,Mn));var On={active:w.a.any,disabled:w.a.any,header:w.a.node,listItem:w.a.bool,onClick:w.a.func,href:w.a.string,type:w.a.string};var Dn={listItem:false};var Tn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.renderHeader=function e(t,r){if(v.a.isValidElement(t)){return Object(h["cloneElement"])(t,{className:A()(t.props.className,r)})}return v.a.createElement("h4",{className:r},t)};r.render=function e(){var t=this.props,r=t.active,n=t.disabled,a=t.className,i=t.header,o=t.listItem,u=t.children,l=g(t,["active","disabled","className","header","listItem","children"]);var c=z(l),f=c[0],d=c[1];var p=s({},Y(f),{active:r,disabled:n});var h;if(d.href){h="a"}else if(d.onClick){h="button";d.type=d.type||"button"}else if(o){h="li"}else{h="span"}d.className=A()(a,p);if(i){return v.a.createElement(h,d,this.renderHeader(i,I(f,"heading")),v.a.createElement("p",{className:I(f,"text")},u))}return v.a.createElement(h,d,u)};return t}(v.a.Component);Tn.propTypes=On;Tn.defaultProps=Dn;var Ln=P("list-group-item",R(ve()(C),Tn));var Cn={componentClass:Te.a};function jn(e){if(!e){return"div"}if(ee.some(e,(function(e){return e.type!==Ln||e.props.href||e.props.onClick}))){return"div"}return"ul"}var Nn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.children,n=t.componentClass,a=n===void 0?jn(r):n,i=t.className,o=g(t,["children","componentClass","className"]);var u=z(o),l=u[0],c=u[1];var f=Y(l);var d=a==="ul"&&ee.every(r,(function(e){return e.type===Ln}));return v.a.createElement(a,s({},c,{className:A()(i,f)}),d?ee.map(r,(function(e){return Object(h["cloneElement"])(e,{listItem:true})})):r)};return t}(v.a.Component);Nn.propTypes=Cn;var In=P("list-group",Nn);var Pn={align:w.a.oneOf(["top","middle","bottom"]),componentClass:Te.a};var Rn={componentClass:"div"};var Fn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.align,a=t.className,i=g(t,["componentClass","align","className"]);var o=z(i),u=o[0],l=o[1];var c=Y(u);if(n){c[I(na.defaultProps,n)]=true}return v.a.createElement(r,s({},l,{className:A()(a,c)}))};return t}(v.a.Component);Fn.propTypes=Pn;Fn.defaultProps=Rn;var Yn=P("media-body",Fn);var Bn={componentClass:Te.a};var Hn={componentClass:"h4"};var zn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);zn.propTypes=Bn;zn.defaultProps=Hn;var Un=P("media-heading",zn);var qn={align:w.a.oneOf(["top","middle","bottom"])};var Vn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.align,n=t.className,a=g(t,["align","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);if(r){l[I(na.defaultProps,r)]=true}return v.a.createElement("div",s({},u,{className:A()(n,l)}))};return t}(v.a.Component);Vn.propTypes=qn;var Wn=P("media-left",Vn);var Kn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=z(n),i=a[0],o=a[1];var u=Y(i);return v.a.createElement("ul",s({},o,{className:A()(r,u)}))};return t}(v.a.Component);var Gn=P("media-list",Kn);var Qn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=z(n),i=a[0],o=a[1];var u=Y(i);return v.a.createElement("li",s({},o,{className:A()(r,u)}))};return t}(v.a.Component);var Jn=P("media",Qn);var Zn={align:w.a.oneOf(["top","middle","bottom"])};var Xn=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.align,n=t.className,a=g(t,["align","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);if(r){l[I(na.defaultProps,r)]=true}return v.a.createElement("div",s({},u,{className:A()(n,l)}))};return t}(v.a.Component);Xn.propTypes=Zn;var $n=P("media-right",Xn);var ea={componentClass:Te.a};var ta={componentClass:"div"};var ra=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);ra.propTypes=ea;ra.defaultProps=ta;ra.Heading=Un;ra.Body=Yn;ra.Left=Wn;ra.Right=$n;ra.List=Gn;ra.ListItem=Jn;var na=P("media",ra);var aa={active:w.a.bool,disabled:w.a.bool,divider:Qe()(w.a.bool,(function(e){var t=e.divider,r=e.children;return t&&r?new Error("Children will not be rendered for dividers"):null})),eventKey:w.a.any,header:w.a.bool,href:w.a.string,onClick:w.a.func,onSelect:w.a.func};var ia={divider:false,disabled:false,header:false};var oa=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleClick=n.handleClick.bind(Oe(Oe(n)));return n}var r=t.prototype;r.handleClick=function e(t){var r=this.props,n=r.href,a=r.disabled,i=r.onSelect,o=r.eventKey;if(!n||a){t.preventDefault()}if(a){return}if(i){i(o,t)}};r.render=function e(){var t=this.props,r=t.active,n=t.disabled,a=t.divider,i=t.header,o=t.onClick,u=t.className,l=t.style,c=g(t,["active","disabled","divider","header","onClick","className","style"]);var f=U(c,["eventKey","onSelect"]),d=f[0],p=f[1];if(a){p.children=undefined;return v.a.createElement("li",s({},p,{role:"separator",className:A()(u,"divider"),style:l}))}if(i){return v.a.createElement("li",s({},p,{role:"heading",className:A()(u,I(d,"header")),style:l}))}return v.a.createElement("li",{role:"presentation",className:A()(u,{active:r,disabled:n}),style:l},v.a.createElement(Re,s({},p,{role:"menuitem",tabIndex:"-1",onClick:Ce(o,this.handleClick)})))};return t}(v.a.Component);oa.propTypes=aa;oa.defaultProps=ia;var sa=P("dropdown",oa);var ua=r(341);var la=r.n(ua);var ca=r(117);var fa=r.n(ca);var da=r(79);var pa=r.n(da);var ha=r(218);var va=r.n(ha);var ma=r(147);var ya=r.n(ma);var ga=r(336);var ba=r.n(ga);var Aa={componentClass:Te.a};var _a={componentClass:"div"};var wa=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);wa.propTypes=Aa;wa.defaultProps=_a;var Ea=P("modal-body",wa);var xa={dialogClassName:w.a.string};var ka=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t;var r=this.props,n=r.dialogClassName,a=r.className,i=r.style,o=r.children,u=g(r,["dialogClassName","className","style","children"]);var l=z(u),c=l[0],f=l[1];var d=I(c);var p=s({display:"block"},i);var h=s({},Y(c),(t={},t[d]=false,t[I(c,"dialog")]=true,t));return v.a.createElement("div",s({},f,{tabIndex:"-1",role:"dialog",style:p,className:A()(a,d)}),v.a.createElement("div",{className:A()(n,h)},v.a.createElement("div",{className:I(c,"content"),role:"document"},o)))};return t}(v.a.Component);ka.propTypes=xa;var Ma=P("modal",F([D.LARGE,D.SMALL],ka));var Sa={componentClass:Te.a};var Oa={componentClass:"div"};var Da=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);Da.propTypes=Sa;Da.defaultProps=Oa;var Ta=P("modal-footer",Da);var La={closeLabel:w.a.string,closeButton:w.a.bool,onHide:w.a.func};var Ca={closeLabel:"Close",closeButton:false};var ja={$bs_modal:w.a.shape({onHide:w.a.func})};var Na=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.closeLabel,n=t.closeButton,a=t.onHide,i=t.className,o=t.children,u=g(t,["closeLabel","closeButton","onHide","className","children"]);var l=this.context.$bs_modal;var c=z(u),f=c[0],d=c[1];var p=Y(f);return v.a.createElement("div",s({},d,{className:A()(i,p)}),n&&v.a.createElement(be,{label:r,onClick:Ce(l&&l.onHide,a)}),o)};return t}(v.a.Component);Na.propTypes=La;Na.defaultProps=Ca;Na.contextTypes=ja;var Ia=P("modal-header",Na);var Pa={componentClass:Te.a};var Ra={componentClass:"h4"};var Fa=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);Fa.propTypes=Pa;Fa.defaultProps=Ra;var Ya=P("modal-title",Fa);var Ba=s({},ya.a.propTypes,Ma.propTypes,{backdrop:w.a.oneOf(["static",true,false]),backdropClassName:w.a.string,keyboard:w.a.bool,animation:w.a.bool,dialogComponentClass:Te.a,autoFocus:w.a.bool,enforceFocus:w.a.bool,restoreFocus:w.a.bool,show:w.a.bool,onHide:w.a.func,onEnter:w.a.func,onEntering:w.a.func,onEntered:w.a.func,onExit:w.a.func,onExiting:w.a.func,onExited:w.a.func,container:ya.a.propTypes.container});var Ha=s({},ya.a.defaultProps,{animation:true,dialogComponentClass:Ma});var za={$bs_modal:w.a.shape({onHide:w.a.func})};function Ua(e){return v.a.createElement(Rr,s({},e,{timeout:Va.TRANSITION_DURATION}))}function qa(e){return v.a.createElement(Rr,s({},e,{timeout:Va.BACKDROP_TRANSITION_DURATION}))}var Va=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleEntering=n.handleEntering.bind(Oe(Oe(n)));n.handleExited=n.handleExited.bind(Oe(Oe(n)));n.handleWindowResize=n.handleWindowResize.bind(Oe(Oe(n)));n.handleDialogClick=n.handleDialogClick.bind(Oe(Oe(n)));n.setModalRef=n.setModalRef.bind(Oe(Oe(n)));n.state={style:{}};return n}var r=t.prototype;r.getChildContext=function e(){return{$bs_modal:{onHide:this.props.onHide}}};r.componentWillUnmount=function e(){this.handleExited()};r.setModalRef=function e(t){this._modal=t};r.handleDialogClick=function e(t){if(t.target!==t.currentTarget){return}this.props.onHide()};r.handleEntering=function e(){la.a.on(window,"resize",this.handleWindowResize);this.updateStyle()};r.handleExited=function e(){la.a.off(window,"resize",this.handleWindowResize)};r.handleWindowResize=function e(){this.updateStyle()};r.updateStyle=function e(){if(!pa.a){return}var t=this._modal.getDialogElement();var r=t.scrollHeight;var n=fa()(t);var a=ba()(st.a.findDOMNode(this.props.container||n.body));var i=r>n.documentElement.clientHeight;this.setState({style:{paddingRight:a&&!i?va()():undefined,paddingLeft:!a&&i?va()():undefined}})};r.render=function e(){var t=this.props,r=t.backdrop,n=t.backdropClassName,a=t.animation,i=t.show,o=t.dialogComponentClass,u=t.className,l=t.style,c=t.children,f=t.onEntering,d=t.onExited,p=g(t,["backdrop","backdropClassName","animation","show","dialogComponentClass","className","style","children","onEntering","onExited"]);var h=Or(p,ya.a),m=h[0],y=h[1];var b=i&&!a&&"in";return v.a.createElement(ya.a,s({},m,{ref:this.setModalRef,show:i,containerClassName:I(p,"open"),transition:a?Ua:undefined,backdrop:r,backdropTransition:a?qa:undefined,backdropClassName:A()(I(p,"backdrop"),n,b),onEntering:Ce(f,this.handleEntering),onExited:Ce(d,this.handleExited)}),v.a.createElement(o,s({},y,{style:s({},this.state.style,l),className:A()(u,b),onClick:r===true?this.handleDialogClick:null}),c))};return t}(v.a.Component);Va.propTypes=Ba;Va.defaultProps=Ha;Va.childContextTypes=za;Va.Body=Ea;Va.Header=Ia;Va.Title=Ya;Va.Footer=Ta;Va.Dialog=Ma;Va.TRANSITION_DURATION=300;Va.BACKDROP_TRANSITION_DURATION=150;var Wa=P("modal",F([D.LARGE,D.SMALL],Va));var Ka={activeKey:w.a.any,activeHref:w.a.string,stacked:w.a.bool,justified:Qe()(w.a.bool,(function(e){var t=e.justified,r=e.navbar;return t&&r?Error("justified navbar `Nav`s are not supported"):null})),onSelect:w.a.func,role:w.a.string,navbar:w.a.bool,pullRight:w.a.bool,pullLeft:w.a.bool};var Ga={justified:false,pullRight:false,pullLeft:false,stacked:false};var Qa={$bs_navbar:w.a.shape({bsClass:w.a.string,onSelect:w.a.func}),$bs_tabContainer:w.a.shape({activeKey:w.a.any,onSelect:w.a.func.isRequired,getTabId:w.a.func.isRequired,getPaneId:w.a.func.isRequired})};var Ja=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.componentDidUpdate=function e(){var t=this;if(!this._needsRefocus){return}this._needsRefocus=false;var r=this.props.children;var n=this.getActiveProps(),a=n.activeKey,i=n.activeHref;var o=ee.find(r,(function(e){return t.isActive(e,a,i)}));var s=ee.toArray(r);var u=s.indexOf(o);var l=st.a.findDOMNode(this).children;var c=l&&l[u];if(!c||!c.firstChild){return}c.firstChild.focus()};r.getActiveProps=function e(){var t=this.context.$bs_tabContainer;if(t){false?undefined:void 0;return t}return this.props};r.getNextActiveChild=function e(t){var r=this;var n=this.props.children;var a=n.filter((function(e){return e.props.eventKey!=null&&!e.props.disabled}));var i=this.getActiveProps(),o=i.activeKey,s=i.activeHref;var u=ee.find(n,(function(e){return r.isActive(e,o,s)}));var l=a.indexOf(u);if(l===-1){return a[0]}var c=l+t;var f=a.length;if(c>=f){c=0}else if(c<0){c=f-1}return a[c]};r.getTabProps=function e(t,r,n,a,i){var o=this;if(!r&&n!=="tablist"){return null}var s=t.props,u=s.id,l=s["aria-controls"],c=s.eventKey,f=s.role,d=s.onKeyDown,p=s.tabIndex;if(r){false?undefined:void 0;u=r.getTabId(c);l=r.getPaneId(c)}if(n==="tablist"){f=f||"tab";d=Ce((function(e){return o.handleTabKeyDown(i,e)}),d);p=a?p:-1}return{id:u,role:f,onKeyDown:d,"aria-controls":l,tabIndex:p}};r.handleTabKeyDown=function e(t,r){var n;switch(r.keyCode){case or.a.codes.left:case or.a.codes.up:n=this.getNextActiveChild(-1);break;case or.a.codes.right:case or.a.codes.down:n=this.getNextActiveChild(1);break;default:return}r.preventDefault();if(t&&n&&n.props.eventKey!=null){t(n.props.eventKey)}this._needsRefocus=true};r.isActive=function e(t,r,n){var a=t.props;if(a.active||r!=null&&a.eventKey===r||n&&a.href===n){return true}return a.active};r.render=function e(){var t,r=this;var n=this.props,a=n.stacked,i=n.justified,o=n.onSelect,u=n.role,l=n.navbar,c=n.pullRight,f=n.pullLeft,d=n.className,p=n.children,m=g(n,["stacked","justified","onSelect","role","navbar","pullRight","pullLeft","className","children"]);var y=this.context.$bs_tabContainer;var b=u||(y?"tablist":null);var _=this.getActiveProps(),w=_.activeKey,E=_.activeHref;delete m.activeKey;delete m.activeHref;var x=z(m),k=x[0],M=x[1];var S=s({},Y(k),(t={},t[I(k,"stacked")]=a,t[I(k,"justified")]=i,t));var O=l!=null?l:this.context.$bs_navbar;var D;var T;if(O){var L=this.context.$bs_navbar||{bsClass:"navbar"};S[I(L,"nav")]=true;T=I(L,"right");D=I(L,"left")}else{T="pull-right";D="pull-left"}S[T]=c;S[D]=f;return v.a.createElement("ul",s({},M,{role:b,className:A()(d,S)}),ee.map(p,(function(e){var t=r.isActive(e,w,E);var n=Ce(e.props.onSelect,o,O&&O.onSelect,y&&y.onSelect);return Object(h["cloneElement"])(e,s({},r.getTabProps(e,y,b,t,n),{active:t,activeKey:w,activeHref:E,onSelect:n}))})))};return t}(v.a.Component);Ja.propTypes=Ka;Ja.defaultProps=Ga;Ja.contextTypes=Qa;var Za=P("nav",R(["tabs","pills"],Ja));var Xa={$bs_navbar:w.a.shape({bsClass:w.a.string})};var $a=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=t.children,a=g(t,["className","children"]);var i=this.context.$bs_navbar||{bsClass:"navbar"};var o=I(i,"brand");if(v.a.isValidElement(n)){return v.a.cloneElement(n,{className:A()(n.props.className,r,o)})}return v.a.createElement("span",s({},a,{className:A()(r,o)}),n)};return t}(v.a.Component);$a.contextTypes=Xa;var ei=$a;var ti={$bs_navbar:w.a.shape({bsClass:w.a.string,expanded:w.a.bool})};var ri=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.children,n=g(t,["children"]);var a=this.context.$bs_navbar||{bsClass:"navbar"};var i=I(a,"collapse");return v.a.createElement(er,s({in:a.expanded},n),v.a.createElement("div",{className:i},r))};return t}(v.a.Component);ri.contextTypes=ti;var ni=ri;var ai={$bs_navbar:w.a.shape({bsClass:w.a.string})};var ii=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=this.context.$bs_navbar||{bsClass:"navbar"};var i=I(a,"header");return v.a.createElement("div",s({},n,{className:A()(r,i)}))};return t}(v.a.Component);ii.contextTypes=ai;var oi=ii;var si={onClick:w.a.func,children:w.a.node};var ui={$bs_navbar:w.a.shape({bsClass:w.a.string,expanded:w.a.bool,onToggle:w.a.func.isRequired})};var li=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.onClick,n=t.className,a=t.children,i=g(t,["onClick","className","children"]);var o=this.context.$bs_navbar||{bsClass:"navbar"};var u=s({type:"button"},i,{onClick:Ce(r,o.onToggle),className:A()(n,I(o,"toggle"),!o.expanded&&"collapsed")});if(a){return v.a.createElement("button",u,a)}return v.a.createElement("button",u,v.a.createElement("span",{className:"sr-only"},"Toggle navigation"),v.a.createElement("span",{className:"icon-bar"}),v.a.createElement("span",{className:"icon-bar"}),v.a.createElement("span",{className:"icon-bar"}))};return t}(v.a.Component);li.propTypes=si;li.contextTypes=ui;var ci=li;var fi={fixedTop:w.a.bool,fixedBottom:w.a.bool,staticTop:w.a.bool,inverse:w.a.bool,fluid:w.a.bool,componentClass:Te.a,onToggle:w.a.func,onSelect:w.a.func,collapseOnSelect:w.a.bool,expanded:w.a.bool,role:w.a.string};var di={componentClass:"nav",fixedTop:false,fixedBottom:false,staticTop:false,inverse:false,fluid:false,collapseOnSelect:false};var pi={$bs_navbar:w.a.shape({bsClass:w.a.string,expanded:w.a.bool,onToggle:w.a.func.isRequired,onSelect:w.a.func})};var hi=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleToggle=n.handleToggle.bind(Oe(Oe(n)));n.handleCollapse=n.handleCollapse.bind(Oe(Oe(n)));return n}var r=t.prototype;r.getChildContext=function e(){var t=this.props,r=t.bsClass,n=t.expanded,a=t.onSelect,i=t.collapseOnSelect;return{$bs_navbar:{bsClass:r,expanded:n,onToggle:this.handleToggle,onSelect:Ce(a,i?this.handleCollapse:null)}}};r.handleCollapse=function e(){var t=this.props,r=t.onToggle,n=t.expanded;if(n){r(false)}};r.handleToggle=function e(){var t=this.props,r=t.onToggle,n=t.expanded;r(!n)};r.render=function e(){var t;var r=this.props,n=r.componentClass,a=r.fixedTop,i=r.fixedBottom,o=r.staticTop,u=r.inverse,l=r.fluid,c=r.className,f=r.children,d=g(r,["componentClass","fixedTop","fixedBottom","staticTop","inverse","fluid","className","children"]);var p=U(d,["expanded","onToggle","onSelect","collapseOnSelect"]),h=p[0],m=p[1];if(m.role===undefined&&n!=="nav"){m.role="navigation"}if(u){h.bsStyle=j.INVERSE}var y=s({},Y(h),(t={},t[I(h,"fixed-top")]=a,t[I(h,"fixed-bottom")]=i,t[I(h,"static-top")]=o,t));return v.a.createElement(n,s({},m,{className:A()(c,y)}),v.a.createElement(ln,{fluid:l},f))};return t}(v.a.Component);hi.propTypes=fi;hi.defaultProps=di;hi.childContextTypes=pi;P("navbar",hi);var vi=x()(hi,{expanded:"onToggle"});function mi(e,t,r){var n=function e(r,n){var a=r.componentClass,i=r.className,o=r.pullRight,u=r.pullLeft,l=g(r,["componentClass","className","pullRight","pullLeft"]);var c=n.$bs_navbar,f=c===void 0?{bsClass:"navbar"}:c;return v.a.createElement(a,s({},l,{className:A()(i,I(f,t),o&&I(f,"right"),u&&I(f,"left"))}))};n.displayName=r;n.propTypes={componentClass:Te.a,pullRight:w.a.bool,pullLeft:w.a.bool};n.defaultProps={componentClass:e,pullRight:false,pullLeft:false};n.contextTypes={$bs_navbar:w.a.shape({bsClass:w.a.string})};return n}vi.Brand=ei;vi.Header=oi;vi.Toggle=ci;vi.Collapse=ni;vi.Form=mi("div","form","NavbarForm");vi.Text=mi("p","text","NavbarText");vi.Link=mi("a","link","NavbarLink");var yi=R([j.DEFAULT,j.INVERSE],j.DEFAULT,vi);var gi=s({},Sr.propTypes,{title:w.a.node.isRequired,noCaret:w.a.bool,active:w.a.bool,activeKey:w.a.any,activeHref:w.a.string,children:w.a.node});var bi=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.isActive=function e(t,r,n){var a=this;var i=t.props;if(i.active||r!=null&&i.eventKey===r||n&&i.href===n){return true}if(ee.some(i.children,(function(e){return a.isActive(e,r,n)}))){return true}return i.active};r.render=function e(){var t=this;var r=this.props,n=r.title,a=r.activeKey,i=r.activeHref,o=r.className,u=r.style,l=r.children,c=g(r,["title","activeKey","activeHref","className","style","children"]);var f=this.isActive(this,a,i);delete c.active;delete c.eventKey;var d=Or(c,Sr.ControlledComponent),p=d[0],h=d[1];return v.a.createElement(Sr,s({},p,{componentClass:"li",className:A()(o,{active:f}),style:u}),v.a.createElement(Sr.Toggle,s({},h,{useAnchor:true}),n),v.a.createElement(Sr.Menu,null,ee.map(l,(function(e){return v.a.cloneElement(e,{active:t.isActive(e,a,i)})}))))};return t}(v.a.Component);bi.propTypes=gi;var Ai=bi;var _i={active:w.a.bool,disabled:w.a.bool,role:w.a.string,href:w.a.string,onClick:w.a.func,onSelect:w.a.func,eventKey:w.a.any};var wi={active:false,disabled:false};var Ei=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleClick=n.handleClick.bind(Oe(Oe(n)));return n}var r=t.prototype;r.handleClick=function e(t){if(this.props.disabled){t.preventDefault();return}if(this.props.onSelect){this.props.onSelect(this.props.eventKey,t)}};r.render=function e(){var t=this.props,r=t.active,n=t.disabled,a=t.onClick,i=t.className,o=t.style,u=g(t,["active","disabled","onClick","className","style"]);delete u.onSelect;delete u.eventKey;delete u.activeKey;delete u.activeHref;if(!u.role){if(u.href==="#"){u.role="button"}}else if(u.role==="tab"){u["aria-selected"]=r}return v.a.createElement("li",{role:"presentation",className:A()(i,{active:r,disabled:n}),style:o},v.a.createElement(Re,s({},u,{disabled:n,onClick:Ce(a,this.handleClick)})))};return t}(v.a.Component);Ei.propTypes=_i;Ei.defaultProps=wi;var xi=Ei;var ki=r(342);var Mi=r.n(ki);var Si=s({},Mi.a.propTypes,{show:w.a.bool,rootClose:w.a.bool,onHide:w.a.func,animation:w.a.oneOfType([w.a.bool,Te.a]),onEnter:w.a.func,onEntering:w.a.func,onEntered:w.a.func,onExit:w.a.func,onExiting:w.a.func,onExited:w.a.func,placement:w.a.oneOf(["top","right","bottom","left"])});var Oi={animation:Rr,rootClose:false,show:false,placement:"right"};var Di=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.animation,n=t.children,a=g(t,["animation","children"]);var i=r===true?Rr:r||null;var o;if(!i){o=Object(h["cloneElement"])(n,{className:A()(n.props.className,"in")})}else{o=n}return v.a.createElement(Mi.a,s({},a,{transition:i}),o)};return t}(v.a.Component);Di.propTypes=Si;Di.defaultProps=Oi;var Ti=Di;var Li=r(677);var Ci=r.n(Li);function ji(e,t){if(Ci()(t)){return t.indexOf(e)>=0}return e===t}var Ni=w.a.oneOf(["click","hover","focus"]);var Ii=s({},Ti.propTypes,{trigger:w.a.oneOfType([Ni,w.a.arrayOf(Ni)]),delay:w.a.number,delayShow:w.a.number,delayHide:w.a.number,defaultOverlayShown:w.a.bool,overlay:w.a.node.isRequired,onBlur:w.a.func,onClick:w.a.func,onFocus:w.a.func,onMouseOut:w.a.func,onMouseOver:w.a.func,target:w.a.oneOf([null]),onHide:w.a.oneOf([null]),show:w.a.oneOf([null])});var Pi={defaultOverlayShown:false,trigger:["hover","focus"]};var Ri=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleToggle=n.handleToggle.bind(Oe(Oe(n)));n.handleDelayedShow=n.handleDelayedShow.bind(Oe(Oe(n)));n.handleDelayedHide=n.handleDelayedHide.bind(Oe(Oe(n)));n.handleHide=n.handleHide.bind(Oe(Oe(n)));n.handleMouseOver=function(e){return n.handleMouseOverOut(n.handleDelayedShow,e,"fromElement")};n.handleMouseOut=function(e){return n.handleMouseOverOut(n.handleDelayedHide,e,"toElement")};n._mountNode=null;n.state={show:t.defaultOverlayShown};return n}var r=t.prototype;r.componentDidMount=function e(){this._mountNode=document.createElement("div");this.renderOverlay()};r.componentDidUpdate=function e(){this.renderOverlay()};r.componentWillUnmount=function e(){st.a.unmountComponentAtNode(this._mountNode);this._mountNode=null;clearTimeout(this._hoverShowDelay);clearTimeout(this._hoverHideDelay)};r.handleDelayedHide=function e(){var t=this;if(this._hoverShowDelay!=null){clearTimeout(this._hoverShowDelay);this._hoverShowDelay=null;return}if(!this.state.show||this._hoverHideDelay!=null){return}var r=this.props.delayHide!=null?this.props.delayHide:this.props.delay;if(!r){this.hide();return}this._hoverHideDelay=setTimeout((function(){t._hoverHideDelay=null;t.hide()}),r)};r.handleDelayedShow=function e(){var t=this;if(this._hoverHideDelay!=null){clearTimeout(this._hoverHideDelay);this._hoverHideDelay=null;return}if(this.state.show||this._hoverShowDelay!=null){return}var r=this.props.delayShow!=null?this.props.delayShow:this.props.delay;if(!r){this.show();return}this._hoverShowDelay=setTimeout((function(){t._hoverShowDelay=null;t.show()}),r)};r.handleHide=function e(){this.hide()};r.handleMouseOverOut=function e(t,r,n){var a=r.currentTarget;var i=r.relatedTarget||r.nativeEvent[n];if((!i||i!==a)&&!ar()(a,i)){t(r)}};r.handleToggle=function e(){if(this.state.show){this.hide()}else{this.show()}};r.hide=function e(){this.setState({show:false})};r.makeOverlay=function e(t,r){return v.a.createElement(Ti,s({},r,{show:this.state.show,onHide:this.handleHide,target:this}),t)};r.show=function e(){this.setState({show:true})};r.renderOverlay=function e(){st.a.unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)};r.render=function e(){var t=this.props,r=t.trigger,n=t.overlay,a=t.children,i=t.onBlur,o=t.onClick,s=t.onFocus,u=t.onMouseOut,l=t.onMouseOver,c=g(t,["trigger","overlay","children","onBlur","onClick","onFocus","onMouseOut","onMouseOver"]);delete c.delay;delete c.delayShow;delete c.delayHide;delete c.defaultOverlayShown;var f=v.a.Children.only(a);var d=f.props;var p={};if(this.state.show){p["aria-describedby"]=n.props.id}p.onClick=Ce(d.onClick,o);if(ji("click",r)){p.onClick=Ce(p.onClick,this.handleToggle)}if(ji("hover",r)){false?undefined:void 0;p.onMouseOver=Ce(d.onMouseOver,l,this.handleMouseOver);p.onMouseOut=Ce(d.onMouseOut,u,this.handleMouseOut)}if(ji("focus",r)){p.onFocus=Ce(d.onFocus,s,this.handleDelayedShow);p.onBlur=Ce(d.onBlur,i,this.handleDelayedHide)}this._overlay=this.makeOverlay(n,c);return Object(h["cloneElement"])(f,p)};return t}(v.a.Component);Ri.propTypes=Ii;Ri.defaultProps=Pi;var Fi=Ri;var Yi=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=t.children,a=g(t,["className","children"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement("div",s({},u,{className:A()(r,l)}),v.a.createElement("h1",null,n))};return t}(v.a.Component);var Bi=P("page-header",Yi);var Hi={disabled:w.a.bool,previous:w.a.bool,next:w.a.bool,onClick:w.a.func,onSelect:w.a.func,eventKey:w.a.any};var zi={disabled:false,previous:false,next:false};var Ui=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleSelect=n.handleSelect.bind(Oe(Oe(n)));return n}var r=t.prototype;r.handleSelect=function e(t){var r=this.props,n=r.disabled,a=r.onSelect,i=r.eventKey;if(n){t.preventDefault();return}if(a){a(i,t)}};r.render=function e(){var t=this.props,r=t.disabled,n=t.previous,a=t.next,i=t.onClick,o=t.className,u=t.style,l=g(t,["disabled","previous","next","onClick","className","style"]);delete l.onSelect;delete l.eventKey;return v.a.createElement("li",{className:A()(o,{disabled:r,previous:n,next:a}),style:u},v.a.createElement(Re,s({},l,{disabled:r,onClick:Ce(i,this.handleSelect)})))};return t}(v.a.Component);Ui.propTypes=Hi;Ui.defaultProps=zi;var qi=Ui;var Vi={};function Wi(e,t,r){var n;if(typeof e==="object"){n=e.message}else{n=e+" is deprecated. Use "+t+" instead.";if(r){n+="\nYou can read more about it at "+r}}if(Vi[n]){return}false?undefined:void 0;Vi[n]=true}Wi.wrapper=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++){r[n-1]=arguments[n]}return function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;n.componentWillMount=function t(){Wi.apply(void 0,r);if(e.prototype.componentWillMount){var n;for(var a=arguments.length,i=new Array(a),o=0;o<a;o++){i[o]=arguments[o]}(n=e.prototype.componentWillMount).call.apply(n,[this].concat(i))}};return t}(e)};var Ki=Wi;function Gi(){Vi={}}var Qi=Ki.wrapper(qi,"`<PageItem>`","`<Pager.Item>`");var Ji={onSelect:w.a.func};var Zi=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.onSelect,n=t.className,a=t.children,i=g(t,["onSelect","className","children"]);var o=z(i),u=o[0],l=o[1];var c=Y(u);return v.a.createElement("ul",s({},l,{className:A()(n,c)}),ee.map(a,(function(e){return Object(h["cloneElement"])(e,{onSelect:Ce(e.props.onSelect,r)})})))};return t}(v.a.Component);Zi.propTypes=Ji;Zi.Item=qi;var Xi=P("pager",Zi);var $i={eventKey:w.a.any,className:w.a.string,onSelect:w.a.func,disabled:w.a.bool,active:w.a.bool,activeLabel:w.a.string.isRequired};var eo={active:false,disabled:false,activeLabel:"(current)"};function to(e){var t=e.active,r=e.disabled,n=e.className,a=e.style,i=e.activeLabel,o=e.children,u=g(e,["active","disabled","className","style","activeLabel","children"]);var l=t||r?"span":Re;return v.a.createElement("li",{style:a,className:A()(n,{active:t,disabled:r})},v.a.createElement(l,s({disabled:r},u),o,t&&v.a.createElement("span",{className:"sr-only"},i)))}to.propTypes=$i;to.defaultProps=eo;function ro(e,t,r){var n,a;if(r===void 0){r=e}return a=n=function(e){p(n,e);function n(){return e.apply(this,arguments)||this}var a=n.prototype;a.render=function e(){var n=this.props,a=n.disabled,i=n.children,o=n.className,u=g(n,["disabled","children","className"]);var l=a?"span":Re;return v.a.createElement("li",s({"aria-label":r,className:A()(o,{disabled:a})},u),v.a.createElement(l,null,i||t))};return n}(v.a.Component),n.displayName=e,n.propTypes={disabled:w.a.bool},a}var no=ro("First","«");var ao=ro("Prev","‹");var io=ro("Ellipsis","…","More");var oo=ro("Next","›");var so=ro("Last","»");var uo=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=t.children,a=g(t,["className","children"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement("ul",s({},u,{className:A()(r,l)}),n)};return t}(v.a.Component);P("pagination",uo);uo.First=no;uo.Prev=ao;uo.Ellipsis=io;uo.Item=to;uo.Next=oo;uo.Last=so;var lo=uo;var co={onEnter:w.a.func,onEntering:w.a.func,onEntered:w.a.func,onExit:w.a.func,onExiting:w.a.func,onExited:w.a.func};var fo={$bs_panel:w.a.shape({headingId:w.a.string,bodyId:w.a.string,bsClass:w.a.string,expanded:w.a.bool})};var po=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props.children;var r=this.context.$bs_panel||{},n=r.headingId,a=r.bodyId,i=r.bsClass,o=r.expanded;var u=z(this.props),l=u[0],c=u[1];l.bsClass=i||l.bsClass;if(n&&a){c.id=a;c.role=c.role||"tabpanel";c["aria-labelledby"]=n}return v.a.createElement(er,s({in:o},c),v.a.createElement("div",{className:I(l,"collapse")},t))};return t}(v.a.Component);po.propTypes=co;po.contextTypes=fo;var ho=P("panel",po);var vo={collapsible:w.a.bool.isRequired};var mo={collapsible:false};var yo={$bs_panel:w.a.shape({bsClass:w.a.string})};var go=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.children,n=t.className,a=t.collapsible;var i=this.context.$bs_panel||{},o=i.bsClass;var u=U(this.props,["collapsible"]),l=u[0],c=u[1];l.bsClass=o||l.bsClass;var f=v.a.createElement("div",s({},c,{className:A()(n,I(l,"body"))}),r);if(a){f=v.a.createElement(ho,null,f)}return f};return t}(v.a.Component);go.propTypes=vo;go.defaultProps=mo;go.contextTypes=yo;var bo=P("panel",go);var Ao=r(142);var _o=r.n(Ao);var wo={componentClass:_o.a};var Eo={componentClass:"div"};var xo={$bs_panel:w.a.shape({headingId:w.a.string,bsClass:w.a.string})};var ko=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.children,n=t.className,a=t.componentClass,i=g(t,["children","className","componentClass"]);var o=this.context.$bs_panel||{},u=o.headingId,l=o.bsClass;var c=z(i),f=c[0],d=c[1];f.bsClass=l||f.bsClass;if(u){d.role=d.role||"tab";d.id=u}return v.a.createElement(a,s({},d,{className:A()(n,I(f,"heading"))}),r)};return t}(v.a.Component);ko.propTypes=wo;ko.defaultProps=Eo;ko.contextTypes=xo;var Mo=P("panel",ko);var So={onClick:w.a.func,componentClass:_o.a};var Oo={componentClass:Re};var Do={$bs_panel:w.a.shape({bodyId:w.a.string,onToggle:w.a.func,expanded:w.a.bool})};var To=function(e){p(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;t.handleToggle=t.handleToggle.bind(Oe(Oe(t)));return t}var r=t.prototype;r.handleToggle=function e(t){var r=this.context.$bs_panel||{},n=r.onToggle;if(n){n(t)}};r.render=function e(){var t=this.props,r=t.onClick,n=t.className,a=t.componentClass,i=g(t,["onClick","className","componentClass"]);var o=this.context.$bs_panel||{},s=o.expanded,u=o.bodyId;var l=a;i.onClick=Ce(r,this.handleToggle);i["aria-expanded"]=s;i.className=A()(n,!s&&"collapsed");if(u){i["aria-controls"]=u}return v.a.createElement(l,i)};return t}(v.a.Component);To.propTypes=So;To.defaultProps=Oo;To.contextTypes=Do;var Lo=To;var Co={componentClass:_o.a,toggle:w.a.bool};var jo={$bs_panel:w.a.shape({bsClass:w.a.string})};var No={componentClass:"div"};var Io=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.children,n=t.className,a=t.toggle,i=t.componentClass,o=g(t,["children","className","toggle","componentClass"]);var u=this.context.$bs_panel||{},l=u.bsClass;var c=z(o),f=c[0],d=c[1];f.bsClass=l||f.bsClass;if(a){r=v.a.createElement(Lo,null,r)}return v.a.createElement(i,s({},d,{className:A()(n,I(f,"title"))}),r)};return t}(v.a.Component);Io.propTypes=Co;Io.defaultProps=No;Io.contextTypes=jo;var Po=P("panel",Io);var Ro={$bs_panel:w.a.shape({bsClass:w.a.string})};var Fo=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.children,n=t.className;var a=this.context.$bs_panel||{},i=a.bsClass;var o=z(this.props),u=o[0],l=o[1];u.bsClass=i||u.bsClass;return v.a.createElement("div",s({},l,{className:A()(n,I(u,"footer"))}),r)};return t}(v.a.Component);Fo.contextTypes=Ro;var Yo=P("panel",Fo);var Bo=Object.prototype.hasOwnProperty;var Ho=function e(t,r){return t?t+"--"+r:null};var zo={expanded:w.a.bool,onToggle:w.a.func,eventKey:w.a.any,id:w.a.string};var Uo={$bs_panelGroup:w.a.shape({getId:w.a.func,activeKey:w.a.any,onToggle:w.a.func})};var qo={$bs_panel:w.a.shape({headingId:w.a.string,bodyId:w.a.string,bsClass:w.a.string,onToggle:w.a.func,expanded:w.a.bool})};var Vo=function(e){p(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;t.handleToggle=function(e){var r=t.context.$bs_panelGroup;var n=!t.getExpanded();if(r&&r.onToggle){r.onToggle(t.props.eventKey,n,e)}else{t.props.onToggle(n,e)}};return t}var r=t.prototype;r.getChildContext=function e(){var t=this.props,r=t.eventKey,n=t.id;var a=r==null?n:r;var i;if(a!==null){var o=this.context.$bs_panelGroup;var u=o&&o.getId||Ho;i={headingId:u(a,"heading"),bodyId:u(a,"body")}}return{$bs_panel:s({},i,{bsClass:this.props.bsClass,expanded:this.getExpanded(),onToggle:this.handleToggle})}};r.getExpanded=function e(){var t=this.context.$bs_panelGroup;if(t&&Bo.call(t,"activeKey")){false?undefined:void 0;return t.activeKey===this.props.eventKey}return!!this.props.expanded};r.render=function e(){var t=this.props,r=t.className,n=t.children;var a=U(this.props,["onToggle","eventKey","expanded"]),i=a[0],o=a[1];return v.a.createElement("div",s({},o,{className:A()(r,Y(i))}),n)};return t}(v.a.Component);Vo.propTypes=zo;Vo.contextTypes=Uo;Vo.childContextTypes=qo;var Wo=x()(P("panel",R(ve()(C).concat([j.DEFAULT,j.PRIMARY]),j.DEFAULT,Vo)),{expanded:"onToggle"});o()(Wo,{Heading:Mo,Title:Po,Body:bo,Footer:Yo,Toggle:Lo,Collapse:ho});var Ko=Wo;var Go={id:ur()(w.a.oneOfType([w.a.string,w.a.number])),placement:w.a.oneOf(["top","right","bottom","left"]),positionTop:w.a.oneOfType([w.a.number,w.a.string]),positionLeft:w.a.oneOfType([w.a.number,w.a.string]),arrowOffsetTop:w.a.oneOfType([w.a.number,w.a.string]),arrowOffsetLeft:w.a.oneOfType([w.a.number,w.a.string]),title:w.a.node};var Qo={placement:"right"};var Jo=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t;var r=this.props,n=r.placement,a=r.positionTop,i=r.positionLeft,o=r.arrowOffsetTop,u=r.arrowOffsetLeft,l=r.title,c=r.className,f=r.style,d=r.children,p=g(r,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","title","className","style","children"]);var h=z(p),m=h[0],y=h[1];var b=s({},Y(m),(t={},t[n]=true,t));var _=s({display:"block",top:a,left:i},f);var w={top:o,left:u};return v.a.createElement("div",s({},y,{role:"tooltip",className:A()(c,b),style:_}),v.a.createElement("div",{className:"arrow",style:w}),l&&v.a.createElement("h3",{className:I(m,"title")},l),v.a.createElement("div",{className:I(m,"content")},d))};return t}(v.a.Component);Jo.propTypes=Go;Jo.defaultProps=Qo;var Zo=P("popover",Jo);var Xo=1e3;function $o(e,t,r){var n=e[t];if(!n){return null}var a=null;v.a.Children.forEach(n,(function(e){if(a){return}var t=v.a.createElement(ns,null);if(e.type===t.type)return;var n=v.a.isValidElement(e)?e.type.displayName||e.type.name||e.type:e;a=new Error("Children of "+r+" can contain only ProgressBar "+("components. Found "+n+"."))}));return a}var es={min:w.a.number,now:w.a.number,max:w.a.number,label:w.a.node,srOnly:w.a.bool,striped:w.a.bool,active:w.a.bool,children:$o,isChild:w.a.bool};var ts={min:0,max:100,active:false,isChild:false,srOnly:false,striped:false};function rs(e,t,r){var n=(e-t)/(r-t)*100;return Math.round(n*Xo)/Xo}var ns=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.renderProgressBar=function e(t){var r;var n=t.min,a=t.now,i=t.max,o=t.label,u=t.srOnly,l=t.striped,c=t.active,f=t.className,d=t.style,p=g(t,["min","now","max","label","srOnly","striped","active","className","style"]);var h=z(p),m=h[0],y=h[1];var b=s({},Y(m),(r={active:c},r[I(m,"striped")]=c||l,r));return v.a.createElement("div",s({},y,{role:"progressbar",className:A()(f,b),style:s({width:rs(a,n,i)+"%"},d),"aria-valuenow":a,"aria-valuemin":n,"aria-valuemax":i}),u?v.a.createElement("span",{className:"sr-only"},o):o)};r.render=function e(){var t=this.props,r=t.isChild,n=g(t,["isChild"]);if(r){return this.renderProgressBar(n)}var a=n.min,i=n.now,o=n.max,u=n.label,l=n.srOnly,c=n.striped,f=n.active,d=n.bsClass,p=n.bsStyle,m=n.className,y=n.children,b=g(n,["min","now","max","label","srOnly","striped","active","bsClass","bsStyle","className","children"]);return v.a.createElement("div",s({},b,{className:A()(m,"progress")}),y?ee.map(y,(function(e){return Object(h["cloneElement"])(e,{isChild:true})})):this.renderProgressBar({min:a,now:i,max:o,label:u,srOnly:l,striped:c,active:f,bsClass:d,bsStyle:p}))};return t}(v.a.Component);ns.propTypes=es;ns.defaultProps=ts;var as=P("progress-bar",R(ve()(C),ns));var is={inline:w.a.bool,disabled:w.a.bool,title:w.a.string,validationState:w.a.oneOf(["success","warning","error",null]),inputRef:w.a.func};var os={inline:false,disabled:false,title:""};var ss=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.inline,n=t.disabled,a=t.validationState,i=t.inputRef,o=t.className,u=t.style,l=t.title,c=t.children,f=g(t,["inline","disabled","validationState","inputRef","className","style","title","children"]);var d=z(f),p=d[0],h=d[1];var m=v.a.createElement("input",s({},h,{ref:i,type:"radio",disabled:n}));if(r){var y;var b=(y={},y[I(p,"inline")]=true,y.disabled=n,y);false?undefined:void 0;return v.a.createElement("label",{className:A()(o,b),style:u,title:l},m,c)}var _=s({},Y(p),{disabled:n});if(a){_["has-"+a]=true}return v.a.createElement("div",{className:A()(o,_),style:u},v.a.createElement("label",{title:l},m,c))};return t}(v.a.Component);ss.propTypes=is;ss.defaultProps=os;var us=P("radio",ss);var ls={children:w.a.element.isRequired,a16by9:w.a.bool,a4by3:w.a.bool};var cs={a16by9:false,a4by3:false};var fs=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t;var r=this.props,n=r.a16by9,a=r.a4by3,i=r.className,o=r.children,u=g(r,["a16by9","a4by3","className","children"]);var l=z(u),c=l[0],f=l[1];false?undefined:void 0;false?undefined:void 0;var d=s({},Y(c),(t={},t[I(c,"16by9")]=n,t[I(c,"4by3")]=a,t));return v.a.createElement("div",{className:A()(d)},Object(h["cloneElement"])(o,s({},f,{className:A()(i,I(c,"item"))})))};return t}(v.a.Component);fs.propTypes=ls;fs.defaultProps=cs;var ds=P("embed-responsive",fs);var ps={componentClass:Te.a};var hs={componentClass:"div"};var vs=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=z(a),o=i[0],u=i[1];var l=Y(o);return v.a.createElement(r,s({},u,{className:A()(n,l)}))};return t}(v.a.Component);vs.propTypes=ps;vs.defaultProps=hs;var ms=P("row",vs);var ys=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){return v.a.createElement(Ar,s({},this.props,{useAnchor:false,noCaret:false}))};return t}(v.a.Component);ys.defaultProps=Ar.defaultProps;var gs=ys;var bs=s({},Sr.propTypes,{bsStyle:w.a.string,bsSize:w.a.string,href:w.a.string,onClick:w.a.func,title:w.a.node.isRequired,toggleLabel:w.a.string,children:w.a.node});var As=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.bsSize,n=t.bsStyle,a=t.title,i=t.toggleLabel,o=t.children,u=g(t,["bsSize","bsStyle","title","toggleLabel","children"]);var l=Or(u,Sr.ControlledComponent),c=l[0],f=l[1];return v.a.createElement(Sr,s({},c,{bsSize:r,bsStyle:n}),v.a.createElement(Ke,s({},f,{disabled:u.disabled,bsSize:r,bsStyle:n}),a),v.a.createElement(gs,{"aria-label":i||a,bsSize:r,bsStyle:n}),v.a.createElement(Sr.Menu,null,o))};return t}(v.a.Component);As.propTypes=bs;As.Toggle=gs;var _s=As;var ws="tab";var Es="pane";var xs=w.a.oneOfType([w.a.string,w.a.number]);var ks={id:function e(t){var r=null;if(!t.generateChildId){for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++){a[i-1]=arguments[i]}r=xs.apply(void 0,[t].concat(a));if(!r&&!t.id){r=new Error("In order to properly initialize Tabs in a way that is accessible "+"to assistive technologies (such as screen readers) an `id` or a "+"`generateChildId` prop to TabContainer is required")}}return r},generateChildId:w.a.func,onSelect:w.a.func,activeKey:w.a.any};var Ms={$bs_tabContainer:w.a.shape({activeKey:w.a.any,onSelect:w.a.func.isRequired,getTabId:w.a.func.isRequired,getPaneId:w.a.func.isRequired})};var Ss=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.getChildContext=function e(){var t=this.props,r=t.activeKey,n=t.onSelect,a=t.generateChildId,i=t.id;var o=a||function(e,t){return i?i+"-"+t+"-"+e:null};return{$bs_tabContainer:{activeKey:r,onSelect:n,getTabId:function e(t){return o(t,ws)},getPaneId:function e(t){return o(t,Es)}}}};r.render=function e(){var t=this.props,r=t.children,n=g(t,["children"]);delete n.generateChildId;delete n.onSelect;delete n.activeKey;return v.a.cloneElement(v.a.Children.only(r),n)};return t}(v.a.Component);Ss.propTypes=ks;Ss.childContextTypes=Ms;var Os=x()(Ss,{activeKey:"onSelect"});var Ds={componentClass:Te.a,animation:w.a.oneOfType([w.a.bool,Te.a]),mountOnEnter:w.a.bool,unmountOnExit:w.a.bool};var Ts={componentClass:"div",animation:true,mountOnEnter:false,unmountOnExit:false};var Ls={$bs_tabContainer:w.a.shape({activeKey:w.a.any})};var Cs={$bs_tabContent:w.a.shape({bsClass:w.a.string,animation:w.a.oneOfType([w.a.bool,Te.a]),activeKey:w.a.any,mountOnEnter:w.a.bool,unmountOnExit:w.a.bool,onPaneEnter:w.a.func.isRequired,onPaneExited:w.a.func.isRequired,exiting:w.a.bool.isRequired})};var js=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handlePaneEnter=n.handlePaneEnter.bind(Oe(Oe(n)));n.handlePaneExited=n.handlePaneExited.bind(Oe(Oe(n)));n.state={activeKey:null,activeChild:null};return n}var r=t.prototype;r.getChildContext=function e(){var t=this.props,r=t.bsClass,n=t.animation,a=t.mountOnEnter,i=t.unmountOnExit;var o=this.state.activeKey;var s=this.getContainerActiveKey();var u=o!=null?o:s;var l=o!=null&&o!==s;return{$bs_tabContent:{bsClass:r,animation:n,activeKey:u,mountOnEnter:a,unmountOnExit:i,onPaneEnter:this.handlePaneEnter,onPaneExited:this.handlePaneExited,exiting:l}}};r.componentWillReceiveProps=function e(t){if(!t.animation&&this.state.activeChild){this.setState({activeKey:null,activeChild:null})}};r.componentWillUnmount=function e(){this.isUnmounted=true};r.getContainerActiveKey=function e(){var t=this.context.$bs_tabContainer;return t&&t.activeKey};r.handlePaneEnter=function e(t,r){if(!this.props.animation){return false}if(r!==this.getContainerActiveKey()){return false}this.setState({activeKey:r,activeChild:t});return true};r.handlePaneExited=function e(t){if(this.isUnmounted){return}this.setState((function(e){var r=e.activeChild;if(r!==t){return null}return{activeKey:null,activeChild:null}}))};r.render=function e(){var t=this.props,r=t.componentClass,n=t.className,a=g(t,["componentClass","className"]);var i=U(a,["animation","mountOnEnter","unmountOnExit"]),o=i[0],u=i[1];return v.a.createElement(r,s({},u,{className:A()(n,I(o,"content"))}))};return t}(v.a.Component);js.propTypes=Ds;js.defaultProps=Ts;js.contextTypes=Ls;js.childContextTypes=Cs;var Ns=P("tab",js);var Is={eventKey:w.a.any,animation:w.a.oneOfType([w.a.bool,Te.a]),id:w.a.string,"aria-labelledby":w.a.string,bsClass:w.a.string,onEnter:w.a.func,onEntering:w.a.func,onEntered:w.a.func,onExit:w.a.func,onExiting:w.a.func,onExited:w.a.func,mountOnEnter:w.a.bool,unmountOnExit:w.a.bool};var Ps={$bs_tabContainer:w.a.shape({getTabId:w.a.func,getPaneId:w.a.func}),$bs_tabContent:w.a.shape({bsClass:w.a.string,animation:w.a.oneOfType([w.a.bool,Te.a]),activeKey:w.a.any,mountOnEnter:w.a.bool,unmountOnExit:w.a.bool,onPaneEnter:w.a.func.isRequired,onPaneExited:w.a.func.isRequired,exiting:w.a.bool.isRequired})};var Rs={$bs_tabContainer:w.a.oneOf([null])};var Fs=function(e){p(t,e);function t(t,r){var n;n=e.call(this,t,r)||this;n.handleEnter=n.handleEnter.bind(Oe(Oe(n)));n.handleExited=n.handleExited.bind(Oe(Oe(n)));n.in=false;return n}var r=t.prototype;r.getChildContext=function e(){return{$bs_tabContainer:null}};r.componentDidMount=function e(){if(this.shouldBeIn()){this.handleEnter()}};r.componentDidUpdate=function e(){if(this.in){if(!this.shouldBeIn()){this.handleExited()}}else if(this.shouldBeIn()){this.handleEnter()}};r.componentWillUnmount=function e(){if(this.in){this.handleExited()}};r.getAnimation=function e(){if(this.props.animation!=null){return this.props.animation}var t=this.context.$bs_tabContent;return t&&t.animation};r.handleEnter=function e(){var t=this.context.$bs_tabContent;if(!t){return}this.in=t.onPaneEnter(this,this.props.eventKey)};r.handleExited=function e(){var t=this.context.$bs_tabContent;if(!t){return}t.onPaneExited(this);this.in=false};r.isActive=function e(){var t=this.context.$bs_tabContent;var r=t&&t.activeKey;return this.props.eventKey===r};r.shouldBeIn=function e(){return this.getAnimation()&&this.isActive()};r.render=function e(){var t=this.props,r=t.eventKey,n=t.className,a=t.onEnter,i=t.onEntering,o=t.onEntered,u=t.onExit,l=t.onExiting,c=t.onExited,f=t.mountOnEnter,d=t.unmountOnExit,p=g(t,["eventKey","className","onEnter","onEntering","onEntered","onExit","onExiting","onExited","mountOnEnter","unmountOnExit"]);var h=this.context,m=h.$bs_tabContent,y=h.$bs_tabContainer;var b=U(p,["animation"]),_=b[0],w=b[1];var E=this.isActive();var x=this.getAnimation();var k=f!=null?f:m&&m.mountOnEnter;var M=d!=null?d:m&&m.unmountOnExit;if(!E&&!x&&M){return null}var S=x===true?Rr:x||null;if(m){_.bsClass=I(m,"pane")}var O=s({},Y(_),{active:E});if(y){false?undefined:void 0;w.id=y.getPaneId(r);w["aria-labelledby"]=y.getTabId(r)}var D=v.a.createElement("div",s({},w,{role:"tabpanel","aria-hidden":!E,className:A()(n,O)}));if(S){var T=m&&m.exiting;return v.a.createElement(S,{in:E&&!T,onEnter:Ce(this.handleEnter,a),onEntering:i,onEntered:o,onExit:u,onExiting:l,onExited:Ce(this.handleExited,c),mountOnEnter:k,unmountOnExit:M},D)}return D};return t}(v.a.Component);Fs.propTypes=Is;Fs.contextTypes=Ps;Fs.childContextTypes=Rs;var Ys=P("tab-pane",Fs);var Bs=s({},Ys.propTypes,{disabled:w.a.bool,title:w.a.node,tabClassName:w.a.string});var Hs=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=s({},this.props);delete t.title;delete t.disabled;delete t.tabClassName;return v.a.createElement(Ys,t)};return t}(v.a.Component);Hs.propTypes=Bs;Hs.Container=Os;Hs.Content=Ns;Hs.Pane=Ys;var zs=Hs;var Us={striped:w.a.bool,bordered:w.a.bool,condensed:w.a.bool,hover:w.a.bool,responsive:w.a.bool};var qs={bordered:false,condensed:false,hover:false,responsive:false,striped:false};var Vs=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t;var r=this.props,n=r.striped,a=r.bordered,i=r.condensed,o=r.hover,u=r.responsive,l=r.className,c=g(r,["striped","bordered","condensed","hover","responsive","className"]);var f=z(c),d=f[0],p=f[1];var h=s({},Y(d),(t={},t[I(d,"striped")]=n,t[I(d,"bordered")]=a,t[I(d,"condensed")]=i,t[I(d,"hover")]=o,t));var m=v.a.createElement("table",s({},p,{className:A()(l,h)}));if(u){return v.a.createElement("div",{className:I(d,"responsive")},m)}return m};return t}(v.a.Component);Vs.propTypes=Us;Vs.defaultProps=qs;var Ws=P("table",Vs);var Ks=Os.ControlledComponent;var Gs={activeKey:w.a.any,bsStyle:w.a.oneOf(["tabs","pills"]),animation:w.a.oneOfType([w.a.bool,Te.a]),id:ur()(w.a.oneOfType([w.a.string,w.a.number])),onSelect:w.a.func,mountOnEnter:w.a.bool,unmountOnExit:w.a.bool};var Qs={bsStyle:"tabs",animation:true,mountOnEnter:false,unmountOnExit:false};function Js(e){var t;ee.forEach(e,(function(e){if(t==null){t=e.props.eventKey}}));return t}var Zs=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.renderTab=function e(t){var r=t.props,n=r.title,a=r.eventKey,i=r.disabled,o=r.tabClassName;if(n==null){return null}return v.a.createElement(xi,{eventKey:a,disabled:i,className:o},n)};r.render=function e(){var t=this.props,r=t.id,n=t.onSelect,a=t.animation,i=t.mountOnEnter,o=t.unmountOnExit,u=t.bsClass,l=t.className,c=t.style,f=t.children,d=t.activeKey,p=d===void 0?Js(f):d,h=g(t,["id","onSelect","animation","mountOnEnter","unmountOnExit","bsClass","className","style","children","activeKey"]);return v.a.createElement(Ks,{id:r,activeKey:p,onSelect:n,className:l,style:c},v.a.createElement("div",null,v.a.createElement(Za,s({},h,{role:"tablist"}),ee.map(f,this.renderTab)),v.a.createElement(Ns,{bsClass:u,animation:a,mountOnEnter:i,unmountOnExit:o},f)))};return t}(v.a.Component);Zs.propTypes=Gs;Zs.defaultProps=Qs;P("tab",Zs);var Xs=x()(Zs,{activeKey:"onSelect"});var $s={src:w.a.string,alt:w.a.string,href:w.a.string,onError:w.a.func,onLoad:w.a.func};var eu=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.src,n=t.alt,a=t.onError,i=t.onLoad,o=t.className,u=t.children,l=g(t,["src","alt","onError","onLoad","className","children"]);var c=z(l),f=c[0],d=c[1];var p=d.href?Re:"div";var h=Y(f);return v.a.createElement(p,s({},d,{className:A()(o,h)}),v.a.createElement("img",{src:r,alt:n,onError:a,onLoad:i}),u&&v.a.createElement("div",{className:"caption"},u))};return t}(v.a.Component);eu.propTypes=$s;var tu=P("thumbnail",eu);var ru={type:w.a.oneOf(["checkbox","radio"]),name:w.a.string,checked:w.a.bool,disabled:w.a.bool,onChange:w.a.func,value:w.a.any.isRequired};var nu=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.children,n=t.name,a=t.checked,i=t.type,o=t.onChange,u=t.value,l=g(t,["children","name","checked","type","onChange","value"]);var c=l.disabled;return v.a.createElement(Ke,s({},l,{active:!!a,componentClass:"label"}),v.a.createElement("input",{name:n,type:i,autoComplete:"off",value:u,checked:!!a,disabled:!!c,onChange:o}),r)};return t}(v.a.Component);nu.propTypes=ru;var au=nu;var iu={name:w.a.string,value:w.a.any,onChange:w.a.func,type:w.a.oneOf(["checkbox","radio"]).isRequired};var ou={type:"radio"};var su=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.getValues=function e(){var t=this.props.value;return t==null?[]:[].concat(t)};r.handleToggle=function e(t){var r=this.props,n=r.type,a=r.onChange;var i=this.getValues();var o=i.indexOf(t)!==-1;if(n==="radio"){if(!o){a(t)}return}if(o){a(i.filter((function(e){return e!==t})))}else{a(i.concat([t]))}};r.render=function e(){var t=this;var r=this.props,n=r.children,a=r.type,i=r.name,o=g(r,["children","type","name"]);var u=this.getValues();!(a!=="radio"||!!i)?false?undefined:O()(false):void 0;delete o.onChange;delete o.value;return v.a.createElement($e,s({},o,{"data-toggle":"buttons"}),ee.map(n,(function(e){var r=e.props,n=r.value,o=r.onChange;var s=function e(){return t.handleToggle(n)};return v.a.cloneElement(e,{type:a,name:e.name||i,checked:u.indexOf(n)!==-1,onChange:Ce(o,s)})})))};return t}(v.a.Component);su.propTypes=iu;su.defaultProps=ou;var uu=x()(su,{value:"onChange"});uu.Button=au;var lu=uu;var cu={id:ur()(w.a.oneOfType([w.a.string,w.a.number])),placement:w.a.oneOf(["top","right","bottom","left"]),positionTop:w.a.oneOfType([w.a.number,w.a.string]),positionLeft:w.a.oneOfType([w.a.number,w.a.string]),arrowOffsetTop:w.a.oneOfType([w.a.number,w.a.string]),arrowOffsetLeft:w.a.oneOfType([w.a.number,w.a.string])};var fu={placement:"right"};var du=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t;var r=this.props,n=r.placement,a=r.positionTop,i=r.positionLeft,o=r.arrowOffsetTop,u=r.arrowOffsetLeft,l=r.className,c=r.style,f=r.children,d=g(r,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","className","style","children"]);var p=z(d),h=p[0],m=p[1];var y=s({},Y(h),(t={},t[n]=true,t));var b=s({top:a,left:i},c);var _={top:o,left:u};return v.a.createElement("div",s({},m,{role:"tooltip",className:A()(l,y),style:b}),v.a.createElement("div",{className:I(h,"arrow"),style:_}),v.a.createElement("div",{className:I(h,"inner")},f))};return t}(v.a.Component);du.propTypes=cu;du.defaultProps=fu;var pu=P("tooltip",du);var hu=function(e){p(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.render=function e(){var t=this.props,r=t.className,n=g(t,["className"]);var a=z(n),i=a[0],o=a[1];var u=Y(i);return v.a.createElement("div",s({},o,{className:A()(r,u)}))};return t}(v.a.Component);var vu=P("well",F([D.LARGE,D.SMALL],hu))},function(e,t,r){"use strict";t.__esModule=true;t.default=n;function n(e){return e&&e.ownerDocument||document}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(20);t.__esModule=true;t.default=c;var a=n(r(583));var i=n(r(969));var o=n(r(971));var s=n(r(972));var u=r(277);var l=n(r(973));function c(e,t,r){var n="";var c="";var f=t;if(typeof t==="string"){if(r===undefined){return e.style[(0,a.default)(t)]||(0,o.default)(e).getPropertyValue((0,i.default)(t))}else{(f={})[t]=r}}Object.keys(f).forEach((function(t){var r=f[t];if(!r&&r!==0){(0,s.default)(e,(0,i.default)(t))}else if((0,l.default)(t)){c+=t+"("+r+") "}else{n+=(0,i.default)(t)+": "+r+";"}}));if(c){n+=u.transform+": "+c+";"}e.style.cssText+=";"+n}e.exports=t["default"]},function(e,t,r){"use strict";var n=r(93);var a={childContextTypes:true,contextType:true,contextTypes:true,defaultProps:true,displayName:true,getDefaultProps:true,getDerivedStateFromError:true,getDerivedStateFromProps:true,mixins:true,propTypes:true,type:true};var i={name:true,length:true,prototype:true,caller:true,callee:true,arguments:true,arity:true};var o={$$typeof:true,render:true,defaultProps:true,displayName:true,propTypes:true};var s={$$typeof:true,compare:true,defaultProps:true,displayName:true,propTypes:true,type:true};var u={};u[n.ForwardRef]=o;u[n.Memo]=s;function l(e){if(n.isMemo(e)){return s}return u[e["$$typeof"]]||a}var c=Object.defineProperty;var f=Object.getOwnPropertyNames;var d=Object.getOwnPropertySymbols;var p=Object.getOwnPropertyDescriptor;var h=Object.getPrototypeOf;var v=Object.prototype;function m(e,t,r){if(typeof t!=="string"){if(v){var n=h(t);if(n&&n!==v){m(e,n,r)}}var a=f(t);if(d){a=a.concat(d(t))}var o=l(e);var s=l(t);for(var u=0;u<a.length;++u){var y=a[u];if(!i[y]&&!(r&&r[y])&&!(s&&s[y])&&!(o&&o[y])){var g=p(t,y);try{c(e,y,g)}catch(e){}}}}return e}e.exports=m},function(e,t,r){"use strict";(function(e){var n=r(21);var a=r(678);var i=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var o=i&&typeof e=="object"&&e&&!e.nodeType&&e;var s=o&&o.exports===i;var u=s?n["a"].Buffer:undefined;var l=u?u.isBuffer:undefined;var c=l||a["a"];t["a"]=c}).call(this,r(169)(e))},function(e,t,r){var n=r(213),a=r(660),i=r(109);function o(e){return e&&e.length?n(e,i,a):undefined}e.exports=o},function(e,t,r){"use strict";t.__esModule=true;t.locationsAreEqual=t.statesAreEqual=t.createLocation=t.createQuery=undefined;var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var a=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 i=r(8);var o=f(i);var s=r(23);var u=f(s);var l=r(82);var c=r(164);function f(e){return e&&e.__esModule?e:{default:e}}var d=t.createQuery=function e(t){return a(Object.create(null),t)};var p=t.createLocation=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"/";var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:c.POP;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var a=typeof t==="string"?(0,l.parsePath)(t):t;false?undefined:void 0;var i=a.pathname||"/";var o=a.search||"";var s=a.hash||"";var u=a.state;return{pathname:i,search:o,hash:s,state:u,action:r,key:n}};var h=function e(t){return Object.prototype.toString.call(t)==="[object Date]"};var v=t.statesAreEqual=function e(t,r){if(t===r)return true;var a=typeof t==="undefined"?"undefined":n(t);var i=typeof r==="undefined"?"undefined":n(r);if(a!==i)return false;!(a!=="function")?false?undefined:(0,o.default)(false):void 0;if(a==="object"){!!(h(t)&&h(r))?false?undefined:(0,o.default)(false):void 0;if(!Array.isArray(t)){var s=Object.keys(t);var u=Object.keys(r);return s.length===u.length&&s.every((function(n){return e(t[n],r[n])}))}return Array.isArray(r)&&t.length===r.length&&t.every((function(t,n){return e(t,r[n])}))}return false};var m=t.locationsAreEqual=function e(t,r){return t.key===r.key&&t.pathname===r.pathname&&t.search===r.search&&t.hash===r.hash&&v(t.state,r.state)}},function(e,t){if(typeof Object.create==="function"){e.exports=function e(t,r){if(r){t.super_=r;t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function e(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype;t.prototype=new n;t.prototype.constructor=t}}}},function(e,t){var r=e.exports={};var n;var a;function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){n=setTimeout}else{n=i}}catch(e){n=i}try{if(typeof clearTimeout==="function"){a=clearTimeout}else{a=o}}catch(e){a=o}})();function s(e){if(n===setTimeout){return setTimeout(e,0)}if((n===i||!n)&&setTimeout){n=setTimeout;return setTimeout(e,0)}try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}function u(e){if(a===clearTimeout){return clearTimeout(e)}if((a===o||!a)&&clearTimeout){a=clearTimeout;return clearTimeout(e)}try{return a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}var l=[];var c=false;var f;var d=-1;function p(){if(!c||!f){return}c=false;if(f.length){l=f.concat(l)}else{d=-1}if(l.length){h()}}function h(){if(c){return}var e=s(p);c=true;var t=l.length;while(t){f=l;l=[];while(++d<t){if(f){f[d].run()}}d=-1;t=l.length}f=null;c=false;u(e)}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1){for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}}l.push(new v(e,t));if(l.length===1&&!c){s(h)}};function v(e,t){this.fun=e;this.array=t}v.prototype.run=function(){this.fun.apply(null,this.array)};r.title="browser";r.browser=true;r.env={};r.argv=[];r.version="";r.versions={};function m(){}r.on=m;r.addListener=m;r.once=m;r.off=m;r.removeListener=m;r.removeAllListeners=m;r.emit=m;r.prependListener=m;r.prependOnceListener=m;r.listeners=function(e){return[]};r.binding=function(e){throw new Error("process.binding is not supported")};r.cwd=function(){return"/"};r.chdir=function(e){throw new Error("process.chdir is not supported")};r.umask=function(){return 0}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,r){var n=r(84);var a=r(153);e.exports=r(74)?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){var n=r(128);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return typeof e==="object"?e!==null:typeof e==="function"}},function(e,t,r){var n=r(574);var a=r(274);e.exports=Object.keys||function e(t){return n(t,a)}},function(e,t,r){var n=r(187);e.exports=function(e){return Object(n(e))}},function(e,t,r){"use strict";t.__esModule=true;t.default=function(e){return(0,o.default)(a.default.findDOMNode(e))};var n=r(17);var a=s(n);var i=r(117);var o=s(i);function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t["default"]},function(e,t,r){var n=r(59);var a=n.Symbol;e.exports=a},function(e,t,r){var n=r(601),a=r(1025),i=r(108);function o(e){return i(e)?n(e):a(e)}e.exports=o},function(e,t){function r(e,t){var r=-1,n=e==null?0:e.length,a=Array(n);while(++r<n){a[r]=t(e[r],r,e)}return a}e.exports=r},function(e,t,r){var n=r(85),a=r(60);var i="[object Symbol]";function o(e){return typeof e=="symbol"||a(e)&&n(e)==i}e.exports=o},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="Palace Collection Manager";t.default=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return n([a],e).filter((function(e){return!!e})).join(" - ")}},function(e,t){e.exports=function(e){return typeof e==="object"?e!==null:typeof e==="function"}},function(e,t,r){e.exports=!r(91)((function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}))},function(e,t,r){"use strict";var n=typeof Reflect==="object"?Reflect:null;var a=n&&typeof n.apply==="function"?n.apply:function e(t,r,n){return Function.prototype.apply.call(t,r,n)};var i;if(n&&typeof n.ownKeys==="function"){i=n.ownKeys}else if(Object.getOwnPropertySymbols){i=function e(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}}else{i=function e(t){return Object.getOwnPropertyNames(t)}}function o(e){if(console&&console.warn)console.warn(e)}var s=Number.isNaN||function e(t){return t!==t};function u(){u.init.call(this)}e.exports=u;e.exports.once=A;u.EventEmitter=u;u.prototype._events=undefined;u.prototype._eventsCount=0;u.prototype._maxListeners=undefined;var l=10;function c(e){if(typeof e!=="function"){throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}}Object.defineProperty(u,"defaultMaxListeners",{enumerable:true,get:function(){return l},set:function(e){if(typeof e!=="number"||e<0||s(e)){throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".")}l=e}});u.init=function(){if(this._events===undefined||this._events===Object.getPrototypeOf(this)._events){this._events=Object.create(null);this._eventsCount=0}this._maxListeners=this._maxListeners||undefined};u.prototype.setMaxListeners=function e(t){if(typeof t!=="number"||t<0||s(t)){throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".")}this._maxListeners=t;return this};function f(e){if(e._maxListeners===undefined)return u.defaultMaxListeners;return e._maxListeners}u.prototype.getMaxListeners=function e(){return f(this)};u.prototype.emit=function e(t){var r=[];for(var n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error";var o=this._events;if(o!==undefined)i=i&&o.error===undefined;else if(!i)return false;if(i){var s;if(r.length>0)s=r[0];if(s instanceof Error){throw s}var u=new Error("Unhandled error."+(s?" ("+s.message+")":""));u.context=s;throw u}var l=o[t];if(l===undefined)return false;if(typeof l==="function"){a(l,this,r)}else{var c=l.length;var f=y(l,c);for(var n=0;n<c;++n)a(f[n],this,r)}return true};function d(e,t,r,n){var a;var i;var s;c(r);i=e._events;if(i===undefined){i=e._events=Object.create(null);e._eventsCount=0}else{if(i.newListener!==undefined){e.emit("newListener",t,r.listener?r.listener:r);i=e._events}s=i[t]}if(s===undefined){s=i[t]=r;++e._eventsCount}else{if(typeof s==="function"){s=i[t]=n?[r,s]:[s,r]}else if(n){s.unshift(r)}else{s.push(r)}a=f(e);if(a>0&&s.length>a&&!s.warned){s.warned=true;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners "+"added. Use emitter.setMaxListeners() to "+"increase limit");u.name="MaxListenersExceededWarning";u.emitter=e;u.type=t;u.count=s.length;o(u)}}return e}u.prototype.addListener=function e(t,r){return d(this,t,r,false)};u.prototype.on=u.prototype.addListener;u.prototype.prependListener=function e(t,r){return d(this,t,r,true)};function p(){if(!this.fired){this.target.removeListener(this.type,this.wrapFn);this.fired=true;if(arguments.length===0)return this.listener.call(this.target);return this.listener.apply(this.target,arguments)}}function h(e,t,r){var n={fired:false,wrapFn:undefined,target:e,type:t,listener:r};var a=p.bind(n);a.listener=r;n.wrapFn=a;return a}u.prototype.once=function e(t,r){c(r);this.on(t,h(this,t,r));return this};u.prototype.prependOnceListener=function e(t,r){c(r);this.prependListener(t,h(this,t,r));return this};u.prototype.removeListener=function e(t,r){var n,a,i,o,s;c(r);a=this._events;if(a===undefined)return this;n=a[t];if(n===undefined)return this;if(n===r||n.listener===r){if(--this._eventsCount===0)this._events=Object.create(null);else{delete a[t];if(a.removeListener)this.emit("removeListener",t,n.listener||r)}}else if(typeof n!=="function"){i=-1;for(o=n.length-1;o>=0;o--){if(n[o]===r||n[o].listener===r){s=n[o].listener;i=o;break}}if(i<0)return this;if(i===0)n.shift();else{g(n,i)}if(n.length===1)a[t]=n[0];if(a.removeListener!==undefined)this.emit("removeListener",t,s||r)}return this};u.prototype.off=u.prototype.removeListener;u.prototype.removeAllListeners=function e(t){var r,n,a;n=this._events;if(n===undefined)return this;if(n.removeListener===undefined){if(arguments.length===0){this._events=Object.create(null);this._eventsCount=0}else if(n[t]!==undefined){if(--this._eventsCount===0)this._events=Object.create(null);else delete n[t]}return this}if(arguments.length===0){var i=Object.keys(n);var o;for(a=0;a<i.length;++a){o=i[a];if(o==="removeListener")continue;this.removeAllListeners(o)}this.removeAllListeners("removeListener");this._events=Object.create(null);this._eventsCount=0;return this}r=n[t];if(typeof r==="function"){this.removeListener(t,r)}else if(r!==undefined){for(a=r.length-1;a>=0;a--){this.removeListener(t,r[a])}}return this};function v(e,t,r){var n=e._events;if(n===undefined)return[];var a=n[t];if(a===undefined)return[];if(typeof a==="function")return r?[a.listener||a]:[a];return r?b(a):y(a,a.length)}u.prototype.listeners=function e(t){return v(this,t,true)};u.prototype.rawListeners=function e(t){return v(this,t,false)};u.listenerCount=function(e,t){if(typeof e.listenerCount==="function"){return e.listenerCount(t)}else{return m.call(e,t)}};u.prototype.listenerCount=m;function m(e){var t=this._events;if(t!==undefined){var r=t[e];if(typeof r==="function"){return 1}else if(r!==undefined){return r.length}}return 0}u.prototype.eventNames=function e(){return this._eventsCount>0?i(this._events):[]};function y(e,t){var r=new Array(t);for(var n=0;n<t;++n)r[n]=e[n];return r}function g(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function b(e){var t=new Array(e.length);for(var r=0;r<t.length;++r){t[r]=e[r].listener||e[r]}return t}function A(e,t){return new Promise((function(r,n){function a(){if(i!==undefined){e.removeListener("error",i)}r([].slice.call(arguments))}var i;if(t!=="error"){i=function r(i){e.removeListener(t,a);n(i)};e.once("error",i)}e.once(t,a)}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value: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}e.exports=t["default"]},function(e,t,r){var n=r(85),a=r(289),i=r(60);var o="[object Object]";var s=Function.prototype,u=Object.prototype;var l=s.toString;var c=u.hasOwnProperty;var f=l.call(Object);function d(e){if(!i(e)||n(e)!=o){return false}var t=a(e);if(t===null){return true}var r=c.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&l.call(r)==f}e.exports=d},function(e,t,r){"use strict";t.__esModule=true;var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol?"symbol":typeof e};var a=r(1);var i=u(a);var o=r(1006);var s=u(o);function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,r,a,o){var s=e[t];var u=typeof s==="undefined"?"undefined":n(s);if(i.default.isValidElement(s)){return new Error("Invalid "+a+" `"+o+"` of type ReactElement "+("supplied to `"+r+"`, expected an element type (a string ")+"or a ReactClass).")}if(u!=="function"&&u!=="string"){return new Error("Invalid "+a+" `"+o+"` of value `"+s+"` "+("supplied to `"+r+"`, expected an element type (a string ")+"or a ReactClass).")}return null}t.default=(0,s.default)(l)},function(e,t,r){"use strict";var n=r(44);var a=r(220);var i=r(32);var o="[object Object]";var s=Function.prototype,u=Object.prototype;var l=s.toString;var c=u.hasOwnProperty;var f=l.call(Object);function d(e){if(!Object(i["a"])(e)||Object(n["a"])(e)!=o){return false}var t=Object(a["a"])(e);if(t===null){return true}var r=c.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&l.call(r)==f}t["a"]=d},function(e,t,r){var n=r(332),a=r(1274),i=r(654),o=r(212);var s=i((function(e,t){if(e==null){return[]}var r=t.length;if(r>1&&o(e,t[0],t[1])){t=[]}else if(r>2&&o(t[0],t[1],t[2])){t=[t[0]]}return a(e,n(t,1),[])}));e.exports=s},function(e,t,r){var n=r(51),a=r(1256);function i(e,t){return e&&e.length?a(e,n(t,2)):[]}e.exports=i},function(e,t,r){var n=r(1293);var a=n();e.exports=a},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(334);var i=F(a);var o=r(92);var s=F(o);var u=r(79);var l=F(u);var c=r(0);var f=F(c);var d=r(190);var p=F(d);var h=r(990);var v=F(h);var m=r(9);var y=F(m);var g=r(1);var b=F(g);var A=r(17);var _=F(A);var w=r(23);var E=F(w);var x=r(992);var k=F(x);var M=r(596);var S=F(M);var O=r(996);var D=F(O);var T=r(592);var L=F(T);var C=r(997);var j=F(C);var N=r(192);var I=F(N);var P=r(131);var R=F(P);function F(e){return e&&e.__esModule?e:{default:e}}function Y(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 H(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 z=new k.default;var U=function(e){H(t,e);function t(){var r,n,a;Y(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),q.call(n),r),B(n,a)}t.prototype.omitProps=function e(t,r){var n=Object.keys(t);var a={};n.map((function(e){if(!Object.prototype.hasOwnProperty.call(r,e)){a[e]=t[e]}}));return a};t.prototype.render=function e(){var r=this.props,a=r.show,i=r.container,o=r.children,s=r.transition,u=r.backdrop,l=r.className,c=r.style,f=r.onExit,d=r.onExiting,p=r.onEnter,h=r.onEntering,v=r.onEntered;var m=b.default.Children.only(o);var y=this.omitProps(this.props,t.propTypes);var A=a||s&&!this.state.exited;if(!A){return null}var _=m.props,w=_.role,E=_.tabIndex;if(w===undefined||E===undefined){m=(0,g.cloneElement)(m,{role:w===undefined?"document":w,tabIndex:E==null?"-1":E})}if(s){m=b.default.createElement(s,{appear:true,unmountOnExit:true,in:a,onExit:f,onExiting:d,onExited:this.handleHidden,onEnter:p,onEntering:h,onEntered:v},m)}return b.default.createElement(S.default,{ref:this.setMountNode,container:i,onRendered:this.onPortalRendered},b.default.createElement("div",n({ref:this.setModalNodeRef,role:w||"dialog"},y,{style:c,className:l}),u&&this.renderBackdrop(),b.default.createElement(D.default,{ref:this.setDialogRef},m)))};t.prototype.componentWillReceiveProps=function e(t){if(t.show){this.setState({exited:false})}else if(!t.transition){this.setState({exited:true})}};t.prototype.componentWillUpdate=function e(t){if(!this.props.show&&t.show){this.checkForFocus()}};t.prototype.componentDidMount=function e(){this._isMounted=true;if(this.props.show){this.onShow()}};t.prototype.componentDidUpdate=function e(t){var r=this.props.transition;if(t.show&&!this.props.show&&!r){this.onHide()}else if(!t.show&&this.props.show){this.onShow()}};t.prototype.componentWillUnmount=function e(){var t=this.props,r=t.show,n=t.transition;this._isMounted=false;if(r||n&&!this.state.exited){this.onHide()}};t.prototype.autoFocus=function e(){if(!this.props.autoFocus){return}var t=this.getDialogElement();var r=(0,i.default)((0,R.default)(this));if(t&&!(0,s.default)(t,r)){this.lastFocus=r;if(!t.hasAttribute("tabIndex")){(0,E.default)(false,"The modal content node does not accept focus. For the benefit of "+"assistive technologies, the tabIndex of the node is being set "+'to "-1".');t.setAttribute("tabIndex",-1)}t.focus()}};t.prototype.restoreLastFocus=function e(){if(this.lastFocus&&this.lastFocus.focus){this.lastFocus.focus();this.lastFocus=null}};t.prototype.getDialogElement=function e(){return _.default.findDOMNode(this.dialog)};t.prototype.isTopModal=function e(){return this.props.manager.isTopModal(this)};return t}(b.default.Component);U.propTypes=n({},S.default.propTypes,{show:f.default.bool,container:f.default.oneOfType([p.default,f.default.func]),onShow:f.default.func,onHide:f.default.func,backdrop:f.default.oneOfType([f.default.bool,f.default.oneOf(["static"])]),renderBackdrop:f.default.func,onEscapeKeyDown:f.default.func,onEscapeKeyUp:(0,v.default)(f.default.func,"Please use onEscapeKeyDown instead for consistency"),onBackdropClick:f.default.func,backdropStyle:f.default.object,backdropClassName:f.default.string,containerClassName:f.default.string,keyboard:f.default.bool,transition:y.default,backdropTransition:y.default,autoFocus:f.default.bool,enforceFocus:f.default.bool,restoreFocus:f.default.bool,onEnter:f.default.func,onEntering:f.default.func,onEntered:f.default.func,onExit:f.default.func,onExiting:f.default.func,onExited:f.default.func,manager:f.default.object.isRequired});U.defaultProps={show:false,backdrop:true,keyboard:true,autoFocus:true,enforceFocus:true,restoreFocus:true,onHide:function e(){},manager:z,renderBackdrop:function e(t){return b.default.createElement("div",t)}};var q=function e(){var t=this;this.state={exited:!this.props.show};this.renderBackdrop=function(){var e=t.props,r=e.backdropStyle,n=e.backdropClassName,a=e.renderBackdrop,i=e.backdropTransition;var o=function e(r){return t.backdrop=r};var s=a({ref:o,style:r,className:n,onClick:t.handleBackdropClick});if(i){s=b.default.createElement(i,{appear:true,in:t.props.show},s)}return s};this.onPortalRendered=function(){t.autoFocus();if(t.props.onShow){t.props.onShow()}};this.onShow=function(){var e=(0,R.default)(t);var r=(0,I.default)(t.props.container,e.body);t.props.manager.add(t,r,t.props.containerClassName);t._onDocumentKeydownListener=(0,L.default)(e,"keydown",t.handleDocumentKeyDown);t._onDocumentKeyupListener=(0,L.default)(e,"keyup",t.handleDocumentKeyUp);t._onFocusinListener=(0,j.default)(t.enforceFocus)};this.onHide=function(){t.props.manager.remove(t);t._onDocumentKeydownListener.remove();t._onDocumentKeyupListener.remove();t._onFocusinListener.remove();if(t.props.restoreFocus){t.restoreLastFocus()}};this.setMountNode=function(e){t.mountNode=e?e.getMountNode():e};this.setModalNodeRef=function(e){t.modalNode=e};this.setDialogRef=function(e){t.dialog=e};this.handleHidden=function(){t.setState({exited:true});t.onHide();if(t.props.onExited){var e;(e=t.props).onExited.apply(e,arguments)}};this.handleBackdropClick=function(e){if(e.target!==e.currentTarget){return}if(t.props.onBackdropClick){t.props.onBackdropClick(e)}if(t.props.backdrop===true){t.props.onHide()}};this.handleDocumentKeyDown=function(e){if(t.props.keyboard&&e.keyCode===27&&t.isTopModal()){if(t.props.onEscapeKeyDown){t.props.onEscapeKeyDown(e)}t.props.onHide()}};this.handleDocumentKeyUp=function(e){if(t.props.keyboard&&e.keyCode===27&&t.isTopModal()){if(t.props.onEscapeKeyUp){t.props.onEscapeKeyUp(e)}}};this.checkForFocus=function(){if(l.default){t.lastFocus=(0,i.default)()}};this.enforceFocus=function(){if(!t.props.enforceFocus||!t._isMounted||!t.isTopModal()){return}var e=t.getDialogElement();var r=(0,i.default)((0,R.default)(t));if(e&&!(0,s.default)(e,r)){e.focus()}}};U.Manager=k.default;t.default=U;e.exports=t["default"]},function(e,t,r){(function(e){function r(e){if(Array.isArray){return Array.isArray(e)}return m(e)==="[object Array]"}t.isArray=r;function n(e){return typeof e==="boolean"}t.isBoolean=n;function a(e){return e===null}t.isNull=a;function i(e){return e==null}t.isNullOrUndefined=i;function o(e){return typeof e==="number"}t.isNumber=o;function s(e){return typeof e==="string"}t.isString=s;function u(e){return typeof e==="symbol"}t.isSymbol=u;function l(e){return e===void 0}t.isUndefined=l;function c(e){return m(e)==="[object RegExp]"}t.isRegExp=c;function f(e){return typeof e==="object"&&e!==null}t.isObject=f;function d(e){return m(e)==="[object Date]"}t.isDate=d;function p(e){return m(e)==="[object Error]"||e instanceof Error}t.isError=p;function h(e){return typeof e==="function"}t.isFunction=h;function v(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}t.isPrimitive=v;t.isBuffer=e.isBuffer;function m(e){return Object.prototype.toString.call(e)}}).call(this,r(251).Buffer)},function(e,t,r){"use strict";var n=r(10);var a=n.OrderedMap;var i={createFromArray:function e(t){return a(t.map((function(e){return[e.getKey(),e]})))}};e.exports=i},function(e,t,r){"use strict";function n(e,t,r,n){if(!e.size){return}var a=0;e.reduce((function(e,i,o){if(!t(e,i)){if(r(e)){n(a,o)}a=o}return i}));r(e.last())&&n(a,e.count())}e.exports=n},function(e,t,r){"use strict";function n(e){if(!e||!e.ownerDocument){return false}if(!e.ownerDocument.defaultView){return e instanceof HTMLElement}if(e instanceof e.ownerDocument.defaultView.HTMLElement){return true}return false}e.exports=n},function(e,t,r){"use strict";var n=r(35);var a=r(83);var i=a("draft_tree_data_support");function o(e,t,r){var a=e.getSelection();var o=e.getCurrentContent();var s=a;var u=a.getAnchorKey();var l=a.getFocusKey();var c=o.getBlockForKey(u);if(i){if(r==="forward"){if(u!==l){return o}}}if(a.isCollapsed()){if(r==="forward"){if(e.isSelectionAtEndOfContent()){return o}if(i){var f=a.getAnchorOffset()===o.getBlockForKey(u).getLength();if(f){var d=o.getBlockForKey(c.nextSibling);if(!d||d.getLength()===0){return o}}}}else if(e.isSelectionAtStartOfContent()){return o}s=t(e);if(s===a){return o}}return n.removeRange(o,s,r)}e.exports=o},function(e,t){e.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports={}},function(e,t){function r(e){return function(t){return e(t)}}e.exports=r},function(e,t,r){var n=r(135);var a=1/0;function i(e){if(typeof e=="string"||n(e)){return e}var t=e+"";return t=="0"&&1/e==-a?"-0":t}e.exports=i},function(e,t,r){var n=r(618),a=r(300);function i(e,t,r,i){var o=!r;r||(r={});var s=-1,u=t.length;while(++s<u){var l=t[s];var c=i?i(r[l],e[l],l,r,e):undefined;if(c===undefined){c=e[l]}if(o){a(r,l,c)}else{n(r,l,c)}}return r}e.exports=i},function(e,t,r){"use strict";t.__esModule=true;var n=r(624);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r){if(t in e){(0,a.default)(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isDraggableWithin=t.isPointWithinDroppable=t.getVisibleBounds=undefined;var n=r(626);var a=s(n);var i=r(42);var o=r(205);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.getVisibleBounds=function e(t){var r=t.container,n=r.scroll,a=r.bounds;var s=(0,i.subtract)(n.initial,n.current);var u=(0,o.offset)(t.page.withMargin,s);var l={top:Math.max(u.top,a.top),right:Math.min(u.right,a.right),bottom:Math.min(u.bottom,a.bottom),left:Math.max(u.left,a.left)};return l};var l=function e(t){var r=(0,a.default)(t.left,t.right);var n=(0,a.default)(t.top,t.bottom);return function(e){return r(e.x)&&n(e.y)}};var c=t.isPointWithinDroppable=function e(t){return l(u(t))};var f=t.isDraggableWithin=function e(t){var r=t.top,n=t.right,i=t.bottom,o=t.left;var s=(0,a.default)(o-1,n+1);var u=(0,a.default)(r-1,i+1);return function(e){var t=e.page.withMargin;return s(t.left)&&s(t.right)&&u(t.top)&&u(t.bottom)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(42);t.default=function(e){var t=e.source,r=e.sourceEdge,a=e.destination,i=e.destinationEdge,o=e.destinationAxis;var s=function e(t){return(0,n.patch)(o.line,t[o[i]],t[o.crossAxisStart])};var u=s(a);var l=(0,n.absolute)((0,n.subtract)(t.center,s(t)));var c=(0,n.patch)(o.line,(r==="end"?-1:1)*l[o.line],l[o.crossLine]);return(0,n.add)(u,c)}},function(e,t,r){"use strict";t.__esModule=true;t.defaultMemoize=i;t.createSelectorCreator=s;t.createStructuredSelector=l;function n(e,t){return e===t}function a(e,t,r){if(t===null||r===null||t.length!==r.length){return false}var n=t.length;for(var a=0;a<n;a++){if(!e(t[a],r[a])){return false}}return true}function i(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:n;var r=null;var i=null;return function(){if(!a(t,r,arguments)){i=e.apply(null,arguments)}r=arguments;return i}}function o(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return typeof e==="function"}))){var r=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, "+("instead received the following types: ["+r+"]"))}return t}function s(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++){r[n-1]=arguments[n]}return function(){for(var t=arguments.length,n=Array(t),a=0;a<t;a++){n[a]=arguments[a]}var s=0;var u=n.pop();var l=o(n);var c=e.apply(undefined,[function(){s++;return u.apply(null,arguments)}].concat(r));var f=i((function(){var e=[];var t=l.length;for(var r=0;r<t;r++){e.push(l[r].apply(null,arguments))}return c.apply(null,e)}));f.resultFunc=u;f.recomputations=function(){return s};f.resetRecomputations=function(){return s=0};return f}}var u=t.createSelector=s(i);function l(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:u;if(typeof e!=="object"){throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof e))}var r=Object.keys(e);return t(r.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++){t[n]=arguments[n]}return t.reduce((function(e,t,n){e[r[n]]=t;return e}),{})}))}},function(e,t){var r=e.exports={version:"2.6.12"};if(typeof __e=="number")__e=r},function(e,t,r){"use strict";t.__esModule=true;var n=t.PUSH="PUSH";var a=t.REPLACE="REPLACE";var i=t.POP="POP"},function(e,t,r){"use strict";r.r(t);r.d(t,"__DO_NOT_USE__ActionTypes",(function(){return i}));r.d(t,"applyMiddleware",(function(){return b}));r.d(t,"bindActionCreators",(function(){return h}));r.d(t,"combineReducers",(function(){return d}));r.d(t,"compose",(function(){return g}));r.d(t,"createStore",(function(){return s}));var n=r(81);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#subscribelistener 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#subscribelistener for more details.")}t=false;p();var n=f.indexOf(e);f.splice(n,1);c=null}}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}o=o||i.length!==Object.keys(t).length;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={};for(var n in e){var a=e[n];if(typeof a==="function"){r[n]=p(a,t)}}return r}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,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){r.push.apply(r,Object.getOwnPropertySymbols(e))}if(t)r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}));return r}function y(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};if(t%2){m(r,true).forEach((function(t){v(e,t,r[t])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(r))}else{m(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}}return e}function g(){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 b(){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=g.apply(void 0,i)(r.dispatch);return y({},r,{dispatch:n})}}}function A(){}if(false){}},function(e,t,r){e.exports=r(963)},function(e,t,r){var n;(function(a){var i=/^\s+/,o=/\s+$/,s=0,u=a.round,l=a.min,c=a.max,f=a.random;function d(e,t){e=e?e:"";t=t||{};if(e instanceof d){return e}if(!(this instanceof d)){return new d(e,t)}var r=p(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=u(100*this._a)/100,this._format=t.format||r.format;this._gradientType=t.gradientType;if(this._r<1){this._r=u(this._r)}if(this._g<1){this._g=u(this._g)}if(this._b<1){this._b=u(this._b)}this._ok=r.ok;this._tc_id=s++}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb();var t,r,n,i,o,s;t=e.r/255;r=e.g/255;n=e.b/255;if(t<=.03928){i=t/12.92}else{i=a.pow((t+.055)/1.055,2.4)}if(r<=.03928){o=r/12.92}else{o=a.pow((r+.055)/1.055,2.4)}if(n<=.03928){s=n/12.92}else{s=a.pow((n+.055)/1.055,2.4)}return.2126*i+.7152*o+.0722*s},setAlpha:function(e){this._a=F(e);this._roundA=u(100*this._a)/100;return this},toHsv:function(){var e=y(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=y(this._r,this._g,this._b);var t=u(e.h*360),r=u(e.s*100),n=u(e.v*100);return this._a==1?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=v(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=v(this._r,this._g,this._b);var t=u(e.h*360),r=u(e.s*100),n=u(e.l*100);return this._a==1?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return A(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(Y(this._r,255)*100)+"%",g:u(Y(this._g,255)*100)+"%",b:u(Y(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+u(Y(this._r,255)*100)+"%, "+u(Y(this._g,255)*100)+"%, "+u(Y(this._b,255)*100)+"%)":"rgba("+u(Y(this._r,255)*100)+"%, "+u(Y(this._g,255)*100)+"%, "+u(Y(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){if(this._a===0){return"transparent"}if(this._a<1){return false}return P[b(this._r,this._g,this._b,true)]||false},toFilter:function(e){var t="#"+_(this._r,this._g,this._b,this._a);var r=t;var n=this._gradientType?"GradientType = 1, ":"";if(e){var a=d(e);r="#"+_(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=false;var n=this._a<1&&this._a>=0;var a=!t&&n&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");if(a){if(e==="name"&&this._a===0){return this.toName()}return this.toRgbString()}if(e==="rgb"){r=this.toRgbString()}if(e==="prgb"){r=this.toPercentageRgbString()}if(e==="hex"||e==="hex6"){r=this.toHexString()}if(e==="hex3"){r=this.toHexString(true)}if(e==="hex4"){r=this.toHex8String(true)}if(e==="hex8"){r=this.toHex8String()}if(e==="name"){r=this.toName()}if(e==="hsl"){r=this.toHslString()}if(e==="hsv"){r=this.toHsvString()}return r||this.toHexString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));this._r=r._r;this._g=r._g;this._b=r._b;this.setAlpha(r._a);return this},lighten:function(){return this._applyModification(k,arguments)},brighten:function(){return this._applyModification(M,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(E,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(j,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(L,arguments)}};d.fromRatio=function(e,t){if(typeof e=="object"){var r={};for(var n in e){if(e.hasOwnProperty(n)){if(n==="a"){r[n]=e[n]}else{r[n]=V(e[n])}}}e=r}return d(e,t)};function p(e){var t={r:0,g:0,b:0};var r=1;var n=null;var a=null;var i=null;var o=false;var s=false;if(typeof e=="string"){e=J(e)}if(typeof e=="object"){if(Q(e.r)&&Q(e.g)&&Q(e.b)){t=h(e.r,e.g,e.b);o=true;s=String(e.r).substr(-1)==="%"?"prgb":"rgb"}else if(Q(e.h)&&Q(e.s)&&Q(e.v)){n=V(e.s);a=V(e.v);t=g(e.h,n,a);o=true;s="hsv"}else if(Q(e.h)&&Q(e.s)&&Q(e.l)){n=V(e.s);i=V(e.l);t=m(e.h,n,i);o=true;s="hsl"}if(e.hasOwnProperty("a")){r=e.a}}r=F(r);return{ok:o,format:e.format||s,r:l(255,c(t.r,0)),g:l(255,c(t.g,0)),b:l(255,c(t.b,0)),a:r}}function h(e,t,r){return{r:Y(e,255)*255,g:Y(t,255)*255,b:Y(r,255)*255}}function v(e,t,r){e=Y(e,255);t=Y(t,255);r=Y(r,255);var n=c(e,t,r),a=l(e,t,r);var i,o,s=(n+a)/2;if(n==a){i=o=0}else{var u=n-a;o=s>.5?u/(2-n-a):u/(n+a);switch(n){case e:i=(t-r)/u+(t<r?6:0);break;case t:i=(r-e)/u+2;break;case r:i=(e-t)/u+4;break}i/=6}return{h:i,s:o,l:s}}function m(e,t,r){var n,a,i;e=Y(e,360);t=Y(t,100);r=Y(r,100);function o(e,t,r){if(r<0)r+=1;if(r>1)r-=1;if(r<1/6)return e+(t-e)*6*r;if(r<1/2)return t;if(r<2/3)return e+(t-e)*(2/3-r)*6;return e}if(t===0){n=a=i=r}else{var s=r<.5?r*(1+t):r+t-r*t;var u=2*r-s;n=o(u,s,e+1/3);a=o(u,s,e);i=o(u,s,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function y(e,t,r){e=Y(e,255);t=Y(t,255);r=Y(r,255);var n=c(e,t,r),a=l(e,t,r);var i,o,s=n;var u=n-a;o=n===0?0:u/n;if(n==a){i=0}else{switch(n){case e:i=(t-r)/u+(t<r?6:0);break;case t:i=(r-e)/u+2;break;case r:i=(e-t)/u+4;break}i/=6}return{h:i,s:o,v:s}}function g(e,t,r){e=Y(e,360)*6;t=Y(t,100);r=Y(r,100);var n=a.floor(e),i=e-n,o=r*(1-t),s=r*(1-i*t),u=r*(1-(1-i)*t),l=n%6,c=[r,s,o,o,u,r][l],f=[u,r,r,s,o,o][l],d=[o,o,u,r,r,s][l];return{r:c*255,g:f*255,b:d*255}}function b(e,t,r,n){var a=[q(u(e).toString(16)),q(u(t).toString(16)),q(u(r).toString(16))];if(n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)){return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)}return a.join("")}function A(e,t,r,n,a){var i=[q(u(e).toString(16)),q(u(t).toString(16)),q(u(r).toString(16)),q(W(n))];if(a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)){return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0)}return i.join("")}function _(e,t,r,n){var a=[q(W(n)),q(u(e).toString(16)),q(u(t).toString(16)),q(u(r).toString(16))];return a.join("")}d.equals=function(e,t){if(!e||!t){return false}return d(e).toRgbString()==d(t).toRgbString()};d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})};function w(e,t){t=t===0?0:t||10;var r=d(e).toHsl();r.s-=t/100;r.s=B(r.s);return d(r)}function E(e,t){t=t===0?0:t||10;var r=d(e).toHsl();r.s+=t/100;r.s=B(r.s);return d(r)}function x(e){return d(e).desaturate(100)}function k(e,t){t=t===0?0:t||10;var r=d(e).toHsl();r.l+=t/100;r.l=B(r.l);return d(r)}function M(e,t){t=t===0?0:t||10;var r=d(e).toRgb();r.r=c(0,l(255,r.r-u(255*-(t/100))));r.g=c(0,l(255,r.g-u(255*-(t/100))));r.b=c(0,l(255,r.b-u(255*-(t/100))));return d(r)}function S(e,t){t=t===0?0:t||10;var r=d(e).toHsl();r.l-=t/100;r.l=B(r.l);return d(r)}function O(e,t){var r=d(e).toHsl();var n=(r.h+t)%360;r.h=n<0?360+n:n;return d(r)}function D(e){var t=d(e).toHsl();t.h=(t.h+180)%360;return d(t)}function T(e){var t=d(e).toHsl();var r=t.h;return[d(e),d({h:(r+120)%360,s:t.s,l:t.l}),d({h:(r+240)%360,s:t.s,l:t.l})]}function L(e){var t=d(e).toHsl();var r=t.h;return[d(e),d({h:(r+90)%360,s:t.s,l:t.l}),d({h:(r+180)%360,s:t.s,l:t.l}),d({h:(r+270)%360,s:t.s,l:t.l})]}function C(e){var t=d(e).toHsl();var r=t.h;return[d(e),d({h:(r+72)%360,s:t.s,l:t.l}),d({h:(r+216)%360,s:t.s,l:t.l})]}function j(e,t,r){t=t||6;r=r||30;var n=d(e).toHsl();var a=360/r;var i=[d(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;){n.h=(n.h+a)%360;i.push(d(n))}return i}function N(e,t){t=t||6;var r=d(e).toHsv();var n=r.h,a=r.s,i=r.v;var o=[];var s=1/t;while(t--){o.push(d({h:n,s:a,v:i}));i=(i+s)%1}return o}d.mix=function(e,t,r){r=r===0?0:r||50;var n=d(e).toRgb();var a=d(t).toRgb();var i=r/100;var o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return d(o)};d.readability=function(e,t){var r=d(e);var n=d(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)};d.isReadable=function(e,t,r){var n=d.readability(e,t);var a,i;i=false;a=Z(r);switch(a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i};d.mostReadable=function(e,t,r){var n=null;var a=0;var i;var o,s,u;r=r||{};o=r.includeFallbackColors;s=r.level;u=r.size;for(var l=0;l<t.length;l++){i=d.readability(e,t[l]);if(i>a){a=i;n=d(t[l])}}if(d.isReadable(e,n,{level:s,size:u})||!o){return n}else{r.includeFallbackColors=false;return d.mostReadable(e,["#fff","#000"],r)}};var I=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var P=d.hexNames=R(I);function R(e){var t={};for(var r in e){if(e.hasOwnProperty(r)){t[e[r]]=r}}return t}function F(e){e=parseFloat(e);if(isNaN(e)||e<0||e>1){e=1}return e}function Y(e,t){if(z(e)){e="100%"}var r=U(e);e=l(t,c(0,parseFloat(e)));if(r){e=parseInt(e*t,10)/100}if(a.abs(e-t)<1e-6){return 1}return e%t/parseFloat(t)}function B(e){return l(1,c(0,e))}function H(e){return parseInt(e,16)}function z(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function U(e){return typeof e==="string"&&e.indexOf("%")!=-1}function q(e){return e.length==1?"0"+e:""+e}function V(e){if(e<=1){e=e*100+"%"}return e}function W(e){return a.round(parseFloat(e)*255).toString(16)}function K(e){return H(e)/255}var G=function(){var e="[-\\+]?\\d+%?";var t="[-\\+]?\\d*\\.\\d+%?";var r="(?:"+t+")|(?:"+e+")";var n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";var a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Q(e){return!!G.CSS_UNIT.exec(e)}function J(e){e=e.replace(i,"").replace(o,"").toLowerCase();var t=false;if(I[e]){e=I[e];t=true}else if(e=="transparent"){return{r:0,g:0,b:0,a:0,format:"name"}}var r;if(r=G.rgb.exec(e)){return{r:r[1],g:r[2],b:r[3]}}if(r=G.rgba.exec(e)){return{r:r[1],g:r[2],b:r[3],a:r[4]}}if(r=G.hsl.exec(e)){return{h:r[1],s:r[2],l:r[3]}}if(r=G.hsla.exec(e)){return{h:r[1],s:r[2],l:r[3],a:r[4]}}if(r=G.hsv.exec(e)){return{h:r[1],s:r[2],v:r[3]}}if(r=G.hsva.exec(e)){return{h:r[1],s:r[2],v:r[3],a:r[4]}}if(r=G.hex8.exec(e)){return{r:H(r[1]),g:H(r[2]),b:H(r[3]),a:K(r[4]),format:t?"name":"hex8"}}if(r=G.hex6.exec(e)){return{r:H(r[1]),g:H(r[2]),b:H(r[3]),format:t?"name":"hex"}}if(r=G.hex4.exec(e)){return{r:H(r[1]+""+r[1]),g:H(r[2]+""+r[2]),b:H(r[3]+""+r[3]),a:K(r[4]+""+r[4]),format:t?"name":"hex8"}}if(r=G.hex3.exec(e)){return{r:H(r[1]+""+r[1]),g:H(r[2]+""+r[2]),b:H(r[3]+""+r[3]),format:t?"name":"hex"}}return false}function Z(e){var t,r;e=e||{level:"AA",size:"small"};t=(e.level||"AA").toUpperCase();r=(e.size||"small").toLowerCase();if(t!=="AA"&&t!=="AAA"){t="AA"}if(r!=="small"&&r!=="large"){r="small"}return{level:t,size:r}}if(true&&e.exports){e.exports=d}else if(true){!(n=function(){return d}.call(t,r,t,e),n!==undefined&&(e.exports=n))}else{}})(Math)},function(e,t,r){"use strict";t.__esModule=true;var n=t.addEventListener=function e(t,r,n){return t.addEventListener?t.addEventListener(r,n,false):t.attachEvent("on"+r,n)};var a=t.removeEventListener=function e(t,r,n){return t.removeEventListener?t.removeEventListener(r,n,false):t.detachEvent("on"+r,n)};var i=t.supportsHistory=function e(){var t=window.navigator.userAgent;if((t.indexOf("Android 2.")!==-1||t.indexOf("Android 4.0")!==-1)&&t.indexOf("Mobile Safari")!==-1&&t.indexOf("Chrome")===-1&&t.indexOf("Windows Phone")===-1)return false;return window.history&&"pushState"in window.history};var o=t.supportsGoWithoutReloadUsingHash=function e(){return window.navigator.userAgent.indexOf("Firefox")===-1};var s=t.supportsPopstateOnHashchange=function e(){return window.navigator.userAgent.indexOf("Trident")===-1};var u=t.isExtraneousPopstateEvent=function e(t){return t.state===undefined&&navigator.userAgent.indexOf("CriOS")===-1}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);if(!t.children)t.children=[];Object.defineProperty(t,"loaded",{enumerable:true,get:function(){return t.l}});Object.defineProperty(t,"id",{enumerable:true,get:function(){return t.i}});Object.defineProperty(t,"exports",{enumerable:true});t.webpackPolyfill=1}return t}},function(e,t,r){(function(){var t,n,a=function(e,t){for(var r in t){if(i.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},i={}.hasOwnProperty;n=r(46);e.exports=t=function(e){a(t,e);function t(e){t.__super__.constructor.call(this,e);this.value=""}Object.defineProperty(t.prototype,"data",{get:function(){return this.value},set:function(e){return this.value=e||""}});Object.defineProperty(t.prototype,"length",{get:function(){return this.value.length}});Object.defineProperty(t.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}});t.prototype.clone=function(){return Object.create(this)};t.prototype.substringData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};t.prototype.appendData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};t.prototype.insertData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};t.prototype.deleteData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};t.prototype.replaceData=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};t.prototype.isEqualNode=function(e){if(!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)){return false}if(e.data!==this.data){return false}return true};return t}(n)}).call(this)},function(e,t){(function(){e.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},function(e,t,r){"use strict";(function(t){if(typeof t==="undefined"||!t.version||t.version.indexOf("v0.")===0||t.version.indexOf("v1.")===0&&t.version.indexOf("v1.8.")!==0){e.exports={nextTick:r}}else{e.exports=t}function r(e,r,n,a){if(typeof e!=="function"){throw new TypeError('"callback" argument must be a function')}var i=arguments.length;var o,s;switch(i){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function t(){e.call(null,r)}));case 3:return t.nextTick((function t(){e.call(null,r,n)}));case 4:return t.nextTick((function t(){e.call(null,r,n,a)}));default:o=new Array(i-1);s=0;while(s<o.length){o[s++]=arguments[s]}return t.nextTick((function t(){e.apply(null,o)}))}}}).call(this,r(124))},function(e,t,r){var n=r(251);var a=n.Buffer;function i(e,t){for(var r in e){t[r]=e[r]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){e.exports=n}else{i(n,t);t.Buffer=o}function o(e,t,r){return a(e,t,r)}i(a,o);o.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return a(e,t,r)};o.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=a(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};o.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return a(e)};o.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.feedToCollection=t.entryToBook=t.adapter=void 0;var n=r(354);var a;var i=r(807);if(typeof window==="undefined"){var o=r(!function e(){var t=new Error("Cannot find module 'jsdom'");t.code="MODULE_NOT_FOUND";throw t}()).JSDOM;var s=new o("<!doctype html><html><body></body></html>",{url:"http://localhost",FetchExternalResources:false,ProcessExternalResources:false});var u=s.window;var l=u.defaultView;a=i(l).sanitize}else{a=i(window).sanitize}function c(e,t){if(e instanceof n.OPDSFeed){var r=m(e,t);return r}else if(e instanceof n.OPDSEntry){var a=f(e,t);return a}else{throw"parsed data must be OPDSFeed or OPDSEntry"}}t.adapter=c;function f(e,t){var r=e.authors.map((function(e){return e.name}));var i=e.contributors.map((function(e){return e.name}));var o,s;var u=e.links.filter((function(e){return e instanceof n.OPDSArtworkLink}));if(u.length>0){s=u.find((function(e){return e.rel==="http://opds-spec.org/image/thumbnail"}));if(s){o=s.href}else{console.log("WARNING: using possibly large image for "+e.title);o=u[0].href}}var l;var c=e.links.find((function(e){return e instanceof n.CompleteEntryLink}));if(c){l=c.href}var f=e.categories.filter((function(e){return!!e.label})).map((function(e){return e.label}));var d=e.links.filter((function(e){return e instanceof n.OPDSAcquisitionLink&&e.rel===n.OPDSAcquisitionLink.OPEN_ACCESS_REL})).map((function(e){return{url:e.href,type:e.type}}));var p;var v=e.links.find((function(e){return e instanceof n.OPDSAcquisitionLink&&e.rel===n.OPDSAcquisitionLink.BORROW_REL}));if(v){p=v.href}var m=e.links.filter((function(e){return e instanceof n.OPDSAcquisitionLink&&e.rel===n.OPDSAcquisitionLink.BORROW_REL})).map((function(e){var t;var r=e.indirectAcquisitions;if(r&&r.length>0){t=r[0].type}return{url:e.href,type:e.type,indirectType:t}}));var y;var g=e.links.filter((function(e){return e instanceof n.OPDSAcquisitionLink&&e.rel===n.OPDSAcquisitionLink.GENERIC_REL})).map((function(e){var t;var r=e.indirectAcquisitions;if(r&&r.length>0){t=r[0].type}return{url:e.href,type:e.type,indirectType:t}}));var b;var A;var _;var w=e.links.find((function(e){return e instanceof n.OPDSAcquisitionLink&&!!e.availability}));if(w){b=w.availability,A=w.holds,_=w.copies}return{id:e.id,title:e.title,series:e.series,authors:r,contributors:i,subtitle:e.subtitle,summary:e.summary.content&&a(e.summary.content),imageUrl:o,openAccessLinks:d,borrowUrl:p,allBorrowLinks:m,fulfillmentLinks:g,availability:b,holds:A,copies:_,publisher:e.publisher,published:e.issued&&h(e.issued),categories:f,language:e.language,url:l,raw:e.unparsed}}t.entryToBook=f;function d(e,t){var r=e.links;if(r.length>0){var n=r[0].href;return{id:e.id,text:e.title,url:n}}console.error("Attempting to create Link with undefined url. entry is: ",e);return null}function p(e){var t=e.reduce((function(e,t){e.set(t.id,t);return e}),new Map);return Array.from(t.values())}function h(e){var t=["January","February","March","April","May","June","July","August","September","October","November","December"];var r=new Date(e);var n=r.getUTCDate();var a=r.getUTCMonth();var i=t[a];var o=r.getUTCFullYear();return i+" "+n+", "+o}function v(e,t){if(t===void 0){t=null}if(!t||!t.href){return null}return{url:t.href,text:t.title,type:t.rel}}function m(e,t){var r={id:e.id,title:e.title,url:t};var a=[];var i=[];var o=[];var s=[];var u=[];var l=[];var c=undefined;var h=undefined;var m;var y;var g=undefined;var b=[];e.entries.forEach((function(r){if(e instanceof n.AcquisitionFeed){var o=f(r,t);var l=r.links.find((function(e){return e instanceof n.OPDSCollectionLink}));if(l){var c=l.title,p=l.href;if(u[c]){u[c].books.push(o)}else{u[c]={title:c,url:p,books:[o]};s.push(c)}}else{a.push(o)}}else{var h=d(r,t);if(h)i.push(h)}}));o=s.reduce((function(e,t){var r=u[t];r.books=p(r.books);e.push(r);return e}),o);var A=[];if(e.links){A=e.links.filter((function(e){return e instanceof n.OPDSFacetLink}));var _=e.links.find((function(e){return e instanceof n.SearchLink}));if(_){c={url:_.href}}var w=e.links.find((function(e){return e.rel==="next"}));if(w){h=w.href}m=e.links.find((function(e){return e instanceof n.OPDSCatalogRootLink}));y=e.links.find((function(e){return e.rel==="up"}));var E=e.links.find((function(e){return e instanceof n.OPDSShelfLink}));if(E){g=E.href}b=e.links}l=A.reduce((function(e,t){var r=t.facetGroup;var n=t.title;var a=t.href;var i=t.activeFacet;var o={label:n,href:a,active:i};var s=[];var u=false;e.forEach((function(e){if(e.label===r){var t=e.facets.concat(o);s.push({label:r,facets:t});u=true}else{s.push(e)}}));if(!u){var l=[o];s.push({label:r,facets:l})}return s}),[]);r.lanes=o;r.navigationLinks=i;r.books=p(a);r.facetGroups=l;r.search=c;r.nextPageUrl=h;r.catalogRootLink=v(t,m);r.parentLink=v(t,y);r.shelfUrl=g;function x(e){return e!==null&&e!==undefined}r.links=b.map((function(e){return v(t,e)})).filter(x);r.raw=e.unparsed;Object.freeze(r);return r}t.feedToCollection=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function n(e){var t=e.links.find((function(e){return e.rel==="http://librarysimplified.org/terms/rel/hide"}));var r=e.links.find((function(e){return e.rel==="http://librarysimplified.org/terms/rel/restore"}));var n=e.links.find((function(e){return e.rel==="http://librarysimplified.org/terms/rel/refresh"}));var a=e.links.find((function(e){return e.rel==="edit"}));var i=e.links.find((function(e){return e.rel==="issues"}));var o=e.links.find((function(e){return e.rel==="http://librarysimplified.org/terms/rel/change_cover"}));var s=e.categories.find((function(e){return e.scheme==="http://schema.org/audience"}));var u=e.categories.find((function(e){return e.scheme==="http://schema.org/typicalAgeRange"}));var l=[];if(u&&/\d\d?-?\d?\d?/.test(u.term)){l=u.term.split("-")}var c=e.categories.find((function(e){return e.scheme==="http://librarysimplified.org/terms/fiction/"}));var f;if(c){f=c.label==="Fiction"}var d=e.categories.map((function(e){return e.label}));var p;try{p=e.unparsed["$"]["schema:additionalType"]["value"]}catch(e){p=null}var h;try{h=e.unparsed["bib:publisherImprint"][0]["_"]}catch(e){h=null}var v=[];for(var m=0,y=e.authors;m<y.length;m++){var g=y[m];v.push(Object.assign({},g,{role:"aut"}))}var b;try{var A=e.unparsed["schema:Rating"];for(var _=0,w=A;_<w.length;_++){var E=w[_];if(E["$"]["schema:additionalType"]["value"]==="http://schema.org/ratingValue"){b=E["$"]["schema:ratingValue"]["value"];break}}}catch(e){b=null}var x=e.links.find((function(e){return e.rel==="http://opds-spec.org/image"}));var k;if(x){k=x.href}return{id:e.id,title:e.title,authors:v,contributors:e.contributors,subtitle:e.subtitle,summary:e.summary.content,audience:s&&s.term,targetAgeRange:l,fiction:f,categories:d,hideLink:t,restoreLink:r,refreshLink:n,editLink:a,issuesLink:i,changeCoverLink:o,series:e.series&&e.series.name,seriesPosition:e.series&&e.series.position,medium:p,language:e.language,publisher:e.publisher,imprint:h,issued:e.issued,rating:b,coverUrl:k}}t.default=n},function(e,t,r){"use strict";var n=r(532);var a=r(533);var i=function e(t,r){var i=r.getStartKey();var o=r.getStartOffset();var s=r.getEndKey();var u=r.getEndOffset();var l=a(t,r);var c=l.getBlockMap();var f=c.keySeq();var d=f.indexOf(i);var p=f.indexOf(s)+1;return n(c.slice(d,p).map((function(e,t){var r=e.getText();var n=e.getCharacterList();if(i===s){return e.merge({text:r.slice(o,u),characterList:n.slice(o,u)})}if(t===i){return e.merge({text:r.slice(o),characterList:n.slice(o)})}if(t===s){return e.merge({text:r.slice(0,u),characterList:n.slice(0,u)})}return e})))};e.exports=i},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}var i=r(538);var o=r(10);var s=r(15);var u=r(867);var l=o.Map;var c=l();var f=u();function d(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var p={getLastCreatedEntityKey:function e(){d("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey");return p.__getLastCreatedEntityKey()},create:function e(t,r,n){d("DraftEntity.create","contentState.createEntity");return p.__create(t,r,n)},add:function e(t){d("DraftEntity.add","contentState.addEntity");return p.__add(t)},get:function e(t){d("DraftEntity.get","contentState.getEntity");return p.__get(t)},__getAll:function e(){return c},__loadWithEntities:function e(t){c=t;f=u()},mergeData:function e(t,r){d("DraftEntity.mergeData","contentState.mergeEntityData");return p.__mergeData(t,r)},replaceData:function e(t,r){d("DraftEntity.replaceData","contentState.replaceEntityData");return p.__replaceData(t,r)},__getLastCreatedEntityKey:function e(){return f},__create:function e(t,r,n){return p.__add(new i({type:t,mutability:r,data:n||{}}))},__add:function e(t){f=u();c=c.set(f,t);return f},__get:function e(t){var r=c.get(t);!!!r?false?undefined:s(false):void 0;return r},__mergeData:function e(t,r){var a=p.__get(t);var i=n({},a.getData(),r);var o=a.set("data",i);c=c.set(t,o);return o},__replaceData:function e(t,r){var n=p.__get(t);var a=n.set("data",r);c=c.set(t,a);return a}};e.exports=p},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(10);var i=a.Record;var o={anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:false,hasFocus:false};var s=i(o);var u=function(e){n(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;r.serialize=function e(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", "+"Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", "+"Is Backward: "+String(this.getIsBackward())+", "+"Has Focus: "+String(this.getHasFocus())};r.getAnchorKey=function e(){return this.get("anchorKey")};r.getAnchorOffset=function e(){return this.get("anchorOffset")};r.getFocusKey=function e(){return this.get("focusKey")};r.getFocusOffset=function e(){return this.get("focusOffset")};r.getIsBackward=function e(){return this.get("isBackward")};r.getHasFocus=function e(){return this.get("hasFocus")};r.hasEdgeWithin=function e(t,r,n){var a=this.getAnchorKey();var i=this.getFocusKey();if(a===i&&a===t){var o=this.getStartOffset();var s=this.getEndOffset();return r<=o&&o<=n||r<=s&&s<=n}if(t!==a&&t!==i){return false}var u=t===a?this.getAnchorOffset():this.getFocusOffset();return r<=u&&n>=u};r.isCollapsed=function e(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()};r.getStartKey=function e(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()};r.getStartOffset=function e(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()};r.getEndKey=function e(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()};r.getEndOffset=function e(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()};t.createEmpty=function e(r){return new t({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:false,hasFocus:false})};return t}(s);e.exports=u},function(e,t,r){"use strict";var n=r(15);var a="NEUTRAL";var i="LTR";var o="RTL";var s=null;function u(e){return e===i||e===o}function l(e){!u(e)?false?undefined:n(false):void 0;return e===i?"ltr":"rtl"}function c(e,t){!u(e)?false?undefined:n(false):void 0;!u(t)?false?undefined:n(false):void 0;return e===t?null:l(e)}function f(e){s=e}function d(){f(i)}function p(){if(!s){this.initGlobalDir()}!s?false?undefined:n(false):void 0;return s}var h={NEUTRAL:a,LTR:i,RTL:o,isStrong:u,getHTMLDir:l,getHTMLDirIfDifferent:c,setGlobalDir:f,initGlobalDir:d,getGlobalDir:p};e.exports=h},function(e,t,r){"use strict";var n=r(181);var a=r(541);function i(e){var t=e;while(t&&t!==n(e).documentElement){var r=a(t);if(r!=null){return r}t=t.parentNode}return null}e.exports=i},function(e,t,r){"use strict";function n(e){if(!e||!e.ownerDocument){return document}return e.ownerDocument}e.exports=n},function(e,t,r){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,r){"use strict";var n=r(889);function a(e,t){var r=i.get(e,t);return r==="auto"||r==="scroll"}var i={get:n,getScrollParent:function e(t){if(!t){return null}var r=t.ownerDocument;while(t&&t!==r.body){if(a(t,"overflow")||a(t,"overflowY")||a(t,"overflowX")){return t}t=t.parentNode}return r.defaultView||r.parentWindow}};e.exports=i},function(e,t,r){"use strict";var n=r(893);var a=r(894);function i(e){var t=n(e.ownerDocument||e.document);if(e.Window&&e instanceof e.Window){e=t}var r=a(e);var i=e===t?e.ownerDocument.documentElement:e;var o=e.scrollWidth-i.clientWidth;var s=e.scrollHeight-i.clientHeight;r.x=Math.max(0,Math.min(r.x,o));r.y=Math.max(0,Math.min(r.y,s));return r}e.exports=i},function(e,t,r){"use strict";function n(e){return e==="handled"||e===true}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(1);var i=r(12);var o=r(104);var s=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e=a.createElement("span",null,"Delete ",a.createElement(o.default,null));return a.createElement("div",{className:"with-remove-button"},a.createElement("span",null,this.props.children),a.createElement(i.Button,{className:"remove-btn danger small",callback:this.onClick.bind(this),content:e,type:"button",disabled:this.props.disabled}))};t.prototype.onClick=function(e){e.preventDefault();!this.props.disabled&&this.props.onRemove()};t.defaultProps={disabled:false};return t}(a.Component);t.default=s},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=true},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){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var a=r(1);var i=u(a);var o=r(140);var s=u(o);function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,r,a,o){var s=e[t];var u=typeof s==="undefined"?"undefined":n(s);if(i.default.isValidElement(s)){return new Error("Invalid "+a+" `"+o+"` of type ReactElement "+("supplied to `"+r+"`, expected a ReactComponent or a ")+"DOMElement. You can usually obtain a ReactComponent or DOMElement "+"from a ReactElement by attaching a ref to it.")}if((u!=="object"||typeof s.render!=="function")&&s.nodeType!==1){return new Error("Invalid "+a+" `"+o+"` of value `"+s+"` "+("supplied to `"+r+"`, expected a ReactComponent or a ")+"DOMElement.")}return null}t.default=(0,s.default)(l);e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=n;function n(e){return e===e.window?e:e.nodeType===9?e.defaultView||e.parentWindow:false}e.exports=t["default"]},function(e,t,r){"use strict";t.__esModule=true;t.default=o;var n=r(17);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){e=typeof e==="function"?e():e;return a.default.findDOMNode(e)||t}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){"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(19);var s=r(1015);var u=r(12);var l=r(1106);var c=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.inputListRef=i.createRef();r.colorPickerRef=i.createRef();r.elementRef=i.createRef();r.randomize=r.randomize.bind(r);r.isDefault=r.isDefault.bind(r);r.createEditableInput=r.createEditableInput.bind(r);return r}t.prototype.render=function(){var e=this.props.setting;if(e.type==="select"){return this.renderSelectSetting(e)}else if(e.type==="list"||e.type==="menu"){return this.renderListSetting(e)}else if(e.type==="color-picker"){return this.renderColorPickerSetting(e)}else{return this.renderSetting(e)}};t.prototype.renderSetting=function(e,t){if(t===void 0){t=null}return i.createElement("div",{className:e.randomizable?"randomizable":""},this.props.value&&e.type==="image"&&i.createElement("img",{src:String(this.props.value),alt:"",role:"presentation"}),this.createEditableInput(e),e.randomizable&&!this.props.value&&i.createElement("div",{className:"text-right"},i.createElement(u.Button,{disabled:this.props.disabled,callback:this.randomize,content:"Set to random value",type:"button"})))};t.prototype.createEditableInput=function(e,t,r){if(t===void 0){t=null}if(r===void 0){r=null}var n=e.type&&["text","textarea","select"].includes(e.type)?e.type:"input";var s={image:{accept:"image/*",type:"file",value:undefined},number:{validation:"number",step:1}};var u={key:e.key,elementType:n,type:"text",disabled:this.props&&this.props.disabled,name:e.key,label:e.label,required:e.required,description:e.description,value:this.props&&this.props.value||e.default,error:this.props&&this.props.error,ref:this.elementRef,onChange:this.props.onChange,readOnly:this.props.readOnly};var l=s[e.type]?a(a({},u),s[e.type]):u;if(t){l=a(a({},l),t)}return i.createElement(o.default,l,r)};t.prototype.renderSelectSetting=function(e){var t=e.options&&e.options.map((function(e){return i.createElement("option",{key:e.key,value:e.key,"aria-selected":false},e.label)}));return this.createEditableInput(e,null,t)};t.prototype.renderListSetting=function(e){var t=Array.isArray(this.props.value)?this.props.value:this.props.value&&[].concat.apply([],Object.values(this.props.value));return i.createElement(l.default,{ref:this.inputListRef,setting:e,createEditableInput:this.createEditableInput,labelAndDescription:e.label&&this.labelAndDescription,disabled:this.props.disabled,value:t,altValue:this.props.altValue,additionalData:this.props.additionalData,onSubmit:this.props.onSubmit,onEmpty:this.props.onEmpty,title:this.props.title,onChange:this.props.onChange,readOnly:this.props.readOnly,disableButton:this.props.disableButton})};t.prototype.renderColorPickerSetting=function(e){return i.createElement("div",null,this.labelAndDescription(e),i.createElement(s.default,{value:String(this.props.value||e.default),setting:e,ref:this.colorPickerRef}))};t.prototype.labelAndDescription=function(e){var t=i.createElement("label",{key:e.label},e.label);var r=e.description&&i.createElement("span",{key:e.description,className:"description",dangerouslySetInnerHTML:{__html:e.description}});var n=e.instructions&&i.createElement("div",{className:"well description",dangerouslySetInnerHTML:{__html:e.instructions}});return[t,r,n]};t.prototype.isDefault=function(e){if(this.props.default){return this.props.default.indexOf(e)>=0||this.props.default.indexOf(e.key)>=0}};t.prototype.getValue=function(){return this.findRef().getValue()};t.prototype.randomize=function(){var e;var t=this.findRef();var r="1234567890abcdefghijklmnopqrstuvwxyz!@#$%^&*()";var n="";for(var a=0;a<32;a++){n+=r.charAt(Math.floor(Math.random()*r.length))}(e=t)===null||e===void 0?void 0:e.setState({value:n})};t.prototype.findRef=function(){var e,t,r;return((e=this.inputListRef)===null||e===void 0?void 0:e.current)||((t=this.elementRef)===null||t===void 0?void 0:t.current)||((r=this.colorPickerRef)===null||r===void 0?void 0:r.current)};t.prototype.clear=function(){var e=this.findRef();if(e&&e.clear){e.clear()}};t.defaultProps={readOnly:false};return t}(i.Component);t.default=c},function(e,t,r){var n=r(1030),a=r(1031),i=r(1032),o=r(1033),s=r(1034);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(197);function a(e,t){var r=e.length;while(r--){if(n(e[r][0],t)){return r}}return-1}e.exports=a},function(e,t){function r(e,t){return e===t||e!==e&&t!==t}e.exports=r},function(e,t,r){var n=r(110);var a=n(Object,"create");e.exports=a},function(e,t,r){var n=r(1052);function a(e,t){var r=e.__data__;return n(t)?r[typeof t=="string"?"string":"hash"]:r.map}e.exports=a},function(e,t,r){var n=r(1062),a=r(291),i=r(1063),o=r(613),s=r(1064),u=r(85),l=r(605);var c="[object Map]",f="[object Object]",d="[object Promise]",p="[object Set]",h="[object WeakMap]";var v="[object DataView]";var m=l(n),y=l(a),g=l(i),b=l(o),A=l(s);var _=u;if(n&&_(new n(new ArrayBuffer(1)))!=v||a&&_(new a)!=c||i&&_(i.resolve())!=d||o&&_(new o)!=p||s&&_(new s)!=h){_=function(e){var t=u(e),r=t==f?e.constructor:undefined,n=r?l(r):"";if(n){switch(n){case m:return v;case y:return c;case g:return d;case b:return p;case A:return h}}return t}}e.exports=_},function(e,t,r){var n=r(202),a=r(157);function i(e,t){t=n(t,e);var r=0,i=t.length;while(e!=null&&r<i){e=e[a(t[r++])]}return r&&r==i?e:undefined}e.exports=i},function(e,t,r){var n=r(11),a=r(299),i=r(1067),o=r(1070);function s(e,t){if(n(e)){return e}return a(e,t)?[e]:i(o(e))}e.exports=s},function(e,t,r){var n=r(282),a=r(1078);var i=a(n);e.exports=i},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:"57.375",height:"57.28257",viewBox:"0 0 57.375 57.28257","aria-hidden":"true"},n.createElement("title",null,"Pencil Icon"),n.createElement("g",null,n.createElement("polygon",{points:"11.745 53.861 45.246 20.361 36.921 12.037 3.421 45.537 0 57.283 11.745 53.861"}),n.createElement("rect",{x:"44.60049",y:"4.52822",width:"4.72034",height:"11.77225",transform:"translate(6.39041 36.25649) rotate(-45)"}),n.createElement("rect",{x:"49.18382",y:"-0.05512",width:"4.72034",height:"11.77225",transform:"translate(10.97374 38.15497) rotate(-45)"})))};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCorners=t.offset=t.isEqual=t.addPosition=t.add=undefined;var n=r(113);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}var o=t.add=function e(t,r){return{top:t.top+r.top,left:t.left+r.left,right:t.right+r.right,bottom:t.bottom+r.bottom}};var s=t.addPosition=function e(t,r){return(0,a.default)({},t,{right:t.right+r.x,bottom:t.bottom+r.y})};var u=t.isEqual=function e(t,r){return t.top===r.top&&t.right===r.right&&t.bottom===r.bottom&&t.left===r.left};var l=t.offset=function e(t,r){return{top:t.top+r.y,right:t.right+r.x,bottom:t.bottom+r.y,left:t.left+r.x}};var c=t.getCorners=function e(t){return[{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}]}},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)){continue}t[r]=typeof e[r]==="number"?e[r]:e[r].val}return t}e.exports=t["default"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e){e.preventDefault();e.stopPropagation()}},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.01772",height:"48.01658",viewBox:"0 0 48.01772 48.01658","aria-hidden":"true"},n.createElement("title",null,"Add Icon"),n.createElement("path",{d:"M26.98371,20.9161V2.97433a2.97433,2.97433,0,0,0-5.94867,0v17.903l-18.04011-.1176a2.97542,2.97542,0,0,0-.039,5.95072l18.07914.11708V45.04224a2.97433,2.97433,0,1,0,5.94867,0V26.86579l18.03908.11683a2.9744,2.9744,0,0,0,.04108-5.94867Z"}))};t.default=a},function(e,t,r){var n=r(137);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},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(197),a=r(108),i=r(285),o=r(25);function s(e,t,r){if(!o(r)){return false}var s=typeof t;if(s=="number"?a(r)&&i(t,r.length):s=="string"&&t in r){return n(r[t],e)}return false}e.exports=s},function(e,t,r){var n=r(135);function a(e,t,r){var a=-1,i=e.length;while(++a<i){var o=e[a],s=t(o);if(s!=null&&(u===undefined?s===s&&!n(s):r(s,u))){var u=s,l=o}}return l}e.exports=a},function(e,t,r){"use strict";r.r(t);r.d(t,"Provider",(function(){return m}));r.d(t,"createProvider",(function(){return v}));r.d(t,"connectAdvanced",(function(){return N}));r.d(t,"connect",(function(){return ce}));function n(e,t){n=Object.setPrototypeOf||function e(t,r){t.__proto__=r;return t};return n(e,t)}function a(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;n(e,t)}var i=r(1);var o=r.n(i);var s=r(0);var u=r.n(s);var l=u.a.shape({trySubscribe:u.a.func.isRequired,tryUnsubscribe:u.a.func.isRequired,notifyNestedSubs:u.a.func.isRequired,isSubscribed:u.a.func.isRequired});var c=u.a.shape({subscribe:u.a.func.isRequired,dispatch:u.a.func.isRequired,getState:u.a.func.isRequired});function f(e){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error(e)}try{throw new Error(e)}catch(e){}}var d=typeof o.a.forwardRef!=="undefined";var p=false;function h(){if(p){return}p=true;f("<Provider> does not support changing `store` on the fly. "+"It is most likely that you see this error because you updated to "+"Redux 2.x and React Redux 2.x which no longer hot reload reducers "+"automatically. See https://github.com/reduxjs/react-redux/releases/"+"tag/v2.0.0 for the migration instructions.")}function v(e){var t;if(e===void 0){e="store"}var r=e+"Subscription";var n=function(t){a(o,t);var n=o.prototype;n.getChildContext=function t(){var n;return n={},n[e]=this[e],n[r]=null,n};function o(r,n){var a;a=t.call(this,r,n)||this;a[e]=r.store;return a}n.render=function e(){return i["Children"].only(this.props.children)};return o}(i["Component"]);if(false){var o}n.propTypes={store:c.isRequired,children:u.a.element.isRequired};n.childContextTypes=(t={},t[e]=c.isRequired,t[r]=l,t);return n}var m=v();function y(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}var g=r(30);var b=r(43);var A=r(119);var _=r.n(A);var w=r(8);var E=r.n(w);var x=r(93);var k=null;var M={notify:function e(){}};function S(){var e=[];var t=[];return{clear:function r(){t=k;e=k},notify:function r(){var n=e=t;for(var a=0;a<n.length;a++){n[a]()}},get:function e(){return t},subscribe:function r(n){var a=true;if(t===e)t=e.slice();t.push(n);return function r(){if(!a||e===k)return;a=false;if(t===e)t=e.slice();t.splice(t.indexOf(n),1)}}}}var O=function(){function e(e,t,r){this.store=e;this.parentSub=t;this.onStateChange=r;this.unsubscribe=null;this.listeners=M}var t=e.prototype;t.addNestedSub=function e(t){this.trySubscribe();return this.listeners.subscribe(t)};t.notifyNestedSubs=function e(){this.listeners.notify()};t.isSubscribed=function e(){return Boolean(this.unsubscribe)};t.trySubscribe=function e(){if(!this.unsubscribe){this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange);this.listeners=S()}};t.tryUnsubscribe=function e(){if(this.unsubscribe){this.unsubscribe();this.unsubscribe=null;this.listeners.clear();this.listeners=M}};return e}();var D=typeof o.a.forwardRef!=="undefined";var T=0;var L={};function C(){}function j(e,t){var r={run:function n(a){try{var i=e(t.getState(),a);if(i!==r.props||r.error){r.shouldComponentUpdate=true;r.props=i;r.error=null}}catch(e){r.shouldComponentUpdate=true;r.error=e}}};return r}function N(e,t){var r,n;if(t===void 0){t={}}var o=t,s=o.getDisplayName,u=s===void 0?function(e){return"ConnectAdvanced("+e+")"}:s,f=o.methodName,d=f===void 0?"connectAdvanced":f,p=o.renderCountProp,h=p===void 0?undefined:p,v=o.shouldHandleStateChanges,m=v===void 0?true:v,A=o.storeKey,w=A===void 0?"store":A,k=o.withRef,M=k===void 0?false:k,S=Object(b["a"])(o,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]);var N=w+"Subscription";var I=T++;var P=(r={},r[w]=c,r[N]=l,r);var R=(n={},n[N]=l,n);return function t(r){E()(Object(x["isValidElementType"])(r),"You must pass a component to the function returned by "+(d+". Instead received "+JSON.stringify(r)));var n=r.displayName||r.name||"Component";var o=u(n);var s=Object(g["a"])({},S,{getDisplayName:u,methodName:d,renderCountProp:h,shouldHandleStateChanges:m,storeKey:w,withRef:M,displayName:o,wrappedComponentName:n,WrappedComponent:r});var l=function(t){a(n,t);function n(e,r){var n;n=t.call(this,e,r)||this;n.version=I;n.state={};n.renderCount=0;n.store=e[w]||r[w];n.propsMode=Boolean(e[w]);n.setWrappedInstance=n.setWrappedInstance.bind(y(y(n)));E()(n.store,'Could not find "'+w+'" in either the context or props of '+('"'+o+'". Either wrap the root component in a <Provider>, ')+('or explicitly pass "'+w+'" as a prop to "'+o+'".'));n.initSelector();n.initSubscription();return n}var u=n.prototype;u.getChildContext=function e(){var t;var r=this.propsMode?null:this.subscription;return t={},t[N]=r||this.context[N],t};u.componentDidMount=function e(){if(!m)return;this.subscription.trySubscribe();this.selector.run(this.props);if(this.selector.shouldComponentUpdate)this.forceUpdate()};u.componentWillReceiveProps=function e(t){this.selector.run(t)};u.shouldComponentUpdate=function e(){return this.selector.shouldComponentUpdate};u.componentWillUnmount=function e(){if(this.subscription)this.subscription.tryUnsubscribe();this.subscription=null;this.notifyNestedSubs=C;this.store=null;this.selector.run=C;this.selector.shouldComponentUpdate=false};u.getWrappedInstance=function e(){E()(M,"To access the wrapped instance, you need to specify "+("{ withRef: true } in the options argument of the "+d+"() call."));return this.wrappedInstance};u.setWrappedInstance=function e(t){this.wrappedInstance=t};u.initSelector=function t(){var r=e(this.store.dispatch,s);this.selector=j(r,this.store);this.selector.run(this.props)};u.initSubscription=function e(){if(!m)return;var t=(this.propsMode?this.props:this.context)[N];this.subscription=new O(this.store,t,this.onStateChange.bind(this));this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)};u.onStateChange=function e(){this.selector.run(this.props);if(!this.selector.shouldComponentUpdate){this.notifyNestedSubs()}else{this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate;this.setState(L)}};u.notifyNestedSubsOnComponentDidUpdate=function e(){this.componentDidUpdate=undefined;this.notifyNestedSubs()};u.isSubscribed=function e(){return Boolean(this.subscription)&&this.subscription.isSubscribed()};u.addExtraProps=function e(t){if(!M&&!h&&!(this.propsMode&&this.subscription))return t;var r=Object(g["a"])({},t);if(M)r.ref=this.setWrappedInstance;if(h)r[h]=this.renderCount++;if(this.propsMode&&this.subscription)r[N]=this.subscription;return r};u.render=function e(){var t=this.selector;t.shouldComponentUpdate=false;if(t.error){throw t.error}else{return Object(i["createElement"])(r,this.addExtraProps(t.props))}};return n}(i["Component"]);if(D){l.prototype.UNSAFE_componentWillReceiveProps=l.prototype.componentWillReceiveProps;delete l.prototype.componentWillReceiveProps}l.WrappedComponent=r;l.displayName=o;l.childContextTypes=R;l.contextTypes=P;l.propTypes=P;if(false){var c}return _()(l,r)}}var I=Object.prototype.hasOwnProperty;function P(e,t){if(e===t){return e!==0||t!==0||1/e===1/t}else{return e!==e&&t!==t}}function R(e,t){if(P(e,t))return true;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null){return false}var r=Object.keys(e);var n=Object.keys(t);if(r.length!==n.length)return false;for(var a=0;a<r.length;a++){if(!I.call(t,r[a])||!P(e[r[a]],t[r[a]])){return false}}return true}var F=r(339);function Y(e){if(typeof e!=="object"||e===null)return false;var t=Object.getPrototypeOf(e);if(t===null)return true;var r=t;while(Object.getPrototypeOf(r)!==null){r=Object.getPrototypeOf(r)}return t===r}function B(e,t,r){if(!Y(e)){f(r+"() in "+t+" must return a plain object. Instead received "+e+".")}}function H(e){return function t(r,n){var a=e(r,n);function i(){return a}i.dependsOnOwnProps=false;return i}}function z(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==undefined?Boolean(e.dependsOnOwnProps):e.length!==1}function U(e,t){return function t(r,n){var a=n.displayName;var i=function e(t,r){return i.dependsOnOwnProps?i.mapToProps(t,r):i.mapToProps(t)};i.dependsOnOwnProps=true;i.mapToProps=function t(r,n){i.mapToProps=e;i.dependsOnOwnProps=z(e);var a=i(r,n);if(typeof a==="function"){i.mapToProps=a;i.dependsOnOwnProps=z(a);a=i(r,n)}if(false){}return a};return i}}function q(e){return typeof e==="function"?U(e,"mapDispatchToProps"):undefined}function V(e){return!e?H((function(e){return{dispatch:e}})):undefined}function W(e){return e&&typeof e==="object"?H((function(t){return Object(F["bindActionCreators"])(e,t)})):undefined}var K=[q,V,W];function G(e){return typeof e==="function"?U(e,"mapStateToProps"):undefined}function Q(e){return!e?H((function(){return{}})):undefined}var J=[G,Q];function Z(e,t,r){return Object(g["a"])({},r,e,t)}function X(e){return function t(r,n){var a=n.displayName,i=n.pure,o=n.areMergedPropsEqual;var s=false;var u;return function t(r,n,a){var l=e(r,n,a);if(s){if(!i||!o(l,u))u=l}else{s=true;u=l;if(false){}}return u}}}function $(e){return typeof e==="function"?X(e):undefined}function ee(e){return!e?function(){return Z}:undefined}var te=[$,ee];function re(e,t,r){if(!e){throw new Error("Unexpected value for "+t+" in "+r+".")}else if(t==="mapStateToProps"||t==="mapDispatchToProps"){if(!e.hasOwnProperty("dependsOnOwnProps")){f("The selector for "+t+" of "+r+" did not specify a value for dependsOnOwnProps.")}}}function ne(e,t,r,n){re(e,"mapStateToProps",n);re(t,"mapDispatchToProps",n);re(r,"mergeProps",n)}function ae(e,t,r,n){return function a(i,o){return r(e(i,o),t(n,o),o)}}function ie(e,t,r,n,a){var i=a.areStatesEqual,o=a.areOwnPropsEqual,s=a.areStatePropsEqual;var u=false;var l;var c;var f;var d;var p;function h(a,i){l=a;c=i;f=e(l,c);d=t(n,c);p=r(f,d,c);u=true;return p}function v(){f=e(l,c);if(t.dependsOnOwnProps)d=t(n,c);p=r(f,d,c);return p}function m(){if(e.dependsOnOwnProps)f=e(l,c);if(t.dependsOnOwnProps)d=t(n,c);p=r(f,d,c);return p}function y(){var t=e(l,c);var n=!s(t,f);f=t;if(n)p=r(f,d,c);return p}function g(e,t){var r=!o(t,c);var n=!i(e,l);l=e;c=t;if(r&&n)return v();if(r)return m();if(n)return y();return p}return function e(t,r){return u?g(t,r):h(t,r)}}function oe(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,a=t.initMergeProps,i=Object(b["a"])(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]);var o=r(e,i);var s=n(e,i);var u=a(e,i);if(false){}var l=i.pure?ie:ae;return l(o,s,u,e,i)}function se(e,t,r){for(var n=t.length-1;n>=0;n--){var a=t[n](e);if(a)return a}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function ue(e,t){return e===t}function le(e){var t=e===void 0?{}:e,r=t.connectHOC,n=r===void 0?N:r,a=t.mapStateToPropsFactories,i=a===void 0?J:a,o=t.mapDispatchToPropsFactories,s=o===void 0?K:o,u=t.mergePropsFactories,l=u===void 0?te:u,c=t.selectorFactory,f=c===void 0?oe:c;return function e(t,r,a,o){if(o===void 0){o={}}var u=o,c=u.pure,d=c===void 0?true:c,p=u.areStatesEqual,h=p===void 0?ue:p,v=u.areOwnPropsEqual,m=v===void 0?R:v,y=u.areStatePropsEqual,A=y===void 0?R:y,_=u.areMergedPropsEqual,w=_===void 0?R:_,E=Object(b["a"])(u,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]);var x=se(t,i,"mapStateToProps");var k=se(r,s,"mapDispatchToProps");var M=se(a,l,"mergeProps");return n(f,Object(g["a"])({methodName:"connect",getDisplayName:function e(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:x,initMapDispatchToProps:k,initMergeProps:M,pure:d,areStatesEqual:h,areOwnPropsEqual:m,areStatePropsEqual:A,areMergedPropsEqual:w},E))}}var ce=le()},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(705);var i=r(227);var o=l(i);var s=r(122);var u=r(82);function l(e){return e&&e.__esModule?e:{default:e}}var c=function e(t){return(0,a.stringify)(t).replace(/%20/g,"+")};var f=a.parse;var d=function e(t){return function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=t(e);var a=e.stringifyQuery,i=e.parseQueryString;if(typeof a!=="function")a=c;if(typeof i!=="function")i=f;var l=function e(t){if(!t)return t;if(t.query==null)t.query=i(t.search.substring(1));return t};var d=function e(t,r){if(r==null)return t;var i=typeof t==="string"?(0,u.parsePath)(t):t;var o=a(r);var s=o?"?"+o:"";return n({},i,{search:s})};var p=function e(){return l(r.getCurrentLocation())};var h=function e(t){return r.listenBefore((function(e,r){return(0,o.default)(t,l(e),r)}))};var v=function e(t){return r.listen((function(e){return t(l(e))}))};var m=function e(t){return r.push(d(t,t.query))};var y=function e(t){return r.replace(d(t,t.query))};var g=function e(t){return r.createPath(d(t,t.query))};var b=function e(t){return r.createHref(d(t,t.query))};var A=function e(t){for(var n=arguments.length,a=Array(n>1?n-1:0),i=1;i<n;i++){a[i-1]=arguments[i]}var o=r.createLocation.apply(r,[d(t,t.query)].concat(a));if(t.query)o.query=(0,s.createQuery)(t.query);return l(o)};return n({},r,{getCurrentLocation:p,listenBefore:h,listen:v,push:m,replace:y,createPath:g,createHref:b,createLocation:A})}};t.default=d},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(227);var i=s(a);var o=r(82);function s(e){return e&&e.__esModule?e:{default:e}}var u=function e(t){return function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=t(e);var a=e.basename;var s=function e(t){if(!t)return t;if(a&&t.basename==null){if(t.pathname.toLowerCase().indexOf(a.toLowerCase())===0){t.pathname=t.pathname.substring(a.length);t.basename=a;if(t.pathname==="")t.pathname="/"}else{t.basename=""}}return t};var u=function e(t){if(!a)return t;var r=typeof t==="string"?(0,o.parsePath)(t):t;var i=r.pathname;var s=a.slice(-1)==="/"?a:a+"/";var u=i.charAt(0)==="/"?i.slice(1):i;var l=s+u;return n({},r,{pathname:l})};var l=function e(){return s(r.getCurrentLocation())};var c=function e(t){return r.listenBefore((function(e,r){return(0,i.default)(t,s(e),r)}))};var f=function e(t){return r.listen((function(e){return t(s(e))}))};var d=function e(t){return r.push(u(t))};var p=function e(t){return r.replace(u(t))};var h=function e(t){return r.createPath(u(t))};var v=function e(t){return r.createHref(u(t))};var m=function e(t){for(var n=arguments.length,a=Array(n>1?n-1:0),i=1;i<n;i++){a[i-1]=arguments[i]}return s(r.createLocation.apply(r,[u(t)].concat(a)))};return n({},r,{getCurrentLocation:l,listenBefore:c,listen:f,push:d,replace:p,createPath:h,createHref:v,createLocation:m})}};t.default=u},function(e,t,r){e.exports=r(571)},function(e,t,r){"use strict";var n=r(20);t.__esModule=true;t.default=o;var a=n(r(79));var i;function o(e){if(!i&&i!==0||e){if(a.default){var t=document.createElement("div");t.style.position="absolute";t.style.top="-9999px";t.style.width="50px";t.style.height="50px";t.style.overflow="scroll";document.body.appendChild(t);i=t.offsetWidth-t.clientWidth;document.body.removeChild(t)}}return i}e.exports=t["default"]},function(e,t,r){"use strict";(function(e){var r=typeof e=="object"&&e&&e.Object===Object&&e;t["a"]=r}).call(this,r(27))},function(e,t,r){"use strict";var n=r(221);var a=Object(n["a"])(Object.getPrototypeOf,Object);t["a"]=a},function(e,t,r){"use strict";function n(e,t){return function(r){return e(t(r))}}t["a"]=n},function(e,t,r){"use strict";var n=s(r(1270));var a=s(r(1271));var i=s(r(657));var o=s(r(55));function s(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:o.default,TransitionGroup:i.default,ReplaceTransition:a.default,CSSTransition:n.default}},function(e,t,r){var n=r(213),a=r(659),i=r(51);function o(e,t){return e&&e.length?n(e,i(t,2),a):undefined}e.exports=o},function(e,t,r){var n=r(1296),a=r(1297),i=r(51),o=r(11),s=r(212);function u(e,t,r){var u=o(e)?n:a;if(r&&s(e,t,r)){t=undefined}return u(e,i(t,3))}e.exports=u},function(e,t,r){var n=r(134),a=r(617),i=r(1301),o=r(202),s=r(158),u=r(1304),l=r(1305),c=r(621);var f=1,d=2,p=4;var h=l((function(e,t){var r={};if(e==null){return r}var l=false;t=n(t,(function(t){t=o(t,e);l||(l=t.length>1);return t}));s(e,c(e),r);if(l){r=a(r,f|d|p,u)}var h=t.length;while(h--){i(r,t[h])}return r}));e.exports=h},function(e,t,r){var n=r(1283);var a=r(1284);var i=r(1286);var o=100;var s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;var u;e.exports=l;function l(e,t){u=0;t=Math.pow(10,t===undefined?5:t);e=e.replace(/\n+/g," ");function r(e,r,n){if(u++>o){u=0;throw new Error("Call stack overflow for "+n)}if(e===""){throw new Error(r+"(): '"+n+"' must contain a non-whitespace string")}e=l(e,n);var a=c(e);if(a.length>1||e.indexOf("var(")>-1){return r+"("+e+")"}var s=a[0]||"";if(s==="%"){e=e.replace(/\b[0-9\.]+%/g,(function(e){return parseFloat(e.slice(0,-1))*.01}))}var f=e.replace(new RegExp(s,"gi"),"");var d;try{d=i.eval(f)}catch(t){return r+"("+e+")"}if(s==="%"){d*=100}if(r.length||s==="%"){d=Math.round(d*t)/t}d+=s;return d}function l(e,t){e=e.replace(/((?:\-[a-z]+\-)?calc)/g,"");var a="";var i=e;var o;while(o=s.exec(i)){if(o[0].index>0){a+=i.substring(0,o[0].index)}var u=n("(",")",i.substring([0].index));if(u.body===""){throw new Error("'"+e+"' must contain a non-whitespace string")}var l=r(u.body,"",t);a+=u.pre+l;i=u.post}return a+i}return a(e,/((?:\-[a-z]+\-)?calc)\(/,r)}function c(e){var t=[];var r=[];var n=/[\.0-9]([%a-z]+)/gi;var a=n.exec(e);while(a){if(!a||!a[1]){continue}if(r.indexOf(a[1].toLowerCase())===-1){t.push(a[1]);r.push(a[1].toLowerCase())}a=n.exec(e)}return t}},function(e,t,r){"use strict";t.__esModule=true;var n=r(23);var a=i(n);function i(e){return e&&e.__esModule?e:{default:e}}var o=function e(t,r,n){var a=t(r,n);if(t.length<2){n(a)}else{false?undefined:void 0}};t.default=o},function(e,t,r){"use strict";t.__esModule=true;var n=r(707);var a=r(82);var i=r(227);var o=l(i);var s=r(164);var u=r(122);function l(e){return e&&e.__esModule?e:{default:e}}var c=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=t.getCurrentLocation,i=t.getUserConfirmation,l=t.pushLocation,c=t.replaceLocation,f=t.go,d=t.keyLength;var p=void 0;var h=void 0;var v=[];var m=[];var y=[];var g=function e(){if(h&&h.action===s.POP)return y.indexOf(h.key);if(p)return y.indexOf(p.key);return-1};var b=function e(t){var r=g();p=t;if(p.action===s.PUSH){y=[].concat(y.slice(0,r+1),[p.key])}else if(p.action===s.REPLACE){y[r]=p.key}m.forEach((function(e){return e(p)}))};var A=function e(t){v.push(t);return function(){return v=v.filter((function(e){return e!==t}))}};var _=function e(t){m.push(t);return function(){return m=m.filter((function(e){return e!==t}))}};var w=function e(t,r){(0,n.loopAsync)(v.length,(function(e,r,n){(0,o.default)(v[e],t,(function(e){return e!=null?n(e):r()}))}),(function(e){if(i&&typeof e==="string"){i(e,(function(e){return r(e!==false)}))}else{r(e!==false)}}))};var E=function e(t){if(p&&(0,u.locationsAreEqual)(p,t)||h&&(0,u.locationsAreEqual)(h,t))return;h=t;w(t,(function(e){if(h!==t)return;h=null;if(e){if(t.action===s.PUSH){var r=(0,a.createPath)(p);var n=(0,a.createPath)(t);if(n===r&&(0,u.statesAreEqual)(p.state,t.state))t.action=s.REPLACE}if(t.action===s.POP){b(t)}else if(t.action===s.PUSH){if(l(t)!==false)b(t)}else if(t.action===s.REPLACE){if(c(t)!==false)b(t)}}else if(p&&t.action===s.POP){var i=y.indexOf(p.key);var o=y.indexOf(t.key);if(i!==-1&&o!==-1)f(i-o)}}))};var x=function e(t){return E(T(t,s.PUSH))};var k=function e(t){return E(T(t,s.REPLACE))};var M=function e(){return f(-1)};var S=function e(){return f(1)};var O=function e(){return Math.random().toString(36).substr(2,d||6)};var D=function e(t){return(0,a.createPath)(t)};var T=function e(t,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:O();return(0,u.createLocation)(t,r,n)};return{getCurrentLocation:r,listenBefore:A,listen:_,transitionTo:E,push:x,replace:k,go:f,goBack:M,goForward:S,createKey:O,createPath:a.createPath,createHref:D,createLocation:T}};t.default=c},function(e,t,r){"use strict";t.__esModule=true;var n=t.canUseDOM=!!(typeof window!=="undefined"&&window.document&&window.document.createElement)},function(e,t,r){"use strict";t.__esModule=true;t.go=t.replaceLocation=t.pushLocation=t.startListener=t.getUserConfirmation=t.getCurrentLocation=undefined;var n=r(122);var a=r(168);var i=r(349);var o=r(82);var s=r(229);var u="popstate";var l="hashchange";var c=s.canUseDOM&&!(0,a.supportsPopstateOnHashchange)();var f=function e(t){var r=t&&t.key;return(0,n.createLocation)({pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,state:r?(0,i.readState)(r):undefined},undefined,r)};var d=t.getCurrentLocation=function e(){var t=void 0;try{t=window.history.state||{}}catch(e){t={}}return f(t)};var p=t.getUserConfirmation=function e(t,r){return r(window.confirm(t))};var h=t.startListener=function e(t){var r=function e(r){if((0,a.isExtraneousPopstateEvent)(r))return;t(f(r.state))};(0,a.addEventListener)(window,u,r);var n=function e(){return t(d())};if(c){(0,a.addEventListener)(window,l,n)}return function(){(0,a.removeEventListener)(window,u,r);if(c){(0,a.removeEventListener)(window,l,n)}}};var v=function e(t,r){var n=t.state,a=t.key;if(n!==undefined)(0,i.saveState)(a,n);r({key:a},(0,o.createPath)(t))};var m=t.pushLocation=function e(t){return v(t,(function(e,t){return window.history.pushState(e,null,t)}))};var y=t.replaceLocation=function e(t){return v(t,(function(e,t){return window.history.replaceState(e,null,t)}))};var g=t.go=function e(t){if(t)window.history.go(t)}},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(57);var i=function(e){n(t,e);function t(t){return e.call(this,t)||this}t.BASE_REL="http://opds-spec.org/acquisition";t.GENERIC_REL=t.BASE_REL;t.OPEN_ACCESS_REL=t.BASE_REL+"/open-access";t.BORROW_REL=t.BASE_REL+"/borrow";t.BUY_REL=t.BASE_REL+"/buy";t.SAMPLE_REL=t.BASE_REL+"/sample";t.SUBSCRIBE_REL=t.BASE_REL+"/subscribe";t.RELS=[t.GENERIC_REL,t.OPEN_ACCESS_REL,t.BORROW_REL,t.BUY_REL,t.SAMPLE_REL,t.SUBSCRIBE_REL];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";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(57);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="alternate";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(233);var i=function(e){n(t,e);function t(r){var n=this;r.type=t.TYPE;n=e.call(this,r)||this;return n}t.TYPE="application/atom+xml;type=entry;profile=opds-catalog";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){(function(){t.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},function(e,t,r){(function(){var t,n,a,i,o,s,u,l,c,f=function(e,t){for(var r in t){if(d.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},d={}.hasOwnProperty;c=r(69),l=c.isObject,u=c.isFunction,s=c.getValue;o=r(46);t=r(24);n=r(374);i=r(238);e.exports=a=function(e){f(r,e);function r(e,n,a){var i,o,s,u;r.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing element name. "+this.debugInfo())}this.name=this.stringify.name(n);this.type=t.Element;this.attribs={};this.schemaTypeInfo=null;if(a!=null){this.attribute(a)}if(e.type===t.Document){this.isRoot=true;this.documentObject=e;e.rootObject=this;if(e.children){u=e.children;for(o=0,s=u.length;o<s;o++){i=u[o];if(i.type===t.DocType){i.name=this.name;break}}}}}Object.defineProperty(r.prototype,"tagName",{get:function(){return this.name}});Object.defineProperty(r.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(r.prototype,"prefix",{get:function(){return""}});Object.defineProperty(r.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(r.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(r.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(r.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(r.prototype,"attributes",{get:function(){if(!this.attributeMap||!this.attributeMap.nodes){this.attributeMap=new i(this.attribs)}return this.attributeMap}});r.prototype.clone=function(){var e,t,r,n;r=Object.create(this);if(r.isRoot){r.documentObject=null}r.attribs={};n=this.attribs;for(t in n){if(!d.call(n,t))continue;e=n[t];r.attribs[t]=e.clone()}r.children=[];this.children.forEach((function(e){var t;t=e.clone();t.parent=r;return r.children.push(t)}));return r};r.prototype.attribute=function(e,t){var r,a;if(e!=null){e=s(e)}if(l(e)){for(r in e){if(!d.call(e,r))continue;a=e[r];this.attribute(r,a)}}else{if(u(t)){t=t.apply()}if(this.options.keepNullAttributes&&t==null){this.attribs[e]=new n(this,e,"")}else if(t!=null){this.attribs[e]=new n(this,e,t)}}return this};r.prototype.removeAttribute=function(e){var t,r,n;if(e==null){throw new Error("Missing attribute name. "+this.debugInfo())}e=s(e);if(Array.isArray(e)){for(r=0,n=e.length;r<n;r++){t=e[r];delete this.attribs[t]}}else{delete this.attribs[e]}return this};r.prototype.toString=function(e){return this.options.writer.element(this,this.options.writer.filterOptions(e))};r.prototype.att=function(e,t){return this.attribute(e,t)};r.prototype.a=function(e,t){return this.attribute(e,t)};r.prototype.getAttribute=function(e){if(this.attribs.hasOwnProperty(e)){return this.attribs[e].value}else{return null}};r.prototype.setAttribute=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getAttributeNode=function(e){if(this.attribs.hasOwnProperty(e)){return this.attribs[e]}else{return null}};r.prototype.setAttributeNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.removeAttributeNode=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.getAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.setAttributeNS=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.removeAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.getAttributeNodeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.setAttributeNodeNS=function(e){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.hasAttribute=function(e){return this.attribs.hasOwnProperty(e)};r.prototype.hasAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.setIdAttribute=function(e,t){if(this.attribs.hasOwnProperty(e)){return this.attribs[e].isId}else{return t}};r.prototype.setIdAttributeNS=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.setIdAttributeNode=function(e,t){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.getElementsByTagNameNS=function(e,t){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.isEqualNode=function(e){var t,n,a;if(!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)){return false}if(e.namespaceURI!==this.namespaceURI){return false}if(e.prefix!==this.prefix){return false}if(e.localName!==this.localName){return false}if(e.attribs.length!==this.attribs.length){return false}for(t=n=0,a=this.attribs.length-1;0<=a?n<=a:n>=a;t=0<=a?++n:--n){if(!this.attribs[t].isEqualNode(e.attribs[t])){return false}}return true};return r}(o)}).call(this)},function(e,t){(function(){var t;e.exports=t=function(){function e(e){this.nodes=e}Object.defineProperty(e.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}});e.prototype.clone=function(){return this.nodes=null};e.prototype.getNamedItem=function(e){return this.nodes[e]};e.prototype.setNamedItem=function(e){var t;t=this.nodes[e.nodeName];this.nodes[e.nodeName]=e;return t||null};e.prototype.removeNamedItem=function(e){var t;t=this.nodes[e];delete this.nodes[e];return t||null};e.prototype.item=function(e){return this.nodes[Object.keys(this.nodes)[e]]||null};e.prototype.getNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")};e.prototype.setNamedItemNS=function(e){throw new Error("This DOM method is not implemented.")};e.prototype.removeNamedItemNS=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=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;t=r(24);a=r(170);e.exports=n=function(e){i(r,e);function r(e,n){r.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing CDATA text. "+this.debugInfo())}this.name="#cdata-section";this.type=t.CData;this.value=this.stringify.cdata(n)}r.prototype.clone=function(){return Object.create(this)};r.prototype.toString=function(e){return this.options.writer.cdata(this,this.options.writer.filterOptions(e))};return r}(a)}).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;t=r(24);n=r(170);e.exports=a=function(e){i(r,e);function r(e,n){r.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing comment text. "+this.debugInfo())}this.name="#comment";this.type=t.Comment;this.value=this.stringify.comment(n)}r.prototype.clone=function(){return Object.create(this)};r.prototype.toString=function(e){return this.options.writer.comment(this,this.options.writer.filterOptions(e))};return r}(n)}).call(this)},function(e,t,r){(function(){var t,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;i=r(69).isObject;a=r(46);t=r(24);e.exports=n=function(e){o(r,e);function r(e,n,a,o){var s;r.__super__.constructor.call(this,e);if(i(n)){s=n,n=s.version,a=s.encoding,o=s.standalone}if(!n){n="1.0"}this.type=t.Declaration;this.version=this.stringify.xmlVersion(n);if(a!=null){this.encoding=this.stringify.xmlEncoding(a)}if(o!=null){this.standalone=this.stringify.xmlStandalone(o)}}r.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))};return r}(a)}).call(this)},function(e,t,r){(function(){var t,n,a,i,o,s,u,l,c,f=function(e,t){for(var r in t){if(d.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},d={}.hasOwnProperty;c=r(69).isObject;l=r(46);t=r(24);n=r(243);i=r(244);a=r(245);o=r(246);u=r(238);e.exports=s=function(e){f(r,e);function r(e,n,a){var i,o,s,u,l,f;r.__super__.constructor.call(this,e);this.type=t.DocType;if(e.children){u=e.children;for(o=0,s=u.length;o<s;o++){i=u[o];if(i.type===t.Element){this.name=i.name;break}}}this.documentObject=e;if(c(n)){l=n,n=l.pubID,a=l.sysID}if(a==null){f=[n,a],a=f[0],n=f[1]}if(n!=null){this.pubID=this.stringify.dtdPubID(n)}if(a!=null){this.sysID=this.stringify.dtdSysID(a)}}Object.defineProperty(r.prototype,"entities",{get:function(){var e,r,n,a,i;a={};i=this.children;for(r=0,n=i.length;r<n;r++){e=i[r];if(e.type===t.EntityDeclaration&&!e.pe){a[e.name]=e}}return new u(a)}});Object.defineProperty(r.prototype,"notations",{get:function(){var e,r,n,a,i;a={};i=this.children;for(r=0,n=i.length;r<n;r++){e=i[r];if(e.type===t.NotationDeclaration){a[e.name]=e}}return new u(a)}});Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(r.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});r.prototype.element=function(e,t){var r;r=new a(this,e,t);this.children.push(r);return this};r.prototype.attList=function(e,t,r,a,i){var o;o=new n(this,e,t,r,a,i);this.children.push(o);return this};r.prototype.entity=function(e,t){var r;r=new i(this,false,e,t);this.children.push(r);return this};r.prototype.pEntity=function(e,t){var r;r=new i(this,true,e,t);this.children.push(r);return this};r.prototype.notation=function(e,t){var r;r=new o(this,e,t);this.children.push(r);return this};r.prototype.toString=function(e){return this.options.writer.docType(this,this.options.writer.filterOptions(e))};r.prototype.ele=function(e,t){return this.element(e,t)};r.prototype.att=function(e,t,r,n,a){return this.attList(e,t,r,n,a)};r.prototype.ent=function(e,t){return this.entity(e,t)};r.prototype.pent=function(e,t){return this.pEntity(e,t)};r.prototype.not=function(e,t){return this.notation(e,t)};r.prototype.up=function(){return this.root()||this.documentObject};r.prototype.isEqualNode=function(e){if(!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)){return false}if(e.name!==this.name){return false}if(e.publicId!==this.publicId){return false}if(e.systemId!==this.systemId){return false}return true};return r}(l)}).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(46);t=r(24);e.exports=n=function(e){i(r,e);function r(e,n,a,i,o,s){r.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(a==null){throw new Error("Missing DTD attribute name. "+this.debugInfo(n))}if(!i){throw new Error("Missing DTD attribute type. "+this.debugInfo(n))}if(!o){throw new Error("Missing DTD attribute default. "+this.debugInfo(n))}if(o.indexOf("#")!==0){o="#"+o}if(!o.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)){throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(n))}if(s&&!o.match(/^(#FIXED|#DEFAULT)$/)){throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(n))}this.elementName=this.stringify.name(n);this.type=t.AttributeDeclaration;this.attributeName=this.stringify.name(a);this.attributeType=this.stringify.dtdAttType(i);if(s){this.defaultValue=this.stringify.dtdAttDefault(s)}this.defaultValueType=o}r.prototype.toString=function(e){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(e))};return r}(a)}).call(this)},function(e,t,r){(function(){var t,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;i=r(69).isObject;a=r(46);t=r(24);e.exports=n=function(e){o(r,e);function r(e,n,a,o){r.__super__.constructor.call(this,e);if(a==null){throw new Error("Missing DTD entity name. "+this.debugInfo(a))}if(o==null){throw new Error("Missing DTD entity value. "+this.debugInfo(a))}this.pe=!!n;this.name=this.stringify.name(a);this.type=t.EntityDeclaration;if(!i(o)){this.value=this.stringify.dtdEntityValue(o);this.internal=true}else{if(!o.pubID&&!o.sysID){throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(a))}if(o.pubID&&!o.sysID){throw new Error("System identifier is required for a public external entity. "+this.debugInfo(a))}this.internal=false;if(o.pubID!=null){this.pubID=this.stringify.dtdPubID(o.pubID)}if(o.sysID!=null){this.sysID=this.stringify.dtdSysID(o.sysID)}if(o.nData!=null){this.nData=this.stringify.dtdNData(o.nData)}if(this.pe&&this.nData){throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(a))}}}Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(r.prototype,"notationName",{get:function(){return this.nData||null}});Object.defineProperty(r.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(r.prototype,"xmlEncoding",{get:function(){return null}});Object.defineProperty(r.prototype,"xmlVersion",{get:function(){return null}});r.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))};return r}(a)}).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(46);t=r(24);e.exports=n=function(e){i(r,e);function r(e,n,a){r.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(!a){a="(#PCDATA)"}if(Array.isArray(a)){a="("+a.join(",")+")"}this.name=this.stringify.name(n);this.type=t.ElementDeclaration;this.value=this.stringify.dtdElementValue(a)}r.prototype.toString=function(e){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(e))};return r}(a)}).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(46);t=r(24);e.exports=n=function(e){i(r,e);function r(e,n,a){r.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing DTD notation name. "+this.debugInfo(n))}if(!a.pubID&&!a.sysID){throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(n))}this.name=this.stringify.name(n);this.type=t.NotationDeclaration;if(a.pubID!=null){this.pubID=this.stringify.dtdPubID(a.pubID)}if(a.sysID!=null){this.sysID=this.stringify.dtdSysID(a.sysID)}}Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}});r.prototype.toString=function(e){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(e))};return r}(a)}).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;t=r(24);n=r(46);e.exports=a=function(e){i(r,e);function r(e,n){r.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing raw text. "+this.debugInfo())}this.type=t.Raw;this.value=this.stringify.raw(n)}r.prototype.clone=function(){return Object.create(this)};r.prototype.toString=function(e){return this.options.writer.raw(this,this.options.writer.filterOptions(e))};return r}(n)}).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;t=r(24);n=r(170);e.exports=a=function(e){i(r,e);function r(e,n){r.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing element text. "+this.debugInfo())}this.name="#text";this.type=t.Text;this.value=this.stringify.text(n)}Object.defineProperty(r.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(r.prototype,"wholeText",{get:function(){var e,t,r;r="";t=this.previousSibling;while(t){r=t.data+r;t=t.previousSibling}r+=this.data;e=this.nextSibling;while(e){r=r+e.data;e=e.nextSibling}return r}});r.prototype.clone=function(){return Object.create(this)};r.prototype.toString=function(e){return this.options.writer.text(this,this.options.writer.filterOptions(e))};r.prototype.splitText=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};r.prototype.replaceWholeText=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())};return r}(n)}).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;t=r(24);n=r(170);e.exports=a=function(e){i(r,e);function r(e,n,a){r.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing instruction target. "+this.debugInfo())}this.type=t.ProcessingInstruction;this.target=this.stringify.insTarget(n);this.name=this.target;if(a){this.value=this.stringify.insValue(a)}}r.prototype.clone=function(){return Object.create(this)};r.prototype.toString=function(e){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(e))};r.prototype.isEqualNode=function(e){if(!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)){return false}if(e.target!==this.target){return false}return true};return r}(n)}).call(this)},function(e,t,r){(function(){var t,n,a=function(e,t){for(var r in t){if(i.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},i={}.hasOwnProperty;n=r(377);e.exports=t=function(e){a(t,e);function t(e){t.__super__.constructor.call(this,e)}t.prototype.document=function(e,t){var r,n,a,i,o;t=this.filterOptions(t);i="";o=e.children;for(n=0,a=o.length;n<a;n++){r=o[n];i+=this.writeChildNode(r,t,0)}if(t.pretty&&i.slice(-t.newline.length)===t.newline){i=i.slice(0,-t.newline.length)}return i};return t}(n)}).call(this)},function(e,t,r){"use strict";(function(e){
35
35
  /*!
36
36
  * The buffer module from node.js, for the browser.
37
37
  *
@@ -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(809);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(822);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(63);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(829);var o=r(257);var s=r(63);var u=r(831);var l=r(835);var c=r(531);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(50);var a=r(64);var i=r(10);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(49);var a=r(150);var i=r(15);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(10);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(50);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(10);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(102);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(544);var a=r(18);var i=r(545);var o=r(546);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(15);var a=r(151);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(547);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(180);var a=r(541);var i=r(548);var o=r(15);var s=r(102);var u=r(36);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(71);var a=r(36);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(45);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(885);var u=r(1);var l=r(15);var c=r(551);var f=r(886).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(102);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(892);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(45);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(550);var l=r(71);var c=r(1);var f=r(264);var d=r(183);var p=r(260);var h=r(179);var v=r(101);var m=r(554);var y=r(184);var g=r(555);var b=r(15);var A=r(151);var _=r(36);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 M=r.getEntityAt(e.get("start"));var S=h.getHTMLDirIfDifferent(p.getDirection(k),t.props.direction);var O={contentState:t.props.contentState,decoratedText:k,dir:S,start:E,end:x,blockKey:n,entityKey:M,offsetKey:w};return c.createElement(b,a({},A,O,{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(898);var a=r(899);var i=r(558);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(15);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(27))},function(e,t,r){"use strict";var n=r(176);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(18);var a=r(103);var i=r(265);var o=r(152);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(37);var a=r(15);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(919);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(266);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(49);var s=r(100);var u=r(50);var l=r(261);var c=r(177);var f=r(929);var d=r(101);var p=r(64);var h=r(566);var v=r(83);var m=r(10),y=m.List,g=m.Map,b=m.OrderedSet;var A=r(930);var _=r(551);var w=r(151);var E=r(931);var x=v("draft_tree_data_support");var k="&nbsp;";var M=" ";var S=new RegExp("\r","g");var O=new RegExp("\n","g");var D=new RegExp("^\n","g");var T=new RegExp(k,"g");var L=new RegExp("&#13;?","g");var C=new RegExp("&#8203;?","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 z=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 U=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(U(i)){this._addImgNode(i,r);continue}if(z(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(O,M)}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(S,"").replace(T,M).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(37);var a=r(15);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(35);var a=r(18);var i=r(932);var o=r(36);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(267);var a=r(182);var i=r(37);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(949);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(951);e.exports=r(29).Object.assign},function(e,t,r){e.exports=!r(74)&&!r(105)((function(){return Object.defineProperty(r(573)("div"),"a",{get:function(){return 7}}).a!=7}))},function(e,t,r){var n=r(128);var a=r(73).document;var i=n(a)&&n(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t,r){var n=r(106);var a=r(107);var i=r(954)(false);var o=r(272)("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(270);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return n(e)=="String"?e.split(""):Object(e)}},function(e,t,r){var n=r(271);var a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},function(e,t,r){r(956);var n=r(29).Object;e.exports=function e(t,r){return n.create(t,r)}},function(e,t,r){r(959);e.exports=r(29).Object.setPrototypeOf},function(e,t,r){var n=r(154);var a=r(153);var i=r(107);var o=r(269);var s=r(106);var u=r(572);var l=Object.getOwnPropertyDescriptor;t.f=r(74)?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(961);e.exports=r(29).Object.keys},function(e,t,r){var n=r(41);var a=r(29);var i=r(105);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(74);var a=r(129);var i=r(107);var o=r(154).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(20);t.__esModule=true;t.default=o;var a=n(r(968));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(588);r(980);e.exports=r(29).Array.from},function(e,t,r){"use strict";var n=r(978)(true);r(589)(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(188);var a=r(41);var i=r(590);var o=r(126);var s=r(155);var u=r(979);var l=r(278);var c=r(591);var f=r(65)("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 M=k[f]||k[p]||g&&k[g];var S=M||_(g);var O=g?!E?S:_("entries"):undefined;var D=t=="Array"?k.entries||M:M;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&&M&&M.name!==v){x=true;S=function e(){return M.call(this)}}if((!n||A)&&(d||x||!k[f])){o(k,f,S)}s[t]=S;s[w]=m;if(g){T={values:E?S:_(v),keys:b?S:_(h),entries:O};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(126)},function(e,t,r){var n=r(106);var a=r(130);var i=r(272)("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(279);var a=s(n);var i=r(280);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(20);t.__esModule=true;t.default=i;var a=n(r(594));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(190);var o=y(i);var s=r(1);var u=y(s);var l=r(17);var c=y(l);var f=r(192);var d=y(f);var p=r(131);var h=y(p);var v=r(995);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(20);t.__esModule=true;t.default=s;var a=n(r(92));var i=n(r(191));var o=n(r(117));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(20);t.__esModule=true;t.default=i;var a=n(r(191));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(270);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(27))},function(e,t,r){var n=r(1021),a=r(283),i=r(11),o=r(284),s=r(285),u=r(602);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(1024),a=r(156),i=r(287);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(134),a=r(51),i=r(616),o=r(11);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(294),a=r(607),i=r(295);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(59);var a=n.Uint8Array;e.exports=a},function(e,t,r){var n=r(610),a=r(298),i=r(133);function o(e){return n(e,i,a)}e.exports=o},function(e,t,r){var n=r(297),a=r(11);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(110),a=r(59);var i=n(a,"Set");e.exports=i},function(e,t,r){var n=r(25);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(203),a=r(108);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(290),a=r(1081),i=r(618),o=r(1082),s=r(1083),u=r(1086),l=r(1087),c=r(1088),f=r(1089),d=r(609),p=r(621),h=r(200),v=r(1090),m=r(1091),y=r(1096),g=r(11),b=r(284),A=r(1098),_=r(25),w=r(1100),E=r(133),x=r(301);var k=1,M=2,S=4;var O="[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]",z="[object WeakMap]";var U="[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[O]=ee[D]=ee[U]=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[z]=false;function te(e,t,r,D,T,L){var C,I=t&k,P=t&M,F=t&S;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==O||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 z=L.get(e);if(z){return z}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 U=F?P?p:d:P?x:E;var q=Y?undefined:U(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(300),a=r(197);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(110);var a=function(){try{var e=n(Object,"defineProperty");e({},"",{});return e}catch(e){}}();e.exports=a},function(e,t,r){var n=r(297),a=r(289),i=r(298),o=r(612);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(610),a=r(620),i=r(301);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){"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(204);var s=r(12);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){e.exports={default:r(1119),__esModule:true}},function(e,t,r){var n=r(574);var a=r(274).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(162);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(1168);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(113);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(319);var a=u(n);var i=r(207);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",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(322);var a=r(640);e.exports=r(138)?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(138)&&!r(91)((function(){return Object.defineProperty(r(639)("div"),"a",{get:function(){return 7}}).a!=7}))},function(e,t,r){var n=r(137);var a=r(77).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(77);var a=r(637);var i=r(210);var o=r(642)("src");var s=r(1208);var u="toString";var l=(""+s).split(u);r(163).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(163);var a=r(77);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(1209)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(1210);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(1232);var a=r(640);var i=r(327);var o=r(323);var s=r(210);var u=r(638);var l=Object.getOwnPropertyDescriptor;t.f=r(138)?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(210);var a=r(327);var i=r(1235)(false);var o=r(648)("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(643)("keys");var a=r(642);e.exports=function(e){return n[e]||(n[e]=a(e))}},function(e,t,r){var n=r(326);e.exports=function(e,t){if(typeof e!="number"&&n(e)!="Number")throw TypeError(t);return+e}},function(e,t,r){var n=r(137);var a=Math.floor;e.exports=function e(t){return!n(t)&&isFinite(t)&&a(t)===t}},function(e,t,r){var n=r(1257);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(109),a=r(655),i=r(656);function o(e,t){return i(a(e,t,n),e+"")}e.exports=o},function(e,t,r){var n=r(1263);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(1264),a=r(1266);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(585);var o=r(1272);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(25),a=r(135);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(O(r,i),O(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 O(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(O(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+=S(r);i+=n}o=e[t];n=o+"";r=m-n.length;if(r)i+=S(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,M,S,O,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;S=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(S==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);S=j.length;x=C.length}E=S;g=C.slice(0,S);b=g.length;for(;b<S;)g[b++]=0;O=j.slice();O.unshift(0);M=j[0];if(j[1]>=v/2)++M;do{f=0;s=t(j,g,S,b);if(s<0){A=g[0];if(S!=b)A=A*v+(g[1]||0);f=A/M|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,S<p?O: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,S,b);if(s<1){f++;r(g,S<b?O: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 M(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 S(e){var t="";for(;e--;)t+="0";return t}function O(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 M(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=M(g,f+2,b).times(i+"");m=O(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(M(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)+S(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."+S(-a-1)+i;if(r&&(n=r-o)>0)i+=S(n)}else if(a>=o){i+=S(a+1-o);if(r&&(n=r-a-1)>0)i=i+"."+S(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+=S(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(658);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(333);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(0);var o=r(66);var s=r(1324);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(38);var o=r(13);var s=r(7);var u=r(1327);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.canDelete=function(){return this.context.admin&&this.context.admin.isSystemAdmin()};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(12);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(23);var i=p(a);var o=r(8);var s=p(o);var u=r(122);var l=r(82);var c=r(228);var f=p(c);var d=r(164);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(8);var i=v(a);var o=r(229);var s=r(230);var u=h(s);var l=r(708);var c=h(l);var f=r(168);var d=r(228);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(23);var i=v(a);var o=r(8);var s=v(o);var u=r(229);var l=r(168);var c=r(709);var f=h(c);var d=r(228);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(577)},function(e,t,r){e.exports=r(578)},function(e,t,r){e.exports=r(580)},function(e,t,r){"use strict";var n=r(20);t.__esModule=true;t.default=void 0;var a=n(r(967));t.end=a.default;var i=n(r(277));t.properties=i.default;var o={end:a.default,properties:i.default};t.default=o},function(e,t,r){e.exports=r(587)},function(e,t,r){e.exports=r(1004)},function(e,t,r){"use strict";function n(){return false}t["a"]=n},function(e,t,r){"use strict";(function(e){var n=r(21);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(169)(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){var n=r(134),a=r(1262),i=r(654),o=r(1267);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(611),a=r(1269),i=r(51),o=r(11);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(1279);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(332),a=r(604);function i(e,t){return n(a(e,t),1)}e.exports=i},function(e,t,r){var n=r(213),a=r(51),i=r(660);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(607),a=r(51),i=r(1295),o=r(11),s=r(212);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(1298),a=r(1299);var i=n(a);e.exports=i},function(e,t,r){var n=r(337),a=r(25);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(51),a=r(1307);function i(e,t){return e&&e.length?a(e,n(t,2)):0}e.exports=i},,,,function(e,t,r){r(695);e.exports=r(696)},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(17);var o=r(78);var s=r(710);var u=r(389);var l=r(802);var c=r(1113);var f=r(1196);var d=r(1203);var p=r(1314);var h=r(1339);var v=r(1341);var m=r(1342);var y=r(1347);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(1358)})).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(809);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(822);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(63);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(829);var o=r(257);var s=r(63);var u=r(831);var l=r(835);var c=r(531);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(50);var a=r(64);var i=r(10);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(49);var a=r(150);var i=r(15);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(10);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(50);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(10);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(102);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(544);var a=r(18);var i=r(545);var o=r(546);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(15);var a=r(151);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(547);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(180);var a=r(541);var i=r(548);var o=r(15);var s=r(102);var u=r(36);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(71);var a=r(36);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(45);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(885);var u=r(1);var l=r(15);var c=r(551);var f=r(886).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(102);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(892);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(45);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(550);var l=r(71);var c=r(1);var f=r(264);var d=r(183);var p=r(260);var h=r(179);var v=r(101);var m=r(554);var y=r(184);var g=r(555);var b=r(15);var A=r(151);var _=r(36);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 M=r.getEntityAt(e.get("start"));var S=h.getHTMLDirIfDifferent(p.getDirection(k),t.props.direction);var O={contentState:t.props.contentState,decoratedText:k,dir:S,start:E,end:x,blockKey:n,entityKey:M,offsetKey:w};return c.createElement(b,a({},A,O,{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(898);var a=r(899);var i=r(558);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(15);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(27))},function(e,t,r){"use strict";var n=r(176);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(18);var a=r(103);var i=r(265);var o=r(152);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(37);var a=r(15);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(919);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(266);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(49);var s=r(100);var u=r(50);var l=r(261);var c=r(177);var f=r(929);var d=r(101);var p=r(64);var h=r(566);var v=r(83);var m=r(10),y=m.List,g=m.Map,b=m.OrderedSet;var A=r(930);var _=r(551);var w=r(151);var E=r(931);var x=v("draft_tree_data_support");var k="&nbsp;";var M=" ";var S=new RegExp("\r","g");var O=new RegExp("\n","g");var D=new RegExp("^\n","g");var T=new RegExp(k,"g");var L=new RegExp("&#13;?","g");var C=new RegExp("&#8203;?","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 z=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 U=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(U(i)){this._addImgNode(i,r);continue}if(z(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(O,M)}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(S,"").replace(T,M).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(37);var a=r(15);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(35);var a=r(18);var i=r(932);var o=r(36);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(267);var a=r(182);var i=r(37);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(949);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(951);e.exports=r(29).Object.assign},function(e,t,r){e.exports=!r(74)&&!r(105)((function(){return Object.defineProperty(r(573)("div"),"a",{get:function(){return 7}}).a!=7}))},function(e,t,r){var n=r(128);var a=r(73).document;var i=n(a)&&n(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t,r){var n=r(106);var a=r(107);var i=r(954)(false);var o=r(272)("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(270);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return n(e)=="String"?e.split(""):Object(e)}},function(e,t,r){var n=r(271);var a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},function(e,t,r){r(956);var n=r(29).Object;e.exports=function e(t,r){return n.create(t,r)}},function(e,t,r){r(959);e.exports=r(29).Object.setPrototypeOf},function(e,t,r){var n=r(154);var a=r(153);var i=r(107);var o=r(269);var s=r(106);var u=r(572);var l=Object.getOwnPropertyDescriptor;t.f=r(74)?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(961);e.exports=r(29).Object.keys},function(e,t,r){var n=r(41);var a=r(29);var i=r(105);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(74);var a=r(129);var i=r(107);var o=r(154).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(20);t.__esModule=true;t.default=o;var a=n(r(968));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(588);r(980);e.exports=r(29).Array.from},function(e,t,r){"use strict";var n=r(978)(true);r(589)(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(188);var a=r(41);var i=r(590);var o=r(126);var s=r(155);var u=r(979);var l=r(278);var c=r(591);var f=r(65)("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 M=k[f]||k[p]||g&&k[g];var S=M||_(g);var O=g?!E?S:_("entries"):undefined;var D=t=="Array"?k.entries||M:M;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&&M&&M.name!==v){x=true;S=function e(){return M.call(this)}}if((!n||A)&&(d||x||!k[f])){o(k,f,S)}s[t]=S;s[w]=m;if(g){T={values:E?S:_(v),keys:b?S:_(h),entries:O};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(126)},function(e,t,r){var n=r(106);var a=r(130);var i=r(272)("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(279);var a=s(n);var i=r(280);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(20);t.__esModule=true;t.default=i;var a=n(r(594));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(190);var o=y(i);var s=r(1);var u=y(s);var l=r(17);var c=y(l);var f=r(192);var d=y(f);var p=r(131);var h=y(p);var v=r(995);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(20);t.__esModule=true;t.default=s;var a=n(r(92));var i=n(r(191));var o=n(r(117));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(20);t.__esModule=true;t.default=i;var a=n(r(191));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(270);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(27))},function(e,t,r){var n=r(1021),a=r(283),i=r(11),o=r(284),s=r(285),u=r(602);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(1024),a=r(156),i=r(287);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(134),a=r(51),i=r(616),o=r(11);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(294),a=r(607),i=r(295);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(59);var a=n.Uint8Array;e.exports=a},function(e,t,r){var n=r(610),a=r(298),i=r(133);function o(e){return n(e,i,a)}e.exports=o},function(e,t,r){var n=r(297),a=r(11);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(110),a=r(59);var i=n(a,"Set");e.exports=i},function(e,t,r){var n=r(25);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(203),a=r(108);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(290),a=r(1081),i=r(618),o=r(1082),s=r(1083),u=r(1086),l=r(1087),c=r(1088),f=r(1089),d=r(609),p=r(621),h=r(200),v=r(1090),m=r(1091),y=r(1096),g=r(11),b=r(284),A=r(1098),_=r(25),w=r(1100),E=r(133),x=r(301);var k=1,M=2,S=4;var O="[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]",z="[object WeakMap]";var U="[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[O]=ee[D]=ee[U]=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[z]=false;function te(e,t,r,D,T,L){var C,I=t&k,P=t&M,F=t&S;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==O||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 z=L.get(e);if(z){return z}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 U=F?P?p:d:P?x:E;var q=Y?undefined:U(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(300),a=r(197);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(110);var a=function(){try{var e=n(Object,"defineProperty");e({},"",{});return e}catch(e){}}();e.exports=a},function(e,t,r){var n=r(297),a=r(289),i=r(298),o=r(612);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(610),a=r(620),i=r(301);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){"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(204);var s=r(12);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){e.exports={default:r(1119),__esModule:true}},function(e,t,r){var n=r(574);var a=r(274).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(162);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(1168);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(113);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(319);var a=u(n);var i=r(207);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",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(322);var a=r(640);e.exports=r(138)?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(138)&&!r(91)((function(){return Object.defineProperty(r(639)("div"),"a",{get:function(){return 7}}).a!=7}))},function(e,t,r){var n=r(137);var a=r(77).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(77);var a=r(637);var i=r(210);var o=r(642)("src");var s=r(1208);var u="toString";var l=(""+s).split(u);r(163).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(163);var a=r(77);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(1209)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(1210);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(1232);var a=r(640);var i=r(327);var o=r(323);var s=r(210);var u=r(638);var l=Object.getOwnPropertyDescriptor;t.f=r(138)?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(210);var a=r(327);var i=r(1235)(false);var o=r(648)("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(643)("keys");var a=r(642);e.exports=function(e){return n[e]||(n[e]=a(e))}},function(e,t,r){var n=r(326);e.exports=function(e,t){if(typeof e!="number"&&n(e)!="Number")throw TypeError(t);return+e}},function(e,t,r){var n=r(137);var a=Math.floor;e.exports=function e(t){return!n(t)&&isFinite(t)&&a(t)===t}},function(e,t,r){var n=r(1257);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(109),a=r(655),i=r(656);function o(e,t){return i(a(e,t,n),e+"")}e.exports=o},function(e,t,r){var n=r(1263);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(1264),a=r(1266);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(585);var o=r(1272);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(25),a=r(135);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(O(r,i),O(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 O(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(O(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+=S(r);i+=n}o=e[t];n=o+"";r=m-n.length;if(r)i+=S(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,M,S,O,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;S=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(S==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);S=j.length;x=C.length}E=S;g=C.slice(0,S);b=g.length;for(;b<S;)g[b++]=0;O=j.slice();O.unshift(0);M=j[0];if(j[1]>=v/2)++M;do{f=0;s=t(j,g,S,b);if(s<0){A=g[0];if(S!=b)A=A*v+(g[1]||0);f=A/M|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,S<p?O: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,S,b);if(s<1){f++;r(g,S<b?O: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 M(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 S(e){var t="";for(;e--;)t+="0";return t}function O(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 M(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=M(g,f+2,b).times(i+"");m=O(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(M(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)+S(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."+S(-a-1)+i;if(r&&(n=r-o)>0)i+=S(n)}else if(a>=o){i+=S(a+1-o);if(r&&(n=r-a-1)>0)i=i+"."+S(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+=S(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(658);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(333);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(0);var o=r(66);var s=r(1324);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(38);var o=r(13);var s=r(7);var u=r(1327);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(12);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(23);var i=p(a);var o=r(8);var s=p(o);var u=r(122);var l=r(82);var c=r(228);var f=p(c);var d=r(164);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(8);var i=v(a);var o=r(229);var s=r(230);var u=h(s);var l=r(708);var c=h(l);var f=r(168);var d=r(228);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(23);var i=v(a);var o=r(8);var s=v(o);var u=r(229);var l=r(168);var c=r(709);var f=h(c);var d=r(228);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(577)},function(e,t,r){e.exports=r(578)},function(e,t,r){e.exports=r(580)},function(e,t,r){"use strict";var n=r(20);t.__esModule=true;t.default=void 0;var a=n(r(967));t.end=a.default;var i=n(r(277));t.properties=i.default;var o={end:a.default,properties:i.default};t.default=o},function(e,t,r){e.exports=r(587)},function(e,t,r){e.exports=r(1004)},function(e,t,r){"use strict";function n(){return false}t["a"]=n},function(e,t,r){"use strict";(function(e){var n=r(21);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(169)(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){var n=r(134),a=r(1262),i=r(654),o=r(1267);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(611),a=r(1269),i=r(51),o=r(11);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(1279);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(332),a=r(604);function i(e,t){return n(a(e,t),1)}e.exports=i},function(e,t,r){var n=r(213),a=r(51),i=r(660);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(607),a=r(51),i=r(1295),o=r(11),s=r(212);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(1298),a=r(1299);var i=n(a);e.exports=i},function(e,t,r){var n=r(337),a=r(25);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(51),a=r(1307);function i(e,t){return e&&e.length?a(e,n(t,2)):0}e.exports=i},,,,function(e,t,r){r(695);e.exports=r(696)},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(17);var o=r(78);var s=r(710);var u=r(389);var l=r(802);var c=r(1113);var f=r(1196);var d=r(1203);var p=r(1314);var h=r(1339);var v=r(1341);var m=r(1342);var y=r(1347);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(1358)})).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
  *
@@ -375,7 +375,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
375
375
  * author : Adam Draper
376
376
  * license : MIT
377
377
  * http://adamwdraper.github.com/Numeral-js/
378
- */(function(i,o){if(true){!(n=o,a=typeof n==="function"?n.call(t,r,t,e):n,a!==undefined&&(e.exports=a))}else{}})(this,(function(){var e,t,r="2.0.6",n={},a={},i={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:true},o={currentLocale:i.currentLocale,zeroFormat:i.zeroFormat,nullFormat:i.nullFormat,defaultFormat:i.defaultFormat,scalePercentBy100:i.scalePercentBy100};function s(e,t){this._input=e;this._value=t}e=function(r){var a,i,u,l;if(e.isNumeral(r)){a=r.value()}else if(r===0||typeof r==="undefined"){a=0}else if(r===null||t.isNaN(r)){a=null}else if(typeof r==="string"){if(o.zeroFormat&&r===o.zeroFormat){a=0}else if(o.nullFormat&&r===o.nullFormat||!r.replace(/[^0-9]+/g,"").length){a=null}else{for(i in n){l=typeof n[i].regexps.unformat==="function"?n[i].regexps.unformat():n[i].regexps.unformat;if(l&&r.match(l)){u=n[i].unformat;break}}u=u||e._.stringToNumber;a=u(r)}}else{a=Number(r)||null}return new s(r,a)};e.version=r;e.isNumeral=function(e){return e instanceof s};e._=t={numberToFormat:function(t,r,n){var i=a[e.options.currentLocale],o=false,s=false,u=0,l="",c=1e12,f=1e9,d=1e6,p=1e3,h="",v=false,m,y,g,b,A,_,w,E,x,k;t=t||0;y=Math.abs(t);if(e._.includes(r,"(")){o=true;r=r.replace(/[\(|\)]/g,"")}else if(e._.includes(r,"+")||e._.includes(r,"-")){E=e._.includes(r,"+")?r.indexOf("+"):t<0?r.indexOf("-"):-1;r=r.replace(/[\+|\-]/g,"")}if(e._.includes(r,"a")){m=r.match(/a(k|m|b|t)?/);m=m?m[1]:false;if(e._.includes(r," a")){l=" "}r=r.replace(new RegExp(l+"a[kmbt]?"),"");if(y>=c&&!m||m==="t"){l+=i.abbreviations.trillion;t=t/c}else if(y<c&&y>=f&&!m||m==="b"){l+=i.abbreviations.billion;t=t/f}else if(y<f&&y>=d&&!m||m==="m"){l+=i.abbreviations.million;t=t/d}else if(y<d&&y>=p&&!m||m==="k"){l+=i.abbreviations.thousand;t=t/p}}if(e._.includes(r,"[.]")){s=true;r=r.replace("[.]",".")}_=t.toString().split(".")[0];w=r.split(".")[1];x=r.indexOf(",");u=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length;if(w){if(e._.includes(w,"[")){w=w.replace("]","");w=w.split("[");h=e._.toFixed(t,w[0].length+w[1].length,n,w[1].length)}else{h=e._.toFixed(t,w.length,n)}_=h.split(".")[0];if(e._.includes(h,".")){h=i.delimiters.decimal+h.split(".")[1]}else{h=""}if(s&&Number(h.slice(1))===0){h=""}}else{_=e._.toFixed(t,0,n)}if(l&&!m&&Number(_)>=1e3&&l!==i.abbreviations.trillion){_=String(Number(_)/1e3);switch(l){case i.abbreviations.thousand:l=i.abbreviations.million;break;case i.abbreviations.million:l=i.abbreviations.billion;break;case i.abbreviations.billion:l=i.abbreviations.trillion;break}}if(e._.includes(_,"-")){_=_.slice(1);v=true}if(_.length<u){for(var M=u-_.length;M>0;M--){_="0"+_}}if(x>-1){_=_.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+i.delimiters.thousands)}if(r.indexOf(".")===0){_=""}k=_+h+(l?l:"");if(o){k=(o&&v?"(":"")+k+(o&&v?")":"")}else{if(E>=0){k=E===0?(v?"-":"+")+k:k+(v?"-":"+")}else if(v){k="-"+k}}return k},stringToNumber:function(e){var t=a[o.currentLocale],r=e,n={thousand:3,million:6,billion:9,trillion:12},i,s,u,l;if(o.zeroFormat&&e===o.zeroFormat){s=0}else if(o.nullFormat&&e===o.nullFormat||!e.replace(/[^0-9]+/g,"").length){s=null}else{s=1;if(t.delimiters.decimal!=="."){e=e.replace(/\./g,"").replace(t.delimiters.decimal,".")}for(i in n){l=new RegExp("[^a-zA-Z]"+t.abbreviations[i]+"(?:\\)|(\\"+t.currency.symbol+")?(?:\\))?)?$");if(r.match(l)){s*=Math.pow(10,n[i]);break}}s*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1;e=e.replace(/[^0-9\.]+/g,"");s*=Number(e)}return s},isNaN:function(e){return typeof e==="number"&&isNaN(e)},includes:function(e,t){return e.indexOf(t)!==-1},insert:function(e,t,r){return e.slice(0,r)+t+e.slice(r)},reduce:function(e,t){if(this===null){throw new TypeError("Array.prototype.reduce called on null or undefined")}if(typeof t!=="function"){throw new TypeError(t+" is not a function")}var r=Object(e),n=r.length>>>0,a=0,i;if(arguments.length===3){i=arguments[2]}else{while(a<n&&!(a in r)){a++}if(a>=n){throw new TypeError("Reduce of empty array with no initial value")}i=r[a++]}for(;a<n;a++){if(a in r){i=t(i,r[a],a,r)}}return i},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){var e=Array.prototype.slice.call(arguments);return e.reduce((function(e,r){var n=t.multiplier(r);return e>n?e:n}),1)},toFixed:function(e,t,r,n){var a=e.toString().split("."),i=t-(n||0),o,s,u,l;if(a.length===2){o=Math.min(Math.max(a[1].length,i),t)}else{o=i}u=Math.pow(10,o);l=(r(e+"e+"+o)/u).toFixed(o);if(n>t-o){s=new RegExp("\\.?0{1,"+(n-(t-o))+"}$");l=l.replace(s,"")}return l}};e.options=o;e.formats=n;e.locales=a;e.locale=function(e){if(e){o.currentLocale=e.toLowerCase()}return o.currentLocale};e.localeData=function(e){if(!e){return a[o.currentLocale]}e=e.toLowerCase();if(!a[e]){throw new Error("Unknown locale : "+e)}return a[e]};e.reset=function(){for(var e in i){o[e]=i[e]}};e.zeroFormat=function(e){o.zeroFormat=typeof e==="string"?e:null};e.nullFormat=function(e){o.nullFormat=typeof e==="string"?e:null};e.defaultFormat=function(e){o.defaultFormat=typeof e==="string"?e:"0.0"};e.register=function(e,t,r){t=t.toLowerCase();if(this[e+"s"][t]){throw new TypeError(t+" "+e+" already registered.")}this[e+"s"][t]=r;return r};e.validate=function(t,r){var n,a,i,o,s,u,l,c;if(typeof t!=="string"){t+="";if(console.warn){console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)}}t=t.trim();if(!!t.match(/^\d+$/)){return true}if(t===""){return false}try{l=e.localeData(r)}catch(t){l=e.localeData(e.locale())}i=l.currency.symbol;s=l.abbreviations;n=l.delimiters.decimal;if(l.delimiters.thousands==="."){a="\\."}else{a=l.delimiters.thousands}c=t.match(/^[^\d]+/);if(c!==null){t=t.substr(1);if(c[0]!==i){return false}}c=t.match(/[^\d]+$/);if(c!==null){t=t.slice(0,-1);if(c[0]!==s.thousand&&c[0]!==s.million&&c[0]!==s.billion&&c[0]!==s.trillion){return false}}u=new RegExp(a+"{2}");if(!t.match(/[^\d.,]/g)){o=t.split(n);if(o.length>2){return false}else{if(o.length<2){return!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u)}else{if(o[0].length===1){return!!o[0].match(/^\d+$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/)}else{return!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/)}}}}return false};e.fn=s.prototype={clone:function(){return e(this)},format:function(t,r){var a=this._value,i=t||o.defaultFormat,s,u,l;r=r||Math.round;if(a===0&&o.zeroFormat!==null){u=o.zeroFormat}else if(a===null&&o.nullFormat!==null){u=o.nullFormat}else{for(s in n){if(i.match(n[s].regexps.format)){l=n[s].format;break}}l=l||e._.numberToFormat;u=l(a,i,r)}return u},value:function(){return this._value},input:function(){return this._input},set:function(e){this._value=Number(e);return this},add:function(e){var r=t.correctionFactor.call(null,this._value,e);function n(e,t,n,a){return e+Math.round(r*t)}this._value=t.reduce([this._value,e],n,0)/r;return this},subtract:function(e){var r=t.correctionFactor.call(null,this._value,e);function n(e,t,n,a){return e-Math.round(r*t)}this._value=t.reduce([e],n,Math.round(this._value*r))/r;return this},multiply:function(e){function r(e,r,n,a){var i=t.correctionFactor(e,r);return Math.round(e*i)*Math.round(r*i)/Math.round(i*i)}this._value=t.reduce([this._value,e],r,1);return this},divide:function(e){function r(e,r,n,a){var i=t.correctionFactor(e,r);return Math.round(e*i)/Math.round(r*i)}this._value=t.reduce([this._value,e],r);return this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}};e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return~~(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th"},currency:{symbol:"$"}});(function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,r,n){var a=e._.includes(r," BPS")?" ":"",i;t=t*1e4;r=r.replace(/\s?BPS/,"");i=e._.numberToFormat(t,r,n);if(e._.includes(i,")")){i=i.split("");i.splice(-1,0,a+"BPS");i=i.join("")}else{i=i+a+"BPS"}return i},unformat:function(t){return+(e._.stringToNumber(t)*1e-4).toFixed(15)}})})();(function(){var t={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]};var n=t.suffixes.concat(r.suffixes.filter((function(e){return t.suffixes.indexOf(e)<0})));var a=n.join("|");a="("+a.replace("B","B(?!PS)")+")";e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(a)},format:function(n,a,i){var o,s=e._.includes(a,"ib")?r:t,u=e._.includes(a," b")||e._.includes(a," ib")?" ":"",l,c,f;a=a.replace(/\s?i?b/,"");for(l=0;l<=s.suffixes.length;l++){c=Math.pow(s.base,l);f=Math.pow(s.base,l+1);if(n===null||n===0||n>=c&&n<f){u+=s.suffixes[l];if(c>0){n=n/c}break}}o=e._.numberToFormat(n,a,i);return o+u},unformat:function(n){var a=e._.stringToNumber(n),i,o;if(a){for(i=t.suffixes.length-1;i>=0;i--){if(e._.includes(n,t.suffixes[i])){o=Math.pow(t.base,i);break}if(e._.includes(n,r.suffixes[i])){o=Math.pow(r.base,i);break}}a*=o||1}return a}})})();(function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,r,n){var a=e.locales[e.options.currentLocale],i={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]},o,s,u;r=r.replace(/\s?\$\s?/,"");o=e._.numberToFormat(t,r,n);if(t>=0){i.before=i.before.replace(/[\-\(]/,"");i.after=i.after.replace(/[\-\)]/,"")}else if(t<0&&(!e._.includes(i.before,"-")&&!e._.includes(i.before,"("))){i.before="-"+i.before}for(u=0;u<i.before.length;u++){s=i.before[u];switch(s){case"$":o=e._.insert(o,a.currency.symbol,u);break;case" ":o=e._.insert(o," ",u+a.currency.symbol.length-1);break}}for(u=i.after.length-1;u>=0;u--){s=i.after[u];switch(s){case"$":o=u===i.after.length-1?o+a.currency.symbol:e._.insert(o,a.currency.symbol,-(i.after.length-(1+u)));break;case" ":o=u===i.after.length-1?o+" ":e._.insert(o," ",-(i.after.length-(1+u)+a.currency.symbol.length-1));break}}return o}})})();(function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,r,n){var a,i=typeof t==="number"&&!e._.isNaN(t)?t.toExponential():"0e+0",o=i.split("e");r=r.replace(/e[\+|\-]{1}0/,"");a=e._.numberToFormat(Number(o[0]),r,n);return a+"e"+o[1]},unformat:function(t){var r=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),n=Number(r[0]),a=Number(r[1]);a=e._.includes(t,"e-")?a*=-1:a;function i(t,r,n,a){var i=e._.correctionFactor(t,r),o=t*i*(r*i)/(i*i);return o}return e._.reduce([n,Math.pow(10,a)],i,1)}})})();(function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,r,n){var a=e.locales[e.options.currentLocale],i,o=e._.includes(r," o")?" ":"";r=r.replace(/\s?o/,"");o+=a.ordinal(t);i=e._.numberToFormat(t,r,n);return i+o}})})();(function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,r,n){var a=e._.includes(r," %")?" ":"",i;if(e.options.scalePercentBy100){t=t*100}r=r.replace(/\s?\%/,"");i=e._.numberToFormat(t,r,n);if(e._.includes(i,")")){i=i.split("");i.splice(-1,0,a+"%");i=i.join("")}else{i=i+a+"%"}return i},unformat:function(t){var r=e._.stringToNumber(t);if(e.options.scalePercentBy100){return r*.01}return r}})})();(function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,r){var n=Math.floor(e/60/60),a=Math.floor((e-n*60*60)/60),i=Math.round(e-n*60*60-a*60);return n+":"+(a<10?"0"+a:a)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),r=0;if(t.length===3){r=r+Number(t[0])*60*60;r=r+Number(t[1])*60;r=r+Number(t[2])}else if(t.length===2){r=r+Number(t[0])*60;r=r+Number(t[1])}return Number(r)}})})();return e}))},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(13);var o=r(7);var s=r(31);var u=r(70);var l=r(63);var c=r(0);var f=r(1310);var d=r(12);var p=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={showDownloadForm:false};r.showDownloadForm=r.showDownloadForm.bind(r);r.hideDownloadForm=r.hideDownloadForm.bind(r);r.fetchAndQueue=r.fetchAndQueue.bind(r);r._isMounted=false;return r}t.prototype.render=function(){var e=this;var t=this.props,r=t.library,n=t.fetchError,i=t.isLoaded,o=t.events;return a.createElement("div",{className:"circulation-events"},a.createElement("h2",null,"Circulation Events"),this.context.showCircEventsDownload&&a.createElement(d.Button,{callback:this.showDownloadForm,content:"Download CSV",className:"left-align"}),a.createElement(f.default,{show:this.state.showDownloadForm,hide:this.hideDownloadForm,library:r}),n&&a.createElement(s.default,{error:n}),!i&&!r&&a.createElement(u.default,null),!r&&a.createElement("table",{className:"table table-striped"},a.createElement("thead",null,a.createElement("tr",null,a.createElement("th",null,"Book"),a.createElement("th",null,"Event"),a.createElement("th",null,"Time"))),a.createElement("tbody",null,o.map((function(t){return a.createElement("tr",{key:t.id},a.createElement("td",null,a.createElement(l.default,{bookUrl:t.book.url},t.book.title)),a.createElement("td",null,e.formatType(t.type)),a.createElement("td",null,e.formatTime(t.time)))})))))};t.prototype.UNSAFE_componentWillMount=function(){this._isMounted=true;if(!this.props.library){this.fetchAndQueue()}};t.prototype.componentWillUnmount=function(){if(!this.props.library){clearTimeout(this.timer)}this._isMounted=false};t.prototype.fetchAndQueue=function(){var e=this;return this.props.fetchCirculationEvents().then((function(){if(e._isMounted){e.timer=setTimeout(e.fetchAndQueue,(e.props.wait||10)*1e3)}}))};t.prototype.formatType=function(e){return e.replace("_"," ")};t.prototype.formatTime=function(e){var t=new Date(e);return t.toLocaleString("en-US",{weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"numeric"})};t.prototype.showDownloadForm=function(){this.setState({showDownloadForm:true})};t.prototype.hideDownloadForm=function(){this.setState({showDownloadForm:false})};t.contextTypes={showCircEventsDownload:c.bool};return t}(a.Component);t.CirculationEvents=p;function h(e,t){return{events:e.editor.circulationEvents.data||[],fetchError:e.editor.circulationEvents.fetchError,isLoaded:e.editor.circulationEvents.isLoaded}}function v(e){var t=new o.default;return{fetchCirculationEvents:function(){return e(t.fetchCirculationEvents())}}}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(116);var o=r(12);var s=r(19);var u=r(1311);var l=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.type=a.createRef();r.dateStart=a.createRef();r.dateEnd=a.createRef();r.locations=a.createRef();r.state={showLocationsInput:false};r.download=r.download.bind(r);r.renderForm=r.renderForm.bind(r);r.renderInputs=r.renderInputs.bind(r);r.getRefValue=r.getRefValue.bind(r);r.toggleLocationsInput=r.toggleLocationsInput.bind(r);return r}t.prototype.render=function(){return a.createElement(i.Modal,{className:"circ-events-download-form",show:this.props.show,onHide:this.props.hide},a.createElement(i.Modal.Header,null,a.createElement(i.Modal.Title,null,"Download CSV")),a.createElement(i.Modal.Body,null,this.renderForm()),a.createElement(i.Modal.Footer,null,a.createElement(o.Button,{className:"inverted left-align",callback:this.props.hide,content:"Close"})))};t.prototype.renderForm=function(){return a.createElement(o.Form,{onSubmit:this.download,buttonContent:"Download",buttonClass:"left-align",content:this.renderInputs()})};t.prototype.toggleLocationsInput=function(){var e=this.type.current&&this.type.current.value;var t=false;if(e==="locations"){t=true}this.setState({showLocationsInput:t})};t.prototype.renderInputs=function(){var e=[{id:"all",label:"All Events"},{id:"locations",label:"Events by Location"}];var t=(new Date).toISOString().split("T")[0];return a.createElement(a.Fragment,null,a.createElement("fieldset",null,a.createElement("legend",{className:"control-label visuallyHidden"},"Configuration"),a.createElement("label",{htmlFor:"event-select"},"Event Type",a.createElement("select",{className:"form-control",id:"event-select",ref:this.type,name:"type",onChange:this.toggleLocationsInput,onBlur:this.toggleLocationsInput},e.map((function(e){return a.createElement("option",{key:e.id+"-option",value:e.id,"aria-selected":false},e.label)})))),this.state.showLocationsInput&&a.createElement(s.default,{ref:this.locations,className:"",label:"Locations",description:"Comma-separated list of locations (e.g. ZIP codes or library branch codes) to focus on.",name:"locations",id:"locations",optionalText:false,placeholder:"10001,10002,10003"}),a.createElement(s.default,{ref:this.dateStart,name:"dateStart",label:"Start Date",type:"date",value:t,className:"date-input",optionalText:false}),a.createElement(s.default,{ref:this.dateEnd,name:"dateEnd",label:"End Date",type:"date",value:t,className:"date-input",optionalText:false})))};t.prototype.getRefValue=function(e){var t=e.current||null;var r=t&&t.getValue()||null;return r};t.prototype.download=function(){var e=this.getRefValue(this.dateStart);var t=this.getRefValue(this.dateEnd);var r=this.getRefValue(this.locations);var n={date:e,dateEnd:t,locations:r};var a="";if(this.props.library){a="/"+this.props.library}var i=a+"/admin/bulk_circulation_events";var o=u.stringify(n,{skipNulls:true});if(o){i+="?"+o}var s=document.createElement("a");s.href=i;s.target="_blank";document.body.appendChild(s);s.click();s.remove()};return t}(a.Component);t.default=l},function(e,t,r){"use strict";var n=r(1312);var a=r(1313);var i=r(333);e.exports={formats:i,parse:a,stringify:n}},function(e,t,r){"use strict";var n=r(664);var a=r(333);var i=Object.prototype.hasOwnProperty;var o={brackets:function e(t){return t+"[]"},comma:"comma",indices:function e(t,r){return t+"["+r+"]"},repeat:function e(t){return t}};var s=Array.isArray;var u=Array.prototype.push;var l=function(e,t){u.apply(e,s(t)?t:[t])};var c=Date.prototype.toISOString;var f=a["default"];var d={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:n.encode,encodeValuesOnly:false,format:f,formatter:a.formatters[f],indices:false,serializeDate:function e(t){return c.call(t)},skipNulls:false,strictNullHandling:false};var p=function e(t){return typeof t==="string"||typeof t==="number"||typeof t==="boolean"||typeof t==="symbol"||typeof t==="bigint"};var h=function e(t,r,a,i,o,u,c,f,h,v,m,y,g,b){var A=t;if(typeof c==="function"){A=c(r,A)}else if(A instanceof Date){A=v(A)}else if(a==="comma"&&s(A)){A=n.maybeMap(A,(function(e){if(e instanceof Date){return v(e)}return e}))}if(A===null){if(i){return u&&!g?u(r,d.encoder,b,"key",m):r}A=""}if(p(A)||n.isBuffer(A)){if(u){var _=g?r:u(r,d.encoder,b,"key",m);return[y(_)+"="+y(u(A,d.encoder,b,"value",m))]}return[y(r)+"="+y(String(A))]}var w=[];if(typeof A==="undefined"){return w}var E;if(a==="comma"&&s(A)){E=[{value:A.length>0?A.join(",")||null:undefined}]}else if(s(c)){E=c}else{var x=Object.keys(A);E=f?x.sort(f):x}for(var k=0;k<E.length;++k){var M=E[k];var S=typeof M==="object"&&M.value!==undefined?M.value:A[M];if(o&&S===null){continue}var O=s(A)?typeof a==="function"?a(r,M):r:r+(h?"."+M:"["+M+"]");l(w,e(S,O,a,i,o,u,c,f,h,v,m,y,g,b))}return w};var v=function e(t){if(!t){return d}if(t.encoder!==null&&t.encoder!==undefined&&typeof t.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var r=t.charset||d.charset;if(typeof t.charset!=="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var n=a["default"];if(typeof t.format!=="undefined"){if(!i.call(a.formatters,t.format)){throw new TypeError("Unknown format option provided.")}n=t.format}var o=a.formatters[n];var u=d.filter;if(typeof t.filter==="function"||s(t.filter)){u=t.filter}return{addQueryPrefix:typeof t.addQueryPrefix==="boolean"?t.addQueryPrefix:d.addQueryPrefix,allowDots:typeof t.allowDots==="undefined"?d.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel==="boolean"?t.charsetSentinel:d.charsetSentinel,delimiter:typeof t.delimiter==="undefined"?d.delimiter:t.delimiter,encode:typeof t.encode==="boolean"?t.encode:d.encode,encoder:typeof t.encoder==="function"?t.encoder:d.encoder,encodeValuesOnly:typeof t.encodeValuesOnly==="boolean"?t.encodeValuesOnly:d.encodeValuesOnly,filter:u,format:n,formatter:o,serializeDate:typeof t.serializeDate==="function"?t.serializeDate:d.serializeDate,skipNulls:typeof t.skipNulls==="boolean"?t.skipNulls:d.skipNulls,sort:typeof t.sort==="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling==="boolean"?t.strictNullHandling:d.strictNullHandling}};e.exports=function(e,t){var r=e;var n=v(t);var a;var i;if(typeof n.filter==="function"){i=n.filter;r=i("",r)}else if(s(n.filter)){i=n.filter;a=i}var u=[];if(typeof r!=="object"||r===null){return""}var c;if(t&&t.arrayFormat in o){c=t.arrayFormat}else if(t&&"indices"in t){c=t.indices?"indices":"repeat"}else{c="indices"}var f=o[c];if(!a){a=Object.keys(r)}if(n.sort){a.sort(n.sort)}for(var d=0;d<a.length;++d){var p=a[d];if(n.skipNulls&&r[p]===null){continue}l(u,h(r[p],p,f,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset))}var m=u.join(n.delimiter);var y=n.addQueryPrefix===true?"?":"";if(n.charsetSentinel){if(n.charset==="iso-8859-1"){y+="utf8=%26%2310003%3B&"}else{y+="utf8=%E2%9C%93&"}}return m.length>0?y+m:""}},function(e,t,r){"use strict";var n=r(664);var a=Object.prototype.hasOwnProperty;var i=Array.isArray;var o={allowDots:false,allowPrototypes:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))};var u=function(e,t){if(e&&typeof e==="string"&&t.comma&&e.indexOf(",")>-1){return e.split(",")}return e};var l="utf8=%26%2310003%3B";var c="utf8=%E2%9C%93";var f=function e(t,r){var f={};var d=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;var p=r.parameterLimit===Infinity?undefined:r.parameterLimit;var h=d.split(r.delimiter,p);var v=-1;var m;var y=r.charset;if(r.charsetSentinel){for(m=0;m<h.length;++m){if(h[m].indexOf("utf8=")===0){if(h[m]===c){y="utf-8"}else if(h[m]===l){y="iso-8859-1"}v=m;m=h.length}}}for(m=0;m<h.length;++m){if(m===v){continue}var g=h[m];var b=g.indexOf("]=");var A=b===-1?g.indexOf("="):b+1;var _,w;if(A===-1){_=r.decoder(g,o.decoder,y,"key");w=r.strictNullHandling?null:""}else{_=r.decoder(g.slice(0,A),o.decoder,y,"key");w=n.maybeMap(u(g.slice(A+1),r),(function(e){return r.decoder(e,o.decoder,y,"value")}))}if(w&&r.interpretNumericEntities&&y==="iso-8859-1"){w=s(w)}if(g.indexOf("[]=")>-1){w=i(w)?[w]:w}if(a.call(f,_)){f[_]=n.combine(f[_],w)}else{f[_]=w}}return f};var d=function(e,t,r,n){var a=n?t:u(t,r);for(var i=e.length-1;i>=0;--i){var o;var s=e[i];if(s==="[]"&&r.parseArrays){o=[].concat(a)}else{o=r.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s;var c=parseInt(l,10);if(!r.parseArrays&&l===""){o={0:a}}else if(!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&(r.parseArrays&&c<=r.arrayLimit)){o=[];o[c]=a}else{o[l]=a}}a=o}return a};var p=function e(t,r,n,i){if(!t){return}var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t;var s=/(\[[^[\]]*])/;var u=/(\[[^[\]]*])/g;var l=n.depth>0&&s.exec(o);var c=l?o.slice(0,l.index):o;var f=[];if(c){if(!n.plainObjects&&a.call(Object.prototype,c)){if(!n.allowPrototypes){return}}f.push(c)}var p=0;while(n.depth>0&&(l=u.exec(o))!==null&&p<n.depth){p+=1;if(!n.plainObjects&&a.call(Object.prototype,l[1].slice(1,-1))){if(!n.allowPrototypes){return}}f.push(l[1])}if(l){f.push("["+o.slice(l.index)+"]")}return d(f,r,n,i)};var h=function e(t){if(!t){return o}if(t.decoder!==null&&t.decoder!==undefined&&typeof t.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof t.charset!=="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var r=typeof t.charset==="undefined"?o.charset:t.charset;return{allowDots:typeof t.allowDots==="undefined"?o.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes==="boolean"?t.allowPrototypes:o.allowPrototypes,arrayLimit:typeof t.arrayLimit==="number"?t.arrayLimit:o.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel==="boolean"?t.charsetSentinel:o.charsetSentinel,comma:typeof t.comma==="boolean"?t.comma:o.comma,decoder:typeof t.decoder==="function"?t.decoder:o.decoder,delimiter:typeof t.delimiter==="string"||n.isRegExp(t.delimiter)?t.delimiter:o.delimiter,depth:typeof t.depth==="number"||t.depth===false?+t.depth:o.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===true,interpretNumericEntities:typeof t.interpretNumericEntities==="boolean"?t.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:typeof t.parameterLimit==="number"?t.parameterLimit:o.parameterLimit,parseArrays:t.parseArrays!==false,plainObjects:typeof t.plainObjects==="boolean"?t.plainObjects:o.plainObjects,strictNullHandling:typeof t.strictNullHandling==="boolean"?t.strictNullHandling:o.strictNullHandling}};e.exports=function(e,t){var r=h(t);if(e===""||e===null||typeof e==="undefined"){return r.plainObjects?Object.create(null):{}}var a=typeof e==="string"?f(e,r):e;var i=r.plainObjects?Object.create(null):{};var o=Object.keys(a);for(var s=0;s<o.length;++s){var u=o[s];var l=p(u,a[u],r,typeof e==="string");i=n.merge(i,l,r)}return n.compact(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(0);var o=r(75);var s=r(76);var u=r(1315);var l=r(136);var c=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return a.createElement("div",{className:"config"},a.createElement(o.default,null),a.createElement("main",null,a.createElement(u.default,{tab:this.props.params.tab,editOrCreate:this.props.params.editOrCreate,identifier:this.props.params.identifier,store:this.context.editorStore,csrfToken:this.context.csrfToken,class:"clearfix"})),a.createElement(s.default,null))};t.prototype.UNSAFE_componentWillMount=function(){document.title=l.default("Configuration")};t.contextTypes={editorStore:i.object.isRequired,csrfToken:i.string.isRequired};return t}(a.Component);t.default=c},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(1316);var s=r(1322);var u=r(1326);var l=r(666);var c=r(1328);var f=r(1329);var d=r(1331);var p=r(1332);var h=r(1333);var v=r(1334);var m=r(1335);var y=r(1336);var g=r(1337);var b=r(1338);var A=r(111);var _=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.COMPONENT_CLASSES={libraries:o.default,individualAdmins:l.default,collections:s.default,adminAuth:u.default,patronAuth:c.default,sitewideSettings:f.default,logging:b.default,metadata:d.default,analytics:p.default,cdn:h.default,search:v.default,storage:m.default,catalogServices:y.default,discovery:g.default};t.LIBRARIAN_TABS=["libraries","analytics"];t.LIBRARY_MANAGER_TABS=t.LIBRARIAN_TABS;t.SYSTEM_ADMIN_TABS=Object.keys(t.COMPONENT_CLASSES);t.DISPLAY_NAMES={adminAuth:"Admin Authentication",individualAdmins:"Admins",patronAuth:"Patron Authentication",sitewideSettings:"Sitewide Settings",cdn:"CDN",catalogServices:"External Catalogs"};return t}t.prototype.tabs=function(){var e=this;var t={};var r=function(r){for(var n=0,i=r;n<i.length;n++){var o=i[n];var s=e.COMPONENT_CLASSES[o];t[o]=a.createElement(s,{store:e.props.store,csrfToken:e.props.csrfToken,editOrCreate:e.props.editOrCreate,identifier:e.props.identifier})}};var n;if(this.context.admin.isSystemAdmin()){n=this.SYSTEM_ADMIN_TABS}else if(this.context.admin.isLibraryManagerOfSomeLibrary()){n=this.LIBRARY_MANAGER_TABS}else{n=this.LIBRARIAN_TABS}r(n);return t};t.prototype.handleSelect=function(e){var t=e.target.dataset.tabkey;if(this.context.router){this.context.router.push("/admin/web/config/"+t)}};t.prototype.tabDisplayName=function(t){if(this.DISPLAY_NAMES[t]){return this.DISPLAY_NAMES[t]}else{return e.prototype.tabDisplayName.call(this,t)}};t.prototype.defaultTab=function(){return"libraries"};t.contextTypes={router:i.object.isRequired,pathFor:i.func.isRequired,admin:i.object.isRequired};return t}(A.TabContainer);t.default=_},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(38);var i=r(13);var o=r(0);var s=r(7);var u=r(1317);var l=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=u.default;t.listDataKey="libraries";t.itemTypeName="library";t.urlBase="/admin/web/config/libraries/";t.identifierKey="uuid";t.labelKey="name";return t}t.prototype.UNSAFE_componentWillMount=function(){e.prototype.UNSAFE_componentWillMount.call(this);this.props.fetchLanguages()};t.prototype.label=function(e){return e[this.labelKey]||e.short_name||e.uuid};t.prototype.canCreate=function(){return this.context.admin.isSystemAdmin()};t.prototype.canDelete=function(){return this.context.admin.isSystemAdmin()};t.contextTypes={admin:o.object.isRequired};return t}(a.GenericEditableConfigList);t.Libraries=l;function c(e,t){return{data:e.editor.libraries&&e.editor.libraries.data,responseBody:e.editor.libraries&&e.editor.libraries.successMessage,fetchError:e.editor.libraries.fetchError,formError:e.editor.libraries.formError,isFetching:e.editor.libraries.isFetching||e.editor.libraries.isEditing,additionalData:e.editor.languages&&e.editor.languages.data}}function f(e,t){var r=new s.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchLibraries())},editItem:function(t){return e(r.editLibrary(t))},deleteItem:function(t){return e(r.deleteLibrary(t))},fetchLanguages:function(){return e(r.fetchLanguages())}}}var d=i.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)}}();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(194);var s=r(72);var u=r(12);var l=r(1318);var c=r(1319);var f=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.nameRef=i.createRef();r.shortNameRef=i.createRef();r.settingRef=i.createRef();r.announcementsRef=i.createRef();r.submit=r.submit.bind(r);return r}t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(e.responseBody&&!e.fetchError){s.clearForm([this.nameRef.current,this.shortNameRef.current,this.settingRef.current,this.announcementsRef.current])}};t.prototype.adminNotAuthorized=function(e){return e.level&&e.level>this.props.adminLevel};t.prototype.render=function(){var e=this;var t=[];var r=[];if(this.props.data&&this.props.data.settings){t=this.props.data.settings.filter((function(e){return e.required||e.category==="Basic Information"}));r=this.props.data.settings.filter((function(e){return!new Set(t).has(e)}))}var n=this.separateCategories(r);var a=3;var l=function(t){if(t.key==="name"){return e.nameRef}else if(t.key==="short name"){return e.shortNameRef}else{return e.settingRef}};var c=i.createElement(u.Panel,{id:"library-basic-info",headerText:"Basic Information",key:"basic_info",openByDefault:true,content:i.createElement("fieldset",null,i.createElement("legend",{className:"visuallyHidden"},"Basic Information"),t.map((function(t){var r;return i.createElement(o.default,{key:t.key,ref:l(t),setting:t,disabled:e.props.disabled,value:e.props.item&&e.props.item[t.key]||((r=e.props.item)===null||r===void 0?void 0:r.settings)&&e.props.item.settings[t.key],default:s.findDefault(t),error:e.props.error,readOnly:e.adminNotAuthorized(t)})})))});return i.createElement(u.Form,{hiddenName:"uuid",hiddenValue:this.props.item&&this.props.item.uuid,className:"edit-form",disableButton:this.props.disabled,onSubmit:this.submit,content:[c,this.renderForms(n)]})};t.prototype.separateCategories=function(e){var t={};e.forEach((function(e){t[e.category]=t[e.category]?t[e.category].concat(e):[e]}));return t};t.prototype.renderForms=function(e){var t=this;var r=[];var n=Object.keys(e);n.forEach((function(n){var a=i.createElement(u.Panel,{id:"library-form-"+n.replace(/\s/g,"-"),headerText:n+" (Optional)",onEnter:t.submit,key:n,content:t.renderFieldset(e[n])});r.push(a)}));return r};t.prototype.renderAnnouncements=function(e,t){return i.createElement(c.default,{setting:a(a({},e),{format:"date-range"}),value:t&&JSON.parse(t),ref:this.announcementsRef})};t.prototype.renderPairedMenus=function(e,t){var r=t.find((function(t){return t.key===e.paired}));return i.createElement(l.default,{inputListSetting:e,dropdownSetting:r,item:this.props.item,disabled:this.props.disabled,readOnly:this.adminNotAuthorized(e),error:this.props.error})};t.prototype.renderFieldset=function(e){var t=this;var r=function(e){if(e.format==="narrow"){return a(a({},e),{type:"menu"})}return e};var n=function(e){var r;if((r=t.props.item)===null||r===void 0?void 0:r.settings){return t.props.item.settings[e.key]}return e.default};var u=function(a){if(a.paired){return t.renderPairedMenus(a,e)}else if(a.type==="announcements"){return t.renderAnnouncements(a,n(a))}else if(!a.skip){return i.createElement(o.default,{key:a.key,ref:t.settingRef,setting:r(a),additionalData:t.props.additionalData,disabled:t.props.disabled,value:n(a),default:s.findDefault(a),error:t.props.error,disableButton:t.adminNotAuthorized(a)||t.props.disabled,readOnly:t.adminNotAuthorized(a)||a.readOnly})}};return i.createElement("fieldset",null,i.createElement("legend",{className:"visuallyHidden"},"Additional Fields"),e.map((function(e){return u(e)})))};t.prototype.submit=function(e){var t;var r=this.announcementsRef.current.getValue();var n=[];r.forEach((function(e){return n.push(e)}));(t=e)===null||t===void 0?void 0:t.set("announcements",JSON.stringify(n));this.props.save(e)};return t}(i.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(194);var s=r(72);var u=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;var n=r.existingInput();r.state={inputListValues:n,dropdownValue:r.props.dropdownSetting?r.getValueFromItem(r.props.dropdownSetting):""};r.updateInputList=r.updateInputList.bind(r);r.renderDropdown=r.renderDropdown.bind(r);return r}t.prototype.existingInput=function(){var e=this.props.item;var t=this.props.inputListSetting.key;if(e&&e.settings[t]){return e.settings[t]}else{return this.props.inputListSetting.default}};t.prototype.render=function(){return i.createElement("fieldset",{className:"paired-menus"},this.renderInputList(this.props.inputListSetting.options),this.props.dropdownSetting&&this.renderDropdown())};t.prototype.updateInputList=function(e){this.setState(a(a({},this.state),{inputListValues:e.listItems}))};t.prototype.onDropdownChange=function(e){this.setState(a(a({},this.state),{dropdownValue:e}))};t.prototype.getValueFromItem=function(e){var t=this.props.item&&this.props.item.settings?this.props.item.settings[e.key]:e.default;return t};t.prototype.renderInputList=function(e){var t=function(e){return i.createElement("option",{value:e.key,key:e.key,"aria-selected":false},e.label)};return i.createElement(o.default,{setting:a(a({},this.props.inputListSetting),{type:"menu",format:"narrow",menuOptions:e.map((function(e){return t(e)}))}),value:this.state.inputListValues,disabled:this.props.disabled,onChange:this.updateInputList,disableButton:this.props.readOnly||this.props.disabled,readOnly:true,ref:this.props.inputListSetting.key})};t.prototype.renderDropdown=function(){var e=this;var t=a({},this.props.dropdownSetting);var r=this.state.inputListValues&&t.options.filter((function(t){return e.state.inputListValues.includes(t.key)}));if(r&&r.length===0){return i.createElement("p",{className:"bg-warning"},"In order to set this value, you must add at least one option from the menu above.")}t=a(a({},t),{options:r});return i.createElement(o.default,{key:t.key,ref:t.key,setting:t,disabled:this.props.disabled,value:this.getValueFromItem(t),default:s.findDefault(t),error:this.props.error,onChange:function(t){return e.onDropdownChange(t)}})};t.prototype.getValue=function(){return this.state};return t}(i.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(1320);var o=r(1321);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(19);var o=r(12);var s=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.updateStartDate=r.updateStartDate.bind(r);r.updateEndDate=r.updateEndDate.bind(r);var n=r.getDefaultDates(),a=n[0],i=n[1];r.state={content:r.props.content||"",start:r.props.start||a,finish:r.props.finish||i};return r}t.prototype.getDefaultDates=function(){var e=new Date;var t=this.formatDate(e);var r=this.formatDate(new Date(e.setMonth(e.getMonth()+2)));return[t,r]};t.prototype.formatDate=function(e){if(typeof e==="string"&&e.indexOf("/")===-1){return e}var t=typeof e==="string"?e.split("/"):e.toLocaleDateString("en-US").split("/"),r=t[0],n=t[1],a=t[2];return a+"-"+(r.toString().length===1?"0"+r:r)+"-"+(n.toString().length===1?"0"+n:n)};t.prototype.updateContent=function(e){this.setState({content:e})};t.prototype.updateStartDate=function(e){this.setState({start:e});if(this.state.finish===this.getDefaultDates()[1]){var t=new Date(e);var r=t.getMonth()+2;var n=t.setMonth(r);this.setState({finish:this.formatDate(new Date(n))})}};t.prototype.updateEndDate=function(e){this.setState({finish:e})};t.prototype.add=function(e){e.preventDefault();this.props.add({content:this.state.content,start:this.state.start,finish:this.state.finish,id:this.props.id||null});var t=this.getDefaultDates(),r=t[0],n=t[1];this.setState({content:"",start:r,finish:n})};t.prototype.cancel=function(e){e.preventDefault();if(this.props.content){this.add(e)}else{var t=this.getDefaultDates(),r=t[0],n=t[1];this.setState({content:"",start:r,finish:n})}};t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t;if(((t=e.content)===null||t===void 0?void 0:t.length)>0){var r=e.content,n=e.start,a=e.finish;this.setState({content:r,start:this.formatDate(n),finish:this.formatDate(a)})}};t.prototype.render=function(){var e=this;var t=this.state.content.length<15||this.state.content.length>=350;var r=function(){if(!e.state.content||!e.state.start||!e.state.finish){return true}else if(t){return true}return false};return a.createElement("div",{className:"announcement-form"},a.createElement(i.default,{className:t&&"wrong-length",elementType:"textarea",type:"text",minLength:15,maxLength:350,value:this.state.content,label:"New Announcement Text (15-350 characters)",optionalText:false,onChange:function(t){return e.updateContent(t)},description:"(Current length: "+this.state.content.length+"/350)"}),a.createElement(i.default,{type:"date",max:this.state.finish,value:this.state.start,label:"Start Date",optionalText:true,onChange:function(t){return e.updateStartDate(t)},description:"If no start date is chosen, the default start date is today's date."}),a.createElement(i.default,{type:"date",min:this.state.start,value:this.state.finish,label:"End Date",optionalText:true,onChange:function(t){return e.updateEndDate(t)},description:"If no expiration date is chosen, the default expiration date is 2 months from the start date."}),a.createElement(o.Button,{callback:function(t){return e.add(t)},className:"inline left-align",disabled:r()}),a.createElement(o.Button,{callback:function(t){return e.cancel(t)},content:"Cancel",className:"inline left-align"}))};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(12);var o=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.delete=r.delete.bind(r);r.edit=r.edit.bind(r);return r}t.prototype.edit=function(e){e.preventDefault();this.props.edit(this.props.id)};t.prototype.delete=function(e){e.preventDefault();this.props.delete(this.props.id)};t.prototype.format=function(e){if(e){var t=e.split("-"),r=t[0],n=t[1],a=t[2];return n+"/"+a+"/"+r}return""};t.prototype.render=function(){var e=this;var t=a.createElement("section",{className:"announcement-info"},a.createElement("section",{className:"dates"},this.format(this.props.start)," – ",this.format(this.props.finish)),a.createElement("span",null,this.props.content));var r=a.createElement(i.Button,{content:"Edit",onClick:function(t){return e.edit(t)},className:"left-align"});var n=a.createElement(i.Button,{content:"Delete",onClick:function(t){return e.delete(t)},className:"left-align"});return a.createElement("div",{className:"announcement"},t,a.createElement("hr",null),a.createElement("section",{className:"buttons"},r,n))};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)}}();var a=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 i=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 o=r(1);var s=r(38);var u=r(13);var l=r(0);var c=r(7);var f=r(665);var d=r(104);var p=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(f.default);var h=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=p;t.listDataKey="collections";t.itemTypeName="collection";t.urlBase="/admin/web/config/collections/";t.identifierKey="id";t.labelKey="name";t.links=t.renderLinks();return t}t.prototype.getChildContext=function(){var e=this;return{registerLibrary:function(t){if(e.itemToEdit()){var r=new window.FormData;r.append("library_short_name",t.short_name);r.append("collection_id",e.itemToEdit().id);e.props.registerLibrary(r).then((function(){if(e.props.fetchLibraryRegistrations){e.props.fetchLibraryRegistrations()}}))}}}};t.prototype.UNSAFE_componentWillMount=function(){e.prototype.UNSAFE_componentWillMount.call(this);if(this.props.fetchLibraryRegistrations){this.props.fetchLibraryRegistrations()}};t.prototype.renderLinks=function(){var e="/admin/web/troubleshooting/self-tests/collections";var t=o.createElement("a",{href:e},"the troubleshooting page");return{info:o.createElement(o.Fragment,null,"Self-tests for the collections have been moved to ",t),footer:o.createElement(o.Fragment,null,"Problems with your collections? Please visit ",t,".")}};t.prototype.renderLi=function(t,r){if(t.marked_for_deletion){return o.createElement("li",{className:"deleted-collection",key:r},o.createElement(d.default,null),o.createElement("h4",null,this.label(t)),o.createElement("p",null,"This collection cannot be edited and is currently being deleted. The deletion process is gradual and this collection will be removed once it is complete."))}return e.prototype.renderLi.call(this,t,r)};t.prototype.delete=function(e){return a(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:t="This action cannot be undone. Deletion will not happen "+"immediately but gradually. Until the collection is completely deleted, "+"it will remain in the list and will be uneditable.";if(!window.confirm('Set "'+this.label(e)+'" for deletion? '+t))return[3,2];return[4,this.props.deleteItem(e[this.identifierKey])];case 1:r.sent();this.props.fetchData();r.label=2;case 2:return[2]}}))}))};t.childContextTypes={registerLibrary:l.func};return t}(s.GenericEditableConfigList);t.Collections=h;function v(e,t){var r=Object.assign({},e.editor.collections&&e.editor.collections.data||{});if(e.editor.libraries&&e.editor.libraries.data){r.allLibraries=e.editor.libraries.data.libraries}if(e.editor.collectionLibraryRegistrations&&e.editor.collectionLibraryRegistrations.data){r.libraryRegistrations=e.editor.collectionLibraryRegistrations.data.library_registrations}return{data:r,responseBody:e.editor.collections&&e.editor.collections.successMessage,fetchError:e.editor.collections.fetchError,formError:e.editor.collections.formError||e.editor.collectionLibraryRegistrations&&e.editor.collectionLibraryRegistrations.fetchError||e.editor.registerLibraryWithCollection&&e.editor.registerLibraryWithCollection.fetchError,isFetching:e.editor.collections.isFetching||e.editor.collections.isEditing,isFetchingLibraryRegistrations:e.editor.collectionLibraryRegistrations&&e.editor.collectionLibraryRegistrations.isFetching}}function m(e,t){var r=new c.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchCollections())},editItem:function(t){return e(r.editCollection(t))},deleteItem:function(t){return e(r.deleteCollection(t))},registerLibrary:function(t){return e(r.registerLibraryWithCollection(t))},fetchLibraryRegistrations:function(){return e(r.fetchCollectionLibraryRegistrations())}}}var y=u.connect(v,m)(h);t.default=y},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(12);var o=r(99);var s=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e=a.createElement("span",null,"Edit ",a.createElement(o.PencilIcon,{title:"Edit library"}));return a.createElement("div",{className:"with-edit-button"},a.createElement("span",null,this.props.children),a.createElement(i.Button,{className:"edit-btn small",callback:this.onClick.bind(this),content:e,type:"button"}))};t.prototype.onClick=function(e){e.preventDefault();!this.props.disabled&&this.props.onEdit()};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(19);var o=r(1325);var s=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.MESSAGES={success:{statusText:"Registered",buttonText:"Update registration"},warning:{statusText:"Not registered",buttonText:"Register"},failure:{statusText:"Registration failed",buttonText:"Retry registration"}};r.state={registration_stage:{},protocol:r.props.protocol};r.register=r.register.bind(r);r.getStatus=r.getStatus.bind(r);r.libraryRegistrationItem=r.libraryRegistrationItem.bind(r);r.name=r.name.bind(r);r.statusSpan=r.statusSpan.bind(r);r.currentStage=r.currentStage.bind(r);r.registrationStageDropdown=r.registrationStageDropdown.bind(r);r.updateRegistrationStage=r.updateRegistrationStage.bind(r);r.libraryRegistrationForm=r.libraryRegistrationForm.bind(r);r.getLibraryInfo=r.getLibraryInfo.bind(r);r.getLibraryProp=r.getLibraryProp.bind(r);r.protocolSupportsType=r.protocolSupportsType.bind(r);return r}t.prototype.render=function(){var e=this;if(this.props.item&&this.protocolSupportsType("supports_registration")&&this.props.data&&this.props.data.allLibraries&&this.props.data.allLibraries.length>0){return a.createElement("div",null,a.createElement("h2",null,"Register libraries"),a.createElement("ul",null,this.props.data.allLibraries.map((function(t,r){return e.libraryRegistrationItem(t,r)}))))}return null};t.prototype.register=function(e){var t=this.state.registration_stage&&this.state.registration_stage[e.short_name]||"testing";var r=this.getLibraryProp(e,"stage")==="production"?"production":t;this.props.registerLibrary(e,r)};t.prototype.getStatus=function(e){var t=this.getLibraryProp(e,"status")||"warning";return t};t.prototype.libraryRegistrationItem=function(e,t){var r=this.getStatus(e);return a.createElement("li",{className:"service-with-registrations-library",key:e.short_name},this.name(e),a.createElement("div",{className:"library-registration-info"},this.currentStage(e,r),this.statusSpan(r),this.libraryRegistrationForm(e,r,this.props.data.libraryRegistrations&&this.props.data.libraryRegistrations[t])))};t.prototype.name=function(e){return a.createElement("div",{className:"library-name"},a.createElement("a",{href:"/admin/web/config/libraries/edit/"+e.uuid},e.name))};t.prototype.statusSpan=function(e){var t=e==="failure"?"bg-danger":"bg-"+e;return a.createElement("span",{className:t},this.MESSAGES[e].statusText)};t.prototype.currentStage=function(e,t){if(this.protocolSupportsType("supports_staging")){var r=this.getLibraryProp(e,"stage");return a.createElement("div",{className:"current-stage"},r&&t!=="failure"?a.createElement("span",null,"Current Stage: ",r):a.createElement("span",null,"No current stage"),this.registrationStageDropdown(e,r))}return null};t.prototype.registrationStageDropdown=function(e,t){var r=this;if(t==="production"){return null}return a.createElement(i.default,{elementType:"select",name:"registration_stage",label:"Stage",value:t||"testing",ref:"stage-"+e.short_name,onChange:function(){return r.updateRegistrationStage(e)}},a.createElement("option",{value:"testing","aria-selected":t==="testing"},"Testing"),a.createElement("option",{value:"production","aria-selected":t==="production"},"Production"))};t.prototype.libraryRegistrationForm=function(e,t,r){return a.createElement(o.default,{library:e,register:this.register,buttonText:this.MESSAGES[t].buttonText,checked:t==="success",disabled:this.props.disabled,registrationData:r})};t.prototype.updateRegistrationStage=function(e){var t;var r=this.refs["stage-"+e.short_name].getValue();this.setState({registration_stage:Object.assign({},this.state.registration_stage,(t={},t[e.short_name]=r,t)),protocol:this.state.protocol})};t.prototype.getLibraryInfo=function(e){var t=this.props.item&&this.props.item.id;var r=this.props.data&&this.props.data.libraryRegistrations||[];for(var n=0,a=r;n<a.length;n++){var i=a[n];if(i.id===t){for(var o=0,s=i.libraries;o<s.length;o++){var u=s[o];if(u.short_name===e.short_name){return u}}}}return null};t.prototype.getLibraryProp=function(e,t){var r=this.getLibraryInfo(e);return r&&r[t]};t.prototype.protocolSupportsType=function(e){if(this.state.protocol&&this.props.data.protocols){for(var t=0,r=this.props.data.protocols;t<r.length;t++){var n=r[t];if(n.name===this.state.protocol){return!!n[e]}}}return false};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(19);var o=r(12);var s=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={checked:r.props.checked};r.toggleChecked=r.toggleChecked.bind(r);return r}t.prototype.UNSAFE_componentWillReceiveProps=function(e){this.setState({checked:e.checked})};t.prototype.render=function(){var e=this;var t=this.props.registrationData&&(this.props.registrationData.terms_of_service_html||this.props.registrationData.terms_of_service_link||this.props.registrationData.access_problem);var r=this.props.disabled||t&&!this.state.checked;return a.createElement(o.Form,{className:"inline registration-status",content:t&&this.checkbox(this.props.library),disableButton:r,onSubmit:function(){return e.props.register(e.props.library)},buttonContent:this.props.buttonText,withoutButton:this.props.registrationData&&this.props.registrationData.access_problem})};t.prototype.checkbox=function(e){var t=this.props.registrationData,r=t.access_problem,n=t.terms_of_service_html,o=t.terms_of_service_link;var s;if(r){s=a.createElement("p",{className:"bg-danger"},r.detail)}else if(n){s=a.createElement("p",{dangerouslySetInnerHTML:{__html:n}})}else{s=a.createElement("p",null,"You must read the ",a.createElement("a",{href:o},"terms of service")," ","before registering your library.")}return a.createElement("section",{className:"registration-checkbox",key:e.uuid},s,!r&&a.createElement(i.default,{elementType:"input",type:"checkbox",onChange:this.toggleChecked,checked:this.state.checked,label:"I agree to the terms of service."}))};t.prototype.toggleChecked=function(){this.setState({checked:!this.state.checked})};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(38);var i=r(13);var o=r(7);var s=r(66);var u=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=s.default;t.listDataKey="admin_auth_services";t.itemTypeName="admin authentication service";t.urlBase="/admin/web/config/adminAuth/";t.identifierKey="protocol";t.labelKey="protocol";t.limitOne=true;return t}return t}(a.default);t.AdminAuthServices=u;function l(e,t){var r=Object.assign({},e.editor.adminAuthServices&&e.editor.adminAuthServices.data);if(e.editor.libraries&&e.editor.libraries.data){r.allLibraries=e.editor.libraries.data.libraries}return{data:r,responseBody:e.editor.adminAuthServices&&e.editor.adminAuthServices.successMessage,fetchError:e.editor.adminAuthServices.fetchError,formError:e.editor.adminAuthServices.formError,isFetching:e.editor.adminAuthServices.isFetching||e.editor.adminAuthServices.isEditing}}function c(e,t){var r=new o.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchAdminAuthServices())},editItem:function(t){return e(r.editAdminAuthService(t))},deleteItem:function(t){return e(r.deleteAdminAuthService(t))}}}var f=i.connect(l,c)(u);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.__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 i=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 o=r(1);var s=r(0);var u=r(19);var l=r(72);var c=r(387);var f=r(12);var d=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.emailRef=o.createRef();r.passwordRef=o.createRef();r.systemRef=o.createRef();r.managerAllRef=o.createRef();r.librarianAllRef=o.createRef();r.libraryManagerRef=o.createRef();r.librarianRef=o.createRef();r.state={admin:new c.default(r.props.item&&r.props.item.roles||[])};r.isSelected=r.isSelected.bind(r);r.handleRoleChange=r.handleRoleChange.bind(r);r.handleData=r.handleData.bind(r);r.submit=r.submit.bind(r);r.renderForm=r.renderForm.bind(r);r.renderRoleForm=r.renderRoleForm.bind(r);return r}t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(e.item&&e.item!==this.props.item){this.setState({admin:new c.default(e.item.roles||[])})}if(e.responseBody&&!e.fetchError){[this.emailRef,this.passwordRef,this.systemRef,this.managerAllRef,this.librarianAllRef,this.libraryManagerRef,this.librarianRef].forEach((function(e){return l.clearForm(e)}))}};t.prototype.render=function(){return o.createElement(f.Form,{onSubmit:this.submit,className:"edit-form",disableButton:this.props.disabled,content:[o.createElement(f.Panel,{headerText:"Admin Information",id:"admin-info",key:"info",content:this.renderForm(),openByDefault:true,collapsible:!this.context.settingUp,onEnter:this.submit}),!this.context.settingUp&&o.createElement(f.Panel,{id:"admin-roles",headerText:"Admin Roles",key:"roles",content:this.renderRoleForm(),openByDefault:true,onEnter:this.submit})]})};t.prototype.renderForm=function(){return o.createElement("fieldset",null,o.createElement("legend",{className:"visuallyHidden"},"Admin information"),o.createElement(u.default,{elementType:"input",type:"text",disabled:this.props.disabled,required:true,readOnly:!!(this.props.item&&this.props.item.email),name:"email",label:"Email",ref:this.emailRef,value:this.props.item&&this.props.item.email,error:this.props.error}),this.canChangePassword()&&o.createElement(u.default,{elementType:"input",type:"text",disabled:this.props.disabled,name:"password",label:"Password",ref:this.passwordRef,required:this.context.settingUp,error:this.props.error}))};t.prototype.renderRoleForm=function(){var e=this;return o.createElement("fieldset",null,o.createElement("legend",{className:"visuallyHidden"},"Roles"),o.createElement(u.default,{elementType:"input",type:"checkbox",disabled:this.isDisabled("system"),name:"system",ref:this.systemRef,label:"System Admin",checked:this.isSelected("system"),onChange:function(){return e.handleRoleChange("system")}}),o.createElement("table",{className:"library-admin-roles"},o.createElement("thead",null,o.createElement("tr",null,o.createElement("th",null),o.createElement("th",null,o.createElement(u.default,{elementType:"input",type:"checkbox",disabled:this.isDisabled("manager-all"),name:"manager-all",ref:this.managerAllRef,label:"Library Manager",checked:this.isSelected("manager-all"),onChange:function(){return e.handleRoleChange("manager-all")}})),o.createElement("th",null,o.createElement(u.default,{elementType:"input",type:"checkbox",disabled:this.isDisabled("librarian-all"),name:"librarian-all",ref:this.librarianAllRef,label:"Librarian",checked:this.isSelected("librarian-all"),onChange:function(){return e.handleRoleChange("librarian-all")}})))),o.createElement("tbody",null,this.props.data&&this.props.data.allLibraries&&this.props.data.allLibraries.map((function(t){return o.createElement("tr",{key:t.short_name},o.createElement("td",null,t.name),o.createElement("td",null,o.createElement(u.default,{elementType:"input",type:"checkbox",disabled:e.isDisabled("manager",t.short_name),name:"manager-"+t.short_name,ref:e.libraryManagerRef,label:"","aria-label":"Library Manager for "+t.short_name,checked:e.isSelected("manager",t.short_name),onChange:function(){return e.handleRoleChange("manager",t.short_name)}})),o.createElement("td",null,o.createElement(u.default,{elementType:"input",type:"checkbox",disabled:e.isDisabled("librarian",t.short_name),name:"librarian-"+t.short_name,ref:e.librarianRef,label:"","aria-label":"Librarian for "+t.short_name,checked:e.isSelected("librarian",t.short_name),onChange:function(){return e.handleRoleChange("librarian",t.short_name)}})))})))))};t.prototype.canChangePassword=function(){if(this.context.settingUp||!this.props.item||!this.props.item.roles){return true}if(this.props.item.roles.length===0){return this.context.admin.isLibraryManagerOfSomeLibrary()}var e=new c.default(this.props.item.roles||[]);if(e.isSystemAdmin()){return this.context.admin.isSystemAdmin()}else if(e.isSitewideLibraryManager()){return this.context.admin.isSitewideLibraryManager()}else{for(var t=0,r=e.roles;t<r.length;t++){var n=r[t];if(this.context.admin.isLibraryManager(n.library)){return true}}return false}};t.prototype.isSelected=function(e,t){return this.state.admin.hasRole(e,t)};t.prototype.isDisabled=function(e,t){if(this.props.disabled){return true}if(e==="system"||this.isSelected("system")){return!this.context.admin.isSystemAdmin()}if(e==="manager-all"||e==="librarian-all"){return!this.context.admin.isSitewideLibraryManager()}if(e==="manager"){if(this.isSelected("manager-all")){return!this.context.admin.isSitewideLibraryManager()}return!this.context.admin.isLibraryManager(t)}if(e==="librarian"){if(this.isSelected("librarian-all")){return!this.context.admin.isSitewideLibraryManager()}return!this.context.admin.isLibraryManager(t)}};t.prototype.handleRoleChange=function(e,t){if(e==="system"){if(this.isSelected(e)){this.setState(Object.assign({},this.state,{admin:new c.default([])}))}else{this.setState(Object.assign({},this.state,{admin:new c.default([{role:e}])}))}}else if(e==="manager-all"){if(this.isSelected(e)){this.setState(Object.assign({},this.state,{admin:new c.default([{role:"librarian-all"}])}))}else{this.setState(Object.assign({},this.state,{admin:new c.default([{role:"manager-all"}])}))}}else if(e==="librarian-all"){if(this.isSelected(e)){var r=this.state.admin.roles.filter((function(e){return e.role==="manager"}));this.setState(Object.assign({},this.state,{admin:new c.default(r)}))}else{var r=this.state.admin.roles.filter((function(e){return e.role==="manager"}));r.push({role:"librarian-all"});this.setState(Object.assign({},this.state,{admin:new c.default(r)}))}}else if(e==="manager"){if(this.isSelected(e,t)){if(this.isSelected("manager-all")){var r=[];for(var n=0,a=this.props.data.allLibraries||[];n<a.length;n++){var i=a[n];if(i.short_name!==t){r.push({role:"manager",library:i.short_name})}}r.push({role:"librarian-all"});this.setState(Object.assign({},this.state,{admin:new c.default(r)}))}else{var r=this.state.admin.roles.filter((function(e){return e.library!==t}));if(!this.isSelected("librarian-all")){r.push({role:"librarian",library:t})}this.setState(Object.assign({},this.state,{admin:new c.default(r)}))}}else{var r=this.state.admin.roles.filter((function(e){return e.library!==t}));r.push({role:"manager",library:t});this.setState(Object.assign({},this.state,{admin:new c.default(r)}))}}else if(e==="librarian"){if(this.isSelected(e,t)){if(this.isSelected("librarian-all")){if(this.isSelected("manager-all")){var r=[];for(var o=0,s=this.props.data.allLibraries||[];o<s.length;o++){var i=s[o];if(i.short_name!==t){r.push({role:"manager",library:i.short_name})}}this.setState(Object.assign({},this.state,{admin:new c.default(r)}))}else if(this.isSelected("librarian-all")){var r=this.state.admin.roles.filter((function(e){return e.role==="manager"&&e.library!==t}));for(var u=0,l=this.props.data.allLibraries||[];u<l.length;u++){var i=l[u];if(i.short_name!==t){r.push({role:"librarian",library:i.short_name})}}this.setState(Object.assign({},this.state,{admin:new c.default(r)}))}}else{var r=this.state.admin.roles.filter((function(e){return e.library!==t}));this.setState(Object.assign({},this.state,{admin:new c.default(r)}))}}else{var r=this.state.admin.roles;r.push({role:e,library:t});this.setState(Object.assign({},this.state,{admin:new c.default(r)}))}}};t.prototype.handleData=function(e){var t=this.state.admin.roles;if(this.context&&this.context.settingUp){t=[{role:"system"}]}e&&e.append("roles",JSON.stringify(t));return e};t.prototype.submit=function(e){return a(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:t=this.handleData(e);return[4,this.props.save(t)];case 1:r.sent();return[2]}}))}))};t.contextTypes={settingUp:s.bool.isRequired,admin:s.object.isRequired};return t}(o.Component);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(38);var o=r(13);var s=r(7);var u=r(66);var l=r(667);var c=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=u.default;t.ExtraFormSection=l.default;t.extraFormKey="neighborhood_mode";t.listDataKey="patron_auth_services";t.itemTypeName="patron authentication service";t.urlBase="/admin/web/config/patronAuth/";t.identifierKey="id";t.labelKey="protocol";t.links=t.renderLinks();return t}t.prototype.label=function(e){for(var t=0,r=this.props.data.protocols;t<r.length;t++){var n=r[t];if(n.name===e.protocol){return e.name+": "+n.label}}return e.protocol};t.prototype.renderLinks=function(){var e="/admin/web/troubleshooting/self-tests/patronAuthServices";var t=a.createElement("a",{href:e},"the troubleshooting page");return{info:a.createElement(a.Fragment,null,"Self-tests for the patron authentication services have been moved to"," ",t,"."),footer:a.createElement(a.Fragment,null,"Problems with your patron authentication services? Please visit"," ",t,".")}};return t}(i.default);t.PatronAuthServices=c;function f(e,t){var r=Object.assign({},e.editor.patronAuthServices&&e.editor.patronAuthServices.data||{});if(e.editor.libraries&&e.editor.libraries.data){r.allLibraries=e.editor.libraries.data.libraries}return{data:r,responseBody:e.editor.patronAuthServices&&e.editor.patronAuthServices.successMessage,fetchError:e.editor.patronAuthServices.fetchError,formError:e.editor.patronAuthServices.formError,isFetching:e.editor.patronAuthServices.isFetching||e.editor.patronAuthServices.isEditing}}function d(e,t){var r=new s.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchPatronAuthServices())},editItem:function(t){return e(r.editPatronAuthService(t))},deleteItem:function(t){return e(r.deletePatronAuthService(t))}}}var p=o.connect(f,d)(c);t.default=p},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(38);var i=r(13);var o=r(7);var s=r(1330);var u=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=s.default;t.listDataKey="settings";t.itemTypeName="sitewide setting";t.urlBase="/admin/web/config/sitewideSettings/";t.identifierKey="key";t.labelKey="key";return t}t.prototype.label=function(e){for(var t=0,r=this.props.data.all_settings;t<r.length;t++){var n=r[t];if(n.key===e.key){return n.label}}return e.key};return t}(a.default);t.SitewideSettings=u;function l(e,t){return{data:e.editor.sitewideSettings&&e.editor.sitewideSettings.data,responseBody:e.editor.sitewideSettings&&e.editor.sitewideSettings.successMessage,fetchError:e.editor.sitewideSettings.fetchError,formError:e.editor.sitewideSettings.formError,isFetching:e.editor.sitewideSettings.isFetching||e.editor.sitewideSettings.isEditing}}function c(e,t){var r=new o.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchSitewideSettings())},editItem:function(t){return e(r.editSitewideSetting(t))},deleteItem:function(t){return e(r.deleteSitewideSetting(t))}}}var f=i.connect(l,c)(u);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.__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 i=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 o=r(1);var s=r(19);var u=r(12);var l=r(72);var c=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.onChange=r.onChange.bind(r);r.submit=r.submit.bind(r);r.state={inputKey:r.availableSettings().length?r.availableSettings()[0].key:""};return r}t.prototype.render=function(){var e=this.state.inputKey;var t=this.availableSettings();var r;t.forEach((function(t){if(t.key===e){r=t}}));var n=!!(r&&r.options&&r.options.length);return o.createElement("div",null,t.length>0&&o.createElement(u.Form,{onSubmit:this.submit,className:"no-border edit-form",disableButton:this.props.disabled,content:o.createElement("fieldset",{key:"sitewide-setting"},o.createElement("legend",{className:"visuallyHidden"},"Enter or edit a value for the selected sitewide setting key"),o.createElement(s.default,{elementType:"select",disabled:this.props.disabled,readOnly:!!(this.props.item&&this.props.item.key),name:"key",ref:"key",label:"Key",value:this.props.item&&this.props.item.key,onChange:this.onChange},t.map((function(e){return o.createElement("option",{key:e.key,value:e.key,"aria-selected":false},e.label)}))),n?o.createElement(s.default,{elementType:"select",name:"value",ref:"value",label:"Value",value:this.props.item&&this.props.item.value},t.map((function(t){if(t.key===e){return t.options.map((function(e){return o.createElement("option",{key:e.key,value:e.key,"aria-selected":false},e.label)}))}}))):o.createElement(s.default,{elementType:"input",type:"text",disabled:this.props.disabled,required:r&&r.required,name:"value",ref:"value",label:"Value",value:this.props.item&&this.props.item.value}),t.map((function(t){if(t.key===e&&t.description){return o.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:t.description}})}})))}),this.availableSettings().length===0&&o.createElement("p",null,"All sitewide settings have already been created."))};t.prototype.onChange=function(e){this.setState({inputKey:e})};t.prototype.availableSettings=function(){var e=this.props.data&&this.props.data.all_settings||[];if(this.props.item){for(var t=0,r=e;t<r.length;t++){var n=r[t];if(n.key===this.props.item.key){return[n]}}}else{var a=[];for(var i=0,o=e;i<o.length;i++){var s=o[i];var u=false;for(var l=0,c=this.props.data&&this.props.data.settings||[];l<c.length;l++){var f=c[l];if(f.key===s.key){u=true}}if(!u){a.push(s)}}return a}return e};t.prototype.submit=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.props.save(e)];case 1:t.sent();return[2]}}))}))};t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(e.responseBody&&!e.fetchError){l.clearForm(this.refs)}};return t}(o.Component);t.default=c},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(38);var o=r(13);var s=r(7);var u=r(66);var l=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=u.default;t.listDataKey="metadata_services";t.itemTypeName="metadata service";t.urlBase="/admin/web/config/metadata/";t.identifierKey="id";t.labelKey="protocol";t.links=t.renderLinks();return t}t.prototype.renderLinks=function(){var e="/admin/web/troubleshooting/self-tests/metadataServices";var t=a.createElement("a",{href:e},"the troubleshooting page");return{info:a.createElement(a.Fragment,null,"Self-tests for the metadata services have been moved to ",t,"."),footer:a.createElement(a.Fragment,null,"Problems with your metadata services? Please visit ",t,".")}};t.prototype.label=function(e){var t=e.name?e.name+": "+e.protocol:e.protocol;return t};return t}(i.default);t.MetadataServices=l;function c(e,t){var r=Object.assign({},e.editor.metadataServices&&e.editor.metadataServices.data||{});if(e.editor.libraries&&e.editor.libraries.data){r.allLibraries=e.editor.libraries.data.libraries}return{data:r,responseBody:e.editor.metadataServices&&e.editor.metadataServices.successMessage,fetchError:e.editor.metadataServices.fetchError,formError:e.editor.metadataServices.formError,isFetching:e.editor.metadataServices.isFetching||e.editor.metadataServices.isEditing}}function f(e,t){var r=new s.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchMetadataServices())},editItem:function(t){return e(r.editMetadataService(t))},deleteItem:function(t){return e(r.deleteMetadataService(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(38);var i=r(13);var o=r(7);var s=r(66);var u=r(667);var l=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=s.default;t.ExtraFormSection=u.default;t.extraFormKey="location_source";t.listDataKey="analytics_services";t.itemTypeName="analytics service";t.urlBase="/admin/web/config/analytics/";t.identifierKey="id";t.labelKey="protocol";return t}t.prototype.label=function(e){for(var t=0,r=this.props.data.protocols;t<r.length;t++){var n=r[t];if(n.name===e.protocol){return n.label}}return e.protocol};return t}(a.default);t.AnalyticsServices=l;function c(e,t){var r=Object.assign({},e.editor.analyticsServices&&e.editor.analyticsServices.data||{});if(e.editor.libraries&&e.editor.libraries.data){r.allLibraries=e.editor.libraries.data.libraries}return{data:r,responseBody:e.editor.analyticsServices&&e.editor.analyticsServices.successMessage,fetchError:e.editor.analyticsServices.fetchError,formError:e.editor.analyticsServices.formError,isFetching:e.editor.analyticsServices.isFetching||e.editor.analyticsServices.isEditing}}function f(e,t){var r=new o.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchAnalyticsServices())},editItem:function(t){return e(r.editAnalyticsService(t))},deleteItem:function(t){return e(r.deleteAnalyticsService(t))}}}var d=i.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(38);var i=r(13);var o=r(7);var s=r(66);var u=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=s.default;t.listDataKey="cdn_services";t.itemTypeName="CDN service";t.urlBase="/admin/web/config/cdn/";t.identifierKey="id";t.labelKey="protocol";return t}t.prototype.label=function(e){return e.settings&&e.settings.url};return t}(a.default);t.CDNServices=u;function l(e,t){var r=Object.assign({},e.editor.cdnServices&&e.editor.cdnServices.data||{});return{data:r,responseBody:e.editor.cdnServices&&e.editor.cdnServices.successMessage,fetchError:e.editor.cdnServices.fetchError,formError:e.editor.cdnServices.formError,isFetching:e.editor.cdnServices.isFetching||e.editor.cdnServices.isEditing}}function c(e,t){var r=new o.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchCDNServices())},editItem:function(t){return e(r.editCDNService(t))},deleteItem:function(t){return e(r.deleteCDNService(t))}}}var f=i.connect(l,c)(u);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)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(38);var o=r(13);var s=r(7);var u=r(66);var l=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=u.default;t.listDataKey="search_services";t.itemTypeName="search service";t.urlBase="/admin/web/config/search/";t.identifierKey="id";t.labelKey="protocol";t.limitOne=true;t.links=t.renderLinks();return t}t.prototype.renderLinks=function(){var e="/admin/web/troubleshooting/self-tests/searchServices";var t=a.createElement("a",{href:e},"the troubleshooting page");return{info:a.createElement(a.Fragment,null,"Self-tests for the search service have been moved to ",t,"."),footer:a.createElement(a.Fragment,null,"Problems with your search service? Please visit ",t,".")}};return t}(i.default);t.SearchServices=l;function c(e,t){var r=Object.assign({},e.editor.searchServices&&e.editor.searchServices.data||{});return{data:r,responseBody:e.editor.searchServices&&e.editor.searchServices.successMessage,fetchError:e.editor.searchServices.fetchError,formError:e.editor.searchServices.formError,isFetching:e.editor.searchServices.isFetching||e.editor.searchServices.isEditing}}function f(e,t){var r=new s.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchSearchServices())},editItem:function(t){return e(r.editSearchService(t))},deleteItem:function(t){return e(r.deleteSearchService(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(38);var i=r(13);var o=r(7);var s=r(66);var u=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=s.default;t.listDataKey="storage_services";t.itemTypeName="storage service";t.urlBase="/admin/web/config/storage/";t.identifierKey="id";t.labelKey="protocol";return t}t.prototype.label=function(e){for(var t=0,r=this.props.data.protocols;t<r.length;t++){var n=r[t];if(n.name===e.protocol){return e.name+": "+n.label}}return e.protocol};return t}(a.default);t.StorageServices=u;function l(e,t){var r=Object.assign({},e.editor.storageServices&&e.editor.storageServices.data||{});return{data:r,responseBody:e.editor.storageServices&&e.editor.storageServices.successMessage,fetchError:e.editor.storageServices.fetchError,formError:e.editor.storageServices.formError,isFetching:e.editor.storageServices.isFetching||e.editor.storageServices.isEditing}}function c(e,t){var r=new o.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchStorageServices())},editItem:function(t){return e(r.editStorageService(t))},deleteItem:function(t){return e(r.deleteStorageService(t))}}}var f=i.connect(l,c)(u);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)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(38);var i=r(13);var o=r(7);var s=r(66);var u=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=s.default;t.listDataKey="catalog_services";t.itemTypeName="catalog service";t.urlBase="/admin/web/config/catalogServices/";t.identifierKey="id";t.labelKey="protocol";return t}t.prototype.label=function(e){for(var t=0,r=this.props.data.protocols;t<r.length;t++){var n=r[t];if(n.name===e.protocol){return e.name+": "+n.label}}return e.protocol};return t}(a.default);t.CatalogServices=u;function l(e,t){var r=Object.assign({},e.editor.catalogServices&&e.editor.catalogServices.data||{});if(e.editor.libraries&&e.editor.libraries.data){r.allLibraries=e.editor.libraries.data.libraries}return{data:r,responseBody:e.editor.catalogServices&&e.editor.catalogServices.successMessage,fetchError:e.editor.catalogServices.fetchError,formError:e.editor.catalogServices.formError,isFetching:e.editor.catalogServices.isFetching||e.editor.catalogServices.isEditing}}function c(e,t){var r=new o.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchCatalogServices())},editItem:function(t){return e(r.editCatalogService(t))},deleteItem:function(t){return e(r.deleteCatalogService(t))}}}var f=i.connect(l,c)(u);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)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(38);var i=r(13);var o=r(0);var s=r(7);var u=r(665);var l=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(u.default);var c=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=l;t.listDataKey="discovery_services";t.itemTypeName="discovery service";t.urlBase="/admin/web/config/discovery/";t.identifierKey="id";t.labelKey="name";return t}t.prototype.getChildContext=function(){var e=this;return{registerLibrary:function(t,r){if(e.itemToEdit()){var n=new window.FormData;n.append("library_short_name",t.short_name);n.append("registration_stage",r);n.append("integration_id",e.itemToEdit().id);e.props.registerLibrary(n).then((function(){if(e.props.fetchLibraryRegistrations){e.props.fetchLibraryRegistrations()}}))}}}};t.prototype.UNSAFE_componentWillMount=function(){e.prototype.UNSAFE_componentWillMount.call(this);if(this.props.fetchLibraryRegistrations){this.props.fetchLibraryRegistrations()}};t.childContextTypes={registerLibrary:o.func};return t}(a.GenericEditableConfigList);t.DiscoveryServices=c;function f(e,t){var r=Object.assign({},e.editor.discoveryServices&&e.editor.discoveryServices.data||{});if(e.editor.libraries&&e.editor.libraries.data){r.allLibraries=e.editor.libraries.data.libraries}if(e.editor.discoveryServiceLibraryRegistrations&&e.editor.discoveryServiceLibraryRegistrations.data){r.libraryRegistrations=e.editor.discoveryServiceLibraryRegistrations.data.library_registrations}return{data:r,responseBody:e.editor.discoveryServices&&e.editor.discoveryServices.successMessage,fetchError:e.editor.discoveryServices.fetchError,formError:e.editor.discoveryServices.formError||e.editor.registerLibraryWithDiscoveryService&&e.editor.registerLibraryWithDiscoveryService.fetchError,isFetching:e.editor.discoveryServices.isFetching||e.editor.discoveryServices.isEditing||e.editor.registerLibraryWithDiscoveryService&&e.editor.registerLibraryWithDiscoveryService.isFetching,isFetchingLibraryRegistrations:e.editor.discoveryServiceLibraryRegistrations&&e.editor.discoveryServiceLibraryRegistrations.isFetching}}function d(e,t){var r=new s.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchDiscoveryServices())},editItem:function(t){return e(r.editDiscoveryService(t))},deleteItem:function(t){return e(r.deleteDiscoveryService(t))},registerLibrary:function(t){return e(r.registerLibraryWithDiscoveryService(t))},fetchLibraryRegistrations:function(){return e(r.fetchDiscoveryServiceLibraryRegistrations())}}}var p=i.connect(f,d)(c);t.default=p},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(38);var i=r(13);var o=r(7);var s=r(66);var u=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=s.default;t.listDataKey="logging_services";t.itemTypeName="logging service";t.urlBase="/admin/web/config/logging/";t.identifierKey="id";t.labelKey="protocol";return t}return t}(a.default);t.LoggingServices=u;function l(e,t){return{data:e.editor.loggingServices&&e.editor.loggingServices.data,responseBody:e.editor.loggingServices&&e.editor.loggingServices.successMessage,fetchError:e.editor.loggingServices.fetchError,formError:e.editor.loggingServices.formError,isFetching:e.editor.loggingServices.isFetching||e.editor.loggingServices.isEditing}}function c(e,t){var r=new o.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchLoggingServices())},editItem:function(t){return e(r.editLoggingService(t))},deleteItem:function(t){return e(r.deleteLoggingService(t))}}}var f=i.connect(l,c)(u);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)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(0);var o=r(1340);var s=r(75);var u=r(76);var l=r(136);var c=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return a.createElement("div",{className:"account"},a.createElement(s.default,null),a.createElement(o.default,{store:this.context.editorStore,csrfToken:this.context.csrfToken}),a.createElement(u.default,null))};t.prototype.UNSAFE_componentWillMount=function(){document.title=l.default("Account")};t.contextTypes={editorStore:i.object.isRequired,csrfToken:i.string.isRequired};return t}(a.Component);t.default=c},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(13);var o=r(7);var s=r(70);var u=r(31);var l=r(19);var c=r(12);var f=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.passwordRef=a.createRef();r.confirmRef=a.createRef();r.state={success:false,error:null};r.save=r.save.bind(r);return r}t.prototype.render=function(){var e=a.createElement("fieldset",{key:"change-password"},a.createElement("legend",{className:"visuallyHidden"},"Change admin's password"),a.createElement(l.default,{elementType:"input",type:"password",disabled:this.props.isFetching,name:"password",label:"New Password",ref:this.passwordRef,required:true}),a.createElement(l.default,{elementType:"input",type:"password",disabled:this.props.isFetching,name:"confirm_password",label:"Confirm New Password",ref:this.confirmRef,required:true}));return a.createElement("main",{className:"change-password-form"},a.createElement("h2",null,"Change Password"),a.createElement(c.Form,{onSubmit:this.save,content:e,disableButton:this.props.isFetching,buttonClass:"left-align",className:"border change-password-form",successText:this.state.success&&"Password changed successfully",errorText:this.props.fetchError&&a.createElement(u.default,{error:this.props.fetchError})||this.state.error,loadingText:this.props.isFetching&&a.createElement(s.default,null)}))};t.prototype.save=function(e){var t=this;if(!(e.get("password")&&e.get("confirm_password"))){this.setState({success:false,error:"Fields cannot be blank."})}else if(e.get("password")!==e.get("confirm_password")){this.setState({success:false,error:"Passwords do not match."})}else{this.props.changePassword(e).then((function(){t.setState({success:true,error:null})}))}};return t}(a.Component);t.ChangePasswordForm=f;function d(e,t){return{fetchError:e.editor.changePassword&&e.editor.changePassword.fetchError,isFetching:e.editor.changePassword&&e.editor.changePassword.isFetching}}function p(e,t){var r=new o.default(null,t.csrfToken);return{changePassword:function(t){return e(r.changePassword(t))}}}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(0);var o=r(666);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.default,{store:this.context.editorStore,csrfToken:this.context.csrfToken,settingUp:true,editOrCreate:"create"})};t.contextTypes={editorStore:i.object.isRequired,csrfToken:i.string.isRequired};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(75);var s=r(76);var u=r(1343);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(){return a.createElement("div",{className:"manage-patrons-page config"},a.createElement(o.default,null),a.createElement("main",{className:"manage-patrons"},a.createElement("h2",null,"Patron Manager"),a.createElement(u.default,{tab:this.props.params.tab,store:this.context.editorStore,csrfToken:this.context.csrfToken,library:this.props.params.library})),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.ManagePatrons=l;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)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(0);var o=r(111);var s=r(1344);var u=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.tabs=function(){var e=this.props.library&&this.context.admin.isLibraryManager(this.props.library);var t={};if(e){t["resetAdobeId"]=a.createElement(s.default,{store:this.props.store,csrfToken:this.props.csrfToken,library:this.props.library})}return t};t.prototype.handleSelect=function(e){var t=e.target.dataset.tabkey;if(this.context.router){this.context.router.push("/admin/web/patrons/"+this.props.library+"/"+t)}};t.prototype.tabClass=function(e){return this.currentTab()===e?"disabled":null};t.prototype.tabDisplayName=function(t){if(t==="resetAdobeId"){return"Reset Adobe ID"}else{return e.prototype.tabDisplayName.call(this,t)}};t.prototype.defaultTab=function(){return"resetAdobeId"};t.contextTypes={router:i.object.isRequired,pathFor:i.func.isRequired,admin:i.object.isRequired};return t}(o.TabContainer);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)}}();var a=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 i=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 o=r(1);var s=r(13);var u=r(7);var l=r(116);var c=r(1345);var f=r(19);var d=r(12);var p=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={checked:false};r.resetAdobeId=r.resetAdobeId.bind(r);r.toggleCheckbox=r.toggleCheckbox.bind(r);return r}t.prototype.render=function(){var e=this.props,t=e.patron,r=e.fetchError,n=e.responseBody;var a=!!(t&&t.authorization_identifier);return o.createElement("div",{className:"patron-actions"},o.createElement("h3",null,"Reset Adobe ID"),r&&a&&o.createElement(l.Alert,{bsStyle:"danger"},"Error: failed to reset Adobe ID for patron"," ",t.authorization_identifier),o.createElement("p",null,'You should reset a patron\'s Adobe ID only if the patron is receiving an error message similar to "Too many devices have been registered".'),o.createElement("p",null,"Instruct the patron to sign out on their device before you reset their Adobe ID."),o.createElement(c.default,{store:this.props.store,csrfToken:this.props.csrfToken,library:this.props.library}),t?o.createElement("div",{className:"reset-adobe-id"},o.createElement("p",{className:"patron-warning"},o.createElement("b",null,"IMPORTANT: Patron"," ",t&&(t.username||t.personal_name||t.authorization_identifier)," ","will lose access to any existing loans. Loans will still appear in the patron's book list until they expire, but the patron will be unable to read or return them.")),n&&o.createElement(l.Alert,{bsStyle:"success"},n,o.createElement("br",null),"Please instruct the patron to sign back into their account."),!n&&o.createElement(f.default,{type:"checkbox",name:"resetAdobeId",checked:this.state.checked,label:"Patron has been informed about this change",onChange:this.toggleCheckbox}),!n&&o.createElement(d.Button,{className:"danger",callback:this.resetAdobeId,disabled:!this.state.checked,content:"Reset Adobe ID"})):o.createElement("p",null,o.createElement("b",null,"Search for a patron to begin.")))};t.prototype.resetAdobeId=function(e){return a(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:e.preventDefault();t=new window.FormData;t.append("identifier",this.props.patron.authorization_identifier);return[4,this.props.resetAdobeId(t,this.props.library)];case 1:r.sent();this.setState({checked:false});return[2]}}))}))};t.prototype.toggleCheckbox=function(){this.setState({checked:!this.state.checked})};return t}(o.Component);t.ResetAdobeId=p;function h(e,t){var r=e.editor.patronManager&&e.editor.patronManager;return{fetchError:r&&r.fetchError,responseBody:r&&r.responseBody,patron:r&&r.data}}function v(e,t){var r=new u.default(null,t.csrfToken);return{resetAdobeId:function(t,n){return e(r.resetAdobeId(t,n))}}}var m=s.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)}}();var a=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 i=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 o=r(1);var s=r(13);var u=r(7);var l=r(12);var c=r(19);var f=r(31);var d=r(1346);var p=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.identifierRef=o.createRef();r.submit=r.submit.bind(r);return r}t.prototype.componentWillUnmount=function(){this.props.clearPatronData()};t.prototype.render=function(){var e=this.props,t=e.patron,r=e.fetchError;var n=!!t;return o.createElement("div",{className:"manage-patrons-form"},o.createElement(l.Form,{onSubmit:this.submit,className:"no-border edit-form",buttonClass:"top-align",content:o.createElement(c.default,{elementType:"input",ref:this.identifierRef,name:"identifier",label:"Identifier",className:"form-control",placeholder:"Enter the patron's identifier",required:true,error:r}),errorText:r&&!n&&o.createElement(f.default,{error:r}),successText:!r&&n&&"Patron found: "+t.authorization_identifier}),!r&&n&&o.createElement(d.default,{patron:t}))};t.prototype.submit=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.props.patronLookup(e,this.props.library)];case 1:t.sent();return[2]}}))}))};return t}(o.Component);t.ManagePatronsForm=p;function h(e,t){var r=e.editor.patronManager&&e.editor.patronManager;return{patron:r&&r.data,fetchError:r&&r.fetchError}}function v(e,t){var r=new u.default(null,t.csrfToken);return{patronLookup:function(t,n){return e(r.patronLookup(t,n))},clearPatronData:function(){return e(r.clearPatronData())}}}t.mapDispatchToProps=v;var m=s.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=function(e){n(t,e);function t(t){return e.call(this,t)||this}t.prototype.render=function(){var e=this.props.patron;return a.createElement("section",{className:"patron-info"},a.createElement("ul",{className:"patron-data-list"},e.username&&a.createElement("li",null,a.createElement("label",null,"Username:"),a.createElement("p",null,e.username)),e.personal_name&&a.createElement("li",null,a.createElement("label",null,"Personal Name:"),a.createElement("p",null,e.personal_name)),e.email_address&&a.createElement("li",null,a.createElement("label",null,"Email Address:"),a.createElement("p",null,e.email_address)),a.createElement("li",null,a.createElement("label",null,"Identifier:"),a.createElement("p",null,e.authorization_identifier))))};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(0);var o=r(75);var s=r(76);var u=r(1348);var l=r(136);var c=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.CATEGORIES={diagnostics:["coverage_provider","script","monitor","other"],"self-tests":["collections","patronAuthServices","searchServices","metadataServices"]};r.state={tab:"diagnostics",subtab:"coverage_provider"};r.goToTab=r.goToTab.bind(r);return r}t.prototype.UNSAFE_componentWillMount=function(){document.title=l.default("Troubleshooting")};t.prototype.render=function(){var e=this.props.params.tab||this.state.tab;var t=this.props.params.subtab||this.state.subtab;t=this.CATEGORIES[e].indexOf(t)>=0?t:this.CATEGORIES[e][0];return a.createElement("div",{className:"troubleshooting-page"},a.createElement(o.default,null),a.createElement("div",{className:"body"},a.createElement("h2",null,"Troubleshooting"),a.createElement(u.default,{store:this.context.editorStore,csrfToken:this.context.csrfToken,tab:e,goToTab:this.goToTab,subtab:t})),a.createElement(s.default,null))};t.prototype.goToTab=function(e){this.setState({tab:e,subtab:this.props.params.subtab})};t.contextTypes={editorStore:i.object.isRequired,csrfToken:i.string.isRequired};return t}(a.Component);t.default=c},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(111);var s=r(1349);var u=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.tabs=function(){return{diagnostics:a.createElement(s.default,{subtab:this.props.tab==="diagnostics"?this.props.subtab:"coverage_provider",type:"diagnostics"}),"self-tests":a.createElement(s.default,{subtab:this.props.tab==="self-tests"?this.props.subtab:"collections",type:"self-tests"})}};t.prototype.UNSAFE_componentWillReceiveProps=function(e){e.tab!==this.props.tab&&this.route(e.tab,e.subtab)};t.prototype.handleSelect=function(e){var t=e.currentTarget.dataset.tabkey;var r=this.props.subtab;this.props.goToTab(t);this.route(t,r)};t.prototype.route=function(e,t){if(this.context.router){this.context.router.push("/admin/web/troubleshooting/"+e+"/"+t)}};t.contextTypes={router:i.object.isRequired,pathFor:i.func.isRequired};return t}(o.TabContainer);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(1350);var s=r(1354);var u=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.CATEGORIES={diagnostics:["coverage_provider",o.default,"service-types"],"self-tests":["collections",s.default,"self-test-types"]};var n=r.CATEGORIES[r.props.type][0];r.state={tab:r.props.subtab||n};r.goToTab=r.goToTab.bind(r);return r}t.prototype.render=function(){var e=[this.CATEGORIES[this.props.type][1],this.CATEGORIES[this.props.type][2]],t=e[0],r=e[1];return a.createElement("div",{className:this.props.type+"-page"},a.createElement(t,{class:r,store:this.context.editorStore,csrfToken:this.context.csrfToken,tab:this.props.subtab||this.state.tab,goToTab:this.goToTab}))};t.prototype.goToTab=function(e){this.setState({tab:e})};t.contextTypes={editorStore:i.object.isRequired,csrfToken:i.string.isRequired};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(13);var o=r(7);var s=r(1351);var u=r(70);var l=r(31);var c=r(111);var f=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.DISPLAY_NAMES={coverage_provider:"Coverage Providers",monitor:"Monitors",script:"Scripts",other:"Other"};return t}t.prototype.UNSAFE_componentWillMount=function(){this.props.fetchDiagnostics()};t.prototype.handleSelect=function(e){var t=e.currentTarget.dataset.tabkey;this.props.goToTab(t);if(this.context.router){this.context.router.push("/admin/web/troubleshooting/diagnostics/"+t)}};t.prototype.tabDisplayName=function(t){if(this.DISPLAY_NAMES[t]){return this.DISPLAY_NAMES[t]}else{return e.prototype.tabDisplayName.call(this,t)}};t.prototype.tabs=function(){var e=this;var t={};var r=["coverage_provider","monitor","script","other"];r.forEach((function(r){var n=null;if(e.props.fetchError){n=a.createElement(l.default,{error:e.props.fetchError})}else if(!e.props.isLoaded){n=a.createElement(u.default,null)}else if(e.props.diagnostics){n=a.createElement(s.default,{type:r,services:e.props.diagnostics[r]})}t[r]=n}));return t};return t}(c.TabContainer);t.DiagnosticsTabContainer=f;function d(e,t){return{diagnostics:e.editor.diagnostics&&e.editor.diagnostics.data,isLoaded:e.editor.diagnostics.isLoaded,fetchError:e.editor.diagnostics.fetchError}}function p(e){var t=new o.default;return{fetchDiagnostics:function(){return e(t.fetchDiagnostics())}}}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(1352);var o=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;var n=r.props.services?Object.keys(r.props.services)[0]:"";r.state={tab:n};r.goToTab=r.goToTab.bind(r);return r}t.prototype.render=function(){var e=this.props.services?a.createElement(i.default,{content:this.props.services,tab:this.state.tab,goToTab:this.goToTab}):a.createElement("span",null,"There are currently no ",this.props.type.split("_").join(" ")," services.");return a.createElement("div",{className:"config services"},e)};t.prototype.goToTab=function(e){this.setState({tab:e})};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(111);var o=r(12);var s=r(1353);var u=r(622);var l=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.handleSelect=function(e){var t=e.currentTarget.dataset.tabkey;this.props.goToTab(t)};t.prototype.tabs=function(){var e=this;var t={};var r=Object.keys(this.props.content);r.forEach((function(r){t[r]=e.renderCollections(e.props.content[r])}));return t};t.prototype.tabDisplayName=function(t){var r=[].concat.apply([],Object.values(this.props.content[t]));var n=r.some((function(e){return e.exception}));var i=n?a.createElement("span",{className:"badge danger"},"!"):a.createElement(u.default,{trigger:a.createElement("span",{className:"badge"},r.length),text:"Total number of timestamps for this service"});return a.createElement("section",null,a.createElement("span",{className:"service-name"},e.prototype.tabDisplayName.call(this,t)),i)};t.prototype.renderCollections=function(e){var t=this;return Object.keys(e).map((function(r){var n=e[r];return a.createElement(o.Panel,{id:"diagnostics-"+n[0].id,key:r,headerText:r,openByDefault:n.some((function(e){return e.exception})),content:t.renderTimestamps(n)})}))};t.prototype.renderTimestamps=function(e){var t=e.map((function(e){return a.createElement("li",{className:"timestamp-holder",key:e.id},a.createElement(s.default,{timestamp:e}))}));return a.createElement("ul",{className:"timestamps"},t)};return t}(i.TabContainer);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)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(12);var o=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e=this.props.timestamp;var t=a.createElement("section",{className:"well exception"},a.createElement("pre",null,e.exception));var r=a.createElement("section",{className:"well"},a.createElement("pre",null,e.achievements));var n=a.createElement("ul",null,a.createElement("li",null,"Duration: ",e.duration," seconds"),e.achievements&&a.createElement("li",null,r),e.exception&&a.createElement("li",null,t));return a.createElement(i.Panel,{id:"timestamp-"+e.id,headerText:e.start,style:e.exception?"danger":"success",content:n,collapsible:false})};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)}}();var a=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 i=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 o=r(1);var s=r(13);var u=r(7);var l=r(70);var c=r(31);var f=r(111);var d=r(1355);var p=r(0);var h=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.DISPLAY_NAMES={collections:"Collections",patronAuthServices:"Patron Authentication",searchServices:"Search Service Configuration",metadataServices:"Metadata Services"};return t}t.prototype.UNSAFE_componentWillMount=function(){this.props.fetchItems()};t.prototype.handleSelect=function(e){return a(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:t=e.currentTarget.dataset.tabkey;return[4,this.props.goToTab(t)];case 1:r.sent();if(this.context.router){this.context.router.push("/admin/web/troubleshooting/self-tests/"+t)}return[2]}}))}))};t.prototype.tabDisplayName=function(t){if(this.DISPLAY_NAMES[t]){return this.DISPLAY_NAMES[t]}else{return e.prototype.tabDisplayName.call(this,t)}};t.prototype.getNames=function(e){var t=e.split(/(?=[A-Z])/).map((function(e){return e.toLowerCase()})).join("_");var r=t.slice(0,-1);var n=e.replace("Services","");return[t,r,n]};t.prototype.tabs=function(){var e=this;var t={};var r=Object.keys(this.DISPLAY_NAMES);r.forEach((function(r){var n=e.getNames(r),a=n[0],i=n[1],s=n[2];var u=null;if(e.props.fetchError){u=o.createElement(c.default,{error:e.props.fetchError})}else if(e.props.items&&e.props.items[a]){u=o.createElement(d.default,{store:e.props.store,linkName:s,type:i,csrfToken:e.props.csrfToken,items:e.props.items[a]})}else if(!e.props.isLoaded){u=o.createElement(l.default,null)}t[r]=u}));return t};t.contextTypes={router:p.object.isRequired,pathFor:p.func.isRequired};return t}(f.TabContainer);t.SelfTestsTabContainer=h;function v(e,t){var r=t.tab;return{items:e.editor[r]&&e.editor[r].data,fetchError:e.editor[r]&&e.editor[r].fetchError,isLoaded:e.editor[r]&&e.editor[r].isLoaded}}function m(e,t){var r=new u.default;var n=["Collections","PatronAuthServices","SearchServices","MetadataServices"];return{fetchItems:function(){return n.forEach((function(t){return e(r["fetch"+t]())}))}}}var y=s.connect(v,m)(h);t.default=y},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(1356);var s=r(12);var u=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.handleUnnamed=function(){var e=this;var t=[];this.props.items.forEach((function(r){return t.push(r.name?r:a(a({},r),{name:"Unnamed "+e.props.type}))}));return t};t.prototype.render=function(){var e=this;var t=this.props.items&&this.handleUnnamed();var r=t&&t.length===1;var n=function(e){return e.self_test_results&&e.self_test_results.results||[]};var a={};t&&t.map((function(e){return a[e.name]?a[e.name].concat(n(e)):a[e.name]=n(e)}));var u=function(e){return a[e.name].some((function(e){return e.collection}))};var l=function(e){return a[e.name].length?a[e.name].every((function(e){return e.success}))?"success":"danger":"default"};var c=function(t){return i.createElement("a",{key:t.id,href:"/admin/web/config/"+e.props.linkName+"/edit/"+t.id},t.name," configuration settings")};var f=function(t){return i.createElement(o.default,{key:t.name,store:e.props.store,type:e.props.type,item:t,csrfToken:e.props.csrfToken,sortByCollection:u(t)})};return i.createElement("div",{className:"self-tests-category has-additional-content"},i.createElement("ul",null,t&&t.map((function(e){return i.createElement("li",{key:e.name},i.createElement(s.Panel,{id:e.name.replace(/\s/g,"")+"-"+e.id,style:l(e),openByDefault:r,headerText:e.name,content:[c(e),f(e)]}))}))))};return t}(i.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)}}();var a=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 i=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 o=r(1);var s=r(13);var u=r(7);var l=r(31);var c=r(1357);var f=r(34);var d=r(12);var p=r(99);var h=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={runTests:false,error:null,mostRecent:r.props.item};r.runSelfTests=r.runSelfTests.bind(r);r.displayByCollection=r.displayByCollection.bind(r);return r}t.prototype.componentDidMount=function(){this.props.getSelfTests()};t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=e.item&&e.item.self_test_results&&e.item.self_test_results.start;var r=this.props.item&&this.props.item.self_test_results&&this.props.item.self_test_results.start;if(!r||t>r){this.setState({mostRecent:e.item})}};t.prototype.render=function(){var e=this;var t=this.state.mostRecent;var r=t.self_test_results&&t.self_test_results.exception;var n=r&&t.self_test_results.disabled;var a=r&&r.includes("no attribute 'prior_test_results'");var i=[];var s;var u;if(a){u="There are no self test results yet."}else{u=t.self_test_results&&t.self_test_results.start?this.formatDate(t):"No self test results found."}if(t.self_test_results&&!r){i=t.self_test_results.results||[];var c=function(e){return!e.success};var f=i.some(c);s=f?o.createElement(p.XIcon,{className:"failure"}):o.createElement(p.CheckSoloIcon,{className:"success"})}var h=!!(this.props.isFetching&&this.state.runTests);var v=r&&!a?r:"";var m=o.createElement(d.Button,{callback:function(t){return e.runSelfTests(t)},disabled:n||this.props.isFetching,content:"Run tests"});var y=i.length?i.map((function(t,r){return e.makeResult(t,r,h)})):null;var g=this.props.sortByCollection&&this.displayByCollection(i,h);return o.createElement("div",{className:"integration-selftests"},o.createElement("div",null,i.length?s:null,o.createElement("p",{className:"description"},v?v:u)),m,o.createElement("div",{className:"results"},h&&o.createElement("span",null,"Running new self tests"),this.state.error&&o.createElement(l.default,{error:this.state.error}),y&&o.createElement("ul",null,o.createElement("h4",null,"Self Test Results"),g||y)))};t.prototype.formatDate=function(e){var t=new Date(e.self_test_results.start);var r=t.toDateString();var n=function(e){return("0"+e).slice(-2)};var a=[n(t.getHours()),n(t.getMinutes()),n(t.getSeconds())],i=a[0],o=a[1],s=a[2];var u=i+":"+o+":"+s;var l=e.self_test_results.duration&&e.self_test_results.duration.toFixed(2);return"Tests last ran on "+r+" "+u+" and lasted "+l+"s."};t.prototype.makeResult=function(e,t,r){return o.createElement(c.default,{key:e.collection+"-"+t,result:e,isFetching:r})};t.prototype.displayByCollection=function(e,t){var r=this;var n={};var a=function(e){return e==="undefined"};e.forEach((function(t){return n[t.collection]=e.filter((function(e){return e.collection===t.collection}))}));var i=function(e){return e.map((function(e,n){return r.makeResult(e,n,t)}))};var s=function(e){return e.every((function(e){return e.success}))?"success":"danger"};var u=Object.keys(n).map((function(e,t){var r=n[e];return o.createElement(d.Panel,{id:"collection-"+t,key:e,headerText:a(e)?"Initial Setup":e,openByDefault:a(e),content:i(r),style:s(r)})}));return u};t.prototype.runSelfTests=function(e){return a(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:e.preventDefault();this.setState({runTests:true,error:null});r.label=1;case 1:r.trys.push([1,3,,4]);return[4,this.props.runSelfTests()];case 2:r.sent();this.props.getSelfTests();this.setState({runTests:false,error:null});return[3,4];case 3:t=r.sent();this.setState({runTests:false,error:t});return[3,4];case 4:return[2]}}))}))};t.defaultProps={sortByCollection:false};return t}(o.Component);t.SelfTests=h;function v(e,t){var r=e.editor.selfTests;var n=t.item;if(r&&r.responseBody&&r.responseBody.self_test_results){if(t.type.includes(r.responseBody.self_test_results.goal)){var a=n.self_test_results&&n.self_test_results.start;var i=r.responseBody.self_test_results.self_test_results&&r.responseBody.self_test_results.self_test_results.start;if((!a||i>a)&&r.responseBody.self_test_results.id===n.id){n=r.responseBody.self_test_results}}}return{isFetching:r.isFetching,item:n}}function m(e,t){var r=new f.default;var n=new u.default(r,t.csrfToken);var a=t.item.id;var i="/admin/"+t.type.replace(/ /g,"_")+"_self_tests/"+a;return{getSelfTests:function(){return e(n.getSelfTests(i))},runSelfTests:function(){return e(n.runSelfTests(i))}}}var y=s.connect(v,m)(h);t.default=y},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(12);var o=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.renderResult=r.renderResult.bind(r);r.renderCollapsible=r.renderCollapsible.bind(r);return r}t.prototype.render=function(){var e=this.props.result.success?"success":"failure";return a.createElement("li",{className:this.props.isFetching?"loading-self-test":e,key:this.props.result.name},a.createElement("h4",null,this.props.result.name),this.props.result.success&&this.props.result.result&&!this.props.result.result.length?a.createElement("span",{className:"warning"},"The test ran successfully, but no results were found."):null,this.props.result.result&&this.props.result.result.length?this.renderResult(this.props.result.result,e):null,a.createElement("p",{className:"success-description"},"success: ",""+this.props.result.success),!this.props.result.success&&this.props.result.exception&&a.createElement("p",{className:"exception-description"},"exception: ",this.props.result.exception.message))};t.prototype.renderResult=function(e,t){var r=Array.isArray(e);var n=r?a.createElement("ol",null,e.map((function(e,t){return a.createElement("li",{key:t},e)}))):e;var i=a.createElement("pre",{className:"result-description"},n);var o=r||e.split("\n").length>1;return o&&this.renderCollapsible(e,i,t,r)||i};t.prototype.renderCollapsible=function(e,t,r,n){var o=n?"Results ("+e.length+")":"Results";return a.createElement(i.Panel,{id:o.replace(/\s/g,""),headerText:o,content:t,style:r})};return t}(a.Component);t.default=o},function(e,t,r){"use strict";var n=r(1359);var a=r(1360);var i=r(1361);var o=a.request;var s=a.cancel;var u;var l;var c={serious:"#d93251",minor:"#d24700",text:"black"};var f={serious:"#ffb3b3",minor:"#ffd500",text:"white"};var d=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?f:c;var p="font-weight:bold;font-family:Courier;";var h="color:"+d.serious+";font-weight:bold;";var v="color:"+d.serious+";font-weight:normal;";var m="color:"+d.minor+";font-weight:bold;";var y="color:"+d.minor+";font-weight:normal;";var g="font-color:"+d.text+";font-weight:normal;";var b;var A;var _;var w;var E={};var x=[document.documentElement];var k={};function M(e,t,r){var n;return function(){var a=this;var i=[];for(var o=0;o<arguments.length;o++){i[o]=arguments[o]}var s=function(){n=null;if(!r)e.apply(a,i)};var u=r&&!n;clearTimeout(n);n=setTimeout(s,t);if(u)e.apply(this,i)}}function S(e){var t=[e];while(e&&e.nodeName.toLowerCase()!=="html"){t.push(e.parentNode);e=e.parentNode}if(!e||!e.parentNode){return null}return t.reverse()}function O(e){var t;var r;if(e.length===1){return e.pop()}while(!t&&e.length){t=S(e.pop())}while(e.length){r=S(e.pop());if(r){t=t.filter((function(e,t){return r.length>t&&r[t]===e}))}}return t?t[t.length-1]:document}function D(e,t){var r=document.querySelector(e.target.toString());if(!r){t("Selector: %c%s",p,e.target.toString())}else{t("Element: %o",r)}}function T(e){console.log("HTML: %c%s",p,e.html)}function L(e,t){var r=n._audit.data.failureSummaries[t].failureMessage(e[t].map((function(e){return e.message||""})));console.error(r)}function C(e,t){if(e[t].length>0){D(e,console.groupCollapsed);T(e);L(e,t);var r=[];e[t].forEach((function(e){r=r.concat(e.relatedNodes)}));if(r.length>0){console.groupCollapsed("Related nodes");r.forEach((function(e){D(e,console.log);T(e)}));console.groupEnd()}console.groupEnd()}}function j(e,t){if(b){s(b);b=undefined}return new Promise((function(r,a){x.push(e);b=o((function(){var e=_;if(e===undefined){e=O(x.filter((function(e){return e.isConnected})));if(e.nodeName.toLowerCase()==="html"){e=document}}n.run(e,{reporter:"v2"},(function(e,t){if(e){return a(e)}t.violations=t.violations.filter((function(e){e.nodes=e.nodes.filter((function(t){var r=t.target.toString()+e.id;var n=!k[r];k[r]=r;return n}));return!!e.nodes.length}));if(t.violations.length){console.group("%cNew axe issues",v);t.violations.forEach((function(e){var t;switch(e.impact){case"critical":t=h;break;case"serious":t=v;break;case"moderate":t=m;break;case"minor":t=y;break;default:t=y;break}console.groupCollapsed("%c%s: %c%s %s",t,e.impact,g,e.help,e.helpUrl);e.nodes.forEach((function(e){C(e,"any");C(e,"none")}));console.groupEnd()}));console.groupEnd()}r()}))}),{timeout:t})}))}function N(e){var t;try{t=l.findDOMNode(e)}catch(t){console.group("%caxe error: could not check node",h);console.group("%cComponent",v);console.error(e);console.groupEnd();console.group("%cError",v);console.error(t);console.groupEnd();console.groupEnd()}if(t){j(t,A)}}function I(e){var t=M(N,A,true);i(e,"componentDidMount",t);i(e,"componentDidUpdate",t)}function P(e){var t=e._reactInternalInstance||{};var r=t._debugID;var n=e._reactInternalFiber||{};var a=n._debugID;if(r&&!E[r]){E[r]=e;I(e)}else if(a&&!E[a]){E[a]=e;I(e)}}function R(e,t,r,a,i){u=e;l=t;A=r;_=i;if(a){n.configure(a)}if(!w){w=u.createElement;u.createElement=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=w.apply(this,e);if(r._owner&&r._owner._instance){P(r._owner._instance)}else if(r._owner&&r._owner.stateNode){P(r._owner.stateNode)}return r}}return j(document.body,A)}e.exports=R},function(e,t,r){(function(e){var n,a;var i;var i;var a;var o,a;
378
+ */(function(i,o){if(true){!(n=o,a=typeof n==="function"?n.call(t,r,t,e):n,a!==undefined&&(e.exports=a))}else{}})(this,(function(){var e,t,r="2.0.6",n={},a={},i={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:true},o={currentLocale:i.currentLocale,zeroFormat:i.zeroFormat,nullFormat:i.nullFormat,defaultFormat:i.defaultFormat,scalePercentBy100:i.scalePercentBy100};function s(e,t){this._input=e;this._value=t}e=function(r){var a,i,u,l;if(e.isNumeral(r)){a=r.value()}else if(r===0||typeof r==="undefined"){a=0}else if(r===null||t.isNaN(r)){a=null}else if(typeof r==="string"){if(o.zeroFormat&&r===o.zeroFormat){a=0}else if(o.nullFormat&&r===o.nullFormat||!r.replace(/[^0-9]+/g,"").length){a=null}else{for(i in n){l=typeof n[i].regexps.unformat==="function"?n[i].regexps.unformat():n[i].regexps.unformat;if(l&&r.match(l)){u=n[i].unformat;break}}u=u||e._.stringToNumber;a=u(r)}}else{a=Number(r)||null}return new s(r,a)};e.version=r;e.isNumeral=function(e){return e instanceof s};e._=t={numberToFormat:function(t,r,n){var i=a[e.options.currentLocale],o=false,s=false,u=0,l="",c=1e12,f=1e9,d=1e6,p=1e3,h="",v=false,m,y,g,b,A,_,w,E,x,k;t=t||0;y=Math.abs(t);if(e._.includes(r,"(")){o=true;r=r.replace(/[\(|\)]/g,"")}else if(e._.includes(r,"+")||e._.includes(r,"-")){E=e._.includes(r,"+")?r.indexOf("+"):t<0?r.indexOf("-"):-1;r=r.replace(/[\+|\-]/g,"")}if(e._.includes(r,"a")){m=r.match(/a(k|m|b|t)?/);m=m?m[1]:false;if(e._.includes(r," a")){l=" "}r=r.replace(new RegExp(l+"a[kmbt]?"),"");if(y>=c&&!m||m==="t"){l+=i.abbreviations.trillion;t=t/c}else if(y<c&&y>=f&&!m||m==="b"){l+=i.abbreviations.billion;t=t/f}else if(y<f&&y>=d&&!m||m==="m"){l+=i.abbreviations.million;t=t/d}else if(y<d&&y>=p&&!m||m==="k"){l+=i.abbreviations.thousand;t=t/p}}if(e._.includes(r,"[.]")){s=true;r=r.replace("[.]",".")}_=t.toString().split(".")[0];w=r.split(".")[1];x=r.indexOf(",");u=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length;if(w){if(e._.includes(w,"[")){w=w.replace("]","");w=w.split("[");h=e._.toFixed(t,w[0].length+w[1].length,n,w[1].length)}else{h=e._.toFixed(t,w.length,n)}_=h.split(".")[0];if(e._.includes(h,".")){h=i.delimiters.decimal+h.split(".")[1]}else{h=""}if(s&&Number(h.slice(1))===0){h=""}}else{_=e._.toFixed(t,0,n)}if(l&&!m&&Number(_)>=1e3&&l!==i.abbreviations.trillion){_=String(Number(_)/1e3);switch(l){case i.abbreviations.thousand:l=i.abbreviations.million;break;case i.abbreviations.million:l=i.abbreviations.billion;break;case i.abbreviations.billion:l=i.abbreviations.trillion;break}}if(e._.includes(_,"-")){_=_.slice(1);v=true}if(_.length<u){for(var M=u-_.length;M>0;M--){_="0"+_}}if(x>-1){_=_.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+i.delimiters.thousands)}if(r.indexOf(".")===0){_=""}k=_+h+(l?l:"");if(o){k=(o&&v?"(":"")+k+(o&&v?")":"")}else{if(E>=0){k=E===0?(v?"-":"+")+k:k+(v?"-":"+")}else if(v){k="-"+k}}return k},stringToNumber:function(e){var t=a[o.currentLocale],r=e,n={thousand:3,million:6,billion:9,trillion:12},i,s,u,l;if(o.zeroFormat&&e===o.zeroFormat){s=0}else if(o.nullFormat&&e===o.nullFormat||!e.replace(/[^0-9]+/g,"").length){s=null}else{s=1;if(t.delimiters.decimal!=="."){e=e.replace(/\./g,"").replace(t.delimiters.decimal,".")}for(i in n){l=new RegExp("[^a-zA-Z]"+t.abbreviations[i]+"(?:\\)|(\\"+t.currency.symbol+")?(?:\\))?)?$");if(r.match(l)){s*=Math.pow(10,n[i]);break}}s*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1;e=e.replace(/[^0-9\.]+/g,"");s*=Number(e)}return s},isNaN:function(e){return typeof e==="number"&&isNaN(e)},includes:function(e,t){return e.indexOf(t)!==-1},insert:function(e,t,r){return e.slice(0,r)+t+e.slice(r)},reduce:function(e,t){if(this===null){throw new TypeError("Array.prototype.reduce called on null or undefined")}if(typeof t!=="function"){throw new TypeError(t+" is not a function")}var r=Object(e),n=r.length>>>0,a=0,i;if(arguments.length===3){i=arguments[2]}else{while(a<n&&!(a in r)){a++}if(a>=n){throw new TypeError("Reduce of empty array with no initial value")}i=r[a++]}for(;a<n;a++){if(a in r){i=t(i,r[a],a,r)}}return i},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){var e=Array.prototype.slice.call(arguments);return e.reduce((function(e,r){var n=t.multiplier(r);return e>n?e:n}),1)},toFixed:function(e,t,r,n){var a=e.toString().split("."),i=t-(n||0),o,s,u,l;if(a.length===2){o=Math.min(Math.max(a[1].length,i),t)}else{o=i}u=Math.pow(10,o);l=(r(e+"e+"+o)/u).toFixed(o);if(n>t-o){s=new RegExp("\\.?0{1,"+(n-(t-o))+"}$");l=l.replace(s,"")}return l}};e.options=o;e.formats=n;e.locales=a;e.locale=function(e){if(e){o.currentLocale=e.toLowerCase()}return o.currentLocale};e.localeData=function(e){if(!e){return a[o.currentLocale]}e=e.toLowerCase();if(!a[e]){throw new Error("Unknown locale : "+e)}return a[e]};e.reset=function(){for(var e in i){o[e]=i[e]}};e.zeroFormat=function(e){o.zeroFormat=typeof e==="string"?e:null};e.nullFormat=function(e){o.nullFormat=typeof e==="string"?e:null};e.defaultFormat=function(e){o.defaultFormat=typeof e==="string"?e:"0.0"};e.register=function(e,t,r){t=t.toLowerCase();if(this[e+"s"][t]){throw new TypeError(t+" "+e+" already registered.")}this[e+"s"][t]=r;return r};e.validate=function(t,r){var n,a,i,o,s,u,l,c;if(typeof t!=="string"){t+="";if(console.warn){console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)}}t=t.trim();if(!!t.match(/^\d+$/)){return true}if(t===""){return false}try{l=e.localeData(r)}catch(t){l=e.localeData(e.locale())}i=l.currency.symbol;s=l.abbreviations;n=l.delimiters.decimal;if(l.delimiters.thousands==="."){a="\\."}else{a=l.delimiters.thousands}c=t.match(/^[^\d]+/);if(c!==null){t=t.substr(1);if(c[0]!==i){return false}}c=t.match(/[^\d]+$/);if(c!==null){t=t.slice(0,-1);if(c[0]!==s.thousand&&c[0]!==s.million&&c[0]!==s.billion&&c[0]!==s.trillion){return false}}u=new RegExp(a+"{2}");if(!t.match(/[^\d.,]/g)){o=t.split(n);if(o.length>2){return false}else{if(o.length<2){return!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u)}else{if(o[0].length===1){return!!o[0].match(/^\d+$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/)}else{return!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/)}}}}return false};e.fn=s.prototype={clone:function(){return e(this)},format:function(t,r){var a=this._value,i=t||o.defaultFormat,s,u,l;r=r||Math.round;if(a===0&&o.zeroFormat!==null){u=o.zeroFormat}else if(a===null&&o.nullFormat!==null){u=o.nullFormat}else{for(s in n){if(i.match(n[s].regexps.format)){l=n[s].format;break}}l=l||e._.numberToFormat;u=l(a,i,r)}return u},value:function(){return this._value},input:function(){return this._input},set:function(e){this._value=Number(e);return this},add:function(e){var r=t.correctionFactor.call(null,this._value,e);function n(e,t,n,a){return e+Math.round(r*t)}this._value=t.reduce([this._value,e],n,0)/r;return this},subtract:function(e){var r=t.correctionFactor.call(null,this._value,e);function n(e,t,n,a){return e-Math.round(r*t)}this._value=t.reduce([e],n,Math.round(this._value*r))/r;return this},multiply:function(e){function r(e,r,n,a){var i=t.correctionFactor(e,r);return Math.round(e*i)*Math.round(r*i)/Math.round(i*i)}this._value=t.reduce([this._value,e],r,1);return this},divide:function(e){function r(e,r,n,a){var i=t.correctionFactor(e,r);return Math.round(e*i)/Math.round(r*i)}this._value=t.reduce([this._value,e],r);return this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}};e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return~~(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th"},currency:{symbol:"$"}});(function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,r,n){var a=e._.includes(r," BPS")?" ":"",i;t=t*1e4;r=r.replace(/\s?BPS/,"");i=e._.numberToFormat(t,r,n);if(e._.includes(i,")")){i=i.split("");i.splice(-1,0,a+"BPS");i=i.join("")}else{i=i+a+"BPS"}return i},unformat:function(t){return+(e._.stringToNumber(t)*1e-4).toFixed(15)}})})();(function(){var t={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]};var n=t.suffixes.concat(r.suffixes.filter((function(e){return t.suffixes.indexOf(e)<0})));var a=n.join("|");a="("+a.replace("B","B(?!PS)")+")";e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(a)},format:function(n,a,i){var o,s=e._.includes(a,"ib")?r:t,u=e._.includes(a," b")||e._.includes(a," ib")?" ":"",l,c,f;a=a.replace(/\s?i?b/,"");for(l=0;l<=s.suffixes.length;l++){c=Math.pow(s.base,l);f=Math.pow(s.base,l+1);if(n===null||n===0||n>=c&&n<f){u+=s.suffixes[l];if(c>0){n=n/c}break}}o=e._.numberToFormat(n,a,i);return o+u},unformat:function(n){var a=e._.stringToNumber(n),i,o;if(a){for(i=t.suffixes.length-1;i>=0;i--){if(e._.includes(n,t.suffixes[i])){o=Math.pow(t.base,i);break}if(e._.includes(n,r.suffixes[i])){o=Math.pow(r.base,i);break}}a*=o||1}return a}})})();(function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,r,n){var a=e.locales[e.options.currentLocale],i={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]},o,s,u;r=r.replace(/\s?\$\s?/,"");o=e._.numberToFormat(t,r,n);if(t>=0){i.before=i.before.replace(/[\-\(]/,"");i.after=i.after.replace(/[\-\)]/,"")}else if(t<0&&(!e._.includes(i.before,"-")&&!e._.includes(i.before,"("))){i.before="-"+i.before}for(u=0;u<i.before.length;u++){s=i.before[u];switch(s){case"$":o=e._.insert(o,a.currency.symbol,u);break;case" ":o=e._.insert(o," ",u+a.currency.symbol.length-1);break}}for(u=i.after.length-1;u>=0;u--){s=i.after[u];switch(s){case"$":o=u===i.after.length-1?o+a.currency.symbol:e._.insert(o,a.currency.symbol,-(i.after.length-(1+u)));break;case" ":o=u===i.after.length-1?o+" ":e._.insert(o," ",-(i.after.length-(1+u)+a.currency.symbol.length-1));break}}return o}})})();(function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,r,n){var a,i=typeof t==="number"&&!e._.isNaN(t)?t.toExponential():"0e+0",o=i.split("e");r=r.replace(/e[\+|\-]{1}0/,"");a=e._.numberToFormat(Number(o[0]),r,n);return a+"e"+o[1]},unformat:function(t){var r=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),n=Number(r[0]),a=Number(r[1]);a=e._.includes(t,"e-")?a*=-1:a;function i(t,r,n,a){var i=e._.correctionFactor(t,r),o=t*i*(r*i)/(i*i);return o}return e._.reduce([n,Math.pow(10,a)],i,1)}})})();(function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,r,n){var a=e.locales[e.options.currentLocale],i,o=e._.includes(r," o")?" ":"";r=r.replace(/\s?o/,"");o+=a.ordinal(t);i=e._.numberToFormat(t,r,n);return i+o}})})();(function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,r,n){var a=e._.includes(r," %")?" ":"",i;if(e.options.scalePercentBy100){t=t*100}r=r.replace(/\s?\%/,"");i=e._.numberToFormat(t,r,n);if(e._.includes(i,")")){i=i.split("");i.splice(-1,0,a+"%");i=i.join("")}else{i=i+a+"%"}return i},unformat:function(t){var r=e._.stringToNumber(t);if(e.options.scalePercentBy100){return r*.01}return r}})})();(function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,r){var n=Math.floor(e/60/60),a=Math.floor((e-n*60*60)/60),i=Math.round(e-n*60*60-a*60);return n+":"+(a<10?"0"+a:a)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),r=0;if(t.length===3){r=r+Number(t[0])*60*60;r=r+Number(t[1])*60;r=r+Number(t[2])}else if(t.length===2){r=r+Number(t[0])*60;r=r+Number(t[1])}return Number(r)}})})();return e}))},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(13);var o=r(7);var s=r(31);var u=r(70);var l=r(63);var c=r(0);var f=r(1310);var d=r(12);var p=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={showDownloadForm:false};r.showDownloadForm=r.showDownloadForm.bind(r);r.hideDownloadForm=r.hideDownloadForm.bind(r);r.fetchAndQueue=r.fetchAndQueue.bind(r);r._isMounted=false;return r}t.prototype.render=function(){var e=this;var t=this.props,r=t.library,n=t.fetchError,i=t.isLoaded,o=t.events;return a.createElement("div",{className:"circulation-events"},a.createElement("h2",null,"Circulation Events"),this.context.showCircEventsDownload&&a.createElement(d.Button,{callback:this.showDownloadForm,content:"Download CSV",className:"left-align"}),a.createElement(f.default,{show:this.state.showDownloadForm,hide:this.hideDownloadForm,library:r}),n&&a.createElement(s.default,{error:n}),!i&&!r&&a.createElement(u.default,null),!r&&a.createElement("table",{className:"table table-striped"},a.createElement("thead",null,a.createElement("tr",null,a.createElement("th",null,"Book"),a.createElement("th",null,"Event"),a.createElement("th",null,"Time"))),a.createElement("tbody",null,o.map((function(t){return a.createElement("tr",{key:t.id},a.createElement("td",null,a.createElement(l.default,{bookUrl:t.book.url},t.book.title)),a.createElement("td",null,e.formatType(t.type)),a.createElement("td",null,e.formatTime(t.time)))})))))};t.prototype.UNSAFE_componentWillMount=function(){this._isMounted=true;if(!this.props.library){this.fetchAndQueue()}};t.prototype.componentWillUnmount=function(){if(!this.props.library){clearTimeout(this.timer)}this._isMounted=false};t.prototype.fetchAndQueue=function(){var e=this;return this.props.fetchCirculationEvents().then((function(){if(e._isMounted){e.timer=setTimeout(e.fetchAndQueue,(e.props.wait||10)*1e3)}}))};t.prototype.formatType=function(e){return e.replace("_"," ")};t.prototype.formatTime=function(e){var t=new Date(e);return t.toLocaleString("en-US",{weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"numeric"})};t.prototype.showDownloadForm=function(){this.setState({showDownloadForm:true})};t.prototype.hideDownloadForm=function(){this.setState({showDownloadForm:false})};t.contextTypes={showCircEventsDownload:c.bool};return t}(a.Component);t.CirculationEvents=p;function h(e,t){return{events:e.editor.circulationEvents.data||[],fetchError:e.editor.circulationEvents.fetchError,isLoaded:e.editor.circulationEvents.isLoaded}}function v(e){var t=new o.default;return{fetchCirculationEvents:function(){return e(t.fetchCirculationEvents())}}}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(116);var o=r(12);var s=r(19);var u=r(1311);var l=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.type=a.createRef();r.dateStart=a.createRef();r.dateEnd=a.createRef();r.locations=a.createRef();r.state={showLocationsInput:false};r.download=r.download.bind(r);r.renderForm=r.renderForm.bind(r);r.renderInputs=r.renderInputs.bind(r);r.getRefValue=r.getRefValue.bind(r);r.toggleLocationsInput=r.toggleLocationsInput.bind(r);return r}t.prototype.render=function(){return a.createElement(i.Modal,{className:"circ-events-download-form",show:this.props.show,onHide:this.props.hide},a.createElement(i.Modal.Header,null,a.createElement(i.Modal.Title,null,"Download CSV")),a.createElement(i.Modal.Body,null,this.renderForm()),a.createElement(i.Modal.Footer,null,a.createElement(o.Button,{className:"inverted left-align",callback:this.props.hide,content:"Close"})))};t.prototype.renderForm=function(){return a.createElement(o.Form,{onSubmit:this.download,buttonContent:"Download",buttonClass:"left-align",content:this.renderInputs()})};t.prototype.toggleLocationsInput=function(){var e=this.type.current&&this.type.current.value;var t=false;if(e==="locations"){t=true}this.setState({showLocationsInput:t})};t.prototype.renderInputs=function(){var e=[{id:"all",label:"All Events"},{id:"locations",label:"Events by Location"}];var t=(new Date).toISOString().split("T")[0];return a.createElement(a.Fragment,null,a.createElement("fieldset",null,a.createElement("legend",{className:"control-label visuallyHidden"},"Configuration"),a.createElement("label",{htmlFor:"event-select"},"Event Type",a.createElement("select",{className:"form-control",id:"event-select",ref:this.type,name:"type",onChange:this.toggleLocationsInput,onBlur:this.toggleLocationsInput},e.map((function(e){return a.createElement("option",{key:e.id+"-option",value:e.id,"aria-selected":false},e.label)})))),this.state.showLocationsInput&&a.createElement(s.default,{ref:this.locations,className:"",label:"Locations",description:"Comma-separated list of locations (e.g. ZIP codes or library branch codes) to focus on.",name:"locations",id:"locations",optionalText:false,placeholder:"10001,10002,10003"}),a.createElement(s.default,{ref:this.dateStart,name:"dateStart",label:"Start Date",type:"date",value:t,className:"date-input",optionalText:false}),a.createElement(s.default,{ref:this.dateEnd,name:"dateEnd",label:"End Date",type:"date",value:t,className:"date-input",optionalText:false})))};t.prototype.getRefValue=function(e){var t=e.current||null;var r=t&&t.getValue()||null;return r};t.prototype.download=function(){var e=this.getRefValue(this.dateStart);var t=this.getRefValue(this.dateEnd);var r=this.getRefValue(this.locations);var n={date:e,dateEnd:t,locations:r};var a="";if(this.props.library){a="/"+this.props.library}var i=a+"/admin/bulk_circulation_events";var o=u.stringify(n,{skipNulls:true});if(o){i+="?"+o}var s=document.createElement("a");s.href=i;s.target="_blank";document.body.appendChild(s);s.click();s.remove()};return t}(a.Component);t.default=l},function(e,t,r){"use strict";var n=r(1312);var a=r(1313);var i=r(333);e.exports={formats:i,parse:a,stringify:n}},function(e,t,r){"use strict";var n=r(664);var a=r(333);var i=Object.prototype.hasOwnProperty;var o={brackets:function e(t){return t+"[]"},comma:"comma",indices:function e(t,r){return t+"["+r+"]"},repeat:function e(t){return t}};var s=Array.isArray;var u=Array.prototype.push;var l=function(e,t){u.apply(e,s(t)?t:[t])};var c=Date.prototype.toISOString;var f=a["default"];var d={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:n.encode,encodeValuesOnly:false,format:f,formatter:a.formatters[f],indices:false,serializeDate:function e(t){return c.call(t)},skipNulls:false,strictNullHandling:false};var p=function e(t){return typeof t==="string"||typeof t==="number"||typeof t==="boolean"||typeof t==="symbol"||typeof t==="bigint"};var h=function e(t,r,a,i,o,u,c,f,h,v,m,y,g,b){var A=t;if(typeof c==="function"){A=c(r,A)}else if(A instanceof Date){A=v(A)}else if(a==="comma"&&s(A)){A=n.maybeMap(A,(function(e){if(e instanceof Date){return v(e)}return e}))}if(A===null){if(i){return u&&!g?u(r,d.encoder,b,"key",m):r}A=""}if(p(A)||n.isBuffer(A)){if(u){var _=g?r:u(r,d.encoder,b,"key",m);return[y(_)+"="+y(u(A,d.encoder,b,"value",m))]}return[y(r)+"="+y(String(A))]}var w=[];if(typeof A==="undefined"){return w}var E;if(a==="comma"&&s(A)){E=[{value:A.length>0?A.join(",")||null:undefined}]}else if(s(c)){E=c}else{var x=Object.keys(A);E=f?x.sort(f):x}for(var k=0;k<E.length;++k){var M=E[k];var S=typeof M==="object"&&M.value!==undefined?M.value:A[M];if(o&&S===null){continue}var O=s(A)?typeof a==="function"?a(r,M):r:r+(h?"."+M:"["+M+"]");l(w,e(S,O,a,i,o,u,c,f,h,v,m,y,g,b))}return w};var v=function e(t){if(!t){return d}if(t.encoder!==null&&t.encoder!==undefined&&typeof t.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var r=t.charset||d.charset;if(typeof t.charset!=="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var n=a["default"];if(typeof t.format!=="undefined"){if(!i.call(a.formatters,t.format)){throw new TypeError("Unknown format option provided.")}n=t.format}var o=a.formatters[n];var u=d.filter;if(typeof t.filter==="function"||s(t.filter)){u=t.filter}return{addQueryPrefix:typeof t.addQueryPrefix==="boolean"?t.addQueryPrefix:d.addQueryPrefix,allowDots:typeof t.allowDots==="undefined"?d.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel==="boolean"?t.charsetSentinel:d.charsetSentinel,delimiter:typeof t.delimiter==="undefined"?d.delimiter:t.delimiter,encode:typeof t.encode==="boolean"?t.encode:d.encode,encoder:typeof t.encoder==="function"?t.encoder:d.encoder,encodeValuesOnly:typeof t.encodeValuesOnly==="boolean"?t.encodeValuesOnly:d.encodeValuesOnly,filter:u,format:n,formatter:o,serializeDate:typeof t.serializeDate==="function"?t.serializeDate:d.serializeDate,skipNulls:typeof t.skipNulls==="boolean"?t.skipNulls:d.skipNulls,sort:typeof t.sort==="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling==="boolean"?t.strictNullHandling:d.strictNullHandling}};e.exports=function(e,t){var r=e;var n=v(t);var a;var i;if(typeof n.filter==="function"){i=n.filter;r=i("",r)}else if(s(n.filter)){i=n.filter;a=i}var u=[];if(typeof r!=="object"||r===null){return""}var c;if(t&&t.arrayFormat in o){c=t.arrayFormat}else if(t&&"indices"in t){c=t.indices?"indices":"repeat"}else{c="indices"}var f=o[c];if(!a){a=Object.keys(r)}if(n.sort){a.sort(n.sort)}for(var d=0;d<a.length;++d){var p=a[d];if(n.skipNulls&&r[p]===null){continue}l(u,h(r[p],p,f,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset))}var m=u.join(n.delimiter);var y=n.addQueryPrefix===true?"?":"";if(n.charsetSentinel){if(n.charset==="iso-8859-1"){y+="utf8=%26%2310003%3B&"}else{y+="utf8=%E2%9C%93&"}}return m.length>0?y+m:""}},function(e,t,r){"use strict";var n=r(664);var a=Object.prototype.hasOwnProperty;var i=Array.isArray;var o={allowDots:false,allowPrototypes:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))};var u=function(e,t){if(e&&typeof e==="string"&&t.comma&&e.indexOf(",")>-1){return e.split(",")}return e};var l="utf8=%26%2310003%3B";var c="utf8=%E2%9C%93";var f=function e(t,r){var f={};var d=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;var p=r.parameterLimit===Infinity?undefined:r.parameterLimit;var h=d.split(r.delimiter,p);var v=-1;var m;var y=r.charset;if(r.charsetSentinel){for(m=0;m<h.length;++m){if(h[m].indexOf("utf8=")===0){if(h[m]===c){y="utf-8"}else if(h[m]===l){y="iso-8859-1"}v=m;m=h.length}}}for(m=0;m<h.length;++m){if(m===v){continue}var g=h[m];var b=g.indexOf("]=");var A=b===-1?g.indexOf("="):b+1;var _,w;if(A===-1){_=r.decoder(g,o.decoder,y,"key");w=r.strictNullHandling?null:""}else{_=r.decoder(g.slice(0,A),o.decoder,y,"key");w=n.maybeMap(u(g.slice(A+1),r),(function(e){return r.decoder(e,o.decoder,y,"value")}))}if(w&&r.interpretNumericEntities&&y==="iso-8859-1"){w=s(w)}if(g.indexOf("[]=")>-1){w=i(w)?[w]:w}if(a.call(f,_)){f[_]=n.combine(f[_],w)}else{f[_]=w}}return f};var d=function(e,t,r,n){var a=n?t:u(t,r);for(var i=e.length-1;i>=0;--i){var o;var s=e[i];if(s==="[]"&&r.parseArrays){o=[].concat(a)}else{o=r.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s;var c=parseInt(l,10);if(!r.parseArrays&&l===""){o={0:a}}else if(!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&(r.parseArrays&&c<=r.arrayLimit)){o=[];o[c]=a}else{o[l]=a}}a=o}return a};var p=function e(t,r,n,i){if(!t){return}var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t;var s=/(\[[^[\]]*])/;var u=/(\[[^[\]]*])/g;var l=n.depth>0&&s.exec(o);var c=l?o.slice(0,l.index):o;var f=[];if(c){if(!n.plainObjects&&a.call(Object.prototype,c)){if(!n.allowPrototypes){return}}f.push(c)}var p=0;while(n.depth>0&&(l=u.exec(o))!==null&&p<n.depth){p+=1;if(!n.plainObjects&&a.call(Object.prototype,l[1].slice(1,-1))){if(!n.allowPrototypes){return}}f.push(l[1])}if(l){f.push("["+o.slice(l.index)+"]")}return d(f,r,n,i)};var h=function e(t){if(!t){return o}if(t.decoder!==null&&t.decoder!==undefined&&typeof t.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof t.charset!=="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var r=typeof t.charset==="undefined"?o.charset:t.charset;return{allowDots:typeof t.allowDots==="undefined"?o.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes==="boolean"?t.allowPrototypes:o.allowPrototypes,arrayLimit:typeof t.arrayLimit==="number"?t.arrayLimit:o.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel==="boolean"?t.charsetSentinel:o.charsetSentinel,comma:typeof t.comma==="boolean"?t.comma:o.comma,decoder:typeof t.decoder==="function"?t.decoder:o.decoder,delimiter:typeof t.delimiter==="string"||n.isRegExp(t.delimiter)?t.delimiter:o.delimiter,depth:typeof t.depth==="number"||t.depth===false?+t.depth:o.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===true,interpretNumericEntities:typeof t.interpretNumericEntities==="boolean"?t.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:typeof t.parameterLimit==="number"?t.parameterLimit:o.parameterLimit,parseArrays:t.parseArrays!==false,plainObjects:typeof t.plainObjects==="boolean"?t.plainObjects:o.plainObjects,strictNullHandling:typeof t.strictNullHandling==="boolean"?t.strictNullHandling:o.strictNullHandling}};e.exports=function(e,t){var r=h(t);if(e===""||e===null||typeof e==="undefined"){return r.plainObjects?Object.create(null):{}}var a=typeof e==="string"?f(e,r):e;var i=r.plainObjects?Object.create(null):{};var o=Object.keys(a);for(var s=0;s<o.length;++s){var u=o[s];var l=p(u,a[u],r,typeof e==="string");i=n.merge(i,l,r)}return n.compact(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(0);var o=r(75);var s=r(76);var u=r(1315);var l=r(136);var c=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return a.createElement("div",{className:"config"},a.createElement(o.default,null),a.createElement("main",null,a.createElement(u.default,{tab:this.props.params.tab,editOrCreate:this.props.params.editOrCreate,identifier:this.props.params.identifier,store:this.context.editorStore,csrfToken:this.context.csrfToken,class:"clearfix"})),a.createElement(s.default,null))};t.prototype.UNSAFE_componentWillMount=function(){document.title=l.default("Configuration")};t.contextTypes={editorStore:i.object.isRequired,csrfToken:i.string.isRequired};return t}(a.Component);t.default=c},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(1316);var s=r(1322);var u=r(1326);var l=r(666);var c=r(1328);var f=r(1329);var d=r(1331);var p=r(1332);var h=r(1333);var v=r(1334);var m=r(1335);var y=r(1336);var g=r(1337);var b=r(1338);var A=r(111);var _=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.COMPONENT_CLASSES={libraries:o.default,individualAdmins:l.default,collections:s.default,adminAuth:u.default,patronAuth:c.default,sitewideSettings:f.default,logging:b.default,metadata:d.default,analytics:p.default,cdn:h.default,search:v.default,storage:m.default,catalogServices:y.default,discovery:g.default};t.LIBRARIAN_TABS=["libraries","individualAdmins"];t.LIBRARY_MANAGER_TABS=t.LIBRARIAN_TABS;t.SYSTEM_ADMIN_TABS=Object.keys(t.COMPONENT_CLASSES);t.DISPLAY_NAMES={adminAuth:"Admin Authentication",individualAdmins:"Admins",patronAuth:"Patron Authentication",sitewideSettings:"Sitewide Settings",cdn:"CDN",catalogServices:"External Catalogs"};return t}t.prototype.tabs=function(){var e=this;var t={};var r=function(r){for(var n=0,i=r;n<i.length;n++){var o=i[n];var s=e.COMPONENT_CLASSES[o];t[o]=a.createElement(s,{store:e.props.store,csrfToken:e.props.csrfToken,editOrCreate:e.props.editOrCreate,identifier:e.props.identifier})}};var n;if(this.context.admin.isSystemAdmin()){n=this.SYSTEM_ADMIN_TABS}else if(this.context.admin.isLibraryManagerOfSomeLibrary()){n=this.LIBRARY_MANAGER_TABS}else{n=this.LIBRARIAN_TABS}r(n);return t};t.prototype.handleSelect=function(e){var t=e.target.dataset.tabkey;if(this.context.router){this.context.router.push("/admin/web/config/"+t)}};t.prototype.tabDisplayName=function(t){if(this.DISPLAY_NAMES[t]){return this.DISPLAY_NAMES[t]}else{return e.prototype.tabDisplayName.call(this,t)}};t.prototype.defaultTab=function(){return"libraries"};t.contextTypes={router:i.object.isRequired,pathFor:i.func.isRequired,admin:i.object.isRequired};return t}(A.TabContainer);t.default=_},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(38);var i=r(13);var o=r(0);var s=r(7);var u=r(1317);var l=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=u.default;t.listDataKey="libraries";t.itemTypeName="library";t.urlBase="/admin/web/config/libraries/";t.identifierKey="uuid";t.labelKey="name";return t}t.prototype.UNSAFE_componentWillMount=function(){e.prototype.UNSAFE_componentWillMount.call(this);this.props.fetchLanguages()};t.prototype.label=function(e){return e[this.labelKey]||e.short_name||e.uuid};t.prototype.canCreate=function(){return this.context.admin.isSystemAdmin()};t.prototype.canDelete=function(){return this.context.admin.isSystemAdmin()};t.contextTypes={admin:o.object.isRequired};return t}(a.GenericEditableConfigList);t.Libraries=l;function c(e,t){return{data:e.editor.libraries&&e.editor.libraries.data,responseBody:e.editor.libraries&&e.editor.libraries.successMessage,fetchError:e.editor.libraries.fetchError,formError:e.editor.libraries.formError,isFetching:e.editor.libraries.isFetching||e.editor.libraries.isEditing,additionalData:e.editor.languages&&e.editor.languages.data}}function f(e,t){var r=new s.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchLibraries())},editItem:function(t){return e(r.editLibrary(t))},deleteItem:function(t){return e(r.deleteLibrary(t))},fetchLanguages:function(){return e(r.fetchLanguages())}}}var d=i.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)}}();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(194);var s=r(72);var u=r(12);var l=r(1318);var c=r(1319);var f=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.nameRef=i.createRef();r.shortNameRef=i.createRef();r.settingRef=i.createRef();r.announcementsRef=i.createRef();r.submit=r.submit.bind(r);return r}t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(e.responseBody&&!e.fetchError){s.clearForm([this.nameRef.current,this.shortNameRef.current,this.settingRef.current,this.announcementsRef.current])}};t.prototype.adminNotAuthorized=function(e){return e.level&&e.level>this.props.adminLevel};t.prototype.render=function(){var e=this;var t=[];var r=[];if(this.props.data&&this.props.data.settings){t=this.props.data.settings.filter((function(e){return e.required||e.category==="Basic Information"}));r=this.props.data.settings.filter((function(e){return!new Set(t).has(e)}))}var n=this.separateCategories(r);var a=3;var l=function(t){if(t.key==="name"){return e.nameRef}else if(t.key==="short name"){return e.shortNameRef}else{return e.settingRef}};var c=i.createElement(u.Panel,{id:"library-basic-info",headerText:"Basic Information",key:"basic_info",openByDefault:true,content:i.createElement("fieldset",null,i.createElement("legend",{className:"visuallyHidden"},"Basic Information"),t.map((function(t){var r;return i.createElement(o.default,{key:t.key,ref:l(t),setting:t,disabled:e.props.disabled,value:e.props.item&&e.props.item[t.key]||((r=e.props.item)===null||r===void 0?void 0:r.settings)&&e.props.item.settings[t.key],default:s.findDefault(t),error:e.props.error,readOnly:e.adminNotAuthorized(t)})})))});return i.createElement(u.Form,{hiddenName:"uuid",hiddenValue:this.props.item&&this.props.item.uuid,className:"edit-form",disableButton:this.props.disabled,onSubmit:this.submit,content:[c,this.renderForms(n)]})};t.prototype.separateCategories=function(e){var t={};e.forEach((function(e){t[e.category]=t[e.category]?t[e.category].concat(e):[e]}));return t};t.prototype.renderForms=function(e){var t=this;var r=[];var n=Object.keys(e);n.forEach((function(n){var a=i.createElement(u.Panel,{id:"library-form-"+n.replace(/\s/g,"-"),headerText:n+" (Optional)",onEnter:t.submit,key:n,content:t.renderFieldset(e[n])});r.push(a)}));return r};t.prototype.renderAnnouncements=function(e,t){return i.createElement(c.default,{setting:a(a({},e),{format:"date-range"}),value:t&&JSON.parse(t),ref:this.announcementsRef})};t.prototype.renderPairedMenus=function(e,t){var r=t.find((function(t){return t.key===e.paired}));return i.createElement(l.default,{inputListSetting:e,dropdownSetting:r,item:this.props.item,disabled:this.props.disabled,readOnly:this.adminNotAuthorized(e),error:this.props.error})};t.prototype.renderFieldset=function(e){var t=this;var r=function(e){if(e.format==="narrow"){return a(a({},e),{type:"menu"})}return e};var n=function(e){var r;if((r=t.props.item)===null||r===void 0?void 0:r.settings){return t.props.item.settings[e.key]}return e.default};var u=function(a){if(a.paired){return t.renderPairedMenus(a,e)}else if(a.type==="announcements"){return t.renderAnnouncements(a,n(a))}else if(!a.skip){return i.createElement(o.default,{key:a.key,ref:t.settingRef,setting:r(a),additionalData:t.props.additionalData,disabled:t.props.disabled,value:n(a),default:s.findDefault(a),error:t.props.error,disableButton:t.adminNotAuthorized(a)||t.props.disabled,readOnly:t.adminNotAuthorized(a)||a.readOnly})}};return i.createElement("fieldset",null,i.createElement("legend",{className:"visuallyHidden"},"Additional Fields"),e.map((function(e){return u(e)})))};t.prototype.submit=function(e){var t;var r=this.announcementsRef.current.getValue();var n=[];r.forEach((function(e){return n.push(e)}));(t=e)===null||t===void 0?void 0:t.set("announcements",JSON.stringify(n));this.props.save(e)};return t}(i.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(194);var s=r(72);var u=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;var n=r.existingInput();r.state={inputListValues:n,dropdownValue:r.props.dropdownSetting?r.getValueFromItem(r.props.dropdownSetting):""};r.updateInputList=r.updateInputList.bind(r);r.renderDropdown=r.renderDropdown.bind(r);return r}t.prototype.existingInput=function(){var e=this.props.item;var t=this.props.inputListSetting.key;if(e&&e.settings[t]){return e.settings[t]}else{return this.props.inputListSetting.default}};t.prototype.render=function(){return i.createElement("fieldset",{className:"paired-menus"},this.renderInputList(this.props.inputListSetting.options),this.props.dropdownSetting&&this.renderDropdown())};t.prototype.updateInputList=function(e){this.setState(a(a({},this.state),{inputListValues:e.listItems}))};t.prototype.onDropdownChange=function(e){this.setState(a(a({},this.state),{dropdownValue:e}))};t.prototype.getValueFromItem=function(e){var t=this.props.item&&this.props.item.settings?this.props.item.settings[e.key]:e.default;return t};t.prototype.renderInputList=function(e){var t=function(e){return i.createElement("option",{value:e.key,key:e.key,"aria-selected":false},e.label)};return i.createElement(o.default,{setting:a(a({},this.props.inputListSetting),{type:"menu",format:"narrow",menuOptions:e.map((function(e){return t(e)}))}),value:this.state.inputListValues,disabled:this.props.disabled,onChange:this.updateInputList,disableButton:this.props.readOnly||this.props.disabled,readOnly:true,ref:this.props.inputListSetting.key})};t.prototype.renderDropdown=function(){var e=this;var t=a({},this.props.dropdownSetting);var r=this.state.inputListValues&&t.options.filter((function(t){return e.state.inputListValues.includes(t.key)}));if(r&&r.length===0){return i.createElement("p",{className:"bg-warning"},"In order to set this value, you must add at least one option from the menu above.")}t=a(a({},t),{options:r});return i.createElement(o.default,{key:t.key,ref:t.key,setting:t,disabled:this.props.disabled,value:this.getValueFromItem(t),default:s.findDefault(t),error:this.props.error,onChange:function(t){return e.onDropdownChange(t)}})};t.prototype.getValue=function(){return this.state};return t}(i.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(1320);var o=r(1321);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(19);var o=r(12);var s=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.updateStartDate=r.updateStartDate.bind(r);r.updateEndDate=r.updateEndDate.bind(r);var n=r.getDefaultDates(),a=n[0],i=n[1];r.state={content:r.props.content||"",start:r.props.start||a,finish:r.props.finish||i};return r}t.prototype.getDefaultDates=function(){var e=new Date;var t=this.formatDate(e);var r=this.formatDate(new Date(e.setMonth(e.getMonth()+2)));return[t,r]};t.prototype.formatDate=function(e){if(typeof e==="string"&&e.indexOf("/")===-1){return e}var t=typeof e==="string"?e.split("/"):e.toLocaleDateString("en-US").split("/"),r=t[0],n=t[1],a=t[2];return a+"-"+(r.toString().length===1?"0"+r:r)+"-"+(n.toString().length===1?"0"+n:n)};t.prototype.updateContent=function(e){this.setState({content:e})};t.prototype.updateStartDate=function(e){this.setState({start:e});if(this.state.finish===this.getDefaultDates()[1]){var t=new Date(e);var r=t.getMonth()+2;var n=t.setMonth(r);this.setState({finish:this.formatDate(new Date(n))})}};t.prototype.updateEndDate=function(e){this.setState({finish:e})};t.prototype.add=function(e){e.preventDefault();this.props.add({content:this.state.content,start:this.state.start,finish:this.state.finish,id:this.props.id||null});var t=this.getDefaultDates(),r=t[0],n=t[1];this.setState({content:"",start:r,finish:n})};t.prototype.cancel=function(e){e.preventDefault();if(this.props.content){this.add(e)}else{var t=this.getDefaultDates(),r=t[0],n=t[1];this.setState({content:"",start:r,finish:n})}};t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t;if(((t=e.content)===null||t===void 0?void 0:t.length)>0){var r=e.content,n=e.start,a=e.finish;this.setState({content:r,start:this.formatDate(n),finish:this.formatDate(a)})}};t.prototype.render=function(){var e=this;var t=this.state.content.length<15||this.state.content.length>=350;var r=function(){if(!e.state.content||!e.state.start||!e.state.finish){return true}else if(t){return true}return false};return a.createElement("div",{className:"announcement-form"},a.createElement(i.default,{className:t&&"wrong-length",elementType:"textarea",type:"text",minLength:15,maxLength:350,value:this.state.content,label:"New Announcement Text (15-350 characters)",optionalText:false,onChange:function(t){return e.updateContent(t)},description:"(Current length: "+this.state.content.length+"/350)"}),a.createElement(i.default,{type:"date",max:this.state.finish,value:this.state.start,label:"Start Date",optionalText:true,onChange:function(t){return e.updateStartDate(t)},description:"If no start date is chosen, the default start date is today's date."}),a.createElement(i.default,{type:"date",min:this.state.start,value:this.state.finish,label:"End Date",optionalText:true,onChange:function(t){return e.updateEndDate(t)},description:"If no expiration date is chosen, the default expiration date is 2 months from the start date."}),a.createElement(o.Button,{callback:function(t){return e.add(t)},className:"inline left-align",disabled:r()}),a.createElement(o.Button,{callback:function(t){return e.cancel(t)},content:"Cancel",className:"inline left-align"}))};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(12);var o=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.delete=r.delete.bind(r);r.edit=r.edit.bind(r);return r}t.prototype.edit=function(e){e.preventDefault();this.props.edit(this.props.id)};t.prototype.delete=function(e){e.preventDefault();this.props.delete(this.props.id)};t.prototype.format=function(e){if(e){var t=e.split("-"),r=t[0],n=t[1],a=t[2];return n+"/"+a+"/"+r}return""};t.prototype.render=function(){var e=this;var t=a.createElement("section",{className:"announcement-info"},a.createElement("section",{className:"dates"},this.format(this.props.start)," – ",this.format(this.props.finish)),a.createElement("span",null,this.props.content));var r=a.createElement(i.Button,{content:"Edit",onClick:function(t){return e.edit(t)},className:"left-align"});var n=a.createElement(i.Button,{content:"Delete",onClick:function(t){return e.delete(t)},className:"left-align"});return a.createElement("div",{className:"announcement"},t,a.createElement("hr",null),a.createElement("section",{className:"buttons"},r,n))};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)}}();var a=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 i=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 o=r(1);var s=r(38);var u=r(13);var l=r(0);var c=r(7);var f=r(665);var d=r(104);var p=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(f.default);var h=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=p;t.listDataKey="collections";t.itemTypeName="collection";t.urlBase="/admin/web/config/collections/";t.identifierKey="id";t.labelKey="name";t.links=t.renderLinks();return t}t.prototype.getChildContext=function(){var e=this;return{registerLibrary:function(t){if(e.itemToEdit()){var r=new window.FormData;r.append("library_short_name",t.short_name);r.append("collection_id",e.itemToEdit().id);e.props.registerLibrary(r).then((function(){if(e.props.fetchLibraryRegistrations){e.props.fetchLibraryRegistrations()}}))}}}};t.prototype.UNSAFE_componentWillMount=function(){e.prototype.UNSAFE_componentWillMount.call(this);if(this.props.fetchLibraryRegistrations){this.props.fetchLibraryRegistrations()}};t.prototype.renderLinks=function(){var e="/admin/web/troubleshooting/self-tests/collections";var t=o.createElement("a",{href:e},"the troubleshooting page");return{info:o.createElement(o.Fragment,null,"Self-tests for the collections have been moved to ",t),footer:o.createElement(o.Fragment,null,"Problems with your collections? Please visit ",t,".")}};t.prototype.renderLi=function(t,r){if(t.marked_for_deletion){return o.createElement("li",{className:"deleted-collection",key:r},o.createElement(d.default,null),o.createElement("h4",null,this.label(t)),o.createElement("p",null,"This collection cannot be edited and is currently being deleted. The deletion process is gradual and this collection will be removed once it is complete."))}return e.prototype.renderLi.call(this,t,r)};t.prototype.delete=function(e){return a(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:t="This action cannot be undone. Deletion will not happen "+"immediately but gradually. Until the collection is completely deleted, "+"it will remain in the list and will be uneditable.";if(!window.confirm('Set "'+this.label(e)+'" for deletion? '+t))return[3,2];return[4,this.props.deleteItem(e[this.identifierKey])];case 1:r.sent();this.props.fetchData();r.label=2;case 2:return[2]}}))}))};t.childContextTypes={registerLibrary:l.func};return t}(s.GenericEditableConfigList);t.Collections=h;function v(e,t){var r=Object.assign({},e.editor.collections&&e.editor.collections.data||{});if(e.editor.libraries&&e.editor.libraries.data){r.allLibraries=e.editor.libraries.data.libraries}if(e.editor.collectionLibraryRegistrations&&e.editor.collectionLibraryRegistrations.data){r.libraryRegistrations=e.editor.collectionLibraryRegistrations.data.library_registrations}return{data:r,responseBody:e.editor.collections&&e.editor.collections.successMessage,fetchError:e.editor.collections.fetchError,formError:e.editor.collections.formError||e.editor.collectionLibraryRegistrations&&e.editor.collectionLibraryRegistrations.fetchError||e.editor.registerLibraryWithCollection&&e.editor.registerLibraryWithCollection.fetchError,isFetching:e.editor.collections.isFetching||e.editor.collections.isEditing,isFetchingLibraryRegistrations:e.editor.collectionLibraryRegistrations&&e.editor.collectionLibraryRegistrations.isFetching}}function m(e,t){var r=new c.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchCollections())},editItem:function(t){return e(r.editCollection(t))},deleteItem:function(t){return e(r.deleteCollection(t))},registerLibrary:function(t){return e(r.registerLibraryWithCollection(t))},fetchLibraryRegistrations:function(){return e(r.fetchCollectionLibraryRegistrations())}}}var y=u.connect(v,m)(h);t.default=y},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(12);var o=r(99);var s=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e=a.createElement("span",null,"Edit ",a.createElement(o.PencilIcon,{title:"Edit library"}));return a.createElement("div",{className:"with-edit-button"},a.createElement("span",null,this.props.children),a.createElement(i.Button,{className:"edit-btn small",callback:this.onClick.bind(this),content:e,type:"button"}))};t.prototype.onClick=function(e){e.preventDefault();!this.props.disabled&&this.props.onEdit()};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(19);var o=r(1325);var s=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.MESSAGES={success:{statusText:"Registered",buttonText:"Update registration"},warning:{statusText:"Not registered",buttonText:"Register"},failure:{statusText:"Registration failed",buttonText:"Retry registration"}};r.state={registration_stage:{},protocol:r.props.protocol};r.register=r.register.bind(r);r.getStatus=r.getStatus.bind(r);r.libraryRegistrationItem=r.libraryRegistrationItem.bind(r);r.name=r.name.bind(r);r.statusSpan=r.statusSpan.bind(r);r.currentStage=r.currentStage.bind(r);r.registrationStageDropdown=r.registrationStageDropdown.bind(r);r.updateRegistrationStage=r.updateRegistrationStage.bind(r);r.libraryRegistrationForm=r.libraryRegistrationForm.bind(r);r.getLibraryInfo=r.getLibraryInfo.bind(r);r.getLibraryProp=r.getLibraryProp.bind(r);r.protocolSupportsType=r.protocolSupportsType.bind(r);return r}t.prototype.render=function(){var e=this;if(this.props.item&&this.protocolSupportsType("supports_registration")&&this.props.data&&this.props.data.allLibraries&&this.props.data.allLibraries.length>0){return a.createElement("div",null,a.createElement("h2",null,"Register libraries"),a.createElement("ul",null,this.props.data.allLibraries.map((function(t,r){return e.libraryRegistrationItem(t,r)}))))}return null};t.prototype.register=function(e){var t=this.state.registration_stage&&this.state.registration_stage[e.short_name]||"testing";var r=this.getLibraryProp(e,"stage")==="production"?"production":t;this.props.registerLibrary(e,r)};t.prototype.getStatus=function(e){var t=this.getLibraryProp(e,"status")||"warning";return t};t.prototype.libraryRegistrationItem=function(e,t){var r=this.getStatus(e);return a.createElement("li",{className:"service-with-registrations-library",key:e.short_name},this.name(e),a.createElement("div",{className:"library-registration-info"},this.currentStage(e,r),this.statusSpan(r),this.libraryRegistrationForm(e,r,this.props.data.libraryRegistrations&&this.props.data.libraryRegistrations[t])))};t.prototype.name=function(e){return a.createElement("div",{className:"library-name"},a.createElement("a",{href:"/admin/web/config/libraries/edit/"+e.uuid},e.name))};t.prototype.statusSpan=function(e){var t=e==="failure"?"bg-danger":"bg-"+e;return a.createElement("span",{className:t},this.MESSAGES[e].statusText)};t.prototype.currentStage=function(e,t){if(this.protocolSupportsType("supports_staging")){var r=this.getLibraryProp(e,"stage");return a.createElement("div",{className:"current-stage"},r&&t!=="failure"?a.createElement("span",null,"Current Stage: ",r):a.createElement("span",null,"No current stage"),this.registrationStageDropdown(e,r))}return null};t.prototype.registrationStageDropdown=function(e,t){var r=this;if(t==="production"){return null}return a.createElement(i.default,{elementType:"select",name:"registration_stage",label:"Stage",value:t||"testing",ref:"stage-"+e.short_name,onChange:function(){return r.updateRegistrationStage(e)}},a.createElement("option",{value:"testing","aria-selected":t==="testing"},"Testing"),a.createElement("option",{value:"production","aria-selected":t==="production"},"Production"))};t.prototype.libraryRegistrationForm=function(e,t,r){return a.createElement(o.default,{library:e,register:this.register,buttonText:this.MESSAGES[t].buttonText,checked:t==="success",disabled:this.props.disabled,registrationData:r})};t.prototype.updateRegistrationStage=function(e){var t;var r=this.refs["stage-"+e.short_name].getValue();this.setState({registration_stage:Object.assign({},this.state.registration_stage,(t={},t[e.short_name]=r,t)),protocol:this.state.protocol})};t.prototype.getLibraryInfo=function(e){var t=this.props.item&&this.props.item.id;var r=this.props.data&&this.props.data.libraryRegistrations||[];for(var n=0,a=r;n<a.length;n++){var i=a[n];if(i.id===t){for(var o=0,s=i.libraries;o<s.length;o++){var u=s[o];if(u.short_name===e.short_name){return u}}}}return null};t.prototype.getLibraryProp=function(e,t){var r=this.getLibraryInfo(e);return r&&r[t]};t.prototype.protocolSupportsType=function(e){if(this.state.protocol&&this.props.data.protocols){for(var t=0,r=this.props.data.protocols;t<r.length;t++){var n=r[t];if(n.name===this.state.protocol){return!!n[e]}}}return false};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(19);var o=r(12);var s=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={checked:r.props.checked};r.toggleChecked=r.toggleChecked.bind(r);return r}t.prototype.UNSAFE_componentWillReceiveProps=function(e){this.setState({checked:e.checked})};t.prototype.render=function(){var e=this;var t=this.props.registrationData&&(this.props.registrationData.terms_of_service_html||this.props.registrationData.terms_of_service_link||this.props.registrationData.access_problem);var r=this.props.disabled||t&&!this.state.checked;return a.createElement(o.Form,{className:"inline registration-status",content:t&&this.checkbox(this.props.library),disableButton:r,onSubmit:function(){return e.props.register(e.props.library)},buttonContent:this.props.buttonText,withoutButton:this.props.registrationData&&this.props.registrationData.access_problem})};t.prototype.checkbox=function(e){var t=this.props.registrationData,r=t.access_problem,n=t.terms_of_service_html,o=t.terms_of_service_link;var s;if(r){s=a.createElement("p",{className:"bg-danger"},r.detail)}else if(n){s=a.createElement("p",{dangerouslySetInnerHTML:{__html:n}})}else{s=a.createElement("p",null,"You must read the ",a.createElement("a",{href:o},"terms of service")," ","before registering your library.")}return a.createElement("section",{className:"registration-checkbox",key:e.uuid},s,!r&&a.createElement(i.default,{elementType:"input",type:"checkbox",onChange:this.toggleChecked,checked:this.state.checked,label:"I agree to the terms of service."}))};t.prototype.toggleChecked=function(){this.setState({checked:!this.state.checked})};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(38);var i=r(13);var o=r(7);var s=r(66);var u=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=s.default;t.listDataKey="admin_auth_services";t.itemTypeName="admin authentication service";t.urlBase="/admin/web/config/adminAuth/";t.identifierKey="protocol";t.labelKey="protocol";t.limitOne=true;return t}return t}(a.default);t.AdminAuthServices=u;function l(e,t){var r=Object.assign({},e.editor.adminAuthServices&&e.editor.adminAuthServices.data);if(e.editor.libraries&&e.editor.libraries.data){r.allLibraries=e.editor.libraries.data.libraries}return{data:r,responseBody:e.editor.adminAuthServices&&e.editor.adminAuthServices.successMessage,fetchError:e.editor.adminAuthServices.fetchError,formError:e.editor.adminAuthServices.formError,isFetching:e.editor.adminAuthServices.isFetching||e.editor.adminAuthServices.isEditing}}function c(e,t){var r=new o.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchAdminAuthServices())},editItem:function(t){return e(r.editAdminAuthService(t))},deleteItem:function(t){return e(r.deleteAdminAuthService(t))}}}var f=i.connect(l,c)(u);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.__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 i=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 o=r(1);var s=r(0);var u=r(19);var l=r(72);var c=r(387);var f=r(12);var d=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.emailRef=o.createRef();r.passwordRef=o.createRef();r.systemRef=o.createRef();r.managerAllRef=o.createRef();r.librarianAllRef=o.createRef();r.libraryManagerRef=o.createRef();r.librarianRef=o.createRef();r.state={admin:new c.default(r.props.item&&r.props.item.roles||[])};r.isSelected=r.isSelected.bind(r);r.handleRoleChange=r.handleRoleChange.bind(r);r.handleData=r.handleData.bind(r);r.submit=r.submit.bind(r);r.renderForm=r.renderForm.bind(r);r.renderRoleForm=r.renderRoleForm.bind(r);return r}t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(e.item&&e.item!==this.props.item){this.setState({admin:new c.default(e.item.roles||[])})}if(e.responseBody&&!e.fetchError){[this.emailRef,this.passwordRef,this.systemRef,this.managerAllRef,this.librarianAllRef,this.libraryManagerRef,this.librarianRef].forEach((function(e){return l.clearForm(e)}))}};t.prototype.render=function(){return o.createElement(f.Form,{onSubmit:this.submit,className:"edit-form",disableButton:this.props.disabled,withoutButton:!this.props.save,content:[o.createElement(f.Panel,{headerText:"Admin Information",id:"admin-info",key:"info",content:this.renderForm(),openByDefault:true,collapsible:!this.context.settingUp,onEnter:this.submit}),!this.context.settingUp&&o.createElement(f.Panel,{id:"admin-roles",headerText:"Admin Roles",key:"roles",content:this.renderRoleForm(),openByDefault:true,onEnter:this.submit})]})};t.prototype.renderForm=function(){return o.createElement("fieldset",null,o.createElement("legend",{className:"visuallyHidden"},"Admin information"),o.createElement(u.default,{elementType:"input",type:"text",disabled:this.props.disabled,required:true,readOnly:!!(this.props.item&&this.props.item.email),name:"email",label:"Email",ref:this.emailRef,value:this.props.item&&this.props.item.email,error:this.props.error}),this.canChangePassword()&&o.createElement(u.default,{elementType:"input",type:"text",disabled:this.props.disabled,name:"password",label:"Password",ref:this.passwordRef,required:this.context.settingUp,error:this.props.error}))};t.prototype.renderRoleForm=function(){var e=this;return o.createElement("fieldset",null,o.createElement("legend",{className:"visuallyHidden"},"Roles"),o.createElement(u.default,{elementType:"input",type:"checkbox",disabled:this.isDisabled("system"),name:"system",ref:this.systemRef,label:"System Admin",checked:this.isSelected("system"),onChange:function(){return e.handleRoleChange("system")}}),o.createElement("table",{className:"library-admin-roles"},o.createElement("thead",null,o.createElement("tr",null,o.createElement("th",null),o.createElement("th",null,o.createElement(u.default,{elementType:"input",type:"checkbox",disabled:this.isDisabled("manager-all"),name:"manager-all",ref:this.managerAllRef,label:"Administrator",checked:this.isSelected("manager-all"),onChange:function(){return e.handleRoleChange("manager-all")}})),o.createElement("th",null,o.createElement(u.default,{elementType:"input",type:"checkbox",disabled:this.isDisabled("librarian-all"),name:"librarian-all",ref:this.librarianAllRef,label:"User",checked:this.isSelected("librarian-all"),onChange:function(){return e.handleRoleChange("librarian-all")}})))),o.createElement("tbody",null,this.props.data&&this.props.data.allLibraries&&this.props.data.allLibraries.map((function(t){return o.createElement("tr",{key:t.short_name},o.createElement("td",null,t.name),o.createElement("td",null,o.createElement(u.default,{elementType:"input",type:"checkbox",disabled:e.isDisabled("manager",t.short_name),name:"manager-"+t.short_name,ref:e.libraryManagerRef,label:"","aria-label":"Administrator of "+t.short_name,checked:e.isSelected("manager",t.short_name),onChange:function(){return e.handleRoleChange("manager",t.short_name)}})),o.createElement("td",null,o.createElement(u.default,{elementType:"input",type:"checkbox",disabled:e.isDisabled("librarian",t.short_name),name:"librarian-"+t.short_name,ref:e.librarianRef,label:"","aria-label":"User of "+t.short_name,checked:e.isSelected("librarian",t.short_name),onChange:function(){return e.handleRoleChange("librarian",t.short_name)}})))})))))};t.prototype.canChangePassword=function(){if(this.context.settingUp||!this.props.item||!this.props.item.roles){return true}if(this.props.item.roles.length===0){return this.context.admin.isLibraryManagerOfSomeLibrary()}var e=new c.default(this.props.item.roles||[]);if(e.isSystemAdmin()){return this.context.admin.isSystemAdmin()}else if(e.isSitewideLibraryManager()){return this.context.admin.isSitewideLibraryManager()}else{for(var t=0,r=e.roles;t<r.length;t++){var n=r[t];if(this.context.admin.isLibraryManager(n.library)){return true}}return false}};t.prototype.isSelected=function(e,t){return this.state.admin.hasRole(e,t)};t.prototype.isDisabled=function(e,t){if(this.props.disabled){return true}if(e==="system"||this.isSelected("system")){return!this.context.admin.isSystemAdmin()}if(e==="manager-all"||e==="librarian-all"){return!this.context.admin.isSitewideLibraryManager()}if(e==="manager"){if(this.isSelected("manager-all")){return!this.context.admin.isSitewideLibraryManager()}return!this.context.admin.isLibraryManager(t)}if(e==="librarian"){if(this.isSelected("librarian-all")){return!this.context.admin.isSitewideLibraryManager()}return!this.context.admin.isLibraryManager(t)}};t.prototype.handleRoleChange=function(e,t){if(e==="system"){if(this.isSelected(e)){this.setState(Object.assign({},this.state,{admin:new c.default([])}))}else{this.setState(Object.assign({},this.state,{admin:new c.default([{role:e}])}))}}else if(e==="manager-all"){if(this.isSelected(e)){this.setState(Object.assign({},this.state,{admin:new c.default([{role:"librarian-all"}])}))}else{this.setState(Object.assign({},this.state,{admin:new c.default([{role:"manager-all"}])}))}}else if(e==="librarian-all"){if(this.isSelected(e)){var r=this.state.admin.roles.filter((function(e){return e.role==="manager"}));this.setState(Object.assign({},this.state,{admin:new c.default(r)}))}else{var r=this.state.admin.roles.filter((function(e){return e.role==="manager"}));r.push({role:"librarian-all"});this.setState(Object.assign({},this.state,{admin:new c.default(r)}))}}else if(e==="manager"){if(this.isSelected(e,t)){if(this.isSelected("manager-all")){var r=[];for(var n=0,a=this.props.data.allLibraries||[];n<a.length;n++){var i=a[n];if(i.short_name!==t){r.push({role:"manager",library:i.short_name})}}r.push({role:"librarian-all"});this.setState(Object.assign({},this.state,{admin:new c.default(r)}))}else{var r=this.state.admin.roles.filter((function(e){return e.library!==t}));if(!this.isSelected("librarian-all")){r.push({role:"librarian",library:t})}this.setState(Object.assign({},this.state,{admin:new c.default(r)}))}}else{var r=this.state.admin.roles.filter((function(e){return e.library!==t}));r.push({role:"manager",library:t});this.setState(Object.assign({},this.state,{admin:new c.default(r)}))}}else if(e==="librarian"){if(this.isSelected(e,t)){if(this.isSelected("librarian-all")){if(this.isSelected("manager-all")){var r=[];for(var o=0,s=this.props.data.allLibraries||[];o<s.length;o++){var i=s[o];if(i.short_name!==t){r.push({role:"manager",library:i.short_name})}}this.setState(Object.assign({},this.state,{admin:new c.default(r)}))}else if(this.isSelected("librarian-all")){var r=this.state.admin.roles.filter((function(e){return e.role==="manager"&&e.library!==t}));for(var u=0,l=this.props.data.allLibraries||[];u<l.length;u++){var i=l[u];if(i.short_name!==t){r.push({role:"librarian",library:i.short_name})}}this.setState(Object.assign({},this.state,{admin:new c.default(r)}))}}else{var r=this.state.admin.roles.filter((function(e){return e.library!==t}));this.setState(Object.assign({},this.state,{admin:new c.default(r)}))}}else{var r=this.state.admin.roles;r.push({role:e,library:t});this.setState(Object.assign({},this.state,{admin:new c.default(r)}))}}};t.prototype.handleData=function(e){var t=this.state.admin.roles;if(this.context&&this.context.settingUp){t=[{role:"system"}]}e&&e.append("roles",JSON.stringify(t));return e};t.prototype.submit=function(e){return a(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:if(!this.props.save)return[3,2];t=this.handleData(e);return[4,this.props.save(t)];case 1:r.sent();r.label=2;case 2:return[2]}}))}))};t.contextTypes={settingUp:s.bool.isRequired,admin:s.object.isRequired};return t}(o.Component);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(38);var o=r(13);var s=r(7);var u=r(66);var l=r(667);var c=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=u.default;t.ExtraFormSection=l.default;t.extraFormKey="neighborhood_mode";t.listDataKey="patron_auth_services";t.itemTypeName="patron authentication service";t.urlBase="/admin/web/config/patronAuth/";t.identifierKey="id";t.labelKey="protocol";t.links=t.renderLinks();return t}t.prototype.label=function(e){for(var t=0,r=this.props.data.protocols;t<r.length;t++){var n=r[t];if(n.name===e.protocol){return e.name+": "+n.label}}return e.protocol};t.prototype.renderLinks=function(){var e="/admin/web/troubleshooting/self-tests/patronAuthServices";var t=a.createElement("a",{href:e},"the troubleshooting page");return{info:a.createElement(a.Fragment,null,"Self-tests for the patron authentication services have been moved to"," ",t,"."),footer:a.createElement(a.Fragment,null,"Problems with your patron authentication services? Please visit"," ",t,".")}};return t}(i.default);t.PatronAuthServices=c;function f(e,t){var r=Object.assign({},e.editor.patronAuthServices&&e.editor.patronAuthServices.data||{});if(e.editor.libraries&&e.editor.libraries.data){r.allLibraries=e.editor.libraries.data.libraries}return{data:r,responseBody:e.editor.patronAuthServices&&e.editor.patronAuthServices.successMessage,fetchError:e.editor.patronAuthServices.fetchError,formError:e.editor.patronAuthServices.formError,isFetching:e.editor.patronAuthServices.isFetching||e.editor.patronAuthServices.isEditing}}function d(e,t){var r=new s.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchPatronAuthServices())},editItem:function(t){return e(r.editPatronAuthService(t))},deleteItem:function(t){return e(r.deletePatronAuthService(t))}}}var p=o.connect(f,d)(c);t.default=p},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(38);var i=r(13);var o=r(7);var s=r(1330);var u=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=s.default;t.listDataKey="settings";t.itemTypeName="sitewide setting";t.urlBase="/admin/web/config/sitewideSettings/";t.identifierKey="key";t.labelKey="key";return t}t.prototype.label=function(e){for(var t=0,r=this.props.data.all_settings;t<r.length;t++){var n=r[t];if(n.key===e.key){return n.label}}return e.key};return t}(a.default);t.SitewideSettings=u;function l(e,t){return{data:e.editor.sitewideSettings&&e.editor.sitewideSettings.data,responseBody:e.editor.sitewideSettings&&e.editor.sitewideSettings.successMessage,fetchError:e.editor.sitewideSettings.fetchError,formError:e.editor.sitewideSettings.formError,isFetching:e.editor.sitewideSettings.isFetching||e.editor.sitewideSettings.isEditing}}function c(e,t){var r=new o.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchSitewideSettings())},editItem:function(t){return e(r.editSitewideSetting(t))},deleteItem:function(t){return e(r.deleteSitewideSetting(t))}}}var f=i.connect(l,c)(u);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.__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 i=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 o=r(1);var s=r(19);var u=r(12);var l=r(72);var c=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.onChange=r.onChange.bind(r);r.submit=r.submit.bind(r);r.state={inputKey:r.availableSettings().length?r.availableSettings()[0].key:""};return r}t.prototype.render=function(){var e=this.state.inputKey;var t=this.availableSettings();var r;t.forEach((function(t){if(t.key===e){r=t}}));var n=!!(r&&r.options&&r.options.length);return o.createElement("div",null,t.length>0&&o.createElement(u.Form,{onSubmit:this.submit,className:"no-border edit-form",disableButton:this.props.disabled,content:o.createElement("fieldset",{key:"sitewide-setting"},o.createElement("legend",{className:"visuallyHidden"},"Enter or edit a value for the selected sitewide setting key"),o.createElement(s.default,{elementType:"select",disabled:this.props.disabled,readOnly:!!(this.props.item&&this.props.item.key),name:"key",ref:"key",label:"Key",value:this.props.item&&this.props.item.key,onChange:this.onChange},t.map((function(e){return o.createElement("option",{key:e.key,value:e.key,"aria-selected":false},e.label)}))),n?o.createElement(s.default,{elementType:"select",name:"value",ref:"value",label:"Value",value:this.props.item&&this.props.item.value},t.map((function(t){if(t.key===e){return t.options.map((function(e){return o.createElement("option",{key:e.key,value:e.key,"aria-selected":false},e.label)}))}}))):o.createElement(s.default,{elementType:"input",type:"text",disabled:this.props.disabled,required:r&&r.required,name:"value",ref:"value",label:"Value",value:this.props.item&&this.props.item.value}),t.map((function(t){if(t.key===e&&t.description){return o.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:t.description}})}})))}),this.availableSettings().length===0&&o.createElement("p",null,"All sitewide settings have already been created."))};t.prototype.onChange=function(e){this.setState({inputKey:e})};t.prototype.availableSettings=function(){var e=this.props.data&&this.props.data.all_settings||[];if(this.props.item){for(var t=0,r=e;t<r.length;t++){var n=r[t];if(n.key===this.props.item.key){return[n]}}}else{var a=[];for(var i=0,o=e;i<o.length;i++){var s=o[i];var u=false;for(var l=0,c=this.props.data&&this.props.data.settings||[];l<c.length;l++){var f=c[l];if(f.key===s.key){u=true}}if(!u){a.push(s)}}return a}return e};t.prototype.submit=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:if(!this.props.save)return[3,2];return[4,this.props.save(e)];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(e.responseBody&&!e.fetchError){l.clearForm(this.refs)}};return t}(o.Component);t.default=c},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(38);var o=r(13);var s=r(7);var u=r(66);var l=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=u.default;t.listDataKey="metadata_services";t.itemTypeName="metadata service";t.urlBase="/admin/web/config/metadata/";t.identifierKey="id";t.labelKey="protocol";t.links=t.renderLinks();return t}t.prototype.renderLinks=function(){var e="/admin/web/troubleshooting/self-tests/metadataServices";var t=a.createElement("a",{href:e},"the troubleshooting page");return{info:a.createElement(a.Fragment,null,"Self-tests for the metadata services have been moved to ",t,"."),footer:a.createElement(a.Fragment,null,"Problems with your metadata services? Please visit ",t,".")}};t.prototype.label=function(e){var t=e.name?e.name+": "+e.protocol:e.protocol;return t};return t}(i.default);t.MetadataServices=l;function c(e,t){var r=Object.assign({},e.editor.metadataServices&&e.editor.metadataServices.data||{});if(e.editor.libraries&&e.editor.libraries.data){r.allLibraries=e.editor.libraries.data.libraries}return{data:r,responseBody:e.editor.metadataServices&&e.editor.metadataServices.successMessage,fetchError:e.editor.metadataServices.fetchError,formError:e.editor.metadataServices.formError,isFetching:e.editor.metadataServices.isFetching||e.editor.metadataServices.isEditing}}function f(e,t){var r=new s.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchMetadataServices())},editItem:function(t){return e(r.editMetadataService(t))},deleteItem:function(t){return e(r.deleteMetadataService(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(38);var i=r(13);var o=r(7);var s=r(66);var u=r(667);var l=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=s.default;t.ExtraFormSection=u.default;t.extraFormKey="location_source";t.listDataKey="analytics_services";t.itemTypeName="analytics service";t.urlBase="/admin/web/config/analytics/";t.identifierKey="id";t.labelKey="protocol";return t}t.prototype.label=function(e){for(var t=0,r=this.props.data.protocols;t<r.length;t++){var n=r[t];if(n.name===e.protocol){return n.label}}return e.protocol};return t}(a.default);t.AnalyticsServices=l;function c(e,t){var r=Object.assign({},e.editor.analyticsServices&&e.editor.analyticsServices.data||{});if(e.editor.libraries&&e.editor.libraries.data){r.allLibraries=e.editor.libraries.data.libraries}return{data:r,responseBody:e.editor.analyticsServices&&e.editor.analyticsServices.successMessage,fetchError:e.editor.analyticsServices.fetchError,formError:e.editor.analyticsServices.formError,isFetching:e.editor.analyticsServices.isFetching||e.editor.analyticsServices.isEditing}}function f(e,t){var r=new o.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchAnalyticsServices())},editItem:function(t){return e(r.editAnalyticsService(t))},deleteItem:function(t){return e(r.deleteAnalyticsService(t))}}}var d=i.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(38);var i=r(13);var o=r(7);var s=r(66);var u=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=s.default;t.listDataKey="cdn_services";t.itemTypeName="CDN service";t.urlBase="/admin/web/config/cdn/";t.identifierKey="id";t.labelKey="protocol";return t}t.prototype.label=function(e){return e.settings&&e.settings.url};return t}(a.default);t.CDNServices=u;function l(e,t){var r=Object.assign({},e.editor.cdnServices&&e.editor.cdnServices.data||{});return{data:r,responseBody:e.editor.cdnServices&&e.editor.cdnServices.successMessage,fetchError:e.editor.cdnServices.fetchError,formError:e.editor.cdnServices.formError,isFetching:e.editor.cdnServices.isFetching||e.editor.cdnServices.isEditing}}function c(e,t){var r=new o.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchCDNServices())},editItem:function(t){return e(r.editCDNService(t))},deleteItem:function(t){return e(r.deleteCDNService(t))}}}var f=i.connect(l,c)(u);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)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(38);var o=r(13);var s=r(7);var u=r(66);var l=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=u.default;t.listDataKey="search_services";t.itemTypeName="search service";t.urlBase="/admin/web/config/search/";t.identifierKey="id";t.labelKey="protocol";t.limitOne=true;t.links=t.renderLinks();return t}t.prototype.renderLinks=function(){var e="/admin/web/troubleshooting/self-tests/searchServices";var t=a.createElement("a",{href:e},"the troubleshooting page");return{info:a.createElement(a.Fragment,null,"Self-tests for the search service have been moved to ",t,"."),footer:a.createElement(a.Fragment,null,"Problems with your search service? Please visit ",t,".")}};return t}(i.default);t.SearchServices=l;function c(e,t){var r=Object.assign({},e.editor.searchServices&&e.editor.searchServices.data||{});return{data:r,responseBody:e.editor.searchServices&&e.editor.searchServices.successMessage,fetchError:e.editor.searchServices.fetchError,formError:e.editor.searchServices.formError,isFetching:e.editor.searchServices.isFetching||e.editor.searchServices.isEditing}}function f(e,t){var r=new s.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchSearchServices())},editItem:function(t){return e(r.editSearchService(t))},deleteItem:function(t){return e(r.deleteSearchService(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(38);var i=r(13);var o=r(7);var s=r(66);var u=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=s.default;t.listDataKey="storage_services";t.itemTypeName="storage service";t.urlBase="/admin/web/config/storage/";t.identifierKey="id";t.labelKey="protocol";return t}t.prototype.label=function(e){for(var t=0,r=this.props.data.protocols;t<r.length;t++){var n=r[t];if(n.name===e.protocol){return e.name+": "+n.label}}return e.protocol};return t}(a.default);t.StorageServices=u;function l(e,t){var r=Object.assign({},e.editor.storageServices&&e.editor.storageServices.data||{});return{data:r,responseBody:e.editor.storageServices&&e.editor.storageServices.successMessage,fetchError:e.editor.storageServices.fetchError,formError:e.editor.storageServices.formError,isFetching:e.editor.storageServices.isFetching||e.editor.storageServices.isEditing}}function c(e,t){var r=new o.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchStorageServices())},editItem:function(t){return e(r.editStorageService(t))},deleteItem:function(t){return e(r.deleteStorageService(t))}}}var f=i.connect(l,c)(u);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)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(38);var i=r(13);var o=r(7);var s=r(66);var u=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=s.default;t.listDataKey="catalog_services";t.itemTypeName="catalog service";t.urlBase="/admin/web/config/catalogServices/";t.identifierKey="id";t.labelKey="protocol";return t}t.prototype.label=function(e){for(var t=0,r=this.props.data.protocols;t<r.length;t++){var n=r[t];if(n.name===e.protocol){return e.name+": "+n.label}}return e.protocol};return t}(a.default);t.CatalogServices=u;function l(e,t){var r=Object.assign({},e.editor.catalogServices&&e.editor.catalogServices.data||{});if(e.editor.libraries&&e.editor.libraries.data){r.allLibraries=e.editor.libraries.data.libraries}return{data:r,responseBody:e.editor.catalogServices&&e.editor.catalogServices.successMessage,fetchError:e.editor.catalogServices.fetchError,formError:e.editor.catalogServices.formError,isFetching:e.editor.catalogServices.isFetching||e.editor.catalogServices.isEditing}}function c(e,t){var r=new o.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchCatalogServices())},editItem:function(t){return e(r.editCatalogService(t))},deleteItem:function(t){return e(r.deleteCatalogService(t))}}}var f=i.connect(l,c)(u);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)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(38);var i=r(13);var o=r(0);var s=r(7);var u=r(665);var l=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(u.default);var c=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=l;t.listDataKey="discovery_services";t.itemTypeName="discovery service";t.urlBase="/admin/web/config/discovery/";t.identifierKey="id";t.labelKey="name";return t}t.prototype.getChildContext=function(){var e=this;return{registerLibrary:function(t,r){if(e.itemToEdit()){var n=new window.FormData;n.append("library_short_name",t.short_name);n.append("registration_stage",r);n.append("integration_id",e.itemToEdit().id);e.props.registerLibrary(n).then((function(){if(e.props.fetchLibraryRegistrations){e.props.fetchLibraryRegistrations()}}))}}}};t.prototype.UNSAFE_componentWillMount=function(){e.prototype.UNSAFE_componentWillMount.call(this);if(this.props.fetchLibraryRegistrations){this.props.fetchLibraryRegistrations()}};t.childContextTypes={registerLibrary:o.func};return t}(a.GenericEditableConfigList);t.DiscoveryServices=c;function f(e,t){var r=Object.assign({},e.editor.discoveryServices&&e.editor.discoveryServices.data||{});if(e.editor.libraries&&e.editor.libraries.data){r.allLibraries=e.editor.libraries.data.libraries}if(e.editor.discoveryServiceLibraryRegistrations&&e.editor.discoveryServiceLibraryRegistrations.data){r.libraryRegistrations=e.editor.discoveryServiceLibraryRegistrations.data.library_registrations}return{data:r,responseBody:e.editor.discoveryServices&&e.editor.discoveryServices.successMessage,fetchError:e.editor.discoveryServices.fetchError,formError:e.editor.discoveryServices.formError||e.editor.registerLibraryWithDiscoveryService&&e.editor.registerLibraryWithDiscoveryService.fetchError,isFetching:e.editor.discoveryServices.isFetching||e.editor.discoveryServices.isEditing||e.editor.registerLibraryWithDiscoveryService&&e.editor.registerLibraryWithDiscoveryService.isFetching,isFetchingLibraryRegistrations:e.editor.discoveryServiceLibraryRegistrations&&e.editor.discoveryServiceLibraryRegistrations.isFetching}}function d(e,t){var r=new s.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchDiscoveryServices())},editItem:function(t){return e(r.editDiscoveryService(t))},deleteItem:function(t){return e(r.deleteDiscoveryService(t))},registerLibrary:function(t){return e(r.registerLibraryWithDiscoveryService(t))},fetchLibraryRegistrations:function(){return e(r.fetchDiscoveryServiceLibraryRegistrations())}}}var p=i.connect(f,d)(c);t.default=p},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(38);var i=r(13);var o=r(7);var s=r(66);var u=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.EditForm=s.default;t.listDataKey="logging_services";t.itemTypeName="logging service";t.urlBase="/admin/web/config/logging/";t.identifierKey="id";t.labelKey="protocol";return t}return t}(a.default);t.LoggingServices=u;function l(e,t){return{data:e.editor.loggingServices&&e.editor.loggingServices.data,responseBody:e.editor.loggingServices&&e.editor.loggingServices.successMessage,fetchError:e.editor.loggingServices.fetchError,formError:e.editor.loggingServices.formError,isFetching:e.editor.loggingServices.isFetching||e.editor.loggingServices.isEditing}}function c(e,t){var r=new o.default(null,t.csrfToken);return{fetchData:function(){return e(r.fetchLoggingServices())},editItem:function(t){return e(r.editLoggingService(t))},deleteItem:function(t){return e(r.deleteLoggingService(t))}}}var f=i.connect(l,c)(u);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)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(0);var o=r(1340);var s=r(75);var u=r(76);var l=r(136);var c=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return a.createElement("div",{className:"account"},a.createElement(s.default,null),a.createElement(o.default,{store:this.context.editorStore,csrfToken:this.context.csrfToken}),a.createElement(u.default,null))};t.prototype.UNSAFE_componentWillMount=function(){document.title=l.default("Account")};t.contextTypes={editorStore:i.object.isRequired,csrfToken:i.string.isRequired};return t}(a.Component);t.default=c},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(13);var o=r(7);var s=r(70);var u=r(31);var l=r(19);var c=r(12);var f=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.passwordRef=a.createRef();r.confirmRef=a.createRef();r.state={success:false,error:null};r.save=r.save.bind(r);return r}t.prototype.render=function(){var e=a.createElement("fieldset",{key:"change-password"},a.createElement("legend",{className:"visuallyHidden"},"Change admin's password"),a.createElement(l.default,{elementType:"input",type:"password",disabled:this.props.isFetching,name:"password",label:"New Password",ref:this.passwordRef,required:true}),a.createElement(l.default,{elementType:"input",type:"password",disabled:this.props.isFetching,name:"confirm_password",label:"Confirm New Password",ref:this.confirmRef,required:true}));return a.createElement("main",{className:"change-password-form"},a.createElement("h2",null,"Change Password"),a.createElement(c.Form,{onSubmit:this.save,content:e,disableButton:this.props.isFetching,buttonClass:"left-align",className:"border change-password-form",successText:this.state.success&&"Password changed successfully",errorText:this.props.fetchError&&a.createElement(u.default,{error:this.props.fetchError})||this.state.error,loadingText:this.props.isFetching&&a.createElement(s.default,null)}))};t.prototype.save=function(e){var t=this;if(!(e.get("password")&&e.get("confirm_password"))){this.setState({success:false,error:"Fields cannot be blank."})}else if(e.get("password")!==e.get("confirm_password")){this.setState({success:false,error:"Passwords do not match."})}else{this.props.changePassword(e).then((function(){t.setState({success:true,error:null})}))}};return t}(a.Component);t.ChangePasswordForm=f;function d(e,t){return{fetchError:e.editor.changePassword&&e.editor.changePassword.fetchError,isFetching:e.editor.changePassword&&e.editor.changePassword.isFetching}}function p(e,t){var r=new o.default(null,t.csrfToken);return{changePassword:function(t){return e(r.changePassword(t))}}}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(0);var o=r(666);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.default,{store:this.context.editorStore,csrfToken:this.context.csrfToken,settingUp:true,editOrCreate:"create"})};t.contextTypes={editorStore:i.object.isRequired,csrfToken:i.string.isRequired};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(75);var s=r(76);var u=r(1343);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(){return a.createElement("div",{className:"manage-patrons-page config"},a.createElement(o.default,null),a.createElement("main",{className:"manage-patrons"},a.createElement("h2",null,"Patron Manager"),a.createElement(u.default,{tab:this.props.params.tab,store:this.context.editorStore,csrfToken:this.context.csrfToken,library:this.props.params.library})),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.ManagePatrons=l;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)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(0);var o=r(111);var s=r(1344);var u=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.tabs=function(){var e=this.props.library&&this.context.admin.isLibraryManager(this.props.library);var t={};if(e){t["resetAdobeId"]=a.createElement(s.default,{store:this.props.store,csrfToken:this.props.csrfToken,library:this.props.library})}return t};t.prototype.handleSelect=function(e){var t=e.target.dataset.tabkey;if(this.context.router){this.context.router.push("/admin/web/patrons/"+this.props.library+"/"+t)}};t.prototype.tabClass=function(e){return this.currentTab()===e?"disabled":null};t.prototype.tabDisplayName=function(t){if(t==="resetAdobeId"){return"Reset Adobe ID"}else{return e.prototype.tabDisplayName.call(this,t)}};t.prototype.defaultTab=function(){return"resetAdobeId"};t.contextTypes={router:i.object.isRequired,pathFor:i.func.isRequired,admin:i.object.isRequired};return t}(o.TabContainer);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)}}();var a=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 i=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 o=r(1);var s=r(13);var u=r(7);var l=r(116);var c=r(1345);var f=r(19);var d=r(12);var p=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={checked:false};r.resetAdobeId=r.resetAdobeId.bind(r);r.toggleCheckbox=r.toggleCheckbox.bind(r);return r}t.prototype.render=function(){var e=this.props,t=e.patron,r=e.fetchError,n=e.responseBody;var a=!!(t&&t.authorization_identifier);return o.createElement("div",{className:"patron-actions"},o.createElement("h3",null,"Reset Adobe ID"),r&&a&&o.createElement(l.Alert,{bsStyle:"danger"},"Error: failed to reset Adobe ID for patron"," ",t.authorization_identifier),o.createElement("p",null,'You should reset a patron\'s Adobe ID only if the patron is receiving an error message similar to "Too many devices have been registered".'),o.createElement("p",null,"Instruct the patron to sign out on their device before you reset their Adobe ID."),o.createElement(c.default,{store:this.props.store,csrfToken:this.props.csrfToken,library:this.props.library}),t?o.createElement("div",{className:"reset-adobe-id"},o.createElement("p",{className:"patron-warning"},o.createElement("b",null,"IMPORTANT: Patron"," ",t&&(t.username||t.personal_name||t.authorization_identifier)," ","will lose access to any existing loans. Loans will still appear in the patron's book list until they expire, but the patron will be unable to read or return them.")),n&&o.createElement(l.Alert,{bsStyle:"success"},n,o.createElement("br",null),"Please instruct the patron to sign back into their account."),!n&&o.createElement(f.default,{type:"checkbox",name:"resetAdobeId",checked:this.state.checked,label:"Patron has been informed about this change",onChange:this.toggleCheckbox}),!n&&o.createElement(d.Button,{className:"danger",callback:this.resetAdobeId,disabled:!this.state.checked,content:"Reset Adobe ID"})):o.createElement("p",null,o.createElement("b",null,"Search for a patron to begin.")))};t.prototype.resetAdobeId=function(e){return a(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:e.preventDefault();t=new window.FormData;t.append("identifier",this.props.patron.authorization_identifier);return[4,this.props.resetAdobeId(t,this.props.library)];case 1:r.sent();this.setState({checked:false});return[2]}}))}))};t.prototype.toggleCheckbox=function(){this.setState({checked:!this.state.checked})};return t}(o.Component);t.ResetAdobeId=p;function h(e,t){var r=e.editor.patronManager&&e.editor.patronManager;return{fetchError:r&&r.fetchError,responseBody:r&&r.responseBody,patron:r&&r.data}}function v(e,t){var r=new u.default(null,t.csrfToken);return{resetAdobeId:function(t,n){return e(r.resetAdobeId(t,n))}}}var m=s.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)}}();var a=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 i=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 o=r(1);var s=r(13);var u=r(7);var l=r(12);var c=r(19);var f=r(31);var d=r(1346);var p=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.identifierRef=o.createRef();r.submit=r.submit.bind(r);return r}t.prototype.componentWillUnmount=function(){this.props.clearPatronData()};t.prototype.render=function(){var e=this.props,t=e.patron,r=e.fetchError;var n=!!t;return o.createElement("div",{className:"manage-patrons-form"},o.createElement(l.Form,{onSubmit:this.submit,className:"no-border edit-form",buttonClass:"top-align",content:o.createElement(c.default,{elementType:"input",ref:this.identifierRef,name:"identifier",label:"Identifier",className:"form-control",placeholder:"Enter the patron's identifier",required:true,error:r}),errorText:r&&!n&&o.createElement(f.default,{error:r}),successText:!r&&n&&"Patron found: "+t.authorization_identifier}),!r&&n&&o.createElement(d.default,{patron:t}))};t.prototype.submit=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.props.patronLookup(e,this.props.library)];case 1:t.sent();return[2]}}))}))};return t}(o.Component);t.ManagePatronsForm=p;function h(e,t){var r=e.editor.patronManager&&e.editor.patronManager;return{patron:r&&r.data,fetchError:r&&r.fetchError}}function v(e,t){var r=new u.default(null,t.csrfToken);return{patronLookup:function(t,n){return e(r.patronLookup(t,n))},clearPatronData:function(){return e(r.clearPatronData())}}}t.mapDispatchToProps=v;var m=s.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=function(e){n(t,e);function t(t){return e.call(this,t)||this}t.prototype.render=function(){var e=this.props.patron;return a.createElement("section",{className:"patron-info"},a.createElement("ul",{className:"patron-data-list"},e.username&&a.createElement("li",null,a.createElement("label",null,"Username:"),a.createElement("p",null,e.username)),e.personal_name&&a.createElement("li",null,a.createElement("label",null,"Personal Name:"),a.createElement("p",null,e.personal_name)),e.email_address&&a.createElement("li",null,a.createElement("label",null,"Email Address:"),a.createElement("p",null,e.email_address)),a.createElement("li",null,a.createElement("label",null,"Identifier:"),a.createElement("p",null,e.authorization_identifier))))};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(0);var o=r(75);var s=r(76);var u=r(1348);var l=r(136);var c=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.CATEGORIES={diagnostics:["coverage_provider","script","monitor","other"],"self-tests":["collections","patronAuthServices","searchServices","metadataServices"]};r.state={tab:"diagnostics",subtab:"coverage_provider"};r.goToTab=r.goToTab.bind(r);return r}t.prototype.UNSAFE_componentWillMount=function(){document.title=l.default("Troubleshooting")};t.prototype.render=function(){var e=this.props.params.tab||this.state.tab;var t=this.props.params.subtab||this.state.subtab;t=this.CATEGORIES[e].indexOf(t)>=0?t:this.CATEGORIES[e][0];return a.createElement("div",{className:"troubleshooting-page"},a.createElement(o.default,null),a.createElement("div",{className:"body"},a.createElement("h2",null,"Troubleshooting"),a.createElement(u.default,{store:this.context.editorStore,csrfToken:this.context.csrfToken,tab:e,goToTab:this.goToTab,subtab:t})),a.createElement(s.default,null))};t.prototype.goToTab=function(e){this.setState({tab:e,subtab:this.props.params.subtab})};t.contextTypes={editorStore:i.object.isRequired,csrfToken:i.string.isRequired};return t}(a.Component);t.default=c},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(111);var s=r(1349);var u=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.tabs=function(){return{diagnostics:a.createElement(s.default,{subtab:this.props.tab==="diagnostics"?this.props.subtab:"coverage_provider",type:"diagnostics"}),"self-tests":a.createElement(s.default,{subtab:this.props.tab==="self-tests"?this.props.subtab:"collections",type:"self-tests"})}};t.prototype.UNSAFE_componentWillReceiveProps=function(e){e.tab!==this.props.tab&&this.route(e.tab,e.subtab)};t.prototype.handleSelect=function(e){var t=e.currentTarget.dataset.tabkey;var r=this.props.subtab;this.props.goToTab(t);this.route(t,r)};t.prototype.route=function(e,t){if(this.context.router){this.context.router.push("/admin/web/troubleshooting/"+e+"/"+t)}};t.contextTypes={router:i.object.isRequired,pathFor:i.func.isRequired};return t}(o.TabContainer);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(1350);var s=r(1354);var u=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.CATEGORIES={diagnostics:["coverage_provider",o.default,"service-types"],"self-tests":["collections",s.default,"self-test-types"]};var n=r.CATEGORIES[r.props.type][0];r.state={tab:r.props.subtab||n};r.goToTab=r.goToTab.bind(r);return r}t.prototype.render=function(){var e=[this.CATEGORIES[this.props.type][1],this.CATEGORIES[this.props.type][2]],t=e[0],r=e[1];return a.createElement("div",{className:this.props.type+"-page"},a.createElement(t,{class:r,store:this.context.editorStore,csrfToken:this.context.csrfToken,tab:this.props.subtab||this.state.tab,goToTab:this.goToTab}))};t.prototype.goToTab=function(e){this.setState({tab:e})};t.contextTypes={editorStore:i.object.isRequired,csrfToken:i.string.isRequired};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(13);var o=r(7);var s=r(1351);var u=r(70);var l=r(31);var c=r(111);var f=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.DISPLAY_NAMES={coverage_provider:"Coverage Providers",monitor:"Monitors",script:"Scripts",other:"Other"};return t}t.prototype.UNSAFE_componentWillMount=function(){this.props.fetchDiagnostics()};t.prototype.handleSelect=function(e){var t=e.currentTarget.dataset.tabkey;this.props.goToTab(t);if(this.context.router){this.context.router.push("/admin/web/troubleshooting/diagnostics/"+t)}};t.prototype.tabDisplayName=function(t){if(this.DISPLAY_NAMES[t]){return this.DISPLAY_NAMES[t]}else{return e.prototype.tabDisplayName.call(this,t)}};t.prototype.tabs=function(){var e=this;var t={};var r=["coverage_provider","monitor","script","other"];r.forEach((function(r){var n=null;if(e.props.fetchError){n=a.createElement(l.default,{error:e.props.fetchError})}else if(!e.props.isLoaded){n=a.createElement(u.default,null)}else if(e.props.diagnostics){n=a.createElement(s.default,{type:r,services:e.props.diagnostics[r]})}t[r]=n}));return t};return t}(c.TabContainer);t.DiagnosticsTabContainer=f;function d(e,t){return{diagnostics:e.editor.diagnostics&&e.editor.diagnostics.data,isLoaded:e.editor.diagnostics.isLoaded,fetchError:e.editor.diagnostics.fetchError}}function p(e){var t=new o.default;return{fetchDiagnostics:function(){return e(t.fetchDiagnostics())}}}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(1352);var o=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;var n=r.props.services?Object.keys(r.props.services)[0]:"";r.state={tab:n};r.goToTab=r.goToTab.bind(r);return r}t.prototype.render=function(){var e=this.props.services?a.createElement(i.default,{content:this.props.services,tab:this.state.tab,goToTab:this.goToTab}):a.createElement("span",null,"There are currently no ",this.props.type.split("_").join(" ")," services.");return a.createElement("div",{className:"config services"},e)};t.prototype.goToTab=function(e){this.setState({tab:e})};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(111);var o=r(12);var s=r(1353);var u=r(622);var l=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.handleSelect=function(e){var t=e.currentTarget.dataset.tabkey;this.props.goToTab(t)};t.prototype.tabs=function(){var e=this;var t={};var r=Object.keys(this.props.content);r.forEach((function(r){t[r]=e.renderCollections(e.props.content[r])}));return t};t.prototype.tabDisplayName=function(t){var r=[].concat.apply([],Object.values(this.props.content[t]));var n=r.some((function(e){return e.exception}));var i=n?a.createElement("span",{className:"badge danger"},"!"):a.createElement(u.default,{trigger:a.createElement("span",{className:"badge"},r.length),text:"Total number of timestamps for this service"});return a.createElement("section",null,a.createElement("span",{className:"service-name"},e.prototype.tabDisplayName.call(this,t)),i)};t.prototype.renderCollections=function(e){var t=this;return Object.keys(e).map((function(r){var n=e[r];return a.createElement(o.Panel,{id:"diagnostics-"+n[0].id,key:r,headerText:r,openByDefault:n.some((function(e){return e.exception})),content:t.renderTimestamps(n)})}))};t.prototype.renderTimestamps=function(e){var t=e.map((function(e){return a.createElement("li",{className:"timestamp-holder",key:e.id},a.createElement(s.default,{timestamp:e}))}));return a.createElement("ul",{className:"timestamps"},t)};return t}(i.TabContainer);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)}}();Object.defineProperty(t,"__esModule",{value:true});var a=r(1);var i=r(12);var o=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e=this.props.timestamp;var t=a.createElement("section",{className:"well exception"},a.createElement("pre",null,e.exception));var r=a.createElement("section",{className:"well"},a.createElement("pre",null,e.achievements));var n=a.createElement("ul",null,a.createElement("li",null,"Duration: ",e.duration," seconds"),e.achievements&&a.createElement("li",null,r),e.exception&&a.createElement("li",null,t));return a.createElement(i.Panel,{id:"timestamp-"+e.id,headerText:e.start,style:e.exception?"danger":"success",content:n,collapsible:false})};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)}}();var a=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 i=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 o=r(1);var s=r(13);var u=r(7);var l=r(70);var c=r(31);var f=r(111);var d=r(1355);var p=r(0);var h=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.DISPLAY_NAMES={collections:"Collections",patronAuthServices:"Patron Authentication",searchServices:"Search Service Configuration",metadataServices:"Metadata Services"};return t}t.prototype.UNSAFE_componentWillMount=function(){this.props.fetchItems()};t.prototype.handleSelect=function(e){return a(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:t=e.currentTarget.dataset.tabkey;return[4,this.props.goToTab(t)];case 1:r.sent();if(this.context.router){this.context.router.push("/admin/web/troubleshooting/self-tests/"+t)}return[2]}}))}))};t.prototype.tabDisplayName=function(t){if(this.DISPLAY_NAMES[t]){return this.DISPLAY_NAMES[t]}else{return e.prototype.tabDisplayName.call(this,t)}};t.prototype.getNames=function(e){var t=e.split(/(?=[A-Z])/).map((function(e){return e.toLowerCase()})).join("_");var r=t.slice(0,-1);var n=e.replace("Services","");return[t,r,n]};t.prototype.tabs=function(){var e=this;var t={};var r=Object.keys(this.DISPLAY_NAMES);r.forEach((function(r){var n=e.getNames(r),a=n[0],i=n[1],s=n[2];var u=null;if(e.props.fetchError){u=o.createElement(c.default,{error:e.props.fetchError})}else if(e.props.items&&e.props.items[a]){u=o.createElement(d.default,{store:e.props.store,linkName:s,type:i,csrfToken:e.props.csrfToken,items:e.props.items[a]})}else if(!e.props.isLoaded){u=o.createElement(l.default,null)}t[r]=u}));return t};t.contextTypes={router:p.object.isRequired,pathFor:p.func.isRequired};return t}(f.TabContainer);t.SelfTestsTabContainer=h;function v(e,t){var r=t.tab;return{items:e.editor[r]&&e.editor[r].data,fetchError:e.editor[r]&&e.editor[r].fetchError,isLoaded:e.editor[r]&&e.editor[r].isLoaded}}function m(e,t){var r=new u.default;var n=["Collections","PatronAuthServices","SearchServices","MetadataServices"];return{fetchItems:function(){return n.forEach((function(t){return e(r["fetch"+t]())}))}}}var y=s.connect(v,m)(h);t.default=y},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(1356);var s=r(12);var u=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.handleUnnamed=function(){var e=this;var t=[];this.props.items.forEach((function(r){return t.push(r.name?r:a(a({},r),{name:"Unnamed "+e.props.type}))}));return t};t.prototype.render=function(){var e=this;var t=this.props.items&&this.handleUnnamed();var r=t&&t.length===1;var n=function(e){return e.self_test_results&&e.self_test_results.results||[]};var a={};t&&t.map((function(e){return a[e.name]?a[e.name].concat(n(e)):a[e.name]=n(e)}));var u=function(e){return a[e.name].some((function(e){return e.collection}))};var l=function(e){return a[e.name].length?a[e.name].every((function(e){return e.success}))?"success":"danger":"default"};var c=function(t){return i.createElement("a",{key:t.id,href:"/admin/web/config/"+e.props.linkName+"/edit/"+t.id},t.name," configuration settings")};var f=function(t){return i.createElement(o.default,{key:t.name,store:e.props.store,type:e.props.type,item:t,csrfToken:e.props.csrfToken,sortByCollection:u(t)})};return i.createElement("div",{className:"self-tests-category has-additional-content"},i.createElement("ul",null,t&&t.map((function(e){return i.createElement("li",{key:e.name},i.createElement(s.Panel,{id:e.name.replace(/\s/g,"")+"-"+e.id,style:l(e),openByDefault:r,headerText:e.name,content:[c(e),f(e)]}))}))))};return t}(i.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)}}();var a=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 i=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 o=r(1);var s=r(13);var u=r(7);var l=r(31);var c=r(1357);var f=r(34);var d=r(12);var p=r(99);var h=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.state={runTests:false,error:null,mostRecent:r.props.item};r.runSelfTests=r.runSelfTests.bind(r);r.displayByCollection=r.displayByCollection.bind(r);return r}t.prototype.componentDidMount=function(){this.props.getSelfTests()};t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=e.item&&e.item.self_test_results&&e.item.self_test_results.start;var r=this.props.item&&this.props.item.self_test_results&&this.props.item.self_test_results.start;if(!r||t>r){this.setState({mostRecent:e.item})}};t.prototype.render=function(){var e=this;var t=this.state.mostRecent;var r=t.self_test_results&&t.self_test_results.exception;var n=r&&t.self_test_results.disabled;var a=r&&r.includes("no attribute 'prior_test_results'");var i=[];var s;var u;if(a){u="There are no self test results yet."}else{u=t.self_test_results&&t.self_test_results.start?this.formatDate(t):"No self test results found."}if(t.self_test_results&&!r){i=t.self_test_results.results||[];var c=function(e){return!e.success};var f=i.some(c);s=f?o.createElement(p.XIcon,{className:"failure"}):o.createElement(p.CheckSoloIcon,{className:"success"})}var h=!!(this.props.isFetching&&this.state.runTests);var v=r&&!a?r:"";var m=o.createElement(d.Button,{callback:function(t){return e.runSelfTests(t)},disabled:n||this.props.isFetching,content:"Run tests"});var y=i.length?i.map((function(t,r){return e.makeResult(t,r,h)})):null;var g=this.props.sortByCollection&&this.displayByCollection(i,h);return o.createElement("div",{className:"integration-selftests"},o.createElement("div",null,i.length?s:null,o.createElement("p",{className:"description"},v?v:u)),m,o.createElement("div",{className:"results"},h&&o.createElement("span",null,"Running new self tests"),this.state.error&&o.createElement(l.default,{error:this.state.error}),y&&o.createElement("ul",null,o.createElement("h4",null,"Self Test Results"),g||y)))};t.prototype.formatDate=function(e){var t=new Date(e.self_test_results.start);var r=t.toDateString();var n=function(e){return("0"+e).slice(-2)};var a=[n(t.getHours()),n(t.getMinutes()),n(t.getSeconds())],i=a[0],o=a[1],s=a[2];var u=i+":"+o+":"+s;var l=e.self_test_results.duration&&e.self_test_results.duration.toFixed(2);return"Tests last ran on "+r+" "+u+" and lasted "+l+"s."};t.prototype.makeResult=function(e,t,r){return o.createElement(c.default,{key:e.collection+"-"+t,result:e,isFetching:r})};t.prototype.displayByCollection=function(e,t){var r=this;var n={};var a=function(e){return e==="undefined"};e.forEach((function(t){return n[t.collection]=e.filter((function(e){return e.collection===t.collection}))}));var i=function(e){return e.map((function(e,n){return r.makeResult(e,n,t)}))};var s=function(e){return e.every((function(e){return e.success}))?"success":"danger"};var u=Object.keys(n).map((function(e,t){var r=n[e];return o.createElement(d.Panel,{id:"collection-"+t,key:e,headerText:a(e)?"Initial Setup":e,openByDefault:a(e),content:i(r),style:s(r)})}));return u};t.prototype.runSelfTests=function(e){return a(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:e.preventDefault();this.setState({runTests:true,error:null});r.label=1;case 1:r.trys.push([1,3,,4]);return[4,this.props.runSelfTests()];case 2:r.sent();this.props.getSelfTests();this.setState({runTests:false,error:null});return[3,4];case 3:t=r.sent();this.setState({runTests:false,error:t});return[3,4];case 4:return[2]}}))}))};t.defaultProps={sortByCollection:false};return t}(o.Component);t.SelfTests=h;function v(e,t){var r=e.editor.selfTests;var n=t.item;if(r&&r.responseBody&&r.responseBody.self_test_results){if(t.type.includes(r.responseBody.self_test_results.goal)){var a=n.self_test_results&&n.self_test_results.start;var i=r.responseBody.self_test_results.self_test_results&&r.responseBody.self_test_results.self_test_results.start;if((!a||i>a)&&r.responseBody.self_test_results.id===n.id){n=r.responseBody.self_test_results}}}return{isFetching:r.isFetching,item:n}}function m(e,t){var r=new f.default;var n=new u.default(r,t.csrfToken);var a=t.item.id;var i="/admin/"+t.type.replace(/ /g,"_")+"_self_tests/"+a;return{getSelfTests:function(){return e(n.getSelfTests(i))},runSelfTests:function(){return e(n.runSelfTests(i))}}}var y=s.connect(v,m)(h);t.default=y},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(12);var o=function(e){n(t,e);function t(t){var r=e.call(this,t)||this;r.renderResult=r.renderResult.bind(r);r.renderCollapsible=r.renderCollapsible.bind(r);return r}t.prototype.render=function(){var e=this.props.result.success?"success":"failure";return a.createElement("li",{className:this.props.isFetching?"loading-self-test":e,key:this.props.result.name},a.createElement("h4",null,this.props.result.name),this.props.result.success&&this.props.result.result&&!this.props.result.result.length?a.createElement("span",{className:"warning"},"The test ran successfully, but no results were found."):null,this.props.result.result&&this.props.result.result.length?this.renderResult(this.props.result.result,e):null,a.createElement("p",{className:"success-description"},"success: ",""+this.props.result.success),!this.props.result.success&&this.props.result.exception&&a.createElement("p",{className:"exception-description"},"exception: ",this.props.result.exception.message))};t.prototype.renderResult=function(e,t){var r=Array.isArray(e);var n=r?a.createElement("ol",null,e.map((function(e,t){return a.createElement("li",{key:t},e)}))):e;var i=a.createElement("pre",{className:"result-description"},n);var o=r||e.split("\n").length>1;return o&&this.renderCollapsible(e,i,t,r)||i};t.prototype.renderCollapsible=function(e,t,r,n){var o=n?"Results ("+e.length+")":"Results";return a.createElement(i.Panel,{id:o.replace(/\s/g,""),headerText:o,content:t,style:r})};return t}(a.Component);t.default=o},function(e,t,r){"use strict";var n=r(1359);var a=r(1360);var i=r(1361);var o=a.request;var s=a.cancel;var u;var l;var c={serious:"#d93251",minor:"#d24700",text:"black"};var f={serious:"#ffb3b3",minor:"#ffd500",text:"white"};var d=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?f:c;var p="font-weight:bold;font-family:Courier;";var h="color:"+d.serious+";font-weight:bold;";var v="color:"+d.serious+";font-weight:normal;";var m="color:"+d.minor+";font-weight:bold;";var y="color:"+d.minor+";font-weight:normal;";var g="font-color:"+d.text+";font-weight:normal;";var b;var A;var _;var w;var E={};var x=[document.documentElement];var k={};function M(e,t,r){var n;return function(){var a=this;var i=[];for(var o=0;o<arguments.length;o++){i[o]=arguments[o]}var s=function(){n=null;if(!r)e.apply(a,i)};var u=r&&!n;clearTimeout(n);n=setTimeout(s,t);if(u)e.apply(this,i)}}function S(e){var t=[e];while(e&&e.nodeName.toLowerCase()!=="html"){t.push(e.parentNode);e=e.parentNode}if(!e||!e.parentNode){return null}return t.reverse()}function O(e){var t;var r;if(e.length===1){return e.pop()}while(!t&&e.length){t=S(e.pop())}while(e.length){r=S(e.pop());if(r){t=t.filter((function(e,t){return r.length>t&&r[t]===e}))}}return t?t[t.length-1]:document}function D(e,t){var r=document.querySelector(e.target.toString());if(!r){t("Selector: %c%s",p,e.target.toString())}else{t("Element: %o",r)}}function T(e){console.log("HTML: %c%s",p,e.html)}function L(e,t){var r=n._audit.data.failureSummaries[t].failureMessage(e[t].map((function(e){return e.message||""})));console.error(r)}function C(e,t){if(e[t].length>0){D(e,console.groupCollapsed);T(e);L(e,t);var r=[];e[t].forEach((function(e){r=r.concat(e.relatedNodes)}));if(r.length>0){console.groupCollapsed("Related nodes");r.forEach((function(e){D(e,console.log);T(e)}));console.groupEnd()}console.groupEnd()}}function j(e,t){if(b){s(b);b=undefined}return new Promise((function(r,a){x.push(e);b=o((function(){var e=_;if(e===undefined){e=O(x.filter((function(e){return e.isConnected})));if(e.nodeName.toLowerCase()==="html"){e=document}}n.run(e,{reporter:"v2"},(function(e,t){if(e){return a(e)}t.violations=t.violations.filter((function(e){e.nodes=e.nodes.filter((function(t){var r=t.target.toString()+e.id;var n=!k[r];k[r]=r;return n}));return!!e.nodes.length}));if(t.violations.length){console.group("%cNew axe issues",v);t.violations.forEach((function(e){var t;switch(e.impact){case"critical":t=h;break;case"serious":t=v;break;case"moderate":t=m;break;case"minor":t=y;break;default:t=y;break}console.groupCollapsed("%c%s: %c%s %s",t,e.impact,g,e.help,e.helpUrl);e.nodes.forEach((function(e){C(e,"any");C(e,"none")}));console.groupEnd()}));console.groupEnd()}r()}))}),{timeout:t})}))}function N(e){var t;try{t=l.findDOMNode(e)}catch(t){console.group("%caxe error: could not check node",h);console.group("%cComponent",v);console.error(e);console.groupEnd();console.group("%cError",v);console.error(t);console.groupEnd();console.groupEnd()}if(t){j(t,A)}}function I(e){var t=M(N,A,true);i(e,"componentDidMount",t);i(e,"componentDidUpdate",t)}function P(e){var t=e._reactInternalInstance||{};var r=t._debugID;var n=e._reactInternalFiber||{};var a=n._debugID;if(r&&!E[r]){E[r]=e;I(e)}else if(a&&!E[a]){E[a]=e;I(e)}}function R(e,t,r,a,i){u=e;l=t;A=r;_=i;if(a){n.configure(a)}if(!w){w=u.createElement;u.createElement=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=w.apply(this,e);if(r._owner&&r._owner._instance){P(r._owner._instance)}else if(r._owner&&r._owner.stateNode){P(r._owner.stateNode)}return r}}return j(document.body,A)}e.exports=R},function(e,t,r){(function(e){var n,a;var i;var i;var a;var o,a;
379
379
  /*! axe v3.5.5
380
380
  * Copyright (c) 2020 Deque Systems, Inc.
381
381
  *