#!/usr/bin/env node
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"blO6":[function(require,module,exports) {
var e=require("path"),r="win32"===process.platform,n=require("fs"),t=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function o(){var e;if(t){var r=new Error;e=function(e){e&&(r.message=e.message,n(e=r))}}else e=n;return e;function n(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var r="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(r):console.error(r)}}}}function i(e){return"function"==typeof e?e:o()}var s=e.normalize;if(r)var c=/(.*?)(?:[\/\\]+|$)/g;else c=/(.*?)(?:[\/]+|$)/g;if(r)var a=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else a=/^[\/]*/;exports.realpathSync=function(t,o){if(t=e.resolve(t),o&&Object.prototype.hasOwnProperty.call(o,t))return o[t];var i,s,l,f,u=t,p={},v={};function y(){var e=a.exec(t);i=e[0].length,s=e[0],l=e[0],f="",r&&!v[l]&&(n.lstatSync(l),v[l]=!0)}for(y();i<t.length;){c.lastIndex=i;var h=c.exec(t);if(f=s,s+=h[0],l=f+h[1],i=c.lastIndex,!(v[l]||o&&o[l]===l)){var g;if(o&&Object.prototype.hasOwnProperty.call(o,l))g=o[l];else{var x=n.lstatSync(l);if(!x.isSymbolicLink()){v[l]=!0,o&&(o[l]=l);continue}var O=null;if(!r){var S=x.dev.toString(32)+":"+x.ino.toString(32);p.hasOwnProperty(S)&&(O=p[S])}null===O&&(n.statSync(l),O=n.readlinkSync(l)),g=e.resolve(f,O),o&&(o[l]=g),r||(p[S]=O)}t=e.resolve(g,t.slice(i)),y()}}return o&&(o[u]=t),t},exports.realpath=function(t,o,s){if("function"!=typeof s&&(s=i(o),o=null),t=e.resolve(t),o&&Object.prototype.hasOwnProperty.call(o,t))return process.nextTick(s.bind(null,null,o[t]));var l,f,u,p,v=t,y={},h={};function g(){var e=a.exec(t);l=e[0].length,f=e[0],u=e[0],p="",r&&!h[u]?n.lstat(u,function(e){if(e)return s(e);h[u]=!0,x()}):process.nextTick(x)}function x(){if(l>=t.length)return o&&(o[v]=t),s(null,t);c.lastIndex=l;var e=c.exec(t);return p=f,f+=e[0],u=p+e[1],l=c.lastIndex,h[u]||o&&o[u]===u?process.nextTick(x):o&&Object.prototype.hasOwnProperty.call(o,u)?k(o[u]):n.lstat(u,O)}function O(e,t){if(e)return s(e);if(!t.isSymbolicLink())return h[u]=!0,o&&(o[u]=u),process.nextTick(x);if(!r){var i=t.dev.toString(32)+":"+t.ino.toString(32);if(y.hasOwnProperty(i))return S(null,y[i],u)}n.stat(u,function(e){if(e)return s(e);n.readlink(u,function(e,n){r||(y[i]=n),S(e,n)})})}function S(r,n,t){if(r)return s(r);var i=e.resolve(p,n);o&&(o[t]=i),k(i)}function k(r){t=e.resolve(r,t.slice(l)),g()}g()};
},{}],"yIgM":[function(require,module,exports) {
module.exports=l,l.realpath=l,l.sync=u,l.realpathSync=u,l.monkeypatch=p,l.unmonkeypatch=h;var t=require("fs"),e=t.realpath,r=t.realpathSync,n=process.version,a=/^v[0-5]\./.test(n),c=require("./old.js");function o(t){return t&&"realpath"===t.syscall&&("ELOOP"===t.code||"ENOMEM"===t.code||"ENAMETOOLONG"===t.code)}function l(t,r,n){if(a)return e(t,r,n);"function"==typeof r&&(n=r,r=null),e(t,r,function(e,a){o(e)?c.realpath(t,r,n):n(e,a)})}function u(t,e){if(a)return r(t,e);try{return r(t,e)}catch(n){if(o(n))return c.realpathSync(t,e);throw n}}function p(){t.realpath=l,t.realpathSync=u}function h(){t.realpath=e,t.realpathSync=r}
},{"./old.js":"blO6"}],"bQx9":[function(require,module,exports) {
module.exports=function(t,o){for(var a=[],e=0;e<t.length;e++){var n=o(t[e],e);r(n)?a.push.apply(a,n):a.push(n)}return a};var r=Array.isArray||function(r){return"[object Array]"===Object.prototype.toString.call(r)};
},{}],"D9yG":[function(require,module,exports) {
"use strict";function e(e,r,i){e instanceof RegExp&&(e=n(e,i)),r instanceof RegExp&&(r=n(r,i));var o=t(e,r,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+r.length)}}function n(e,n){var t=n.match(e);return t?t[0]:null}function t(e,n,t){var r,i,o,f,l,s=t.indexOf(e),c=t.indexOf(n,s+1),p=s;if(s>=0&&c>0){for(r=[],o=t.length;p>=0&&!l;)p==s?(r.push(p),s=t.indexOf(e,p+1)):1==r.length?l=[r.pop(),c]:((i=r.pop())<o&&(o=i,f=c),c=t.indexOf(n,p+1)),p=s<c&&s>=0?s:c;r.length&&(l=[o,f])}return l}module.exports=e,e.range=t;
},{}],"dwXQ":[function(require,module,exports) {
var t=require("concat-map"),r=require("balanced-match");module.exports=f;var n="\0SLASH"+Math.random()+"\0",e="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",a="\0PERIOD"+Math.random()+"\0";function s(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function p(t){return t.split("\\\\").join(n).split("\\{").join(e).split("\\}").join(i).split("\\,").join(o).split("\\.").join(a)}function u(t){return t.split(n).join("\\").split(e).join("{").split(i).join("}").split(o).join(",").split(a).join(".")}function l(t){if(!t)return[""];var n=[],e=r("{","}",t);if(!e)return t.split(",");var i=e.pre,o=e.body,a=e.post,s=i.split(",");s[s.length-1]+="{"+o+"}";var p=l(a);return a.length&&(s[s.length-1]+=p.shift(),s.push.apply(s,p)),n.push.apply(n,s),n}function f(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),m(p(t),!0).map(u)):[]}function h(t){return t}function d(t){return"{"+t+"}"}function c(t){return/^-?0\d/.test(t)}function v(t,r){return t<=r}function g(t,r){return t>=r}function m(n,e){var o=[],a=r("{","}",n);if(!a||/\$$/.test(a.pre))return[n];var p,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),h=u||f,b=a.body.indexOf(",")>=0;if(!h&&!b)return a.post.match(/,.*\}/)?m(n=a.pre+"{"+a.body+i+a.post):[n];if(h)p=a.body.split(/\.\./);else if(1===(p=l(a.body)).length&&1===(p=m(p[0],!1).map(d)).length)return(M=a.post.length?m(a.post,!1):[""]).map(function(t){return a.pre+p[0]+t});var j,y=a.pre,M=a.post.length?m(a.post,!1):[""];if(h){var A=s(p[0]),C=s(p[1]),O=Math.max(p[0].length,p[1].length),S=3==p.length?Math.abs(s(p[2])):1,$=v;C<A&&(S*=-1,$=g);var x=p.some(c);j=[];for(var E=A;$(E,C);E+=S){var I;if(f)"\\"===(I=String.fromCharCode(E))&&(I="");else if(I=String(E),x){var q=O-I.length;if(q>0){var z=new Array(q+1).join("0");I=E<0?"-"+z+I.slice(1):z+I}}j.push(I)}}else j=t(p,function(t){return m(t,!1)});for(var L=0;L<j.length;L++)for(var P=0;P<M.length;P++){var Z=y+j[L]+M[P];(!e||h||Z)&&o.push(Z)}return o}
},{"concat-map":"bQx9","balanced-match":"D9yG"}],"NtKi":[function(require,module,exports) {
module.exports=g,g.Minimatch=l;var t={sep:"/"};try{t=require("path")}catch(O){}var e=g.GLOBSTAR=l.GLOBSTAR={},n=require("brace-expansion"),r={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},i="[^/]",s=i+"*?",a="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",o="(?:(?!(?:\\/|^)\\.).)*?",h=c("().*{}+?[]^$\\!");function c(t){return t.split("").reduce(function(t,e){return t[e]=!0,t},{})}var u=/\/+/;function p(t,e){return e=e||{},function(n,r,i){return g(n,t,e)}}function f(t,e){t=t||{},e=e||{};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}function g(t,e,n){if("string"!=typeof e)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===e.charAt(0))&&(""===e.trim()?""===t:new l(e,n).match(t))}function l(e,n){if(!(this instanceof l))return new l(e,n);if("string"!=typeof e)throw new TypeError("glob pattern string required");n||(n={}),e=e.trim(),"/"!==t.sep&&(e=e.split(t.sep).join("/")),this.options=n,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function d(){if(!this._made){var t=this.pattern,e=this.options;if(e.nocomment||"#"!==t.charAt(0))if(t){this.parseNegate();var n=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error),this.debug(this.pattern,n),n=this.globParts=n.map(function(t){return t.split(u)}),this.debug(this.pattern,n),n=n.map(function(t,e,n){return t.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(t){return-1===t.indexOf(!1)}),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0}}function b(){var t=this.pattern,e=!1,n=0;if(!this.options.nonegate){for(var r=0,i=t.length;r<i&&"!"===t.charAt(r);r++)e=!e,n++;n&&(this.pattern=t.substr(n)),this.negate=e}}function m(t,e){if(e||(e=this instanceof l?this.options:{}),void 0===(t=void 0===t?this.pattern:t))throw new TypeError("undefined pattern");return e.nobrace||!t.match(/\{.*\}/)?[t]:n(t)}g.filter=p,g.defaults=function(t){if(!t||!Object.keys(t).length)return g;var e=g,n=function(n,r,i){return e.minimatch(n,r,f(t,i))};return n.Minimatch=function(n,r){return new e.Minimatch(n,f(t,r))},n},l.defaults=function(t){return t&&Object.keys(t).length?g.defaults(t).Minimatch:l},l.prototype.debug=function(){},l.prototype.make=d,l.prototype.parseNegate=b,g.braceExpand=function(t,e){return m(t,e)},l.prototype.braceExpand=m,l.prototype.parse=y;var v={};function y(t,n){if(t.length>65536)throw new TypeError("pattern is too long");var a=this.options;if(!a.noglobstar&&"**"===t)return e;if(""===t)return"";var o,c="",u=!!a.nocase,p=!1,f=[],g=[],l=!1,d=-1,b=-1,m="."===t.charAt(0)?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",y=this;function w(){if(o){switch(o){case"*":c+=s,u=!0;break;case"?":c+=i,u=!0;break;default:c+="\\"+o}y.debug("clearStateChar %j %j",o,c),o=!1}}for(var x,j=0,k=t.length;j<k&&(x=t.charAt(j));j++)if(this.debug("%s\t%s %s %j",t,j,c,x),p&&h[x])c+="\\"+x,p=!1;else switch(x){case"/":return!1;case"\\":w(),p=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",t,j,c,x),l){this.debug("  in class"),"!"===x&&j===b+1&&(x="^"),c+=x;continue}y.debug("call clearStateChar %j",o),w(),o=x,a.noext&&w();continue;case"(":if(l){c+="(";continue}if(!o){c+="\\(";continue}f.push({type:o,start:j-1,reStart:c.length,open:r[o].open,close:r[o].close}),c+="!"===o?"(?:(?!(?:":"(?:",this.debug("plType %j %j",o,c),o=!1;continue;case")":if(l||!f.length){c+="\\)";continue}w(),u=!0;var A=f.pop();c+=A.close,"!"===A.type&&g.push(A),A.reEnd=c.length;continue;case"|":if(l||!f.length||p){c+="\\|",p=!1;continue}w(),c+="|";continue;case"[":if(w(),l){c+="\\"+x;continue}l=!0,b=j,d=c.length,c+=x;continue;case"]":if(j===b+1||!l){c+="\\"+x,p=!1;continue}if(l){var S=t.substring(b+1,j);try{RegExp("["+S+"]")}catch(O){var $=this.parse(S,v);c=c.substr(0,d)+"\\["+$[0]+"\\]",u=u||$[1],l=!1;continue}}u=!0,l=!1,c+=x;continue;default:w(),p?p=!1:!h[x]||"^"===x&&l||(c+="\\"),c+=x}for(l&&(S=t.substr(b+1),$=this.parse(S,v),c=c.substr(0,d)+"\\["+$[0],u=u||$[1]),A=f.pop();A;A=f.pop()){var R=c.slice(A.reStart+A.open.length);this.debug("setting tail",c,A),R=R.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(t,e,n){return n||(n="\\"),e+e+n+"|"}),this.debug("tail=%j\n   %s",R,R,A,c);var T="*"===A.type?s:"?"===A.type?i:"\\"+A.type;u=!0,c=c.slice(0,A.reStart)+T+"\\("+R}w(),p&&(c+="\\\\");var C=!1;switch(c.charAt(0)){case".":case"[":case"(":C=!0}for(var L=g.length-1;L>-1;L--){var q=g[L],B=c.slice(0,q.reStart),M=c.slice(q.reStart,q.reEnd-8),N=c.slice(q.reEnd-8,q.reEnd),_=c.slice(q.reEnd);N+=_;var G=B.split("(").length-1,P=_;for(j=0;j<G;j++)P=P.replace(/\)[+*?]?/,"");var z="";""===(_=P)&&n!==v&&(z="$"),c=B+M+_+z+N}if(""!==c&&u&&(c="(?=.)"+c),C&&(c=m+c),n===v)return[c,u];if(!u)return E(t);var D=a.nocase?"i":"";try{var F=new RegExp("^"+c+"$",D)}catch(O){return new RegExp("$.")}return F._glob=t,F._src=c,F}function w(){if(this.regexp||!1===this.regexp)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var n=this.options,r=n.noglobstar?s:n.dot?a:o,i=n.nocase?"i":"",h=t.map(function(t){return t.map(function(t){return t===e?r:"string"==typeof t?j(t):t._src}).join("\\/")}).join("|");h="^(?:"+h+")$",this.negate&&(h="^(?!"+h+").*$");try{this.regexp=new RegExp(h,i)}catch(c){this.regexp=!1}return this.regexp}function x(e,n){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&n)return!0;var r=this.options;"/"!==t.sep&&(e=e.split(t.sep).join("/")),e=e.split(u),this.debug(this.pattern,"split",e);var i,s,a=this.set;for(this.debug(this.pattern,"set",a),s=e.length-1;s>=0&&!(i=e[s]);s--);for(s=0;s<a.length;s++){var o=a[s],h=e;if(r.matchBase&&1===o.length&&(h=[i]),this.matchOne(h,o,n))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate}function E(t){return t.replace(/\\(.)/g,"$1")}function j(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}g.makeRe=function(t,e){return new l(t,e||{}).makeRe()},l.prototype.makeRe=w,g.match=function(t,e,n){var r=new l(e,n=n||{});return t=t.filter(function(t){return r.match(t)}),r.options.nonull&&!t.length&&t.push(e),t},l.prototype.match=x,l.prototype.matchOne=function(t,n,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:n}),this.debug("matchOne",t.length,n.length);for(var s=0,a=0,o=t.length,h=n.length;s<o&&a<h;s++,a++){this.debug("matchOne loop");var c,u=n[a],p=t[s];if(this.debug(n,u,p),!1===u)return!1;if(u===e){this.debug("GLOBSTAR",[n,u,p]);var f=s,g=a+1;if(g===h){for(this.debug("** at the end");s<o;s++)if("."===t[s]||".."===t[s]||!i.dot&&"."===t[s].charAt(0))return!1;return!0}for(;f<o;){var l=t[f];if(this.debug("\nglobstar while",t,f,n,g,l),this.matchOne(t.slice(f),n.slice(g),r))return this.debug("globstar found match!",f,o,l),!0;if("."===l||".."===l||!i.dot&&"."===l.charAt(0)){this.debug("dot detected!",t,f,n,g);break}this.debug("globstar swallow a segment, and continue"),f++}return!(!r||(this.debug("\n>>> no match, partial?",t,f,n,g),f!==o))}if("string"==typeof u?(c=i.nocase?p.toLowerCase()===u.toLowerCase():p===u,this.debug("string match",u,p,c)):(c=p.match(u),this.debug("pattern match",u,p,c)),!c)return!1}if(s===o&&a===h)return!0;if(s===o)return r;if(a===h)return s===o-1&&""===t[s];throw new Error("wtf?")};
},{"brace-expansion":"dwXQ"}],"Bm0n":[function(require,module,exports) {
"function"==typeof Object.create?module.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:module.exports=function(t,e){if(e){t.super_=e;var o=function(){};o.prototype=e.prototype,t.prototype=new o,t.prototype.constructor=t}};
},{}],"ZRWM":[function(require,module,exports) {
try{var r=require("util");if("function"!=typeof r.inherits)throw"";module.exports=r.inherits}catch(e){module.exports=require("./inherits_browser.js")}
},{"./inherits_browser.js":"Bm0n"}],"EZ8j":[function(require,module,exports) {
"use strict";function o(o){return"/"===o.charAt(0)}function e(o){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(o),r=e[1]||"",t=Boolean(r&&":"!==r.charAt(1));return Boolean(e[2]||t)}module.exports="win32"===process.platform?e:o,module.exports.posix=o,module.exports.win32=e;
},{}],"Ugrp":[function(require,module,exports) {
function e(e,r){return Object.prototype.hasOwnProperty.call(e,r)}exports.alphasort=c,exports.alphasorti=a,exports.setopts=l,exports.ownProp=e,exports.makeAbs=m,exports.finish=h,exports.mark=u,exports.isIgnored=p,exports.childrenIgnored=g;var r=require("path"),t=require("minimatch"),o=require("path-is-absolute"),n=t.Minimatch;function a(e,r){return e.toLowerCase().localeCompare(r.toLowerCase())}function c(e,r){return e.localeCompare(r)}function s(e,r){e.ignore=r.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(i))}function i(e){var r=null;if("/**"===e.slice(-3)){var t=e.replace(/(\/\*\*)+$/,"");r=new n(t,{dot:!0})}return{matcher:new n(e,{dot:!0}),gmatcher:r}}function l(t,a,c){if(c||(c={}),c.matchBase&&-1===a.indexOf("/")){if(c.noglobstar)throw new Error("base matching requires globstar");a="**/"+a}t.silent=!!c.silent,t.pattern=a,t.strict=!1!==c.strict,t.realpath=!!c.realpath,t.realpathCache=c.realpathCache||Object.create(null),t.follow=!!c.follow,t.dot=!!c.dot,t.mark=!!c.mark,t.nodir=!!c.nodir,t.nodir&&(t.mark=!0),t.sync=!!c.sync,t.nounique=!!c.nounique,t.nonull=!!c.nonull,t.nosort=!!c.nosort,t.nocase=!!c.nocase,t.stat=!!c.stat,t.noprocess=!!c.noprocess,t.absolute=!!c.absolute,t.maxLength=c.maxLength||1/0,t.cache=c.cache||Object.create(null),t.statCache=c.statCache||Object.create(null),t.symlinks=c.symlinks||Object.create(null),s(t,c),t.changedCwd=!1;var i=process.cwd();e(c,"cwd")?(t.cwd=r.resolve(c.cwd),t.changedCwd=t.cwd!==i):t.cwd=i,t.root=c.root||r.resolve(t.cwd,"/"),t.root=r.resolve(t.root),"win32"===process.platform&&(t.root=t.root.replace(/\\/g,"/")),t.cwdAbs=o(t.cwd)?t.cwd:m(t,t.cwd),"win32"===process.platform&&(t.cwdAbs=t.cwdAbs.replace(/\\/g,"/")),t.nomount=!!c.nomount,c.nonegate=!0,c.nocomment=!0,t.minimatch=new n(a,c),t.options=t.minimatch.options}function h(e){for(var r=e.nounique,t=r?[]:Object.create(null),o=0,n=e.matches.length;o<n;o++){var s=e.matches[o];if(s&&0!==Object.keys(s).length){var i=Object.keys(s);r?t.push.apply(t,i):i.forEach(function(e){t[e]=!0})}else if(e.nonull){var l=e.minimatch.globSet[o];r?t.push(l):t[l]=!0}}if(r||(t=Object.keys(t)),e.nosort||(t=t.sort(e.nocase?a:c)),e.mark){for(o=0;o<t.length;o++)t[o]=e._mark(t[o]);e.nodir&&(t=t.filter(function(r){var t=!/\/$/.test(r),o=e.cache[r]||e.cache[m(e,r)];return t&&o&&(t="DIR"!==o&&!Array.isArray(o)),t}))}e.ignore.length&&(t=t.filter(function(r){return!p(e,r)})),e.found=t}function u(e,r){var t=m(e,r),o=e.cache[t],n=r;if(o){var a="DIR"===o||Array.isArray(o),c="/"===r.slice(-1);if(a&&!c?n+="/":!a&&c&&(n=n.slice(0,-1)),n!==r){var s=m(e,n);e.statCache[s]=e.statCache[t],e.cache[s]=e.cache[t]}}return n}function m(e,t){var n=t;return n="/"===t.charAt(0)?r.join(e.root,t):o(t)||""===t?t:e.changedCwd?r.resolve(e.cwd,t):r.resolve(t),"win32"===process.platform&&(n=n.replace(/\\/g,"/")),n}function p(e,r){return!!e.ignore.length&&e.ignore.some(function(e){return e.matcher.match(r)||!(!e.gmatcher||!e.gmatcher.match(r))})}function g(e,r){return!!e.ignore.length&&e.ignore.some(function(e){return!(!e.gmatcher||!e.gmatcher.match(r))})}
},{"minimatch":"NtKi","path-is-absolute":"EZ8j"}],"pKwN":[function(require,module,exports) {
module.exports=y,y.GlobSync=_;var t=require("fs"),r=require("fs.realpath"),i=require("minimatch"),s=i.Minimatch,e=require("./glob.js").Glob,a=require("util"),h=require("path"),c=require("assert"),o=require("path-is-absolute"),n=require("./common.js"),l=n.alphasort,f=n.alphasorti,u=n.setopts,p=n.ownProp,d=n.childrenIgnored,m=n.isIgnored;function y(t,r){if("function"==typeof r||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new _(t,r).found}function _(t,r){if(!t)throw new Error("must provide pattern");if("function"==typeof r||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof _))return new _(t,r);if(u(this,t,r),this.noprocess)return this;var i=this.minimatch.set.length;this.matches=new Array(i);for(var s=0;s<i;s++)this._process(this.minimatch.set[s],s,!1);this._finish()}_.prototype._finish=function(){if(c(this instanceof _),this.realpath){var t=this;this.matches.forEach(function(i,s){var e=t.matches[s]=Object.create(null);for(var a in i)try{a=t._makeAbs(a),e[r.realpathSync(a,t.realpathCache)]=!0}catch(h){if("stat"!==h.syscall)throw h;e[t._makeAbs(a)]=!0}})}n.finish(this)},_.prototype._process=function(t,r,s){c(this instanceof _);for(var e,a=0;"string"==typeof t[a];)a++;switch(a){case t.length:return void this._processSimple(t.join("/"),r);case 0:e=null;break;default:e=t.slice(0,a).join("/")}var h,n=t.slice(a);null===e?h=".":o(e)||o(t.join("/"))?(e&&o(e)||(e="/"+e),h=e):h=e;var l=this._makeAbs(h);d(this,h)||(n[0]===i.GLOBSTAR?this._processGlobStar(e,h,l,n,r,s):this._processReaddir(e,h,l,n,r,s))},_.prototype._processReaddir=function(t,r,i,s,e,a){var c=this._readdir(i,a);if(c){for(var o=s[0],n=!!this.minimatch.negate,l=o._glob,f=this.dot||"."===l.charAt(0),u=[],p=0;p<c.length;p++){if("."!==(y=c[p]).charAt(0)||f)(n&&!t?!y.match(o):y.match(o))&&u.push(y)}var d=u.length;if(0!==d)if(1!==s.length||this.mark||this.stat){s.shift();for(p=0;p<d;p++){var m;y=u[p];m=t?[t,y]:[y],this._process(m.concat(s),e,a)}}else{this.matches[e]||(this.matches[e]=Object.create(null));for(var p=0;p<d;p++){var y=u[p];t&&(y="/"!==t.slice(-1)?t+"/"+y:t+y),"/"!==y.charAt(0)||this.nomount||(y=h.join(this.root,y)),this._emitMatch(e,y)}}}},_.prototype._emitMatch=function(t,r){if(!m(this,r)){var i=this._makeAbs(r);if(this.mark&&(r=this._mark(r)),this.absolute&&(r=i),!this.matches[t][r]){if(this.nodir){var s=this.cache[i];if("DIR"===s||Array.isArray(s))return}this.matches[t][r]=!0,this.stat&&this._stat(r)}}},_.prototype._readdirInGlobStar=function(r){if(this.follow)return this._readdir(r,!1);var i,s;try{s=t.lstatSync(r)}catch(a){if("ENOENT"===a.code)return null}var e=s&&s.isSymbolicLink();return this.symlinks[r]=e,e||!s||s.isDirectory()?i=this._readdir(r,!1):this.cache[r]="FILE",i},_.prototype._readdir=function(r,i){if(i&&!p(this.symlinks,r))return this._readdirInGlobStar(r);if(p(this.cache,r)){var s=this.cache[r];if(!s||"FILE"===s)return null;if(Array.isArray(s))return s}try{return this._readdirEntries(r,t.readdirSync(r))}catch(e){return this._readdirError(r,e),null}},_.prototype._readdirEntries=function(t,r){if(!this.mark&&!this.stat)for(var i=0;i<r.length;i++){var s=r[i];s="/"===t?t+s:t+"/"+s,this.cache[s]=!0}return this.cache[t]=r,r},_.prototype._readdirError=function(t,r){switch(r.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(t);if(this.cache[i]="FILE",i===this.cwdAbs){var s=new Error(r.code+" invalid cwd "+this.cwd);throw s.path=this.cwd,s.code=r.code,s}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:if(this.cache[this._makeAbs(t)]=!1,this.strict)throw r;this.silent||console.error("glob error",r)}},_.prototype._processGlobStar=function(t,r,i,s,e,a){var h=this._readdir(i,a);if(h){var c=s.slice(1),o=t?[t]:[],n=o.concat(c);this._process(n,e,!1);var l=h.length;if(!this.symlinks[i]||!a)for(var f=0;f<l;f++){if("."!==h[f].charAt(0)||this.dot){var u=o.concat(h[f],c);this._process(u,e,!0);var p=o.concat(h[f],s);this._process(p,e,!0)}}}},_.prototype._processSimple=function(t,r){var i=this._stat(t);if(this.matches[r]||(this.matches[r]=Object.create(null)),i){if(t&&o(t)&&!this.nomount){var s=/[\/\\]$/.test(t);"/"===t.charAt(0)?t=h.join(this.root,t):(t=h.resolve(this.root,t),s&&(t+="/"))}"win32"===process.platform&&(t=t.replace(/\\/g,"/")),this._emitMatch(r,t)}},_.prototype._stat=function(r){var i=this._makeAbs(r),s="/"===r.slice(-1);if(r.length>this.maxLength)return!1;if(!this.stat&&p(this.cache,i)){var e=this.cache[i];if(Array.isArray(e)&&(e="DIR"),!s||"DIR"===e)return e;if(s&&"FILE"===e)return!1}var a=this.statCache[i];if(!a){var h;try{h=t.lstatSync(i)}catch(c){if(c&&("ENOENT"===c.code||"ENOTDIR"===c.code))return this.statCache[i]=!1,!1}if(h&&h.isSymbolicLink())try{a=t.statSync(i)}catch(c){a=h}else a=h}this.statCache[i]=a;e=!0;return a&&(e=a.isDirectory()?"DIR":"FILE"),this.cache[i]=this.cache[i]||e,(!s||"FILE"!==e)&&e},_.prototype._mark=function(t){return n.mark(this,t)},_.prototype._makeAbs=function(t){return n.makeAbs(this,t)};
},{"fs.realpath":"yIgM","minimatch":"NtKi","./glob.js":"EkKO","path-is-absolute":"EZ8j","./common.js":"Ugrp"}],"l1Gb":[function(require,module,exports) {
function n(e,r){if(e&&r)return n(e)(r);if("function"!=typeof e)throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(n){t[n]=e[n]}),t;function t(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];var t=e.apply(this,n),o=n[n.length-1];return"function"==typeof t&&t!==o&&Object.keys(o).forEach(function(n){t[n]=o[n]}),t}}module.exports=n;
},{}],"t8WW":[function(require,module,exports) {
var e=require("wrappy");function r(e){var r=function(){return r.called?r.value:(r.called=!0,r.value=e.apply(this,arguments))};return r.called=!1,r}function n(e){var r=function(){if(r.called)throw new Error(r.onceError);return r.called=!0,r.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return r.onceError=n+" shouldn't be called more than once",r.called=!1,r}module.exports=e(r),module.exports.strict=e(n),r.proto=r(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return r(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return n(this)},configurable:!0})});
},{"wrappy":"l1Gb"}],"Xj0R":[function(require,module,exports) {
var n=require("wrappy"),e=Object.create(null),r=require("once");function l(n,r){return e[n]?(e[n].push(r),null):(e[n]=[r],t(n))}function t(n){return r(function r(){var l=e[n],t=l.length,c=u(arguments);try{for(var o=0;o<t;o++)l[o].apply(null,c)}finally{l.length>t?(l.splice(0,t),process.nextTick(function(){r.apply(null,c)})):delete e[n]}})}function u(n){for(var e=n.length,r=[],l=0;l<e;l++)r[l]=n[l];return r}module.exports=n(l);
},{"wrappy":"l1Gb","once":"t8WW"}],"EkKO":[function(require,module,exports) {
module.exports=g;var t=require("fs"),i=require("fs.realpath"),r=require("minimatch"),e=r.Minimatch,s=require("inherits"),n=require("events").EventEmitter,a=require("path"),h=require("assert"),o=require("path-is-absolute"),c=require("./sync.js"),u=require("./common.js"),f=u.alphasort,p=u.alphasorti,l=u.setopts,d=u.ownProp,_=require("inflight"),m=require("util"),v=u.childrenIgnored,y=u.isIgnored,b=require("once");function g(t,i,r){if("function"==typeof i&&(r=i,i={}),i||(i={}),i.sync){if(r)throw new TypeError("callback provided to sync glob");return c(t,i)}return new A(t,i,r)}g.sync=c;var E=g.GlobSync=c.GlobSync;function k(t,i){if(null===i||"object"!=typeof i)return t;for(var r=Object.keys(i),e=r.length;e--;)t[r[e]]=i[r[e]];return t}function A(t,i,r){if("function"==typeof i&&(r=i,i=null),i&&i.sync){if(r)throw new TypeError("callback provided to sync glob");return new E(t,i)}if(!(this instanceof A))return new A(t,i,r);l(this,t,i),this._didRealPath=!1;var e=this.minimatch.set.length;this.matches=new Array(e),"function"==typeof r&&(r=b(r),this.on("error",r),this.on("end",function(t){r(null,t)}));var s=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===e)return h();for(var n=!0,a=0;a<e;a++)this._process(this.minimatch.set[a],a,!1,h);function h(){--s._processing,s._processing<=0&&(n?process.nextTick(function(){s._finish()}):s._finish())}n=!1}function w(t,i,r){return function(e,s){e?t._readdirError(i,e,r):t._readdirEntries(i,s,r)}}g.glob=g,g.hasMagic=function(t,i){var r=k({},i);r.noprocess=!0;var e=new A(t,r).minimatch.set;if(!t)return!1;if(e.length>1)return!0;for(var s=0;s<e[0].length;s++)if("string"!=typeof e[0][s])return!0;return!1},g.Glob=A,s(A,n),A.prototype._finish=function(){if(h(this instanceof A),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();u.finish(this),this.emit("end",this.found)}},A.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var t=this.matches.length;if(0===t)return this._finish();for(var i=this,r=0;r<this.matches.length;r++)this._realpathSet(r,e)}function e(){0==--t&&i._finish()}},A.prototype._realpathSet=function(t,r){var e=this.matches[t];if(!e)return r();var s=Object.keys(e),n=this,a=s.length;if(0===a)return r();var h=this.matches[t]=Object.create(null);s.forEach(function(e,s){e=n._makeAbs(e),i.realpath(e,n.realpathCache,function(i,s){i?"stat"===i.syscall?h[e]=!0:n.emit("error",i):h[s]=!0,0==--a&&(n.matches[t]=h,r())})})},A.prototype._mark=function(t){return u.mark(this,t)},A.prototype._makeAbs=function(t){return u.makeAbs(this,t)},A.prototype.abort=function(){this.aborted=!0,this.emit("abort")},A.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},A.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var i=0;i<t.length;i++){var r=t[i];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var e=this._processQueue.slice(0);this._processQueue.length=0;for(i=0;i<e.length;i++){var s=e[i];this._processing--,this._process(s[0],s[1],s[2],s[3])}}}},A.prototype._process=function(t,i,e,s){if(h(this instanceof A),h("function"==typeof s),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([t,i,e,s]);else{for(var n,a=0;"string"==typeof t[a];)a++;switch(a){case t.length:return void this._processSimple(t.join("/"),i,s);case 0:n=null;break;default:n=t.slice(0,a).join("/")}var c,u=t.slice(a);null===n?c=".":o(n)||o(t.join("/"))?(n&&o(n)||(n="/"+n),c=n):c=n;var f=this._makeAbs(c);if(v(this,c))return s();u[0]===r.GLOBSTAR?this._processGlobStar(n,c,f,u,i,e,s):this._processReaddir(n,c,f,u,i,e,s)}},A.prototype._processReaddir=function(t,i,r,e,s,n,a){var h=this;this._readdir(r,n,function(o,c){return h._processReaddir2(t,i,r,e,s,n,c,a)})},A.prototype._processReaddir2=function(t,i,r,e,s,n,h,o){if(!h)return o();for(var c=e[0],u=!!this.minimatch.negate,f=c._glob,p=this.dot||"."===f.charAt(0),l=[],d=0;d<h.length;d++){if("."!==(m=h[d]).charAt(0)||p)(u&&!t?!m.match(c):m.match(c))&&l.push(m)}var _=l.length;if(0===_)return o();if(1===e.length&&!this.mark&&!this.stat){this.matches[s]||(this.matches[s]=Object.create(null));for(d=0;d<_;d++){var m=l[d];t&&(m="/"!==t?t+"/"+m:t+m),"/"!==m.charAt(0)||this.nomount||(m=a.join(this.root,m)),this._emitMatch(s,m)}return o()}e.shift();for(d=0;d<_;d++){m=l[d];t&&(m="/"!==t?t+"/"+m:t+m),this._process([m].concat(e),s,n,o)}o()},A.prototype._emitMatch=function(t,i){if(!this.aborted&&!y(this,i))if(this.paused)this._emitQueue.push([t,i]);else{var r=o(i)?i:this._makeAbs(i);if(this.mark&&(i=this._mark(i)),this.absolute&&(i=r),!this.matches[t][i]){if(this.nodir){var e=this.cache[r];if("DIR"===e||Array.isArray(e))return}this.matches[t][i]=!0;var s=this.statCache[r];s&&this.emit("stat",i,s),this.emit("match",i)}}},A.prototype._readdirInGlobStar=function(i,r){if(!this.aborted){if(this.follow)return this._readdir(i,!1,r);var e=this,s=_("lstat\0"+i,function(t,s){if(t&&"ENOENT"===t.code)return r();var n=s&&s.isSymbolicLink();e.symlinks[i]=n,n||!s||s.isDirectory()?e._readdir(i,!1,r):(e.cache[i]="FILE",r())});s&&t.lstat(i,s)}},A.prototype._readdir=function(i,r,e){if(!this.aborted&&(e=_("readdir\0"+i+"\0"+r,e))){if(r&&!d(this.symlinks,i))return this._readdirInGlobStar(i,e);if(d(this.cache,i)){var s=this.cache[i];if(!s||"FILE"===s)return e();if(Array.isArray(s))return e(null,s)}t.readdir(i,w(this,i,e))}},A.prototype._readdirEntries=function(t,i,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var e=0;e<i.length;e++){var s=i[e];s="/"===t?t+s:t+"/"+s,this.cache[s]=!0}return this.cache[t]=i,r(null,i)}},A.prototype._readdirError=function(t,i,r){if(!this.aborted){switch(i.code){case"ENOTSUP":case"ENOTDIR":var e=this._makeAbs(t);if(this.cache[e]="FILE",e===this.cwdAbs){var s=new Error(i.code+" invalid cwd "+this.cwd);s.path=this.cwd,s.code=i.code,this.emit("error",s),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:this.cache[this._makeAbs(t)]=!1,this.strict&&(this.emit("error",i),this.abort()),this.silent||console.error("glob error",i)}return r()}},A.prototype._processGlobStar=function(t,i,r,e,s,n,a){var h=this;this._readdir(r,n,function(o,c){h._processGlobStar2(t,i,r,e,s,n,c,a)})},A.prototype._processGlobStar2=function(t,i,r,e,s,n,a,h){if(!a)return h();var o=e.slice(1),c=t?[t]:[],u=c.concat(o);this._process(u,s,!1,h);var f=this.symlinks[r],p=a.length;if(f&&n)return h();for(var l=0;l<p;l++){if("."!==a[l].charAt(0)||this.dot){var d=c.concat(a[l],o);this._process(d,s,!0,h);var _=c.concat(a[l],e);this._process(_,s,!0,h)}}h()},A.prototype._processSimple=function(t,i,r){var e=this;this._stat(t,function(s,n){e._processSimple2(t,i,s,n,r)})},A.prototype._processSimple2=function(t,i,r,e,s){if(this.matches[i]||(this.matches[i]=Object.create(null)),!e)return s();if(t&&o(t)&&!this.nomount){var n=/[\/\\]$/.test(t);"/"===t.charAt(0)?t=a.join(this.root,t):(t=a.resolve(this.root,t),n&&(t+="/"))}"win32"===process.platform&&(t=t.replace(/\\/g,"/")),this._emitMatch(i,t),s()},A.prototype._stat=function(i,r){var e=this._makeAbs(i),s="/"===i.slice(-1);if(i.length>this.maxLength)return r();if(!this.stat&&d(this.cache,e)){var n=this.cache[e];if(Array.isArray(n)&&(n="DIR"),!s||"DIR"===n)return r(null,n);if(s&&"FILE"===n)return r()}var a=this.statCache[e];if(void 0!==a){if(!1===a)return r(null,a);var h=a.isDirectory()?"DIR":"FILE";return s&&"FILE"===h?r():r(null,h,a)}var o=this,c=_("stat\0"+e,function(s,n){if(n&&n.isSymbolicLink())return t.stat(e,function(t,s){t?o._stat2(i,e,null,n,r):o._stat2(i,e,t,s,r)});o._stat2(i,e,s,n,r)});c&&t.lstat(e,c)},A.prototype._stat2=function(t,i,r,e,s){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[i]=!1,s();var n="/"===t.slice(-1);if(this.statCache[i]=e,"/"===i.slice(-1)&&e&&!e.isDirectory())return s(null,!1,e);var a=!0;return e&&(a=e.isDirectory()?"DIR":"FILE"),this.cache[i]=this.cache[i]||a,n&&"FILE"===a?s():s(null,a,e)};
},{"fs.realpath":"yIgM","minimatch":"NtKi","inherits":"ZRWM","path-is-absolute":"EZ8j","./sync.js":"pKwN","./common.js":"Ugrp","inflight":"Xj0R","once":"t8WW"}],"epB2":[function(require,module,exports) {
var n={};!function(n){"use strict";n["Control.Alt"]=n["Control.Alt"]||{};var e=n["Control.Alt"];e.Alt=function(n,e){this.Functor0=n,this.alt=e},e.alt=function(n){return n.alt}}(n),function(n){"use strict";n["Control.Alternative"]=n["Control.Alternative"]||{};n["Control.Alternative"].Alternative=function(n,e){this.Applicative0=n,this.Plus1=e}}(n),function(e){"use strict";(n["Control.Apply"]=n["Control.Apply"]||{}).arrayApply=function(n){return function(e){for(var t=n.length,r=e.length,a=new Array(t*r),o=0,u=0;u<t;u++)for(var i=n[u],c=0;c<r;c++)a[o++]=i(e[c]);return a}}}(),function(n){"use strict";n["Control.Semigroupoid"]=n["Control.Semigroupoid"]||{};var e=n["Control.Semigroupoid"],t=new function(n){this.compose=n}(function(n){return function(e){return function(t){return n(e(t))}}});e.compose=function(n){return n.compose},e.semigroupoidFn=t}(n),function(n){"use strict";n["Control.Category"]=n["Control.Category"]||{};var e=n["Control.Category"],t=n["Control.Semigroupoid"],r=new function(n,e){this.Semigroupoid0=n,this.identity=e}(function(){return t.semigroupoidFn},function(n){return n});e.identity=function(n){return n.identity},e.categoryFn=r}(n),function(n){"use strict";n["Data.Function"]=n["Data.Function"]||{};var e=n["Data.Function"];e.flip=function(n){return function(e){return function(t){return n(t)(e)}}},e.const=function(n){return function(e){return n}},e.applyFlipped=function(n){return function(e){return e(n)}},e.on=function(n){return function(e){return function(t){return function(r){return n(e(t))(e(r))}}}}}(n),function(e){"use strict";(n["Data.Functor"]=n["Data.Functor"]||{}).arrayMap=function(n){return function(e){for(var t=e.length,r=new Array(t),a=0;a<t;a++)r[a]=n(e[a]);return r}}}(),function(e){"use strict";(n["Data.Unit"]=n["Data.Unit"]||{}).unit={}}(),function(n){"use strict";n["Data.Unit"]=n["Data.Unit"]||{};var e=n["Data.Unit"],t=n["Data.Unit"];e.unit=t.unit}(n),function(n){"use strict";n["Data.Functor"]=n["Data.Functor"]||{};var e=n["Data.Functor"],t=n["Data.Functor"],r=n["Control.Semigroupoid"],a=n["Data.Function"],o=n["Data.Unit"],u=function(n){this.map=n},i=function(n){return n.map},c=new u(r.compose(r.semigroupoidFn)),l=new u(t.arrayMap);e.Functor=u,e.map=i,e.mapFlipped=function(n){return function(e){return function(t){return i(n)(t)(e)}}},e.void=function(n){return i(n)(a.const(o.unit))},e.voidRight=function(n){return function(e){return i(n)(a.const(e))}},e.voidLeft=function(n){return function(e){return function(t){return i(n)(a.const(t))(e)}}},e.functorFn=c,e.functorArray=l}(n),function(n){"use strict";n["Control.Apply"]=n["Control.Apply"]||{};var e=n["Control.Apply"],t=n["Control.Apply"],r=n["Control.Category"],a=n["Data.Function"],o=n["Data.Functor"],u=function(n,e){this.Functor0=n,this.apply=e},i=new u(function(){return o.functorArray},t.arrayApply),c=function(n){return n.apply};e.Apply=u,e.apply=c,e.applyFirst=function(n){return function(e){return function(t){return c(n)(o.map(n.Functor0())(a.const)(e))(t)}}},e.applySecond=function(n){return function(e){return function(t){return c(n)(o.map(n.Functor0())(a.const(r.identity(r.categoryFn)))(e))(t)}}},e.lift2=function(n){return function(e){return function(t){return function(r){return c(n)(o.map(n.Functor0())(e)(t))(r)}}}},e.applyArray=i}(n),function(n){"use strict";n["Control.Applicative"]=n["Control.Applicative"]||{};var e=n["Control.Applicative"],t=n["Control.Apply"],r=n["Data.Unit"],a=function(n,e){this.Apply0=n,this.pure=e},o=function(n){return n.pure},u=new a(function(){return t.applyArray},function(n){return[n]});e.Applicative=a,e.pure=o,e.liftA1=function(n){return function(e){return function(r){return t.apply(n.Apply0())(o(n)(e))(r)}}},e.when=function(n){return function(e){return function(t){if(e)return t;if(!e)return o(n)(r.unit);throw new Error("Failed pattern match at Control.Applicative (line 57, column 1 - line 57, column 63): "+[e.constructor.name,t.constructor.name])}}},e.applicativeArray=u}(n),function(e){"use strict";(n["Control.Bind"]=n["Control.Bind"]||{}).arrayBind=function(n){return function(e){for(var t=[],r=0,a=n.length;r<a;r++)Array.prototype.push.apply(t,e(n[r]));return t}}}(),function(n){"use strict";n["Control.Bind"]=n["Control.Bind"]||{};var e=n["Control.Bind"],t=n["Control.Bind"],r=n["Control.Apply"],a=n["Control.Category"],o=n["Data.Function"],u=function(n,e){this.Apply0=n,this.bind=e},i=new u(function(){return r.applyArray},t.arrayBind),c=function(n){return n.bind},l=function(n){return o.flip(c(n))},f=new function(n){this.discard=n}(function(n){return c(n)});e.Bind=u,e.bind=c,e.bindFlipped=l,e.discard=function(n){return n.discard},e.join=function(n){return function(e){return c(n)(e)(a.identity(a.categoryFn))}},e.composeKleisli=function(n){return function(e){return function(t){return function(r){return c(n)(e(r))(t)}}}},e.composeKleisliFlipped=function(n){return function(e){return function(t){return function(r){return l(n)(e)(t(r))}}}},e.bindArray=i,e.discardUnit=f}(n),function(n){"use strict";n["Control.Lazy"]=n["Control.Lazy"]||{};var e=n["Control.Lazy"],t=function(n){return n.defer};e.defer=t,e.Lazy=function(n){this.defer=n},e.fix=function(n){return function(e){var r=t(n)(function(n){return e(r)});return r}}}(n),function(n){"use strict";n["Control.Monad"]=n["Control.Monad"]||{};var e=n["Control.Monad"],t=n["Control.Applicative"],r=n["Control.Bind"];e.Monad=function(n,e){this.Applicative0=n,this.Bind1=e},e.liftM1=function(n){return function(e){return function(a){return r.bind(n.Bind1())(a)(function(r){return t.pure(n.Applicative0())(e(r))})}}},e.ap=function(n){return function(e){return function(a){return r.bind(n.Bind1())(e)(function(e){return r.bind(n.Bind1())(a)(function(r){return t.pure(n.Applicative0())(e(r))})})}}},e.whenM=function(n){return function(e){return function(a){return r.bind(n.Bind1())(e)(function(e){return t.when(n.Applicative0())(e)(a)})}}}}(n),function(n){"use strict";n["Control.Monad.Error.Class"]=n["Control.Monad.Error.Class"]||{};var e=n["Control.Monad.Error.Class"];e.throwError=function(n){return n.throwError},e.MonadThrow=function(n,e){this.Monad0=n,this.throwError=e}}(n),function(n){"use strict";n["Control.Monad.Trans.Class"]=n["Control.Monad.Trans.Class"]||{};var e=n["Control.Monad.Trans.Class"];e.lift=function(n){return n.lift},e.MonadTrans=function(n){this.lift=n}}(n),function(n){"use strict";n["Control.Plus"]=n["Control.Plus"]||{};var e=n["Control.Plus"];e.Plus=function(n,e){this.Alt0=n,this.empty=e},e.empty=function(n){return n.empty}}(n),function(n){"use strict";n["Data.Bifunctor"]=n["Data.Bifunctor"]||{};var e=n["Data.Bifunctor"],t=n["Control.Category"],r=function(n){return n.bimap};e.bimap=r,e.Bifunctor=function(n){this.bimap=n},e.lmap=function(n){return function(e){return r(n)(e)(t.identity(t.categoryFn))}}}(n),function(n){"use strict";n["Control.MonadZero"]=n["Control.MonadZero"]||{};var e=n["Control.MonadZero"],t=n["Control.Applicative"],r=n["Control.Plus"],a=n["Data.Unit"];e.MonadZero=function(n,e){this.Alternative1=n,this.Monad0=e},e.guard=function(n){return function(e){if(e)return t.pure(n.Alternative1().Applicative0())(a.unit);if(!e)return r.empty(n.Alternative1().Plus1());throw new Error("Failed pattern match at Control.MonadZero (line 54, column 1 - line 54, column 52): "+[e.constructor.name])}}}(n),function(n){"use strict";var e=function(n){return function(e){return n===e}};n.eqBooleanImpl=e,n.eqIntImpl=e,n.eqCharImpl=e,n.eqStringImpl=e}(n["Data.Eq"]=n["Data.Eq"]||{}),function(n){"use strict";n["Data.Eq"]=n["Data.Eq"]||{};var e=n["Data.Eq"],t=n["Data.Eq"],r=function(n){this.eq=n},a=new r(t.eqStringImpl),o=new r(t.eqIntImpl),u=new r(t.eqCharImpl),i=new r(t.eqBooleanImpl),c=function(n){return n.eq};e.Eq=r,e.eq=c,e.notEq=function(n){return function(e){return function(t){return c(i)(c(n)(e)(t))(!1)}}},e.Eq1=function(n){this.eq1=n},e.eq1=function(n){return n.eq1},e.eqInt=o,e.eqChar=u,e.eqString=a}(n),function(n){"use strict";n.concatString=function(n){return function(e){return n+e}},n.concatArray=function(n){return function(e){return 0===n.length?e:0===e.length?n:n.concat(e)}}}(n["Data.Semigroup"]=n["Data.Semigroup"]||{}),function(n){"use strict";n["Data.Symbol"]=n["Data.Symbol"]||{};var e=n["Data.Symbol"],t=function(){function n(){}return n.value=new n,n}();e.IsSymbol=function(n){this.reflectSymbol=n},e.reflectSymbol=function(n){return n.reflectSymbol},e.SProxy=t}(n),function(n){"use strict";n.unsafeGet=function(n){return function(e){return e[n]}},n.unsafeSet=function(n){return function(e){return function(t){var r={};for(var a in t)({}).hasOwnProperty.call(t,a)&&(r[a]=t[a]);return r[n]=e,r}}}}(n["Record.Unsafe"]=n["Record.Unsafe"]||{}),function(n){"use strict";n["Record.Unsafe"]=n["Record.Unsafe"]||{};var e=n["Record.Unsafe"],t=n["Record.Unsafe"];e.unsafeGet=t.unsafeGet,e.unsafeSet=t.unsafeSet}(n),function(n){"use strict";n["Type.Data.RowList"]=n["Type.Data.RowList"]||{};var e=n["Type.Data.RowList"],t=function(){function n(){}return n.value=new n,n}();e.RLProxy=t}(n),function(n){"use strict";n["Data.Semigroup"]=n["Data.Semigroup"]||{};var e=n["Data.Semigroup"],t=n["Data.Semigroup"],r=n["Data.Symbol"],a=n["Data.Unit"],o=n["Record.Unsafe"],u=n["Type.Data.RowList"],i=function(n){this.appendRecord=n},c=function(n){this.append=n},l=new c(function(n){return function(n){return a.unit}}),f=new c(t.concatString),s=new i(function(n){return function(n){return function(n){return{}}}}),p=new c(t.concatArray),d=function(n){return n.appendRecord},v=function(n){return n.append};e.Semigroup=c,e.append=v,e.semigroupString=f,e.semigroupUnit=l,e.semigroupFn=function(n){return new c(function(e){return function(t){return function(r){return v(n)(e(r))(t(r))}}})},e.semigroupArray=p,e.semigroupRecord=function(n){return function(n){return new c(d(n)(u.RLProxy.value))}},e.semigroupRecordNil=s,e.semigroupRecordCons=function(n){return function(e){return function(e){return function(t){return new i(function(a){return function(a){return function(i){var c=d(e)(u.RLProxy.value)(a)(i),l=r.reflectSymbol(n)(r.SProxy.value),f=o.unsafeSet(l),s=o.unsafeGet(l);return f(v(t)(s(a))(s(i)))(c)}}})}}}}}(n),function(n){"use strict";n["Data.Monoid"]=n["Data.Monoid"]||{};var e=n["Data.Monoid"],t=n["Data.Semigroup"],r=n["Data.Symbol"],a=n["Data.Unit"],o=n["Record.Unsafe"],u=n["Type.Data.RowList"],i=function(n,e){this.SemigroupRecord0=n,this.memptyRecord=e},c=function(n,e){this.Semigroup0=n,this.mempty=e},l=new c(function(){return t.semigroupUnit},a.unit),f=new c(function(){return t.semigroupString},""),s=new i(function(){return t.semigroupRecordNil},function(n){return{}}),p=new c(function(){return t.semigroupArray},[]),d=function(n){return n.memptyRecord},v=function(n){return n.mempty};e.Monoid=c,e.mempty=v,e.monoidUnit=l,e.monoidString=f,e.monoidArray=p,e.monoidRecord=function(n){return function(n){return new c(function(){return t.semigroupRecord()(n.SemigroupRecord0())},d(n)(u.RLProxy.value))}},e.monoidRecordNil=s,e.monoidRecordCons=function(n){return function(e){return function(a){return function(a){return new i(function(){return t.semigroupRecordCons(n)()(a.SemigroupRecord0())(e.Semigroup0())},function(t){var i=d(a)(u.RLProxy.value),c=r.reflectSymbol(n)(r.SProxy.value);return o.unsafeSet(c)(v(e))(i)})}}}}}(n),function(n){"use strict";var e=function(n){return function(e){return function(t){return function(r){return function(a){return r<a?n:r===a?e:t}}}}};n.ordIntImpl=e,n.ordStringImpl=e,n.ordCharImpl=e}(n["Data.Ord"]=n["Data.Ord"]||{}),function(n){"use strict";n["Data.Ordering"]=n["Data.Ordering"]||{};var e=n["Data.Ordering"],t=n["Data.Eq"],r=n["Data.Semigroup"],a=function(){function n(){}return n.value=new n,n}(),o=function(){function n(){}return n.value=new n,n}(),u=function(){function n(){}return n.value=new n,n}(),i=new r.Semigroup(function(n){return function(e){if(n instanceof a)return a.value;if(n instanceof o)return o.value;if(n instanceof u)return e;throw new Error("Failed pattern match at Data.Ordering (line 21, column 1 - line 24, column 18): "+[n.constructor.name,e.constructor.name])}}),c=new t.Eq(function(n){return function(e){return n instanceof a&&e instanceof a||(n instanceof o&&e instanceof o||n instanceof u&&e instanceof u)}});e.LT=a,e.GT=o,e.EQ=u,e.eqOrdering=c,e.semigroupOrdering=i}(n),function(e){"use strict";(n["Data.Ring"]=n["Data.Ring"]||{}).intSub=function(n){return function(e){return n-e|0}}}(),function(n){"use strict";n.intAdd=function(n){return function(e){return n+e|0}},n.intMul=function(n){return function(e){return n*e|0}}}(n["Data.Semiring"]=n["Data.Semiring"]||{}),function(n){"use strict";n["Data.Semiring"]=n["Data.Semiring"]||{};var e=n["Data.Semiring"],t=n["Data.Semiring"],r=function(n,e,t,r){this.add=n,this.mul=e,this.one=t,this.zero=r},a=new r(t.intAdd,t.intMul,1,0);e.Semiring=r,e.add=function(n){return n.add},e.zero=function(n){return n.zero},e.one=function(n){return n.one},e.semiringInt=a}(n),function(n){"use strict";n["Data.Ring"]=n["Data.Ring"]||{};var e=n["Data.Ring"],t=n["Data.Ring"],r=n["Data.Semiring"],a=new function(n,e){this.Semiring0=n,this.sub=e}(function(){return r.semiringInt},t.intSub);e.negate=function(n){return function(e){return n.sub(r.zero(n.Semiring0()))(e)}},e.ringInt=a}(n),function(n){"use strict";n["Data.Ord"]=n["Data.Ord"]||{};var e=n["Data.Ord"],t=n["Data.Ord"],r=n["Data.Eq"],a=n["Data.Ordering"],o=n["Data.Ring"],u=n["Data.Semiring"],i=function(n,e){this.Eq0=n,this.compare=e},c=new i(function(){return r.eqString},t.ordStringImpl(a.LT.value)(a.EQ.value)(a.GT.value)),l=new i(function(){return r.eqInt},t.ordIntImpl(a.LT.value)(a.EQ.value)(a.GT.value)),f=new i(function(){return r.eqChar},t.ordCharImpl(a.LT.value)(a.EQ.value)(a.GT.value)),s=function(n){return n.compare};e.Ord=i,e.compare=s,e.Ord1=function(n,e){this.Eq10=n,this.compare1=e},e.compare1=function(n){return n.compare1},e.greaterThan=function(n){return function(e){return function(t){return s(n)(e)(t)instanceof a.GT}}},e.comparing=function(n){return function(e){return function(t){return function(r){return s(n)(e(t))(e(r))}}}},e.min=function(n){return function(e){return function(t){var r=s(n)(e)(t);if(r instanceof a.LT)return e;if(r instanceof a.EQ)return e;if(r instanceof a.GT)return t;throw new Error("Failed pattern match at Data.Ord (line 158, column 3 - line 161, column 12): "+[r.constructor.name])}}},e.max=function(n){return function(e){return function(t){var r=s(n)(e)(t);if(r instanceof a.LT)return t;if(r instanceof a.EQ)return e;if(r instanceof a.GT)return e;throw new Error("Failed pattern match at Data.Ord (line 167, column 3 - line 170, column 12): "+[r.constructor.name])}}},e.abs=function(n){return function(e){return function(t){return function(n){return function(e){return function(t){return!(s(n)(e)(t)instanceof a.LT)}}}(n)(t)(u.zero(e.Semiring0()))?t:o.negate(e)(t)}}},e.ordInt=l,e.ordString=c,e.ordChar=f}(n),function(n){"use strict";n["Data.Maybe"]=n["Data.Maybe"]||{};var e=n["Data.Maybe"],t=n["Control.Alt"],r=n["Control.Alternative"],a=n["Control.Applicative"],o=n["Control.Apply"],u=n["Control.Bind"],i=n["Control.Category"],c=n["Control.Monad"],l=n["Control.MonadZero"],f=n["Control.Plus"],s=n["Data.Eq"],p=n["Data.Function"],d=n["Data.Functor"],v=n["Data.Monoid"],m=n["Data.Ord"],w=n["Data.Ordering"],h=n["Data.Semigroup"],y=function(){function n(){}return n.value=new n,n}(),g=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),D=function(n){return function(e){return function(t){if(t instanceof y)return n;if(t instanceof g)return e(t.value0);throw new Error("Failed pattern match at Data.Maybe (line 217, column 1 - line 217, column 51): "+[n.constructor.name,e.constructor.name,t.constructor.name])}}},b=D(!0)(p.const(!1)),C=D(!1)(p.const(!0)),S=new d.Functor(function(n){return function(e){return e instanceof g?new g(n(e.value0)):y.value}}),A=function(n){return new s.Eq(function(e){return function(t){return e instanceof y&&t instanceof y||e instanceof g&&t instanceof g&&s.eq(n)(e.value0)(t.value0)}})},E=new o.Apply(function(){return S},function(n){return function(e){if(n instanceof g)return d.map(S)(n.value0)(e);if(n instanceof y)return y.value;throw new Error("Failed pattern match at Data.Maybe (line 67, column 1 - line 69, column 30): "+[n.constructor.name,e.constructor.name])}}),F=new u.Bind(function(){return E},function(n){return function(e){if(n instanceof g)return e(n.value0);if(n instanceof y)return y.value;throw new Error("Failed pattern match at Data.Maybe (line 125, column 1 - line 127, column 28): "+[n.constructor.name,e.constructor.name])}}),T=new a.Applicative(function(){return E},g.create),M=new c.Monad(function(){return T},function(){return F}),P=new t.Alt(function(){return S},function(n){return function(e){return n instanceof y?e:n}}),I=new f.Plus(function(){return P},y.value),N=new r.Alternative(function(){return T},function(){return I}),J=new l.MonadZero(function(){return N},function(){return M});e.Nothing=y,e.Just=g,e.maybe=D,e.fromMaybe=function(n){return D(n)(i.identity(i.categoryFn))},e.isJust=C,e.isNothing=b,e.fromJust=function(n){return function(n){if(n instanceof g)return n.value0;throw new Error("Failed pattern match at Data.Maybe (line 268, column 1 - line 268, column 46): "+[n.constructor.name])}},e.optional=function(n){return function(e){return t.alt(n.Plus1().Alt0())(d.map(n.Plus1().Alt0().Functor0())(g.create)(e))(a.pure(n.Applicative0())(y.value))}},e.functorMaybe=S,e.applyMaybe=E,e.applicativeMaybe=T,e.altMaybe=P,e.bindMaybe=F,e.monadZeroMaybe=J,e.monoidMaybe=function(n){return new v.Monoid(function(){return function(n){return new h.Semigroup(function(e){return function(t){if(e instanceof y)return t;if(t instanceof y)return e;if(e instanceof g&&t instanceof g)return new g(h.append(n)(e.value0)(t.value0));throw new Error("Failed pattern match at Data.Maybe (line 174, column 1 - line 177, column 43): "+[e.constructor.name,t.constructor.name])}})}(n)},y.value)},e.eqMaybe=A,e.ordMaybe=function(n){return new m.Ord(function(){return A(n.Eq0())},function(e){return function(t){if(e instanceof y&&t instanceof y)return w.EQ.value;if(e instanceof y)return w.LT.value;if(t instanceof y)return w.GT.value;if(e instanceof g&&t instanceof g)return m.compare(n)(e.value0)(t.value0);throw new Error("Failed pattern match at Data.Maybe (line 194, column 1 - line 194, column 51): "+[e.constructor.name,t.constructor.name])}})}}(n),function(n){"use strict";n["Data.Either"]=n["Data.Either"]||{};var e=n["Data.Either"],t=n["Control.Alt"],r=n["Control.Applicative"],a=n["Control.Apply"],o=n["Control.Bind"],u=n["Control.Monad"],i=n["Data.Bifunctor"],c=n["Data.Function"],l=n["Data.Functor"],f=n["Data.Maybe"],s=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),p=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),d=new l.Functor(function(n){return function(e){if(e instanceof s)return new s(e.value0);if(e instanceof p)return new p(n(e.value0));throw new Error("Failed pattern match at Data.Either (line 38, column 1 - line 38, column 52): "+[e.constructor.name])}}),v=function(n){return function(e){return function(t){if(t instanceof s)return n(t.value0);if(t instanceof p)return e(t.value0);throw new Error("Failed pattern match at Data.Either (line 238, column 1 - line 238, column 64): "+[n.constructor.name,e.constructor.name,t.constructor.name])}}},m=v(c.const(f.Nothing.value))(f.Just.create),w=new i.Bifunctor(function(n){return function(e){return function(t){if(t instanceof s)return new s(n(t.value0));if(t instanceof p)return new p(e(t.value0));throw new Error("Failed pattern match at Data.Either (line 46, column 1 - line 48, column 36): "+[n.constructor.name,e.constructor.name,t.constructor.name])}}}),h=new a.Apply(function(){return d},function(n){return function(e){if(n instanceof s)return new s(n.value0);if(n instanceof p)return l.map(d)(n.value0)(e);throw new Error("Failed pattern match at Data.Either (line 82, column 1 - line 84, column 30): "+[n.constructor.name,e.constructor.name])}}),y=new o.Bind(function(){return h},v(function(n){return function(e){return new s(n)}})(function(n){return function(e){return e(n)}})),g=new r.Applicative(function(){return h},p.create),D=new u.Monad(function(){return g},function(){return y}),b=new t.Alt(function(){return d},function(n){return function(e){return n instanceof s?e:n}});e.Left=s,e.Right=p,e.either=v,e.note=function(n){return f.maybe(new s(n))(p.create)},e.hush=m,e.functorEither=d,e.bifunctorEither=w,e.applicativeEither=g,e.altEither=b,e.bindEither=y,e.monadEither=D}(n),function(n){"use strict";n["Control.Monad.Except.Trans"]=n["Control.Monad.Except.Trans"]||{};var e=n["Control.Monad.Except.Trans"],t=n["Control.Alt"],r=n["Control.Applicative"],a=n["Control.Apply"],o=n["Control.Bind"],u=n["Control.Monad"],i=n["Control.Monad.Error.Class"],c=n["Control.Monad.Trans.Class"],l=n["Control.Plus"],f=n["Data.Either"],s=n["Data.Functor"],p=n["Data.Monoid"],d=n["Data.Semigroup"],v=function(n){return n},m=new c.MonadTrans(function(n){return function(e){return o.bind(n.Bind1())(e)(function(e){return r.pure(n.Applicative0())(new f.Right(e))})}}),w=function(n){return new s.Functor(function(e){return function(n){return function(e){return n(e)}}(s.map(n)(s.map(f.functorEither)(e)))})},h=function(n){return new u.Monad(function(){return D(n)},function(){return y(n)})},y=function(n){return new o.Bind(function(){return g(n)},function(e){return function(t){return o.bind(n.Bind1())(e)(f.either((a=r.pure(n.Applicative0()),function(n){return a(f.Left.create(n))}))(function(n){return t(n)}));var a}})},g=function(n){return new a.Apply(function(){return w(n.Bind1().Apply0().Functor0())},u.ap(h(n)))},D=function(n){return new r.Applicative(function(){return g(n)},(e=r.pure(n.Applicative0()),function(n){return v(e(f.Right.create(n)))}));var e},b=function(n){return new i.MonadThrow(function(){return h(n)},(e=r.pure(n.Applicative0()),function(n){return v(e(f.Left.create(n)))}));var e},C=function(n){return function(e){return new t.Alt(function(){return w(e.Bind1().Apply0().Functor0())},function(t){return function(a){return o.bind(e.Bind1())(t)(function(t){if(t instanceof f.Right)return r.pure(e.Applicative0())(new f.Right(t.value0));if(t instanceof f.Left)return o.bind(e.Bind1())(a)(function(a){if(a instanceof f.Right)return r.pure(e.Applicative0())(new f.Right(a.value0));if(a instanceof f.Left)return r.pure(e.Applicative0())(new f.Left(d.append(n)(t.value0)(a.value0)));throw new Error("Failed pattern match at Control.Monad.Except.Trans (line 86, column 9 - line 88, column 49): "+[a.constructor.name])});throw new Error("Failed pattern match at Control.Monad.Except.Trans (line 82, column 5 - line 88, column 49): "+[t.constructor.name])})}})}};e.runExceptT=function(n){return n},e.withExceptT=function(n){return function(e){return function(t){var r;return v(s.map(n)((r=e,function(n){if(n instanceof f.Right)return new f.Right(n.value0);if(n instanceof f.Left)return new f.Left(r(n.value0));throw new Error("Failed pattern match at Control.Monad.Except.Trans (line 42, column 3 - line 42, column 32): "+[r.constructor.name,n.constructor.name])}))(t))}}},e.functorExceptT=w,e.applyExceptT=g,e.applicativeExceptT=D,e.bindExceptT=y,e.monadExceptT=h,e.altExceptT=C,e.plusExceptT=function(n){return function(e){return new l.Plus(function(){return C(n.Semigroup0())(e)},i.throwError(b(e))(p.mempty(n)))}},e.monadTransExceptT=m,e.monadThrowExceptT=b}(n),function(n){"use strict";n.boolConj=function(n){return function(e){return n&&e}},n.boolDisj=function(n){return function(e){return n||e}},n.boolNot=function(n){return!n}}(n["Data.HeytingAlgebra"]=n["Data.HeytingAlgebra"]||{}),function(n){"use strict";n["Data.HeytingAlgebra"]=n["Data.HeytingAlgebra"]||{};var e=n["Data.HeytingAlgebra"],t=n["Data.HeytingAlgebra"],r=function(n){return n.not},a=function(n){return n.disj},o=new function(n,e,t,r,a,o){this.conj=n,this.disj=e,this.ff=t,this.implies=r,this.not=a,this.tt=o}(t.boolConj,t.boolDisj,!1,function(n){return function(e){return a(o)(r(o)(n))(e)}},t.boolNot,!0);e.ff=function(n){return n.ff},e.disj=a,e.not=r,e.heytingAlgebraBoolean=o}(n),function(n){"use strict";n["Data.Monoid.Disj"]=n["Data.Monoid.Disj"]||{};var e=n["Data.Monoid.Disj"],t=n["Data.HeytingAlgebra"],r=n["Data.Monoid"],a=n["Data.Semigroup"];e.Disj=function(n){return n},e.monoidDisj=function(n){return new r.Monoid(function(){return function(n){return new a.Semigroup(function(e){return function(r){return t.disj(n)(e)(r)}})}(n)},t.ff(n))}}(n),function(n){"use strict";n["Data.Newtype"]=n["Data.Newtype"]||{};var e=n["Data.Newtype"],t=n["Data.Functor"],r=n["Data.Monoid.Disj"],a=function(n,e){this.unwrap=n,this.wrap=e},o=function(n){return n.wrap},u=function(n){return n.unwrap},i=new a(function(n){return n},r.Disj);e.unwrap=u,e.wrap=o,e.Newtype=a,e.un=function(n){return function(e){return u(n)}},e.ala=function(n){return function(e){return function(r){return function(a){return function(a){return t.map(n)(u(e))(a(o(r)))}}}}},e.alaF=function(n){return function(e){return function(r){return function(a){return function(i){return function(i){var c=t.map(e)(u(a)),l=t.map(n)(o(r));return function(n){return c(i(l(n)))}}}}}}},e.over=function(n){return function(e){return function(t){return function(t){var r=o(e),a=u(n);return function(n){return r(t(a(n)))}}}}},e.newtypeDisj=i}(n),function(n){"use strict";n["Data.Identity"]=n["Data.Identity"]||{};var e=n["Data.Identity"],t=n["Control.Applicative"],r=n["Control.Apply"],a=n["Control.Bind"],o=n["Control.Monad"],u=n["Data.Functor"],i=function(n){return n},c=new n["Data.Newtype"].Newtype(function(n){return n},i),l=new u.Functor(function(n){return function(e){return n(e)}}),f=new r.Apply(function(){return l},function(n){return function(e){return n(e)}}),s=new a.Bind(function(){return f},function(n){return function(e){return e(n)}}),p=new t.Applicative(function(){return f},i),d=new o.Monad(function(){return p},function(){return s});e.Identity=i,e.newtypeIdentity=c,e.functorIdentity=l,e.applicativeIdentity=p,e.monadIdentity=d}(n),function(n){"use strict";n["Control.Monad.Except"]=n["Control.Monad.Except"]||{};var e,t=n["Control.Monad.Except"],r=n["Control.Monad.Except.Trans"],a=n["Data.Identity"],o=n["Data.Newtype"],u=r.withExceptT(a.functorIdentity),i=(e=o.unwrap(a.newtypeIdentity),function(n){return e(r.runExceptT(n))});t.runExcept=i,t.withExcept=u}(n),function(n){"use strict";n["Control.Monad.Rec.Class"]=n["Control.Monad.Rec.Class"]||{};var e=n["Control.Monad.Rec.Class"],t=n["Data.Bifunctor"],r=n["Data.Either"],a=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),o=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),u=function(n,e){this.Monad0=n,this.tailRecM=e},i=function(n){return n.tailRecM},c=function(n){return function(e){return function(e){var t,r=!1;function u(t){if(!(t instanceof a)){if(t instanceof o)return r=!0,t.value0;throw new Error("Failed pattern match at Control.Monad.Rec.Class (line 93, column 3 - line 93, column 25): "+[t.constructor.name])}e=n(t.value0)}for(;!r;)t=u(e);return t}(n(e))}},l=new u(function(){return r.monadEither},function(n){return function(e){return c(function(e){if(e instanceof r.Left)return new o(new r.Left(e.value0));if(e instanceof r.Right&&e.value0 instanceof a)return new a(n(e.value0.value0));if(e instanceof r.Right&&e.value0 instanceof o)return new o(new r.Right(e.value0.value0));throw new Error("Failed pattern match at Control.Monad.Rec.Class (line 121, column 7 - line 121, column 33): "+[e.constructor.name])})(n(e))}}),f=new t.Bifunctor(function(n){return function(e){return function(t){if(t instanceof a)return new a(n(t.value0));if(t instanceof o)return new o(e(t.value0));throw new Error("Failed pattern match at Control.Monad.Rec.Class (line 29, column 1 - line 31, column 34): "+[n.constructor.name,e.constructor.name,t.constructor.name])}}});e.Loop=a,e.Done=o,e.MonadRec=u,e.tailRecM=i,e.tailRecM2=function(n){return function(e){return function(t){return function(r){return i(n)(function(n){return e(n.a)(n.b)})({a:t,b:r})}}}},e.bifunctorStep=f,e.monadRecEither=l}(n),function(n){"use strict";n["Data.Boolean"]=n["Data.Boolean"]||{};n["Data.Boolean"].otherwise=!0}(n),function(n){"use strict";n.foldrArray=function(n){return function(e){return function(t){for(var r=e,a=t.length-1;a>=0;a--)r=n(t[a])(r);return r}}},n.foldlArray=function(n){return function(e){return function(t){for(var r=e,a=t.length,o=0;o<a;o++)r=n(r)(t[o]);return r}}}}(n["Data.Foldable"]=n["Data.Foldable"]||{}),function(n){"use strict";n["Data.Foldable"]=n["Data.Foldable"]||{};var e=n["Data.Foldable"],t=n["Data.Foldable"],r=n["Control.Alt"],a=n["Control.Applicative"],o=n["Control.Apply"],u=n["Control.Category"],i=n["Control.Plus"],c=n["Data.Eq"],l=n["Data.Function"],f=n["Data.Functor"],s=n["Data.HeytingAlgebra"],p=n["Data.Maybe"],d=n["Data.Monoid"],v=n["Data.Monoid.Disj"],m=n["Data.Newtype"],w=n["Data.Semigroup"],h=n["Data.Semiring"],y=n["Data.Unit"],g=function(n,e,t){this.foldMap=n,this.foldl=e,this.foldr=t},D=function(n){return n.foldr},b=function(n){return n.foldl},C=new g(function(n){return function(e){return function(t){if(t instanceof p.Nothing)return d.mempty(n);if(t instanceof p.Just)return e(t.value0);throw new Error("Failed pattern match at Data.Foldable (line 129, column 1 - line 135, column 27): "+[e.constructor.name,t.constructor.name])}}},function(n){return function(e){return function(t){if(t instanceof p.Nothing)return e;if(t instanceof p.Just)return n(e)(t.value0);throw new Error("Failed pattern match at Data.Foldable (line 129, column 1 - line 135, column 27): "+[n.constructor.name,e.constructor.name,t.constructor.name])}}},function(n){return function(e){return function(t){if(t instanceof p.Nothing)return e;if(t instanceof p.Just)return n(t.value0)(e);throw new Error("Failed pattern match at Data.Foldable (line 129, column 1 - line 135, column 27): "+[n.constructor.name,e.constructor.name,t.constructor.name])}}}),S=new g(function(n){return(e=S,function(n){return function(t){return D(e)(function(e){return function(r){return w.append(n.Semigroup0())(t(e))(r)}})(d.mempty(n))}})(n);var e},t.foldlArray,t.foldrArray),A=function(n){return n.foldMap},E=function(n){return function(e){return m.alaF(f.functorFn)(f.functorFn)(m.newtypeDisj)(m.newtypeDisj)(v.Disj)(A(n)(v.monoidDisj(e)))}};e.Foldable=g,e.foldr=D,e.foldl=b,e.foldMap=A,e.fold=function(n){return function(e){return A(n)(e)(u.identity(u.categoryFn))}},e.for_=function(n){return function(e){return l.flip(function(n){return function(e){return function(t){return D(e)((r=o.applySecond(n.Apply0()),function(n){return r(t(n))}))(a.pure(n)(y.unit));var r}}}(n)(e))}},e.oneOf=function(n){return function(e){return D(n)(r.alt(e.Alt0()))(i.empty(e))}},e.intercalate=function(n){return function(e){return function(t){return function(r){return b(n)(function(n){return function(r){return n.init?{init:!1,acc:r}:{init:!1,acc:w.append(e.Semigroup0())(n.acc)(w.append(e.Semigroup0())(t)(r))}}})({init:!0,acc:d.mempty(e)})(r).acc}}}},e.any=E,e.sum=function(n){return function(e){return b(n)(h.add(e))(h.zero(e))}},e.elem=function(n){return function(e){var t=E(n)(s.heytingAlgebraBoolean),r=c.eq(e);return function(n){return t(r(n))}}},e.foldableArray=S,e.foldableMaybe=C}(n),function(e){"use strict";(n["Data.Unfoldable"]=n["Data.Unfoldable"]||{}).unfoldrArrayImpl=function(n){return function(e){return function(t){return function(r){return function(a){return function(o){for(var u=[],i=o;;){var c=a(i);if(n(c))return u;var l=e(c);u.push(t(l)),i=r(l)}}}}}}}}(),function(n){"use strict";n["Data.Maybe.First"]=n["Data.Maybe.First"]||{};var e=n["Data.Maybe.First"],t=n["Data.Maybe"],r=n["Data.Monoid"],a=n["Data.Newtype"],o=new n["Data.Semigroup"].Semigroup(function(n){return function(e){return n instanceof t.Just?n:e}}),u=new a.Newtype(function(n){return n},function(n){return n}),i=new r.Monoid(function(){return o},t.Nothing.value);e.newtypeFirst=u,e.monoidFirst=i}(n),function(n){"use strict";n["Data.Tuple"]=n["Data.Tuple"]||{};var e=n["Data.Tuple"],t=n["Data.Bifunctor"],r=n["Data.Eq"],a=n["Data.Foldable"],o=n["Data.Functor"],u=n["Data.Maybe"],i=n["Data.Maybe.First"],c=n["Data.Monoid"],l=n["Data.Newtype"],f=n["Data.Semigroup"],s=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),p=new o.Functor(function(n){return function(e){return new s(e.value0,n(e.value1))}}),d=new t.Bifunctor(function(n){return function(e){return function(t){return new s(n(t.value0),e(t.value1))}}});e.Tuple=s,e.fst=function(n){return n.value0},e.snd=function(n){return n.value1},e.curry=function(n){return function(e){return function(t){return n(new s(e,t))}}},e.uncurry=function(n){return function(e){return n(e.value0)(e.value1)}},e.lookup=function(n){return function(e){return function(t){var o=l.unwrap(i.newtypeFirst),c=a.foldMap(n)(i.monoidFirst)(function(n){return r.eq(e)(t)(n.value0)?new u.Just(n.value1):u.Nothing.value});return function(n){return o(c(n))}}}},e.monoidTuple=function(n){return function(e){return new c.Monoid(function(){return(t=n.Semigroup0(),function(n){return new f.Semigroup(function(e){return function(r){return new s(f.append(t)(e.value0)(r.value0),f.append(n)(e.value1)(r.value1))}})})(e.Semigroup0());var t},new s(c.mempty(n),c.mempty(e)))}},e.functorTuple=p,e.bifunctorTuple=d}(n),function(e){"use strict";(n["Data.Unfoldable1"]=n["Data.Unfoldable1"]||{}).unfoldr1ArrayImpl=function(n){return function(e){return function(t){return function(r){return function(a){return function(o){for(var u=[],i=o;;){var c=a(i);u.push(t(c));var l=r(c);if(n(l))return u;i=e(l)}}}}}}}}(),function(n){"use strict";n["Data.Unfoldable1"]=n["Data.Unfoldable1"]||{};var e=n["Data.Unfoldable1"],t=n["Data.Unfoldable1"],r=n["Data.Maybe"],a=n["Data.Tuple"],o=function(n){this.unfoldr1=n},u=new o(t.unfoldr1ArrayImpl(r.isNothing)(r.fromJust())(a.fst)(a.snd));e.Unfoldable1=o,e.unfoldable1Array=u}(n),function(n){"use strict";n["Data.Unfoldable"]=n["Data.Unfoldable"]||{};var e=n["Data.Unfoldable"],t=n["Data.Unfoldable"],r=n["Data.Maybe"],a=n["Data.Tuple"],o=n["Data.Unfoldable1"],u=function(n,e){this.Unfoldable10=n,this.unfoldr=e},i=new u(function(){return o.unfoldable1Array},t.unfoldrArrayImpl(r.isNothing)(r.fromJust())(a.fst)(a.snd));e.Unfoldable=u,e.unfoldr=function(n){return n.unfoldr},e.unfoldableArray=i}(n),function(n){"use strict";n["Data.List.Types"]=n["Data.List.Types"]||{};var e=n["Data.List.Types"],t=n["Control.Alt"],r=n["Control.Applicative"],a=n["Control.Apply"],o=n["Control.Bind"],u=n["Control.Plus"],i=n["Data.Eq"],c=n["Data.Foldable"],l=n["Data.Function"],f=n["Data.Functor"],s=n["Data.Maybe"],p=n["Data.Monoid"],d=n["Data.Ord"],v=n["Data.Ordering"],m=n["Data.Semigroup"],w=n["Data.Unfoldable"],h=n["Data.Unfoldable1"],y=function(){function n(){}return n.value=new n,n}(),g=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),D=new f.Functor(function(n){var e;return e=y.value,function(t){var r,a=e,o=!1;function u(e,r){return r instanceof g&&r.value1 instanceof g&&r.value1.value1 instanceof g?(a=new g(r,e),void(t=r.value1.value1.value1)):(o=!0,(i=e,function(e){for(var t,r,a,o=i,u=!1;!u;)a=e,t=(r=o)instanceof g&&r.value0 instanceof g&&r.value0.value1 instanceof g&&r.value0.value1.value1 instanceof g?(o=r.value1,void(e=new g(n(r.value0.value0),new g(n(r.value0.value1.value0),new g(n(r.value0.value1.value1.value0),a))))):(u=!0,a);return t})((u=r)instanceof g&&u.value1 instanceof g&&u.value1.value1 instanceof y?new g(n(u.value0),new g(n(u.value1.value0),y.value)):u instanceof g&&u.value1 instanceof y?new g(n(u.value0),y.value):y.value));var u,i}for(;!o;)r=u(a,t);return r}}),b=new c.Foldable(function(n){return function(e){return c.foldl(b)(function(t){var r=m.append(n.Semigroup0())(t);return function(n){return r(e(n))}})(p.mempty(n))}},function(n){return function(e){return function(t){var r,a=e,o=!1;function u(e,r){if(r instanceof y)return o=!0,e;if(r instanceof g)return a=n(e)(r.value0),void(t=r.value1);throw new Error("Failed pattern match at Data.List.Types (line 109, column 12 - line 111, column 30): "+[r.constructor.name])}for(;!o;)r=u(a,t);return r}}},function(n){return function(e){var t=c.foldl(b)(l.flip(g.create))(y.value),r=c.foldl(b)(l.flip(n))(e);return function(n){return r(t(n))}}}),C=new m.Semigroup(function(n){return function(e){return c.foldr(b)(g.create)(e)(n)}}),S=new p.Monoid(function(){return C},y.value),A=new h.Unfoldable1(function(n){return function(e){var t;return(t=e,function(e){var r,a=t,o=!1;function u(t,r){var u=n(t);if(u.value1 instanceof s.Just)return a=u.value1.value0,void(e=new g(u.value0,r));if(u.value1 instanceof s.Nothing)return o=!0,c.foldl(b)(l.flip(g.create))(y.value)(new g(u.value0,r));throw new Error("Failed pattern match at Data.List.Types (line 133, column 22 - line 135, column 61): "+[u.constructor.name])}for(;!o;)r=u(a,e);return r})(y.value)}}),E=new w.Unfoldable(function(){return A},function(n){return function(e){var t;return(t=e,function(e){var r,a=t,o=!1;function u(t,r){var u=n(t);if(u instanceof s.Nothing)return o=!0,c.foldl(b)(l.flip(g.create))(y.value)(r);if(u instanceof s.Just)return a=u.value0.value1,void(e=new g(u.value0.value0,r));throw new Error("Failed pattern match at Data.List.Types (line 140, column 22 - line 142, column 52): "+[u.constructor.name])}for(;!o;)r=u(a,e);return r})(y.value)}}),F=new i.Eq1(function(n){return function(e){return function(t){var r;return(r=e,function(e){return function(t){for(var a,o,u,c,l=r,f=e,s=!1;!s;)o=l,u=f,a=(c=t)?o instanceof y&&u instanceof y?(s=!0,c):o instanceof g&&u instanceof g?(l=o.value1,f=u.value1,void(t=c&&i.eq(n)(u.value0)(o.value0))):(s=!0,!1):(s=!0,!1);return a}})(t)(!0)}}}),T=new d.Ord1(function(){return F},function(n){return function(e){return function(t){var r;return(r=e,function(e){var t,a=r,o=!1;function u(t,r){if(t instanceof y&&r instanceof y)return o=!0,v.EQ.value;if(t instanceof y)return o=!0,v.LT.value;if(r instanceof y)return o=!0,v.GT.value;if(t instanceof g&&r instanceof g){var u=d.compare(n)(t.value0)(r.value0);return u instanceof v.EQ?(a=t.value1,void(e=r.value1)):(o=!0,u)}throw new Error("Failed pattern match at Data.List.Types (line 61, column 5 - line 61, column 20): "+[t.constructor.name,r.constructor.name])}for(;!o;)t=u(a,e);return t})(t)}}}),M=new a.Apply(function(){return D},function(n){return function(e){if(n instanceof y)return y.value;if(n instanceof g)return m.append(C)(f.map(D)(n.value0)(e))(a.apply(M)(n.value1)(e));throw new Error("Failed pattern match at Data.List.Types (line 155, column 1 - line 157, column 48): "+[n.constructor.name,e.constructor.name])}}),P=new o.Bind(function(){return M},function(n){return function(e){if(n instanceof y)return y.value;if(n instanceof g)return m.append(C)(e(n.value0))(o.bind(P)(n.value1)(e));throw new Error("Failed pattern match at Data.List.Types (line 162, column 1 - line 164, column 37): "+[n.constructor.name,e.constructor.name])}}),I=new r.Applicative(function(){return M},function(n){return new g(n,y.value)}),N=new t.Alt(function(){return D},m.append(C)),J=new u.Plus(function(){return N},y.value);e.Nil=y,e.Cons=g,e.NonEmptyList=function(n){return n},e.ordList=function(n){return new d.Ord(function(){return e=n.Eq0(),new i.Eq(i.eq1(F)(e));var e},d.compare1(T)(n))},e.semigroupList=C,e.monoidList=S,e.functorList=D,e.foldableList=b,e.unfoldableList=E,e.applicativeList=I,e.bindList=P,e.plusList=J}(n),function(n){"use strict";n["Data.List"]=n["Data.List"]||{};var e,t=n["Data.List"],r=n["Control.Alt"],a=n["Control.Applicative"],o=n["Control.Apply"],u=n["Control.Bind"],i=n["Control.Category"],c=n["Control.Lazy"],l=n["Control.Monad.Rec.Class"],f=n["Data.Bifunctor"],s=n["Data.Boolean"],p=n["Data.Eq"],d=n["Data.Foldable"],v=n["Data.Functor"],m=n["Data.List.Types"],w=n["Data.Maybe"],h=n["Data.Ord"],y=n["Data.Ordering"],g=n["Data.Tuple"],D=n["Data.Unfoldable"],b=n["Data.Unit"],C=function(n){if(n instanceof m.Nil)return w.Nothing.value;if(n instanceof m.Cons)return new w.Just({head:n.value0,tail:n.value1});throw new Error("Failed pattern match at Data.List (line 259, column 1 - line 259, column 66): "+[n.constructor.name])},S=function(n){return function(e){if(e instanceof m.Cons&&n(e.value0)){var t=S(n)(e.value1);return{init:new m.Cons(e.value0,t.init),rest:t.rest}}return{init:m.Nil.value,rest:e}}},A=function(n){return new m.Cons(n,m.Nil.value)},E=function(n){var e=function(t){return function(r){if(t instanceof m.Cons&&r instanceof m.Cons){if(p.eq(y.eqOrdering)(n(t.value0)(r.value0))(y.GT.value))return new m.Cons(r.value0,e(t)(r.value1));if(s.otherwise)return new m.Cons(t.value0,e(t.value1)(r))}if(t instanceof m.Nil)return r;if(r instanceof m.Nil)return t;throw new Error("Failed pattern match at Data.List (line 473, column 3 - line 473, column 38): "+[t.constructor.name,r.constructor.name])}},t=function(n){return n instanceof m.Cons&&n.value1 instanceof m.Cons?new m.Cons(e(n.value0)(n.value1.value0),t(n.value1.value1)):n},r=function(e){if(e instanceof m.Cons&&e.value1 instanceof m.Cons){if(p.eq(y.eqOrdering)(n(e.value0)(e.value1.value0))(y.GT.value))return a(e.value1.value0)(A(e.value0))(e.value1.value1);if(s.otherwise)return o(e.value1.value0)(function(n){return new m.Cons(e.value0,n)})(e.value1.value1)}return A(e)},a=function(e){return function(t){return function(a){var o,u,i,c,l=e,f=t,s=!1;for(;!s;)u=l,i=f,o=(c=a)instanceof m.Cons&&p.eq(y.eqOrdering)(n(u)(c.value0))(y.GT.value)?(l=c.value0,f=new m.Cons(u,i),void(a=c.value1)):(s=!0,new m.Cons(new m.Cons(u,i),r(c)));return o}}},o=function(e){return function(t){return function(a){var o,u=e,i=t,c=!1;function l(e,t,o){return o instanceof m.Cons&&p.notEq(y.eqOrdering)(n(e)(o.value0))(y.GT.value)?(u=o.value0,i=function(n){return t(new m.Cons(e,n))},void(a=o.value1)):(c=!0,new m.Cons(t(A(e)),r(o)))}for(;!c;)o=l(u,i,a);return o}}};return function(n){return function(n){var e,r=!1;function a(e){if(e instanceof m.Cons&&e.value1 instanceof m.Nil)return r=!0,e.value0;n=t(e)}for(;!r;)e=a(n);return e}(r(n))}},F=(e=m.Nil.value,function(n){var t,r=e,a=!1;function o(e,t){if(t instanceof m.Nil)return a=!0,e;if(t instanceof m.Cons)return r=new m.Cons(t.value0,e),void(n=t.value1);throw new Error("Failed pattern match at Data.List (line 368, column 3 - line 368, column 19): "+[e.constructor.name,t.constructor.name])}for(;!a;)t=o(r,n);return t}),T=function(){var n;return n=m.Nil.value,function(e){return function(t){var r,a=n,o=e,u=!1;function i(n,e,r){if(e<1)return u=!0,F(n);if(r instanceof m.Nil)return u=!0,F(n);if(r instanceof m.Cons)return a=new m.Cons(r.value0,n),o=e-1|0,void(t=r.value1);throw new Error("Failed pattern match at Data.List (line 520, column 3 - line 520, column 35): "+[n.constructor.name,e.constructor.name,r.constructor.name])}for(;!u;)r=i(a,o,t);return r}}}(),M=function(n){return function(e){return function(t){return o.apply(n.Applicative0().Apply0())(v.map(n.Plus1().Alt0().Functor0())(m.Cons.create)(t))(c.defer(e)(function(r){return P(n)(e)(t)}))}}},P=function(n){return function(e){return function(t){return r.alt(n.Plus1().Alt0())(M(n)(e)(t))(a.pure(n.Applicative0())(m.Nil.value))}}},I=d.foldl(m.foldableList)(function(n){return function(e){return n+1|0}})(0);t.toUnfoldable=function(n){return D.unfoldr(n)(function(n){return v.map(w.functorMaybe)(function(n){return new g.Tuple(n.head,n.tail)})(C(n))})},t.fromFoldable=function(n){return d.foldr(n)(m.Cons.create)(m.Nil.value)},t.singleton=A,t.some=M,t.many=P,t.manyRec=function(n){return function(e){return function(t){return l.tailRecM(n)(function(o){return u.bind(n.Monad0().Bind1())(r.alt(e.Plus1().Alt0())(v.map(e.Plus1().Alt0().Functor0())(l.Loop.create)(t))(a.pure(e.Applicative0())(new l.Done(b.unit))))(function(n){return a.pure(e.Applicative0())(f.bimap(l.bifunctorStep)(function(n){return new m.Cons(n,o)})(function(n){return F(o)})(n))})})(m.Nil.value)}}},t.null=function(n){return n instanceof m.Nil},t.length=I,t.uncons=C,t.reverse=F,t.concat=function(n){return u.bind(m.bindList)(n)(i.identity(i.categoryFn))},t.filter=function(n){var e;return e=m.Nil.value,function(t){var r,a=e,o=!1;function u(e,r){if(r instanceof m.Nil)return o=!0,F(e);if(r instanceof m.Cons){if(n(r.value0))return a=new m.Cons(r.value0,e),void(t=r.value1);if(s.otherwise)return a=e,void(t=r.value1)}throw new Error("Failed pattern match at Data.List (line 390, column 3 - line 390, column 27): "+[e.constructor.name,r.constructor.name])}for(;!o;)r=u(a,t);return r}},t.sort=function(n){return function(e){return E(h.compare(n))(e)}},t.sortBy=E,t.take=T,t.drop=function(n){return function(e){var t,r=n,a=!1;function o(n,t){if(n<1)return a=!0,t;if(t instanceof m.Nil)return a=!0,m.Nil.value;if(t instanceof m.Cons)return r=n-1|0,void(e=t.value1);throw new Error("Failed pattern match at Data.List (line 543, column 1 - line 543, column 42): "+[n.constructor.name,t.constructor.name])}for(;!a;)t=o(r,e);return t}},t.span=S,t.zipWith=function(n){return function(e){return function(t){var r;return F((r=e,function(e){return function(t){var a,o=r,u=e,i=!1;function c(e,r,a){if(e instanceof m.Nil)return i=!0,a;if(r instanceof m.Nil)return i=!0,a;if(e instanceof m.Cons&&r instanceof m.Cons)return o=e.value1,u=r.value1,void(t=new m.Cons(n(e.value0)(r.value0),a));throw new Error("Failed pattern match at Data.List (line 718, column 3 - line 718, column 21): "+[e.constructor.name,r.constructor.name,a.constructor.name])}for(;!i;)a=c(o,u,t);return a}})(t)(m.Nil.value))}}}}(n),function(n){"use strict";n["Data.CatQueue"]=n["Data.CatQueue"]||{};var e=n["Data.CatQueue"],t=n["Data.List"],r=n["Data.List.Types"],a=n["Data.Maybe"],o=n["Data.Tuple"],u=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),i=new u(r.Nil.value,r.Nil.value);e.empty=i,e.null=function(n){return n.value0 instanceof r.Nil&&n.value1 instanceof r.Nil},e.snoc=function(n){return function(e){return new u(n.value0,new r.Cons(e,n.value1))}},e.uncons=function(n){var e,i=!1;function c(e){if(e.value0 instanceof r.Nil&&e.value1 instanceof r.Nil)return i=!0,a.Nothing.value;if(!(e.value0 instanceof r.Nil)){if(e.value0 instanceof r.Cons)return i=!0,new a.Just(new o.Tuple(e.value0.value0,new u(e.value0.value1,e.value1)));throw new Error("Failed pattern match at Data.CatQueue (line 83, column 1 - line 83, column 63): "+[e.constructor.name])}n=new u(t.reverse(e.value1),r.Nil.value)}for(;!i;)e=c(n);return e}}(n),function(n){"use strict";n["Data.CatList"]=n["Data.CatList"]||{};var e=n["Data.CatList"],t=n["Data.CatQueue"],r=n["Data.List.Types"],a=n["Data.Maybe"],o=n["Data.Semigroup"],u=n["Data.Tuple"],i=function(){function n(){}return n.value=new n,n}(),c=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),l=function(n){return function(e){if(n instanceof i)return e;if(e instanceof i)return n;if(n instanceof c)return new c(n.value0,t.snoc(n.value1)(e));throw new Error("Failed pattern match at Data.CatList (line 109, column 1 - line 109, column 54): "+[n.constructor.name,e.constructor.name])}},f=i.value,s=l,p=new o.Semigroup(s);e.empty=f,e.snoc=function(n){return function(e){return s(n)(new c(e,t.empty))}},e.uncons=function(n){if(n instanceof i)return a.Nothing.value;if(n instanceof c)return new a.Just(new u.Tuple(n.value0,t.null(n.value1)?i.value:(e=l,function(n){return function(o){var u,i=function(n){return function(e){return function(t){var a,o=n,u=e,i=!1;function c(n,e,a){if(a instanceof r.Nil)return i=!0,e;if(a instanceof r.Cons)return o=n,u=n(e)(a.value0),void(t=a.value1);throw new Error("Failed pattern match at Data.CatList (line 125, column 3 - line 125, column 59): "+[n.constructor.name,e.constructor.name,a.constructor.name])}for(;!i;)a=c(o,u,t);return a}}};return(u=o,function(o){var c,l=u,f=!1;function s(u,c){var s=t.uncons(u);if(s instanceof a.Nothing)return f=!0,i(function(n){return function(e){return e(n)}})(n)(c);if(s instanceof a.Just)return l=s.value0.value1,void(o=new r.Cons(e(s.value0.value0),c));throw new Error("Failed pattern match at Data.CatList (line 121, column 14 - line 123, column 67): "+[s.constructor.name])}for(;!f;)c=s(l,o);return c})(r.Nil.value)}})(i.value)(n.value1)));var e;throw new Error("Failed pattern match at Data.CatList (line 100, column 1 - line 100, column 61): "+[n.constructor.name])},e.semigroupCatList=p}(n),function(n){"use strict";n["Control.Monad.Free"]=n["Control.Monad.Free"]||{};var e=n["Control.Monad.Free"],t=n["Control.Applicative"],r=n["Control.Apply"],a=n["Control.Bind"],o=n["Control.Monad"],u=n["Control.Monad.Rec.Class"],i=n["Data.CatList"],c=n["Data.Functor"],l=n["Data.Maybe"],f=n["Data.Semigroup"],s=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),p=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),d=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),v=function(n){return new s(n,i.empty)},m=new o.Monad(function(){return g},function(){return h}),w=new c.Functor(function(n){return function(e){return a.bindFlipped(h)((r=t.pure(g),function(e){return r(n(e))}))(e);var r}}),h=new a.Bind(function(){return y},function(n){return function(e){return new s(n.value0,i.snoc(n.value1)(e))}}),y=new r.Apply(function(){return w},o.ap(m)),g=new t.Applicative(function(){return y},function(n){return v(p.create(n))}),D=new u.MonadRec(function(){return m},function(n){return function(e){return a.bind(h)(n(e))(function(e){if(e instanceof u.Loop)return u.tailRecM(D)(n)(e.value0);if(e instanceof u.Done)return t.pure(g)(e.value0);throw new Error("Failed pattern match at Control.Monad.Free (line 86, column 26 - line 88, column 21): "+[e.constructor.name])})}});e.liftF=function(n){return v(new d(n,(e=t.pure(g),function(n){return e(n)})));var e},e["resume'"]=function(n){return function(e){return function(t){var r=function(n){var e,t=!1;function r(e){var r=function(n){return function(e){return new s(n.value0,f.append(i.semigroupCatList)(n.value1)(e))}};if(e.value0 instanceof p){var a=i.uncons(e.value1);if(a instanceof l.Nothing)return t=!0,new p(e.value0.value0);if(a instanceof l.Just)return void(n=r(function(n){return n}(a.value0.value0)(e.value0.value0))(a.value0.value1));throw new Error("Failed pattern match at Control.Monad.Free (line 227, column 7 - line 231, column 64): "+[a.constructor.name])}if(e.value0 instanceof d)return t=!0,new d(e.value0.value0,function(n){return r(e.value0.value1(n))(e.value1)});throw new Error("Failed pattern match at Control.Monad.Free (line 225, column 3 - line 233, column 56): "+[e.value0.constructor.name])}for(;!t;)e=r(n);return e}(t);if(r instanceof p)return e(r.value0);if(r instanceof d)return n(r.value0)(r.value1);throw new Error("Failed pattern match at Control.Monad.Free (line 213, column 17 - line 215, column 20): "+[r.constructor.name])}}},e.freeFunctor=w,e.freeBind=h,e.freeApplicative=g,e.freeApply=y,e.freeMonadRec=D}(n),function(n){"use strict";n["Control.Monad.Reader"]=n["Control.Monad.Reader"]||{};var e=n["Control.Monad.Reader"],t=n["Data.Identity"],r=n["Data.Newtype"];e.runReader=function(n){var e=r.unwrap(t.newtypeIdentity);return function(t){return e(n(t))}}}(n),function(n){"use strict";n["Control.Monad.Reader.Class"]=n["Control.Monad.Reader.Class"]||{};var e=n["Control.Monad.Reader.Class"];e.ask=function(n){return n.ask},e.MonadAsk=function(n,e){this.Monad0=n,this.ask=e}}(n),function(n){"use strict";n["Control.Monad.Reader.Trans"]=n["Control.Monad.Reader.Trans"]||{};var e=n["Control.Monad.Reader.Trans"],t=n["Control.Applicative"],r=n["Control.Apply"],a=n["Control.Bind"],o=n["Control.Monad"],u=n["Control.Monad.Reader.Class"],i=n["Control.Monad.Trans.Class"],c=n["Data.Function"],l=n["Data.Functor"],f=function(n){return n},s=new i.MonadTrans(function(n){return function(n){return f(c.const(n))}}),p=function(n){return function(e){return function(t){return n(e(t))}}},d=function(n){return new l.Functor((e=l.map(n),function(n){return p(e(n))}));var e},v=function(n){return new r.Apply(function(){return d(n.Functor0())},function(e){return function(t){return function(a){return r.apply(n)(e(a))(t(a))}}})},m=function(n){return new a.Bind(function(){return v(n.Apply0())},function(e){return function(t){return function(r){return a.bind(n)(e(r))(function(n){return t(n)(r)})}}})},w=function(n){return new t.Applicative(function(){return v(n.Apply0())},(e=t.pure(n),function(n){return f(c.const(e(n)))}));var e},h=function(n){return new o.Monad(function(){return w(n.Applicative0())},function(){return m(n.Bind1())})};e.runReaderT=function(n){return n},e.mapReaderT=p,e.functorReaderT=d,e.applyReaderT=v,e.applicativeReaderT=w,e.bindReaderT=m,e.monadReaderT=h,e.monadTransReaderT=s,e.monadAskReaderT=function(n){return new u.MonadAsk(function(){return h(n)},t.pure(n.Applicative0()))}}(n),function(n){"use strict";n.map_=function(n){return function(e){return function(){return n(e())}}},n.pure_=function(n){return function(){return n}},n.bind_=function(n){return function(e){return function(){return e(n())()}}},n.while=function(n){return function(e){return function(){for(;n();)e()}}},n.foreach=function(n){return function(e){return function(){for(var t=0,r=n.length;t<r;t++)e(n[t])()}}},n.new=function(n){return function(){return{value:n}}},n.read=function(n){return function(){return n.value}},n["modify'"]=function(n){return function(e){return function(){var t=n(e.value);return e.value=t.state,t.value}}},n.write=function(n){return function(e){return function(){return e.value=n}}}}(n["Control.Monad.ST.Internal"]=n["Control.Monad.ST.Internal"]||{}),function(n){"use strict";n["Control.Monad.ST.Internal"]=n["Control.Monad.ST.Internal"]||{};var e=n["Control.Monad.ST.Internal"],t=n["Control.Monad.ST.Internal"],r=n["Control.Applicative"],a=n["Control.Apply"],o=n["Control.Bind"],u=n["Control.Monad"],i=n["Control.Monad.Rec.Class"],c=n["Data.Functor"],l=n["Data.Unit"],f=new c.Functor(t.map_),s=new u.Monad(function(){return v},function(){return p}),p=new o.Bind(function(){return d},t.bind_),d=new a.Apply(function(){return f},u.ap(s)),v=new r.Applicative(function(){return d},t.pure_),m=new i.MonadRec(function(){return s},function(n){return function(e){var a=function(n){return n instanceof i.Loop},u=function(n){if(n instanceof i.Done)return n.value0;throw new Error("Failed pattern match at Control.Monad.ST.Internal (line 54, column 32 - line 54, column 46): "+[n.constructor.name])};return o.bind(p)(o.bindFlipped(p)(t.new)(n(e)))(function(e){return o.discard(o.discardUnit)(p)(t.while(c.map(f)(a)(t.read(e)))(o.bind(p)(t.read(e))(function(a){if(a instanceof i.Loop)return o.bind(p)(n(a.value0))(function(n){return c.void(f)(t.write(n)(e))});if(a instanceof i.Done)return r.pure(v)(l.unit);throw new Error("Failed pattern match at Control.Monad.ST.Internal (line 46, column 18 - line 50, column 28): "+[a.constructor.name])})))(function(){return c.map(f)(u)(t.read(e))})})}});e.modify=function(n){return t["modify'"](function(e){var t=n(e);return{state:t,value:t}})},e.functorST=f,e.applicativeST=v,e.bindST=p,e.monadRecST=m,e.foreach=t.foreach,e.new=t.new,e.read=t.read,e.write=t.write}(n),function(n){"use strict";n["Control.Monad.State"]=n["Control.Monad.State"]||{};n["Control.Monad.State"].execState=function(n){return function(e){return n(e).value1}}}(n),function(n){"use strict";n["Control.Monad.State.Class"]=n["Control.Monad.State.Class"]||{};var e=n["Control.Monad.State.Class"],t=n["Data.Tuple"],r=n["Data.Unit"],a=function(n){return n.state};e.MonadState=function(n,e){this.Monad0=n,this.state=e},e.get=function(n){return a(n)(function(n){return new t.Tuple(n,n)})},e.put=function(n){return function(e){return a(n)(function(n){return new t.Tuple(r.unit,e)})}},e.modify_=function(n){return function(e){return a(n)(function(n){return new t.Tuple(r.unit,e(n))})}}}(n),function(n){"use strict";n["Control.Monad.State.Trans"]=n["Control.Monad.State.Trans"]||{};var e=n["Control.Monad.State.Trans"],t=n["Control.Applicative"],r=n["Control.Apply"],a=n["Control.Bind"],o=n["Control.Monad"],u=n["Control.Monad.State.Class"],i=n["Control.Monad.Trans.Class"],c=n["Data.Functor"],l=n["Data.Tuple"],f=function(n){return n},s=new i.MonadTrans(function(n){return function(e){return function(r){return a.bind(n.Bind1())(e)(function(e){return t.pure(n.Applicative0())(new l.Tuple(e,r))})}}}),p=function(n){return new c.Functor(function(e){return function(t){return function(r){return c.map(n)(function(n){return new l.Tuple(e(n.value0),n.value1)})(t(r))}}})},d=function(n){return new o.Monad(function(){return w(n)},function(){return v(n)})},v=function(n){return new a.Bind(function(){return m(n)},function(e){return function(t){return function(r){return a.bind(n.Bind1())(e(r))(function(n){return t(n.value0)(n.value1)})}}})},m=function(n){return new r.Apply(function(){return p(n.Bind1().Apply0().Functor0())},o.ap(d(n)))},w=function(n){return new t.Applicative(function(){return m(n)},function(e){return function(r){return t.pure(n.Applicative0())(new l.Tuple(e,r))}})};e.StateT=f,e.runStateT=function(n){return n},e.evalStateT=function(n){return function(e){return function(t){return c.map(n)(l.fst)(e(t))}}},e.functorStateT=p,e.applyStateT=m,e.applicativeStateT=w,e.bindStateT=v,e.monadStateT=d,e.monadTransStateT=s,e.monadStateStateT=function(n){return new u.MonadState(function(){return d(n)},function(e){return f((r=t.pure(n.Applicative0()),function(n){return r(e(n))}));var r})}}(n),function(n){"use strict";n["Control.MonadPlus"]=n["Control.MonadPlus"]||{};n["Control.MonadPlus"].MonadPlus=function(n){this.MonadZero0=n}}(n),function(n){"use strict";n["Control.Parallel.Class"]=n["Control.Parallel.Class"]||{};var e=n["Control.Parallel.Class"];e.parallel=function(n){return n.parallel},e.sequential=function(n){return n.sequential},e.Parallel=function(n,e,t,r){this.Applicative1=n,this.Monad0=e,this.parallel=t,this.sequential=r}}(n),function(n){"use strict";function e(n){return n}n.fromNumber=e,n.fromString=e,n.fromArray=e,n.fromObject=e,n.jsonNull=null,n.stringify=function(n){return JSON.stringify(n)},n._caseJson=function(n,e,t,r,a,o,u){return null==u?n():"boolean"==typeof u?e(u):"number"==typeof u?t(u):"string"==typeof u?r(u):"[object Array]"===Object.prototype.toString.call(u)?a(u):o(u)}}(n["Data.Argonaut.Core"]=n["Data.Argonaut.Core"]||{}),function(n){"use strict";n._copyST=function(n){return function(){var e={};for(var t in n)hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e}},n.empty={},n.runST=function(n){return n()},n._fmapObject=function(n,e){var t={};for(var r in n)hasOwnProperty.call(n,r)&&(t[r]=e(n[r]));return t},n._mapWithKey=function(n,e){var t={};for(var r in n)hasOwnProperty.call(n,r)&&(t[r]=e(r)(n[r]));return t},n._foldM=function(n){return function(e){return function(t){return function(r){var a=t;function o(n){return function(t){return e(t)(n)(r[n])}}for(var u in r)hasOwnProperty.call(r,u)&&(a=n(a)(o(u)));return a}}}},n._lookup=function(n,e,t,r){return t in r?e(r[t]):n},n.toArrayWithKey=function(n){return function(e){var t=[];for(var r in e)hasOwnProperty.call(e,r)&&t.push(n(r)(e[r]));return t}}}(n["Foreign.Object"]=n["Foreign.Object"]||{}),function(n){"use strict";n.range=function(n){return function(e){for(var t=n>e?-1:1,r=new Array(t*(e-n)+1),a=n,o=0;a!==e;)r[o++]=a,a+=t;return r[o]=a,r}};n.replicate="function"==typeof Array.prototype.fill?function(n){return function(e){return n<1?[]:new Array(n).fill(e)}}:function(n){return function(e){for(var t=[],r=0,a=0;a<n;a++)t[r++]=e;return t}},n.fromFoldableImpl=function(){function n(n,e){this.head=n,this.tail=e}var e={};function t(e){return function(t){return new n(e,t)}}return function(n){return function(r){return function(n){for(var t=[],r=0,a=n;a!==e;)t[r++]=a.head,a=a.tail;return t}(n(t)(e)(r))}}}(),n.length=function(n){return n.length},n.cons=function(n){return function(e){return[n].concat(e)}},n["uncons'"]=function(n){return function(e){return function(t){return 0===t.length?n({}):e(t[0])(t.slice(1))}}},n.indexImpl=function(n){return function(e){return function(t){return function(r){return r<0||r>=t.length?e:n(t[r])}}}},n.findIndexImpl=function(n){return function(e){return function(t){return function(r){for(var a=0,o=r.length;a<o;a++)if(t(r[a]))return n(a);return e}}}},n.reverse=function(n){return n.slice().reverse()},n.concat=function(n){if(n.length<=1e4)return Array.prototype.concat.apply([],n);for(var e=[],t=0,r=n.length;t<r;t++)for(var a=n[t],o=0,u=a.length;o<u;o++)e.push(a[o]);return e},n.filter=function(n){return function(e){return e.filter(n)}},n.sortImpl=function(n){return function(e){return e.slice().sort(function(e,t){return n(e)(t)})}},n.slice=function(n){return function(e){return function(t){return t.slice(n,e)}}},n.take=function(n){return function(e){return n<1?[]:e.slice(0,n)}},n.drop=function(n){return function(e){return n<1?e:e.slice(n)}},n.zipWith=function(n){return function(e){return function(t){for(var r=e.length<t.length?e.length:t.length,a=new Array(r),o=0;o<r;o++)a[o]=n(e[o])(t[o]);return a}}},n.unsafeIndexImpl=function(n){return function(e){return n[e]}}}(n["Data.Array"]=n["Data.Array"]||{}),function(n){"use strict";n.empty=function(){return[]},n.pushAll=function(n){return function(e){return function(){return e.push.apply(e,n)}}},n.unsafeFreeze=function(n){return function(){return n}},n.unsafeThaw=function(n){return function(){return n}}}(n["Data.Array.ST"]=n["Data.Array.ST"]||{}),function(n){"use strict";n["Data.Array.ST"]=n["Data.Array.ST"]||{};var e=n["Data.Array.ST"],t=n["Data.Array.ST"];e.push=function(n){return t.pushAll([n])},e.empty=t.empty,e.unsafeFreeze=t.unsafeFreeze,e.unsafeThaw=t.unsafeThaw}(n),function(n){"use strict";n["Data.Array.ST.Iterator"]=n["Data.Array.ST.Iterator"]||{};var e=n["Data.Array.ST.Iterator"],t=n["Control.Monad.ST.Internal"],r=n["Data.Array.ST"],a=n["Data.Functor"],o=n["Data.HeytingAlgebra"],u=n["Data.Maybe"],i=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),c=function(n){return function(){var e=t.read(n.value1)();return t.modify(function(n){return n+1|0})(n.value1)(),n.value0(e)}};e.iterator=function(n){return a.map(t.functorST)(i.create(n))(t.new(0))},e.iterate=function(n){return function(e){return function(){for(var r=t.new(!1)();a.map(t.functorST)(o.not(o.heytingAlgebraBoolean))(t.read(r))();)!function(){var o=c(n)();if(o instanceof u.Just)return e(o.value0)();if(o instanceof u.Nothing)return a.void(t.functorST)(t.write(!0)(r))();throw new Error("Failed pattern match at Data.Array.ST.Iterator (line 42, column 5 - line 44, column 47): "+[o.constructor.name])}();return{}}}},e.pushWhile=function(n){return function(e){return function(i){return function(){for(var l=t.new(!1)();a.map(t.functorST)(o.not(o.heytingAlgebraBoolean))(t.read(l))();)!function(){var o,f=(o=e,function(){var n=t.read(o.value1)();return o.value0(n)})();f instanceof u.Just&&n(f.value0)?(r.push(f.value0)(i)(),a.void(t.functorST)(c(e))()):a.void(t.functorST)(t.write(!0)(l))()}();return{}}}}}}(n),function(n){"use strict";n["Data.Array"]=n["Data.Array"]||{};var e,t,r=n["Data.Array"],a=n["Data.Array"],o=n["Control.Alt"],u=n["Control.Applicative"],i=n["Control.Apply"],c=n["Control.Bind"],l=n["Control.Category"],f=n["Control.Lazy"],s=n["Control.Monad.ST.Internal"],p=n["Data.Array.ST"],d=n["Data.Array.ST.Iterator"],v=n["Data.Boolean"],m=n["Data.Eq"],w=n["Data.Foldable"],h=n["Data.Function"],y=n["Data.Functor"],g=n["Data.Maybe"],D=n["Data.Ord"],b=n["Data.Ordering"],C=n["Data.Tuple"],S=n["Data.Unfoldable"],A=a["uncons'"](h.const(g.Nothing.value))(function(n){return function(e){return new g.Just({head:n,tail:e})}}),E=function(n){return function(e){return a.sortImpl(function(e){return function(t){var r=n(e)(t);if(r instanceof b.GT)return 1;if(r instanceof b.EQ)return 0;if(r instanceof b.LT)return-1;throw new Error("Failed pattern match at Data.Array (line 702, column 15 - line 705, column 13): "+[r.constructor.name])}})(e)}},F=function(n){return function(e){return E(D.comparing(n)(e))}},T=function(n){return[n]},M=function(n){return 0===a.length(n)},P=function(n){return function(e){return a.zipWith(n)(a.range(0)(a.length(e)-1|0))(e)}},I=function(n){return function(e){return function(t){return o.alt(n.Plus1().Alt0())(function(n){return function(e){return function(t){return i.apply(n.Applicative0().Apply0())(y.map(n.Plus1().Alt0().Functor0())(a.cons)(t))(f.defer(e)(function(r){return I(n)(e)(t)}))}}}(n)(e)(t))(u.pure(n.Applicative0())([]))}}},N=a.indexImpl(g.Just.create)(g.Nothing.value),J=function(n){return N(n)(a.length(n)-1|0)},x=function(n){return N(n)(0)},R=function(n){return function(e){var t,r=E(function(e){return function(t){return n(C.snd(e))(C.snd(t))}})(P(C.Tuple.create)(e)),a=x(r);if(a instanceof g.Nothing)return[];if(a instanceof g.Just)return y.map(y.functorArray)(C.snd)(F(D.ordInt)(C.fst)((t=p.unsafeThaw(T(a.value0))(),s.foreach(r)(function(e){return function(){var r,a,o=y.map(s.functorST)((r=g.fromJust(),a=function(n){return r(J(n))},function(n){return C.snd(a(n))}))(p.unsafeFreeze(t))();return u.when(s.applicativeST)(m.notEq(b.eqOrdering)(n(o)(e.value1))(b.EQ.value))(y.void(s.functorST)(p.push(e)(t)))()}})(),p.unsafeFreeze(t)())));throw new Error("Failed pattern match at Data.Array (line 903, column 17 - line 911, column 29): "+[a.constructor.name])}},L=a.findIndexImpl(g.Just.create)(g.Nothing.value),k=h.flip(c.bind(c.bindArray)),O=(e=l.identity(l.categoryFn),k((t=g.maybe([])(T),function(n){return t(e(n))})));r.fromFoldable=function(n){return a.fromFoldableImpl(w.foldr(n))},r.toUnfoldable=function(n){return function(e){var t=a.length(e);return S.unfoldr(n)(function(n){if(n<t)return new g.Just(new C.Tuple(a.unsafeIndexImpl(e)(n),n+1|0));if(v.otherwise)return g.Nothing.value;throw new Error("Failed pattern match at Data.Array (line 143, column 3 - line 145, column 26): "+[n.constructor.name])})(0)}},r.many=I,r.null=M,r.head=x,r.last=J,r.uncons=A,r.unsnoc=function(n){return i.apply(g.applyMaybe)(y.map(g.functorMaybe)(function(n){return function(e){return{init:n,last:e}}})(function(n){if(M(n))return g.Nothing.value;if(v.otherwise)return new g.Just(a.slice(0)(a.length(n)-1|0)(n));throw new Error("Failed pattern match at Data.Array (line 323, column 1 - line 323, column 45): "+[n.constructor.name])}(n)))(J(n))},r.index=N,r.findIndex=L,r.catMaybes=O,r.mapWithIndex=P,r.sort=function(n){return function(e){return E(D.compare(n))(e)}},r.sortBy=E,r.sortWith=F,r.groupBy=function(n){return function(e){return t=p.empty(),r=d.iterator(function(n){return N(e)(n)})(),d.iterate(r)(function(e){return y.void(s.functorST)(function(){var a=p.empty();p.push(e)(a)(),d.pushWhile(n(e))(r)(a)();var o=p.unsafeFreeze(a)();return p.push(o)(t)()})})(),p.unsafeFreeze(t)();var t,r}},r.nub=function(n){return R(D.compare(n))},r.nubBy=R,r.range=a.range,r.replicate=a.replicate,r.length=a.length,r.cons=a.cons,r.reverse=a.reverse,r.concat=a.concat,r.filter=a.filter,r.slice=a.slice,r.take=a.take,r.drop=a.drop}(n),function(e){"use strict";(n["Data.FunctorWithIndex"]=n["Data.FunctorWithIndex"]||{}).mapWithIndexArray=function(n){return function(e){for(var t=e.length,r=Array(t),a=0;a<t;a++)r[a]=n(a)(e[a]);return r}}}(),function(n){"use strict";n["Data.FunctorWithIndex"]=n["Data.FunctorWithIndex"]||{};var e=n["Data.FunctorWithIndex"],t=n["Data.FunctorWithIndex"],r=n["Data.Functor"],a=function(n,e){this.Functor0=n,this.mapWithIndex=e},o=new a(function(){return r.functorArray},t.mapWithIndexArray);e.FunctorWithIndex=a,e.mapWithIndex=function(n){return n.mapWithIndex},e.functorWithIndexArray=o}(n),function(n){"use strict";n["Data.FoldableWithIndex"]=n["Data.FoldableWithIndex"]||{};var e=n["Data.FoldableWithIndex"],t=n["Data.Foldable"],r=n["Data.FunctorWithIndex"],a=n["Data.Monoid"],o=n["Data.Semigroup"],u=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),i=function(n,e,t,r){this.Foldable0=n,this.foldMapWithIndex=e,this.foldlWithIndex=t,this.foldrWithIndex=r},c=new i(function(){return t.foldableArray},function(n){return(e=c,function(n){return function(t){return e.foldrWithIndex(function(e){return function(r){return function(a){return o.append(n.Semigroup0())(t(e)(r))(a)}}})(a.mempty(n))}})(n);var e},function(n){return function(e){var a=t.foldl(t.foldableArray)(function(e){return function(t){return n(t.value0)(e)(t.value1)}})(e),o=r.mapWithIndex(r.functorWithIndexArray)(u.create);return function(n){return a(o(n))}}},function(n){return function(e){var a=t.foldr(t.foldableArray)(function(e){return function(t){return n(e.value0)(e.value1)(t)}})(e),o=r.mapWithIndex(r.functorWithIndexArray)(u.create);return function(n){return a(o(n))}}});e.FoldableWithIndex=i,e.foldableWithIndexArray=c}(n),function(e){"use strict";(n["Data.Function.Uncurried"]=n["Data.Function.Uncurried"]||{}).runFn4=function(n){return function(e){return function(t){return function(r){return function(a){return n(e,t,r,a)}}}}}}(),function(n){"use strict";n["Data.Function.Uncurried"]=n["Data.Function.Uncurried"]||{};var e=n["Data.Function.Uncurried"],t=n["Data.Function.Uncurried"];e.runFn4=t.runFn4}(n),function(e){"use strict";(n["Data.Traversable"]=n["Data.Traversable"]||{}).traverseArrayImpl=function(){function n(n){return[n]}function e(n){return function(e){return[n,e]}}function t(n){return function(e){return function(t){return[n,e,t]}}}function r(n){return function(e){return n.concat(e)}}return function(a){return function(o){return function(u){return function(i){return function(c){return function l(f,s){switch(s-f){case 0:return u([]);case 1:return o(n)(i(c[f]));case 2:return a(o(e)(i(c[f])))(i(c[f+1]));case 3:return a(a(o(t)(i(c[f])))(i(c[f+1])))(i(c[f+2]));default:var p=f+2*Math.floor((s-f)/4);return a(o(r)(l(f,p)))(l(p,s))}}(0,c.length)}}}}}}()}(),function(n){"use strict";n["Data.Traversable"]=n["Data.Traversable"]||{};var e=n["Data.Traversable"],t=n["Data.Traversable"],r=n["Control.Applicative"],a=n["Control.Apply"],o=n["Control.Category"],u=n["Data.Foldable"],i=n["Data.Functor"],c=function(n,e,t,r){this.Foldable1=n,this.Functor0=e,this.sequence=t,this.traverse=r},l=function(n){return n.traverse},f=new c(function(){return u.foldableArray},function(){return i.functorArray},function(n){return(e=f,function(n){return l(e)(n)(o.identity(o.categoryFn))})(n);var e},function(n){return t.traverseArrayImpl(a.apply(n.Apply0()))(i.map(n.Apply0().Functor0()))(r.pure(n))});e.Traversable=c,e.traverse=l,e.sequence=function(n){return n.sequence},e.for=function(n){return function(e){return function(t){return function(r){return l(e)(n)(r)(t)}}}},e.traversableArray=f}(n),function(n){"use strict";n["Data.TraversableWithIndex"]=n["Data.TraversableWithIndex"]||{};var e=n["Data.TraversableWithIndex"],t=n["Data.FoldableWithIndex"],r=n["Data.FunctorWithIndex"],a=n["Data.Traversable"],o=function(n,e,t,r){this.FoldableWithIndex1=n,this.FunctorWithIndex0=e,this.Traversable2=t,this.traverseWithIndex=r},u=new o(function(){return t.foldableWithIndexArray},function(){return r.functorWithIndexArray},function(){return a.traversableArray},function(n){return(e=u,function(n){return function(t){var o=a.sequence(e.Traversable2())(n),u=r.mapWithIndex(e.FunctorWithIndex0())(t);return function(n){return o(u(n))}}})(n);var e});e.TraversableWithIndex=o,e.traverseWithIndex=function(n){return n.traverseWithIndex},e.traversableWithIndexArray=u}(n),function(n){"use strict";n.new=function(){return{}},n.poke=function(n){return function(e){return function(t){return function(){return t[n]=e,t}}}}}(n["Foreign.Object.ST"]=n["Foreign.Object.ST"]||{}),function(n){"use strict";n["Foreign.Object.ST"]=n["Foreign.Object.ST"]||{};var e=n["Foreign.Object.ST"],t=n["Foreign.Object.ST"];e.new=t.new,e.poke=t.poke}(n),function(n){"use strict";n["Foreign.Object"]=n["Foreign.Object"]||{};var e=n["Foreign.Object"],t=n["Foreign.Object"],r=n["Control.Applicative"],a=n["Control.Apply"],o=n["Control.Category"],u=n["Control.Monad.ST.Internal"],i=n["Data.Array"],c=n["Data.Foldable"],l=n["Data.FoldableWithIndex"],f=n["Data.Function"],s=n["Data.Function.Uncurried"],p=n["Data.Functor"],d=n["Data.FunctorWithIndex"],v=n["Data.Maybe"],m=n["Data.Monoid"],w=n["Data.Semigroup"],h=n["Data.Traversable"],y=n["Data.TraversableWithIndex"],g=n["Data.Tuple"],D=n["Foreign.Object.ST"],b=t.toArrayWithKey(function(n){return function(n){return n}}),C=t._copyST,S=s.runFn4(t._lookup)(v.Nothing.value)(v.Just.create),A=function(n){return function(e){return r=D.poke(n)(e),function(n){return t.runST(function(){var e=C(n)();return r(e)(),e})};var r}},E=new p.Functor(function(n){return function(e){return t._fmapObject(e,n)}}),F=new d.FunctorWithIndex(function(){return E},function(n){return function(e){return t._mapWithKey(e,n)}}),T=t._foldM(f.applyFlipped),M=function(n){return function(e){return T(function(t){return function(r){return function(a){return w.append(n.Semigroup0())(t)(e(r)(a))}}})(m.mempty(n))}},P=new c.Foldable(function(n){return function(e){return M(n)(f.const(e))}},function(n){return T(function(e){return function(t){return n(e)}})},function(n){return function(e){return function(t){return c.foldr(c.foldableArray)(n)(e)(b(t))}}}),I=new l.FoldableWithIndex(function(){return P},function(n){return M(n)},function(n){return T(f.flip(n))},function(n){return function(e){return function(r){return c.foldr(c.foldableArray)(g.uncurry(n))(e)(t.toArrayWithKey(g.Tuple.create)(r))}}}),N=new y.TraversableWithIndex(function(){return I},function(){return F},function(){return J},function(n){return function(e){return function(o){return T(function(t){return function(r){return function(o){return a.apply(n.Apply0())(p.map(n.Apply0().Functor0())(f.flip(A(r)))(t))(e(r)(o))}}})(r.pure(n)(t.empty))(o)}}}),J=new h.Traversable(function(){return P},function(){return E},function(n){return h.traverse(J)(n)(o.identity(o.categoryFn))},function(n){var e=y.traverseWithIndex(N)(n);return function(n){return e(f.const(n))}});e.insert=A,e.lookup=S,e.toUnfoldable=function(n){var e=i.toUnfoldable(n),r=t.toArrayWithKey(g.Tuple.create);return function(n){return e(r(n))}},e.fromFoldable=function(n){return function(e){return t.runST(function(){var t=D.new();return u.foreach(i.fromFoldable(n)(e))(function(n){return p.void(u.functorST)(D.poke(n.value0)(n.value1)(t))})(),t})}},e.traversableObject=J,e.empty=t.empty}(n),function(n){"use strict";n["Data.Argonaut.Core"]=n["Data.Argonaut.Core"]||{};var e=n["Data.Argonaut.Core"],t=n["Data.Argonaut.Core"],r=n["Data.Function"],a=n["Data.Maybe"],o=n["Foreign.Object"],u=function(n){return function(e){return function(t){return t(n)(e)}}},i=u(a.Nothing.value)(a.Just.create),c=t.fromObject(o.empty),l=u(!1)(r.const(!0)),f=function(n){return function(e){return function(a){return t._caseJson(r.const(n),r.const(n),r.const(n),e,r.const(n),r.const(n),a)}}},s=i(f),p=function(n){return function(e){return function(a){return t._caseJson(r.const(n),r.const(n),r.const(n),r.const(n),r.const(n),e,a)}}},d=i(p),v=l(function(n){return function(e){return function(a){return t._caseJson(e,r.const(n),r.const(n),r.const(n),r.const(n),r.const(n),a)}}}),m=i(function(n){return function(e){return function(a){return t._caseJson(r.const(n),r.const(n),r.const(n),r.const(n),e,r.const(n),a)}}});e.caseJsonBoolean=function(n){return function(e){return function(a){return t._caseJson(r.const(n),e,r.const(n),r.const(n),r.const(n),r.const(n),a)}}},e.caseJsonNumber=function(n){return function(e){return function(a){return t._caseJson(r.const(n),r.const(n),e,r.const(n),r.const(n),r.const(n),a)}}},e.caseJsonString=f,e.caseJsonObject=p,e.isNull=v,e.toString=s,e.toArray=m,e.toObject=d,e.jsonEmptyObject=c,e.fromNumber=t.fromNumber,e.fromString=t.fromString,e.fromArray=t.fromArray,e.fromObject=t.fromObject,e.jsonNull=t.jsonNull,e.stringify=t.stringify}(n),function(n){"use strict";n.showIntImpl=function(n){return n.toString()},n.showCharImpl=function(n){var e=n.charCodeAt(0);if(e<32||127===e){switch(n){case"":return"'\\a'";case"\b":return"'\\b'";case"\f":return"'\\f'";case"\n":return"'\\n'";case"\r":return"'\\r'";case"\t":return"'\\t'";case"\v":return"'\\v'"}return"'\\"+e.toString(10)+"'"}return"'"===n||"\\"===n?"'\\"+n+"'":"'"+n+"'"},n.showStringImpl=function(n){var e=n.length;return'"'+n.replace(/[\0-\x1F\x7F"\\]/g,function(t,r){switch(t){case'"':case"\\":return"\\"+t;case"":return"\\a";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\v":return"\\v"}var a=r+1,o=a<e&&n[a]>="0"&&n[a]<="9"?"\\&":"";return"\\"+t.charCodeAt(0).toString(10)+o})+'"'},n.showArrayImpl=function(n){return function(e){for(var t=[],r=0,a=e.length;r<a;r++)t[r]=n(e[r]);return"["+t.join(",")+"]"}},n.cons=function(n){return function(e){return[n].concat(e)}},n.join=function(n){return function(e){return e.join(n)}}}(n["Data.Show"]=n["Data.Show"]||{}),function(n){"use strict";n["Data.Show"]=n["Data.Show"]||{};var e=n["Data.Show"],t=n["Data.Show"],r=n["Data.Symbol"],a=n["Record.Unsafe"],o=n["Type.Data.RowList"],u=function(n){this.showRecordFields=n},i=function(n){this.show=n},c=new i(t.showStringImpl),l=new u(function(n){return function(n){return[]}}),f=function(n){return n.showRecordFields},s=new i(t.showIntImpl),p=new i(t.showCharImpl),d=new i(function(n){if(n)return"true";if(!n)return"false";throw new Error("Failed pattern match at Data.Show (line 20, column 1 - line 22, column 23): "+[n.constructor.name])}),v=function(n){return n.show};e.Show=i,e.show=v,e.showBoolean=d,e.showInt=s,e.showChar=p,e.showString=c,e.showArray=function(n){return new i(t.showArrayImpl(v(n)))},e.showRecord=function(n){return function(n){return new i(function(e){var r=f(n)(o.RLProxy.value)(e);return 0===r.length?"{}":t.join(" ")(["{",t.join(", ")(r),"}"])})}},e.showRecordFieldsNil=l,e.showRecordFieldsCons=function(n){return function(e){return function(i){return new u(function(u){return function(u){var c=f(e)(o.RLProxy.value)(u),l=r.reflectSymbol(n)(r.SProxy.value),s=a.unsafeGet(l)(u);return t.cons(t.join(": ")([l,v(i)(s)]))(c)}})}}}}(n),function(n){"use strict";n["Data.Argonaut.Decode.Error"]=n["Data.Argonaut.Decode.Error"]||{};var e=n["Data.Argonaut.Decode.Error"],t=n["Data.Argonaut.Core"],r=n["Data.Show"],a=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),o=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),u=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),i=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),c=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),l=function(){function n(){}return n.value=new n,n}();e.TypeMismatch=a,e.UnexpectedValue=o,e.AtIndex=u,e.AtKey=i,e.Named=c,e.MissingValue=l,e.printJsonDecodeError=function(n){var e=function(n){if(n instanceof a)return"  Expected value of type '"+n.value0+"'.";if(n instanceof o)return"  Unexpected value "+t.stringify(n.value0)+".";if(n instanceof u)return"  At array index "+r.show(r.showInt)(n.value0)+":\n"+e(n.value1);if(n instanceof i)return"  At object key '"+n.value0+"':\n"+e(n.value1);if(n instanceof c)return"  Under '"+n.value0+"':\n"+e(n.value1);if(n instanceof l)return"  No value was found.";throw new Error("Failed pattern match at Data.Argonaut.Decode.Error (line 37, column 8 - line 43, column 44): "+[n.constructor.name])};return"An error occurred while decoding a JSON value:\n"+e(n)}}(n),function(n){"use strict";n.fromNumberImpl=function(n){return function(e){return function(t){return(0|t)===t?n(t):e}}},n.toNumber=function(n){return n},n.fromStringAsImpl=function(n){return function(e){return function(t){var r;r=t<11?"[0-"+(t-1).toString()+"]":11===t?"[0-9a]":"[0-9a-"+String.fromCharCode(86+t)+"]";var a=new RegExp("^[\\+\\-]?"+r+"+$","i");return function(r){if(a.test(r)){var o=parseInt(r,t);return(0|o)===o?n(o):e}return e}}}},n.toStringAs=function(n){return function(e){return e.toString(n)}}}(n["Data.Int"]=n["Data.Int"]||{}),function(n){"use strict";n.topInt=2147483647,n.bottomInt=-2147483648,n.topChar=String.fromCharCode(65535),n.bottomChar=String.fromCharCode(0)}(n["Data.Bounded"]=n["Data.Bounded"]||{}),function(n){"use strict";n["Data.Bounded"]=n["Data.Bounded"]||{};var e=n["Data.Bounded"],t=n["Data.Bounded"],r=n["Data.Ord"],a=function(n,e,t){this.Ord0=n,this.bottom=e,this.top=t},o=new a(function(){return r.ordInt},t.bottomInt,t.topInt),u=new a(function(){return r.ordChar},t.bottomChar,t.topChar);e.Bounded=a,e.bottom=function(n){return n.bottom},e.top=function(n){return n.top},e.boundedInt=o,e.boundedChar=u}(n),function(e){"use strict";(n["Global"]=n["Global"]||{}).infinity=1/0}(),function(n){"use strict";n.Global=n.Global||{};var e=n.Global,t=n.Global;e.infinity=t.infinity}(n),function(e){"use strict";(n["Math"]=n["Math"]||{}).round=Math.round}(),function(n){"use strict";n.Math=n.Math||{};var e=n.Math,t=n.Math;e.round=t.round}(n),function(n){"use strict";n["Data.Int"]=n["Data.Int"]||{};var e=n["Data.Int"],t=n["Data.Int"],r=n["Data.Boolean"],a=n["Data.Bounded"],o=n["Data.Maybe"],u=n.Global,i=n.Math,c=t.fromStringAsImpl(o.Just.create)(o.Nothing.value)(10),l=t.fromNumberImpl(o.Just.create)(o.Nothing.value);e.fromNumber=l,e.round=function(n){return function(n){if(n===u.infinity)return 0;if(n===-u.infinity)return 0;if(n>=t.toNumber(a.top(a.boundedInt)))return a.top(a.boundedInt);if(n<=t.toNumber(a.bottom(a.boundedInt)))return a.bottom(a.boundedInt);if(r.otherwise)return o.fromMaybe(0)(l(n));throw new Error("Failed pattern match at Data.Int (line 66, column 1 - line 66, column 29): "+[n.constructor.name])}(i.round(n))},e.fromString=c,e.hexadecimal=16,e.toNumber=t.toNumber,e.toStringAs=t.toStringAs}(n),function(n){"use strict";n["Data.Argonaut.Decode.Decoders"]=n["Data.Argonaut.Decode.Decoders"]||{};var e,t,r,a=n["Data.Argonaut.Decode.Decoders"],o=n["Control.Applicative"],u=n["Control.Bind"],i=n["Data.Argonaut.Core"],c=n["Data.Argonaut.Decode.Error"],l=n["Data.Bifunctor"],f=n["Data.Boolean"],s=n["Data.Either"],p=n["Data.Functor"],d=n["Data.Int"],v=n["Data.Maybe"],m=n["Data.Traversable"],w=n["Data.TraversableWithIndex"],h=n["Foreign.Object"],y=i.caseJsonString(s.Left.create(new c.TypeMismatch("String")))(s.Right.create),g=i.caseJsonNumber(s.Left.create(new c.TypeMismatch("Number")))(s.Right.create),D=(e=s.note(new c.TypeMismatch("Object")),function(n){return e(i.toObject(n))}),b=(t=s.note(new c.TypeMismatch("Array")),function(n){return t(i.toArray(n))}),C=u.composeKleisliFlipped(s.bindEither)((r=s.note(new c.TypeMismatch("Integer")),function(n){return r(d.fromNumber(n))}))(g),S=i.caseJsonBoolean(s.Left.create(new c.TypeMismatch("Boolean")))(s.Right.create);a.decodeMaybe=function(n){return function(e){if(i.isNull(e))return o.pure(s.applicativeEither)(v.Nothing.value);if(f.otherwise)return p.map(s.functorEither)(v.Just.create)(n(e));throw new Error("Failed pattern match at Data.Argonaut.Decode.Decoders (line 35, column 1 - line 39, column 38): "+[n.constructor.name,e.constructor.name])}},a.decodeBoolean=S,a.decodeInt=C,a.decodeString=y,a.decodeForeignObject=function(n){return u.composeKleisliFlipped(s.bindEither)((e=l.lmap(s.bifunctorEither)(c.Named.create("ForeignObject")),t=m.traverse(h.traversableObject)(s.applicativeEither)(n),function(n){return e(t(n))}))(D);var e,t},a.decodeArray=function(n){return u.composeKleisliFlipped(s.bindEither)((e=l.lmap(s.bifunctorEither)(c.Named.create("Array")),t=w.traverseWithIndex(w.traversableWithIndexArray)(s.applicativeEither)(function(e){var t=l.lmap(s.bifunctorEither)(c.AtIndex.create(e));return function(e){return t(n(e))}}),function(n){return e(t(n))}))(b);var e,t},a.getField=function(n){return function(e){return function(t){return v.maybe(s.Left.create(new c.AtKey(t,c.MissingValue.value)))((r=l.lmap(s.bifunctorEither)(c.AtKey.create(t)),function(e){return r(n(e))}))(h.lookup(t)(e));var r}}},a["getFieldOptional'"]=function(n){return function(e){return function(t){return v.maybe(o.pure(s.applicativeEither)(v.Nothing.value))(function(e){return i.isNull(e)?o.pure(s.applicativeEither)(v.Nothing.value):p.map(s.functorEither)(v.Just.create)(l.lmap(s.bifunctorEither)(c.AtKey.create(t))(n(e)))})(h.lookup(t)(e))}}}}(n),function(n){"use strict";n.Record=n.Record||{};var e=n.Record,t=n["Data.Symbol"],r=n["Record.Unsafe"];e.get=function(n){return function(e){return function(e){return function(a){return r.unsafeGet(t.reflectSymbol(n)(e))(a)}}}},e.set=function(n){return function(e){return function(e){return function(e){return function(a){return function(o){return r.unsafeSet(t.reflectSymbol(n)(e))(a)(o)}}}}}},e.insert=function(n){return function(e){return function(e){return function(e){return function(a){return function(o){return r.unsafeSet(t.reflectSymbol(n)(e))(a)(o)}}}}}}}(n),function(n){"use strict";n["Data.Argonaut.Decode.Class"]=n["Data.Argonaut.Decode.Class"]||{};var e=n["Data.Argonaut.Decode.Class"],t=n["Control.Bind"],r=n["Data.Argonaut.Core"],a=n["Data.Argonaut.Decode.Decoders"],o=n["Data.Argonaut.Decode.Error"],u=n["Data.Bifunctor"],i=n["Data.Either"],c=n["Data.Maybe"],l=n["Data.Symbol"],f=n["Foreign.Object"],s=n.Record,p=n["Type.Data.RowList"],d=function(n){this.gDecodeJson=n},v=function(n){this.decodeJson=n},m=new d(function(n){return function(n){return new i.Right({})}}),w=function(n){return n.gDecodeJson},h=new v(a.decodeString),y=new v(i.Right.create),g=new v(a.decodeInt),D=new v(a.decodeBoolean),b=function(n){return n.decodeJson};e.decodeJson=b,e.DecodeJson=v,e.decodeJsonMaybe=function(n){return new v(a.decodeMaybe(b(n)))},e.decodeJsonBoolean=D,e.decodeJsonInt=g,e.decodeJsonString=h,e.decodeJsonJson=y,e.decodeForeignObject=function(n){return new v(a.decodeForeignObject(b(n)))},e.decodeArray=function(n){return new v(a.decodeArray(b(n)))},e.decodeRecord=function(n){return function(e){return new v(function(e){var t=r.toObject(e);if(t instanceof c.Just)return w(n)(t.value0)(p.RLProxy.value);if(t instanceof c.Nothing)return i.Left.create(new o.TypeMismatch("Object"));throw new Error("Failed pattern match at Data.Argonaut.Decode.Class (line 99, column 5 - line 101, column 46): "+[t.constructor.name])})}},e.gDecodeJsonNil=m,e.gDecodeJsonCons=function(n){return function(e){return function(r){return function(a){return function(a){return new d(function(a){return function(d){var v=l.reflectSymbol(r)(l.SProxy.value),m=f.lookup(v)(a);if(m instanceof c.Just)return t.bind(i.bindEither)(u.lmap(i.bifunctorEither)(o.AtKey.create(v))(b(n)(m.value0)))(function(n){return t.bind(i.bindEither)(w(e)(a)(p.RLProxy.value))(function(e){return i.Right.create(s.insert(r)()()(l.SProxy.value)(n)(e))})});if(m instanceof c.Nothing)return i.Left.create(new o.AtKey(v,o.MissingValue.value));throw new Error("Failed pattern match at Data.Argonaut.Decode.Class (line 122, column 5 - line 129, column 44): "+[m.constructor.name])}})}}}}}}(n),function(n){"use strict";n["Data.Argonaut.Decode.Combinators"]=n["Data.Argonaut.Decode.Combinators"]||{};var e=n["Data.Argonaut.Decode.Combinators"],t=n["Data.Argonaut.Decode.Class"],r=n["Data.Argonaut.Decode.Decoders"];e.getField=function(n){return r.getField(t.decodeJson(n))},e["getFieldOptional'"]=function(n){return r["getFieldOptional'"](t.decodeJson(n))}}(n),function(n){"use strict";n["Data.Map.Internal"]=n["Data.Map.Internal"]||{};var e=n["Data.Map.Internal"],t=n["Control.Applicative"],r=n["Data.Foldable"],a=n["Data.Function"],o=n["Data.Functor"],u=n["Data.List.Types"],i=n["Data.Maybe"],c=n["Data.Monoid"],l=n["Data.Ord"],f=n["Data.Ordering"],s=n["Data.Semigroup"],p=n["Data.Tuple"],d=n["Data.Unfoldable"],v=function(){function n(){}return n.value=new n,n}(),m=function(){function n(n,e,t,r){this.value0=n,this.value1=e,this.value2=t,this.value3=r}return n.create=function(e){return function(t){return function(r){return function(a){return new n(e,t,r,a)}}}},n}(),w=function(){function n(n,e,t,r,a,o,u){this.value0=n,this.value1=e,this.value2=t,this.value3=r,this.value4=a,this.value5=o,this.value6=u}return n.create=function(e){return function(t){return function(r){return function(a){return function(o){return function(u){return function(i){return new n(e,t,r,a,o,u,i)}}}}}}},n}(),h=function(){function n(n,e,t){this.value0=n,this.value1=e,this.value2=t}return n.create=function(e){return function(t){return function(r){return new n(e,t,r)}}},n}(),y=function(){function n(n,e,t){this.value0=n,this.value1=e,this.value2=t}return n.create=function(e){return function(t){return function(r){return new n(e,t,r)}}},n}(),g=function(){function n(n,e,t,r,a,o){this.value0=n,this.value1=e,this.value2=t,this.value3=r,this.value4=a,this.value5=o}return n.create=function(e){return function(t){return function(r){return function(a){return function(o){return function(u){return new n(e,t,r,a,o,u)}}}}}},n}(),D=function(){function n(n,e,t,r,a,o){this.value0=n,this.value1=e,this.value2=t,this.value3=r,this.value4=a,this.value5=o}return n.create=function(e){return function(t){return function(r){return function(a){return function(o){return function(u){return new n(e,t,r,a,o,u)}}}}}},n}(),b=function(){function n(n,e,t,r,a,o){this.value0=n,this.value1=e,this.value2=t,this.value3=r,this.value4=a,this.value5=o}return n.create=function(e){return function(t){return function(r){return function(a){return function(o){return function(u){return new n(e,t,r,a,o,u)}}}}}},n}(),C=function(){function n(n,e,t,r){this.value0=n,this.value1=e,this.value2=t,this.value3=r}return n.create=function(e){return function(t){return function(r){return function(a){return new n(e,t,r,a)}}}},n}(),S=function(n){if(n instanceof v)return u.Nil.value;if(n instanceof m)return s.append(u.semigroupList)(S(n.value0))(s.append(u.semigroupList)(t.pure(u.applicativeList)(n.value2))(S(n.value3)));if(n instanceof w)return s.append(u.semigroupList)(S(n.value0))(s.append(u.semigroupList)(t.pure(u.applicativeList)(n.value2))(s.append(u.semigroupList)(S(n.value3))(s.append(u.semigroupList)(t.pure(u.applicativeList)(n.value5))(S(n.value6)))));throw new Error("Failed pattern match at Data.Map.Internal (line 612, column 1 - line 612, column 40): "+[n.constructor.name])},A=function(n){if(n instanceof v)return 0;if(n instanceof m)return(1+A(n.value0)|0)+A(n.value3)|0;if(n instanceof w)return((2+A(n.value0)|0)+A(n.value3)|0)+A(n.value6)|0;throw new Error("Failed pattern match at Data.Map.Internal (line 662, column 1 - line 662, column 35): "+[n.constructor.name])},E=function(n){return function(e){return new m(v.value,n,e,v.value)}},F=function(n){return function(e){return d.unfoldr(n)(function(n){var e,t=!1;function r(e){if(e instanceof u.Nil)return t=!0,i.Nothing.value;if(e instanceof u.Cons){if(e.value0 instanceof v)return void(n=e.value1);if(e.value0 instanceof m&&e.value0.value0 instanceof v&&e.value0.value3 instanceof v)return t=!0,i.Just.create(new p.Tuple(new p.Tuple(e.value0.value1,e.value0.value2),e.value1));if(e.value0 instanceof m&&e.value0.value0 instanceof v)return t=!0,i.Just.create(new p.Tuple(new p.Tuple(e.value0.value1,e.value0.value2),new u.Cons(e.value0.value3,e.value1)));if(e.value0 instanceof m)return void(n=new u.Cons(e.value0.value0,new u.Cons(E(e.value0.value1)(e.value0.value2),new u.Cons(e.value0.value3,e.value1))));if(e.value0 instanceof w)return void(n=new u.Cons(e.value0.value0,new u.Cons(E(e.value0.value1)(e.value0.value2),new u.Cons(e.value0.value3,new u.Cons(E(e.value0.value4)(e.value0.value5),new u.Cons(e.value0.value6,e.value1))))));throw new Error("Failed pattern match at Data.Map.Internal (line 577, column 18 - line 586, column 71): "+[e.value0.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 576, column 3 - line 576, column 19): "+[e.constructor.name])}for(;!t;)e=r(n);return e})(new u.Cons(e,u.Nil.value))}},T=function(n){return function(e){var t=l.compare(n);return function(n){var r,a=!1;function o(r){if(r instanceof v)return a=!0,i.Nothing.value;if(r instanceof m){var o=t(e)(r.value1);return o instanceof f.EQ?(a=!0,new i.Just(r.value2)):o instanceof f.LT?void(n=r.value0):void(n=r.value3)}if(r instanceof w){var u=t(e)(r.value1);if(u instanceof f.EQ)return a=!0,new i.Just(r.value2);var c=t(e)(r.value4);return c instanceof f.EQ?(a=!0,new i.Just(r.value5)):u instanceof f.LT?void(n=r.value0):c instanceof f.GT?void(n=r.value6):void(n=r.value3)}throw new Error("Failed pattern match at Data.Map.Internal (line 200, column 5 - line 200, column 22): "+[r.constructor.name])}for(;!a;)r=o(n);return r}}},M=function(n){if(n instanceof v)return u.Nil.value;if(n instanceof m)return s.append(u.semigroupList)(M(n.value0))(s.append(u.semigroupList)(t.pure(u.applicativeList)(n.value1))(M(n.value3)));if(n instanceof w)return s.append(u.semigroupList)(M(n.value0))(s.append(u.semigroupList)(t.pure(u.applicativeList)(n.value1))(s.append(u.semigroupList)(M(n.value3))(s.append(u.semigroupList)(t.pure(u.applicativeList)(n.value4))(M(n.value6)))));throw new Error("Failed pattern match at Data.Map.Internal (line 606, column 1 - line 606, column 38): "+[n.constructor.name])},P=new o.Functor(function(n){return function(e){if(e instanceof v)return v.value;if(e instanceof m)return new m(o.map(P)(n)(e.value0),e.value1,n(e.value2),o.map(P)(n)(e.value3));if(e instanceof w)return new w(o.map(P)(n)(e.value0),e.value1,n(e.value2),o.map(P)(n)(e.value3),e.value4,n(e.value5),o.map(P)(n)(e.value6));throw new Error("Failed pattern match at Data.Map.Internal (line 96, column 1 - line 99, column 110): "+[n.constructor.name,e.constructor.name])}}),I=function(n){return function(e){return function(t){var r,a=n,o=e,i=!1;function c(n,e,r){if(e instanceof u.Nil)return i=!0,r;if(e instanceof u.Cons){if(e.value0 instanceof h)return a=n,o=e.value1,void(t=new m(r,e.value0.value0,e.value0.value1,e.value0.value2));if(e.value0 instanceof y)return a=n,o=e.value1,void(t=new m(e.value0.value0,e.value0.value1,e.value0.value2,r));if(e.value0 instanceof g)return a=n,o=e.value1,void(t=new w(r,e.value0.value0,e.value0.value1,e.value0.value2,e.value0.value3,e.value0.value4,e.value0.value5));if(e.value0 instanceof D)return a=n,o=e.value1,void(t=new w(e.value0.value0,e.value0.value1,e.value0.value2,r,e.value0.value3,e.value0.value4,e.value0.value5));if(e.value0 instanceof b)return a=n,o=e.value1,void(t=new w(e.value0.value0,e.value0.value1,e.value0.value2,e.value0.value3,e.value0.value4,e.value0.value5,r));throw new Error("Failed pattern match at Data.Map.Internal (line 418, column 3 - line 423, column 88): "+[e.value0.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 415, column 1 - line 415, column 80): "+[e.constructor.name,r.constructor.name])}for(;!i;)r=c(a,o,t);return r}}},N=function(n){return function(e){return function(t){var r,a=function(e){return function(t){var r,a=e,o=!1;function i(e,r){if(e instanceof u.Nil)return o=!0,new m(r.value0,r.value1,r.value2,r.value3);if(e instanceof u.Cons){if(e.value0 instanceof h)return o=!0,I(n)(e.value1)(new w(r.value0,r.value1,r.value2,r.value3,e.value0.value0,e.value0.value1,e.value0.value2));if(e.value0 instanceof y)return o=!0,I(n)(e.value1)(new w(e.value0.value0,e.value0.value1,e.value0.value2,r.value0,r.value1,r.value2,r.value3));if(e.value0 instanceof g)return a=e.value1,void(t=new C(new m(r.value0,r.value1,r.value2,r.value3),e.value0.value0,e.value0.value1,new m(e.value0.value2,e.value0.value3,e.value0.value4,e.value0.value5)));if(e.value0 instanceof D)return a=e.value1,void(t=new C(new m(e.value0.value0,e.value0.value1,e.value0.value2,r.value0),r.value1,r.value2,new m(r.value3,e.value0.value3,e.value0.value4,e.value0.value5)));if(e.value0 instanceof b)return a=e.value1,void(t=new C(new m(e.value0.value0,e.value0.value1,e.value0.value2,e.value0.value3),e.value0.value4,e.value0.value5,new m(r.value0,r.value1,r.value2,r.value3)));throw new Error("Failed pattern match at Data.Map.Internal (line 454, column 5 - line 459, column 108): "+[e.value0.constructor.name,r.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 451, column 3 - line 451, column 56): "+[e.constructor.name,r.constructor.name])}for(;!o;)r=i(a,t);return r}},o=l.compare(n);return r=u.Nil.value,function(i){var c,l=r,s=!1;function p(r,c){if(c instanceof v)return s=!0,a(r)(new C(v.value,e,t,v.value));if(c instanceof m){var p=o(e)(c.value1);return p instanceof f.EQ?(s=!0,I(n)(r)(new m(c.value0,e,t,c.value3))):p instanceof f.LT?(l=new u.Cons(new h(c.value1,c.value2,c.value3),r),void(i=c.value0)):(l=new u.Cons(new y(c.value0,c.value1,c.value2),r),void(i=c.value3))}if(c instanceof w){var d=o(e)(c.value1);if(d instanceof f.EQ)return s=!0,I(n)(r)(new w(c.value0,e,t,c.value3,c.value4,c.value5,c.value6));var S=o(e)(c.value4);return S instanceof f.EQ?(s=!0,I(n)(r)(new w(c.value0,c.value1,c.value2,c.value3,e,t,c.value6))):d instanceof f.LT?(l=new u.Cons(new g(c.value1,c.value2,c.value3,c.value4,c.value5,c.value6),r),void(i=c.value0)):d instanceof f.GT&&S instanceof f.LT?(l=new u.Cons(new D(c.value0,c.value1,c.value2,c.value4,c.value5,c.value6),r),void(i=c.value3)):(l=new u.Cons(new b(c.value0,c.value1,c.value2,c.value3,c.value4,c.value5),r),void(i=c.value6))}throw new Error("Failed pattern match at Data.Map.Internal (line 434, column 3 - line 434, column 55): "+[r.constructor.name,c.constructor.name])}for(;!s;)c=p(l,i);return c}}}},J=new r.Foldable(function(n){return function(e){return function(t){return r.foldMap(u.foldableList)(n)(e)(S(t))}}},function(n){return function(e){return function(t){return r.foldl(u.foldableList)(n)(e)(S(t))}}},function(n){return function(e){return function(t){return r.foldr(u.foldableList)(n)(e)(S(t))}}}),x=v.value,R=function(n){return function(e){return function(t){return i.maybe(t)(p.snd)(function(n){return function(e){var t,r=function(e){return function(t){var r,a=e,o=!1;function i(e,r){if(e instanceof u.Nil)return o=!0,r;if(e instanceof u.Cons){if(e.value0 instanceof h&&e.value0.value2 instanceof v&&r instanceof v)return o=!0,I(n)(e.value1)(new m(v.value,e.value0.value0,e.value0.value1,v.value));if(e.value0 instanceof y&&e.value0.value0 instanceof v&&r instanceof v)return o=!0,I(n)(e.value1)(new m(v.value,e.value0.value1,e.value0.value2,v.value));if(e.value0 instanceof h&&e.value0.value2 instanceof m)return a=e.value1,void(t=new w(r,e.value0.value0,e.value0.value1,e.value0.value2.value0,e.value0.value2.value1,e.value0.value2.value2,e.value0.value2.value3));if(e.value0 instanceof y&&e.value0.value0 instanceof m)return a=e.value1,void(t=new w(e.value0.value0.value0,e.value0.value0.value1,e.value0.value0.value2,e.value0.value0.value3,e.value0.value1,e.value0.value2,r));if(e.value0 instanceof h&&e.value0.value2 instanceof w)return o=!0,I(n)(e.value1)(new m(new m(r,e.value0.value0,e.value0.value1,e.value0.value2.value0),e.value0.value2.value1,e.value0.value2.value2,new m(e.value0.value2.value3,e.value0.value2.value4,e.value0.value2.value5,e.value0.value2.value6)));if(e.value0 instanceof y&&e.value0.value0 instanceof w)return o=!0,I(n)(e.value1)(new m(new m(e.value0.value0.value0,e.value0.value0.value1,e.value0.value0.value2,e.value0.value0.value3),e.value0.value0.value4,e.value0.value0.value5,new m(e.value0.value0.value6,e.value0.value1,e.value0.value2,r)));if(e.value0 instanceof g&&e.value0.value2 instanceof v&&e.value0.value5 instanceof v&&r instanceof v)return o=!0,I(n)(e.value1)(new w(v.value,e.value0.value0,e.value0.value1,v.value,e.value0.value3,e.value0.value4,v.value));if(e.value0 instanceof D&&e.value0.value0 instanceof v&&e.value0.value5 instanceof v&&r instanceof v)return o=!0,I(n)(e.value1)(new w(v.value,e.value0.value1,e.value0.value2,v.value,e.value0.value3,e.value0.value4,v.value));if(e.value0 instanceof b&&e.value0.value0 instanceof v&&e.value0.value3 instanceof v&&r instanceof v)return o=!0,I(n)(e.value1)(new w(v.value,e.value0.value1,e.value0.value2,v.value,e.value0.value4,e.value0.value5,v.value));if(e.value0 instanceof g&&e.value0.value2 instanceof m)return o=!0,I(n)(e.value1)(new m(new w(r,e.value0.value0,e.value0.value1,e.value0.value2.value0,e.value0.value2.value1,e.value0.value2.value2,e.value0.value2.value3),e.value0.value3,e.value0.value4,e.value0.value5));if(e.value0 instanceof D&&e.value0.value0 instanceof m)return o=!0,I(n)(e.value1)(new m(new w(e.value0.value0.value0,e.value0.value0.value1,e.value0.value0.value2,e.value0.value0.value3,e.value0.value1,e.value0.value2,r),e.value0.value3,e.value0.value4,e.value0.value5));if(e.value0 instanceof D&&e.value0.value5 instanceof m)return o=!0,I(n)(e.value1)(new m(e.value0.value0,e.value0.value1,e.value0.value2,new w(r,e.value0.value3,e.value0.value4,e.value0.value5.value0,e.value0.value5.value1,e.value0.value5.value2,e.value0.value5.value3)));if(e.value0 instanceof b&&e.value0.value3 instanceof m)return o=!0,I(n)(e.value1)(new m(e.value0.value0,e.value0.value1,e.value0.value2,new w(e.value0.value3.value0,e.value0.value3.value1,e.value0.value3.value2,e.value0.value3.value3,e.value0.value4,e.value0.value5,r)));if(e.value0 instanceof g&&e.value0.value2 instanceof w)return o=!0,I(n)(e.value1)(new w(new m(r,e.value0.value0,e.value0.value1,e.value0.value2.value0),e.value0.value2.value1,e.value0.value2.value2,new m(e.value0.value2.value3,e.value0.value2.value4,e.value0.value2.value5,e.value0.value2.value6),e.value0.value3,e.value0.value4,e.value0.value5));if(e.value0 instanceof D&&e.value0.value0 instanceof w)return o=!0,I(n)(e.value1)(new w(new m(e.value0.value0.value0,e.value0.value0.value1,e.value0.value0.value2,e.value0.value0.value3),e.value0.value0.value4,e.value0.value0.value5,new m(e.value0.value0.value6,e.value0.value1,e.value0.value2,r),e.value0.value3,e.value0.value4,e.value0.value5));if(e.value0 instanceof D&&e.value0.value5 instanceof w)return o=!0,I(n)(e.value1)(new w(e.value0.value0,e.value0.value1,e.value0.value2,new m(r,e.value0.value3,e.value0.value4,e.value0.value5.value0),e.value0.value5.value1,e.value0.value5.value2,new m(e.value0.value5.value3,e.value0.value5.value4,e.value0.value5.value5,e.value0.value5.value6)));if(e.value0 instanceof b&&e.value0.value3 instanceof w)return o=!0,I(n)(e.value1)(new w(e.value0.value0,e.value0.value1,e.value0.value2,new m(e.value0.value3.value0,e.value0.value3.value1,e.value0.value3.value2,e.value0.value3.value3),e.value0.value3.value4,e.value0.value3.value5,new m(e.value0.value3.value6,e.value0.value4,e.value0.value5,r)));throw new Error("Failed pattern match at Data.Map.Internal (line 511, column 9 - line 528, column 136): "+[e.value0.constructor.name,r.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 508, column 5 - line 528, column 136): "+[e.constructor.name])}for(;!o;)r=i(a,t);return r}},a=function(n){return function(e){var t,a=n,o=!1;function i(n,t){if(t instanceof m&&t.value0 instanceof v&&t.value3 instanceof v)return o=!0,r(n)(v.value);if(t instanceof m)return a=new u.Cons(new y(t.value0,t.value1,t.value2),n),void(e=t.value3);if(t instanceof w&&t.value0 instanceof v&&t.value3 instanceof v&&t.value6 instanceof v)return o=!0,r(new u.Cons(new y(v.value,t.value1,t.value2),n))(v.value);if(t instanceof w)return a=new u.Cons(new b(t.value0,t.value1,t.value2,t.value3,t.value4,t.value5),n),void(e=t.value6);throw new Error("Failed pattern match at Data.Map.Internal (line 540, column 5 - line 544, column 107): "+[t.constructor.name])}for(;!o;)t=i(a,e);return t}},o=function(n){var e,t=!1;function r(e){if(e instanceof m&&e.value3 instanceof v)return t=!0,{key:e.value1,value:e.value2};if(e instanceof m)n=e.value3;else{if(e instanceof w&&e.value6 instanceof v)return t=!0,{key:e.value4,value:e.value5};if(!(e instanceof w))throw new Error("Failed pattern match at Data.Map.Internal (line 531, column 33 - line 535, column 45): "+[e.constructor.name]);n=e.value6}}for(;!t;)e=r(n);return e},c=l.compare(n);return t=u.Nil.value,function(l){var s,d=t,C=!1;function S(t,s){if(s instanceof v)return C=!0,i.Nothing.value;if(s instanceof m){var S=c(e)(s.value1);if(s.value3 instanceof v&&S instanceof f.EQ)return C=!0,new i.Just(new p.Tuple(s.value2,r(t)(v.value)));if(S instanceof f.EQ){var A=o(s.value0);return C=!0,new i.Just(new p.Tuple(s.value2,a(new u.Cons(new h(A.key,A.value,s.value3),t))(s.value0)))}return S instanceof f.LT?(d=new u.Cons(new h(s.value1,s.value2,s.value3),t),void(l=s.value0)):(d=new u.Cons(new y(s.value0,s.value1,s.value2),t),void(l=s.value3))}if(s instanceof w){var E=s.value0 instanceof v&&s.value3 instanceof v&&s.value6 instanceof v,F=(S=c(e)(s.value4),c(e)(s.value1));return E&&F instanceof f.EQ?(C=!0,new i.Just(new p.Tuple(s.value2,I(n)(t)(new m(v.value,s.value4,s.value5,v.value))))):E&&S instanceof f.EQ?(C=!0,new i.Just(new p.Tuple(s.value5,I(n)(t)(new m(v.value,s.value1,s.value2,v.value))))):F instanceof f.EQ?(A=o(s.value0),C=!0,new i.Just(new p.Tuple(s.value2,a(new u.Cons(new g(A.key,A.value,s.value3,s.value4,s.value5,s.value6),t))(s.value0)))):S instanceof f.EQ?(A=o(s.value3),C=!0,new i.Just(new p.Tuple(s.value5,a(new u.Cons(new D(s.value0,s.value1,s.value2,A.key,A.value,s.value6),t))(s.value3)))):F instanceof f.LT?(d=new u.Cons(new g(s.value1,s.value2,s.value3,s.value4,s.value5,s.value6),t),void(l=s.value0)):F instanceof f.GT&&S instanceof f.LT?(d=new u.Cons(new D(s.value0,s.value1,s.value2,s.value4,s.value5,s.value6),t),void(l=s.value3)):(d=new u.Cons(new b(s.value0,s.value1,s.value2,s.value3,s.value4,s.value5),t),void(l=s.value6))}throw new Error("Failed pattern match at Data.Map.Internal (line 481, column 34 - line 504, column 80): "+[s.constructor.name])}for(;!C;)s=S(d,l);return s}}}(n)(e)(t))}}},L=function(n){return function(e){return function(t){return function(r){var a=e(T(n)(t)(r));if(a instanceof i.Nothing)return R(n)(t)(r);if(a instanceof i.Just)return N(n)(t)(a.value0)(r);throw new Error("Failed pattern match at Data.Map.Internal (line 549, column 15 - line 551, column 25): "+[a.constructor.name])}}}},k=function(n){return function(e){return function(t){return function(a){return r.foldl(u.foldableList)(function(t){return function(r){return L(n)((a=i.maybe(r.value1)(e(r.value1)),function(n){return i.Just.create(a(n))}))(r.value0)(t);var a}})(a)(F(u.unfoldableList)(t))}}}},O=function(n){return k(n)(a.const)};e.empty=x,e.isEmpty=function(n){return n instanceof v},e.singleton=E,e.insert=N,e.insertWith=function(n){return function(e){return function(t){return function(r){return L(n)((o=i.maybe(r)(a.flip(e)(r)),function(n){return i.Just.create(o(n))}))(t);var o}}}},e.lookup=T,e.toUnfoldable=F,e.toUnfoldableUnordered=function(n){return function(e){return d.unfoldr(n)(function(n){var e,t=!1;function r(e){if(e instanceof u.Nil)return t=!0,i.Nothing.value;if(e instanceof u.Cons){if(e.value0 instanceof v)return void(n=e.value1);if(e.value0 instanceof m)return t=!0,i.Just.create(new p.Tuple(new p.Tuple(e.value0.value1,e.value0.value2),new u.Cons(e.value0.value0,new u.Cons(e.value0.value3,e.value1))));if(e.value0 instanceof w)return t=!0,i.Just.create(new p.Tuple(new p.Tuple(e.value0.value1,e.value0.value2),new u.Cons(E(e.value0.value4)(e.value0.value5),new u.Cons(e.value0.value0,new u.Cons(e.value0.value3,new u.Cons(e.value0.value6,e.value1))))));throw new Error("Failed pattern match at Data.Map.Internal (line 598, column 18 - line 603, column 77): "+[e.value0.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 597, column 3 - line 597, column 19): "+[e.constructor.name])}for(;!t;)e=r(n);return e})(new u.Cons(e,u.Nil.value))}},e.delete=R,e.keys=M,e.values=S,e.union=O,e.unionWith=k,e.size=A,e.monoidMap=function(n){return new c.Monoid(function(){return function(n){return new s.Semigroup(O(n))}(n)},x)},e.functorMap=P,e.foldableMap=J}(n),function(n){"use strict";n["Data.Set"]=n["Data.Set"]||{};var e=n["Data.Set"],t=n["Control.Applicative"],r=n["Control.Bind"],a=n["Control.Monad.Rec.Class"],o=n["Control.Monad.ST.Internal"],u=n["Data.Array"],i=n["Data.Array.ST"],c=n["Data.Foldable"],l=n["Data.List"],f=n["Data.List.Types"],s=n["Data.Map.Internal"],p=n["Data.Monoid"],d=n["Data.Ord"],v=n["Data.Ordering"],m=n["Data.Semigroup"],w=n["Data.Unit"],h=function(n){return function(e){return function(t){return s.union(n)(e)(t)}}},y=function(n){return s.keys(n)},g=function(n){return new m.Semigroup(h(n))},D=function(n){return function(e){return function(t){return s.insert(n)(e)(w.unit)(t)}}},b=new c.Foldable(function(n){return function(e){var t=c.foldMap(f.foldableList)(n)(e);return function(n){return t(y(n))}}},function(n){return function(e){var t=c.foldl(f.foldableList)(n)(e);return function(n){return t(y(n))}}},function(n){return function(e){var t=c.foldr(f.foldableList)(n)(e);return function(n){return t(y(n))}}}),C=s.empty,S=function(n){return function(e){return c.foldl(n)(function(n){return function(t){return D(e)(t)(n)}})(C)}};e.fromFoldable=S,e.toUnfoldable=function(n){var e=l.toUnfoldable(n);return function(n){return e(y(n))}},e.singleton=function(n){return s.singleton(n)(w.unit)},e.insert=D,e.size=function(n){return s.size(n)},e.union=h,e.intersection=function(n){return function(e){return function(l){var s,p=(s=u.fromFoldable(f.foldableList),function(n){return s(y(n))}),m=p(l),w=u.length(m),h=p(e),g=u.length(h);return S(c.foldableArray)(n)(r.bind(o.bindST)(r.bind(o.bindST)(i.empty)(function(e){return a.tailRecM2(o.monadRecST)(function(r){return function(u){if(r<g&&u<w){var c=d.compare(n)(h[r])(m[u]);if(c instanceof v.EQ)return function(){return i.push(h[r])(e)(),new a.Loop({a:r+1|0,b:u+1|0})};if(c instanceof v.LT)return t.pure(o.applicativeST)(new a.Loop({a:r+1|0,b:u}));if(c instanceof v.GT)return t.pure(o.applicativeST)(new a.Loop({a:r,b:u+1|0}));throw new Error("Failed pattern match at Data.Set (line 176, column 12 - line 181, column 43): "+[c.constructor.name])}return t.pure(o.applicativeST)(new a.Done(e))}})(0)(0)}))(i.unsafeFreeze)())}}},e.monoidSet=function(n){return new p.Monoid(function(){return g(n)},C)},e.semigroupSet=g,e.foldableSet=b}(n),function(n){"use strict";n["Data.Argonaut.Encode.Encoders"]=n["Data.Argonaut.Encode.Encoders"]||{};var e=n["Data.Argonaut.Encode.Encoders"],t=n["Data.Argonaut.Core"],r=n["Data.Functor"],a=n["Data.Int"],o=n["Data.List"],u=n["Data.List.Types"],i=n["Data.Map.Internal"],c=n["Data.Maybe"],l=n["Data.Set"],f=n["Data.Unfoldable"],s=function(n){return function(e){return function(r){return t.fromArray([n(r.value0),e(r.value1)])}}},p=t.fromString,d=function(n){var e=r.map(r.functorArray)(n),a=o.toUnfoldable(f.unfoldableArray);return function(n){return t.fromArray(e(a(n)))}};e.encodeMaybe=function(n){return function(e){if(e instanceof c.Nothing)return t.jsonNull;if(e instanceof c.Just)return n(e.value0);throw new Error("Failed pattern match at Data.Argonaut.Encode.Encoders (line 29, column 23 - line 31, column 22): "+[e.constructor.name])}},e.encodeTuple=s,e.encodeInt=function(n){return t.fromNumber(a.toNumber(n))},e.encodeString=p,e.encodeArray=function(n){var e=r.map(r.functorArray)(n);return function(n){return t.fromArray(e(n))}},e.encodeSet=function(n){return function(n){var e=d(n),t=l.toUnfoldable(u.unfoldableList);return function(n){return e(t(n))}}},e.encodeMap=function(n){return function(n){return function(e){var t=d(s(n)(e)),r=i.toUnfoldable(u.unfoldableList);return function(n){return t(r(n))}}}}}(n),function(n){"use strict";n["Data.Argonaut.Encode.Class"]=n["Data.Argonaut.Encode.Class"]||{};var e=n["Data.Argonaut.Encode.Class"],t=n["Data.Argonaut.Core"],r=n["Data.Argonaut.Encode.Encoders"],a=n["Data.Symbol"],o=n["Foreign.Object"],u=n.Record,i=n["Type.Data.RowList"],c=function(n){this.gEncodeJson=n},l=function(n){this.encodeJson=n},f=new c(function(n){return function(n){return o.empty}}),s=function(n){return n.gEncodeJson},p=new l(r.encodeString),d=new l(r.encodeInt),v=function(n){return n.encodeJson};e.encodeJson=v,e.EncodeJson=l,e.encodeJsonMaybe=function(n){return new l(r.encodeMaybe(v(n)))},e.encodeJsonTuple=function(n){return function(e){return new l(r.encodeTuple(v(n))(v(e)))}},e.encodeJsonInt=d,e.encodeJsonJString=p,e.encodeJsonArray=function(n){return new l(r.encodeArray(v(n)))},e.encodeSet=function(n){return function(e){return new l(r.encodeSet(n)(v(e)))}},e.encodeMap=function(n){return function(e){return function(t){return new l(r.encodeMap(n)(v(e))(v(t)))}}},e.encodeRecord=function(n){return function(e){return new l(function(e){return t.fromObject(s(n)(e)(i.RLProxy.value))})}},e.gEncodeJsonNil=f,e.gEncodeJsonCons=function(n){return function(e){return function(t){return function(r){return new c(function(r){return function(c){return o.insert(a.reflectSymbol(t)(a.SProxy.value))(v(n)(u.get(t)()(a.SProxy.value)(r)))(s(e)(r)(i.RLProxy.value))}})}}}}}(n),function(n){"use strict";n["Data.Argonaut.Types.Generic.Rep"]=n["Data.Argonaut.Types.Generic.Rep"]||{};n["Data.Argonaut.Types.Generic.Rep"].defaultEncoding={tagKey:"tag",valuesKey:"values",unwrapSingleArguments:!1}}(n),function(n){"use strict";n["Data.Generic.Rep"]=n["Data.Generic.Rep"]||{};var e=n["Data.Generic.Rep"],t=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),r=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),a=function(){function n(){}return n.value=new n,n}();e.Generic=function(n,e){this.from=n,this.to=e},e.from=function(n){return n.from},e.NoArguments=a,e.Inl=t,e.Inr=r}(n),function(n){"use strict";n["Data.Argonaut.Encode.Generic.Rep"]=n["Data.Argonaut.Encode.Generic.Rep"]||{};var e=n["Data.Argonaut.Encode.Generic.Rep"],t=n["Data.Argonaut.Core"],r=n["Data.Argonaut.Encode.Class"],a=n["Data.Argonaut.Types.Generic.Rep"],o=n["Data.Generic.Rep"],u=n["Data.Symbol"],i=n["Foreign.Object"],c=function(n){this.encodeRepArgs=n},l=function(n){this.encodeRepWith=n},f=function(n){return n.encodeRepWith},s=new c(function(n){return[]});e.genericEncodeJson=function(n){return function(e){return function(n){return function(e){return function(t){var r=f(e)(t),a=o.from(n);return function(n){return r(a(n))}}}}(n)(e)(a.defaultEncoding)}},e.encodeRepSum=function(n){return function(e){return new l(function(t){return function(r){if(r instanceof o.Inl)return f(n)(t)(r.value0);if(r instanceof o.Inr)return f(e)(t)(r.value0);throw new Error("Failed pattern match at Data.Argonaut.Encode.Generic.Rep (line 37, column 1 - line 39, column 50): "+[t.constructor.name,r.constructor.name])}})}},e.encodeRepConstructor=function(n){return function(e){return new l(function(r){return function(a){var o,c=(o=e.encodeRepArgs(a),r.unwrapSingleArguments&&1===o.length?o[0]:t.fromArray(o));return t.fromObject(i.insert(r.tagKey)(t.fromString(u.reflectSymbol(n)(u.SProxy.value)))(i.insert(r.valuesKey)(c)(i.empty)))}})}},e.encodeRepArgsNoArguments=s,e.encodeRepArgsArgument=function(n){return new c(function(e){return[r.encodeJson(n)(e)]})}}(n),function(e){"use strict";(n["Data.Argonaut.Parser"]=n["Data.Argonaut.Parser"]||{})._jsonParser=function(n,e,t){try{return e(JSON.parse(t))}catch(r){return n(r.message)}}}(),function(n){"use strict";n["Data.Argonaut.Parser"]=n["Data.Argonaut.Parser"]||{};var e=n["Data.Argonaut.Parser"],t=n["Data.Argonaut.Parser"],r=n["Data.Either"];e.jsonParser=function(n){return t._jsonParser(r.Left.create,r.Right.create,n)}}(n),function(e){"use strict";(n["Unsafe.Coerce"]=n["Unsafe.Coerce"]||{}).unsafeCoerce=function(n){return n}}(),function(n){"use strict";n["Unsafe.Coerce"]=n["Unsafe.Coerce"]||{};var e=n["Unsafe.Coerce"],t=n["Unsafe.Coerce"];e.unsafeCoerce=t.unsafeCoerce}(n),function(n){"use strict";n["Data.Array.NonEmpty"]=n["Data.Array.NonEmpty"]||{};var e,t,r=n["Data.Array.NonEmpty"],a=n["Data.Array"],o=n["Data.Boolean"],u=n["Data.Maybe"],i=n["Unsafe.Coerce"],c=i.unsafeCoerce,l=i.unsafeCoerce,f=(e=a.uncons,t=u.fromJust(),function(n){return t(e(l(n)))});a.length;r.fromArray=function(n){if(a.length(n)>0)return new u.Just(c(n));if(o.otherwise)return u.Nothing.value;throw new Error("Failed pattern match at Data.Array.NonEmpty (line 134, column 1 - line 134, column 58): "+[n.constructor.name])},r.uncons=f}(n),function(n){"use strict";n.toCharCode=function(n){return n.charCodeAt(0)},n.fromCharCode=function(n){return String.fromCharCode(n)}}(n["Data.Enum"]=n["Data.Enum"]||{}),function(n){"use strict";n["Data.Enum"]=n["Data.Enum"]||{};var e=n["Data.Enum"],t=n["Data.Enum"],r=n["Data.Bounded"],a=n["Data.Maybe"],o=n["Data.Ord"],u=function(n,e,t){this.Ord0=n,this.pred=e,this.succ=t},i=function(n,e,t,r,a){this.Bounded0=n,this.Enum1=e,this.cardinality=t,this.fromEnum=r,this.toEnum=a},c=function(n){return n.toEnum},l=function(n){return n.fromEnum},f=function(n){return function(e){return function(t){return n(e(t)+1|0)}}},s=function(n){return function(e){return function(t){return n(e(t)-1|0)}}},p=function(n){return n>=r.bottom(r.boundedInt)&&n<=r.top(r.boundedInt)?new a.Just(t.fromCharCode(n)):a.Nothing.value},d=new u(function(){return o.ordChar},s(p)(t.toCharCode),f(p)(t.toCharCode)),v=new i(function(){return r.boundedChar},function(){return d},t.toCharCode(r.top(r.boundedChar))-t.toCharCode(r.bottom(r.boundedChar))|0,t.toCharCode,p);e.Enum=u,e.BoundedEnum=i,e.toEnum=c,e.fromEnum=l,e.toEnumWithDefaults=function(n){return function(e){return function(t){return function(o){var u=c(n)(o);if(u instanceof a.Just)return u.value0;if(u instanceof a.Nothing)return o<l(n)(r.bottom(n.Bounded0()))?e:t;throw new Error("Failed pattern match at Data.Enum (line 158, column 33 - line 160, column 62): "+[u.constructor.name])}}}},e.defaultSucc=f,e.defaultPred=s,e.boundedEnumChar=v}(n),function(n){"use strict";n["Data.Char"]=n["Data.Char"]||{};var e=n["Data.Char"],t=n["Data.Enum"],r=t.fromEnum(t.boundedEnumChar),a=t.toEnum(t.boundedEnumChar);e.toCharCode=r,e.fromCharCode=a}(n),function(n){"use strict";n["Data.CommutativeRing"]=n["Data.CommutativeRing"]||{};var e=n["Data.CommutativeRing"],t=n["Data.Ring"],r=new function(n){this.Ring0=n}(function(){return t.ringInt});e.commutativeRingInt=r}(n),function(n){"use strict";n.intDegree=function(n){return Math.min(Math.abs(n),2147483647)},n.intDiv=function(n){return function(e){return 0===e?0:e>0?Math.floor(n/e):-Math.floor(n/-e)}},n.intMod=function(n){return function(e){if(0===e)return 0;var t=Math.abs(e);return(n%t+t)%t}}}(n["Data.EuclideanRing"]=n["Data.EuclideanRing"]||{}),function(n){"use strict";n["Data.EuclideanRing"]=n["Data.EuclideanRing"]||{};var e=n["Data.EuclideanRing"],t=n["Data.EuclideanRing"],r=n["Data.CommutativeRing"],a=new function(n,e,t,r){this.CommutativeRing0=n,this.degree=e,this.div=t,this.mod=r}(function(){return r.commutativeRingInt},t.intDegree,t.intDiv,t.intMod);e.div=function(n){return n.div},e.mod=function(n){return n.mod},e.euclideanRingInt=a}(n),function(n){"use strict";n["Data.Exists"]=n["Data.Exists"]||{};var e=n["Data.Exists"],t=n["Unsafe.Coerce"],r=t.unsafeCoerce,a=t.unsafeCoerce;e.mkExists=a,e.runExists=r}(n),function(n){"use strict";n.defer=function(n){var e=null;return function(){return void 0===n?e:(e=n(),n=void 0,e)}},n.force=function(n){return n()}}(n["Data.Lazy"]=n["Data.Lazy"]||{}),function(n){"use strict";n["Data.Lazy"]=n["Data.Lazy"]||{};var e=n["Data.Lazy"],t=n["Data.Lazy"],r=n["Control.Apply"],a=n["Control.Bind"],o=new n["Data.Functor"].Functor(function(n){return function(e){return t.defer(function(r){return n(t.force(e))})}}),u=new r.Apply(function(){return o},function(n){return function(e){return t.defer(function(r){return t.force(n)(t.force(e))})}}),i=new a.Bind(function(){return u},function(n){return function(e){return t.defer(function(r){return t.force(e(t.force(n)))})}});e.bindLazy=i,e.defer=t.defer,e.force=t.force}(n),function(n){"use strict";n["Data.Function.Memoize"]=n["Data.Function.Memoize"]||{};var e=n["Data.Function.Memoize"],t=n["Control.Bind"],r=n["Data.Lazy"],a=n["Data.List.Types"],o=n["Data.Tuple"],u=function(){function n(n,e,t){this.value0=n,this.value1=e,this.value2=t}return n.create=function(e){return function(t){return function(r){return new n(e,t,r)}}},n}(),i=function(n){this.tabulate=n},c=new i(function(n){var e,o=function(n){return function(e){if(n instanceof a.Nil)return e.value0;if(n instanceof a.Cons&&!n.value0)return t.bind(r.bindLazy)(e.value1)(o(n.value1));if(n instanceof a.Cons&&n.value0)return t.bind(r.bindLazy)(e.value2)(o(n.value1));throw new Error("Failed pattern match at Data.Function.Memoize (line 137, column 11 - line 137, column 64): "+[n.constructor.name,e.constructor.name])}},i=function(e){return new u(r.defer(function(t){return n(e)}),r.defer(function(n){return i(2*e|0)}),r.defer(function(n){return i(1+(2*e|0)|0)}))},c=i(0),l=(e=a.Nil.value,function(n){var t,r=e,o=!1;function u(e,t){if(0===t)return o=!0,e;r=new a.Cons(0!=(1&t),e),n=t>>>1}for(;!o;)t=u(r,n);return t});return function(n){return o(l(n))(c)}}),l=function(n){return n.tabulate};e.memoize2=function(n){return function(e){return function(a){var u=function(n){return function(e){var t=l(n)(e);return function(n){return r.force(t(n))}}}(function(n){return function(e){return new i(function(a){var u=l(n)(function(n){return l(e)(function(e){return a(new o.Tuple(n,e))})});return function(n){return t.bind(r.bindLazy)(u(n.value0))(function(e){return e(n.value1)})}})}}(n)(e))(o.uncurry(a));return o.curry(u)}}},e.tabulateNat=c}(n),function(n){"use strict";n["Data.Generic.Rep.Show"]=n["Data.Generic.Rep.Show"]||{};var e=n["Data.Generic.Rep.Show"],t=n["Data.Foldable"],r=n["Data.Generic.Rep"],a=n["Data.Monoid"],o=n["Data.Semigroup"],u=n["Data.Show"],i=n["Data.Symbol"],c=function(n){this.genericShowArgs=n},l=function(n){this["genericShow'"]=n},f=new c(function(n){return[]}),s=function(n){return n["genericShow'"]};e.genericShow=function(n){return function(e){return function(t){return s(e)(r.from(n)(t))}}},e.genericShowArgsNoArguments=f,e.genericShowSum=function(n){return function(e){return new l(function(t){if(t instanceof r.Inl)return s(n)(t.value0);if(t instanceof r.Inr)return s(e)(t.value0);throw new Error("Failed pattern match at Data.Generic.Rep.Show (line 26, column 1 - line 28, column 40): "+[t.constructor.name])})}},e.genericShowConstructor=function(n){return function(e){return new l(function(r){var u=i.reflectSymbol(e)(i.SProxy.value),c=n.genericShowArgs(r);return 0===c.length?u:"("+t.intercalate(t.foldableArray)(a.monoidString)(" ")(o.append(o.semigroupArray)([u])(c))+")"})}},e.genericShowArgsArgument=function(n){return new c(function(e){return[u.show(n)(e)]})}}(n),function(n){"use strict";n["Data.Profunctor"]=n["Data.Profunctor"]||{};var e=n["Data.Profunctor"],t=new function(n){this.dimap=n}(function(n){return function(e){return function(t){return function(r){return e(t(n(r)))}}}});e.dimap=function(n){return n.dimap},e.profunctorFn=t}(n),function(n){"use strict";n["Data.Profunctor.Strong"]=n["Data.Profunctor.Strong"]||{};var e=n["Data.Profunctor.Strong"],t=n["Data.Functor"],r=n["Data.Profunctor"],a=n["Data.Tuple"],o=new function(n,e,t){this.Profunctor0=n,this.first=e,this.second=t}(function(){return r.profunctorFn},function(n){return function(e){return new a.Tuple(n(e.value0),e.value1)}},t.map(a.functorTuple));e.first=function(n){return n.first},e.strongFn=o}(n),function(n){"use strict";n["Data.Lens.Lens"]=n["Data.Lens.Lens"]||{};var e=n["Data.Lens.Lens"],t=n["Data.Profunctor"],r=n["Data.Profunctor.Strong"],a=n["Data.Tuple"];e.lens=function(n){return function(e){return function(o){return(u=function(t){return new a.Tuple(n(t),function(n){return e(t)(n)})},function(n){return function(e){return t.dimap(n.Profunctor0())(u)(function(n){return n.value1(n.value0)})(r.first(n)(e))}})(o);var u}}}}(n),function(n){"use strict";n["Data.Lens.Record"]=n["Data.Lens.Record"]||{};var e=n["Data.Lens.Record"],t=n["Data.Function"],r=n["Data.Lens.Lens"],a=n.Record;e.prop=function(n){return function(e){return function(e){return function(e){return function(o){return r.lens(a.get(n)()(e))(t.flip(a.set(n)()()(e)))(o)}}}}}}(n),function(n){"use strict";n["Data.Lens.Setter"]=n["Data.Lens.Setter"]||{};n["Data.Lens.Setter"].over=function(n){return n}}(n),function(n){"use strict";n["Data.Ord.Min"]=n["Data.Ord.Min"]||{};var e=n["Data.Ord.Min"],t=n["Data.Newtype"],r=n["Data.Ord"],a=n["Data.Semigroup"],o=function(n){return n},u=new t.Newtype(function(n){return n},o);e.Min=o,e.newtypeMin=u,e.semigroupMin=function(n){return new a.Semigroup(function(e){return function(t){return r.min(n)(e)(t)}})}}(n),function(n){"use strict";n["Data.Semigroup.Foldable"]=n["Data.Semigroup.Foldable"]||{};var e=n["Data.Semigroup.Foldable"],t=n["Data.Functor"],r=n["Data.Newtype"],a=n["Data.Ord.Min"],o=function(n){return n.foldMap1};e.Foldable1=function(n,e,t){this.Foldable0=n,this.fold1=e,this.foldMap1=t},e.foldMap1=o,e.minimum=function(n){return function(e){return r.ala(t.functorFn)(a.newtypeMin)(a.newtypeMin)(a.Min)(o(e)(a.semigroupMin(n)))}}}(n),function(n){"use strict";n["Data.NonEmpty"]=n["Data.NonEmpty"]||{};var e=n["Data.NonEmpty"],t=n["Control.Category"],r=n["Control.Plus"],a=n["Data.Foldable"],o=n["Data.Semigroup"],u=n["Data.Semigroup.Foldable"],i=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),c=function(n){return new u.Foldable1(function(){return function(n){return new a.Foldable(function(e){return function(t){return function(r){return o.append(e.Semigroup0())(t(r.value0))(a.foldMap(n)(e)(t)(r.value1))}}},function(e){return function(t){return function(r){return a.foldl(n)(e)(e(t)(r.value0))(r.value1)}}},function(e){return function(t){return function(r){return e(r.value0)(a.foldr(n)(e)(t)(r.value1))}}})}(n)},function(e){return u.foldMap1(c(n))(e)(t.identity(t.categoryFn))},function(e){return function(t){return function(r){return a.foldl(n)(function(n){return function(r){return o.append(e)(n)(t(r))}})(t(r.value0))(r.value1)}}})};e.NonEmpty=i,e.singleton=function(n){return function(e){return new i(e,r.empty(n))}},e.foldable1NonEmpty=c}(n),function(n){"use strict";n["Data.List.NonEmpty"]=n["Data.List.NonEmpty"]||{};var e,t=n["Data.List.NonEmpty"],r=n["Data.Functor"],a=n["Data.List"],o=n["Data.List.Types"],u=n["Data.Maybe"],i=n["Data.NonEmpty"],c=n["Data.Tuple"],l=n["Data.Unfoldable"],f=function(n){return new o.Cons(n.value0,n.value1)},s=(e=i.singleton(o.plusList),function(n){return o.NonEmptyList(e(n))});t.toUnfoldable=function(n){var e=l.unfoldr(n)(function(n){return r.map(u.functorMaybe)(function(n){return new c.Tuple(n.head,n.tail)})(a.uncons(n))});return function(n){return e(f(n))}},t.toList=f,t.singleton=s,t["cons'"]=function(n){return function(e){return new i.NonEmpty(n,e)}},t.uncons=function(n){return{head:n.value0,tail:n.value1}}}(n),function(n){"use strict";n["Data.Op"]=n["Data.Op"]||{};var e=n["Data.Op"],t=function(n){return n},r=new n["Data.Newtype"].Newtype(function(n){return n},t);e.Op=t,e.newtypeOp=r}(n),function(e){"use strict";(n["Foreign"]=n["Foreign"]||{}).unsafeToForeign=function(n){return n}}(),function(n){"use strict";n.Foreign=n.Foreign||{};var e=n.Foreign,t=n.Foreign;e.unsafeToForeign=t.unsafeToForeign}(n),function(n){"use strict";n["Data.Options"]=n["Data.Options"]||{};var e=n["Data.Options"],t=n["Data.Foldable"],r=n["Data.Newtype"],a=n["Data.Op"],o=n["Data.Semigroup"],u=n["Data.Tuple"],i=n.Foreign,c=n["Foreign.Object"],l=o.semigroupArray,f=r.unwrap(a.newtypeOp);e.options=function(n){return i.unsafeToForeign(c.fromFoldable(t.foldableArray)(n))},e.assoc=f,e.opt=function(n){return a.Op((e=n,function(n){return[new u.Tuple(e,i.unsafeToForeign(n))]}));var e},e.semigroupOptions=l}(n),function(n){"use strict";n["Data.Profunctor.Choice"]=n["Data.Profunctor.Choice"]||{};var e=n["Data.Profunctor.Choice"],t=n["Data.Either"],r=n["Data.Functor"],a=n["Data.Profunctor"],o=new function(n,e,t){this.Profunctor0=n,this.left=e,this.right=t}(function(){return a.profunctorFn},function(n){return function(e){if(e instanceof t.Left)return t.Left.create(n(e.value0));if(e instanceof t.Right)return new t.Right(e.value0);throw new Error("Failed pattern match at Data.Profunctor.Choice (line 32, column 1 - line 35, column 16): "+[n.constructor.name,e.constructor.name])}},r.map(t.functorEither));e.left=function(n){return n.left},e.choiceFn=o}(n),function(n){"use strict";n["Data.Search.Trie.Internal"]=n["Data.Search.Trie.Internal"]||{};var e,t,r,a,o=n["Data.Search.Trie.Internal"],u=(n["Control.Bind"],n["Data.Bifunctor"]),i=n["Data.Eq"],c=n["Data.Foldable"],l=n["Data.Function"],f=n["Data.Functor"],s=n["Data.List"],p=n["Data.List.Types"],d=n["Data.Map.Internal"],v=n["Data.Maybe"],m=n["Data.Monoid"],w=n["Data.Semigroup"],h=n["Data.Tuple"],y=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),g=function(){function n(n,e,t){this.value0=n,this.value1=e,this.value2=t}return n.create=function(e){return function(t){return function(r){return new n(e,t,r)}}},n}(),D=function(){function n(n,e,t){this.value0=n,this.value1=e,this.value2=t}return n.create=function(e){return function(t){return function(r){return new n(e,t,r)}}},n}(),b=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),C=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),S=(e=p.Nil.value,t=function(n){var t,r=e,a=!1;function o(e,t){if(t instanceof p.Nil)return a=!0,e;if(t instanceof p.Cons&&t.value0 instanceof y)return r=function(){if(t.value0.value0 instanceof v.Just)return new p.Cons(t.value0.value0.value0,e);if(t.value0.value0 instanceof v.Nothing)return e;throw new Error("Failed pattern match at Data.Search.Trie.Internal (line 522, column 13 - line 524, column 29): "+[t.value0.value0.constructor.name])}(),void(n=w.append(p.semigroupList)(d.values(t.value0.value1))(t.value1));if(t instanceof p.Cons&&t.value0 instanceof g)return r=e,void(n=new p.Cons(t.value0.value2,t.value1));throw new Error("Failed pattern match at Data.Search.Trie.Internal (line 520, column 5 - line 520, column 21): "+[e.constructor.name,t.constructor.name])}for(;!a;)t=o(r,n);return t},function(n){return s.reverse(t(s.singleton(n)))}),A=(r=0,a=function(n){var e,t=r,a=!1;function o(e,r){if(r instanceof p.Nil)return a=!0,e;if(r instanceof p.Cons&&r.value0 instanceof y)return t=v.maybe(e)(l.const(e+1|0))(r.value0.value0),void(n=w.append(p.semigroupList)(f.map(p.functorList)(h.snd)(d.toUnfoldableUnordered(p.unfoldableList)(r.value0.value1)))(r.value1));if(r instanceof p.Cons&&r.value0 instanceof g)return t=e,void(n=new p.Cons(r.value0.value2,r.value1));throw new Error("Failed pattern match at Data.Search.Trie.Internal (line 137, column 5 - line 137, column 21): "+[e.constructor.name,r.constructor.name])}for(;!a;)e=o(t,n);return e},function(n){return a(s.singleton(n))}),E=function(n){return new C(n,p.Nil.value)},F=function(n){return function(e){return n instanceof p.Nil?e:new g(s.length(n),n,e)}},T=function(n){var e;return e=0,function(t){return function(r){for(var a,o,u,c,l,f,p=e,d=t,m=!1;!m;)o=p,u=d,c=r,l=void 0,f=void 0,l=s.uncons(c),a=(f=s.uncons(u))instanceof v.Just&&l instanceof v.Just&&i.eq(n)(f.value0.head)(l.value0.head)?(p=o+1|0,d=f.value0.tail,void(r=l.value0.tail)):(m=!0,o);return a}}},M=function(n){return function(e){return function(t){var r,a=n,o=e,u=!1;function i(n,e,r){if(e instanceof p.Nil)return u=!0,new v.Just(r);if(r instanceof g){var i=T(n.Eq0())(e)(r.value1);return 0===i?(u=!0,v.Nothing.value):(a=n,o=s.drop(i)(e),void(t=i===r.value0?r.value2:F(s.drop(i)(r.value1))(r.value2)))}if(e instanceof p.Cons&&r instanceof y){var c=d.lookup(n)(e.value0)(r.value1);if(c instanceof v.Just)return a=n,o=e.value1,void(t=c.value0);if(c instanceof v.Nothing)return u=!0,v.Nothing.value;throw new Error("Failed pattern match at Data.Search.Trie.Internal (line 364, column 3 - line 366, column 23): "+[c.constructor.name])}throw new Error("Failed pattern match at Data.Search.Trie.Internal (line 348, column 1 - line 353, column 22): "+[e.constructor.name,r.constructor.name])}for(;!u;)r=i(a,o,t);return r}}},P=function(n){return function(e){var t,r=n,a=!1;function o(n,t){if(t.value1 instanceof p.Cons){if(t.value1.value0 instanceof D)return r=n,void(e=new C(y.create(t.value1.value0.value0)(d.insert(n)(t.value1.value0.value1)(t.value0)(t.value1.value0.value2)),t.value1.value1));if(t.value1.value0 instanceof b&&t.value0 instanceof g)return r=n,void(e=new C(new g(t.value1.value0.value0+t.value0.value0|0,w.append(p.semigroupList)(t.value1.value0.value1)(t.value0.value1),t.value0.value2),t.value1.value1));if(t.value1.value0 instanceof b)return r=n,void(e=new C(new g(t.value1.value0.value0,t.value1.value0.value1,t.value0),t.value1.value1));throw new Error("Failed pattern match at Data.Search.Trie.Internal (line 169, column 3 - line 177, column 51): "+[t.value1.value0.constructor.name,t.value0.constructor.name])}if(t.value1 instanceof p.Nil)return a=!0,t.value0;throw new Error("Failed pattern match at Data.Search.Trie.Internal (line 163, column 1 - line 167, column 14): "+[t.constructor.name])}for(;!a;)t=o(r,e);return t}},I=function(n){return function(e){var t;return s.reverse(f.map(p.functorList)(u.lmap(h.bifunctorTuple)(function(n){return s.concat(s.reverse(n))}))((t=s.singleton(new h.Tuple(e,p.Nil.value)),function(e){var r,a=t,o=!1;function u(t,r){if(t instanceof p.Cons&&t.value0.value0 instanceof y){var u=f.mapFlipped(p.functorList)(n(t.value0.value0.value1))(function(n){return new h.Tuple(n.value1,new p.Cons(s.singleton(n.value0),t.value0.value1))});return a=w.append(p.semigroupList)(u)(t.value1),void(e=function(){if(t.value0.value0.value0 instanceof v.Just)return new p.Cons(new h.Tuple(t.value0.value1,t.value0.value0.value0.value0),r);if(t.value0.value0.value0 instanceof v.Nothing)return r;throw new Error("Failed pattern match at Data.Search.Trie.Internal (line 497, column 11 - line 500, column 28): "+[t.value0.value0.value0.constructor.name])}())}if(t instanceof p.Cons&&t.value0.value0 instanceof g)return a=new p.Cons(new h.Tuple(t.value0.value0.value2,new p.Cons(t.value0.value0.value1,t.value0.value1)),t.value1),void(e=r);if(t instanceof p.Nil)return o=!0,r;throw new Error("Failed pattern match at Data.Search.Trie.Internal (line 488, column 5 - line 490, column 41): "+[t.constructor.name,r.constructor.name])}for(;!o;)r=u(a,e);return r})(p.Nil.value)))}},N=I(d.toUnfoldableUnordered(p.unfoldableList)),J=I(d.toUnfoldable(p.unfoldableList)),x=function(n){return new y(v.Nothing.value,m.mempty(d.monoidMap(n)))},R=function(n){return function(e){return function(t){var r,a=n,o=e,u=!1;function i(n,e,r){if(e instanceof p.Nil&&r.value0 instanceof y)return u=!0,{mbValue:r.value0.value0,children:r.value0.value1,ctxs:r.value1};if(e instanceof p.Cons&&r.value0 instanceof y){if((w=d.lookup(n)(e.value0)(r.value0.value1))instanceof v.Just)return a=n,o=e.value1,void(t=new C(w.value0,new p.Cons(new D(r.value0.value0,e.value0,r.value0.value1),r.value1)));if(w instanceof v.Nothing){var i=new p.Cons(new D(r.value0.value0,e.value0,r.value0.value1),r.value1),c=s.null(e.value1)?i:new p.Cons(new b(s.length(e.value1),e.value1),i);return u=!0,{mbValue:v.Nothing.value,children:m.mempty(d.monoidMap(n)),ctxs:c}}throw new Error("Failed pattern match at Data.Search.Trie.Internal (line 212, column 3 - line 221, column 62): "+[w.constructor.name])}if(r.value0 instanceof g){var l=T(n.Eq0())(e)(r.value0.value1);if(l===r.value0.value0){var f=s.drop(l)(e);return a=n,o=f,void(t=new C(r.value0.value2,new p.Cons(new b(r.value0.value0,r.value0.value1),r.value1)))}if(0===l){var w;if((w=s.uncons(r.value0.value1))instanceof v.Just){var h=r.value0.value0-1|0,S=d.singleton(w.value0.head)(h>0?new g(h,w.value0.tail,r.value0.value2):r.value0.value2);return a=n,o=e,void(t=new C(new y(v.Nothing.value,S),r.value1))}if(w instanceof v.Nothing)return u=!0,{mbValue:v.Nothing.value,children:m.mempty(d.monoidMap(n)),ctxs:r.value1};throw new Error("Failed pattern match at Data.Search.Trie.Internal (line 232, column 7 - line 249, column 12): "+[w.constructor.name])}var A=s.take(l)(e),E=s.length(A),F=(f=s.drop(l)(e),r.value0.value0-l|0),M=s.drop(l)(r.value0.value1);return a=n,o=f,void(t=new C(new g(F,M,r.value0.value2),0===E?r.value1:new p.Cons(new b(E,A),r.value1)))}throw new Error("Failed pattern match at Data.Search.Trie.Internal (line 200, column 1 - line 208, column 7): "+[e.constructor.name,r.constructor.name])}for(;!u;)r=i(a,o,t);return r}}},L=function(n){return function(e){return function(t){return function(r){var a=R(n)(e)(E(r));return P(n)(new C(new y(new v.Just(t),a.children),a.ctxs))}}}},k=function(n){return function(e){return function(t){return f.map(v.functorMaybe)((r=function(n){return function(e){return function(t){return c.foldl(e)(l.flip((r=h.uncurry(L(n)),a=u.lmap(h.bifunctorTuple)(s.fromFoldable(t)),function(n){return r(a(n))})))(x(n));var r,a}}}(n)(p.foldableList)(p.foldableList),a=f.map(p.functorList)(u.lmap(h.bifunctorTuple)(function(n){return w.append(p.semigroupList)(e)(n)})),function(n){return r(a(N(n)))}))(M(n)(e)(t));var r,a}}},O=function(n){return new m.Monoid(function(){return function(n){return new w.Semigroup(function(e){return function(t){return c.foldl(p.foldableList)(l.flip(h.uncurry(L(n))))(t)(J(e))}})}(n)},x(n))},B=function(n){return function(e){return function(t){return function(r){var a,o=R(n)(e)(r),u=t(o.mbValue);return v.isJust(o.mbValue)&&v.isNothing(u)&&d.isEmpty(o.children)?(a=n,function(n){var e,t=a,r=!1;function o(e,a){if(a instanceof p.Cons&&a.value0 instanceof D){var o=d.delete(e)(a.value0.value1)(a.value0.value2);return v.isJust(a.value0.value0)||!d.isEmpty(o)?(r=!0,new C(new y(a.value0.value0,o),a.value1)):(t=e,void(n=a.value1))}if(a instanceof p.Cons&&a.value0 instanceof b)return t=e,void(n=a.value1);if(a instanceof p.Nil)return r=!0,E(m.mempty(O(e)));throw new Error("Failed pattern match at Data.Search.Trie.Internal (line 187, column 3 - line 195, column 27): "+[a.constructor.name])}for(;!r;)e=o(t,n);return e})(o.ctxs):new C(new y(u,o.children),o.ctxs)}}}};o.alter=function(n){return function(e){var t=function(n){return function(e){return function(t){return P(n)(e(E(t)))}}}(n),r=B(n)(e);return function(n){return t(r(n))}}},o.entriesUnordered=N,o.insert=L,o.query=function(n){return function(e){var t=v.fromMaybe(x(n)),r=k(n)(e);return function(n){return J(t(r(n)))}}},o.queryValues=function(n){return function(e){var t=v.fromMaybe(m.mempty(O(n))),r=M(n)(e);return function(n){return S(t(r(n)))}}},o.size=A,o.values=S,o.monoidTrie=O}(n),function(n){"use strict";var e="function"==typeof Array.from,t="undefined"!=typeof Symbol&&null!=Symbol&&void 0!==Symbol.iterator&&"function"==typeof String.prototype[Symbol.iterator],r="function"==typeof String.prototype.fromCodePoint,a="function"==typeof String.prototype.codePointAt;n._unsafeCodePointAt0=function(n){return a?function(n){return n.codePointAt(0)}:n},n._codePointAt=function(n){return function(e){return function(r){return function(a){return function(o){return function(u){var i=u.length;if(o<0||o>=i)return r;if(t)for(var c=u[Symbol.iterator](),l=o;;--l){var f=c.next();if(f.done)return r;if(0===l)return e(a(f.value))}return n(o)(u)}}}}}},n._singleton=function(n){return r?String.fromCodePoint:n},n._take=function(n){return function(e){return t?function(n){for(var t="",r=n[Symbol.iterator](),a=0;a<e;++a){var o=r.next();if(o.done)return t;t+=o.value}return t}:n(e)}},n._toCodePointArray=function(n){return function(t){return e?function(n){return Array.from(n,t)}:n}}}(n["Data.String.CodePoints"]=n["Data.String.CodePoints"]||{}),function(n){"use strict";n.fromCharArray=function(n){return n.join("")},n.toCharArray=function(n){return n.split("")},n.singleton=function(n){return n},n.length=function(n){return n.length},n._indexOf=function(n){return function(e){return function(t){return function(r){var a=r.indexOf(t);return-1===a?e:n(a)}}}},n.take=function(n){return function(e){return e.substr(0,n)}},n.drop=function(n){return function(e){return e.substring(n)}},n.splitAt=function(n){return function(e){return{before:e.substring(0,n),after:e.substring(n)}}}}(n["Data.String.CodeUnits"]=n["Data.String.CodeUnits"]||{}),function(n){"use strict";n["Data.String.CodeUnits"]=n["Data.String.CodeUnits"]||{};var e=n["Data.String.CodeUnits"],t=n["Data.String.CodeUnits"],r=n["Data.Maybe"],a=t._indexOf(r.Just.create)(r.Nothing.value);e.stripPrefix=function(n){return function(e){var a=t.splitAt(t.length(n))(e);return a.before===n?new r.Just(a.after):r.Nothing.value}},e.stripSuffix=function(n){return function(e){var a=t.splitAt(t.length(e)-t.length(n)|0)(e);return a.after===n?new r.Just(a.before):r.Nothing.value}},e.contains=function(n){var e=a(n);return function(n){return r.isJust(e(n))}},e.indexOf=a,e.singleton=t.singleton,e.fromCharArray=t.fromCharArray,e.toCharArray=t.toCharArray,e.length=t.length,e.take=t.take,e.drop=t.drop}(n),function(n){"use strict";n.replace=function(n){return function(e){return function(t){return t.replace(n,e)}}},n.split=function(n){return function(e){return e.split(n)}},n.toLower=function(n){return n.toLowerCase()},n.toUpper=function(n){return n.toUpperCase()},n.trim=function(n){return n.trim()}}(n["Data.String.Common"]=n["Data.String.Common"]||{}),function(n){"use strict";n["Data.String.Common"]=n["Data.String.Common"]||{};var e=n["Data.String.Common"],t=n["Data.String.Common"];e.replace=t.replace,e.split=t.split,e.toLower=t.toLower,e.toUpper=t.toUpper,e.trim=t.trim}(n),function(e){"use strict";(n["Data.String.Unsafe"]=n["Data.String.Unsafe"]||{}).charAt=function(n){return function(e){if(n>=0&&n<e.length)return e.charAt(n);throw new Error("Data.String.Unsafe.charAt: Invalid index.")}}}(),function(n){"use strict";n["Data.String.Unsafe"]=n["Data.String.Unsafe"]||{};var e=n["Data.String.Unsafe"],t=n["Data.String.Unsafe"];e.charAt=t.charAt}(n),function(n){"use strict";n["Data.String.CodePoints"]=n["Data.String.CodePoints"]||{};var e,t=n["Data.String.CodePoints"],r=n["Data.String.CodePoints"],a=n["Data.Array"],o=n["Data.Boolean"],u=n["Data.Bounded"],i=n["Data.Enum"],c=n["Data.Eq"],l=n["Data.EuclideanRing"],f=n["Data.Functor"],s=n["Data.Int"],p=n["Data.Maybe"],d=n["Data.Ord"],v=n["Data.Show"],m=n["Data.String.CodeUnits"],w=n["Data.String.Common"],h=n["Data.String.Unsafe"],y=n["Data.Tuple"],g=n["Data.Unfoldable"],D=function(n){return function(e){return 65536+((1024*(n-55296|0)|0)+(e-56320|0)|0)|0}},b=new v.Show(function(n){return"(CodePoint 0x"+w.toUpper(s.toStringAs(s.hexadecimal)(n))+")"}),C=function(n){return 56320<=n&&n<=57343},S=function(n){return 55296<=n&&n<=56319},A=function(n){var e=m.length(n);if(0===e)return p.Nothing.value;if(1===e)return new p.Just({head:i.fromEnum(i.boundedEnumChar)(h.charAt(0)(n)),tail:""});var t=i.fromEnum(i.boundedEnumChar)(h.charAt(1)(n)),r=i.fromEnum(i.boundedEnumChar)(h.charAt(0)(n));return S(r)&&C(t)?new p.Just({head:D(r)(t),tail:m.drop(2)(n)}):new p.Just({head:r,tail:m.drop(1)(n)})},E=function(n){return f.map(p.functorMaybe)(function(n){return new y.Tuple(n.head,n.tail)})(A(n))},F=r._unsafeCodePointAt0(function(n){var e=i.fromEnum(i.boundedEnumChar)(h.charAt(0)(n));if(S(e)&&m.length(n)>1){var t=i.fromEnum(i.boundedEnumChar)(h.charAt(1)(n));return C(t)?D(e)(t):e}return e}),T=r._toCodePointArray(function(n){return g.unfoldr(g.unfoldableArray)(E)(n)})(F),M=function(n){return a.length(T(n))},P=(e=i.toEnumWithDefaults(i.boundedEnumChar)(u.bottom(u.boundedChar))(u.top(u.boundedChar)),function(n){return m.singleton(e(n))}),I=r._singleton(function(n){if(n<=65535)return P(n);var e=l.div(l.euclideanRingInt)(n-65536|0)(1024)+55296|0,t=l.mod(l.euclideanRingInt)(n-65536|0)(1024)+56320|0;return P(e)+P(t)}),N=function(n){return function(e){if(n<1)return"";var t=A(e);return t instanceof p.Just?I(t.value0.head)+N(n-1|0)(t.value0.tail):e}},J=r._take(N),x=new c.Eq(function(n){return function(e){return n===e}}),R=new d.Ord(function(){return x},function(n){return function(e){return d.compare(d.ordInt)(n)(e)}}),L=function(n){return function(e){var t,r,a,o=n,u=!1;for(;!u;)r=o,a=void 0,t=(a=A(e))instanceof p.Just?0===r?(u=!0,new p.Just(a.value0.head)):(o=r-1|0,void(e=a.value0.tail)):(u=!0,p.Nothing.value);return t}},k=new u.Bounded(function(){return R},0,1114111),O=new i.BoundedEnum(function(){return k},function(){return B},1114112,function(n){return n},function(n){if(n>=0&&n<=1114111)return new p.Just(n);if(o.otherwise)return p.Nothing.value;throw new Error("Failed pattern match at Data.String.CodePoints (line 63, column 1 - line 68, column 26): "+[n.constructor.name])}),B=new i.Enum(function(){return R},i.defaultPred(i.toEnum(O))(i.fromEnum(O)),i.defaultSucc(i.toEnum(O))(i.fromEnum(O)));t.codePointAt=function(n){return function(e){return n<0?p.Nothing.value:0===n&&""===e?p.Nothing.value:0===n?new p.Just(F(e)):r._codePointAt(L)(p.Just.create)(p.Nothing.value)(F)(n)(e)}},t.length=M,t.indexOf=function(n){return function(e){return f.map(p.functorMaybe)(function(n){return M(m.take(n)(e))})(m.indexOf(n)(e))}},t["indexOf'"]=function(n){return function(e){return function(t){var r,a=(r=e,function(n){return m.drop(m.length(J(r)(n)))(n)})(t);return f.map(p.functorMaybe)(function(n){return e+M(m.take(n)(a))|0})(m.indexOf(n)(a))}}},t.showCodePoint=b,t.boundedEnumCodePoint=O}(n),function(n){"use strict";n["Data.String.Pattern"]=n["Data.String.Pattern"]||{};var e=n["Data.String.Pattern"],t=new n["Data.Newtype"].Newtype(function(n){return n},function(n){return n});e.newtypePattern=t}(n),function(n){"use strict";n.regexImpl=function(n){return function(e){return function(t){return function(r){try{return e(new RegExp(t,r))}catch(a){return n(a.message)}}}}},n.split=function(n){return function(e){return e.split(n)}}}(n["Data.String.Regex"]=n["Data.String.Regex"]||{}),function(n){"use strict";n["Data.String.Regex"]=n["Data.String.Regex"]||{};var e=n["Data.String.Regex"],t=n["Data.String.Regex"],r=n["Data.Either"];e.regex=function(n){return function(e){return t.regexImpl(r.Left.create)(r.Right.create)(n)(((a=e).value0.global?"g":"")+(a.value0.ignoreCase?"i":"")+(a.value0.multiline?"m":"")+(a.value0.sticky?"y":"")+(a.value0.unicode?"u":""));var a}},e.split=t.split}(n),function(n){"use strict";n["Data.String.Regex.Flags"]=n["Data.String.Regex.Flags"]||{};var e=n["Data.String.Regex.Flags"],t=new(function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}())({global:!1,ignoreCase:!1,multiline:!1,sticky:!1,unicode:!1});e.noFlags=t}(n),function(n){"use strict";n["Docs.Search.Types"]=n["Docs.Search.Types"]||{};var e=n["Docs.Search.Types"],t=n["Data.Argonaut.Decode.Class"],r=n["Data.Argonaut.Encode.Class"],a=n["Data.Argonaut.Encode.Generic.Rep"],o=n["Data.Eq"],u=n["Data.Generic.Rep"],i=n["Data.Newtype"],c=n["Data.Ord"],l=n["Data.Ordering"],f=n["Data.Ring"],s=n["Data.Semiring"],p=n["Data.Show"],d=n["Data.Symbol"],v=function(n){return n},m=function(){function n(){}return n.value=new n,n}(),w=function(){function n(){}return n.value=new n,n}(),h=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),y=function(){function n(){}return n.value=new n,n}(),g=function(n){return n},D=p.showInt,b=p.showString,C=s.semiringInt,S=f.ringInt,A=c.ordInt,E=c.ordInt,F=c.ordString,T=c.ordString,M=c.ordString,P=new i.Newtype(function(n){return n},v),I=new i.Newtype(function(n){return n},function(n){return n}),N=new i.Newtype(function(n){return n},g),J=new i.Newtype(function(n){return n},function(n){return n}),x=new i.Newtype(function(n){return n},function(n){return n}),R=new u.Generic(function(n){if(n instanceof m)return new u.Inl(u.NoArguments.value);if(n instanceof w)return new u.Inr(new u.Inl(u.NoArguments.value));if(n instanceof h)return new u.Inr(new u.Inr(new u.Inl(n.value0)));if(n instanceof y)return new u.Inr(new u.Inr(new u.Inr(u.NoArguments.value)));throw new Error("Failed pattern match at Docs.Search.Types (line 57, column 1 - line 57, column 60): "+[n.constructor.name])},function(n){if(n instanceof u.Inl)return m.value;if(n instanceof u.Inr&&n.value0 instanceof u.Inl)return w.value;if(n instanceof u.Inr&&n.value0 instanceof u.Inr&&n.value0.value0 instanceof u.Inl)return new h(n.value0.value0.value0);if(n instanceof u.Inr&&n.value0 instanceof u.Inr&&n.value0.value0 instanceof u.Inr)return y.value;throw new Error("Failed pattern match at Docs.Search.Types (line 57, column 1 - line 57, column 60): "+[n.constructor.name])}),L=o.eqString,k=new o.Eq(function(n){return function(e){return n instanceof m&&e instanceof m||(n instanceof w&&e instanceof w||(n instanceof h&&e instanceof h?o.eq(L)(n.value0)(e.value0):n instanceof y&&e instanceof y))}}),O=new c.Ord(function(){return k},function(n){return function(e){if(n instanceof m&&e instanceof m)return l.EQ.value;if(n instanceof m)return l.LT.value;if(e instanceof m)return l.GT.value;if(n instanceof w&&e instanceof w)return l.EQ.value;if(n instanceof w)return l.LT.value;if(e instanceof w)return l.GT.value;if(n instanceof h&&e instanceof h)return c.compare(F)(n.value0)(e.value0);if(n instanceof h)return l.LT.value;if(e instanceof h)return l.GT.value;if(n instanceof y&&e instanceof y)return l.EQ.value;throw new Error("Failed pattern match at Docs.Search.Types (line 56, column 1 - line 56, column 50): "+[n.constructor.name,e.constructor.name])}}),B=o.eqString,U=r.encodeJsonInt,q=r.encodeJsonJString,H=new r.EncodeJson(a.genericEncodeJson(R)(a.encodeRepSum(a.encodeRepConstructor(new d.IsSymbol(function(){return"LocalPackage"}))(a.encodeRepArgsNoArguments))(a.encodeRepSum(a.encodeRepConstructor(new d.IsSymbol(function(){return"Builtin"}))(a.encodeRepArgsNoArguments))(a.encodeRepSum(a.encodeRepConstructor(new d.IsSymbol(function(){return"Package"}))(a.encodeRepArgsArgument(q)))(a.encodeRepConstructor(new d.IsSymbol(function(){return"UnknownPackage"}))(a.encodeRepArgsNoArguments)))))),_=r.encodeJsonJString,j=r.encodeJsonJString,W=t.decodeJsonString;e.Identifier=g,e.RawPackageName=function(n){return n},e.PackageName=v,e.LocalPackage=m,e.Builtin=w,e.Package=h,e.UnknownPackage=y,e.PartId=function(n){return n},e.newtypeIdentifier=N,e.eqIdentifier=B,e.ordIdentifier=M,e.decodeJsonIdentifier=W,e.encodeJsonIdentifier=j,e.newtypeModuleName=I,e.ordModuleName=T,e.encodeJsonModuleName=_,e.newtypePackageName=P,e.ordPackageName=F,e.showPackageName=b,e.encodeJsonPackageName=q,e.ordPackageInfo=O,e.encodeJsonPackageInfo=H,e.ordPackageScore=E,e.semiringPackageScore=C,e.ringPackageScore=S,e.encodeJsonPackageScore=U,e.newtypeFilePath=x,e.newtypeGlobalIdentifier=J,e.ordPartId=A,e.showPartId=D}(n),function(n){"use strict";n["Docs.Search.Config"]=n["Docs.Search.Config"]||{};var e=n["Docs.Search.Config"],t=n["Data.Newtype"],r=n["Data.Show"],a=n["Docs.Search.Types"],o=t.wrap(a.newtypeFilePath)("generated-docs/html/index/types"),u=t.wrap(a.newtypeFilePath)("generated-docs/html/index/packages.js"),i=t.wrap(a.newtypeFilePath)("generated-docs/html/index/modules.js"),c=t.wrap(a.newtypeFilePath)("generated-docs/html/index/meta.js"),l=t.wrap(a.newtypeGlobalIdentifier)("DocsSearchMeta"),f=t.wrap(a.newtypePackageName)("<local package>");e.version="0.0.10",e.numberOfIndexParts=50,e.mkIndexPartPath=function(n){return"html/index/declarations/"+r.show(a.showPartId)(n)+".js"},e.moduleIndexPath=i,e.typeIndexDirectory=o,e.metaPath=c,e.metaItem=l,e.packageInfoPath=u,e.penalties={typeVars:2,match:2,matchConstraint:1,instantiate:2,generalize:2,rowsMismatch:3,missingConstraint:1,excessiveConstraint:1},e.defaultPackageName=f}(n),function(n){"use strict";n["Docs.Search.BrowserEngine"]=n["Docs.Search.BrowserEngine"]||{};var e=n["Docs.Search.BrowserEngine"],t=n["Data.Char"],r=n["Data.EuclideanRing"],a=n["Data.List.Types"],o=n["Docs.Search.Config"],u=n["Docs.Search.Types"];e.getPartId=function(n){return n instanceof a.Cons&&n.value1 instanceof a.Cons?u.PartId(r.mod(r.euclideanRingInt)(t.toCharCode(n.value0)+t.toCharCode(n.value1.value0)|0)(o.numberOfIndexParts)):n instanceof a.Cons?u.PartId(r.mod(r.euclideanRingInt)(t.toCharCode(n.value0))(o.numberOfIndexParts)):0}}(n),function(n){"use strict";n["Docs.Search.TypeDecoder"]=n["Docs.Search.TypeDecoder"]||{};var e,t=n["Docs.Search.TypeDecoder"],r=n["Control.Alt"],a=n["Control.Applicative"],o=n["Control.Bind"],u=n["Data.Argonaut.Core"],i=n["Data.Argonaut.Decode.Class"],c=n["Data.Argonaut.Decode.Combinators"],l=n["Data.Argonaut.Decode.Error"],f=n["Data.Argonaut.Encode.Class"],s=n["Data.Either"],p=n["Data.Foldable"],d=n["Data.Function"],v=n["Data.Functor"],m=n["Data.List"],w=n["Data.List.Types"],h=n["Data.Maybe"],y=n["Data.Newtype"],g=n["Data.Symbol"],D=n["Data.Tuple"],b=n["Data.Unit"],C=n["Docs.Search.Types"],S=n["Foreign.Object"],A=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),E=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),F=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),T=function(n){return n},M=function(n){return n},P=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),I=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),N=function(){function n(){}return n.value=new n,n}(),J=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),x=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),R=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),L=function(){function n(n,e,t){this.value0=n,this.value1=e,this.value2=t}return n.create=function(e){return function(t){return function(r){return new n(e,t,r)}}},n}(),k=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),O=function(){function n(){}return n.value=new n,n}(),B=function(){function n(n,e,t){this.value0=n,this.value1=e,this.value2=t}return n.create=function(e){return function(t){return function(r){return new n(e,t,r)}}},n}(),U=function(){function n(n,e,t){this.value0=n,this.value1=e,this.value2=t}return n.create=function(e){return function(t){return function(r){return new n(e,t,r)}}},n}(),q=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),H=function(n){return function(e){return u.fromObject(S.fromFoldable(p.foldableArray)([new D.Tuple("tag",f.encodeJson(f.encodeJsonJString)(n)),new D.Tuple("contents",e)]))}},_=new y.Newtype(function(n){return n},function(n){return n}),j=function(n){return function(e){return function(t){return l.TypeMismatch.create("Couldn't parse "+n+" from "+u.stringify(e))}}},W=function(n){return function(e){return j(n)(e)(b.unit)}},G=(e=w.Nil.value,function(n){for(var t,r,a,o=e,u=!1;!u;)r=o,t=(a=n)instanceof B?(o=new w.Cons({row:a.value0,ty:a.value1},r),void(n=a.value2)):(u=!0,{rows:m.reverse(r),ty:a instanceof O?h.Nothing.value:new h.Just(a)});return t}),V=function(){var n;return n=w.Nil.value,function(e){for(var t,r,a,o=n,u=!1;!u;)r=o,t=(a=e)instanceof k?(o=new w.Cons(a.value0.constraintClass.name,r),void(e=a.value1)):(u=!0,{constraints:m.sort(C.ordIdentifier)(r),ty:a});return t}}(),Q=function(n){return function(e){return function(t){return function(r){return u.fromArray([f.encodeJson(n)(t),f.encodeJson(e)(r)])}}}},z=function(n){return function(e){return function(t){return function(r){return function(a){return function(o){return u.fromArray([f.encodeJson(n)(r),f.encodeJson(e)(a),f.encodeJson(t)(o)])}}}}}},Z=new f.EncodeJson(function(n){return Q(f.encodeJsonArray(f.encodeJsonJString))(C.encodeJsonIdentifier)(n.moduleNameParts)(n.name)}),K=new f.EncodeJson(function(n){if(n instanceof A)return H("Row")(f.encodeJson(K)(n.value0));if(n instanceof E)return H("FunKind")(Q(K)(K)(n.value0)(n.value1));if(n instanceof F)return H("NamedKind")(f.encodeJson(Z)(n.value0));throw new Error("Failed pattern match at Docs.Search.TypeDecoder (line 87, column 16 - line 93, column 44): "+[n.constructor.name])}),$=new f.EncodeJson(function(n){return u.fromArray([f.encodeJson(f.encodeJsonJString)(n.name),f.encodeJson(f.encodeJsonMaybe(K))(n.mbKind)])}),Y=new f.EncodeJson(function(n){return u.fromArray([f.encodeJson(f.encodeJsonArray(f.encodeJsonJString))(n.lhs),f.encodeJson(f.encodeJsonArray(f.encodeJsonJString))(n.rhs)])}),X=new f.EncodeJson(function(n){return f.encodeJson(f.encodeJsonArray(Y))(n)}),nn=h.Nothing.value,en=new f.EncodeJson(function(n){if(n instanceof P)return H("TypeVar")(f.encodeJson(f.encodeJsonJString)(n.value0));if(n instanceof I)return H("TypeLevelString")(f.encodeJson(f.encodeJsonJString)(n.value0));if(n instanceof J)return H("TypeConstructor")(f.encodeJson(Z)(n.value0));if(n instanceof x)return H("TypeOp")(f.encodeJson(Z)(n.value0));if(n instanceof R)return H("TypeApp")(Q(en)(en)(n.value0)(n.value1));if(n instanceof L&&n.value1 instanceof h.Nothing)return H("ForAll")(z(f.encodeJsonJString)(en)(f.encodeJsonMaybe(f.encodeJsonInt))(n.value0)(n.value2)(nn));if(n instanceof L&&n.value1 instanceof h.Just)return H("ForAll")((e=f.encodeJsonJString,function(n){return function(t){return function(r){return function(a){return function(o){return function(i){return function(c){return u.fromArray([f.encodeJson(e)(a),f.encodeJson(n)(o),f.encodeJson(t)(i),f.encodeJson(r)(c)])}}}}}}})(K)(en)(f.encodeJsonMaybe(f.encodeJsonInt))(n.value0)(n.value1.value0)(n.value2)(nn));var e;if(n instanceof k)return H("ConstrainedType")(Q(tn)(en)(n.value0)(n.value1));if(n instanceof O)return H("REmpty")(u.jsonEmptyObject);if(n instanceof B)return H("RCons")(z(C.encodeJsonIdentifier)(en)(en)(n.value0)(n.value1)(n.value2));if(n instanceof q)return H("ParensInType")(f.encodeJson(en)(n.value0));if(n instanceof N)return H("TypeWildcard")(u.jsonEmptyObject);if(n instanceof U)return H("BinaryNoParensType")(z(en)(en)(en)(n.value0)(n.value1)(n.value2));throw new Error("Failed pattern match at Docs.Search.TypeDecoder (line 218, column 16 - line 232, column 82): "+[n.constructor.name])}),tn=new f.EncodeJson(function(n){return u.fromObject(S.fromFoldable(p.foldableArray)([new D.Tuple("constraintClass",f.encodeJson(Z)(n.constraintClass)),new D.Tuple("constraintArgs",f.encodeJson(f.encodeJsonArray(en))(n.constraintArgs))]))}),rn=function(n){return function(e){return function(t){return function(r){return function(c){var l=u.toArray(c);return l instanceof h.Just&&2===l.value0.length?o.bind(s.bindEither)(i.decodeJson(n)(l.value0[0]))(function(n){return o.bind(s.bindEither)(i.decodeJson(e)(l.value0[1]))(function(e){return a.pure(s.applicativeEither)(t(n)(e))})}):s.Left.create(r(b.unit))}}}}},an=function(n){return function(e){return function(t){return function(r){return function(c){return function(l){var f=u.toArray(l);return f instanceof h.Just&&3===f.value0.length?o.bind(s.bindEither)(i.decodeJson(n)(f.value0[0]))(function(n){return o.bind(s.bindEither)(i.decodeJson(e)(f.value0[1]))(function(e){return o.bind(s.bindEither)(i.decodeJson(t)(f.value0[2]))(function(t){return a.pure(s.applicativeEither)(r(n)(e)(t))})})}):s.Left.create(c(b.unit))}}}}}},on=new i.DecodeJson(function(n){return rn(i.decodeArray(i.decodeJsonString))(C.decodeJsonIdentifier)(function(n){return function(e){return{moduleNameParts:n,name:e}}})(j("QualifiedName")(n))(n)}),un=new i.DecodeJson(function(n){return o.bind(s.bindEither)(i.decodeJson(i.decodeForeignObject(i.decodeJsonJson))(n))(function(e){return o.bind(s.bindEither)(c.getField(i.decodeJsonString)(e)("tag"))(function(t){return"NamedKind"===t?o.bind(s.bindEither)(c.getField(on)(e)("contents"))(function(n){return a.pure(s.applicativeEither)(new F(n))}):"Row"===t?o.bind(s.bindEither)(c.getField(un)(e)("contents"))(function(n){return a.pure(s.applicativeEither)(new A(n))}):"FunKind"===t?o.bind(s.bindEither)(c.getField(i.decodeArray(un))(e)("contents"))(function(e){return 2===e.length?s.Right.create(new E(e[0],e[1])):s.Left.create(W("FunKind")(n))}):s.Left.create(W("Kind")(n))})})}),cn=new i.DecodeJson(function(n){return rn(i.decodeJsonString)(i.decodeJsonMaybe(un))(function(n){return function(e){return{name:n,mbKind:e}}})(j("TypeArgument")(n))(n)}),ln=new i.DecodeJson(function(n){return rn(i.decodeArray(i.decodeJsonString))(i.decodeArray(i.decodeJsonString))(function(n){return function(e){return{lhs:n,rhs:e}}})(j("FunDep")(n))(n)}),fn=new i.DecodeJson(function(n){return v.map(s.functorEither)(T)(i.decodeJson(i.decodeArray(ln))(n))}),sn=function(n){return function(e){return function(t){return u.caseJsonObject(e)(function(t){var r=S.lookup("contents")(t);if(r instanceof h.Nothing)return e;if(r instanceof h.Just)return n(r.value0);throw new Error("Failed pattern match at Docs.Search.TypeDecoder (line 354, column 7 - line 356, column 45): "+[r.constructor.name])})(t)}}},pn=new i.DecodeJson(function(n){return o.bind(s.bindEither)(i.decodeJson(i.decodeForeignObject(i.decodeJsonJson))(n))(function(e){return o.bind(s.bindEither)(c.getField(i.decodeJsonString)(e)("tag"))(function(t){if("TypeVar"===t)return o.bind(s.bindEither)(c.getField(i.decodeJsonString)(e)("contents"))((l=a.pure(s.applicativeEither),function(n){return l(P.create(n))}));var l,f,p,m,w,y,g;if("TypeLevelString"===t)return o.bind(s.bindEither)(c.getField(i.decodeJsonString)(e)("contents"))((f=a.pure(s.applicativeEither),function(n){return f(I.create(n))}));if("TypeConstructor"===t)return o.bind(s.bindEither)(c.getField(on)(e)("contents"))((p=a.pure(s.applicativeEither),function(n){return p(J.create(n))}));if("TypeOp"===t)return o.bind(s.bindEither)(c.getField(on)(e)("contents"))((m=a.pure(s.applicativeEither),function(n){return m(x.create(n))}));if("TypeApp"===t){var D=W("TypeApp")(n);return sn(rn(pn)(pn)(R.create)(d.const(D)))(new s.Left(D))(n)}if("ForAll"===t){D=j("ForAll")(n);return r.alt(s.altEither)(sn(an(i.decodeJsonString)(pn)(i.decodeJsonMaybe(i.decodeJsonInt))(function(n){return function(e){return function(t){return new L(n,h.Nothing.value,e)}}})(D))(s.Left.create(D(b.unit)))(n))(sn((w=i.decodeJsonString,function(n){return function(e){return function(t){return function(r){return function(c){return function(l){var f=u.toArray(l);return f instanceof h.Just&&4===f.value0.length?o.bind(s.bindEither)(i.decodeJson(w)(f.value0[0]))(function(u){return o.bind(s.bindEither)(i.decodeJson(n)(f.value0[1]))(function(n){return o.bind(s.bindEither)(i.decodeJson(e)(f.value0[2]))(function(e){return o.bind(s.bindEither)(i.decodeJson(t)(f.value0[3]))(function(t){return a.pure(s.applicativeEither)(r(u)(n)(e)(t))})})})}):s.Left.create(c(b.unit))}}}}}})(un)(pn)(i.decodeJsonMaybe(i.decodeJsonInt))(function(n){return function(e){return function(t){return function(r){return new L(n,new h.Just(e),t)}}}})(D))(s.Left.create(D(b.unit)))(n))}if("ConstrainedType"===t){D=j("ForAll")(n);return sn(rn(dn)(pn)(k.create)(D))(s.Left.create(D(b.unit)))(n)}if("REmpty"===t)return new s.Right(O.value);if("RCons"===t){D=W("RCons")(n);return sn(an(C.decodeJsonIdentifier)(pn)(pn)(B.create)(d.const(D)))(new s.Left(D))(n)}if("BinaryNoParensType"===t){D=W("BinaryNoParens")(n);return sn(an(pn)(pn)(pn)(U.create)(d.const(D)))(new s.Left(D))(n)}return"ParensInType"===t?sn((y=v.map(s.functorEither)(q.create),g=i.decodeJson(pn),function(n){return y(g(n))}))(s.Left.create(W("ParensInType")(n)))(n):"TypeWildcard"===t?new s.Right(N.value):s.Left.create(W("Type")(n))})})}),dn=new i.DecodeJson(function(n){return v.map(s.functorEither)(M)(i.decodeJson(i.decodeRecord(i.gDecodeJsonCons(i.decodeArray(pn))(i.gDecodeJsonCons(on)(i.gDecodeJsonNil)(new g.IsSymbol(function(){return"constraintClass"}))()())(new g.IsSymbol(function(){return"constraintArgs"}))()())())(n))});t.Row=A,t.FunKind=E,t.NamedKind=F,t.TypeVar=P,t.TypeLevelString=I,t.TypeWildcard=N,t.TypeConstructor=J,t.TypeOp=x,t.TypeApp=R,t.ForAll=L,t.ConstrainedType=k,t.REmpty=O,t.RCons=B,t.BinaryNoParensType=U,t.ParensInType=q,t.joinForAlls=function(n){var e;return(e=w.Nil.value,function(n){for(var t,r,a,o=e,u=!1;!u;)r=o,t=(a=n)instanceof L?(o=new w.Cons({name:a.value0,mbKind:a.value1},r),void(n=a.value2)):(u=!0,{binders:r,ty:a});return t})(n)},t.joinRows=G,t.joinConstraints=V,t.encodeJsonQualifiedName=Z,t.decodeJsonKind=un,t.encodeJsonKind=K,t.decodeJsonConstraint=dn,t.encodeJsonConstraint=tn,t.decodeJsonType=pn,t.encodeJsonType=en,t.decodeJsonFunDeps=fn,t.encodeJsonFunDeps=X,t.newtypeTypeArgument=_,t.decodeJsonTypeArgument=cn,t.encodeJsonTypeArgument=$}(n),function(n){"use strict";n["Docs.Search.DocsJson"]=n["Docs.Search.DocsJson"]||{};var e=n["Docs.Search.DocsJson"],t=n["Control.Applicative"],r=n["Control.Bind"],a=n["Data.Argonaut.Core"],o=n["Data.Argonaut.Decode.Class"],u=n["Data.Argonaut.Decode.Combinators"],i=n["Data.Argonaut.Decode.Error"],c=n["Data.Argonaut.Encode.Class"],l=n["Data.Either"],f=n["Data.Functor"],s=n["Data.Maybe"],p=n["Data.Symbol"],d=n["Docs.Search.TypeDecoder"],v=function(){function n(){}return n.value=new n,n}(),m=function(){function n(){}return n.value=new n,n}(),w=function(){function n(){}return n.value=new n,n}(),h=function(){function n(){}return n.value=new n,n}(),y=function(){function n(){}return n.value=new n,n}(),g=function(){function n(){}return n.value=new n,n}(),D=function(){function n(){}return n.value=new n,n}(),b=function(){function n(){}return n.value=new n,n}(),C=function(){function n(){}return n.value=new n,n}(),S=function(){function n(){}return n.value=new n,n}(),A=function(){function n(){}return n.value=new n,n}(),E=function(){function n(){}return n.value=new n,n}(),F=function(n){return n},T=function(n){return n},M=function(n){return n},P=function(n){return l.Left.create(i.TypeMismatch.create(n))},I=new c.EncodeJson(function(n){return a.fromString(function(e){if(n instanceof b)return"newtype";if(n instanceof C)return"data";throw new Error("Failed pattern match at Docs.Search.DocsJson (line 208, column 31 - line 210, column 30): "+[n.constructor.name])}())}),N=new o.DecodeJson(function(n){var e=a.toString(n);if(e instanceof s.Nothing)return P("Couldn't decode DeclType: "+a.stringify(n));if(e instanceof s.Just)return"value"===e.value0?new l.Right(v.value):"data"===e.value0?new l.Right(m.value):"externData"===e.value0?new l.Right(w.value):"typeSynonym"===e.value0?new l.Right(h.value):"typeClass"===e.value0?new l.Right(y.value):"alias"===e.value0?new l.Right(g.value):"kind"===e.value0?new l.Right(D.value):P("Couldn't decode DeclType: "+e.value0);throw new Error("Failed pattern match at Docs.Search.DocsJson (line 154, column 5 - line 165, column 78): "+[e.constructor.name])}),J=new o.DecodeJson(function(n){var e=a.toString(n);if(e instanceof s.Just)return"newtype"===e.value0?new l.Right(b.value):"data"===e.value0?new l.Right(C.value):P("Couldn't decode DataDeclType: "+e.value0);if(e instanceof s.Nothing)return P("Couldn't decode DataDeclType: "+a.stringify(n));throw new Error("Failed pattern match at Docs.Search.DocsJson (line 214, column 5 - line 220, column 86): "+[e.constructor.name])}),x=new o.DecodeJson(function(n){var e=a.toString(n);if(e instanceof s.Nothing)return P("Couldn't decode ChildDeclType: "+a.stringify(n));if(e instanceof s.Just)return"instance"===e.value0?new l.Right(S.value):"dataConstructor"===e.value0?new l.Right(A.value):"typeClassMember"===e.value0?new l.Right(E.value):P("Couldn't decode ChildDeclType: "+e.value0);throw new Error("Failed pattern match at Docs.Search.DocsJson (line 187, column 5 - line 194, column 84): "+[e.constructor.name])}),R=new o.DecodeJson(function(n){return f.map(l.functorEither)(F)(r.bind(l.bindEither)(o.decodeJson(o.decodeForeignObject(o.decodeJsonJson))(n))(function(n){return r.bind(l.bindEither)(u.getField(o.decodeJsonString)(n)("title"))(function(e){return r.bind(l.bindEither)(u["getFieldOptional'"](o.decodeJsonString)(n)("comments"))(function(a){return r.bind(l.bindEither)(r.bind(l.bindEither)(u.getField(o.decodeForeignObject(o.decodeJsonJson))(n)("info"))(function(n){return r.bind(l.bindEither)(u["getFieldOptional'"](o.decodeArray(d.decodeJsonType))(n)("arguments"))(function(e){return r.bind(l.bindEither)(u["getFieldOptional'"](d.decodeJsonType)(n)("type"))(function(a){return r.bind(l.bindEither)(u.getField(x)(n)("declType"))(function(n){return t.pure(l.applicativeEither)({arguments:e,declType:n,type:a})})})})}))(function(i){return r.bind(l.bindEither)(u["getFieldOptional'"](o.decodeRecord(o.gDecodeJsonCons(o.decodeArray(o.decodeJsonInt))(o.gDecodeJsonCons(o.decodeJsonString)(o.gDecodeJsonCons(o.decodeArray(o.decodeJsonInt))(o.gDecodeJsonNil)(new p.IsSymbol(function(){return"start"}))()())(new p.IsSymbol(function(){return"name"}))()())(new p.IsSymbol(function(){return"end"}))()())())(n)("sourceSpan"))(function(n){return t.pure(l.applicativeEither)({title:e,comments:a,info:i,mbSourceSpan:n})})})})})}))}),L=new o.DecodeJson(function(n){return f.map(l.functorEither)(T)(r.bind(l.bindEither)(o.decodeJson(o.decodeForeignObject(o.decodeJsonJson))(n))(function(n){return r.bind(l.bindEither)(u.getField(o.decodeJsonString)(n)("title"))(function(e){return r.bind(l.bindEither)(u["getFieldOptional'"](o.decodeJsonString)(n)("comments"))(function(a){return r.bind(l.bindEither)(u.getField(o.decodeArray(R))(n)("children"))(function(i){return r.bind(l.bindEither)(r.bind(l.bindEither)(u.getField(o.decodeForeignObject(o.decodeJsonJson))(n)("info"))(function(n){return r.bind(l.bindEither)(u["getFieldOptional'"](d.decodeJsonType)(n)("type"))(function(e){return r.bind(l.bindEither)(u["getFieldOptional'"](d.decodeJsonKind)(n)("kind"))(function(a){return r.bind(l.bindEither)(u["getFieldOptional'"](o.decodeArray(d.decodeJsonTypeArgument))(n)("typeArguments"))(function(i){return r.bind(l.bindEither)(u["getFieldOptional'"](o.decodeArray(d.decodeJsonTypeArgument))(n)("arguments"))(function(c){return r.bind(l.bindEither)(u["getFieldOptional'"](o.decodeArray(d.decodeJsonConstraint))(n)("superclasses"))(function(o){return r.bind(l.bindEither)(u["getFieldOptional'"](d.decodeJsonFunDeps)(n)("fundeps"))(function(f){return r.bind(l.bindEither)(u.getField(N)(n)("declType"))(function(s){return r.bind(l.bindEither)(u["getFieldOptional'"](J)(n)("dataDeclType"))(function(n){return t.pure(l.applicativeEither)({type:e,kind:a,declType:s,typeArguments:i,superclasses:o,fundeps:f,arguments:c,dataDeclType:n})})})})})})})})})}))(function(c){return r.bind(l.bindEither)(u.getField(o.decodeJsonMaybe(o.decodeRecord(o.gDecodeJsonCons(o.decodeArray(o.decodeJsonInt))(o.gDecodeJsonCons(o.decodeJsonString)(o.gDecodeJsonCons(o.decodeArray(o.decodeJsonInt))(o.gDecodeJsonNil)(new p.IsSymbol(function(){return"start"}))()())(new p.IsSymbol(function(){return"name"}))()())(new p.IsSymbol(function(){return"end"}))()())()))(n)("sourceSpan"))(function(n){return t.pure(l.applicativeEither)({title:e,comments:a,info:c,sourceSpan:n,children:i})})})})})})}))}),k=new o.DecodeJson(function(n){return f.map(l.functorEither)(M)(o.decodeJson(o.decodeRecord(o.gDecodeJsonCons(o.decodeArray(L))(o.gDecodeJsonCons(o.decodeJsonString)(o.gDecodeJsonNil)(new p.IsSymbol(function(){return"name"}))()())(new p.IsSymbol(function(){return"declarations"}))()())())(n))});e.DeclValue=v,e.DeclData=m,e.DeclExternData=w,e.DeclTypeSynonym=h,e.DeclTypeClass=y,e.DeclAlias=g,e.DeclExternKind=D,e.ChildDeclDataConstructor=A,e.ChildDeclTypeClassMember=E,e.NewtypeDataDecl=b,e.DataDataDecl=C,e.decodeJsonDocsJson=k,e.encodeJsonDataDeclType=I}(n),function(n){"use strict";n["Web.Bower.PackageMeta"]=n["Web.Bower.PackageMeta"]||{};var e,t,r=n["Web.Bower.PackageMeta"],a=n["Control.Alt"],o=n["Control.Applicative"],u=n["Control.Bind"],i=n["Data.Argonaut.Core"],c=n["Data.Argonaut.Decode.Class"],l=n["Data.Argonaut.Decode.Combinators"],f=n["Data.Argonaut.Decode.Error"],s=n["Data.Either"],p=n["Data.Foldable"],d=n["Data.Functor"],v=n["Data.Maybe"],m=n["Data.Monoid"],w=n["Data.Newtype"],h=n["Data.Symbol"],y=n["Data.Unfoldable"],g=n["Foreign.Object"],D=function(n){return n},b=function(){function n(){}return n.value=new n,n}(),C=function(){function n(){}return n.value=new n,n}(),S=function(){function n(){}return n.value=new n,n}(),A=function(){function n(){}return n.value=new n,n}(),E=function(){function n(){}return n.value=new n,n}(),F=function(n){return n},T=new w.Newtype(function(n){return n},function(n){return n}),M=new w.Newtype(function(n){return n},F),P=m.monoidArray,I=m.monoidArray,N=function(n){return{name:n.name,description:n.description,main:p.fold(p.foldableMaybe)(m.monoidArray)(n.main),moduleType:p.fold(p.foldableMaybe)(m.monoidArray)(n.moduleType),license:p.fold(p.foldableMaybe)(m.monoidArray)(n.license),ignore:p.fold(p.foldableMaybe)(m.monoidArray)(n.ignore),keywords:p.fold(p.foldableMaybe)(m.monoidArray)(n.keywords),resolutions:p.fold(p.foldableMaybe)(P)(n.resolutions),private:v.fromMaybe(!1)(n.private),dependencies:p.fold(p.foldableMaybe)(I)(n.dependencies),devDependencies:p.fold(p.foldableMaybe)(I)(n.devDependencies),repository:n.repository,authors:p.fold(p.foldableMaybe)(m.monoidArray)(n.authors),homepage:n.homepage}},J=function(n){return function(e){if(e instanceof v.Just)return d.map(s.functorEither)(v.Just.create)(function(n){return function(e){return a.alt(s.altEither)(d.map(s.functorEither)(o.pure(o.applicativeArray))(c.decodeJson(n)(e)))(c.decodeJson(c.decodeArray(n))(e))}}(n)(e.value0));if(e instanceof v.Nothing)return new s.Right(v.Nothing.value);throw new Error("Failed pattern match at Web.Bower.PackageMeta (line 377, column 19 - line 379, column 41): "+[e.constructor.name])}},x=new c.DecodeJson(function(n){return d.map(s.functorEither)(d.map(d.functorFn)(D)(function(n){return d.mapFlipped(d.functorArray)(g.toUnfoldable(y.unfoldableArray)(n))(function(n){return{packageName:n.value0,version:n.value1}})}))(c.decodeJson(c.decodeForeignObject(c.decodeJsonString))(n))}),R=new c.DecodeJson(function(n){return i.caseJsonString(new s.Left(new f.Named("Incorrect module format: ",new f.TypeMismatch("String"))))(function(n){return"globals"===n?new s.Right(b.value):"amd"===n?new s.Right(C.value):"node"===n?new s.Right(S.value):"es6"===n?new s.Right(A.value):"yui"===n?new s.Right(E.value):new s.Left(new f.Named("Incorrect module format: ",new f.UnexpectedValue(i.fromString(n))))})(n)}),L=new c.DecodeJson(function(n){return d.map(s.functorEither)(d.map(d.functorFn)(F)(function(n){return d.mapFlipped(d.functorArray)(g.toUnfoldable(y.unfoldableArray)(n))(function(n){return{packageName:n.value0,versionRange:n.value1}})}))(c.decodeJson(c.decodeForeignObject(c.decodeJsonString))(n))}),k=new c.DecodeJson(function(n){return i.caseJsonString(u.bind(s.bindEither)(c.decodeJson(c.decodeForeignObject(c.decodeJsonJson))(n))(function(n){return u.bind(s.bindEither)(l["getFieldOptional'"](c.decodeJsonString)(n)("name"))(function(e){return u.bind(s.bindEither)(l["getFieldOptional'"](c.decodeJsonString)(n)("email"))(function(t){return u.bind(s.bindEither)(l["getFieldOptional'"](c.decodeJsonString)(n)("homepage"))(function(n){return o.pure(s.applicativeEither)({name:e,email:t,homepage:n})})})})}))(function(n){return o.pure(s.applicativeEither)({name:new v.Just(n),email:v.Nothing.value,homepage:v.Nothing.value})})(n)}),O=new c.DecodeJson(function(n){return u.bind(s.bindEither)(c.decodeJson(c.decodeForeignObject(c.decodeJsonJson))(n))(function(n){return u.bind(s.bindEither)(l.getField(c.decodeJsonString)(n)("name"))(function(e){return u.bind(s.bindEither)(l["getFieldOptional'"](c.decodeJsonString)(n)("description"))(function(t){return u.bind(s.bindEither)(u.bindFlipped(s.bindEither)(J(c.decodeJsonString))(l["getFieldOptional'"](c.decodeJsonJson)(n)("main")))(function(r){return u.bind(s.bindEither)(u.bindFlipped(s.bindEither)(J(R))(l["getFieldOptional'"](c.decodeJsonJson)(n)("moduleType")))(function(a){return u.bind(s.bindEither)(u.bindFlipped(s.bindEither)(J(c.decodeJsonString))(l["getFieldOptional'"](c.decodeJsonJson)(n)("license")))(function(i){return u.bind(s.bindEither)(l["getFieldOptional'"](c.decodeArray(c.decodeJsonString))(n)("ignore"))(function(f){return u.bind(s.bindEither)(l["getFieldOptional'"](c.decodeArray(c.decodeJsonString))(n)("keywords"))(function(p){return u.bind(s.bindEither)(l["getFieldOptional'"](L)(n)("dependencies"))(function(d){return u.bind(s.bindEither)(l["getFieldOptional'"](L)(n)("devDependencies"))(function(v){return u.bind(s.bindEither)(l["getFieldOptional'"](x)(n)("resolutions"))(function(m){return u.bind(s.bindEither)(l["getFieldOptional'"](c.decodeJsonBoolean)(n)("private"))(function(w){return u.bind(s.bindEither)(l["getFieldOptional'"](c.decodeRecord(c.gDecodeJsonCons(c.decodeJsonString)(c.gDecodeJsonCons(c.decodeJsonString)(c.gDecodeJsonNil)(new h.IsSymbol(function(){return"url"}))()())(new h.IsSymbol(function(){return"type"}))()())())(n)("repository"))(function(h){return u.bind(s.bindEither)(l["getFieldOptional'"](c.decodeArray(k))(n)("authors"))(function(y){return u.bind(s.bindEither)(l["getFieldOptional'"](c.decodeJsonString)(n)("homepage"))(function(n){return o.pure(s.applicativeEither)({name:e,description:t,main:r,moduleType:a,license:i,ignore:f,keywords:p,resolutions:m,private:w,dependencies:d,devDependencies:v,repository:h,authors:y,homepage:n})})})})})})})})})})})})})})})})}),B=new c.DecodeJson((e=d.map(s.functorEither)(N),t=c.decodeJson(O),function(n){return e(t(n))}));r.newtypePackageMeta=T,r.decodeJsonPackageMeta=B,r.newtypeDependencies=M}(n),function(n){"use strict";n["Docs.Search.Score"]=n["Docs.Search.Score"]||{};var e,t=n["Docs.Search.Score"],r=n["Data.Foldable"],a=n["Data.Functor"],o=n["Data.Map.Internal"],u=n["Data.Maybe"],i=n["Data.Monoid"],c=n["Data.Newtype"],l=n["Data.Semiring"],f=n["Data.String.CodeUnits"],s=n["Data.String.Pattern"],p=n["Docs.Search.Types"],d=n["Web.Bower.PackageMeta"],v=function(n){return u.fromMaybe(n)(a.map(u.functorMaybe)(c.wrap(p.newtypePackageName))(f.stripPrefix(c.wrap(s.newtypePattern)("purescript-"))(n)))},m=(e=function(n){return function(e){return r.foldr(r.foldableArray)(function(n){return o.insertWith(p.ordPackageName)(l.add(p.semiringPackageScore))(n)(l.one(p.semiringPackageScore))})(e)(a.map(a.functorArray)(function(n){return v(p.RawPackageName(n.packageName))})(c.unwrap(d.newtypeDependencies)(n)))}},r.foldr(r.foldableArray)(function(n){var t=e(c.unwrap(d.newtypePackageMeta)(n).devDependencies),r=e(c.unwrap(d.newtypePackageMeta)(n).dependencies);return function(n){return t(r(n))}})(i.mempty(o.monoidMap(p.ordPackageName)))),w=function(n){return function(e){return u.fromMaybe(l.zero(p.semiringPackageScore))(o.lookup(p.ordPackageName)(e)(n))}};t.normalizePackageName=v,t.mkScores=m,t.getPackageScore=function(n){return function(e){if(e instanceof p.Package)return w(n)(e.value0);if(e instanceof p.Builtin)return 1e5;if(e instanceof p.LocalPackage)return 2e5;if(e instanceof p.UnknownPackage)return l.zero(p.semiringPackageScore);throw new Error("Failed pattern match at Docs.Search.Score (line 44, column 26 - line 48, column 25): "+[e.constructor.name])}},t.getPackageScoreForPackageName=w}(n),function(n){"use strict";n["Docs.Search.SearchResult"]=n["Docs.Search.SearchResult"]||{};var e,t=n["Docs.Search.SearchResult"],r=n["Data.Argonaut.Encode.Class"],a=n["Data.Argonaut.Encode.Generic.Rep"],o=n["Data.Generic.Rep"],u=n["Data.Maybe"],i=n["Data.Newtype"],c=n["Data.Symbol"],l=n["Docs.Search.DocsJson"],f=n["Docs.Search.TypeDecoder"],s=n["Docs.Search.Types"],p=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),d=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),v=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),m=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),w=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),h=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),y=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),g=function(){function n(){}return n.value=new n,n}(),D=function(){function n(){}return n.value=new n,n}(),b=function(){function n(){}return n.value=new n,n}(),C=function(n){return n},S=new i.Newtype(function(n){return n},C),A=(e=i.un(S)(C),function(n){return(t=e(n).info)instanceof v?new u.Just(t.value0.type):t instanceof w?new u.Just(t.value0.type):t instanceof y?new u.Just(t.value0.type):u.Nothing.value;var t}),E=new o.Generic(function(n){return n},function(n){return n}),F=new o.Generic(function(n){if(n instanceof p)return new o.Inl(n.value0);if(n instanceof d)return new o.Inr(new o.Inl(n.value0));if(n instanceof v)return new o.Inr(new o.Inr(new o.Inl(n.value0)));if(n instanceof m)return new o.Inr(new o.Inr(new o.Inr(new o.Inl(n.value0))));if(n instanceof w)return new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inl(n.value0)))));if(n instanceof h)return new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inl(n.value0))))));if(n instanceof y)return new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inl(n.value0)))))));if(n instanceof g)return new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inl(o.NoArguments.value))))))));if(n instanceof D)return new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inl(o.NoArguments.value)))))))));if(n instanceof b)return new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inr(new o.Inr(o.NoArguments.value)))))))));throw new Error("Failed pattern match at Docs.Search.SearchResult (line 37, column 1 - line 37, column 58): "+[n.constructor.name])},function(n){if(n instanceof o.Inl)return new p(n.value0);if(n instanceof o.Inr&&n.value0 instanceof o.Inl)return new d(n.value0.value0);if(n instanceof o.Inr&&n.value0 instanceof o.Inr&&n.value0.value0 instanceof o.Inl)return new v(n.value0.value0.value0);if(n instanceof o.Inr&&n.value0 instanceof o.Inr&&n.value0.value0 instanceof o.Inr&&n.value0.value0.value0 instanceof o.Inl)return new m(n.value0.value0.value0.value0);if(n instanceof o.Inr&&n.value0 instanceof o.Inr&&n.value0.value0 instanceof o.Inr&&n.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0 instanceof o.Inl)return new w(n.value0.value0.value0.value0.value0);if(n instanceof o.Inr&&n.value0 instanceof o.Inr&&n.value0.value0 instanceof o.Inr&&n.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0.value0 instanceof o.Inl)return new h(n.value0.value0.value0.value0.value0.value0);if(n instanceof o.Inr&&n.value0 instanceof o.Inr&&n.value0.value0 instanceof o.Inr&&n.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0.value0.value0 instanceof o.Inl)return new y(n.value0.value0.value0.value0.value0.value0.value0);if(n instanceof o.Inr&&n.value0 instanceof o.Inr&&n.value0.value0 instanceof o.Inr&&n.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0.value0.value0.value0 instanceof o.Inl)return g.value;if(n instanceof o.Inr&&n.value0 instanceof o.Inr&&n.value0.value0 instanceof o.Inr&&n.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0.value0.value0.value0.value0 instanceof o.Inl)return D.value;if(n instanceof o.Inr&&n.value0 instanceof o.Inr&&n.value0.value0 instanceof o.Inr&&n.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0.value0.value0.value0 instanceof o.Inr&&n.value0.value0.value0.value0.value0.value0.value0.value0 instanceof o.Inr)return b.value;throw new Error("Failed pattern match at Docs.Search.SearchResult (line 37, column 1 - line 37, column 58): "+[n.constructor.name])}),T=new r.EncodeJson(a.genericEncodeJson(F)(a.encodeRepSum(a.encodeRepConstructor(new c.IsSymbol(function(){return"DataResult"}))(a.encodeRepArgsArgument(r.encodeRecord(r.gEncodeJsonCons(l.encodeJsonDataDeclType)(r.gEncodeJsonCons(r.encodeJsonArray(f.encodeJsonTypeArgument))(r.gEncodeJsonNil)(new c.IsSymbol(function(){return"typeArguments"}))())(new c.IsSymbol(function(){return"dataDeclType"}))())())))(a.encodeRepSum(a.encodeRepConstructor(new c.IsSymbol(function(){return"ExternDataResult"}))(a.encodeRepArgsArgument(r.encodeRecord(r.gEncodeJsonCons(f.encodeJsonKind)(r.gEncodeJsonNil)(new c.IsSymbol(function(){return"kind"}))())())))(a.encodeRepSum(a.encodeRepConstructor(new c.IsSymbol(function(){return"TypeSynonymResult"}))(a.encodeRepArgsArgument(r.encodeRecord(r.gEncodeJsonCons(r.encodeJsonArray(f.encodeJsonTypeArgument))(r.gEncodeJsonCons(f.encodeJsonType)(r.gEncodeJsonNil)(new c.IsSymbol(function(){return"type"}))())(new c.IsSymbol(function(){return"arguments"}))())())))(a.encodeRepSum(a.encodeRepConstructor(new c.IsSymbol(function(){return"DataConstructorResult"}))(a.encodeRepArgsArgument(r.encodeRecord(r.gEncodeJsonCons(r.encodeJsonArray(f.encodeJsonType))(r.gEncodeJsonNil)(new c.IsSymbol(function(){return"arguments"}))())())))(a.encodeRepSum(a.encodeRepConstructor(new c.IsSymbol(function(){return"TypeClassMemberResult"}))(a.encodeRepArgsArgument(r.encodeRecord(r.gEncodeJsonCons(f.encodeJsonType)(r.gEncodeJsonCons(f.encodeJsonQualifiedName)(r.gEncodeJsonCons(r.encodeJsonArray(f.encodeJsonTypeArgument))(r.gEncodeJsonNil)(new c.IsSymbol(function(){return"typeClassArguments"}))())(new c.IsSymbol(function(){return"typeClass"}))())(new c.IsSymbol(function(){return"type"}))())())))(a.encodeRepSum(a.encodeRepConstructor(new c.IsSymbol(function(){return"TypeClassResult"}))(a.encodeRepArgsArgument(r.encodeRecord(r.gEncodeJsonCons(r.encodeJsonArray(f.encodeJsonTypeArgument))(r.gEncodeJsonCons(f.encodeJsonFunDeps)(r.gEncodeJsonCons(r.encodeJsonArray(f.encodeJsonConstraint))(r.gEncodeJsonNil)(new c.IsSymbol(function(){return"superclasses"}))())(new c.IsSymbol(function(){return"fundeps"}))())(new c.IsSymbol(function(){return"arguments"}))())())))(a.encodeRepSum(a.encodeRepConstructor(new c.IsSymbol(function(){return"ValueResult"}))(a.encodeRepArgsArgument(r.encodeRecord(r.gEncodeJsonCons(f.encodeJsonType)(r.gEncodeJsonNil)(new c.IsSymbol(function(){return"type"}))())())))(a.encodeRepSum(a.encodeRepConstructor(new c.IsSymbol(function(){return"ValueAliasResult"}))(a.encodeRepArgsNoArguments))(a.encodeRepSum(a.encodeRepConstructor(new c.IsSymbol(function(){return"TypeAliasResult"}))(a.encodeRepArgsNoArguments))(a.encodeRepConstructor(new c.IsSymbol(function(){return"ExternKindResult"}))(a.encodeRepArgsNoArguments)))))))))))),M=new r.EncodeJson(a.genericEncodeJson(E)(a.encodeRepConstructor(new c.IsSymbol(function(){return"SearchResult"}))(a.encodeRepArgsArgument(r.encodeRecord(r.gEncodeJsonCons(r.encodeJsonMaybe(r.encodeJsonJString))(r.gEncodeJsonCons(r.encodeJsonJString)(r.gEncodeJsonCons(T)(r.gEncodeJsonCons(s.encodeJsonModuleName)(r.gEncodeJsonCons(s.encodeJsonIdentifier)(r.gEncodeJsonCons(s.encodeJsonPackageInfo)(r.gEncodeJsonCons(s.encodeJsonPackageScore)(r.gEncodeJsonCons(r.encodeJsonMaybe(r.encodeRecord(r.gEncodeJsonCons(r.encodeJsonArray(r.encodeJsonInt))(r.gEncodeJsonCons(r.encodeJsonJString)(r.gEncodeJsonCons(r.encodeJsonArray(r.encodeJsonInt))(r.gEncodeJsonNil)(new c.IsSymbol(function(){return"start"}))())(new c.IsSymbol(function(){return"name"}))())(new c.IsSymbol(function(){return"end"}))())()))(r.gEncodeJsonNil)(new c.IsSymbol(function(){return"sourceSpan"}))())(new c.IsSymbol(function(){return"score"}))())(new c.IsSymbol(function(){return"packageInfo"}))())(new c.IsSymbol(function(){return"name"}))())(new c.IsSymbol(function(){return"moduleName"}))())(new c.IsSymbol(function(){return"info"}))())(new c.IsSymbol(function(){return"hashAnchor"}))())(new c.IsSymbol(function(){return"comments"}))())()))));t.DataResult=p,t.ExternDataResult=d,t.TypeSynonymResult=v,t.DataConstructorResult=m,t.TypeClassMemberResult=w,t.TypeClassResult=h,t.ValueResult=y,t.ValueAliasResult=g,t.TypeAliasResult=D,t.ExternKindResult=b,t.typeOfResult=A,t.newtypeSearchResult=S,t.encodeJsonSearchResult=M}(n),function(n){"use strict";n["Docs.Search.Declarations"]=n["Docs.Search.Declarations"]||{};var e=n["Docs.Search.Declarations"],t=n["Control.Alt"],r=n["Control.Apply"],a=n["Control.Bind"],o=n["Control.Category"],u=n["Control.Semigroupoid"],i=n["Data.Array"],c=n["Data.Boolean"],l=n["Data.Eq"],f=n["Data.Foldable"],s=n["Data.Functor"],p=n["Data.List"],d=n["Data.List.Types"],v=n["Data.Maybe"],m=n["Data.Monoid"],w=n["Data.Newtype"],h=n["Data.Ord"],y=n["Data.Search.Trie.Internal"],g=n["Data.Semigroup"],D=n["Data.Semiring"],b=n["Data.String.CodeUnits"],C=n["Data.String.Common"],S=n["Data.String.Pattern"],A=n["Data.Unfoldable"],E=n["Docs.Search.DocsJson"],F=n["Docs.Search.Score"],T=n["Docs.Search.SearchResult"],M=n["Docs.Search.TypeDecoder"],P=n["Docs.Search.Types"],I=function(n){return n},N=function(){function n(){}return n.value=new n,n}(),J=function(){function n(){}return n.value=new n,n}(),x=function(){function n(){}return n.value=new n,n}(),R=new w.Newtype(function(n){return n},I),L=function(n){return function(e){return function(t){return function(r){return function(a){var i=function(n){return function(e){var t;return e.info.declType instanceof E.ChildDeclDataConstructor?s.mapFlipped(v.functorMaybe)(e.info.arguments)(function(n){return new T.DataConstructorResult({arguments:n})}):(t=function(t){if(c.otherwise)return v.Nothing.value;throw new Error("Failed pattern match at Docs.Search.Declarations (line 239, column 1 - line 242, column 22): "+[n.constructor.name,e.constructor.name])},e.info.declType instanceof E.ChildDeclTypeClassMember&&n.info instanceof T.TypeClassResult?s.mapFlipped(v.functorMaybe)(e.info.type)(function(e){var t,r=M.joinForAlls(e),a={moduleNameParts:C.split(w.wrap(S.newtypePattern)("."))(w.unwrap(P.newtypeModuleName)(n.moduleName)),name:n.name},i=g.append(g.semigroupArray)(s.mapFlipped(s.functorArray)(n.info.value0.arguments)(w.unwrap(M.newtypeTypeArgument)))(p.toUnfoldable(A.unfoldableArray)(r.binders)),c=f.foldr(f.foldableArray)(function(n){return u.compose(u.semigroupoidFn)(function(e){return new M.ForAll(n.name,n.mbKind,e)})})(o.identity(o.categoryFn))(i)(new M.ConstrainedType({constraintClass:a,constraintArgs:s.mapFlipped(s.functorArray)(n.info.value0.arguments)((t=w.unwrap(M.newtypeTypeArgument),function(n){return M.TypeVar.create(t(n).name)}))},r.ty));return new T.TypeClassMemberResult({type:c,typeClass:a,typeClassArguments:n.info.value0.arguments})}):t())}}(r)(a);return i instanceof v.Just?p.singleton({path:a.title,result:{name:a.title,comments:a.comments,hashAnchor:"v",moduleName:t,sourceSpan:a.mbSourceSpan,packageInfo:e,score:F.getPackageScore(n)(e),info:i.value0}}):function(o){if(c.otherwise)return m.mempty(d.monoidList);throw new Error("Failed pattern match at Docs.Search.Declarations (line 211, column 1 - line 217, column 53): "+[n.constructor.name,e.constructor.name,t.constructor.name,r.constructor.name,a.constructor.name])}()}}}}},k=function(n){return function(e){var t=p.fromFoldable(f.foldableArray)(b.toCharArray(C.toLower(n.path)));return y.alter(h.ordChar)(t)(function(e){return v.Just.create((t=e)instanceof v.Just?new d.Cons(n.result,t.value0):function(e){if(c.otherwise)return p.singleton(n.result);throw new Error("Failed pattern match at Docs.Search.Declarations (line 56, column 1 - line 61, column 35): "+[t.constructor.name])}());var t})(e)}},O=function(n){if(n instanceof N)return"v";if(n instanceof J)return"t";if(n instanceof x)return"k";throw new Error("Failed pattern match at Docs.Search.Declarations (line 159, column 25 - line 162, column 20): "+[n.constructor.name])},B=function(n){return function(e){return function(o){var u,w=function(n){return function(e){if(n instanceof E.DeclValue)return{name:e,declLevel:N.value};if(n instanceof E.DeclData)return{name:e,declLevel:J.value};if(n instanceof E.DeclTypeSynonym)return{name:e,declLevel:J.value};if(n instanceof E.DeclTypeClass)return{name:e,declLevel:J.value};if(n instanceof E.DeclAlias){var r=function(n){return function(e){return{declLevel:n,name:e}}};return v.fromMaybe(r(N.value)(e))(t.alt(v.altMaybe)(s.map(v.functorMaybe)(r(N.value))(a.composeKleisli(v.bindMaybe)(b.stripPrefix("("))(b.stripSuffix(")"))(e)))(s.map(v.functorMaybe)(r(J.value))(a.composeKleisli(v.bindMaybe)(b.stripPrefix("type ("))(b.stripSuffix(")"))(e))))}if(n instanceof E.DeclExternData)return{name:e,declLevel:J.value};if(n instanceof E.DeclExternKind)return{name:e,declLevel:x.value};throw new Error("Failed pattern match at Docs.Search.Declarations (line 165, column 1 - line 170, column 7): "+[n.constructor.name,e.constructor.name])}}(o.info.declType)(o.title),h=function(n){return function(e){if(l.eq(v.eqMaybe(l.eqString))(i.index(C.split(".")(n))(0))(new v.Just("Prim")))return P.Builtin.value;if(e instanceof v.Nothing)return P.UnknownPackage.value;if(e instanceof v.Just){var t=C.split("/")(e.value0.name);return v.fromMaybe(P.LocalPackage.value)(a.bind(v.bindMaybe)(i.index(t)(0))(function(n){return".spago"===n?s.map(v.functorMaybe)(function(n){return P.Package.create(P.PackageName(n))})(i.index(t)(1)):a.bind(v.bindMaybe)(i.findIndex(function(n){return"bower_components"===n})(t))(function(n){return s.map(v.functorMaybe)(function(n){return P.Package.create(P.PackageName(n))})(i.index(t)(n+1|0))})}))}throw new Error("Failed pattern match at Docs.Search.Declarations (line 195, column 1 - line 195, column 68): "+[n.constructor.name,e.constructor.name])}}(e)(o.sourceSpan),y=h instanceof P.Package?new v.Just(h.value0):v.Nothing.value,S=(u=w.declLevel,function(n){if(n.info.declType instanceof E.DeclValue)return s.mapFlipped(v.functorMaybe)(n.info.type)(function(n){return new T.ValueResult({type:n})});if(n.info.declType instanceof E.DeclData){var e=function(n){return function(e){return new T.DataResult({typeArguments:n,dataDeclType:e})}};return r.apply(v.applyMaybe)(s.map(v.functorMaybe)(e)(n.info.typeArguments))(n.info.dataDeclType)}if(n.info.declType instanceof E.DeclExternData)return s.mapFlipped(v.functorMaybe)(n.info.kind)(function(n){return new T.ExternDataResult({kind:n})});if(n.info.declType instanceof E.DeclTypeSynonym)return e=function(n){return function(e){return new T.TypeSynonymResult({type:n,arguments:e})}},r.apply(v.applyMaybe)(s.map(v.functorMaybe)(e)(n.info.type))(n.info.arguments);var t=function(e){if(n.info.declType instanceof E.DeclTypeClass&&c.otherwise)return v.Nothing.value;if(n.info.declType instanceof E.DeclAlias)return u instanceof J?new v.Just(T.TypeAliasResult.value):u instanceof N?new v.Just(T.ValueAliasResult.value):v.Nothing.value;if(n.info.declType instanceof E.DeclExternKind)return new v.Just(T.ExternKindResult.value);throw new Error("Failed pattern match at Docs.Search.Declarations (line 115, column 1 - line 115, column 55): "+[n.info.declType.constructor.name])};return n.info.declType instanceof E.DeclTypeClass&&n.info.fundeps instanceof v.Just&&n.info.arguments instanceof v.Just&&n.info.superclasses instanceof v.Just?v.Just.create(new T.TypeClassResult({fundeps:n.info.fundeps.value0,arguments:n.info.arguments.value0,superclasses:n.info.superclasses.value0})):t()})(o);if(S instanceof v.Nothing)return m.mempty(d.monoidList);if(S instanceof v.Just){var A={name:o.title,comments:o.comments,hashAnchor:O(w.declLevel),moduleName:e,sourceSpan:o.sourceSpan,packageInfo:h,score:v.fromMaybe(D.zero(P.semiringPackageScore))(s.map(v.functorMaybe)(F.getPackageScoreForPackageName(n))(y)),info:S.value0};return g.append(d.semigroupList)(p.singleton({path:w.name,result:A}))(a.bind(d.bindList)(p.fromFoldable(f.foldableArray)(o.children))(L(n)(h)(e)(A)))}throw new Error("Failed pattern match at Docs.Search.Declarations (line 83, column 3 - line 104, column 13): "+[S.constructor.name])}}},U=function(n){return function(e){return function(t){return f.foldr(f.foldableArray)(function(n){return function(e){return function(t){return function(r){return f.foldr(d.foldableList)(k)(r)(B(n)(e)(t))}}}}(n)(e.name))(t)(e.declarations)}}};e.mkDeclarations=function(n){var e=f.foldr(f.foldableArray)(U(n))(m.mempty(y.monoidTrie(h.ordChar)));return function(n){return I(e(n))}},e.resultsForDeclaration=B,e.newtypeDeclarations=R}(n),function(n){"use strict";n["Docs.Search.Extra"]=n["Docs.Search.Extra"]||{};var e,t=n["Docs.Search.Extra"],r=n["Data.Foldable"],a=n["Data.Function"],o=n["Data.List"],u=n["Data.List.NonEmpty"],i=n["Data.List.Types"],c=n["Data.Maybe"],l=n["Data.String.CodeUnits"],f=(e=o.fromFoldable(r.foldableArray),function(n){return e(l.toCharArray(n))});t.foldMapFlipped=function(n){return function(e){return a.flip(r.foldMap(n)(e))}},t.foldl1=function(n){return function(e){var t=u.uncons(e);return r.foldl(i.foldableList)(n)(t.head)(t.tail)}},t.foldr1=function(n){var e;return e=i.Nil.value,function(t){var l,f=e,s=!1;function p(e,l){var p=u.uncons(l),d=o.uncons(p.tail);if(d instanceof c.Nothing)return s=!0,r.foldl(i.foldableList)(a.flip(n))(p.head)(e);if(d instanceof c.Just)return f=new i.Cons(p.head,e),void(t=u["cons'"](d.value0.head)(d.value0.tail));throw new Error("Failed pattern match at Docs.Search.Extra (line 32, column 25 - line 35, column 46): "+[d.constructor.name])}for(;!s;)l=p(f,t);return l}},t.stringToList=f}(n),function(n){"use strict";n["Text.Parsing.StringParser"]=n["Text.Parsing.StringParser"]||{};var e=n["Text.Parsing.StringParser"],t=n["Control.Alt"],r=n["Control.Alternative"],a=n["Control.Applicative"],o=n["Control.Apply"],u=n["Control.Bind"],i=n["Control.Lazy"],c=n["Control.Monad"],l=n["Control.Monad.Rec.Class"],f=n["Control.Plus"],s=n["Data.Bifunctor"],p=n["Data.Boolean"],d=n["Data.Either"],v=n["Data.Functor"],m=n["Data.Unit"],w=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),h=function(n){return n},y=new i.Lazy(function(n){return function(e){return h(n(m.unit))(e)}}),g=new v.Functor(function(n){return function(e){var t=v.map(d.functorEither)(function(e){return{result:n(e.result),suffix:e.suffix}});return function(n){return t(e(n))}}}),D=function(n){return function(e){return new d.Left({pos:e.pos,error:new w(n)})}},b=new o.Apply(function(){return g},function(n){return function(e){return function(t){return u.bind(d.bindEither)(n(t))(function(n){return u.bind(d.bindEither)(e(n.suffix))(function(e){return a.pure(d.applicativeEither)({result:n.result(e.result),suffix:e.suffix})})})}}}),C=new u.Bind(function(){return b},function(n){return function(e){return function(t){return u.bind(d.bindEither)(n(t))(function(n){return h(e(n.result))(n.suffix)})}}}),S=new a.Applicative(function(){return b},function(n){return function(e){return new d.Right({result:n,suffix:e})}}),A=new c.Monad(function(){return S},function(){return C}),E=new l.MonadRec(function(){return A},function(n){return function(e){var t=function(n){if(n.result instanceof l.Loop)return new l.Loop({state:n.result.value0,str:n.suffix});if(n.result instanceof l.Done)return new l.Done({result:n.result.value0,suffix:n.suffix});throw new Error("Failed pattern match at Text.Parsing.StringParser (line 88, column 7 - line 88, column 70): "+[n.constructor.name])};return function(r){return l.tailRecM(l.monadRecEither)(function(e){return v.map(d.functorEither)(t)(h(n(e.state))(e.str))})({state:e,str:r})}}}),F=new t.Alt(function(){return g},function(n){return function(e){return function(t){var r=n(t);if(r instanceof d.Left){if(t.pos===r.value0.pos)return e(t);if(p.otherwise)return new d.Left({error:r.value0.error,pos:r.value0.pos})}return r}}}),T=new f.Plus(function(){return F},D("No alternative")),M=new r.Alternative(function(){return S},function(){return T});e.ParseError=w,e.runParser=function(n){return function(e){return s.bimap(d.bifunctorEither)(function(n){return n.error})(function(n){return n.result})(n({str:e,pos:0}))}},e.fail=D,e.try=function(n){return function(e){return s.lmap(d.bifunctorEither)(function(n){return{pos:e.pos,error:n.error}})(n(e))}},e.functorParser=g,e.applyParser=b,e.applicativeParser=S,e.altParser=F,e.alternativeParser=M,e.bindParser=C,e.monadRecParser=E,e.lazyParser=y}(n),function(n){"use strict";n["Text.Parsing.StringParser.Combinators"]=n["Text.Parsing.StringParser.Combinators"]||{};var e=n["Text.Parsing.StringParser.Combinators"],t=n["Control.Alt"],r=n["Control.Applicative"],a=n["Control.Apply"],o=n["Control.Bind"],u=n["Data.Functor"],i=n["Data.List"],c=n["Data.List.NonEmpty"],l=n["Data.List.Types"],f=n["Data.NonEmpty"],s=n["Text.Parsing.StringParser"],p=i.manyRec(s.monadRecParser)(s.alternativeParser),d=function(n){return function(e){return new f.NonEmpty(n,e)}},v=function(n){return function(e){return o.bind(s.bindParser)(n)(function(t){return o.bind(s.bindParser)(p(a.applySecond(s.applyParser)(e)(n)))(function(n){return r.pure(s.applicativeParser)(d(t)(n))})})}},m=function(n){return function(e){return o.bind(s.bindParser)(n)(function(a){return t.alt(s.altParser)(o.bind(s.bindParser)(e)(function(){return o.bind(s.bindParser)(w(n)(e))(function(n){return r.pure(s.applicativeParser)(d(a)(n))})}))(r.pure(s.applicativeParser)(c.singleton(a)))})}},w=function(n){return function(e){return t.alt(s.altParser)(u.map(s.functorParser)(c.toList)(m(n)(e)))(r.pure(s.applicativeParser)(l.Nil.value))}};e.many=p,e.withError=function(n){return function(e){return t.alt(s.altParser)(n)(s.fail(e))}},e.sepBy=function(n){return function(e){return t.alt(s.altParser)(u.map(s.functorParser)(c.toList)(v(n)(e)))(r.pure(s.applicativeParser)(l.Nil.value))}},e.sepBy1=v,e.sepEndBy=w,e.sepEndBy1=m}(n),function(n){"use strict";n["Text.Parsing.StringParser.CodePoints"]=n["Text.Parsing.StringParser.CodePoints"]||{};var e,t,r=n["Text.Parsing.StringParser.CodePoints"],a=n["Control.Alt"],o=n["Control.Applicative"],u=n["Control.Bind"],i=n["Data.Array"],c=n["Data.Char"],l=n["Data.Either"],f=n["Data.Enum"],s=n["Data.Eq"],p=n["Data.Foldable"],d=n["Data.Functor"],v=n["Data.List.Types"],m=n["Data.Maybe"],w=n["Data.Monoid"],h=n["Data.Show"],y=n["Data.String.CodePoints"],g=n["Data.String.CodeUnits"],D=n["Data.Unit"],b=n["Text.Parsing.StringParser"],C=n["Text.Parsing.StringParser.Combinators"],S=(e=f.fromEnum(y.boundedEnumCodePoint),t=function(n){return c.fromCharCode(e(n))},function(n){var e=y.codePointAt(n.pos)(n.str);if(e instanceof m.Just){var r=t(e.value0);if(r instanceof m.Just)return new l.Right({result:r.value0,suffix:{str:n.str,pos:n.pos+1|0}});if(r instanceof m.Nothing)return new l.Left({pos:n.pos,error:b.ParseError.create("CodePoint "+h.show(y.showCodePoint)(e.value0)+" is not a character")});throw new Error("Failed pattern match at Text.Parsing.StringParser.CodePoints (line 53, column 16 - line 55, column 100): "+[r.constructor.name])}if(e instanceof m.Nothing)return new l.Left({pos:n.pos,error:new b.ParseError("Unexpected EOF")});throw new Error("Failed pattern match at Text.Parsing.StringParser.CodePoints (line 52, column 3 - line 56, column 64): "+[e.constructor.name])}),A=b.try(u.bind(b.bindParser)(S)(function(n){return n>="0"&&n<="9"?o.pure(b.applicativeParser)(n):b.fail("Character "+h.show(h.showChar)(n)+" is not a digit")})),E=b.try(u.bind(b.bindParser)(S)(function(n){return p.elem(p.foldableArray)(s.eqInt)(c.toCharCode(n))(i.range(97)(122))?o.pure(b.applicativeParser)(n):b.fail("Expected a lower case character but found "+h.show(h.showChar)(n))})),F=function(n){return b.try(u.bind(b.bindParser)(S)(function(e){return n(e)?o.pure(b.applicativeParser)(e):b.fail("Character "+h.show(h.showChar)(e)+" did not satisfy predicate")}))},T=u.bind(b.bindParser)(C.many(F(function(n){return"\n"===n||"\r"===n||" "===n||"\t"===n})))(function(n){return o.pure(b.applicativeParser)(p.foldMap(v.foldableList)(w.monoidString)(g.singleton)(n))}),M=d.void(b.functorParser)(T),P=b.try(u.bind(b.bindParser)(S)(function(n){return p.elem(p.foldableArray)(s.eqInt)(c.toCharCode(n))(i.range(65)(90))?o.pure(b.applicativeParser)(n):b.fail("Expected an upper case character but found "+h.show(h.showChar)(n))})),I=C.withError(a.alt(b.altParser)(E)(P))("Expected a letter"),N=C.withError(a.alt(b.altParser)(I)(A))("Expected a letter or a number");r.eof=function(n){return n.pos<y.length(n.str)?new l.Left({pos:n.pos,error:new b.ParseError("Expected EOF")}):new l.Right({result:D.unit,suffix:n})},r.string=function(n){return function(e){return s.eq(m.eqMaybe(s.eqInt))(y["indexOf'"](n)(e.pos)(e.str))(new m.Just(e.pos))?new l.Right({result:n,suffix:{str:e.str,pos:e.pos+y.length(n)|0}}):new l.Left({pos:e.pos,error:new b.ParseError("Expected '"+n+"'.")})}},r.char=function(n){return C.withError(F(function(e){return e===n}))("Could not match character "+h.show(h.showChar)(n))},r.skipSpaces=M,r.lowerCaseChar=E,r.upperCaseChar=P,r.anyLetter=I,r.alphaNum=N}(n),function(n){"use strict";n["Docs.Search.TypeQuery"]=n["Docs.Search.TypeQuery"]||{};var e,t,r,a,o,u=n["Docs.Search.TypeQuery"],i=n["Control.Alt"],c=n["Control.Applicative"],l=n["Control.Apply"],f=n["Control.Bind"],s=n["Control.Category"],p=n["Control.Lazy"],d=n["Data.Array"],v=n["Data.Boolean"],m=n["Data.Eq"],w=n["Data.Foldable"],h=n["Data.Function"],y=n["Data.Functor"],g=n["Data.List"],D=n["Data.List.Types"],b=n["Data.Map.Internal"],C=n["Data.Monoid"],S=n["Data.Ord"],A=n["Data.Ring"],E=n["Data.Semigroup"],F=n["Data.Set"],T=n["Data.String.CodeUnits"],M=n["Data.String.Common"],P=n["Data.Tuple"],I=n["Docs.Search.Config"],N=n["Docs.Search.Extra"],J=n["Docs.Search.TypeDecoder"],x=n["Docs.Search.Types"],R=n["Text.Parsing.StringParser"],L=n["Text.Parsing.StringParser.CodePoints"],k=n["Text.Parsing.StringParser.Combinators"],O=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),B=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),U=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),q=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),H=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),_=function(){function n(n,e,t){this.value0=n,this.value1=e,this.value2=t}return n.create=function(e){return function(t){return function(r){return new n(e,t,r)}}},n}(),j=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),W=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),G=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),V=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),Q=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),z=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),Z=function(){function n(){}return n.value=new n,n}(),K=function(){function n(){}return n.value=new n,n}(),$=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),Y=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),X=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),nn=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),en=f.bind(R.bindParser)(L.upperCaseChar)(function(n){return f.bind(R.bindParser)(d.many(R.alternativeParser)(R.lazyParser)(i.alt(R.altParser)(L.alphaNum)(L.char("'"))))(function(e){return c.pure(R.applicativeParser)(x.Identifier(T.fromCharArray(E.append(E.semigroupArray)(c.pure(c.applicativeArray)(n))(e))))})}),tn=(e=0,t=function(n){var t,r=e,a=!1;function o(e,t){if(t instanceof D.Nil)return a=!0,e;if(t instanceof D.Cons&&t.value0 instanceof J.TypeVar)return r=e+1|0,void(n=t.value1);if(t instanceof D.Cons&&t.value0 instanceof J.TypeLevelString)return r=e+1|0,void(n=t.value1);if(t instanceof D.Cons&&t.value0 instanceof J.TypeWildcard)return r=e+1|0,void(n=t.value1);if(t instanceof D.Cons&&t.value0 instanceof J.TypeConstructor)return r=e+1|0,void(n=t.value1);if(t instanceof D.Cons&&t.value0 instanceof J.TypeOp)return r=e+1|0,void(n=t.value1);if(t instanceof D.Cons&&t.value0 instanceof J.TypeApp&&t.value0.value0 instanceof J.TypeApp&&t.value0.value0.value0 instanceof J.TypeConstructor&&1===t.value0.value0.value0.value0.moduleNameParts.length&&"Prim"===t.value0.value0.value0.value0.moduleNameParts[0]&&"Function"===t.value0.value0.value0.value0.name)return r=e+1|0,void(n=new D.Cons(t.value0.value0.value1,new D.Cons(t.value0.value1,t.value1)));if(t instanceof D.Cons&&t.value0 instanceof J.TypeApp)return r=e+1|0,void(n=new D.Cons(t.value0.value0,new D.Cons(t.value0.value1,t.value1)));if(t instanceof D.Cons&&t.value0 instanceof J.ForAll)return r=e+1|0,void(n=new D.Cons(t.value0.value2,t.value1));if(t instanceof D.Cons&&t.value0 instanceof J.ConstrainedType)return r=e+1|0,void(n=new D.Cons(t.value0.value1,t.value1));if(t instanceof D.Cons&&t.value0 instanceof J.RCons)return r=e+1|0,void(n=new D.Cons(t.value0.value1,new D.Cons(t.value0.value2,t.value1)));if(t instanceof D.Cons&&t.value0 instanceof J.REmpty)return r=e+1|0,void(n=t.value1);if(t instanceof D.Cons&&t.value0 instanceof J.BinaryNoParensType)return r=e+1|0,void(n=new D.Cons(t.value0.value1,new D.Cons(t.value0.value2,t.value1)));if(t instanceof D.Cons&&t.value0 instanceof J.ParensInType)return r=e,void(n=new D.Cons(t.value0.value0,t.value1));throw new Error("Failed pattern match at Docs.Search.TypeQuery (line 403, column 5 - line 403, column 17): "+[e.constructor.name,t.constructor.name])}for(;!a;)t=o(r,n);return t},function(n){return t(g.singleton(n))}),rn=function(){var n,e=(n=0,function(e){var t,r=n,a=!1;function o(n,t){if(t instanceof D.Nil)return a=!0,n;if(t instanceof D.Cons&&t.value0 instanceof O)return r=n+1|0,void(e=t.value1);if(t instanceof D.Cons&&t.value0 instanceof B)return r=n+1|0,void(e=t.value1);if(t instanceof D.Cons&&t.value0 instanceof U)return r=n+1|0,void(e=new D.Cons(t.value0.value0,new D.Cons(t.value0.value1,t.value1)));if(t instanceof D.Cons&&t.value0 instanceof q)return r=n+1|0,void(e=new D.Cons(t.value0.value0,new D.Cons(t.value0.value1,t.value1)));if(t instanceof D.Cons&&t.value0 instanceof H)return r=n+1|0,void(e=new D.Cons(t.value0.value1,t.value1));if(t instanceof D.Cons&&t.value0 instanceof _)return r=n+1|0,void(e=new D.Cons(t.value0.value2,t.value1));if(t instanceof D.Cons&&t.value0 instanceof j)return r=n,void(e=E.append(D.semigroupList)(y.mapFlipped(D.functorList)(t.value0.value0)(P.snd))(t.value1));throw new Error("Failed pattern match at Docs.Search.TypeQuery (line 383, column 5 - line 383, column 17): "+[n.constructor.name,t.constructor.name])}for(;!a;)t=o(r,e);return t});return function(n){return e(g.singleton(n))}}(),an=L.char(" "),on=(r=0,function(n){var e,t=r,a=!1;function o(e,r){if(r instanceof D.Nil)return a=!0,e;if(r instanceof D.Cons&&r.value0 instanceof G){if(m.eq(x.eqIdentifier)(r.value0.value0)(r.value0.value1))return t=e,void(n=r.value1);if(v.otherwise)return t=e+I.penalties.match|0,void(n=r.value1)}if(r instanceof D.Cons&&r.value0 instanceof z){var o=F.size(F.union(x.ordIdentifier)(r.value0.value0)(r.value0.value1))-F.size(F.intersection(x.ordIdentifier)(r.value0.value0)(r.value0.value1))|0;return t=e+(I.penalties.matchConstraint*o|0)|0,void(n=r.value1)}if(r instanceof D.Cons&&r.value0 instanceof $)return t=I.penalties.rowsMismatch*S.abs(S.ordInt)(A.ringInt)(r.value0.value0-r.value0.value1|0)|0,void(n=r.value1);if(r instanceof D.Cons)return t=e,void(n=r.value1);throw new Error("Failed pattern match at Docs.Search.TypeQuery (line 341, column 5 - line 341, column 17): "+[e.constructor.name,r.constructor.name])}for(;!a;)e=o(t,n);return e}),un=function(){var n;return n=0,function(e){var t,r=n,a=!1;function o(n,t){if(t instanceof D.Nil)return a=!0,n;if(t instanceof D.Cons&&t.value0 instanceof W)return r=n+(tn(t.value0.value1)*I.penalties.instantiate|0)|0,void(e=t.value1);if(t instanceof D.Cons&&t.value0 instanceof V)return r=n+(rn(t.value0.value0)*I.penalties.generalize|0)|0,void(e=t.value1);if(t instanceof D.Cons&&t.value0 instanceof K)return r=n+I.penalties.excessiveConstraint|0,void(e=t.value1);if(t instanceof D.Cons&&t.value0 instanceof Z)return r=n+I.penalties.missingConstraint|0,void(e=t.value1);if(t instanceof D.Cons&&t.value0 instanceof Y)return r=(n+rn(t.value0.value0)|0)+tn(t.value0.value1)|0,void(e=t.value1);if(t instanceof D.Cons&&t.value0 instanceof X)return r=n+tn(t.value0.value0)|0,void(e=t.value1);if(t instanceof D.Cons&&t.value0 instanceof nn)return r=n+rn(t.value0.value0)|0,void(e=t.value1);if(t instanceof D.Cons)return r=n,void(e=t.value1);throw new Error("Failed pattern match at Docs.Search.TypeQuery (line 357, column 5 - line 357, column 17): "+[n.constructor.name,t.constructor.name])}for(;!a;)t=o(r,e);return t}}(),cn=f.bind(R.bindParser)(L.lowerCaseChar)(function(n){return f.bind(R.bindParser)(d.many(R.alternativeParser)(R.lazyParser)(i.alt(R.altParser)(L.alphaNum)(L.char("'"))))(function(e){return c.pure(R.applicativeParser)(x.Identifier(T.fromCharArray(E.append(E.semigroupArray)(c.pure(c.applicativeArray)(n))(e))))})}),ln=(a=D.Nil.value,function(n){for(var e,t,r,o=a,u=!1;!u;)t=o,e=(r=n)instanceof _?(o=new D.Cons(r.value0,t),void(n=r.value2)):(u=!0,{constraints:g.sort(x.ordIdentifier)(t),ty:r});return e}),fn=f.bind(R.bindParser)(L.anyLetter)(function(n){return f.bind(R.bindParser)(d.many(R.alternativeParser)(R.lazyParser)(i.alt(R.altParser)(L.alphaNum)(L.char("'"))))(function(e){return c.pure(R.applicativeParser)(y.map(y.functorFn)(x.Identifier)(T.fromCharArray)(E.append(E.semigroupArray)(c.pure(c.applicativeArray)(n))(e)))})}),sn=y.map(R.functorParser)(B.create)(en),pn=y.map(R.functorParser)(O.create)(cn),dn=p.fix(R.lazyParser)(function(n){var e=y.map(R.functorParser)(j.create)(k.sepBy(l.apply(R.applyParser)(y.map(R.functorParser)(P.Tuple.create)(l.applyFirst(R.applyParser)(l.applyFirst(R.applyParser)(l.applySecond(R.applyParser)(L.skipSpaces)(fn))(L.skipSpaces))(L.string("::"))))(l.applyFirst(R.applyParser)(l.applySecond(R.applyParser)(L.skipSpaces)(n))(L.skipSpaces)))(l.applySecond(R.applyParser)(L.string(","))(L.skipSpaces))),t=l.applyFirst(R.applyParser)(l.applySecond(R.applyParser)(L.string("("))(e))(L.string(")")),r=y.map(R.functorParser)(q.create(B.create("Record")))(l.applyFirst(R.applyParser)(l.applySecond(R.applyParser)(L.string("{"))(e))(L.string("}"))),a=l.applyFirst(R.applyParser)(l.applyFirst(R.applyParser)(l.applySecond(R.applyParser)(l.applySecond(R.applyParser)(L.string("("))(L.skipSpaces))(n))(L.skipSpaces))(L.string(")")),o=l.apply(R.applyParser)(l.apply(R.applyParser)(y.map(R.functorParser)(_.create)(l.applyFirst(R.applyParser)(en)(L.skipSpaces)))(l.applyFirst(R.applyParser)(l.applyFirst(R.applyParser)(k.sepEndBy(i.alt(R.altParser)(y.map(R.functorParser)(O.create)(fn))(a))(g.many(R.alternativeParser)(R.lazyParser)(an)))(L.string("=>")))(L.skipSpaces)))(n),u=l.applyFirst(R.applyParser)(l.applyFirst(R.applyParser)(l.applySecond(R.applyParser)(l.applySecond(R.applyParser)(L.string("forall"))(g.some(R.alternativeParser)(R.lazyParser)(an)))(k.sepEndBy1(fn)(L.skipSpaces)))(L.string(".")))(L.skipSpaces),c=l.apply(R.applyParser)(y.map(R.functorParser)(H.create)(u))(n),f=l.applySecond(R.applyParser)(L.skipSpaces)(i.alt(R.altParser)(i.alt(R.altParser)(i.alt(R.altParser)(i.alt(R.altParser)(i.alt(R.altParser)(c)(R.try(a)))(t))(r))(sn))(pn)),s=y.map(R.functorParser)(N.foldl1(q.create))(k.sepEndBy1(f)(g.some(R.alternativeParser)(R.lazyParser)(an))),p=y.map(R.functorParser)(N.foldr1(U.create))(k.sepBy1(s)(l.applySecond(R.applyParser)(L.string("->"))(L.skipSpaces)));return i.alt(R.altParser)(R.try(o))(p)}),vn=(o=R.runParser(l.applyFirst(R.applyParser)(dn)(L.eof)),function(n){return o(M.trim(n))});u.QVar=O,u.QConst=B,u.parseTypeQuery=vn,u.penalty=function(n){return function(e){var t,r=(t=n,function(n){var e;return(e=D.Nil.value,function(n){var t,r=e,a=!1;function o(e,t){if(t instanceof D.Nil)return a=!0,e;if(t instanceof D.Cons&&t.value0.t instanceof J.ParensInType)return r=e,void(n=new D.Cons({q:t.value0.q,t:t.value0.t.value0},t.value1));if(t instanceof D.Cons&&t.value0.t instanceof J.ForAll)return r=e,void(n=new D.Cons({q:t.value0.q,t:t.value0.t.value2},t.value1));if(t instanceof D.Cons&&t.value0.q instanceof H)return r=e,void(n=new D.Cons({q:t.value0.q.value1,t:t.value0.t},t.value1));if(t instanceof D.Cons&&t.value0.q instanceof _&&t.value0.t instanceof J.ConstrainedType){var o=F.fromFoldable(D.foldableList)(x.ordIdentifier)(J.joinConstraints(t.value0.t).constraints),u=F.fromFoldable(D.foldableList)(x.ordIdentifier)(ln(t.value0.q).constraints);return r=new D.Cons(new z(u,o),e),void(n=t.value1)}if(t instanceof D.Cons&&t.value0.q instanceof _)return r=new D.Cons(K.value,e),void(n=new D.Cons({q:t.value0.q.value2,t:t.value0.t},t.value1));if(t instanceof D.Cons&&t.value0.t instanceof J.ConstrainedType)return r=new D.Cons(Z.value,e),void(n=new D.Cons({q:t.value0.q,t:t.value0.t.value1},t.value1));if(t instanceof D.Cons&&t.value0.q instanceof O&&t.value0.t instanceof J.TypeVar)return r=new D.Cons(new Q(t.value0.q.value0,t.value0.t.value0),e),void(n=t.value1);if(t instanceof D.Cons&&t.value0.t instanceof J.TypeVar)return r=new D.Cons(new V(t.value0.q,t.value0.t.value0),e),void(n=t.value1);if(t instanceof D.Cons&&t.value0.q instanceof O)return r=new D.Cons(new W(t.value0.q.value0,t.value0.t),e),void(n=t.value1);if(t instanceof D.Cons&&t.value0.q instanceof B&&t.value0.t instanceof J.TypeConstructor)return r=new D.Cons(new G(t.value0.q.value0,t.value0.t.value0.name),e),void(n=t.value1);if(t instanceof D.Cons&&t.value0.q instanceof B)return r=new D.Cons(new X(t.value0.t),e),void(n=t.value1);if(t instanceof D.Cons&&t.value0.t instanceof J.TypeConstructor)return r=new D.Cons(new nn(t.value0.q),e),void(n=t.value1);if(t instanceof D.Cons&&t.value0.t instanceof J.TypeOp)return r=new D.Cons(new nn(t.value0.q),e),void(n=t.value1);if(t instanceof D.Cons&&t.value0.t instanceof J.BinaryNoParensType)return r=new D.Cons(new Y(t.value0.q,t.value0.t),e),void(n=t.value1);if(t instanceof D.Cons&&t.value0.q instanceof U&&t.value0.t instanceof J.TypeApp&&t.value0.t.value0 instanceof J.TypeApp&&t.value0.t.value0.value0 instanceof J.TypeConstructor&&1===t.value0.t.value0.value0.value0.moduleNameParts.length&&"Prim"===t.value0.t.value0.value0.value0.moduleNameParts[0]&&"Function"===t.value0.t.value0.value0.value0.name)return r=e,void(n=new D.Cons({q:t.value0.q.value0,t:t.value0.t.value0.value1},new D.Cons({q:t.value0.q.value1,t:t.value0.t.value1},t.value1)));if(t instanceof D.Cons&&t.value0.q instanceof U)return r=new D.Cons(new Y(t.value0.q,t.value0.t),e),void(n=t.value1);if(t instanceof D.Cons&&t.value0.q instanceof q&&t.value0.q.value0 instanceof B&&"Record"===t.value0.q.value0.value0&&t.value0.q.value1 instanceof j&&t.value0.t instanceof J.TypeApp&&t.value0.t.value0 instanceof J.TypeConstructor&&1===t.value0.t.value0.value0.moduleNameParts.length&&"Prim"===t.value0.t.value0.value0.moduleNameParts[0]&&"Record"===t.value0.t.value0.value0.name){var i=J.joinRows(t.value0.t.value1),c=g.length(i.rows),l=g.length(t.value0.q.value1.value0);if(c===l){var f=g.sortBy(function(n){return function(e){return S.compare(x.ordIdentifier)(n.row)(e.row)}})(i.rows),s=g.sortBy(function(n){return function(e){return S.compare(x.ordIdentifier)(P.fst(n))(P.fst(e))}})(t.value0.q.value1.value0);return r=E.append(D.semigroupList)(g.zipWith(function(n){return function(e){return new G(n.value0,e.row)}})(s)(f))(e),void(n=E.append(D.semigroupList)(g.zipWith(function(n){return function(e){return{q:n.value1,t:e.ty}}})(s)(f))(t.value1))}return r=new D.Cons(new $(l,c),e),void(n=t.value1)}if(t instanceof D.Cons&&t.value0.q instanceof j)return r=new D.Cons(new Y(t.value0.q,t.value0.t),e),void(n=t.value1);if(t instanceof D.Cons&&t.value0.q instanceof q&&t.value0.t instanceof J.TypeApp)return r=e,void(n=new D.Cons({q:t.value0.q.value0,t:t.value0.t.value0},new D.Cons({q:t.value0.q.value1,t:t.value0.t.value1},t.value1)));if(t instanceof D.Cons&&t.value0.t instanceof J.TypeLevelString)return r=new D.Cons(new nn(t.value0.q),e),void(n=t.value1);if(t instanceof D.Cons&&t.value0.t instanceof J.TypeWildcard)return r=new D.Cons(new nn(t.value0.q),e),void(n=t.value1);if(t instanceof D.Cons&&t.value0.t instanceof J.RCons)return r=new D.Cons(new Y(t.value0.q,t.value0.t),e),void(n=t.value1);if(t instanceof D.Cons&&t.value0.t instanceof J.REmpty)return r=new D.Cons(new nn(t.value0.q),e),void(n=t.value1);throw new Error("Failed pattern match at Docs.Search.TypeQuery (line 204, column 5 - line 204, column 87): "+[e.constructor.name,t.constructor.name])}for(;!a;)t=o(r,n);return t})(g.singleton({q:t,t:n}))})(e);return((function(n){var e=function(e){return w.foldr(D.foldableList)(function(n){return n instanceof Q?e(n.value0)(n.value1):s.identity(s.categoryFn)})(C.mempty(b.monoidMap(x.ordIdentifier)))(n)},t=function(n){return S.abs(S.ordInt)(A.ringInt)(g.length(w.foldMap(b.foldableMap)(D.monoidList)(g.fromFoldable(F.foldableSet))(n))-b.size(n)|0)},r=function(n){return function(e){return b.insertWith(x.ordIdentifier)(E.append(F.semigroupSet(x.ordIdentifier)))(n)(F.singleton(e))}};return t(e(h.flip(r)))+t(e(r))|0}(r)*I.penalties.typeVars|0)+on(r)|0)+un(r)|0}}}(n),function(n){"use strict";n["Docs.Search.Engine"]=n["Docs.Search.Engine"]||{};var e=n["Docs.Search.Engine"],t=n["Control.Applicative"],r=n["Control.Bind"],a=n["Data.Array"],o=n["Data.Either"],u=n["Data.Function"],i=n["Data.Functor"],c=n["Data.Maybe"],l=n["Data.Newtype"],f=n["Data.Ord"],s=n["Data.Ordering"],p=n["Data.Ring"],d=n["Data.Semigroup"],v=n["Data.String.Common"],m=n["Docs.Search.SearchResult"],w=n["Docs.Search.TypeQuery"],h=n["Docs.Search.Types"],y=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),g=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),D=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),b=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),C=function(n){return a.sortWith(c.ordMaybe(f.ordInt))((e=i.map(c.functorMaybe)(w.penalty(n)),function(n){return e(m.typeOfResult(n))}));var e},S=function(n){return n instanceof w.QVar?c.Nothing.value:n instanceof w.QConst?c.Nothing.value:new c.Just(n)},A=function(n){if(n instanceof y)return l.unwrap(m.newtypeSearchResult)(n.value0).packageInfo;if(n instanceof g)return l.unwrap(m.newtypeSearchResult)(n.value0).packageInfo;if(n instanceof D)return new h.Package(n.value0.name);if(n instanceof b)return n.value0.package;throw new Error("Failed pattern match at Docs.Search.Engine (line 76, column 1 - line 76, column 46): "+[n.constructor.name])},E=function(n){if(n instanceof y)return l.unwrap(h.newtypeIdentifier)(l.unwrap(m.newtypeSearchResult)(n.value0).name);if(n instanceof g)return l.unwrap(h.newtypeIdentifier)(l.unwrap(m.newtypeSearchResult)(n.value0).name);if(n instanceof D)return l.unwrap(h.newtypePackageName)(n.value0.name);if(n instanceof b)return l.unwrap(h.newtypeModuleName)(n.value0.name);throw new Error("Failed pattern match at Docs.Search.Engine (line 90, column 1 - line 90, column 34): "+[n.constructor.name])},F=function(n){if(n instanceof y)return l.unwrap(m.newtypeSearchResult)(n.value0).moduleName;if(n instanceof g)return l.unwrap(m.newtypeSearchResult)(n.value0).moduleName;if(n instanceof D)return"";if(n instanceof b)return n.value0.name;throw new Error("Failed pattern match at Docs.Search.Engine (line 83, column 1 - line 83, column 44): "+[n.constructor.name])},T=function(n){return a.sortBy(d.append(d.semigroupFn(d.semigroupFn(s.semigroupOrdering)))(u.on(f.compare(h.ordPackageScore))((e=p.negate(h.ringPackageScore),function(n){return e(function(n){if(n instanceof y)return l.unwrap(m.newtypeSearchResult)(n.value0).score;if(n instanceof g)return l.unwrap(m.newtypeSearchResult)(n.value0).score;if(n instanceof D)return n.value0.score;if(n instanceof b)return n.value0.score;throw new Error("Failed pattern match at Docs.Search.Engine (line 69, column 1 - line 69, column 41): "+[n.constructor.name])}(n))})))(d.append(d.semigroupFn(d.semigroupFn(s.semigroupOrdering)))(u.on(f.compare(h.ordPackageInfo))(A))(d.append(d.semigroupFn(d.semigroupFn(s.semigroupOrdering)))(u.on(f.compare(h.ordModuleName))(F))(u.on(f.compare(f.ordString))(E)))));var e};e.mkEngineState=function(n){return function(e){return function(t){return function(r){return function(a){return{index:n,typeIndex:e,packageIndex:t,moduleIndex:r,scores:a}}}}}},e.DeclResult=y,e.TypeResult=g,e.PackResult=D,e.MdlResult=b,e.query=function(n){return function(e){return function(a){return function(u){var l=r.bind(c.bindMaybe)(o.hush(w.parseTypeQuery(u)))(S);if(l instanceof c.Nothing){var f=v.toLower(u);return r.bind(n.Bind1())(e.queryIndex(a.index)(f))(function(o){return r.bind(n.Bind1())(e.queryPackageIndex(a.packageIndex)(f))(function(r){var u=e.queryModuleIndex(a.scores)(a.moduleIndex)(f);return t.pure(n.Applicative0())({results:T()(d.append(d.semigroupArray)(i.mapFlipped(i.functorArray)(r.results)(D.create))(d.append(d.semigroupArray)(i.mapFlipped(i.functorArray)(u)(b.create))(i.mapFlipped(i.functorArray)(o.results)(y.create)))),index:{index:o.index,moduleIndex:a.moduleIndex,packageIndex:a.packageIndex,scores:a.scores,typeIndex:a.typeIndex}})})})}if(l instanceof c.Just)return r.bind(n.Bind1())(e.queryTypeIndex(a.typeIndex)(l.value0))(function(e){return t.pure(n.Applicative0())({results:i.mapFlipped(i.functorArray)(C(l.value0)(e.results))(g.create),index:{typeIndex:e.index,index:a.index,moduleIndex:a.moduleIndex,packageIndex:a.packageIndex,scores:a.scores}})});throw new Error("Failed pattern match at Docs.Search.Engine (line 119, column 3 - line 146, column 13): "+[l.constructor.name])}}}},e.sortByDistance=C,e.packageInfoToString=function(n){return function(e){if(e instanceof h.Package)return e.value0;if(e instanceof h.Builtin)return"<builtin>";if(e instanceof h.LocalPackage)return l.unwrap(h.newtypePackageName)(n);if(e instanceof h.UnknownPackage)return"<unknown package>";throw new Error("Failed pattern match at Docs.Search.Engine (line 163, column 1 - line 163, column 60): "+[n.constructor.name,e.constructor.name])}}}(n),function(n){require("path");var e=require("glob");n.getDirname=function(){return __dirname},n.glob=function(n){return function(){return e.sync(n)}}}(n["Docs.Search.IndexBuilder"]=n["Docs.Search.IndexBuilder"]||{}),function(n){"use strict";n["Docs.Search.ModuleIndex"]=n["Docs.Search.ModuleIndex"]||{};var e,t,r,a=n["Docs.Search.ModuleIndex"],o=n["Control.Applicative"],u=n["Control.Bind"],i=n["Control.Monad.State"],c=n["Control.Monad.State.Class"],l=n["Control.Monad.State.Trans"],f=n["Data.Array"],s=n["Data.Foldable"],p=n["Data.Function"],d=n["Data.Functor"],v=n["Data.Identity"],m=n["Data.Lens.Record"],w=n["Data.Lens.Setter"],h=n["Data.List.Types"],y=n["Data.Map.Internal"],g=n["Data.Maybe"],D=n["Data.Monoid"],b=n["Data.Newtype"],C=n["Data.Ord"],S=n["Data.Profunctor.Strong"],A=n["Data.Search.Trie.Internal"],E=n["Data.Set"],F=n["Data.String.CodeUnits"],T=n["Data.String.Common"],M=n["Data.Symbol"],P=n["Data.Unfoldable"],I=n["Docs.Search.Extra"],N=n["Docs.Search.Score"],J=n["Docs.Search.Types"],x=(e=s.foldl(s.foldableArray)(function(n){return function(e){return new h.Cons(e,d.map(h.functorList)(function(n){return n+"."+e})(n))}})(D.mempty(h.monoidList)),t=T.split("."),r=b.unwrap(J.newtypeModuleName),function(n){return e(t(T.toLower(r(n))))}),R=m.prop(new M.IsSymbol(function(){return"modulePackages"}))()()(M.SProxy.value)(S.strongFn),L=m.prop(new M.IsSymbol(function(){return"index"}))()()(M.SProxy.value)(S.strongFn);a.unpackModuleIndex=function(n){return p.flip(i.execState)({packageModules:n,modulePackages:D.mempty(y.monoidMap(J.ordModuleName)),index:D.mempty(A.monoidTrie(C.ordChar))})(s.for_(l.applicativeStateT(v.monadIdentity))(s.foldableArray)(y.toUnfoldableUnordered(P.unfoldableArray)(n))(function(n){return s.for_(l.applicativeStateT(v.monadIdentity))(E.foldableSet)(n.value1)(function(e){return u.discard(u.discardUnit)(l.bindStateT(v.monadIdentity))(c.modify_(l.monadStateStateT(v.monadIdentity))(w.over(R)(y.insert(J.ordModuleName)(e)(n.value0))))(function(){return s.for_(l.applicativeStateT(v.monadIdentity))(h.foldableList)(x(e))(function(n){var t=f.toUnfoldable(h.unfoldableList)(F.toCharArray(n));return c.modify_(l.monadStateStateT(v.monadIdentity))(w.over(L)(A.insert(C.ordChar)(t)(e)))})})})}))},a.queryModuleIndex=function(n){return function(e){return function(t){var r=I.stringToList(T.toLower(t));return f.catMaybes(d.mapFlipped(d.functorArray)(f.nub(J.ordModuleName)(f.fromFoldable(h.foldableList)(A.queryValues(C.ordChar)(r)(e.index))))(function(t){return u.bind(g.bindMaybe)(y.lookup(J.ordModuleName)(t)(e.modulePackages))(function(e){return o.pure(g.applicativeMaybe)({name:t,package:e,score:N.getPackageScore(n)(e)})})}))}}},a.mkPackedModuleIndex=function(n){var e,t,r=(e=s.foldr(h.foldableList)(y.unionWith(J.ordPackageInfo)(E.union(J.ordModuleName)))(D.mempty(y.monoidMap(J.ordPackageInfo))),t=d.map(h.functorList)(function(n){return y.singleton(n.packageInfo)(E.singleton(n.moduleName))}),function(n){return e(t(n))});return s.foldr(h.foldableList)(y.unionWith(J.ordPackageInfo)(E.union(J.ordModuleName)))(D.mempty(y.monoidMap(J.ordPackageInfo)))(d.map(h.functorList)(r)(A.values(n)))}}(n),function(n){"use strict";n["Docs.Search.PackageIndex"]=n["Docs.Search.PackageIndex"]||{};var e=n["Docs.Search.PackageIndex"],t=n["Control.Applicative"],r=n["Data.Array"],a=n["Data.Foldable"],o=n["Data.Functor"],u=n["Data.List.Types"],i=n["Data.Map.Internal"],c=n["Data.Maybe"],l=n["Data.Monoid"],f=n["Data.Newtype"],s=n["Data.Ord"],p=n["Data.Search.Trie.Internal"],d=n["Docs.Search.Extra"],v=n["Docs.Search.Score"],m=n["Docs.Search.Types"],w=n["Web.Bower.PackageMeta"],h=a.foldr(a.foldableArray)(function(n){return p.insert(s.ordChar)(d.stringToList(f.unwrap(m.newtypePackageName)(n.name)))(n)})(l.mempty(p.monoidTrie(s.ordChar)));e.mkPackageInfo=function(n){return function(e){return r.fromFoldable(u.foldableList)(i.values(a.foldr(a.foldableArray)(function(e){var t=v.normalizePackageName(e.name);return i.insert(m.ordPackageName)(t)({name:t,description:e.description,score:v.getPackageScoreForPackageName(n)(t),dependencies:o.mapFlipped(o.functorArray)(f.unwrap(w.newtypeDependencies)(e.dependencies))(function(n){return v.normalizePackageName(m.RawPackageName(n.packageName))}),repository:o.mapFlipped(c.functorMaybe)(e.repository)(function(n){return n.url})})})(l.mempty(i.monoidMap(m.ordPackageName)))(e)))}},e.mkPackageIndex=h,e.queryPackageIndex=function(n){return function(e){return function(a){return t.pure(n.Applicative0())({index:e,results:r.fromFoldable(u.foldableList)(p.queryValues(s.ordChar)(d.stringToList(a))(e))})}}}}(n),(n["Docs.Search.TypeShape"]=n["Docs.Search.TypeShape"]||{}).hash=function(n){var e=Math.floor(Number.MAX_SAFE_INTEGER/2);if(0==n.length)return e;for(var t=0;t<n.length;t++)e=(e<<5)-e+n.charCodeAt(t),e&=e;return e},function(n){"use strict";n["Docs.Search.TypeShape"]=n["Docs.Search.TypeShape"]||{};var e=n["Docs.Search.TypeShape"],t=n["Docs.Search.TypeShape"],r=n["Control.Applicative"],a=n["Data.Foldable"],o=n["Data.Functor"],u=n["Data.List"],i=n["Data.List.Types"],c=n["Data.Monoid"],l=n["Data.Ord"],f=n["Data.Ring"],s=n["Data.Semigroup"],p=n["Data.Show"],d=n["Docs.Search.TypeDecoder"],v=n["Docs.Search.Types"],m=function(){function n(){}return n.value=new n,n}(),w=function(){function n(){}return n.value=new n,n}(),h=function(){function n(){}return n.value=new n,n}(),y=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),g=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}();e.stringifyShape=function(n){var e=a.foldMap(i.foldableList)(c.monoidString)(function(n){if(n instanceof m)return"v";if(n instanceof w)return"f";if(n instanceof h)return"a";if(n instanceof y)return"b"+p.show(p.showInt)(n.value0);if(n instanceof g)return"r"+p.show(p.showInt)(n.value0);throw new Error("Failed pattern match at Docs.Search.TypeShape (line 47, column 7 - line 52, column 35): "+[n.constructor.name])})(n);return p.show(p.showInt)(l.abs(l.ordInt)(f.ringInt)(t.hash(""===e?"0":e)))},e.shapeOfType=function(n){var e;return u.reverse((e=r.pure(i.applicativeList)(n),function(n){var t,r=e,a=!1;function c(e,t){if(e instanceof i.Nil)return a=!0,t;if(e instanceof i.Cons){if(e.value0 instanceof d.TypeVar)return r=e.value1,void(n=new i.Cons(m.value,t));if(e.value0 instanceof d.TypeLevelString)return r=e.value1,void(n=new i.Cons(m.value,t));if(e.value0 instanceof d.TypeWildcard)return r=e.value1,void(n=new i.Cons(m.value,t));if(e.value0 instanceof d.TypeApp&&e.value0.value0 instanceof d.TypeApp&&e.value0.value0.value0 instanceof d.TypeConstructor&&1===e.value0.value0.value0.value0.moduleNameParts.length&&"Prim"===e.value0.value0.value0.value0.moduleNameParts[0]&&"Function"===e.value0.value0.value0.value0.name)return r=new i.Cons(e.value0.value0.value1,new i.Cons(e.value0.value1,e.value1)),void(n=new i.Cons(w.value,t));if(e.value0 instanceof d.TypeConstructor)return r=e.value1,void(n=new i.Cons(m.value,t));if(e.value0 instanceof d.TypeOp)return r=e.value1,void(n=new i.Cons(m.value,t));if(e.value0 instanceof d.TypeApp)return r=new i.Cons(e.value0.value0,new i.Cons(e.value0.value1,e.value1)),void(n=new i.Cons(h.value,t));if(e.value0 instanceof d.ForAll){var c=d.joinForAlls(e.value0);return r=new i.Cons(c.ty,e.value1),void(n=new i.Cons(new y(u.length(c.binders)),t))}if(e.value0 instanceof d.ParensInType)return r=new i.Cons(e.value0.value0,e.value1),void(n=t);if(e.value0 instanceof d.ConstrainedType)return r=new i.Cons(e.value0.value1,e.value1),void(n=t);if(e.value0 instanceof d.REmpty)return r=e.value1,void(n=new i.Cons(m.value,t));if(e.value0 instanceof d.RCons){var f=d.joinRows(e.value0),p=u.sortBy(function(n){return function(e){return l.compare(v.ordIdentifier)(n.row)(e.row)}})(f.rows),D=o.mapFlipped(i.functorList)(p)(function(n){return n.ty});return r=s.append(i.semigroupList)(D)(e.value1),void(n=new i.Cons(new g(u.length(f.rows)),t))}if(e.value0 instanceof d.BinaryNoParensType)return r=new i.Cons(new d.TypeApp(new d.TypeApp(e.value0.value0,e.value0.value1),e.value0.value2),e.value1),void(n=t);throw new Error("Failed pattern match at Docs.Search.TypeShape (line 94, column 7 - line 140, column 51): "+[e.value0.constructor.name])}throw new Error("Failed pattern match at Docs.Search.TypeShape (line 92, column 5 - line 92, column 21): "+[e.constructor.name,t.constructor.name])}for(;!a;)t=c(r,n);return t})(i.Nil.value))}}(n),function(n){"use strict";n["Docs.Search.TypeIndex"]=n["Docs.Search.TypeIndex"]||{};var e=n["Docs.Search.TypeIndex"],t=n["Control.Applicative"],r=n["Control.Bind"],a=n["Control.Category"],o=n["Data.Array"],u=n["Data.Foldable"],i=n["Data.Functor"],c=n["Data.List.Types"],l=n["Data.Map.Internal"],f=n["Data.Maybe"],s=n["Data.Monoid"],p=n["Data.Newtype"],d=n["Data.Ord"],v=n["Data.Semigroup"],m=n["Docs.Search.Declarations"],w=n["Docs.Search.SearchResult"],h=n["Docs.Search.TypeShape"],y=function(n){return n},g=new p.Newtype(function(n){return n},y),D=function(n){return n.info instanceof w.ValueResult?new f.Just(n.info.value0.type):n.info instanceof w.TypeClassMemberResult?new f.Just(n.info.value0.type):n.info instanceof w.TypeSynonymResult?new f.Just(n.info.value0.type):f.Nothing.value},b=function(n){return function(e){return r.bind(r.bindArray)(e.declarations)((t=o.fromFoldable(c.foldableList),a=i.map(c.functorList)(function(n){return n.result}),u=m.resultsForDeclaration(n)(e.name),function(n){return t(a(u(n)))}));var t,a,u}};e.mkTypeIndex=function(n){return function(e){return y(i.map(l.functorMap)(f.Just.create)(u.foldr(u.foldableArray)(function(e){return function(r){return u.foldr(u.foldableArray)(function(n){var e=D(n);if(e instanceof f.Just)return l.insertWith(d.ordString)(v.append(v.semigroupArray))(h.stringifyShape(h.shapeOfType(e.value0)))(t.pure(t.applicativeArray)(n));if(e instanceof f.Nothing)return a.identity(a.categoryFn);throw new Error("Failed pattern match at Docs.Search.TypeIndex (line 43, column 21 - line 46, column 42): "+[e.constructor.name])})(r)(b(n)(e))}})(s.mempty(l.monoidMap(d.ordString)))(e)))}},e.resultsWithTypes=function(n){var e=o.filter(function(n){return f.isJust(D(n))}),t=b(n);return function(n){return e(t(n))}},e.newtypeTypeIndex=g}(n),function(n){"use strict";n.pureE=function(n){return function(){return n}},n.bindE=function(n){return function(e){return function(){return e(n())()}}}}(n.Effect=n.Effect||{}),function(n){"use strict";n.Effect=n.Effect||{};var e=n.Effect,t=n.Effect,r=n["Control.Applicative"],a=n["Control.Apply"],o=n["Control.Bind"],u=n["Control.Monad"],i=n["Data.Functor"],c=n["Data.Monoid"],l=n["Data.Semigroup"],f=new u.Monad(function(){return d},function(){return s}),s=new o.Bind(function(){return p},t.bindE),p=new a.Apply(function(){return v},u.ap(f)),d=new r.Applicative(function(){return p},t.pureE),v=new i.Functor(r.liftA1(d));e.functorEffect=v,e.applyEffect=p,e.applicativeEffect=d,e.bindEffect=s,e.monoidEffect=function(n){return new c.Monoid(function(){return e=n.Semigroup0(),new l.Semigroup(a.lift2(p)(l.append(e)));var e},t.pureE(c.mempty(n)))}}(n),function(n){"use strict";var e=function(){var n={},e="Pure",t="Throw",r="Catch",a="Sync",o="Async",u="Bind",i="Bracket",c="Fork",l="Sequential",f="Map",s="Apply",p="Alt",d="Cons",v="Resume",m="Release",w="Finalizer",h="Finalized",y="Forked";function g(n,e,t,r){this.tag=n,this._1=e,this._2=t,this._3=r}function D(n){var e=function(e,t,r){return new g(n,e,t,r)};return e.tag=n,e}function b(n){return new g(e,void 0)}function C(n){try{n()}catch(e){setTimeout(function(){throw e},0)}}function S(n,e,t){try{return e(t())}catch(r){return n(r)}}function A(n,e,t){try{return e(t)()}catch(r){return t(n(r))(),b}}var E=function(){var n=1024,e=0,t=0,r=new Array(n),a=!1;function o(){var o;for(a=!0;0!==e;)e--,o=r[t],r[t]=void 0,t=(t+1)%n,o();a=!1}return{isDraining:function(){return a},enqueue:function(u){var i;e===n&&(i=a,o(),a=i),r[(t+e)%n]=u,e++,a||o()}}}();var F=0,T=1,M=2,P=3,I=4,N=5,J=6;function x(n,f,s){var p=0,y=F,D=s,b=null,R=null,k=null,O=null,B=null,U=0,q=0,H=null,_=!0;function j(s){for(var q,W,G;;)switch(q=null,W=null,G=null,y){case M:y=T;try{D=k(D),null===O?k=null:(k=O._1,O=O._2)}catch(Q){y=N,b=n.left(Q),D=null}break;case P:n.isLeft(D)?(y=N,b=D,D=null):null===k?y=N:(y=M,D=n.fromRight(D));break;case T:switch(D.tag){case u:k&&(O=new g(d,k,O)),k=D._2,y=T,D=D._1;break;case e:null===k?(y=N,D=n.right(D._1)):(y=M,D=D._1);break;case a:y=P,D=S(n.left,n.right,D._1);break;case o:return y=I,void(D=A(n.left,D._1,function(n){return function(){p===s&&(p++,E.enqueue(function(){p===s+1&&(y=P,D=n,j(p))}))}}));case t:y=N,b=n.left(D._1),D=null;break;case r:B=new g(d,D,null===k?B:new g(d,new g(v,k,O),B,R),R),k=null,O=null,y=T,D=D._1;break;case i:U++,B=new g(d,D,null===k?B:new g(d,new g(v,k,O),B,R),R),k=null,O=null,y=T,D=D._1;break;case c:y=P,q=x(n,f,D._2),f&&f.register(q),D._1&&q.run(),D=n.right(q);break;case l:y=T,D=L(n,f,D._1)}break;case N:if(k=null,O=null,null===B)y=J,D=R||b||D;else switch(q=B._3,G=B._1,B=B._2,G.tag){case r:R&&R!==q&&0===U?y=N:b&&(y=T,D=G._2(n.fromLeft(b)),b=null);break;case v:R&&R!==q&&0===U||b?y=N:(k=G._1,O=G._2,y=M,D=n.fromRight(D));break;case i:U--,null===b&&(W=n.fromRight(D),B=new g(d,new g(m,G._2,W),B,q),(R===q||U>0)&&(y=T,D=G._3(W)));break;case m:B=new g(d,new g(h,D,b),B,R),y=T,D=R&&R!==q&&0===U?G._1.killed(n.fromLeft(R))(G._2):b?G._1.failed(n.fromLeft(b))(G._2):G._1.completed(n.fromRight(D))(G._2),b=null,U++;break;case w:U++,B=new g(d,new g(h,D,b),B,R),y=T,D=G._1;break;case h:U--,y=N,D=G._1,b=G._2}break;case J:for(var V in H)H.hasOwnProperty(V)&&(_=_&&H[V].rethrow,C(H[V].handler(D)));return H=null,void(R&&b?setTimeout(function(){throw n.fromLeft(b)},0):n.isLeft(D)&&_&&setTimeout(function(){if(_)throw n.fromLeft(D)},0));case F:y=T;break;case I:return}}function W(n){return function(){if(y===J)return _=_&&n.rethrow,n.handler(D)(),function(){};var e=q++;return(H=H||{})[e]=n,function(){null!==H&&delete H[e]}}}return{kill:function(e,t){return function(){if(y===J)return t(n.right(void 0))(),function(){};var r=W({rethrow:!1,handler:function(){return t(n.right(void 0))}})();switch(y){case F:R=n.left(e),y=J,D=R,j(p);break;case I:null===R&&(R=n.left(e)),0===U&&(y===I&&(B=new g(d,new g(w,D(e)),B,R)),y=N,D=null,b=null,j(++p));break;default:null===R&&(R=n.left(e)),0===U&&(y=N,D=null,b=null)}return r}},join:function(n){return function(){var e=W({rethrow:!1,handler:n})();return y===F&&j(p),e}},onComplete:W,isSuspended:function(){return y===F},run:function(){y===F&&(E.isDraining()?j(p):E.enqueue(function(){j(p)}))}}}function R(e,t,r,a){var u=0,i={},c=0,l={},v=new Error("[ParAff] Early exit"),m=null,w=n;function h(t,r,a){var o,u,c=r,l=null,v=null,m=0,w={};n:for(;;)switch(o=null,c.tag){case y:if(c._3===n&&(o=i[c._1],w[m++]=o.kill(t,function(n){return function(){0===--m&&a(n)()}})),null===l)break n;c=l._2,null===v?l=null:(l=v._1,v=v._2);break;case f:c=c._2;break;case s:case p:l&&(v=new g(d,l,v)),l=c,c=c._1}if(0===m)a(e.right(void 0))();else for(u=0,o=m;u<o;u++)w[u]=w[u]();return w}function D(t){return function(r){return function(){delete i[t._1],t._3=r,function t(r,o,u){var i,d,w,y,g,D;for(e.isLeft(r)?(i=r,d=null):(d=r,i=null);;){if(w=null,y=null,g=null,D=null,null!==m)return;if(null===o)return void a(i||d)();if(o._3!==n)return;switch(o.tag){case f:null===i?(o._3=e.right(o._1(e.fromRight(d))),d=o._3):o._3=i;break;case s:if(w=o._1._3,y=o._2._3,i){if(o._3=i,g=!0,D=c++,l[D]=h(v,i===w?o._2:o._1,function(){return function(){delete l[D],g?g=!1:null===u?t(i,null,null):t(i,u._1,u._2)}}),g)return void(g=!1)}else{if(w===n||y===n)return;d=e.right(e.fromRight(w)(e.fromRight(y))),o._3=d}break;case p:if(w=o._1._3,y=o._2._3,w===n&&e.isLeft(y)||y===n&&e.isLeft(w))return;if(w!==n&&e.isLeft(w)&&y!==n&&e.isLeft(y))i=d===w?y:w,d=null,o._3=i;else if(o._3=d,g=!0,D=c++,l[D]=h(v,d===w?o._2:o._1,function(){return function(){delete l[D],g?g=!1:null===u?t(d,null,null):t(d,u._1,u._2)}}),g)return void(g=!1)}null===u?o=null:(o=u._1,u=u._2)}}(r,t._2._1,t._2._2)}}}return function(){var a,o,c=T,l=r,v=null,m=null;n:for(;;)switch(a=null,o=null,c){case T:switch(l.tag){case f:v&&(m=new g(d,v,m)),v=new g(f,l._1,n,n),l=l._2;break;case s:v&&(m=new g(d,v,m)),v=new g(s,n,l._2,n),l=l._1;break;case p:v&&(m=new g(d,v,m)),v=new g(p,n,l._2,n),l=l._1;break;default:o=u++,c=N,a=l,l=new g(y,o,new g(d,v,m),n),(a=x(e,t,a)).onComplete({rethrow:!1,handler:D(l)})(),i[o]=a,t&&t.register(a)}break;case N:if(null===v)break n;v._1===n?(v._1=l,c=T,l=v._2,v._2=n):(v._2=l,l=v,null===m?v=null:(v=m._1,m=m._2))}for(w=l,o=0;o<u;o++)i[o].run()}(),function(n){return new g(o,function(t){return function(){return function(n,t){var r;for(var a in m=e.left(n),l)if(l.hasOwnProperty(a))for(a in r=l[a])r.hasOwnProperty(a)&&r[a]();l=null;var u=h(n,w,t);return function(n){return new g(o,function(n){return function(){for(var n in u)u.hasOwnProperty(n)&&u[n]();return b}})}}(n,t)}})}}function L(n,e,t){return new g(o,function(r){return function(){return R(n,e,t,r)}})}return g.EMPTY=n,g.Pure=D(e),g.Throw=D(t),g.Catch=D(r),g.Sync=D(a),g.Async=D(o),g.Bind=D(u),g.Bracket=D(i),g.Fork=D(c),g.Seq=D(l),g.ParMap=D(f),g.ParApply=D(s),g.ParAlt=D(p),g.Fiber=x,g.Supervisor=function(n){var e={},t=0,r=0;return{register:function(n){var a=t++;n.onComplete({rethrow:!0,handler:function(n){return function(){r--,delete e[a]}}})(),e[a]=n,r++},isEmpty:function(){return 0===r},killAll:function(o,u){return function(){if(0===r)return u();var i=0,c={};function l(t){c[t]=e[t].kill(o,function(e){return function(){delete c[t],i--,n.isLeft(e)&&n.fromLeft(e)&&setTimeout(function(){throw n.fromLeft(e)},0),0===i&&u()}})()}for(var f in e)e.hasOwnProperty(f)&&(i++,l(f));return e={},t=0,r=0,function(n){return new g(a,function(){for(var n in c)c.hasOwnProperty(n)&&c[n]()})}}}}},g.Scheduler=E,g.nonCanceler=b,g}();n._pure=e.Pure,n._map=function(n){return function(t){return t.tag===e.Pure.tag?e.Pure(n(t._1)):e.Bind(t,function(t){return e.Pure(n(t))})}},n._bind=function(n){return function(t){return e.Bind(n,t)}},n._liftEffect=e.Sync,n._parAffMap=function(n){return function(t){return e.ParMap(n,t)}},n._parAffApply=function(n){return function(t){return e.ParApply(n,t)}},n.makeAff=e.Async,n._makeFiber=function(n,t){return function(){return e.Fiber(n,null,t)}},n._sequential=e.Seq}(n["Effect.Aff"]=n["Effect.Aff"]||{}),function(n){"use strict";n["Effect.Class"]=n["Effect.Class"]||{};var e=n["Effect.Class"];e.liftEffect=function(n){return n.liftEffect},e.MonadEffect=function(n,e){this.Monad0=n,this.liftEffect=e}}(n),function(e){"use strict";(n["Partial.Unsafe"]=n["Partial.Unsafe"]||{}).unsafePartial=function(n){return n()}}(),function(e){"use strict";(n["Partial"]=n["Partial"]||{}).crashWith=function(){return function(n){throw new Error(n)}}}(),function(n){"use strict";n.Partial=n.Partial||{};var e=n.Partial,t=n.Partial;e.crashWith=t.crashWith}(n),function(n){"use strict";n["Partial.Unsafe"]=n["Partial.Unsafe"]||{};var e=n["Partial.Unsafe"],t=n["Partial.Unsafe"],r=n.Partial;e.unsafeCrashWith=function(n){return t.unsafePartial(function(e){return r.crashWith()(n)})}}(n),function(n){"use strict";n["Effect.Aff"]=n["Effect.Aff"]||{};var e,t,r,a=n["Effect.Aff"],o=n["Effect.Aff"],u=n["Control.Applicative"],i=n["Control.Apply"],c=n["Control.Bind"],l=n["Control.Monad"],f=n["Control.Parallel.Class"],s=n["Data.Either"],p=n["Data.Function"],d=n["Data.Functor"],v=n["Data.Unit"],m=n.Effect,w=n["Effect.Class"],h=n["Partial.Unsafe"],y=n["Unsafe.Coerce"],g=new d.Functor(o._parAffMap),D=new d.Functor(o._map),b={isLeft:function(n){if(n instanceof s.Left)return!0;if(n instanceof s.Right)return!1;throw new Error("Failed pattern match at Effect.Aff (line 390, column 12 - line 392, column 20): "+[n.constructor.name])},fromLeft:function(n){if(n instanceof s.Left)return n.value0;if(n instanceof s.Right)return h.unsafeCrashWith("unsafeFromLeft: Right");throw new Error("Failed pattern match at Effect.Aff (line 395, column 20 - line 397, column 54): "+[n.constructor.name])},fromRight:function(n){if(n instanceof s.Right)return n.value0;if(n instanceof s.Left)return h.unsafeCrashWith("unsafeFromRight: Left");throw new Error("Failed pattern match at Effect.Aff (line 400, column 21 - line 402, column 54): "+[n.constructor.name])},left:s.Left.create,right:s.Right.create},C=function(n){return function(){var e=function(n){return o._makeFiber(b,n)}(n)();return e.run(),e}},S=(e=d.void(m.functorEffect),function(n){return e(C(n))}),A=new i.Apply(function(){return g},o._parAffApply),E=new l.Monad(function(){return M},function(){return F}),F=new c.Bind(function(){return T},o._bind),T=new i.Apply(function(){return D},l.ap(E)),M=new u.Applicative(function(){return T},o._pure),P=new w.MonadEffect(function(){return E},o._liftEffect),I=new f.Parallel(function(){return N},function(){return E},y.unsafeCoerce,o._sequential),N=new u.Applicative(function(){return A},(t=f.parallel(I),r=u.pure(M),function(n){return t(r(n))})),J=p.const(u.pure(M)(v.unit));a.launchAff_=S,a.nonCanceler=J,a.functorAff=D,a.applicativeAff=M,a.bindAff=F,a.monadAff=E,a.monadEffectAff=P,a.functorParAff=g,a.applyParAff=A,a.parallelAff=I,a.makeAff=o.makeAff}(n),function(n){"use strict";n.log=function(n){return function(){return console.log(n),{}}},n.clear=function(){return console.clear(),{}}}(n["Effect.Console"]=n["Effect.Console"]||{}),function(n){"use strict";n["Effect.Console"]=n["Effect.Console"]||{};var e=n["Effect.Console"],t=n["Effect.Console"];e.log=t.log,e.clear=t.clear}(n),function(n){"use strict";n["Node.Encoding"]=n["Node.Encoding"]||{};var e=n["Node.Encoding"],t=n["Data.Show"],r=function(){function n(){}return n.value=new n,n}(),a=function(){function n(){}return n.value=new n,n}(),o=function(){function n(){}return n.value=new n,n}(),u=function(){function n(){}return n.value=new n,n}(),i=function(){function n(){}return n.value=new n,n}(),c=function(){function n(){}return n.value=new n,n}(),l=function(){function n(){}return n.value=new n,n}(),f=function(){function n(){}return n.value=new n,n}(),s=new t.Show(function(n){if(n instanceof r)return"ASCII";if(n instanceof a)return"UTF8";if(n instanceof o)return"UTF16LE";if(n instanceof u)return"UCS2";if(n instanceof i)return"Base64";if(n instanceof c)return"Latin1";if(n instanceof l)return"Binary";if(n instanceof f)return"Hex";throw new Error("Failed pattern match at Node.Encoding (line 19, column 1 - line 27, column 23): "+[n.constructor.name])});e.UTF8=a,e.showEncoding=s}(n),function(e){"use strict";(n["Node.FS.Async"]=n["Node.FS.Async"]||{}).handleCallbackImpl=function(n,e,t){return function(r,a){r?t(n(r))():t(e(a))()}}}(),function(e){"use strict";(n["Effect.Unsafe"]=n["Effect.Unsafe"]||{}).unsafePerformEffect=function(n){return n()}}(),function(n){"use strict";n["Effect.Unsafe"]=n["Effect.Unsafe"]||{};var e=n["Effect.Unsafe"],t=n["Effect.Unsafe"];e.unsafePerformEffect=t.unsafePerformEffect}(n),function(e){"use strict";(n["Node.FS.Internal"]=n["Node.FS.Internal"]||{}).unsafeRequireFS=require("fs")}(),function(n){"use strict";n["Node.FS.Internal"]=n["Node.FS.Internal"]||{};var e=n["Node.FS.Internal"],t=n["Node.FS.Internal"],r=n["Unsafe.Coerce"].unsafeCoerce;e.mkEffect=r,e.unsafeRequireFS=t.unsafeRequireFS}(n),function(n){"use strict";n["Node.FS.Perms"]=n["Node.FS.Perms"]||{};var e,t=n["Node.FS.Perms"],r=n["Data.Semiring"],a=n["Data.Show"],o=new r.Semiring(function(n){return function(e){return{r:n.r||e.r,w:n.w||e.w,x:n.x||e.x}}},function(n){return function(e){return{r:n.r&&e.r,w:n.w&&e.w,x:n.x&&e.x}}},{r:!0,w:!0,x:!0},{r:!1,w:!1,x:!1}),u=(e=a.show(a.showInt),function(n){return e((((t=n).r?4:0)+(t.w?2:0)|0)+(t.x?1:0)|0);var t}),i=r.one(o);t.all=i,t.mkPerms=function(n){return function(e){return function(t){return{u:n,g:e,o:t}}}},t.permsToString=function(n){return"0"+(u(n.u)+(u(n.g)+u(n.o)))}}(n),function(e){"use strict";(n["Node.FS.Stats"]=n["Node.FS.Stats"]||{}).statsMethod=function(n,e){return e[n]()}}(),function(n){"use strict";n["Node.FS.Stats"]=n["Node.FS.Stats"]||{};var e=n["Node.FS.Stats"],t=n["Node.FS.Stats"],r=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}();e.Stats=r,e.isFile=function(n){return t.statsMethod("isFile",n.value0)},e.isDirectory=function(n){return t.statsMethod("isDirectory",n.value0)}}(n),function(n){"use strict";n["Node.FS.Async"]=n["Node.FS.Async"]||{};var e=n["Node.FS.Async"],t=n["Node.FS.Async"],r=n["Data.Either"],a=n["Data.Function"],o=n["Data.Functor"],u=n["Data.Show"],i=n["Effect.Unsafe"],c=n["Node.Encoding"],l=n["Node.FS.Internal"],f=n["Node.FS.Perms"],s=n["Node.FS.Stats"],p=function(n){return t.handleCallbackImpl(r.Left.create,r.Right.create,n)},d=l.unsafeRequireFS,v=a.flip(function(n){return function(e){return function(t){return l.mkEffect(function(r){return d.mkdir(n,f.permsToString(e),p(t))})}}})(f.mkPerms(f.all)(f.all)(f.all));e.stat=function(n){return function(e){return l.mkEffect(function(t){return d.stat(n,p((a=o.map(r.functorEither)(s.Stats.create),function(n){return e(a(n))})));var a})}},e.mkdir=v,e.readdir=function(n){return function(e){return l.mkEffect(function(t){return d.readdir(n,p(e))})}},e.readFile=function(n){return function(e){return l.mkEffect(function(t){return d.readFile(n,{},p(e))})}},e.readTextFile=function(n){return function(e){return function(t){return l.mkEffect(function(r){return d.readFile(e,{encoding:u.show(c.showEncoding)(n)},p(t))})}}},e.writeFile=function(n){return function(e){return function(t){return l.mkEffect(function(r){return d.writeFile(n,e,{},p(t))})}}},e.writeTextFile=function(n){return function(e){return function(t){return function(r){return l.mkEffect(function(a){return d.writeFile(e,t,{encoding:u.show(c.showEncoding)(n)},p(r))})}}}},e.exists=function(n){return function(e){return l.mkEffect(function(t){return d.exists(n,function(n){return i.unsafePerformEffect(e(n))})})}}}(n),function(n){"use strict";n["Node.FS.Aff"]=n["Node.FS.Aff"]||{};var e,t=n["Node.FS.Aff"],r=n["Control.Applicative"],a=n["Data.Either"],o=n["Data.Functor"],u=n.Effect,i=n["Effect.Aff"],c=n["Node.FS.Async"],l=function(n){return i.makeAff(function(e){return o.voidLeft(u.functorEffect)(n(e))(i.nonCanceler)})},f=function(n){return function(e){return l(n(e))}},s=function(n){return function(e){return function(t){return l(n(e)(t))}}},p=s(c.writeFile),d=(e=c.writeTextFile,function(n){return function(t){return function(r){return l(e(n)(t)(r))}}}),v=f(c.stat),m=f(c.readdir),w=s(c.readTextFile),h=f(c.readFile),y=f(c.mkdir);t.stat=v,t.mkdir=y,t.readdir=m,t.readFile=h,t.readTextFile=w,t.writeFile=p,t.writeTextFile=d,t.exists=function(n){return i.makeAff(function(e){return o.voidLeft(u.functorEffect)(c.exists(n)((t=r.pure(a.applicativeEither),function(n){return e(t(n))})))(i.nonCanceler);var t})}}(n),function(n){"use strict";n.process=process,n.exit=function(n){return function(){process.exit(n)}}}(n["Node.Process"]=n["Node.Process"]||{}),function(n){"use strict";n["Node.Process"]=n["Node.Process"]||{};var e=n["Node.Process"],t=n["Node.Process"],r=n["Unsafe.Coerce"],a=t.process.stdout,o=t.process.stdin,u=t.process.stderr,i=(0,r.unsafeCoerce)(function(n){return t.process.argv});e.argv=i,e.stdin=o,e.stdout=a,e.stderr=u,e.exit=t.exit}(n),function(n){"use strict";n["Docs.Search.IndexBuilder"]=n["Docs.Search.IndexBuilder"]||{};var e=n["Docs.Search.IndexBuilder"],t=n["Docs.Search.IndexBuilder"],r=n["Control.Applicative"],a=n["Control.Apply"],o=n["Control.Bind"],u=n["Control.Monad"],i=n["Control.Parallel.Class"],c=n["Data.Argonaut.Core"],l=n["Data.Argonaut.Decode.Class"],f=n["Data.Argonaut.Decode.Error"],s=n["Data.Argonaut.Encode.Class"],p=n["Data.Argonaut.Parser"],d=n["Data.Array"],v=n["Data.Either"],m=n["Data.Foldable"],w=n["Data.Functor"],h=n["Data.HeytingAlgebra"],y=n["Data.List"],g=n["Data.List.Types"],D=n["Data.Map.Internal"],b=n["Data.Maybe"],C=n["Data.Monoid"],S=n["Data.Newtype"],A=n["Data.Ord"],E=n["Data.Profunctor.Choice"],F=n["Data.Search.Trie.Internal"],T=n["Data.Semigroup"],M=n["Data.Semiring"],P=n["Data.Set"],I=n["Data.Show"],N=n["Data.String.CodeUnits"],J=n["Data.String.Common"],x=n["Data.Symbol"],R=n["Data.Traversable"],L=n["Data.Tuple"],k=n["Data.Unfoldable"],O=n["Data.Unit"],B=n["Docs.Search.BrowserEngine"],U=n["Docs.Search.Config"],q=n["Docs.Search.Declarations"],H=n["Docs.Search.DocsJson"],_=n["Docs.Search.Extra"],j=n["Docs.Search.ModuleIndex"],W=n["Docs.Search.PackageIndex"],G=n["Docs.Search.Score"],V=n["Docs.Search.SearchResult"],Q=n["Docs.Search.TypeIndex"],z=n["Docs.Search.Types"],Z=n.Effect,K=n["Effect.Aff"],$=n["Effect.Class"],Y=n["Effect.Console"],X=n["Node.Encoding"],nn=n["Node.FS.Aff"],en=n["Node.FS.Stats"],tn=n["Node.Process"],rn=n["Web.Bower.PackageMeta"],an=m.intercalate(m.foldableArray)(C.monoidString)(", "),on=function(n){return function(){return Y.log(n)(),tn.exit(1)()}},un=function(n){return $.liftEffect(K.monadEffectAff)(w.map(Z.functorEffect)(d.concat)(R.for(Z.applicativeEffect)(R.traversableArray)(n)(t.glob)))},cn=function(n){return function(e){return t=function(n){var e=function(n){return new L.Tuple(_.foldMapFlipped(g.foldableList)(C.monoidString)(n.value0)(N.singleton),d.fromFoldable(g.foldableList)(n.value1))},t=P.toUnfoldable(k.unfoldableArray)(m.foldr(g.foldableList)(function(n){return P.insert(g.ordList(A.ordChar))(y.take(2)(n))})(C.mempty(P.monoidSet(g.ordList(A.ordChar))))(w.map(g.functorList)(L.fst)(F.entriesUnordered(n)))),r=w.mapFlipped(w.functorArray)(t)(function(t){var r=d.fromFoldable(g.foldableList)(w.map(g.functorList)(e)(2===y.length(t)?F.query(A.ordChar)(t)(n):y.filter(function(n){return 1===y.length(n.value0)})(F.query(A.ordChar)(t)(n))));return{prefix:t,results:r}});return m.foldr(m.foldableArray)(function(n){return D.insertWith(z.ordPartId)(T.append(T.semigroupArray))(B.getPartId(n.prefix))(n.results)})(C.mempty(D.monoidMap(z.ordPartId)))(r)}(e),m.for_(K.applicativeAff)(m.foldableArray)(D.toUnfoldableUnordered(k.unfoldableArray)(t))(function(e){var t='// This file was generated by purescript-docs-search.\nwindow.DocsSearchIndex["'+I.show(z.showPartId)(e.value0)+'"] = ';return nn.writeTextFile(X.UTF8.value)(n.generatedDocs+U.mkIndexPartPath(e.value0))(t+c.stringify(s.encodeJson(s.encodeJsonArray(s.encodeJsonTuple(s.encodeJsonJString)(s.encodeJsonArray(V.encodeJsonSearchResult))))(e.value1)))});var t}},ln=function(n){return o.bind(K.bindAff)(nn.exists(n))(function(e){if(!e)return r.pure(K.applicativeAff)(!1);if(e)return w.map(K.functorAff)(en.isFile)(nn.stat(n));throw new Error("Failed pattern match at Docs.Search.IndexBuilder (line 381, column 3 - line 383, column 33): "+[e.constructor.name])})},fn=function(n){return o.bind(K.bindAff)(nn.readdir(n.generatedDocs+"html"))(function(e){return m.for_(K.applicativeAff)(m.foldableArray)(e)(function(e){var t=n.generatedDocs+"html/"+e;return u.whenM(K.monadAff)(ln(t))(o.bind(K.bindAff)(nn.readTextFile(X.UTF8.value)(t))(function(n){var e,a,o=(e=n,a='\x3c!-- Docs search index. --\x3e<script type="text/javascript" src="./docs-search-app.js"><\/script><script type="text/javascript">window.DocsSearchTypeIndex = {};window.DocsSearchIndex = {};<\/script></body>',N.contains(a)(e)?new L.Tuple(!1,e):L.Tuple.create(!0)(J.replace("</body>")(a)(e)));return o.value0?nn.writeTextFile(X.UTF8.value)(t)(o.value1):r.pure(K.applicativeAff)(O.unit)}))})})},sn=function(n){return o.bind(K.bindAff)(nn.exists(n))(function(e){if(!e)return r.pure(K.applicativeAff)(!1);if(e)return w.map(K.functorAff)(en.isDirectory)(nn.stat(n));throw new Error("Failed pattern match at Docs.Search.IndexBuilder (line 373, column 3 - line 375, column 38): "+[e.constructor.name])})},pn=function(n){return o.bind(K.bindAff)(un(n.docsFiles))(function(e){return o.discard(o.discardUnit)(K.bindAff)(r.when(K.applicativeAff)(d.null(e))($.liftEffect(K.monadEffectAff)(on("The following globs do not match any files: "+an(n.docsFiles)+".\nBuild the documentation first!"))))(function(){return o.bind(K.bindAff)(w.map(K.functorAff)(d.catMaybes)(R.for(K.applicativeAff)(R.traversableArray)(e)(function(n){return o.bind(K.bindAff)(ln(n))(function(e){return e?o.bind(K.bindAff)(nn.readTextFile(X.UTF8.value)(n))(function(e){var t,a,u=o.bind(v.bindEither)(p.jsonParser(e))((t=E.left(E.choiceFn)(f.printJsonDecodeError),a=l.decodeJson(l.decodeJsonMaybe(H.decodeJsonDocsJson)),function(n){return t(a(n))}));if(u instanceof v.Left)return o.discard(o.discardUnit)(K.bindAff)($.liftEffect(K.monadEffectAff)(Y.log('"docs.json" decoding failed failed for '+n+": "+u.value0)))(function(){return r.pure(K.applicativeAff)(b.Nothing.value)});if(u instanceof v.Right)return r.pure(K.applicativeAff)(u.value0);throw new Error("Failed pattern match at Docs.Search.IndexBuilder (line 159, column 7 - line 164, column 36): "+[u.constructor.name])}):o.discard(o.discardUnit)(K.bindAff)($.liftEffect(K.monadEffectAff)(Y.log("File does not exist: "+n)))(function(){return r.pure(K.applicativeAff)(b.Nothing.value)})})})))(function(e){return o.discard(o.discardUnit)(K.bindAff)(r.when(K.applicativeAff)(d.null(e))($.liftEffect(K.monadEffectAff)(on("Couldn't decode any of the files matched by the following globs: "+an(n.docsFiles)))))(function(){return r.pure(K.applicativeAff)(e)})})})})},dn=function(n){var e=function(n){return function(e){return A.compare(A.ordString)(n.name)(e.name)}};return o.bind(K.bindAff)(un(n.bowerFiles))(function(t){return o.discard(o.discardUnit)(K.bindAff)(r.when(K.applicativeAff)(d.null(t))($.liftEffect(K.monadEffectAff)(on("The following globs do not match any files: "+an(n.bowerFiles)+".\nAre you in a project directory?"))))(function(){return w.map(K.functorAff)(w.map(w.functorFn)(d.nubBy(e))(d.catMaybes))(R.for(K.applicativeAff)(R.traversableArray)(t)(function(n){return w.map(K.functorAff)(o.join(b.bindMaybe))((e=n,function(n){return o.bind(K.bindAff)(ln(e))(function(t){return t?o.bind(K.bindAff)(nn.readTextFile(X.UTF8.value)(e))(function(e){return o.bind(K.bindAff)(n(e))(function(n){return r.pure(K.applicativeAff)(new b.Just(n))})}):o.discard(o.discardUnit)(K.bindAff)($.liftEffect(K.monadEffectAff)(Y.log("File does not exist: "+e)))(function(){return r.pure(K.applicativeAff)(b.Nothing.value)})})})(function(e){return v.either((u=n,function(n){return o.discard(o.discardUnit)(K.bindAff)($.liftEffect(K.monadEffectAff)(Y.log('"bower.json" decoding failed failed for '+u+": "+n)))(function(){return r.pure(K.applicativeAff)(b.Nothing.value)})}))(r.pure(K.applicativeAff))(o.bind(v.bindEither)(p.jsonParser(e))((t=E.left(E.choiceFn)(f.printJsonDecodeError),a=l.decodeJson(l.decodeJsonMaybe(rn.decodeJsonPackageMeta)),function(n){return t(a(n))})));var t,a,u}));var e}))})})},vn=function(n){var e=function(n){return function(n){return function(n){return function(n){return function(n){return function(n){return function(n){return O.unit}}}}}}};return o.discard(o.discardUnit)(K.bindAff)(function(n){var e=[n.generatedDocs,n.generatedDocs+"/html"];return m.for_(K.applicativeAff)(m.foldableArray)(e)(function(n){return u.whenM(K.monadAff)(w.map(K.functorAff)(h.not(h.heytingAlgebraBoolean))(sn(n)))($.liftEffect(K.monadEffectAff)(on("Build the documentation first!")))})}(n))(function(){return o.discard(o.discardUnit)(K.bindAff)($.liftEffect(K.monadEffectAff)(Y.log("Building the search index...")))(function(){return o.bind(K.bindAff)(pn(n))(function(l){return o.bind(K.bindAff)(dn(n))(function(f){var p=d.length(f),v=d.length(l);return o.discard(o.discardUnit)(K.bindAff)($.liftEffect(K.monadEffectAff)(Y.log("Indexing "+I.show(I.showInt)(v)+" modules from "+I.show(I.showInt)(p)+" packages...")))(function(){var v,y,C,A,E,T=G.mkScores(f),P=Q.mkTypeIndex(T)(l),N=W.mkPackageInfo(T)(f),J={localPackageName:n.packageName},R=q.mkDeclarations(T)(l),L=j.mkPackedModuleIndex(R);return o.discard(o.discardUnit)(K.bindAff)((y=(v=n).generatedDocs+"/html/index/types",C=v.generatedDocs+"/html/index",A=v.generatedDocs+"/html",E=v.generatedDocs+"/html/index/declarations",o.discard(o.discardUnit)(K.bindAff)(u.whenM(K.monadAff)(w.map(K.functorAff)(h.not(h.heytingAlgebraBoolean))(sn(v.generatedDocs)))($.liftEffect(K.monadEffectAff)(on("Generate the documentation first!"))))(function(){return o.discard(o.discardUnit)(K.bindAff)(u.whenM(K.monadAff)(w.map(K.functorAff)(h.not(h.heytingAlgebraBoolean))(sn(A)))($.liftEffect(K.monadEffectAff)(on("Generate the documentation first!"))))(function(){return o.discard(o.discardUnit)(K.bindAff)(u.whenM(K.monadAff)(w.map(K.functorAff)(h.not(h.heytingAlgebraBoolean))(sn(C)))(nn.mkdir(C)))(function(){return o.discard(o.discardUnit)(K.bindAff)(u.whenM(K.monadAff)(w.map(K.functorAff)(h.not(h.heytingAlgebraBoolean))(sn(E)))(nn.mkdir(E)))(function(){return u.whenM(K.monadAff)(w.map(K.functorAff)(h.not(h.heytingAlgebraBoolean))(sn(y)))(nn.mkdir(y))})})})})))(function(){return o.discard(o.discardUnit)(K.bindAff)(w.void(K.functorAff)(i.sequential(K.parallelAff)(a.apply(K.applyParAff)(a.apply(K.applyParAff)(a.apply(K.applyParAff)(a.apply(K.applyParAff)(a.apply(K.applyParAff)(a.apply(K.applyParAff)(w.map(K.functorParAff)(e)(i.parallel(K.parallelAff)(cn(n)(R))))(i.parallel(K.parallelAff)(function(n){var e=D.toUnfoldableUnordered(k.unfoldableArray)(S.unwrap(Q.newtypeTypeIndex)(n));return m.for_(K.applicativeAff)(m.foldableArray)(e)(function(n){return nn.writeTextFile(X.UTF8.value)(S.unwrap(z.newtypeFilePath)(U.typeIndexDirectory)+"/"+n.value0+".js")('// This file was generated by purescript-docs-search\nwindow.DocsSearchTypeIndex["'+n.value0+'"] = '+c.stringify(s.encodeJson(s.encodeJsonMaybe(s.encodeJsonArray(V.encodeJsonSearchResult)))(n.value1)))})}(P))))(i.parallel(K.parallelAff)(function(n){return nn.writeTextFile(X.UTF8.value)(S.unwrap(z.newtypeFilePath)(U.packageInfoPath))("window.DocsSearchPackageIndex = "+c.stringify(s.encodeJson(s.encodeJsonArray(s.encodeRecord(s.gEncodeJsonCons(s.encodeJsonArray(z.encodeJsonPackageName))(s.gEncodeJsonCons(s.encodeJsonMaybe(s.encodeJsonJString))(s.gEncodeJsonCons(z.encodeJsonPackageName)(s.gEncodeJsonCons(s.encodeJsonMaybe(s.encodeJsonJString))(s.gEncodeJsonCons(z.encodeJsonPackageScore)(s.gEncodeJsonNil)(new x.IsSymbol(function(){return"score"}))())(new x.IsSymbol(function(){return"repository"}))())(new x.IsSymbol(function(){return"name"}))())(new x.IsSymbol(function(){return"description"}))())(new x.IsSymbol(function(){return"dependencies"}))())()))(n)))}(N))))(i.parallel(K.parallelAff)(function(n){return nn.writeTextFile(X.UTF8.value)(S.unwrap(z.newtypeFilePath)(U.moduleIndexPath))("window.DocsSearchModuleIndex = "+c.stringify(s.encodeJson(s.encodeMap(z.ordPackageInfo)(z.encodeJsonPackageInfo)(s.encodeSet(z.ordModuleName)(z.encodeJsonModuleName)))(n)))}(L))))(i.parallel(K.parallelAff)(function(n){var e="window."+S.unwrap(z.newtypeGlobalIdentifier)(U.metaItem)+" = ";return nn.writeTextFile(X.UTF8.value)(S.unwrap(z.newtypeFilePath)(U.metaPath))(e+c.stringify(s.encodeJson(s.encodeRecord(s.gEncodeJsonCons(z.encodeJsonPackageName)(s.gEncodeJsonNil)(new x.IsSymbol(function(){return"localPackageName"}))())())(n)))}(J))))(i.parallel(K.parallelAff)(r.when(K.applicativeAff)(!n.noPatch)(fn(n)))))(i.parallel(K.parallelAff)((l=n,o.bind(K.bindAff)($.liftEffect(K.monadEffectAff)(t.getDirname))(function(n){var e=n+"/docs-search-app.js";return o.discard(o.discardUnit)(K.bindAff)(u.whenM(K.monadAff)(w.map(K.functorAff)(h.not(h.heytingAlgebraBoolean))(ln(e)))($.liftEffect(K.monadEffectAff)(on("Client-side app was not found at "+e+".\nCheck your installation."))))(function(){return o.bind(K.bindAff)(nn.readFile(e))(function(n){return nn.writeFile(l.generatedDocs+"/html/docs-search-app.js")(n)})})})))))))(function(){var n=m.sum(g.foldableList)(M.semiringInt)(w.map(g.functorList)(w.map(w.functorFn)(b.fromMaybe(0))(w.map(b.functorMaybe)(d.length)))(D.values(S.unwrap(Q.newtypeTypeIndex)(P)))),e=F.size(S.unwrap(q.newtypeDeclarations)(R));return $.liftEffect(K.monadEffectAff)(Y.log("Added "+I.show(I.showInt)(e)+" definitions and "+I.show(I.showInt)(n)+" type definitions from "+I.show(I.showInt)(p)+" packages to the search index."))});var l})})})})})})};e.run=function(n){return K.launchAff_(vn(n))},e.decodeDocsJsons=pn,e.decodeBowerJsons=dn}(n),function(n){"use strict";n["Docs.Search.NodeEngine"]=n["Docs.Search.NodeEngine"]||{};var e=n["Docs.Search.NodeEngine"],t=n["Control.Applicative"],r=n["Data.Array"],a=n["Data.Identity"],o=n["Data.List"],u=n["Data.List.Types"],i=n["Data.Ord"],c=n["Data.Search.Trie.Internal"],l=n["Data.String.Common"],f=n["Docs.Search.Engine"],s=n["Docs.Search.Extra"],p=n["Docs.Search.ModuleIndex"],d={queryIndex:function(n){return function(e){return t.pure(a.applicativeIdentity)({index:n,results:r.fromFoldable(u.foldableList)(o.concat(c.queryValues(i.ordChar)(s.stringToList(l.toLower(e)))(n)))})}},queryTypeIndex:function(n){return function(e){return t.pure(a.applicativeIdentity)({index:n,results:r.take(100)(f.sortByDistance(e)(n))})}},queryPackageIndex:n["Docs.Search.PackageIndex"].queryPackageIndex(a.monadIdentity),queryModuleIndex:p.queryModuleIndex};e.nodeEngine=d}(n),function(n){"use strict";n["Docs.Search.Terminal"]=n["Docs.Search.Terminal"]||{};var e=n["Docs.Search.Terminal"];e.bold=function(n){return""+n+""},e.yellow=function(n){return""+n+""},e.cyan=function(n){return""+n+""},e.green=function(n){return""+n+""}}(n),function(n){"use strict";n["Docs.Search.TypePrinter"]=n["Docs.Search.TypePrinter"]||{};var e=n["Docs.Search.TypePrinter"],t=n["Data.Array"],r=n["Data.Foldable"],a=n["Data.Functor"],o=n["Data.List"],u=n["Data.List.Types"],i=n["Data.Maybe"],c=n["Data.Monoid"],l=n["Data.Newtype"],f=n["Docs.Search.Extra"],s=n["Docs.Search.Terminal"],p=n["Docs.Search.TypeDecoder"],d=n["Docs.Search.Types"],v=s.cyan,m=function(n){return l.unwrap(d.newtypeIdentifier)(n.name)},w=function(n){if(n instanceof p.Row)return"# "+w(n.value0);if(n instanceof p.FunKind)return w(n.value0)+(v(" -> ")+w(n.value1));if(n instanceof p.NamedKind)return m(n.value0);throw new Error("Failed pattern match at Docs.Search.TypePrinter (line 152, column 12 - line 155, column 45): "+[n.constructor.name])},h=s.cyan,y=function(n){if(n instanceof p.TypeVar)return n.value0;if(n instanceof p.TypeLevelString)return'"'+n.value0+'"';if(n instanceof p.TypeWildcard)return"_";if(n instanceof p.TypeConstructor)return m(n.value0);if(n instanceof p.TypeOp)return m(n.value0);if(n instanceof p.TypeApp&&n.value0 instanceof p.TypeApp&&n.value0.value0 instanceof p.TypeConstructor&&1===n.value0.value0.value0.moduleNameParts.length&&"Prim"===n.value0.value0.value0.moduleNameParts[0]&&"Function"===n.value0.value0.value0.name)return y(n.value0.value1)+(v(" -> ")+y(n.value1));if(n instanceof p.TypeApp&&n.value0 instanceof p.TypeConstructor&&1===n.value0.value0.moduleNameParts.length&&"Prim"===n.value0.value0.moduleNameParts[0]&&"Record"===n.value0.value0.name)return g(!1)(n.value1);if(n instanceof p.TypeApp)return y(n.value0)+" "+y(n.value1);if(n instanceof p.ForAll)return D(n);if(n instanceof p.ConstrainedType)return b(n.value0)+(v(" => ")+y(n.value1));if(n instanceof p.REmpty)return g(!0)(n);if(n instanceof p.RCons)return g(!0)(n);if(n instanceof p.BinaryNoParensType)return y(n.value1)+" "+y(n.value0)+" "+y(n.value2);if(n instanceof p.ParensInType)return"("+y(n.value0)+")";throw new Error("Failed pattern match at Docs.Search.TypePrinter (line 18, column 12 - line 61, column 8): "+[n.constructor.name])},g=function(n){var e=n?"(":"{ ",s=n?")":" }";return function(m){return w=p.joinRows(m),o.null(w.rows)?n?"()":i.fromMaybe("{}")(a.mapFlipped(i.functorMaybe)(w.ty)(function(n){return"Record "+y(n)})):e+(r.intercalate(r.foldableArray)(c.monoidString)(", ")(t.fromFoldable(u.foldableList)(a.mapFlipped(u.functorList)(w.rows)(function(n){return l.unwrap(d.newtypeIdentifier)(n.row)+(v(" :: ")+y(n.ty))})))+(f.foldMapFlipped(r.foldableMaybe)(c.monoidString)(w.ty)(function(n){return" | "+y(n)})+s));var w}},D=function(n){var e=p.joinForAlls(n);return h("forall")+(r.fold(u.foldableList)(c.monoidString)(a.mapFlipped(u.functorList)(e.binders)(function(n){if(n.mbKind instanceof i.Nothing)return" "+n.name;if(n.mbKind instanceof i.Just)return" ("+n.name+" "+v("::")+" "+w(n.mbKind.value0)+")";throw new Error("Failed pattern match at Docs.Search.TypePrinter (line 132, column 5 - line 139, column 15): "+[n.mbKind.constructor.name])}))+(v(". ")+y(e.ty)))},b=function(n){return m(n.constraintClass)+" "+r.intercalate(r.foldableArray)(c.monoidString)(" ")(a.mapFlipped(a.functorArray)(n.constraintArgs)(y))};e.showType=y,e.showTypeArgument=function(n){if(n.mbKind instanceof i.Nothing)return n.name;if(n.mbKind instanceof i.Just)return"("+n.name+" :: "+w(n.mbKind.value0)+")";throw new Error("Failed pattern match at Docs.Search.TypePrinter (line 66, column 3 - line 74, column 10): "+[n.mbKind.constructor.name])},e.showFunDeps=function(n){if(0===n.length)return"";return v(" | ")+r.intercalate(r.foldableArray)(c.monoidString)(v(", "))(a.mapFlipped(a.functorArray)(n)(function(n){return r.intercalate(r.foldableArray)(c.monoidString)(" ")(n.lhs)+(v(" -> ")+r.intercalate(r.foldableArray)(c.monoidString)(" ")(n.rhs))}))},e.showKind=w,e.showConstraint=b,e.syntax=v,e.space=" ",e.keyword=h}(n),function(n){"use strict";n.createInterfaceImpl=function(n){return function(){return require("readline").createInterface({input:n.input,output:n.output,completer:n.completer&&function(e){var t=n.completer(e)();return[t.completions,t.matched]},terminal:n.terminal,historySize:n.historySize})}},n.question=function(n){return function(e){return function(t){return function(){t.question(n,function(n){e(n)()})}}}}}(n["Node.ReadLine"]=n["Node.ReadLine"]||{}),function(n){"use strict";n["Node.ReadLine"]=n["Node.ReadLine"]||{};var e=n["Node.ReadLine"],t=n["Node.ReadLine"],r=n["Data.Options"],a=n["Data.Semigroup"],o=n["Node.Process"],u=r.opt("output"),i=r.opt("completer");e.createConsoleInterface=function(n){return(e=o.stdin,function(n){return t.createInterfaceImpl(r.options(a.append(r.semigroupOptions)(n)(r.assoc(r.opt("input"))(e))))})(a.append(r.semigroupOptions)(r.assoc(u)(o.stdout))(r.assoc(i)(n)));var e},e.question=t.question}(n),function(n){"use strict";n["Docs.Search.Interactive"]=n["Docs.Search.Interactive"]||{};var e,t=n["Docs.Search.Interactive"],r=n["Control.Applicative"],a=n["Control.Bind"],o=n["Data.Array"],u=n["Data.Foldable"],i=n["Data.Functor"],c=n["Data.Identity"],l=n["Data.List"],f=n["Data.List.Types"],s=n["Data.Maybe"],p=n["Data.Monoid"],d=n["Data.Newtype"],v=n["Data.Ord"],m=n["Data.Search.Trie.Internal"],w=n["Data.Show"],h=n["Data.String.CodePoints"],y=n["Data.String.Common"],g=n["Data.String.Pattern"],D=n["Docs.Search.Declarations"],b=n["Docs.Search.DocsJson"],C=n["Docs.Search.Engine"],S=n["Docs.Search.Extra"],A=n["Docs.Search.IndexBuilder"],E=n["Docs.Search.ModuleIndex"],F=n["Docs.Search.NodeEngine"],T=n["Docs.Search.PackageIndex"],M=n["Docs.Search.Score"],P=n["Docs.Search.SearchResult"],I=n["Docs.Search.Terminal"],N=n["Docs.Search.TypeIndex"],J=n["Docs.Search.TypePrinter"],x=n["Docs.Search.Types"],R=n.Effect,L=n["Effect.Aff"],k=n["Effect.Class"],O=n["Effect.Console"],B=n["Node.ReadLine"],U=(e=d.unwrap(x.newtypeModuleName),function(n){return I.bold(I.green(e(n)))}),q=function(n){return n.info instanceof P.ValueResult?I.yellow(d.unwrap(x.newtypeIdentifier)(n.name))+(J.syntax(" :: ")+J.showType(n.info.value0.type)):n.info instanceof P.TypeClassResult?function(n){return function(e){return J.keyword("class")+((o.null(n.superclasses)?"":J.syntax(" (")+(u.intercalate(u.foldableArray)(p.monoidString)(J.syntax(", "))(i.mapFlipped(i.functorArray)(n.superclasses)(J.showConstraint))+(J.syntax(") ")+J.syntax("<="))))+(J.space+(I.yellow(d.unwrap(x.newtypeIdentifier)(e.name))+(J.space+(u.intercalate(u.foldableArray)(p.monoidString)(J.space)(i.mapFlipped(i.functorArray)(n.arguments)(J.showTypeArgument))+J.showFunDeps(n.fundeps))))))}}(n.info.value0)(n):n.info instanceof P.TypeClassMemberResult?function(n){return function(e){return I.yellow(d.unwrap(x.newtypeIdentifier)(e.name))+(J.syntax(" :: ")+J.showType(n.type))}}(n.info.value0)(n):n.info instanceof P.DataResult?function(n){return function(e){return J.keyword(function(){if(n.dataDeclType instanceof b.NewtypeDataDecl)return"newtype";if(n.dataDeclType instanceof b.DataDataDecl)return"data";throw new Error("Failed pattern match at Docs.Search.Interactive (line 247, column 5 - line 249, column 32): "+[n.dataDeclType.constructor.name])}())+(J.space+(I.yellow(d.unwrap(x.newtypeIdentifier)(e.name))+(J.space+u.intercalate(u.foldableArray)(p.monoidString)(J.space)(i.mapFlipped(i.functorArray)(n.typeArguments)(J.showTypeArgument)))))}}(n.info.value0)(n):n.info instanceof P.TypeSynonymResult?function(n){return function(e){return J.keyword("type")+(J.space+(I.yellow(d.unwrap(x.newtypeIdentifier)(e.name))+(J.space+(u.intercalate(u.foldableArray)(p.monoidString)(J.space)(i.mapFlipped(i.functorArray)(n.arguments)(J.showTypeArgument))+(J.space+(J.syntax("=")+(J.space+J.showType(n.type))))))))}}(n.info.value0)(n):n.info instanceof P.ExternDataResult?function(n){return function(e){return J.keyword("foreign data")+(J.space+(I.yellow(d.unwrap(x.newtypeIdentifier)(e.name))+(J.space+(J.syntax(" :: ")+J.showKind(n.kind)))))}}(n.info.value0)(n):n.info instanceof P.ValueAliasResult?I.yellow("("+d.unwrap(x.newtypeIdentifier)(n.name)+")"):I.yellow(d.unwrap(x.newtypeIdentifier)(n.name))},H=function(n){return function(e){return u.intercalate(u.foldableArray)(p.monoidString)("\n")(i.map(i.functorArray)(i.map(i.functorFn)((t=n,function(n){return u.fold(u.foldableArray)(p.monoidString)(o.replicate(t)(" "))+n}))(y.trim))(y.split(d.wrap(g.newtypePattern)("\n"))(e)));var t}},_=function(n){return function(e){return q(e)+"\n"+(s.fromMaybe("\n")(i.mapFlipped(s.functorMaybe)(e.comments)(function(n){return"\n"+H(3)(y.trim(n))+"\n\n"}))+(I.bold(I.cyan((t=40,function(n){return n+u.fold(u.foldableArray)(p.monoidString)(o.replicate(t-h.length(n)|0)(" "))})(C.packageInfoToString(n.packageName)(e.packageInfo))))+(J.space+U(e.moduleName))));var t}},j=function(n){return function(e){if(e instanceof C.DeclResult)return _(n)(e.value0);if(e instanceof C.TypeResult)return _(n)(e.value0);if(e instanceof C.PackResult)return function(n){return I.bold(I.cyan("package"))+" "+(I.bold(I.yellow(d.unwrap(x.newtypePackageName)(n.name)))+S.foldMapFlipped(u.foldableMaybe)(p.monoidString)(n.description)(function(n){return"\n\n"+H(3)(n)+"\n"}))}(e.value0);if(e instanceof C.MdlResult)return function(n){return I.bold(I.cyan("module"))+" "+U(n.name)}(e.value0);throw new Error("Failed pattern match at Docs.Search.Interactive (line 119, column 18 - line 123, column 36): "+[e.constructor.name])}};t.run=function(n){return L.launchAff_(a.discard(a.discardUnit)(L.bindAff)(k.liftEffect(L.monadEffectAff)(O.log("Loading search index...")))(function(){return a.bind(L.bindAff)(A.decodeDocsJsons(n))(function(e){return a.bind(L.bindAff)(A.decodeBowerJsons(n))(function(t){var s=M.mkScores(t),h=a.bind(a.bindArray)(e)(N.resultsWithTypes(s)),g=T.mkPackageIndex(T.mkPackageInfo(s)(t)),b=D.mkDeclarations(s)(e),A=E.unpackModuleIndex(E.mkPackedModuleIndex(b)),J=C.mkEngineState(d.unwrap(D.newtypeDeclarations)(b))(h)(g)(A)(s),U=o.length(h),q=o.length(t),H=m.size(d.unwrap(D.newtypeDeclarations)(b));return a.discard(a.discardUnit)(L.bindAff)(k.liftEffect(L.monadEffectAff)(O.log("Loaded "+w.show(w.showInt)(H)+" definitions and "+w.show(w.showInt)(U)+" type definitions from "+w.show(w.showInt)(q)+" packages.")))(function(){return k.liftEffect(L.monadEffectAff)((e=function(n){return function(e){return B.question("> ")(n(e))(e)}},t=function(r){return function(a){var l=d.un(c.newtypeIdentity)(c.Identity)(i.mapFlipped(c.functorIdentity)(C.query(c.monadIdentity)(F.nodeEngine)(J)(a))(function(n){return n.results})),f=o.length(l);return function(){return O.clear(),O.log(f>0?u.intercalate(u.foldableArray)(p.monoidString)("\n\n\n")(i.map(i.functorArray)(j(n))(o.reverse(l))):"Your search for "+I.bold(a)+" did not yield any results.")(),e(t)(r)()}}},function(){var n=B.createConsoleInterface(function(n){return function(e){var t=S.stringToList(y.toLower(e)),a=o.fromFoldable(f.foldableList)(i.map(f.functorList)(function(n){return d.unwrap(x.newtypeIdentifier)(d.unwrap(P.newtypeSearchResult)(n).name)})(l.concat(m.queryValues(v.ordChar)(t)(d.unwrap(D.newtypeDeclarations)(n)))));return r.pure(R.applicativeEffect)({completions:a,matched:e})}}(b))();return e(t)(n)()}));var e,t})})})}))}}(n),function(n){"use strict";n.ExitCodes=n.ExitCodes||{};var e=n.ExitCodes,t=n["Data.Bounded"],r=n["Data.Enum"],a=n["Data.Eq"],o=n["Data.Maybe"],u=n["Data.Ord"],i=n["Data.Ordering"],c=function(){function n(){}return n.value=new n,n}(),l=function(){function n(){}return n.value=new n,n}(),f=function(){function n(){}return n.value=new n,n}(),s=function(){function n(){}return n.value=new n,n}(),p=function(){function n(){}return n.value=new n,n}(),d=function(){function n(){}return n.value=new n,n}(),v=function(){function n(){}return n.value=new n,n}(),m=function(){function n(){}return n.value=new n,n}(),w=function(){function n(){}return n.value=new n,n}(),h=function(){function n(){}return n.value=new n,n}(),y=function(){function n(){}return n.value=new n,n}(),g=function(){function n(){}return n.value=new n,n}(),D=function(){function n(){}return n.value=new n,n}(),b=function(){function n(){}return n.value=new n,n}(),C=function(){function n(){}return n.value=new n,n}(),S=function(){function n(){}return n.value=new n,n}(),A=function(){function n(){}return n.value=new n,n}(),E=function(){function n(){}return n.value=new n,n}(),F=function(){function n(){}return n.value=new n,n}(),T=function(){function n(){}return n.value=new n,n}(),M=function(){function n(){}return n.value=new n,n}(),P=function(){function n(){}return n.value=new n,n}(),I=function(){function n(){}return n.value=new n,n}(),N=function(){function n(){}return n.value=new n,n}(),J=function(){function n(){}return n.value=new n,n}(),x=function(){function n(){}return n.value=new n,n}(),R=function(){function n(){}return n.value=new n,n}(),L=function(){function n(){}return n.value=new n,n}(),k=function(){function n(){}return n.value=new n,n}(),O=function(){function n(){}return n.value=new n,n}(),B=function(){function n(){}return n.value=new n,n}(),U=function(){function n(){}return n.value=new n,n}(),q=new a.Eq(function(n){return function(e){return n instanceof c&&e instanceof c||(n instanceof l&&e instanceof l||(n instanceof f&&e instanceof f||(n instanceof s&&e instanceof s||(n instanceof p&&e instanceof p||(n instanceof d&&e instanceof d||(n instanceof v&&e instanceof v||(n instanceof m&&e instanceof m||(n instanceof w&&e instanceof w||(n instanceof h&&e instanceof h||(n instanceof y&&e instanceof y||(n instanceof g&&e instanceof g||(n instanceof D&&e instanceof D||(n instanceof b&&e instanceof b||(n instanceof C&&e instanceof C||(n instanceof S&&e instanceof S||(n instanceof A&&e instanceof A||(n instanceof E&&e instanceof E||(n instanceof F&&e instanceof F||(n instanceof T&&e instanceof T||(n instanceof M&&e instanceof M||(n instanceof P&&e instanceof P||(n instanceof I&&e instanceof I||(n instanceof N&&e instanceof N||(n instanceof J&&e instanceof J||(n instanceof x&&e instanceof x||(n instanceof R&&e instanceof R||(n instanceof L&&e instanceof L||(n instanceof k&&e instanceof k||(n instanceof O&&e instanceof O||(n instanceof B&&e instanceof B||n instanceof U&&e instanceof U))))))))))))))))))))))))))))))}}),H=new u.Ord(function(){return q},function(n){return function(e){if(n instanceof c&&e instanceof c)return i.EQ.value;if(n instanceof c)return i.LT.value;if(e instanceof c)return i.GT.value;if(n instanceof l&&e instanceof l)return i.EQ.value;if(n instanceof l)return i.LT.value;if(e instanceof l)return i.GT.value;if(n instanceof f&&e instanceof f)return i.EQ.value;if(n instanceof f)return i.LT.value;if(e instanceof f)return i.GT.value;if(n instanceof s&&e instanceof s)return i.EQ.value;if(n instanceof s)return i.LT.value;if(e instanceof s)return i.GT.value;if(n instanceof p&&e instanceof p)return i.EQ.value;if(n instanceof p)return i.LT.value;if(e instanceof p)return i.GT.value;if(n instanceof d&&e instanceof d)return i.EQ.value;if(n instanceof d)return i.LT.value;if(e instanceof d)return i.GT.value;if(n instanceof v&&e instanceof v)return i.EQ.value;if(n instanceof v)return i.LT.value;if(e instanceof v)return i.GT.value;if(n instanceof m&&e instanceof m)return i.EQ.value;if(n instanceof m)return i.LT.value;if(e instanceof m)return i.GT.value;if(n instanceof w&&e instanceof w)return i.EQ.value;if(n instanceof w)return i.LT.value;if(e instanceof w)return i.GT.value;if(n instanceof h&&e instanceof h)return i.EQ.value;if(n instanceof h)return i.LT.value;if(e instanceof h)return i.GT.value;if(n instanceof y&&e instanceof y)return i.EQ.value;if(n instanceof y)return i.LT.value;if(e instanceof y)return i.GT.value;if(n instanceof g&&e instanceof g)return i.EQ.value;if(n instanceof g)return i.LT.value;if(e instanceof g)return i.GT.value;if(n instanceof D&&e instanceof D)return i.EQ.value;if(n instanceof D)return i.LT.value;if(e instanceof D)return i.GT.value;if(n instanceof b&&e instanceof b)return i.EQ.value;if(n instanceof b)return i.LT.value;if(e instanceof b)return i.GT.value;if(n instanceof C&&e instanceof C)return i.EQ.value;if(n instanceof C)return i.LT.value;if(e instanceof C)return i.GT.value;if(n instanceof S&&e instanceof S)return i.EQ.value;if(n instanceof S)return i.LT.value;if(e instanceof S)return i.GT.value;if(n instanceof A&&e instanceof A)return i.EQ.value;if(n instanceof A)return i.LT.value;if(e instanceof A)return i.GT.value;if(n instanceof E&&e instanceof E)return i.EQ.value;if(n instanceof E)return i.LT.value;if(e instanceof E)return i.GT.value;if(n instanceof F&&e instanceof F)return i.EQ.value;if(n instanceof F)return i.LT.value;if(e instanceof F)return i.GT.value;if(n instanceof T&&e instanceof T)return i.EQ.value;if(n instanceof T)return i.LT.value;if(e instanceof T)return i.GT.value;if(n instanceof M&&e instanceof M)return i.EQ.value;if(n instanceof M)return i.LT.value;if(e instanceof M)return i.GT.value;if(n instanceof P&&e instanceof P)return i.EQ.value;if(n instanceof P)return i.LT.value;if(e instanceof P)return i.GT.value;if(n instanceof I&&e instanceof I)return i.EQ.value;if(n instanceof I)return i.LT.value;if(e instanceof I)return i.GT.value;if(n instanceof N&&e instanceof N)return i.EQ.value;if(n instanceof N)return i.LT.value;if(e instanceof N)return i.GT.value;if(n instanceof J&&e instanceof J)return i.EQ.value;if(n instanceof J)return i.LT.value;if(e instanceof J)return i.GT.value;if(n instanceof x&&e instanceof x)return i.EQ.value;if(n instanceof x)return i.LT.value;if(e instanceof x)return i.GT.value;if(n instanceof R&&e instanceof R)return i.EQ.value;if(n instanceof R)return i.LT.value;if(e instanceof R)return i.GT.value;if(n instanceof L&&e instanceof L)return i.EQ.value;if(n instanceof L)return i.LT.value;if(e instanceof L)return i.GT.value;if(n instanceof k&&e instanceof k)return i.EQ.value;if(n instanceof k)return i.LT.value;if(e instanceof k)return i.GT.value;if(n instanceof O&&e instanceof O)return i.EQ.value;if(n instanceof O)return i.LT.value;if(e instanceof O)return i.GT.value;if(n instanceof B&&e instanceof B)return i.EQ.value;if(n instanceof B)return i.LT.value;if(e instanceof B)return i.GT.value;if(n instanceof U&&e instanceof U)return i.EQ.value;throw new Error("Failed pattern match at ExitCodes (line 47, column 1 - line 47, column 44): "+[n.constructor.name,e.constructor.name])}}),_=new r.Enum(function(){return H},function(n){if(n instanceof c)return o.Nothing.value;if(n instanceof l)return new o.Just(c.value);if(n instanceof f)return new o.Just(l.value);if(n instanceof s)return new o.Just(f.value);if(n instanceof p)return new o.Just(s.value);if(n instanceof d)return new o.Just(p.value);if(n instanceof v)return new o.Just(d.value);if(n instanceof m)return new o.Just(v.value);if(n instanceof w)return new o.Just(m.value);if(n instanceof h)return new o.Just(w.value);if(n instanceof y)return new o.Just(h.value);if(n instanceof g)return new o.Just(y.value);if(n instanceof D)return new o.Just(g.value);if(n instanceof b)return new o.Just(D.value);if(n instanceof C)return new o.Just(b.value);if(n instanceof S)return new o.Just(C.value);if(n instanceof A)return new o.Just(S.value);if(n instanceof E)return new o.Just(A.value);if(n instanceof F)return new o.Just(E.value);if(n instanceof T)return new o.Just(F.value);if(n instanceof M)return new o.Just(T.value);if(n instanceof P)return new o.Just(M.value);if(n instanceof I)return new o.Just(P.value);if(n instanceof N)return new o.Just(I.value);if(n instanceof J)return new o.Just(N.value);if(n instanceof x)return new o.Just(J.value);if(n instanceof R)return new o.Just(x.value);if(n instanceof L)return new o.Just(R.value);if(n instanceof k)return new o.Just(L.value);if(n instanceof O)return new o.Just(k.value);if(n instanceof B)return new o.Just(O.value);if(n instanceof U)return new o.Just(B.value);throw new Error("Failed pattern match at ExitCodes (line 87, column 1 - line 151, column 30): "+[n.constructor.name])},function(n){if(n instanceof c)return new o.Just(l.value);if(n instanceof l)return new o.Just(f.value);if(n instanceof f)return new o.Just(s.value);if(n instanceof s)return new o.Just(p.value);if(n instanceof p)return new o.Just(d.value);if(n instanceof d)return new o.Just(v.value);if(n instanceof v)return new o.Just(m.value);if(n instanceof m)return new o.Just(w.value);if(n instanceof w)return new o.Just(h.value);if(n instanceof h)return new o.Just(y.value);if(n instanceof y)return new o.Just(g.value);if(n instanceof g)return new o.Just(D.value);if(n instanceof D)return new o.Just(b.value);if(n instanceof b)return new o.Just(C.value);if(n instanceof C)return new o.Just(S.value);if(n instanceof S)return new o.Just(A.value);if(n instanceof A)return new o.Just(E.value);if(n instanceof E)return new o.Just(F.value);if(n instanceof F)return new o.Just(T.value);if(n instanceof T)return new o.Just(M.value);if(n instanceof M)return new o.Just(P.value);if(n instanceof P)return new o.Just(I.value);if(n instanceof I)return new o.Just(N.value);if(n instanceof N)return new o.Just(J.value);if(n instanceof J)return new o.Just(x.value);if(n instanceof x)return new o.Just(R.value);if(n instanceof R)return new o.Just(L.value);if(n instanceof L)return new o.Just(k.value);if(n instanceof k)return new o.Just(O.value);if(n instanceof O)return new o.Just(B.value);if(n instanceof B)return new o.Just(U.value);if(n instanceof U)return o.Nothing.value;throw new Error("Failed pattern match at ExitCodes (line 87, column 1 - line 151, column 30): "+[n.constructor.name])}),j=new t.Bounded(function(){return H},c.value,U.value),W=new r.BoundedEnum(function(){return j},function(){return _},32,function(n){if(n instanceof c)return 0;if(n instanceof l)return 1;if(n instanceof f)return 2;if(n instanceof s)return 64;if(n instanceof p)return 65;if(n instanceof d)return 66;if(n instanceof v)return 67;if(n instanceof m)return 68;if(n instanceof w)return 69;if(n instanceof h)return 70;if(n instanceof y)return 71;if(n instanceof g)return 72;if(n instanceof D)return 73;if(n instanceof b)return 74;if(n instanceof C)return 75;if(n instanceof S)return 76;if(n instanceof A)return 77;if(n instanceof E)return 78;if(n instanceof F)return 126;if(n instanceof T)return 127;if(n instanceof M)return 128;if(n instanceof P)return 129;if(n instanceof I)return 130;if(n instanceof N)return 131;if(n instanceof J)return 132;if(n instanceof x)return 134;if(n instanceof R)return 136;if(n instanceof L)return 137;if(n instanceof k)return 139;if(n instanceof O)return 141;if(n instanceof B)return 142;if(n instanceof U)return 143;throw new Error("Failed pattern match at ExitCodes (line 153, column 1 - line 219, column 30): "+[n.constructor.name])},function(n){return 0===n?new o.Just(c.value):1===n?new o.Just(l.value):2===n?new o.Just(f.value):64===n?new o.Just(s.value):65===n?new o.Just(p.value):66===n?new o.Just(d.value):67===n?new o.Just(v.value):68===n?new o.Just(m.value):69===n?new o.Just(w.value):70===n?new o.Just(h.value):71===n?new o.Just(y.value):72===n?new o.Just(g.value):73===n?new o.Just(D.value):74===n?new o.Just(b.value):75===n?new o.Just(C.value):76===n?new o.Just(S.value):77===n?new o.Just(A.value):78===n?new o.Just(E.value):126===n?new o.Just(F.value):127===n?new o.Just(T.value):128===n?new o.Just(M.value):129===n?new o.Just(P.value):130===n?new o.Just(I.value):131===n?new o.Just(N.value):132===n?new o.Just(J.value):134===n?new o.Just(x.value):136===n?new o.Just(R.value):137===n?new o.Just(L.value):139===n?new o.Just(k.value):141===n?new o.Just(O.value):142===n?new o.Just(B.value):143===n?new o.Just(U.value):o.Nothing.value});e.Success=c,e.Error=l,e.boundedEnumExitCode=W}(n),function(n){"use strict";n["Options.Applicative.Types"]=n["Options.Applicative.Types"]||{};var e,t,r,a,o,u,i,c,l,f,s,p,d,v=n["Options.Applicative.Types"],m=n["Control.Alt"],w=n["Control.Alternative"],h=n["Control.Applicative"],y=n["Control.Apply"],g=n["Control.Bind"],D=n["Control.Monad.Error.Class"],b=n["Control.Monad.Except.Trans"],C=n["Control.Monad.Free"],S=n["Control.Monad.Reader.Class"],A=n["Control.Monad.Reader.Trans"],E=n["Control.Monad.Rec.Class"],F=n["Control.Monad.Trans.Class"],T=n["Control.Plus"],M=n["Data.Bifunctor"],P=n["Data.Eq"],I=n["Data.Exists"],N=n["Data.Functor"],J=n["Data.Identity"],x=n["Data.List"],R=n["Data.List.NonEmpty"],L=n["Data.List.Types"],k=n["Data.Maybe"],O=n["Data.Monoid"],B=n["Data.Newtype"],U=n["Data.Ord"],q=n["Data.Ordering"],H=n["Data.Semigroup"],_=n["Data.Unit"],j=n.Effect,W=function(n){return n},G=function(){function n(){}return n.value=new n,n}(),V=function(){function n(){}return n.value=new n,n}(),Q=function(){function n(){}return n.value=new n,n}(),z=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),Z=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),K=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),$=function(n){return n},Y=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),X=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),nn=function(n){return n},en=function(){function n(){}return n.value=new n,n}(),tn=function(){function n(){}return n.value=new n,n}(),rn=function(n){return n},an=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),on=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),un=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),cn=function(n){return n},ln=function(){function n(){}return n.value=new n,n}(),fn=function(){function n(){}return n.value=new n,n}(),sn=function(){function n(){}return n.value=new n,n}(),pn=function(n){return n},dn=function(){function n(){}return n.value=new n,n}(),vn=function(){function n(){}return n.value=new n,n}(),mn=function(){function n(){}return n.value=new n,n}(),wn=function(){function n(){}return n.value=new n,n}(),hn=function(n){return n},yn=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),gn=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),Dn=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),bn=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),Cn=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),Sn=function(n){return n},An=function(){function n(n,e,t){this.value0=n,this.value1=e,this.value2=t}return n.create=function(e){return function(t){return function(r){return new n(e,t,r)}}},n}(),En=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),Fn=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),Tn=function(){function n(n,e,t){this.value0=n,this.value1=e,this.value2=t}return n.create=function(e){return function(t){return function(r){return new n(e,t,r)}}},n}(),Mn=function(n){return n},Pn=function(n){return n},In=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),Nn=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),Jn=function(){function n(){}return n.value=new n,n}(),xn=function(){function n(){}return n.value=new n,n}(),Rn=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),Ln=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),kn=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),On=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),Bn=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),Un=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),qn=S.ask(A.monadAskReaderT(b.monadExceptT(J.monadIdentity))),Hn=(e=F.lift(A.monadTransReaderT)(b.monadExceptT(J.monadIdentity)),t=D.throwError(b.monadThrowExceptT(J.monadIdentity)),function(n){return Pn(e(t(n)))}),_n=new B.Newtype(function(n){return n},Pn),jn=new N.Functor(function(n){return function(e){return N.map(A.functorReaderT(b.functorExceptT(J.functorIdentity)))(n)(e)}}),Wn=new y.Apply(function(){return jn},function(n){return function(e){return Pn(y.apply(A.applyReaderT(b.applyExceptT(J.monadIdentity)))(n)(e))}}),Gn=new g.Bind(function(){return Wn},function(n){return function(e){return Pn(g.bind(A.bindReaderT(b.bindExceptT(J.monadIdentity)))(n)((t=B.un(_n)(Pn),function(n){return t(e(n))})));var t}}),Vn=new h.Applicative(function(){return Wn},(r=h.pure(A.applicativeReaderT(b.applicativeExceptT(J.monadIdentity))),function(n){return Pn(r(n))})),Qn=new B.Newtype(function(n){return n},pn),zn=C.freeMonadRec,Zn=C.freeFunctor,Kn=C.freeBind,$n=C.freeApply,Yn=C.freeApplicative,Xn=new B.Newtype(function(n){return n},hn),ne=new H.Semigroup(function(n){return function(e){return e instanceof xn?n:e}}),ee=new O.Monoid(function(){return ne},xn.value),te=new B.Newtype(function(n){return n},Sn),re=new P.Eq(function(n){return function(e){return n instanceof G&&e instanceof G||(n instanceof V&&e instanceof V||n instanceof Q&&e instanceof Q)}}),ae=new U.Ord(function(){return re},function(n){return function(e){if(n instanceof G&&e instanceof G)return q.EQ.value;if(n instanceof G)return q.LT.value;if(e instanceof G)return q.GT.value;if(n instanceof V&&e instanceof V)return q.EQ.value;if(n instanceof V)return q.LT.value;if(e instanceof V)return q.GT.value;if(n instanceof Q&&e instanceof Q)return q.EQ.value;throw new Error("Failed pattern match at Options.Applicative.Types (line 166, column 1 - line 166, column 54): "+[n.constructor.name,e.constructor.name])}}),oe=new B.Newtype(function(n){return n},$),ue=(a=B.un(oe)($),o=B.un(te)(Sn),function(n){return a(o(n).optProps).propShowDefault}),ie=(u=B.un(oe)($),i=B.un(te)(Sn),function(n){return u(i(n).optProps).propVisibility}),ce=new P.Eq(function(n){return function(e){return n instanceof Y&&e instanceof Y?n.value0===e.value0:n instanceof X&&e instanceof X&&n.value0===e.value0}}),le=new U.Ord(function(){return ce},function(n){return function(e){if(n instanceof Y&&e instanceof Y)return U.compare(U.ordChar)(n.value0)(e.value0);if(n instanceof Y)return q.LT.value;if(e instanceof Y)return q.GT.value;if(n instanceof X&&e instanceof X)return U.compare(U.ordString)(n.value0)(e.value0);throw new Error("Failed pattern match at Options.Applicative.Types (line 154, column 1 - line 154, column 42): "+[n.constructor.name,e.constructor.name])}}),fe=(c=B.un(oe)($),l=B.un(te)(Sn),function(n){return c(l(n).optProps).propMetaVar}),se=(f=B.un(oe)($),s=B.un(te)(Sn),function(n){return f(s(n).optProps).propHelp}),pe=(p=B.un(oe)($),d=B.un(te)(Sn),function(n){return p(d(n).optProps).propDescMod}),de=function(n){return C.liftF(n)},ve=new B.Newtype(function(n){return n},W),me=new B.Newtype(function(n){return n},nn),we=new B.Newtype(function(n){return n},rn),he=new B.Newtype(function(n){return n},cn),ye=new B.Newtype(function(n){return n},Mn),ge=function(n){return new Cn(n)},De=new H.Semigroup(function(n){return function(e){return cn(function(t){return y.apply(j.applyEffect)(N.map(j.functorEffect)(H.append(H.semigroupArray))(n(t)))(e(t))})}}),be=new O.Monoid(function(){return De},cn(function(n){return h.pure(j.applicativeEffect)([])})),Ce=new N.Functor(function(n){return B.over(ye)(ye)(Mn)(function(e){return{crReader:N.map(jn)(n)(e.crReader),crCompleter:e.crCompleter}})}),Se=new N.Functor(function(n){return B.over(Xn)(Xn)(hn)(function(e){return{infoParser:N.map(Ae)(n)(e.infoParser),infoFailureCode:e.infoFailureCode,infoFooter:e.infoFooter,infoFullDesc:e.infoFullDesc,infoHeader:e.infoHeader,infoPolicy:e.infoPolicy,infoProgDesc:e.infoProgDesc}})}),Ae=new N.Functor(function(n){return function(e){if(e instanceof yn)return new yn(N.map(k.functorMaybe)(n)(e.value0));if(e instanceof gn)return new gn(N.map(Ee)(n)(e.value0));if(e instanceof Dn)return I.runExists(function(e){return Dn.create(I.mkExists(new Bn(N.map(Ae)(function(e){return function(t){return n(e(t))}})(e.value0),e.value1)))})(e.value0);if(e instanceof bn)return new bn(N.map(Ae)(n)(e.value0),N.map(Ae)(n)(e.value1));if(e instanceof Cn)return Cn.create(N.map(C.freeFunctor)(n)(e.value0));throw new Error("Failed pattern match at Options.Applicative.Types (line 331, column 1 - line 336, column 36): "+[n.constructor.name,e.constructor.name])}}),Ee=new N.Functor(function(n){return B.over(te)(te)(Sn)(function(e){return{optMain:N.map(Fe)(n)(e.optMain),optProps:e.optProps}})}),Fe=new N.Functor(function(n){return function(e){if(e instanceof An)return new An(e.value0,N.map(Ce)(n)(e.value1),e.value2);if(e instanceof En)return new En(e.value0,n(e.value1));if(e instanceof Fn)return new Fn(N.map(Ce)(n)(e.value0));if(e instanceof Tn)return new Tn(e.value0,e.value1,(t=N.map(k.functorMaybe)(N.map(Se)(n)),function(n){return t(e.value2(n))}));var t;throw new Error("Failed pattern match at Options.Applicative.Types (line 278, column 1 - line 282, column 68): "+[n.constructor.name,e.constructor.name])}}),Te=new m.Alt(function(){return Ae},bn.create),Me=new T.Plus(function(){return Te},new yn(k.Nothing.value)),Pe=new y.Apply(function(){return Ae},function(n){return function(e){return new Dn(I.mkExists(new Bn(n,e)))}}),Ie=new h.Applicative(function(){return Pe},function(n){return yn.create(k.Just.create(n))}),Ne=function(n){return E.tailRecM(zn)(function(e){return g.bind(Kn)(de(m.alt(Te)(N.map(Ae)(E.Loop.create)(n))(h.pure(Ie)(new E.Done(_.unit)))))(function(n){return h.pure(Yn)(M.bimap(E.bifunctorStep)(function(n){return new L.Cons(n,e)})(function(n){return x.reverse(e)})(n))})})(L.Nil.value)},Je=new w.Alternative(function(){return Ie},function(){return Me}),xe=new P.Eq(function(n){return function(e){return n instanceof dn&&e instanceof dn||(n instanceof vn&&e instanceof vn||(n instanceof mn&&e instanceof mn||n instanceof wn&&e instanceof wn))}});v.ErrorMsg=In,v.InfoMsg=Nn,v.ShowHelpText=Jn,v.UnknownError=xn,v.MissingError=Rn,v.ExpectsArgError=Ln,v.UnexpectedError=kn,v.ParserInfo=hn,v.ParserPrefs=pn,v.Option=Sn,v.OptShort=Y,v.OptLong=X,v.OptReader=An,v.FlagReader=En,v.ArgReader=Fn,v.CmdReader=Tn,v.OptProperties=$,v.Internal=G,v.Hidden=V,v.Visible=Q,v.Backtrack=ln,v.NoBacktrack=fn,v.SubparserInline=sn,v.ReadM=Pn,v.readerAsk=qn,v.readerAbort=Hn,v.readerError=function(n){return Hn(In.create(n))},v.CReader=Mn,v.NilP=yn,v.OptP=gn,v.MultP=Dn,v.AltP=bn,v.BindP=Cn,v.Completer=cn,v.CompletionResult=rn,v.ParserFailure=W,v.Success=an,v.Failure=on,v.CompletionInvoked=un,v.Intersperse=dn,v.NoIntersperse=vn,v.AllPositionals=mn,v.ForwardOptions=wn,v.OptHelpInfo=nn,v.Leaf=z,v.MultNode=Z,v.AltNode=K,v.SomeParser=On,v.Context=Un,v.CmdStart=en,v.CmdCont=tn,v.optVisibility=ie,v.optMetaVar=fe,v.optHelp=se,v.optShowDefault=ue,v.optDescMod=pe,v.many=function(n){return ge(Ne(n))},v.some=function(n){return ge((e=n,y.apply($n)(N.map(Zn)(R["cons'"])(de(e)))(Ne(e))));var e},v.parseErrorMonoid=ee,v.parseErrorSemigroup=ne,v.parserInfoNewtype=Xn,v.parserPrefsNewtype=Qn,v.optNameEq=ce,v.optNameOrd=le,v.optVisibilityEq=re,v.optVisibilityOrd=ae,v.optPropertiesNewtype=oe,v.optionNewtype=te,v.readMNewtype=_n,v.readMApplicative=Vn,v.readMBind=Gn,v.newtypeCReader=ye,v.parserFunctor=Ae,v.parserApply=Pe,v.parserApplicative=Ie,v.parserAlt=Te,v.parserPlus=Me,v.parserAlternative=Je,v.newtypeCompleter=he,v.completerMonoid=be,v.newtypeCompletionResult=we,v.newtypeParserFailure=ve,v.argPolicyEq=xe,v.newtypeOptHelpInfo=me}(n),function(n){"use strict";n["Options.Applicative.Internal"]=n["Options.Applicative.Internal"]||{};var e,t,r=n["Options.Applicative.Internal"],a=n["Control.Alt"],o=n["Control.Alternative"],u=n["Control.Applicative"],i=n["Control.Apply"],c=n["Control.Bind"],l=n["Control.Category"],f=n["Control.Monad"],s=n["Control.Monad.Error.Class"],p=n["Control.Monad.Except"],d=n["Control.Monad.Except.Trans"],v=n["Control.Monad.Reader"],m=n["Control.Monad.Reader.Class"],w=n["Control.Monad.Reader.Trans"],h=n["Control.Monad.State.Class"],y=n["Control.Monad.State.Trans"],g=n["Control.Monad.Trans.Class"],D=n["Control.MonadPlus"],b=n["Control.MonadZero"],C=n["Control.Plus"],S=n["Data.Array"],A=n["Data.Either"],E=n["Data.Exists"],F=n["Data.Foldable"],T=n["Data.Function"],M=n["Data.Functor"],P=n["Data.Identity"],I=n["Data.List.Types"],N=n["Data.Maybe"],J=n["Data.Newtype"],x=n["Data.Tuple"],R=n["Data.Unit"],L=n["Options.Applicative.Types"],k=function(){function n(){}return n.value=new n,n}(),O=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),B=function(n){return n},U=function(n){return n},q=function(n){return n},H=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),_=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),j=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),W=function(n){return n},G=function(n,e,t,r,a,o,u){this.MonadPlus0=n,this.enterContext=e,this.errorP=t,this.exitContext=r,this.exitP=a,this.getPrefs=o,this.missingArgP=u},V=function(n){return n},Q=function(n){return n},z=function(n){return function(e){return c.bind(n.Bind1())(V(e))(function(e){if(e instanceof k)return u.pure(n.Applicative0())(I.Nil.value);if(e instanceof O)return f.liftM1(n)(I.Cons.create(e.value0))(z(n)(e.value1));throw new Error("Failed pattern match at Options.Applicative.Internal (line 215, column 3 - line 217, column 53): "+[e.constructor.name])})}},Z=new M.Functor(function(n){return function(e){return B(M.map(d.functorExceptT(y.functorStateT(w.functorReaderT(P.functorIdentity))))(n)(e))}}),K=new i.Apply(function(){return Z},function(n){return function(e){return B(i.apply(d.applyExceptT(y.monadStateT(w.monadReaderT(P.monadIdentity))))(n)(e))}}),$=new c.Bind(function(){return K},function(n){return function(e){return B(c.bind(d.bindExceptT(y.monadStateT(w.monadReaderT(P.monadIdentity))))(n)(function(n){return e(n)}))}}),Y=new u.Applicative(function(){return K},function(n){return B(u.pure(d.applicativeExceptT(y.monadStateT(w.monadReaderT(P.monadIdentity))))(n))}),X=new f.Monad(function(){return Y},function(){return $}),nn=new a.Alt(function(){return Z},function(n){return function(e){return B(a.alt(d.altExceptT(L.parseErrorSemigroup)(y.monadStateT(w.monadReaderT(P.monadIdentity))))(n)(e))}}),en=new C.Plus(function(){return nn},C.empty(d.plusExceptT(L.parseErrorMonoid)(y.monadStateT(w.monadReaderT(P.monadIdentity))))),tn=new o.Alternative(function(){return Y},function(){return en}),rn=new b.MonadZero(function(){return tn},function(){return X}),an=new D.MonadPlus(function(){return rn}),on=function(n){return n.errorP},un=new G(function(){return an},function(n){return function(e){return B(g.lift(d.monadTransExceptT)(y.monadStateT(w.monadReaderT(P.monadIdentity)))(h.modify_(y.monadStateStateT(w.monadReaderT(P.monadIdentity)))(S.cons(new L.Context(n,E.mkExists(e))))))}},(e=s.throwError(d.monadThrowExceptT(y.monadStateT(w.monadReaderT(P.monadIdentity)))),function(n){return B(e(n))}),B(g.lift(d.monadTransExceptT)(y.monadStateT(w.monadReaderT(P.monadIdentity)))(h.modify_(y.monadStateStateT(w.monadReaderT(P.monadIdentity)))(S.drop(1)))),function(n){return function(e){return function(e){var t=N.maybe(s.throwError(d.monadThrowExceptT(y.monadStateT(w.monadReaderT(P.monadIdentity))))(L.MissingError.create(n)(L.SomeParser.create(E.mkExists(e)))))(u.pure(d.applicativeExceptT(y.monadStateT(w.monadReaderT(P.monadIdentity)))));return function(n){return B(t(n))}}}},B(g.lift(d.monadTransExceptT)(y.monadStateT(w.monadReaderT(P.monadIdentity)))(g.lift(y.monadTransStateT)(w.monadReaderT(P.monadIdentity))(m.ask(w.monadAskReaderT(P.monadIdentity))))),function(n){return function(e){return on(un)(n)}}),cn=new f.Monad(function(){return pn},function(){return fn}),ln=new M.Functor(f.liftM1(cn)),fn=new c.Bind(function(){return sn},function(n){return function(e){if(n instanceof j)return e(n.value0);if(n instanceof H)return new H(n.value0,n.value1);if(n instanceof _)return new _(n.value0);throw new Error("Failed pattern match at Options.Applicative.Internal (line 143, column 14 - line 146, column 35): "+[n.constructor.name])}}),sn=new i.Apply(function(){return ln},f.ap(cn)),pn=new u.Applicative(function(){return sn},j.create),dn=new M.Functor(function(n){return function(e){return W(M.map(d.functorExceptT(w.functorReaderT(ln)))(n)(e))}}),vn=new a.Alt(function(){return dn},function(n){return function(e){return W(a.alt(d.altExceptT(L.parseErrorSemigroup)(w.monadReaderT(cn)))(n)(e))}}),mn=new i.Apply(function(){return dn},function(n){return function(e){return W(i.apply(d.applyExceptT(w.monadReaderT(cn)))(n)(e))}}),wn=new u.Applicative(function(){return mn},function(n){return W(u.pure(d.applicativeExceptT(w.monadReaderT(cn)))(n))}),hn=new c.Bind(function(){return mn},function(n){return function(e){return W(c.bind(d.bindExceptT(w.monadReaderT(cn)))(n)(function(n){return e(n)}))}}),yn=new f.Monad(function(){return wn},function(){return hn}),gn=new C.Plus(function(){return vn},C.empty(d.plusExceptT(L.parseErrorMonoid)(w.monadReaderT(cn)))),Dn=new o.Alternative(function(){return wn},function(){return gn}),bn=new b.MonadZero(function(){return Dn},function(){return yn}),Cn=new D.MonadPlus(function(){return bn}),Sn=new G(function(){return Cn},function(n){return function(n){return u.pure(wn)(R.unit)}},(t=s.throwError(d.monadThrowExceptT(w.monadReaderT(cn))),function(n){return W(t(n))}),u.pure(wn)(R.unit),function(n){return function(n){return function(e){return function(t){return W(g.lift(d.monadTransExceptT)(w.monadReaderT(cn))(g.lift(w.monadTransReaderT)(cn)(new H(L.SomeParser.create(E.mkExists(e)),n))))}}}},W(g.lift(d.monadTransExceptT)(w.monadReaderT(cn))(m.ask(w.monadAskReaderT(cn)))),function(n){var e=g.lift(d.monadTransExceptT)(w.monadReaderT(cn)),t=g.lift(w.monadTransReaderT)(cn);return function(n){return W(e(t(_.create(n))))}}),An=function(n){return function(e){return function(t){if(t instanceof k)return k.value;if(t instanceof O)return new O(n(t.value0),e(t.value1));throw new Error("Failed pattern match at Options.Applicative.Internal (line 201, column 1 - line 201, column 77): "+[n.constructor.name,e.constructor.name,t.constructor.name])}}},En=function(n){return new M.Functor(function(e){return function(t){return U(f.liftM1(n)(An(e)(M.map(En(n))(e)))(V(t)))}})},Fn=function(n){return new a.Alt(function(){return En(n)},function(e){return function(t){return U(c.bind(n.Bind1())(V(e))(function(e){if(e instanceof k)return V(t);if(e instanceof O)return u.pure(n.Applicative0())(new O(e.value0,a.alt(Fn(n))(e.value1)(t)));throw new Error("Failed pattern match at Options.Applicative.Internal (line 242, column 5 - line 244, column 49): "+[e.constructor.name])}))}})},Tn=function(n){return new C.Plus(function(){return Fn(n)},u.pure(n.Applicative0())(k.value))},Mn=new g.MonadTrans(function(n){var e=f.liftM1(n)(function(e){return new O(e,C.empty(Tn(n)))});return function(n){return U(e(n))}}),Pn=new g.MonadTrans(function(n){var e=g.lift(Mn)(y.monadStateT(n)),t=g.lift(y.monadTransStateT)(n);return function(n){return q(e(t(n)))}}),In=function(n){return new f.Monad(function(){return xn(n)},function(){return Nn(n)})},Nn=function(n){return new c.Bind(function(){return Jn(n)},function(e){return function(t){return U(c.bind(n.Bind1())(V(e))(function(e){if(e instanceof k)return u.pure(n.Applicative0())(k.value);if(e instanceof O)return V(a.alt(Fn(n))(t(e.value0))(c.bind(Nn(n))(e.value1)(t)));throw new Error("Failed pattern match at Options.Applicative.Internal (line 233, column 5 - line 235, column 53): "+[e.constructor.name])}))}})},Jn=function(n){return new i.Apply(function(){return En(n)},f.ap(In(n)))},xn=function(n){return new u.Applicative(function(){return Jn(n)},(e=function(n){return F.foldr(F.foldableArray)(function(e){return function(t){return u.pure(n.Applicative0())(new O(e,t))}})(C.empty(Tn(n)))}(n),t=u.pure(u.applicativeArray),function(n){return e(t(n))}));var e,t},Rn=function(n){return new b.MonadZero(function(){return function(n){return new o.Alternative(function(){return xn(n)},function(){return Tn(n)})}(n)},function(){return In(n)})},Ln=function(n){return new M.Functor(function(e){var t=M.map(En(y.monadStateT(n)))(e);return function(n){return q(t(Q(n)))}})},kn=function(n){return new a.Alt(function(){return Ln(n)},function(e){return function(t){return a.alt(Fn(y.monadStateT(n)))(e)(t)}})},On=function(n){return new i.Apply(function(){return Ln(n)},function(e){return function(t){return i.apply(Jn(y.monadStateT(n)))(e)(t)}})},Bn=function(n){return function(e){if(0===e)return T.const(C.empty(Tn(n)));var t=f.liftM1(n)(An(l.identity(l.categoryFn))(Bn(n)(e-1|0)));return function(n){return U(t(V(n)))}}};r.enterContext=function(n){return n.enterContext},r.exitContext=function(n){return n.exitContext},r.getPrefs=function(n){return n.getPrefs},r.missingArgP=function(n){return n.missingArgP},r.errorP=on,r.exitP=function(n){return n.exitP},r.hoistMaybe=function(n){return N.maybe(C.empty(n.MonadZero0().Alternative1().Plus1()))(u.pure(n.MonadZero0().Alternative1().Applicative0()))},r.runReadM=function(n){return function(e){return function(t){return function(n){return A.either(on(n))(u.pure(n.MonadPlus0().MonadZero0().Alternative1().Applicative0()))}(n)(p.runExcept(w.runReaderT(e)(t)))}}},r.withReadM=function(n){var e=w.mapReaderT(p.withExcept(function(e){return e instanceof L.ErrorMsg?new L.ErrorMsg(n(e.value0)):e})),t=J.un(L.readMNewtype)(L.ReadM);return function(n){return L.ReadM(e(t(n)))}},r.runP=function(n){return v.runReader(T.flip(y.runStateT)([])(d.runExceptT(n)))},r.runCompletion=function(n){return function(e){var t=w.runReaderT(d.runExceptT(n))(e);if(t instanceof j)return N.Nothing.value;if(t instanceof H)return N.Just.create(new A.Left(new x.Tuple(t.value0,t.value1)));if(t instanceof _)return N.Just.create(new A.Right(t.value0));throw new Error("Failed pattern match at Options.Applicative.Internal (line 185, column 38 - line 188, column 42): "+[t.constructor.name])}},r.contextNames=function(n){return S.reverse(M.map(M.functorArray)(function(n){return n.value0})(n))},r.cut=function(n){return q(g.lift(Mn)(y.monadStateT(n))(h.put(y.monadStateStateT(n))(!0)))},r.nondetTAltOp=function(n){return function(e){return function(t){return q(a.alt(Fn(y.monadStateT(n)))(Q(e))(c.bind(Nn(y.monadStateT(n)))(g.lift(Mn)(y.monadStateT(n))(h.get(y.monadStateStateT(n))))(function(e){return c.discard(c.discardUnit)(Nn(y.monadStateT(n)))(b.guard(Rn(y.monadStateT(n)))(!e))(function(){return Q(t)})})))}}},r.disamb=function(n){return function(e){return function(t){return c.bind(n.Bind1())((r=z(y.monadStateT(n))(Bn(y.monadStateT(n))(e?1:2)(Q(t))),y.evalStateT(n.Bind1().Apply0().Functor0())(r)(!1)))(function(e){return u.pure(n.Applicative0())(e instanceof I.Cons&&e.value1 instanceof I.Nil?new N.Just(e.value0):N.Nothing.value)});var r}}},r.pMonadP=un,r.completionMonadP=Sn,r.nondetTFunctor=Ln,r.nondetTApplicative=function(n){return new u.Applicative(function(){return On(n)},(e=u.pure(xn(y.monadStateT(n))),function(n){return q(e(n))}));var e},r.nondetTBind=function(n){return new c.Bind(function(){return On(n)},function(e){return function(t){return q(c.bind(Nn(y.monadStateT(n)))(e)(function(n){return Q(t(n))}))}})},r.nondetTAlt=kn,r.nondetTPlus=function(n){return new C.Plus(function(){return kn(n)},C.empty(Tn(y.monadStateT(n))))},r.nondetTMonadTrans=Pn}(n),function(n){"use strict";n["Options.Applicative.Internal.Utils"]=n["Options.Applicative.Internal.Utils"]||{};var e=n["Options.Applicative.Internal.Utils"],t=n["Control.Apply"],r=n["Data.Either"],a=n["Data.Eq"],o=n["Data.Foldable"],u=n["Data.Function"],i=n["Data.Maybe"],c=n["Data.Monoid"],l=n["Data.String.CodePoints"],f=n["Data.String.Common"],s=n["Data.String.Regex"],p=n["Data.String.Regex.Flags"],d=n["Partial.Unsafe"],v=function(){var n=s.regex("\\s+")(p.noFlags);if(n instanceof r.Left)return d.unsafeCrashWith("whitespaceRegex: `\\s+` seems to be invlaid, err: "+n.value0);if(n instanceof r.Right)return n.value0;throw new Error("Failed pattern match at Options.Applicative.Internal.Utils (line 39, column 19 - line 41, column 15): "+[n.constructor.name])}();e.unLines=function(n){return o.intercalate(n)(c.monoidString)("\n")},e.unWords=function(n){return o.intercalate(n)(c.monoidString)(" ")},e.lines=function(n){return""===n?[]:f.split("\n")(n)},e.words=function(n){return""===n?[]:s.split(v)(n)},e.startsWith=function(n){return function(e){return a.eq(i.eqMaybe(a.eqInt))(l.indexOf(n)(e))(new i.Just(0))}},e.apApplyFlipped=function(n){return t.lift2(n)(u.applyFlipped)}}(n),function(n){"use strict";n["Options.Applicative.Common"]=n["Options.Applicative.Common"]||{};var e,t=n["Options.Applicative.Common"],r=n["Control.Alt"],a=n["Control.Applicative"],o=n["Control.Apply"],u=n["Control.Bind"],i=n["Control.Monad.Free"],c=n["Control.Monad.State.Class"],l=n["Control.Monad.State.Trans"],f=n["Control.Monad.Trans.Class"],s=n["Control.MonadZero"],p=n["Control.Plus"],d=n["Data.Array"],v=n["Data.Boolean"],m=n["Data.Eq"],w=n["Data.Exists"],h=n["Data.Foldable"],y=n["Data.Function"],g=n["Data.Functor"],D=n["Data.HeytingAlgebra"],b=n["Data.List"],C=n["Data.List.Types"],S=n["Data.Maybe"],A=n["Data.Newtype"],E=n["Data.Ord"],F=n["Data.String.CodeUnits"],T=n["Data.Tuple"],M=n["Data.Unit"],P=n["Options.Applicative.Internal"],I=n["Options.Applicative.Internal.Utils"],N=n["Options.Applicative.Types"],J=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),x=function(n){if(n instanceof N.Leaf)return new N.Leaf(n.value0);if(n instanceof N.MultNode){return 1===(e=u.bind(u.bindArray)(n.value0)(function(n){return(e=x(n))instanceof N.MultNode?e.value0:[e];var e})).length?e[0]:new N.MultNode(e)}if(n instanceof N.AltNode){var e;return 0===(e=u.bind(u.bindArray)(n.value0)(function(n){return(e=x(n))instanceof N.AltNode?e.value0:e instanceof N.MultNode&&0===e.value0.length?[]:[e];var e})).length?new N.MultNode([]):1===e.length?e[0]:new N.AltNode(e)}throw new Error("Failed pattern match at Options.Applicative.Common (line 279, column 1 - line 279, column 45): "+[n.constructor.name])},R=function(n){if(n instanceof N.OptLong)return"--"+n.value0;if(n instanceof N.OptShort)return F.fromCharArray(["-",n.value0]);throw new Error("Failed pattern match at Options.Applicative.Common (line 42, column 1 - line 42, column 32): "+[n.constructor.name])},L=(e=b.fromFoldable(h.foldableArray),function(n){return function(n){if(n instanceof C.Cons&&"-"===n.value0&&n.value1 instanceof C.Cons&&"-"===n.value1.value0)return S.Just.create((t=function(){var e=b.span(function(n){return"="!==n})(n.value1.value1);if(e.rest instanceof C.Nil)return new T.Tuple(n.value1.value1,S.Nothing.value);if(e.rest instanceof C.Cons)return new T.Tuple(e.init,new S.Just(e.rest.value1));throw new Error("Failed pattern match at Options.Applicative.Common (line 106, column 23 - line 108, column 70): "+[e.constructor.name])}(),new J(new N.OptLong(F.fromCharArray(d.fromFoldable(C.foldableList)(t.value0))),g.map(S.functorMaybe)((e=d.fromFoldable(C.foldableList),function(n){return F.fromCharArray(e(n))}))(t.value1))));var e,t,r,a;if(n instanceof C.Cons&&"-"===n.value0){if(n.value1 instanceof C.Nil)return S.Nothing.value;if(n.value1 instanceof C.Cons)return S.Just.create((a=g.voidRight(S.functorMaybe)(n.value1.value1)(s.guard(S.monadZeroMaybe)(!b.null(n.value1.value1))),new J(new N.OptShort(n.value1.value0),g.map(S.functorMaybe)((r=d.fromFoldable(C.foldableList),function(n){return F.fromCharArray(r(n))}))(a))));throw new Error("Failed pattern match at Options.Applicative.Common (line 110, column 25 - line 114, column 79): "+[n.value1.constructor.name])}return S.Nothing.value}(e(F.toCharArray(n)))}),k=function(n){return function(e){return function(t){return P.errorP(n)(N.UnexpectedError.create(e)(N.SomeParser.create(w.mkExists(t))))}}},O=N.OptP.create,B=function(n){return function(e){return function(t){return function(r){var o=function(n){if(e)return h.any(h.foldableArray)(D.heytingAlgebraBoolean)((t=n,function(n){return t instanceof N.OptShort&&n instanceof N.OptShort?t.value0===n.value0:t instanceof N.OptLong&&n instanceof N.OptLong&&I.startsWith(t.value0)(n.value0)}));var t;if(v.otherwise)return h.elem(h.foldableArray)(N.optNameEq)(n);throw new Error("Failed pattern match at Options.Applicative.Common (line 92, column 5 - line 94, column 27): "+[n.constructor.name])};return t instanceof N.OptReader?u.discard(u.discardUnit)(S.bindMaybe)(s.guard(S.monadZeroMaybe)(o(r.value0)(t.value0)))(function(){return S.Just.create(u.bind(l.bindStateT(n.MonadPlus0().MonadZero0().Monad0()))(c.get(l.monadStateStateT(n.MonadPlus0().MonadZero0().Monad0())))(function(e){var o=P.missingArgP(n)(t.value2(R(r.value0)))(A.un(N.newtypeCReader)(N.CReader)(t.value1).crCompleter);return u.bind(l.bindStateT(n.MonadPlus0().MonadZero0().Monad0()))(function(){var t=S.maybe(e)(function(n){return new C.Cons(n,e)})(r.value1);if(t instanceof C.Nil)return f.lift(l.monadTransStateT)(n.MonadPlus0().MonadZero0().Monad0())(o);if(t instanceof C.Cons)return a.pure(l.applicativeStateT(n.MonadPlus0().MonadZero0().Monad0()))(new T.Tuple(t.value0,t.value1));throw new Error("Failed pattern match at Options.Applicative.Common (line 67, column 27 - line 69, column 56): "+[t.constructor.name])}())(function(e){return u.discard(u.discardUnit)(l.bindStateT(n.MonadPlus0().MonadZero0().Monad0()))(c.put(l.monadStateStateT(n.MonadPlus0().MonadZero0().Monad0()))(e.value1))(function(){return f.lift(l.monadTransStateT)(n.MonadPlus0().MonadZero0().Monad0())(P.runReadM(n)(P.withReadM((a=r.value0,function(n){return"option "+R(a)+": "+n}))(A.un(N.newtypeCReader)(N.CReader)(t.value1).crReader))(e.value0));var a})})}))}):t instanceof N.FlagReader?u.discard(u.discardUnit)(S.bindMaybe)(s.guard(S.monadZeroMaybe)(o(r.value0)(t.value0)))(function(){return u.discard(u.discardUnit)(S.bindMaybe)(s.guard(S.monadZeroMaybe)(function(n){if(n instanceof N.OptShort)return!0;if(n instanceof N.OptLong)return!1;throw new Error("Failed pattern match at Options.Applicative.Common (line 89, column 5 - line 89, column 33): "+[n.constructor.name])}(r.value0)||S.isNothing(r.value1)))(function(){return S.Just.create(u.bind(l.bindStateT(n.MonadPlus0().MonadZero0().Monad0()))(c.get(l.monadStateStateT(n.MonadPlus0().MonadZero0().Monad0())))(function(e){var o,i=g.map(S.functorMaybe)(function(n){return e=F.toCharArray(n),d.cons("-")(e);var e})(r.value1);return u.discard(u.discardUnit)(l.bindStateT(n.MonadPlus0().MonadZero0().Monad0()))(c.put(l.monadStateStateT(n.MonadPlus0().MonadZero0().Monad0()))(S.maybe(e)((o=y.flip(C.Cons.create)(e),function(n){return o(F.fromCharArray(n))}))(i)))(function(){return a.pure(l.applicativeStateT(n.MonadPlus0().MonadZero0().Monad0()))(t.value1)})}))})}):S.Nothing.value}}}},U=function(n){return n instanceof N.ArgReader},q=function(n){if(n instanceof N.NilP)return n.value0;if(n instanceof N.OptP)return S.Nothing.value;if(n instanceof N.MultP)return w.runExists(function(n){return o.apply(S.applyMaybe)(q(n.value0))(q(n.value1))})(n.value0);if(n instanceof N.AltP)return r.alt(S.altMaybe)(q(n.value0))(q(n.value1));if(n instanceof N.BindP)return i["resume'"](function(n){return function(e){return u.bind(S.bindMaybe)(q(n))(function(n){return q(N.BindP.create(e(n)))})}})(S.Just.create)(n.value0);throw new Error("Failed pattern match at Options.Applicative.Common (line 219, column 1 - line 219, column 44): "+[n.constructor.name])},H=function(n){return function(e){return function(t){if(t instanceof N.NilP)return p.empty(P.nondetTPlus(n));if(t instanceof N.OptP)return e(t.value0);if(t instanceof N.MultP)return w.runExists(function(t){var r=g.mapFlipped(P.nondetTFunctor(n))(H(n)(e)(t.value1))(function(n){return o.apply(N.parserApply)(t.value0)(n)}),a=g.mapFlipped(P.nondetTFunctor(n))(H(n)(e)(t.value0))(function(n){return o.apply(N.parserApply)(n)(t.value1)});return P.nondetTAltOp(n)(a)(r)})(t.value0);if(t instanceof N.AltP)return h.oneOf(h.foldableArray)(P.nondetTPlus(n))([H(n)(e)(t.value0),H(n)(e)(t.value1)]);if(t instanceof N.BindP)return i["resume'"](function(t){return function(r){return h.oneOf(h.foldableArray)(P.nondetTPlus(n))([g.mapFlipped(P.nondetTFunctor(n))(H(n)(e)(t))(function(n){return N.BindP.create(u.bind(i.freeBind)(i.liftF(n))(r))}),function(){var a=q(t);if(a instanceof S.Nothing)return p.empty(P.nondetTPlus(n));if(a instanceof S.Just)return H(n)(e)(N.BindP.create(r(a.value0)));throw new Error("Failed pattern match at Options.Applicative.Common (line 134, column 7 - line 136, column 49): "+[a.constructor.name])}()])}})(y.const(p.empty(P.nondetTPlus(n))))(t.value0);throw new Error("Failed pattern match at Options.Applicative.Common (line 117, column 1 - line 119, column 49): "+[e.constructor.name,t.constructor.name])}}},_=function(n){return function(e){return function(t){return H(l.monadStateT(n.MonadPlus0().MonadZero0().Monad0()))(function(r){var o=A.un(N.parserPrefsNewtype)(N.ParserPrefs)(e).prefDisambiguate&&E.greaterThan(N.optVisibilityOrd)(N.optVisibility(r))(N.Internal.value),u=B(n)(o)(A.un(N.optionNewtype)(N.Option)(r).optMain)(t);if(u instanceof S.Just)return f.lift(P.nondetTMonadTrans)(l.monadStateT(n.MonadPlus0().MonadZero0().Monad0()))(g.map(l.functorStateT(n.MonadPlus0().MonadZero0().Alternative1().Plus1().Alt0().Functor0()))(a.pure(N.parserApplicative))(u.value0));if(u instanceof S.Nothing)return p.empty(P.nondetTPlus(l.monadStateT(n.MonadPlus0().MonadZero0().Monad0())));throw new Error("Failed pattern match at Options.Applicative.Common (line 143, column 3 - line 145, column 21): "+[u.constructor.name])})}}},j=function(n){return function(e){return function(t){return H(l.monadStateT(n.MonadPlus0().MonadZero0().Monad0()))(function(r){return u.discard(u.discardUnit)(P.nondetTBind(l.monadStateT(n.MonadPlus0().MonadZero0().Monad0())))(a.when(P.nondetTApplicative(l.monadStateT(n.MonadPlus0().MonadZero0().Monad0())))(U(A.un(N.optionNewtype)(N.Option)(r).optMain))(P.cut(l.monadStateT(n.MonadPlus0().MonadZero0().Monad0()))))(function(){var i=A.un(N.optionNewtype)(N.Option)(r).optMain;if(i instanceof N.CmdReader){var s=new T.Tuple(i.value2(t),A.un(N.parserPrefsNewtype)(N.ParserPrefs)(e).prefBacktrack);if(s.value0 instanceof S.Just&&s.value1 instanceof N.NoBacktrack)return f.lift(P.nondetTMonadTrans)(l.monadStateT(n.MonadPlus0().MonadZero0().Monad0()))(u.bind(l.bindStateT(n.MonadPlus0().MonadZero0().Monad0()))(o.applyFirst(l.applyStateT(n.MonadPlus0().MonadZero0().Monad0()))(c.get(l.monadStateStateT(n.MonadPlus0().MonadZero0().Monad0())))(c.put(l.monadStateStateT(n.MonadPlus0().MonadZero0().Monad0()))(C.Nil.value)))(function(e){return g.map(l.functorStateT(n.MonadPlus0().MonadZero0().Alternative1().Plus1().Alt0().Functor0()))(a.pure(N.parserApplicative))(f.lift(l.monadTransStateT)(n.MonadPlus0().MonadZero0().Monad0())(o.applyFirst(n.MonadPlus0().MonadZero0().Alternative1().Applicative0().Apply0())(o.applySecond(n.MonadPlus0().MonadZero0().Alternative1().Applicative0().Apply0())(P.enterContext(n)(t)(s.value0.value0))(W(n)(s.value0.value0)(e)))(P.exitContext(n))))}));if(s.value0 instanceof S.Just&&s.value1 instanceof N.Backtrack)return g.map(P.nondetTFunctor(l.monadStateT(n.MonadPlus0().MonadZero0().Monad0())))(a.pure(N.parserApplicative))(f.lift(P.nondetTMonadTrans)(l.monadStateT(n.MonadPlus0().MonadZero0().Monad0()))(l.StateT(function(e){return o.applyFirst(n.MonadPlus0().MonadZero0().Alternative1().Applicative0().Apply0())(o.applySecond(n.MonadPlus0().MonadZero0().Alternative1().Applicative0().Apply0())(P.enterContext(n)(t)(s.value0.value0))(V(n)(A.un(N.parserInfoNewtype)(N.ParserInfo)(s.value0.value0).infoPolicy)(N.CmdStart.value)(A.un(N.parserInfoNewtype)(N.ParserInfo)(s.value0.value0).infoParser)(e)))(P.exitContext(n))})));if(s.value0 instanceof S.Just&&s.value1 instanceof N.SubparserInline)return f.lift(P.nondetTMonadTrans)(l.monadStateT(n.MonadPlus0().MonadZero0().Monad0()))(u.discard(u.discardUnit)(l.bindStateT(n.MonadPlus0().MonadZero0().Monad0()))(f.lift(l.monadTransStateT)(n.MonadPlus0().MonadZero0().Monad0())(P.enterContext(n)(t)(s.value0.value0)))(function(){return a.pure(l.applicativeStateT(n.MonadPlus0().MonadZero0().Monad0()))(A.un(N.parserInfoNewtype)(N.ParserInfo)(s.value0.value0).infoParser)}));if(s.value0 instanceof S.Nothing)return p.empty(P.nondetTPlus(l.monadStateT(n.MonadPlus0().MonadZero0().Monad0())));throw new Error("Failed pattern match at Options.Applicative.Common (line 153, column 7 - line 165, column 38): "+[s.constructor.name])}return i instanceof N.ArgReader?g.map(P.nondetTFunctor(l.monadStateT(n.MonadPlus0().MonadZero0().Monad0())))(a.pure(N.parserApplicative))(f.lift(P.nondetTMonadTrans)(l.monadStateT(n.MonadPlus0().MonadZero0().Monad0()))(f.lift(l.monadTransStateT)(n.MonadPlus0().MonadZero0().Monad0())(P.runReadM(n)(A.un(N.newtypeCReader)(N.CReader)(i.value0).crReader)(t)))):p.empty(P.nondetTPlus(l.monadStateT(n.MonadPlus0().MonadZero0().Monad0())))})})}}},W=function(n){return function(e){return G(n)(A.un(N.parserInfoNewtype)(N.ParserInfo)(e).infoPolicy)(A.un(N.parserInfoNewtype)(N.ParserInfo)(e).infoParser)}},G=function(n){return function(e){return function(t){return function(r){return u.bind(n.MonadPlus0().MonadZero0().Monad0().Bind1())(V(n)(e)(N.CmdStart.value)(t)(r))(function(e){if(e.value1 instanceof C.Nil)return a.pure(n.MonadPlus0().MonadZero0().Alternative1().Applicative0())(e.value0);if(e.value1 instanceof C.Cons)return k(n)(e.value1.value0)(a.pure(N.parserApplicative)(M.unit));throw new Error("Failed pattern match at Options.Applicative.Common (line 213, column 3 - line 215, column 52): "+[e.value1.constructor.name])})}}}},V=function(n){return function(e){return function(t){return function(i){return function(c){var f=o.apply(S.applyMaybe)(g.map(S.functorMaybe)(T.Tuple.create)(q(i)))(a.pure(S.applicativeMaybe)(c)),s=function(t){return function(a){return function(o){return u=P.disamb(l.monadStateT(n.MonadPlus0().MonadZero0().Monad0()))(!A.un(N.parserPrefsNewtype)(N.ParserPrefs)(t).prefDisambiguate)(function(n){return function(e){return function(t){return function(a){return function(o){if(t instanceof N.AllPositionals)return j(n)(e)(a)(o);if(t instanceof N.ForwardOptions){if((u=L(a))instanceof S.Just)return r.alt(P.nondetTAlt(l.monadStateT(n.MonadPlus0().MonadZero0().Monad0())))(_(n)(e)(u.value0)(o))(j(n)(e)(a)(o));if(u instanceof S.Nothing)return j(n)(e)(a)(o);throw new Error("Failed pattern match at Options.Applicative.Common (line 173, column 42 - line 175, column 36): "+[u.constructor.name])}var u;if((u=L(a))instanceof S.Just)return _(n)(e)(u.value0)(o);if(u instanceof S.Nothing)return j(n)(e)(a)(o);throw new Error("Failed pattern match at Options.Applicative.Common (line 176, column 29 - line 178, column 36): "+[u.constructor.name])}}}}}(n)(t)(e)(a)(i)),l.runStateT(u)(o);var u}}};if(c instanceof C.Nil)return P.exitP(n)(t)(e)(i)(f);if(c instanceof C.Cons&&"--"===c.value0&&m.notEq(N.argPolicyEq)(e)(N.AllPositionals.value))return V(n)(N.AllPositionals.value)(N.CmdCont.value)(i)(c.value1);if(c instanceof C.Cons)return u.bind(n.MonadPlus0().MonadZero0().Monad0().Bind1())(P.getPrefs(n))(function(t){return u.bind(n.MonadPlus0().MonadZero0().Monad0().Bind1())(s(t)(c.value0)(c.value1))(function(t){if(t.value0 instanceof S.Nothing)return r.alt(n.MonadPlus0().MonadZero0().Alternative1().Plus1().Alt0())(P.hoistMaybe(n.MonadPlus0())(f))(k(n)(c.value0)(i));if(t.value0 instanceof S.Just)return V(n)((a=c.value0,e instanceof N.NoIntersperse?S.isJust(L(a))?N.NoIntersperse.value:N.AllPositionals.value:e))(N.CmdCont.value)(t.value0.value0)(t.value1);var a;throw new Error("Failed pattern match at Options.Applicative.Common (line 191, column 5 - line 193, column 60): "+[t.value0.constructor.name])})});throw new Error("Failed pattern match at Options.Applicative.Common (line 185, column 38 - line 193, column 60): "+[c.constructor.name])}}}}},Q=function(n){var e=function(n){return S.isJust(q(n))},t=function(n){if(n instanceof N.NilP)return!1;if(n instanceof N.OptP)return U(A.un(N.optionNewtype)(N.Option)(n.value0).optMain);if(n instanceof N.MultP)return w.runExists(function(n){return t(n.value0)||t(n.value1)})(n.value0);if(n instanceof N.AltP)return t(n.value0)||t(n.value1);if(n instanceof N.BindP)return i["resume'"](function(n){return function(e){return t(n)}})(y.const(!1))(n.value0);throw new Error("Failed pattern match at Options.Applicative.Common (line 271, column 5 - line 271, column 44): "+[n.constructor.name])},r=function(n){return function(a){return function(o){return function(u){return function(c){if(c instanceof N.NilP)return new N.MultNode([]);if(c instanceof N.OptP){if(E.greaterThan(N.optVisibilityOrd)(N.optVisibility(c.value0))(N.Internal.value))return new N.Leaf(u({hinfoMulti:n,hinfoDefault:a,hinfoUnreachableArgs:o})(c.value0));if(v.otherwise)return new N.MultNode([])}if(c instanceof N.MultP)return w.runExists(function(e){var i=o||t(e.value0);return new N.MultNode([r(n)(a)(o)(u)(e.value0),r(n)(a)(i)(u)(e.value1)])})(c.value0);if(c instanceof N.AltP){var l=a||e(c.value0)||e(c.value1);return new N.AltNode([r(n)(l)(o)(u)(c.value0),r(n)(l)(o)(u)(c.value1)])}if(c instanceof N.BindP)return i["resume'"](function(n){return function(e){var t=r(!0)(a)(o)(u)(n),i=q(n);if(i instanceof S.Nothing)return t;if(i instanceof S.Just)return new N.MultNode([t,r(!0)(a)(o)(u)(N.BindP.create(e(i.value0)))]);throw new Error("Failed pattern match at Options.Applicative.Common (line 266, column 12 - line 268, column 68): "+[i.constructor.name])}})(y.const(new N.MultNode([])))(c.value0);throw new Error("Failed pattern match at Options.Applicative.Common (line 247, column 5 - line 250, column 21): "+[n.constructor.name,a.constructor.name,o.constructor.name,u.constructor.name,c.constructor.name])}}}}},a=r(!1)(!1)(!1)(n);return function(n){return x(a(n))}};t.liftOpt=O,t.showOption=R,t.runParserInfo=W,t.mapParser=function(n){var e=function(n){if(n instanceof N.Leaf)return[n.value0];if(n instanceof N.MultNode)return u.bind(u.bindArray)(n.value0)(e);if(n instanceof N.AltNode)return u.bind(u.bindArray)(n.value0)(e);throw new Error("Failed pattern match at Options.Applicative.Common (line 234, column 5 - line 234, column 27): "+[n.constructor.name])},t=Q(n);return function(n){return e(t(n))}},t.treeMapParser=Q,t.optionNames=function(n){return n instanceof N.OptReader?n.value0:n instanceof N.FlagReader?n.value0:[]}}(n),function(n){"use strict";n["Text.PrettyPrint.Leijen"]=n["Text.PrettyPrint.Leijen"]||{};var e,t,r,a,o,u=n["Text.PrettyPrint.Leijen"],i=n["Data.Array"],c=n["Data.Boolean"],l=n["Data.Foldable"],f=n["Data.Functor"],s=n["Data.Int"],p=n["Data.Lazy"],d=n["Data.Maybe"],v=n["Data.Monoid"],m=n["Data.Ord"],w=n["Data.Semigroup"],h=n["Data.String.CodePoints"],y=n["Data.String.CodeUnits"],g=n["Data.String.Common"],D=n["Partial.Unsafe"],b=function(){function n(){}return n.value=new n,n}(),C=function(){function n(){}return n.value=new n,n}(),S=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),A=function(){function n(n,e,t){this.value0=n,this.value1=e,this.value2=t}return n.create=function(e){return function(t){return function(r){return new n(e,t,r)}}},n}(),E=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),F=function(){function n(){}return n.value=new n,n}(),T=function(){function n(){}return n.value=new n,n}(),M=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),P=function(){function n(n,e,t){this.value0=n,this.value1=e,this.value2=t}return n.create=function(e){return function(t){return function(r){return new n(e,t,r)}}},n}(),I=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),N=function(){function n(){}return n.value=new n,n}(),J=function(){function n(){}return n.value=new n,n}(),x=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),R=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),L=function(){function n(){}return n.value=new n,n}(),k=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),O=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),B=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),U=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),q=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),H=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),_=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),j=function(){function n(){}return n.value=new n,n}(),W=function(){function n(n,e,t){this.value0=n,this.value1=e,this.value2=t}return n.create=function(e){return function(t){return function(r){return new n(e,t,r)}}},n}(),G=function(n){return""===n?J.value:new R(h.length(n),n)},V=function(n){if(n<=0)return"";if(c.otherwise)return y.fromCharArray(i.replicate(n)(" "));throw new Error("Failed pattern match at Text.PrettyPrint.Leijen (line 908, column 1 - line 908, column 24): "+[n.constructor.name])},Q=new x(" "),z=new x(")"),Z=new x("]"),K=function(n){return function(e){return new B(n,e)}},$=new x("("),Y=new k(L.value,Q),X=new x("["),nn=function(n){if(n instanceof F)return b.value;if(n instanceof T)return C.value;if(n instanceof M)return new S(n.value0,nn(p.force(n.value1)));if(n instanceof P)return new A(n.value0,n.value1,nn(p.force(n.value2)));if(n instanceof I)return new E(n.value0,nn(p.force(n.value1)));throw new Error("Failed pattern match at Text.PrettyPrint.Leijen (line 600, column 18 - line 605, column 51): "+[n.constructor.name])},en=function(n){return function(e){return function(t){return function(t){if(t instanceof d.Nothing)return v.mempty(n);if(t instanceof d.Just)return l.foldr(l.foldableArray)(e)(t.value0.last)(t.value0.init);throw new Error("Failed pattern match at Text.PrettyPrint.Leijen (line 122, column 29 - line 124, column 43): "+[t.constructor.name])}(i.unsnoc(t))}}},tn=function(n){return n instanceof k?n.value1:n instanceof O?new O(tn(n.value0),tn(n.value1)):n instanceof B?new B(n.value0,tn(n.value1)):n instanceof L?N.value:n instanceof U?tn(n.value0):n instanceof q?new q(function(e){return tn(n.value0(e))}):n instanceof H?new H(function(e){return tn(n.value0(e))}):n instanceof _?new _(function(e){return tn(n.value0(e))}):n},rn=new U(tn(e=Y),e),an=(t=function(n){return function(e){return function(t){return function(r){var a,o=n,u=e,i=t,c=!1;function l(n,e,t,a){if(t<0)return c=!0,!1;if(a instanceof F)return c=!0,!1;if(a instanceof T)return c=!0,!0;if(a instanceof M)return o=n,u=e,i=t-1|0,void(r=p.force(a.value1));if(a instanceof P)return o=n,u=e,i=t-a.value0|0,void(r=p.force(a.value2));if(a instanceof I)return c=!0,!0;throw new Error("Failed pattern match at Text.PrettyPrint.Leijen (line 819, column 1 - line 819, column 55): "+[n.constructor.name,e.constructor.name,t.constructor.name,a.constructor.name])}for(;!c;)a=l(o,u,i,r);return a}}}},function(n){return function(e){return function(r){var a=m.max(m.ordInt)(0)(m.min(m.ordInt)(e)(s.round(s.toNumber(e)*n))),o=function(n){return function(r){return function(u){if(u instanceof j)return T.value;if(u instanceof W){if(u.value1 instanceof N)return F.value;if(u.value1 instanceof J)return o(n)(r)(u.value2);if(u.value1 instanceof x){var i=r+1|0;return new M(u.value1.value0,p.defer(function(e){return o(n)(i)(u.value2)}))}if(u.value1 instanceof R)return i=r+u.value1.value0|0,new P(u.value1.value0,u.value1.value1,p.defer(function(e){return o(n)(i)(u.value2)}));if(u.value1 instanceof L)return new I(u.value0,p.defer(function(n){return o(u.value0)(u.value0)(u.value2)}));if(u.value1 instanceof k)return o(n)(r)(new W(u.value0,u.value1.value0,u.value2));if(u.value1 instanceof O)return o(n)(r)(new W(u.value0,u.value1.value0,new W(u.value0,u.value1.value1,u.value2)));if(u.value1 instanceof B){var c=u.value0+u.value1.value0|0;return o(n)(r)(new W(c,u.value1.value1,u.value2))}if(u.value1 instanceof U)return function(n){return function(r){return function(u){return function(i){return function(c){return function(l){var f=o(n)(r)(new W(u,c,i)),s=m.min(m.ordInt)(e-r|0)((a-r|0)+n|0);return t(e)(m.min(m.ordInt)(n)(r))(s)(f)?f:o(n)(r)(new W(u,l,i))}}}}}}(n)(r)(u.value0)(u.value2)(u.value1.value0)(u.value1.value1);if(u.value1 instanceof q)return o(n)(r)(new W(u.value0,u.value1.value0(r),u.value2));if(u.value1 instanceof H)return o(n)(r)(new W(u.value0,u.value1.value0(new d.Just(e)),u.value2));if(u.value1 instanceof _)return o(n)(r)(new W(u.value0,u.value1.value0(u.value0),u.value2));throw new Error("Failed pattern match at Text.PrettyPrint.Leijen (line 788, column 11 - line 802, column 56): "+[u.value1.constructor.name])}throw new Error("Failed pattern match at Text.PrettyPrint.Leijen (line 785, column 7 - line 785, column 50): "+[n.constructor.name,r.constructor.name,u.constructor.name])}}};return nn(o(0)(0)(new W(0,r,j.value)))}}}),on=J.value,un=new k(L.value,on),cn=function(n){if(n instanceof b)return D.unsafeCrashWith("@SFail@ can not appear uncaught in a rendered @SimpleDoc@");if(n instanceof C)return"";if(n instanceof S)return y.fromCharArray([n.value0])+cn(n.value1);if(n instanceof A)return n.value1+cn(n.value2);if(n instanceof E)return"\n"+(e=n.value0,V(e)+cn(n.value1));var e;throw new Error("Failed pattern match at Text.PrettyPrint.Leijen (line 893, column 1 - line 893, column 32): "+[n.constructor.name])},ln=function(n){return new q(n)},fn=new w.Semigroup(function(n){return function(e){return new O(n,e)}}),sn=new v.Monoid(function(){return fn},on),pn=(r=l.intercalate(l.foldableArray)(sn)(Y),a=f.map(f.functorArray)(G),o=g.split("\n"),function(n){return r(a(o(n)))}),dn=function(n){return function(e){return function(t){return w.append(fn)(n)(w.append(fn)(t)(e))}}},vn=dn(X)(Z),mn=dn($)(z),wn=function(n){return function(e){return w.append(fn)(n)(w.append(fn)(Q)(e))}},hn=en(sn)(wn),yn=en(sn)(function(n){return function(e){return w.append(fn)(n)(w.append(fn)(un)(e))}}),gn=function(n){return ln(function(e){return new _(function(t){return K(e-t|0)(n)})})};u.hsep=hn,u.vcat=yn,u.appendWithSpace=wn,u.appendWithSoftline=function(n){return function(e){return w.append(fn)(n)(w.append(fn)(rn)(e))}},u.appendWithLine=function(n){return function(e){return w.append(fn)(n)(w.append(fn)(Y)(e))}},u.parens=mn,u.brackets=vn,u.string=pn,u.fillBreak=function(n){return function(e){return(t=e,function(n){return ln(function(e){return w.append(fn)(t)(ln(function(t){return n(t-e|0)}))})})(function(e){return e>n?K(n)(un):G(V(n-e|0))});var t}},u.indent=function(n){return function(e){return function(n){return function(e){return gn(K(n)(e))}}(n)(w.append(fn)(G(V(n)))(e))}},u.align=gn,u.char=function(n){return"\n"===n?Y:new x(n)},u.text=G,u.renderPretty=an,u.displayS=cn,u.docSemigroup=fn,u.docMonoid=sn}(n),function(n){"use strict";n["Options.Applicative.Help.Chunk"]=n["Options.Applicative.Help.Chunk"]||{};var e,t,r,a,o=n["Options.Applicative.Help.Chunk"],u=n["Control.Applicative"],i=n["Data.Foldable"],c=n["Data.Functor"],l=n["Data.Maybe"],f=n["Data.Monoid"],s=n["Data.Newtype"],p=n["Data.Semigroup"],d=n["Options.Applicative.Internal.Utils"],v=n["Text.PrettyPrint.Leijen"],m=function(n){return n},w=function(n){return function(e){return function(t){if(e instanceof l.Nothing)return t;if(t instanceof l.Nothing)return e;if(e instanceof l.Just&&t instanceof l.Just)return new l.Just(n(e.value0)(t.value0));throw new Error("Failed pattern match at Options.Applicative.Help.Chunk (line 59, column 1 - line 60, column 41): "+[n.constructor.name,e.constructor.name,t.constructor.name])}}},h=function(n){return new p.Semigroup(w(p.append(n)))},y=new s.Newtype(function(n){return n},m),g=(e=s.un(y)(m),function(n){return l.isNothing(e(n))}),D=function(n){return new f.Monoid(function(){return h(n)},l.Nothing.value)},b=i.foldr(i.foldableArray)(w(v.appendWithLine))(f.mempty(D(v.docSemigroup))),C=i.foldr(i.foldableArray)(w(function(n){return function(e){return v.appendWithLine(n)(v.appendWithLine(f.mempty(v.docMonoid))(e))}}))(f.mempty(D(v.docSemigroup))),S=l.functorMaybe,A=w(v.appendWithSoftline),E=w(v.appendWithSpace),F=l.applyMaybe,T=l.applicativeMaybe,M=function(n){return""===n?f.mempty(D(v.docSemigroup)):u.pure(T)(v.text(n))},P=(r=i.foldr(i.foldableArray)((t=w(v.appendWithSoftline),function(n){return t(M(n))}))(f.mempty(D(v.docSemigroup))),function(n){return r(d.words(n))}),I=(a=24,function(n){return 0===n.length?f.mempty(D(v.docSemigroup)):u.pure(T)(v.vcat(c.mapFlipped(c.functorArray)(n)(function(n){return v.indent(2)(v.appendWithSpace(v.fillBreak(a)(n.value0))(n.value1))})))});o.Chunk=m,o.chunked=w,o.listToChunk=function(n){return function(e){return 0===e.length?f.mempty(D(n.Semigroup0())):u.pure(T)(i.fold(i.foldableArray)(n)(e))}},o.chunkBeside=E,o.chunkBesideOrBelow=A,o.vcatChunks=b,o.vsepChunks=C,o.isEmpty=g,o.stringChunk=M,o.paragraph=P,o.extractChunk=function(n){var e=l.fromMaybe(f.mempty(n)),t=s.un(y)(m);return function(n){return e(t(n))}},o.tabulate=I,o.chunkNewtype=y,o.chunkFunctor=S,o.chunkApply=F,o.chunkApplicative=T,o.chunkSemigroup=h,o.chunkMonoid=D}(n),function(n){"use strict";n["Options.Applicative.Builder.Internal"]=n["Options.Applicative.Builder.Internal"]||{};var e=n["Options.Applicative.Builder.Internal"],t=n["Control.Alt"],r=n["Control.Applicative"],a=n["Control.Apply"],o=n["Control.Category"],u=n["Control.Plus"],i=n["Data.Eq"],c=n["Data.Foldable"],l=n["Data.Functor"],f=n["Data.Maybe"],s=n["Data.Monoid"],p=n["Data.Newtype"],d=n["Data.Semigroup"],v=n["Data.Tuple"],m=n["Data.Unit"],w=n["Options.Applicative.Common"],h=n["Options.Applicative.Help.Chunk"],y=n["Options.Applicative.Types"],g=n["Text.PrettyPrint.Leijen"],D=function(n){return n},b=function(n){return n},C=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),S=function(){function n(n,e,t){this.value0=n,this.value1=e,this.value2=t}return n.create=function(e){return function(t){return function(r){return new n(e,t,r)}}},n}(),A=function(n){return n},E=function(n){this.name=n},F=function(n){this.hasMetavarDummy=n},T=new function(n){this.hasValueDummy=n}(function(n){return m.unit}),M=new F(function(n){return m.unit}),P=new p.Newtype(function(n){return n},D),I=new E(function(n){return p.over(P)(P)(D)(function(e){return{optNames:d.append(d.semigroupArray)([n])(e.optNames),optCompleter:e.optCompleter,optNoArgError:e.optNoArgError}})}),N=new p.Newtype(function(n){return n},b),J=new p.Newtype(function(n){return n},A),x=new E(function(n){return p.over(N)(N)(b)(function(e){return{flagNames:d.append(d.semigroupArray)([n])(e.flagNames),flagActive:e.flagActive}})}),R=new d.Semigroup(function(n){return function(e){return new C(t.alt(f.altMaybe)(n.value0)(e.value0),t.alt(f.altMaybe)(n.value1)(e.value1))}}),L=new d.Semigroup(function(n){return function(e){return new S(function(t){return e.value0(n.value0(t))},d.append(R)(e.value1)(n.value1),function(t){return e.value2(n.value2(t))})}}),k=new s.Monoid(function(){return R},new C(f.Nothing.value,f.Nothing.value)),O=new s.Monoid(function(){return L},new S(o.identity(o.categoryFn),s.mempty(k),o.identity(o.categoryFn))),B=S.create(o.identity(o.categoryFn))(s.mempty(k)),U=B(p.over(y.optPropertiesNewtype)(y.optPropertiesNewtype)(y.OptProperties)(function(n){return{propVisibility:y.Internal.value,propDescMod:n.propDescMod,propHelp:n.propHelp,propMetaVar:n.propMetaVar,propShowDefault:n.propShowDefault}})),q=new F(function(n){return m.unit}),H={propMetaVar:"",propVisibility:y.Visible.value,propHelp:s.mempty(h.chunkMonoid(g.docSemigroup)),propShowDefault:f.Nothing.value,propDescMod:f.Nothing.value};e.Mod=S,e.name=function(n){return n.name},e.OptionFields=D,e.CommandFields=A,e.DefaultProp=C,e.optionMod=B,e.fieldMod=function(n){return new S(n,s.mempty(k),o.identity(o.categoryFn))},e.mkCommand=function(n){var e=n.value0({cmdCommands:[],cmdGroup:f.Nothing.value});return new v.Tuple(e.cmdGroup,new v.Tuple(l.map(l.functorArray)(v.fst)(e.cmdCommands),new v.Tuple(function(n){return v.lookup(c.foldableArray)(i.eqString)(n)(e.cmdCommands)},m.unit)))},e.mkParser=function(n){return function(e){return function(o){var i,c=(i=n,function(n){return function(e){return{optMain:e,optProps:(t=i,function(n){return p.over(y.optPropertiesNewtype)(y.optPropertiesNewtype)(y.OptProperties)(function(n){return{propShowDefault:a.apply(f.applyMaybe)(t.value1)(t.value0),propDescMod:n.propDescMod,propHelp:n.propHelp,propMetaVar:n.propMetaVar,propVisibility:n.propVisibility}})(n(H))})(n)};var t}})(e)(o);return t.alt(y.parserAlt)(w.liftOpt(c))(f.maybe(u.empty(y.parserPlus))(r.pure(y.parserApplicative))(n.value0))}}},e.internal=U,e.newtypeOptionFields=P,e.newtypeCommandFields=J,e.optionFieldsHasName=I,e.flagFieldsHasName=x,e.optionFieldsHasValue=T,e.optionFieldsHasMetavar=M,e.commandFieldsHasMetavar=q,e.modMonoid=O,e.modSemigroup=L}(n),function(n){"use strict";n["Options.Applicative.Builder"]=n["Options.Applicative.Builder"]||{};var e,t,r,a,o,u=n["Options.Applicative.Builder"],i=n["Control.Alt"],c=n["Control.Applicative"],l=n["Control.Bind"],f=n["Control.Category"],s=n["Data.Either"],p=n["Data.Foldable"],d=n["Data.Function"],v=n["Data.Int"],m=n["Data.Maybe"],w=n["Data.Monoid"],h=n["Data.Newtype"],y=n["Data.Ord"],g=n["Data.Semigroup"],D=n["Data.Show"],b=n["Data.Tuple"],C=n.ExitCodes,S=n["Options.Applicative.Builder.Internal"],A=n["Options.Applicative.Help.Chunk"],E=n["Options.Applicative.Types"],F=n["Text.PrettyPrint.Leijen"],T=function(n){return n},M=function(n){return n},P=function(n){return function(n){return new S.Mod(f.identity(f.categoryFn),new S.DefaultProp(new m.Just(n),m.Nothing.value),f.identity(f.categoryFn))}},I=E.readerAsk,N=new h.Newtype(function(n){return n},T),J=new g.Semigroup(function(n){return function(e){return T((t=h.un(N)(T)(e),r=h.un(N)(T)(n),function(n){return t(r(n))}));var t,r}}),x=new w.Monoid(function(){return J},f.identity(f.categoryFn)),R=new h.Newtype(function(n){return n},M),L=function(n){return function(n){return S.optionMod(h.over(E.optPropertiesNewtype)(E.optPropertiesNewtype)(E.OptProperties)(function(e){return{propMetaVar:n,propDescMod:e.propDescMod,propHelp:e.propHelp,propShowDefault:e.propShowDefault,propVisibility:e.propVisibility}}))}},k=function(n){return function(e){var t=g.append(S.modSemigroup)(L(S.optionFieldsHasMetavar)("ARG"))(e),r=t.value0({optNames:[],optCompleter:w.mempty(E.completerMonoid),optNoArgError:E.ExpectsArgError.create}),a={crCompleter:r.optCompleter,crReader:n},o=new E.OptReader(r.optNames,a,r.optNoArgError);return S.mkParser(t.value1)(t.value2)(o)}},O=k(I),B=new g.Semigroup(function(n){return function(e){return M((t=h.un(R)(M)(e),r=h.un(R)(M)(n),function(n){return t(r(n))}));var t,r}}),U=S.optionMod(h.over(E.optPropertiesNewtype)(E.optPropertiesNewtype)(E.OptProperties)(function(n){return{propVisibility:y.min(E.optVisibilityOrd)(E.Hidden.value)(n.propVisibility),propDescMod:n.propDescMod,propHelp:n.propHelp,propMetaVar:n.propMetaVar,propShowDefault:n.propShowDefault}})),q=M(h.over(E.parserInfoNewtype)(E.parserInfoNewtype)(E.ParserInfo)(function(n){return{infoFullDesc:!0,infoFailureCode:n.infoFailureCode,infoFooter:n.infoFooter,infoHeader:n.infoHeader,infoParser:n.infoParser,infoPolicy:n.infoPolicy,infoProgDesc:n.infoProgDesc}})),H=function(n){return function(e){var t,r=(t=e.value0({flagNames:[],flagActive:n}),new E.FlagReader(t.flagNames,t.flagActive));return S.mkParser(e.value1)(e.value2)(r)}},_=(e=function(n){var e=v.fromString(n);if(e instanceof m.Nothing)return s.Left.create("Can't parse as Int: `"+D.show(D.showString)(n)+"`");if(e instanceof m.Just)return new s.Right(e.value0);throw new Error("Failed pattern match at Options.Applicative.Builder (line 124, column 28 - line 126, column 20): "+[e.constructor.name])},l.bind(E.readMBind)(E.readerAsk)((t=s.either(E.readerError)(c.pure(E.readMApplicative)),function(n){return t(e(n))}))),j=(o=x,r=w.mempty(o),a={prefMultiSuffix:"",prefDisambiguate:!1,prefShowHelpOnError:!1,prefShowHelpOnEmpty:!1,prefBacktrack:E.Backtrack.value,prefColumns:80},h.un(N)(T)(r)(a));u.subparser=function(n){var e=g.append(S.modSemigroup)(L(S.commandFieldsHasMetavar)("COMMAND"))(n),t=S.mkCommand(n),r=new E.CmdReader(t.value0,t.value1.value0,t.value1.value1.value0);return S.mkParser(e.value1)(e.value2)(r)},u.flag=function(n){return function(e){return function(t){return i.alt(E.parserAlt)(H(e)(t))(c.pure(E.parserApplicative)(n))}}},u["flag'"]=H,u.abortOption=function(n){return function(e){return k(E.readerAbort(n))((t=p.fold(p.foldableArray)(S.modMonoid)([(r=n,S.fieldMod(h.over(S.newtypeOptionFields)(S.newtypeOptionFields)(S.OptionFields)(function(n){return{optNoArgError:d.const(r),optCompleter:n.optCompleter,optNames:n.optNames}}))),P(S.optionFieldsHasValue)(f.identity(f.categoryFn)),L(S.optionFieldsHasMetavar)("")]),g.append(S.modSemigroup)(t)(e)));var t,r}},u.strOption=O,u.option=k,u.short=function(n){var e=S.name(n);return function(n){return S.fieldMod(e(E.OptShort.create(n)))}},u.long=function(n){var e=S.name(n);return function(n){return S.fieldMod(e(E.OptLong.create(n)))}},u.help=function(n){return S.optionMod(h.over(E.optPropertiesNewtype)(E.optPropertiesNewtype)(E.OptProperties)(function(e){return{propHelp:A.paragraph(n),propDescMod:e.propDescMod,propMetaVar:e.propMetaVar,propShowDefault:e.propShowDefault,propVisibility:e.propVisibility}}))},u.value=P,u.metavar=L,u.hidden=U,u.command=function(n){return function(e){return S.fieldMod(h.over(S.newtypeCommandFields)(S.newtypeCommandFields)(S.CommandFields)(function(t){return{cmdCommands:g.append(g.semigroupArray)([new b.Tuple(n,e)])(t.cmdCommands),cmdGroup:t.cmdGroup}}))}},u.int=_,u.fullDesc=q,u.progDesc=function(n){return M(h.over(E.parserInfoNewtype)(E.parserInfoNewtype)(E.ParserInfo)(function(e){return{infoProgDesc:A.paragraph(n),infoFailureCode:e.infoFailureCode,infoFooter:e.infoFooter,infoFullDesc:e.infoFullDesc,infoHeader:e.infoHeader,infoParser:e.infoParser,infoPolicy:e.infoPolicy}}))},u.info=function(n){return function(e){var t={infoParser:n,infoFullDesc:!0,infoProgDesc:w.mempty(A.chunkMonoid(F.docSemigroup)),infoHeader:w.mempty(A.chunkMonoid(F.docSemigroup)),infoFooter:w.mempty(A.chunkMonoid(F.docSemigroup)),infoFailureCode:C.Error.value,infoPolicy:E.Intersperse.value};return h.un(R)(M)(e)(t)}},u.defaultPrefs=j,u.infoModSemigroup=B}(n),function(e){"use strict";(n["Node.Stream"]=n["Node.Stream"]||{}).writeStringImpl=function(n){return function(e){return function(t){return function(r){return function(){return n.write(t,e,r)}}}}}}(),function(n){"use strict";n["Node.Stream"]=n["Node.Stream"]||{};var e=n["Node.Stream"],t=n["Node.Stream"],r=n["Data.Show"],a=n["Node.Encoding"];e.writeString=function(n){return function(e){return t.writeStringImpl(n)(r.show(a.showEncoding)(e))}}}(n),function(n){"use strict";n["Options.Applicative.BashCompletion"]=n["Options.Applicative.BashCompletion"]||{};var e=n["Options.Applicative.BashCompletion"],t=n["Control.Alt"],r=n["Control.Applicative"],a=n["Control.Apply"],o=n["Control.Bind"],u=n["Control.Category"],i=n["Data.Array"],c=n["Data.Array.NonEmpty"],l=n["Data.Boolean"],f=n["Data.Either"],s=n["Data.Eq"],p=n["Data.Exists"],d=n["Data.Foldable"],v=n["Data.Function"],m=n["Data.Functor"],w=n["Data.List"],h=n["Data.List.Types"],y=n["Data.Maybe"],g=n["Data.Monoid"],D=n["Data.Newtype"],b=n["Data.Semigroup"],C=n["Data.Traversable"],S=n.Effect,A=n["Options.Applicative.Builder"],E=n["Options.Applicative.Builder.Internal"],F=n["Options.Applicative.Common"],T=n["Options.Applicative.Help.Chunk"],M=n["Options.Applicative.Internal"],P=n["Options.Applicative.Internal.Utils"],I=n["Options.Applicative.Types"],N=n["Text.PrettyPrint.Leijen"],J=function(){function n(){}return n.value=new n,n}(),x=function(){function n(n,e){this.value0=n,this.value1=e}return n.create=function(e){return function(t){return new n(e,t)}},n}(),R=function(n){return function(e){return r.pure(S.applicativeEffect)(["#compdef "+e,"","local request","local completions","local word","local index=$((CURRENT - 1))","","request=(--bash-completion-enriched --bash-completion-index $index)","for arg in ${words[@]}; do","  request=(${request[@]} --bash-completion-word $arg)","done","","IFS=$'\\n' completions=($( "+n+' "${request[@]}" ))',"","for word in $completions; do","  local -a parts","","  # Split the line at a tab if there is one.","  IFS=$'\\t' parts=($( echo $word ))","","  if [[ -n $parts[2] ]]; then",'     if [[ $word[1] == "-" ]]; then','       local desc=("$parts[1] ($parts[2])")',"       compadd -d desc -- $parts[1]","     else",'       local desc=($(print -f  "%-019s -- %s" $parts[1] $parts[2]))',"       compadd -l -d desc -- $parts[1]","     fi","  else","    compadd -f -- $word","  fi","done"])}},L=function(n){return function(e){return r.pure(S.applicativeEffect)([" function _"+e,"    set -l cl (commandline --tokenize --current-process)","    # Hack around fish issue #3934","    set -l cn (commandline --tokenize --cut-at-cursor --current-process)","    set -l cn (count $cn)","    set -l tmpline --bash-completion-enriched --bash-completion-index $cn","    for arg in $cl","      set tmpline $tmpline --bash-completion-word $arg","    end","    for opt in ("+n+" $tmpline)","      if test -d $opt",'        echo -E "$opt/"',"      else",'        echo -E "$opt"',"      end","    end","end","","complete --no-files --command "+e+" --arguments '(_"+e+")'"])}},k=function(n){return function(e){return r.pure(S.applicativeEffect)(["_"+e+"()","{","    local CMDLINE","    local IFS=$'\\n'","    CMDLINE=(--bash-completion-index $COMP_CWORD)","","    for arg in ${COMP_WORDS[@]}; do","        CMDLINE=(${CMDLINE[@]} --bash-completion-word $arg)","    done","","    COMPREPLY=( $("+n+' "${CMDLINE[@]}") )',"}","","complete -o filenames -F _"+e+" "+e])}},O=function(n){return function(e){return function(t){return function(a){return function(h){return function(b){var A,E,R=(A=h,function(n){return 0===A?{init:[],rest:n}:{init:i.slice(0)(A)(n),rest:i.slice(A)(i.length(n))(n)}})(a),L=function(n){return D.un(I.newtypeCompleter)(I.Completer)(n)(y.fromMaybe("")(i.head(R.rest)))},k=function(n){return function(e){var t=m.map(y.functorMaybe)(c.uncons)(c.fromArray(P.lines(N.displayS(N.renderPretty(1)(n)(e)))));if(t instanceof y.Nothing)return"";if(t instanceof y.Just&&0===t.value0.tail.length)return t.value0.head;if(t instanceof y.Just)return t.value0.head+"...";throw new Error("Failed pattern match at Options.Applicative.BashCompletion (line 162, column 27 - line 165, column 43): "+[t.constructor.name])}},O=function(){var n=i.head(R.rest);if(n instanceof y.Just)return P.startsWith(n.value0);if(n instanceof y.Nothing)return v.const(!0);throw new Error("Failed pattern match at Options.Applicative.BashCompletion (line 175, column 7 - line 177, column 30): "+[n.constructor.name])}(),B=i.filter(O),U=(E=m.map(m.functorArray)(F.showOption),function(n){return B(E(n))}),q=F.runParserInfo(M.completionMonadP)(n)(w.fromFoldable(d.foldableArray)(i.drop(1)(R.init))),H=function(n){return function(e){if(t instanceof J)return u.identity(u.categoryFn);if(t instanceof x)return m.map(n)(function(n){var r=D.un(T.chunkNewtype)(T.Chunk)(I.optHelp(e));return y.maybe(n)(function(e){return n+"\t"+k(t.value0)(e)})(r)});throw new Error("Failed pattern match at Options.Applicative.BashCompletion (line 138, column 24 - line 143, column 79): "+[t.constructor.name])}},_=function(n){return function(e){return function(a){var i,c=D.un(I.optionNewtype)(I.Option)(a).optMain;if(c instanceof I.OptReader){if(s.notEq(I.argPolicyEq)(n)(I.AllPositionals.value))return r.pure(S.applicativeEffect)(H(m.functorArray)(a)(U(c.value0)));if(l.otherwise)return r.pure(S.applicativeEffect)([])}if(c instanceof I.FlagReader){if(s.notEq(I.argPolicyEq)(n)(I.AllPositionals.value))return r.pure(S.applicativeEffect)(H(m.functorArray)(a)(U(c.value0)));if(l.otherwise)return r.pure(S.applicativeEffect)([])}if(c instanceof I.ArgReader){if(D.un(I.newtypeOptHelpInfo)(I.OptHelpInfo)(e).hinfoUnreachableArgs)return r.pure(S.applicativeEffect)([]);if(l.otherwise)return L(D.un(I.newtypeCReader)(I.CReader)(c.value0).crCompleter)}if(c instanceof I.CmdReader){if(D.un(I.newtypeOptHelpInfo)(I.OptHelpInfo)(e).hinfoUnreachableArgs)return r.pure(S.applicativeEffect)([]);if(l.otherwise)return r.pure(S.applicativeEffect)((i=m.functorArray,function(n){if(t instanceof J)return u.identity(u.categoryFn);if(t instanceof x)return m.map(i)(function(e){var r,a,u=o.bind(y.bindMaybe)(n(e))((r=D.un(T.chunkNewtype)(T.Chunk),a=D.un(I.parserInfoNewtype)(I.ParserInfo),function(n){return r(a(n).infoProgDesc)}));return y.maybe(e)(function(n){return e+"\t"+k(t.value1)(n)})(u)});throw new Error("Failed pattern match at Options.Applicative.BashCompletion (line 148, column 22 - line 153, column 85): "+[t.constructor.name])})(c.value2)(B(c.value1)))}throw new Error("Failed pattern match at Options.Applicative.BashCompletion (line 113, column 43 - line 133, column 53): "+[c.constructor.name])}}},j=M.runCompletion(q)(e);if(j instanceof y.Just&&j.value0 instanceof f.Left)return p.runExists(function(n){return(e=j.value0.value0.value1,t=m.map(S.functorEffect)(d.fold(d.foldableArray)(g.monoidArray)),r=C.sequence(C.traversableArray)(S.applicativeEffect),a=F.mapParser(_(e)),function(n){return t(r(a(n)))})(n);var e,t,r,a})(j.value0.value0.value0.value0);if(j instanceof y.Just&&j.value0 instanceof f.Right)return L(j.value0.value0);if(j instanceof y.Nothing)return r.pure(S.applicativeEffect)([]);throw new Error("Failed pattern match at Options.Applicative.BashCompletion (line 83, column 52 - line 89, column 15): "+[j.constructor.name])}}}}}};e.bashCompletionParser=function(n){return function(e){var o=function(n){return{execCompletion:function(e){return m.map(S.functorEffect)(P.unLines(d.foldableArray))(n(e))}}};return d.oneOf(d.foldableArray)(I.parserPlus)([m.map(I.parserFunctor)(o)(a.apply(I.parserApply)(a.apply(I.parserApply)(m.map(I.parserFunctor)(O(n)(e))(t.alt(I.parserAlt)(a.apply(I.parserApply)(a.apply(I.parserApply)(A["flag'"](x.create)(b.append(E.modSemigroup)(A.long(E.flagFieldsHasName)("bash-completion-enriched"))(E.internal)))(A.option(A.int)(b.append(E.modSemigroup)(b.append(E.modSemigroup)(A.long(E.optionFieldsHasName)("bash-completion-option-desc-length"))(E.internal))(A.value(E.optionFieldsHasValue)(40)))))(A.option(A.int)(b.append(E.modSemigroup)(b.append(E.modSemigroup)(A.long(E.optionFieldsHasName)("bash-completion-command-desc-length"))(E.internal))(A.value(E.optionFieldsHasValue)(40)))))(r.pure(I.parserApplicative)(J.value))))(m.map(I.parserFunctor)(i.fromFoldable(h.foldableList))(I.many(A.strOption(b.append(E.modSemigroup)(A.long(E.optionFieldsHasName)("bash-completion-word"))(E.internal))))))(A.option(A.int)(b.append(E.modSemigroup)(A.long(E.optionFieldsHasName)("bash-completion-index"))(E.internal)))),m.map(I.parserFunctor)(o)(m.map(I.parserFunctor)(k)(A.strOption(b.append(E.modSemigroup)(A.long(E.optionFieldsHasName)("bash-completion-script"))(E.internal)))),m.map(I.parserFunctor)(o)(m.map(I.parserFunctor)(L)(A.strOption(b.append(E.modSemigroup)(A.long(E.optionFieldsHasName)("fish-completion-script"))(E.internal)))),m.map(I.parserFunctor)(o)(m.map(I.parserFunctor)(R)(A.strOption(b.append(E.modSemigroup)(A.long(E.optionFieldsHasName)("zsh-completion-script"))(E.internal))))])}}}(n),function(n){"use strict";n["Options.Applicative.Help.Types"]=n["Options.Applicative.Help.Types"]||{};var e=n["Options.Applicative.Help.Types"],t=n["Data.Monoid"],r=n["Data.Newtype"],a=n["Data.Symbol"],o=n["Options.Applicative.Help.Chunk"],u=n["Text.PrettyPrint.Leijen"],i=function(n){return n},c=t.monoidRecord()(t.monoidRecordCons(new a.IsSymbol(function(){return"helpBody"}))(o.chunkMonoid(u.docSemigroup))()(t.monoidRecordCons(new a.IsSymbol(function(){return"helpError"}))(o.chunkMonoid(u.docSemigroup))()(t.monoidRecordCons(new a.IsSymbol(function(){return"helpFooter"}))(o.chunkMonoid(u.docSemigroup))()(t.monoidRecordCons(new a.IsSymbol(function(){return"helpHeader"}))(o.chunkMonoid(u.docSemigroup))()(t.monoidRecordCons(new a.IsSymbol(function(){return"helpSuggestions"}))(o.chunkMonoid(u.docSemigroup))()(t.monoidRecordCons(new a.IsSymbol(function(){return"helpUsage"}))(o.chunkMonoid(u.docSemigroup))()(t.monoidRecordNil))))))),l=new r.Newtype(function(n){return n},i);e.ParserHelp=i,e.renderHelp=function(n){var e=u.renderPretty(1)(n);return function(n){return u.displayS(e((t=n,o.extractChunk(u.docMonoid)(o.vsepChunks([t.helpError,t.helpSuggestions,t.helpHeader,t.helpUsage,t.helpBody,t.helpFooter])))));var t}},e.newtypeParserHelp=l,e.parserHelpMonoid=c}(n),function(n){"use strict";n["Options.Applicative.Help.Core"]=n["Options.Applicative.Help.Core"]||{};var e=n["Options.Applicative.Help.Core"],t=n["Control.Applicative"],r=n["Control.Bind"],a=n["Control.Category"],o=n["Control.MonadZero"],u=n["Data.Array"],i=n["Data.Array.NonEmpty"],c=n["Data.Boolean"],l=n["Data.Eq"],f=n["Data.Foldable"],s=n["Data.Function"],p=n["Data.Functor"],d=n["Data.HeytingAlgebra"],v=n["Data.Maybe"],m=n["Data.Monoid"],w=n["Data.Newtype"],h=n["Data.Semigroup"],y=n["Data.Tuple"],g=n["Options.Applicative.Common"],D=n["Options.Applicative.Help.Chunk"],b=n["Options.Applicative.Help.Types"],C=n["Options.Applicative.Types"],S=n["Text.PrettyPrint.Leijen"],A=function(n){return n},E=new w.Newtype(function(n){return n},A),F=function(n){return function(e){return function(t){return function(r){var o,i,s,d=function(){if(w.un(C.newtypeOptHelpInfo)(C.OptHelpInfo)(t).hinfoMulti)return D.stringChunk(w.un(C.parserPrefsNewtype)(C.ParserPrefs)(n).prefMultiSuffix);if(c.otherwise)return m.mempty(D.chunkMonoid(S.docSemigroup));throw new Error("Failed pattern match at Options.Applicative.Help.Core (line 58, column 7 - line 62, column 17): "+[])}(),y=function(){if(w.un(C.newtypeOptHelpInfo)(C.OptHelpInfo)(t).hinfoDefault&&!w.un(E)(A)(e).descOptional)return!1;if(l.eq(C.optVisibilityEq)(C.optVisibility(r))(C.Hidden.value))return w.un(E)(A)(e).descHidden;if(c.otherwise)return l.eq(C.optVisibilityEq)(C.optVisibility(r))(C.Visible.value);throw new Error("Failed pattern match at Options.Applicative.Help.Core (line 51, column 7 - line 57, column 39): "+[])}(),b=g.optionNames(w.un(C.optionNewtype)(C.Option)(r).optMain),F=D.stringChunk(C.optMetaVar(r)),T=p.map(p.functorArray)(function(n){return S.string(g.showOption(n))})(u.sort(C.optNameOrd)(b)),M=D.chunkBeside(D.listToChunk(S.docMonoid)((o=w.un(E)(A)(e).descSep,i=f.fold(f.foldableArray)(m.monoidArray),s=u.mapWithIndex(function(n){return function(e){return 0===n?[e]:[o,e]}}),function(n){return i(s(n))})(T)))(F);return v.maybe(a.identity(a.categoryFn))(p.map(D.chunkFunctor))(C.optDescMod(r))(function(n){if(!y)return m.mempty(D.chunkMonoid(S.docSemigroup));if(D.isEmpty(n)||!w.un(E)(A)(e).descSurround)return h.append(D.chunkSemigroup(S.docSemigroup))(n)(d);if(w.un(C.newtypeOptHelpInfo)(C.OptHelpInfo)(t).hinfoDefault)return h.append(D.chunkSemigroup(S.docSemigroup))(p.map(D.chunkFunctor)(S.brackets)(n))(d);if(u.null(u.drop(1)(T)))return h.append(D.chunkSemigroup(S.docSemigroup))(n)(d);if(c.otherwise)return h.append(D.chunkSemigroup(S.docSemigroup))(p.map(D.chunkFunctor)(S.parens)(n))(d);throw new Error("Failed pattern match at Options.Applicative.Help.Core (line 63, column 7 - line 73, column 43): "+[n.constructor.name])}(M))}}}},T=function(n){var e={descSep:S.string(","),descHidden:!0,descOptional:!0,descSurround:!1},a=g.mapParser(function(a){return function(u){var i=F(n)(e)(a)(u),c=D.Chunk(p.map(v.functorMaybe)(function(n){return S.parens(S.appendWithSpace(S.string("default:"))(S.string(n)))})(C.optShowDefault(u))),l=C.optHelp(u);return r.discard(r.discardUnit)(v.bindMaybe)(o.guard(v.monadZeroMaybe)(!D.isEmpty(i)))(function(){return r.discard(r.discardUnit)(v.bindMaybe)(o.guard(v.monadZeroMaybe)(!D.isEmpty(l)))(function(){return t.pure(v.applicativeMaybe)(new y.Tuple(D.extractChunk(S.docMonoid)(i),S.align(D.extractChunk(S.docMonoid)(D.chunkBeside(l)(c)))))})})}});return function(n){return D.tabulate(u.catMaybes(a(n)))}},M=function(n){if(n instanceof C.Leaf)return n.value0;if(n instanceof C.MultNode)return f.foldr(f.foldableArray)(function(n){return D.chunkBesideOrBelow(M(n))})(m.mempty(D.chunkMonoid(S.docSemigroup)))(n.value0);if(n instanceof C.AltNode){return 1===(e=u.filter((t=d.not(d.heytingAlgebraBoolean),function(n){return t(D.isEmpty(n))}))(p.map(p.functorArray)(M)(n.value0))).length?e[0]:p.map(D.chunkFunctor)(S.parens)(f.foldr(f.foldableArray)(D.chunked(function(n){return function(e){return S.appendWithSoftline(n)(S.appendWithSoftline(S.char("|"))(e))}}))(m.mempty(D.chunkMonoid(S.docSemigroup)))(e))}var e,t;throw new Error("Failed pattern match at Options.Applicative.Help.Core (line 116, column 1 - line 116, column 46): "+[n.constructor.name])},P=g.mapParser(function(n){return function(n){var e=w.un(C.optionNewtype)(C.Option)(n).optMain;return e instanceof C.CmdReader?y.Tuple.create(e.value0)(D.tabulate(r.bind(r.bindArray)(u.reverse(e.value1))(function(n){return r.bind(r.bindArray)(v.maybe([])(t.pure(t.applicativeArray))(p.map(v.functorMaybe)((a=w.un(C.parserInfoNewtype)(C.ParserInfo),function(n){return a(n).infoProgDesc}))(e.value2(n))))(function(e){return t.pure(t.applicativeArray)(new y.Tuple(S.string(n),S.align(D.extractChunk(S.docMonoid)(e))))});var a}))):m.mempty(y.monoidTuple(v.monoidMaybe(h.semigroupString))(D.chunkMonoid(S.docSemigroup)))}}),I=function(n){return function(e){var t={descSep:S.string("|"),descHidden:!1,descOptional:n,descSurround:!0},r=g.treeMapParser(F(e)(t));return function(n){return M(r(n))}}},N=I(!1),J=I(!0);e.missingDesc=N,e.errorHelp=function(n){return w.over(b.newtypeParserHelp)(b.newtypeParserHelp)(b.ParserHelp)(function(e){return{helpError:n,helpBody:e.helpBody,helpFooter:e.helpFooter,helpHeader:e.helpHeader,helpSuggestions:e.helpSuggestions,helpUsage:e.helpUsage}})(m.mempty(b.parserHelpMonoid))},e.headerHelp=function(n){return w.over(b.newtypeParserHelp)(b.newtypeParserHelp)(b.ParserHelp)(function(e){return{helpHeader:n,helpBody:e.helpBody,helpError:e.helpError,helpFooter:e.helpFooter,helpSuggestions:e.helpSuggestions,helpUsage:e.helpUsage}})(m.mempty(b.parserHelpMonoid))},e.suggestionsHelp=function(n){return w.over(b.newtypeParserHelp)(b.newtypeParserHelp)(b.ParserHelp)(function(e){return{helpSuggestions:n,helpBody:e.helpBody,helpError:e.helpError,helpFooter:e.helpFooter,helpHeader:e.helpHeader,helpUsage:e.helpUsage}})(m.mempty(b.parserHelpMonoid))},e.usageHelp=function(n){return w.over(b.newtypeParserHelp)(b.newtypeParserHelp)(b.ParserHelp)(function(e){return{helpUsage:n,helpBody:e.helpBody,helpError:e.helpError,helpFooter:e.helpFooter,helpHeader:e.helpHeader,helpSuggestions:e.helpSuggestions}})(m.mempty(b.parserHelpMonoid))},e.footerHelp=function(n){return w.over(b.newtypeParserHelp)(b.newtypeParserHelp)(b.ParserHelp)(function(e){return{helpFooter:n,helpBody:e.helpBody,helpError:e.helpError,helpHeader:e.helpHeader,helpSuggestions:e.helpSuggestions,helpUsage:e.helpUsage}})(m.mempty(b.parserHelpMonoid))},e.parserHelp=function(n){return function(e){var t,r=function(n){return p.map(D.chunkFunctor)(function(e){return S.appendWithLine(S.string(n))(e)})},a=u.groupBy(s.on(l.eq(v.eqMaybe(l.eqString)))(y.fst))(P(e));return t=D.vsepChunks(h.append(h.semigroupArray)([r("Available options:")(T(n)(e))])(p.map(p.functorArray)(function(n){var e=i.uncons(n);return r(v.fromMaybe("Available commands:")(y.fst(e.head)))(D.vcatChunks(h.append(h.semigroupArray)([y.snd(e.head)])(p.map(p.functorArray)(y.snd)(e.tail))))})(a))),w.over(b.newtypeParserHelp)(b.newtypeParserHelp)(b.ParserHelp)(function(n){return{helpBody:t,helpError:n.helpError,helpFooter:n.helpFooter,helpHeader:n.helpHeader,helpSuggestions:n.helpSuggestions,helpUsage:n.helpUsage}})(m.mempty(b.parserHelpMonoid))}},e.parserUsage=function(n){return function(e){return function(t){return S.hsep([S.string("Usage:"),S.string(t),S.align(D.extractChunk(S.docMonoid)(J(n)(e)))])}}}}(n),function(n){"use strict";n["Options.Applicative.Help.Levenshtein"]=n["Options.Applicative.Help.Levenshtein"]||{};var e=n["Options.Applicative.Help.Levenshtein"],t=n["Data.Array"],r=n["Data.Eq"],a=n["Data.Foldable"],o=n["Data.Function.Memoize"],u=n["Data.NonEmpty"],i=n["Data.Ord"],c=n["Data.Semigroup.Foldable"];e.editDistance=function(n){return function(e){return function(l){var f=o.memoize2(o.tabulateNat)(o.tabulateNat)(function(n){return function(e){return s(n)(e)}}),s=function(t){return function(o){return 0===t?o:0===o?t:c.minimum(i.ordInt)(u.foldable1NonEmpty(a.foldableArray))(new u.NonEmpty(f(t-1|0)(o)+1|0,[f(t)(o-1|0)+1|0,r.eq(n)(e[t-1|0])(l[o-1|0])?f(t-1|0)(o-1|0):1+f(t-1|0)(o-1|0)|0]))}};return f(t.length(e))(t.length(l))}}}}(n),function(n){"use strict";n["Options.Applicative.Extra"]=n["Options.Applicative.Extra"]||{};var e,t=n["Options.Applicative.Extra"],r=n["Control.Alt"],a=n["Control.Applicative"],o=n["Control.Apply"],u=n["Control.Bind"],i=n["Data.Array"],c=n["Data.Boolean"],l=n["Data.Either"],f=n["Data.Enum"],s=n["Data.Eq"],p=n["Data.Exists"],d=n["Data.Foldable"],v=n["Data.Function"],m=n["Data.Functor"],w=n["Data.List"],h=n["Data.Maybe"],y=n["Data.Monoid"],g=n["Data.Newtype"],D=n["Data.Semigroup"],b=n["Data.String.CodeUnits"],C=n["Data.String.Common"],S=n["Data.Tuple"],A=n["Data.Unit"],E=n.Effect,F=n.ExitCodes,T=n["Node.Encoding"],M=n["Node.Process"],P=n["Node.Stream"],I=n["Options.Applicative.BashCompletion"],N=n["Options.Applicative.Builder"],J=n["Options.Applicative.Builder.Internal"],x=n["Options.Applicative.Common"],R=n["Options.Applicative.Help.Chunk"],L=n["Options.Applicative.Help.Core"],k=n["Options.Applicative.Help.Levenshtein"],O=n["Options.Applicative.Help.Types"],B=n["Options.Applicative.Internal"],U=n["Options.Applicative.Internal.Utils"],q=n["Options.Applicative.Types"],H=n["Text.PrettyPrint.Leijen"],_=function(n){return function(e){return function(t){return function(r){var u=function(e){return function(r){return function(o){return t instanceof q.InfoMsg?y.mempty(O.parserHelpMonoid):L.usageHelp(R.vcatChunks([a.pure(R.chunkApplicative)(L.parserUsage(n)(o.infoParser)(U.unWords(d.foldableArray)(D.append(D.semigroupArray)([e])(r)))),m.map(R.chunkFunctor)(H.indent(2))(o.infoProgDesc)]))}}},l=L.suggestionsHelp(function(){if(t instanceof q.UnexpectedError){var n=function(n){return function(e){if(e.optMain instanceof q.OptReader)return m.map(m.functorArray)(x.showOption)(e.optMain.value0);if(e.optMain instanceof q.FlagReader)return m.map(m.functorArray)(x.showOption)(e.optMain.value0);if(e.optMain instanceof q.ArgReader)return[];if(e.optMain instanceof q.CmdReader){if(n.hinfoUnreachableArgs)return[];if(c.otherwise)return e.optMain.value1}throw new Error("Failed pattern match at Options.Applicative.Extra (line 278, column 64 - line 285, column 37): "+[e.optMain.constructor.name])}},e=d.fold(d.foldableArray)(y.monoidArray)(p.runExists(function(e){return x.mapParser(n)(e)})(t.value1.value0)),r=i.filter(function(n){return v.on(k.editDistance(s.eqChar))(b.toCharArray)(n)(t.value0)<3})(e),a=i.length(r)<2?R.stringChunk("Did you mean this?"):R.stringChunk("Did you mean one of these?");return o.apply(R.chunkApply)(m.map(R.chunkFunctor)(H.appendWithLine)(a))(m.map(R.chunkFunctor)(H.indent(4))(R.vcatChunks(m.map(m.functorArray)(R.stringChunk)(r))))}return y.mempty(R.chunkMonoid(H.docSemigroup))}()),f=t instanceof q.ShowHelpText||!!(t instanceof q.MissingError&&t.value0 instanceof q.CmdStart&&g.un(q.parserPrefsNewtype)(q.ParserPrefs)(n).prefShowHelpOnEmpty)||g.un(q.parserPrefsNewtype)(q.ParserPrefs)(n).prefShowHelpOnError,w=function(){if(t instanceof q.ErrorMsg)return g.un(q.parserInfoNewtype)(q.ParserInfo)(e).infoFailureCode;if(t instanceof q.UnknownError)return g.un(q.parserInfoNewtype)(q.ParserInfo)(e).infoFailureCode;if(t instanceof q.MissingError)return g.un(q.parserInfoNewtype)(q.ParserInfo)(e).infoFailureCode;if(t instanceof q.ExpectsArgError)return g.un(q.parserInfoNewtype)(q.ParserInfo)(e).infoFailureCode;if(t instanceof q.UnexpectedError)return g.un(q.parserInfoNewtype)(q.ParserInfo)(e).infoFailureCode;if(t instanceof q.ShowHelpText)return F.Success.value;if(t instanceof q.InfoMsg)return F.Success.value;throw new Error("Failed pattern match at Options.Applicative.Extra (line 171, column 17 - line 178, column 44): "+[t.constructor.name])}(),C=L.errorHelp(function(){if(t instanceof q.ShowHelpText)return y.mempty(R.chunkMonoid(H.docSemigroup));if(t instanceof q.ErrorMsg)return R.stringChunk(t.value0);if(t instanceof q.InfoMsg)return R.stringChunk(t.value0);if(t instanceof q.MissingError&&t.value0 instanceof q.CmdStart&&g.un(q.parserPrefsNewtype)(q.ParserPrefs)(n).prefShowHelpOnEmpty)return y.mempty(R.chunkMonoid(H.docSemigroup));if(t instanceof q.MissingError)return p.runExists(function(e){return R.chunkBeside(R.stringChunk("Missing:"))(L.missingDesc(n)(e))})(t.value1.value0);if(t instanceof q.ExpectsArgError)return R.stringChunk("The option `"+t.value0+"` expects an argument.");if(t instanceof q.UnexpectedError){var e=U.startsWith("-")(t.value0)?"Invalid option `"+t.value0+"'":"Invalid argument `"+t.value0+"'";return R.stringChunk(e)}if(t instanceof q.UnknownError)return y.mempty(R.chunkMonoid(H.docSemigroup));throw new Error("Failed pattern match at Options.Applicative.Extra (line 197, column 30 - line 229, column 18): "+[t.constructor.name])}());return q.ParserFailure(function(t){var a,o=(a=r,function(n){return function(e){var t=i.head(a);if(t instanceof h.Nothing)return e([])(n);if(t instanceof h.Just)return p.runExists(function(n){return e(B.contextNames(a))(n)})(t.value0.value1);throw new Error("Failed pattern match at Options.Applicative.Extra (line 184, column 28 - line 186, column 73): "+[t.constructor.name])}})(e)(function(e){return function(r){return d.fold(d.foldableArray)(O.parserHelpMonoid)([(a=r,o=L.headerHelp(a.infoHeader),i=L.footerHelp(a.infoFooter),f?d.fold(d.foldableArray)(O.parserHelpMonoid)([o,i,L.parserHelp(n)(a.infoParser)]):y.mempty(O.parserHelpMonoid)),u(t)(e)(r),l,C]);var a,o,i}});return new S.Tuple(o,new S.Tuple(w,new S.Tuple(g.un(q.parserPrefsNewtype)(q.ParserPrefs)(n).prefColumns,A.unit)))})}}}},j=N.abortOption(q.ShowHelpText.value)(d.fold(d.foldableArray)(J.modMonoid)([N.long(J.optionFieldsHasName)("help"),N.short(J.optionFieldsHasName)("h"),N.help("Show this help text"),N.hidden])),W=m.mapFlipped(E.functorEffect)(M.argv)(function(n){return h.fromMaybe("")(u.bind(h.bindMaybe)(i.index(n)(1))(function(n){return i.last(C.split("/")(n))}))}),G=m.mapFlipped(E.functorEffect)(M.argv)(i.drop(2)),V=M.exit(f.fromEnum(F.boundedEnumExitCode)(F.Success.value)),Q=function(n){if(n instanceof q.Success)return a.pure(E.applicativeEffect)(n.value0);if(n instanceof q.Failure)return function(){var e,t,r=W(),a=(e=n.value0,function(n){var t=g.un(q.newtypeParserFailure)(q.ParserFailure)(e)(n);return new S.Tuple(O.renderHelp(t.value1.value1.value0)(t.value0),t.value1.value0)})(r),o=a.value1 instanceof F.Success?M.stdout:M.stderr;return m.void(E.functorEffect)(P.writeString(o)(T.UTF8.value)(a.value0+"\n")(y.mempty(E.monoidEffect(y.monoidUnit))))(),(t=a.value1,M.exit(f.fromEnum(F.boundedEnumExitCode)(t)))()};if(n instanceof q.CompletionInvoked)return function(){var e=W(),t=g.un(q.newtypeCompletionResult)(q.CompletionResult)(n.value0).execCompletion(e)();return m.void(E.functorEffect)(P.writeString(M.stdout)(T.UTF8.value)(t)(y.mempty(E.monoidEffect(y.monoidUnit))))(),V()};throw new Error("Failed pattern match at Options.Applicative.Extra (line 110, column 1 - line 110, column 58): "+[n.constructor.name])},z=(e=N.defaultPrefs,function(n){return u.bind(E.bindEffect)(m.map(E.functorEffect)(function(n){return function(e){return function(t){var a=g.over(q.parserInfoNewtype)(q.parserInfoNewtype)(q.ParserInfo)(function(t){return{infoParser:r.alt(q.parserAlt)(m.map(q.parserFunctor)(l.Left.create)(I.bashCompletionParser(e)(n)))(m.map(q.parserFunctor)(l.Right.create)(t.infoParser)),infoFailureCode:t.infoFailureCode,infoFooter:t.infoFooter,infoFullDesc:t.infoFullDesc,infoHeader:t.infoHeader,infoPolicy:t.infoPolicy,infoProgDesc:t.infoProgDesc}})(e),o=x.runParserInfo(B.pMonadP)(a)(w.fromFoldable(d.foldableArray)(t)),u=B.runP(o)(n);if(u.value0 instanceof l.Right&&u.value0.value0 instanceof l.Right)return new q.Success(u.value0.value0.value0);if(u.value0 instanceof l.Right&&u.value0.value0 instanceof l.Left)return new q.CompletionInvoked(u.value0.value0.value0);if(u.value0 instanceof l.Left)return q.Failure.create(_(n)(e)(u.value0.value0)(u.value1));throw new Error("Failed pattern match at Options.Applicative.Extra (line 144, column 3 - line 147, column 73): "+[u.constructor.name])}}}(e)(n))(G))(Q)});t.helper=j,t.execParser=z}(n),function(n){"use strict";n["Docs.Search.Main"]=n["Docs.Search.Main"]||{};var e,t=n["Docs.Search.Main"],r=n["Control.Applicative"],a=n["Control.Apply"],o=n["Data.Functor"],u=n["Data.Generic.Rep"],i=n["Data.Generic.Rep.Show"],c=n["Data.List"],l=n["Data.List.NonEmpty"],f=n["Data.Maybe"],s=n["Data.Newtype"],p=n["Data.Semigroup"],d=n["Data.Show"],v=n["Data.Symbol"],m=n["Data.Unfoldable"],w=n["Docs.Search.Config"],h=n["Docs.Search.IndexBuilder"],y=n["Docs.Search.Interactive"],g=n["Docs.Search.Types"],D=n["Effect.Console"],b=n["Options.Applicative.Builder"],C=n["Options.Applicative.Builder.Internal"],S=n["Options.Applicative.Extra"],A=n["Options.Applicative.Internal.Utils"],E=n["Options.Applicative.Types"],F=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),T=function(){function n(n){this.value0=n}return n.create=function(e){return new n(e)},n}(),M=function(){function n(){}return n.value=new n,n}(),P=function(n){return function(e){return o.mapFlipped(E.parserFunctor)(E.some(e))(l.toUnfoldable(n))}},I=o.map(E.parserFunctor)(g.PackageName)(b.strOption(p.append(C.modSemigroup)(b.long(C.optionFieldsHasName)("package-name"))(p.append(C.modSemigroup)(b.metavar(C.optionFieldsHasMetavar)("PACKAGE"))(b.value(C.optionFieldsHasValue)(s.unwrap(g.newtypePackageName)(w.defaultPackageName)))))),N=new u.Generic(function(n){if(n instanceof F)return new u.Inl(n.value0);if(n instanceof T)return new u.Inr(new u.Inl(n.value0));if(n instanceof M)return new u.Inr(new u.Inr(u.NoArguments.value));throw new Error("Failed pattern match at Docs.Search.Main (line 55, column 1 - line 55, column 54): "+[n.constructor.name])},function(n){if(n instanceof u.Inl)return new F(n.value0);if(n instanceof u.Inr&&n.value0 instanceof u.Inl)return new T(n.value0.value0);if(n instanceof u.Inr&&n.value0 instanceof u.Inr)return M.value;throw new Error("Failed pattern match at Docs.Search.Main (line 55, column 1 - line 55, column 54): "+[n.constructor.name])}),J=new d.Show(i.genericShow(N)(i.genericShowSum(i.genericShowConstructor(i.genericShowArgsArgument(d.showRecord()(d.showRecordFieldsCons(new v.IsSymbol(function(){return"bowerFiles"}))(d.showRecordFieldsCons(new v.IsSymbol(function(){return"docsFiles"}))(d.showRecordFieldsCons(new v.IsSymbol(function(){return"generatedDocs"}))(d.showRecordFieldsCons(new v.IsSymbol(function(){return"noPatch"}))(d.showRecordFieldsCons(new v.IsSymbol(function(){return"packageName"}))(d.showRecordFieldsNil)(g.showPackageName))(d.showBoolean))(d.showString))(d.showArray(d.showString)))(d.showArray(d.showString)))))(new v.IsSymbol(function(){return"BuildIndex"})))(i.genericShowSum(i.genericShowConstructor(i.genericShowArgsArgument(d.showRecord()(d.showRecordFieldsCons(new v.IsSymbol(function(){return"bowerFiles"}))(d.showRecordFieldsCons(new v.IsSymbol(function(){return"docsFiles"}))(d.showRecordFieldsCons(new v.IsSymbol(function(){return"packageName"}))(d.showRecordFieldsNil)(g.showPackageName))(d.showArray(d.showString)))(d.showArray(d.showString)))))(new v.IsSymbol(function(){return"Search"})))(i.genericShowConstructor(i.genericShowArgsNoArguments)(new v.IsSymbol(function(){return"Version"})))))),x=["output/**/docs.json"],R=o.map(E.parserFunctor)(f.fromMaybe(x))(f.optional(E.parserAlternative)(P(m.unfoldableArray)(b.strOption(p.append(C.modSemigroup)(b.long(C.optionFieldsHasName)("docs-files"))(b.metavar(C.optionFieldsHasMetavar)("GLOB")))))),L=[".spago/*/*/bower.json","bower_components/purescript-*/bower.json"],k=o.map(E.parserFunctor)(f.fromMaybe(L))(f.optional(E.parserAlternative)(P(m.unfoldableArray)(b.strOption(p.append(C.modSemigroup)(b.long(C.optionFieldsHasName)("bower-jsons"))(b.metavar(C.optionFieldsHasMetavar)("GLOB")))))),O=a.apply(E.parserApply)(a.apply(E.parserApply)(a.apply(E.parserApply)(a.apply(E.parserApply)(o.map(E.parserFunctor)(function(n){return function(e){return function(t){return function(r){return function(a){return new F({docsFiles:n,bowerFiles:e,generatedDocs:r,noPatch:a,packageName:t})}}}}})(R))(k))(I))(b.strOption(p.append(C.modSemigroup)(b.long(C.optionFieldsHasName)("generated-docs"))(p.append(C.modSemigroup)(b.metavar(C.optionFieldsHasMetavar)("DIR"))(b.value(C.optionFieldsHasValue)("./generated-docs/"))))))(b.flag(!1)(!0)(p.append(C.modSemigroup)(b.long(C.flagFieldsHasName)("no-patch"))(b.help("Do not patch the HTML docs, only build indices")))),B=a.apply(E.parserApply)(a.apply(E.parserApply)(o.map(E.parserFunctor)(function(n){return function(e){return function(t){return new T({docsFiles:n,bowerFiles:e,packageName:t})}}})(R))(k))(I),U=f.optional(E.parserAlternative)(b.subparser(p.append(C.modSemigroup)(b.command("build-index")(b.info(A.apApplyFlipped(E.parserApply)(O)(S.helper))(b.progDesc("Build the index used to search for definitions and patch the generated docs so that they include a search field."))))(p.append(C.modSemigroup)(b.command("search")(b.info(A.apApplyFlipped(E.parserApply)(B)(S.helper))(b.progDesc("Run the search engine."))))(b.command("version")(b.info(A.apApplyFlipped(E.parserApply)(r.pure(E.parserApplicative)(M.value))(S.helper))(b.progDesc("Show purescript-docs-search version."))))))),q=(e=b.info(A.apApplyFlipped(E.parserApply)(U)(S.helper))(p.append(b.infoModSemigroup)(b.fullDesc)(b.progDesc("Search frontend for the documentation generated by the PureScript compiler."))),S.execParser(e));t.main=function(){var n=q(),e=new T({docsFiles:x,bowerFiles:L,packageName:w.defaultPackageName}),t=f.fromMaybe(e)(n);if(t instanceof F)return h.run(t.value0)();if(t instanceof T)return y.run(t.value0)();if(t instanceof M)return D.log(w.version)();throw new Error("Failed pattern match at Docs.Search.Main (line 33, column 3 - line 36, column 34): "+[t.constructor.name])},t.getArgs=q,t.BuildIndex=F,t.Search=T,t.Version=M,t.commands=U,t.buildIndex=O,t.startInteractive=B,t.docsFilesOption=R,t.bowerFilesOption=k,t.packageNameOption=I,t.defaultDocsFiles=x,t.defaultBowerFiles=L,t.many=function(n){return function(e){return o.mapFlipped(E.parserFunctor)(E.many(e))(c.toUnfoldable(n))}},t.some=P,t.genericCommands=N,t.showCommands=J}(n),n["Docs.Search.Main"].main();
},{"glob":"EkKO"}]},{},["epB2"], null)