slice-machine-ui 2.1.1-alpha.lh-delete-repeatable-zone-model-warning.2 → 2.1.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.depcheckrc +0 -1
- package/next.config.mjs +1 -4
- package/out/404.html +1 -1
- package/out/_next/static/Gw4eXOE5EqeLdC_fSnsHZ/_buildManifest.js +1 -0
- package/out/_next/static/chunks/152-c40fcb226b0df27f.js +1 -0
- package/out/_next/static/chunks/{18539003-32a73014bab3a789.js → 18539003-eda642ad962ef598.js} +2 -2
- package/out/_next/static/chunks/212-8e3e36f1dcc00ef3.js +1 -0
- package/out/_next/static/chunks/264-4bb6f3fb14863ef3.js +1 -0
- package/out/_next/static/chunks/465-47a6d2a5f66f521e.js +1 -0
- package/out/_next/static/chunks/{50-cfc2514205b86001.js → 50-8d014b6d3cc35e30.js} +1 -1
- package/out/_next/static/chunks/574-6039c48fbc93b4a8.js +1 -0
- package/out/_next/static/chunks/{210-aee6116139329803.js → 66-d37d30551288858b.js} +2 -2
- package/out/_next/static/chunks/{756-b11a3060cdc2f2d3.js → 756-1e44fe84bedc262b.js} +3 -3
- package/out/_next/static/chunks/816-68d4db26c0adab2e.js +1 -0
- package/out/_next/static/chunks/{918-5bb55fb464e34768.js → 918-09e9e4a012d48a3a.js} +1 -1
- package/out/_next/static/chunks/main-207ecb3e9b995dd9.js +1 -0
- package/out/_next/static/chunks/pages/{_app-3e4983279aa9cc00.js → _app-830444cf7b0539f1.js} +133 -133
- package/out/_next/static/chunks/pages/{_error-69b4f498bafdd188.js → _error-6aa4c7b8478d35e3.js} +1 -1
- package/out/_next/static/chunks/pages/changelog-d309ea186a0e56bf.js +1 -0
- package/out/_next/static/chunks/pages/changes-1bb1a7b784a22151.js +1 -0
- package/out/_next/static/chunks/pages/custom-types/[customTypeId]-74be2c0ac9c854c7.js +1 -0
- package/out/_next/static/chunks/pages/custom-types-bac97f007a5ca743.js +1 -0
- package/out/_next/static/chunks/pages/{index-41fcbf4361de7317.js → index-785a0ab6e2a4fc27.js} +1 -1
- package/out/_next/static/chunks/pages/{labs-ef915adf4601f422.js → labs-2e4f3a5f68e65b93.js} +1 -1
- package/out/_next/static/chunks/pages/page-types/[pageTypeId]-d35c87b9aaec445a.js +1 -0
- package/out/_next/static/chunks/pages/settings-25eb02893ed871b7.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-b47a72d5e94bd946.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-921f459ea4e05117.js +1 -0
- package/out/_next/static/chunks/pages/slices-cc44eeccd58d23a9.js +1 -0
- package/out/_next/static/css/b3bb731ce567d63f.css +1 -0
- package/out/_next/static/css/d0dd8015d7f5ea89.css +1 -0
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/settings.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +6 -10
- package/src/components/Card/Card.stories.tsx +4 -6
- package/src/components/FieldSet/FieldSet.stories.tsx +6 -12
- package/src/features/changes/BlankSlates/NoChangesBlankSlate.tsx +2 -2
- package/src/features/customTypes/customTypesTable/CustomTypesTable.tsx +1 -2
- package/src/features/settings/git/GitOwnerSelect.tsx +2 -2
- package/src/features/settings/git/GitProviderConnectButtons.tsx +2 -2
- package/src/features/slices/sliceCards/SharedSliceCard.tsx +2 -4
- package/src/legacy/components/Changelog/navigation/index.tsx +3 -3
- package/src/legacy/components/Changelog/versionDetails/index.tsx +2 -2
- package/src/legacy/lib/builders/CustomTypeBuilder/index.tsx +7 -6
- package/src/legacy/lib/builders/SliceBuilder/FieldZones/index.tsx +8 -24
- package/src/legacy/lib/builders/SliceBuilder/SimulatorButton/index.tsx +4 -4
- package/vite.config.ts +1 -2
- package/out/_next/static/M2ofVpbE71V-Mblcx06A2/_buildManifest.js +0 -1
- package/out/_next/static/chunks/188-ee59edb19bc752c3.js +0 -1
- package/out/_next/static/chunks/339-905c2ce3609b74fe.js +0 -1
- package/out/_next/static/chunks/569-2ae3e9666f3bf991.js +0 -1
- package/out/_next/static/chunks/614-5130fbdbcfab2d35.js +0 -1
- package/out/_next/static/chunks/661-aa0b760bb52a7edf.js +0 -1
- package/out/_next/static/chunks/90-2d4bdae13d031364.js +0 -1
- package/out/_next/static/chunks/main-5e6780279ca21cb9.js +0 -1
- package/out/_next/static/chunks/pages/changelog-fa4f69f69dafb8f0.js +0 -1
- package/out/_next/static/chunks/pages/changes-86bf0b1b09af60fa.js +0 -1
- package/out/_next/static/chunks/pages/custom-types/[customTypeId]-982ecf1d799b6bcf.js +0 -1
- package/out/_next/static/chunks/pages/custom-types-19c4fe4abeca8a48.js +0 -1
- package/out/_next/static/chunks/pages/page-types/[pageTypeId]-886fc28240831dae.js +0 -1
- package/out/_next/static/chunks/pages/settings-99f7a183397cb097.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-9bdb355306fca592.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-49a10d6fc458cce2.js +0 -1
- package/out/_next/static/chunks/pages/slices-f65c48ab547692c4.js +0 -1
- package/out/_next/static/css/037ba37d121d4afe.css +0 -1
- package/out/_next/static/css/a6b6600e19e1c0c1.css +0 -1
- package/src/components/Window/Window.css.ts +0 -165
- package/src/components/Window/Window.stories.tsx +0 -135
- package/src/components/Window/Window.tsx +0 -119
- package/src/components/Window/index.ts +0 -8
- /package/out/_next/static/{M2ofVpbE71V-Mblcx06A2 → Gw4eXOE5EqeLdC_fSnsHZ}/_ssgManifest.js +0 -0
package/out/_next/static/chunks/{18539003-32a73014bab3a789.js → 18539003-eda642ad962ef598.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[851],{71463:function(e,t,n){n.d(t,{kS:function(){return ely}});var r,i,o,a,u,s,l=n(77252),c=n(2784),d=n(98863),f=n(22715),p=n(74217),A=n(50054),h=n(86579),m=n(18566),g=n(87322),y=n(1611),v=n(52393),x=n(47124),b=n(50002),C=n(28316),S=n(87598),w=Object.defineProperty,I=(e,t,n)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_=(e,t,n)=>(I(e,"symbol"!=typeof t?t+"":t,n),n),T="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof n.g?n.g:"u">typeof self?self:{};function O(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var R={},k=function(e,t){return(k=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},E=function(){return(E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},M=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function F(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function j(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function U(e){return this instanceof U?(this.v=e,this):new U(e)}var K=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};let L=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return E},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:U(e[r](t)),done:!1}:i?i(t):t}:i}},__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||u(e,t)})})}function u(e,t){try{var n;n=i[e](t),n.value instanceof U?Promise.resolve(n.value.v).then(s,l):c(o[0][2],n)}catch(r){c(o[0][3],r)}}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),o.shift(),o.length&&u(o[0][0],o[0][1])}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=F(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}},__await:U,__awaiter:function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,u)}s((r=r.apply(e,t||[])).next())})},__classPrivateFieldGet:function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},__classPrivateFieldIn:function(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)},__classPrivateFieldSet:function(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n},__createBinding:M,__decorate:function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},__esDecorate:function(e,t,n,r,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var u,s=r.kind,l="getter"===s?"get":"setter"===s?"set":"value",c=!t&&e?r.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,p=n.length-1;p>=0;p--){var A={};for(var h in r)A[h]="access"===h?{}:r[h];for(var h in r.access)A.access[h]=r.access[h];A.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var m=(0,n[p])("accessor"===s?{get:d.get,set:d.set}:d[l],A);if("accessor"===s){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(u=a(m.get))&&(d.get=u),(u=a(m.set))&&(d.set=u),(u=a(m.init))&&i.push(u)}else(u=a(m))&&("field"===s?i.push(u):d[l]=u)}c&&Object.defineProperty(c,r.name,d),f=!0},__exportStar:function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||M(t,e,n)},__extends:function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}k(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},__generator:function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(s){return function(u){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(s){u=[6,s],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&M(t,e,n);return K(t,e),t},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__param:function(e,t){return function(n,r){t(n,r,e)}},__propKey:function(e){return"symbol"==typeof e?e:"".concat(e)},__read:j,__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},__runInitializers:function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0},__setFunctionName:function(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})},__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(j(arguments[t]));return e},__spreadArray:function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},__spreadArrays:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)r[i]=o[a];return r},__values:F},Symbol.toStringTag,{value:"Module"})),B=O(L);var P={};function W(e){return function(t){return function(n){return n.reduce(function(t,n){return e.alt(t,function(){return n})},t)}}}let D=Object.freeze(Object.defineProperty({__proto__:null,altAll:W},Symbol.toStringTag,{value:"Module"})),N=Object.freeze(Object.defineProperty({__proto__:null,altAll:function(e){return W(e)(e.zero())}},Symbol.toStringTag,{value:"Module"}));var q=function(e){return function(){return{meet:function(t,n){return function(r){return e.meet(t(r),n(r))}},join:function(t,n){return function(r){return e.join(t(r),n(r))}},zero:function(){return e.zero},one:function(){return e.one},implies:function(t,n){return function(r){return e.implies(t(r),n(r))}},not:function(t){return function(n){return e.not(t(n))}}}}},Q=function(e){return function(){return{concat:function(t,n){return function(r){return e.concat(t(r),n(r))}}}}},V=function(e){var t=Q(e);return function(){return{concat:t().concat,empty:function(){return e.empty}}}},z=function(e){return{add:function(t,n){return function(r){return e.add(t(r),n(r))}},zero:function(){return e.zero},mul:function(t,n){return function(r){return e.mul(t(r),n(r))}},one:function(){return e.one}}},Y=function(e){var t=z(e);return{add:t.add,mul:t.mul,one:t.one,zero:t.zero,sub:function(t,n){return function(r){return e.sub(t(r),n(r))}}}},H=function(e){return function(t){return t(e)}};function Z(e){return e}function J(e){return function(){return e}}var G=J(!0),$=J(!1),X=J(null),ee=J(void 0);function et(e,t,n,r,i,o,a,u,s){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return o(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return a(o(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return u(a(o(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return s(u(a(o(i(r(n(t(e.apply(this,arguments)))))))))}}}function en(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e}function er(e){return e+1}function ei(e){return e-1}function eo(e){throw Error("Called `absurd` function which should be uncallable")}function ea(e,t,n,r,i,o,a,u,s){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return o(i(r(n(t(e)))));case 7:return a(o(i(r(n(t(e))))));case 8:return u(a(o(i(r(n(t(e)))))));case 9:return s(u(a(o(i(r(n(t(e))))))));default:for(var l=arguments[0],c=1;c<arguments.length;c++)l=arguments[c](l);return l}}var eu=function(e,t){return t},es=function(){return{concat:function(e,t){return et(e,t)},empty:Z}};let el=Object.freeze(Object.defineProperty({__proto__:null,SK:eu,absurd:eo,apply:H,constFalse:$,constNull:X,constTrue:G,constUndefined:ee,constVoid:ee,constant:J,decrement:ei,flip:function(e){return function(t,n){return e(n,t)}},flow:et,getBooleanAlgebra:q,getEndomorphismMonoid:es,getMonoid:V,getRing:Y,getSemigroup:Q,getSemiring:z,hole:eo,identity:Z,increment:er,not:function(e){return function(t){return!e(t)}},pipe:ea,tuple:en,tupled:function(e){return function(t){return e.apply(void 0,t)}},unsafeCoerce:Z,untupled:function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(t)}}},Symbol.toStringTag,{value:"Module"}));var ec=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},ed=function(e){return"None"===e._tag},ef=function(e){return"Some"===e._tag},ep={_tag:"None"},eA=function(e){return{_tag:"Some",value:e}},eh=function(e){return"Left"===e._tag},em=function(e){return"Right"===e._tag},eg=function(e){return{_tag:"Left",left:e}},ey=function(e){return{_tag:"Right",right:e}},ev=function(e){return[e]},ex=function(e){return e.length>0},eb=function(e){return e[0]},eC=function(e){return e.slice(1)},eS=[],ew={},eI=Object.prototype.hasOwnProperty,e_=function(e){return ec([e[0]],e.slice(1),!0)};function eT(e,t){return function(n){return function(r){return e.ap(e.map(r,function(e){return function(n){return t.ap(e,n)}}),n)}}}function eO(e){return function(t){return function(n){return e.ap(e.map(n,function(e){return function(){return e}}),t)}}}function eR(e){return function(t){return function(n){return e.ap(e.map(n,function(){return function(e){return e}}),t)}}}function ek(e){return function(t,n){return function(r){return e.ap(e.map(r,function(e){return function(n){var r;return Object.assign({},e,((r={})[t]=n,r))}}),n)}}}function eE(e){return function(t){return{concat:function(n,r){return e.ap(e.map(n,function(e){return function(n){return t.concat(e,n)}}),r)}}}}function eM(e,t,n){return function(r){for(var i=Array(n.length+1),o=0;o<n.length;o++)i[o]=n[o];return i[n.length]=r,0===t?e.apply(null,i):eM(e,t-1,i)}}var eF={1:function(e){return[e]},2:function(e){return function(t){return[e,t]}},3:function(e){return function(t){return function(n){return[e,t,n]}}},4:function(e){return function(t){return function(n){return function(r){return[e,t,n,r]}}}},5:function(e){return function(t){return function(n){return function(r){return function(i){return[e,t,n,r,i]}}}}}};function ej(e){return eI.call(eF,e)||(eF[e]=eM(en,e-1,[])),eF[e]}function eU(e){var t=e.length;switch(t){case 1:return function(t){var n;return(n={})[e[0]]=t,n};case 2:return function(t){return function(n){var r;return(r={})[e[0]]=t,r[e[1]]=n,r}};case 3:return function(t){return function(n){return function(r){var i;return(i={})[e[0]]=t,i[e[1]]=n,i[e[2]]=r,i}}};case 4:return function(t){return function(n){return function(r){return function(i){var o;return(o={})[e[0]]=t,o[e[1]]=n,o[e[2]]=r,o[e[3]]=i,o}}}};case 5:return function(t){return function(n){return function(r){return function(i){return function(o){var a;return(a={})[e[0]]=t,a[e[1]]=n,a[e[2]]=r,a[e[3]]=i,a[e[4]]=o,a}}}}};default:return eM(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i={},o=0;o<t;o++)i[e[o]]=n[o];return i},t-1,[])}}let eK=Object.freeze(Object.defineProperty({__proto__:null,ap:eT,apFirst:eO,apS:ek,apSecond:eR,getApplySemigroup:eE,sequenceS:function(e){return function(t){for(var n=Object.keys(t),r=n.length,i=eU(n),o=e.map(t[n[0]],i),a=1;a<r;a++)o=e.ap(o,t[n[a]]);return o}},sequenceT:function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=t.length,i=ej(r),o=e.map(t[0],i),a=1;a<r;a++)o=e.ap(o,t[a]);return o}}},Symbol.toStringTag,{value:"Module"}));function eL(e,t){return function(n){return function(r){return e.map(r,function(e){return t.map(e,n)})}}}function eB(e){return function(t){return function(n){return e.map(n,function(e){return e(t)})}}}function eP(e){return function(t){return function(n){return e.map(n,function(e){var n;return(n={})[t]=e,n})}}}function eW(e,t){var n=eL(e,t);return{map:function(e,t){return ea(e,n(t))}}}let eD=Object.freeze(Object.defineProperty({__proto__:null,bindTo:eP,flap:eB,getFunctorComposition:eW,map:eL},Symbol.toStringTag,{value:"Module"}));function eN(e){var t=eE(e);return function(n){return{concat:t(n).concat,empty:e.of(n.empty)}}}function eq(e,t){var n=eW(e,t).map,r=eT(e,t);return{map:n,of:function(n){return e.of(t.of(n))},ap:function(e,t){return ea(e,r(t))}}}let eQ=Object.freeze(Object.defineProperty({__proto__:null,getApplicativeComposition:eq,getApplicativeMonoid:eN},Symbol.toStringTag,{value:"Module"}));function eV(e){return function(t){return function(n){return e.chain(n,function(n){return e.map(t(n),function(){return n})})}}}function ez(e){return function(t,n){return function(r){return e.chain(r,function(r){return e.map(n(r),function(e){var n;return Object.assign({},r,((n={})[t]=e,n))})})}}}let eY=Object.freeze(Object.defineProperty({__proto__:null,bind:ez,chainFirst:eV},Symbol.toStringTag,{value:"Module"}));function eH(e){return function(t){return function(n){return e.fromEither(ed(n)?eg(t()):ey(n.value))}}}function eZ(e){return function(t,n){return function(r){return e.fromEither(t(r)?ey(r):eg(n(r)))}}}function eJ(e){var t=eH(e);return function(e){var n=t(e);return function(e){return et(e,n)}}}function eG(e,t){var n=eJ(e);return function(e){var r=n(e);return function(e){return function(n){return t.chain(n,r(e))}}}}function e$(e){return function(t){return et(t,e.fromEither)}}function eX(e,t){var n=e$(e);return function(e){return function(r){return t.chain(r,n(e))}}}function e0(e,t){return et(e$(e),eV(t))}function e1(e,t){return function(n,r){return function(i){return t.chain(i,function(t){return e.fromEither(n(t)?ey(t):eg(r(t)))})}}}let e2=Object.freeze(Object.defineProperty({__proto__:null,chainEitherK:eX,chainFirstEitherK:e0,chainOptionK:eG,filterOrElse:e1,fromEitherK:e$,fromOption:eH,fromOptionK:eJ,fromPredicate:eZ},Symbol.toStringTag,{value:"Module"}));var e6=function(e){return{equals:function(t,n){return t===n||e(t,n)}}},e5=function(e){return e6(function(t,n){for(var r in e)if(!e[r].equals(t[r],n[r]))return!1;return!0})},e3=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e6(function(t,n){return e.every(function(e,r){return e.equals(t[r],n[r])})})},e9=function(e){return function(t){return e6(function(n,r){return t.equals(e(n),e(r))})}},e4={equals:function(e,t){return e===t}},e7={equals:function(){return!0}},e8=function(){return{concat:function(e,t){return e6(function(n,r){return e.equals(n,r)&&t.equals(n,r)})}}},te=function(){return{concat:e8().concat,empty:e7}},tt={URI:"Eq",contramap:function(e,t){return ea(e,e9(t))}},tn=e4.equals;let tr=Object.freeze(Object.defineProperty({__proto__:null,Contravariant:tt,URI:"Eq",contramap:e9,eq:tt,eqBoolean:e4,eqDate:{equals:function(e,t){return e.valueOf()===t.valueOf()}},eqNumber:e4,eqStrict:e4,eqString:e4,fromEquals:e6,getMonoid:te,getSemigroup:e8,getStructEq:e5,getTupleEq:e3,strictEqual:tn,struct:e5,tuple:e3},Symbol.toStringTag,{value:"Module"}));var ti=function(e){return function(t,n){return t===n||0===e(t,n)}},to=function(e){return{equals:ti(e),compare:function(t,n){return t===n?0:e(t,n)}}},ta=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return to(function(t,n){for(var r=0;r<e.length-1;r++){var i=e[r].compare(t[r],n[r]);if(0!==i)return i}return e[r].compare(t[r],n[r])})},tu=function(e){return to(function(t,n){return e.compare(n,t)})},ts=function(e){return function(t){return to(function(n,r){return t.compare(e(n),e(r))})}},tl=function(){return{concat:function(e,t){return to(function(n,r){var i=e.compare(n,r);return 0!==i?i:t.compare(n,r)})}}},tc=function(){return{concat:tl().concat,empty:to(function(){return 0})}},td={URI:"Ord",contramap:function(e,t){return ea(e,ts(t))}},tf={equals:G,compare:J(0)},tp=function(e){return function(t){return function(n){return n===t||0===e.compare(n,t)}}},tA=function(e){return function(t,n){return -1===e.compare(t,n)}},th=function(e){return function(t,n){return 1===e.compare(t,n)}},tm=function(e){return function(t,n){return 1!==e.compare(t,n)}},tg=function(e){return function(t,n){return -1!==e.compare(t,n)}},ty=function(e){return function(t,n){return t===n||1>e.compare(t,n)?t:n}},tv=function(e){return function(t,n){return t===n||e.compare(t,n)>-1?t:n}},tx=function(e){var t=ty(e),n=tv(e);return function(e,r){return function(i){return n(t(i,r),e)}}},tb=function(e){var t=tA(e),n=th(e);return function(e,r){return function(i){return!(t(i,e)||n(i,r))}}},tC={equals:e4.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},tS=ea(tC,ts(function(e){return e.valueOf()}));let tw=Object.freeze(Object.defineProperty({__proto__:null,Contravariant:td,URI:"Ord",between:tb,clamp:tx,contramap:ts,equals:tp,equalsDefault:ti,fromCompare:to,geq:tg,getDualOrd:tu,getMonoid:tc,getSemigroup:tl,getTupleOrd:ta,gt:th,leq:tm,lt:tA,max:tv,min:ty,ord:td,ordBoolean:tC,ordDate:tS,ordNumber:tC,ordString:tC,reverse:tu,trivial:tf,tuple:ta},Symbol.toStringTag,{value:"Module"}));var tI=function(e){return{concat:function(t,n){return e.concat(n,t)}}},t_=function(e){return function(t){return{concat:function(n,r){return e(n)?t.concat(n,r):r}}}},tT=function(e){return function(t){return{concat:function(n,r){return e(r)?t.concat(n,r):n}}}},tO=function(e){return function(t){return{concat:function(n,r){return t.concat(e(n),e(r))}}}},tR=function(e){return function(t){return function(n){return n.reduce(function(t,n){return e.concat(t,n)},t)}}};let tk=Object.freeze(Object.defineProperty({__proto__:null,concatAll:tR,endo:tO,filterFirst:t_,filterSecond:tT,reverse:tI},Symbol.toStringTag,{value:"Module"}));var tE=function(e){return{concat:ty(e)}},tM=function(e){return{concat:tv(e)}},tF=function(e){return{concat:function(){return e}}},tj=function(e){return{concat:function(t,n){var r={};for(var i in e)eI.call(e,i)&&(r[i]=e[i].concat(t[i],n[i]));return r}}},tU=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{concat:function(t,n){return e.map(function(e,r){return e.concat(t[r],n[r])})}}},tK=function(e){return function(t){return{concat:function(n,r){return t.concat(n,t.concat(e,r))}}}},tL=function(){return{concat:Z}},tB=function(){return{concat:function(e,t){return t}}},tP=tF(void 0),tW=function(){return{concat:function(e,t){return Object.assign({},e,t)}}},tD={concat:function(e,t){return e&&t}},tN={concat:function(e,t){return e||t}},tq={concat:function(e,t){return e+t}},tQ={concat:function(e,t){return e+t}},tV={concat:function(e,t){return e*t}};let tz=Object.freeze(Object.defineProperty({__proto__:null,concatAll:tR,constant:tF,first:tL,fold:function(e){var t=tR(e);return function(e,n){return void 0===n?t(e):t(e)(n)}},getDualSemigroup:tI,getFirstSemigroup:tL,getFunctionSemigroup:Q,getIntercalateSemigroup:tK,getJoinSemigroup:tM,getLastSemigroup:tB,getMeetSemigroup:tE,getObjectSemigroup:tW,getStructSemigroup:tj,getTupleSemigroup:tU,intercalate:tK,last:tB,max:tM,min:tE,reverse:tI,semigroupAll:tD,semigroupAny:tN,semigroupProduct:tV,semigroupString:tq,semigroupSum:tQ,semigroupVoid:tP,struct:tj,tuple:tU},Symbol.toStringTag,{value:"Module"}));var tY=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},tH=function(e,t){return e<0||e>=t.length},tZ=function(e){return function(t){return tY([e],t,!0)}},tJ=function(e){return function(t){return tY(tY([],t,!0),[e],!1)}},tG=function(e,t,n){if(ex(n)){var r=e_(n);return r.splice(e,0,t),r}return[t]},t$=function(e,t,n){if(n[e]===t)return n;var r=e_(n);return r[e]=t,r},tX=function(e){return function(t){if(1===t.length)return t;for(var n=[re(t)],r=rt(t),i=function(t){n.every(function(n){return!e.equals(n,t)})&&n.push(t)},o=0;o<r.length;o++)i(r[o]);return n}},t0=function(e){if(ex(e)){var t=tc();return no(e.reduce(t.concat,t.empty))}return Z},t1=function(e){var t=tX(e);return function(e){return function(n){return t(ea(n,nt(e)))}}},t2=function(e){return function(t){var n=t.length,r=Math.round(e)%n;if(tH(Math.abs(r),t)||0===r)return t;if(!(r<0))return t2(r-n)(t);var i=nA(-r)(t),o=i[0];return ea(i[1],nt(o))}},t6=function(e){return ex(e)?eA(e):ep},t5=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}},t3=function(e){return t5(function(){return e})},t9=function(e,t){return e<=t?t5(function(t){return e+t})(t-e+1):[e]},t4=function(e){return[re(e),rt(e)]},t7=function(e){return[rr(e),rn(e)]},t8=function(e){return t6(e.slice())};function ne(e){return function(t){return t.concat(e)}}function nt(e,t){return t?e.concat(t):function(t){return t.concat(e)}}var nn=function(e){return 1===e.length?e:tY([rn(e)],e.slice(0,-1).reverse(),!0)};function nr(e){return function(t){var n=t.length;if(0===n)return eS;for(var r=[],i=t[0],o=[i],a=1;a<n;a++){var u=t[a];e.equals(u,i)?o.push(u):(r.push(o),o=[i=u])}return r.push(o),r}}var ni=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);eI.call(n,o)?n[o].push(i):n[o]=[i]}return n}},no=function(e){return function(t){return 1===t.length?t:t.slice().sort(e.compare)}},na=function(e,t){return nu(e,function(){return t})},nu=function(e,t){return function(n){return tH(e,n)?ep:eA(t$(e,t(n[e]),n))}},ns=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r},nl=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},nc=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}},nd=function(e){return function(t){var n=rt(t);return ex(n)?ea(n,nc(e),tZ(re(t))):t}},nf=function(e){return function(t){for(var n=e_(e(0,re(t))),r=1;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},np=function(e){return function(t){for(var n=e(t),r=n[0],i=n[1],o=[r],a=i;ex(a);){var u=e(a),s=u[0],l=u[1];o.push(s),a=l}return o}},nA=function(e){return function(t){var n=Math.max(1,e);return n>=t.length?[t,eS]:[ea(t.slice(1,n),tZ(re(t))),t.slice(n)]}},nh=function(e){return np(nA(e))},nm=function(e,t){return ea(e,nL(t))},ng=function(e,t){return ea(e,nB(t))},ny=function(e,t){return ea(e,nM(t))},nv=function(e,t){return ea(e,nF(t))},nx=function(e,t){return ea(e,nj(t))},nb=function(e,t,n){return ea(e,nP(t,n))},nC=function(e){var t=nW(e);return function(e,n){return ea(e,t(n))}},nS=function(e,t,n){return ea(e,nD(t,n))},nw=function(e){var t=nV(e);return function(e,n){return ea(e,t(n))}},nI=function(e,t){return ea(e,nE(t))},n_=function(e,t,n){return ea(e,nN(t,n))},nT=function(e){var t=nq(e);return function(e,n){return ea(e,t(n))}},nO=function(e,t,n){return ea(e,nQ(t,n))},nR=function(e){var t=nY(e);return function(e,n){return ea(e,t(n))}},nk=function(e){return function(t){return ea(t,ne(e()))}},nE=nk,nM=function(e){return nF(function(t){return ea(e,nL(t))})},nF=function(e){return nf(function(t,n){return e(n)})},nj=function(e){return function(t){for(var n=rt(t),r=[e(t)];ex(n);)r.push(e(n)),n=rt(n);return r}},nU=nj(Z),nK=nF(Z),nL=function(e){return nB(function(t,n){return e(n)})},nB=function(e){return function(t){for(var n=[e(0,re(t))],r=1;r<t.length;r++)n.push(e(r,t[r]));return n}},nP=function(e,t){return nN(e,function(e,n,r){return t(n,r)})},nW=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r){return e.concat(n,t(r))},t(n[0]))}}},nD=function(e,t){return nQ(e,function(e,n,r){return t(n,r)})},nN=function(e,t){return function(n){return n.reduce(function(e,n,r){return t(r,e,n)},e)}},nq=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r,i){return e.concat(n,t(i+1,r))},t(0,n[0]))}}},nQ=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}},nV=function(e){var t=nY(e);return function(e){return t(function(t,n){return e(n)})}},nz=function(e){return nY(e)(eu)},nY=function(e){return function(t){return function(n){for(var r=e.map(t(0,re(n)),ev),i=1;i<n.length;i++)r=e.ap(e.map(r,function(e){return function(t){return ea(e,tJ(t))}}),t(i,n[i]));return r}}},nH="ReadonlyNonEmptyArray",nZ=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}},nJ=function(){return{concat:nt}},nG=function(e){return e6(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})},n$=function(e){var t=t1(e);return{concat:function(e,n){return t(n)(e)}}},nX={URI:nH,map:nm},n0=eB(nX),n1={URI:nH,map:nm,ap:ny},n2=eO(n1),n6=eR(n1),n5={URI:nH,map:nm,ap:ny,chain:nv},n3=eV(n5),n9=ev(ew),n4=eP(nX),n7=ez(n5),n8=ek(n1),re=eb,rt=eC,rn=function(e){return e[e.length-1]},rr=function(e){return e.slice(0,-1)},ri=function(e){var t=tE(e);return function(e){return e.reduce(t.concat)}},ro=function(e){var t=tM(e);return function(e){return e.reduce(t.concat)}},ra=function(e){return function(t){return t.reduce(e.concat)}},ru=function(e){return function(t){return e(re(t),rt(t))}},rs=function(e){return function(t){return e(rr(t),rn(t))}},rl=function(e){return function(t){return tY([e(re(t))],rt(t),!0)}},rc=function(e){return rl(function(){return e})},rd=function(e){return function(t){return ea(rr(t),tJ(e(rn(t))))}},rf=function(e){return rd(function(){return e})},rp=function(e){var t=ra(e);return function(e){return et(nd(e),t)}},rA=function(e){return function(t){return t6(t.filter(function(t,n){return e(n,t)}))}};function rh(e,t){return void 0===t?tZ(e):ea(t,tZ(e))}var rm=function(e,t){return ea(e,nt([t]))},rg=function(e,t){return function(n){return e<0||e>n.length?ep:eA(tG(e,t,n))}};let ry=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:nH,map:nm,alt:nI},Applicative:{URI:nH,map:nm,ap:ny,of:ev},Apply:n1,Chain:n5,Comonad:{URI:nH,map:nm,extend:nx,extract:eb},Do:n9,Foldable:{URI:nH,reduce:nb,foldMap:nC,reduceRight:nS},FoldableWithIndex:{URI:nH,reduce:nb,foldMap:nC,reduceRight:nS,reduceWithIndex:n_,foldMapWithIndex:nT,reduceRightWithIndex:nO},Functor:nX,FunctorWithIndex:{URI:nH,map:nm,mapWithIndex:ng},Monad:{URI:nH,map:nm,ap:ny,of:ev,chain:nv},Pointed:{URI:nH,of:ev},Traversable:{URI:nH,map:nm,reduce:nb,foldMap:nC,reduceRight:nS,traverse:nw,sequence:nz},TraversableWithIndex:{URI:nH,map:nm,mapWithIndex:ng,reduce:nb,foldMap:nC,reduceRight:nS,traverse:nw,sequence:nz,reduceWithIndex:n_,foldMapWithIndex:nT,reduceRightWithIndex:nO,traverseWithIndex:nR},URI:nH,alt:nE,altW:nk,ap:nM,apFirst:n2,apS:n8,apSecond:n6,append:tJ,appendW:tJ,bind:n7,bindTo:n4,chain:nF,chainFirst:n3,chainWithIndex:nf,chop:np,chunksOf:nh,concat:nt,concatAll:ra,concatW:ne,cons:rh,duplicate:nU,empty:eS,extend:nj,extract:eb,filter:function(e){return rA(function(t,n){return e(n)})},filterWithIndex:rA,flap:n0,flatten:nK,fold:ra,foldMap:nW,foldMapWithIndex:nq,fromArray:t8,fromReadonlyArray:t6,getEq:nG,getSemigroup:nJ,getShow:nZ,getUnionSemigroup:n$,group:nr,groupBy:ni,groupSort:function(e){var t=no(e),n=nr(e);return function(e){return ex(e)?n(t(e)):eS}},head:re,init:rr,insertAt:rg,intercalate:rp,intersperse:nd,isNonEmpty:ex,isOutOfBound:tH,last:rn,makeBy:t5,map:nL,mapWithIndex:nB,matchLeft:ru,matchRight:rs,max:ro,min:ri,modifyAt:nu,modifyHead:rl,modifyLast:rd,of:ev,prepend:tZ,prependAll:nc,prependToAll:nc,prependW:tZ,range:t9,readonlyNonEmptyArray:{URI:nH,of:ev,map:nm,mapWithIndex:ng,ap:ny,chain:nv,extend:nx,extract:eb,reduce:nb,foldMap:nC,reduceRight:nS,traverse:nw,sequence:nz,reduceWithIndex:n_,foldMapWithIndex:nT,reduceRightWithIndex:nO,traverseWithIndex:nR,alt:nI},reduce:nP,reduceRight:nD,reduceRightWithIndex:nQ,reduceWithIndex:nN,replicate:t3,reverse:nn,rotate:t2,sequence:nz,snoc:rm,sort:no,sortBy:t0,splitAt:nA,tail:rt,traverse:nV,traverseWithIndex:nY,unappend:t7,uncons:t4,union:t1,uniq:tX,unprepend:t4,unsafeInsertAt:tG,unsafeUpdateAt:t$,unsnoc:t7,unzip:nl,updateAt:na,updateHead:rc,updateLast:rf,zip:function e(t,n){return void 0===n?function(n){return e(n,t)}:ns(t,n,function(e,t){return[e,t]})},zipWith:ns},Symbol.toStringTag,{value:"Module"}));var rv=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},rx=function(e){return e.length>0},rb=function(e,t){return e<0||e>=t.length},rC=function(e){return function(t){return rv([e],t,!0)}},rS=function(e){return function(t){return rv(rv([],t,!0),[e],!1)}},rw=function(e,t,n){if(rx(n)){var r=rk(n);return r.splice(e,0,t),r}return[t]},rI=function(e,t,n){var r=rk(n);return r[e]=t,r},r_=function(e){return function(t){if(1===t.length)return rz(t);for(var n=[iB(t)],r=iP(t),i=function(t){n.every(function(n){return!e.equals(n,t)})&&n.push(t)},o=0;o<r.length;o++)i(r[o]);return n}},rT=function(e){if(rx(e)){var t=tc();return rN(e.reduce(t.concat,t.empty))}return rz},rO=function(e){var t=r_(e);return function(e){return function(n){return t(ea(n,rB(e)))}}},rR=function(e){return function(t){var n=t.length,r=Math.round(e)%n;if(rb(Math.abs(r),t)||0===r)return rz(t);if(!(r<0))return rR(r-n)(t);var i=r0(-r)(t),o=i[0];return ea(i[1],rB(o))}},rk=e_,rE=function(e){return rx(e)?eA(e):ep},rM=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}},rF=function(e){return rM(function(){return e})},rj=function(e,t){return e<=t?rM(function(t){return e+t})(t-e+1):[e]},rU=function(e){return[iB(e),iP(e)]},rK=function(e){return[iD(e),iW(e)]};function rL(e){return function(t){return t.concat(e)}}function rB(e,t){return t?e.concat(t):function(t){return t.concat(e)}}var rP=function(e){return rv([iW(e)],e.slice(0,-1).reverse(),!0)};function rW(e){return function(t){var n=t.length;if(0===n)return[];for(var r=[],i=t[0],o=[i],a=1;a<n;a++){var u=t[a];e.equals(u,i)?o.push(u):(r.push(o),o=[i=u])}return r.push(o),r}}var rD=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);eI.call(n,o)?n[o].push(i):n[o]=[i]}return n}},rN=function(e){return function(t){return t.slice().sort(e.compare)}},rq=function(e,t){return function(n){return e<0||e>n.length?ep:eA(rw(e,t,n))}},rQ=function(e,t){return rV(e,function(){return t})},rV=function(e,t){return function(n){return rb(e,n)?ep:eA(rI(e,t(n[e]),n))}},rz=rk,rY=function(e){return[e]},rH=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r},rZ=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},rJ=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}},rG=function(e){return function(t){var n=iP(t);return rx(n)?ea(n,rJ(e),rC(iB(t))):rz(t)}},r$=function(e){return function(t){for(var n=rk(e(0,iB(t))),r=1;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},rX=function(e){return function(t){for(var n=e(t),r=n[0],i=n[1],o=[r],a=i;rx(a);){var u=e(a),s=u[0],l=u[1];o.push(s),a=l}return o}},r0=function(e){return function(t){var n=Math.max(1,e);return n>=t.length?[rz(t),[]]:[ea(t.slice(1,n),rC(iB(t))),t.slice(n)]}},r1=function(e){return rX(r0(e))},r2=function(e,t){return ea(e,ih(t))},r6=function(e,t){return ea(e,im(t))},r5=function(e,t){return ea(e,il(t))},r3=function(e,t){return ea(e,ic(t))},r9=function(e,t){return ea(e,id(t))},r4=function(e,t,n){return ea(e,ig(t,n))},r7=function(e){var t=nW(e);return function(e,n){return ea(e,t(n))}},r8=function(e,t,n){return ea(e,iv(t,n))},ie=function(e){var t=ib(e);return function(e,n){return ea(e,t(n))}},it=function(e,t){return ea(e,is(t))},ir=function(e,t,n){return ea(e,iy(t,n))},ii=function(e){var t=nq(e);return function(e,n){return ea(e,t(n))}},io=function(e,t,n){return ea(e,ix(t,n))},ia=function(e){var t=iS(e);return function(e,n){return ea(e,t(n))}},iu=function(e){return function(t){return ea(t,rL(e()))}},is=iu,il=function(e){return ic(function(t){return ea(e,ih(t))})},ic=function(e){return r$(function(t,n){return e(n)})},id=function(e){return function(t){for(var n=iP(t),r=[e(t)];rx(n);)r.push(e(n)),n=iP(n);return r}},ip=id(Z),iA=ic(Z),ih=function(e){return im(function(t,n){return e(n)})},im=function(e){return function(t){for(var n=[e(0,iB(t))],r=1;r<t.length;r++)n.push(e(r,t[r]));return n}},ig=nP,iy=nN,iv=nD,ix=nQ,ib=function(e){var t=iS(e);return function(e){return t(function(t,n){return e(n)})}},iC=function(e){return iS(e)(function(e,t){return t})},iS=function(e){return function(t){return function(n){for(var r=e.map(t(0,iB(n)),rY),i=1;i<n.length;i++)r=e.ap(e.map(r,function(e){return function(t){return ea(e,rS(t))}}),t(i,n[i]));return r}}},iw="NonEmptyArray",iI=function(){return{concat:rB}},i_=function(e){var t=rO(e);return{concat:function(e,n){return t(n)(e)}}},iT={URI:iw,map:r2},iO=eB(iT),iR={URI:iw,map:r2,ap:r5},ik=eO(iR),iE=eR(iR),iM={URI:iw,map:r2,ap:r5,chain:r3},iF=eV(iM),ij=rY(ew),iU=eP(iT),iK=ez(iM),iL=ek(iR),iB=re,iP=function(e){return e.slice(1)},iW=rn,iD=function(e){return e.slice(0,-1)},iN=function(e){return function(t){return t.reduce(e.concat)}},iq=function(e){return function(t){return e(iB(t),iP(t))}},iQ=function(e){return function(t){return e(iD(t),iW(t))}},iV=function(e){return function(t){return rv([e(iB(t))],iP(t),!0)}},iz=function(e){return iV(function(){return e})},iY=function(e){return function(t){return ea(iD(t),rS(e(iW(t))))}},iH=function(e){return iY(function(){return e})},iZ=function(e){return function(t){return rE(t.filter(function(t,n){return e(n,t)}))}};function iJ(e,t){return void 0===t?rC(e):ea(t,rC(e))}var iG=function(e,t){return ea(e,rS(t))};let i$=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:iw,map:r2,alt:it},Applicative:{URI:iw,map:r2,ap:r5,of:rY},Apply:iR,Chain:iM,Comonad:{URI:iw,map:r2,extend:r9,extract:re},Do:ij,Foldable:{URI:iw,reduce:r4,foldMap:r7,reduceRight:r8},FoldableWithIndex:{URI:iw,reduce:r4,foldMap:r7,reduceRight:r8,reduceWithIndex:ir,foldMapWithIndex:ii,reduceRightWithIndex:io},Functor:iT,FunctorWithIndex:{URI:iw,map:r2,mapWithIndex:r6},Monad:{URI:iw,map:r2,ap:r5,of:rY,chain:r3},Pointed:{URI:iw,of:rY},Traversable:{URI:iw,map:r2,reduce:r4,foldMap:r7,reduceRight:r8,traverse:ie,sequence:iC},TraversableWithIndex:{URI:iw,map:r2,mapWithIndex:r6,reduce:r4,foldMap:r7,reduceRight:r8,traverse:ie,sequence:iC,reduceWithIndex:ir,foldMapWithIndex:ii,reduceRightWithIndex:io,traverseWithIndex:ia},URI:iw,alt:is,altW:iu,ap:il,apFirst:ik,apS:iL,apSecond:iE,append:rS,appendW:rS,bind:iK,bindTo:iU,chain:ic,chainFirst:iF,chainWithIndex:r$,chop:rX,chunksOf:r1,concat:rB,concatAll:iN,concatW:rL,cons:iJ,copy:rz,duplicate:ip,extend:id,extract:re,filter:function(e){return iZ(function(t,n){return e(n)})},filterWithIndex:iZ,flap:iO,flatten:iA,fold:ra,foldMap:nW,foldMapWithIndex:nq,fromArray:rE,fromReadonlyNonEmptyArray:rk,getEq:nG,getSemigroup:iI,getShow:nZ,getUnionSemigroup:i_,group:rW,groupBy:rD,groupSort:function(e){var t=rN(e),n=rW(e);return function(e){return rx(e)?n(t(e)):[]}},head:iB,init:iD,insertAt:rq,intercalate:rp,intersperse:rG,isNonEmpty:rx,isOutOfBound:rb,last:iW,makeBy:rM,map:ih,mapWithIndex:im,matchLeft:iq,matchRight:iQ,max:ro,min:ri,modifyAt:rV,modifyHead:iV,modifyLast:iY,nonEmptyArray:{URI:iw,of:rY,map:r2,mapWithIndex:r6,ap:r5,chain:r3,extend:r9,extract:re,reduce:r4,foldMap:r7,reduceRight:r8,traverse:ie,sequence:iC,reduceWithIndex:ir,foldMapWithIndex:ii,reduceRightWithIndex:io,traverseWithIndex:ia,alt:it},of:rY,prepend:rC,prependAll:rJ,prependToAll:rJ,prependW:rC,range:rj,reduce:ig,reduceRight:iv,reduceRightWithIndex:ix,reduceWithIndex:iy,replicate:rF,reverse:rP,rotate:rR,sequence:iC,snoc:iG,sort:rN,sortBy:rT,splitAt:r0,tail:iP,traverse:ib,traverseWithIndex:iS,unappend:rK,uncons:rU,union:rO,uniq:r_,unprepend:rU,unsafeInsertAt:rw,unsafeUpdateAt:rI,unsnoc:rK,unzip:rZ,updateAt:rQ,updateHead:iz,updateLast:iH,zip:function e(t,n){return void 0===n?function(n){return e(n,t)}:rH(t,n,function(e,t){return[e,t]})},zipWith:rH},Symbol.toStringTag,{value:"Module"}));var iX=function(e){return"number"==typeof e},i0={equals:function(e,t){return e===t}},i1={equals:i0.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},i2={equals:i0.equals,compare:i1.compare,top:1/0,bottom:-1/0},i6={concat:function(e,t){return e-t}},i5={concat:function(e,t){return e+t}},i3={concat:function(e,t){return e*t}},i9={concat:i5.concat,empty:0},i4={concat:i3.concat,empty:1},i7={add:i5.concat,zero:0,mul:i3.concat,one:1,sub:i6.concat,degree:function(e){return 1},div:function(e,t){return e/t},mod:function(e,t){return e%t}};let i8=Object.freeze(Object.defineProperty({__proto__:null,Bounded:i2,Eq:i0,Field:i7,MagmaSub:i6,MonoidProduct:i4,MonoidSum:i9,Ord:i1,SemigroupProduct:i3,SemigroupSum:i5,Show:{show:function(e){return JSON.stringify(e)}},isNumber:iX},Symbol.toStringTag,{value:"Module"}));var oe=function(e,t){return{left:e,right:t}},ot=function(e,t){return ea(e,oi(t))},on=function(e,t,n){return ea(e,oo(t,n))},or=function(e){return function(t){return oe(oc(t),e(od(t)))}},oi=function(e){return function(t){return oe(e(oc(t)),od(t))}},oo=function(e,t){return function(n){return oe(e(oc(n)),t(od(n)))}},oa="Separated",ou={URI:oa,map:function(e,t){return ea(e,or(t))}},ol=eB(ou),oc=function(e){return e.left},od=function(e){return e.right};let of=Object.freeze(Object.defineProperty({__proto__:null,Bifunctor:{URI:oa,mapLeft:ot,bimap:on},Functor:ou,URI:oa,bimap:oo,flap:ol,left:oc,map:or,mapLeft:oi,right:od,separated:oe},Symbol.toStringTag,{value:"Module"}));function op(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.separate)}}}function oA(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.compact)}}}function oh(e){return function(t){var n=e.wither(t);return function(e){return function(r){return n(r,function(n){return t.map(e(n),function(e){return e?eA(n):ep})})}}}}let om=Object.freeze(Object.defineProperty({__proto__:null,filterE:oh,wiltDefault:op,witherDefault:oA},Symbol.toStringTag,{value:"Module"}));function og(e,t){return function(n){return n?t.of(void 0):e.zero()}}let oy=Object.freeze(Object.defineProperty({__proto__:null,guard:og},Symbol.toStringTag,{value:"Module"}));var ov=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},ox=function(e){return 0===e.length},ob=function(e,t){return e<=0?uj:t5(t)(e)},oC=function(e,t){return ob(e,function(){return t})},oS=function(e){return ed(e)?uj:[e.value]},ow=function(e){return eh(e)?uj:[e.right]},oI=function(e,t){return function(n){return ex(n)?t(n):e()}},o_=function(e,t){return function(n){return ex(n)?t(re(n),rt(n)):e()}},oT=function(e,t){return function(n){return ex(n)?t(rr(n),rn(n)):e()}},oO=function(e){return function(t){if(ox(t))return uj;for(var n=[],r=0;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},oR=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}},ok=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}},oE=function(e){return e.length};function oM(e,t){return void 0===t?function(t){return oM(e,t)}:tH(e,t)?ep:eA(t[e])}var oF=function(e){return ex(e)?eA(re(e)):ep},oj=function(e){return ex(e)?eA(rn(e)):ep},oU=function(e){return ex(e)?eA(rt(e)):ep},oK=function(e){return ex(e)?eA(rr(e)):ep},oL=function(e){return function(t){return tH(e,t)?t:0===e?uj:t.slice(0,e)}},oB=function(e){return function(t){return tH(e,t)?t:0===e?uj:t.slice(-e)}},oP=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r},oW=function(e){return function(t){return e<=0||ox(t)?t:e>=t.length?uj:t.slice(e,t.length)}},oD=function(e){return function(t){return e<=0||ox(t)?t:e>=t.length?uj:t.slice(0,t.length-e)}},oN=function(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return eA(n);return ep}};function oq(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return eA(t[n]);return ep}}var oQ=function(e){return function(t){for(var n=0;n<t.length;n++){var r=e(t[n]);if(ef(r))return r}return ep}};function oV(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return eA(t[n]);return ep}}var oz=function(e){return function(t){for(var n=t.length-1;n>=0;n--){var r=e(t[n]);if(ef(r))return r}return ep}},oY=function(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return eA(n);return ep}},oH=function(e,t){return function(n){return e<0||e>n.length?ep:eA(tG(e,t,n))}},oZ=function(e,t){return oG(e,function(){return t})},oJ=function(e){return function(t){return tH(e,t)?ep:eA(uE(e,t))}},oG=function(e,t){return function(n){return tH(e,n)?ep:eA(uk(e,t(n[e]),n))}},o$=function(e){return e.length<=1?e:e.slice().reverse()},oX=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t},o0=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t},o1=function(e){return function(t){return t.length<=1?t:t.slice().sort(e.compare)}},o2=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r},o6=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},o5=function(e){var t=nc(e);return function(e){return ex(e)?t(e):e}},o3=function(e){var t=nd(e);return function(e){return ex(e)?t(e):e}},o9=function(e){var t=t2(e);return function(e){return ex(e)?t(e):e}};function o4(e){return function(t,n){if(void 0===n){var r,i=o4(e);return function(e){return i(t,e)}}for(var o=0;o<n.length;o++)if(r=n[o],e.equals(r,t))return!0;return!1}}var o7=function(e){var t=tX(e);return function(e){return ex(e)?t(e):e}},o8=function(e){var t=t0(e);return function(e){return ex(e)?t(e):e}},ae=function(e){var t=np(e);return function(e){return ex(e)?t(e):uj}},at=function(e){return function(t){return e>=1&&ex(t)?nA(e)(t):ox(t)?[t,uj]:[uj,t]}},an=function(e){var t=nh(e);return function(e){return ex(e)?t(e):uj}},ar=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return oS(e.apply(void 0,t))}},ai=function(e){return function(t){return ox(t)?e:ox(e)?t:t.concat(e)}};function ao(e){var t=t1(e);return function(n,r){if(void 0===r){var i=ao(e);return function(e){return i(e,n)}}return ex(n)&&ex(r)?t(r)(n):ex(n)?n:r}}function aa(e){var t=o4(e);return function(n,r){if(void 0===r){var i=aa(e);return function(e){return i(e,n)}}return n.filter(function(e){return t(e,r)})}}function au(e){var t=o4(e);return function(n,r){if(void 0===r){var i=au(e);return function(e){return i(e,n)}}return n.filter(function(e){return!t(e,r)})}}var as=function(e,t){return ea(e,aB(t))},al=function(e,t){return ea(e,aP(t))},ac=function(e,t){return ea(e,aU(t))},ad=function(e,t){return ea(e,aK(t))},af=function(e,t){return ea(e,aD(t))},ap=function(e,t){return ea(e,aq(t))},aA=function(e,t){return ea(e,aV(t))},ah=function(e,t){return ea(e,aY(t))},am=function(e,t){return ea(e,az(t))},ag=function(e,t){return ea(e,aH(t))},ay=function(e,t){return ea(e,aj(t))},av=function(e,t,n){return ea(e,aX(t,n))},ax=function(e){var t=a0(e);return function(e,n){return ea(e,t(n))}},ab=function(e,t,n){return ea(e,a2(t,n))},aC=function(e,t,n){return ea(e,a1(t,n))},aS=function(e){var t=a$(e);return function(e,n){return ea(e,t(n))}},aw=function(e,t,n){return ea(e,a6(t,n))},aI=function(e,t){return ea(e,aN(t))},a_=function(e,t){return ea(e,aZ(t))},aT=function(e,t){return ea(e,aJ(t))},aO=function(e){var t=a5(e);return function(e,n){return ea(e,t(n))}},aR=function(e){var t=a9(e);return function(e,n){return ea(e,t(n))}},ak=function(e,t){return ea(e,uC(t))},aE=function(e,t){return ea(e,uS(t))},aM=function(){return uj},aF=function(e){return function(t){return t.concat(e())}},aj=aF,aU=function(e){return aK(function(t){return ea(e,aB(t))})},aK=function(e){return function(t){return ea(t,oO(function(t,n){return e(n)}))}},aL=aK(Z),aB=function(e){return function(t){return t.map(function(t){return e(t)})}},aP=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}},aW=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return oe(t,n)},aD=function(e){return function(t){return t.filter(e)}},aN=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);ef(i)&&n.push(i.value)}return n}},aq=function(e){return aN(function(t,n){return e(n)})},aQ=aq(Z),aV=function(e){return az(function(t,n){return e(n)})},az=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return oe(n,r)}},aY=function(e){return aH(function(t,n){return e(n)})},aH=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return oe(n,r)}},aZ=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}},aJ=function(e){return function(t){return t.map(function(n,r){return e(t.slice(r))})}},aG=aJ(Z),a$=function(e){return function(t){return function(n){return n.reduce(function(n,r,i){return e.concat(n,t(i,r))},e.empty)}}},aX=function(e,t){return a1(e,function(e,n,r){return t(n,r)})},a0=function(e){var t=a$(e);return function(e){return t(function(t,n){return e(n)})}},a1=function(e,t){return function(n){for(var r=n.length,i=e,o=0;o<r;o++)i=t(o,i,n[o]);return i}},a2=function(e,t){return a6(e,function(e,n,r){return t(n,r)})},a6=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}},a5=function(e){var t=a9(e);return function(e){return t(function(t,n){return e(n)})}},a3=function(e){return function(t){return av(t,e.of(aM()),function(t,n){return e.ap(e.map(t,function(e){return function(t){return ea(e,tJ(t))}}),n)})}},a9=function(e){return function(t){return a1(e.of(aM()),function(n,r,i){return e.ap(e.map(r,function(e){return function(t){return ea(e,tJ(t))}}),t(n,i))})}},a4=function(e){var t=uw(e);return function(e){return function(n){return t(n,e)}}},a7=function(e){var t=uI(e);return function(e){return function(n){return t(n,e)}}},a8=function(e,t){for(var n=[],r=e;;){var i=t(r);if(ef(i)){var o=i.value,a=o[0],u=o[1];n.push(a),r=u}else break}return n},ue="ReadonlyArray",ut=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}},un=function(){return{concat:function(e,t){return ox(e)?t:ox(t)?e:e.concat(t)}}},ur=function(){return{concat:un().concat,empty:uj}},ui=function(e){return e6(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})},uo=function(e){return to(function(t,n){for(var r=t.length,i=n.length,o=Math.min(r,i),a=0;a<o;a++){var u=e.compare(t[a],n[a]);if(0!==u)return u}return i1.compare(r,i)})},ua=function(e){var t=ao(e);return{concat:function(e,n){return t(n)(e)}}},uu=function(e){return{concat:ua(e).concat,empty:uj}},us=function(e){var t=aa(e);return{concat:function(e,n){return t(n)(e)}}},ul=function(e){var t=au(e);return{concat:function(e,n){return t(n)(e)}}},uc={URI:ue,map:as},ud=eB(uc),uf={URI:ue,of:ev},up={URI:ue,map:as,ap:ac},uA=eO(up),uh=eR(up),um={URI:ue,map:as,ap:ac,chain:ad},ug=eV(um),uy={URI:ue,zero:aM},uv=og(uy,uf),ux={URI:ue,compact:aQ,separate:aW},ub={URI:ue,map:as,reduce:av,foldMap:ax,reduceRight:ab,traverse:aO,sequence:a3},uC=function(e){return function(t){for(var n=ov([],e(t),!0),r=[];n.length>0;){var i=n.shift();eh(i)?n.unshift.apply(n,e(i.left)):r.push(i.right)}return r}},uS=function(e){return function(t){var n=e(t),r=[],i=[];function o(t){eh(t)?e(t.left).forEach(function(e){return r.push(e)}):i.push(t.right)}for(var a=0;a<n.length;a++)o(n[a]);for(;r.length>0;)o(r.shift());return i}},uw=oA(ub,ux),uI=op(ub,ux),u_={URI:ue,map:as,compact:aQ,separate:aW,filter:af,filterMap:ap,partition:aA,partitionMap:ah,reduce:av,foldMap:ax,reduceRight:ab,traverse:aO,sequence:a3,wither:uw,wilt:uI},uT=oh(u_),uO={URI:ue,fromEither:ow},uR=e$(uO),uk=function(e,t,n){return ex(n)?t$(e,t,n):n},uE=function(e,t){var n=t.slice();return n.splice(e,1),n},uM=function(e){return e.slice()},uF=function(e){return ox(e)?uj:e.slice()},uj=eS;function uU(e){return function(t){return t.every(e)}}var uK=function(e){return function(t){return t.some(e)}},uL=function(e){var t=rp(e);return function(n){return oI(function(){return e.empty},t(n))}},uB=ev(ew),uP=eP(uc),uW=ez(um),uD=ek(up);let uN=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:ue,map:as,alt:ay},Alternative:{URI:ue,map:as,ap:ac,of:ev,alt:ay,zero:aM},Applicative:{URI:ue,map:as,ap:ac,of:ev},Apply:up,Chain:um,ChainRecBreadthFirst:{URI:ue,map:as,ap:ac,chain:ad,chainRec:aE},ChainRecDepthFirst:{URI:ue,map:as,ap:ac,chain:ad,chainRec:ak},Compactable:ux,Do:uB,Extend:{URI:ue,map:as,extend:aT},Filterable:{URI:ue,map:as,compact:aQ,separate:aW,filter:af,filterMap:ap,partition:aA,partitionMap:ah},FilterableWithIndex:{URI:ue,map:as,mapWithIndex:al,compact:aQ,separate:aW,filter:af,filterMap:ap,partition:aA,partitionMap:ah,partitionMapWithIndex:ag,partitionWithIndex:am,filterMapWithIndex:aI,filterWithIndex:a_},Foldable:{URI:ue,reduce:av,foldMap:ax,reduceRight:ab},FoldableWithIndex:{URI:ue,reduce:av,foldMap:ax,reduceRight:ab,reduceWithIndex:aC,foldMapWithIndex:aS,reduceRightWithIndex:aw},FromEither:uO,Functor:uc,FunctorWithIndex:{URI:ue,map:as,mapWithIndex:al},Monad:{URI:ue,map:as,ap:ac,of:ev,chain:ad},Pointed:uf,Traversable:ub,TraversableWithIndex:{URI:ue,map:as,mapWithIndex:al,reduce:av,foldMap:ax,reduceRight:ab,reduceWithIndex:aC,foldMapWithIndex:aS,reduceRightWithIndex:aw,traverse:aO,sequence:a3,traverseWithIndex:aR},URI:ue,Unfoldable:{URI:ue,unfold:a8},Witherable:u_,Zero:uy,_chainRecBreadthFirst:aE,_chainRecDepthFirst:ak,alt:aj,altW:aF,ap:aU,apFirst:uA,apS:uD,apSecond:uh,append:tJ,appendW:tJ,bind:uW,bindTo:uP,chain:aK,chainFirst:ug,chainRecBreadthFirst:uS,chainRecDepthFirst:uC,chainWithIndex:oO,chop:ae,chunksOf:an,compact:aQ,comprehension:function(e,t,n){void 0===n&&(n=function(){return!0});var r=function(e,i){return ex(i)?ea(re(i),aK(function(t){return r(ea(e,tJ(t)),rt(i))})):n.apply(void 0,e)?[t.apply(void 0,e)]:uj};return r(uj,e)},concat:ai,concatW:ai,cons:rh,deleteAt:oJ,difference:au,dropLeft:oW,dropLeftWhile:function(e){return function(t){var n=oP(t,e);return 0===n?t:n===t.length?uj:t.slice(n)}},dropRight:oD,duplicate:aG,elem:o4,empty:uj,every:uU,exists:uK,extend:aJ,filter:aD,filterE:uT,filterMap:aq,filterMapWithIndex:aN,filterWithIndex:aZ,findFirst:oq,findFirstMap:oQ,findIndex:oN,findLast:oV,findLastIndex:oY,findLastMap:oz,flap:ud,flatten:aL,foldLeft:o_,foldMap:a0,foldMapWithIndex:a$,foldRight:oT,fromArray:uF,fromEither:ow,fromEitherK:uR,fromOption:oS,fromOptionK:ar,fromPredicate:function(e){return function(t){return e(t)?[t]:uj}},getDifferenceMagma:ul,getEq:ui,getIntersectionSemigroup:us,getMonoid:ur,getOrd:uo,getSemigroup:un,getShow:ut,getUnionMonoid:uu,getUnionSemigroup:ua,guard:uv,head:oF,init:oK,insertAt:oH,intercalate:uL,intersection:aa,intersperse:o3,isEmpty:ox,isNonEmpty:ex,isOutOfBound:tH,last:oj,lefts:o0,lookup:oM,makeBy:ob,map:aB,mapWithIndex:aP,match:oI,matchLeft:o_,matchLeftW:o_,matchRight:oT,matchRightW:oT,matchW:oI,modifyAt:oG,of:ev,partition:aV,partitionMap:aY,partitionMapWithIndex:aH,partitionWithIndex:az,prepend:tZ,prependAll:o5,prependToAll:o5,prependW:tZ,range:t9,readonlyArray:{URI:ue,compact:aQ,separate:aW,map:as,ap:ac,of:ev,chain:ad,filter:af,filterMap:ap,partition:aA,partitionMap:ah,mapWithIndex:al,partitionMapWithIndex:ag,partitionWithIndex:am,filterMapWithIndex:aI,filterWithIndex:a_,alt:ay,zero:aM,unfold:a8,reduce:av,foldMap:ax,reduceRight:ab,traverse:aO,sequence:a3,reduceWithIndex:aC,foldMapWithIndex:aS,reduceRightWithIndex:aw,traverseWithIndex:aR,extend:aT,wither:uw,wilt:uI},reduce:aX,reduceRight:a2,reduceRightWithIndex:a6,reduceWithIndex:a1,replicate:oC,reverse:o$,rights:oX,rotate:o9,scanLeft:oR,scanRight:ok,separate:aW,sequence:a3,size:oE,snoc:rm,some:uK,sort:o1,sortBy:o8,spanLeft:function(e){return function(t){var n,r=at(oP(t,e))(t);return{init:r[0],rest:r[1]}}},splitAt:at,tail:oU,takeLeft:oL,takeLeftWhile:function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];if(!e(i))break;n.push(i)}var o=n.length;return o===t.length?t:0===o?uj:n}},takeRight:oB,toArray:uM,traverse:a5,traverseWithIndex:a9,unfold:a8,union:ao,uniq:o7,unsafeDeleteAt:uE,unsafeInsertAt:tG,unsafeUpdateAt:uk,unzip:o6,updateAt:oZ,wilt:a7,wither:a4,zero:aM,zip:function e(t,n){return void 0===n?function(n){return e(n,t)}:o2(t,n,function(e,t){return[e,t]})},zipWith:o2},Symbol.toStringTag,{value:"Module"}));var uq=function(e){return 0===e.length},uQ=function(e,t){return e<=0?[]:rM(t)(e)},uV=function(e,t){return uQ(e,function(){return t})},uz=function(e){return ed(e)?[]:[e.value]},uY=function(e){return eh(e)?[]:[e.right]},uH=function(e,t){return function(n){return rx(n)?t(n):e()}},uZ=function(e,t){return function(n){return rx(n)?t(iB(n),iP(n)):e()}},uJ=function(e,t){return function(n){return rx(n)?t(iD(n),iW(n)):e()}},uG=function(e){return function(t){for(var n=[],r=0;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},u$=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}},uX=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}},u0=function(e){return e.length},u1=function(e){return rx(e)?eA(iP(e)):ep},u2=function(e){return rx(e)?eA(iD(e)):ep},u6=function(e){return function(t){return rb(e,t)?se(t):t.slice(0,e)}},u5=function(e){return function(t){return rb(e,t)?se(t):0===e?[]:t.slice(-e)}},u3=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r},u9=function(e){return function(t){return e<=0||uq(t)?se(t):e>=t.length?[]:t.slice(e,t.length)}},u4=function(e){return function(t){return e<=0||uq(t)?se(t):e>=t.length?[]:t.slice(0,t.length-e)}};function u7(e){return oq(e)}function u8(e){return oV(e)}var se=function(e){return e.slice()},st=function(e,t){return function(n){return e<0||e>n.length?ep:eA(lW(e,t,n))}},sn=function(e,t){return si(e,function(){return t})},sr=function(e){return function(t){return rb(e,t)?ep:eA(lN(e,t))}},si=function(e,t){return function(n){return rb(e,n)?ep:eA(lD(e,t(n[e]),n))}},so=function(e){return uq(e)?[]:e.slice().reverse()},sa=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t},su=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t},ss=function(e){return function(t){return t.length<=1?se(t):t.slice().sort(e.compare)}},sl=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r},sc=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},sd=function(e){var t=rJ(e);return function(e){return rx(e)?t(e):[]}},sf=function(e){var t=rG(e);return function(e){return rx(e)?t(e):se(e)}},sp=function(e){var t=rR(e);return function(e){return rx(e)?t(e):se(e)}},sA=function(e){var t=r_(e);return function(e){return rx(e)?t(e):se(e)}},sh=function(e){var t=rT(e);return function(e){return rx(e)?t(e):se(e)}},sm=function(e){var t=rX(e);return function(e){return rx(e)?t(e):[]}},sg=function(e){return function(t){return e>=1&&rx(t)?r0(e)(t):uq(t)?[se(t),[]]:[[],se(t)]}},sy=function(e){var t=r1(e);return function(e){return rx(e)?t(e):[]}},sv=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return uz(e.apply(void 0,t))}},sx=function(e){return function(t){return uq(t)?se(e):uq(e)?se(t):t.concat(e)}};function sb(e){var t=rO(e);return function(n,r){if(void 0===r){var i=sb(e);return function(e){return i(e,n)}}return rx(n)&&rx(r)?t(r)(n):rx(n)?se(n):se(r)}}function sC(e){var t=o4(e);return function(n,r){if(void 0===r){var i=sC(e);return function(e){return i(e,n)}}return n.filter(function(e){return t(e,r)})}}function sS(e){var t=o4(e);return function(n,r){if(void 0===r){var i=sS(e);return function(e){return i(e,n)}}return n.filter(function(e){return!t(e,r)})}}var sw=function(e,t){return ea(e,sY(t))},sI=function(e,t){return ea(e,sG(t))},s_=function(e,t){return ea(e,sH(t))},sT=function(e,t){return ea(e,sZ(t))},sO=function(e,t){return ea(e,s2(t))},sR=function(e,t){return ea(e,sX(t))},sk=function(e,t){return ea(e,s6(t))},sE=function(e,t){return ea(e,s3(t))},sM=function(e,t){return ea(e,s5(t))},sF=function(e,t){return ea(e,s9(t))},sj=function(e,t){return ea(e,s7(t))},sU=function(e,t,n){return ea(e,li(t,n))},sK=function(e){var t=ln(e);return function(e,n){return ea(e,t(n))}},sL=function(e,t,n){return ea(e,la(t,n))},sB=function(e,t,n){return ea(e,lo(t,n))},sP=function(e){var t=lr(e);return function(e,n){return ea(e,t(n))}},sW=function(e,t,n){return ea(e,lu(t,n))},sD=function(e,t){return ea(e,s$(t))},sN=function(e,t){return ea(e,s8(t))},sq=function(e,t){return ea(e,le(t))},sQ=function(e){var t=ls(e);return function(e,n){return ea(e,t(n))}},sV=function(e){var t=lc(e);return function(e,n){return ea(e,t(n))}},sz=function(){return[]},sY=function(e){return function(t){return t.map(function(t){return e(t)})}},sH=function(e){return sZ(function(t){return ea(e,sY(t))})},sZ=function(e){return function(t){return ea(t,uG(function(t,n){return e(n)}))}},sJ=sZ(Z),sG=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}},s$=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);ef(i)&&n.push(i.value)}return n}},sX=function(e){return s$(function(t,n){return e(n)})},s0=sX(Z),s1=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return oe(t,n)},s2=function(e){return function(t){return t.filter(e)}},s6=function(e){return s5(function(t,n){return e(n)})},s5=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return oe(n,r)}},s3=function(e){return s9(function(t,n){return e(n)})},s9=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return oe(n,r)}},s4=function(e){return function(t){return t.concat(e())}},s7=s4,s8=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}},le=function(e){return function(t){return t.map(function(n,r){return e(t.slice(r))})}},lt=le(Z),ln=a0,lr=a$,li=aX,lo=a1,la=a2,lu=a6,ls=function(e){var t=lc(e);return function(e){return t(function(t,n){return e(n)})}},ll=function(e){return function(t){return sU(t,e.of(sz()),function(t,n){return e.ap(e.map(t,function(e){return function(t){return ea(e,rS(t))}}),n)})}},lc=function(e){return function(t){return lo(e.of(sz()),function(n,r,i){return e.ap(e.map(r,function(e){return function(t){return ea(e,rS(t))}}),t(n,i))})}},ld=function(e){var t=lj(e);return function(e){return function(n){return t(n,e)}}},lf=function(e){var t=lU(e);return function(e){return function(n){return t(n,e)}}},lp=function(e,t){for(var n=[],r=e;;){var i=t(r);if(ef(i)){var o=i.value,a=o[0],u=o[1];n.push(a),r=u}else break}return n},lA="Array",lh=function(){return{concat:function(e,t){return e.concat(t)}}},lm=function(){return{concat:lh().concat,empty:[]}},lg=function(e){var t=sb(e);return{concat:function(e,n){return t(n)(e)}}},ly=function(e){return{concat:lg(e).concat,empty:[]}},lv=function(e){var t=sC(e);return{concat:function(e,n){return t(n)(e)}}},lx=function(e){var t=sS(e);return{concat:function(e,n){return t(n)(e)}}},lb={URI:lA,map:sw},lC=eB(lb),lS={URI:lA,of:rY},lw={URI:lA,map:sw,ap:s_},lI=eO(lw),l_=eR(lw),lT={URI:lA,map:sw,ap:s_,chain:sT},lO=eV(lT),lR={URI:lA,zero:sz},lk=og(lR,lS),lE={URI:lA,compact:s0,separate:s1},lM={URI:lA,reduce:sU,foldMap:sK,reduceRight:sL},lF={URI:lA,map:sw,reduce:sU,foldMap:sK,reduceRight:sL,traverse:sQ,sequence:ll},lj=oA(lF,lE),lU=op(lF,lE),lK={URI:lA,map:sw,compact:s0,separate:s1,filter:sO,filterMap:sR,partition:sk,partitionMap:sE,reduce:sU,foldMap:sK,reduceRight:sL,traverse:sQ,sequence:ll,wither:lj,wilt:lU},lL=oh(lK),lB={URI:lA,fromEither:uY},lP=e$(lB),lW=rw,lD=function(e,t,n){return rx(n)?rI(e,t,n):[]},lN=function(e,t){var n=t.slice();return n.splice(e,1),n},lq=function(e){return function(t){return t.some(e)}},lQ=rY(ew),lV=eP(lb),lz=ez(lT),lY=ek(lw);let lH=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:lA,map:sw,alt:sj},Alternative:{URI:lA,map:sw,ap:s_,of:rY,alt:sj,zero:sz},Applicative:{URI:lA,map:sw,ap:s_,of:rY},Apply:lw,Chain:lT,ChainRecBreadthFirst:{URI:lA,map:sw,ap:s_,chain:sT,chainRec:aE},ChainRecDepthFirst:{URI:lA,map:sw,ap:s_,chain:sT,chainRec:ak},Compactable:lE,Do:lQ,Extend:{URI:lA,map:sw,extend:sq},Filterable:{URI:lA,map:sw,compact:s0,separate:s1,filter:sO,filterMap:sR,partition:sk,partitionMap:sE},FilterableWithIndex:{URI:lA,map:sw,mapWithIndex:sI,compact:s0,separate:s1,filter:sO,filterMap:sR,partition:sk,partitionMap:sE,partitionMapWithIndex:sF,partitionWithIndex:sM,filterMapWithIndex:sD,filterWithIndex:sN},Foldable:lM,FoldableWithIndex:{URI:lA,reduce:sU,foldMap:sK,reduceRight:sL,reduceWithIndex:sB,foldMapWithIndex:sP,reduceRightWithIndex:sW},FromEither:lB,Functor:lb,FunctorWithIndex:{URI:lA,map:sw,mapWithIndex:sI},Monad:{URI:lA,map:sw,ap:s_,of:rY,chain:sT},Pointed:lS,Traversable:lF,TraversableWithIndex:{URI:lA,map:sw,mapWithIndex:sI,reduce:sU,foldMap:sK,reduceRight:sL,reduceWithIndex:sB,foldMapWithIndex:sP,reduceRightWithIndex:sW,traverse:sQ,sequence:ll,traverseWithIndex:sV},URI:lA,Unfoldable:{URI:lA,unfold:lp},Witherable:lK,Zero:lR,alt:s7,altW:s4,ap:sH,apFirst:lI,apS:lY,apSecond:l_,append:rS,appendW:rS,array:{URI:lA,compact:s0,separate:s1,map:sw,ap:s_,of:rY,chain:sT,filter:sO,filterMap:sR,partition:sk,partitionMap:sE,mapWithIndex:sI,partitionMapWithIndex:sF,partitionWithIndex:sM,filterMapWithIndex:sD,filterWithIndex:sN,alt:sj,zero:sz,unfold:lp,reduce:sU,foldMap:sK,reduceRight:sL,traverse:sQ,sequence:ll,reduceWithIndex:sB,foldMapWithIndex:sP,reduceRightWithIndex:sW,traverseWithIndex:sV,extend:sq,wither:lj,wilt:lU},bind:lz,bindTo:lV,chain:sZ,chainFirst:lO,chainRecBreadthFirst:uS,chainRecDepthFirst:uC,chainWithIndex:uG,chop:sm,chunksOf:sy,compact:s0,comprehension:function(e,t,n){void 0===n&&(n=function(){return!0});var r=function(e,i){return rx(i)?ea(iB(i),sZ(function(t){return r(ea(e,rS(t)),iP(i))})):n.apply(void 0,e)?[t.apply(void 0,e)]:[]};return r([],e)},concat:sx,concatW:sx,cons:iJ,copy:se,deleteAt:sr,difference:sS,dropLeft:u9,dropLeftWhile:function(e){return function(t){return t.slice(u3(t,e))}},dropRight:u4,duplicate:lt,elem:o4,empty:[],every:uU,exists:lq,extend:le,filter:s2,filterE:lL,filterMap:sX,filterMapWithIndex:s$,filterWithIndex:s8,findFirst:u7,findFirstMap:oQ,findIndex:oN,findLast:u8,findLastIndex:oY,findLastMap:oz,flap:lC,flatten:sJ,foldLeft:uZ,foldMap:ln,foldMapWithIndex:lr,foldRight:uJ,fromEither:uY,fromEitherK:lP,fromOption:uz,fromOptionK:sv,fromPredicate:function(e){return function(t){return e(t)?[t]:[]}},getDifferenceMagma:lx,getEq:ui,getIntersectionSemigroup:lv,getMonoid:lm,getOrd:uo,getSemigroup:lh,getShow:ut,getUnionMonoid:ly,getUnionSemigroup:lg,guard:lk,head:oF,init:u2,insertAt:st,intercalate:uL,intersection:sC,intersperse:sf,isEmpty:uq,isNonEmpty:rx,isOutOfBound:rb,last:oj,lefts:su,lookup:oM,makeBy:uQ,map:sY,mapWithIndex:sG,match:uH,matchLeft:uZ,matchLeftW:uZ,matchRight:uJ,matchRightW:uJ,matchW:uH,modifyAt:si,of:rY,partition:s6,partitionMap:s3,partitionMapWithIndex:s9,partitionWithIndex:s5,prepend:rC,prependAll:sd,prependToAll:sd,prependW:rC,range:rj,reduce:li,reduceRight:la,reduceRightWithIndex:lu,reduceWithIndex:lo,replicate:uV,reverse:so,rights:sa,rotate:sp,scanLeft:u$,scanRight:uX,separate:s1,sequence:ll,size:u0,snoc:iG,some:lq,sort:ss,sortBy:sh,spanLeft:function(e){return function(t){var n,r=sg(u3(t,e))(t);return{init:r[0],rest:r[1]}}},splitAt:sg,tail:u1,takeLeft:u6,takeLeftWhile:function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];if(!e(i))break;n.push(i)}return n}},takeRight:u5,traverse:ls,traverseWithIndex:lc,unfold:lp,union:sb,uniq:sA,unsafeDeleteAt:lN,unsafeInsertAt:lW,unsafeUpdateAt:lD,unzip:sc,updateAt:sn,wilt:lf,wither:ld,zero:sz,zip:function e(t,n){return void 0===n?function(n){return e(n,t)}:sl(t,n,function(e,t){return[e,t]})},zipWith:sl},Symbol.toStringTag,{value:"Module"})),lZ=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var lJ=function(e){return"boolean"==typeof e},lG=function(e,t){return function(n){return n?t():e()}},l$={equals:function(e,t){return e===t}},lX={concat:function(e,t){return e&&t}},l0={concat:function(e,t){return e||t}},l1={concat:lX.concat,empty:!0},l2={concat:l0.concat,empty:!1},l6={equals:l$.equals,compare:function(e,t){return e<t?-1:e>t?1:0}};let l5=Object.freeze(Object.defineProperty({__proto__:null,BooleanAlgebra:{meet:function(e,t){return e&&t},join:function(e,t){return e||t},zero:!1,one:!0,implies:function(e,t){return!e||t},not:function(e){return!e}},Eq:l$,MonoidAll:l1,MonoidAny:l2,Ord:l6,SemigroupAll:lX,SemigroupAny:l0,Show:{show:function(e){return JSON.stringify(e)}},fold:lG,foldW:lG,isBoolean:lJ,match:lG,matchW:lG},Symbol.toStringTag,{value:"Module"}));var l3=function(e){return{meet:function(t,n){return e.join(t,n)},join:function(t,n){return e.meet(t,n)},zero:e.one,one:e.zero,implies:function(t,n){return e.join(e.not(t),n)},not:e.not}};let l9=Object.freeze(Object.defineProperty({__proto__:null,booleanAlgebraBoolean:{meet:function(e,t){return e&&t},join:function(e,t){return e||t},zero:!1,one:!0,implies:function(e,t){return!e||t},not:function(e){return!e}},booleanAlgebraVoid:{meet:function(){},join:function(){},zero:void 0,one:void 0,implies:function(){},not:function(){}},getDualBooleanAlgebra:l3,getFunctionBooleanAlgebra:q,reverse:l3},Symbol.toStringTag,{value:"Module"}));var l4=function(e){return tx(e)(e.bottom,e.top)},l7=function(e){var t=tu(e);return{equals:t.equals,compare:t.compare,top:e.bottom,bottom:e.top}},l8={equals:tC.equals,compare:tC.compare,top:1/0,bottom:-1/0};let ce=Object.freeze(Object.defineProperty({__proto__:null,boundedNumber:l8,clamp:l4,reverse:l7},Symbol.toStringTag,{value:"Module"}));function ct(e){return{meet:ty(e),join:tv(e)}}let cn=Object.freeze(Object.defineProperty({__proto__:null,getMinMaxDistributiveLattice:ct},Symbol.toStringTag,{value:"Module"})),cr=Object.freeze(Object.defineProperty({__proto__:null,getMinMaxBoundedDistributiveLattice:function(e){var t=ct(e);return function(e,n){return{join:t.join,meet:t.meet,zero:e,one:n}}}},Symbol.toStringTag,{value:"Module"})),ci=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),co=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ca=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),cu=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var cs=function(e,t){for(var n=t(e);"Left"===n._tag;)n=t(n.left);return n.right};let cl=Object.freeze(Object.defineProperty({__proto__:null,tailRec:cs},Symbol.toStringTag,{value:"Module"}));function cc(e,t){return function(n,r){return t.compose(e.right(r),e.left(n))}}function cd(e,t){var n=cc(e,t);return function(r,i){return t.compose(e.promap(t.id(),function(e){return"Left"===e._tag?e.left:e.right},Z),n(r,i))}}let cf=Object.freeze(Object.defineProperty({__proto__:null,fanIn:cd,fanin:function(e){return cd(e,e)},split:cc,splitChoice:function(e){return cc(e,e)}},Symbol.toStringTag,{value:"Module"})),cp=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var cA=function(e,t){return ea(e,ch(t))},ch=function(e){return function(t){return et(e,t)}},cm="Predicate",cg=function(){return{concat:function(e,t){return ea(e,cC(t))}}},cy=function(){return{concat:cg().concat,empty:$}},cv=function(){return{concat:function(e,t){return ea(e,cS(t))}}},cx=function(){return{concat:cv().concat,empty:G}},cb=function(e){return function(t){return!e(t)}},cC=function(e){return function(t){return function(n){return t(n)||e(n)}}},cS=function(e){return function(t){return function(n){return t(n)&&e(n)}}};let cw=Object.freeze(Object.defineProperty({__proto__:null,Contravariant:{URI:cm,contramap:cA},URI:cm,and:cS,contramap:ch,getMonoidAll:cx,getMonoidAny:cy,getSemigroupAll:cv,getSemigroupAny:cg,not:cb,or:cC},Symbol.toStringTag,{value:"Module"}));function cI(e){return function(t){return e(t)?eA(t):ep}}var c_=function(e){return"Right"===e._tag?ep:eA(e.left)},cT=function(e){return"Left"===e._tag?ep:eA(e.right)},cO=function(e,t){return ea(e,cz(t))},cR=function(e,t){return ea(e,cZ(t))},ck=function(e,t){return ea(e,c$(t))},cE=function(e,t,n){return ea(e,c0(t,n))},cM=function(e){var t=c1(e);return function(e,n){return ea(e,t(n))}},cF=function(e,t,n){return ea(e,c2(t,n))},cj=function(e){var t=dl(e);return function(e,n){return ea(e,t(n))}},cU=function(e,t){return ea(e,c5(t))},cK=function(e,t){return ea(e,dr(t))},cL=function(e,t){return ea(e,di(t))},cB=function(e,t){return ea(e,c7(t))},cP=function(e,t){return ea(e,da(t))},cW=function(e,t){return ea(e,du(t))},cD="Option",cN=function(e){return{show:function(t){return dv(t)?"none":"some(".concat(e.show(t.value),")")}}},cq=function(e){return{equals:function(t,n){return t===n||(dv(t)?dv(n):!dv(n)&&e.equals(t.value,n.value))}}},cQ=function(e){return{equals:cq(e).equals,compare:function(t,n){return t===n?0:dy(t)?dy(n)?e.compare(t.value,n.value):1:-1}}},cV=function(e){return{concat:function(t,n){return dv(t)?n:dv(n)?t:eA(e.concat(t.value,n.value))},empty:ep}},cz=function(e){return function(t){return dv(t)?ep:eA(e(t.value))}},cY={URI:cD,map:cO},cH={URI:cD,of:eA},cZ=function(e){return function(t){return dv(t)||dv(e)?ep:eA(t.value(e.value))}},cJ={URI:cD,map:cO,ap:cR},cG={URI:cD,map:cO,ap:cR,of:eA},c$=function(e){return function(t){return dv(t)?ep:e(t.value)}},cX={URI:cD,map:cO,ap:cR,chain:ck},c0=function(e,t){return function(n){return dv(n)?e:t(e,n.value)}},c1=function(e){return function(t){return function(n){return dv(n)?e.empty:t(n.value)}}},c2=function(e,t){return function(n){return dv(n)?e:t(n.value,e)}},c6=function(e){return function(t){return dv(t)?e():t}},c5=c6,c3=function(){return ep},c9={URI:cD,zero:c3},c4=og(c9,cH),c7=function(e){return function(t){return dv(t)?ep:eA(e(t))}},c8=c$(Z),de=oe(ep,ep),dt=function(e){return dv(e)?de:oe(c_(e.value),cT(e.value))},dn={URI:cD,compact:c8,separate:dt},dr=function(e){return function(t){return dv(t)?ep:e(t.value)?t:ep}},di=function(e){return function(t){return dv(t)?ep:e(t.value)}},da=function(e){return function(t){return oe(cK(t,cb(e)),cK(t,e))}},du=function(e){return et(cz(e),dt)},ds={URI:cD,map:cO,compact:c8,separate:dt,filter:cK,filterMap:cL,partition:cP,partitionMap:cW},dl=function(e){return function(t){return function(n){return dv(n)?e.of(ep):e.map(t(n.value),eA)}}},dc=function(e){return function(t){return dv(t)?e.of(ep):e.map(t.value,eA)}},dd={URI:cD,map:cO,reduce:cE,foldMap:cM,reduceRight:cF,traverse:cj,sequence:dc},df=oA(dd,dn),dp=op(dd,dn),dA=function(e){var t=df(e);return function(e){return function(n){return t(n,e)}}},dh=function(e){var t=dp(e);return function(e){return function(n){return t(n,e)}}},dm=function(){return ep},dg={URI:cD,fromEither:cT},dy=ef,dv=function(e){return"None"===e._tag},dx=function(e,t){return function(n){return dv(n)?e():t(n.value)}},db=function(e){return function(t){return dv(t)?e():t.value}},dC=eB(cY),dS=eO(cJ),dw=eR(cJ),dI=eV(cX),d_=c7(Z),dT=e$(dg),dO=eX(dg,cX),dR=e0(dg,cX),dk=function(e){return null==e?ep:eA(e)},dE=function(e){try{return eA(e())}catch{return ep}},dM=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return dE(function(){return e.apply(void 0,t)})}},dF=function(e){return et(e,dk)},dj=function(e){return function(t){return dv(t)?ep:dk(e(t.value))}},dU=dx(X,Z),dK=dx(ee,Z),dL=function(e){return function(t){return!dv(t)&&e(t.value)}},dB=eA(ew),dP=eP(cY),dW=ez(cX),dD=ek(cJ),dN=eA(eS),dq=function(e){return function(t){var n=e(0,eb(t));if(dv(n))return ep;for(var r=[n.value],i=1;i<t.length;i++){var o=e(i,t[i]);if(dv(o))return ep;r.push(o.value)}return eA(r)}},dQ=function(e){var t=dq(e);return function(e){return ex(e)?t(e):dN}},dV=function(e){return dQ(function(t,n){return e(n)})},dz=dV(Z),dY={URI:cD,map:cO,of:eA,ap:cR,chain:ck,reduce:cE,foldMap:cM,reduceRight:cF,traverse:cj,sequence:dc,zero:c3,alt:cU,extend:cB,compact:c8,separate:dt,filter:cK,filterMap:cL,partition:cP,partitionMap:cW,wither:df,wilt:dp,throwError:dm},dH=eE(cJ),dZ=eN(cG),dJ=function(){return cV(tL())},dG=function(){return cV(tB())};let d$=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:cD,map:cO,alt:cU},Alternative:{URI:cD,map:cO,ap:cR,of:eA,alt:cU,zero:c3},ApT:dN,Applicative:cG,Apply:cJ,Chain:cX,Compactable:dn,Do:dB,Extend:{URI:cD,map:cO,extend:cB},Filterable:ds,Foldable:{URI:cD,reduce:cE,foldMap:cM,reduceRight:cF},FromEither:dg,Functor:cY,Monad:{URI:cD,map:cO,ap:cR,of:eA,chain:ck},MonadThrow:{URI:cD,map:cO,ap:cR,of:eA,chain:ck,throwError:dm},Pointed:cH,Traversable:dd,URI:cD,Witherable:{URI:cD,map:cO,reduce:cE,foldMap:cM,reduceRight:cF,traverse:cj,sequence:dc,compact:c8,separate:dt,filter:cK,filterMap:cL,partition:cP,partitionMap:cW,wither:df,wilt:dp},Zero:c9,alt:c5,altW:c6,ap:cZ,apFirst:dS,apS:dD,apSecond:dw,bind:dW,bindTo:dP,chain:c$,chainEitherK:dO,chainFirst:dI,chainFirstEitherK:dR,chainNullableK:dj,compact:c8,duplicate:d_,elem:function e(t){return function(n,r){if(void 0===r){var i=e(t);return function(e){return i(n,e)}}return!dv(r)&&t.equals(n,r.value)}},exists:dL,extend:c7,filter:dr,filterMap:di,flap:dC,flatten:c8,fold:dx,foldMap:c1,foldW:dx,fromEither:cT,fromEitherK:dT,fromNullable:dk,fromNullableK:dF,fromPredicate:cI,getApplyMonoid:dZ,getApplySemigroup:dH,getEq:cq,getFirstMonoid:dJ,getLastMonoid:dG,getLeft:c_,getMonoid:cV,getOrElse:db,getOrElseW:db,getOrd:cQ,getRefinement:function(e){return function(t){return dy(e(t))}},getRight:cT,getShow:cN,guard:c4,isNone:dv,isSome:dy,map:cz,mapNullable:dj,match:dx,matchW:dx,none:ep,of:eA,option:dY,partition:da,partitionMap:du,reduce:c0,reduceRight:c2,separate:dt,sequence:dc,sequenceArray:dz,some:eA,throwError:dm,toNullable:dU,toUndefined:dK,traverse:dl,traverseArray:dV,traverseArrayWithIndex:dQ,traverseReadonlyArrayWithIndex:dQ,traverseReadonlyNonEmptyArrayWithIndex:dq,tryCatch:dE,tryCatchK:dM,wilt:dh,wither:dA,zero:c3},Symbol.toStringTag,{value:"Module"}));function dX(e,t){return function(n){return e.map(n,t.compact)}}function d0(e,t,n){var r=dX(e,t),i=eL(e,n);return function(e){return oe(r(ea(e,i(c_))),r(ea(e,i(cT))))}}let d1=Object.freeze(Object.defineProperty({__proto__:null,compact:dX,getCompactableComposition:function(e,t){return{map:eW(e,t).map,compact:dX(e,t),separate:d0(e,t,t)}},separate:d0},Symbol.toStringTag,{value:"Module"}));var d2=function(e){return function(){return console.log(e)}},d6=function(e){return function(){return console.warn(e)}},d5=function(e){return function(){return console.error(e)}},d3=function(e){return function(){return console.info(e)}};let d9=Object.freeze(Object.defineProperty({__proto__:null,error:d5,info:d3,log:d2,warn:d6},Symbol.toStringTag,{value:"Module"}));function d4(e){return{URI:fu,_E:void 0,map:fe,ap:function(t,n){return Z(e.concat(t,n))}}}function d7(e){var t=d4(e);return{URI:fu,_E:void 0,map:t.map,ap:t.ap,of:function(){return Z(e.empty)}}}var d8=function(e,t){return ea(e,fr())},fe=function(e,t){return ea(e,fi())},ft=function(e,t,n){return ea(e,fo(t))},fn=function(e,t){return ea(e,fa(t))},fr=function(){return Z},fi=function(){return Z},fo=function(e){return function(t){return Z(e(t))}},fa=function(e){return function(t){return Z(e(t))}},fu="Const",fs={URI:fu,map:fe},fl=eB(fs);let fc=Object.freeze(Object.defineProperty({__proto__:null,Bifunctor:{URI:fu,bimap:ft,mapLeft:fn},Contravariant:{URI:fu,contramap:d8},Functor:fs,URI:fu,bimap:fo,const_:{URI:fu,map:fe,contramap:d8,bimap:ft,mapLeft:fn},contramap:fr,flap:fl,getApplicative:d7,getApply:d4,getBooleanAlgebra:Z,getBounded:Z,getEq:Z,getHeytingAlgebra:Z,getMonoid:Z,getOrd:Z,getRing:Z,getSemigroup:Z,getSemiring:Z,getShow:function(e){return{show:function(t){return"make(".concat(e.show(t),")")}}},make:Z,map:fi,mapLeft:fa},Symbol.toStringTag,{value:"Module"})),fd=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var ff=ea(i1,ts(function(e){return e.valueOf()})),fp=function(){return new Date},fA=function(){return new Date().getTime()};let fh=Object.freeze(Object.defineProperty({__proto__:null,Eq:{equals:function(e,t){return e.valueOf()===t.valueOf()}},Ord:ff,create:fp,eqDate:{equals:function(e,t){return e.getDate()===t.getDate()}},eqMonth:{equals:function(e,t){return e.getMonth()===t.getMonth()}},eqYear:{equals:function(e,t){return e.getFullYear()===t.getFullYear()}},now:fA},Symbol.toStringTag,{value:"Module"}));var fm=function(e,t){return ea(e,fL(t))},fg=function(e,t){return ea(e,fD(t))},fy=function(e,t){return ea(e,fV(t))},fv=function(e,t,n){return ea(e,fY(t,n))},fx=function(e){return function(t,n){var r=fH(e);return ea(t,r(n))}},fb=function(e,t,n){return ea(e,fZ(t,n))},fC=function(e){var t=fJ(e);return function(e,n){return ea(e,t(n))}},fS=function(e,t,n){return ea(e,fX(t,n))},fw=function(e,t){return ea(e,f0(t))},fI=function(e,t){return ea(e,f2(t))},f_=function(e,t){return ea(e,f6(t))},fT=function(e,t){return cs(t(e),function(e){return f4(e)?ey(eg(e.left)):f4(e.right)?eg(t(e.right.left)):ey(ey(e.right.right))})},fO="Either",fR=function(e,t){return{show:function(n){return f4(n)?"left(".concat(e.show(n.left),")"):"right(".concat(t.show(n.right),")")}}},fk=function(e,t){return{equals:function(n,r){return n===r||(f4(n)?f4(r)&&e.equals(n.left,r.left):f7(r)&&t.equals(n.right,r.right))}}},fE=function(e){return{concat:function(t,n){return f4(n)?t:f4(t)?n:ey(e.concat(t.right,n.right))}}},fM=function(e){var t=eg(e.empty);return{URI:fO,_E:void 0,compact:function(e){return f4(e)?e:"None"===e.right._tag?t:ey(e.right.value)},separate:function(e){return f4(e)?oe(e,e):f4(e.right)?oe(ey(e.right.left),t):oe(t,ey(e.right.right))}}},fF=function(e){var t,n=eg(e.empty),r=fM(e),i=r.compact;return{URI:fO,_E:void 0,map:fm,compact:i,separate:r.separate,filter:function(e,t){return f4(e)||t(e.right)?e:n},filterMap:function(e,t){if(f4(e))return e;var r=t(e.right);return"None"===r._tag?n:ey(r.value)},partition:function(e,t){return f4(e)?oe(e,e):t(e.right)?oe(n,ey(e.right)):oe(ey(e.right),n)},partitionMap:function(e,t){if(f4(e))return oe(e,e);var r=t(e.right);return f4(r)?oe(ey(r.left),n):oe(n,ey(r.right))}}},fj=function(e){var t=fF(e),n=fM(e);return{URI:fO,_E:void 0,map:fm,compact:t.compact,separate:t.separate,filter:t.filter,filterMap:t.filterMap,partition:t.partition,partitionMap:t.partitionMap,traverse:fC,sequence:fG,reduce:fv,foldMap:fx,reduceRight:fb,wither:oA(f$,n),wilt:op(f$,n)}},fU=function(e){return{URI:fO,_E:void 0,map:fm,ap:function(t,n){return f4(t)?f4(n)?eg(e.concat(t.left,n.left)):t:f4(n)?n:ey(t.right(n.right))},of:fP}},fK=function(e){return{URI:fO,_E:void 0,map:fm,alt:function(t,n){if(f7(t))return t;var r=n();return f4(r)?eg(e.concat(t.left,r.left)):r}}},fL=function(e){return function(t){return f4(t)?t:ey(e(t.right))}},fB={URI:fO,map:fm},fP=ey,fW=function(e){return function(t){return f4(t)?t:f4(e)?e:ey(t.right(e.right))}},fD=fW,fN={URI:fO,map:fm,ap:fg},fq={URI:fO,map:fm,ap:fg,of:fP},fQ=function(e){return function(t){return f4(t)?t:e(t.right)}},fV=fQ,fz={URI:fO,map:fm,ap:fg,chain:fy},fY=function(e,t){return function(n){return f4(n)?e:t(e,n.right)}},fH=function(e){return function(t){return function(n){return f4(n)?e.empty:t(n.right)}}},fZ=function(e,t){return function(n){return f4(n)?e:t(n.right,e)}},fJ=function(e){return function(t){return function(n){return f4(n)?e.of(eg(n.left)):e.map(t(n.right),ey)}}},fG=function(e){return function(t){return f4(t)?e.of(eg(t.left)):e.map(t.right,ey)}},f$={URI:fO,map:fm,reduce:fv,foldMap:fx,reduceRight:fb,traverse:fC,sequence:fG},fX=function(e,t){return function(n){return f4(n)?eg(e(n.left)):ey(t(n.right))}},f0=function(e){return function(t){return f4(t)?eg(e(t.left)):t}},f1=function(e){return function(t){return f4(t)?e():t}},f2=f1,f6=function(e){return function(t){return f4(t)?t:ey(e(t))}},f5={URI:fO,fromEither:Z},f3=eZ(f5),f9=eH(f5),f4=eh,f7=em,f8=function(e,t){return function(n){return f4(n)?e(n.left):t(n.right)}},pe=function(e){return function(t){return f4(t)?e(t.left):t.right}},pt=eB(fB),pn=eO(fN),pr=eR(fN),pi=eV(fz),po=fQ(Z),pa=f6(Z),pu=eJ(f5),ps=eG(f5,fz),pl=e1(f5,fz),pc=function(e){return f4(e)?ey(e.left):eg(e.right)},pd=function(e){return function(t){return f4(t)?e(t.left):t}},pf=function(e){return function(t){return null==t?eg(e):ey(t)}},pp=function(e,t){try{return ey(e())}catch(n){return eg(t(n))}},pA=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return pp(function(){return e.apply(void 0,n)},t)}},ph=function(e){var t=pf(e);return function(e){return et(e,t)}},pm=function(e){var t=ph(e);return function(e){return fV(t(e))}},pg=f8(Z,Z),py=function(e){return function(t){return!f4(t)&&e(t.right)}},pv=fP(ew),px=eP(fB),pb=ez(fz),pC=ek(fN),pS=fP(eS),pw=function(e){return function(t){var n=e(0,eb(t));if(f4(n))return n;for(var r=[n.right],i=1;i<t.length;i++){var o=e(i,t[i]);if(f4(o))return o;r.push(o.right)}return ey(r)}},pI=function(e){var t=pw(e);return function(e){return ex(e)?t(e):pS}},p_=function(e){return pI(function(t,n){return e(n)})},pT=p_(Z),pO=function(e,t){return pp(function(){var t=JSON.stringify(e);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},t)},pR=eE(fN),pk=eN(fq),pE=function(e,t){return eE(fU(e))(t)},pM=function(e,t){return eN(fU(e))(t)};let pF=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:fO,map:fm,alt:fI},ApT:pS,Applicative:fq,Apply:fN,Bifunctor:{URI:fO,bimap:fS,mapLeft:fw},Chain:fz,ChainRec:{URI:fO,map:fm,ap:fg,chain:fy,chainRec:fT},Do:pv,Extend:{URI:fO,map:fm,extend:f_},Foldable:{URI:fO,reduce:fv,foldMap:fx,reduceRight:fb},FromEither:f5,Functor:fB,Monad:{URI:fO,map:fm,ap:fg,of:fP,chain:fy},MonadThrow:{URI:fO,map:fm,ap:fg,of:fP,chain:fy,throwError:eg},Pointed:{URI:fO,of:fP},Traversable:f$,URI:fO,alt:f2,altW:f1,ap:fD,apFirst:pn,apFirstW:pn,apS:pC,apSW:pC,apSecond:pr,apSecondW:pr,apW:fW,bimap:fX,bind:pb,bindTo:px,bindW:pb,chain:fV,chainFirst:pi,chainFirstW:pi,chainNullableK:pm,chainOptionK:ps,chainW:fQ,duplicate:pa,either:{URI:fO,map:fm,of:fP,ap:fg,chain:fy,reduce:fv,foldMap:fx,reduceRight:fb,traverse:fC,sequence:fG,bimap:fS,mapLeft:fw,alt:fI,extend:f_,chainRec:fT,throwError:eg},elem:function e(t){return function(n,r){if(void 0===r){var i=e(t);return function(e){return i(n,e)}}return!f4(r)&&t.equals(n,r.right)}},exists:py,extend:f6,filterOrElse:pl,filterOrElseW:pl,flap:pt,flatten:po,flattenW:po,fold:f8,foldMap:fH,foldW:f8,fromNullable:pf,fromNullableK:ph,fromOption:f9,fromOptionK:pu,fromPredicate:f3,getAltValidation:fK,getApplicativeValidation:fU,getApplyMonoid:pk,getApplySemigroup:pR,getCompactable:fM,getEq:fk,getFilterable:fF,getOrElse:pe,getOrElseW:pe,getSemigroup:fE,getShow:fR,getValidation:function(e){var t=fU(e).ap,n=fK(e).alt;return{URI:fO,_E:void 0,map:fm,of:fP,chain:fy,bimap:fS,mapLeft:fw,reduce:fv,foldMap:fx,reduceRight:fb,extend:f_,traverse:fC,sequence:fG,chainRec:fT,throwError:eg,ap:t,alt:n}},getValidationMonoid:pM,getValidationSemigroup:pE,getWitherable:fj,isLeft:f4,isRight:f7,left:eg,map:fL,mapLeft:f0,match:f8,matchW:f8,of:fP,orElse:pd,orElseW:pd,parseJSON:function(e,t){return pp(function(){return JSON.parse(e)},t)},reduce:fY,reduceRight:fZ,right:ey,sequence:fG,sequenceArray:pT,stringifyJSON:pO,swap:pc,throwError:eg,toError:function(e){return e instanceof Error?e:Error(String(e))},toUnion:pg,traverse:fJ,traverseArray:p_,traverseArrayWithIndex:pI,traverseReadonlyArrayWithIndex:pI,traverseReadonlyNonEmptyArrayWithIndex:pw,tryCatch:pp,tryCatchK:pA},Symbol.toStringTag,{value:"Module"}));function pj(e){return et(ey,e.of)}function pU(e){return et(eg,e.of)}function pK(e){return function(t){return e.map(t,ey)}}function pL(e){return function(t){return e.map(t,eg)}}function pB(e){return function(t){return et(pf(t),e.of)}}function pP(e){var t=pB(e);return function(e){var n=t(e);return function(e){return et(e,n)}}}function pW(e){var t=pq(e),n=pP(e);return function(e){var r=n(e);return function(e){return t(r(e))}}}function pD(e){return eL(e,fB)}function pN(e){return eT(e,fN)}function pq(e){return function(t){return function(n){return e.chain(n,function(n){return f4(n)?e.of(n):t(n.right)})}}}function pQ(e){return function(t){return function(n){return e.chain(n,function(n){return f4(n)?t():e.of(n)})}}}function pV(e){return function(t,n){return function(r){return e.map(r,fX(t,n))}}}function pz(e){return function(t){return function(n){return e.map(n,f0(t))}}}function pY(e,t){return function(n){return function(r){return e.chain(r,f8(function(r){return e.map(n(),f0(function(e){return t.concat(r,e)}))},pj(e)))}}}function pH(e){return function(t,n){return function(r){return e.map(r,f8(t,n))}}}function pZ(e){return function(t,n){return function(r){return e.chain(r,f8(t,n))}}}function pJ(e){return function(t){return function(n){return e.chain(n,f8(t,e.of))}}}function pG(e){return function(t){return function(n){return e.chain(n,function(n){return f4(n)?t(n.left):e.of(n)})}}}function p$(e){var t=pG(e);return function(n){return t(function(t){return e.map(n(t),function(e){return f4(e)?e:eg(t)})})}}function pX(e){return function(t){return function(n){return e.chain(n,f8(function(n){return e.map(t(n),eg)},function(t){return e.of(ey(t))}))}}}function p0(e){return function(t){return e.map(t,pc)}}function p1(e){return function(t){return e.map(t,pg)}}let p2=Object.freeze(Object.defineProperty({__proto__:null,alt:pQ,altValidation:pY,ap:pN,bimap:pV,chain:pq,chainNullableK:pW,fromNullable:pB,fromNullableK:pP,getEitherM:function(e){var t=pN(e),n=pD(e),r=pq(e),i=pQ(e),o=pV(e),a=pz(e),u=pZ(e),s=pJ(e),l=pG(e);return{map:function(e,t){return ea(e,n(t))},ap:function(e,n){return ea(e,t(n))},of:pj(e),chain:function(e,t){return ea(e,r(t))},alt:function(e,t){return ea(e,i(t))},bimap:function(e,t,n){return ea(e,o(t,n))},mapLeft:function(e,t){return ea(e,a(t))},fold:function(e,t,n){return ea(e,u(t,n))},getOrElse:function(e,t){return ea(e,s(t))},orElse:function(e,t){return ea(e,l(t))},swap:p0(e),rightM:pK(e),leftM:pL(e),left:pU(e)}},getOrElse:pJ,left:pU,leftF:pL,map:pD,mapLeft:pz,match:pH,matchE:pZ,orElse:pG,orElseFirst:p$,orLeft:pX,right:pj,rightF:pK,swap:p0,toUnion:p1},Symbol.toStringTag,{value:"Module"}));var p6=function(){return{concat:function(e,t){return et(e,t)}}},p5=function(){return{concat:p6().concat,empty:Z}};let p3=Object.freeze(Object.defineProperty({__proto__:null,URI:"Endomorphism",getMonoid:p5,getSemigroup:p6},Symbol.toStringTag,{value:"Module"})),p9=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function p4(e,t){var n=t.zero,r=function(i,o){return e.equals(o,n)?i:r(o,t.mod(i,o))};return r}let p7=Object.freeze(Object.defineProperty({__proto__:null,fieldNumber:{add:function(e,t){return e+t},zero:0,mul:function(e,t){return e*t},one:1,sub:function(e,t){return e-t},degree:function(e){return 1},div:function(e,t){return e/t},mod:function(e,t){return e%t}},gcd:p4,lcm:function(e,t){var n=t.zero,r=p4(e,t);return function(i,o){return e.equals(i,n)||e.equals(o,n)?n:t.div(t.mul(i,o),r(i,o))}}},Symbol.toStringTag,{value:"Module"}));function p8(e,t){return function(n){return function(r){return e.map(r,function(e){return t.filter(e,n)})}}}function Ae(e,t){return function(n){return function(r){return e.map(r,function(e){return t.filterMap(e,n)})}}}function At(e,t){var n=p8(e,t);return function(e){var t=n(cb(e)),r=n(e);return function(e){return oe(t(e),r(e))}}}function An(e,t){var n=Ae(e,t);return function(e){return function(t){return oe(ea(t,n(function(t){return c_(e(t))})),ea(t,n(function(t){return cT(e(t))})))}}}let Ar=Object.freeze(Object.defineProperty({__proto__:null,filter:p8,filterMap:Ae,getFilterableComposition:function(e,t){var n=eW(e,t).map,r=dX(e,t),i=d0(e,t,t),o=p8(e,t),a=Ae(e,t),u=At(e,t),s=An(e,t);return{map:n,compact:r,separate:i,filter:function(e,t){return ea(e,o(t))},filterMap:function(e,t){return ea(e,a(t))},partition:function(e,t){return ea(e,u(t))},partitionMap:function(e,t){return ea(e,s(t))}}},partition:At,partitionMap:An},Symbol.toStringTag,{value:"Module"})),Ai=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function Ao(e,t){return function(n,r){return function(i){return e.reduce(i,n,function(e,n){return t.reduce(n,e,r)})}}}function Aa(e,t){return function(n){var r=e.foldMap(n),i=t.foldMap(n);return function(e){return function(t){return r(t,function(t){return i(t,e)})}}}}function Au(e,t){return function(n,r){return function(i){return e.reduceRight(i,n,function(e,n){return t.reduceRight(e,n,r)})}}}function As(e){return function(t){return e.reduce(t,[],function(e,t){return e.push(t),e})}}function Al(e,t){var n=Ao(e,t),r=Aa(e,t),i=Au(e,t);return{reduce:function(e,t,r){return ea(e,n(t,r))},foldMap:function(e){var t=r(e);return function(e,n){return ea(e,t(n))}},reduceRight:function(e,t,n){return ea(e,i(t,n))}}}let Ac=Object.freeze(Object.defineProperty({__proto__:null,foldM:function(e,t){return function(n,r,i){return t.reduce(n,e.of(r),function(t,n){return e.chain(t,function(e){return i(e,n)})})}},foldMap:Aa,getFoldableComposition:Al,intercalate:function(e,t){return function(n,r){var i=function(t,r){var i=t.init,o=t.acc;return i?{init:!1,acc:r}:{init:!1,acc:e.concat(e.concat(o,n),r)}};return t.reduce(r,{init:!0,acc:e.empty},i).acc}},reduce:Ao,reduceM:function(e,t){return function(n,r){return function(i){return t.reduce(i,e.of(n),function(t,n){return e.chain(t,function(e){return r(e,n)})})}}},reduceRight:Au,toArray:As,toReadonlyArray:As,traverse_:function(e,t){var n=e.of(void 0);return function(r,i){return t.reduce(r,n,function(t,n){var r,o;return o=i(n),e.ap(e.map(t,J),o)})}}},Symbol.toStringTag,{value:"Module"}));function Ad(e,t){return function(n,r){return function(i){return e.reduceWithIndex(i,n,function(e,n,i){return t.reduceWithIndex(i,n,function(t,n,i){return r([e,t],n,i)})})}}}function Af(e,t){return function(n){var r=e.foldMapWithIndex(n),i=t.foldMapWithIndex(n);return function(e){return function(t){return r(t,function(t,n){return i(n,function(n,r){return e([t,n],r)})})}}}}function Ap(e,t){return function(n,r){return function(i){return e.reduceRightWithIndex(i,n,function(e,n,i){return t.reduceRightWithIndex(n,i,function(t,n,i){return r([e,t],n,i)})})}}}let AA=Object.freeze(Object.defineProperty({__proto__:null,foldMapWithIndex:Af,getFoldableWithIndexComposition:function(e,t){var n=Al(e,t),r=Ad(e,t),i=Af(e,t),o=Ap(e,t);return{reduce:n.reduce,foldMap:n.foldMap,reduceRight:n.reduceRight,reduceWithIndex:function(e,t,n){return ea(e,r(t,n))},foldMapWithIndex:function(e){var t=i(e);return function(e,n){return ea(e,t(n))}},reduceRightWithIndex:function(e,t,n){return ea(e,o(t,n))}}},reduceRightWithIndex:Ap,reduceWithIndex:Ad},Symbol.toStringTag,{value:"Module"}));function Ah(e){return function(t){return et(t,e.fromIO)}}function Am(e,t){return function(n){var r=et(n,e.fromIO);return function(e){return t.chain(e,r)}}}function Ag(e,t){var n=eV(t);return function(t){return n(et(t,e.fromIO))}}let Ay=Object.freeze(Object.defineProperty({__proto__:null,chainFirstIOK:Ag,chainIOK:Am,fromIOK:Ah},Symbol.toStringTag,{value:"Module"}));var Av=function(){return Z},Ax=function(e){return function(t){return function(n){return t(e(n))}}},Ab=function(e){return function(t){return e(t)(t)}},AC=function(e,t){return ea(e,AT(t))},AS=function(e,t){return ea(e,AR(t))},Aw=function(e,t){return ea(e,AE(t))},AI=function(e,t){return ea(e,AF(t))},A_=function(e,t,n){return ea(e,Aj(t,n))},AT=function(e){return function(t){return function(n){return e(t(n))}}},AO=function(e){return function(t){return function(n){return t(n)(e(n))}}},AR=AO,Ak=function(e){return function(t){return function(n){return e(t(n))(n)}}},AE=Ak,AM=Ak(Z),AF=function(e){return function(t){return et(e,t)}},Aj=function(e,t){return function(n){return function(r){return t(n(e(r)))}}},AU=function(){return Z},AK=function(e){return function(t){var n=t[0],r=t[1];return[e(n),r]}},AL=function(e){return function(t){var n;return[t[0],e(t[1])]}},AB=function(e){return f8(function(t){return eg(e(t))},ey)},AP=function(e){return f8(eg,function(t){return ey(e(t))})},AW="Reader",AD={URI:AW,map:AC},AN=eB(AD),Aq={URI:AW,of:J},AQ={URI:AW,map:AC,ap:AS},AV=eO(AQ),Az=eR(AQ),AY={URI:AW,map:AC,ap:AS,of:J},AH={URI:AW,map:AC,ap:AS,chain:Aw},AZ={URI:AW,map:AC,of:J,ap:AS,chain:Aw},AJ=eV(AH),AG=eP(AD),A$=ez(AH),AX=J(ew),A0=ek(AQ),A1=J(eS),A2=function(e){return function(t){return function(n){for(var r=[e(0,eb(t))(n)],i=1;i<t.length;i++)r.push(e(i,t[i])(n));return r}}},A6=function(e){var t=A2(e);return function(e){return ex(e)?t(e):A1}},A5=function(e){return A6(function(t,n){return e(n)})},A3=A5(Z),A9=eE(AQ),A4=eN(AY);let A7=Object.freeze(Object.defineProperty({__proto__:null,ApT:A1,Applicative:AY,Apply:AQ,Category:{URI:AW,compose:AI,id:AU},Chain:AH,Choice:{URI:AW,map:AC,promap:A_,left:AB,right:AP},Do:AX,Functor:AD,Monad:AZ,Pointed:Aq,Profunctor:{URI:AW,map:AC,promap:A_},Strong:{URI:AW,map:AC,promap:A_,first:AK,second:AL},URI:AW,ap:AR,apFirst:AV,apFirstW:AV,apS:A0,apSW:A0,apSecond:Az,apSecondW:Az,apW:AO,ask:Av,asks:Z,asksReader:Ab,asksReaderW:Ab,bind:A$,bindTo:AG,bindW:A$,chain:AE,chainFirst:AJ,chainFirstW:AJ,chainW:Ak,compose:AF,first:AK,flap:AN,flatten:AM,flattenW:AM,getMonoid:A4,getSemigroup:A9,id:AU,left:AB,local:Ax,map:AT,of:J,promap:Aj,reader:{URI:AW,map:AC,of:J,ap:AS,chain:Aw,promap:A_,compose:AI,id:AU,first:AK,second:AL,left:AB,right:AP},right:AP,second:AL,sequenceArray:A3,traverseArray:A5,traverseArrayWithIndex:A6,traverseReadonlyArrayWithIndex:A6,traverseReadonlyNonEmptyArrayWithIndex:A2},Symbol.toStringTag,{value:"Module"}));function A8(e){return function(){return e.fromReader(Av())}}function he(e){return e.fromReader}function ht(e){return function(t){return et(t,e.fromReader)}}function hn(e,t){var n=ht(e);return function(e){return function(r){return t.chain(r,n(e))}}}function hr(e,t){return et(ht(e),eV(t))}let hi=Object.freeze(Object.defineProperty({__proto__:null,ask:A8,asks:he,chainFirstReaderK:hr,chainReaderK:hn,fromReaderK:ht},Symbol.toStringTag,{value:"Module"}));var ho=function(){return function(e){return[e,e]}},ha=function(e){return function(){return[void 0,e]}},hu=function(e){return function(t){return[void 0,e(t)]}},hs=function(e){return function(t){return[e(t),t]}},hl=function(e,t){return ea(e,hf(t))},hc=function(e,t){return ea(e,hp(t))},hd=function(e,t){return ea(e,hh(t))},hf=function(e){return function(t){return function(n){var r=t(n),i=r[0],o=r[1];return[e(i),o]}}},hp=function(e){return function(t){return function(n){var r=t(n),i=r[0],o=e(r[1]),a=o[0],u=o[1];return[i(a),u]}}},hA=function(e){return function(t){return[e,t]}},hh=function(e){return function(t){return function(n){var r=t(n),i=r[0],o=r[1];return e(i)(o)}}},hm=hh(Z),hg="State",hy={URI:hg,map:hl},hv=eB(hy),hx={URI:hg,map:hl,ap:hc},hb=eO(hx),hC=eR(hx),hS={URI:hg,map:hl,ap:hc,chain:hd},hw={URI:hg,map:hl,ap:hc,of:hA,chain:hd},hI=eV(hS),h_=function(e){return function(t){return t(e)[0]}},hT=function(e){return function(t){return t(e)[1]}},hO=eP(hy),hR=ez(hS),hk=ek(hx),hE=function(e){return function(t){return function(n){for(var r=e(0,eb(t))(n),i=r[0],o=r[1],a=[i],u=o,s=1;s<t.length;s++){var l=e(s,t[s])(u),c=l[0],d=l[1];a.push(c),u=d}return[a,u]}}},hM=function(e){var t=hE(e);return function(e){return ex(e)?t(e):hA(eS)}},hF=function(e){return hM(function(t,n){return e(n)})},hj=hF(Z),hU=function(e,t){return e(t)[0]},hK=function(e,t){return e(t)[1]};let hL=Object.freeze(Object.defineProperty({__proto__:null,Applicative:{URI:hg,map:hl,ap:hc,of:hA},Apply:hx,Chain:hS,FromState:{URI:hg,fromState:Z},Functor:hy,Monad:hw,Pointed:{URI:hg,of:hA},URI:hg,ap:hp,apFirst:hb,apS:hk,apSecond:hC,bind:hR,bindTo:hO,chain:hh,chainFirst:hI,evalState:hU,evaluate:h_,execState:hK,execute:hT,flap:hv,flatten:hm,get:ho,gets:hs,map:hf,modify:hu,of:hA,put:ha,sequenceArray:hj,state:hw,traverseArray:hF,traverseArrayWithIndex:hM,traverseReadonlyArrayWithIndex:hM,traverseReadonlyNonEmptyArrayWithIndex:hE},Symbol.toStringTag,{value:"Module"}));function hB(e){return function(){return e.fromState(ho())}}function hP(e){return function(t){return e.fromState(ha(t))}}function hW(e){return et(hu,e.fromState)}function hD(e){return et(hs,e.fromState)}function hN(e){return function(t){return et(t,e.fromState)}}function hq(e,t){var n=hN(e);return function(e){return function(r){return t.chain(r,n(e))}}}let hQ=Object.freeze(Object.defineProperty({__proto__:null,chainStateK:hq,fromStateK:hN,get:hB,gets:hD,modify:hW,put:hP},Symbol.toStringTag,{value:"Module"}));function hV(e){return function(t){return et(t,e.fromTask)}}function hz(e,t){return function(n){var r=et(n,e.fromTask);return function(e){return t.chain(e,r)}}}function hY(e,t){var n=eV(t);return function(t){return n(et(t,e.fromTask))}}let hH=Object.freeze(Object.defineProperty({__proto__:null,chainFirstTaskK:hY,chainTaskK:hz,fromTaskK:hV},Symbol.toStringTag,{value:"Module"}));function hZ(e){return function(t){return et(t,e.fromThese)}}let hJ=Object.freeze(Object.defineProperty({__proto__:null,fromTheseK:hZ},Symbol.toStringTag,{value:"Module"}));function hG(e,t){return function(n){return function(r){return e.mapWithIndex(r,function(e,r){return t.mapWithIndex(r,function(t,r){return n([e,t],r)})})}}}let h$=Object.freeze(Object.defineProperty({__proto__:null,getFunctorWithIndexComposition:function(e,t){var n=eW(e,t).map,r=hG(e,t);return{map:n,mapWithIndex:function(e,t){return ea(e,r(t))}}},mapWithIndex:hG},Symbol.toStringTag,{value:"Module"})),hX=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),h0=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),h1=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var h2=function(e,t){return ea(e,mt(t))},h6=function(e,t){return ea(e,mn(t))},h5=function(e,t){return ea(e,mr(t))},h3=function(e,t,n){return ea(e,mu(t,n))},h9=function(e){return function(e,t){return ea(e,ms()(t))}},h4=function(e,t,n){return ea(e,ml(t,n))},h7=function(e,t){return ea(e,mp())},h8=function(e,t){return ea(e,mi(t))},me=function(e){var t=mc(e);return function(e,n){return ea(e,t(n))}},mt=function(e){return function(t){return e(t)}},mn=function(e){return function(t){return t(e)}},mr=function(e){return function(t){return e(t)}},mi=function(e){return function(t){return e(t)}},mo=mi(Z),ma=mr(Z),mu=function(e,t){return function(n){return t(e,n)}},ms=function(){return function(e){return function(t){return e(t)}}},ml=function(e,t){return function(n){return t(n,e)}},mc=function(e){return function(t){return function(n){return e.map(t(n),Z)}}},md=function(e){return function(t){return e.map(t,Z)}},mf=function(){return Z},mp=mf,mA="Identity",mh={URI:mA,map:h2},mm=eB(mh),mg={URI:mA,map:h2,ap:h6},my=eO(mg),mv=eR(mg),mx={URI:mA,map:h2,ap:h6,chain:h5},mb=eV(mx),mC=Z(ew),mS=eP(mh),mw=ez(mx),mI=ek(mg);let m_=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:mA,map:h2,alt:h7},Applicative:{URI:mA,map:h2,ap:h6,of:Z},Apply:mg,Chain:mx,ChainRec:{URI:mA,map:h2,ap:h6,chain:h5,chainRec:cs},Comonad:{URI:mA,map:h2,extend:h8,extract:Z},Do:mC,Foldable:{URI:mA,reduce:h3,foldMap:h9,reduceRight:h4},Functor:mh,Monad:{URI:mA,map:h2,ap:h6,of:Z,chain:h5},Pointed:{URI:mA,of:Z},Traversable:{URI:mA,map:h2,reduce:h3,foldMap:h9,reduceRight:h4,traverse:me,sequence:md},URI:mA,alt:mp,altW:mf,ap:mn,apFirst:my,apS:mI,apSecond:mv,bind:mw,bindTo:mS,chain:mr,chainFirst:mb,duplicate:mo,extend:mi,extract:Z,flap:mm,flatten:ma,foldMap:ms,getEq:Z,getShow:Z,identity:{URI:mA,map:h2,ap:h6,of:Z,chain:h5,reduce:h3,foldMap:h9,reduceRight:h4,traverse:me,sequence:md,alt:h7,extract:Z,extend:h8,chainRec:cs},map:mt,of:Z,reduce:mu,reduceRight:ml,sequence:md,traverse:mc},Symbol.toStringTag,{value:"Module"})),mT=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var mO=function(e,t){return function(){return t(e())}},mR=function(e,t){return function(){return e()(t())}},mk=function(e,t){return function(){return t(e())()}},mE=function(e,t){return function(){for(var n=t(e)();"Left"===n._tag;)n=t(n.left)();return n.right}},mM=function(e){return function(t){return mO(t,e)}},mF=function(e){return function(t){return mR(t,e)}},mj=function(e){return function(t){return mk(t,e)}},mU=mj(Z),mK={URI:"IO",map:mO},mL=eB(mK),mB={URI:"IO",of:J},mP={URI:"IO",map:mO,ap:mR},mW=eO(mP),mD=eR(mP),mN={URI:"IO",map:mO,ap:mR,of:J},mq={URI:"IO",map:mO,ap:mR,chain:mk},mQ={URI:"IO",map:mO,ap:mR,of:J,chain:mk},mV=eV(mq),mz=J(ew),mY=eP(mK),mH=ez(mq),mZ=ek(mP),mJ=J(eS),mG=function(e){return function(t){return function(){for(var n=[e(0,eb(t))()],r=1;r<t.length;r++)n.push(e(r,t[r])());return n}}},m$=function(e){var t=mG(e);return function(e){return ex(e)?t(e):mJ}},mX=function(e){return m$(function(t,n){return e(n)})},m0=mX(Z),m1=eE(mP),m2=eN(mN);let m6=Object.freeze(Object.defineProperty({__proto__:null,ApT:mJ,Applicative:mN,Apply:mP,Chain:mq,ChainRec:{URI:"IO",map:mO,ap:mR,chain:mk,chainRec:mE},Do:mz,FromIO:{URI:"IO",fromIO:Z},Functor:mK,Monad:mQ,MonadIO:{URI:"IO",map:mO,ap:mR,of:J,chain:mk,fromIO:Z},Pointed:mB,URI:"IO",ap:mF,apFirst:mW,apS:mZ,apSecond:mD,bind:mH,bindTo:mY,chain:mj,chainFirst:mV,flap:mL,flatten:mU,fromIO:Z,getMonoid:m2,getSemigroup:m1,io:{URI:"IO",map:mO,of:J,ap:mR,chain:mk,fromIO:Z,chainRec:mE},map:mM,of:J,sequenceArray:m0,traverseArray:mX,traverseArrayWithIndex:m$,traverseReadonlyArrayWithIndex:m$,traverseReadonlyNonEmptyArrayWithIndex:mG},Symbol.toStringTag,{value:"Module"}));var m5=pU(mB),m3=pj(mB),m9=pK(mK),m4=pL(mK),m7=pH(mK),m8=pZ(mQ),ge=pJ(mQ),gt=function(e,t){return function(){return pp(e,t)}},gn=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return gt(function(){return e.apply(void 0,n)},t)}},gr=p1(mK),gi=pG(mQ),go=p$(mQ),ga=function(e){return go(gK(e))},gu=pX(mQ),gs=p0(mK),gl=function(e,t){return ea(e,gm(t))},gc=function(e,t){return ea(e,gv(t))},gd=function(e,t){return ea(e,gx(function(e){return ea(t,gm(e))}))},gf=function(e,t){return ea(e,gx(t))},gp=function(e,t,n){return ea(e,gg(t,n))},gA=function(e,t){return ea(e,gy(t))},gh=function(e,t){return ea(e,gC(t))},gm=pD(mK),gg=pV(mK),gy=pz(mK),gv=pN(mP),gx=pq(mQ),gb=gx(Z),gC=pQ(mQ),gS="IOEither";function gw(e){var t=eT(mP,fU(e));return{URI:gS,_E:void 0,map:gl,ap:function(e,n){return ea(e,t(n))},of:m3}}function gI(e){var t=pY(mQ,e);return{URI:gS,_E:void 0,map:gl,alt:function(e,n){return ea(e,t(n))}}}var g_=function(e){var t=fM(e);return{URI:gS,_E:void 0,compact:dX(mK,t),separate:d0(mK,t,fB)}},gT={URI:gS,map:gl},gO=eB(gT),gR={URI:gS,map:gl,ap:gc},gk=eO(gR),gE=eR(gR),gM={URI:gS,map:gl,ap:gc,of:m3},gF={URI:gS,map:gl,ap:gc,chain:gf},gj=eV(gF),gU={URI:gS,fromIO:m9},gK=Ah(gU),gL=Am(gU,gF),gB=Ag(gU,gF),gP={URI:gS,fromEither:J},gW=eH(gP),gD=eJ(gP),gN=eG(gP,gF),gq=eX(gP,gF),gQ=e0(gP,gF),gV=eZ(gP),gz=e1(gP,gF),gY=e$(gP),gH=function(e,t,n){return gZ(e,t,n)},gZ=function(e,t,n){return ea(e,gx(function(e){return ea(t(e),mj(function(t){return ea(n(e,t),gx(function(){return J(t)}))}))}))},gJ=m3(ew),gG=eP(gT),g$=ez(gF),gX=ek(gR),g0=m3(eS),g1=function(e){return et(mG(e),mM(pw(eu)))},g2=function(e){var t=g1(e);return function(e){return ex(e)?t(e):g0}},g6=function(e){return function(t){return function(){var n=e(0,eb(t))();if(eh(n))return n;for(var r=[n.right],i=1;i<t.length;i++){var o=e(i,t[i])();if(eh(o))return o;r.push(o.right)}return ey(r)}}},g5=function(e){var t=g6(e);return function(e){return ex(e)?t(e):g0}},g3=function(e){return g2(function(t,n){return e(n)})},g9=g3(Z),g4=function(e){return g5(function(t,n){return e(n)})},g7=g4(Z),g8=eE(gR),ye=eN(gM),yt=function(e){return eE(mP)(fE(e))};let yn=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:gS,map:gl,alt:gh},ApT:g0,Applicative:gM,ApplicativePar:gM,ApplicativeSeq:{URI:gS,map:gl,ap:gd,of:m3},ApplyPar:gR,Bifunctor:{URI:gS,bimap:gp,mapLeft:gA},Chain:gF,Do:gJ,FromEither:gP,FromIO:gU,Functor:gT,Monad:{URI:gS,map:gl,ap:gc,of:m3,chain:gf},MonadIO:{URI:gS,map:gl,ap:gc,of:m3,chain:gf,fromIO:m9},MonadThrow:{URI:gS,map:gl,ap:gc,of:m3,chain:gf,throwError:m5},Pointed:{URI:gS,of:m3},URI:gS,alt:gC,altW:gC,ap:gv,apFirst:gk,apFirstW:gk,apS:gX,apSW:gX,apSecond:gE,apSecondW:gE,apW:gv,bimap:gg,bind:g$,bindTo:gG,bindW:g$,bracket:gH,bracketW:gZ,chain:gx,chainEitherK:gq,chainEitherKW:gq,chainFirst:gj,chainFirstEitherK:gQ,chainFirstEitherKW:gQ,chainFirstIOK:gB,chainFirstW:gj,chainIOK:gL,chainOptionK:gN,chainW:gx,filterOrElse:gz,filterOrElseW:gz,flap:gO,flatten:gb,flattenW:gb,fold:m8,foldW:m8,fromEither:J,fromEitherK:gY,fromIO:m9,fromIOK:gK,fromOption:gW,fromOptionK:gD,fromPredicate:gV,getAltIOValidation:gI,getApplicativeIOValidation:gw,getApplyMonoid:ye,getApplySemigroup:g8,getCompactable:g_,getFilterable:function(e){var t=fF(e),n=g_(e),r=p8(mK,t),i=Ae(mK,t),o=At(mK,t),a=An(mK,t);return{URI:gS,_E:void 0,map:gl,compact:n.compact,separate:n.separate,filter:function(e,t){return ea(e,r(t))},filterMap:function(e,t){return ea(e,i(t))},partition:function(e,t){return ea(e,o(t))},partitionMap:function(e,t){return ea(e,a(t))}}},getIOValidation:function(e){var t=gw(e),n=gI(e);return{URI:gS,_E:void 0,map:gl,ap:t.ap,of:m3,chain:gf,bimap:gp,mapLeft:gA,alt:n.alt,fromIO:m9,throwError:m5}},getOrElse:ge,getOrElseW:ge,getSemigroup:yt,ioEither:{URI:gS,bimap:gp,mapLeft:gA,map:gl,of:m3,ap:gc,chain:gf,alt:gh,fromIO:m9,throwError:m5},left:m5,leftIO:m4,map:gm,mapLeft:gy,match:m7,matchE:m8,matchEW:m8,matchW:m7,of:m3,orElse:gi,orElseFirst:go,orElseFirstIOK:ga,orElseFirstW:go,orElseW:gi,orLeft:gu,right:m3,rightIO:m9,sequenceArray:g9,sequenceSeqArray:g7,swap:gs,throwError:m5,toUnion:gr,traverseArray:g3,traverseArrayWithIndex:g2,traverseReadonlyArrayWithIndex:g2,traverseReadonlyArrayWithIndexSeq:g5,traverseReadonlyNonEmptyArrayWithIndex:g1,traverseReadonlyNonEmptyArrayWithIndexSeq:g6,traverseSeqArray:g4,traverseSeqArrayWithIndex:g5,tryCatch:gt,tryCatchK:gn},Symbol.toStringTag,{value:"Module"}));function yr(e){return et(eA,e.of)}function yi(e){return J(e.of(ep))}function yo(e){return function(t){return e.map(t,eA)}}function ya(e){return et(dk,e.of)}function yu(e){var t=ya(e);return function(e){return et(e,t)}}function ys(e){var t=yy(e),n=yu(e);return function(e){return t(n(e))}}function yl(e){return function(t){return et(t,e.of)}}function yc(e){var t=yy(e),n=yl(e);return function(e){return t(n(e))}}function yd(e){return function(t){return function(n){return e.of(cI(t)(n))}}}function yf(e){return et(cT,e.of)}function yp(e){return function(t,n){return function(r){return e.map(r,dx(t,n))}}}function yA(e){return function(t,n){return function(r){return e.chain(r,dx(t,n))}}}function yh(e){return function(t){return function(n){return e.chain(n,dx(t,e.of))}}}function ym(e){return eL(e,cY)}function yg(e){return eT(e,cJ)}function yy(e){var t=yi(e);return function(n){return function(r){return e.chain(r,dx(function(){return t()},n))}}}function yv(e){var t=yr(e);return function(n){return function(r){return e.chain(r,dx(n,t))}}}let yx=Object.freeze(Object.defineProperty({__proto__:null,alt:yv,ap:yg,chain:yy,chainNullableK:ys,chainOptionK:yc,fromEither:yf,fromF:yo,fromNullable:ya,fromNullableK:yu,fromOptionK:yl,fromPredicate:yd,getOptionM:function(e){var t=yg(e),n=ym(e),r=yy(e),i=yv(e),o=yA(e),a=yh(e),u=yi(e);return{map:function(e,t){return ea(e,n(t))},ap:function(e,n){return ea(e,t(n))},of:yr(e),chain:function(e,t){return ea(e,r(t))},alt:function(e,t){return ea(e,i(t))},fold:function(e,t,n){return ea(e,o(t,n))},getOrElse:function(e,t){return ea(e,a(t))},fromM:yo(e),none:function(){return u()}}},getOrElse:yh,map:ym,match:yp,matchE:yA,some:yr,zero:yi},Symbol.toStringTag,{value:"Module"}));var yb=yr(mB),yC=yd(mB),yS=yf(mB),yw=yo(mK),yI=mM(cT),y_=yp(mK),yT=yA(mq),yO=yh(mQ),yR=mM(dK),yk=mM(dU),yE=ya(mB),yM=yu(mB),yF=ys(mQ),yj=yl(mB),yU=yc(mQ),yK=ym(mK),yL=yg(mP),yB=yy(mQ),yP=yB(Z),yW=yv(mQ),yD=yi(mB),yN=yD(),yq=dX(mK,dn),yQ=d0(mK,dn,cY),yV=p8(mK,ds),yz=Ae(mK,ds),yY=At(mK,ds),yH=An(mK,ds),yZ=function(e,t){return ea(e,yK(t))},yJ=function(e,t){return ea(e,yL(t))},yG=function(e,t){return ea(e,yB(t))},y$=function(e,t){return ea(e,yW(t))},yX=function(e,t){return ea(e,yV(t))},y0=function(e,t){return ea(e,yz(t))},y1=function(e,t){return ea(e,yY(t))},y2=function(e,t){return ea(e,yH(t))},y6="IOOption",y5={URI:y6,map:yZ},y3=eB(y5),y9={URI:y6,of:yb},y4={URI:y6,map:yZ,ap:yJ},y7=eO(y4),y8=eR(y4),ve={URI:y6,map:yZ,ap:yJ,chain:yG},vt=eV(ve),vn={URI:y6,zero:yD},vr=og(vn,y9),vi={URI:y6,fromIO:yw},vo=Ah(vi),va=Am(vi,ve),vu=Ag(vi,ve),vs={URI:y6,fromEither:yS},vl=e$(vs),vc=eX(vs,ve),vd=e0(vs,ve),vf=yb(ew),vp=eP(y5),vA=ez(ve),vh=ek(y4),vm=yb(eS),vg=function(e){return et(mG(e),mM(dq(eu)))},vy=function(e){var t=vg(e);return function(e){return ex(e)?t(e):vm}};let vv=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:y6,map:yZ,alt:y$},Alternative:{URI:y6,map:yZ,ap:yJ,of:yb,alt:y$,zero:yD},ApT:vm,Applicative:{URI:y6,map:yZ,ap:yJ,of:yb},Apply:y4,Chain:ve,Compactable:{URI:y6,compact:yq,separate:yQ},Do:vf,Filterable:{URI:y6,map:yZ,compact:yq,separate:yQ,filter:yX,filterMap:y0,partition:y1,partitionMap:y2},FromEither:vs,FromIO:vi,Functor:y5,Monad:{URI:y6,map:yZ,ap:yJ,of:yb,chain:yG},MonadIO:{URI:y6,map:yZ,ap:yJ,of:yb,chain:yG,fromIO:yw},Pointed:y9,Zero:vn,alt:yW,altW:yW,ap:yL,apFirst:y7,apS:vh,apSecond:y8,bind:vA,bindTo:vp,chain:yB,chainEitherK:vc,chainFirst:vt,chainFirstEitherK:vd,chainFirstIOK:vu,chainIOK:va,chainNullableK:yF,chainOptionK:yU,compact:yq,filter:yV,filterMap:yz,flap:y3,flatten:yP,fold:yT,fromEither:yS,fromEitherK:vl,fromIO:yw,fromIOEither:yI,fromIOK:vo,fromNullable:yE,fromNullableK:yM,fromOption:J,fromOptionK:yj,fromPredicate:yC,getOrElse:yO,getOrElseW:yO,guard:vr,map:yK,match:y_,matchE:yT,matchEW:yT,matchW:y_,none:yN,of:yb,partition:yY,partitionMap:yH,separate:yQ,some:yb,toNullable:yk,toUndefined:yR,traverseReadonlyArrayWithIndex:vy,traverseReadonlyNonEmptyArrayWithIndex:vg,zero:yD},Symbol.toStringTag,{value:"Module"}));var vx=function(){function e(e){var t=this;this.value=e,this.read=function(){return t.value},this.write=this.write.bind(this),this.modify=this.modify.bind(this)}return e.prototype.write=function(e){var t=this;return function(){t.value=e}},e.prototype.modify=function(e){var t=this;return function(){t.value=e(t.value)}},e}();let vb=Object.freeze(Object.defineProperty({__proto__:null,IORef:vx,newIORef:function(e){return function(){return new vx(e)}}},Symbol.toStringTag,{value:"Module"})),vC=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var vS=function(e){return pp(function(){return JSON.parse(e)},Z)},vw=function(e){return pp(function(){var t=JSON.stringify(e);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},Z)};let vI=Object.freeze(Object.defineProperty({__proto__:null,parse:vS,stringify:vw},Symbol.toStringTag,{value:"Module"})),v_=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var vT=function(e){return new Map(e)};function vO(e,t){return{show:function(n){var r=[];return n.forEach(function(n,i){r.push("[".concat(e.show(i),", ").concat(t.show(n),"]"))}),"new Map([".concat(r.sort().join(", "),"])")}}}var vR=function(e){return e.size},vk=function(e){return 0===e.size};function vE(e){var t=vN(e);return function(n,r){if(void 0===r){var i=vE(e);return function(e){return i(n,e)}}return ef(t(n,r))}}function vM(e){return function(t,n){if(void 0===n){var r=vM(e);return function(e){return r(t,e)}}for(var i,o=n.values();!(i=o.next()).done;){var a=i.value;if(e.equals(t,a))return!0}return!1}}var vF=function(e){return function(t){return Array.from(t.keys()).sort(e.compare)}},vj=function(e){return function(t){return Array.from(t.values()).sort(e.compare)}};function vU(e){var t=vF(e);return function(e){return function(n){for(var r=[],i=t(n),o=0;o<i.length;o++){var a=i[o];r.push(e(a,n.get(a)))}return r}}}var vK=function(e){return vU(e)(function(e,t){return[e,t]})},vL=function(e){var t=vD(e);return function(e,n){var r=t(e);return function(t){var i=r(t);if(ed(i)){var o=new Map(t);return o.set(e,n),o}if(i.value[1]!==n){var o=new Map(t);return o.set(i.value[0],n),o}return t}}},vB=function(e){var t=vD(e);return function(e){return function(n){var r=t(e,n);if(ef(r)){var i=new Map(n);return i.delete(r.value[0]),i}return n}}},vP=function(e){var t=vW(e);return function(e,n){return t(e,function(){return n})}},vW=function(e){var t=vD(e);return function(e,n){return function(r){var i=t(e,r);if(ed(i))return ep;var o=i.value,a=o[0],u=o[1],s=n(u);if(s===u)return eA(r);var l=new Map(r);return l.set(a,s),eA(l)}}};function vD(e){return function(t,n){if(void 0===n){var r=vD(e);return function(e){return r(t,e)}}for(var i,o=n.entries();!(i=o.next()).done;){var a=i.value,u=a[0],s=a[1];if(e.equals(u,t))return eA([u,s])}return ep}}function vN(e){var t=vD(e);return function(n,r){if(void 0===r){var i=vN(e);return function(e){return i(n,e)}}return ea(t(n,r),cz(function(e){return e[0],e[1]}))}}function vq(e,t){var n=vD(e);return function(r,i){if(void 0===i){var o=vq(e,t);return function(e){return o(e,r)}}for(var a,u=r.entries();!(a=u.next()).done;){var s=a.value,l=s[0],c=s[1],d=n(l,i);if(ed(d)||!e.equals(l,d.value[0])||!t.equals(c,d.value[1]))return!1}return!0}}var vQ=new Map;function vV(e,t){var n=vq(e,t);return e6(function(e,t){return n(e,t)&&n(t,e)})}var vz=function(e,t){return new Map([[e,t]])},vY=function(e,t){for(var n,r=new Map,i=e.entries();!(n=i.next()).done;){var o=n.value,a=o[0],u=o[1];r.set(a,t(a,u))}return r},vH=function(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var a=n.value,u=a[0],s=e(u,a[1]);eh(s)?r.set(u,s.left):i.set(u,s.right)}return oe(r,i)}};function vZ(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var a=n.value,u=a[0],s=a[1];e(u,s)?i.set(u,s):r.set(u,s)}return oe(r,i)}}var vJ=function(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,a=o[0],u=e(a,o[1]);ef(u)&&r.set(a,u.value)}return r}};function vG(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,a=o[0],u=o[1];e(a,u)&&r.set(a,u)}return r}}var v$=function(e,t){return vY(e,function(e,n){return t(n)})},vX=function(e,t){return v6(e,function(e,n){return t(n)})},v0=function(e,t){return v5(e,function(e,n){return t(n)})},v1=function(e,t){return v3(e,function(e,n){return t(n)})},v2=function(e,t){return v9(e,function(e,n){return t(n)})},v6=function(e,t){return ea(e,vG(t))},v5=function(e,t){return ea(e,vJ(t))},v3=function(e,t){return ea(e,vZ(t))},v9=function(e,t){return ea(e,vH(t))},v4=function(e){for(var t,n=new Map,r=e.entries();!(t=r.next()).done;){var i=t.value,o=i[0],a=i[1];ef(a)&&n.set(o,a.value)}return n},v7=function(e){return function(t){return vX(t,e)}},v8=function(e){return function(t){return v0(t,e)}},xe=function(e){return function(t){return v$(t,e)}},xt=function(e){return function(t){return vY(t,e)}},xn=function(e){return function(t){return v1(t,e)}},xr=function(e){return function(t){return v2(t,e)}},xi=function(e){for(var t,n=new Map,r=new Map,i=e.entries();!(t=i.next()).done;){var o=t.value,a=o[0],u=o[1];eh(u)?n.set(a,u.left):r.set(a,u.right)}return oe(n,r)},xo="ReadonlyMap",xa=function(e,t){var n=xw(e,t);return{concat:function(e,t){return n(t)(e)}}},xu=function(e,t){return{concat:xa(e,t).concat,empty:vQ}},xs=function(e,t){var n=xI(e,t);return{concat:function(e,t){return n(t)(e)}}},xl=function(e){return function(){var t=x_(e);return{concat:function(e,n){return t(n)(e)}}}},xc={URI:xo,map:v$},xd=eB(xc),xf=function(){return{URI:xo,_E:void 0,map:v$,mapWithIndex:vY}},xp={URI:xo,compact:v4,separate:xi},xA=function(e){var t=xy(e);return function(e,n){return t(e,function(e,t,r){return n(t,r)})}},xh=function(e){var t=xv(e);return function(e){var n=t(e);return function(e){return n(function(t,n){return e(n)})}}},xm=function(e){var t=xx(e);return function(e,n){return t(e,function(e,t,r){return n(t,r)})}},xg=function(e){var t=xA(e),n=xh(e),r=xm(e);return{URI:xo,_E:void 0,reduce:function(e,n,r){return ea(e,t(n,r))},foldMap:function(e){var t=n(e);return function(e,n){return ea(e,t(n))}},reduceRight:function(e,t,n){return ea(e,r(t,n))}}},xy=function(e){var t=vF(e);return function(e,n){return function(r){for(var i=e,o=0,a=t(r);o<a.length;o++){var u=a[o];i=n(u,i,r.get(u))}return i}}},xv=function(e){var t=vF(e);return function(e){return function(n){return function(r){for(var i=e.empty,o=0,a=t(r);o<a.length;o++){var u=a[o];i=e.concat(i,n(u,r.get(u)))}return i}}}},xx=function(e){var t=vF(e);return function(e,n){return function(r){for(var i=e,o=t(r),a=o.length,u=a-1;u>=0;u--){var s=o[u];i=n(s,r.get(s),i)}return i}}},xb=function(e){var t=xg(e),n=xy(e),r=xv(e),i=xx(e);return{URI:xo,_E:void 0,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:function(e,t,r){return ea(e,n(t,r))},foldMapWithIndex:function(e){var t=r(e);return function(e,n){return ea(e,t(n))}},reduceRightWithIndex:function(e,t,n){return ea(e,i(t,n))}}},xC=function(e){var t=xS(e),n=xg(e);return{URI:xo,_E:void 0,map:v$,reduce:n.reduce,foldMap:n.foldMap,reduceRight:n.reduceRight,traverse:t.traverse,sequence:t.sequence}},xS=function(e){var t=xb(e),n=vF(e),r=function(e){return function(t,r){for(var i=e.of(new Map),o=n(t),a=o.length,u=0;u<a;u++)!function(n){var a=o[n],u=t.get(a);i=e.ap(e.map(i,function(e){return function(t){return e.set(a,t)}}),r(a,u))}(u);return i}},i=function(e){var t=r(e);return function(e,n){return t(e,function(e,t){return n(t)})}},o=function(e){var t=r(e);return function(e){return t(e,eu)}};return{URI:xo,_E:void 0,map:v$,mapWithIndex:vY,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:i,sequence:o,traverseWithIndex:r}},xw=function(e,t){var n=vN(e);return function(e){return function(r){if(vk(r))return e;if(vk(e))return r;for(var i,o=new Map,a=r.entries();!(i=a.next()).done;){var u=i.value,s=u[0],l=u[1],c=n(s)(e);ef(c)?o.set(s,t.concat(l,c.value)):o.set(s,l)}for(var d=e.entries();!(i=d.next()).done;){var f=i.value,s=f[0],l=f[1],c=n(s)(o);ed(c)&&o.set(s,l)}return o}}},xI=function(e,t){var n=vN(e);return function(e){return function(r){if(vk(r)||vk(e))return vQ;for(var i,o=new Map,a=r.entries();!(i=a.next()).done;){var u=i.value,s=u[0],l=u[1],c=n(s)(e);ef(c)&&o.set(s,t.concat(l,c.value))}return o}}},x_=function(e){var t=vE(e);return function(e){return function(n){if(vk(n))return e;if(vk(e))return n;for(var r,i=new Map,o=n.entries();!(r=o.next()).done;){var a=r.value,u=a[0],s=a[1];t(u)(e)||i.set(u,s)}for(var l=e.entries();!(r=l.next()).done;){var c=r.value,u=c[0],s=c[1];t(u)(n)||i.set(u,s)}return i}}};let xT=Object.freeze(Object.defineProperty({__proto__:null,Compactable:xp,Filterable:{URI:xo,map:v$,compact:v4,separate:xi,filter:vX,filterMap:v0,partition:v1,partitionMap:v2},Functor:xc,URI:xo,collect:vU,compact:v4,deleteAt:vB,difference:x_,elem:vM,empty:vQ,filter:v7,filterMap:v8,filterMapWithIndex:vJ,filterWithIndex:vG,flap:xd,foldMap:xh,foldMapWithIndex:xv,fromFoldable:function(e,t,n){return function(r){var i=vD(e);return n.reduce(r,new Map,function(e,n){var r=n[0],o=n[1],a=i(r,e);return ef(a)?e.set(a.value[0],t.concat(a.value[1],o)):e.set(r,o),e})}},fromMap:vT,getDifferenceMagma:xl,getEq:vV,getFilterableWithIndex:function(){return{URI:xo,_E:void 0,map:v$,mapWithIndex:vY,compact:v4,separate:xi,filter:vX,filterMap:v0,partition:v1,partitionMap:v2,partitionMapWithIndex:v9,partitionWithIndex:v3,filterMapWithIndex:v5,filterWithIndex:v6}},getFoldable:xg,getFoldableWithIndex:xb,getFunctorWithIndex:xf,getIntersectionSemigroup:xs,getMonoid:function(e,t){var n=vD(e);return{concat:function(e,r){if(vk(e))return r;if(vk(r))return e;for(var i,o=new Map(e),a=r.entries();!(i=a.next()).done;){var u=i.value,s=u[0],l=u[1],c=n(s,e);ef(c)?o.set(c.value[0],t.concat(c.value[1],l)):o.set(s,l)}return o},empty:vQ}},getShow:vO,getTraversable:xC,getTraversableWithIndex:xS,getUnionMonoid:xu,getUnionSemigroup:xa,getWitherable:function(e){var t=xS(e);return{URI:xo,_E:void 0,map:v$,compact:v4,separate:xi,filter:vX,filterMap:v0,partition:v1,partitionMap:v2,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,traverse:t.traverse,sequence:t.sequence,mapWithIndex:vY,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverseWithIndex:t.traverseWithIndex,wilt:op(t,xp),wither:oA(t,xp)}},insertAt:vL,intersection:xI,isEmpty:vk,isSubmap:vq,keys:vF,lookup:vN,lookupWithKey:vD,map:xe,mapWithIndex:xt,member:vE,modifyAt:vW,partition:xn,partitionMap:xr,partitionMapWithIndex:vH,partitionWithIndex:vZ,pop:function(e){var t=vN(e),n=vB(e);return function(e){var r=n(e);return function(n){return ea(t(e,n),cz(function(e){return[e,r(n)]}))}}},readonlyMap:{URI:xo,map:v$,compact:v4,separate:xi,filter:vX,filterMap:v0,partition:v1,partitionMap:v2},reduce:xA,reduceRight:xm,reduceRightWithIndex:xx,reduceWithIndex:xy,separate:xi,singleton:vz,size:vR,toMap:function(e){return new Map(e)},toReadonlyArray:vK,toUnfoldable:function(e,t){var n=vK(e);return function(e){var r=n(e),i=r.length;return t.unfold(0,function(e){return e<i?eA([r[e],e+1]):ep})}},union:xw,updateAt:vP,upsertAt:vL,values:vj},Symbol.toStringTag,{value:"Module"}));var xO=function(){return(xO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},xR=function(e){return function(t){return Array.from(t.keys()).sort(e.compare)}},xk=function(e){return function(t){return Array.from(t.values()).sort(e.compare)}};function xE(e){var t=xR(e);return function(e){return function(n){for(var r=[],i=t(n),o=0;o<i.length;o++){var a=i[o];r.push(e(a,n.get(a)))}return r}}}function xM(e){return xE(e)(function(e,t){return[e,t]})}var xF=function(e){var t=xL(e);return function(e,n){var r=t(e);return function(t){var i=r(t);if(ed(i)){var o=new Map(t);return o.set(e,n),o}if(i.value[1]!==n){var o=new Map(t);return o.set(i.value[0],n),o}return t}}},xj=function(e){var t=xL(e);return function(e){return function(n){var r=t(e,n);if(ef(r)){var i=new Map(n);return i.delete(r.value[0]),i}return n}}},xU=function(e){var t=xK(e);return function(e,n){return t(e,function(){return n})}},xK=function(e){var t=xL(e);return function(e,n){return function(r){var i=t(e,r);if(ed(i))return ep;var o=new Map(r);return o.set(i.value[0],n(i.value[1])),eA(o)}}};function xL(e){return function(t,n){if(void 0===n){var r=xL(e);return function(e){return r(t,e)}}for(var i,o=n.entries();!(i=o.next()).done;){var a=i.value,u=a[0],s=a[1];if(e.equals(u,t))return eA([u,s])}return ep}}var xB=function(e,t){return new Map([[e,t]])},xP=function(e,t){for(var n,r=new Map,i=e.entries();!(n=i.next()).done;){var o=n.value,a=o[0],u=o[1];r.set(a,t(a,u))}return r},xW=function(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var a=n.value,u=a[0],s=e(u,a[1]);eh(s)?r.set(u,s.left):i.set(u,s.right)}return oe(r,i)}};function xD(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var a=n.value,u=a[0],s=a[1];e(u,s)?i.set(u,s):r.set(u,s)}return oe(r,i)}}var xN=function(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,a=o[0],u=e(a,o[1]);ef(u)&&r.set(a,u.value)}return r}};function xq(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,a=o[0],u=o[1];e(a,u)&&r.set(a,u)}return r}}var xQ=function(e,t){return xP(e,function(e,n){return t(n)})},xV=function(e,t){return xZ(e,function(e,n){return t(n)})},xz=function(e,t){return xJ(e,function(e,n){return t(n)})},xY=function(e,t){return xG(e,function(e,n){return t(n)})},xH=function(e,t){return x$(e,function(e,n){return t(n)})},xZ=function(e,t){return ea(e,xq(t))},xJ=function(e,t){return ea(e,xN(t))},xG=function(e,t){return ea(e,xD(t))},x$=function(e,t){return ea(e,xW(t))},xX=function(e){for(var t,n=new Map,r=e.entries();!(t=r.next()).done;){var i=t.value,o=i[0],a=i[1];ef(a)&&n.set(o,a.value)}return n},x0=function(e){return function(t){return xV(t,e)}},x1=function(e){return function(t){return xz(t,e)}},x2=function(e){return function(t){return xQ(t,e)}},x6=function(e){return function(t){return xP(t,e)}},x5=function(e){return function(t){return xY(t,e)}},x3=function(e){return function(t){return xH(t,e)}},x9=function(e){for(var t,n=new Map,r=new Map,i=e.entries();!(t=i.next()).done;){var o=t.value,a=o[0],u=o[1];eh(u)?n.set(a,u.left):r.set(a,u.right)}return oe(n,r)},x4=function(e,t){var n=bl(e,t);return{concat:function(e,t){return n(t)(e)}}},x7=function(e,t){return{concat:x4(e,t).concat,empty:new Map}},x8=function(e,t){var n=bc(e,t);return{concat:function(e,t){return n(t)(e)}}},be=function(e){return function(){var t=bd(e);return{concat:function(e,n){return t(n)(e)}}}},bt=function(e){return xO(xO({},xg(e)),{URI:"Map"})},bn=function(e){return xO(xO({},xb(e)),{URI:"Map"})},br=function(e){var t=bn(e),n=xR(e),r=function(e){return function(t,r){for(var i=e.of(new Map),o=n(t),a=o.length,u=0;u<a;u++)!function(n){var a=o[n],u=t.get(a);i=e.ap(e.map(i,function(e){return function(t){return e.set(a,t)}}),r(a,u))}(u);return i}},i=function(e){var t=r(e);return function(e,n){return t(e,function(e,t){return n(t)})}},o=function(e){var t=r(e);return function(e){return t(e,function(e,t){return t})}};return{URI:"Map",_E:void 0,map:xQ,mapWithIndex:xP,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:i,sequence:o,traverseWithIndex:r}},bi={URI:"Map",map:xQ},bo=eB(bi),ba={URI:"Map",compact:xX,separate:x9},bu={URI:"Map",map:xQ,compact:xX,separate:x9,filter:xV,filterMap:xz,partition:xY,partitionMap:xH},bs=function(e){return new Map(e)},bl=function(e,t){var n=xw(e,t);return function(e){return function(t){return vk(t)?bs(e):vk(e)?bs(t):n(e)(t)}}},bc=function(e,t){var n=xI(e,t);return function(e){return function(t){return vk(t)||vk(e)?new Map:n(e)(t)}}},bd=function(e){var t=x_(e);return function(e){return function(n){return vk(n)?bs(e):vk(e)?bs(n):t(e)(n)}}},bf=new Map;let bp=Object.freeze(Object.defineProperty({__proto__:null,Compactable:ba,Filterable:bu,Functor:bi,URI:"Map",collect:xE,compact:xX,deleteAt:xj,difference:bd,elem:vM,empty:bf,filter:x0,filterMap:x1,filterMapWithIndex:xN,filterWithIndex:xq,flap:bo,foldMap:xh,foldMapWithIndex:xv,fromFoldable:function(e,t,n){return function(r){var i=xL(e);return n.reduce(r,new Map,function(e,n){var r=n[0],o=n[1],a=i(r,e);return ef(a)?e.set(a.value[0],t.concat(a.value[1],o)):e.set(r,o),e})}},getDifferenceMagma:be,getEq:vV,getFilterableWithIndex:function(){return{URI:"Map",_E:void 0,map:xQ,mapWithIndex:xP,compact:xX,separate:x9,filter:xV,filterMap:xz,partition:xY,partitionMap:xH,partitionMapWithIndex:x$,partitionWithIndex:xG,filterMapWithIndex:xJ,filterWithIndex:xZ}},getFoldable:bt,getFoldableWithIndex:bn,getIntersectionSemigroup:x8,getMonoid:function(e,t){var n=xL(e);return{concat:function(e,r){if(vk(e))return r;if(vk(r))return e;for(var i,o=new Map(e),a=r.entries();!(i=a.next()).done;){var u=i.value,s=u[0],l=u[1],c=n(s,e);ef(c)?o.set(c.value[0],t.concat(c.value[1],l)):o.set(s,l)}return o},empty:new Map}},getShow:vO,getTraversableWithIndex:br,getUnionMonoid:x7,getUnionSemigroup:x4,getWitherable:function(e){var t=br(e);return{URI:"Map",_E:void 0,map:xQ,compact:xX,separate:x9,filter:xV,filterMap:xz,partition:xY,partitionMap:xH,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,traverse:t.traverse,sequence:t.sequence,mapWithIndex:xP,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverseWithIndex:t.traverseWithIndex,wilt:op(t,ba),wither:oA(t,ba)}},insertAt:xF,intersection:bc,isEmpty:vk,isSubmap:vq,keys:xR,lookup:vN,lookupWithKey:xL,map:x2,mapWithIndex:x6,map_:bu,member:vE,modifyAt:xK,partition:x5,partitionMap:x3,partitionMapWithIndex:xW,partitionWithIndex:xD,pop:function(e){var t=vN(e),n=xj(e);return function(e){var r=n(e);return function(n){return ea(t(e,n),cz(function(e){return[e,r(n)]}))}}},reduce:xA,reduceRight:xm,reduceRightWithIndex:xx,reduceWithIndex:xy,separate:x9,singleton:xB,size:vR,toArray:xM,toUnfoldable:function(e,t){var n=xM(e);return function(e){var r=n(e),i=r.length;return t.unfold(0,function(e){return e<i?eA([r[e],e+1]):ep})}},union:bl,updateAt:xU,upsertAt:xF,values:xk},Symbol.toStringTag,{value:"Module"})),bA=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),bh=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),bm=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),bg=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),by=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var bv=function(e){return{concat:tE(e).concat,empty:e.top}},bx=function(e){return{concat:tM(e).concat,empty:e.bottom}},bb=function(e){return{concat:tI(e).concat,empty:e.empty}},bC=function(e){var t={};for(var n in e)eI.call(e,n)&&(t[n]=e[n].empty);return{concat:tj(e).concat,empty:t}},bS=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{concat:tU.apply(tz,e).concat,empty:e.map(function(e){return e.empty})}},bw=function(e){return tR(e)(e.empty)},bI={concat:tP.concat,empty:void 0},b_={concat:tD.concat,empty:!0},bT={concat:tN.concat,empty:!1},bO=function(){return bb(p5())},bR={concat:tq.concat,empty:""},bk={concat:tQ.concat,empty:0},bE={concat:tV.concat,empty:1};let bM=Object.freeze(Object.defineProperty({__proto__:null,concatAll:bw,fold:bw,getDualMonoid:bb,getEndomorphismMonoid:bO,getFunctionMonoid:V,getJoinMonoid:bx,getMeetMonoid:bv,getStructMonoid:bC,getTupleMonoid:bS,max:bx,min:bv,monoidAll:b_,monoidAny:bT,monoidProduct:bE,monoidString:bR,monoidSum:bk,monoidVoid:bI,reverse:bb,struct:bC,tuple:bS},Symbol.toStringTag,{value:"Module"})),bF=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var bj=function(e,t,n){return function(r){return -1===r?e():0===r?t():n()}},bU=function(e){return -1===e?1:1===e?-1:0},bK={equals:function(e,t){return e===t}},bL={concat:function(e,t){return 0!==e?e:t}},bB={concat:bL.concat,empty:0},bP=function(e){return e<=-1?-1:e>=1?1:0};let bW=Object.freeze(Object.defineProperty({__proto__:null,Eq:bK,Monoid:bB,Semigroup:bL,eqOrdering:bK,invert:bU,match:bj,matchW:bj,monoidOrdering:bB,reverse:bU,semigroupOrdering:bL,sign:bP},Symbol.toStringTag,{value:"Module"})),bD=Object.freeze(Object.defineProperty({__proto__:null,pipe:ea,pipeable:function(e){var t,n,r,i,o,a,u,s,l,c,d,f,p,A,h,m={};if("function"==typeof e.map){var g=function(t){return function(n){return e.map(n,t)}};m.map=g}if("function"==typeof e.contramap){var y=function(t){return function(n){return e.contramap(n,t)}};m.contramap=y}if("function"==typeof e.mapWithIndex){var v=function(t){return function(n){return e.mapWithIndex(n,t)}};m.mapWithIndex=v}if("function"==typeof e.ap){var x=function(t){return function(n){return e.ap(n,t)}},b=function(t){return function(n){return e.ap(e.map(n,function(e){return function(){return e}}),t)}};m.ap=x,m.apFirst=b,m.apSecond=function(t){return function(n){return e.ap(e.map(n,function(){return function(e){return e}}),t)}}}if("function"==typeof e.chain){var C=function(t){return function(n){return e.chain(n,t)}},S=function(t){return function(n){return e.chain(n,function(n){return e.map(t(n),function(){return n})})}},w=function(t){return e.chain(t,Z)};m.chain=C,m.chainFirst=S,m.flatten=w}if("function"==typeof e.bimap){var I=function(t,n){return function(r){return e.bimap(r,t,n)}},_=function(t){return function(n){return e.mapLeft(n,t)}};m.bimap=I,m.mapLeft=_}if("function"==typeof e.extend){var T=function(t){return function(n){return e.extend(n,t)}},O=function(t){return e.extend(t,Z)};m.extend=T,m.duplicate=O}if("function"==typeof e.reduce){var R=function(t,n){return function(r){return e.reduce(r,t,n)}},k=function(t){var n=e.foldMap(t);return function(e){return function(t){return n(t,e)}}},E=function(t,n){return function(r){return e.reduceRight(r,t,n)}};m.reduce=R,m.foldMap=k,m.reduceRight=E}if("function"==typeof e.reduceWithIndex){var M=function(t,n){return function(r){return e.reduceWithIndex(r,t,n)}},F=function(t){var n=e.foldMapWithIndex(t);return function(e){return function(t){return n(t,e)}}},j=function(t,n){return function(r){return e.reduceRightWithIndex(r,t,n)}};m.reduceWithIndex=M,m.foldMapWithIndex=F,m.reduceRightWithIndex=j}if("function"==typeof e.alt){var U=function(t){return function(n){return e.alt(n,t)}};m.alt=U}if("function"==typeof e.compact&&(m.compact=e.compact,m.separate=e.separate),"function"==typeof e.filter){var K=function(t){return function(n){return e.filter(n,t)}},L=function(t){return function(n){return e.filterMap(n,t)}},B=function(t){return function(n){return e.partition(n,t)}},P=function(t){return function(n){return e.partitionMap(n,t)}};m.filter=K,m.filterMap=L,m.partition=B,m.partitionMap=P}if("function"==typeof e.filterWithIndex){var W=function(t){return function(n){return e.filterWithIndex(n,t)}},D=function(t){return function(n){return e.filterMapWithIndex(n,t)}},N=function(t){return function(n){return e.partitionWithIndex(n,t)}},q=function(t){return function(n){return e.partitionMapWithIndex(n,t)}};m.filterWithIndex=W,m.filterMapWithIndex=D,m.partitionWithIndex=N,m.partitionMapWithIndex=q}if("function"==typeof e.promap){var Q=function(t,n){return function(r){return e.promap(r,t,n)}};m.promap=Q}if("function"==typeof e.compose){var V=function(t){return function(n){return e.compose(n,t)}};m.compose=V}if("function"==typeof e.throwError){var z=function(t){return function(n){return"None"===n._tag?e.throwError(t()):e.of(n.value)}},Y=function(t){return"Left"===t._tag?e.throwError(t.left):e.of(t.right)},H=function(t,n){return function(r){return t(r)?e.of(r):e.throwError(n(r))}},J=function(t,n){return function(r){return e.chain(r,function(r){return t(r)?e.of(r):e.throwError(n(r))})}};m.fromOption=z,m.fromEither=Y,m.fromPredicate=H,m.filterOrElse=J}return m}},Symbol.toStringTag,{value:"Module"})),bN=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),bq=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var bQ=function(){return Math.random()};function bV(e,t){return ea(bQ,mM(function(n){return Math.floor((t-e+1)*n+e)}))}var bz=ea(bQ,mM(function(e){return e<.5})),bY=function(e){return ea(bV(0,e.length-1),mM(function(t){return e[t]}))};let bH=Object.freeze(Object.defineProperty({__proto__:null,random:bQ,randomBool:bz,randomElem:bY,randomInt:bV,randomRange:function(e,t){return ea(bQ,mM(function(n){return(t-e)*n+e}))}},Symbol.toStringTag,{value:"Module"}));var bZ=pU(Aq),bJ=pj(Aq),bG=pK(AD),b$=pL(AD),bX=pH(AD),b0=pZ(AZ),b1=pJ(AZ),b2=p1(AD),b6=pG(AZ),b5=p$(AZ),b3=pX(AZ),b9=p0(AD),b4=function(e,t){return ea(e,Cr(t))},b7=function(e,t,n){return ea(e,Ci(t,n))},b8=function(e,t){return ea(e,Co(t))},Ce=function(e,t){return ea(e,Ca(t))},Ct=function(e,t){return ea(e,Cu(t))},Cn=function(e,t){return ea(e,Cl(t))},Cr=pD(AD),Ci=pV(AD),Co=pz(AD),Ca=pN(AQ),Cu=pq(AZ),Cs=Cu(Z),Cl=pQ(AZ),Cc="ReaderEither",Cd=function(e){var t=fM(e);return{URI:Cc,_E:void 0,compact:dX(AD,t),separate:d0(AD,t,fB)}};function Cf(e){var t=eT(AQ,fU(e));return{URI:Cc,_E:void 0,map:b4,ap:function(e,n){return ea(e,t(n))},of:bJ}}function Cp(e){var t=pY(AZ,e);return{URI:Cc,_E:void 0,map:b4,alt:function(e,n){return ea(e,t(n))}}}var CA={URI:Cc,map:b4},Ch=eB(CA),Cm={URI:Cc,map:b4,ap:Ce},Cg=eO(Cm),Cy=eR(Cm),Cv={URI:Cc,map:b4,ap:Ce,of:bJ},Cx={URI:Cc,map:b4,ap:Ce,chain:Ct},Cb=eV(Cx),CC={URI:Cc,fromReader:bG},CS=A8(CC),Cw=he(CC),CI=ht(CC),C_=hn(CC,Cx),CT=hr(CC,Cx),CO={URI:Cc,fromEither:J},CR=eH(CO),Ck=eJ(CO),CE=eG(CO,Cx),CM=eX(CO,Cx),CF=e0(CO,Cx),Cj=eZ(CO),CU=e1(CO,Cx),CK=e$(CO),CL=bJ(ew),CB=eP(CA),CP=ez(Cx),CW=ek(Cm),CD=bJ(eS),CN=function(e){return et(A2(e),AT(pw(eu)))},Cq=function(e){var t=CN(e);return function(e){return ex(e)?t(e):CD}},CQ=function(e){return Cq(function(t,n){return e(n)})},CV=CQ(Z),Cz=eE(Cm),CY=eN(Cv),CH=function(e){return eE(AQ)(fE(e))};let CZ=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:Cc,map:b4,alt:Cn},ApT:CD,Applicative:Cv,Apply:Cm,Bifunctor:{URI:Cc,bimap:b7,mapLeft:b8},Chain:Cx,Do:CL,FromEither:CO,FromReader:CC,Functor:CA,Monad:{URI:Cc,map:b4,ap:Ce,of:bJ,chain:Ct},MonadThrow:{URI:Cc,map:b4,ap:Ce,of:bJ,chain:Ct,throwError:bZ},Pointed:{URI:Cc,of:bJ},URI:Cc,alt:Cl,altW:Cl,ap:Ca,apFirst:Cg,apFirstW:Cg,apS:CW,apSW:CW,apSecond:Cy,apSecondW:Cy,apW:Ca,ask:CS,asks:Cw,asksReaderEither:Ab,asksReaderEitherW:Ab,bimap:Ci,bind:CP,bindTo:CB,bindW:CP,chain:Cu,chainEitherK:CM,chainEitherKW:CM,chainFirst:Cb,chainFirstEitherK:CF,chainFirstEitherKW:CF,chainFirstReaderK:CT,chainFirstReaderKW:CT,chainFirstW:Cb,chainOptionK:CE,chainReaderK:C_,chainReaderKW:C_,chainW:Cu,filterOrElse:CU,filterOrElseW:CU,flap:Ch,flatten:Cs,flattenW:Cs,fold:b0,foldW:b0,fromEither:J,fromEitherK:CK,fromOption:CR,fromOptionK:Ck,fromPredicate:Cj,fromReader:bG,fromReaderK:CI,getAltReaderValidation:Cp,getApplicativeReaderValidation:Cf,getApplyMonoid:CY,getApplySemigroup:Cz,getCompactable:Cd,getFilterable:function(e){var t=fF(e),n=Cd(e),r=p8(AD,t),i=Ae(AD,t),o=At(AD,t),a=An(AD,t);return{URI:Cc,_E:void 0,map:b4,compact:n.compact,separate:n.separate,filter:function(e,t){return ea(e,r(t))},filterMap:function(e,t){return ea(e,i(t))},partition:function(e,t){return ea(e,o(t))},partitionMap:function(e,t){return ea(e,a(t))}}},getOrElse:b1,getOrElseW:b1,getReaderValidation:function(e){var t=Cf(e),n=Cp(e);return{URI:Cc,_E:void 0,map:b4,ap:t.ap,of:bJ,chain:Ct,bimap:b7,mapLeft:b8,alt:n.alt,throwError:bZ}},getSemigroup:CH,left:bZ,leftReader:b$,local:Ax,map:Cr,mapLeft:Co,match:bX,matchE:b0,matchEW:b0,matchW:bX,of:bJ,orElse:b6,orElseFirst:b5,orElseFirstW:b5,orElseW:b6,orLeft:b3,readerEither:{URI:Cc,bimap:b7,mapLeft:b8,map:b4,of:bJ,ap:Ce,chain:Ct,alt:Cn,throwError:bZ},right:bJ,rightReader:bG,sequenceArray:CV,swap:b9,throwError:bZ,toUnion:b2,traverseArray:CQ,traverseArrayWithIndex:Cq,traverseReadonlyArrayWithIndex:Cq,traverseReadonlyNonEmptyArrayWithIndex:CN},Symbol.toStringTag,{value:"Module"}));function CJ(e){return function(t){return function(){return e.of(t)}}}function CG(e){return function(t){return function(n){return function(r){return e.map(n(r),t)}}}}function C$(e){return function(t){return function(n){return function(r){return e.ap(n(r),t(r))}}}}function CX(e){return function(t){return function(n){return function(r){return e.chain(n(r),function(e){return t(e)(r)})}}}}function C0(e){return function(t){return et(t,e.of)}}let C1=Object.freeze(Object.defineProperty({__proto__:null,ap:C$,chain:CX,fromNaturalTransformation:function(e){return function(t){return et(t,e)}},fromReader:C0,getReaderM:function(e){var t=C$(e),n=CG(e),r=CX(e);return{map:function(e,t){return ea(e,n(t))},ap:function(e,n){return ea(e,t(n))},of:CJ(e),chain:function(e,t){return ea(e,r(t))},ask:function(){return e.of},asks:function(t){return et(t,e.of)},local:function(e,t){return function(n){return e(t(n))}},fromReader:C0(e),fromM:function(e){return function(){return e}}}},map:CG,of:CJ},Symbol.toStringTag,{value:"Module"}));var C2=function(e){return function(){return Promise.resolve().then(e)}},C6=function(e,t){return ea(e,C4(t))},C5=function(e,t){return ea(e,C7(t))},C3=function(e,t){return ea(e,Se(function(e){return ea(t,C4(e))}))},C9=function(e,t){return ea(e,Se(t))},C4=function(e){return function(t){return function(){return Promise.resolve().then(t).then(e)}}},C7=function(e){return function(t){return function(){return Promise.all([Promise.resolve().then(t),Promise.resolve().then(e)]).then(function(e){var t;return(0,e[0])(e[1])})}}},C8=function(e){return function(){return Promise.resolve(e)}},Se=function(e){return function(t){return function(){return Promise.resolve().then(t).then(function(t){return e(t)()})}}},St=Se(Z),Sn="Task",Sr={URI:Sn,map:C6},Si=eB(Sr),So={URI:Sn,of:C8},Sa={URI:Sn,map:C6,ap:C5},Su=eO(Sa),Ss=eR(Sa),Sl={URI:Sn,map:C6,ap:C5,of:C8},Sc={URI:Sn,map:C6,ap:C3},Sd={URI:Sn,map:C6,ap:C3,of:C8},Sf={URI:Sn,map:C6,ap:C5,chain:C9},Sp={URI:Sn,map:C6,of:C8,ap:C5,chain:C9},SA=eV(Sf),Sh={URI:Sn,fromIO:C2},Sm=Ah(Sh),Sg=Am(Sh,Sf),Sy=Ag(Sh,Sf),Sv=function(){return new Promise(function(e){})},Sx=C8(ew),Sb=eP(Sr),SC=ez(Sf),SS=ek(Sa),Sw=C8(eS),SI=function(e){return function(t){return function(){return Promise.all(t.map(function(t,n){return Promise.resolve().then(function(){return e(n,t)()})}))}}},S_=function(e){var t=SI(e);return function(e){return ex(e)?t(e):Sw}},ST=function(e){return function(t){return function(){return eC(t).reduce(function(t,n,r){return t.then(function(t){return Promise.resolve().then(e(r+1,n)).then(function(e){return t.push(e),t})})},Promise.resolve().then(e(0,eb(t))).then(ev))}}},SO=function(e){var t=ST(e);return function(e){return ex(e)?t(e):Sw}},SR=function(e){return S_(function(t,n){return e(n)})},Sk=SR(Z),SE=function(e){return SO(function(t,n){return e(n)})},SM=SE(Z),SF=eE(Sc),Sj=eN(Sd);let SU=Object.freeze(Object.defineProperty({__proto__:null,ApT:Sw,ApplicativePar:Sl,ApplicativeSeq:Sd,ApplyPar:Sa,ApplySeq:Sc,Chain:Sf,Do:Sx,FromIO:Sh,FromTask:{URI:Sn,fromIO:C2,fromTask:Z},Functor:Sr,Monad:Sp,MonadIO:{URI:Sn,map:C6,of:C8,ap:C5,chain:C9,fromIO:C2},MonadTask:{URI:Sn,map:C6,of:C8,ap:C5,chain:C9,fromIO:C2,fromTask:Z},Pointed:So,URI:Sn,ap:C7,apFirst:Su,apS:SS,apSecond:Ss,bind:SC,bindTo:Sb,chain:Se,chainFirst:SA,chainFirstIOK:Sy,chainIOK:Sg,delay:function(e){return function(t){return function(){return new Promise(function(n){setTimeout(function(){Promise.resolve().then(t).then(n)},e)})}}},flap:Si,flatten:St,fromIO:C2,fromIOK:Sm,fromTask:Z,getMonoid:Sj,getRaceMonoid:function(){return{concat:function(e,t){return function(){return Promise.race([Promise.resolve().then(e),Promise.resolve().then(t)])}},empty:Sv}},getSemigroup:SF,map:C4,never:Sv,of:C8,sequenceArray:Sk,sequenceSeqArray:SM,task:{URI:Sn,map:C6,of:C8,ap:C5,chain:C9,fromIO:C2,fromTask:Z},taskSeq:{URI:Sn,map:C6,of:C8,ap:C3,chain:C9,fromIO:C2,fromTask:Z},traverseArray:SR,traverseArrayWithIndex:S_,traverseReadonlyArrayWithIndex:S_,traverseReadonlyArrayWithIndexSeq:SO,traverseReadonlyNonEmptyArrayWithIndex:SI,traverseReadonlyNonEmptyArrayWithIndexSeq:ST,traverseSeqArray:SE,traverseSeqArrayWithIndex:SO},Symbol.toStringTag,{value:"Module"}));var SK=C0(So),SL=et(C2,J),SB=function(e,t){return ea(e,SN(t))},SP=function(e,t){return ea(e,Sq(t))},SW=function(e,t){return ea(e,SV(function(e){return ea(t,SN(e))}))},SD=function(e,t){return ea(e,SV(t))},SN=CG(Sr),Sq=C$(Sa),SQ=CJ(So),SV=CX(Sp),Sz=SV(Z),SY="ReaderTask",SH={URI:SY,map:SB},SZ=eB(SH),SJ={URI:SY,of:SQ},SG={URI:SY,map:SB,ap:SP},S$=eO(SG),SX=eR(SG),S0={URI:SY,map:SB,ap:SW},S1={URI:SY,map:SB,ap:SW,of:SQ},S2={URI:SY,map:SB,ap:SP,chain:SD},S6={URI:SY,map:SB,of:SQ,ap:SP,chain:SD},S5=eV(S2),S3={URI:SY,fromIO:SL},S9=Ah(S3),S4=Am(S3,S2),S7=Ag(S3,S2),S8={URI:SY,fromReader:SK},we=A8(S8),wt=he(S8),wn=ht(S8),wr=hn(S8,S2),wi=hr(S8,S2),wo={URI:SY,fromIO:SL,fromTask:J},wa=hV(wo),wu=hz(wo,S2),ws=hY(wo,S2),wl=SQ(ew),wc=eP(SH),wd=ez(S2),wf=ek(SG),wp=SQ(eS),wA=function(e){return et(A2(e),AT(SI(eu)))},wh=function(e){var t=wA(e);return function(e){return ex(e)?t(e):wp}},wm=function(e){return et(A2(e),AT(ST(eu)))},wg=function(e){var t=wm(e);return function(e){return ex(e)?t(e):wp}},wy=function(e){return wh(function(t,n){return e(n)})},wv=wy(Z),wx=function(e){return wg(function(t,n){return e(n)})},wb=wx(Z),wC=eE(S0),wS=eN(S1);function ww(e,t){return e(t)()}let wI=Object.freeze(Object.defineProperty({__proto__:null,ApT:wp,ApplicativePar:{URI:SY,map:SB,ap:SP,of:SQ},ApplicativeSeq:S1,ApplyPar:SG,ApplySeq:S0,Chain:S2,Do:wl,FromIO:S3,FromReader:S8,FromTask:wo,Functor:SH,Monad:S6,MonadIO:{URI:SY,map:SB,of:SQ,ap:SP,chain:SD,fromIO:SL},MonadTask:{URI:SY,map:SB,of:SQ,ap:SP,chain:SD,fromIO:SL,fromTask:J},Pointed:SJ,URI:SY,ap:Sq,apFirst:S$,apS:wf,apSW:wf,apSecond:SX,apW:Sq,ask:we,asks:wt,asksReaderTask:Ab,asksReaderTaskW:Ab,bind:wd,bindTo:wc,bindW:wd,chain:SV,chainFirst:S5,chainFirstIOK:S7,chainFirstReaderK:wi,chainFirstReaderKW:wi,chainFirstTaskK:ws,chainFirstW:S5,chainIOK:S4,chainReaderK:wr,chainReaderKW:wr,chainTaskK:wu,chainW:SV,flap:SZ,flatten:Sz,flattenW:Sz,fromIO:SL,fromIOK:S9,fromReader:SK,fromReaderK:wn,fromTask:J,fromTaskK:wa,getMonoid:wS,getSemigroup:wC,local:Ax,map:SN,of:SQ,readerTask:{URI:SY,map:SB,of:SQ,ap:SP,chain:SD,fromIO:SL,fromTask:J},readerTaskSeq:{URI:SY,map:SB,of:SQ,ap:SW,chain:SD,fromIO:SL,fromTask:J},run:ww,sequenceArray:wv,sequenceSeqArray:wb,traverseArray:wy,traverseArrayWithIndex:wh,traverseReadonlyArrayWithIndex:wh,traverseReadonlyArrayWithIndexSeq:wg,traverseReadonlyNonEmptyArrayWithIndex:wA,traverseReadonlyNonEmptyArrayWithIndexSeq:wm,traverseSeqArray:wx,traverseSeqArrayWithIndex:wg},Symbol.toStringTag,{value:"Module"}));var w_=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},wT=pU(So),wO=pj(So),wR=pK(Sr),wk=pL(Sr),wE=et(C2,wR),wM=et(C2,wk),wF=function(e){return C4(f9(e))},wj=pH(Sr),wU=pZ(Sp),wK=pJ(Sp),wL=function(e,t){return function(){var n,r,i,o;return n=void 0,r=void 0,i=void 0,o=function(){var n;return w_(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e().then(ey)];case 1:return[2,n.sent()];case 2:return[2,eg(t(n.sent()))];case 3:return[2]}})},new(i||(i=Promise))(function(e,t){function a(e){try{s(o.next(e))}catch(n){t(n)}}function u(e){try{s(o.throw(e))}catch(n){t(n)}}function s(t){var n;t.done?e(t.value):((n=t.value)instanceof i?n:new i(function(e){e(n)})).then(a,u)}s((o=o.apply(n,r||[])).next())})}},wB=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return wL(function(){return e.apply(void 0,n)},t)}},wP=p1(Sr),wW=pB(So),wD=pP(So),wN=pW(Sp),wq=pG(Sp),wQ=p$(Sp),wV=function(e){return wQ(IT(e))},wz=function(e){return wQ(IE(e))},wY=pX(Sp),wH=p0(Sr),wZ=function(e){var t=wF(e);return function(e){return et(e,t)}},wJ=function(e){return function(t){return function(n){return ea(n,Ie(wZ(e)(t)))}}},wG=function(e){return et(e,C2)},w$=function(e){return It(wG(e))},wX=function(e,t){return ea(e,w9(t))},w0=function(e,t){return ea(e,w8(t))},w1=function(e,t){return ea(e,Ie(function(e){return ea(t,w9(e))}))},w2=function(e,t){return ea(e,Ie(t))},w6=function(e,t,n){return ea(e,w4(t,n))},w5=function(e,t){return ea(e,w7(t))},w3=function(e,t){return ea(e,Ir(t))},w9=pD(Sr),w4=pV(Sr),w7=pz(Sr),w8=pN(Sa),Ie=pq(Sp),It=Ie,In=It(Z),Ir=pQ(Sp),Ii="TaskEither";function Io(e,t){var n=eT(e,fU(t));return{URI:Ii,_E:void 0,map:wX,ap:function(e,t){return ea(e,n(t))},of:wO}}function Ia(e){var t=pY(Sp,e);return{URI:Ii,_E:void 0,map:wX,alt:function(e,n){return ea(e,t(n))}}}var Iu=function(e){var t=fM(e);return{URI:Ii,_E:void 0,compact:dX(Sr,t),separate:d0(Sr,t,fB)}},Is={URI:Ii,map:wX},Il=eB(Is),Ic={URI:Ii,map:wX,ap:w0},Id=eO(Ic),If=eR(Ic),Ip={URI:Ii,map:wX,ap:w1},IA={URI:Ii,map:wX,ap:w1,of:wO},Ih={URI:Ii,map:wX,ap:w0,chain:w2},Im=eV(Ih),Ig={URI:Ii,fromEither:C8},Iy=eH(Ig),Iv=eJ(Ig),Ix=eG(Ig,Ih),Ib=eX(Ig,Ih),IC=e0(Ig,Ih),IS=eZ(Ig),Iw=e1(Ig,Ih),II=e$(Ig),I_={URI:Ii,fromIO:wE},IT=Ah(I_),IO=Am(I_,Ih),IR=Ag(I_,Ih),Ik={URI:Ii,fromIO:wE,fromTask:wR},IE=hV(Ik),IM=hz(Ik,Ih),IF=hY(Ik,Ih),Ij=function(e,t,n){return IU(e,t,n)},IU=function(e,t,n){return ea(e,It(function(e){return ea(t(e),Se(function(t){return ea(n(e,t),It(function(){return C8(t)}))}))}))},IK=wO(ew),IL=eP(Is),IB=ez(Ih),IP=ek(Ic),IW=wO(eS),ID=function(e){return et(SI(e),C4(pw(eu)))},IN=function(e){var t=ID(e);return function(e){return ex(e)?t(e):IW}},Iq=function(e){return function(t){return function(){return eC(t).reduce(function(t,n,r){return t.then(function(i){return eh(i)?t:e(r+1,n)().then(function(e){return eh(e)?e:(i.right.push(e.right),i)})})},e(0,eb(t))().then(fL(ev)))}}},IQ=function(e){var t=Iq(e);return function(e){return ex(e)?t(e):IW}},IV=function(e){return IN(function(t,n){return e(n)})},Iz=IV(Z),IY=function(e){return IQ(function(t,n){return e(n)})},IH=IY(Z),IZ=eE(Ip),IJ=eN(IA),IG=function(e){return eE(Sc)(fE(e))};let I$=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:Ii,map:wX,alt:w3},ApT:IW,ApplicativePar:{URI:Ii,map:wX,ap:w0,of:wO},ApplicativeSeq:IA,ApplyPar:Ic,ApplySeq:Ip,Bifunctor:{URI:Ii,bimap:w6,mapLeft:w5},Chain:Ih,Do:IK,FromEither:Ig,FromIO:I_,FromTask:Ik,Functor:Is,Monad:{URI:Ii,map:wX,ap:w0,chain:w2,of:wO},MonadIO:{URI:Ii,map:wX,ap:w0,chain:w2,of:wO,fromIO:wE},MonadTask:{URI:Ii,map:wX,ap:w0,chain:w2,of:wO,fromIO:wE,fromTask:wR},MonadThrow:{URI:Ii,map:wX,ap:w0,chain:w2,of:wO,throwError:wT},Pointed:{URI:Ii,of:wO},URI:Ii,alt:Ir,altW:Ir,ap:w8,apFirst:Id,apFirstW:Id,apS:IP,apSW:IP,apSecond:If,apSecondW:If,apW:w8,bimap:w4,bind:IB,bindTo:IL,bindW:IB,bracket:Ij,bracketW:IU,chain:Ie,chainEitherK:Ib,chainEitherKW:Ib,chainFirst:Im,chainFirstEitherK:IC,chainFirstEitherKW:IC,chainFirstIOK:IR,chainFirstTaskK:IF,chainFirstW:Im,chainIOEitherK:w$,chainIOEitherKW:w$,chainIOK:IO,chainNullableK:wN,chainOptionK:Ix,chainTaskK:IM,chainTaskOptionK:wJ,chainTaskOptionKW:wJ,chainW:It,filterOrElse:Iw,filterOrElseW:Iw,flap:Il,flatten:In,flattenW:In,fold:wU,foldW:wU,fromEither:C8,fromEitherK:II,fromIO:wE,fromIOEither:C2,fromIOEitherK:wG,fromIOK:IT,fromNullable:wW,fromNullableK:wD,fromOption:Iy,fromOptionK:Iv,fromPredicate:IS,fromTask:wR,fromTaskK:IE,fromTaskOption:wF,fromTaskOptionK:wZ,getAltTaskValidation:Ia,getApplicativeTaskValidation:Io,getApplyMonoid:IJ,getApplySemigroup:IZ,getCompactable:Iu,getFilterable:function(e){var t=fF(e),n=Iu(e),r=p8(Sr,t),i=Ae(Sr,t),o=At(Sr,t),a=An(Sr,t);return{URI:Ii,_E:void 0,map:wX,compact:n.compact,separate:n.separate,filter:function(e,t){return ea(e,r(t))},filterMap:function(e,t){return ea(e,i(t))},partition:function(e,t){return ea(e,o(t))},partitionMap:function(e,t){return ea(e,a(t))}}},getOrElse:wK,getOrElseW:wK,getSemigroup:IG,getTaskValidation:function(e){var t=Io(Sl,e),n=Ia(e);return{URI:Ii,_E:void 0,map:wX,ap:t.ap,of:wO,chain:w2,bimap:w6,mapLeft:w5,alt:n.alt,fromIO:wE,fromTask:wR,throwError:wT}},left:wT,leftIO:wM,leftTask:wk,map:w9,mapLeft:w7,match:wj,matchE:wU,matchEW:wU,matchW:wj,of:wO,orElse:wq,orElseFirst:wQ,orElseFirstIOK:wV,orElseFirstTaskK:wz,orElseFirstW:wQ,orElseW:wq,orLeft:wY,right:wO,rightIO:wE,rightTask:wR,sequenceArray:Iz,sequenceSeqArray:IH,swap:wH,taskEither:{URI:Ii,bimap:w6,mapLeft:w5,map:wX,of:wO,ap:w0,chain:w2,alt:w3,fromIO:wE,fromTask:wR,throwError:wT},taskEitherSeq:{URI:Ii,bimap:w6,mapLeft:w5,map:wX,of:wO,ap:w1,chain:w2,alt:w3,fromIO:wE,fromTask:wR,throwError:wT},taskify:function(e){return function(){var t=Array.prototype.slice.call(arguments);return function(){return new Promise(function(n){var r=function(e,t){return null!=e?n(eg(e)):n(ey(t))};e.apply(null,t.concat(r))})}}},throwError:wT,toUnion:wP,traverseArray:IV,traverseArrayWithIndex:IN,traverseReadonlyArrayWithIndex:IN,traverseReadonlyArrayWithIndexSeq:IQ,traverseReadonlyNonEmptyArrayWithIndex:ID,traverseReadonlyNonEmptyArrayWithIndexSeq:Iq,traverseSeqArray:IY,traverseSeqArrayWithIndex:IQ,tryCatch:wL,tryCatchK:wB},Symbol.toStringTag,{value:"Module"}));var IX=pU(SJ),I0=pj(SJ),I1=et(wR,J),I2=et(wk,J),I6=function(e){return et(e,wO)},I5=function(e){return et(e,wT)},I3=pK(SH),I9=pL(SH),I4=et(wE,J),I7=et(wM,J),I8=et(C2,J),_e=function(e){return et(e,C8)},_t=pH(SH),_n=pZ(S2),_r=pJ(S6),_i=p1(SH),_o=pB(SJ),_a=pP(SJ),_u=pW(S6),_s=pG(S6),_l=p$(S6),_c=pX(S6),_d=p0(SH),_f=function(e){return et(e,I8)},_p=function(e){return _M(_f(e))},_A=function(e){return et(e,J)},_h=function(e){return _M(_A(e))},_m=function(e){return _Z(_A(e))},_g=function(e){return et(e,_e)},_y=function(e){return _M(_g(e))},_v=function(e){return _Z(_g(e))},_x=function(e,t){return ea(e,_T(t))},_b=function(e,t){return ea(e,_k(t))},_C=function(e,t){return ea(e,_E(function(e){return ea(t,_T(e))}))},_S=function(e,t){return ea(e,_E(t))},_w=function(e,t){return ea(e,_j(t))},_I=function(e,t,n){return ea(e,_O(t,n))},__=function(e,t){return ea(e,_R(t))},_T=pD(SH),_O=pV(SH),_R=pz(SH),_k=pN(SG),_E=pq(S6),_M=_E,_F=_M(Z),_j=pQ(S6),_U="ReaderTaskEither",_K=function(e){var t=fM(e);return{URI:_U,_E:void 0,compact:dX(SH,t),separate:d0(SH,t,fB)}};function _L(e,t){var n=eT(AQ,Io(e,t));return{URI:_U,_E:void 0,map:_x,ap:function(e,t){return ea(e,n(t))},of:I0}}function _B(e){var t=pY(S6,e);return{URI:_U,_E:void 0,map:_x,alt:function(e,n){return ea(e,t(n))}}}var _P={URI:_U,map:_x},_W=eB(_P),_D={URI:_U,of:I0},_N={URI:_U,map:_x,ap:_b},_q=eO(_N),_Q=eR(_N),_V={URI:_U,map:_x,ap:_C},_z={URI:_U,map:_x,ap:_C,of:I0},_Y={URI:_U,map:_x,ap:_b,chain:_S},_H=eV(_Y),_Z=_H,_J={URI:_U,fromReader:I6},_G=A8(_J),_$=he(_J),_X=ht(_J),_0=hn(_J,_Y),_1=hr(_J,_Y),_2=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return I3(e.apply(void 0,t))}},_6=function(e){return _M(_2(e))},_5=function(e){return _Z(_2(e))},_3={URI:_U,fromEither:SQ},_9=eH(_3),_4=eJ(_3),_7=eG(_3,_Y),_8=eX(_3,_Y),Te=e0(_3,_Y),Tt=eZ(_3),Tn=e1(_3,_Y),Tr=e$(_3),Ti={URI:_U,fromIO:I4},To=Ah(Ti),Ta=Am(Ti,_Y),Tu=Ag(Ti,_Y),Ts={URI:_U,fromIO:I4,fromTask:I1},Tl=hV(Ts),Tc=hz(Ts,_Y),Td=hY(Ts,_Y);function Tf(e,t,n){return Tp(e,t,n)}function Tp(e,t,n){return function(r){return IU(e(r),function(e){return t(e)(r)},function(e,t){return n(e,t)(r)})}}var TA=I0(ew),Th=eP(_P),Tm=ez(_Y),Tg=ek(_N),Ty=I0(eS),Tv=function(e){return et(A2(e),AT(ID(eu)))},Tx=function(e){var t=Tv(e);return function(e){return ex(e)?t(e):Ty}},Tb=function(e){return et(A2(e),AT(Iq(eu)))},TC=function(e){var t=Tb(e);return function(e){return ex(e)?t(e):Ty}},TS=function(e){return Tx(function(t,n){return e(n)})},Tw=TS(Z),TI=function(e){return TC(function(t,n){return e(n)})},T_=TI(Z),TT=eE(_V),TO=eN(_z),TR=function(e){return eE(S0)(fE(e))};function Tk(e,t){return e(t)()}let TE=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:_U,map:_x,alt:_w},ApT:Ty,ApplicativePar:{URI:_U,map:_x,ap:_b,of:I0},ApplicativeSeq:_z,ApplyPar:_N,ApplySeq:_V,Bifunctor:{URI:_U,bimap:_I,mapLeft:__},Chain:_Y,Do:TA,FromEither:_3,FromIO:Ti,FromReader:_J,FromTask:Ts,Functor:_P,Monad:{URI:_U,map:_x,ap:_b,chain:_S,of:I0},MonadIO:{URI:_U,map:_x,ap:_b,chain:_S,of:I0,fromIO:I4},MonadTask:{URI:_U,map:_x,ap:_b,chain:_S,of:I0,fromIO:I4,fromTask:I1},MonadThrow:{URI:_U,map:_x,ap:_b,chain:_S,of:I0,throwError:IX},Pointed:_D,URI:_U,alt:_j,altW:_j,ap:_k,apFirst:_q,apFirstW:_q,apS:Tg,apSW:Tg,apSecond:_Q,apSecondW:_Q,apW:_k,ask:_G,asks:_$,asksReaderTaskEither:Ab,asksReaderTaskEitherW:Ab,bimap:_O,bind:Tm,bindTo:Th,bindW:Tm,bracket:Tf,bracketW:Tp,chain:_E,chainEitherK:_8,chainEitherKW:_8,chainFirst:_H,chainFirstEitherK:Te,chainFirstEitherKW:Te,chainFirstIOK:Tu,chainFirstReaderEitherK:_v,chainFirstReaderEitherKW:_v,chainFirstReaderK:_1,chainFirstReaderKW:_1,chainFirstReaderTaskK:_5,chainFirstReaderTaskKW:_5,chainFirstTaskEitherK:_m,chainFirstTaskEitherKW:_m,chainFirstTaskK:Td,chainFirstW:_Z,chainIOEitherK:_p,chainIOEitherKW:_p,chainIOK:Ta,chainNullableK:_u,chainOptionK:_7,chainReaderEitherK:_y,chainReaderEitherKW:_y,chainReaderK:_0,chainReaderKW:_0,chainReaderTaskK:_6,chainReaderTaskKW:_6,chainTaskEitherK:_h,chainTaskEitherKW:_h,chainTaskK:Tc,chainW:_M,filterOrElse:Tn,filterOrElseW:Tn,flap:_W,flatten:_F,flattenW:_F,fold:_n,foldW:_n,fromEither:SQ,fromEitherK:Tr,fromIO:I4,fromIOEither:I8,fromIOEitherK:_f,fromIOK:To,fromNullable:_o,fromNullableK:_a,fromOption:_9,fromOptionK:_4,fromPredicate:Tt,fromReader:I6,fromReaderEither:_e,fromReaderEitherK:_g,fromReaderK:_X,fromReaderTaskK:_2,fromTask:I1,fromTaskEither:J,fromTaskEitherK:_A,fromTaskK:Tl,getAltReaderTaskValidation:_B,getApplicativeReaderTaskValidation:_L,getApplyMonoid:TO,getApplySemigroup:TT,getCompactable:_K,getFilterable:function(e){var t=fF(e),n=_K(e),r=p8(SH,t),i=Ae(SH,t),o=At(SH,t),a=An(SH,t);return{URI:_U,_E:void 0,map:_x,compact:n.compact,separate:n.separate,filter:function(e,t){return ea(e,r(t))},filterMap:function(e,t){return ea(e,i(t))},partition:function(e,t){return ea(e,o(t))},partitionMap:function(e,t){return ea(e,a(t))}}},getOrElse:_r,getOrElseW:_r,getReaderTaskValidation:function(e){var t=_L(Sl,e),n=_B(e);return{URI:_U,_E:void 0,map:_x,of:I0,chain:_S,bimap:_I,mapLeft:__,ap:t.ap,alt:n.alt,fromIO:I4,fromTask:I1,throwError:IX}},getSemigroup:TR,left:IX,leftIO:I7,leftReader:I5,leftReaderTask:I9,leftTask:I2,local:Ax,map:_T,mapLeft:_R,match:_t,matchE:_n,matchEW:_n,matchW:_t,of:I0,orElse:_s,orElseFirst:_l,orElseFirstW:_l,orElseW:_s,orLeft:_c,readerTaskEither:{URI:_U,map:_x,of:I0,ap:_b,chain:_S,alt:_w,bimap:_I,mapLeft:__,fromIO:I4,fromTask:I1,throwError:IX},readerTaskEitherSeq:{URI:_U,map:_x,of:I0,ap:_C,chain:_S,alt:_w,bimap:_I,mapLeft:__,fromIO:I4,fromTask:I1,throwError:IX},right:I0,rightIO:I4,rightReader:I6,rightReaderTask:I3,rightTask:I1,run:Tk,sequenceArray:Tw,sequenceSeqArray:T_,swap:_d,throwError:IX,toUnion:_i,traverseArray:TS,traverseArrayWithIndex:Tx,traverseReadonlyArrayWithIndex:Tx,traverseReadonlyArrayWithIndexSeq:TC,traverseReadonlyNonEmptyArrayWithIndex:Tv,traverseReadonlyNonEmptyArrayWithIndexSeq:Tb,traverseSeqArray:TI,traverseSeqArrayWithIndex:TC},Symbol.toStringTag,{value:"Module"}));var TM={equals:function(e,t){return e===t}},TF={concat:function(e,t){return e+t}},Tj={concat:TF.concat,empty:""},TU={equals:TM.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},TK=function(e){return"string"==typeof e},TL=function(e){return e.toUpperCase()},TB=function(e){return e.toLowerCase()},TP=function(e,t){return function(n){return n.replace(e,t)}},TW=function(e){return e.trim()},TD=function(e){return e.trimLeft()},TN=function(e){return e.trimRight()},Tq=function(e,t){return function(n){return n.slice(e,t)}},TQ=function(e){return 0===e.length},TV=function(e){return e.length},Tz=function(e){return function(t){var n=t.split(e);return ex(n)?n:[t]}},TY=function(e,t){return function(n){return n.includes(e,t)}},TH=function(e,t){return function(n){return n.startsWith(e,t)}},TZ=function(e,t){return function(n){return n.endsWith(e,t)}};let TJ=Object.freeze(Object.defineProperty({__proto__:null,Eq:TM,Monoid:Tj,Ord:TU,Semigroup:TF,Show:{show:function(e){return JSON.stringify(e)}},empty:"",endsWith:TZ,includes:TY,isEmpty:TQ,isString:TK,replace:TP,size:TV,slice:Tq,split:Tz,startsWith:TH,toLowerCase:TB,toUpperCase:TL,trim:TW,trimLeft:TD,trimRight:TN},Symbol.toStringTag,{value:"Module"}));var TG=function(e){return Object.assign({},e)},T$=function(e){return Object.assign({},e)},TX=function(e){return Object.keys(e).length},T0=function(e){for(var t in e)if(eI.call(e,t))return!1;return!0},T1=function(e){return function(t){return Object.keys(t).sort(e.compare)}},T2=T1(TU);function T6(e){if("function"==typeof e)return T6(TU)(e);var t=T1(e);return function(e){return function(n){for(var r=[],i=0,o=t(n);i<o.length;i++){var a=o[i];r.push(e(a,n[a]))}return r}}}var T5=T6(TU)(function(e,t){return[e,t]}),T3=function(e,t){return function(n){if(eI.call(n,e)&&n[e]===t)return n;var r=Object.assign({},n);return r[e]=t,r}},T9=function(e,t){return eI.call(t,e)};function T4(e){return function(t){if(!eI.call(t,e))return t;var n=Object.assign({},t);return delete n[e],n}}var T7=function(e,t){return function(n){if(!T9(e,n))return ep;if(n[e]===t)return eA(n);var r=Object.assign({},n);return r[e]=t,eA(r)}},T8=function(e,t){return function(n){if(!T9(e,n))return ep;var r=t(n[e]);if(r===n[e])return eA(n);var i=Object.assign({},n);return i[e]=r,eA(i)}};function Oe(e){return function(t,n){if(void 0===n){var r=Oe(e);return function(e){return r(e,t)}}for(var i in t)if(!eI.call(n,i)||!e.equals(t[i],n[i]))return!1;return!0}}function Ot(e,t){return void 0===t?function(t){return Ot(e,t)}:eI.call(t,e)?eA(t[e]):ep}var On={};function Or(e){return function(t){var n={};for(var r in t)eI.call(t,r)&&(n[r]=e(r,t[r]));return n}}function Oi(e){return Or(function(t,n){return e(n)})}function Oo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(2===e.length)return Oo(TU).apply(void 0,e);var n=T1(e[0]);return function(e,t){return function(r){for(var i=e,o=n(r),a=o.length,u=0;u<a;u++){var s=o[u];i=t(s,i,r[s])}return i}}}function Oa(e){if("compare"in e){var t=T1(e);return function(e){return function(n){return function(r){for(var i=e.empty,o=t(r),a=o.length,u=0;u<a;u++){var s=o[u];i=e.concat(i,n(s,r[s]))}return i}}}}return Oa(TU)(e)}function Ou(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(2===e.length)return Ou(TU).apply(void 0,e);var n=T1(e[0]);return function(e,t){return function(r){for(var i=e,o=n(r),a=o.length,u=a-1;u>=0;u--){var s=o[u];i=t(s,r[s],i)}return i}}}var Os=function(e,t){var n;return(n={})[e]=t,n};function Ol(e){var t=OV(TU)(e);return function(e){return function(n){return t(n,e)}}}function Oc(e){var t=Oq(TU)(e);return function(e){return function(n){return t(n,e)}}}function Od(e){return OQ(TU)(e)}var Of=function(e){var t=Oc(e);return function(n){return function(r){return e.map(ea(r,t(n)),OX)}}},Op=function(e){var t=Oc(e);return function(n){return function(r){return e.map(ea(r,t(n)),O0)}}};function OA(e){return function(t){var n={},r={};for(var i in t)if(eI.call(t,i)){var o=e(i,t[i]);switch(o._tag){case"Left":n[i]=o.left;break;case"Right":r[i]=o.right}}return oe(n,r)}}function Oh(e){return function(t){var n={},r={};for(var i in t)if(eI.call(t,i)){var o=t[i];e(i,o)?r[i]=o:n[i]=o}return oe(n,r)}}function Om(e){return function(t){var n={};for(var r in t)if(eI.call(t,r)){var i=e(r,t[r]);ef(i)&&(n[r]=i.value)}return n}}function Og(e){return function(t){var n={},r=!1;for(var i in t)if(eI.call(t,i)){var o=t[i];e(i,o)?n[i]=o:r=!0}return r?n:t}}function Oy(e,t){var n=Ov(e,t);return function(e){return n(e,Z)}}function Ov(e,t){return function(n,r){return t.reduce(n,{},function(t,n){var i=r(n),o=i[0],a=i[1];return t[o]=eI.call(t,o)?e.concat(t[o],a):a,t})}}var Ox=function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];t[r[0]]=r[1]}return t};function Ob(e){return function(t){for(var n in t)if(!e(t[n]))return!1;return!0}}function OC(e){return function(t){for(var n in t)if(e(t[n]))return!0;return!1}}function OS(e){return function(t,n){if(void 0===n){var r=OS(e);return function(e){return r(t,e)}}for(var i in n)if(e.equals(n[i],t))return!0;return!1}}var Ow=function(e){return function(t){return function(n){if(T0(n))return t;if(T0(t))return n;var r={};for(var i in n)T9(i,t)?r[i]=e.concat(n[i],t[i]):r[i]=n[i];for(var i in t)T9(i,r)||(r[i]=t[i]);return r}}},OI=function(e){return function(t){return function(n){if(T0(n)||T0(t))return On;var r={};for(var i in n)T9(i,t)&&(r[i]=e.concat(n[i],t[i]));return r}}},O_=function(e){return function(t){if(T0(t))return e;if(T0(e))return t;var n={};for(var r in t)T9(r,e)||(n[r]=t[r]);for(var r in e)T9(r,t)||(n[r]=e[r]);return n}},OT=function(e,t){return ea(e,Oi(t))},OO=function(e,t){return ea(e,Or(t))},OR=function(e){var t=OJ(e);return function(e,n,r){return ea(e,t(n,r))}},Ok=function(e){return function(t){var n=OG(e)(t);return function(e,t){return ea(e,n(t))}}},OE=function(e){var t=O$(e);return function(e,n,r){return ea(e,t(n,r))}},OM=function(e,t){return ea(e,Oz(t))},OF=function(e,t){return ea(e,OY(t))},Oj=function(e,t){return ea(e,OH(t))},OU=function(e,t){return ea(e,OZ(t))},OK=function(e){var t=Oo(e);return function(e,n,r){return ea(e,t(n,r))}},OL=function(e){var t=Oa(e);return function(e){var n=t(e);return function(e,t){return ea(e,n(t))}}},OB=function(e){var t=Ou(e);return function(e,n,r){return ea(e,t(n,r))}},OP=function(e,t){return ea(e,OA(t))},OW=function(e,t){return ea(e,Oh(t))},OD=function(e,t){return ea(e,Om(t))},ON=function(e,t){return ea(e,Og(t))},Oq=function(e){var t=OV(e);return function(e){var n=t(e);return function(e,t){return n(e,et(eu,t))}}},OQ=function(e){var t=Oq(e);return function(e){var n=t(e);return function(e){return n(e,Z)}}},OV=function(e){return function(t){var n=T1(e);return function(e,r){var i=n(e);if(0===i.length)return t.of(On);for(var o=t.of({}),a=function(n){o=t.ap(t.map(o,function(e){return function(t){var r;return Object.assign({},e,((r={})[n]=t,r))}}),r(n,e[n]))},u=0;u<i.length;u++)a(i[u]);return o}}},Oz=function(e){return Og(function(t,n){return e(n)})},OY=function(e){return Om(function(t,n){return e(n)})},OH=function(e){return Oh(function(t,n){return e(n)})},OZ=function(e){return OA(function(t,n){return e(n)})};function OJ(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=Oo(e[0]);return function(e,t){return n(e,function(e,n,r){return t(n,r)})}}return OJ(TU).apply(void 0,e)}function OG(e){if("compare"in e){var t=Oa(e);return function(e){var n=t(e);return function(e){return n(function(t,n){return e(n)})}}}return OG(TU)(e)}function O$(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=Ou(e[0]);return function(e,t){return n(e,function(e,n,r){return t(n,r)})}}return O$(TU).apply(void 0,e)}var OX=function(e){var t={};for(var n in e)if(eI.call(e,n)){var r=e[n];ef(r)&&(t[n]=r.value)}return t},O0=function(e){var t={},n={};for(var r in e)if(eI.call(e,r)){var i=e[r];eh(i)?t[r]=i.left:n[r]=i.right}return oe(t,n)},O1="ReadonlyRecord";function O2(e){return"compare"in e?function(t){return{show:function(n){var r=T6(e)(function(e,n){return"".concat(JSON.stringify(e),": ").concat(t.show(n))})(n).join(", ");return""===r?"{}":"{ ".concat(r," }")}}}:O2(TU)(e)}function O6(e){var t=Oe(e);return e6(function(e,n){return t(e)(n)&&t(n)(e)})}function O5(e){return{concat:function(t,n){if(T0(t))return n;if(T0(n))return t;var r=Object.assign({},t);for(var i in n)eI.call(n,i)&&(r[i]=eI.call(t,i)?e.concat(t[i],n[i]):n[i]);return r},empty:On}}var O3={URI:O1,map:OT},O9=eB(O3),O4=function(e){return{URI:O1,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e)}},O7=function(e){return{URI:O1,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e),reduceWithIndex:OK(e),foldMapWithIndex:OL(e),reduceRightWithIndex:OB(e)}},O8={URI:O1,compact:OX,separate:O0},Re=function(e){return{URI:O1,map:OT,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e),traverse:Oq(e),sequence:OQ(e)}},Rt=function(e){return{URI:O1,map:OT,mapWithIndex:OO,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e),reduceWithIndex:OK(e),foldMapWithIndex:OL(e),reduceRightWithIndex:OB(e),traverse:Oq(e),sequence:OQ(e),traverseWithIndex:OV(e)}},Rn=function(e){var t=Re(e);return{URI:O1,map:OT,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e),traverse:t.traverse,sequence:t.sequence,compact:OX,separate:O0,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU,wither:oA(t,O8),wilt:op(t,O8)}},Rr=function(e){var t=Ow(e);return{concat:function(e,n){return t(n)(e)}}},Ri=function(e){return{concat:Rr(e).concat,empty:On}},Ro=function(e){var t=OI(e);return{concat:function(e,n){return t(n)(e)}}},Ra=function(){return{concat:function(e,t){return O_(t)(e)}}},Ru={URI:O1,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU)},Rs={URI:O1,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),reduceWithIndex:OK(TU),foldMapWithIndex:OL(TU),reduceRightWithIndex:OB(TU)},Rl={URI:O1,map:OT,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),traverse:Oq(TU),sequence:Od},Rc={URI:O1,map:OT,mapWithIndex:OO,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),reduceWithIndex:OK(TU),foldMapWithIndex:OL(TU),reduceRightWithIndex:OB(TU),traverse:Oq(TU),sequence:Od,traverseWithIndex:OV(TU)},Rd=oA(Rl,O8),Rf=op(Rl,O8),Rp={URI:O1,map:OT,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),traverse:Oq(TU),sequence:Od,compact:OX,separate:O0,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU,wither:Rd,wilt:Rf};function RA(e,t){return eI.call(void 0===t?this:t,e)}var Rh={URI:O1,map:OT,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),traverse:Oq(TU),sequence:Od,compact:OX,separate:O0,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU,mapWithIndex:OO,reduceWithIndex:OK(TU),foldMapWithIndex:OL(TU),reduceRightWithIndex:OB(TU),filterMapWithIndex:OD,filterWithIndex:ON,partitionMapWithIndex:OP,partitionWithIndex:OW,traverseWithIndex:OV(TU),wither:Rd,wilt:Rf};let Rm=Object.freeze(Object.defineProperty({__proto__:null,Compactable:O8,Filterable:{URI:O1,map:OT,compact:OX,separate:O0,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU},FilterableWithIndex:{URI:O1,map:OT,mapWithIndex:OO,compact:OX,separate:O0,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU,filterMapWithIndex:OD,filterWithIndex:ON,partitionMapWithIndex:OP,partitionWithIndex:OW},Foldable:Ru,FoldableWithIndex:Rs,Functor:O3,FunctorWithIndex:{URI:O1,map:OT,mapWithIndex:OO},Traversable:Rl,TraversableWithIndex:Rc,URI:O1,Witherable:Rp,_filter:OM,_filterMap:OF,_filterMapWithIndex:OD,_filterWithIndex:ON,_foldMap:Ok,_foldMapWithIndex:OL,_map:OT,_mapWithIndex:OO,_partition:Oj,_partitionMap:OU,_partitionMapWithIndex:OP,_partitionWithIndex:OW,_reduce:OR,_reduceRight:OE,_reduceRightWithIndex:OB,_reduceWithIndex:OK,_sequence:OQ,_traverse:Oq,collect:T6,compact:OX,deleteAt:T4,difference:O_,elem:OS,empty:On,every:Ob,filter:Oz,filterMap:OY,filterMapWithIndex:Om,filterWithIndex:Og,flap:O9,foldMap:OG,foldMapWithIndex:Oa,fromEntries:Ox,fromFoldable:Oy,fromFoldableMap:Ov,fromRecord:TG,getDifferenceMagma:Ra,getEq:O6,getFoldable:O4,getFoldableWithIndex:O7,getIntersectionSemigroup:Ro,getMonoid:O5,getShow:O2,getTraversable:Re,getTraversableWithIndex:Rt,getUnionMonoid:Ri,getUnionSemigroup:Rr,getWitherable:Rn,has:T9,hasOwnProperty:RA,insertAt:T3,intersection:OI,isEmpty:T0,isSubrecord:Oe,keys:T2,lookup:Ot,map:Oi,mapWithIndex:Or,modifyAt:T8,partition:OH,partitionMap:OZ,partitionMapWithIndex:OA,partitionWithIndex:Oh,pop:function(e){var t=T4(e);return function(n){var r=Ot(e,n);return ed(r)?ep:eA([r.value,t(n)])}},readonlyRecord:Rh,reduce:OJ,reduceRight:O$,reduceRightWithIndex:Ou,reduceWithIndex:Oo,separate:O0,sequence:Od,singleton:Os,size:TX,some:OC,toEntries:T5,toReadonlyArray:T5,toRecord:T$,toUnfoldable:function(e){return function(t){var n=T5(t),r=n.length;return e.unfold(0,function(e){return e<r?eA([n[e],e+1]):ep})}},traverse:Oc,traverseWithIndex:Ol,union:Ow,updateAt:T7,upsertAt:T3,wilt:Op,wither:Of},Symbol.toStringTag,{value:"Module"}));var Rg=function(e){return new Set(e)},Ry=function(e){return new Set([e])},Rv=function(e){return function(t){for(var n=t.length,r=new Set,i=RB(e),o=0;o<n;o++){var a=t[o];i(a,r)||r.add(a)}return r}};function Rx(e){return function(t){for(var n,r=t.values(),i=new Set;!(n=r.next()).done;){var o=n.value;e(o)&&i.add(o)}return i}}function Rb(e){var t=RB(e);return function(n,r){if(void 0===r){var i=Rb(e);return function(e){return i(n,e)}}if(RF(n))return r;if(RF(r))return n;var o=new Set(n);return r.forEach(function(e){t(e,o)||o.add(e)}),o}}function RC(e){var t=RB(e);return function(n,r){if(void 0===r){var i=RC(e);return function(e){return i(e,n)}}if(RF(n)||RF(r))return RM;var o=new Set;return n.forEach(function(e){t(e,r)&&o.add(e)}),o}}function RS(e){var t=RB(e);return function(n,r){if(void 0===r){var i=RS(e);return function(e){return i(e,n)}}return Rx(function(e){return!t(e,r)})(n)}}function Rw(e){var t=RP(e);return function(e,n){return function(r){return t(r).reduce(n,e)}}}function RI(e,t){var n=RP(e);return function(e){return function(r){return n(r).reduce(function(n,r){return t.concat(n,e(r))},t.empty)}}}var R_=function(e){var t=RP(e);return function(e,n){return function(r){return t(r).reduceRight(function(e,t){return n(t,e)},e)}}};function RT(e){var t=RB(e);return function(e){return function(n){if(t(e)(n))return n;var r=new Set(n);return r.add(e),r}}}var RO=function(e){return function(t){return function(n){return Rx(function(n){return!e.equals(t,n)})(n)}}},RR=function(e){var t=RB(e),n=RO(e),r=RT(e);return function(e){return function(i){return(t(e,i)?n:r)(e)(i)}}},Rk=function(e){return RE(e)(Z)};function RE(e){var t=RB(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);"Some"!==i._tag||t(i.value,r)||r.add(i.value)}),r}}}var RM=new Set,RF=function(e){return 0===e.size},Rj=function(e){return e.size},RU=function(e){return function(t){for(var n,r=t.values(),i=!1;!i&&!(n=r.next()).done;)i=e(n.value);return i}};function RK(e){return cb(RU(cb(e)))}function RL(e){var t=RB(e);return function(n,r){if(void 0===r){var i=RL(e);return function(e){return i(e,n)}}return RK(function(e){return t(e,r)})(n)}}function RB(e){return function(t,n){if(void 0===n){var r=RB(e);return function(e){return r(t,e)}}for(var i,o=n.values(),a=!1;!a&&!(i=o.next()).done;)a=e.equals(t,i.value);return a}}var RP=function(e){return function(t){var n=[];return t.forEach(function(e){return n.push(e)}),n.sort(e.compare)}};function RW(e){return{show:function(t){var n=[];return t.forEach(function(t){n.push(e.show(t))}),"new Set([".concat(n.sort().join(", "),"])")}}}function RD(e){var t=RL(e);return e6(function(e,n){return t(e,n)&&t(n,e)})}var RN=function(e){return{concat:Rb(e)}},Rq=function(e){return{concat:RN(e).concat,empty:RM}},RQ=function(e){return{concat:RC(e)}},RV=function(e){return{concat:RS(e)}};let Rz=Object.freeze(Object.defineProperty({__proto__:null,URI:"ReadonlySet",chain:function(e){var t=RB(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){e(n).forEach(function(e){t(e,r)||r.add(e)})}),r}}},compact:Rk,difference:RS,elem:RB,empty:RM,every:RK,filter:Rx,filterMap:RE,foldMap:RI,fromArray:Rv,fromReadonlyArray:Rv,fromSet:Rg,getDifferenceMagma:RV,getEq:RD,getIntersectionSemigroup:RQ,getShow:RW,getUnionMonoid:Rq,getUnionSemigroup:RN,insert:RT,intersection:RC,isEmpty:RF,isSubset:RL,map:function(e){var t=RB(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);t(i,r)||r.add(i)}),r}}},partition:function(e){return function(t){for(var n,r=t.values(),i=new Set,o=new Set;!(n=r.next()).done;){var a=n.value;e(a)?i.add(a):o.add(a)}return oe(o,i)}},partitionMap:function(e,t){return function(n){return function(r){for(var i,o=r.values(),a=new Set,u=new Set,s=RB(e),l=RB(t);!(i=o.next()).done;){var c=n(i.value);switch(c._tag){case"Left":s(c.left,a)||a.add(c.left);break;case"Right":l(c.right,u)||u.add(c.right)}}return oe(a,u)}}},reduce:Rw,reduceRight:R_,remove:RO,separate:function(e,t){return function(n){var r=RB(e),i=RB(t),o=new Set,a=new Set;return n.forEach(function(e){switch(e._tag){case"Left":r(e.left,o)||o.add(e.left);break;case"Right":i(e.right,a)||a.add(e.right)}}),oe(o,a)}},singleton:Ry,size:Rj,some:RU,toReadonlyArray:RP,toSet:function(e){return new Set(e)},toggle:RR,union:Rb},Symbol.toStringTag,{value:"Module"}));function RY(e){return e[0]}function RH(e){return e[1]}var RZ=function(e){var t;return[RH(e),e[0]]};function RJ(e){return{URI:kl,_E:void 0,map:R0,ap:function(t,n){var r,i;return[(0,t[0])(n[0]),e.concat(RH(t),RH(n))]}}}var RG=function(e){return function(t){return[t,e.empty]}};function R$(e){var t=RJ(e);return{URI:kl,_E:void 0,map:t.map,ap:t.ap,chain:function(t,n){var r,i=n(t[0]),o=i[0],a=i[1];return[o,e.concat(RH(t),a)]}}}var RX=function(e,t){return ea(e,kt(t))},R0=function(e,t){return ea(e,R8(t))},R1=function(e,t,n){return ea(e,R7(t,n))},R2=function(e,t){return ea(e,ke(t))},R6=function(e,t){return ea(e,kn(t))},R5=function(e,t,n){return ea(e,ki(t,n))},R3=function(e){var t=ko();return function(e,n){return ea(e,t(n))}},R9=function(e,t,n){return ea(e,ka(t,n))},R4=function(e){var t=ku(e);return function(e,n){return ea(e,t(n))}},R7=function(e,t){return function(n){var r;return[t(n[0]),e(RH(n))]}},R8=function(e){return function(t){var n;return[e(t[0]),RH(t)]}},ke=function(e){return function(t){var n;return[t[0],e(RH(t))]}},kt=function(e){return function(t){var n;return[t[0],RH(e)]}},kn=function(e){return function(t){return[e(t),RH(t)]}},kr=kn(Z),ki=function(e,t){return function(n){var r;return t(e,n[0])}},ko=function(){return function(e){return function(t){var n;return e(t[0])}}},ka=function(e,t){return function(n){var r;return t(n[0],e)}},ku=function(e){return function(t){return function(n){var r;return e.map(t(n[0]),function(e){return[e,RH(n)]})}}},ks=function(e){return function(t){var n;return e.map(t[0],function(e){return[e,RH(t)]})}},kl="ReadonlyTuple",kc={URI:kl,map:R0},kd=eB(kc);let kf=Object.freeze(Object.defineProperty({__proto__:null,Bifunctor:{URI:kl,bimap:R1,mapLeft:R2},Comonad:{URI:kl,map:R0,extend:R6,extract:RY},Foldable:{URI:kl,reduce:R5,foldMap:R3,reduceRight:R9},Functor:kc,Semigroupoid:{URI:kl,compose:RX},Traversable:{URI:kl,map:R0,reduce:R5,foldMap:R3,reduceRight:R9,traverse:R4,sequence:ks},URI:kl,bimap:R7,compose:kt,duplicate:kr,extend:kn,extract:RY,flap:kd,foldMap:ko,fst:RY,getApplicative:function(e){var t=RJ(e);return{URI:kl,_E:void 0,map:t.map,ap:t.ap,of:RG(e)}},getApply:RJ,getChain:R$,getChainRec:function(e){var t=function(t,n){for(var r,i,o=n(t),a=e.empty,u=(r=o)[0];"Left"===u._tag;)a=e.concat(a,RH(o)),u=(o=n(u.left))[0];return[u.right,e.concat(a,RH(o))]},n=R$(e);return{URI:kl,_E:void 0,map:n.map,ap:n.ap,chain:n.chain,chainRec:t}},getMonad:function(e){var t=R$(e);return{URI:kl,_E:void 0,map:t.map,ap:t.ap,chain:t.chain,of:RG(e)}},map:R8,mapFst:R8,mapLeft:ke,mapSnd:ke,readonlyTuple:{URI:kl,compose:RX,map:R0,bimap:R1,mapLeft:R2,extract:RY,extend:R6,reduce:R5,foldMap:R3,reduceRight:R9,traverse:R4,sequence:ks},reduce:ki,reduceRight:ka,sequence:ks,snd:RH,swap:RZ,traverse:ku},Symbol.toStringTag,{value:"Module"}));var kp=function(){return(kp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},kA=function(e){return function(t){return Object.keys(t).sort(e.compare)}},kh=kA(TU);function km(e){if("function"==typeof e)return km(TU)(e);var t=kA(e);return function(e){return function(n){for(var r=[],i=0,o=t(n);i<o.length;i++){var a=o[i];r.push(e(a,n[a]))}return r}}}var kg=km(TU)(function(e,t){return[e,t]});function ky(e){return function(t){if(!eI.call(t,e))return t;var n=Object.assign({},t);return delete n[e],n}}var kv=function(e,t){return kx(e,function(){return t})},kx=function(e,t){return function(n){if(!T9(e,n))return ep;var r=Object.assign({},n);return r[e]=t(n[e]),eA(r)}};function kb(e){return Ol(e)}function kC(e){return Oc(e)}function kS(e){return Od(e)}var kw=function(e){var t,n=Oc(e);return function(t){return function(r){return e.map(ea(r,n(t)),kU)}}},kI=function(e){var t,n=Oc(e);return function(t){return function(r){return e.map(ea(r,n(t)),kK)}}};function k_(e){return Oh(e)}function kT(e){return Og(e)}function kO(e,t){return Oy(e,t)}var kR=function(e){var t,n;return(t=tB(),Oy(t,lM))(e)};function kk(e,t){return Ov(e,t)}var kE=function(e){var t=Ow(e);return function(e){return function(n){return T0(n)?kp({},e):T0(e)?kp({},n):t(e)(n)}}},kM=function(e){return function(t){return function(n){return T0(n)||T0(t)?{}:OI(e)(t)(n)}}},kF=function(e){return function(t){return T0(t)?kp({},e):T0(e)?kp({},t):O_(e)(t)}},kj=function(e){return function(t){var n=kA(e);return function(e,r){var i=n(e);if(0===i.length)return t.of({});for(var o=t.of({}),a=function(n){o=t.ap(t.map(o,function(e){return function(t){return e[n]=t,e}}),r(n,e[n]))},u=0;u<i.length;u++)a(i[u]);return o}}},kU=OX,kK=O0,kL="Record",kB={URI:kL,map:OT},kP=eB(kB),kW=function(e){return{URI:kL,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e)}},kD=function(e){return{URI:kL,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e),reduceWithIndex:OK(e),foldMapWithIndex:OL(e),reduceRightWithIndex:OB(e)}},kN={URI:kL,compact:kU,separate:kK},kq=function(e){return{URI:kL,map:OT,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e),traverse:Oq(e),sequence:OQ(e)}},kQ=function(e){return{URI:kL,map:OT,mapWithIndex:OO,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e),reduceWithIndex:OK(e),foldMapWithIndex:OL(e),reduceRightWithIndex:OB(e),traverse:Oq(e),sequence:OQ(e),traverseWithIndex:kj(e)}},kV=function(e){var t=kq(e);return{URI:kL,map:OT,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e),traverse:t.traverse,sequence:t.sequence,compact:kU,separate:kK,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU,wither:oA(t,kN),wilt:op(t,kN)}},kz=function(e){var t=kE(e);return{concat:function(e,n){return t(n)(e)}}},kY=function(e){return{concat:kz(e).concat,empty:{}}},kH=function(e){var t=kM(e);return{concat:function(e,n){return t(n)(e)}}},kZ=function(){return{concat:function(e,t){return kF(t)(e)}}},kJ={URI:kL,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU)},kG={URI:kL,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),reduceWithIndex:OK(TU),foldMapWithIndex:OL(TU),reduceRightWithIndex:OB(TU)},k$={URI:kL,map:OT,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),traverse:Oq(TU),sequence:kS},kX={URI:kL,map:OT,mapWithIndex:OO,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),reduceWithIndex:OK(TU),foldMapWithIndex:OL(TU),reduceRightWithIndex:OB(TU),traverse:Oq(TU),sequence:kS,traverseWithIndex:kj(TU)},k0=oA(k$,kN),k1=op(k$,kN),k2={URI:kL,map:OT,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),traverse:Oq(TU),sequence:kS,compact:kU,separate:kK,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU,wither:k0,wilt:k1},k6={URI:kL,map:OT,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),traverse:Oq(TU),sequence:kS,compact:kU,separate:kK,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU,mapWithIndex:OO,reduceWithIndex:OK(TU),foldMapWithIndex:OL(TU),reduceRightWithIndex:OB(TU),filterMapWithIndex:OD,filterWithIndex:ON,partitionMapWithIndex:OP,partitionWithIndex:OW,traverseWithIndex:kj(TU),wither:k0,wilt:k1};let k5=Object.freeze(Object.defineProperty({__proto__:null,Compactable:kN,Filterable:{URI:kL,map:OT,compact:kU,separate:kK,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU},FilterableWithIndex:{URI:kL,map:OT,mapWithIndex:OO,compact:kU,separate:kK,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU,filterMapWithIndex:OD,filterWithIndex:ON,partitionMapWithIndex:OP,partitionWithIndex:OW},Foldable:kJ,FoldableWithIndex:kG,Functor:kB,FunctorWithIndex:{URI:kL,map:OT,mapWithIndex:OO},Traversable:k$,TraversableWithIndex:kX,URI:kL,Witherable:k2,collect:km,compact:kU,deleteAt:ky,difference:kF,elem:OS,empty:{},every:Ob,filter:Oz,filterMap:OY,filterMapWithIndex:Om,filterWithIndex:kT,flap:kP,foldMap:function(e){return"compare"in e?OG(e):OG(TU)(e)},foldMapWithIndex:function(e){return"compare"in e?Oa(e):Oa(TU)(e)},fromEntries:kR,fromFoldable:kO,fromFoldableMap:kk,getDifferenceMagma:kZ,getEq:O6,getFoldable:kW,getFoldableWithIndex:kD,getIntersectionSemigroup:kH,getMonoid:O5,getShow:function(e){return"compare"in e?O2(e):O2(TU)(e)},getTraversable:kq,getTraversableWithIndex:kQ,getUnionMonoid:kY,getUnionSemigroup:kz,getWitherable:kV,has:T9,hasOwnProperty:RA,insertAt:T3,intersection:kM,isEmpty:T0,isSubrecord:Oe,keys:kh,lookup:Ot,map:Oi,mapWithIndex:Or,modifyAt:kx,partition:OH,partitionMap:OZ,partitionMapWithIndex:OA,partitionWithIndex:k_,pop:function(e){var t=ky(e);return function(n){var r=Ot(e,n);return ed(r)?ep:eA([r.value,t(n)])}},record:k6,reduce:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?OJ(e[0]):OJ(TU).apply(void 0,e)},reduceRight:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?O$(e[0]):O$(TU).apply(void 0,e)},reduceRightWithIndex:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?Ou(e[0]):Ou(TU).apply(void 0,e)},reduceWithIndex:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?Oo(e[0]):Oo(TU).apply(void 0,e)},separate:kK,sequence:kS,singleton:Os,size:TX,some:OC,toArray:kg,toEntries:kg,toUnfoldable:function(e){return function(t){var n=kg(t),r=n.length;return e.unfold(0,function(e){return e<r?eA([n[e],e+1]):ep})}},traverse:kC,traverseWithIndex:kb,union:kE,updateAt:kv,upsertAt:T3,wilt:kI,wither:kw},Symbol.toStringTag,{value:"Module"}));var k3=function(e){return function(t){return ef(e(t))}},k9=function(e){return function(t){return em(e(t))}},k4=function(){return function(e){return!0}},k7=function(e){return function(t){return!e(t)}},k8=function(e){return function(t){return function(n){return t(n)||e(n)}}},Ee=function(e){return function(t){return function(n){return t(n)&&e(n)}}},Et=function(){return function(e){return!1}},En=function(e){return function(t){return function(n){return t(n)&&e(n)}}};let Er=Object.freeze(Object.defineProperty({__proto__:null,and:Ee,compose:En,fromEitherK:k9,fromOptionK:k3,id:k4,not:k7,or:k8,zero:Et},Symbol.toStringTag,{value:"Module"}));var Ei=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{add:function(t,n){return e.map(function(e,r){return e.add(t[r],n[r])})},zero:e.map(function(e){return e.zero}),mul:function(t,n){return e.map(function(e,r){return e.mul(t[r],n[r])})},one:e.map(function(e){return e.one}),sub:function(t,n){return e.map(function(e,r){return e.sub(t[r],n[r])})}}},Eo=function(e){return function(t){return e.sub(e.zero,t)}};let Ea=Object.freeze(Object.defineProperty({__proto__:null,getFunctionRing:Y,getTupleRing:Ei,negate:Eo,tuple:Ei},Symbol.toStringTag,{value:"Module"})),Eu=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Es=Object.freeze(Object.defineProperty({__proto__:null,getFunctionSemiring:z},Symbol.toStringTag,{value:"Module"}));function El(e){return function(t){for(var n,r=t.values(),i=new Set;!(n=r.next()).done;){var o=n.value;e(o)&&i.add(o)}return i}}function Ec(e){var t=ET(e);return function(n,r){if(void 0===r){var i=Ec(e);return function(e){return i(n,e)}}if(EI(n))return r;if(EI(r))return n;var o=new Set(n);return r.forEach(function(e){t(e,o)||o.add(e)}),o}}function Ed(e){var t=ET(e);return function(n,r){if(void 0===r){var i=Ed(e);return function(e){return i(e,n)}}if(EI(n)||EI(r))return new Set;var o=new Set;return n.forEach(function(e){t(e,r)&&o.add(e)}),o}}function Ef(e){var t=ET(e);return function(n,r){if(void 0===r){var i=Ef(e);return function(e){return i(e,n)}}return El(function(e){return!t(e,r)})(n)}}var Ep=function(e){return{concat:Ec(e)}},EA=function(e){return{concat:Ep(e).concat,empty:new Set}},Eh=function(e){return{concat:Ed(e)}},Em=function(e){return{concat:Ef(e)}},Eg=function(e){return new Set([e])};function Ey(e){var t=ET(e);return function(e){return function(n){if(t(e)(n))return n;var r=new Set(n);return r.add(e),r}}}var Ev=function(e){return function(t){return function(n){return El(function(n){return!e.equals(t,n)})(n)}}},Ex=function(e){var t=ET(e),n=Ev(e),r=Ey(e);return function(e){return function(i){return(t(e,i)?n:r)(e)(i)}}},Eb=function(e){return function(t){for(var n=t.length,r=new Set,i=ET(e),o=0;o<n;o++){var a=t[o];i(a,r)||r.add(a)}return r}},EC=function(e){return ES(e)(Z)};function ES(e){var t=ET(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);"Some"!==i._tag||t(i.value,r)||r.add(i.value)}),r}}}var Ew=new Set,EI=function(e){return 0===e.size},E_=function(e){return e.size},ET=RB,EO=function(e){return function(t){var n=[];return t.forEach(function(e){return n.push(e)}),n.sort(e.compare)}};let ER=Object.freeze(Object.defineProperty({__proto__:null,chain:function(e){var t=ET(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){e(n).forEach(function(e){t(e,r)||r.add(e)})}),r}}},compact:EC,difference:Ef,elem:ET,empty:Ew,every:RK,filter:El,filterMap:ES,foldMap:RI,fromArray:Eb,getDifferenceMagma:Em,getEq:RD,getIntersectionSemigroup:Eh,getShow:RW,getUnionMonoid:EA,getUnionSemigroup:Ep,insert:Ey,intersection:Ed,isEmpty:EI,isSubset:RL,map:function(e){var t=ET(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);t(i,r)||r.add(i)}),r}}},partition:function(e){return function(t){for(var n,r=t.values(),i=new Set,o=new Set;!(n=r.next()).done;){var a=n.value;e(a)?i.add(a):o.add(a)}return oe(o,i)}},partitionMap:function(e,t){return function(n){return function(r){for(var i,o=r.values(),a=new Set,u=new Set,s=ET(e),l=ET(t);!(i=o.next()).done;){var c=n(i.value);switch(c._tag){case"Left":s(c.left,a)||a.add(c.left);break;case"Right":l(c.right,u)||u.add(c.right)}}return oe(a,u)}}},reduce:Rw,reduceRight:R_,remove:Ev,separate:function(e,t){return function(n){var r=ET(e),i=ET(t),o=new Set,a=new Set;return n.forEach(function(e){switch(e._tag){case"Left":r(e.left,o)||o.add(e.left);break;case"Right":i(e.right,a)||a.add(e.right)}}),oe(o,a)}},singleton:Eg,size:E_,some:RU,subset:RL,toArray:EO,toggle:Ex,union:Ec},Symbol.toStringTag,{value:"Module"}));var Ek=function(e){return{show:function(t){var n="{";for(var r in e)eI.call(e,r)&&(n+=" ".concat(r,": ").concat(e[r].show(t[r]),","));return n.length>1&&(n=n.slice(0,-1)+" "),n+="}"}}},EE=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{show:function(t){return"[".concat(t.map(function(t,n){return e[n].show(t)}).join(", "),"]")}}};let EM=Object.freeze(Object.defineProperty({__proto__:null,getStructShow:Ek,getTupleShow:EE,showBoolean:{show:function(e){return JSON.stringify(e)}},showNumber:{show:function(e){return JSON.stringify(e)}},showString:{show:function(e){return JSON.stringify(e)}},struct:Ek,tuple:EE},Symbol.toStringTag,{value:"Module"}));function EF(e){return function(t){return function(n){return e.of([t,n])}}}function Ej(e){return function(t){return function(n){return function(r){return e.map(n(r),function(e){var n=e[0],r=e[1];return[t(n),r]})}}}}function EU(e){return function(t){return function(n){return function(r){return e.chain(n(r),function(n){var r=n[0],i=n[1];return e.map(t(i),function(e){var t=e[0],n=e[1];return[r(t),n]})})}}}}function EK(e){return function(t){return function(n){return function(r){return e.chain(n(r),function(e){var n=e[0],r=e[1];return t(n)(r)})}}}}function EL(e){return function(t){return function(n){return e.of(t(n))}}}function EB(e){return function(t){return function(n){return e.map(t,function(e){return[e,n]})}}}function EP(e){return function(t){return function(n){return e.map(n(t),function(e){return e[0]})}}}function EW(e){return function(t){return function(n){return e.map(n(t),RH)}}}let ED=Object.freeze(Object.defineProperty({__proto__:null,ap:EU,chain:EK,evaluate:EP,execute:EW,fromF:EB,fromState:EL,getStateM:function(e){var t=EU(e),n=Ej(e),r=EK(e),i=EP(e),o=EW(e);return{map:function(e,t){return ea(e,n(t))},ap:function(e,n){return ea(e,t(n))},of:EF(e),chain:function(e,t){return ea(e,r(t))},get:function(){return function(t){return e.of([t,t])}},put:function(t){return function(){return e.of([void 0,t])}},modify:function(t){return function(n){return e.of([void 0,t(n)])}},gets:function(t){return function(n){return e.of([t(n),n])}},fromState:EL(e),fromM:EB(e),evalState:function(e,t){return ea(e,i(t))},execState:function(e,t){return ea(e,o(t))}}},map:Ej,of:EF},Symbol.toStringTag,{value:"Module"}));var EN=function(e){return function(){return IX(e)}},Eq=EF(_D);function EQ(e){return E0(I1(e))}function EV(e){return E0(I6(e))}function Ez(e){return E0(I4(e))}var EY=function(e){return et(e,I0)},EH=function(e){return function(t){return IX(e(t)[0])}},EZ=f8(function(e){return EN(e)},Eq),EJ=EL(_D),EG=function(e){return E0(J(e))},E$=function(e){return E0(I8(e))},EX=function(e){return E0(_e(e))},E0=EB(_P),E1=function(e){return function(t){return et(t,Ax(e))}},E2=function(e){return function(t){return function(n){return e(n)(t)(n)}}},E6=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return E$(e.apply(void 0,t))}},E5=function(e){return function(t){return ea(t,Mc(E6(e)))}},E3=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return EG(e.apply(void 0,t))}},E9=function(e){return function(t){return ea(t,Mc(E3(e)))}},E4=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return E0(e.apply(void 0,t))}},E7=function(e){return function(t){return ea(t,Mc(E4(e)))}},E8=function(e,t){return ea(e,Mo(t))},Me=function(e,t){return ea(e,Ms(t))},Mt=function(e,t){return ea(e,Ml(t))},Mn=function(e,t){return function(n){return ea(e(n),_j(function(){return t()(n)}))}},Mr=function(e,t,n){return function(r){return ea(e(r),_O(t,function(e){var t=e[0],r=e[1];return[n(t),r]}))}},Mi=function(e,t){return function(n){return ea(e(n),_R(t))}},Mo=Ej(_P),Ma=function(e,t){return function(n){return Mr(n,e,t)}},Mu=function(e){return function(t){return Mi(t,e)}},Ms=EU(_Y),Ml=EK(_Y),Mc=Ml,Md=Mc(Z),Mf=function(e){return function(t){return function(n){return ea(t(n),_j(function(){return e()(n)}))}}},Mp="StateReaderTaskEither",MA={URI:Mp,map:E8},Mh=eB(MA),Mm={URI:Mp,map:E8,ap:Me},Mg=eO(Mm),My=eR(Mm),Mv={URI:Mp,map:E8,ap:Me,chain:Mt},Mx={URI:Mp,fromState:EJ},Mb=hB(Mx),MC=hP(Mx),MS=hW(Mx),Mw=hD(Mx),MI=hN(Mx),M_=hq(Mx,Mv),MT=eV(Mv),MO={URI:Mp,fromReader:EV},MR=A8(MO),Mk=he(MO),ME=ht(MO),MM=hn(MO,Mv),MF=hr(MO,Mv),Mj={URI:Mp,fromEither:EZ},MU=eH(Mj),MK=eJ(Mj),ML=eG(Mj,Mv),MB=eX(Mj,Mv),MP=e0(Mj,Mv),MW=eZ(Mj),MD=e1(Mj,Mv),MN=e$(Mj),Mq={URI:Mp,fromIO:Ez},MQ=Ah(Mq),MV=Am(Mq,Mv),Mz=Ag(Mq,Mv),MY={URI:Mp,fromIO:Ez,fromTask:EQ},MH=hV(MY),MZ=hz(MY,Mv),MJ=hY(MY,Mv),MG=EP(_P),M$=EW(_P),MX=eP(MA),M0=ez(Mv),M1=ek(Mm),M2=function(e){return function(t){return function(n){return function(r){return function(){return eC(t).reduce(function(t,n,i){return t.then(function(o){return eh(o)?t:e(i+1,n)(o.right[1])(r)().then(function(e){if(eh(e))return e;var t=e.right,n=t[0],r=t[1];return o.right[0].push(n),o.right[1]=r,o})})},e(0,eb(t))(n)(r)().then(fL(function(e){var t;return[[e[0]],e[1]]})))}}}}},M6=function(e){var t=M2(e);return function(e){return ex(e)?t(e):Eq(eS)}},M5=function(e){return M6(function(t,n){return e(n)})},M3=M5(Z),M9=function(e,t){return ea(e(t),_T(function(e){return e[0]}))},M4=function(e,t){return ea(e(t),_T(function(e){return e[0],e[1]}))};let M7=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:Mp,map:E8,alt:Mn},Applicative:{URI:Mp,map:E8,ap:Me,of:Eq},Apply:Mm,Bifunctor:{URI:Mp,bimap:Mr,mapLeft:Mi},Chain:Mv,FromEither:Mj,FromIO:Mq,FromReader:MO,FromState:Mx,FromTask:MY,Functor:MA,Monad:{URI:Mp,map:E8,ap:Me,of:Eq,chain:Mt},MonadIO:{URI:Mp,map:E8,ap:Me,of:Eq,chain:Mt,fromIO:Ez},MonadTask:{URI:Mp,map:E8,ap:Me,of:Eq,chain:Mt,fromIO:Ez,fromTask:EQ},MonadThrow:{URI:Mp,map:E8,ap:Me,of:Eq,chain:Mt,throwError:EN},Pointed:{URI:Mp,of:Eq},URI:Mp,alt:Mf,altW:Mf,ap:Ms,apFirst:Mg,apFirstW:Mg,apS:M1,apSW:M1,apSecond:My,apSecondW:My,apW:Ms,ask:MR,asks:Mk,asksStateReaderTaskEither:E2,asksStateReaderTaskEitherW:E2,bimap:Ma,bind:M0,bindTo:MX,bindW:M0,chain:Ml,chainEitherK:MB,chainEitherKW:MB,chainFirst:MT,chainFirstEitherK:MP,chainFirstEitherKW:MP,chainFirstIOK:Mz,chainFirstReaderK:MF,chainFirstReaderKW:MF,chainFirstTaskK:MJ,chainFirstW:MT,chainIOEitherK:E5,chainIOEitherKW:E5,chainIOK:MV,chainOptionK:ML,chainReaderK:MM,chainReaderKW:MM,chainReaderTaskEitherK:E7,chainReaderTaskEitherKW:E7,chainStateK:M_,chainTaskEitherK:E9,chainTaskEitherKW:E9,chainTaskK:MZ,chainW:Mc,evalState:M9,evaluate:MG,execState:M4,execute:M$,filterOrElse:MD,filterOrElseW:MD,flap:Mh,flatten:Md,flattenW:Md,fromEither:EZ,fromEitherK:MN,fromIO:Ez,fromIOEither:E$,fromIOEitherK:E6,fromIOK:MQ,fromOption:MU,fromOptionK:MK,fromPredicate:MW,fromReader:EV,fromReaderEither:EX,fromReaderK:ME,fromReaderTaskEither:E0,fromReaderTaskEitherK:E4,fromState:EJ,fromStateK:MI,fromTask:EQ,fromTaskEither:EG,fromTaskEitherK:E3,fromTaskK:MH,get:Mb,gets:Mw,left:EN,leftIO:function(e){return E0(I7(e))},leftReader:function(e){return E0(I5(e))},leftState:EH,leftTask:function(e){return E0(I2(e))},local:E1,map:Mo,mapLeft:Mu,modify:MS,of:Eq,put:MC,right:Eq,rightIO:Ez,rightReader:EV,rightState:EY,rightTask:EQ,run:function(e,t,n){return e(t)(n)()},sequenceArray:M3,stateReaderTaskEither:{URI:Mp,map:E8,of:Eq,ap:Me,chain:Mt,bimap:Mr,mapLeft:Mi,alt:Mn,fromIO:Ez,fromTask:EQ,throwError:EN},stateReaderTaskEitherSeq:{URI:Mp,map:E8,of:Eq,ap:Me,chain:Mt,bimap:Mr,mapLeft:Mi,alt:Mn,fromIO:Ez,fromTask:EQ,throwError:EN},throwError:EN,traverseArray:M5,traverseArrayWithIndex:M6,traverseReadonlyArrayWithIndex:M6,traverseReadonlyNonEmptyArrayWithIndex:M2},Symbol.toStringTag,{value:"Module"}));var M8=function(e,t){return ea(e,Fi(t))},Fe=function(e,t){return ea(e,Ft(t))},Ft=function(e){return function(t){return{peek:function(n){return e({peek:t.peek,pos:n})},pos:t.pos}}},Fn=function(e){return e.peek(e.pos)},Fr=Ft(Z),Fi=function(e){return function(t){return{peek:function(n){return e(t.peek(n))},pos:t.pos}}},Fo="Store",Fa={URI:Fo,map:M8},Fu=eB(Fa),Fs={URI:Fo,map:M8,extend:Fe,extract:Fn};let Fl=Object.freeze(Object.defineProperty({__proto__:null,Comonad:Fs,Functor:Fa,URI:Fo,duplicate:Fr,experiment:function(e){return function(t){return function(n){return e.map(t(n.pos),function(e){return n.peek(e)})}}},extend:Ft,extract:Fn,flap:Fu,map:Fi,peeks:function(e){return function(t){return t.peek(e(t.pos))}},seek:function(e){return function(t){return{peek:t.peek,pos:e}}},seeks:function(e){return function(t){return{peek:t.peek,pos:e(t.pos)}}},store:Fs},Symbol.toStringTag,{value:"Module"}));function Fc(e,t){return function(n,r){return t.compose(e.second(r),e.first(n))}}function Fd(e,t){var n=Fc(e,t);return function(r,i){return t.compose(n(r,i),e.promap(t.id(),Z,function(e){return[e,e]}))}}let Ff=Object.freeze(Object.defineProperty({__proto__:null,fanOut:Fd,fanout:function(e){return Fd(e,e)},split:Fc,splitStrong:function(e){return Fc(e,e)}},Symbol.toStringTag,{value:"Module"}));var Fp=function(){return{concat:function(e,t){return Object.assign({},e,t)}}},FA=function(e){return function(t){var n={};for(var r in t)eI.call(t,r)&&(n[r]=e[r](t[r]));return n}};let Fh=Object.freeze(Object.defineProperty({__proto__:null,evolve:FA,getAssignSemigroup:Fp},Symbol.toStringTag,{value:"Module"}));var Fm=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},Fg=yr(So),Fy=yd(So),Fv=yf(So),Fx=function(e){return Fb(C2(e))},Fb=yo(Sr),FC=C4(cT),FS=yp(Sr),Fw=yA(Sf),FI=yh(Sp),F_=ya(So),FT=function(e){return function(){var t,n,r,i;return t=void 0,n=void 0,r=void 0,i=function(){return Fm(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e().then(eA)];case 1:return[2,t.sent()];case 2:return t.sent(),[2,ep];case 3:return[2]}})},new(r||(r=Promise))(function(e,o){function a(e){try{s(i.next(e))}catch(t){o(t)}}function u(e){try{s(i.throw(e))}catch(t){o(t)}}function s(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(a,u)}s((i=i.apply(t,n||[])).next())})}},FO=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return FT(function(){return e.apply(void 0,t)})}},FR=yu(So),Fk=ys(Sp),FE=yl(So),FM=yc(Sp),FF=ym(Sr),Fj=yg(Sa),FU=yy(Sp),FK=FU(Z),FL=yv(Sp),FB=yi(So),FP=FB(),FW=dX(Sr,dn),FD=d0(Sr,dn,cY),FN=p8(Sr,ds),Fq=Ae(Sr,ds),FQ=At(Sr,ds),FV=An(Sr,ds),Fz=function(e,t){return ea(e,FF(t))},FY=function(e,t){return ea(e,Fj(t))},FH=function(e,t){return ea(e,FU(t))},FZ=function(e,t){return ea(e,FL(t))},FJ=function(e,t){return ea(e,FN(t))},FG=function(e,t){return ea(e,Fq(t))},F$=function(e,t){return ea(e,FQ(t))},FX=function(e,t){return ea(e,FV(t))},F0="TaskOption",F1={URI:F0,map:Fz},F2=eB(F1),F6={URI:F0,of:Fg},F5={URI:F0,map:Fz,ap:FY},F3=eO(F5),F9=eR(F5),F4=function(e,t){return ea(e,FU(function(e){return ea(t,FF(e))}))},F7={URI:F0,map:Fz,ap:FY,chain:FH},F8=eV(F7),je={URI:F0,zero:FB},jt=og(je,F6),jn={URI:F0,fromIO:Fx},jr=Ah(jn),ji=Am(jn,F7),jo=Ag(jn,F7),ja={URI:F0,fromEither:Fv},ju=e$(ja),js=eX(ja,F7),jl=e0(ja,F7),jc={URI:F0,fromIO:Fx,fromTask:Fb},jd=hV(jc),jf=hz(jc,F7),jp=hY(jc,F7),jA=Fg(ew),jh=eP(F1),jm=ez(F7),jg=ek(F5),jy=Fg(eS),jv=function(e){return et(SI(e),C4(dq(eu)))},jx=function(e){var t=jv(e);return function(e){return ex(e)?t(e):jy}},jb=function(e){return function(t){return function(){return eC(t).reduce(function(t,n,r){return t.then(function(i){return ed(i)?t:e(r+1,n)().then(function(e){return ed(e)?e:(i.value.push(e.value),i)})})},e(0,eb(t))().then(cz(ev)))}}},jC=function(e){var t=jb(e);return function(e){return ex(e)?t(e):jy}},jS=function(e){return jx(function(t,n){return e(n)})},jw=jS(Z),jI=function(e){return jC(function(t,n){return e(n)})},j_=jI(Z);let jT=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:F0,map:Fz,alt:FZ},Alternative:{URI:F0,map:Fz,ap:FY,of:Fg,alt:FZ,zero:FB},ApT:jy,ApplicativePar:{URI:F0,map:Fz,ap:FY,of:Fg},ApplicativeSeq:{URI:F0,map:Fz,ap:F4,of:Fg},ApplyPar:F5,ApplySeq:{URI:F0,map:Fz,ap:F4},Chain:F7,Compactable:{URI:F0,compact:FW,separate:FD},Do:jA,Filterable:{URI:F0,map:Fz,compact:FW,separate:FD,filter:FJ,filterMap:FG,partition:F$,partitionMap:FX},FromEither:ja,FromIO:jn,FromTask:jc,Functor:F1,Monad:{URI:F0,map:Fz,ap:FY,of:Fg,chain:FH},MonadIO:{URI:F0,map:Fz,ap:FY,of:Fg,chain:FH,fromIO:Fx},MonadTask:{URI:F0,map:Fz,ap:FY,of:Fg,chain:FH,fromIO:Fx,fromTask:Fb},Pointed:F6,Zero:je,alt:FL,altW:FL,ap:Fj,apFirst:F3,apS:jg,apSecond:F9,bind:jm,bindTo:jh,chain:FU,chainEitherK:js,chainFirst:F8,chainFirstEitherK:jl,chainFirstIOK:jo,chainFirstTaskK:jp,chainIOK:ji,chainNullableK:Fk,chainOptionK:FM,chainTaskK:jf,compact:FW,filter:FN,filterMap:Fq,flap:F2,flatten:FK,fold:Fw,foldW:Fw,fromEither:Fv,fromEitherK:ju,fromIO:Fx,fromIOK:jr,fromNullable:F_,fromNullableK:FR,fromOption:C8,fromOptionK:FE,fromPredicate:Fy,fromTask:Fb,fromTaskEither:FC,fromTaskK:jd,getOrElse:FI,getOrElseW:FI,guard:jt,map:FF,match:FS,matchE:Fw,matchEW:Fw,matchW:FS,none:FP,of:Fg,partition:FQ,partitionMap:FV,separate:FD,sequenceArray:jw,sequenceSeqArray:j_,some:Fg,traverseArray:jS,traverseArrayWithIndex:jx,traverseReadonlyArrayWithIndex:jx,traverseReadonlyArrayWithIndexSeq:jC,traverseReadonlyNonEmptyArrayWithIndex:jv,traverseReadonlyNonEmptyArrayWithIndexSeq:jb,traverseSeqArray:jI,traverseSeqArrayWithIndex:jC,tryCatch:FT,tryCatchK:FO,zero:FB},Symbol.toStringTag,{value:"Module"}));var jO=function(e){return"Left"===e._tag},jR=function(e){return"Right"===e._tag};function jk(e){return"Both"===e._tag}function jE(e){return{_tag:"Left",left:e}}function jM(e){return{_tag:"Right",right:e}}function jF(e,t){return{_tag:"Both",left:e,right:t}}var jj=function(e,t,n){return function(r){switch(r._tag){case"Left":return e(r.left);case"Right":return t(r.right);case"Both":return n(r.left,r.right)}}},jU=jj(jM,jE,function(e,t){return jF(t,e)});function jK(e,t){return{concat:function(n,r){return jO(n)?jO(r)?jE(e.concat(n.left,r.left)):jR(r)?jF(n.left,r.right):jF(e.concat(n.left,r.left),r.right):jR(n)?jO(r)?jF(r.left,n.right):jR(r)?jM(t.concat(n.right,r.right)):jF(r.left,t.concat(n.right,r.right)):jO(r)?jF(e.concat(n.left,r.left),n.right):jR(r)?jF(n.left,t.concat(n.right,r.right)):jF(e.concat(n.left,r.left),t.concat(n.right,r.right))}}}var jL=function(e){return{URI:j1,_E:void 0,map:jW,ap:function(t,n){return jO(t)?jO(n)?jE(e.concat(t.left,n.left)):jR(n)?jE(t.left):jE(e.concat(t.left,n.left)):jR(t)?jO(n)?jE(n.left):jR(n)?jM(t.right(n.right)):jF(n.left,t.right(n.right)):jO(n)?jE(e.concat(t.left,n.left)):jR(n)?jF(t.left,t.right(n.right)):jF(e.concat(t.left,n.left),t.right(n.right))}}};function jB(e){var t=jL(e),n=function(t,n){if(jO(t))return t;if(jR(t))return n(t.right);var r=n(t.right);return jO(r)?jE(e.concat(t.left,r.left)):jR(r)?jF(t.left,r.right):jF(e.concat(t.left,r.left),r.right)};return{URI:j1,_E:void 0,map:jW,ap:t.ap,chain:n}}var jP=function(e,t){return ed(e)?ed(t)?ep:eA(jM(t.value)):ed(t)?eA(jE(e.value)):eA(jF(e.value,t.value))},jW=function(e,t){return ea(e,jZ(t))},jD=function(e,t,n){return ea(e,jY(t,n))},jN=function(e,t){return ea(e,jH(t))},jq=function(e,t,n){return ea(e,jJ(t,n))},jQ=function(e){var t=jG(e);return function(e,n){return ea(e,t(n))}},jV=function(e,t,n){return ea(e,j$(t,n))},jz=function(e){var t=jX(e);return function(e,n){return ea(e,t(n))}},jY=function(e,t){return function(n){return jO(n)?jE(e(n.left)):jR(n)?jM(t(n.right)):jF(e(n.left),t(n.right))}},jH=function(e){return function(t){return jO(t)?jE(e(t.left)):jk(t)?jF(e(t.left),t.right):t}},jZ=function(e){return function(t){return jO(t)?t:jR(t)?jM(e(t.right)):jF(t.left,e(t.right))}},jJ=function(e,t){return function(n){return jO(n)?e:t(e,n.right)}},jG=function(e){return function(t){return function(n){return jO(n)?e.empty:t(n.right)}}},j$=function(e,t){return function(n){return jO(n)?e:t(n.right,e)}},jX=function(e){return function(t){return function(n){return jO(n)?e.of(n):jR(n)?e.map(t(n.right),jM):e.map(t(n.right),function(e){return jF(n.left,e)})}}},j0=function(e){return function(t){return jO(t)?e.of(t):jR(t)?e.map(t.right,jM):e.map(t.right,function(e){return jF(t.left,e)})}},j1="These",j2={URI:j1,map:jW},j6=eB(j2),j5={URI:j1,fromEither:Z},j3=eH(j5),j9=eJ(j5),j4=function(e){return function(t){return function(n){return!jO(n)&&e.equals(t,n.right)}}},j7=function(e){return function(t){return!jO(t)&&e(t.right)}},j8=function(e,t){return function(n){return jO(n)?[n.left,t()]:jR(n)?[e(),n.right]:[n.left,n.right]}},Ue=function(e,t){return j8(function(){return e},function(){return t})},Ut=jM(eS),Un=function(e){return function(t){return function(n){var r=ep,i=t(0,eb(n));if(jO(i))return i;jk(i)&&(r=eA(i.left));for(var o=[i.right],a=1;a<n.length;a++){var u=t(a,n[a]);if(jO(u))return u;jk(u)&&(r=ed(r)?eA(u.left):eA(e.concat(r.value,u.left))),o.push(u.right)}return ed(r)?jM(o):jF(r.value,o)}}},Ur=function(e){return function(t){var n=Un(e)(t);return function(e){return ex(e)?n(e):Ut}}};let Ui=Object.freeze(Object.defineProperty({__proto__:null,ApT:Ut,Bifunctor:{URI:j1,bimap:jD,mapLeft:jN},Foldable:{URI:j1,reduce:jq,foldMap:jQ,reduceRight:jV},FromEither:j5,FromThese:{URI:j1,fromThese:Z},Functor:j2,Pointed:{URI:j1,of:jM},Traversable:{URI:j1,map:jW,reduce:jq,foldMap:jQ,reduceRight:jV,traverse:jz,sequence:j0},URI:j1,bimap:jY,both:jF,elem:j4,exists:j7,flap:j6,fold:jj,foldMap:jG,foldW:jj,fromOption:j3,fromOptionK:j9,fromOptions:jP,getApplicative:function(e){var t=jL(e);return{URI:j1,_E:void 0,map:jW,ap:t.ap,of:jM}},getApply:jL,getChain:jB,getEq:function(e,t){return e6(function(n,r){return jO(n)?jO(r)&&e.equals(n.left,r.left):jR(n)?jR(r)&&t.equals(n.right,r.right):jk(r)&&e.equals(n.left,r.left)&&t.equals(n.right,r.right)})},getLeft:function(e){return jO(e)?eA(e.left):jR(e)?ep:eA(e.left)},getLeftOnly:function(e){return jO(e)?eA(e.left):ep},getMonad:function(e){var t=jB(e);return{URI:j1,_E:void 0,map:jW,of:jM,ap:t.ap,chain:t.chain,throwError:jE}},getRight:function(e){return jO(e)?ep:(jR(e),eA(e.right))},getRightOnly:function(e){return jR(e)?eA(e.right):ep},getSemigroup:jK,getShow:function(e,t){return{show:jj(function(t){return"left(".concat(e.show(t),")")},function(e){return"right(".concat(t.show(e),")")},function(n,r){return"both(".concat(e.show(n),", ").concat(t.show(r),")")})}},isBoth:jk,isLeft:jO,isRight:jR,left:jE,leftOrBoth:function(e){return function(t){return ed(t)?jE(e):jF(e,t.value)}},map:jZ,mapLeft:jH,match:jj,matchW:jj,of:jM,reduce:jJ,reduceRight:j$,right:jM,rightOrBoth:function(e){return function(t){return ed(t)?jM(e):jF(t.value,e)}},sequence:j0,swap:jU,these:{URI:j1,map:jW,bimap:jD,mapLeft:jN,reduce:jq,foldMap:jQ,reduceRight:jV,traverse:jz,sequence:j0},toTuple:Ue,toTuple2:j8,traverse:jX,traverseReadonlyArrayWithIndex:Ur,traverseReadonlyNonEmptyArrayWithIndex:Un},Symbol.toStringTag,{value:"Module"}));function Uo(e){return et(jM,e.of)}function Ua(e){return et(jE,e.of)}function Uu(e){return et(jF,e.of)}function Us(e){return function(t){return e.map(t,jM)}}function Ul(e){return function(t){return e.map(t,jE)}}function Uc(e){return eL(e,j2)}function Ud(e,t){return eT(e,jL(t))}function Uf(e,t){var n=Ua(e);return function(r){return function(i){return e.chain(i,jj(n,r,function(n,i){return e.map(r(i),jj(function(e){return jE(t.concat(n,e))},function(e){return jF(n,e)},function(e,r){return jF(t.concat(n,e),r)}))}))}}}function Up(e){return function(t,n){return function(r){return e.map(r,jY(t,n))}}}function UA(e){return function(t){return function(n){return e.map(n,jH(t))}}}function Uh(e){return function(t,n,r){return function(i){return e.map(i,jj(t,n,r))}}}function Um(e){return function(t,n,r){return function(i){return e.chain(i,jj(t,n,r))}}}function Ug(e){return function(t){return e.map(t,jU)}}function Uy(e){return function(t,n){return function(r){return e.map(r,j8(t,n))}}}let Uv=Object.freeze(Object.defineProperty({__proto__:null,ap:Ud,bimap:Up,both:Uu,chain:Uf,getTheseM:function(e){var t=Uc(e),n=Up(e),r=UA(e),i=Um(e),o=Uy(e),a=Uo(e),u=function(e,n){return ea(e,t(n))};return{map:u,bimap:function(e,t,r){return ea(e,n(t,r))},mapLeft:function(e,t){return ea(e,r(t))},fold:function(e,t,n,r){return ea(e,i(t,n,r))},swap:Ug(e),rightM:Us(e),leftM:Ul(e),left:Ua(e),right:Uo(e),both:Uu(e),toTuple:function(e,t,n){return ea(e,o(function(){return t},function(){return n}))},getMonad:function(t){var n=Ud(e,t),r=Uf(e,t);return{_E:void 0,map:u,of:a,ap:function(e,t){return ea(e,n(t))},chain:function(e,t){return ea(e,r(t))}}}}},left:Ua,leftF:Ul,map:Uc,mapLeft:UA,match:Uh,matchE:Um,right:Uo,rightF:Us,swap:Ug,toTuple2:Uy},Symbol.toStringTag,{value:"Module"}));var Ux=Ua(So),Ub=Uo(So),UC=Uu(So),US=Us(Sr),Uw=Ul(Sr),UI=et(C2,US),U_=et(C2,Uw),UT=Uh(Sr),UO=Um(Sp),UR=Ug(Sr),Uk=function(e,t){return ea(e,UF(t))},UE=function(e,t,n){return ea(e,Uj(t,n))},UM=function(e,t){return ea(e,UU(t))},UF=Uc(Sr),Uj=Up(Sr),UU=UA(Sr),UK="TaskThese",UL=function(e,t){var n=Ud(e,t);return{URI:UK,_E:void 0,map:Uk,ap:function(e,t){return ea(e,n(t))}}};function UB(e,t){var n=UL(e,t).ap;return{URI:UK,_E:void 0,map:Uk,ap:n,of:Ub}}function UP(e){var t=UL(Sl,e),n=Uf(Sp,e);return{URI:UK,_E:void 0,map:Uk,ap:t.ap,chain:function(e,t){return ea(e,n(t))}}}var UW={URI:UK,map:Uk},UD=eB(UW),UN={URI:UK,fromEither:C8},Uq=eH(UN),UQ=eJ(UN),UV=eZ(UN),Uz={URI:UK,fromThese:C8},UY=hZ(Uz),UH={URI:UK,fromIO:UI},UZ=Ah(UH),UJ={URI:UK,fromIO:UI,fromTask:US},UG=hV(UJ),U$=Uy(Sr),UX=Ub(eS),U0=function(e){var t=Un(e);return function(e){return et(SI(e),C4(t(eu)))}},U1=function(e){return function(t){var n=U0(e)(t);return function(e){return ex(e)?n(e):UX}}},U2=function(e){return function(t){return function(n){return function(){return eC(n).reduce(function(n,r,i){return n.then(function(o){return jO(o)?n:t(i+1,r)().then(function(t){if(jO(t))return t;if(jk(t)){var n=o.right;return n.push(t.right),jk(o)?jF(e.concat(o.left,t.left),n):jF(t.left,n)}return o.right.push(t.right),o})})},t(0,eb(n))().then(jZ(ev)))}}}},U6=function(e){return function(t){var n=U2(e)(t);return function(e){return ex(e)?n(e):UX}}},U5=function(e,t){return U$(function(){return e},function(){return t})},U3=function(e,t){return eE(Sc)(jK(e,t))};let U9=Object.freeze(Object.defineProperty({__proto__:null,ApT:UX,Bifunctor:{URI:UK,bimap:UE,mapLeft:UM},FromEither:UN,FromIO:UH,FromTask:UJ,FromThese:Uz,Functor:UW,Pointed:{URI:UK,of:Ub},URI:UK,bifunctorTaskThese:{URI:UK,bimap:UE,mapLeft:UM},bimap:Uj,both:UC,flap:UD,fold:UO,foldW:UO,fromEither:C8,fromIO:UI,fromIOEither:C2,fromIOK:UZ,fromOption:Uq,fromOptionK:UQ,fromPredicate:UV,fromTask:US,fromTaskK:UG,fromThese:C8,fromTheseK:UY,functorTaskThese:{URI:UK,map:Uk},getApplicative:UB,getApply:UL,getChain:UP,getMonad:function(e){var t=UB(Sl,e),n=UP(e);return{URI:UK,_E:void 0,map:Uk,ap:t.ap,of:Ub,chain:n.chain,fromIO:UI,fromTask:US}},getSemigroup:U3,left:Ux,leftIO:U_,leftTask:Uw,map:UF,mapLeft:UU,match:UT,matchE:UO,matchEW:UO,matchW:UT,of:Ub,right:Ub,rightIO:UI,rightTask:US,swap:UR,taskThese:{URI:UK,map:Uk,bimap:UE,mapLeft:UM},toTuple:U5,toTuple2:U$,traverseReadonlyArrayWithIndex:U1,traverseReadonlyArrayWithIndexSeq:U6,traverseReadonlyNonEmptyArrayWithIndex:U0,traverseReadonlyNonEmptyArrayWithIndexSeq:U2},Symbol.toStringTag,{value:"Module"}));var U4=function(e,t){return ea(e,U7(t))},U7=function(e){return function(t){return function(n){return e(t(n))}}},U8="Traced",Ke={URI:U8,map:U4},Kt=eB(Ke);let Kn=Object.freeze(Object.defineProperty({__proto__:null,Functor:Ke,URI:U8,censor:function(e){return function(t){return function(n){return t(e(n))}}},flap:Kt,getComonad:function(e){return{URI:U8,_E:void 0,map:U4,extend:function(t,n){return function(r){return n(function(n){return t(e.concat(r,n))})}},extract:function(t){return t(e.empty)}}},listen:function(e){return function(t){return[e(t),t]}},listens:function(e){return function(t){return function(n){return[t(n),e(n)]}}},map:U7,traced:Ke,tracks:function(e,t){return function(n){return n(t(n(e.empty)))}}},Symbol.toStringTag,{value:"Module"}));function Kr(e,t){return function(n){var r=e.traverse(n),i=t.traverse(n);return function(e){return function(t){return r(t,function(t){return i(t,e)})}}}}function Ki(e,t){return function(n){var r=e.sequence(n),i=t.sequence(n);return function(t){return r(e.map(t,i))}}}let Ko=Object.freeze(Object.defineProperty({__proto__:null,getTraversableComposition:function(e,t){var n=eW(e,t).map,r=Al(e,t),i=Kr(e,t),o=Ki(e,t);return{map:n,reduce:r.reduce,foldMap:r.foldMap,reduceRight:r.reduceRight,traverse:function(e){var t=i(e);return function(e,n){return ea(e,t(n))}},sequence:function(e){var t=o(e);return function(e){return ea(e,t)}}}},sequence:Ki,traverse:Kr},Symbol.toStringTag,{value:"Module"})),Ka=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function Ku(e,t){return void 0===t&&(t=[]),{value:e,forest:t}}var Ks=function(e,t){for(var n,r="",i=t.length,o=0;o<i;o++){n=t[o];var a=o===i-1;r+=e+(a?"└":"├")+"─ "+n.value,r+=Ks(e+(i>1&&!a?"│ ":" "),n.forest)}return r};function Kl(e){return Ks(`
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[851],{71463:function(e,t,n){n.d(t,{kS:function(){return elv}});var r,i,o,a,u,s,l=n(77252),c=n(2784),d=n(98863),f=n(22715),p=n(74217),A=n(50054),h=n(86579),m=n(18566),g=n(87322),y=n(1611),v=n(52393),x=n(47124),b=n(50002),C=n(28316),S=n(87598),w=Object.defineProperty,I=(e,t,n)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_=(e,t,n)=>(I(e,"symbol"!=typeof t?t+"":t,n),n),T="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof n.g?n.g:"u">typeof self?self:{};function O(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var R={},k=function(e,t){return(k=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},E=function(){return(E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},M=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function F(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function j(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function U(e){return this instanceof U?(this.v=e,this):new U(e)}var K=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};let L=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return E},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:U(e[r](t)),done:!1}:i?i(t):t}:i}},__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||u(e,t)})})}function u(e,t){try{var n;n=i[e](t),n.value instanceof U?Promise.resolve(n.value.v).then(s,l):c(o[0][2],n)}catch(r){c(o[0][3],r)}}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),o.shift(),o.length&&u(o[0][0],o[0][1])}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=F(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}},__await:U,__awaiter:function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,u)}s((r=r.apply(e,t||[])).next())})},__classPrivateFieldGet:function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},__classPrivateFieldIn:function(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)},__classPrivateFieldSet:function(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n},__createBinding:M,__decorate:function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},__esDecorate:function(e,t,n,r,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var u,s=r.kind,l="getter"===s?"get":"setter"===s?"set":"value",c=!t&&e?r.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,p=n.length-1;p>=0;p--){var A={};for(var h in r)A[h]="access"===h?{}:r[h];for(var h in r.access)A.access[h]=r.access[h];A.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var m=(0,n[p])("accessor"===s?{get:d.get,set:d.set}:d[l],A);if("accessor"===s){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(u=a(m.get))&&(d.get=u),(u=a(m.set))&&(d.set=u),(u=a(m.init))&&i.push(u)}else(u=a(m))&&("field"===s?i.push(u):d[l]=u)}c&&Object.defineProperty(c,r.name,d),f=!0},__exportStar:function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||M(t,e,n)},__extends:function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}k(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},__generator:function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(s){return function(u){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(s){u=[6,s],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&M(t,e,n);return K(t,e),t},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__param:function(e,t){return function(n,r){t(n,r,e)}},__propKey:function(e){return"symbol"==typeof e?e:"".concat(e)},__read:j,__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},__runInitializers:function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0},__setFunctionName:function(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})},__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(j(arguments[t]));return e},__spreadArray:function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},__spreadArrays:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)r[i]=o[a];return r},__values:F},Symbol.toStringTag,{value:"Module"})),B=O(L);var P={};function W(e){return function(t){return function(n){return n.reduce(function(t,n){return e.alt(t,function(){return n})},t)}}}let D=Object.freeze(Object.defineProperty({__proto__:null,altAll:W},Symbol.toStringTag,{value:"Module"})),N=Object.freeze(Object.defineProperty({__proto__:null,altAll:function(e){return W(e)(e.zero())}},Symbol.toStringTag,{value:"Module"}));var q=function(e){return function(){return{meet:function(t,n){return function(r){return e.meet(t(r),n(r))}},join:function(t,n){return function(r){return e.join(t(r),n(r))}},zero:function(){return e.zero},one:function(){return e.one},implies:function(t,n){return function(r){return e.implies(t(r),n(r))}},not:function(t){return function(n){return e.not(t(n))}}}}},Q=function(e){return function(){return{concat:function(t,n){return function(r){return e.concat(t(r),n(r))}}}}},V=function(e){var t=Q(e);return function(){return{concat:t().concat,empty:function(){return e.empty}}}},z=function(e){return{add:function(t,n){return function(r){return e.add(t(r),n(r))}},zero:function(){return e.zero},mul:function(t,n){return function(r){return e.mul(t(r),n(r))}},one:function(){return e.one}}},Y=function(e){var t=z(e);return{add:t.add,mul:t.mul,one:t.one,zero:t.zero,sub:function(t,n){return function(r){return e.sub(t(r),n(r))}}}},H=function(e){return function(t){return t(e)}};function Z(e){return e}function J(e){return function(){return e}}var G=J(!0),$=J(!1),X=J(null),ee=J(void 0);function et(e,t,n,r,i,o,a,u,s){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return o(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return a(o(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return u(a(o(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return s(u(a(o(i(r(n(t(e.apply(this,arguments)))))))))}}}function en(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e}function er(e){return e+1}function ei(e){return e-1}function eo(e){throw Error("Called `absurd` function which should be uncallable")}function ea(e,t,n,r,i,o,a,u,s){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return o(i(r(n(t(e)))));case 7:return a(o(i(r(n(t(e))))));case 8:return u(a(o(i(r(n(t(e)))))));case 9:return s(u(a(o(i(r(n(t(e))))))));default:for(var l=arguments[0],c=1;c<arguments.length;c++)l=arguments[c](l);return l}}var eu=function(e,t){return t},es=function(){return{concat:function(e,t){return et(e,t)},empty:Z}};let el=Object.freeze(Object.defineProperty({__proto__:null,SK:eu,absurd:eo,apply:H,constFalse:$,constNull:X,constTrue:G,constUndefined:ee,constVoid:ee,constant:J,decrement:ei,flip:function(e){return function(t,n){return e(n,t)}},flow:et,getBooleanAlgebra:q,getEndomorphismMonoid:es,getMonoid:V,getRing:Y,getSemigroup:Q,getSemiring:z,hole:eo,identity:Z,increment:er,not:function(e){return function(t){return!e(t)}},pipe:ea,tuple:en,tupled:function(e){return function(t){return e.apply(void 0,t)}},unsafeCoerce:Z,untupled:function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(t)}}},Symbol.toStringTag,{value:"Module"}));var ec=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},ed=function(e){return"None"===e._tag},ef=function(e){return"Some"===e._tag},ep={_tag:"None"},eA=function(e){return{_tag:"Some",value:e}},eh=function(e){return"Left"===e._tag},em=function(e){return"Right"===e._tag},eg=function(e){return{_tag:"Left",left:e}},ey=function(e){return{_tag:"Right",right:e}},ev=function(e){return[e]},ex=function(e){return e.length>0},eb=function(e){return e[0]},eC=function(e){return e.slice(1)},eS=[],ew={},eI=Object.prototype.hasOwnProperty,e_=function(e){return ec([e[0]],e.slice(1),!0)};function eT(e,t){return function(n){return function(r){return e.ap(e.map(r,function(e){return function(n){return t.ap(e,n)}}),n)}}}function eO(e){return function(t){return function(n){return e.ap(e.map(n,function(e){return function(){return e}}),t)}}}function eR(e){return function(t){return function(n){return e.ap(e.map(n,function(){return function(e){return e}}),t)}}}function ek(e){return function(t,n){return function(r){return e.ap(e.map(r,function(e){return function(n){var r;return Object.assign({},e,((r={})[t]=n,r))}}),n)}}}function eE(e){return function(t){return{concat:function(n,r){return e.ap(e.map(n,function(e){return function(n){return t.concat(e,n)}}),r)}}}}function eM(e,t,n){return function(r){for(var i=Array(n.length+1),o=0;o<n.length;o++)i[o]=n[o];return i[n.length]=r,0===t?e.apply(null,i):eM(e,t-1,i)}}var eF={1:function(e){return[e]},2:function(e){return function(t){return[e,t]}},3:function(e){return function(t){return function(n){return[e,t,n]}}},4:function(e){return function(t){return function(n){return function(r){return[e,t,n,r]}}}},5:function(e){return function(t){return function(n){return function(r){return function(i){return[e,t,n,r,i]}}}}}};function ej(e){return eI.call(eF,e)||(eF[e]=eM(en,e-1,[])),eF[e]}function eU(e){var t=e.length;switch(t){case 1:return function(t){var n;return(n={})[e[0]]=t,n};case 2:return function(t){return function(n){var r;return(r={})[e[0]]=t,r[e[1]]=n,r}};case 3:return function(t){return function(n){return function(r){var i;return(i={})[e[0]]=t,i[e[1]]=n,i[e[2]]=r,i}}};case 4:return function(t){return function(n){return function(r){return function(i){var o;return(o={})[e[0]]=t,o[e[1]]=n,o[e[2]]=r,o[e[3]]=i,o}}}};case 5:return function(t){return function(n){return function(r){return function(i){return function(o){var a;return(a={})[e[0]]=t,a[e[1]]=n,a[e[2]]=r,a[e[3]]=i,a[e[4]]=o,a}}}}};default:return eM(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i={},o=0;o<t;o++)i[e[o]]=n[o];return i},t-1,[])}}let eK=Object.freeze(Object.defineProperty({__proto__:null,ap:eT,apFirst:eO,apS:ek,apSecond:eR,getApplySemigroup:eE,sequenceS:function(e){return function(t){for(var n=Object.keys(t),r=n.length,i=eU(n),o=e.map(t[n[0]],i),a=1;a<r;a++)o=e.ap(o,t[n[a]]);return o}},sequenceT:function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=t.length,i=ej(r),o=e.map(t[0],i),a=1;a<r;a++)o=e.ap(o,t[a]);return o}}},Symbol.toStringTag,{value:"Module"}));function eL(e,t){return function(n){return function(r){return e.map(r,function(e){return t.map(e,n)})}}}function eB(e){return function(t){return function(n){return e.map(n,function(e){return e(t)})}}}function eP(e){return function(t){return function(n){return e.map(n,function(e){var n;return(n={})[t]=e,n})}}}function eW(e,t){var n=eL(e,t);return{map:function(e,t){return ea(e,n(t))}}}let eD=Object.freeze(Object.defineProperty({__proto__:null,bindTo:eP,flap:eB,getFunctorComposition:eW,map:eL},Symbol.toStringTag,{value:"Module"}));function eN(e){var t=eE(e);return function(n){return{concat:t(n).concat,empty:e.of(n.empty)}}}function eq(e,t){var n=eW(e,t).map,r=eT(e,t);return{map:n,of:function(n){return e.of(t.of(n))},ap:function(e,t){return ea(e,r(t))}}}let eQ=Object.freeze(Object.defineProperty({__proto__:null,getApplicativeComposition:eq,getApplicativeMonoid:eN},Symbol.toStringTag,{value:"Module"}));function eV(e){return function(t){return function(n){return e.chain(n,function(n){return e.map(t(n),function(){return n})})}}}function ez(e){return function(t,n){return function(r){return e.chain(r,function(r){return e.map(n(r),function(e){var n;return Object.assign({},r,((n={})[t]=e,n))})})}}}let eY=Object.freeze(Object.defineProperty({__proto__:null,bind:ez,chainFirst:eV},Symbol.toStringTag,{value:"Module"}));function eH(e){return function(t){return function(n){return e.fromEither(ed(n)?eg(t()):ey(n.value))}}}function eZ(e){return function(t,n){return function(r){return e.fromEither(t(r)?ey(r):eg(n(r)))}}}function eJ(e){var t=eH(e);return function(e){var n=t(e);return function(e){return et(e,n)}}}function eG(e,t){var n=eJ(e);return function(e){var r=n(e);return function(e){return function(n){return t.chain(n,r(e))}}}}function e$(e){return function(t){return et(t,e.fromEither)}}function eX(e,t){var n=e$(e);return function(e){return function(r){return t.chain(r,n(e))}}}function e0(e,t){return et(e$(e),eV(t))}function e1(e,t){return function(n,r){return function(i){return t.chain(i,function(t){return e.fromEither(n(t)?ey(t):eg(r(t)))})}}}let e2=Object.freeze(Object.defineProperty({__proto__:null,chainEitherK:eX,chainFirstEitherK:e0,chainOptionK:eG,filterOrElse:e1,fromEitherK:e$,fromOption:eH,fromOptionK:eJ,fromPredicate:eZ},Symbol.toStringTag,{value:"Module"}));var e6=function(e){return{equals:function(t,n){return t===n||e(t,n)}}},e5=function(e){return e6(function(t,n){for(var r in e)if(!e[r].equals(t[r],n[r]))return!1;return!0})},e3=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e6(function(t,n){return e.every(function(e,r){return e.equals(t[r],n[r])})})},e9=function(e){return function(t){return e6(function(n,r){return t.equals(e(n),e(r))})}},e4={equals:function(e,t){return e===t}},e7={equals:function(){return!0}},e8=function(){return{concat:function(e,t){return e6(function(n,r){return e.equals(n,r)&&t.equals(n,r)})}}},te=function(){return{concat:e8().concat,empty:e7}},tt={URI:"Eq",contramap:function(e,t){return ea(e,e9(t))}},tn=e4.equals;let tr=Object.freeze(Object.defineProperty({__proto__:null,Contravariant:tt,URI:"Eq",contramap:e9,eq:tt,eqBoolean:e4,eqDate:{equals:function(e,t){return e.valueOf()===t.valueOf()}},eqNumber:e4,eqStrict:e4,eqString:e4,fromEquals:e6,getMonoid:te,getSemigroup:e8,getStructEq:e5,getTupleEq:e3,strictEqual:tn,struct:e5,tuple:e3},Symbol.toStringTag,{value:"Module"}));var ti=function(e){return function(t,n){return t===n||0===e(t,n)}},to=function(e){return{equals:ti(e),compare:function(t,n){return t===n?0:e(t,n)}}},ta=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return to(function(t,n){for(var r=0;r<e.length-1;r++){var i=e[r].compare(t[r],n[r]);if(0!==i)return i}return e[r].compare(t[r],n[r])})},tu=function(e){return to(function(t,n){return e.compare(n,t)})},ts=function(e){return function(t){return to(function(n,r){return t.compare(e(n),e(r))})}},tl=function(){return{concat:function(e,t){return to(function(n,r){var i=e.compare(n,r);return 0!==i?i:t.compare(n,r)})}}},tc=function(){return{concat:tl().concat,empty:to(function(){return 0})}},td={URI:"Ord",contramap:function(e,t){return ea(e,ts(t))}},tf={equals:G,compare:J(0)},tp=function(e){return function(t){return function(n){return n===t||0===e.compare(n,t)}}},tA=function(e){return function(t,n){return -1===e.compare(t,n)}},th=function(e){return function(t,n){return 1===e.compare(t,n)}},tm=function(e){return function(t,n){return 1!==e.compare(t,n)}},tg=function(e){return function(t,n){return -1!==e.compare(t,n)}},ty=function(e){return function(t,n){return t===n||1>e.compare(t,n)?t:n}},tv=function(e){return function(t,n){return t===n||e.compare(t,n)>-1?t:n}},tx=function(e){var t=ty(e),n=tv(e);return function(e,r){return function(i){return n(t(i,r),e)}}},tb=function(e){var t=tA(e),n=th(e);return function(e,r){return function(i){return!(t(i,e)||n(i,r))}}},tC={equals:e4.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},tS=ea(tC,ts(function(e){return e.valueOf()}));let tw=Object.freeze(Object.defineProperty({__proto__:null,Contravariant:td,URI:"Ord",between:tb,clamp:tx,contramap:ts,equals:tp,equalsDefault:ti,fromCompare:to,geq:tg,getDualOrd:tu,getMonoid:tc,getSemigroup:tl,getTupleOrd:ta,gt:th,leq:tm,lt:tA,max:tv,min:ty,ord:td,ordBoolean:tC,ordDate:tS,ordNumber:tC,ordString:tC,reverse:tu,trivial:tf,tuple:ta},Symbol.toStringTag,{value:"Module"}));var tI=function(e){return{concat:function(t,n){return e.concat(n,t)}}},t_=function(e){return function(t){return{concat:function(n,r){return e(n)?t.concat(n,r):r}}}},tT=function(e){return function(t){return{concat:function(n,r){return e(r)?t.concat(n,r):n}}}},tO=function(e){return function(t){return{concat:function(n,r){return t.concat(e(n),e(r))}}}},tR=function(e){return function(t){return function(n){return n.reduce(function(t,n){return e.concat(t,n)},t)}}};let tk=Object.freeze(Object.defineProperty({__proto__:null,concatAll:tR,endo:tO,filterFirst:t_,filterSecond:tT,reverse:tI},Symbol.toStringTag,{value:"Module"}));var tE=function(e){return{concat:ty(e)}},tM=function(e){return{concat:tv(e)}},tF=function(e){return{concat:function(){return e}}},tj=function(e){return{concat:function(t,n){var r={};for(var i in e)eI.call(e,i)&&(r[i]=e[i].concat(t[i],n[i]));return r}}},tU=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{concat:function(t,n){return e.map(function(e,r){return e.concat(t[r],n[r])})}}},tK=function(e){return function(t){return{concat:function(n,r){return t.concat(n,t.concat(e,r))}}}},tL=function(){return{concat:Z}},tB=function(){return{concat:function(e,t){return t}}},tP=tF(void 0),tW=function(){return{concat:function(e,t){return Object.assign({},e,t)}}},tD={concat:function(e,t){return e&&t}},tN={concat:function(e,t){return e||t}},tq={concat:function(e,t){return e+t}},tQ={concat:function(e,t){return e+t}},tV={concat:function(e,t){return e*t}};let tz=Object.freeze(Object.defineProperty({__proto__:null,concatAll:tR,constant:tF,first:tL,fold:function(e){var t=tR(e);return function(e,n){return void 0===n?t(e):t(e)(n)}},getDualSemigroup:tI,getFirstSemigroup:tL,getFunctionSemigroup:Q,getIntercalateSemigroup:tK,getJoinSemigroup:tM,getLastSemigroup:tB,getMeetSemigroup:tE,getObjectSemigroup:tW,getStructSemigroup:tj,getTupleSemigroup:tU,intercalate:tK,last:tB,max:tM,min:tE,reverse:tI,semigroupAll:tD,semigroupAny:tN,semigroupProduct:tV,semigroupString:tq,semigroupSum:tQ,semigroupVoid:tP,struct:tj,tuple:tU},Symbol.toStringTag,{value:"Module"}));var tY=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},tH=function(e,t){return e<0||e>=t.length},tZ=function(e){return function(t){return tY([e],t,!0)}},tJ=function(e){return function(t){return tY(tY([],t,!0),[e],!1)}},tG=function(e,t,n){if(ex(n)){var r=e_(n);return r.splice(e,0,t),r}return[t]},t$=function(e,t,n){if(n[e]===t)return n;var r=e_(n);return r[e]=t,r},tX=function(e){return function(t){if(1===t.length)return t;for(var n=[re(t)],r=rt(t),i=function(t){n.every(function(n){return!e.equals(n,t)})&&n.push(t)},o=0;o<r.length;o++)i(r[o]);return n}},t0=function(e){if(ex(e)){var t=tc();return no(e.reduce(t.concat,t.empty))}return Z},t1=function(e){var t=tX(e);return function(e){return function(n){return t(ea(n,nt(e)))}}},t2=function(e){return function(t){var n=t.length,r=Math.round(e)%n;if(tH(Math.abs(r),t)||0===r)return t;if(!(r<0))return t2(r-n)(t);var i=nA(-r)(t),o=i[0];return ea(i[1],nt(o))}},t6=function(e){return ex(e)?eA(e):ep},t5=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}},t3=function(e){return t5(function(){return e})},t9=function(e,t){return e<=t?t5(function(t){return e+t})(t-e+1):[e]},t4=function(e){return[re(e),rt(e)]},t7=function(e){return[rr(e),rn(e)]},t8=function(e){return t6(e.slice())};function ne(e){return function(t){return t.concat(e)}}function nt(e,t){return t?e.concat(t):function(t){return t.concat(e)}}var nn=function(e){return 1===e.length?e:tY([rn(e)],e.slice(0,-1).reverse(),!0)};function nr(e){return function(t){var n=t.length;if(0===n)return eS;for(var r=[],i=t[0],o=[i],a=1;a<n;a++){var u=t[a];e.equals(u,i)?o.push(u):(r.push(o),o=[i=u])}return r.push(o),r}}var ni=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);eI.call(n,o)?n[o].push(i):n[o]=[i]}return n}},no=function(e){return function(t){return 1===t.length?t:t.slice().sort(e.compare)}},na=function(e,t){return nu(e,function(){return t})},nu=function(e,t){return function(n){return tH(e,n)?ep:eA(t$(e,t(n[e]),n))}},ns=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r},nl=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},nc=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}},nd=function(e){return function(t){var n=rt(t);return ex(n)?ea(n,nc(e),tZ(re(t))):t}},nf=function(e){return function(t){for(var n=e_(e(0,re(t))),r=1;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},np=function(e){return function(t){for(var n=e(t),r=n[0],i=n[1],o=[r],a=i;ex(a);){var u=e(a),s=u[0],l=u[1];o.push(s),a=l}return o}},nA=function(e){return function(t){var n=Math.max(1,e);return n>=t.length?[t,eS]:[ea(t.slice(1,n),tZ(re(t))),t.slice(n)]}},nh=function(e){return np(nA(e))},nm=function(e,t){return ea(e,nL(t))},ng=function(e,t){return ea(e,nB(t))},ny=function(e,t){return ea(e,nM(t))},nv=function(e,t){return ea(e,nF(t))},nx=function(e,t){return ea(e,nj(t))},nb=function(e,t,n){return ea(e,nP(t,n))},nC=function(e){var t=nW(e);return function(e,n){return ea(e,t(n))}},nS=function(e,t,n){return ea(e,nD(t,n))},nw=function(e){var t=nV(e);return function(e,n){return ea(e,t(n))}},nI=function(e,t){return ea(e,nE(t))},n_=function(e,t,n){return ea(e,nN(t,n))},nT=function(e){var t=nq(e);return function(e,n){return ea(e,t(n))}},nO=function(e,t,n){return ea(e,nQ(t,n))},nR=function(e){var t=nY(e);return function(e,n){return ea(e,t(n))}},nk=function(e){return function(t){return ea(t,ne(e()))}},nE=nk,nM=function(e){return nF(function(t){return ea(e,nL(t))})},nF=function(e){return nf(function(t,n){return e(n)})},nj=function(e){return function(t){for(var n=rt(t),r=[e(t)];ex(n);)r.push(e(n)),n=rt(n);return r}},nU=nj(Z),nK=nF(Z),nL=function(e){return nB(function(t,n){return e(n)})},nB=function(e){return function(t){for(var n=[e(0,re(t))],r=1;r<t.length;r++)n.push(e(r,t[r]));return n}},nP=function(e,t){return nN(e,function(e,n,r){return t(n,r)})},nW=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r){return e.concat(n,t(r))},t(n[0]))}}},nD=function(e,t){return nQ(e,function(e,n,r){return t(n,r)})},nN=function(e,t){return function(n){return n.reduce(function(e,n,r){return t(r,e,n)},e)}},nq=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r,i){return e.concat(n,t(i+1,r))},t(0,n[0]))}}},nQ=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}},nV=function(e){var t=nY(e);return function(e){return t(function(t,n){return e(n)})}},nz=function(e){return nY(e)(eu)},nY=function(e){return function(t){return function(n){for(var r=e.map(t(0,re(n)),ev),i=1;i<n.length;i++)r=e.ap(e.map(r,function(e){return function(t){return ea(e,tJ(t))}}),t(i,n[i]));return r}}},nH="ReadonlyNonEmptyArray",nZ=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}},nJ=function(){return{concat:nt}},nG=function(e){return e6(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})},n$=function(e){var t=t1(e);return{concat:function(e,n){return t(n)(e)}}},nX={URI:nH,map:nm},n0=eB(nX),n1={URI:nH,map:nm,ap:ny},n2=eO(n1),n6=eR(n1),n5={URI:nH,map:nm,ap:ny,chain:nv},n3=eV(n5),n9=ev(ew),n4=eP(nX),n7=ez(n5),n8=ek(n1),re=eb,rt=eC,rn=function(e){return e[e.length-1]},rr=function(e){return e.slice(0,-1)},ri=function(e){var t=tE(e);return function(e){return e.reduce(t.concat)}},ro=function(e){var t=tM(e);return function(e){return e.reduce(t.concat)}},ra=function(e){return function(t){return t.reduce(e.concat)}},ru=function(e){return function(t){return e(re(t),rt(t))}},rs=function(e){return function(t){return e(rr(t),rn(t))}},rl=function(e){return function(t){return tY([e(re(t))],rt(t),!0)}},rc=function(e){return rl(function(){return e})},rd=function(e){return function(t){return ea(rr(t),tJ(e(rn(t))))}},rf=function(e){return rd(function(){return e})},rp=function(e){var t=ra(e);return function(e){return et(nd(e),t)}},rA=function(e){return function(t){return t6(t.filter(function(t,n){return e(n,t)}))}};function rh(e,t){return void 0===t?tZ(e):ea(t,tZ(e))}var rm=function(e,t){return ea(e,nt([t]))},rg=function(e,t){return function(n){return e<0||e>n.length?ep:eA(tG(e,t,n))}};let ry=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:nH,map:nm,alt:nI},Applicative:{URI:nH,map:nm,ap:ny,of:ev},Apply:n1,Chain:n5,Comonad:{URI:nH,map:nm,extend:nx,extract:eb},Do:n9,Foldable:{URI:nH,reduce:nb,foldMap:nC,reduceRight:nS},FoldableWithIndex:{URI:nH,reduce:nb,foldMap:nC,reduceRight:nS,reduceWithIndex:n_,foldMapWithIndex:nT,reduceRightWithIndex:nO},Functor:nX,FunctorWithIndex:{URI:nH,map:nm,mapWithIndex:ng},Monad:{URI:nH,map:nm,ap:ny,of:ev,chain:nv},Pointed:{URI:nH,of:ev},Traversable:{URI:nH,map:nm,reduce:nb,foldMap:nC,reduceRight:nS,traverse:nw,sequence:nz},TraversableWithIndex:{URI:nH,map:nm,mapWithIndex:ng,reduce:nb,foldMap:nC,reduceRight:nS,traverse:nw,sequence:nz,reduceWithIndex:n_,foldMapWithIndex:nT,reduceRightWithIndex:nO,traverseWithIndex:nR},URI:nH,alt:nE,altW:nk,ap:nM,apFirst:n2,apS:n8,apSecond:n6,append:tJ,appendW:tJ,bind:n7,bindTo:n4,chain:nF,chainFirst:n3,chainWithIndex:nf,chop:np,chunksOf:nh,concat:nt,concatAll:ra,concatW:ne,cons:rh,duplicate:nU,empty:eS,extend:nj,extract:eb,filter:function(e){return rA(function(t,n){return e(n)})},filterWithIndex:rA,flap:n0,flatten:nK,fold:ra,foldMap:nW,foldMapWithIndex:nq,fromArray:t8,fromReadonlyArray:t6,getEq:nG,getSemigroup:nJ,getShow:nZ,getUnionSemigroup:n$,group:nr,groupBy:ni,groupSort:function(e){var t=no(e),n=nr(e);return function(e){return ex(e)?n(t(e)):eS}},head:re,init:rr,insertAt:rg,intercalate:rp,intersperse:nd,isNonEmpty:ex,isOutOfBound:tH,last:rn,makeBy:t5,map:nL,mapWithIndex:nB,matchLeft:ru,matchRight:rs,max:ro,min:ri,modifyAt:nu,modifyHead:rl,modifyLast:rd,of:ev,prepend:tZ,prependAll:nc,prependToAll:nc,prependW:tZ,range:t9,readonlyNonEmptyArray:{URI:nH,of:ev,map:nm,mapWithIndex:ng,ap:ny,chain:nv,extend:nx,extract:eb,reduce:nb,foldMap:nC,reduceRight:nS,traverse:nw,sequence:nz,reduceWithIndex:n_,foldMapWithIndex:nT,reduceRightWithIndex:nO,traverseWithIndex:nR,alt:nI},reduce:nP,reduceRight:nD,reduceRightWithIndex:nQ,reduceWithIndex:nN,replicate:t3,reverse:nn,rotate:t2,sequence:nz,snoc:rm,sort:no,sortBy:t0,splitAt:nA,tail:rt,traverse:nV,traverseWithIndex:nY,unappend:t7,uncons:t4,union:t1,uniq:tX,unprepend:t4,unsafeInsertAt:tG,unsafeUpdateAt:t$,unsnoc:t7,unzip:nl,updateAt:na,updateHead:rc,updateLast:rf,zip:function e(t,n){return void 0===n?function(n){return e(n,t)}:ns(t,n,function(e,t){return[e,t]})},zipWith:ns},Symbol.toStringTag,{value:"Module"}));var rv=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},rx=function(e){return e.length>0},rb=function(e,t){return e<0||e>=t.length},rC=function(e){return function(t){return rv([e],t,!0)}},rS=function(e){return function(t){return rv(rv([],t,!0),[e],!1)}},rw=function(e,t,n){if(rx(n)){var r=rk(n);return r.splice(e,0,t),r}return[t]},rI=function(e,t,n){var r=rk(n);return r[e]=t,r},r_=function(e){return function(t){if(1===t.length)return rz(t);for(var n=[iB(t)],r=iP(t),i=function(t){n.every(function(n){return!e.equals(n,t)})&&n.push(t)},o=0;o<r.length;o++)i(r[o]);return n}},rT=function(e){if(rx(e)){var t=tc();return rN(e.reduce(t.concat,t.empty))}return rz},rO=function(e){var t=r_(e);return function(e){return function(n){return t(ea(n,rB(e)))}}},rR=function(e){return function(t){var n=t.length,r=Math.round(e)%n;if(rb(Math.abs(r),t)||0===r)return rz(t);if(!(r<0))return rR(r-n)(t);var i=r0(-r)(t),o=i[0];return ea(i[1],rB(o))}},rk=e_,rE=function(e){return rx(e)?eA(e):ep},rM=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}},rF=function(e){return rM(function(){return e})},rj=function(e,t){return e<=t?rM(function(t){return e+t})(t-e+1):[e]},rU=function(e){return[iB(e),iP(e)]},rK=function(e){return[iD(e),iW(e)]};function rL(e){return function(t){return t.concat(e)}}function rB(e,t){return t?e.concat(t):function(t){return t.concat(e)}}var rP=function(e){return rv([iW(e)],e.slice(0,-1).reverse(),!0)};function rW(e){return function(t){var n=t.length;if(0===n)return[];for(var r=[],i=t[0],o=[i],a=1;a<n;a++){var u=t[a];e.equals(u,i)?o.push(u):(r.push(o),o=[i=u])}return r.push(o),r}}var rD=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);eI.call(n,o)?n[o].push(i):n[o]=[i]}return n}},rN=function(e){return function(t){return t.slice().sort(e.compare)}},rq=function(e,t){return function(n){return e<0||e>n.length?ep:eA(rw(e,t,n))}},rQ=function(e,t){return rV(e,function(){return t})},rV=function(e,t){return function(n){return rb(e,n)?ep:eA(rI(e,t(n[e]),n))}},rz=rk,rY=function(e){return[e]},rH=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r},rZ=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},rJ=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}},rG=function(e){return function(t){var n=iP(t);return rx(n)?ea(n,rJ(e),rC(iB(t))):rz(t)}},r$=function(e){return function(t){for(var n=rk(e(0,iB(t))),r=1;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},rX=function(e){return function(t){for(var n=e(t),r=n[0],i=n[1],o=[r],a=i;rx(a);){var u=e(a),s=u[0],l=u[1];o.push(s),a=l}return o}},r0=function(e){return function(t){var n=Math.max(1,e);return n>=t.length?[rz(t),[]]:[ea(t.slice(1,n),rC(iB(t))),t.slice(n)]}},r1=function(e){return rX(r0(e))},r2=function(e,t){return ea(e,ih(t))},r6=function(e,t){return ea(e,im(t))},r5=function(e,t){return ea(e,il(t))},r3=function(e,t){return ea(e,ic(t))},r9=function(e,t){return ea(e,id(t))},r4=function(e,t,n){return ea(e,ig(t,n))},r7=function(e){var t=nW(e);return function(e,n){return ea(e,t(n))}},r8=function(e,t,n){return ea(e,iv(t,n))},ie=function(e){var t=ib(e);return function(e,n){return ea(e,t(n))}},it=function(e,t){return ea(e,is(t))},ir=function(e,t,n){return ea(e,iy(t,n))},ii=function(e){var t=nq(e);return function(e,n){return ea(e,t(n))}},io=function(e,t,n){return ea(e,ix(t,n))},ia=function(e){var t=iS(e);return function(e,n){return ea(e,t(n))}},iu=function(e){return function(t){return ea(t,rL(e()))}},is=iu,il=function(e){return ic(function(t){return ea(e,ih(t))})},ic=function(e){return r$(function(t,n){return e(n)})},id=function(e){return function(t){for(var n=iP(t),r=[e(t)];rx(n);)r.push(e(n)),n=iP(n);return r}},ip=id(Z),iA=ic(Z),ih=function(e){return im(function(t,n){return e(n)})},im=function(e){return function(t){for(var n=[e(0,iB(t))],r=1;r<t.length;r++)n.push(e(r,t[r]));return n}},ig=nP,iy=nN,iv=nD,ix=nQ,ib=function(e){var t=iS(e);return function(e){return t(function(t,n){return e(n)})}},iC=function(e){return iS(e)(function(e,t){return t})},iS=function(e){return function(t){return function(n){for(var r=e.map(t(0,iB(n)),rY),i=1;i<n.length;i++)r=e.ap(e.map(r,function(e){return function(t){return ea(e,rS(t))}}),t(i,n[i]));return r}}},iw="NonEmptyArray",iI=function(){return{concat:rB}},i_=function(e){var t=rO(e);return{concat:function(e,n){return t(n)(e)}}},iT={URI:iw,map:r2},iO=eB(iT),iR={URI:iw,map:r2,ap:r5},ik=eO(iR),iE=eR(iR),iM={URI:iw,map:r2,ap:r5,chain:r3},iF=eV(iM),ij=rY(ew),iU=eP(iT),iK=ez(iM),iL=ek(iR),iB=re,iP=function(e){return e.slice(1)},iW=rn,iD=function(e){return e.slice(0,-1)},iN=function(e){return function(t){return t.reduce(e.concat)}},iq=function(e){return function(t){return e(iB(t),iP(t))}},iQ=function(e){return function(t){return e(iD(t),iW(t))}},iV=function(e){return function(t){return rv([e(iB(t))],iP(t),!0)}},iz=function(e){return iV(function(){return e})},iY=function(e){return function(t){return ea(iD(t),rS(e(iW(t))))}},iH=function(e){return iY(function(){return e})},iZ=function(e){return function(t){return rE(t.filter(function(t,n){return e(n,t)}))}};function iJ(e,t){return void 0===t?rC(e):ea(t,rC(e))}var iG=function(e,t){return ea(e,rS(t))};let i$=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:iw,map:r2,alt:it},Applicative:{URI:iw,map:r2,ap:r5,of:rY},Apply:iR,Chain:iM,Comonad:{URI:iw,map:r2,extend:r9,extract:re},Do:ij,Foldable:{URI:iw,reduce:r4,foldMap:r7,reduceRight:r8},FoldableWithIndex:{URI:iw,reduce:r4,foldMap:r7,reduceRight:r8,reduceWithIndex:ir,foldMapWithIndex:ii,reduceRightWithIndex:io},Functor:iT,FunctorWithIndex:{URI:iw,map:r2,mapWithIndex:r6},Monad:{URI:iw,map:r2,ap:r5,of:rY,chain:r3},Pointed:{URI:iw,of:rY},Traversable:{URI:iw,map:r2,reduce:r4,foldMap:r7,reduceRight:r8,traverse:ie,sequence:iC},TraversableWithIndex:{URI:iw,map:r2,mapWithIndex:r6,reduce:r4,foldMap:r7,reduceRight:r8,traverse:ie,sequence:iC,reduceWithIndex:ir,foldMapWithIndex:ii,reduceRightWithIndex:io,traverseWithIndex:ia},URI:iw,alt:is,altW:iu,ap:il,apFirst:ik,apS:iL,apSecond:iE,append:rS,appendW:rS,bind:iK,bindTo:iU,chain:ic,chainFirst:iF,chainWithIndex:r$,chop:rX,chunksOf:r1,concat:rB,concatAll:iN,concatW:rL,cons:iJ,copy:rz,duplicate:ip,extend:id,extract:re,filter:function(e){return iZ(function(t,n){return e(n)})},filterWithIndex:iZ,flap:iO,flatten:iA,fold:ra,foldMap:nW,foldMapWithIndex:nq,fromArray:rE,fromReadonlyNonEmptyArray:rk,getEq:nG,getSemigroup:iI,getShow:nZ,getUnionSemigroup:i_,group:rW,groupBy:rD,groupSort:function(e){var t=rN(e),n=rW(e);return function(e){return rx(e)?n(t(e)):[]}},head:iB,init:iD,insertAt:rq,intercalate:rp,intersperse:rG,isNonEmpty:rx,isOutOfBound:rb,last:iW,makeBy:rM,map:ih,mapWithIndex:im,matchLeft:iq,matchRight:iQ,max:ro,min:ri,modifyAt:rV,modifyHead:iV,modifyLast:iY,nonEmptyArray:{URI:iw,of:rY,map:r2,mapWithIndex:r6,ap:r5,chain:r3,extend:r9,extract:re,reduce:r4,foldMap:r7,reduceRight:r8,traverse:ie,sequence:iC,reduceWithIndex:ir,foldMapWithIndex:ii,reduceRightWithIndex:io,traverseWithIndex:ia,alt:it},of:rY,prepend:rC,prependAll:rJ,prependToAll:rJ,prependW:rC,range:rj,reduce:ig,reduceRight:iv,reduceRightWithIndex:ix,reduceWithIndex:iy,replicate:rF,reverse:rP,rotate:rR,sequence:iC,snoc:iG,sort:rN,sortBy:rT,splitAt:r0,tail:iP,traverse:ib,traverseWithIndex:iS,unappend:rK,uncons:rU,union:rO,uniq:r_,unprepend:rU,unsafeInsertAt:rw,unsafeUpdateAt:rI,unsnoc:rK,unzip:rZ,updateAt:rQ,updateHead:iz,updateLast:iH,zip:function e(t,n){return void 0===n?function(n){return e(n,t)}:rH(t,n,function(e,t){return[e,t]})},zipWith:rH},Symbol.toStringTag,{value:"Module"}));var iX=function(e){return"number"==typeof e},i0={equals:function(e,t){return e===t}},i1={equals:i0.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},i2={equals:i0.equals,compare:i1.compare,top:1/0,bottom:-1/0},i6={concat:function(e,t){return e-t}},i5={concat:function(e,t){return e+t}},i3={concat:function(e,t){return e*t}},i9={concat:i5.concat,empty:0},i4={concat:i3.concat,empty:1},i7={add:i5.concat,zero:0,mul:i3.concat,one:1,sub:i6.concat,degree:function(e){return 1},div:function(e,t){return e/t},mod:function(e,t){return e%t}};let i8=Object.freeze(Object.defineProperty({__proto__:null,Bounded:i2,Eq:i0,Field:i7,MagmaSub:i6,MonoidProduct:i4,MonoidSum:i9,Ord:i1,SemigroupProduct:i3,SemigroupSum:i5,Show:{show:function(e){return JSON.stringify(e)}},isNumber:iX},Symbol.toStringTag,{value:"Module"}));var oe=function(e,t){return{left:e,right:t}},ot=function(e,t){return ea(e,oi(t))},on=function(e,t,n){return ea(e,oo(t,n))},or=function(e){return function(t){return oe(oc(t),e(od(t)))}},oi=function(e){return function(t){return oe(e(oc(t)),od(t))}},oo=function(e,t){return function(n){return oe(e(oc(n)),t(od(n)))}},oa="Separated",ou={URI:oa,map:function(e,t){return ea(e,or(t))}},ol=eB(ou),oc=function(e){return e.left},od=function(e){return e.right};let of=Object.freeze(Object.defineProperty({__proto__:null,Bifunctor:{URI:oa,mapLeft:ot,bimap:on},Functor:ou,URI:oa,bimap:oo,flap:ol,left:oc,map:or,mapLeft:oi,right:od,separated:oe},Symbol.toStringTag,{value:"Module"}));function op(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.separate)}}}function oA(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.compact)}}}function oh(e){return function(t){var n=e.wither(t);return function(e){return function(r){return n(r,function(n){return t.map(e(n),function(e){return e?eA(n):ep})})}}}}let om=Object.freeze(Object.defineProperty({__proto__:null,filterE:oh,wiltDefault:op,witherDefault:oA},Symbol.toStringTag,{value:"Module"}));function og(e,t){return function(n){return n?t.of(void 0):e.zero()}}let oy=Object.freeze(Object.defineProperty({__proto__:null,guard:og},Symbol.toStringTag,{value:"Module"}));var ov=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},ox=function(e){return 0===e.length},ob=function(e,t){return e<=0?uj:t5(t)(e)},oC=function(e,t){return ob(e,function(){return t})},oS=function(e){return ed(e)?uj:[e.value]},ow=function(e){return eh(e)?uj:[e.right]},oI=function(e,t){return function(n){return ex(n)?t(n):e()}},o_=function(e,t){return function(n){return ex(n)?t(re(n),rt(n)):e()}},oT=function(e,t){return function(n){return ex(n)?t(rr(n),rn(n)):e()}},oO=function(e){return function(t){if(ox(t))return uj;for(var n=[],r=0;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},oR=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}},ok=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}},oE=function(e){return e.length};function oM(e,t){return void 0===t?function(t){return oM(e,t)}:tH(e,t)?ep:eA(t[e])}var oF=function(e){return ex(e)?eA(re(e)):ep},oj=function(e){return ex(e)?eA(rn(e)):ep},oU=function(e){return ex(e)?eA(rt(e)):ep},oK=function(e){return ex(e)?eA(rr(e)):ep},oL=function(e){return function(t){return tH(e,t)?t:0===e?uj:t.slice(0,e)}},oB=function(e){return function(t){return tH(e,t)?t:0===e?uj:t.slice(-e)}},oP=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r},oW=function(e){return function(t){return e<=0||ox(t)?t:e>=t.length?uj:t.slice(e,t.length)}},oD=function(e){return function(t){return e<=0||ox(t)?t:e>=t.length?uj:t.slice(0,t.length-e)}},oN=function(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return eA(n);return ep}};function oq(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return eA(t[n]);return ep}}var oQ=function(e){return function(t){for(var n=0;n<t.length;n++){var r=e(t[n]);if(ef(r))return r}return ep}};function oV(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return eA(t[n]);return ep}}var oz=function(e){return function(t){for(var n=t.length-1;n>=0;n--){var r=e(t[n]);if(ef(r))return r}return ep}},oY=function(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return eA(n);return ep}},oH=function(e,t){return function(n){return e<0||e>n.length?ep:eA(tG(e,t,n))}},oZ=function(e,t){return oG(e,function(){return t})},oJ=function(e){return function(t){return tH(e,t)?ep:eA(uE(e,t))}},oG=function(e,t){return function(n){return tH(e,n)?ep:eA(uk(e,t(n[e]),n))}},o$=function(e){return e.length<=1?e:e.slice().reverse()},oX=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t},o0=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t},o1=function(e){return function(t){return t.length<=1?t:t.slice().sort(e.compare)}},o2=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r},o6=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},o5=function(e){var t=nc(e);return function(e){return ex(e)?t(e):e}},o3=function(e){var t=nd(e);return function(e){return ex(e)?t(e):e}},o9=function(e){var t=t2(e);return function(e){return ex(e)?t(e):e}};function o4(e){return function(t,n){if(void 0===n){var r,i=o4(e);return function(e){return i(t,e)}}for(var o=0;o<n.length;o++)if(r=n[o],e.equals(r,t))return!0;return!1}}var o7=function(e){var t=tX(e);return function(e){return ex(e)?t(e):e}},o8=function(e){var t=t0(e);return function(e){return ex(e)?t(e):e}},ae=function(e){var t=np(e);return function(e){return ex(e)?t(e):uj}},at=function(e){return function(t){return e>=1&&ex(t)?nA(e)(t):ox(t)?[t,uj]:[uj,t]}},an=function(e){var t=nh(e);return function(e){return ex(e)?t(e):uj}},ar=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return oS(e.apply(void 0,t))}},ai=function(e){return function(t){return ox(t)?e:ox(e)?t:t.concat(e)}};function ao(e){var t=t1(e);return function(n,r){if(void 0===r){var i=ao(e);return function(e){return i(e,n)}}return ex(n)&&ex(r)?t(r)(n):ex(n)?n:r}}function aa(e){var t=o4(e);return function(n,r){if(void 0===r){var i=aa(e);return function(e){return i(e,n)}}return n.filter(function(e){return t(e,r)})}}function au(e){var t=o4(e);return function(n,r){if(void 0===r){var i=au(e);return function(e){return i(e,n)}}return n.filter(function(e){return!t(e,r)})}}var as=function(e,t){return ea(e,aB(t))},al=function(e,t){return ea(e,aP(t))},ac=function(e,t){return ea(e,aU(t))},ad=function(e,t){return ea(e,aK(t))},af=function(e,t){return ea(e,aD(t))},ap=function(e,t){return ea(e,aq(t))},aA=function(e,t){return ea(e,aV(t))},ah=function(e,t){return ea(e,aY(t))},am=function(e,t){return ea(e,az(t))},ag=function(e,t){return ea(e,aH(t))},ay=function(e,t){return ea(e,aj(t))},av=function(e,t,n){return ea(e,aX(t,n))},ax=function(e){var t=a0(e);return function(e,n){return ea(e,t(n))}},ab=function(e,t,n){return ea(e,a2(t,n))},aC=function(e,t,n){return ea(e,a1(t,n))},aS=function(e){var t=a$(e);return function(e,n){return ea(e,t(n))}},aw=function(e,t,n){return ea(e,a6(t,n))},aI=function(e,t){return ea(e,aN(t))},a_=function(e,t){return ea(e,aZ(t))},aT=function(e,t){return ea(e,aJ(t))},aO=function(e){var t=a5(e);return function(e,n){return ea(e,t(n))}},aR=function(e){var t=a9(e);return function(e,n){return ea(e,t(n))}},ak=function(e,t){return ea(e,uC(t))},aE=function(e,t){return ea(e,uS(t))},aM=function(){return uj},aF=function(e){return function(t){return t.concat(e())}},aj=aF,aU=function(e){return aK(function(t){return ea(e,aB(t))})},aK=function(e){return function(t){return ea(t,oO(function(t,n){return e(n)}))}},aL=aK(Z),aB=function(e){return function(t){return t.map(function(t){return e(t)})}},aP=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}},aW=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return oe(t,n)},aD=function(e){return function(t){return t.filter(e)}},aN=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);ef(i)&&n.push(i.value)}return n}},aq=function(e){return aN(function(t,n){return e(n)})},aQ=aq(Z),aV=function(e){return az(function(t,n){return e(n)})},az=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return oe(n,r)}},aY=function(e){return aH(function(t,n){return e(n)})},aH=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return oe(n,r)}},aZ=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}},aJ=function(e){return function(t){return t.map(function(n,r){return e(t.slice(r))})}},aG=aJ(Z),a$=function(e){return function(t){return function(n){return n.reduce(function(n,r,i){return e.concat(n,t(i,r))},e.empty)}}},aX=function(e,t){return a1(e,function(e,n,r){return t(n,r)})},a0=function(e){var t=a$(e);return function(e){return t(function(t,n){return e(n)})}},a1=function(e,t){return function(n){for(var r=n.length,i=e,o=0;o<r;o++)i=t(o,i,n[o]);return i}},a2=function(e,t){return a6(e,function(e,n,r){return t(n,r)})},a6=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}},a5=function(e){var t=a9(e);return function(e){return t(function(t,n){return e(n)})}},a3=function(e){return function(t){return av(t,e.of(aM()),function(t,n){return e.ap(e.map(t,function(e){return function(t){return ea(e,tJ(t))}}),n)})}},a9=function(e){return function(t){return a1(e.of(aM()),function(n,r,i){return e.ap(e.map(r,function(e){return function(t){return ea(e,tJ(t))}}),t(n,i))})}},a4=function(e){var t=uw(e);return function(e){return function(n){return t(n,e)}}},a7=function(e){var t=uI(e);return function(e){return function(n){return t(n,e)}}},a8=function(e,t){for(var n=[],r=e;;){var i=t(r);if(ef(i)){var o=i.value,a=o[0],u=o[1];n.push(a),r=u}else break}return n},ue="ReadonlyArray",ut=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}},un=function(){return{concat:function(e,t){return ox(e)?t:ox(t)?e:e.concat(t)}}},ur=function(){return{concat:un().concat,empty:uj}},ui=function(e){return e6(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})},uo=function(e){return to(function(t,n){for(var r=t.length,i=n.length,o=Math.min(r,i),a=0;a<o;a++){var u=e.compare(t[a],n[a]);if(0!==u)return u}return i1.compare(r,i)})},ua=function(e){var t=ao(e);return{concat:function(e,n){return t(n)(e)}}},uu=function(e){return{concat:ua(e).concat,empty:uj}},us=function(e){var t=aa(e);return{concat:function(e,n){return t(n)(e)}}},ul=function(e){var t=au(e);return{concat:function(e,n){return t(n)(e)}}},uc={URI:ue,map:as},ud=eB(uc),uf={URI:ue,of:ev},up={URI:ue,map:as,ap:ac},uA=eO(up),uh=eR(up),um={URI:ue,map:as,ap:ac,chain:ad},ug=eV(um),uy={URI:ue,zero:aM},uv=og(uy,uf),ux={URI:ue,compact:aQ,separate:aW},ub={URI:ue,map:as,reduce:av,foldMap:ax,reduceRight:ab,traverse:aO,sequence:a3},uC=function(e){return function(t){for(var n=ov([],e(t),!0),r=[];n.length>0;){var i=n.shift();eh(i)?n.unshift.apply(n,e(i.left)):r.push(i.right)}return r}},uS=function(e){return function(t){var n=e(t),r=[],i=[];function o(t){eh(t)?e(t.left).forEach(function(e){return r.push(e)}):i.push(t.right)}for(var a=0;a<n.length;a++)o(n[a]);for(;r.length>0;)o(r.shift());return i}},uw=oA(ub,ux),uI=op(ub,ux),u_={URI:ue,map:as,compact:aQ,separate:aW,filter:af,filterMap:ap,partition:aA,partitionMap:ah,reduce:av,foldMap:ax,reduceRight:ab,traverse:aO,sequence:a3,wither:uw,wilt:uI},uT=oh(u_),uO={URI:ue,fromEither:ow},uR=e$(uO),uk=function(e,t,n){return ex(n)?t$(e,t,n):n},uE=function(e,t){var n=t.slice();return n.splice(e,1),n},uM=function(e){return e.slice()},uF=function(e){return ox(e)?uj:e.slice()},uj=eS;function uU(e){return function(t){return t.every(e)}}var uK=function(e){return function(t){return t.some(e)}},uL=function(e){var t=rp(e);return function(n){return oI(function(){return e.empty},t(n))}},uB=ev(ew),uP=eP(uc),uW=ez(um),uD=ek(up);let uN=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:ue,map:as,alt:ay},Alternative:{URI:ue,map:as,ap:ac,of:ev,alt:ay,zero:aM},Applicative:{URI:ue,map:as,ap:ac,of:ev},Apply:up,Chain:um,ChainRecBreadthFirst:{URI:ue,map:as,ap:ac,chain:ad,chainRec:aE},ChainRecDepthFirst:{URI:ue,map:as,ap:ac,chain:ad,chainRec:ak},Compactable:ux,Do:uB,Extend:{URI:ue,map:as,extend:aT},Filterable:{URI:ue,map:as,compact:aQ,separate:aW,filter:af,filterMap:ap,partition:aA,partitionMap:ah},FilterableWithIndex:{URI:ue,map:as,mapWithIndex:al,compact:aQ,separate:aW,filter:af,filterMap:ap,partition:aA,partitionMap:ah,partitionMapWithIndex:ag,partitionWithIndex:am,filterMapWithIndex:aI,filterWithIndex:a_},Foldable:{URI:ue,reduce:av,foldMap:ax,reduceRight:ab},FoldableWithIndex:{URI:ue,reduce:av,foldMap:ax,reduceRight:ab,reduceWithIndex:aC,foldMapWithIndex:aS,reduceRightWithIndex:aw},FromEither:uO,Functor:uc,FunctorWithIndex:{URI:ue,map:as,mapWithIndex:al},Monad:{URI:ue,map:as,ap:ac,of:ev,chain:ad},Pointed:uf,Traversable:ub,TraversableWithIndex:{URI:ue,map:as,mapWithIndex:al,reduce:av,foldMap:ax,reduceRight:ab,reduceWithIndex:aC,foldMapWithIndex:aS,reduceRightWithIndex:aw,traverse:aO,sequence:a3,traverseWithIndex:aR},URI:ue,Unfoldable:{URI:ue,unfold:a8},Witherable:u_,Zero:uy,_chainRecBreadthFirst:aE,_chainRecDepthFirst:ak,alt:aj,altW:aF,ap:aU,apFirst:uA,apS:uD,apSecond:uh,append:tJ,appendW:tJ,bind:uW,bindTo:uP,chain:aK,chainFirst:ug,chainRecBreadthFirst:uS,chainRecDepthFirst:uC,chainWithIndex:oO,chop:ae,chunksOf:an,compact:aQ,comprehension:function(e,t,n){void 0===n&&(n=function(){return!0});var r=function(e,i){return ex(i)?ea(re(i),aK(function(t){return r(ea(e,tJ(t)),rt(i))})):n.apply(void 0,e)?[t.apply(void 0,e)]:uj};return r(uj,e)},concat:ai,concatW:ai,cons:rh,deleteAt:oJ,difference:au,dropLeft:oW,dropLeftWhile:function(e){return function(t){var n=oP(t,e);return 0===n?t:n===t.length?uj:t.slice(n)}},dropRight:oD,duplicate:aG,elem:o4,empty:uj,every:uU,exists:uK,extend:aJ,filter:aD,filterE:uT,filterMap:aq,filterMapWithIndex:aN,filterWithIndex:aZ,findFirst:oq,findFirstMap:oQ,findIndex:oN,findLast:oV,findLastIndex:oY,findLastMap:oz,flap:ud,flatten:aL,foldLeft:o_,foldMap:a0,foldMapWithIndex:a$,foldRight:oT,fromArray:uF,fromEither:ow,fromEitherK:uR,fromOption:oS,fromOptionK:ar,fromPredicate:function(e){return function(t){return e(t)?[t]:uj}},getDifferenceMagma:ul,getEq:ui,getIntersectionSemigroup:us,getMonoid:ur,getOrd:uo,getSemigroup:un,getShow:ut,getUnionMonoid:uu,getUnionSemigroup:ua,guard:uv,head:oF,init:oK,insertAt:oH,intercalate:uL,intersection:aa,intersperse:o3,isEmpty:ox,isNonEmpty:ex,isOutOfBound:tH,last:oj,lefts:o0,lookup:oM,makeBy:ob,map:aB,mapWithIndex:aP,match:oI,matchLeft:o_,matchLeftW:o_,matchRight:oT,matchRightW:oT,matchW:oI,modifyAt:oG,of:ev,partition:aV,partitionMap:aY,partitionMapWithIndex:aH,partitionWithIndex:az,prepend:tZ,prependAll:o5,prependToAll:o5,prependW:tZ,range:t9,readonlyArray:{URI:ue,compact:aQ,separate:aW,map:as,ap:ac,of:ev,chain:ad,filter:af,filterMap:ap,partition:aA,partitionMap:ah,mapWithIndex:al,partitionMapWithIndex:ag,partitionWithIndex:am,filterMapWithIndex:aI,filterWithIndex:a_,alt:ay,zero:aM,unfold:a8,reduce:av,foldMap:ax,reduceRight:ab,traverse:aO,sequence:a3,reduceWithIndex:aC,foldMapWithIndex:aS,reduceRightWithIndex:aw,traverseWithIndex:aR,extend:aT,wither:uw,wilt:uI},reduce:aX,reduceRight:a2,reduceRightWithIndex:a6,reduceWithIndex:a1,replicate:oC,reverse:o$,rights:oX,rotate:o9,scanLeft:oR,scanRight:ok,separate:aW,sequence:a3,size:oE,snoc:rm,some:uK,sort:o1,sortBy:o8,spanLeft:function(e){return function(t){var n,r=at(oP(t,e))(t);return{init:r[0],rest:r[1]}}},splitAt:at,tail:oU,takeLeft:oL,takeLeftWhile:function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];if(!e(i))break;n.push(i)}var o=n.length;return o===t.length?t:0===o?uj:n}},takeRight:oB,toArray:uM,traverse:a5,traverseWithIndex:a9,unfold:a8,union:ao,uniq:o7,unsafeDeleteAt:uE,unsafeInsertAt:tG,unsafeUpdateAt:uk,unzip:o6,updateAt:oZ,wilt:a7,wither:a4,zero:aM,zip:function e(t,n){return void 0===n?function(n){return e(n,t)}:o2(t,n,function(e,t){return[e,t]})},zipWith:o2},Symbol.toStringTag,{value:"Module"}));var uq=function(e){return 0===e.length},uQ=function(e,t){return e<=0?[]:rM(t)(e)},uV=function(e,t){return uQ(e,function(){return t})},uz=function(e){return ed(e)?[]:[e.value]},uY=function(e){return eh(e)?[]:[e.right]},uH=function(e,t){return function(n){return rx(n)?t(n):e()}},uZ=function(e,t){return function(n){return rx(n)?t(iB(n),iP(n)):e()}},uJ=function(e,t){return function(n){return rx(n)?t(iD(n),iW(n)):e()}},uG=function(e){return function(t){for(var n=[],r=0;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},u$=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}},uX=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}},u0=function(e){return e.length},u1=function(e){return rx(e)?eA(iP(e)):ep},u2=function(e){return rx(e)?eA(iD(e)):ep},u6=function(e){return function(t){return rb(e,t)?se(t):t.slice(0,e)}},u5=function(e){return function(t){return rb(e,t)?se(t):0===e?[]:t.slice(-e)}},u3=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r},u9=function(e){return function(t){return e<=0||uq(t)?se(t):e>=t.length?[]:t.slice(e,t.length)}},u4=function(e){return function(t){return e<=0||uq(t)?se(t):e>=t.length?[]:t.slice(0,t.length-e)}};function u7(e){return oq(e)}function u8(e){return oV(e)}var se=function(e){return e.slice()},st=function(e,t){return function(n){return e<0||e>n.length?ep:eA(lW(e,t,n))}},sn=function(e,t){return si(e,function(){return t})},sr=function(e){return function(t){return rb(e,t)?ep:eA(lN(e,t))}},si=function(e,t){return function(n){return rb(e,n)?ep:eA(lD(e,t(n[e]),n))}},so=function(e){return uq(e)?[]:e.slice().reverse()},sa=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t},su=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t},ss=function(e){return function(t){return t.length<=1?se(t):t.slice().sort(e.compare)}},sl=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r},sc=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},sd=function(e){var t=rJ(e);return function(e){return rx(e)?t(e):[]}},sf=function(e){var t=rG(e);return function(e){return rx(e)?t(e):se(e)}},sp=function(e){var t=rR(e);return function(e){return rx(e)?t(e):se(e)}},sA=function(e){var t=r_(e);return function(e){return rx(e)?t(e):se(e)}},sh=function(e){var t=rT(e);return function(e){return rx(e)?t(e):se(e)}},sm=function(e){var t=rX(e);return function(e){return rx(e)?t(e):[]}},sg=function(e){return function(t){return e>=1&&rx(t)?r0(e)(t):uq(t)?[se(t),[]]:[[],se(t)]}},sy=function(e){var t=r1(e);return function(e){return rx(e)?t(e):[]}},sv=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return uz(e.apply(void 0,t))}},sx=function(e){return function(t){return uq(t)?se(e):uq(e)?se(t):t.concat(e)}};function sb(e){var t=rO(e);return function(n,r){if(void 0===r){var i=sb(e);return function(e){return i(e,n)}}return rx(n)&&rx(r)?t(r)(n):rx(n)?se(n):se(r)}}function sC(e){var t=o4(e);return function(n,r){if(void 0===r){var i=sC(e);return function(e){return i(e,n)}}return n.filter(function(e){return t(e,r)})}}function sS(e){var t=o4(e);return function(n,r){if(void 0===r){var i=sS(e);return function(e){return i(e,n)}}return n.filter(function(e){return!t(e,r)})}}var sw=function(e,t){return ea(e,sY(t))},sI=function(e,t){return ea(e,sG(t))},s_=function(e,t){return ea(e,sH(t))},sT=function(e,t){return ea(e,sZ(t))},sO=function(e,t){return ea(e,s2(t))},sR=function(e,t){return ea(e,sX(t))},sk=function(e,t){return ea(e,s6(t))},sE=function(e,t){return ea(e,s3(t))},sM=function(e,t){return ea(e,s5(t))},sF=function(e,t){return ea(e,s9(t))},sj=function(e,t){return ea(e,s7(t))},sU=function(e,t,n){return ea(e,li(t,n))},sK=function(e){var t=ln(e);return function(e,n){return ea(e,t(n))}},sL=function(e,t,n){return ea(e,la(t,n))},sB=function(e,t,n){return ea(e,lo(t,n))},sP=function(e){var t=lr(e);return function(e,n){return ea(e,t(n))}},sW=function(e,t,n){return ea(e,lu(t,n))},sD=function(e,t){return ea(e,s$(t))},sN=function(e,t){return ea(e,s8(t))},sq=function(e,t){return ea(e,le(t))},sQ=function(e){var t=ls(e);return function(e,n){return ea(e,t(n))}},sV=function(e){var t=lc(e);return function(e,n){return ea(e,t(n))}},sz=function(){return[]},sY=function(e){return function(t){return t.map(function(t){return e(t)})}},sH=function(e){return sZ(function(t){return ea(e,sY(t))})},sZ=function(e){return function(t){return ea(t,uG(function(t,n){return e(n)}))}},sJ=sZ(Z),sG=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}},s$=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);ef(i)&&n.push(i.value)}return n}},sX=function(e){return s$(function(t,n){return e(n)})},s0=sX(Z),s1=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return oe(t,n)},s2=function(e){return function(t){return t.filter(e)}},s6=function(e){return s5(function(t,n){return e(n)})},s5=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return oe(n,r)}},s3=function(e){return s9(function(t,n){return e(n)})},s9=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return oe(n,r)}},s4=function(e){return function(t){return t.concat(e())}},s7=s4,s8=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}},le=function(e){return function(t){return t.map(function(n,r){return e(t.slice(r))})}},lt=le(Z),ln=a0,lr=a$,li=aX,lo=a1,la=a2,lu=a6,ls=function(e){var t=lc(e);return function(e){return t(function(t,n){return e(n)})}},ll=function(e){return function(t){return sU(t,e.of(sz()),function(t,n){return e.ap(e.map(t,function(e){return function(t){return ea(e,rS(t))}}),n)})}},lc=function(e){return function(t){return lo(e.of(sz()),function(n,r,i){return e.ap(e.map(r,function(e){return function(t){return ea(e,rS(t))}}),t(n,i))})}},ld=function(e){var t=lj(e);return function(e){return function(n){return t(n,e)}}},lf=function(e){var t=lU(e);return function(e){return function(n){return t(n,e)}}},lp=function(e,t){for(var n=[],r=e;;){var i=t(r);if(ef(i)){var o=i.value,a=o[0],u=o[1];n.push(a),r=u}else break}return n},lA="Array",lh=function(){return{concat:function(e,t){return e.concat(t)}}},lm=function(){return{concat:lh().concat,empty:[]}},lg=function(e){var t=sb(e);return{concat:function(e,n){return t(n)(e)}}},ly=function(e){return{concat:lg(e).concat,empty:[]}},lv=function(e){var t=sC(e);return{concat:function(e,n){return t(n)(e)}}},lx=function(e){var t=sS(e);return{concat:function(e,n){return t(n)(e)}}},lb={URI:lA,map:sw},lC=eB(lb),lS={URI:lA,of:rY},lw={URI:lA,map:sw,ap:s_},lI=eO(lw),l_=eR(lw),lT={URI:lA,map:sw,ap:s_,chain:sT},lO=eV(lT),lR={URI:lA,zero:sz},lk=og(lR,lS),lE={URI:lA,compact:s0,separate:s1},lM={URI:lA,reduce:sU,foldMap:sK,reduceRight:sL},lF={URI:lA,map:sw,reduce:sU,foldMap:sK,reduceRight:sL,traverse:sQ,sequence:ll},lj=oA(lF,lE),lU=op(lF,lE),lK={URI:lA,map:sw,compact:s0,separate:s1,filter:sO,filterMap:sR,partition:sk,partitionMap:sE,reduce:sU,foldMap:sK,reduceRight:sL,traverse:sQ,sequence:ll,wither:lj,wilt:lU},lL=oh(lK),lB={URI:lA,fromEither:uY},lP=e$(lB),lW=rw,lD=function(e,t,n){return rx(n)?rI(e,t,n):[]},lN=function(e,t){var n=t.slice();return n.splice(e,1),n},lq=function(e){return function(t){return t.some(e)}},lQ=rY(ew),lV=eP(lb),lz=ez(lT),lY=ek(lw);let lH=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:lA,map:sw,alt:sj},Alternative:{URI:lA,map:sw,ap:s_,of:rY,alt:sj,zero:sz},Applicative:{URI:lA,map:sw,ap:s_,of:rY},Apply:lw,Chain:lT,ChainRecBreadthFirst:{URI:lA,map:sw,ap:s_,chain:sT,chainRec:aE},ChainRecDepthFirst:{URI:lA,map:sw,ap:s_,chain:sT,chainRec:ak},Compactable:lE,Do:lQ,Extend:{URI:lA,map:sw,extend:sq},Filterable:{URI:lA,map:sw,compact:s0,separate:s1,filter:sO,filterMap:sR,partition:sk,partitionMap:sE},FilterableWithIndex:{URI:lA,map:sw,mapWithIndex:sI,compact:s0,separate:s1,filter:sO,filterMap:sR,partition:sk,partitionMap:sE,partitionMapWithIndex:sF,partitionWithIndex:sM,filterMapWithIndex:sD,filterWithIndex:sN},Foldable:lM,FoldableWithIndex:{URI:lA,reduce:sU,foldMap:sK,reduceRight:sL,reduceWithIndex:sB,foldMapWithIndex:sP,reduceRightWithIndex:sW},FromEither:lB,Functor:lb,FunctorWithIndex:{URI:lA,map:sw,mapWithIndex:sI},Monad:{URI:lA,map:sw,ap:s_,of:rY,chain:sT},Pointed:lS,Traversable:lF,TraversableWithIndex:{URI:lA,map:sw,mapWithIndex:sI,reduce:sU,foldMap:sK,reduceRight:sL,reduceWithIndex:sB,foldMapWithIndex:sP,reduceRightWithIndex:sW,traverse:sQ,sequence:ll,traverseWithIndex:sV},URI:lA,Unfoldable:{URI:lA,unfold:lp},Witherable:lK,Zero:lR,alt:s7,altW:s4,ap:sH,apFirst:lI,apS:lY,apSecond:l_,append:rS,appendW:rS,array:{URI:lA,compact:s0,separate:s1,map:sw,ap:s_,of:rY,chain:sT,filter:sO,filterMap:sR,partition:sk,partitionMap:sE,mapWithIndex:sI,partitionMapWithIndex:sF,partitionWithIndex:sM,filterMapWithIndex:sD,filterWithIndex:sN,alt:sj,zero:sz,unfold:lp,reduce:sU,foldMap:sK,reduceRight:sL,traverse:sQ,sequence:ll,reduceWithIndex:sB,foldMapWithIndex:sP,reduceRightWithIndex:sW,traverseWithIndex:sV,extend:sq,wither:lj,wilt:lU},bind:lz,bindTo:lV,chain:sZ,chainFirst:lO,chainRecBreadthFirst:uS,chainRecDepthFirst:uC,chainWithIndex:uG,chop:sm,chunksOf:sy,compact:s0,comprehension:function(e,t,n){void 0===n&&(n=function(){return!0});var r=function(e,i){return rx(i)?ea(iB(i),sZ(function(t){return r(ea(e,rS(t)),iP(i))})):n.apply(void 0,e)?[t.apply(void 0,e)]:[]};return r([],e)},concat:sx,concatW:sx,cons:iJ,copy:se,deleteAt:sr,difference:sS,dropLeft:u9,dropLeftWhile:function(e){return function(t){return t.slice(u3(t,e))}},dropRight:u4,duplicate:lt,elem:o4,empty:[],every:uU,exists:lq,extend:le,filter:s2,filterE:lL,filterMap:sX,filterMapWithIndex:s$,filterWithIndex:s8,findFirst:u7,findFirstMap:oQ,findIndex:oN,findLast:u8,findLastIndex:oY,findLastMap:oz,flap:lC,flatten:sJ,foldLeft:uZ,foldMap:ln,foldMapWithIndex:lr,foldRight:uJ,fromEither:uY,fromEitherK:lP,fromOption:uz,fromOptionK:sv,fromPredicate:function(e){return function(t){return e(t)?[t]:[]}},getDifferenceMagma:lx,getEq:ui,getIntersectionSemigroup:lv,getMonoid:lm,getOrd:uo,getSemigroup:lh,getShow:ut,getUnionMonoid:ly,getUnionSemigroup:lg,guard:lk,head:oF,init:u2,insertAt:st,intercalate:uL,intersection:sC,intersperse:sf,isEmpty:uq,isNonEmpty:rx,isOutOfBound:rb,last:oj,lefts:su,lookup:oM,makeBy:uQ,map:sY,mapWithIndex:sG,match:uH,matchLeft:uZ,matchLeftW:uZ,matchRight:uJ,matchRightW:uJ,matchW:uH,modifyAt:si,of:rY,partition:s6,partitionMap:s3,partitionMapWithIndex:s9,partitionWithIndex:s5,prepend:rC,prependAll:sd,prependToAll:sd,prependW:rC,range:rj,reduce:li,reduceRight:la,reduceRightWithIndex:lu,reduceWithIndex:lo,replicate:uV,reverse:so,rights:sa,rotate:sp,scanLeft:u$,scanRight:uX,separate:s1,sequence:ll,size:u0,snoc:iG,some:lq,sort:ss,sortBy:sh,spanLeft:function(e){return function(t){var n,r=sg(u3(t,e))(t);return{init:r[0],rest:r[1]}}},splitAt:sg,tail:u1,takeLeft:u6,takeLeftWhile:function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];if(!e(i))break;n.push(i)}return n}},takeRight:u5,traverse:ls,traverseWithIndex:lc,unfold:lp,union:sb,uniq:sA,unsafeDeleteAt:lN,unsafeInsertAt:lW,unsafeUpdateAt:lD,unzip:sc,updateAt:sn,wilt:lf,wither:ld,zero:sz,zip:function e(t,n){return void 0===n?function(n){return e(n,t)}:sl(t,n,function(e,t){return[e,t]})},zipWith:sl},Symbol.toStringTag,{value:"Module"})),lZ=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var lJ=function(e){return"boolean"==typeof e},lG=function(e,t){return function(n){return n?t():e()}},l$={equals:function(e,t){return e===t}},lX={concat:function(e,t){return e&&t}},l0={concat:function(e,t){return e||t}},l1={concat:lX.concat,empty:!0},l2={concat:l0.concat,empty:!1},l6={equals:l$.equals,compare:function(e,t){return e<t?-1:e>t?1:0}};let l5=Object.freeze(Object.defineProperty({__proto__:null,BooleanAlgebra:{meet:function(e,t){return e&&t},join:function(e,t){return e||t},zero:!1,one:!0,implies:function(e,t){return!e||t},not:function(e){return!e}},Eq:l$,MonoidAll:l1,MonoidAny:l2,Ord:l6,SemigroupAll:lX,SemigroupAny:l0,Show:{show:function(e){return JSON.stringify(e)}},fold:lG,foldW:lG,isBoolean:lJ,match:lG,matchW:lG},Symbol.toStringTag,{value:"Module"}));var l3=function(e){return{meet:function(t,n){return e.join(t,n)},join:function(t,n){return e.meet(t,n)},zero:e.one,one:e.zero,implies:function(t,n){return e.join(e.not(t),n)},not:e.not}};let l9=Object.freeze(Object.defineProperty({__proto__:null,booleanAlgebraBoolean:{meet:function(e,t){return e&&t},join:function(e,t){return e||t},zero:!1,one:!0,implies:function(e,t){return!e||t},not:function(e){return!e}},booleanAlgebraVoid:{meet:function(){},join:function(){},zero:void 0,one:void 0,implies:function(){},not:function(){}},getDualBooleanAlgebra:l3,getFunctionBooleanAlgebra:q,reverse:l3},Symbol.toStringTag,{value:"Module"}));var l4=function(e){return tx(e)(e.bottom,e.top)},l7=function(e){var t=tu(e);return{equals:t.equals,compare:t.compare,top:e.bottom,bottom:e.top}},l8={equals:tC.equals,compare:tC.compare,top:1/0,bottom:-1/0};let ce=Object.freeze(Object.defineProperty({__proto__:null,boundedNumber:l8,clamp:l4,reverse:l7},Symbol.toStringTag,{value:"Module"}));function ct(e){return{meet:ty(e),join:tv(e)}}let cn=Object.freeze(Object.defineProperty({__proto__:null,getMinMaxDistributiveLattice:ct},Symbol.toStringTag,{value:"Module"})),cr=Object.freeze(Object.defineProperty({__proto__:null,getMinMaxBoundedDistributiveLattice:function(e){var t=ct(e);return function(e,n){return{join:t.join,meet:t.meet,zero:e,one:n}}}},Symbol.toStringTag,{value:"Module"})),ci=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),co=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ca=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),cu=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var cs=function(e,t){for(var n=t(e);"Left"===n._tag;)n=t(n.left);return n.right};let cl=Object.freeze(Object.defineProperty({__proto__:null,tailRec:cs},Symbol.toStringTag,{value:"Module"}));function cc(e,t){return function(n,r){return t.compose(e.right(r),e.left(n))}}function cd(e,t){var n=cc(e,t);return function(r,i){return t.compose(e.promap(t.id(),function(e){return"Left"===e._tag?e.left:e.right},Z),n(r,i))}}let cf=Object.freeze(Object.defineProperty({__proto__:null,fanIn:cd,fanin:function(e){return cd(e,e)},split:cc,splitChoice:function(e){return cc(e,e)}},Symbol.toStringTag,{value:"Module"})),cp=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var cA=function(e,t){return ea(e,ch(t))},ch=function(e){return function(t){return et(e,t)}},cm="Predicate",cg=function(){return{concat:function(e,t){return ea(e,cC(t))}}},cy=function(){return{concat:cg().concat,empty:$}},cv=function(){return{concat:function(e,t){return ea(e,cS(t))}}},cx=function(){return{concat:cv().concat,empty:G}},cb=function(e){return function(t){return!e(t)}},cC=function(e){return function(t){return function(n){return t(n)||e(n)}}},cS=function(e){return function(t){return function(n){return t(n)&&e(n)}}};let cw=Object.freeze(Object.defineProperty({__proto__:null,Contravariant:{URI:cm,contramap:cA},URI:cm,and:cS,contramap:ch,getMonoidAll:cx,getMonoidAny:cy,getSemigroupAll:cv,getSemigroupAny:cg,not:cb,or:cC},Symbol.toStringTag,{value:"Module"}));function cI(e){return function(t){return e(t)?eA(t):ep}}var c_=function(e){return"Right"===e._tag?ep:eA(e.left)},cT=function(e){return"Left"===e._tag?ep:eA(e.right)},cO=function(e,t){return ea(e,cz(t))},cR=function(e,t){return ea(e,cZ(t))},ck=function(e,t){return ea(e,c$(t))},cE=function(e,t,n){return ea(e,c0(t,n))},cM=function(e){var t=c1(e);return function(e,n){return ea(e,t(n))}},cF=function(e,t,n){return ea(e,c2(t,n))},cj=function(e){var t=dl(e);return function(e,n){return ea(e,t(n))}},cU=function(e,t){return ea(e,c5(t))},cK=function(e,t){return ea(e,dr(t))},cL=function(e,t){return ea(e,di(t))},cB=function(e,t){return ea(e,c7(t))},cP=function(e,t){return ea(e,da(t))},cW=function(e,t){return ea(e,du(t))},cD="Option",cN=function(e){return{show:function(t){return dv(t)?"none":"some(".concat(e.show(t.value),")")}}},cq=function(e){return{equals:function(t,n){return t===n||(dv(t)?dv(n):!dv(n)&&e.equals(t.value,n.value))}}},cQ=function(e){return{equals:cq(e).equals,compare:function(t,n){return t===n?0:dy(t)?dy(n)?e.compare(t.value,n.value):1:-1}}},cV=function(e){return{concat:function(t,n){return dv(t)?n:dv(n)?t:eA(e.concat(t.value,n.value))},empty:ep}},cz=function(e){return function(t){return dv(t)?ep:eA(e(t.value))}},cY={URI:cD,map:cO},cH={URI:cD,of:eA},cZ=function(e){return function(t){return dv(t)||dv(e)?ep:eA(t.value(e.value))}},cJ={URI:cD,map:cO,ap:cR},cG={URI:cD,map:cO,ap:cR,of:eA},c$=function(e){return function(t){return dv(t)?ep:e(t.value)}},cX={URI:cD,map:cO,ap:cR,chain:ck},c0=function(e,t){return function(n){return dv(n)?e:t(e,n.value)}},c1=function(e){return function(t){return function(n){return dv(n)?e.empty:t(n.value)}}},c2=function(e,t){return function(n){return dv(n)?e:t(n.value,e)}},c6=function(e){return function(t){return dv(t)?e():t}},c5=c6,c3=function(){return ep},c9={URI:cD,zero:c3},c4=og(c9,cH),c7=function(e){return function(t){return dv(t)?ep:eA(e(t))}},c8=c$(Z),de=oe(ep,ep),dt=function(e){return dv(e)?de:oe(c_(e.value),cT(e.value))},dn={URI:cD,compact:c8,separate:dt},dr=function(e){return function(t){return dv(t)?ep:e(t.value)?t:ep}},di=function(e){return function(t){return dv(t)?ep:e(t.value)}},da=function(e){return function(t){return oe(cK(t,cb(e)),cK(t,e))}},du=function(e){return et(cz(e),dt)},ds={URI:cD,map:cO,compact:c8,separate:dt,filter:cK,filterMap:cL,partition:cP,partitionMap:cW},dl=function(e){return function(t){return function(n){return dv(n)?e.of(ep):e.map(t(n.value),eA)}}},dc=function(e){return function(t){return dv(t)?e.of(ep):e.map(t.value,eA)}},dd={URI:cD,map:cO,reduce:cE,foldMap:cM,reduceRight:cF,traverse:cj,sequence:dc},df=oA(dd,dn),dp=op(dd,dn),dA=function(e){var t=df(e);return function(e){return function(n){return t(n,e)}}},dh=function(e){var t=dp(e);return function(e){return function(n){return t(n,e)}}},dm=function(){return ep},dg={URI:cD,fromEither:cT},dy=ef,dv=function(e){return"None"===e._tag},dx=function(e,t){return function(n){return dv(n)?e():t(n.value)}},db=function(e){return function(t){return dv(t)?e():t.value}},dC=eB(cY),dS=eO(cJ),dw=eR(cJ),dI=eV(cX),d_=c7(Z),dT=e$(dg),dO=eX(dg,cX),dR=e0(dg,cX),dk=function(e){return null==e?ep:eA(e)},dE=function(e){try{return eA(e())}catch{return ep}},dM=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return dE(function(){return e.apply(void 0,t)})}},dF=function(e){return et(e,dk)},dj=function(e){return function(t){return dv(t)?ep:dk(e(t.value))}},dU=dx(X,Z),dK=dx(ee,Z),dL=function(e){return function(t){return!dv(t)&&e(t.value)}},dB=eA(ew),dP=eP(cY),dW=ez(cX),dD=ek(cJ),dN=eA(eS),dq=function(e){return function(t){var n=e(0,eb(t));if(dv(n))return ep;for(var r=[n.value],i=1;i<t.length;i++){var o=e(i,t[i]);if(dv(o))return ep;r.push(o.value)}return eA(r)}},dQ=function(e){var t=dq(e);return function(e){return ex(e)?t(e):dN}},dV=function(e){return dQ(function(t,n){return e(n)})},dz=dV(Z),dY={URI:cD,map:cO,of:eA,ap:cR,chain:ck,reduce:cE,foldMap:cM,reduceRight:cF,traverse:cj,sequence:dc,zero:c3,alt:cU,extend:cB,compact:c8,separate:dt,filter:cK,filterMap:cL,partition:cP,partitionMap:cW,wither:df,wilt:dp,throwError:dm},dH=eE(cJ),dZ=eN(cG),dJ=function(){return cV(tL())},dG=function(){return cV(tB())};let d$=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:cD,map:cO,alt:cU},Alternative:{URI:cD,map:cO,ap:cR,of:eA,alt:cU,zero:c3},ApT:dN,Applicative:cG,Apply:cJ,Chain:cX,Compactable:dn,Do:dB,Extend:{URI:cD,map:cO,extend:cB},Filterable:ds,Foldable:{URI:cD,reduce:cE,foldMap:cM,reduceRight:cF},FromEither:dg,Functor:cY,Monad:{URI:cD,map:cO,ap:cR,of:eA,chain:ck},MonadThrow:{URI:cD,map:cO,ap:cR,of:eA,chain:ck,throwError:dm},Pointed:cH,Traversable:dd,URI:cD,Witherable:{URI:cD,map:cO,reduce:cE,foldMap:cM,reduceRight:cF,traverse:cj,sequence:dc,compact:c8,separate:dt,filter:cK,filterMap:cL,partition:cP,partitionMap:cW,wither:df,wilt:dp},Zero:c9,alt:c5,altW:c6,ap:cZ,apFirst:dS,apS:dD,apSecond:dw,bind:dW,bindTo:dP,chain:c$,chainEitherK:dO,chainFirst:dI,chainFirstEitherK:dR,chainNullableK:dj,compact:c8,duplicate:d_,elem:function e(t){return function(n,r){if(void 0===r){var i=e(t);return function(e){return i(n,e)}}return!dv(r)&&t.equals(n,r.value)}},exists:dL,extend:c7,filter:dr,filterMap:di,flap:dC,flatten:c8,fold:dx,foldMap:c1,foldW:dx,fromEither:cT,fromEitherK:dT,fromNullable:dk,fromNullableK:dF,fromPredicate:cI,getApplyMonoid:dZ,getApplySemigroup:dH,getEq:cq,getFirstMonoid:dJ,getLastMonoid:dG,getLeft:c_,getMonoid:cV,getOrElse:db,getOrElseW:db,getOrd:cQ,getRefinement:function(e){return function(t){return dy(e(t))}},getRight:cT,getShow:cN,guard:c4,isNone:dv,isSome:dy,map:cz,mapNullable:dj,match:dx,matchW:dx,none:ep,of:eA,option:dY,partition:da,partitionMap:du,reduce:c0,reduceRight:c2,separate:dt,sequence:dc,sequenceArray:dz,some:eA,throwError:dm,toNullable:dU,toUndefined:dK,traverse:dl,traverseArray:dV,traverseArrayWithIndex:dQ,traverseReadonlyArrayWithIndex:dQ,traverseReadonlyNonEmptyArrayWithIndex:dq,tryCatch:dE,tryCatchK:dM,wilt:dh,wither:dA,zero:c3},Symbol.toStringTag,{value:"Module"}));function dX(e,t){return function(n){return e.map(n,t.compact)}}function d0(e,t,n){var r=dX(e,t),i=eL(e,n);return function(e){return oe(r(ea(e,i(c_))),r(ea(e,i(cT))))}}let d1=Object.freeze(Object.defineProperty({__proto__:null,compact:dX,getCompactableComposition:function(e,t){return{map:eW(e,t).map,compact:dX(e,t),separate:d0(e,t,t)}},separate:d0},Symbol.toStringTag,{value:"Module"}));var d2=function(e){return function(){return console.log(e)}},d6=function(e){return function(){return console.warn(e)}},d5=function(e){return function(){return console.error(e)}},d3=function(e){return function(){return console.info(e)}};let d9=Object.freeze(Object.defineProperty({__proto__:null,error:d5,info:d3,log:d2,warn:d6},Symbol.toStringTag,{value:"Module"}));function d4(e){return{URI:fu,_E:void 0,map:fe,ap:function(t,n){return Z(e.concat(t,n))}}}function d7(e){var t=d4(e);return{URI:fu,_E:void 0,map:t.map,ap:t.ap,of:function(){return Z(e.empty)}}}var d8=function(e,t){return ea(e,fr())},fe=function(e,t){return ea(e,fi())},ft=function(e,t,n){return ea(e,fo(t))},fn=function(e,t){return ea(e,fa(t))},fr=function(){return Z},fi=function(){return Z},fo=function(e){return function(t){return Z(e(t))}},fa=function(e){return function(t){return Z(e(t))}},fu="Const",fs={URI:fu,map:fe},fl=eB(fs);let fc=Object.freeze(Object.defineProperty({__proto__:null,Bifunctor:{URI:fu,bimap:ft,mapLeft:fn},Contravariant:{URI:fu,contramap:d8},Functor:fs,URI:fu,bimap:fo,const_:{URI:fu,map:fe,contramap:d8,bimap:ft,mapLeft:fn},contramap:fr,flap:fl,getApplicative:d7,getApply:d4,getBooleanAlgebra:Z,getBounded:Z,getEq:Z,getHeytingAlgebra:Z,getMonoid:Z,getOrd:Z,getRing:Z,getSemigroup:Z,getSemiring:Z,getShow:function(e){return{show:function(t){return"make(".concat(e.show(t),")")}}},make:Z,map:fi,mapLeft:fa},Symbol.toStringTag,{value:"Module"})),fd=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var ff=ea(i1,ts(function(e){return e.valueOf()})),fp=function(){return new Date},fA=function(){return new Date().getTime()};let fh=Object.freeze(Object.defineProperty({__proto__:null,Eq:{equals:function(e,t){return e.valueOf()===t.valueOf()}},Ord:ff,create:fp,eqDate:{equals:function(e,t){return e.getDate()===t.getDate()}},eqMonth:{equals:function(e,t){return e.getMonth()===t.getMonth()}},eqYear:{equals:function(e,t){return e.getFullYear()===t.getFullYear()}},now:fA},Symbol.toStringTag,{value:"Module"}));var fm=function(e,t){return ea(e,fL(t))},fg=function(e,t){return ea(e,fD(t))},fy=function(e,t){return ea(e,fV(t))},fv=function(e,t,n){return ea(e,fY(t,n))},fx=function(e){return function(t,n){var r=fH(e);return ea(t,r(n))}},fb=function(e,t,n){return ea(e,fZ(t,n))},fC=function(e){var t=fJ(e);return function(e,n){return ea(e,t(n))}},fS=function(e,t,n){return ea(e,fX(t,n))},fw=function(e,t){return ea(e,f0(t))},fI=function(e,t){return ea(e,f2(t))},f_=function(e,t){return ea(e,f6(t))},fT=function(e,t){return cs(t(e),function(e){return f4(e)?ey(eg(e.left)):f4(e.right)?eg(t(e.right.left)):ey(ey(e.right.right))})},fO="Either",fR=function(e,t){return{show:function(n){return f4(n)?"left(".concat(e.show(n.left),")"):"right(".concat(t.show(n.right),")")}}},fk=function(e,t){return{equals:function(n,r){return n===r||(f4(n)?f4(r)&&e.equals(n.left,r.left):f7(r)&&t.equals(n.right,r.right))}}},fE=function(e){return{concat:function(t,n){return f4(n)?t:f4(t)?n:ey(e.concat(t.right,n.right))}}},fM=function(e){var t=eg(e.empty);return{URI:fO,_E:void 0,compact:function(e){return f4(e)?e:"None"===e.right._tag?t:ey(e.right.value)},separate:function(e){return f4(e)?oe(e,e):f4(e.right)?oe(ey(e.right.left),t):oe(t,ey(e.right.right))}}},fF=function(e){var t,n=eg(e.empty),r=fM(e),i=r.compact;return{URI:fO,_E:void 0,map:fm,compact:i,separate:r.separate,filter:function(e,t){return f4(e)||t(e.right)?e:n},filterMap:function(e,t){if(f4(e))return e;var r=t(e.right);return"None"===r._tag?n:ey(r.value)},partition:function(e,t){return f4(e)?oe(e,e):t(e.right)?oe(n,ey(e.right)):oe(ey(e.right),n)},partitionMap:function(e,t){if(f4(e))return oe(e,e);var r=t(e.right);return f4(r)?oe(ey(r.left),n):oe(n,ey(r.right))}}},fj=function(e){var t=fF(e),n=fM(e);return{URI:fO,_E:void 0,map:fm,compact:t.compact,separate:t.separate,filter:t.filter,filterMap:t.filterMap,partition:t.partition,partitionMap:t.partitionMap,traverse:fC,sequence:fG,reduce:fv,foldMap:fx,reduceRight:fb,wither:oA(f$,n),wilt:op(f$,n)}},fU=function(e){return{URI:fO,_E:void 0,map:fm,ap:function(t,n){return f4(t)?f4(n)?eg(e.concat(t.left,n.left)):t:f4(n)?n:ey(t.right(n.right))},of:fP}},fK=function(e){return{URI:fO,_E:void 0,map:fm,alt:function(t,n){if(f7(t))return t;var r=n();return f4(r)?eg(e.concat(t.left,r.left)):r}}},fL=function(e){return function(t){return f4(t)?t:ey(e(t.right))}},fB={URI:fO,map:fm},fP=ey,fW=function(e){return function(t){return f4(t)?t:f4(e)?e:ey(t.right(e.right))}},fD=fW,fN={URI:fO,map:fm,ap:fg},fq={URI:fO,map:fm,ap:fg,of:fP},fQ=function(e){return function(t){return f4(t)?t:e(t.right)}},fV=fQ,fz={URI:fO,map:fm,ap:fg,chain:fy},fY=function(e,t){return function(n){return f4(n)?e:t(e,n.right)}},fH=function(e){return function(t){return function(n){return f4(n)?e.empty:t(n.right)}}},fZ=function(e,t){return function(n){return f4(n)?e:t(n.right,e)}},fJ=function(e){return function(t){return function(n){return f4(n)?e.of(eg(n.left)):e.map(t(n.right),ey)}}},fG=function(e){return function(t){return f4(t)?e.of(eg(t.left)):e.map(t.right,ey)}},f$={URI:fO,map:fm,reduce:fv,foldMap:fx,reduceRight:fb,traverse:fC,sequence:fG},fX=function(e,t){return function(n){return f4(n)?eg(e(n.left)):ey(t(n.right))}},f0=function(e){return function(t){return f4(t)?eg(e(t.left)):t}},f1=function(e){return function(t){return f4(t)?e():t}},f2=f1,f6=function(e){return function(t){return f4(t)?t:ey(e(t))}},f5={URI:fO,fromEither:Z},f3=eZ(f5),f9=eH(f5),f4=eh,f7=em,f8=function(e,t){return function(n){return f4(n)?e(n.left):t(n.right)}},pe=function(e){return function(t){return f4(t)?e(t.left):t.right}},pt=eB(fB),pn=eO(fN),pr=eR(fN),pi=eV(fz),po=fQ(Z),pa=f6(Z),pu=eJ(f5),ps=eG(f5,fz),pl=e1(f5,fz),pc=function(e){return f4(e)?ey(e.left):eg(e.right)},pd=function(e){return function(t){return f4(t)?e(t.left):t}},pf=function(e){return function(t){return null==t?eg(e):ey(t)}},pp=function(e,t){try{return ey(e())}catch(n){return eg(t(n))}},pA=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return pp(function(){return e.apply(void 0,n)},t)}},ph=function(e){var t=pf(e);return function(e){return et(e,t)}},pm=function(e){var t=ph(e);return function(e){return fV(t(e))}},pg=f8(Z,Z),py=function(e){return function(t){return!f4(t)&&e(t.right)}},pv=fP(ew),px=eP(fB),pb=ez(fz),pC=ek(fN),pS=fP(eS),pw=function(e){return function(t){var n=e(0,eb(t));if(f4(n))return n;for(var r=[n.right],i=1;i<t.length;i++){var o=e(i,t[i]);if(f4(o))return o;r.push(o.right)}return ey(r)}},pI=function(e){var t=pw(e);return function(e){return ex(e)?t(e):pS}},p_=function(e){return pI(function(t,n){return e(n)})},pT=p_(Z),pO=function(e,t){return pp(function(){var t=JSON.stringify(e);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},t)},pR=eE(fN),pk=eN(fq),pE=function(e,t){return eE(fU(e))(t)},pM=function(e,t){return eN(fU(e))(t)};let pF=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:fO,map:fm,alt:fI},ApT:pS,Applicative:fq,Apply:fN,Bifunctor:{URI:fO,bimap:fS,mapLeft:fw},Chain:fz,ChainRec:{URI:fO,map:fm,ap:fg,chain:fy,chainRec:fT},Do:pv,Extend:{URI:fO,map:fm,extend:f_},Foldable:{URI:fO,reduce:fv,foldMap:fx,reduceRight:fb},FromEither:f5,Functor:fB,Monad:{URI:fO,map:fm,ap:fg,of:fP,chain:fy},MonadThrow:{URI:fO,map:fm,ap:fg,of:fP,chain:fy,throwError:eg},Pointed:{URI:fO,of:fP},Traversable:f$,URI:fO,alt:f2,altW:f1,ap:fD,apFirst:pn,apFirstW:pn,apS:pC,apSW:pC,apSecond:pr,apSecondW:pr,apW:fW,bimap:fX,bind:pb,bindTo:px,bindW:pb,chain:fV,chainFirst:pi,chainFirstW:pi,chainNullableK:pm,chainOptionK:ps,chainW:fQ,duplicate:pa,either:{URI:fO,map:fm,of:fP,ap:fg,chain:fy,reduce:fv,foldMap:fx,reduceRight:fb,traverse:fC,sequence:fG,bimap:fS,mapLeft:fw,alt:fI,extend:f_,chainRec:fT,throwError:eg},elem:function e(t){return function(n,r){if(void 0===r){var i=e(t);return function(e){return i(n,e)}}return!f4(r)&&t.equals(n,r.right)}},exists:py,extend:f6,filterOrElse:pl,filterOrElseW:pl,flap:pt,flatten:po,flattenW:po,fold:f8,foldMap:fH,foldW:f8,fromNullable:pf,fromNullableK:ph,fromOption:f9,fromOptionK:pu,fromPredicate:f3,getAltValidation:fK,getApplicativeValidation:fU,getApplyMonoid:pk,getApplySemigroup:pR,getCompactable:fM,getEq:fk,getFilterable:fF,getOrElse:pe,getOrElseW:pe,getSemigroup:fE,getShow:fR,getValidation:function(e){var t=fU(e).ap,n=fK(e).alt;return{URI:fO,_E:void 0,map:fm,of:fP,chain:fy,bimap:fS,mapLeft:fw,reduce:fv,foldMap:fx,reduceRight:fb,extend:f_,traverse:fC,sequence:fG,chainRec:fT,throwError:eg,ap:t,alt:n}},getValidationMonoid:pM,getValidationSemigroup:pE,getWitherable:fj,isLeft:f4,isRight:f7,left:eg,map:fL,mapLeft:f0,match:f8,matchW:f8,of:fP,orElse:pd,orElseW:pd,parseJSON:function(e,t){return pp(function(){return JSON.parse(e)},t)},reduce:fY,reduceRight:fZ,right:ey,sequence:fG,sequenceArray:pT,stringifyJSON:pO,swap:pc,throwError:eg,toError:function(e){return e instanceof Error?e:Error(String(e))},toUnion:pg,traverse:fJ,traverseArray:p_,traverseArrayWithIndex:pI,traverseReadonlyArrayWithIndex:pI,traverseReadonlyNonEmptyArrayWithIndex:pw,tryCatch:pp,tryCatchK:pA},Symbol.toStringTag,{value:"Module"}));function pj(e){return et(ey,e.of)}function pU(e){return et(eg,e.of)}function pK(e){return function(t){return e.map(t,ey)}}function pL(e){return function(t){return e.map(t,eg)}}function pB(e){return function(t){return et(pf(t),e.of)}}function pP(e){var t=pB(e);return function(e){var n=t(e);return function(e){return et(e,n)}}}function pW(e){var t=pq(e),n=pP(e);return function(e){var r=n(e);return function(e){return t(r(e))}}}function pD(e){return eL(e,fB)}function pN(e){return eT(e,fN)}function pq(e){return function(t){return function(n){return e.chain(n,function(n){return f4(n)?e.of(n):t(n.right)})}}}function pQ(e){return function(t){return function(n){return e.chain(n,function(n){return f4(n)?t():e.of(n)})}}}function pV(e){return function(t,n){return function(r){return e.map(r,fX(t,n))}}}function pz(e){return function(t){return function(n){return e.map(n,f0(t))}}}function pY(e,t){return function(n){return function(r){return e.chain(r,f8(function(r){return e.map(n(),f0(function(e){return t.concat(r,e)}))},pj(e)))}}}function pH(e){return function(t,n){return function(r){return e.map(r,f8(t,n))}}}function pZ(e){return function(t,n){return function(r){return e.chain(r,f8(t,n))}}}function pJ(e){return function(t){return function(n){return e.chain(n,f8(t,e.of))}}}function pG(e){return function(t){return function(n){return e.chain(n,function(n){return f4(n)?t(n.left):e.of(n)})}}}function p$(e){var t=pG(e);return function(n){return t(function(t){return e.map(n(t),function(e){return f4(e)?e:eg(t)})})}}function pX(e){return function(t){return function(n){return e.chain(n,f8(function(n){return e.map(t(n),eg)},function(t){return e.of(ey(t))}))}}}function p0(e){return function(t){return e.map(t,pc)}}function p1(e){return function(t){return e.map(t,pg)}}let p2=Object.freeze(Object.defineProperty({__proto__:null,alt:pQ,altValidation:pY,ap:pN,bimap:pV,chain:pq,chainNullableK:pW,fromNullable:pB,fromNullableK:pP,getEitherM:function(e){var t=pN(e),n=pD(e),r=pq(e),i=pQ(e),o=pV(e),a=pz(e),u=pZ(e),s=pJ(e),l=pG(e);return{map:function(e,t){return ea(e,n(t))},ap:function(e,n){return ea(e,t(n))},of:pj(e),chain:function(e,t){return ea(e,r(t))},alt:function(e,t){return ea(e,i(t))},bimap:function(e,t,n){return ea(e,o(t,n))},mapLeft:function(e,t){return ea(e,a(t))},fold:function(e,t,n){return ea(e,u(t,n))},getOrElse:function(e,t){return ea(e,s(t))},orElse:function(e,t){return ea(e,l(t))},swap:p0(e),rightM:pK(e),leftM:pL(e),left:pU(e)}},getOrElse:pJ,left:pU,leftF:pL,map:pD,mapLeft:pz,match:pH,matchE:pZ,orElse:pG,orElseFirst:p$,orLeft:pX,right:pj,rightF:pK,swap:p0,toUnion:p1},Symbol.toStringTag,{value:"Module"}));var p6=function(){return{concat:function(e,t){return et(e,t)}}},p5=function(){return{concat:p6().concat,empty:Z}};let p3=Object.freeze(Object.defineProperty({__proto__:null,URI:"Endomorphism",getMonoid:p5,getSemigroup:p6},Symbol.toStringTag,{value:"Module"})),p9=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function p4(e,t){var n=t.zero,r=function(i,o){return e.equals(o,n)?i:r(o,t.mod(i,o))};return r}let p7=Object.freeze(Object.defineProperty({__proto__:null,fieldNumber:{add:function(e,t){return e+t},zero:0,mul:function(e,t){return e*t},one:1,sub:function(e,t){return e-t},degree:function(e){return 1},div:function(e,t){return e/t},mod:function(e,t){return e%t}},gcd:p4,lcm:function(e,t){var n=t.zero,r=p4(e,t);return function(i,o){return e.equals(i,n)||e.equals(o,n)?n:t.div(t.mul(i,o),r(i,o))}}},Symbol.toStringTag,{value:"Module"}));function p8(e,t){return function(n){return function(r){return e.map(r,function(e){return t.filter(e,n)})}}}function Ae(e,t){return function(n){return function(r){return e.map(r,function(e){return t.filterMap(e,n)})}}}function At(e,t){var n=p8(e,t);return function(e){var t=n(cb(e)),r=n(e);return function(e){return oe(t(e),r(e))}}}function An(e,t){var n=Ae(e,t);return function(e){return function(t){return oe(ea(t,n(function(t){return c_(e(t))})),ea(t,n(function(t){return cT(e(t))})))}}}let Ar=Object.freeze(Object.defineProperty({__proto__:null,filter:p8,filterMap:Ae,getFilterableComposition:function(e,t){var n=eW(e,t).map,r=dX(e,t),i=d0(e,t,t),o=p8(e,t),a=Ae(e,t),u=At(e,t),s=An(e,t);return{map:n,compact:r,separate:i,filter:function(e,t){return ea(e,o(t))},filterMap:function(e,t){return ea(e,a(t))},partition:function(e,t){return ea(e,u(t))},partitionMap:function(e,t){return ea(e,s(t))}}},partition:At,partitionMap:An},Symbol.toStringTag,{value:"Module"})),Ai=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function Ao(e,t){return function(n,r){return function(i){return e.reduce(i,n,function(e,n){return t.reduce(n,e,r)})}}}function Aa(e,t){return function(n){var r=e.foldMap(n),i=t.foldMap(n);return function(e){return function(t){return r(t,function(t){return i(t,e)})}}}}function Au(e,t){return function(n,r){return function(i){return e.reduceRight(i,n,function(e,n){return t.reduceRight(e,n,r)})}}}function As(e){return function(t){return e.reduce(t,[],function(e,t){return e.push(t),e})}}function Al(e,t){var n=Ao(e,t),r=Aa(e,t),i=Au(e,t);return{reduce:function(e,t,r){return ea(e,n(t,r))},foldMap:function(e){var t=r(e);return function(e,n){return ea(e,t(n))}},reduceRight:function(e,t,n){return ea(e,i(t,n))}}}let Ac=Object.freeze(Object.defineProperty({__proto__:null,foldM:function(e,t){return function(n,r,i){return t.reduce(n,e.of(r),function(t,n){return e.chain(t,function(e){return i(e,n)})})}},foldMap:Aa,getFoldableComposition:Al,intercalate:function(e,t){return function(n,r){var i=function(t,r){var i=t.init,o=t.acc;return i?{init:!1,acc:r}:{init:!1,acc:e.concat(e.concat(o,n),r)}};return t.reduce(r,{init:!0,acc:e.empty},i).acc}},reduce:Ao,reduceM:function(e,t){return function(n,r){return function(i){return t.reduce(i,e.of(n),function(t,n){return e.chain(t,function(e){return r(e,n)})})}}},reduceRight:Au,toArray:As,toReadonlyArray:As,traverse_:function(e,t){var n=e.of(void 0);return function(r,i){return t.reduce(r,n,function(t,n){var r,o;return o=i(n),e.ap(e.map(t,J),o)})}}},Symbol.toStringTag,{value:"Module"}));function Ad(e,t){return function(n,r){return function(i){return e.reduceWithIndex(i,n,function(e,n,i){return t.reduceWithIndex(i,n,function(t,n,i){return r([e,t],n,i)})})}}}function Af(e,t){return function(n){var r=e.foldMapWithIndex(n),i=t.foldMapWithIndex(n);return function(e){return function(t){return r(t,function(t,n){return i(n,function(n,r){return e([t,n],r)})})}}}}function Ap(e,t){return function(n,r){return function(i){return e.reduceRightWithIndex(i,n,function(e,n,i){return t.reduceRightWithIndex(n,i,function(t,n,i){return r([e,t],n,i)})})}}}let AA=Object.freeze(Object.defineProperty({__proto__:null,foldMapWithIndex:Af,getFoldableWithIndexComposition:function(e,t){var n=Al(e,t),r=Ad(e,t),i=Af(e,t),o=Ap(e,t);return{reduce:n.reduce,foldMap:n.foldMap,reduceRight:n.reduceRight,reduceWithIndex:function(e,t,n){return ea(e,r(t,n))},foldMapWithIndex:function(e){var t=i(e);return function(e,n){return ea(e,t(n))}},reduceRightWithIndex:function(e,t,n){return ea(e,o(t,n))}}},reduceRightWithIndex:Ap,reduceWithIndex:Ad},Symbol.toStringTag,{value:"Module"}));function Ah(e){return function(t){return et(t,e.fromIO)}}function Am(e,t){return function(n){var r=et(n,e.fromIO);return function(e){return t.chain(e,r)}}}function Ag(e,t){var n=eV(t);return function(t){return n(et(t,e.fromIO))}}let Ay=Object.freeze(Object.defineProperty({__proto__:null,chainFirstIOK:Ag,chainIOK:Am,fromIOK:Ah},Symbol.toStringTag,{value:"Module"}));var Av=function(){return Z},Ax=function(e){return function(t){return function(n){return t(e(n))}}},Ab=function(e){return function(t){return e(t)(t)}},AC=function(e,t){return ea(e,AT(t))},AS=function(e,t){return ea(e,AR(t))},Aw=function(e,t){return ea(e,AE(t))},AI=function(e,t){return ea(e,AF(t))},A_=function(e,t,n){return ea(e,Aj(t,n))},AT=function(e){return function(t){return function(n){return e(t(n))}}},AO=function(e){return function(t){return function(n){return t(n)(e(n))}}},AR=AO,Ak=function(e){return function(t){return function(n){return e(t(n))(n)}}},AE=Ak,AM=Ak(Z),AF=function(e){return function(t){return et(e,t)}},Aj=function(e,t){return function(n){return function(r){return t(n(e(r)))}}},AU=function(){return Z},AK=function(e){return function(t){var n=t[0],r=t[1];return[e(n),r]}},AL=function(e){return function(t){var n;return[t[0],e(t[1])]}},AB=function(e){return f8(function(t){return eg(e(t))},ey)},AP=function(e){return f8(eg,function(t){return ey(e(t))})},AW="Reader",AD={URI:AW,map:AC},AN=eB(AD),Aq={URI:AW,of:J},AQ={URI:AW,map:AC,ap:AS},AV=eO(AQ),Az=eR(AQ),AY={URI:AW,map:AC,ap:AS,of:J},AH={URI:AW,map:AC,ap:AS,chain:Aw},AZ={URI:AW,map:AC,of:J,ap:AS,chain:Aw},AJ=eV(AH),AG=eP(AD),A$=ez(AH),AX=J(ew),A0=ek(AQ),A1=J(eS),A2=function(e){return function(t){return function(n){for(var r=[e(0,eb(t))(n)],i=1;i<t.length;i++)r.push(e(i,t[i])(n));return r}}},A6=function(e){var t=A2(e);return function(e){return ex(e)?t(e):A1}},A5=function(e){return A6(function(t,n){return e(n)})},A3=A5(Z),A9=eE(AQ),A4=eN(AY);let A7=Object.freeze(Object.defineProperty({__proto__:null,ApT:A1,Applicative:AY,Apply:AQ,Category:{URI:AW,compose:AI,id:AU},Chain:AH,Choice:{URI:AW,map:AC,promap:A_,left:AB,right:AP},Do:AX,Functor:AD,Monad:AZ,Pointed:Aq,Profunctor:{URI:AW,map:AC,promap:A_},Strong:{URI:AW,map:AC,promap:A_,first:AK,second:AL},URI:AW,ap:AR,apFirst:AV,apFirstW:AV,apS:A0,apSW:A0,apSecond:Az,apSecondW:Az,apW:AO,ask:Av,asks:Z,asksReader:Ab,asksReaderW:Ab,bind:A$,bindTo:AG,bindW:A$,chain:AE,chainFirst:AJ,chainFirstW:AJ,chainW:Ak,compose:AF,first:AK,flap:AN,flatten:AM,flattenW:AM,getMonoid:A4,getSemigroup:A9,id:AU,left:AB,local:Ax,map:AT,of:J,promap:Aj,reader:{URI:AW,map:AC,of:J,ap:AS,chain:Aw,promap:A_,compose:AI,id:AU,first:AK,second:AL,left:AB,right:AP},right:AP,second:AL,sequenceArray:A3,traverseArray:A5,traverseArrayWithIndex:A6,traverseReadonlyArrayWithIndex:A6,traverseReadonlyNonEmptyArrayWithIndex:A2},Symbol.toStringTag,{value:"Module"}));function A8(e){return function(){return e.fromReader(Av())}}function he(e){return e.fromReader}function ht(e){return function(t){return et(t,e.fromReader)}}function hn(e,t){var n=ht(e);return function(e){return function(r){return t.chain(r,n(e))}}}function hr(e,t){return et(ht(e),eV(t))}let hi=Object.freeze(Object.defineProperty({__proto__:null,ask:A8,asks:he,chainFirstReaderK:hr,chainReaderK:hn,fromReaderK:ht},Symbol.toStringTag,{value:"Module"}));var ho=function(){return function(e){return[e,e]}},ha=function(e){return function(){return[void 0,e]}},hu=function(e){return function(t){return[void 0,e(t)]}},hs=function(e){return function(t){return[e(t),t]}},hl=function(e,t){return ea(e,hf(t))},hc=function(e,t){return ea(e,hp(t))},hd=function(e,t){return ea(e,hh(t))},hf=function(e){return function(t){return function(n){var r=t(n),i=r[0],o=r[1];return[e(i),o]}}},hp=function(e){return function(t){return function(n){var r=t(n),i=r[0],o=e(r[1]),a=o[0],u=o[1];return[i(a),u]}}},hA=function(e){return function(t){return[e,t]}},hh=function(e){return function(t){return function(n){var r=t(n),i=r[0],o=r[1];return e(i)(o)}}},hm=hh(Z),hg="State",hy={URI:hg,map:hl},hv=eB(hy),hx={URI:hg,map:hl,ap:hc},hb=eO(hx),hC=eR(hx),hS={URI:hg,map:hl,ap:hc,chain:hd},hw={URI:hg,map:hl,ap:hc,of:hA,chain:hd},hI=eV(hS),h_=function(e){return function(t){return t(e)[0]}},hT=function(e){return function(t){return t(e)[1]}},hO=eP(hy),hR=ez(hS),hk=ek(hx),hE=function(e){return function(t){return function(n){for(var r=e(0,eb(t))(n),i=r[0],o=r[1],a=[i],u=o,s=1;s<t.length;s++){var l=e(s,t[s])(u),c=l[0],d=l[1];a.push(c),u=d}return[a,u]}}},hM=function(e){var t=hE(e);return function(e){return ex(e)?t(e):hA(eS)}},hF=function(e){return hM(function(t,n){return e(n)})},hj=hF(Z),hU=function(e,t){return e(t)[0]},hK=function(e,t){return e(t)[1]};let hL=Object.freeze(Object.defineProperty({__proto__:null,Applicative:{URI:hg,map:hl,ap:hc,of:hA},Apply:hx,Chain:hS,FromState:{URI:hg,fromState:Z},Functor:hy,Monad:hw,Pointed:{URI:hg,of:hA},URI:hg,ap:hp,apFirst:hb,apS:hk,apSecond:hC,bind:hR,bindTo:hO,chain:hh,chainFirst:hI,evalState:hU,evaluate:h_,execState:hK,execute:hT,flap:hv,flatten:hm,get:ho,gets:hs,map:hf,modify:hu,of:hA,put:ha,sequenceArray:hj,state:hw,traverseArray:hF,traverseArrayWithIndex:hM,traverseReadonlyArrayWithIndex:hM,traverseReadonlyNonEmptyArrayWithIndex:hE},Symbol.toStringTag,{value:"Module"}));function hB(e){return function(){return e.fromState(ho())}}function hP(e){return function(t){return e.fromState(ha(t))}}function hW(e){return et(hu,e.fromState)}function hD(e){return et(hs,e.fromState)}function hN(e){return function(t){return et(t,e.fromState)}}function hq(e,t){var n=hN(e);return function(e){return function(r){return t.chain(r,n(e))}}}let hQ=Object.freeze(Object.defineProperty({__proto__:null,chainStateK:hq,fromStateK:hN,get:hB,gets:hD,modify:hW,put:hP},Symbol.toStringTag,{value:"Module"}));function hV(e){return function(t){return et(t,e.fromTask)}}function hz(e,t){return function(n){var r=et(n,e.fromTask);return function(e){return t.chain(e,r)}}}function hY(e,t){var n=eV(t);return function(t){return n(et(t,e.fromTask))}}let hH=Object.freeze(Object.defineProperty({__proto__:null,chainFirstTaskK:hY,chainTaskK:hz,fromTaskK:hV},Symbol.toStringTag,{value:"Module"}));function hZ(e){return function(t){return et(t,e.fromThese)}}let hJ=Object.freeze(Object.defineProperty({__proto__:null,fromTheseK:hZ},Symbol.toStringTag,{value:"Module"}));function hG(e,t){return function(n){return function(r){return e.mapWithIndex(r,function(e,r){return t.mapWithIndex(r,function(t,r){return n([e,t],r)})})}}}let h$=Object.freeze(Object.defineProperty({__proto__:null,getFunctorWithIndexComposition:function(e,t){var n=eW(e,t).map,r=hG(e,t);return{map:n,mapWithIndex:function(e,t){return ea(e,r(t))}}},mapWithIndex:hG},Symbol.toStringTag,{value:"Module"})),hX=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),h0=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),h1=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var h2=function(e,t){return ea(e,mt(t))},h6=function(e,t){return ea(e,mn(t))},h5=function(e,t){return ea(e,mr(t))},h3=function(e,t,n){return ea(e,mu(t,n))},h9=function(e){return function(e,t){return ea(e,ms()(t))}},h4=function(e,t,n){return ea(e,ml(t,n))},h7=function(e,t){return ea(e,mp())},h8=function(e,t){return ea(e,mi(t))},me=function(e){var t=mc(e);return function(e,n){return ea(e,t(n))}},mt=function(e){return function(t){return e(t)}},mn=function(e){return function(t){return t(e)}},mr=function(e){return function(t){return e(t)}},mi=function(e){return function(t){return e(t)}},mo=mi(Z),ma=mr(Z),mu=function(e,t){return function(n){return t(e,n)}},ms=function(){return function(e){return function(t){return e(t)}}},ml=function(e,t){return function(n){return t(n,e)}},mc=function(e){return function(t){return function(n){return e.map(t(n),Z)}}},md=function(e){return function(t){return e.map(t,Z)}},mf=function(){return Z},mp=mf,mA="Identity",mh={URI:mA,map:h2},mm=eB(mh),mg={URI:mA,map:h2,ap:h6},my=eO(mg),mv=eR(mg),mx={URI:mA,map:h2,ap:h6,chain:h5},mb=eV(mx),mC=Z(ew),mS=eP(mh),mw=ez(mx),mI=ek(mg);let m_=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:mA,map:h2,alt:h7},Applicative:{URI:mA,map:h2,ap:h6,of:Z},Apply:mg,Chain:mx,ChainRec:{URI:mA,map:h2,ap:h6,chain:h5,chainRec:cs},Comonad:{URI:mA,map:h2,extend:h8,extract:Z},Do:mC,Foldable:{URI:mA,reduce:h3,foldMap:h9,reduceRight:h4},Functor:mh,Monad:{URI:mA,map:h2,ap:h6,of:Z,chain:h5},Pointed:{URI:mA,of:Z},Traversable:{URI:mA,map:h2,reduce:h3,foldMap:h9,reduceRight:h4,traverse:me,sequence:md},URI:mA,alt:mp,altW:mf,ap:mn,apFirst:my,apS:mI,apSecond:mv,bind:mw,bindTo:mS,chain:mr,chainFirst:mb,duplicate:mo,extend:mi,extract:Z,flap:mm,flatten:ma,foldMap:ms,getEq:Z,getShow:Z,identity:{URI:mA,map:h2,ap:h6,of:Z,chain:h5,reduce:h3,foldMap:h9,reduceRight:h4,traverse:me,sequence:md,alt:h7,extract:Z,extend:h8,chainRec:cs},map:mt,of:Z,reduce:mu,reduceRight:ml,sequence:md,traverse:mc},Symbol.toStringTag,{value:"Module"})),mT=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var mO=function(e,t){return function(){return t(e())}},mR=function(e,t){return function(){return e()(t())}},mk=function(e,t){return function(){return t(e())()}},mE=function(e,t){return function(){for(var n=t(e)();"Left"===n._tag;)n=t(n.left)();return n.right}},mM=function(e){return function(t){return mO(t,e)}},mF=function(e){return function(t){return mR(t,e)}},mj=function(e){return function(t){return mk(t,e)}},mU=mj(Z),mK={URI:"IO",map:mO},mL=eB(mK),mB={URI:"IO",of:J},mP={URI:"IO",map:mO,ap:mR},mW=eO(mP),mD=eR(mP),mN={URI:"IO",map:mO,ap:mR,of:J},mq={URI:"IO",map:mO,ap:mR,chain:mk},mQ={URI:"IO",map:mO,ap:mR,of:J,chain:mk},mV=eV(mq),mz=J(ew),mY=eP(mK),mH=ez(mq),mZ=ek(mP),mJ=J(eS),mG=function(e){return function(t){return function(){for(var n=[e(0,eb(t))()],r=1;r<t.length;r++)n.push(e(r,t[r])());return n}}},m$=function(e){var t=mG(e);return function(e){return ex(e)?t(e):mJ}},mX=function(e){return m$(function(t,n){return e(n)})},m0=mX(Z),m1=eE(mP),m2=eN(mN);let m6=Object.freeze(Object.defineProperty({__proto__:null,ApT:mJ,Applicative:mN,Apply:mP,Chain:mq,ChainRec:{URI:"IO",map:mO,ap:mR,chain:mk,chainRec:mE},Do:mz,FromIO:{URI:"IO",fromIO:Z},Functor:mK,Monad:mQ,MonadIO:{URI:"IO",map:mO,ap:mR,of:J,chain:mk,fromIO:Z},Pointed:mB,URI:"IO",ap:mF,apFirst:mW,apS:mZ,apSecond:mD,bind:mH,bindTo:mY,chain:mj,chainFirst:mV,flap:mL,flatten:mU,fromIO:Z,getMonoid:m2,getSemigroup:m1,io:{URI:"IO",map:mO,of:J,ap:mR,chain:mk,fromIO:Z,chainRec:mE},map:mM,of:J,sequenceArray:m0,traverseArray:mX,traverseArrayWithIndex:m$,traverseReadonlyArrayWithIndex:m$,traverseReadonlyNonEmptyArrayWithIndex:mG},Symbol.toStringTag,{value:"Module"}));var m5=pU(mB),m3=pj(mB),m9=pK(mK),m4=pL(mK),m7=pH(mK),m8=pZ(mQ),ge=pJ(mQ),gt=function(e,t){return function(){return pp(e,t)}},gn=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return gt(function(){return e.apply(void 0,n)},t)}},gr=p1(mK),gi=pG(mQ),go=p$(mQ),ga=function(e){return go(gK(e))},gu=pX(mQ),gs=p0(mK),gl=function(e,t){return ea(e,gm(t))},gc=function(e,t){return ea(e,gv(t))},gd=function(e,t){return ea(e,gx(function(e){return ea(t,gm(e))}))},gf=function(e,t){return ea(e,gx(t))},gp=function(e,t,n){return ea(e,gg(t,n))},gA=function(e,t){return ea(e,gy(t))},gh=function(e,t){return ea(e,gC(t))},gm=pD(mK),gg=pV(mK),gy=pz(mK),gv=pN(mP),gx=pq(mQ),gb=gx(Z),gC=pQ(mQ),gS="IOEither";function gw(e){var t=eT(mP,fU(e));return{URI:gS,_E:void 0,map:gl,ap:function(e,n){return ea(e,t(n))},of:m3}}function gI(e){var t=pY(mQ,e);return{URI:gS,_E:void 0,map:gl,alt:function(e,n){return ea(e,t(n))}}}var g_=function(e){var t=fM(e);return{URI:gS,_E:void 0,compact:dX(mK,t),separate:d0(mK,t,fB)}},gT={URI:gS,map:gl},gO=eB(gT),gR={URI:gS,map:gl,ap:gc},gk=eO(gR),gE=eR(gR),gM={URI:gS,map:gl,ap:gc,of:m3},gF={URI:gS,map:gl,ap:gc,chain:gf},gj=eV(gF),gU={URI:gS,fromIO:m9},gK=Ah(gU),gL=Am(gU,gF),gB=Ag(gU,gF),gP={URI:gS,fromEither:J},gW=eH(gP),gD=eJ(gP),gN=eG(gP,gF),gq=eX(gP,gF),gQ=e0(gP,gF),gV=eZ(gP),gz=e1(gP,gF),gY=e$(gP),gH=function(e,t,n){return gZ(e,t,n)},gZ=function(e,t,n){return ea(e,gx(function(e){return ea(t(e),mj(function(t){return ea(n(e,t),gx(function(){return J(t)}))}))}))},gJ=m3(ew),gG=eP(gT),g$=ez(gF),gX=ek(gR),g0=m3(eS),g1=function(e){return et(mG(e),mM(pw(eu)))},g2=function(e){var t=g1(e);return function(e){return ex(e)?t(e):g0}},g6=function(e){return function(t){return function(){var n=e(0,eb(t))();if(eh(n))return n;for(var r=[n.right],i=1;i<t.length;i++){var o=e(i,t[i])();if(eh(o))return o;r.push(o.right)}return ey(r)}}},g5=function(e){var t=g6(e);return function(e){return ex(e)?t(e):g0}},g3=function(e){return g2(function(t,n){return e(n)})},g9=g3(Z),g4=function(e){return g5(function(t,n){return e(n)})},g7=g4(Z),g8=eE(gR),ye=eN(gM),yt=function(e){return eE(mP)(fE(e))};let yn=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:gS,map:gl,alt:gh},ApT:g0,Applicative:gM,ApplicativePar:gM,ApplicativeSeq:{URI:gS,map:gl,ap:gd,of:m3},ApplyPar:gR,Bifunctor:{URI:gS,bimap:gp,mapLeft:gA},Chain:gF,Do:gJ,FromEither:gP,FromIO:gU,Functor:gT,Monad:{URI:gS,map:gl,ap:gc,of:m3,chain:gf},MonadIO:{URI:gS,map:gl,ap:gc,of:m3,chain:gf,fromIO:m9},MonadThrow:{URI:gS,map:gl,ap:gc,of:m3,chain:gf,throwError:m5},Pointed:{URI:gS,of:m3},URI:gS,alt:gC,altW:gC,ap:gv,apFirst:gk,apFirstW:gk,apS:gX,apSW:gX,apSecond:gE,apSecondW:gE,apW:gv,bimap:gg,bind:g$,bindTo:gG,bindW:g$,bracket:gH,bracketW:gZ,chain:gx,chainEitherK:gq,chainEitherKW:gq,chainFirst:gj,chainFirstEitherK:gQ,chainFirstEitherKW:gQ,chainFirstIOK:gB,chainFirstW:gj,chainIOK:gL,chainOptionK:gN,chainW:gx,filterOrElse:gz,filterOrElseW:gz,flap:gO,flatten:gb,flattenW:gb,fold:m8,foldW:m8,fromEither:J,fromEitherK:gY,fromIO:m9,fromIOK:gK,fromOption:gW,fromOptionK:gD,fromPredicate:gV,getAltIOValidation:gI,getApplicativeIOValidation:gw,getApplyMonoid:ye,getApplySemigroup:g8,getCompactable:g_,getFilterable:function(e){var t=fF(e),n=g_(e),r=p8(mK,t),i=Ae(mK,t),o=At(mK,t),a=An(mK,t);return{URI:gS,_E:void 0,map:gl,compact:n.compact,separate:n.separate,filter:function(e,t){return ea(e,r(t))},filterMap:function(e,t){return ea(e,i(t))},partition:function(e,t){return ea(e,o(t))},partitionMap:function(e,t){return ea(e,a(t))}}},getIOValidation:function(e){var t=gw(e),n=gI(e);return{URI:gS,_E:void 0,map:gl,ap:t.ap,of:m3,chain:gf,bimap:gp,mapLeft:gA,alt:n.alt,fromIO:m9,throwError:m5}},getOrElse:ge,getOrElseW:ge,getSemigroup:yt,ioEither:{URI:gS,bimap:gp,mapLeft:gA,map:gl,of:m3,ap:gc,chain:gf,alt:gh,fromIO:m9,throwError:m5},left:m5,leftIO:m4,map:gm,mapLeft:gy,match:m7,matchE:m8,matchEW:m8,matchW:m7,of:m3,orElse:gi,orElseFirst:go,orElseFirstIOK:ga,orElseFirstW:go,orElseW:gi,orLeft:gu,right:m3,rightIO:m9,sequenceArray:g9,sequenceSeqArray:g7,swap:gs,throwError:m5,toUnion:gr,traverseArray:g3,traverseArrayWithIndex:g2,traverseReadonlyArrayWithIndex:g2,traverseReadonlyArrayWithIndexSeq:g5,traverseReadonlyNonEmptyArrayWithIndex:g1,traverseReadonlyNonEmptyArrayWithIndexSeq:g6,traverseSeqArray:g4,traverseSeqArrayWithIndex:g5,tryCatch:gt,tryCatchK:gn},Symbol.toStringTag,{value:"Module"}));function yr(e){return et(eA,e.of)}function yi(e){return J(e.of(ep))}function yo(e){return function(t){return e.map(t,eA)}}function ya(e){return et(dk,e.of)}function yu(e){var t=ya(e);return function(e){return et(e,t)}}function ys(e){var t=yy(e),n=yu(e);return function(e){return t(n(e))}}function yl(e){return function(t){return et(t,e.of)}}function yc(e){var t=yy(e),n=yl(e);return function(e){return t(n(e))}}function yd(e){return function(t){return function(n){return e.of(cI(t)(n))}}}function yf(e){return et(cT,e.of)}function yp(e){return function(t,n){return function(r){return e.map(r,dx(t,n))}}}function yA(e){return function(t,n){return function(r){return e.chain(r,dx(t,n))}}}function yh(e){return function(t){return function(n){return e.chain(n,dx(t,e.of))}}}function ym(e){return eL(e,cY)}function yg(e){return eT(e,cJ)}function yy(e){var t=yi(e);return function(n){return function(r){return e.chain(r,dx(function(){return t()},n))}}}function yv(e){var t=yr(e);return function(n){return function(r){return e.chain(r,dx(n,t))}}}let yx=Object.freeze(Object.defineProperty({__proto__:null,alt:yv,ap:yg,chain:yy,chainNullableK:ys,chainOptionK:yc,fromEither:yf,fromF:yo,fromNullable:ya,fromNullableK:yu,fromOptionK:yl,fromPredicate:yd,getOptionM:function(e){var t=yg(e),n=ym(e),r=yy(e),i=yv(e),o=yA(e),a=yh(e),u=yi(e);return{map:function(e,t){return ea(e,n(t))},ap:function(e,n){return ea(e,t(n))},of:yr(e),chain:function(e,t){return ea(e,r(t))},alt:function(e,t){return ea(e,i(t))},fold:function(e,t,n){return ea(e,o(t,n))},getOrElse:function(e,t){return ea(e,a(t))},fromM:yo(e),none:function(){return u()}}},getOrElse:yh,map:ym,match:yp,matchE:yA,some:yr,zero:yi},Symbol.toStringTag,{value:"Module"}));var yb=yr(mB),yC=yd(mB),yS=yf(mB),yw=yo(mK),yI=mM(cT),y_=yp(mK),yT=yA(mq),yO=yh(mQ),yR=mM(dK),yk=mM(dU),yE=ya(mB),yM=yu(mB),yF=ys(mQ),yj=yl(mB),yU=yc(mQ),yK=ym(mK),yL=yg(mP),yB=yy(mQ),yP=yB(Z),yW=yv(mQ),yD=yi(mB),yN=yD(),yq=dX(mK,dn),yQ=d0(mK,dn,cY),yV=p8(mK,ds),yz=Ae(mK,ds),yY=At(mK,ds),yH=An(mK,ds),yZ=function(e,t){return ea(e,yK(t))},yJ=function(e,t){return ea(e,yL(t))},yG=function(e,t){return ea(e,yB(t))},y$=function(e,t){return ea(e,yW(t))},yX=function(e,t){return ea(e,yV(t))},y0=function(e,t){return ea(e,yz(t))},y1=function(e,t){return ea(e,yY(t))},y2=function(e,t){return ea(e,yH(t))},y6="IOOption",y5={URI:y6,map:yZ},y3=eB(y5),y9={URI:y6,of:yb},y4={URI:y6,map:yZ,ap:yJ},y7=eO(y4),y8=eR(y4),ve={URI:y6,map:yZ,ap:yJ,chain:yG},vt=eV(ve),vn={URI:y6,zero:yD},vr=og(vn,y9),vi={URI:y6,fromIO:yw},vo=Ah(vi),va=Am(vi,ve),vu=Ag(vi,ve),vs={URI:y6,fromEither:yS},vl=e$(vs),vc=eX(vs,ve),vd=e0(vs,ve),vf=yb(ew),vp=eP(y5),vA=ez(ve),vh=ek(y4),vm=yb(eS),vg=function(e){return et(mG(e),mM(dq(eu)))},vy=function(e){var t=vg(e);return function(e){return ex(e)?t(e):vm}};let vv=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:y6,map:yZ,alt:y$},Alternative:{URI:y6,map:yZ,ap:yJ,of:yb,alt:y$,zero:yD},ApT:vm,Applicative:{URI:y6,map:yZ,ap:yJ,of:yb},Apply:y4,Chain:ve,Compactable:{URI:y6,compact:yq,separate:yQ},Do:vf,Filterable:{URI:y6,map:yZ,compact:yq,separate:yQ,filter:yX,filterMap:y0,partition:y1,partitionMap:y2},FromEither:vs,FromIO:vi,Functor:y5,Monad:{URI:y6,map:yZ,ap:yJ,of:yb,chain:yG},MonadIO:{URI:y6,map:yZ,ap:yJ,of:yb,chain:yG,fromIO:yw},Pointed:y9,Zero:vn,alt:yW,altW:yW,ap:yL,apFirst:y7,apS:vh,apSecond:y8,bind:vA,bindTo:vp,chain:yB,chainEitherK:vc,chainFirst:vt,chainFirstEitherK:vd,chainFirstIOK:vu,chainIOK:va,chainNullableK:yF,chainOptionK:yU,compact:yq,filter:yV,filterMap:yz,flap:y3,flatten:yP,fold:yT,fromEither:yS,fromEitherK:vl,fromIO:yw,fromIOEither:yI,fromIOK:vo,fromNullable:yE,fromNullableK:yM,fromOption:J,fromOptionK:yj,fromPredicate:yC,getOrElse:yO,getOrElseW:yO,guard:vr,map:yK,match:y_,matchE:yT,matchEW:yT,matchW:y_,none:yN,of:yb,partition:yY,partitionMap:yH,separate:yQ,some:yb,toNullable:yk,toUndefined:yR,traverseReadonlyArrayWithIndex:vy,traverseReadonlyNonEmptyArrayWithIndex:vg,zero:yD},Symbol.toStringTag,{value:"Module"}));var vx=function(){function e(e){var t=this;this.value=e,this.read=function(){return t.value},this.write=this.write.bind(this),this.modify=this.modify.bind(this)}return e.prototype.write=function(e){var t=this;return function(){t.value=e}},e.prototype.modify=function(e){var t=this;return function(){t.value=e(t.value)}},e}();let vb=Object.freeze(Object.defineProperty({__proto__:null,IORef:vx,newIORef:function(e){return function(){return new vx(e)}}},Symbol.toStringTag,{value:"Module"})),vC=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var vS=function(e){return pp(function(){return JSON.parse(e)},Z)},vw=function(e){return pp(function(){var t=JSON.stringify(e);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},Z)};let vI=Object.freeze(Object.defineProperty({__proto__:null,parse:vS,stringify:vw},Symbol.toStringTag,{value:"Module"})),v_=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var vT=function(e){return new Map(e)};function vO(e,t){return{show:function(n){var r=[];return n.forEach(function(n,i){r.push("[".concat(e.show(i),", ").concat(t.show(n),"]"))}),"new Map([".concat(r.sort().join(", "),"])")}}}var vR=function(e){return e.size},vk=function(e){return 0===e.size};function vE(e){var t=vN(e);return function(n,r){if(void 0===r){var i=vE(e);return function(e){return i(n,e)}}return ef(t(n,r))}}function vM(e){return function(t,n){if(void 0===n){var r=vM(e);return function(e){return r(t,e)}}for(var i,o=n.values();!(i=o.next()).done;){var a=i.value;if(e.equals(t,a))return!0}return!1}}var vF=function(e){return function(t){return Array.from(t.keys()).sort(e.compare)}},vj=function(e){return function(t){return Array.from(t.values()).sort(e.compare)}};function vU(e){var t=vF(e);return function(e){return function(n){for(var r=[],i=t(n),o=0;o<i.length;o++){var a=i[o];r.push(e(a,n.get(a)))}return r}}}var vK=function(e){return vU(e)(function(e,t){return[e,t]})},vL=function(e){var t=vD(e);return function(e,n){var r=t(e);return function(t){var i=r(t);if(ed(i)){var o=new Map(t);return o.set(e,n),o}if(i.value[1]!==n){var o=new Map(t);return o.set(i.value[0],n),o}return t}}},vB=function(e){var t=vD(e);return function(e){return function(n){var r=t(e,n);if(ef(r)){var i=new Map(n);return i.delete(r.value[0]),i}return n}}},vP=function(e){var t=vW(e);return function(e,n){return t(e,function(){return n})}},vW=function(e){var t=vD(e);return function(e,n){return function(r){var i=t(e,r);if(ed(i))return ep;var o=i.value,a=o[0],u=o[1],s=n(u);if(s===u)return eA(r);var l=new Map(r);return l.set(a,s),eA(l)}}};function vD(e){return function(t,n){if(void 0===n){var r=vD(e);return function(e){return r(t,e)}}for(var i,o=n.entries();!(i=o.next()).done;){var a=i.value,u=a[0],s=a[1];if(e.equals(u,t))return eA([u,s])}return ep}}function vN(e){var t=vD(e);return function(n,r){if(void 0===r){var i=vN(e);return function(e){return i(n,e)}}return ea(t(n,r),cz(function(e){return e[0],e[1]}))}}function vq(e,t){var n=vD(e);return function(r,i){if(void 0===i){var o=vq(e,t);return function(e){return o(e,r)}}for(var a,u=r.entries();!(a=u.next()).done;){var s=a.value,l=s[0],c=s[1],d=n(l,i);if(ed(d)||!e.equals(l,d.value[0])||!t.equals(c,d.value[1]))return!1}return!0}}var vQ=new Map;function vV(e,t){var n=vq(e,t);return e6(function(e,t){return n(e,t)&&n(t,e)})}var vz=function(e,t){return new Map([[e,t]])},vY=function(e,t){for(var n,r=new Map,i=e.entries();!(n=i.next()).done;){var o=n.value,a=o[0],u=o[1];r.set(a,t(a,u))}return r},vH=function(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var a=n.value,u=a[0],s=e(u,a[1]);eh(s)?r.set(u,s.left):i.set(u,s.right)}return oe(r,i)}};function vZ(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var a=n.value,u=a[0],s=a[1];e(u,s)?i.set(u,s):r.set(u,s)}return oe(r,i)}}var vJ=function(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,a=o[0],u=e(a,o[1]);ef(u)&&r.set(a,u.value)}return r}};function vG(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,a=o[0],u=o[1];e(a,u)&&r.set(a,u)}return r}}var v$=function(e,t){return vY(e,function(e,n){return t(n)})},vX=function(e,t){return v6(e,function(e,n){return t(n)})},v0=function(e,t){return v5(e,function(e,n){return t(n)})},v1=function(e,t){return v3(e,function(e,n){return t(n)})},v2=function(e,t){return v9(e,function(e,n){return t(n)})},v6=function(e,t){return ea(e,vG(t))},v5=function(e,t){return ea(e,vJ(t))},v3=function(e,t){return ea(e,vZ(t))},v9=function(e,t){return ea(e,vH(t))},v4=function(e){for(var t,n=new Map,r=e.entries();!(t=r.next()).done;){var i=t.value,o=i[0],a=i[1];ef(a)&&n.set(o,a.value)}return n},v7=function(e){return function(t){return vX(t,e)}},v8=function(e){return function(t){return v0(t,e)}},xe=function(e){return function(t){return v$(t,e)}},xt=function(e){return function(t){return vY(t,e)}},xn=function(e){return function(t){return v1(t,e)}},xr=function(e){return function(t){return v2(t,e)}},xi=function(e){for(var t,n=new Map,r=new Map,i=e.entries();!(t=i.next()).done;){var o=t.value,a=o[0],u=o[1];eh(u)?n.set(a,u.left):r.set(a,u.right)}return oe(n,r)},xo="ReadonlyMap",xa=function(e,t){var n=xw(e,t);return{concat:function(e,t){return n(t)(e)}}},xu=function(e,t){return{concat:xa(e,t).concat,empty:vQ}},xs=function(e,t){var n=xI(e,t);return{concat:function(e,t){return n(t)(e)}}},xl=function(e){return function(){var t=x_(e);return{concat:function(e,n){return t(n)(e)}}}},xc={URI:xo,map:v$},xd=eB(xc),xf=function(){return{URI:xo,_E:void 0,map:v$,mapWithIndex:vY}},xp={URI:xo,compact:v4,separate:xi},xA=function(e){var t=xy(e);return function(e,n){return t(e,function(e,t,r){return n(t,r)})}},xh=function(e){var t=xv(e);return function(e){var n=t(e);return function(e){return n(function(t,n){return e(n)})}}},xm=function(e){var t=xx(e);return function(e,n){return t(e,function(e,t,r){return n(t,r)})}},xg=function(e){var t=xA(e),n=xh(e),r=xm(e);return{URI:xo,_E:void 0,reduce:function(e,n,r){return ea(e,t(n,r))},foldMap:function(e){var t=n(e);return function(e,n){return ea(e,t(n))}},reduceRight:function(e,t,n){return ea(e,r(t,n))}}},xy=function(e){var t=vF(e);return function(e,n){return function(r){for(var i=e,o=0,a=t(r);o<a.length;o++){var u=a[o];i=n(u,i,r.get(u))}return i}}},xv=function(e){var t=vF(e);return function(e){return function(n){return function(r){for(var i=e.empty,o=0,a=t(r);o<a.length;o++){var u=a[o];i=e.concat(i,n(u,r.get(u)))}return i}}}},xx=function(e){var t=vF(e);return function(e,n){return function(r){for(var i=e,o=t(r),a=o.length,u=a-1;u>=0;u--){var s=o[u];i=n(s,r.get(s),i)}return i}}},xb=function(e){var t=xg(e),n=xy(e),r=xv(e),i=xx(e);return{URI:xo,_E:void 0,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:function(e,t,r){return ea(e,n(t,r))},foldMapWithIndex:function(e){var t=r(e);return function(e,n){return ea(e,t(n))}},reduceRightWithIndex:function(e,t,n){return ea(e,i(t,n))}}},xC=function(e){var t=xS(e),n=xg(e);return{URI:xo,_E:void 0,map:v$,reduce:n.reduce,foldMap:n.foldMap,reduceRight:n.reduceRight,traverse:t.traverse,sequence:t.sequence}},xS=function(e){var t=xb(e),n=vF(e),r=function(e){return function(t,r){for(var i=e.of(new Map),o=n(t),a=o.length,u=0;u<a;u++)!function(n){var a=o[n],u=t.get(a);i=e.ap(e.map(i,function(e){return function(t){return e.set(a,t)}}),r(a,u))}(u);return i}},i=function(e){var t=r(e);return function(e,n){return t(e,function(e,t){return n(t)})}},o=function(e){var t=r(e);return function(e){return t(e,eu)}};return{URI:xo,_E:void 0,map:v$,mapWithIndex:vY,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:i,sequence:o,traverseWithIndex:r}},xw=function(e,t){var n=vN(e);return function(e){return function(r){if(vk(r))return e;if(vk(e))return r;for(var i,o=new Map,a=r.entries();!(i=a.next()).done;){var u=i.value,s=u[0],l=u[1],c=n(s)(e);ef(c)?o.set(s,t.concat(l,c.value)):o.set(s,l)}for(var d=e.entries();!(i=d.next()).done;){var f=i.value,s=f[0],l=f[1],c=n(s)(o);ed(c)&&o.set(s,l)}return o}}},xI=function(e,t){var n=vN(e);return function(e){return function(r){if(vk(r)||vk(e))return vQ;for(var i,o=new Map,a=r.entries();!(i=a.next()).done;){var u=i.value,s=u[0],l=u[1],c=n(s)(e);ef(c)&&o.set(s,t.concat(l,c.value))}return o}}},x_=function(e){var t=vE(e);return function(e){return function(n){if(vk(n))return e;if(vk(e))return n;for(var r,i=new Map,o=n.entries();!(r=o.next()).done;){var a=r.value,u=a[0],s=a[1];t(u)(e)||i.set(u,s)}for(var l=e.entries();!(r=l.next()).done;){var c=r.value,u=c[0],s=c[1];t(u)(n)||i.set(u,s)}return i}}};let xT=Object.freeze(Object.defineProperty({__proto__:null,Compactable:xp,Filterable:{URI:xo,map:v$,compact:v4,separate:xi,filter:vX,filterMap:v0,partition:v1,partitionMap:v2},Functor:xc,URI:xo,collect:vU,compact:v4,deleteAt:vB,difference:x_,elem:vM,empty:vQ,filter:v7,filterMap:v8,filterMapWithIndex:vJ,filterWithIndex:vG,flap:xd,foldMap:xh,foldMapWithIndex:xv,fromFoldable:function(e,t,n){return function(r){var i=vD(e);return n.reduce(r,new Map,function(e,n){var r=n[0],o=n[1],a=i(r,e);return ef(a)?e.set(a.value[0],t.concat(a.value[1],o)):e.set(r,o),e})}},fromMap:vT,getDifferenceMagma:xl,getEq:vV,getFilterableWithIndex:function(){return{URI:xo,_E:void 0,map:v$,mapWithIndex:vY,compact:v4,separate:xi,filter:vX,filterMap:v0,partition:v1,partitionMap:v2,partitionMapWithIndex:v9,partitionWithIndex:v3,filterMapWithIndex:v5,filterWithIndex:v6}},getFoldable:xg,getFoldableWithIndex:xb,getFunctorWithIndex:xf,getIntersectionSemigroup:xs,getMonoid:function(e,t){var n=vD(e);return{concat:function(e,r){if(vk(e))return r;if(vk(r))return e;for(var i,o=new Map(e),a=r.entries();!(i=a.next()).done;){var u=i.value,s=u[0],l=u[1],c=n(s,e);ef(c)?o.set(c.value[0],t.concat(c.value[1],l)):o.set(s,l)}return o},empty:vQ}},getShow:vO,getTraversable:xC,getTraversableWithIndex:xS,getUnionMonoid:xu,getUnionSemigroup:xa,getWitherable:function(e){var t=xS(e);return{URI:xo,_E:void 0,map:v$,compact:v4,separate:xi,filter:vX,filterMap:v0,partition:v1,partitionMap:v2,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,traverse:t.traverse,sequence:t.sequence,mapWithIndex:vY,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverseWithIndex:t.traverseWithIndex,wilt:op(t,xp),wither:oA(t,xp)}},insertAt:vL,intersection:xI,isEmpty:vk,isSubmap:vq,keys:vF,lookup:vN,lookupWithKey:vD,map:xe,mapWithIndex:xt,member:vE,modifyAt:vW,partition:xn,partitionMap:xr,partitionMapWithIndex:vH,partitionWithIndex:vZ,pop:function(e){var t=vN(e),n=vB(e);return function(e){var r=n(e);return function(n){return ea(t(e,n),cz(function(e){return[e,r(n)]}))}}},readonlyMap:{URI:xo,map:v$,compact:v4,separate:xi,filter:vX,filterMap:v0,partition:v1,partitionMap:v2},reduce:xA,reduceRight:xm,reduceRightWithIndex:xx,reduceWithIndex:xy,separate:xi,singleton:vz,size:vR,toMap:function(e){return new Map(e)},toReadonlyArray:vK,toUnfoldable:function(e,t){var n=vK(e);return function(e){var r=n(e),i=r.length;return t.unfold(0,function(e){return e<i?eA([r[e],e+1]):ep})}},union:xw,updateAt:vP,upsertAt:vL,values:vj},Symbol.toStringTag,{value:"Module"}));var xO=function(){return(xO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},xR=function(e){return function(t){return Array.from(t.keys()).sort(e.compare)}},xk=function(e){return function(t){return Array.from(t.values()).sort(e.compare)}};function xE(e){var t=xR(e);return function(e){return function(n){for(var r=[],i=t(n),o=0;o<i.length;o++){var a=i[o];r.push(e(a,n.get(a)))}return r}}}function xM(e){return xE(e)(function(e,t){return[e,t]})}var xF=function(e){var t=xL(e);return function(e,n){var r=t(e);return function(t){var i=r(t);if(ed(i)){var o=new Map(t);return o.set(e,n),o}if(i.value[1]!==n){var o=new Map(t);return o.set(i.value[0],n),o}return t}}},xj=function(e){var t=xL(e);return function(e){return function(n){var r=t(e,n);if(ef(r)){var i=new Map(n);return i.delete(r.value[0]),i}return n}}},xU=function(e){var t=xK(e);return function(e,n){return t(e,function(){return n})}},xK=function(e){var t=xL(e);return function(e,n){return function(r){var i=t(e,r);if(ed(i))return ep;var o=new Map(r);return o.set(i.value[0],n(i.value[1])),eA(o)}}};function xL(e){return function(t,n){if(void 0===n){var r=xL(e);return function(e){return r(t,e)}}for(var i,o=n.entries();!(i=o.next()).done;){var a=i.value,u=a[0],s=a[1];if(e.equals(u,t))return eA([u,s])}return ep}}var xB=function(e,t){return new Map([[e,t]])},xP=function(e,t){for(var n,r=new Map,i=e.entries();!(n=i.next()).done;){var o=n.value,a=o[0],u=o[1];r.set(a,t(a,u))}return r},xW=function(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var a=n.value,u=a[0],s=e(u,a[1]);eh(s)?r.set(u,s.left):i.set(u,s.right)}return oe(r,i)}};function xD(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var a=n.value,u=a[0],s=a[1];e(u,s)?i.set(u,s):r.set(u,s)}return oe(r,i)}}var xN=function(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,a=o[0],u=e(a,o[1]);ef(u)&&r.set(a,u.value)}return r}};function xq(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,a=o[0],u=o[1];e(a,u)&&r.set(a,u)}return r}}var xQ=function(e,t){return xP(e,function(e,n){return t(n)})},xV=function(e,t){return xZ(e,function(e,n){return t(n)})},xz=function(e,t){return xJ(e,function(e,n){return t(n)})},xY=function(e,t){return xG(e,function(e,n){return t(n)})},xH=function(e,t){return x$(e,function(e,n){return t(n)})},xZ=function(e,t){return ea(e,xq(t))},xJ=function(e,t){return ea(e,xN(t))},xG=function(e,t){return ea(e,xD(t))},x$=function(e,t){return ea(e,xW(t))},xX=function(e){for(var t,n=new Map,r=e.entries();!(t=r.next()).done;){var i=t.value,o=i[0],a=i[1];ef(a)&&n.set(o,a.value)}return n},x0=function(e){return function(t){return xV(t,e)}},x1=function(e){return function(t){return xz(t,e)}},x2=function(e){return function(t){return xQ(t,e)}},x6=function(e){return function(t){return xP(t,e)}},x5=function(e){return function(t){return xY(t,e)}},x3=function(e){return function(t){return xH(t,e)}},x9=function(e){for(var t,n=new Map,r=new Map,i=e.entries();!(t=i.next()).done;){var o=t.value,a=o[0],u=o[1];eh(u)?n.set(a,u.left):r.set(a,u.right)}return oe(n,r)},x4=function(e,t){var n=bl(e,t);return{concat:function(e,t){return n(t)(e)}}},x7=function(e,t){return{concat:x4(e,t).concat,empty:new Map}},x8=function(e,t){var n=bc(e,t);return{concat:function(e,t){return n(t)(e)}}},be=function(e){return function(){var t=bd(e);return{concat:function(e,n){return t(n)(e)}}}},bt=function(e){return xO(xO({},xg(e)),{URI:"Map"})},bn=function(e){return xO(xO({},xb(e)),{URI:"Map"})},br=function(e){var t=bn(e),n=xR(e),r=function(e){return function(t,r){for(var i=e.of(new Map),o=n(t),a=o.length,u=0;u<a;u++)!function(n){var a=o[n],u=t.get(a);i=e.ap(e.map(i,function(e){return function(t){return e.set(a,t)}}),r(a,u))}(u);return i}},i=function(e){var t=r(e);return function(e,n){return t(e,function(e,t){return n(t)})}},o=function(e){var t=r(e);return function(e){return t(e,function(e,t){return t})}};return{URI:"Map",_E:void 0,map:xQ,mapWithIndex:xP,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:i,sequence:o,traverseWithIndex:r}},bi={URI:"Map",map:xQ},bo=eB(bi),ba={URI:"Map",compact:xX,separate:x9},bu={URI:"Map",map:xQ,compact:xX,separate:x9,filter:xV,filterMap:xz,partition:xY,partitionMap:xH},bs=function(e){return new Map(e)},bl=function(e,t){var n=xw(e,t);return function(e){return function(t){return vk(t)?bs(e):vk(e)?bs(t):n(e)(t)}}},bc=function(e,t){var n=xI(e,t);return function(e){return function(t){return vk(t)||vk(e)?new Map:n(e)(t)}}},bd=function(e){var t=x_(e);return function(e){return function(n){return vk(n)?bs(e):vk(e)?bs(n):t(e)(n)}}},bf=new Map;let bp=Object.freeze(Object.defineProperty({__proto__:null,Compactable:ba,Filterable:bu,Functor:bi,URI:"Map",collect:xE,compact:xX,deleteAt:xj,difference:bd,elem:vM,empty:bf,filter:x0,filterMap:x1,filterMapWithIndex:xN,filterWithIndex:xq,flap:bo,foldMap:xh,foldMapWithIndex:xv,fromFoldable:function(e,t,n){return function(r){var i=xL(e);return n.reduce(r,new Map,function(e,n){var r=n[0],o=n[1],a=i(r,e);return ef(a)?e.set(a.value[0],t.concat(a.value[1],o)):e.set(r,o),e})}},getDifferenceMagma:be,getEq:vV,getFilterableWithIndex:function(){return{URI:"Map",_E:void 0,map:xQ,mapWithIndex:xP,compact:xX,separate:x9,filter:xV,filterMap:xz,partition:xY,partitionMap:xH,partitionMapWithIndex:x$,partitionWithIndex:xG,filterMapWithIndex:xJ,filterWithIndex:xZ}},getFoldable:bt,getFoldableWithIndex:bn,getIntersectionSemigroup:x8,getMonoid:function(e,t){var n=xL(e);return{concat:function(e,r){if(vk(e))return r;if(vk(r))return e;for(var i,o=new Map(e),a=r.entries();!(i=a.next()).done;){var u=i.value,s=u[0],l=u[1],c=n(s,e);ef(c)?o.set(c.value[0],t.concat(c.value[1],l)):o.set(s,l)}return o},empty:new Map}},getShow:vO,getTraversableWithIndex:br,getUnionMonoid:x7,getUnionSemigroup:x4,getWitherable:function(e){var t=br(e);return{URI:"Map",_E:void 0,map:xQ,compact:xX,separate:x9,filter:xV,filterMap:xz,partition:xY,partitionMap:xH,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,traverse:t.traverse,sequence:t.sequence,mapWithIndex:xP,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverseWithIndex:t.traverseWithIndex,wilt:op(t,ba),wither:oA(t,ba)}},insertAt:xF,intersection:bc,isEmpty:vk,isSubmap:vq,keys:xR,lookup:vN,lookupWithKey:xL,map:x2,mapWithIndex:x6,map_:bu,member:vE,modifyAt:xK,partition:x5,partitionMap:x3,partitionMapWithIndex:xW,partitionWithIndex:xD,pop:function(e){var t=vN(e),n=xj(e);return function(e){var r=n(e);return function(n){return ea(t(e,n),cz(function(e){return[e,r(n)]}))}}},reduce:xA,reduceRight:xm,reduceRightWithIndex:xx,reduceWithIndex:xy,separate:x9,singleton:xB,size:vR,toArray:xM,toUnfoldable:function(e,t){var n=xM(e);return function(e){var r=n(e),i=r.length;return t.unfold(0,function(e){return e<i?eA([r[e],e+1]):ep})}},union:bl,updateAt:xU,upsertAt:xF,values:xk},Symbol.toStringTag,{value:"Module"})),bA=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),bh=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),bm=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),bg=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),by=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var bv=function(e){return{concat:tE(e).concat,empty:e.top}},bx=function(e){return{concat:tM(e).concat,empty:e.bottom}},bb=function(e){return{concat:tI(e).concat,empty:e.empty}},bC=function(e){var t={};for(var n in e)eI.call(e,n)&&(t[n]=e[n].empty);return{concat:tj(e).concat,empty:t}},bS=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{concat:tU.apply(tz,e).concat,empty:e.map(function(e){return e.empty})}},bw=function(e){return tR(e)(e.empty)},bI={concat:tP.concat,empty:void 0},b_={concat:tD.concat,empty:!0},bT={concat:tN.concat,empty:!1},bO=function(){return bb(p5())},bR={concat:tq.concat,empty:""},bk={concat:tQ.concat,empty:0},bE={concat:tV.concat,empty:1};let bM=Object.freeze(Object.defineProperty({__proto__:null,concatAll:bw,fold:bw,getDualMonoid:bb,getEndomorphismMonoid:bO,getFunctionMonoid:V,getJoinMonoid:bx,getMeetMonoid:bv,getStructMonoid:bC,getTupleMonoid:bS,max:bx,min:bv,monoidAll:b_,monoidAny:bT,monoidProduct:bE,monoidString:bR,monoidSum:bk,monoidVoid:bI,reverse:bb,struct:bC,tuple:bS},Symbol.toStringTag,{value:"Module"})),bF=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var bj=function(e,t,n){return function(r){return -1===r?e():0===r?t():n()}},bU=function(e){return -1===e?1:1===e?-1:0},bK={equals:function(e,t){return e===t}},bL={concat:function(e,t){return 0!==e?e:t}},bB={concat:bL.concat,empty:0},bP=function(e){return e<=-1?-1:e>=1?1:0};let bW=Object.freeze(Object.defineProperty({__proto__:null,Eq:bK,Monoid:bB,Semigroup:bL,eqOrdering:bK,invert:bU,match:bj,matchW:bj,monoidOrdering:bB,reverse:bU,semigroupOrdering:bL,sign:bP},Symbol.toStringTag,{value:"Module"})),bD=Object.freeze(Object.defineProperty({__proto__:null,pipe:ea,pipeable:function(e){var t,n,r,i,o,a,u,s,l,c,d,f,p,A,h,m={};if("function"==typeof e.map){var g=function(t){return function(n){return e.map(n,t)}};m.map=g}if("function"==typeof e.contramap){var y=function(t){return function(n){return e.contramap(n,t)}};m.contramap=y}if("function"==typeof e.mapWithIndex){var v=function(t){return function(n){return e.mapWithIndex(n,t)}};m.mapWithIndex=v}if("function"==typeof e.ap){var x=function(t){return function(n){return e.ap(n,t)}},b=function(t){return function(n){return e.ap(e.map(n,function(e){return function(){return e}}),t)}};m.ap=x,m.apFirst=b,m.apSecond=function(t){return function(n){return e.ap(e.map(n,function(){return function(e){return e}}),t)}}}if("function"==typeof e.chain){var C=function(t){return function(n){return e.chain(n,t)}},S=function(t){return function(n){return e.chain(n,function(n){return e.map(t(n),function(){return n})})}},w=function(t){return e.chain(t,Z)};m.chain=C,m.chainFirst=S,m.flatten=w}if("function"==typeof e.bimap){var I=function(t,n){return function(r){return e.bimap(r,t,n)}},_=function(t){return function(n){return e.mapLeft(n,t)}};m.bimap=I,m.mapLeft=_}if("function"==typeof e.extend){var T=function(t){return function(n){return e.extend(n,t)}},O=function(t){return e.extend(t,Z)};m.extend=T,m.duplicate=O}if("function"==typeof e.reduce){var R=function(t,n){return function(r){return e.reduce(r,t,n)}},k=function(t){var n=e.foldMap(t);return function(e){return function(t){return n(t,e)}}},E=function(t,n){return function(r){return e.reduceRight(r,t,n)}};m.reduce=R,m.foldMap=k,m.reduceRight=E}if("function"==typeof e.reduceWithIndex){var M=function(t,n){return function(r){return e.reduceWithIndex(r,t,n)}},F=function(t){var n=e.foldMapWithIndex(t);return function(e){return function(t){return n(t,e)}}},j=function(t,n){return function(r){return e.reduceRightWithIndex(r,t,n)}};m.reduceWithIndex=M,m.foldMapWithIndex=F,m.reduceRightWithIndex=j}if("function"==typeof e.alt){var U=function(t){return function(n){return e.alt(n,t)}};m.alt=U}if("function"==typeof e.compact&&(m.compact=e.compact,m.separate=e.separate),"function"==typeof e.filter){var K=function(t){return function(n){return e.filter(n,t)}},L=function(t){return function(n){return e.filterMap(n,t)}},B=function(t){return function(n){return e.partition(n,t)}},P=function(t){return function(n){return e.partitionMap(n,t)}};m.filter=K,m.filterMap=L,m.partition=B,m.partitionMap=P}if("function"==typeof e.filterWithIndex){var W=function(t){return function(n){return e.filterWithIndex(n,t)}},D=function(t){return function(n){return e.filterMapWithIndex(n,t)}},N=function(t){return function(n){return e.partitionWithIndex(n,t)}},q=function(t){return function(n){return e.partitionMapWithIndex(n,t)}};m.filterWithIndex=W,m.filterMapWithIndex=D,m.partitionWithIndex=N,m.partitionMapWithIndex=q}if("function"==typeof e.promap){var Q=function(t,n){return function(r){return e.promap(r,t,n)}};m.promap=Q}if("function"==typeof e.compose){var V=function(t){return function(n){return e.compose(n,t)}};m.compose=V}if("function"==typeof e.throwError){var z=function(t){return function(n){return"None"===n._tag?e.throwError(t()):e.of(n.value)}},Y=function(t){return"Left"===t._tag?e.throwError(t.left):e.of(t.right)},H=function(t,n){return function(r){return t(r)?e.of(r):e.throwError(n(r))}},J=function(t,n){return function(r){return e.chain(r,function(r){return t(r)?e.of(r):e.throwError(n(r))})}};m.fromOption=z,m.fromEither=Y,m.fromPredicate=H,m.filterOrElse=J}return m}},Symbol.toStringTag,{value:"Module"})),bN=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),bq=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var bQ=function(){return Math.random()};function bV(e,t){return ea(bQ,mM(function(n){return Math.floor((t-e+1)*n+e)}))}var bz=ea(bQ,mM(function(e){return e<.5})),bY=function(e){return ea(bV(0,e.length-1),mM(function(t){return e[t]}))};let bH=Object.freeze(Object.defineProperty({__proto__:null,random:bQ,randomBool:bz,randomElem:bY,randomInt:bV,randomRange:function(e,t){return ea(bQ,mM(function(n){return(t-e)*n+e}))}},Symbol.toStringTag,{value:"Module"}));var bZ=pU(Aq),bJ=pj(Aq),bG=pK(AD),b$=pL(AD),bX=pH(AD),b0=pZ(AZ),b1=pJ(AZ),b2=p1(AD),b6=pG(AZ),b5=p$(AZ),b3=pX(AZ),b9=p0(AD),b4=function(e,t){return ea(e,Cr(t))},b7=function(e,t,n){return ea(e,Ci(t,n))},b8=function(e,t){return ea(e,Co(t))},Ce=function(e,t){return ea(e,Ca(t))},Ct=function(e,t){return ea(e,Cu(t))},Cn=function(e,t){return ea(e,Cl(t))},Cr=pD(AD),Ci=pV(AD),Co=pz(AD),Ca=pN(AQ),Cu=pq(AZ),Cs=Cu(Z),Cl=pQ(AZ),Cc="ReaderEither",Cd=function(e){var t=fM(e);return{URI:Cc,_E:void 0,compact:dX(AD,t),separate:d0(AD,t,fB)}};function Cf(e){var t=eT(AQ,fU(e));return{URI:Cc,_E:void 0,map:b4,ap:function(e,n){return ea(e,t(n))},of:bJ}}function Cp(e){var t=pY(AZ,e);return{URI:Cc,_E:void 0,map:b4,alt:function(e,n){return ea(e,t(n))}}}var CA={URI:Cc,map:b4},Ch=eB(CA),Cm={URI:Cc,map:b4,ap:Ce},Cg=eO(Cm),Cy=eR(Cm),Cv={URI:Cc,map:b4,ap:Ce,of:bJ},Cx={URI:Cc,map:b4,ap:Ce,chain:Ct},Cb=eV(Cx),CC={URI:Cc,fromReader:bG},CS=A8(CC),Cw=he(CC),CI=ht(CC),C_=hn(CC,Cx),CT=hr(CC,Cx),CO={URI:Cc,fromEither:J},CR=eH(CO),Ck=eJ(CO),CE=eG(CO,Cx),CM=eX(CO,Cx),CF=e0(CO,Cx),Cj=eZ(CO),CU=e1(CO,Cx),CK=e$(CO),CL=bJ(ew),CB=eP(CA),CP=ez(Cx),CW=ek(Cm),CD=bJ(eS),CN=function(e){return et(A2(e),AT(pw(eu)))},Cq=function(e){var t=CN(e);return function(e){return ex(e)?t(e):CD}},CQ=function(e){return Cq(function(t,n){return e(n)})},CV=CQ(Z),Cz=eE(Cm),CY=eN(Cv),CH=function(e){return eE(AQ)(fE(e))};let CZ=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:Cc,map:b4,alt:Cn},ApT:CD,Applicative:Cv,Apply:Cm,Bifunctor:{URI:Cc,bimap:b7,mapLeft:b8},Chain:Cx,Do:CL,FromEither:CO,FromReader:CC,Functor:CA,Monad:{URI:Cc,map:b4,ap:Ce,of:bJ,chain:Ct},MonadThrow:{URI:Cc,map:b4,ap:Ce,of:bJ,chain:Ct,throwError:bZ},Pointed:{URI:Cc,of:bJ},URI:Cc,alt:Cl,altW:Cl,ap:Ca,apFirst:Cg,apFirstW:Cg,apS:CW,apSW:CW,apSecond:Cy,apSecondW:Cy,apW:Ca,ask:CS,asks:Cw,asksReaderEither:Ab,asksReaderEitherW:Ab,bimap:Ci,bind:CP,bindTo:CB,bindW:CP,chain:Cu,chainEitherK:CM,chainEitherKW:CM,chainFirst:Cb,chainFirstEitherK:CF,chainFirstEitherKW:CF,chainFirstReaderK:CT,chainFirstReaderKW:CT,chainFirstW:Cb,chainOptionK:CE,chainReaderK:C_,chainReaderKW:C_,chainW:Cu,filterOrElse:CU,filterOrElseW:CU,flap:Ch,flatten:Cs,flattenW:Cs,fold:b0,foldW:b0,fromEither:J,fromEitherK:CK,fromOption:CR,fromOptionK:Ck,fromPredicate:Cj,fromReader:bG,fromReaderK:CI,getAltReaderValidation:Cp,getApplicativeReaderValidation:Cf,getApplyMonoid:CY,getApplySemigroup:Cz,getCompactable:Cd,getFilterable:function(e){var t=fF(e),n=Cd(e),r=p8(AD,t),i=Ae(AD,t),o=At(AD,t),a=An(AD,t);return{URI:Cc,_E:void 0,map:b4,compact:n.compact,separate:n.separate,filter:function(e,t){return ea(e,r(t))},filterMap:function(e,t){return ea(e,i(t))},partition:function(e,t){return ea(e,o(t))},partitionMap:function(e,t){return ea(e,a(t))}}},getOrElse:b1,getOrElseW:b1,getReaderValidation:function(e){var t=Cf(e),n=Cp(e);return{URI:Cc,_E:void 0,map:b4,ap:t.ap,of:bJ,chain:Ct,bimap:b7,mapLeft:b8,alt:n.alt,throwError:bZ}},getSemigroup:CH,left:bZ,leftReader:b$,local:Ax,map:Cr,mapLeft:Co,match:bX,matchE:b0,matchEW:b0,matchW:bX,of:bJ,orElse:b6,orElseFirst:b5,orElseFirstW:b5,orElseW:b6,orLeft:b3,readerEither:{URI:Cc,bimap:b7,mapLeft:b8,map:b4,of:bJ,ap:Ce,chain:Ct,alt:Cn,throwError:bZ},right:bJ,rightReader:bG,sequenceArray:CV,swap:b9,throwError:bZ,toUnion:b2,traverseArray:CQ,traverseArrayWithIndex:Cq,traverseReadonlyArrayWithIndex:Cq,traverseReadonlyNonEmptyArrayWithIndex:CN},Symbol.toStringTag,{value:"Module"}));function CJ(e){return function(t){return function(){return e.of(t)}}}function CG(e){return function(t){return function(n){return function(r){return e.map(n(r),t)}}}}function C$(e){return function(t){return function(n){return function(r){return e.ap(n(r),t(r))}}}}function CX(e){return function(t){return function(n){return function(r){return e.chain(n(r),function(e){return t(e)(r)})}}}}function C0(e){return function(t){return et(t,e.of)}}let C1=Object.freeze(Object.defineProperty({__proto__:null,ap:C$,chain:CX,fromNaturalTransformation:function(e){return function(t){return et(t,e)}},fromReader:C0,getReaderM:function(e){var t=C$(e),n=CG(e),r=CX(e);return{map:function(e,t){return ea(e,n(t))},ap:function(e,n){return ea(e,t(n))},of:CJ(e),chain:function(e,t){return ea(e,r(t))},ask:function(){return e.of},asks:function(t){return et(t,e.of)},local:function(e,t){return function(n){return e(t(n))}},fromReader:C0(e),fromM:function(e){return function(){return e}}}},map:CG,of:CJ},Symbol.toStringTag,{value:"Module"}));var C2=function(e){return function(){return Promise.resolve().then(e)}},C6=function(e,t){return ea(e,C4(t))},C5=function(e,t){return ea(e,C7(t))},C3=function(e,t){return ea(e,Se(function(e){return ea(t,C4(e))}))},C9=function(e,t){return ea(e,Se(t))},C4=function(e){return function(t){return function(){return Promise.resolve().then(t).then(e)}}},C7=function(e){return function(t){return function(){return Promise.all([Promise.resolve().then(t),Promise.resolve().then(e)]).then(function(e){var t;return(0,e[0])(e[1])})}}},C8=function(e){return function(){return Promise.resolve(e)}},Se=function(e){return function(t){return function(){return Promise.resolve().then(t).then(function(t){return e(t)()})}}},St=Se(Z),Sn="Task",Sr={URI:Sn,map:C6},Si=eB(Sr),So={URI:Sn,of:C8},Sa={URI:Sn,map:C6,ap:C5},Su=eO(Sa),Ss=eR(Sa),Sl={URI:Sn,map:C6,ap:C5,of:C8},Sc={URI:Sn,map:C6,ap:C3},Sd={URI:Sn,map:C6,ap:C3,of:C8},Sf={URI:Sn,map:C6,ap:C5,chain:C9},Sp={URI:Sn,map:C6,of:C8,ap:C5,chain:C9},SA=eV(Sf),Sh={URI:Sn,fromIO:C2},Sm=Ah(Sh),Sg=Am(Sh,Sf),Sy=Ag(Sh,Sf),Sv=function(){return new Promise(function(e){})},Sx=C8(ew),Sb=eP(Sr),SC=ez(Sf),SS=ek(Sa),Sw=C8(eS),SI=function(e){return function(t){return function(){return Promise.all(t.map(function(t,n){return Promise.resolve().then(function(){return e(n,t)()})}))}}},S_=function(e){var t=SI(e);return function(e){return ex(e)?t(e):Sw}},ST=function(e){return function(t){return function(){return eC(t).reduce(function(t,n,r){return t.then(function(t){return Promise.resolve().then(e(r+1,n)).then(function(e){return t.push(e),t})})},Promise.resolve().then(e(0,eb(t))).then(ev))}}},SO=function(e){var t=ST(e);return function(e){return ex(e)?t(e):Sw}},SR=function(e){return S_(function(t,n){return e(n)})},Sk=SR(Z),SE=function(e){return SO(function(t,n){return e(n)})},SM=SE(Z),SF=eE(Sc),Sj=eN(Sd);let SU=Object.freeze(Object.defineProperty({__proto__:null,ApT:Sw,ApplicativePar:Sl,ApplicativeSeq:Sd,ApplyPar:Sa,ApplySeq:Sc,Chain:Sf,Do:Sx,FromIO:Sh,FromTask:{URI:Sn,fromIO:C2,fromTask:Z},Functor:Sr,Monad:Sp,MonadIO:{URI:Sn,map:C6,of:C8,ap:C5,chain:C9,fromIO:C2},MonadTask:{URI:Sn,map:C6,of:C8,ap:C5,chain:C9,fromIO:C2,fromTask:Z},Pointed:So,URI:Sn,ap:C7,apFirst:Su,apS:SS,apSecond:Ss,bind:SC,bindTo:Sb,chain:Se,chainFirst:SA,chainFirstIOK:Sy,chainIOK:Sg,delay:function(e){return function(t){return function(){return new Promise(function(n){setTimeout(function(){Promise.resolve().then(t).then(n)},e)})}}},flap:Si,flatten:St,fromIO:C2,fromIOK:Sm,fromTask:Z,getMonoid:Sj,getRaceMonoid:function(){return{concat:function(e,t){return function(){return Promise.race([Promise.resolve().then(e),Promise.resolve().then(t)])}},empty:Sv}},getSemigroup:SF,map:C4,never:Sv,of:C8,sequenceArray:Sk,sequenceSeqArray:SM,task:{URI:Sn,map:C6,of:C8,ap:C5,chain:C9,fromIO:C2,fromTask:Z},taskSeq:{URI:Sn,map:C6,of:C8,ap:C3,chain:C9,fromIO:C2,fromTask:Z},traverseArray:SR,traverseArrayWithIndex:S_,traverseReadonlyArrayWithIndex:S_,traverseReadonlyArrayWithIndexSeq:SO,traverseReadonlyNonEmptyArrayWithIndex:SI,traverseReadonlyNonEmptyArrayWithIndexSeq:ST,traverseSeqArray:SE,traverseSeqArrayWithIndex:SO},Symbol.toStringTag,{value:"Module"}));var SK=C0(So),SL=et(C2,J),SB=function(e,t){return ea(e,SN(t))},SP=function(e,t){return ea(e,Sq(t))},SW=function(e,t){return ea(e,SV(function(e){return ea(t,SN(e))}))},SD=function(e,t){return ea(e,SV(t))},SN=CG(Sr),Sq=C$(Sa),SQ=CJ(So),SV=CX(Sp),Sz=SV(Z),SY="ReaderTask",SH={URI:SY,map:SB},SZ=eB(SH),SJ={URI:SY,of:SQ},SG={URI:SY,map:SB,ap:SP},S$=eO(SG),SX=eR(SG),S0={URI:SY,map:SB,ap:SW},S1={URI:SY,map:SB,ap:SW,of:SQ},S2={URI:SY,map:SB,ap:SP,chain:SD},S6={URI:SY,map:SB,of:SQ,ap:SP,chain:SD},S5=eV(S2),S3={URI:SY,fromIO:SL},S9=Ah(S3),S4=Am(S3,S2),S7=Ag(S3,S2),S8={URI:SY,fromReader:SK},we=A8(S8),wt=he(S8),wn=ht(S8),wr=hn(S8,S2),wi=hr(S8,S2),wo={URI:SY,fromIO:SL,fromTask:J},wa=hV(wo),wu=hz(wo,S2),ws=hY(wo,S2),wl=SQ(ew),wc=eP(SH),wd=ez(S2),wf=ek(SG),wp=SQ(eS),wA=function(e){return et(A2(e),AT(SI(eu)))},wh=function(e){var t=wA(e);return function(e){return ex(e)?t(e):wp}},wm=function(e){return et(A2(e),AT(ST(eu)))},wg=function(e){var t=wm(e);return function(e){return ex(e)?t(e):wp}},wy=function(e){return wh(function(t,n){return e(n)})},wv=wy(Z),wx=function(e){return wg(function(t,n){return e(n)})},wb=wx(Z),wC=eE(S0),wS=eN(S1);function ww(e,t){return e(t)()}let wI=Object.freeze(Object.defineProperty({__proto__:null,ApT:wp,ApplicativePar:{URI:SY,map:SB,ap:SP,of:SQ},ApplicativeSeq:S1,ApplyPar:SG,ApplySeq:S0,Chain:S2,Do:wl,FromIO:S3,FromReader:S8,FromTask:wo,Functor:SH,Monad:S6,MonadIO:{URI:SY,map:SB,of:SQ,ap:SP,chain:SD,fromIO:SL},MonadTask:{URI:SY,map:SB,of:SQ,ap:SP,chain:SD,fromIO:SL,fromTask:J},Pointed:SJ,URI:SY,ap:Sq,apFirst:S$,apS:wf,apSW:wf,apSecond:SX,apW:Sq,ask:we,asks:wt,asksReaderTask:Ab,asksReaderTaskW:Ab,bind:wd,bindTo:wc,bindW:wd,chain:SV,chainFirst:S5,chainFirstIOK:S7,chainFirstReaderK:wi,chainFirstReaderKW:wi,chainFirstTaskK:ws,chainFirstW:S5,chainIOK:S4,chainReaderK:wr,chainReaderKW:wr,chainTaskK:wu,chainW:SV,flap:SZ,flatten:Sz,flattenW:Sz,fromIO:SL,fromIOK:S9,fromReader:SK,fromReaderK:wn,fromTask:J,fromTaskK:wa,getMonoid:wS,getSemigroup:wC,local:Ax,map:SN,of:SQ,readerTask:{URI:SY,map:SB,of:SQ,ap:SP,chain:SD,fromIO:SL,fromTask:J},readerTaskSeq:{URI:SY,map:SB,of:SQ,ap:SW,chain:SD,fromIO:SL,fromTask:J},run:ww,sequenceArray:wv,sequenceSeqArray:wb,traverseArray:wy,traverseArrayWithIndex:wh,traverseReadonlyArrayWithIndex:wh,traverseReadonlyArrayWithIndexSeq:wg,traverseReadonlyNonEmptyArrayWithIndex:wA,traverseReadonlyNonEmptyArrayWithIndexSeq:wm,traverseSeqArray:wx,traverseSeqArrayWithIndex:wg},Symbol.toStringTag,{value:"Module"}));var w_=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},wT=pU(So),wO=pj(So),wR=pK(Sr),wk=pL(Sr),wE=et(C2,wR),wM=et(C2,wk),wF=function(e){return C4(f9(e))},wj=pH(Sr),wU=pZ(Sp),wK=pJ(Sp),wL=function(e,t){return function(){var n,r,i,o;return n=void 0,r=void 0,i=void 0,o=function(){var n;return w_(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e().then(ey)];case 1:return[2,n.sent()];case 2:return[2,eg(t(n.sent()))];case 3:return[2]}})},new(i||(i=Promise))(function(e,t){function a(e){try{s(o.next(e))}catch(n){t(n)}}function u(e){try{s(o.throw(e))}catch(n){t(n)}}function s(t){var n;t.done?e(t.value):((n=t.value)instanceof i?n:new i(function(e){e(n)})).then(a,u)}s((o=o.apply(n,r||[])).next())})}},wB=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return wL(function(){return e.apply(void 0,n)},t)}},wP=p1(Sr),wW=pB(So),wD=pP(So),wN=pW(Sp),wq=pG(Sp),wQ=p$(Sp),wV=function(e){return wQ(IT(e))},wz=function(e){return wQ(IE(e))},wY=pX(Sp),wH=p0(Sr),wZ=function(e){var t=wF(e);return function(e){return et(e,t)}},wJ=function(e){return function(t){return function(n){return ea(n,Ie(wZ(e)(t)))}}},wG=function(e){return et(e,C2)},w$=function(e){return It(wG(e))},wX=function(e,t){return ea(e,w9(t))},w0=function(e,t){return ea(e,w8(t))},w1=function(e,t){return ea(e,Ie(function(e){return ea(t,w9(e))}))},w2=function(e,t){return ea(e,Ie(t))},w6=function(e,t,n){return ea(e,w4(t,n))},w5=function(e,t){return ea(e,w7(t))},w3=function(e,t){return ea(e,Ir(t))},w9=pD(Sr),w4=pV(Sr),w7=pz(Sr),w8=pN(Sa),Ie=pq(Sp),It=Ie,In=It(Z),Ir=pQ(Sp),Ii="TaskEither";function Io(e,t){var n=eT(e,fU(t));return{URI:Ii,_E:void 0,map:wX,ap:function(e,t){return ea(e,n(t))},of:wO}}function Ia(e){var t=pY(Sp,e);return{URI:Ii,_E:void 0,map:wX,alt:function(e,n){return ea(e,t(n))}}}var Iu=function(e){var t=fM(e);return{URI:Ii,_E:void 0,compact:dX(Sr,t),separate:d0(Sr,t,fB)}},Is={URI:Ii,map:wX},Il=eB(Is),Ic={URI:Ii,map:wX,ap:w0},Id=eO(Ic),If=eR(Ic),Ip={URI:Ii,map:wX,ap:w1},IA={URI:Ii,map:wX,ap:w1,of:wO},Ih={URI:Ii,map:wX,ap:w0,chain:w2},Im=eV(Ih),Ig={URI:Ii,fromEither:C8},Iy=eH(Ig),Iv=eJ(Ig),Ix=eG(Ig,Ih),Ib=eX(Ig,Ih),IC=e0(Ig,Ih),IS=eZ(Ig),Iw=e1(Ig,Ih),II=e$(Ig),I_={URI:Ii,fromIO:wE},IT=Ah(I_),IO=Am(I_,Ih),IR=Ag(I_,Ih),Ik={URI:Ii,fromIO:wE,fromTask:wR},IE=hV(Ik),IM=hz(Ik,Ih),IF=hY(Ik,Ih),Ij=function(e,t,n){return IU(e,t,n)},IU=function(e,t,n){return ea(e,It(function(e){return ea(t(e),Se(function(t){return ea(n(e,t),It(function(){return C8(t)}))}))}))},IK=wO(ew),IL=eP(Is),IB=ez(Ih),IP=ek(Ic),IW=wO(eS),ID=function(e){return et(SI(e),C4(pw(eu)))},IN=function(e){var t=ID(e);return function(e){return ex(e)?t(e):IW}},Iq=function(e){return function(t){return function(){return eC(t).reduce(function(t,n,r){return t.then(function(i){return eh(i)?t:e(r+1,n)().then(function(e){return eh(e)?e:(i.right.push(e.right),i)})})},e(0,eb(t))().then(fL(ev)))}}},IQ=function(e){var t=Iq(e);return function(e){return ex(e)?t(e):IW}},IV=function(e){return IN(function(t,n){return e(n)})},Iz=IV(Z),IY=function(e){return IQ(function(t,n){return e(n)})},IH=IY(Z),IZ=eE(Ip),IJ=eN(IA),IG=function(e){return eE(Sc)(fE(e))};let I$=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:Ii,map:wX,alt:w3},ApT:IW,ApplicativePar:{URI:Ii,map:wX,ap:w0,of:wO},ApplicativeSeq:IA,ApplyPar:Ic,ApplySeq:Ip,Bifunctor:{URI:Ii,bimap:w6,mapLeft:w5},Chain:Ih,Do:IK,FromEither:Ig,FromIO:I_,FromTask:Ik,Functor:Is,Monad:{URI:Ii,map:wX,ap:w0,chain:w2,of:wO},MonadIO:{URI:Ii,map:wX,ap:w0,chain:w2,of:wO,fromIO:wE},MonadTask:{URI:Ii,map:wX,ap:w0,chain:w2,of:wO,fromIO:wE,fromTask:wR},MonadThrow:{URI:Ii,map:wX,ap:w0,chain:w2,of:wO,throwError:wT},Pointed:{URI:Ii,of:wO},URI:Ii,alt:Ir,altW:Ir,ap:w8,apFirst:Id,apFirstW:Id,apS:IP,apSW:IP,apSecond:If,apSecondW:If,apW:w8,bimap:w4,bind:IB,bindTo:IL,bindW:IB,bracket:Ij,bracketW:IU,chain:Ie,chainEitherK:Ib,chainEitherKW:Ib,chainFirst:Im,chainFirstEitherK:IC,chainFirstEitherKW:IC,chainFirstIOK:IR,chainFirstTaskK:IF,chainFirstW:Im,chainIOEitherK:w$,chainIOEitherKW:w$,chainIOK:IO,chainNullableK:wN,chainOptionK:Ix,chainTaskK:IM,chainTaskOptionK:wJ,chainTaskOptionKW:wJ,chainW:It,filterOrElse:Iw,filterOrElseW:Iw,flap:Il,flatten:In,flattenW:In,fold:wU,foldW:wU,fromEither:C8,fromEitherK:II,fromIO:wE,fromIOEither:C2,fromIOEitherK:wG,fromIOK:IT,fromNullable:wW,fromNullableK:wD,fromOption:Iy,fromOptionK:Iv,fromPredicate:IS,fromTask:wR,fromTaskK:IE,fromTaskOption:wF,fromTaskOptionK:wZ,getAltTaskValidation:Ia,getApplicativeTaskValidation:Io,getApplyMonoid:IJ,getApplySemigroup:IZ,getCompactable:Iu,getFilterable:function(e){var t=fF(e),n=Iu(e),r=p8(Sr,t),i=Ae(Sr,t),o=At(Sr,t),a=An(Sr,t);return{URI:Ii,_E:void 0,map:wX,compact:n.compact,separate:n.separate,filter:function(e,t){return ea(e,r(t))},filterMap:function(e,t){return ea(e,i(t))},partition:function(e,t){return ea(e,o(t))},partitionMap:function(e,t){return ea(e,a(t))}}},getOrElse:wK,getOrElseW:wK,getSemigroup:IG,getTaskValidation:function(e){var t=Io(Sl,e),n=Ia(e);return{URI:Ii,_E:void 0,map:wX,ap:t.ap,of:wO,chain:w2,bimap:w6,mapLeft:w5,alt:n.alt,fromIO:wE,fromTask:wR,throwError:wT}},left:wT,leftIO:wM,leftTask:wk,map:w9,mapLeft:w7,match:wj,matchE:wU,matchEW:wU,matchW:wj,of:wO,orElse:wq,orElseFirst:wQ,orElseFirstIOK:wV,orElseFirstTaskK:wz,orElseFirstW:wQ,orElseW:wq,orLeft:wY,right:wO,rightIO:wE,rightTask:wR,sequenceArray:Iz,sequenceSeqArray:IH,swap:wH,taskEither:{URI:Ii,bimap:w6,mapLeft:w5,map:wX,of:wO,ap:w0,chain:w2,alt:w3,fromIO:wE,fromTask:wR,throwError:wT},taskEitherSeq:{URI:Ii,bimap:w6,mapLeft:w5,map:wX,of:wO,ap:w1,chain:w2,alt:w3,fromIO:wE,fromTask:wR,throwError:wT},taskify:function(e){return function(){var t=Array.prototype.slice.call(arguments);return function(){return new Promise(function(n){var r=function(e,t){return null!=e?n(eg(e)):n(ey(t))};e.apply(null,t.concat(r))})}}},throwError:wT,toUnion:wP,traverseArray:IV,traverseArrayWithIndex:IN,traverseReadonlyArrayWithIndex:IN,traverseReadonlyArrayWithIndexSeq:IQ,traverseReadonlyNonEmptyArrayWithIndex:ID,traverseReadonlyNonEmptyArrayWithIndexSeq:Iq,traverseSeqArray:IY,traverseSeqArrayWithIndex:IQ,tryCatch:wL,tryCatchK:wB},Symbol.toStringTag,{value:"Module"}));var IX=pU(SJ),I0=pj(SJ),I1=et(wR,J),I2=et(wk,J),I6=function(e){return et(e,wO)},I5=function(e){return et(e,wT)},I3=pK(SH),I9=pL(SH),I4=et(wE,J),I7=et(wM,J),I8=et(C2,J),_e=function(e){return et(e,C8)},_t=pH(SH),_n=pZ(S2),_r=pJ(S6),_i=p1(SH),_o=pB(SJ),_a=pP(SJ),_u=pW(S6),_s=pG(S6),_l=p$(S6),_c=pX(S6),_d=p0(SH),_f=function(e){return et(e,I8)},_p=function(e){return _M(_f(e))},_A=function(e){return et(e,J)},_h=function(e){return _M(_A(e))},_m=function(e){return _Z(_A(e))},_g=function(e){return et(e,_e)},_y=function(e){return _M(_g(e))},_v=function(e){return _Z(_g(e))},_x=function(e,t){return ea(e,_T(t))},_b=function(e,t){return ea(e,_k(t))},_C=function(e,t){return ea(e,_E(function(e){return ea(t,_T(e))}))},_S=function(e,t){return ea(e,_E(t))},_w=function(e,t){return ea(e,_j(t))},_I=function(e,t,n){return ea(e,_O(t,n))},__=function(e,t){return ea(e,_R(t))},_T=pD(SH),_O=pV(SH),_R=pz(SH),_k=pN(SG),_E=pq(S6),_M=_E,_F=_M(Z),_j=pQ(S6),_U="ReaderTaskEither",_K=function(e){var t=fM(e);return{URI:_U,_E:void 0,compact:dX(SH,t),separate:d0(SH,t,fB)}};function _L(e,t){var n=eT(AQ,Io(e,t));return{URI:_U,_E:void 0,map:_x,ap:function(e,t){return ea(e,n(t))},of:I0}}function _B(e){var t=pY(S6,e);return{URI:_U,_E:void 0,map:_x,alt:function(e,n){return ea(e,t(n))}}}var _P={URI:_U,map:_x},_W=eB(_P),_D={URI:_U,of:I0},_N={URI:_U,map:_x,ap:_b},_q=eO(_N),_Q=eR(_N),_V={URI:_U,map:_x,ap:_C},_z={URI:_U,map:_x,ap:_C,of:I0},_Y={URI:_U,map:_x,ap:_b,chain:_S},_H=eV(_Y),_Z=_H,_J={URI:_U,fromReader:I6},_G=A8(_J),_$=he(_J),_X=ht(_J),_0=hn(_J,_Y),_1=hr(_J,_Y),_2=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return I3(e.apply(void 0,t))}},_6=function(e){return _M(_2(e))},_5=function(e){return _Z(_2(e))},_3={URI:_U,fromEither:SQ},_9=eH(_3),_4=eJ(_3),_7=eG(_3,_Y),_8=eX(_3,_Y),Te=e0(_3,_Y),Tt=eZ(_3),Tn=e1(_3,_Y),Tr=e$(_3),Ti={URI:_U,fromIO:I4},To=Ah(Ti),Ta=Am(Ti,_Y),Tu=Ag(Ti,_Y),Ts={URI:_U,fromIO:I4,fromTask:I1},Tl=hV(Ts),Tc=hz(Ts,_Y),Td=hY(Ts,_Y);function Tf(e,t,n){return Tp(e,t,n)}function Tp(e,t,n){return function(r){return IU(e(r),function(e){return t(e)(r)},function(e,t){return n(e,t)(r)})}}var TA=I0(ew),Th=eP(_P),Tm=ez(_Y),Tg=ek(_N),Ty=I0(eS),Tv=function(e){return et(A2(e),AT(ID(eu)))},Tx=function(e){var t=Tv(e);return function(e){return ex(e)?t(e):Ty}},Tb=function(e){return et(A2(e),AT(Iq(eu)))},TC=function(e){var t=Tb(e);return function(e){return ex(e)?t(e):Ty}},TS=function(e){return Tx(function(t,n){return e(n)})},Tw=TS(Z),TI=function(e){return TC(function(t,n){return e(n)})},T_=TI(Z),TT=eE(_V),TO=eN(_z),TR=function(e){return eE(S0)(fE(e))};function Tk(e,t){return e(t)()}let TE=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:_U,map:_x,alt:_w},ApT:Ty,ApplicativePar:{URI:_U,map:_x,ap:_b,of:I0},ApplicativeSeq:_z,ApplyPar:_N,ApplySeq:_V,Bifunctor:{URI:_U,bimap:_I,mapLeft:__},Chain:_Y,Do:TA,FromEither:_3,FromIO:Ti,FromReader:_J,FromTask:Ts,Functor:_P,Monad:{URI:_U,map:_x,ap:_b,chain:_S,of:I0},MonadIO:{URI:_U,map:_x,ap:_b,chain:_S,of:I0,fromIO:I4},MonadTask:{URI:_U,map:_x,ap:_b,chain:_S,of:I0,fromIO:I4,fromTask:I1},MonadThrow:{URI:_U,map:_x,ap:_b,chain:_S,of:I0,throwError:IX},Pointed:_D,URI:_U,alt:_j,altW:_j,ap:_k,apFirst:_q,apFirstW:_q,apS:Tg,apSW:Tg,apSecond:_Q,apSecondW:_Q,apW:_k,ask:_G,asks:_$,asksReaderTaskEither:Ab,asksReaderTaskEitherW:Ab,bimap:_O,bind:Tm,bindTo:Th,bindW:Tm,bracket:Tf,bracketW:Tp,chain:_E,chainEitherK:_8,chainEitherKW:_8,chainFirst:_H,chainFirstEitherK:Te,chainFirstEitherKW:Te,chainFirstIOK:Tu,chainFirstReaderEitherK:_v,chainFirstReaderEitherKW:_v,chainFirstReaderK:_1,chainFirstReaderKW:_1,chainFirstReaderTaskK:_5,chainFirstReaderTaskKW:_5,chainFirstTaskEitherK:_m,chainFirstTaskEitherKW:_m,chainFirstTaskK:Td,chainFirstW:_Z,chainIOEitherK:_p,chainIOEitherKW:_p,chainIOK:Ta,chainNullableK:_u,chainOptionK:_7,chainReaderEitherK:_y,chainReaderEitherKW:_y,chainReaderK:_0,chainReaderKW:_0,chainReaderTaskK:_6,chainReaderTaskKW:_6,chainTaskEitherK:_h,chainTaskEitherKW:_h,chainTaskK:Tc,chainW:_M,filterOrElse:Tn,filterOrElseW:Tn,flap:_W,flatten:_F,flattenW:_F,fold:_n,foldW:_n,fromEither:SQ,fromEitherK:Tr,fromIO:I4,fromIOEither:I8,fromIOEitherK:_f,fromIOK:To,fromNullable:_o,fromNullableK:_a,fromOption:_9,fromOptionK:_4,fromPredicate:Tt,fromReader:I6,fromReaderEither:_e,fromReaderEitherK:_g,fromReaderK:_X,fromReaderTaskK:_2,fromTask:I1,fromTaskEither:J,fromTaskEitherK:_A,fromTaskK:Tl,getAltReaderTaskValidation:_B,getApplicativeReaderTaskValidation:_L,getApplyMonoid:TO,getApplySemigroup:TT,getCompactable:_K,getFilterable:function(e){var t=fF(e),n=_K(e),r=p8(SH,t),i=Ae(SH,t),o=At(SH,t),a=An(SH,t);return{URI:_U,_E:void 0,map:_x,compact:n.compact,separate:n.separate,filter:function(e,t){return ea(e,r(t))},filterMap:function(e,t){return ea(e,i(t))},partition:function(e,t){return ea(e,o(t))},partitionMap:function(e,t){return ea(e,a(t))}}},getOrElse:_r,getOrElseW:_r,getReaderTaskValidation:function(e){var t=_L(Sl,e),n=_B(e);return{URI:_U,_E:void 0,map:_x,of:I0,chain:_S,bimap:_I,mapLeft:__,ap:t.ap,alt:n.alt,fromIO:I4,fromTask:I1,throwError:IX}},getSemigroup:TR,left:IX,leftIO:I7,leftReader:I5,leftReaderTask:I9,leftTask:I2,local:Ax,map:_T,mapLeft:_R,match:_t,matchE:_n,matchEW:_n,matchW:_t,of:I0,orElse:_s,orElseFirst:_l,orElseFirstW:_l,orElseW:_s,orLeft:_c,readerTaskEither:{URI:_U,map:_x,of:I0,ap:_b,chain:_S,alt:_w,bimap:_I,mapLeft:__,fromIO:I4,fromTask:I1,throwError:IX},readerTaskEitherSeq:{URI:_U,map:_x,of:I0,ap:_C,chain:_S,alt:_w,bimap:_I,mapLeft:__,fromIO:I4,fromTask:I1,throwError:IX},right:I0,rightIO:I4,rightReader:I6,rightReaderTask:I3,rightTask:I1,run:Tk,sequenceArray:Tw,sequenceSeqArray:T_,swap:_d,throwError:IX,toUnion:_i,traverseArray:TS,traverseArrayWithIndex:Tx,traverseReadonlyArrayWithIndex:Tx,traverseReadonlyArrayWithIndexSeq:TC,traverseReadonlyNonEmptyArrayWithIndex:Tv,traverseReadonlyNonEmptyArrayWithIndexSeq:Tb,traverseSeqArray:TI,traverseSeqArrayWithIndex:TC},Symbol.toStringTag,{value:"Module"}));var TM={equals:function(e,t){return e===t}},TF={concat:function(e,t){return e+t}},Tj={concat:TF.concat,empty:""},TU={equals:TM.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},TK=function(e){return"string"==typeof e},TL=function(e){return e.toUpperCase()},TB=function(e){return e.toLowerCase()},TP=function(e,t){return function(n){return n.replace(e,t)}},TW=function(e){return e.trim()},TD=function(e){return e.trimLeft()},TN=function(e){return e.trimRight()},Tq=function(e,t){return function(n){return n.slice(e,t)}},TQ=function(e){return 0===e.length},TV=function(e){return e.length},Tz=function(e){return function(t){var n=t.split(e);return ex(n)?n:[t]}},TY=function(e,t){return function(n){return n.includes(e,t)}},TH=function(e,t){return function(n){return n.startsWith(e,t)}},TZ=function(e,t){return function(n){return n.endsWith(e,t)}};let TJ=Object.freeze(Object.defineProperty({__proto__:null,Eq:TM,Monoid:Tj,Ord:TU,Semigroup:TF,Show:{show:function(e){return JSON.stringify(e)}},empty:"",endsWith:TZ,includes:TY,isEmpty:TQ,isString:TK,replace:TP,size:TV,slice:Tq,split:Tz,startsWith:TH,toLowerCase:TB,toUpperCase:TL,trim:TW,trimLeft:TD,trimRight:TN},Symbol.toStringTag,{value:"Module"}));var TG=function(e){return Object.assign({},e)},T$=function(e){return Object.assign({},e)},TX=function(e){return Object.keys(e).length},T0=function(e){for(var t in e)if(eI.call(e,t))return!1;return!0},T1=function(e){return function(t){return Object.keys(t).sort(e.compare)}},T2=T1(TU);function T6(e){if("function"==typeof e)return T6(TU)(e);var t=T1(e);return function(e){return function(n){for(var r=[],i=0,o=t(n);i<o.length;i++){var a=o[i];r.push(e(a,n[a]))}return r}}}var T5=T6(TU)(function(e,t){return[e,t]}),T3=function(e,t){return function(n){if(eI.call(n,e)&&n[e]===t)return n;var r=Object.assign({},n);return r[e]=t,r}},T9=function(e,t){return eI.call(t,e)};function T4(e){return function(t){if(!eI.call(t,e))return t;var n=Object.assign({},t);return delete n[e],n}}var T7=function(e,t){return function(n){if(!T9(e,n))return ep;if(n[e]===t)return eA(n);var r=Object.assign({},n);return r[e]=t,eA(r)}},T8=function(e,t){return function(n){if(!T9(e,n))return ep;var r=t(n[e]);if(r===n[e])return eA(n);var i=Object.assign({},n);return i[e]=r,eA(i)}};function Oe(e){return function(t,n){if(void 0===n){var r=Oe(e);return function(e){return r(e,t)}}for(var i in t)if(!eI.call(n,i)||!e.equals(t[i],n[i]))return!1;return!0}}function Ot(e,t){return void 0===t?function(t){return Ot(e,t)}:eI.call(t,e)?eA(t[e]):ep}var On={};function Or(e){return function(t){var n={};for(var r in t)eI.call(t,r)&&(n[r]=e(r,t[r]));return n}}function Oi(e){return Or(function(t,n){return e(n)})}function Oo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(2===e.length)return Oo(TU).apply(void 0,e);var n=T1(e[0]);return function(e,t){return function(r){for(var i=e,o=n(r),a=o.length,u=0;u<a;u++){var s=o[u];i=t(s,i,r[s])}return i}}}function Oa(e){if("compare"in e){var t=T1(e);return function(e){return function(n){return function(r){for(var i=e.empty,o=t(r),a=o.length,u=0;u<a;u++){var s=o[u];i=e.concat(i,n(s,r[s]))}return i}}}}return Oa(TU)(e)}function Ou(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(2===e.length)return Ou(TU).apply(void 0,e);var n=T1(e[0]);return function(e,t){return function(r){for(var i=e,o=n(r),a=o.length,u=a-1;u>=0;u--){var s=o[u];i=t(s,r[s],i)}return i}}}var Os=function(e,t){var n;return(n={})[e]=t,n};function Ol(e){var t=OV(TU)(e);return function(e){return function(n){return t(n,e)}}}function Oc(e){var t=Oq(TU)(e);return function(e){return function(n){return t(n,e)}}}function Od(e){return OQ(TU)(e)}var Of=function(e){var t=Oc(e);return function(n){return function(r){return e.map(ea(r,t(n)),OX)}}},Op=function(e){var t=Oc(e);return function(n){return function(r){return e.map(ea(r,t(n)),O0)}}};function OA(e){return function(t){var n={},r={};for(var i in t)if(eI.call(t,i)){var o=e(i,t[i]);switch(o._tag){case"Left":n[i]=o.left;break;case"Right":r[i]=o.right}}return oe(n,r)}}function Oh(e){return function(t){var n={},r={};for(var i in t)if(eI.call(t,i)){var o=t[i];e(i,o)?r[i]=o:n[i]=o}return oe(n,r)}}function Om(e){return function(t){var n={};for(var r in t)if(eI.call(t,r)){var i=e(r,t[r]);ef(i)&&(n[r]=i.value)}return n}}function Og(e){return function(t){var n={},r=!1;for(var i in t)if(eI.call(t,i)){var o=t[i];e(i,o)?n[i]=o:r=!0}return r?n:t}}function Oy(e,t){var n=Ov(e,t);return function(e){return n(e,Z)}}function Ov(e,t){return function(n,r){return t.reduce(n,{},function(t,n){var i=r(n),o=i[0],a=i[1];return t[o]=eI.call(t,o)?e.concat(t[o],a):a,t})}}var Ox=function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];t[r[0]]=r[1]}return t};function Ob(e){return function(t){for(var n in t)if(!e(t[n]))return!1;return!0}}function OC(e){return function(t){for(var n in t)if(e(t[n]))return!0;return!1}}function OS(e){return function(t,n){if(void 0===n){var r=OS(e);return function(e){return r(t,e)}}for(var i in n)if(e.equals(n[i],t))return!0;return!1}}var Ow=function(e){return function(t){return function(n){if(T0(n))return t;if(T0(t))return n;var r={};for(var i in n)T9(i,t)?r[i]=e.concat(n[i],t[i]):r[i]=n[i];for(var i in t)T9(i,r)||(r[i]=t[i]);return r}}},OI=function(e){return function(t){return function(n){if(T0(n)||T0(t))return On;var r={};for(var i in n)T9(i,t)&&(r[i]=e.concat(n[i],t[i]));return r}}},O_=function(e){return function(t){if(T0(t))return e;if(T0(e))return t;var n={};for(var r in t)T9(r,e)||(n[r]=t[r]);for(var r in e)T9(r,t)||(n[r]=e[r]);return n}},OT=function(e,t){return ea(e,Oi(t))},OO=function(e,t){return ea(e,Or(t))},OR=function(e){var t=OJ(e);return function(e,n,r){return ea(e,t(n,r))}},Ok=function(e){return function(t){var n=OG(e)(t);return function(e,t){return ea(e,n(t))}}},OE=function(e){var t=O$(e);return function(e,n,r){return ea(e,t(n,r))}},OM=function(e,t){return ea(e,Oz(t))},OF=function(e,t){return ea(e,OY(t))},Oj=function(e,t){return ea(e,OH(t))},OU=function(e,t){return ea(e,OZ(t))},OK=function(e){var t=Oo(e);return function(e,n,r){return ea(e,t(n,r))}},OL=function(e){var t=Oa(e);return function(e){var n=t(e);return function(e,t){return ea(e,n(t))}}},OB=function(e){var t=Ou(e);return function(e,n,r){return ea(e,t(n,r))}},OP=function(e,t){return ea(e,OA(t))},OW=function(e,t){return ea(e,Oh(t))},OD=function(e,t){return ea(e,Om(t))},ON=function(e,t){return ea(e,Og(t))},Oq=function(e){var t=OV(e);return function(e){var n=t(e);return function(e,t){return n(e,et(eu,t))}}},OQ=function(e){var t=Oq(e);return function(e){var n=t(e);return function(e){return n(e,Z)}}},OV=function(e){return function(t){var n=T1(e);return function(e,r){var i=n(e);if(0===i.length)return t.of(On);for(var o=t.of({}),a=function(n){o=t.ap(t.map(o,function(e){return function(t){var r;return Object.assign({},e,((r={})[n]=t,r))}}),r(n,e[n]))},u=0;u<i.length;u++)a(i[u]);return o}}},Oz=function(e){return Og(function(t,n){return e(n)})},OY=function(e){return Om(function(t,n){return e(n)})},OH=function(e){return Oh(function(t,n){return e(n)})},OZ=function(e){return OA(function(t,n){return e(n)})};function OJ(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=Oo(e[0]);return function(e,t){return n(e,function(e,n,r){return t(n,r)})}}return OJ(TU).apply(void 0,e)}function OG(e){if("compare"in e){var t=Oa(e);return function(e){var n=t(e);return function(e){return n(function(t,n){return e(n)})}}}return OG(TU)(e)}function O$(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=Ou(e[0]);return function(e,t){return n(e,function(e,n,r){return t(n,r)})}}return O$(TU).apply(void 0,e)}var OX=function(e){var t={};for(var n in e)if(eI.call(e,n)){var r=e[n];ef(r)&&(t[n]=r.value)}return t},O0=function(e){var t={},n={};for(var r in e)if(eI.call(e,r)){var i=e[r];eh(i)?t[r]=i.left:n[r]=i.right}return oe(t,n)},O1="ReadonlyRecord";function O2(e){return"compare"in e?function(t){return{show:function(n){var r=T6(e)(function(e,n){return"".concat(JSON.stringify(e),": ").concat(t.show(n))})(n).join(", ");return""===r?"{}":"{ ".concat(r," }")}}}:O2(TU)(e)}function O6(e){var t=Oe(e);return e6(function(e,n){return t(e)(n)&&t(n)(e)})}function O5(e){return{concat:function(t,n){if(T0(t))return n;if(T0(n))return t;var r=Object.assign({},t);for(var i in n)eI.call(n,i)&&(r[i]=eI.call(t,i)?e.concat(t[i],n[i]):n[i]);return r},empty:On}}var O3={URI:O1,map:OT},O9=eB(O3),O4=function(e){return{URI:O1,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e)}},O7=function(e){return{URI:O1,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e),reduceWithIndex:OK(e),foldMapWithIndex:OL(e),reduceRightWithIndex:OB(e)}},O8={URI:O1,compact:OX,separate:O0},Re=function(e){return{URI:O1,map:OT,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e),traverse:Oq(e),sequence:OQ(e)}},Rt=function(e){return{URI:O1,map:OT,mapWithIndex:OO,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e),reduceWithIndex:OK(e),foldMapWithIndex:OL(e),reduceRightWithIndex:OB(e),traverse:Oq(e),sequence:OQ(e),traverseWithIndex:OV(e)}},Rn=function(e){var t=Re(e);return{URI:O1,map:OT,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e),traverse:t.traverse,sequence:t.sequence,compact:OX,separate:O0,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU,wither:oA(t,O8),wilt:op(t,O8)}},Rr=function(e){var t=Ow(e);return{concat:function(e,n){return t(n)(e)}}},Ri=function(e){return{concat:Rr(e).concat,empty:On}},Ro=function(e){var t=OI(e);return{concat:function(e,n){return t(n)(e)}}},Ra=function(){return{concat:function(e,t){return O_(t)(e)}}},Ru={URI:O1,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU)},Rs={URI:O1,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),reduceWithIndex:OK(TU),foldMapWithIndex:OL(TU),reduceRightWithIndex:OB(TU)},Rl={URI:O1,map:OT,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),traverse:Oq(TU),sequence:Od},Rc={URI:O1,map:OT,mapWithIndex:OO,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),reduceWithIndex:OK(TU),foldMapWithIndex:OL(TU),reduceRightWithIndex:OB(TU),traverse:Oq(TU),sequence:Od,traverseWithIndex:OV(TU)},Rd=oA(Rl,O8),Rf=op(Rl,O8),Rp={URI:O1,map:OT,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),traverse:Oq(TU),sequence:Od,compact:OX,separate:O0,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU,wither:Rd,wilt:Rf};function RA(e,t){return eI.call(void 0===t?this:t,e)}var Rh={URI:O1,map:OT,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),traverse:Oq(TU),sequence:Od,compact:OX,separate:O0,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU,mapWithIndex:OO,reduceWithIndex:OK(TU),foldMapWithIndex:OL(TU),reduceRightWithIndex:OB(TU),filterMapWithIndex:OD,filterWithIndex:ON,partitionMapWithIndex:OP,partitionWithIndex:OW,traverseWithIndex:OV(TU),wither:Rd,wilt:Rf};let Rm=Object.freeze(Object.defineProperty({__proto__:null,Compactable:O8,Filterable:{URI:O1,map:OT,compact:OX,separate:O0,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU},FilterableWithIndex:{URI:O1,map:OT,mapWithIndex:OO,compact:OX,separate:O0,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU,filterMapWithIndex:OD,filterWithIndex:ON,partitionMapWithIndex:OP,partitionWithIndex:OW},Foldable:Ru,FoldableWithIndex:Rs,Functor:O3,FunctorWithIndex:{URI:O1,map:OT,mapWithIndex:OO},Traversable:Rl,TraversableWithIndex:Rc,URI:O1,Witherable:Rp,_filter:OM,_filterMap:OF,_filterMapWithIndex:OD,_filterWithIndex:ON,_foldMap:Ok,_foldMapWithIndex:OL,_map:OT,_mapWithIndex:OO,_partition:Oj,_partitionMap:OU,_partitionMapWithIndex:OP,_partitionWithIndex:OW,_reduce:OR,_reduceRight:OE,_reduceRightWithIndex:OB,_reduceWithIndex:OK,_sequence:OQ,_traverse:Oq,collect:T6,compact:OX,deleteAt:T4,difference:O_,elem:OS,empty:On,every:Ob,filter:Oz,filterMap:OY,filterMapWithIndex:Om,filterWithIndex:Og,flap:O9,foldMap:OG,foldMapWithIndex:Oa,fromEntries:Ox,fromFoldable:Oy,fromFoldableMap:Ov,fromRecord:TG,getDifferenceMagma:Ra,getEq:O6,getFoldable:O4,getFoldableWithIndex:O7,getIntersectionSemigroup:Ro,getMonoid:O5,getShow:O2,getTraversable:Re,getTraversableWithIndex:Rt,getUnionMonoid:Ri,getUnionSemigroup:Rr,getWitherable:Rn,has:T9,hasOwnProperty:RA,insertAt:T3,intersection:OI,isEmpty:T0,isSubrecord:Oe,keys:T2,lookup:Ot,map:Oi,mapWithIndex:Or,modifyAt:T8,partition:OH,partitionMap:OZ,partitionMapWithIndex:OA,partitionWithIndex:Oh,pop:function(e){var t=T4(e);return function(n){var r=Ot(e,n);return ed(r)?ep:eA([r.value,t(n)])}},readonlyRecord:Rh,reduce:OJ,reduceRight:O$,reduceRightWithIndex:Ou,reduceWithIndex:Oo,separate:O0,sequence:Od,singleton:Os,size:TX,some:OC,toEntries:T5,toReadonlyArray:T5,toRecord:T$,toUnfoldable:function(e){return function(t){var n=T5(t),r=n.length;return e.unfold(0,function(e){return e<r?eA([n[e],e+1]):ep})}},traverse:Oc,traverseWithIndex:Ol,union:Ow,updateAt:T7,upsertAt:T3,wilt:Op,wither:Of},Symbol.toStringTag,{value:"Module"}));var Rg=function(e){return new Set(e)},Ry=function(e){return new Set([e])},Rv=function(e){return function(t){for(var n=t.length,r=new Set,i=RB(e),o=0;o<n;o++){var a=t[o];i(a,r)||r.add(a)}return r}};function Rx(e){return function(t){for(var n,r=t.values(),i=new Set;!(n=r.next()).done;){var o=n.value;e(o)&&i.add(o)}return i}}function Rb(e){var t=RB(e);return function(n,r){if(void 0===r){var i=Rb(e);return function(e){return i(n,e)}}if(RF(n))return r;if(RF(r))return n;var o=new Set(n);return r.forEach(function(e){t(e,o)||o.add(e)}),o}}function RC(e){var t=RB(e);return function(n,r){if(void 0===r){var i=RC(e);return function(e){return i(e,n)}}if(RF(n)||RF(r))return RM;var o=new Set;return n.forEach(function(e){t(e,r)&&o.add(e)}),o}}function RS(e){var t=RB(e);return function(n,r){if(void 0===r){var i=RS(e);return function(e){return i(e,n)}}return Rx(function(e){return!t(e,r)})(n)}}function Rw(e){var t=RP(e);return function(e,n){return function(r){return t(r).reduce(n,e)}}}function RI(e,t){var n=RP(e);return function(e){return function(r){return n(r).reduce(function(n,r){return t.concat(n,e(r))},t.empty)}}}var R_=function(e){var t=RP(e);return function(e,n){return function(r){return t(r).reduceRight(function(e,t){return n(t,e)},e)}}};function RT(e){var t=RB(e);return function(e){return function(n){if(t(e)(n))return n;var r=new Set(n);return r.add(e),r}}}var RO=function(e){return function(t){return function(n){return Rx(function(n){return!e.equals(t,n)})(n)}}},RR=function(e){var t=RB(e),n=RO(e),r=RT(e);return function(e){return function(i){return(t(e,i)?n:r)(e)(i)}}},Rk=function(e){return RE(e)(Z)};function RE(e){var t=RB(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);"Some"!==i._tag||t(i.value,r)||r.add(i.value)}),r}}}var RM=new Set,RF=function(e){return 0===e.size},Rj=function(e){return e.size},RU=function(e){return function(t){for(var n,r=t.values(),i=!1;!i&&!(n=r.next()).done;)i=e(n.value);return i}};function RK(e){return cb(RU(cb(e)))}function RL(e){var t=RB(e);return function(n,r){if(void 0===r){var i=RL(e);return function(e){return i(e,n)}}return RK(function(e){return t(e,r)})(n)}}function RB(e){return function(t,n){if(void 0===n){var r=RB(e);return function(e){return r(t,e)}}for(var i,o=n.values(),a=!1;!a&&!(i=o.next()).done;)a=e.equals(t,i.value);return a}}var RP=function(e){return function(t){var n=[];return t.forEach(function(e){return n.push(e)}),n.sort(e.compare)}};function RW(e){return{show:function(t){var n=[];return t.forEach(function(t){n.push(e.show(t))}),"new Set([".concat(n.sort().join(", "),"])")}}}function RD(e){var t=RL(e);return e6(function(e,n){return t(e,n)&&t(n,e)})}var RN=function(e){return{concat:Rb(e)}},Rq=function(e){return{concat:RN(e).concat,empty:RM}},RQ=function(e){return{concat:RC(e)}},RV=function(e){return{concat:RS(e)}};let Rz=Object.freeze(Object.defineProperty({__proto__:null,URI:"ReadonlySet",chain:function(e){var t=RB(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){e(n).forEach(function(e){t(e,r)||r.add(e)})}),r}}},compact:Rk,difference:RS,elem:RB,empty:RM,every:RK,filter:Rx,filterMap:RE,foldMap:RI,fromArray:Rv,fromReadonlyArray:Rv,fromSet:Rg,getDifferenceMagma:RV,getEq:RD,getIntersectionSemigroup:RQ,getShow:RW,getUnionMonoid:Rq,getUnionSemigroup:RN,insert:RT,intersection:RC,isEmpty:RF,isSubset:RL,map:function(e){var t=RB(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);t(i,r)||r.add(i)}),r}}},partition:function(e){return function(t){for(var n,r=t.values(),i=new Set,o=new Set;!(n=r.next()).done;){var a=n.value;e(a)?i.add(a):o.add(a)}return oe(o,i)}},partitionMap:function(e,t){return function(n){return function(r){for(var i,o=r.values(),a=new Set,u=new Set,s=RB(e),l=RB(t);!(i=o.next()).done;){var c=n(i.value);switch(c._tag){case"Left":s(c.left,a)||a.add(c.left);break;case"Right":l(c.right,u)||u.add(c.right)}}return oe(a,u)}}},reduce:Rw,reduceRight:R_,remove:RO,separate:function(e,t){return function(n){var r=RB(e),i=RB(t),o=new Set,a=new Set;return n.forEach(function(e){switch(e._tag){case"Left":r(e.left,o)||o.add(e.left);break;case"Right":i(e.right,a)||a.add(e.right)}}),oe(o,a)}},singleton:Ry,size:Rj,some:RU,toReadonlyArray:RP,toSet:function(e){return new Set(e)},toggle:RR,union:Rb},Symbol.toStringTag,{value:"Module"}));function RY(e){return e[0]}function RH(e){return e[1]}var RZ=function(e){var t;return[RH(e),e[0]]};function RJ(e){return{URI:kl,_E:void 0,map:R0,ap:function(t,n){var r,i;return[(0,t[0])(n[0]),e.concat(RH(t),RH(n))]}}}var RG=function(e){return function(t){return[t,e.empty]}};function R$(e){var t=RJ(e);return{URI:kl,_E:void 0,map:t.map,ap:t.ap,chain:function(t,n){var r,i=n(t[0]),o=i[0],a=i[1];return[o,e.concat(RH(t),a)]}}}var RX=function(e,t){return ea(e,kt(t))},R0=function(e,t){return ea(e,R8(t))},R1=function(e,t,n){return ea(e,R7(t,n))},R2=function(e,t){return ea(e,ke(t))},R6=function(e,t){return ea(e,kn(t))},R5=function(e,t,n){return ea(e,ki(t,n))},R3=function(e){var t=ko();return function(e,n){return ea(e,t(n))}},R9=function(e,t,n){return ea(e,ka(t,n))},R4=function(e){var t=ku(e);return function(e,n){return ea(e,t(n))}},R7=function(e,t){return function(n){var r;return[t(n[0]),e(RH(n))]}},R8=function(e){return function(t){var n;return[e(t[0]),RH(t)]}},ke=function(e){return function(t){var n;return[t[0],e(RH(t))]}},kt=function(e){return function(t){var n;return[t[0],RH(e)]}},kn=function(e){return function(t){return[e(t),RH(t)]}},kr=kn(Z),ki=function(e,t){return function(n){var r;return t(e,n[0])}},ko=function(){return function(e){return function(t){var n;return e(t[0])}}},ka=function(e,t){return function(n){var r;return t(n[0],e)}},ku=function(e){return function(t){return function(n){var r;return e.map(t(n[0]),function(e){return[e,RH(n)]})}}},ks=function(e){return function(t){var n;return e.map(t[0],function(e){return[e,RH(t)]})}},kl="ReadonlyTuple",kc={URI:kl,map:R0},kd=eB(kc);let kf=Object.freeze(Object.defineProperty({__proto__:null,Bifunctor:{URI:kl,bimap:R1,mapLeft:R2},Comonad:{URI:kl,map:R0,extend:R6,extract:RY},Foldable:{URI:kl,reduce:R5,foldMap:R3,reduceRight:R9},Functor:kc,Semigroupoid:{URI:kl,compose:RX},Traversable:{URI:kl,map:R0,reduce:R5,foldMap:R3,reduceRight:R9,traverse:R4,sequence:ks},URI:kl,bimap:R7,compose:kt,duplicate:kr,extend:kn,extract:RY,flap:kd,foldMap:ko,fst:RY,getApplicative:function(e){var t=RJ(e);return{URI:kl,_E:void 0,map:t.map,ap:t.ap,of:RG(e)}},getApply:RJ,getChain:R$,getChainRec:function(e){var t=function(t,n){for(var r,i,o=n(t),a=e.empty,u=(r=o)[0];"Left"===u._tag;)a=e.concat(a,RH(o)),u=(o=n(u.left))[0];return[u.right,e.concat(a,RH(o))]},n=R$(e);return{URI:kl,_E:void 0,map:n.map,ap:n.ap,chain:n.chain,chainRec:t}},getMonad:function(e){var t=R$(e);return{URI:kl,_E:void 0,map:t.map,ap:t.ap,chain:t.chain,of:RG(e)}},map:R8,mapFst:R8,mapLeft:ke,mapSnd:ke,readonlyTuple:{URI:kl,compose:RX,map:R0,bimap:R1,mapLeft:R2,extract:RY,extend:R6,reduce:R5,foldMap:R3,reduceRight:R9,traverse:R4,sequence:ks},reduce:ki,reduceRight:ka,sequence:ks,snd:RH,swap:RZ,traverse:ku},Symbol.toStringTag,{value:"Module"}));var kp=function(){return(kp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},kA=function(e){return function(t){return Object.keys(t).sort(e.compare)}},kh=kA(TU);function km(e){if("function"==typeof e)return km(TU)(e);var t=kA(e);return function(e){return function(n){for(var r=[],i=0,o=t(n);i<o.length;i++){var a=o[i];r.push(e(a,n[a]))}return r}}}var kg=km(TU)(function(e,t){return[e,t]});function ky(e){return function(t){if(!eI.call(t,e))return t;var n=Object.assign({},t);return delete n[e],n}}var kv=function(e,t){return kx(e,function(){return t})},kx=function(e,t){return function(n){if(!T9(e,n))return ep;var r=Object.assign({},n);return r[e]=t(n[e]),eA(r)}};function kb(e){return Ol(e)}function kC(e){return Oc(e)}function kS(e){return Od(e)}var kw=function(e){var t,n=Oc(e);return function(t){return function(r){return e.map(ea(r,n(t)),kU)}}},kI=function(e){var t,n=Oc(e);return function(t){return function(r){return e.map(ea(r,n(t)),kK)}}};function k_(e){return Oh(e)}function kT(e){return Og(e)}function kO(e,t){return Oy(e,t)}var kR=function(e){var t,n;return(t=tB(),Oy(t,lM))(e)};function kk(e,t){return Ov(e,t)}var kE=function(e){var t=Ow(e);return function(e){return function(n){return T0(n)?kp({},e):T0(e)?kp({},n):t(e)(n)}}},kM=function(e){return function(t){return function(n){return T0(n)||T0(t)?{}:OI(e)(t)(n)}}},kF=function(e){return function(t){return T0(t)?kp({},e):T0(e)?kp({},t):O_(e)(t)}},kj=function(e){return function(t){var n=kA(e);return function(e,r){var i=n(e);if(0===i.length)return t.of({});for(var o=t.of({}),a=function(n){o=t.ap(t.map(o,function(e){return function(t){return e[n]=t,e}}),r(n,e[n]))},u=0;u<i.length;u++)a(i[u]);return o}}},kU=OX,kK=O0,kL="Record",kB={URI:kL,map:OT},kP=eB(kB),kW=function(e){return{URI:kL,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e)}},kD=function(e){return{URI:kL,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e),reduceWithIndex:OK(e),foldMapWithIndex:OL(e),reduceRightWithIndex:OB(e)}},kN={URI:kL,compact:kU,separate:kK},kq=function(e){return{URI:kL,map:OT,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e),traverse:Oq(e),sequence:OQ(e)}},kQ=function(e){return{URI:kL,map:OT,mapWithIndex:OO,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e),reduceWithIndex:OK(e),foldMapWithIndex:OL(e),reduceRightWithIndex:OB(e),traverse:Oq(e),sequence:OQ(e),traverseWithIndex:kj(e)}},kV=function(e){var t=kq(e);return{URI:kL,map:OT,reduce:OR(e),foldMap:Ok(e),reduceRight:OE(e),traverse:t.traverse,sequence:t.sequence,compact:kU,separate:kK,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU,wither:oA(t,kN),wilt:op(t,kN)}},kz=function(e){var t=kE(e);return{concat:function(e,n){return t(n)(e)}}},kY=function(e){return{concat:kz(e).concat,empty:{}}},kH=function(e){var t=kM(e);return{concat:function(e,n){return t(n)(e)}}},kZ=function(){return{concat:function(e,t){return kF(t)(e)}}},kJ={URI:kL,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU)},kG={URI:kL,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),reduceWithIndex:OK(TU),foldMapWithIndex:OL(TU),reduceRightWithIndex:OB(TU)},k$={URI:kL,map:OT,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),traverse:Oq(TU),sequence:kS},kX={URI:kL,map:OT,mapWithIndex:OO,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),reduceWithIndex:OK(TU),foldMapWithIndex:OL(TU),reduceRightWithIndex:OB(TU),traverse:Oq(TU),sequence:kS,traverseWithIndex:kj(TU)},k0=oA(k$,kN),k1=op(k$,kN),k2={URI:kL,map:OT,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),traverse:Oq(TU),sequence:kS,compact:kU,separate:kK,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU,wither:k0,wilt:k1},k6={URI:kL,map:OT,reduce:OR(TU),foldMap:Ok(TU),reduceRight:OE(TU),traverse:Oq(TU),sequence:kS,compact:kU,separate:kK,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU,mapWithIndex:OO,reduceWithIndex:OK(TU),foldMapWithIndex:OL(TU),reduceRightWithIndex:OB(TU),filterMapWithIndex:OD,filterWithIndex:ON,partitionMapWithIndex:OP,partitionWithIndex:OW,traverseWithIndex:kj(TU),wither:k0,wilt:k1};let k5=Object.freeze(Object.defineProperty({__proto__:null,Compactable:kN,Filterable:{URI:kL,map:OT,compact:kU,separate:kK,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU},FilterableWithIndex:{URI:kL,map:OT,mapWithIndex:OO,compact:kU,separate:kK,filter:OM,filterMap:OF,partition:Oj,partitionMap:OU,filterMapWithIndex:OD,filterWithIndex:ON,partitionMapWithIndex:OP,partitionWithIndex:OW},Foldable:kJ,FoldableWithIndex:kG,Functor:kB,FunctorWithIndex:{URI:kL,map:OT,mapWithIndex:OO},Traversable:k$,TraversableWithIndex:kX,URI:kL,Witherable:k2,collect:km,compact:kU,deleteAt:ky,difference:kF,elem:OS,empty:{},every:Ob,filter:Oz,filterMap:OY,filterMapWithIndex:Om,filterWithIndex:kT,flap:kP,foldMap:function(e){return"compare"in e?OG(e):OG(TU)(e)},foldMapWithIndex:function(e){return"compare"in e?Oa(e):Oa(TU)(e)},fromEntries:kR,fromFoldable:kO,fromFoldableMap:kk,getDifferenceMagma:kZ,getEq:O6,getFoldable:kW,getFoldableWithIndex:kD,getIntersectionSemigroup:kH,getMonoid:O5,getShow:function(e){return"compare"in e?O2(e):O2(TU)(e)},getTraversable:kq,getTraversableWithIndex:kQ,getUnionMonoid:kY,getUnionSemigroup:kz,getWitherable:kV,has:T9,hasOwnProperty:RA,insertAt:T3,intersection:kM,isEmpty:T0,isSubrecord:Oe,keys:kh,lookup:Ot,map:Oi,mapWithIndex:Or,modifyAt:kx,partition:OH,partitionMap:OZ,partitionMapWithIndex:OA,partitionWithIndex:k_,pop:function(e){var t=ky(e);return function(n){var r=Ot(e,n);return ed(r)?ep:eA([r.value,t(n)])}},record:k6,reduce:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?OJ(e[0]):OJ(TU).apply(void 0,e)},reduceRight:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?O$(e[0]):O$(TU).apply(void 0,e)},reduceRightWithIndex:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?Ou(e[0]):Ou(TU).apply(void 0,e)},reduceWithIndex:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?Oo(e[0]):Oo(TU).apply(void 0,e)},separate:kK,sequence:kS,singleton:Os,size:TX,some:OC,toArray:kg,toEntries:kg,toUnfoldable:function(e){return function(t){var n=kg(t),r=n.length;return e.unfold(0,function(e){return e<r?eA([n[e],e+1]):ep})}},traverse:kC,traverseWithIndex:kb,union:kE,updateAt:kv,upsertAt:T3,wilt:kI,wither:kw},Symbol.toStringTag,{value:"Module"}));var k3=function(e){return function(t){return ef(e(t))}},k9=function(e){return function(t){return em(e(t))}},k4=function(){return function(e){return!0}},k7=function(e){return function(t){return!e(t)}},k8=function(e){return function(t){return function(n){return t(n)||e(n)}}},Ee=function(e){return function(t){return function(n){return t(n)&&e(n)}}},Et=function(){return function(e){return!1}},En=function(e){return function(t){return function(n){return t(n)&&e(n)}}};let Er=Object.freeze(Object.defineProperty({__proto__:null,and:Ee,compose:En,fromEitherK:k9,fromOptionK:k3,id:k4,not:k7,or:k8,zero:Et},Symbol.toStringTag,{value:"Module"}));var Ei=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{add:function(t,n){return e.map(function(e,r){return e.add(t[r],n[r])})},zero:e.map(function(e){return e.zero}),mul:function(t,n){return e.map(function(e,r){return e.mul(t[r],n[r])})},one:e.map(function(e){return e.one}),sub:function(t,n){return e.map(function(e,r){return e.sub(t[r],n[r])})}}},Eo=function(e){return function(t){return e.sub(e.zero,t)}};let Ea=Object.freeze(Object.defineProperty({__proto__:null,getFunctionRing:Y,getTupleRing:Ei,negate:Eo,tuple:Ei},Symbol.toStringTag,{value:"Module"})),Eu=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Es=Object.freeze(Object.defineProperty({__proto__:null,getFunctionSemiring:z},Symbol.toStringTag,{value:"Module"}));function El(e){return function(t){for(var n,r=t.values(),i=new Set;!(n=r.next()).done;){var o=n.value;e(o)&&i.add(o)}return i}}function Ec(e){var t=ET(e);return function(n,r){if(void 0===r){var i=Ec(e);return function(e){return i(n,e)}}if(EI(n))return r;if(EI(r))return n;var o=new Set(n);return r.forEach(function(e){t(e,o)||o.add(e)}),o}}function Ed(e){var t=ET(e);return function(n,r){if(void 0===r){var i=Ed(e);return function(e){return i(e,n)}}if(EI(n)||EI(r))return new Set;var o=new Set;return n.forEach(function(e){t(e,r)&&o.add(e)}),o}}function Ef(e){var t=ET(e);return function(n,r){if(void 0===r){var i=Ef(e);return function(e){return i(e,n)}}return El(function(e){return!t(e,r)})(n)}}var Ep=function(e){return{concat:Ec(e)}},EA=function(e){return{concat:Ep(e).concat,empty:new Set}},Eh=function(e){return{concat:Ed(e)}},Em=function(e){return{concat:Ef(e)}},Eg=function(e){return new Set([e])};function Ey(e){var t=ET(e);return function(e){return function(n){if(t(e)(n))return n;var r=new Set(n);return r.add(e),r}}}var Ev=function(e){return function(t){return function(n){return El(function(n){return!e.equals(t,n)})(n)}}},Ex=function(e){var t=ET(e),n=Ev(e),r=Ey(e);return function(e){return function(i){return(t(e,i)?n:r)(e)(i)}}},Eb=function(e){return function(t){for(var n=t.length,r=new Set,i=ET(e),o=0;o<n;o++){var a=t[o];i(a,r)||r.add(a)}return r}},EC=function(e){return ES(e)(Z)};function ES(e){var t=ET(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);"Some"!==i._tag||t(i.value,r)||r.add(i.value)}),r}}}var Ew=new Set,EI=function(e){return 0===e.size},E_=function(e){return e.size},ET=RB,EO=function(e){return function(t){var n=[];return t.forEach(function(e){return n.push(e)}),n.sort(e.compare)}};let ER=Object.freeze(Object.defineProperty({__proto__:null,chain:function(e){var t=ET(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){e(n).forEach(function(e){t(e,r)||r.add(e)})}),r}}},compact:EC,difference:Ef,elem:ET,empty:Ew,every:RK,filter:El,filterMap:ES,foldMap:RI,fromArray:Eb,getDifferenceMagma:Em,getEq:RD,getIntersectionSemigroup:Eh,getShow:RW,getUnionMonoid:EA,getUnionSemigroup:Ep,insert:Ey,intersection:Ed,isEmpty:EI,isSubset:RL,map:function(e){var t=ET(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);t(i,r)||r.add(i)}),r}}},partition:function(e){return function(t){for(var n,r=t.values(),i=new Set,o=new Set;!(n=r.next()).done;){var a=n.value;e(a)?i.add(a):o.add(a)}return oe(o,i)}},partitionMap:function(e,t){return function(n){return function(r){for(var i,o=r.values(),a=new Set,u=new Set,s=ET(e),l=ET(t);!(i=o.next()).done;){var c=n(i.value);switch(c._tag){case"Left":s(c.left,a)||a.add(c.left);break;case"Right":l(c.right,u)||u.add(c.right)}}return oe(a,u)}}},reduce:Rw,reduceRight:R_,remove:Ev,separate:function(e,t){return function(n){var r=ET(e),i=ET(t),o=new Set,a=new Set;return n.forEach(function(e){switch(e._tag){case"Left":r(e.left,o)||o.add(e.left);break;case"Right":i(e.right,a)||a.add(e.right)}}),oe(o,a)}},singleton:Eg,size:E_,some:RU,subset:RL,toArray:EO,toggle:Ex,union:Ec},Symbol.toStringTag,{value:"Module"}));var Ek=function(e){return{show:function(t){var n="{";for(var r in e)eI.call(e,r)&&(n+=" ".concat(r,": ").concat(e[r].show(t[r]),","));return n.length>1&&(n=n.slice(0,-1)+" "),n+="}"}}},EE=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{show:function(t){return"[".concat(t.map(function(t,n){return e[n].show(t)}).join(", "),"]")}}};let EM=Object.freeze(Object.defineProperty({__proto__:null,getStructShow:Ek,getTupleShow:EE,showBoolean:{show:function(e){return JSON.stringify(e)}},showNumber:{show:function(e){return JSON.stringify(e)}},showString:{show:function(e){return JSON.stringify(e)}},struct:Ek,tuple:EE},Symbol.toStringTag,{value:"Module"}));function EF(e){return function(t){return function(n){return e.of([t,n])}}}function Ej(e){return function(t){return function(n){return function(r){return e.map(n(r),function(e){var n=e[0],r=e[1];return[t(n),r]})}}}}function EU(e){return function(t){return function(n){return function(r){return e.chain(n(r),function(n){var r=n[0],i=n[1];return e.map(t(i),function(e){var t=e[0],n=e[1];return[r(t),n]})})}}}}function EK(e){return function(t){return function(n){return function(r){return e.chain(n(r),function(e){var n=e[0],r=e[1];return t(n)(r)})}}}}function EL(e){return function(t){return function(n){return e.of(t(n))}}}function EB(e){return function(t){return function(n){return e.map(t,function(e){return[e,n]})}}}function EP(e){return function(t){return function(n){return e.map(n(t),function(e){return e[0]})}}}function EW(e){return function(t){return function(n){return e.map(n(t),RH)}}}let ED=Object.freeze(Object.defineProperty({__proto__:null,ap:EU,chain:EK,evaluate:EP,execute:EW,fromF:EB,fromState:EL,getStateM:function(e){var t=EU(e),n=Ej(e),r=EK(e),i=EP(e),o=EW(e);return{map:function(e,t){return ea(e,n(t))},ap:function(e,n){return ea(e,t(n))},of:EF(e),chain:function(e,t){return ea(e,r(t))},get:function(){return function(t){return e.of([t,t])}},put:function(t){return function(){return e.of([void 0,t])}},modify:function(t){return function(n){return e.of([void 0,t(n)])}},gets:function(t){return function(n){return e.of([t(n),n])}},fromState:EL(e),fromM:EB(e),evalState:function(e,t){return ea(e,i(t))},execState:function(e,t){return ea(e,o(t))}}},map:Ej,of:EF},Symbol.toStringTag,{value:"Module"}));var EN=function(e){return function(){return IX(e)}},Eq=EF(_D);function EQ(e){return E0(I1(e))}function EV(e){return E0(I6(e))}function Ez(e){return E0(I4(e))}var EY=function(e){return et(e,I0)},EH=function(e){return function(t){return IX(e(t)[0])}},EZ=f8(function(e){return EN(e)},Eq),EJ=EL(_D),EG=function(e){return E0(J(e))},E$=function(e){return E0(I8(e))},EX=function(e){return E0(_e(e))},E0=EB(_P),E1=function(e){return function(t){return et(t,Ax(e))}},E2=function(e){return function(t){return function(n){return e(n)(t)(n)}}},E6=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return E$(e.apply(void 0,t))}},E5=function(e){return function(t){return ea(t,Mc(E6(e)))}},E3=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return EG(e.apply(void 0,t))}},E9=function(e){return function(t){return ea(t,Mc(E3(e)))}},E4=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return E0(e.apply(void 0,t))}},E7=function(e){return function(t){return ea(t,Mc(E4(e)))}},E8=function(e,t){return ea(e,Mo(t))},Me=function(e,t){return ea(e,Ms(t))},Mt=function(e,t){return ea(e,Ml(t))},Mn=function(e,t){return function(n){return ea(e(n),_j(function(){return t()(n)}))}},Mr=function(e,t,n){return function(r){return ea(e(r),_O(t,function(e){var t=e[0],r=e[1];return[n(t),r]}))}},Mi=function(e,t){return function(n){return ea(e(n),_R(t))}},Mo=Ej(_P),Ma=function(e,t){return function(n){return Mr(n,e,t)}},Mu=function(e){return function(t){return Mi(t,e)}},Ms=EU(_Y),Ml=EK(_Y),Mc=Ml,Md=Mc(Z),Mf=function(e){return function(t){return function(n){return ea(t(n),_j(function(){return e()(n)}))}}},Mp="StateReaderTaskEither",MA={URI:Mp,map:E8},Mh=eB(MA),Mm={URI:Mp,map:E8,ap:Me},Mg=eO(Mm),My=eR(Mm),Mv={URI:Mp,map:E8,ap:Me,chain:Mt},Mx={URI:Mp,fromState:EJ},Mb=hB(Mx),MC=hP(Mx),MS=hW(Mx),Mw=hD(Mx),MI=hN(Mx),M_=hq(Mx,Mv),MT=eV(Mv),MO={URI:Mp,fromReader:EV},MR=A8(MO),Mk=he(MO),ME=ht(MO),MM=hn(MO,Mv),MF=hr(MO,Mv),Mj={URI:Mp,fromEither:EZ},MU=eH(Mj),MK=eJ(Mj),ML=eG(Mj,Mv),MB=eX(Mj,Mv),MP=e0(Mj,Mv),MW=eZ(Mj),MD=e1(Mj,Mv),MN=e$(Mj),Mq={URI:Mp,fromIO:Ez},MQ=Ah(Mq),MV=Am(Mq,Mv),Mz=Ag(Mq,Mv),MY={URI:Mp,fromIO:Ez,fromTask:EQ},MH=hV(MY),MZ=hz(MY,Mv),MJ=hY(MY,Mv),MG=EP(_P),M$=EW(_P),MX=eP(MA),M0=ez(Mv),M1=ek(Mm),M2=function(e){return function(t){return function(n){return function(r){return function(){return eC(t).reduce(function(t,n,i){return t.then(function(o){return eh(o)?t:e(i+1,n)(o.right[1])(r)().then(function(e){if(eh(e))return e;var t=e.right,n=t[0],r=t[1];return o.right[0].push(n),o.right[1]=r,o})})},e(0,eb(t))(n)(r)().then(fL(function(e){var t;return[[e[0]],e[1]]})))}}}}},M6=function(e){var t=M2(e);return function(e){return ex(e)?t(e):Eq(eS)}},M5=function(e){return M6(function(t,n){return e(n)})},M3=M5(Z),M9=function(e,t){return ea(e(t),_T(function(e){return e[0]}))},M4=function(e,t){return ea(e(t),_T(function(e){return e[0],e[1]}))};let M7=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:Mp,map:E8,alt:Mn},Applicative:{URI:Mp,map:E8,ap:Me,of:Eq},Apply:Mm,Bifunctor:{URI:Mp,bimap:Mr,mapLeft:Mi},Chain:Mv,FromEither:Mj,FromIO:Mq,FromReader:MO,FromState:Mx,FromTask:MY,Functor:MA,Monad:{URI:Mp,map:E8,ap:Me,of:Eq,chain:Mt},MonadIO:{URI:Mp,map:E8,ap:Me,of:Eq,chain:Mt,fromIO:Ez},MonadTask:{URI:Mp,map:E8,ap:Me,of:Eq,chain:Mt,fromIO:Ez,fromTask:EQ},MonadThrow:{URI:Mp,map:E8,ap:Me,of:Eq,chain:Mt,throwError:EN},Pointed:{URI:Mp,of:Eq},URI:Mp,alt:Mf,altW:Mf,ap:Ms,apFirst:Mg,apFirstW:Mg,apS:M1,apSW:M1,apSecond:My,apSecondW:My,apW:Ms,ask:MR,asks:Mk,asksStateReaderTaskEither:E2,asksStateReaderTaskEitherW:E2,bimap:Ma,bind:M0,bindTo:MX,bindW:M0,chain:Ml,chainEitherK:MB,chainEitherKW:MB,chainFirst:MT,chainFirstEitherK:MP,chainFirstEitherKW:MP,chainFirstIOK:Mz,chainFirstReaderK:MF,chainFirstReaderKW:MF,chainFirstTaskK:MJ,chainFirstW:MT,chainIOEitherK:E5,chainIOEitherKW:E5,chainIOK:MV,chainOptionK:ML,chainReaderK:MM,chainReaderKW:MM,chainReaderTaskEitherK:E7,chainReaderTaskEitherKW:E7,chainStateK:M_,chainTaskEitherK:E9,chainTaskEitherKW:E9,chainTaskK:MZ,chainW:Mc,evalState:M9,evaluate:MG,execState:M4,execute:M$,filterOrElse:MD,filterOrElseW:MD,flap:Mh,flatten:Md,flattenW:Md,fromEither:EZ,fromEitherK:MN,fromIO:Ez,fromIOEither:E$,fromIOEitherK:E6,fromIOK:MQ,fromOption:MU,fromOptionK:MK,fromPredicate:MW,fromReader:EV,fromReaderEither:EX,fromReaderK:ME,fromReaderTaskEither:E0,fromReaderTaskEitherK:E4,fromState:EJ,fromStateK:MI,fromTask:EQ,fromTaskEither:EG,fromTaskEitherK:E3,fromTaskK:MH,get:Mb,gets:Mw,left:EN,leftIO:function(e){return E0(I7(e))},leftReader:function(e){return E0(I5(e))},leftState:EH,leftTask:function(e){return E0(I2(e))},local:E1,map:Mo,mapLeft:Mu,modify:MS,of:Eq,put:MC,right:Eq,rightIO:Ez,rightReader:EV,rightState:EY,rightTask:EQ,run:function(e,t,n){return e(t)(n)()},sequenceArray:M3,stateReaderTaskEither:{URI:Mp,map:E8,of:Eq,ap:Me,chain:Mt,bimap:Mr,mapLeft:Mi,alt:Mn,fromIO:Ez,fromTask:EQ,throwError:EN},stateReaderTaskEitherSeq:{URI:Mp,map:E8,of:Eq,ap:Me,chain:Mt,bimap:Mr,mapLeft:Mi,alt:Mn,fromIO:Ez,fromTask:EQ,throwError:EN},throwError:EN,traverseArray:M5,traverseArrayWithIndex:M6,traverseReadonlyArrayWithIndex:M6,traverseReadonlyNonEmptyArrayWithIndex:M2},Symbol.toStringTag,{value:"Module"}));var M8=function(e,t){return ea(e,Fi(t))},Fe=function(e,t){return ea(e,Ft(t))},Ft=function(e){return function(t){return{peek:function(n){return e({peek:t.peek,pos:n})},pos:t.pos}}},Fn=function(e){return e.peek(e.pos)},Fr=Ft(Z),Fi=function(e){return function(t){return{peek:function(n){return e(t.peek(n))},pos:t.pos}}},Fo="Store",Fa={URI:Fo,map:M8},Fu=eB(Fa),Fs={URI:Fo,map:M8,extend:Fe,extract:Fn};let Fl=Object.freeze(Object.defineProperty({__proto__:null,Comonad:Fs,Functor:Fa,URI:Fo,duplicate:Fr,experiment:function(e){return function(t){return function(n){return e.map(t(n.pos),function(e){return n.peek(e)})}}},extend:Ft,extract:Fn,flap:Fu,map:Fi,peeks:function(e){return function(t){return t.peek(e(t.pos))}},seek:function(e){return function(t){return{peek:t.peek,pos:e}}},seeks:function(e){return function(t){return{peek:t.peek,pos:e(t.pos)}}},store:Fs},Symbol.toStringTag,{value:"Module"}));function Fc(e,t){return function(n,r){return t.compose(e.second(r),e.first(n))}}function Fd(e,t){var n=Fc(e,t);return function(r,i){return t.compose(n(r,i),e.promap(t.id(),Z,function(e){return[e,e]}))}}let Ff=Object.freeze(Object.defineProperty({__proto__:null,fanOut:Fd,fanout:function(e){return Fd(e,e)},split:Fc,splitStrong:function(e){return Fc(e,e)}},Symbol.toStringTag,{value:"Module"}));var Fp=function(){return{concat:function(e,t){return Object.assign({},e,t)}}},FA=function(e){return function(t){var n={};for(var r in t)eI.call(t,r)&&(n[r]=e[r](t[r]));return n}};let Fh=Object.freeze(Object.defineProperty({__proto__:null,evolve:FA,getAssignSemigroup:Fp},Symbol.toStringTag,{value:"Module"}));var Fm=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},Fg=yr(So),Fy=yd(So),Fv=yf(So),Fx=function(e){return Fb(C2(e))},Fb=yo(Sr),FC=C4(cT),FS=yp(Sr),Fw=yA(Sf),FI=yh(Sp),F_=ya(So),FT=function(e){return function(){var t,n,r,i;return t=void 0,n=void 0,r=void 0,i=function(){return Fm(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e().then(eA)];case 1:return[2,t.sent()];case 2:return t.sent(),[2,ep];case 3:return[2]}})},new(r||(r=Promise))(function(e,o){function a(e){try{s(i.next(e))}catch(t){o(t)}}function u(e){try{s(i.throw(e))}catch(t){o(t)}}function s(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(a,u)}s((i=i.apply(t,n||[])).next())})}},FO=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return FT(function(){return e.apply(void 0,t)})}},FR=yu(So),Fk=ys(Sp),FE=yl(So),FM=yc(Sp),FF=ym(Sr),Fj=yg(Sa),FU=yy(Sp),FK=FU(Z),FL=yv(Sp),FB=yi(So),FP=FB(),FW=dX(Sr,dn),FD=d0(Sr,dn,cY),FN=p8(Sr,ds),Fq=Ae(Sr,ds),FQ=At(Sr,ds),FV=An(Sr,ds),Fz=function(e,t){return ea(e,FF(t))},FY=function(e,t){return ea(e,Fj(t))},FH=function(e,t){return ea(e,FU(t))},FZ=function(e,t){return ea(e,FL(t))},FJ=function(e,t){return ea(e,FN(t))},FG=function(e,t){return ea(e,Fq(t))},F$=function(e,t){return ea(e,FQ(t))},FX=function(e,t){return ea(e,FV(t))},F0="TaskOption",F1={URI:F0,map:Fz},F2=eB(F1),F6={URI:F0,of:Fg},F5={URI:F0,map:Fz,ap:FY},F3=eO(F5),F9=eR(F5),F4=function(e,t){return ea(e,FU(function(e){return ea(t,FF(e))}))},F7={URI:F0,map:Fz,ap:FY,chain:FH},F8=eV(F7),je={URI:F0,zero:FB},jt=og(je,F6),jn={URI:F0,fromIO:Fx},jr=Ah(jn),ji=Am(jn,F7),jo=Ag(jn,F7),ja={URI:F0,fromEither:Fv},ju=e$(ja),js=eX(ja,F7),jl=e0(ja,F7),jc={URI:F0,fromIO:Fx,fromTask:Fb},jd=hV(jc),jf=hz(jc,F7),jp=hY(jc,F7),jA=Fg(ew),jh=eP(F1),jm=ez(F7),jg=ek(F5),jy=Fg(eS),jv=function(e){return et(SI(e),C4(dq(eu)))},jx=function(e){var t=jv(e);return function(e){return ex(e)?t(e):jy}},jb=function(e){return function(t){return function(){return eC(t).reduce(function(t,n,r){return t.then(function(i){return ed(i)?t:e(r+1,n)().then(function(e){return ed(e)?e:(i.value.push(e.value),i)})})},e(0,eb(t))().then(cz(ev)))}}},jC=function(e){var t=jb(e);return function(e){return ex(e)?t(e):jy}},jS=function(e){return jx(function(t,n){return e(n)})},jw=jS(Z),jI=function(e){return jC(function(t,n){return e(n)})},j_=jI(Z);let jT=Object.freeze(Object.defineProperty({__proto__:null,Alt:{URI:F0,map:Fz,alt:FZ},Alternative:{URI:F0,map:Fz,ap:FY,of:Fg,alt:FZ,zero:FB},ApT:jy,ApplicativePar:{URI:F0,map:Fz,ap:FY,of:Fg},ApplicativeSeq:{URI:F0,map:Fz,ap:F4,of:Fg},ApplyPar:F5,ApplySeq:{URI:F0,map:Fz,ap:F4},Chain:F7,Compactable:{URI:F0,compact:FW,separate:FD},Do:jA,Filterable:{URI:F0,map:Fz,compact:FW,separate:FD,filter:FJ,filterMap:FG,partition:F$,partitionMap:FX},FromEither:ja,FromIO:jn,FromTask:jc,Functor:F1,Monad:{URI:F0,map:Fz,ap:FY,of:Fg,chain:FH},MonadIO:{URI:F0,map:Fz,ap:FY,of:Fg,chain:FH,fromIO:Fx},MonadTask:{URI:F0,map:Fz,ap:FY,of:Fg,chain:FH,fromIO:Fx,fromTask:Fb},Pointed:F6,Zero:je,alt:FL,altW:FL,ap:Fj,apFirst:F3,apS:jg,apSecond:F9,bind:jm,bindTo:jh,chain:FU,chainEitherK:js,chainFirst:F8,chainFirstEitherK:jl,chainFirstIOK:jo,chainFirstTaskK:jp,chainIOK:ji,chainNullableK:Fk,chainOptionK:FM,chainTaskK:jf,compact:FW,filter:FN,filterMap:Fq,flap:F2,flatten:FK,fold:Fw,foldW:Fw,fromEither:Fv,fromEitherK:ju,fromIO:Fx,fromIOK:jr,fromNullable:F_,fromNullableK:FR,fromOption:C8,fromOptionK:FE,fromPredicate:Fy,fromTask:Fb,fromTaskEither:FC,fromTaskK:jd,getOrElse:FI,getOrElseW:FI,guard:jt,map:FF,match:FS,matchE:Fw,matchEW:Fw,matchW:FS,none:FP,of:Fg,partition:FQ,partitionMap:FV,separate:FD,sequenceArray:jw,sequenceSeqArray:j_,some:Fg,traverseArray:jS,traverseArrayWithIndex:jx,traverseReadonlyArrayWithIndex:jx,traverseReadonlyArrayWithIndexSeq:jC,traverseReadonlyNonEmptyArrayWithIndex:jv,traverseReadonlyNonEmptyArrayWithIndexSeq:jb,traverseSeqArray:jI,traverseSeqArrayWithIndex:jC,tryCatch:FT,tryCatchK:FO,zero:FB},Symbol.toStringTag,{value:"Module"}));var jO=function(e){return"Left"===e._tag},jR=function(e){return"Right"===e._tag};function jk(e){return"Both"===e._tag}function jE(e){return{_tag:"Left",left:e}}function jM(e){return{_tag:"Right",right:e}}function jF(e,t){return{_tag:"Both",left:e,right:t}}var jj=function(e,t,n){return function(r){switch(r._tag){case"Left":return e(r.left);case"Right":return t(r.right);case"Both":return n(r.left,r.right)}}},jU=jj(jM,jE,function(e,t){return jF(t,e)});function jK(e,t){return{concat:function(n,r){return jO(n)?jO(r)?jE(e.concat(n.left,r.left)):jR(r)?jF(n.left,r.right):jF(e.concat(n.left,r.left),r.right):jR(n)?jO(r)?jF(r.left,n.right):jR(r)?jM(t.concat(n.right,r.right)):jF(r.left,t.concat(n.right,r.right)):jO(r)?jF(e.concat(n.left,r.left),n.right):jR(r)?jF(n.left,t.concat(n.right,r.right)):jF(e.concat(n.left,r.left),t.concat(n.right,r.right))}}}var jL=function(e){return{URI:j1,_E:void 0,map:jW,ap:function(t,n){return jO(t)?jO(n)?jE(e.concat(t.left,n.left)):jR(n)?jE(t.left):jE(e.concat(t.left,n.left)):jR(t)?jO(n)?jE(n.left):jR(n)?jM(t.right(n.right)):jF(n.left,t.right(n.right)):jO(n)?jE(e.concat(t.left,n.left)):jR(n)?jF(t.left,t.right(n.right)):jF(e.concat(t.left,n.left),t.right(n.right))}}};function jB(e){var t=jL(e),n=function(t,n){if(jO(t))return t;if(jR(t))return n(t.right);var r=n(t.right);return jO(r)?jE(e.concat(t.left,r.left)):jR(r)?jF(t.left,r.right):jF(e.concat(t.left,r.left),r.right)};return{URI:j1,_E:void 0,map:jW,ap:t.ap,chain:n}}var jP=function(e,t){return ed(e)?ed(t)?ep:eA(jM(t.value)):ed(t)?eA(jE(e.value)):eA(jF(e.value,t.value))},jW=function(e,t){return ea(e,jZ(t))},jD=function(e,t,n){return ea(e,jY(t,n))},jN=function(e,t){return ea(e,jH(t))},jq=function(e,t,n){return ea(e,jJ(t,n))},jQ=function(e){var t=jG(e);return function(e,n){return ea(e,t(n))}},jV=function(e,t,n){return ea(e,j$(t,n))},jz=function(e){var t=jX(e);return function(e,n){return ea(e,t(n))}},jY=function(e,t){return function(n){return jO(n)?jE(e(n.left)):jR(n)?jM(t(n.right)):jF(e(n.left),t(n.right))}},jH=function(e){return function(t){return jO(t)?jE(e(t.left)):jk(t)?jF(e(t.left),t.right):t}},jZ=function(e){return function(t){return jO(t)?t:jR(t)?jM(e(t.right)):jF(t.left,e(t.right))}},jJ=function(e,t){return function(n){return jO(n)?e:t(e,n.right)}},jG=function(e){return function(t){return function(n){return jO(n)?e.empty:t(n.right)}}},j$=function(e,t){return function(n){return jO(n)?e:t(n.right,e)}},jX=function(e){return function(t){return function(n){return jO(n)?e.of(n):jR(n)?e.map(t(n.right),jM):e.map(t(n.right),function(e){return jF(n.left,e)})}}},j0=function(e){return function(t){return jO(t)?e.of(t):jR(t)?e.map(t.right,jM):e.map(t.right,function(e){return jF(t.left,e)})}},j1="These",j2={URI:j1,map:jW},j6=eB(j2),j5={URI:j1,fromEither:Z},j3=eH(j5),j9=eJ(j5),j4=function(e){return function(t){return function(n){return!jO(n)&&e.equals(t,n.right)}}},j7=function(e){return function(t){return!jO(t)&&e(t.right)}},j8=function(e,t){return function(n){return jO(n)?[n.left,t()]:jR(n)?[e(),n.right]:[n.left,n.right]}},Ue=function(e,t){return j8(function(){return e},function(){return t})},Ut=jM(eS),Un=function(e){return function(t){return function(n){var r=ep,i=t(0,eb(n));if(jO(i))return i;jk(i)&&(r=eA(i.left));for(var o=[i.right],a=1;a<n.length;a++){var u=t(a,n[a]);if(jO(u))return u;jk(u)&&(r=ed(r)?eA(u.left):eA(e.concat(r.value,u.left))),o.push(u.right)}return ed(r)?jM(o):jF(r.value,o)}}},Ur=function(e){return function(t){var n=Un(e)(t);return function(e){return ex(e)?n(e):Ut}}};let Ui=Object.freeze(Object.defineProperty({__proto__:null,ApT:Ut,Bifunctor:{URI:j1,bimap:jD,mapLeft:jN},Foldable:{URI:j1,reduce:jq,foldMap:jQ,reduceRight:jV},FromEither:j5,FromThese:{URI:j1,fromThese:Z},Functor:j2,Pointed:{URI:j1,of:jM},Traversable:{URI:j1,map:jW,reduce:jq,foldMap:jQ,reduceRight:jV,traverse:jz,sequence:j0},URI:j1,bimap:jY,both:jF,elem:j4,exists:j7,flap:j6,fold:jj,foldMap:jG,foldW:jj,fromOption:j3,fromOptionK:j9,fromOptions:jP,getApplicative:function(e){var t=jL(e);return{URI:j1,_E:void 0,map:jW,ap:t.ap,of:jM}},getApply:jL,getChain:jB,getEq:function(e,t){return e6(function(n,r){return jO(n)?jO(r)&&e.equals(n.left,r.left):jR(n)?jR(r)&&t.equals(n.right,r.right):jk(r)&&e.equals(n.left,r.left)&&t.equals(n.right,r.right)})},getLeft:function(e){return jO(e)?eA(e.left):jR(e)?ep:eA(e.left)},getLeftOnly:function(e){return jO(e)?eA(e.left):ep},getMonad:function(e){var t=jB(e);return{URI:j1,_E:void 0,map:jW,of:jM,ap:t.ap,chain:t.chain,throwError:jE}},getRight:function(e){return jO(e)?ep:(jR(e),eA(e.right))},getRightOnly:function(e){return jR(e)?eA(e.right):ep},getSemigroup:jK,getShow:function(e,t){return{show:jj(function(t){return"left(".concat(e.show(t),")")},function(e){return"right(".concat(t.show(e),")")},function(n,r){return"both(".concat(e.show(n),", ").concat(t.show(r),")")})}},isBoth:jk,isLeft:jO,isRight:jR,left:jE,leftOrBoth:function(e){return function(t){return ed(t)?jE(e):jF(e,t.value)}},map:jZ,mapLeft:jH,match:jj,matchW:jj,of:jM,reduce:jJ,reduceRight:j$,right:jM,rightOrBoth:function(e){return function(t){return ed(t)?jM(e):jF(t.value,e)}},sequence:j0,swap:jU,these:{URI:j1,map:jW,bimap:jD,mapLeft:jN,reduce:jq,foldMap:jQ,reduceRight:jV,traverse:jz,sequence:j0},toTuple:Ue,toTuple2:j8,traverse:jX,traverseReadonlyArrayWithIndex:Ur,traverseReadonlyNonEmptyArrayWithIndex:Un},Symbol.toStringTag,{value:"Module"}));function Uo(e){return et(jM,e.of)}function Ua(e){return et(jE,e.of)}function Uu(e){return et(jF,e.of)}function Us(e){return function(t){return e.map(t,jM)}}function Ul(e){return function(t){return e.map(t,jE)}}function Uc(e){return eL(e,j2)}function Ud(e,t){return eT(e,jL(t))}function Uf(e,t){var n=Ua(e);return function(r){return function(i){return e.chain(i,jj(n,r,function(n,i){return e.map(r(i),jj(function(e){return jE(t.concat(n,e))},function(e){return jF(n,e)},function(e,r){return jF(t.concat(n,e),r)}))}))}}}function Up(e){return function(t,n){return function(r){return e.map(r,jY(t,n))}}}function UA(e){return function(t){return function(n){return e.map(n,jH(t))}}}function Uh(e){return function(t,n,r){return function(i){return e.map(i,jj(t,n,r))}}}function Um(e){return function(t,n,r){return function(i){return e.chain(i,jj(t,n,r))}}}function Ug(e){return function(t){return e.map(t,jU)}}function Uy(e){return function(t,n){return function(r){return e.map(r,j8(t,n))}}}let Uv=Object.freeze(Object.defineProperty({__proto__:null,ap:Ud,bimap:Up,both:Uu,chain:Uf,getTheseM:function(e){var t=Uc(e),n=Up(e),r=UA(e),i=Um(e),o=Uy(e),a=Uo(e),u=function(e,n){return ea(e,t(n))};return{map:u,bimap:function(e,t,r){return ea(e,n(t,r))},mapLeft:function(e,t){return ea(e,r(t))},fold:function(e,t,n,r){return ea(e,i(t,n,r))},swap:Ug(e),rightM:Us(e),leftM:Ul(e),left:Ua(e),right:Uo(e),both:Uu(e),toTuple:function(e,t,n){return ea(e,o(function(){return t},function(){return n}))},getMonad:function(t){var n=Ud(e,t),r=Uf(e,t);return{_E:void 0,map:u,of:a,ap:function(e,t){return ea(e,n(t))},chain:function(e,t){return ea(e,r(t))}}}}},left:Ua,leftF:Ul,map:Uc,mapLeft:UA,match:Uh,matchE:Um,right:Uo,rightF:Us,swap:Ug,toTuple2:Uy},Symbol.toStringTag,{value:"Module"}));var Ux=Ua(So),Ub=Uo(So),UC=Uu(So),US=Us(Sr),Uw=Ul(Sr),UI=et(C2,US),U_=et(C2,Uw),UT=Uh(Sr),UO=Um(Sp),UR=Ug(Sr),Uk=function(e,t){return ea(e,UF(t))},UE=function(e,t,n){return ea(e,Uj(t,n))},UM=function(e,t){return ea(e,UU(t))},UF=Uc(Sr),Uj=Up(Sr),UU=UA(Sr),UK="TaskThese",UL=function(e,t){var n=Ud(e,t);return{URI:UK,_E:void 0,map:Uk,ap:function(e,t){return ea(e,n(t))}}};function UB(e,t){var n=UL(e,t).ap;return{URI:UK,_E:void 0,map:Uk,ap:n,of:Ub}}function UP(e){var t=UL(Sl,e),n=Uf(Sp,e);return{URI:UK,_E:void 0,map:Uk,ap:t.ap,chain:function(e,t){return ea(e,n(t))}}}var UW={URI:UK,map:Uk},UD=eB(UW),UN={URI:UK,fromEither:C8},Uq=eH(UN),UQ=eJ(UN),UV=eZ(UN),Uz={URI:UK,fromThese:C8},UY=hZ(Uz),UH={URI:UK,fromIO:UI},UZ=Ah(UH),UJ={URI:UK,fromIO:UI,fromTask:US},UG=hV(UJ),U$=Uy(Sr),UX=Ub(eS),U0=function(e){var t=Un(e);return function(e){return et(SI(e),C4(t(eu)))}},U1=function(e){return function(t){var n=U0(e)(t);return function(e){return ex(e)?n(e):UX}}},U2=function(e){return function(t){return function(n){return function(){return eC(n).reduce(function(n,r,i){return n.then(function(o){return jO(o)?n:t(i+1,r)().then(function(t){if(jO(t))return t;if(jk(t)){var n=o.right;return n.push(t.right),jk(o)?jF(e.concat(o.left,t.left),n):jF(t.left,n)}return o.right.push(t.right),o})})},t(0,eb(n))().then(jZ(ev)))}}}},U6=function(e){return function(t){var n=U2(e)(t);return function(e){return ex(e)?n(e):UX}}},U5=function(e,t){return U$(function(){return e},function(){return t})},U3=function(e,t){return eE(Sc)(jK(e,t))};let U9=Object.freeze(Object.defineProperty({__proto__:null,ApT:UX,Bifunctor:{URI:UK,bimap:UE,mapLeft:UM},FromEither:UN,FromIO:UH,FromTask:UJ,FromThese:Uz,Functor:UW,Pointed:{URI:UK,of:Ub},URI:UK,bifunctorTaskThese:{URI:UK,bimap:UE,mapLeft:UM},bimap:Uj,both:UC,flap:UD,fold:UO,foldW:UO,fromEither:C8,fromIO:UI,fromIOEither:C2,fromIOK:UZ,fromOption:Uq,fromOptionK:UQ,fromPredicate:UV,fromTask:US,fromTaskK:UG,fromThese:C8,fromTheseK:UY,functorTaskThese:{URI:UK,map:Uk},getApplicative:UB,getApply:UL,getChain:UP,getMonad:function(e){var t=UB(Sl,e),n=UP(e);return{URI:UK,_E:void 0,map:Uk,ap:t.ap,of:Ub,chain:n.chain,fromIO:UI,fromTask:US}},getSemigroup:U3,left:Ux,leftIO:U_,leftTask:Uw,map:UF,mapLeft:UU,match:UT,matchE:UO,matchEW:UO,matchW:UT,of:Ub,right:Ub,rightIO:UI,rightTask:US,swap:UR,taskThese:{URI:UK,map:Uk,bimap:UE,mapLeft:UM},toTuple:U5,toTuple2:U$,traverseReadonlyArrayWithIndex:U1,traverseReadonlyArrayWithIndexSeq:U6,traverseReadonlyNonEmptyArrayWithIndex:U0,traverseReadonlyNonEmptyArrayWithIndexSeq:U2},Symbol.toStringTag,{value:"Module"}));var U4=function(e,t){return ea(e,U7(t))},U7=function(e){return function(t){return function(n){return e(t(n))}}},U8="Traced",Ke={URI:U8,map:U4},Kt=eB(Ke);let Kn=Object.freeze(Object.defineProperty({__proto__:null,Functor:Ke,URI:U8,censor:function(e){return function(t){return function(n){return t(e(n))}}},flap:Kt,getComonad:function(e){return{URI:U8,_E:void 0,map:U4,extend:function(t,n){return function(r){return n(function(n){return t(e.concat(r,n))})}},extract:function(t){return t(e.empty)}}},listen:function(e){return function(t){return[e(t),t]}},listens:function(e){return function(t){return function(n){return[t(n),e(n)]}}},map:U7,traced:Ke,tracks:function(e,t){return function(n){return n(t(n(e.empty)))}}},Symbol.toStringTag,{value:"Module"}));function Kr(e,t){return function(n){var r=e.traverse(n),i=t.traverse(n);return function(e){return function(t){return r(t,function(t){return i(t,e)})}}}}function Ki(e,t){return function(n){var r=e.sequence(n),i=t.sequence(n);return function(t){return r(e.map(t,i))}}}let Ko=Object.freeze(Object.defineProperty({__proto__:null,getTraversableComposition:function(e,t){var n=eW(e,t).map,r=Al(e,t),i=Kr(e,t),o=Ki(e,t);return{map:n,reduce:r.reduce,foldMap:r.foldMap,reduceRight:r.reduceRight,traverse:function(e){var t=i(e);return function(e,n){return ea(e,t(n))}},sequence:function(e){var t=o(e);return function(e){return ea(e,t)}}}},sequence:Ki,traverse:Kr},Symbol.toStringTag,{value:"Module"})),Ka=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function Ku(e,t){return void 0===t&&(t=[]),{value:e,forest:t}}var Ks=function(e,t){for(var n,r="",i=t.length,o=0;o<i;o++){n=t[o];var a=o===i-1;r+=e+(a?"└":"├")+"─ "+n.value,r+=Ks(e+(i>1&&!a?"│ ":" "),n.forest)}return r};function Kl(e){return Ks(`
|
|
2
2
|
`,e)}function Kc(e,t){var n,r=t(e);return{value:r[0],forest:Kd(r[1],t)}}function Kd(e,t){return e.map(function(e){return Kc(e,t)})}function Kf(e){var t=Kp(e);return function(n,r){return e.chain(r(n),function(n){var i=n[0],o=n[1];return e.map(t(o,r),function(e){return{value:i,forest:e}})})}}function Kp(e){var t=ls(e);return function(n,r){return ea(n,t(function(t){return Kf(e)(t,r)}))}}var KA=function(e,t){return ea(e,KT(t))},Kh=function(e,t){return ea(e,KS(function(e){return ea(t,KT(e))}))},Km=function(e,t){return ea(e,KS(t))},Kg=function(e,t,n){return ea(e,KO(t,n))},Ky=function(e){var t=KR(e);return function(e,n){return ea(e,t(n))}},Kv=function(e,t,n){return ea(e,Kk(t,n))},Kx=function(e,t){return ea(e,Kw(t))},Kb=function(e){var t=KM(e);return function(e,n){return ea(e,t(n))}},KC=function(e){return function(t){return Kh(t,e)}},KS=function(e){return function(t){var n=e(t.value),r=n.value,i=n.forest,o=lm().concat;return{value:r,forest:o(i,t.forest.map(KS(e)))}}},Kw=function(e){return function(t){return{value:e(t),forest:t.forest.map(Kw(e))}}},KI=Kw(Z),K_=KS(Z),KT=function(e){return function(t){return{value:e(t.value),forest:t.forest.map(KT(e))}}},KO=function(e,t){return function(n){for(var r=t(e,n.value),i=n.forest.length,o=0;o<i;o++)r=ea(n.forest[o],KO(r,t));return r}},KR=function(e){return function(t){return KO(e.empty,function(n,r){return e.concat(n,t(r))})}},Kk=function(e,t){return function(n){for(var r=e,i=n.forest.length,o=i-1;o>=0;o--)r=ea(n.forest[o],Kk(r,t));return t(n.value,r)}},KE=function(e){return e.value},KM=function(e){var t=ls(e),n=function(r){return function(i){return e.ap(e.map(r(i.value),function(e){return function(t){return{value:e,forest:t}}}),ea(i.forest,t(n(r))))}};return n},KF=function(e){return KM(e)(Z)},Kj=function(e){return Ku(e)},KU="Tree",KK={URI:KU,map:KA},KL=eB(KK),KB={URI:KU,map:KA,ap:Kh},KP=eO(KB),KW=eR(KB),KD={URI:KU,map:KA,ap:Kh,chain:Km},KN=eV(KD),Kq=Kj(ew),KQ=eP(KK),KV=ez(KD),Kz=ek(KB),KY=function(e){return function(t){return e(t.value)||t.forest.some(KY(e))}};let KH=Object.freeze(Object.defineProperty({__proto__:null,Applicative:{URI:KU,map:KA,ap:Kh,of:Kj},Apply:KB,Chain:KD,Comonad:{URI:KU,map:KA,extend:Kx,extract:KE},Do:Kq,Foldable:{URI:KU,reduce:Kg,foldMap:Ky,reduceRight:Kv},Functor:KK,Monad:{URI:KU,map:KA,ap:Kh,of:Kj,chain:Km},Pointed:{URI:KU,of:Kj},Traversable:{URI:KU,map:KA,reduce:Kg,foldMap:Ky,reduceRight:Kv,traverse:Kb,sequence:KF},URI:KU,ap:KC,apFirst:KP,apS:Kz,apSecond:KW,bind:KV,bindTo:KQ,chain:KS,chainFirst:KN,drawForest:Kl,drawTree:function(e){return e.value+Kl(e.forest)},duplicate:KI,elem:function(e){var t=function(n,r){return e.equals(n,r.value)||r.forest.some(function(e){return t(n,e)})};return t},exists:KY,extend:Kw,extract:KE,flap:KL,flatten:K_,fold:function(e){var t=function(n){return e(n.value,n.forest.map(t))};return t},foldMap:KR,getEq:function(e){var t,n=e6(function(n,r){return e.equals(n.value,r.value)&&t.equals(n.forest,r.forest)});return t=ui(n),n},getShow:function(e){var t=function(n){return uq(n.forest)?"make(".concat(e.show(n.value),")"):"make(".concat(e.show(n.value),", [").concat(n.forest.map(t).join(", "),"])")};return{show:t}},make:Ku,map:KT,of:Kj,reduce:KO,reduceRight:Kk,sequence:KF,traverse:KM,tree:{URI:KU,map:KA,of:Kj,ap:Kh,chain:Km,reduce:Kg,foldMap:Ky,reduceRight:Kv,traverse:Kb,sequence:KF,extract:KE,extend:Kx},unfoldForest:Kd,unfoldForestM:Kp,unfoldTree:Kc,unfoldTreeM:Kf},Symbol.toStringTag,{value:"Module"}));var KZ=function(e){var t;return[RH(e),(t=e,t[0])]};function KJ(e){return{URI:Ll,_E:void 0,map:K0,ap:function(t,n){var r,i;return[(r=t,r[0])((i=n,i[0])),e.concat(RH(t),RH(n))]}}}var KG=function(e){return function(t){return[t,e.empty]}};function K$(e){var t=KJ(e);return{URI:Ll,_E:void 0,map:t.map,ap:t.ap,chain:function(t,n){var r,i=n((r=t,r[0])),o=i[0],a=i[1];return[o,e.concat(RH(t),a)]}}}var KX=function(e,t){return ea(e,Lt(t))},K0=function(e,t){return ea(e,K8(t))},K1=function(e,t,n){return ea(e,K7(t,n))},K2=function(e,t){return ea(e,Le(t))},K6=function(e,t){return ea(e,Ln(t))},K5=function(e,t,n){return ea(e,Lo(t,n))},K3=function(e){var t=Li();return function(e,n){return ea(e,t(n))}},K9=function(e,t,n){return ea(e,La(t,n))};function K4(e){var t=Lu(e);return function(e,n){return ea(e,t(n))}}var K7=function(e,t){return function(n){var r;return[t((r=n,r[0])),e(RH(n))]}},K8=function(e){return function(t){var n;return[e((n=t,n[0])),RH(t)]}},Le=function(e){return function(t){var n;return[(n=t,n[0]),e(RH(t))]}},Lt=function(e){return function(t){var n;return[(n=t,n[0]),RH(e)]}},Ln=function(e){return function(t){return[e(t),RH(t)]}},Lr=Ln(Z),Li=ko,Lo=ki,La=ka,Lu=function(e){return function(t){return function(n){var r;return e.map(t((r=n,r[0])),function(e){return[e,RH(n)]})}}},Ls=function(e){return function(t){var n;return e.map((n=t,n[0]),function(e){return[e,RH(t)]})}},Ll="Tuple",Lc={URI:Ll,map:K0},Ld=eB(Lc);let Lf=Object.freeze(Object.defineProperty({__proto__:null,Bifunctor:{URI:Ll,bimap:K1,mapLeft:K2},Comonad:{URI:Ll,map:K0,extend:K6,extract:RY},Foldable:{URI:Ll,reduce:K5,foldMap:K3,reduceRight:K9},Functor:Lc,Semigroupoid:{URI:Ll,compose:KX},Traversable:{URI:Ll,map:K0,reduce:K5,foldMap:K3,reduceRight:K9,traverse:K4,sequence:Ls},URI:Ll,bimap:K7,compose:Lt,duplicate:Lr,extend:Ln,extract:RY,flap:Ld,foldMap:Li,fst:RY,getApplicative:function(e){var t=KJ(e);return{URI:Ll,_E:void 0,map:t.map,ap:t.ap,of:KG(e)}},getApply:KJ,getChain:K$,getChainRec:function(e){var t=function(t,n){for(var r,i,o=n(t),a=e.empty,u=(r=o,r[0]);"Left"===u._tag;){a=e.concat(a,RH(o)),u=(i=o=n(u.left))[0]}return[u.right,e.concat(a,RH(o))]},n=K$(e);return{URI:Ll,_E:void 0,map:n.map,ap:n.ap,chain:n.chain,chainRec:t}},getMonad:function(e){var t=K$(e);return{URI:Ll,_E:void 0,map:t.map,ap:t.ap,chain:t.chain,of:KG(e)}},map:K8,mapFst:K8,mapLeft:Le,mapSnd:Le,reduce:Lo,reduceRight:La,sequence:Ls,snd:RH,swap:KZ,traverse:Lu,tuple:{URI:Ll,compose:KX,map:K0,bimap:K1,mapLeft:K2,extract:RY,extend:K6,reduce:K5,foldMap:K3,reduceRight:K9,traverse:K4,sequence:Ls}},Symbol.toStringTag,{value:"Module"})),Lp=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),LA=Object.freeze(Object.defineProperty({__proto__:null,getValidationM:function(e,t){var n=eq(t,fU(e));return{map:n.map,ap:n.ap,of:n.of,chain:function(e,n){return t.chain(e,function(e){return eh(e)?t.of(eg(e.left)):n(e.right)})},alt:function(n,r){return t.chain(n,function(n){return em(n)?t.of(n):t.map(r(),function(t){return eh(t)?eg(e.concat(n.left,t.left)):t})})}}}},Symbol.toStringTag,{value:"Module"}));var Lh=tF(void 0),Lm={concat:Lh.concat,empty:void 0};let Lg=Object.freeze(Object.defineProperty({__proto__:null,Monoid:Lm,Semigroup:Lh},Symbol.toStringTag,{value:"Module"}));var Ly=function(e){return function(){return[void 0,e]}},Lv=function(e){return function(){var t=e(),n=t[0],r=t[1];return[[n,r],r]}},Lx=function(e){return function(){var t,n=e(),r=n[0],i=r[0];return[i,(0,r[1])(n[1])]}},Lb=function(e){return function(t){return function(){var n=t(),r=n[0],i=n[1];return[[r,e(i)],i]}}},LC=function(e){return function(t){return function(){var n,r=t();return[r[0],e(r[1])]}}},LS=function(e,t){return ea(e,Lw(t))},Lw=function(e){return function(t){return function(){var n=t(),r=n[0],i=n[1];return[e(r),i]}}},LI="Writer",L_=function(e){return{URI:LI,_E:void 0,of:function(t){return function(){return[t,e.empty]}}}},LT=function(e){return{URI:LI,_E:void 0,map:LS,ap:function(t,n){return function(){var r=t(),i=r[0],o=r[1],a=n(),u=a[0],s=a[1];return[i(u),e.concat(o,s)]}}}},LO=function(e){var t=LT(e),n=L_(e);return{URI:LI,_E:void 0,map:LS,ap:t.ap,of:n.of}};function LR(e){var t=LT(e);return{URI:LI,_E:void 0,map:LS,ap:t.ap,chain:function(t,n){return function(){var r=t(),i=r[0],o=r[1],a=n(i)(),u=a[0],s=a[1];return[u,e.concat(o,s)]}}}}var Lk={URI:LI,map:LS},LE=eB(Lk),LM=function(e){return e()[0]},LF=function(e){return e()[1]},Lj=function(e){return e()[0]},LU=function(e){return e()[1]};let LK=Object.freeze(Object.defineProperty({__proto__:null,Functor:Lk,URI:LI,censor:LC,evalWriter:Lj,evaluate:LM,execWriter:LU,execute:LF,flap:LE,getApplicative:LO,getApply:LT,getChain:LR,getMonad:function(e){var t=LO(e),n=LR(e);return{URI:LI,_E:void 0,map:LS,ap:t.ap,of:t.of,chain:n.chain}},getPointed:L_,listen:Lv,listens:Lb,map:Lw,pass:Lx,tell:Ly,writer:Lk},Symbol.toStringTag,{value:"Module"})),LL=Object.freeze(Object.defineProperty({__proto__:null,getWriterM:function(e){var t=function(t,n){return function(){return e.map(t(),function(e){var t=e[0],r=e[1];return[n(t),r]})}};return{map:t,evalWriter:function(t){return e.map(t(),function(e){return e[0]})},execWriter:function(t){return e.map(t(),function(e){return e[0],e[1]})},tell:function(t){return function(){return e.of([void 0,t])}},listen:function(t){return function(){return e.map(t(),function(e){var t=e[0],n=e[1];return[[t,n],n]})}},pass:function(t){return function(){return e.map(t(),function(e){var t,n=e[0],r=n[0];return[r,(0,n[1])(e[1])]})}},listens:function(t,n){return function(){return e.map(t(),function(e){var t=e[0],r=e[1];return[[t,n(r)],r]})}},censor:function(t,n){return function(){return e.map(t(),function(e){var t;return[e[0],n(e[1])]})}},getMonad:function(n){return{_E:void 0,map:t,of:function(t){return function(){return e.of([t,n.empty])}},ap:function(t,r){return function(){return e.chain(t(),function(t){var i=t[0],o=t[1];return e.map(r(),function(e){var t=e[0],r=e[1];return[i(t),n.concat(o,r)]})})}},chain:function(t,r){return function(){return e.chain(t(),function(t){var i=t[0],o=t[1];return e.map(r(i)(),function(e){var t=e[0],r=e[1];return[t,n.concat(o,r)]})})}}}}}}},Symbol.toStringTag,{value:"Module"})),LB=Object.freeze(Object.defineProperty({__proto__:null,alt:D,alternative:N,applicative:eQ,apply:eK,array:lH,bifunctor:lZ,boolean:l5,booleanAlgebra:l9,bounded:ce,boundedDistributiveLattice:cr,boundedJoinSemilattice:ci,boundedLattice:co,boundedMeetSemilattice:ca,category:cu,chain:eY,chainRec:cl,choice:cf,comonad:cp,compactable:d1,console:d9,const:fc,contravariant:fd,date:fh,distributiveLattice:cn,either:pF,eitherT:p2,endomorphism:p3,eq:tr,extend:p9,field:p7,filterable:Ar,filterableWithIndex:Ai,foldable:Ac,foldableWithIndex:AA,fromEither:e2,fromIO:Ay,fromReader:hi,fromState:hQ,fromTask:hH,fromThese:hJ,function:el,functor:eD,functorWithIndex:h$,group:hX,heytingAlgebra:h0,hkt:h1,identity:m_,invariant:mT,io:m6,ioEither:yn,ioOption:vv,ioRef:vb,joinSemilattice:vC,json:vI,lattice:v_,magma:tk,map:bp,meetSemilattice:bA,monad:bh,monadIO:bm,monadTask:bg,monadThrow:by,monoid:bM,naturalTransformation:bF,nonEmptyArray:i$,number:i8,option:d$,optionT:yx,ord:tw,ordering:bW,pipeable:bD,pointed:bN,predicate:cw,profunctor:bq,random:bH,reader:A7,readerEither:CZ,readerT:C1,readerTask:wI,readerTaskEither:TE,readonlyArray:uN,readonlyMap:xT,readonlyNonEmptyArray:ry,readonlyRecord:Rm,readonlySet:Rz,readonlyTuple:kf,record:k5,refinement:Er,ring:Ea,semigroup:tz,semigroupoid:Eu,semiring:Es,separated:of,set:ER,show:EM,state:hL,stateReaderTaskEither:M7,stateT:ED,store:Fl,string:TJ,strong:Ff,struct:Fh,task:SU,taskEither:I$,taskOption:jT,taskThese:U9,these:Ui,theseT:Uv,traced:Kn,traversable:Ko,traversableWithIndex:Ka,tree:KH,tuple:Lf,unfoldable:Lp,validationT:LA,void:Lg,witherable:om,writer:LK,writerT:LL,zero:oy},Symbol.toStringTag,{value:"Module"})),LP=O(LB);var LW={},LD={},LN={},Lq={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getEndomorphismMonoid=e.not=e.SK=e.hole=e.pipe=e.untupled=e.tupled=e.absurd=e.decrement=e.increment=e.tuple=e.flow=e.flip=e.constVoid=e.constUndefined=e.constNull=e.constFalse=e.constTrue=e.constant=e.unsafeCoerce=e.identity=e.apply=e.getRing=e.getSemiring=e.getMonoid=e.getSemigroup=e.getBooleanAlgebra=void 0;var t=function(e){return function(){return{meet:function(t,n){return function(r){return e.meet(t(r),n(r))}},join:function(t,n){return function(r){return e.join(t(r),n(r))}},zero:function(){return e.zero},one:function(){return e.one},implies:function(t,n){return function(r){return e.implies(t(r),n(r))}},not:function(t){return function(n){return e.not(t(n))}}}}};e.getBooleanAlgebra=t;var n=function(e){return function(){return{concat:function(t,n){return function(r){return e.concat(t(r),n(r))}}}}};e.getSemigroup=n;var r=function(t){var n=(0,e.getSemigroup)(t);return function(){return{concat:n().concat,empty:function(){return t.empty}}}};e.getMonoid=r;var i=function(e){return{add:function(t,n){return function(r){return e.add(t(r),n(r))}},zero:function(){return e.zero},mul:function(t,n){return function(r){return e.mul(t(r),n(r))}},one:function(){return e.one}}};e.getSemiring=i;var o=function(t){var n=(0,e.getSemiring)(t);return{add:n.add,mul:n.mul,one:n.one,zero:n.zero,sub:function(e,n){return function(r){return t.sub(e(r),n(r))}}}};e.getRing=o;var a=function(e){return function(t){return t(e)}};function u(e){return e}function s(e){return function(){return e}}function l(e,t,n,r,i,o,a,u,s){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return o(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return a(o(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return u(a(o(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return s(u(a(o(i(r(n(t(e.apply(this,arguments)))))))))}}}function c(e){return e+1}function d(e){return e-1}function f(e){throw Error("Called `absurd` function which should be uncallable")}e.apply=a,e.identity=u,e.unsafeCoerce=u,e.constant=s,e.constTrue=s(!0),e.constFalse=s(!1),e.constNull=s(null),e.constUndefined=s(void 0),e.constVoid=e.constUndefined,e.flip=function(e){return function(t,n){return e(n,t)}},e.flow=l,e.tuple=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e},e.increment=c,e.decrement=d,e.absurd=f,e.tupled=function(e){return function(t){return e.apply(void 0,t)}},e.untupled=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(t)}},e.pipe=function(e,t,n,r,i,o,a,u,s){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return o(i(r(n(t(e)))));case 7:return a(o(i(r(n(t(e))))));case 8:return u(a(o(i(r(n(t(e)))))));case 9:return s(u(a(o(i(r(n(t(e))))))));default:for(var l=arguments[0],c=1;c<arguments.length;c++)l=arguments[c](l);return l}},e.hole=f;var p=function(e,t){return t};e.SK=p,e.not=function(e){return function(t){return!e(t)}};var A=function(){return{concat:function(e,t){return l(e,t)},empty:u}};e.getEndomorphismMonoid=A}(Lq);var LQ={},LV=T&&T.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(LQ,"__esModule",{value:!0}),LQ.fromReadonlyNonEmptyArray=LQ.has=LQ.emptyRecord=LQ.emptyReadonlyArray=LQ.tail=LQ.head=LQ.isNonEmpty=LQ.singleton=LQ.right=LQ.left=LQ.isRight=LQ.isLeft=LQ.some=LQ.none=LQ.isSome=LQ.isNone=void 0;var Lz=function(e){return"None"===e._tag};LQ.isNone=Lz;var LY=function(e){return"Some"===e._tag};LQ.isSome=LY,LQ.none={_tag:"None"};var LH=function(e){return{_tag:"Some",value:e}};LQ.some=LH;var LZ=function(e){return"Left"===e._tag};LQ.isLeft=LZ;var LJ=function(e){return"Right"===e._tag};LQ.isRight=LJ;var LG=function(e){return{_tag:"Left",left:e}};LQ.left=LG;var L$=function(e){return{_tag:"Right",right:e}};LQ.right=L$;var LX=function(e){return[e]};LQ.singleton=LX;var L0=function(e){return e.length>0};LQ.isNonEmpty=L0;var L1=function(e){return e[0]};LQ.head=L1;var L2=function(e){return e.slice(1)};LQ.tail=L2,LQ.emptyReadonlyArray=[],LQ.emptyRecord={},LQ.has=Object.prototype.hasOwnProperty;var L6=function(e){return LV([e[0]],e.slice(1),!0)};LQ.fromReadonlyNonEmptyArray=L6;var L5=T&&T.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),L3=T&&T.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),L9=T&&T.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&L5(t,e,n);return L3(t,e),t};Object.defineProperty(LN,"__esModule",{value:!0}),LN.sequenceS=LN.sequenceT=LN.getApplySemigroup=LN.apS=LN.apSecond=LN.apFirst=LN.ap=void 0;var L4=L9(LQ);function L7(e,t,n){return function(r){for(var i=Array(n.length+1),o=0;o<n.length;o++)i[o]=n[o];return i[n.length]=r,0===t?e.apply(null,i):L7(e,t-1,i)}}LN.ap=function(e,t){return function(n){return function(r){return e.ap(e.map(r,function(e){return function(n){return t.ap(e,n)}}),n)}}},LN.apFirst=function(e){return function(t){return function(n){return e.ap(e.map(n,function(e){return function(){return e}}),t)}}},LN.apSecond=function(e){return function(t){return function(n){return e.ap(e.map(n,function(){return function(e){return e}}),t)}}},LN.apS=function(e){return function(t,n){return function(r){return e.ap(e.map(r,function(e){return function(n){var r;return Object.assign({},e,((r={})[t]=n,r))}}),n)}}},LN.getApplySemigroup=function(e){return function(t){return{concat:function(n,r){return e.ap(e.map(n,function(e){return function(n){return t.concat(e,n)}}),r)}}}};var L8={1:function(e){return[e]},2:function(e){return function(t){return[e,t]}},3:function(e){return function(t){return function(n){return[e,t,n]}}},4:function(e){return function(t){return function(n){return function(r){return[e,t,n,r]}}}},5:function(e){return function(t){return function(n){return function(r){return function(i){return[e,t,n,r,i]}}}}}};function Be(e){return L4.has.call(L8,e)||(L8[e]=L7(Lq.tuple,e-1,[])),L8[e]}function Bt(e){var t=e.length;switch(t){case 1:return function(t){var n;return(n={})[e[0]]=t,n};case 2:return function(t){return function(n){var r;return(r={})[e[0]]=t,r[e[1]]=n,r}};case 3:return function(t){return function(n){return function(r){var i;return(i={})[e[0]]=t,i[e[1]]=n,i[e[2]]=r,i}}};case 4:return function(t){return function(n){return function(r){return function(i){var o;return(o={})[e[0]]=t,o[e[1]]=n,o[e[2]]=r,o[e[3]]=i,o}}}};case 5:return function(t){return function(n){return function(r){return function(i){return function(o){var a;return(a={})[e[0]]=t,a[e[1]]=n,a[e[2]]=r,a[e[3]]=i,a[e[4]]=o,a}}}}};default:return L7(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i={},o=0;o<t;o++)i[e[o]]=n[o];return i},t-1,[])}}LN.sequenceT=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=t.length,i=Be(r),o=e.map(t[0],i),a=1;a<r;a++)o=e.ap(o,t[a]);return o}},LN.sequenceS=function(e){return function(t){for(var n=Object.keys(t),r=n.length,i=Bt(n),o=e.map(t[n[0]],i),a=1;a<r;a++)o=e.ap(o,t[n[a]]);return o}};var Bn={};function Br(e,t){return function(n){return function(r){return e.map(r,function(e){return t.map(e,n)})}}}Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.getFunctorComposition=Bn.bindTo=Bn.flap=Bn.map=void 0,Bn.map=Br,Bn.flap=function(e){return function(t){return function(n){return e.map(n,function(e){return e(t)})}}},Bn.bindTo=function(e){return function(t){return function(n){return e.map(n,function(e){var n;return(n={})[t]=e,n})}}},Bn.getFunctorComposition=function(e,t){var n=Br(e,t);return{map:function(e,t){return(0,Lq.pipe)(e,n(t))}}},Object.defineProperty(LD,"__esModule",{value:!0}),LD.getApplicativeComposition=LD.getApplicativeMonoid=void 0,LD.getApplicativeMonoid=function(e){var t=(0,LN.getApplySemigroup)(e);return function(n){return{concat:t(n).concat,empty:e.of(n.empty)}}},LD.getApplicativeComposition=function(e,t){var n=(0,Bn.getFunctorComposition)(e,t).map,r=(0,LN.ap)(e,t);return{map:n,of:function(n){return e.of(t.of(n))},ap:function(e,t){return(0,Lq.pipe)(e,r(t))}}};var Bi={};Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.bind=Bi.chainFirst=void 0,Bi.chainFirst=function(e){return function(t){return function(n){return e.chain(n,function(n){return e.map(t(n),function(){return n})})}}},Bi.bind=function(e){return function(t,n){return function(r){return e.chain(r,function(r){return e.map(n(r),function(e){var n;return Object.assign({},r,((n={})[t]=e,n))})})}}};var Bo={};Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.tailRec=void 0;var Ba=function(e,t){for(var n=t(e);"Left"===n._tag;)n=t(n.left);return n.right};Bo.tailRec=Ba;var Bu={},Bs=T&&T.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),Bl=T&&T.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Bc=T&&T.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&Bs(t,e,n);return Bl(t,e),t};Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.filterOrElse=Bu.chainFirstEitherK=Bu.chainEitherK=Bu.fromEitherK=Bu.chainOptionK=Bu.fromOptionK=Bu.fromPredicate=Bu.fromOption=void 0;var Bd=Bc(LQ);function Bf(e){return function(t){return function(n){return e.fromEither(Bd.isNone(n)?Bd.left(t()):Bd.right(n.value))}}}function Bp(e){var t=Bf(e);return function(e){var n=t(e);return function(e){return(0,Lq.flow)(e,n)}}}function BA(e){return function(t){return(0,Lq.flow)(t,e.fromEither)}}Bu.fromOption=Bf,Bu.fromPredicate=function(e){return function(t,n){return function(r){return e.fromEither(t(r)?Bd.right(r):Bd.left(n(r)))}}},Bu.fromOptionK=Bp,Bu.chainOptionK=function(e,t){var n=Bp(e);return function(e){var r=n(e);return function(e){return function(n){return t.chain(n,r(e))}}}},Bu.fromEitherK=BA,Bu.chainEitherK=function(e,t){var n=BA(e);return function(e){return function(r){return t.chain(r,n(e))}}},Bu.chainFirstEitherK=function(e,t){return(0,Lq.flow)(BA(e),(0,Bi.chainFirst)(t))},Bu.filterOrElse=function(e,t){return function(n,r){return function(i){return t.chain(i,function(t){return e.fromEither(n(t)?Bd.right(t):Bd.left(r(t)))})}}};var Bh,Bm,Bg,By,Bv,Bx,Bb,BC,BS,Bw,BI={};Object.defineProperty(Bh=BI,"__esModule",{value:!0}),Bh.right=Bh.left=Bh.flap=Bh.Functor=Bh.Bifunctor=Bh.URI=Bh.bimap=Bh.mapLeft=Bh.map=Bh.separated=void 0,Bm=function(e,t){return{left:e,right:t}},Bh.separated=Bm,Bg=function(e,t){return(0,Lq.pipe)(e,(0,Bh.map)(t))},By=function(e,t){return(0,Lq.pipe)(e,(0,Bh.mapLeft)(t))},Bv=function(e,t,n){return(0,Lq.pipe)(e,(0,Bh.bimap)(t,n))},Bx=function(e){return function(t){return(0,Bh.separated)((0,Bh.left)(t),e((0,Bh.right)(t)))}},Bh.map=Bx,Bb=function(e){return function(t){return(0,Bh.separated)(e((0,Bh.left)(t)),(0,Bh.right)(t))}},Bh.mapLeft=Bb,BC=function(e,t){return function(n){return(0,Bh.separated)(e((0,Bh.left)(n)),t((0,Bh.right)(n)))}},Bh.bimap=BC,Bh.URI="Separated",Bh.Bifunctor={URI:Bh.URI,mapLeft:By,bimap:Bv},Bh.Functor={URI:Bh.URI,map:Bg},Bh.flap=(0,Bn.flap)(Bh.Functor),BS=function(e){return e.left},Bh.left=BS,Bw=function(e){return e.right},Bh.right=Bw;var B_={},BT=T&&T.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),BO=T&&T.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),BR=T&&T.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&BT(t,e,n);return BO(t,e),t};Object.defineProperty(B_,"__esModule",{value:!0}),B_.filterE=B_.witherDefault=B_.wiltDefault=void 0;var Bk=BR(LQ);B_.wiltDefault=function(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.separate)}}},B_.witherDefault=function(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.compact)}}},B_.filterE=function(e){return function(t){var n=e.wither(t);return function(e){return function(r){return n(r,function(n){return t.map(e(n),function(e){return e?Bk.some(n):Bk.none})})}}}},Px=LW,Pb=T&&T.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),PC=T&&T.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),PS=T&&T.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&Pb(t,e,n);return PC(t,e),t},Object.defineProperty(Px,"__esModule",{value:!0}),Px.fold=Px.match=Px.foldW=Px.matchW=Px.isRight=Px.isLeft=Px.fromOption=Px.fromPredicate=Px.FromEither=Px.MonadThrow=Px.throwError=Px.ChainRec=Px.Extend=Px.extend=Px.Alt=Px.alt=Px.altW=Px.Bifunctor=Px.mapLeft=Px.bimap=Px.Traversable=Px.sequence=Px.traverse=Px.Foldable=Px.reduceRight=Px.foldMap=Px.reduce=Px.Monad=Px.Chain=Px.chain=Px.chainW=Px.Applicative=Px.Apply=Px.ap=Px.apW=Px.Pointed=Px.of=Px.Functor=Px.map=Px.getAltValidation=Px.getApplicativeValidation=Px.getWitherable=Px.getFilterable=Px.getCompactable=Px.getSemigroup=Px.getEq=Px.getShow=Px.URI=Px.right=Px.left=void 0,Px.getValidation=Px.getValidationMonoid=Px.getValidationSemigroup=Px.getApplyMonoid=Px.getApplySemigroup=Px.either=Px.stringifyJSON=Px.parseJSON=Px.sequenceArray=Px.traverseArray=Px.traverseArrayWithIndex=Px.traverseReadonlyArrayWithIndex=Px.traverseReadonlyNonEmptyArrayWithIndex=Px.ApT=Px.apSW=Px.apS=Px.bindW=Px.bind=Px.bindTo=Px.Do=Px.exists=Px.elem=Px.toError=Px.toUnion=Px.chainNullableK=Px.fromNullableK=Px.tryCatchK=Px.tryCatch=Px.fromNullable=Px.orElse=Px.orElseW=Px.swap=Px.filterOrElseW=Px.filterOrElse=Px.chainOptionK=Px.fromOptionK=Px.duplicate=Px.flatten=Px.flattenW=Px.chainFirstW=Px.chainFirst=Px.apSecondW=Px.apSecond=Px.apFirstW=Px.apFirst=Px.flap=Px.getOrElse=Px.getOrElseW=void 0,Pw=PS(LQ),Px.left=Pw.left,Px.right=Pw.right,PI=function(e,t){return(0,Lq.pipe)(e,(0,Px.map)(t))},P_=function(e,t){return(0,Lq.pipe)(e,(0,Px.ap)(t))},PT=function(e,t){return(0,Lq.pipe)(e,(0,Px.chain)(t))},PO=function(e,t,n){return(0,Lq.pipe)(e,(0,Px.reduce)(t,n))},PR=function(e){return function(t,n){var r=(0,Px.foldMap)(e);return(0,Lq.pipe)(t,r(n))}},Pk=function(e,t,n){return(0,Lq.pipe)(e,(0,Px.reduceRight)(t,n))},PE=function(e){var t=(0,Px.traverse)(e);return function(e,n){return(0,Lq.pipe)(e,t(n))}},PM=function(e,t,n){return(0,Lq.pipe)(e,(0,Px.bimap)(t,n))},PF=function(e,t){return(0,Lq.pipe)(e,(0,Px.mapLeft)(t))},Pj=function(e,t){return(0,Lq.pipe)(e,(0,Px.alt)(t))},PU=function(e,t){return(0,Lq.pipe)(e,(0,Px.extend)(t))},PK=function(e,t){return(0,Bo.tailRec)(t(e),function(e){return(0,Px.isLeft)(e)?(0,Px.right)((0,Px.left)(e.left)):(0,Px.isLeft)(e.right)?(0,Px.left)(t(e.right.left)):(0,Px.right)((0,Px.right)(e.right.right))})},Px.URI="Either",PL=function(e,t){return{show:function(n){return(0,Px.isLeft)(n)?"left(".concat(e.show(n.left),")"):"right(".concat(t.show(n.right),")")}}},Px.getShow=PL,PB=function(e,t){return{equals:function(n,r){return n===r||((0,Px.isLeft)(n)?(0,Px.isLeft)(r)&&e.equals(n.left,r.left):(0,Px.isRight)(r)&&t.equals(n.right,r.right))}}},Px.getEq=PB,PP=function(e){return{concat:function(t,n){return(0,Px.isLeft)(n)?t:(0,Px.isLeft)(t)?n:(0,Px.right)(e.concat(t.right,n.right))}}},Px.getSemigroup=PP,PW=function(e){var t=(0,Px.left)(e.empty);return{URI:Px.URI,_E:void 0,compact:function(e){return(0,Px.isLeft)(e)?e:"None"===e.right._tag?t:(0,Px.right)(e.right.value)},separate:function(e){return(0,Px.isLeft)(e)?(0,BI.separated)(e,e):(0,Px.isLeft)(e.right)?(0,BI.separated)((0,Px.right)(e.right.left),t):(0,BI.separated)(t,(0,Px.right)(e.right.right))}}},Px.getCompactable=PW,PD=function(e){var t=(0,Px.left)(e.empty),n=(0,Px.getCompactable)(e),r=n.compact,i=n.separate,o=function(e,n){return(0,Px.isLeft)(e)||n(e.right)?e:t},a=function(e,n){return(0,Px.isLeft)(e)?(0,BI.separated)(e,e):n(e.right)?(0,BI.separated)(t,(0,Px.right)(e.right)):(0,BI.separated)((0,Px.right)(e.right),t)};return{URI:Px.URI,_E:void 0,map:PI,compact:r,separate:i,filter:o,filterMap:function(e,n){if((0,Px.isLeft)(e))return e;var r=n(e.right);return"None"===r._tag?t:(0,Px.right)(r.value)},partition:a,partitionMap:function(e,n){if((0,Px.isLeft)(e))return(0,BI.separated)(e,e);var r=n(e.right);return(0,Px.isLeft)(r)?(0,BI.separated)((0,Px.right)(r.left),t):(0,BI.separated)(t,(0,Px.right)(r.right))}}},Px.getFilterable=PD,PN=function(e){var t=(0,Px.getFilterable)(e),n=(0,Px.getCompactable)(e);return{URI:Px.URI,_E:void 0,map:PI,compact:t.compact,separate:t.separate,filter:t.filter,filterMap:t.filterMap,partition:t.partition,partitionMap:t.partitionMap,traverse:PE,sequence:Px.sequence,reduce:PO,foldMap:PR,reduceRight:Pk,wither:(0,B_.witherDefault)(Px.Traversable,n),wilt:(0,B_.wiltDefault)(Px.Traversable,n)}},Px.getWitherable=PN,Pq=function(e){return{URI:Px.URI,_E:void 0,map:PI,ap:function(t,n){return(0,Px.isLeft)(t)?(0,Px.isLeft)(n)?(0,Px.left)(e.concat(t.left,n.left)):t:(0,Px.isLeft)(n)?n:(0,Px.right)(t.right(n.right))},of:Px.of}},Px.getApplicativeValidation=Pq,PQ=function(e){return{URI:Px.URI,_E:void 0,map:PI,alt:function(t,n){if((0,Px.isRight)(t))return t;var r=n();return(0,Px.isLeft)(r)?(0,Px.left)(e.concat(t.left,r.left)):r}}},Px.getAltValidation=PQ,PV=function(e){return function(t){return(0,Px.isLeft)(t)?t:(0,Px.right)(e(t.right))}},Px.map=PV,Px.Functor={URI:Px.URI,map:PI},Px.of=Px.right,Px.Pointed={URI:Px.URI,of:Px.of},Pz=function(e){return function(t){return(0,Px.isLeft)(t)?t:(0,Px.isLeft)(e)?e:(0,Px.right)(t.right(e.right))}},Px.apW=Pz,Px.ap=Px.apW,Px.Apply={URI:Px.URI,map:PI,ap:P_},Px.Applicative={URI:Px.URI,map:PI,ap:P_,of:Px.of},PY=function(e){return function(t){return(0,Px.isLeft)(t)?t:e(t.right)}},Px.chainW=PY,Px.chain=Px.chainW,Px.Chain={URI:Px.URI,map:PI,ap:P_,chain:PT},Px.Monad={URI:Px.URI,map:PI,ap:P_,of:Px.of,chain:PT},PH=function(e,t){return function(n){return(0,Px.isLeft)(n)?e:t(e,n.right)}},Px.reduce=PH,PZ=function(e){return function(t){return function(n){return(0,Px.isLeft)(n)?e.empty:t(n.right)}}},Px.foldMap=PZ,PJ=function(e,t){return function(n){return(0,Px.isLeft)(n)?e:t(n.right,e)}},Px.reduceRight=PJ,Px.Foldable={URI:Px.URI,reduce:PO,foldMap:PR,reduceRight:Pk},PG=function(e){return function(t){return function(n){return(0,Px.isLeft)(n)?e.of((0,Px.left)(n.left)):e.map(t(n.right),Px.right)}}},Px.traverse=PG,P$=function(e){return function(t){return(0,Px.isLeft)(t)?e.of((0,Px.left)(t.left)):e.map(t.right,Px.right)}},Px.sequence=P$,Px.Traversable={URI:Px.URI,map:PI,reduce:PO,foldMap:PR,reduceRight:Pk,traverse:PE,sequence:Px.sequence},PX=function(e,t){return function(n){return(0,Px.isLeft)(n)?(0,Px.left)(e(n.left)):(0,Px.right)(t(n.right))}},Px.bimap=PX,P0=function(e){return function(t){return(0,Px.isLeft)(t)?(0,Px.left)(e(t.left)):t}},Px.mapLeft=P0,Px.Bifunctor={URI:Px.URI,bimap:PM,mapLeft:PF},P1=function(e){return function(t){return(0,Px.isLeft)(t)?e():t}},Px.altW=P1,Px.alt=Px.altW,Px.Alt={URI:Px.URI,map:PI,alt:Pj},P2=function(e){return function(t){return(0,Px.isLeft)(t)?t:(0,Px.right)(e(t))}},Px.extend=P2,Px.Extend={URI:Px.URI,map:PI,extend:PU},Px.ChainRec={URI:Px.URI,map:PI,ap:P_,chain:PT,chainRec:PK},Px.throwError=Px.left,Px.MonadThrow={URI:Px.URI,map:PI,ap:P_,of:Px.of,chain:PT,throwError:Px.throwError},Px.FromEither={URI:Px.URI,fromEither:Lq.identity},Px.fromPredicate=(0,Bu.fromPredicate)(Px.FromEither),Px.fromOption=(0,Bu.fromOption)(Px.FromEither),Px.isLeft=Pw.isLeft,Px.isRight=Pw.isRight,P6=function(e,t){return function(n){return(0,Px.isLeft)(n)?e(n.left):t(n.right)}},Px.matchW=P6,Px.foldW=Px.matchW,Px.match=Px.matchW,Px.fold=Px.match,P5=function(e){return function(t){return(0,Px.isLeft)(t)?e(t.left):t.right}},Px.getOrElseW=P5,Px.getOrElse=Px.getOrElseW,Px.flap=(0,Bn.flap)(Px.Functor),Px.apFirst=(0,LN.apFirst)(Px.Apply),Px.apFirstW=Px.apFirst,Px.apSecond=(0,LN.apSecond)(Px.Apply),Px.apSecondW=Px.apSecond,Px.chainFirst=(0,Bi.chainFirst)(Px.Chain),Px.chainFirstW=Px.chainFirst,Px.flattenW=(0,Px.chainW)(Lq.identity),Px.flatten=Px.flattenW,Px.duplicate=(0,Px.extend)(Lq.identity),Px.fromOptionK=(0,Bu.fromOptionK)(Px.FromEither),Px.chainOptionK=(0,Bu.chainOptionK)(Px.FromEither,Px.Chain),Px.filterOrElse=(0,Bu.filterOrElse)(Px.FromEither,Px.Chain),Px.filterOrElseW=Px.filterOrElse,P3=function(e){return(0,Px.isLeft)(e)?(0,Px.right)(e.left):(0,Px.left)(e.right)},Px.swap=P3,P9=function(e){return function(t){return(0,Px.isLeft)(t)?e(t.left):t}},Px.orElseW=P9,Px.orElse=Px.orElseW,P4=function(e){return function(t){return null==t?(0,Px.left)(e):(0,Px.right)(t)}},Px.fromNullable=P4,P7=function(e,t){try{return(0,Px.right)(e())}catch(n){return(0,Px.left)(t(n))}},Px.tryCatch=P7,P8=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(0,Px.tryCatch)(function(){return e.apply(void 0,n)},t)}},Px.tryCatchK=P8,We=function(e){var t=(0,Px.fromNullable)(e);return function(e){return(0,Lq.flow)(e,t)}},Px.fromNullableK=We,Wt=function(e){var t=(0,Px.fromNullableK)(e);return function(e){return(0,Px.chain)(t(e))}},Px.chainNullableK=Wt,Px.toUnion=(0,Px.foldW)(Lq.identity,Lq.identity),Px.toError=function(e){return e instanceof Error?e:Error(String(e))},Px.elem=function e(t){return function(n,r){if(void 0===r){var i=e(t);return function(e){return i(n,e)}}return!(0,Px.isLeft)(r)&&t.equals(n,r.right)}},Wn=function(e){return function(t){return!(0,Px.isLeft)(t)&&e(t.right)}},Px.exists=Wn,Px.Do=(0,Px.of)(Pw.emptyRecord),Px.bindTo=(0,Bn.bindTo)(Px.Functor),Px.bind=(0,Bi.bind)(Px.Chain),Px.bindW=Px.bind,Px.apS=(0,LN.apS)(Px.Apply),Px.apSW=Px.apS,Px.ApT=(0,Px.of)(Pw.emptyReadonlyArray),Wr=function(e){return function(t){var n=e(0,Pw.head(t));if((0,Px.isLeft)(n))return n;for(var r=[n.right],i=1;i<t.length;i++){var o=e(i,t[i]);if((0,Px.isLeft)(o))return o;r.push(o.right)}return(0,Px.right)(r)}},Px.traverseReadonlyNonEmptyArrayWithIndex=Wr,Wi=function(e){var t=(0,Px.traverseReadonlyNonEmptyArrayWithIndex)(e);return function(e){return Pw.isNonEmpty(e)?t(e):Px.ApT}},Px.traverseReadonlyArrayWithIndex=Wi,Px.traverseArrayWithIndex=Px.traverseReadonlyArrayWithIndex,Wo=function(e){return(0,Px.traverseReadonlyArrayWithIndex)(function(t,n){return e(n)})},Px.traverseArray=Wo,Px.sequenceArray=(0,Px.traverseArray)(Lq.identity),Px.parseJSON=function(e,t){return(0,Px.tryCatch)(function(){return JSON.parse(e)},t)},Wa=function(e,t){return(0,Px.tryCatch)(function(){var t=JSON.stringify(e);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},t)},Px.stringifyJSON=Wa,Px.either={URI:Px.URI,map:PI,of:Px.of,ap:P_,chain:PT,reduce:PO,foldMap:PR,reduceRight:Pk,traverse:PE,sequence:Px.sequence,bimap:PM,mapLeft:PF,alt:Pj,extend:PU,chainRec:PK,throwError:Px.throwError},Px.getApplySemigroup=(0,LN.getApplySemigroup)(Px.Apply),Px.getApplyMonoid=(0,LD.getApplicativeMonoid)(Px.Applicative),Wu=function(e,t){return(0,LN.getApplySemigroup)((0,Px.getApplicativeValidation)(e))(t)},Px.getValidationSemigroup=Wu,Ws=function(e,t){return(0,LD.getApplicativeMonoid)((0,Px.getApplicativeValidation)(e))(t)},Px.getValidationMonoid=Ws,Px.getValidation=function(e){var t=(0,Px.getApplicativeValidation)(e).ap,n=(0,Px.getAltValidation)(e).alt;return{URI:Px.URI,_E:void 0,map:PI,of:Px.of,chain:PT,bimap:PM,mapLeft:PF,reduce:PO,foldMap:PR,reduceRight:Pk,extend:PU,traverse:PE,sequence:Px.sequence,chainRec:PK,throwError:Px.throwError,ap:t,alt:n}};var BE=(Wl=function(e,t){return(Wl=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Wl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),BM=function(){return(BM=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},BF=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},Bj=function(e,t,n){return eg([{value:e,context:t,message:n}])},BU=function(){function e(e,t,n,r){this.name=e,this.is=t,this.validate=n,this.encode=r,this.decode=this.decode.bind(this)}return e.prototype.pipe=function(t,n){var r=this;return void 0===n&&(n="pipe(".concat(this.name,", ").concat(t.name,")")),new e(n,t.is,function(e,n){var i=r.validate(e,n);return f4(i)?i:t.validate(i.right,n)},this.encode===BK&&t.encode===BK?BK:function(e){return r.encode(t.encode(e))})},e.prototype.asDecoder=function(){return this},e.prototype.asEncoder=function(){return this},e.prototype.decode=function(e){return this.validate(e,[{key:"",type:this,actual:e}])},e}(),BK=function(e){return e};function BL(e){return e.displayName||e.name||"<function".concat(e.length,">")}function BB(e,t,n,r){for(var i=e.length,o=Array(i+1),a=0;a<i;a++)o[a]=e[a];return o[i]={key:t,type:n,actual:r},o}function BP(e,t){for(var n=t.length,r=0;r<n;r++)e.push(t[r])}var BW=Object.prototype.hasOwnProperty;function BD(e){return Object.keys(e).map(function(t){return"".concat(t,": ").concat(e[t].name)}).join(", ")}function BN(e){for(var t=0;t<e.length;t++)if(e[t].encode!==BK)return!1;return!0}function Bq(e){return"{ ".concat(BD(e)," }")}function BQ(e){return"Partial<".concat(e,">")}function BV(e){if(BX(e)){var t,n,r=e.value;if(Pi.is(r))return(t={})[r]=null,t}else{if(n=e,"KeyofType"===n._tag)return e.keys;if(B1(e)){var i=e.types.map(function(e){return BV(e)});return i.some(B7.is)?void 0:Object.assign.apply(Object,BF([{}],i,!1))}}}function Bz(e){return"("+e.map(function(e){return e.name}).join(" | ")+")"}function BY(e,t){for(var n=!0,r=!0,i=!PA.is(e),o=0;o<t.length;o++){var a=t[o];a!==e&&(n=!1),PA.is(a)&&(r=!1)}if(n)return e;if(r)return t[t.length-1];for(var u={},s=0;s<t.length;s++){var a=t[s];for(var l in a)(!BW.call(u,l)||i||a[l]!==e[l])&&(u[l]=a[l])}return u}function BH(e,t){for(var n=Object.getOwnPropertyNames(e),r=!1,i={},o=0;o<n.length;o++){var a=n[o];BW.call(t,a)?i[a]=e[a]:r=!0}return r?i:e}function BZ(e){return e.length>0}var BJ={};function BG(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];-1!==t.indexOf(i)&&n.push(i)}return n}function B$(e){return"AnyType"===e._tag}function BX(e){return"LiteralType"===e._tag}function B0(e){return"InterfaceType"===e._tag}function B1(e){return"UnionType"===e._tag}var B2=[];function B6(e){if(-1!==B2.indexOf(e))return BJ;if(B0(e)||"StrictType"===(t=e)._tag){var t,n,r,i,o,a=BJ;for(var u in e.props){var s=e.props[u];BX(s)&&(a===BJ&&(a={}),a[u]=[s.value])}return a}if("ExactType"===e._tag||"RefinementType"===e._tag)return B6(e.type);if("IntersectionType"===e._tag)return e.types.reduce(function(e,t){return function(e,t){if(e===BJ)return t;if(t===BJ)return e;var n=Object.assign({},e);for(var r in t)if(BW.call(e,r)){var i=BG(e[r],t[r]);if(BZ(i))n[r]=i;else{n=BJ;break}}else n[r]=t[r];return n}(e,B6(t))},BJ);if(B1(e))return e.types.slice(1).reduce(function(e,t){return function(e,t){if(e===BJ||t===BJ)return BJ;var n=BJ;for(var r in e)BW.call(t,r)&&0===BG(e[r],t[r]).length&&(n===BJ&&(n={}),n[r]=e[r].concat(t[r]));return n}(e,B6(t))},B6(e.types[0]));if("RecursiveType"===e._tag){B2.push(e);var l=B6(e.type);return B2.pop(),l}return BJ}function B5(e){var t=B6(e[0]),n=Object.keys(t),r=e.length;e:for(var i=0;i<n.length;i++){var o=function(n){for(var i=t[n].slice(),o=[t[n]],a=1;a<r;a++){var u=B6(e[a])[n];if(void 0===u||u.some(function(e){return -1!==i.indexOf(e)}))return"continue-keys";i.push.apply(i,u),o.push(u)}return{value:[n,o]}}(n[i]);if("object"==typeof o)return o.value;if("continue-keys"===o)continue e}}var B3=function(e){function t(){var t=e.call(this,"null",function(e){return null===e},function(e,n){return t.is(e)?ey(e):Bj(e,n)},BK)||this;return t._tag="NullType",t}return BE(t,e),t}(BU),B9=new B3,B4=function(e){function t(){var t=e.call(this,"undefined",function(e){return void 0===e},function(e,n){return t.is(e)?ey(e):Bj(e,n)},BK)||this;return t._tag="UndefinedType",t}return BE(t,e),t}(BU),B7=new B4,B8=function(e){function t(){var t=e.call(this,"void",B7.is,B7.validate,BK)||this;return t._tag="VoidType",t}return BE(t,e),t}(BU),Pe=new B8,Pt=function(e){function t(){var t=e.call(this,"unknown",function(e){return!0},ey,BK)||this;return t._tag="UnknownType",t}return BE(t,e),t}(BU),Pn=new Pt,Pr=function(e){function t(){var t=e.call(this,"string",function(e){return"string"==typeof e},function(e,n){return t.is(e)?ey(e):Bj(e,n)},BK)||this;return t._tag="StringType",t}return BE(t,e),t}(BU),Pi=new Pr,Po=function(e){function t(){var t=e.call(this,"number",function(e){return"number"==typeof e},function(e,n){return t.is(e)?ey(e):Bj(e,n)},BK)||this;return t._tag="NumberType",t}return BE(t,e),t}(BU),Pa=new Po,Pu=function(e){function t(){var t=e.call(this,"bigint",function(e){return"bigint"==typeof e},function(e,n){return t.is(e)?ey(e):Bj(e,n)},BK)||this;return t._tag="BigIntType",t}return BE(t,e),t}(BU),Ps=new Pu,Pl=function(e){function t(){var t=e.call(this,"boolean",function(e){return"boolean"==typeof e},function(e,n){return t.is(e)?ey(e):Bj(e,n)},BK)||this;return t._tag="BooleanType",t}return BE(t,e),t}(BU),Pc=new Pl,Pd=function(e){function t(){var t=e.call(this,"UnknownArray",Array.isArray,function(e,n){return t.is(e)?ey(e):Bj(e,n)},BK)||this;return t._tag="AnyArrayType",t}return BE(t,e),t}(BU),Pf=new Pd,Pp=function(e){function t(){var t=e.call(this,"UnknownRecord",function(e){var t=Object.prototype.toString.call(e);return"[object Object]"===t||"[object Window]"===t},function(e,n){return t.is(e)?ey(e):Bj(e,n)},BK)||this;return t._tag="AnyDictionaryType",t}return BE(t,e),t}(BU),PA=new Pp,Ph=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i)||this;return a.value=o,a._tag="LiteralType",a}return BE(t,e),t}(BU);function Pm(e,t){void 0===t&&(t=JSON.stringify(e));var n=function(t){return t===e};return new Ph(t,n,function(t,r){return n(t)?ey(e):Bj(t,r)},BK,e)}var Pg=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i)||this;return a.keys=o,a._tag="KeyofType",a}return BE(t,e),t}(BU),Py=function(e){function t(t,n,r,i,o,a){var u=e.call(this,t,n,r,i)||this;return u.type=o,u.predicate=a,u._tag="RefinementType",u}return BE(t,e),t}(BU);function Pv(e,t,n){return WQ(e,t,n)}var Px,Pb,PC,PS,Pw,PI,P_,PT,PO,PR,Pk,PE,PM,PF,Pj,PU,PK,PL,PB,PP,PW,PD,PN,Pq,PQ,PV,Pz,PY,PH,PZ,PJ,PG,P$,PX,P0,P1,P2,P6,P5,P3,P9,P4,P7,P8,We,Wt,Wn,Wr,Wi,Wo,Wa,Wu,Ws,Wl,Wc,Wd,Wf=WQ(Pa,Wd=function(e){return Number.isInteger(e)},"Int"),Wp=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i)||this;return a.runDefinition=o,a._tag="RecursiveType",a}return BE(t,e),t}(BU);function WA(e,t){var n,r=function(){return n||((n=t(i)).name=e),n},i=new Wp(e,function(e){return r().is(e)},function(e,t){return r().validate(e,t)},function(e){return r().encode(e)},r);return i}Object.defineProperty(Wp.prototype,"type",{get:function(){return this.runDefinition()},enumerable:!0,configurable:!0});var Wh=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i)||this;return a.type=o,a._tag="ArrayType",a}return BE(t,e),t}(BU);function Wm(e,t){return void 0===t&&(t="Array<".concat(e.name,">")),new Wh(t,function(t){return Pf.is(t)&&t.every(e.is)},function(t,n){var r=Pf.validate(t,n);if(f4(r))return r;for(var i=r.right,o=i.length,a=i,u=[],s=0;s<o;s++){var l=i[s],c=e.validate(l,BB(n,String(s),e,l));if(f4(c))BP(u,c.left);else{var d=c.right;d!==l&&(a===i&&(a=i.slice()),a[s]=d)}}return u.length>0?eg(u):ey(a)},e.encode===BK?BK:function(t){return t.map(e.encode)},e)}var Wg=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i)||this;return a.props=o,a._tag="InterfaceType",a}return BE(t,e),t}(BU);function Wy(e,t){void 0===t&&(t=Bq(e));var n=Object.keys(e),r=n.map(function(t){return e[t]}),i=n.length;return new Wg(t,function(e){if(PA.is(e)){for(var t=0;t<i;t++){var o=n[t],a=e[o];if(void 0===a&&!BW.call(e,o)||!r[t].is(a))return!1}return!0}return!1},function(e,t){var o=PA.validate(e,t);if(f4(o))return o;for(var a=o.right,u=a,s=[],l=0;l<i;l++){var c=n[l],d=u[c],f=r[l],p=f.validate(d,BB(t,c,f,d));if(f4(p))BP(s,p.left);else{var A=p.right;A===d&&(void 0!==A||BW.call(u,c))||(u===a&&(u=BM({},a)),u[c]=A)}}return s.length>0?eg(s):ey(u)},BN(r)?BK:function(e){for(var t=BM({},e),o=0;o<i;o++){var a=n[o],u=r[o].encode;u!==BK&&(t[a]=u(e[a]))}return t},e)}var Wv=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i)||this;return a.props=o,a._tag="PartialType",a}return BE(t,e),t}(BU),Wx=function(e){function t(t,n,r,i,o,a){var u=e.call(this,t,n,r,i)||this;return u.domain=o,u.codomain=a,u._tag="DictionaryType",u}return BE(t,e),t}(BU);function Wb(e,t,n){var r,i,o,a,u,s,l,c,d=BV(e);return d?(r=Object.keys(d),void 0===(a=n)&&(a="{ [K in ".concat(e.name,"]: ").concat(t.name," }")),u=r.length,new Wx(a,function(e){return PA.is(e)&&r.every(function(n){return t.is(e[n])})},function(e,n){var i=PA.validate(e,n);if(f4(i))return i;for(var o=i.right,a={},s=[],l=!1,c=0;c<u;c++){var d=r[c],f=o[d],p=t.validate(f,BB(n,d,t,f));if(f4(p))BP(s,p.left);else{var A=p.right;l=l||A!==f,a[d]=A}}return s.length>0?eg(s):ey(l||Object.keys(o).length!==u?a:o)},t.encode===BK?BK:function(e){for(var n={},i=0;i<u;i++){var o=r[i];n[o]=t.encode(e[o])}return n},e,t)):(s=e,void 0===(c=n)&&(c="{ [K in ".concat(s.name,"]: ").concat(t.name," }")),new Wx(c,function(e){return PA.is(e)?Object.keys(e).every(function(n){return s.is(n)&&t.is(e[n])}):B$(t)&&Array.isArray(e)},function(e,n){if(PA.is(e)){for(var r={},i=[],o=Object.keys(e),a=o.length,u=!1,l=0;l<a;l++){var c=o[l],d=e[c],f=s.validate(c,BB(n,c,s,c));if(f4(f))BP(i,f.left);else{var p=f.right;u=u||p!==c,c=p;var A=t.validate(d,BB(n,c,t,d));if(f4(A))BP(i,A.left);else{var h=A.right;u=u||h!==d,r[c]=h}}}return i.length>0?eg(i):ey(u?r:e)}return B$(t)&&Array.isArray(e)?ey(e):Bj(e,n)},s.encode===BK&&t.encode===BK?BK:function(e){for(var n={},r=Object.keys(e),i=r.length,o=0;o<i;o++){var a=r[o];n[String(s.encode(a))]=t.encode(e[a])}return n},s,t))}var WC=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i)||this;return a.types=o,a._tag="UnionType",a}return BE(t,e),t}(BU);function WS(e,t){void 0===t&&(t=Bz(e));var n=B5(e);if(void 0===n||!(e.length>0))return new WC(t,function(t){return e.some(function(e){return e.is(t)})},function(t,n){for(var r=[],i=0;i<e.length;i++){var o=e[i],a=o.validate(t,BB(n,String(i),o,t));if(!f4(a))return ey(a.right);BP(r,a.left)}return eg(r)},BN(e)?BK:function(n){for(var r=0;r<e.length;r++){var i=e[r];if(i.is(n))return i.encode(n)}throw Error("no codec found to encode value in union type ".concat(t))},e);var r=n[0],i=n[1],o=i.length,a=function(e){for(var t=0;t<o;t++)if(-1!==i[t].indexOf(e))return t};return new Wj(t,function(t){if(PA.is(t)){var n=a(t[r]);return void 0!==n&&e[n].is(t)}return!1},function(t,n){var i=PA.validate(t,n);if(f4(i))return i;var o=i.right,u=a(o[r]);if(void 0===u)return Bj(t,n);var s=e[u];return s.validate(o,BB(n,String(u),s,o))},BN(e)?BK:function(n){var i=a(n[r]);if(void 0===i)throw Error("no codec found to encode value in union codec ".concat(t));return e[i].encode(n)},e,r)}var Ww=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i)||this;return a.types=o,a._tag="IntersectionType",a}return BE(t,e),t}(BU),WI=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i)||this;return a.types=o,a._tag="TupleType",a}return BE(t,e),t}(BU),W_=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i)||this;return a.type=o,a._tag="ReadonlyType",a}return BE(t,e),t}(BU),WT=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i)||this;return a.type=o,a._tag="ReadonlyArrayType",a}return BE(t,e),t}(BU);function WO(e,t){void 0===t&&(t="ReadonlyArray<".concat(e.name,">"));var n=Wm(e);return new WT(t,n.is,n.validate,n.encode,e)}var WR=function(e,t){return WE(Wy(e),t)},Wk=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i)||this;return a.type=o,a._tag="ExactType",a}return BE(t,e),t}(BU);function WE(e,t){void 0===t&&(t=B0(r=e)?"{| ".concat(BD(r.props)," |}"):(n=r,"PartialType"===n._tag)?BQ("{| ".concat(BD(r.props)," |}")):"Exact<".concat(r.name,">"));var n,r,i=function e(t){switch(t._tag){case"RefinementType":case"ReadonlyType":return e(t.type);case"InterfaceType":case"StrictType":case"PartialType":return t.props;case"IntersectionType":return t.types.reduce(function(t,n){return Object.assign(t,e(n))},{})}}(e);return new Wk(t,e.is,function(t,n){var r=PA.validate(t,n);if(f4(r))return r;var o=e.validate(t,n);return f4(o)?o:ey(BH(o.right,i))},function(t){return e.encode(BH(t,i))},e)}var WM=function(e){function t(){var t=e.call(this,"Function",function(e){return"function"==typeof e},function(e,n){return t.is(e)?ey(e):Bj(e,n)},BK)||this;return t._tag="FunctionType",t}return BE(t,e),t}(BU),WF=new WM,Wj=function(e){function t(t,n,r,i,o,a){var u=e.call(this,t,n,r,i,o)||this;return u.tag=a,u}return BE(t,e),t}(WC),WU=function(e,t,n){void 0===n&&(n=Bz(t));var r=WS(t,n);return r instanceof Wj?r:(console.warn("[io-ts] Cannot build a tagged union for ".concat(n,", returning a de-optimized union")),new Wj(n,r.is,r.validate,r.encode,t,e))},WK=function(e,t){return{value:e,context:t}},WL=function(e){return[{key:"",type:e}]},WB=function(e){function t(){var t=e.call(this,"never",function(e){return!1},function(e,t){return Bj(e,t)},function(){throw Error("cannot encode never")})||this;return t._tag="NeverType",t}return BE(t,e),t}(BU),WP=new WB,WW=function(e){function t(){var t=e.call(this,"any",function(e){return!0},ey,BK)||this;return t._tag="AnyType",t}return BE(t,e),t}(BU),WD=new WW,WN=function(e){function t(){var t=e.call(this,"object",function(e){return null!==e&&"object"==typeof e},function(e,n){return t.is(e)?ey(e):Bj(e,n)},BK)||this;return t._tag="ObjectType",t}return BE(t,e),t}(BU),Wq=new WN;function WQ(e,t,n){return void 0===n&&(n="(".concat(e.name," | ").concat(BL(t),")")),new Py(n,function(n){return e.is(n)&&t(n)},function(n,r){var i=e.validate(n,r);if(f4(i))return i;var o=i.right;return t(o)?ey(o):Bj(o,r)},e.encode,e,t)}var WV=WQ(Pa,Number.isInteger,"Integer"),Wz=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i)||this;return a.props=o,a._tag="StrictType",a}return BE(t,e),t}(BU);function WY(e){return e}let WH=Object.freeze(Object.defineProperty({__proto__:null,AnyArrayType:Pd,AnyDictionaryType:Pp,AnyType:WW,Array:Pf,ArrayType:Wh,BigIntType:Pu,BooleanType:Pl,Dictionary:PA,DictionaryType:Wx,ExactType:Wk,Function:WF,FunctionType:WM,Int:Wf,Integer:WV,InterfaceType:Wg,IntersectionType:Ww,KeyofType:Pg,LiteralType:Ph,NeverType:WB,NullType:B3,NumberType:Po,ObjectType:WN,PartialType:Wv,ReadonlyArrayType:WT,ReadonlyType:W_,RecursiveType:Wp,RefinementType:Py,StrictType:Wz,StringType:Pr,TaggedUnionType:Wj,TupleType:WI,Type:BU,UndefinedType:B4,UnionType:WC,UnknownArray:Pf,UnknownRecord:PA,UnknownType:Pt,VoidType:B8,alias:function(e){return function(){return e}},any:WD,appendContext:BB,array:Wm,bigint:Ps,boolean:Pc,brand:Pv,clean:WY,dictionary:Wb,emptyTags:BJ,exact:WE,failure:Bj,failures:eg,getContextEntry:function(e,t){return{key:e,type:t}},getDefaultContext:WL,getDomainKeys:BV,getFunctionName:BL,getIndex:B5,getTags:B6,getValidationError:WK,identity:BK,interface:Wy,intersection:function(e,t){void 0===t&&(t="(".concat(e.map(function(e){return e.name}).join(" & "),")"));var n=e.length;return new Ww(t,function(t){return e.every(function(e){return e.is(t)})},0===e.length?ey:function(t,r){for(var i=[],o=[],a=0;a<n;a++){var u=e[a],s=u.validate(t,BB(r,String(a),u,t));f4(s)?BP(o,s.left):i.push(s.right)}return o.length>0?eg(o):ey(BY(t,i))},0===e.length?BK:function(t){return BY(t,e.map(function(e){return e.encode(t)}))},e)},keyof:function(e,t){void 0===t&&(t=Object.keys(e).map(function(e){return JSON.stringify(e)}).join(" | "));var n=function(t){return Pi.is(t)&&BW.call(e,t)};return new Pg(t,n,function(e,t){return n(e)?ey(e):Bj(e,t)},BK,e)},literal:Pm,mergeAll:BY,never:WP,null:B9,nullType:B9,number:Pa,object:Wq,partial:function(e,t){void 0===t&&(t=BQ(Bq(e)));var n=Object.keys(e),r=n.map(function(t){return e[t]}),i=n.length;return new Wv(t,function(t){if(PA.is(t)){for(var r=0;r<i;r++){var o=n[r],a=t[o];if(void 0!==a&&!e[o].is(a))return!1}return!0}return!1},function(t,r){var o=PA.validate(t,r);if(f4(o))return o;for(var a=o.right,u=a,s=[],l=0;l<i;l++){var c=n[l],d=u[c],f=e[c],p=f.validate(d,BB(r,c,f,d));if(f4(p))void 0!==d&&BP(s,p.left);else{var A=p.right;A!==d&&(u===a&&(u=BM({},a)),u[c]=A)}}return s.length>0?eg(s):ey(u)},BN(r)?BK:function(e){for(var t=BM({},e),o=0;o<i;o++){var a=n[o],u=e[a];void 0!==u&&(t[a]=r[o].encode(u))}return t},e)},readonly:function(e,t){return void 0===t&&(t="Readonly<".concat(e.name,">")),new W_(t,e.is,e.validate,e.encode,e)},readonlyArray:WO,record:Wb,recursion:WA,refinement:WQ,strict:WR,string:Pi,success:ey,taggedUnion:WU,tuple:function(e,t){void 0===t&&(t="[".concat(e.map(function(e){return e.name}).join(", "),"]"));var n=e.length;return new WI(t,function(t){return Pf.is(t)&&t.length===n&&e.every(function(e,n){return e.is(t[n])})},function(t,r){var i=Pf.validate(t,r);if(f4(i))return i;for(var o=i.right,a=o.length>n?o.slice(0,n):o,u=[],s=0;s<n;s++){var l=o[s],c=e[s],d=c.validate(l,BB(r,String(s),c,l));if(f4(d))BP(u,d.left);else{var f=d.right;f!==l&&(a===o&&(a=o.slice()),a[s]=f)}}return u.length>0?eg(u):ey(a)},BN(e)?BK:function(t){return e.map(function(e,n){return e.encode(t[n])})},e)},type:Wy,undefined:B7,union:WS,unknown:Pn,void:Pe,voidType:Pe},Symbol.toStringTag,{value:"Module"})),WZ=O(WH);var WJ={};Object.defineProperty(WJ,"__esModule",{value:!0}),WJ.ContentPath=void 0,WJ.ContentPath={serialize:e=>e.map(e=>e.key).join("::"),current:e=>e[e.length-1],append:(e,t)=>e+"::"+t,make:e=>e.reduce((e,{key:t,type:n})=>t?e.concat({key:t,type:n}):e,[])};var WG={},W$={};Object.defineProperty(W$,"__esModule",{value:!0}),W$.getAssetOrThrow=void 0;let WX=e=>t=>{let n=e[t];if(!n)throw Error(`Missing asset with id '${t}'!`);return n};W$.getAssetOrThrow=WX;var W0={};Object.defineProperty(W0,"__esModule",{value:!0}),W0.getEmbedOrThrow=void 0;let W1=e=>t=>{let n=e[t];if(!n)throw Error(`Missing embed with url '${t}'`);return n};W0.getEmbedOrThrow=W1;var W2={},W6={};let W5=O(el);function W3(e,t,n){return void 0===n&&(n=e.name),new BU(n,e.is,e.validate,function(n){return t(e.encode(n))})}let W9=Object.freeze(Object.defineProperty({__proto__:null,mapOutput:W3},Symbol.toStringTag,{value:"Module"}));var W4,W7,W8,De=WQ(Pi,W7=function(e){return e.length>0},"NonEmptyString");function Dt(e,t){void 0===t&&(t="NonEmptyArray<"+e.name+">");var n=Wm(e);return new BU(t,function(e){return n.is(e)&&rx(e)},function(e,t){return ea(n.validate(e,t),fV(function(n){var r=rE(n);return dv(r)?Bj(e,t):ey(r.value)}))},function(e){return n.encode(e)})}function Dn(e,t,n){void 0===n&&(n="Set<"+e.name+">");var r=Wm(e),i=EO(t),o=Eb(t);return new BU(n,function(t){return t instanceof Set&&RK(e.is)(t)},function(e,t){return ea(r.validate(e,t),fV(function(n){var r=o(n);return r.size!==n.length?Bj(e,t):ey(r)}))},function(e){return r.encode(i(e))})}function Dr(e,t){return new BU(e,t,function(e,n){return t(e)?ey(e):Bj(e,n)},BK)}var Di=Dr("Date",function(e){return e instanceof Date}),Do=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},Da=function(e,t){return{get:e,reverseGet:t}},Du=function(e){return Dd(e.get,et(e.reverseGet,J))},Ds=function(e){return DC(et(e.get,eA),e.reverseGet)},Dl=function(e){return DT(et(e.get,eA),et(e.reverseGet,J))},Dc=function(e){return DF(function(t){return function(n){return function(r){return t.map(n(e.get(r)),function(t){return e.reverseGet(t)})}}})},Dd=function(e,t){return{get:e,set:t}},Df=function(e){return DT(et(e.get,eA),e.set)},Dp=function(e){return DF(function(t){return function(n){return function(r){return t.map(n(e.get(r)),function(t){return e.set(t)(r)})}}})},DA=function(e){return function(t){return Dd(function(n){return e.get(t.get(n))},function(n){return function(r){return t.set(e.set(n)(t.get(r)))(r)}})}},Dh=function(e){return function(t){return DC(et(t.getOption,c$(e.getOption)),et(e.reverseGet,t.reverseGet))}},Dm=function(e){return function(t){return DE(DS(e))(Df(t))}},Dg=function(){return Dd(Z,J)},Dy=function(e){return function(t){return Dd(function(n){return t.get(n)[e]},function(n){return function(r){var i,o=t.get(r);return n===o[e]?r:t.set(Object.assign({},o,((i={})[e]=n,i)))(r)}})}},Dv=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return Dd(function(n){for(var r=t.get(n),i={},o=0;o<e.length;o++){var a=e[o];i[a]=r[a]}return i},function(n){return function(r){for(var i=t.get(r),o=0;o<e.length;o++){var a=e[o];if(n[a]!==i[a])return t.set(Object.assign({},i,n))(r)}return r}})}},Dx=function(e){return function(t){return Dd(function(n){return t.get(n)[e]},function(n){return function(r){var i=t.get(r);if(n===i[e])return r;var o=i.slice();return o[e]=n,t.set(o)(r)}})}},Db=function(e){return function(t){var n;return ea(t,DA(({at:n=function(e){return Dd(function(t){return Ot(e,t)},dx(function(){return T4(e)},function(t){return T3(e,t)}))}}).at(e)))}},DC=function(e,t){return{getOption:e,reverseGet:t}},DS=function(e){return DT(e.getOption,function(t){return DI(t)(e)})},Dw=function(e){return DF(function(t){return function(n){return function(r){return ea(e.getOption(r),dx(function(){return t.of(r)},function(i){return t.map(n(i),function(t){return DI(t)(e)(r)})}))}}})},DI=function(e){var t;return t=function(){return e},function(e){var n,r,i=(n=e,function(e){return ea(n.getOption(e),cz(function(r){var i=t(r);return i===r?e:n.reverseGet(i)}))});return function(e){return ea(i(e),db(function(){return e}))}}},D_=function(e){return DC(cI(e),Z)},DT=function(e,t){return{getOption:e,set:t}},DO=function(e){return DF(function(t){return function(n){return function(r){return ea(e.getOption(r),dx(function(){return t.of(r)},function(i){return t.map(n(i),function(t){return e.set(t)(r)})}))}}})},DR=function(e){return function(t){return function(n){return ea(t.getOption(n),cz(function(r){var i=e(r);return i===r?n:t.set(i)(n)}))}}},Dk=function(e){return function(t){var n=DR(e)(t);return function(e){return ea(n(e),db(function(){return e}))}}},DE=function(e){return function(t){return DT(et(t.getOption,c$(e.getOption)),function(n){return Dk(e.set(n))(t)})}},DM=function(e,t,n){if(n[e]===t)return n;var r=Do([n[0]],n.slice(1),!0);return r[e]=t,r},DF=function(e){return{modifyF:e}};function Dj(e){return function(t){return DF(function(n){return function(r){return t.modifyF(n)(e.modifyF(n)(r))}})}}var DU={URI:"Identity",map:function(e,t){return t(e)},of:Z,ap:function(e,t){return e(t)}},DK=function(e){return{index:e}},DL=et(Du,DA),DB=function(e){return et(Df,DE(e))},DP=function(e){return et(Dp,Dj(e))},DW=function(e){return function(t){return function(n){var r=t.get(n),i=e(r);return r===i?n:t.set(i)(n)}}},DD=function(e){return Dm(DC(dk,Z))(e)},DN=function(e){var t;return et(Df,function(t){return ea(t,DE(DK(function(e){return DT(function(t){return oM(e,t)},function(t){return function(n){return ea(oM(e,n),dx(function(){return n},function(){return uk(e,t,n)}))}})}).index(e)))})},Dq=function(e){var t;return et(Df,function(t){return ea(t,DE(DK(function(e){return DT(function(t){return oM(e,t)},function(t){return function(n){return ea(oM(e,n),dx(function(){return n},function(){return DM(e,t,n)}))}})}).index(e)))})},DQ=function(e){var t;return et(Df,function(t){return ea(t,DE(DK(function(e){return DT(function(t){return Ot(e,t)},function(t){return function(n){return n[e]===t||dv(Ot(e,n))?n:T3(e,t)(n)}})}).index(e)))})},DV=Dm(DC(Z,eA)),Dz=Dm(DC(cT,ey)),DY=Dm(DC(function(e){return f4(e)?eA(e.left):ep},eg)),DH=function(e,t){return function(n){return DZ(n,e,t)}},DZ=function(e,t,n){return Dd(et(e.get,t),et(n,e.set))},DJ="monocle-ts/Lens",DG={URI:DJ,compose:function(e,t){return DA(e)(t)}},D$={URI:DJ,compose:DG.compose,id:Dg};let DX=Object.freeze(Object.defineProperty({__proto__:null,Category:D$,Invariant:{URI:DJ,imap:DZ},Semigroupoid:DG,URI:DJ,asOptional:Df,asTraversal:Dp,atKey:Db,component:Dx,compose:DA,composeIso:DL,composeLens:DA,composeOptional:DB,composePrism:Dm,composeTraversal:DP,filter:function(e){return Dm(D_(e))},findFirst:function(e){var t;return DB(DT(oq(e),function(t){return function(n){return ea(oN(e)(n),dx(function(){return n},function(e){return uk(e,t,n)}))}}))},findFirstNonEmpty:function(e){var t;return DB(DT(oq(e),function(t){return function(n){return ea(oN(e)(n),dx(function(){return n},function(e){return DM(e,t,n)}))}}))},fromNullable:DD,id:Dg,imap:DH,index:DN,indexNonEmpty:Dq,key:DQ,left:DY,lens:Dd,modify:DW,modifyF:function(e){return function(t){return function(n){return function(r){return ea(n.get(r),t,function(t){return e.map(t,function(e){return n.set(e)(r)})})}}}},prop:Dy,props:Dv,right:Dz,some:DV,traverse:function(e){var t,n;return et(Dp,Dj(DF(function(t){var n,r="Identity"===t.URI?e.map:e.traverse(t);return function(e){return function(t){return r(t,e)}}})))}},Symbol.toStringTag,{value:"Module"}));var D0=function(e){return function(t){return t.modifyF(DU)(e)}},D1=function(e){return new D4(e.get,e.reverseGet)},D2=function(e){return new D7(e.get,e.set)},D6=function(e){return new D8(e.getOption,e.reverseGet)},D5=function(e){return new Nt(e.getOption,e.set)},D3=function(e){return new Nn(e.modifyF)},D9=function(e,t,n){var r;return n===e[t]?e:Object.assign({},e,((r={})[t]=n,r))},D4=function(){function e(e,t){this.get=e,this.reverseGet=t,this._tag="Iso",this.unwrap=this.get,this.to=this.get,this.wrap=this.reverseGet,this.from=this.reverseGet}return e.prototype.reverse=function(){var e;return D1(Da(this.reverseGet,this.get))},e.prototype.modify=function(e){var t,n;return n=this,function(t){return n.reverseGet(e(n.get(t)))}},e.prototype.asLens=function(){return D2(Du(this))},e.prototype.asPrism=function(){return D6(Ds(this))},e.prototype.asOptional=function(){return D5(Dl(this))},e.prototype.asTraversal=function(){return D3(Dc(this))},e.prototype.asFold=function(){var e=this;return new Ni(function(){return function(t){return function(n){return t(e.get(n))}}})},e.prototype.asGetter=function(){var e=this;return new Nr(function(t){return e.get(t)})},e.prototype.asSetter=function(){var e=this;return new No(function(t){return e.modify(t)})},e.prototype.compose=function(e){var t,n;return D1((n=this,Da(et(n.get,e.get),et(e.reverseGet,n.reverseGet))))},e.prototype.composeIso=function(e){return this.compose(e)},e.prototype.composeLens=function(e){return D2(ea(this,Du,DA(e)))},e.prototype.composePrism=function(e){return D6(ea(this,Ds,Dh(e)))},e.prototype.composeOptional=function(e){return D5(ea(this,Dl,DE(e)))},e.prototype.composeTraversal=function(e){return D3(ea(this,Dc,Dj(e)))},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeGetter=function(e){return this.asGetter().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e}(),D7=function(){function e(e,t){this.get=e,this.set=t,this._tag="Lens"}return e.fromPath=function(){var t=e.fromProp();return function(e){var n=t(e[0]);return e.slice(1).reduce(function(e,n){return e.compose(t(n))},n)}},e.fromProp=function(){return function(e){return D2(ea(Dg(),Dy(e)))}},e.fromProps=function(){return function(e){return D2(ea(Dg(),Dv.apply(DX,e)))}},e.fromNullableProp=function(){return function(t,n){return new e(function(e){var r=dk(e[t]);return dv(r)?n:r.value},function(e){return function(n){return D9(n,t,e)}})}},e.prototype.modify=function(e){return DW(e)(this)},e.prototype.asOptional=function(){return D5(Df(this))},e.prototype.asTraversal=function(){return D3(Dp(this))},e.prototype.asSetter=function(){var e=this;return new No(function(t){return e.modify(t)})},e.prototype.asGetter=function(){var e=this;return new Nr(function(t){return e.get(t)})},e.prototype.asFold=function(){var e=this;return new Ni(function(){return function(t){return function(n){return t(e.get(n))}}})},e.prototype.compose=function(e){return D2(DA(e)(this))},e.prototype.composeLens=function(e){return this.compose(e)},e.prototype.composeGetter=function(e){return this.asGetter().compose(e)},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeOptional=function(e){return D5(ea(this,Df,DE(e)))},e.prototype.composeTraversal=function(e){return D3(ea(this,Dp,Dj(e)))},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeIso=function(e){return D2(ea(this,DA(ea(e,Du))))},e.prototype.composePrism=function(e){return D5(Dm(e)(this))},e}(),D8=function(){function e(e,t){this.getOption=e,this.reverseGet=t,this._tag="Prism"}return e.fromPredicate=function(e){return D6(D_(e))},e.some=function(){return Ne},e.prototype.modify=function(e){var t=this;return function(n){var r=t.modifyOption(e)(n);return dv(r)?n:r.value}},e.prototype.modifyOption=function(e){var t=this;return function(n){return dY.map(t.getOption(n),function(r){var i=e(r);return i===r?n:t.reverseGet(i)})}},e.prototype.set=function(e){return this.modify(function(){return e})},e.prototype.asOptional=function(){return D5(DS(this))},e.prototype.asTraversal=function(){return D3(Dw(this))},e.prototype.asSetter=function(){var e=this;return new No(function(t){return e.modify(t)})},e.prototype.asFold=function(){var e=this;return new Ni(function(t){return function(n){return function(r){var i=e.getOption(r);return dv(i)?t.empty:n(i.value)}}})},e.prototype.compose=function(e){return D6(Dh(e)(this))},e.prototype.composePrism=function(e){return this.compose(e)},e.prototype.composeOptional=function(e){return D5(ea(this,DS,DE(e)))},e.prototype.composeTraversal=function(e){return D3(ea(this,Dw,Dj(e)))},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeIso=function(e){return D6(ea(this,Dh(ea(e,Ds))))},e.prototype.composeLens=function(e){var t;return D5((t=e,function(e){return DE(Df(t))(DS(e))})(this))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),Ne=new D8(Z,eA),Nt=function(){function e(e,t){this.getOption=e,this.set=t,this._tag="Optional"}return e.fromPath=function(){var t=e.fromNullableProp();return function(e){var n=t(e[0]);return e.slice(1).reduce(function(e,n){return e.compose(t(n))},n)}},e.fromNullableProp=function(){return function(t){return new e(function(e){return dk(e[t])},function(e){return function(n){return null==n[t]?n:D9(n,t,e)}})}},e.fromOptionProp=function(){var e=D7.fromProp();return function(t){return e(t).composePrism(Ne)}},e.prototype.modify=function(e){return Dk(e)(this)},e.prototype.modifyOption=function(e){return DR(e)(this)},e.prototype.asTraversal=function(){return D3(DO(this))},e.prototype.asFold=function(){var e=this;return new Ni(function(t){return function(n){return function(r){var i=e.getOption(r);return dv(i)?t.empty:n(i.value)}}})},e.prototype.asSetter=function(){var e=this;return new No(function(t){return e.modify(t)})},e.prototype.compose=function(e){return D5(DE(e)(this))},e.prototype.composeOptional=function(e){return this.compose(e)},e.prototype.composeTraversal=function(e){return D3(ea(this,DO,Dj(e)))},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeLens=function(e){return D5(ea(this,DE(ea(e,Df))))},e.prototype.composePrism=function(e){return D5(ea(this,DE(ea(e,DS))))},e.prototype.composeIso=function(e){return D5(ea(this,DE(ea(e,Dl))))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),Nn=function(){function e(e){this.modifyF=e,this._tag="Traversal"}return e.prototype.modify=function(e){return D0(e)(this)},e.prototype.set=function(e){var t;return D0(function(){return e})(this)},e.prototype.filter=function(e){var t;return D3(Dj(Dw(D_(e)))(this))},e.prototype.asFold=function(){var e=this;return new Ni(function(t){return function(n){return e.modifyF(d7(t))(function(e){return Z(n(e))})}})},e.prototype.asSetter=function(){var e=this;return new No(function(t){return e.modify(t)})},e.prototype.compose=function(e){return D3(Dj(e)(this))},e.prototype.composeTraversal=function(e){return this.compose(e)},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeOptional=function(e){return this.compose(e.asTraversal())},e.prototype.composeLens=function(e){return D3(ea(this,Dj(ea(e,Dp))))},e.prototype.composePrism=function(e){return D3(ea(this,Dj(ea(e,Dw))))},e.prototype.composeIso=function(e){return D3(ea(this,Dj(ea(e,Dc))))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),Nr=function(){function e(e){this.get=e,this._tag="Getter"}return e.prototype.asFold=function(){var e=this;return new Ni(function(){return function(t){return function(n){return t(e.get(n))}}})},e.prototype.compose=function(t){var n=this;return new e(function(e){return t.get(n.get(e))})},e.prototype.composeGetter=function(e){return this.compose(e)},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeLens=function(e){return this.compose(e.asGetter())},e.prototype.composeIso=function(e){return this.compose(e.asGetter())},e.prototype.composeTraversal=function(e){return this.asFold().compose(e.asFold())},e.prototype.composeOptional=function(e){return this.asFold().compose(e.asFold())},e.prototype.composePrism=function(e){return this.asFold().compose(e.asFold())},e}(),Ni=function(){function e(e){this.foldMap=e,this._tag="Fold",this.getAll=e(lm())(rY),this.exist=e(bT),this.all=e(b_),this.foldMapFirst=e(dJ())}return e.prototype.compose=function(t){var n=this;return new e(function(e){return function(r){return n.foldMap(e)(t.foldMap(e)(r))}})},e.prototype.composeFold=function(e){return this.compose(e)},e.prototype.composeGetter=function(e){return this.compose(e.asFold())},e.prototype.composeTraversal=function(e){return this.compose(e.asFold())},e.prototype.composeOptional=function(e){return this.compose(e.asFold())},e.prototype.composeLens=function(e){return this.compose(e.asFold())},e.prototype.composePrism=function(e){return this.compose(e.asFold())},e.prototype.composeIso=function(e){return this.compose(e.asFold())},e.prototype.find=function(e){return this.foldMapFirst(cI(e))},e.prototype.headOption=function(e){return this.find(function(){return!0})(e)},e}(),No=function(){function e(e){this.modify=e,this._tag="Setter"}return e.prototype.set=function(e){return this.modify(J(e))},e.prototype.compose=function(t){var n=this;return new e(function(e){return n.modify(t.modify(e))})},e.prototype.composeSetter=function(e){return this.compose(e)},e.prototype.composeTraversal=function(e){return this.compose(e.asSetter())},e.prototype.composeOptional=function(e){return this.compose(e.asSetter())},e.prototype.composeLens=function(e){return this.compose(e.asSetter())},e.prototype.composePrism=function(e){return this.compose(e.asSetter())},e.prototype.composeIso=function(e){return this.compose(e.asSetter())},e}(),Na=new D4(Z,Z),Nu=WR({_tag:Pm("None")}),Ns=Pm("Some");function Nl(e,t){return void 0===t&&(t="Option<"+e.name+">"),WS([Nu,WR({_tag:Ns,value:e},"Some<"+e.name+">")],t)}var Nc=new BU("DateFromISOString",function(e){return e instanceof Date},function(e,t){return ea(Pi.validate(e,t),fV(function(n){var r=new Date(n);return isNaN(r.getTime())?Bj(e,t):ey(r)}))},function(e){return e.toISOString()});function Nd(e){var t=Object.create(Object.getPrototypeOf(e));return Object.assign(t,e),t}var Nf=new BU("DateFromNumber",function(e){return e instanceof Date},function(e,t){return ea(Pa.validate(e,t),fV(function(n){var r=new Date(n);return isNaN(r.getTime())?Bj(e,t):ey(r)}))},function(e){return e.getTime()});function Np(e,t,n){void 0===n&&(n=e.name);var r=Nd(e);return r.validate=t,r.decode=function(e){return t(e,WL(r))},r.name=n,r}var NA,Nh,Nm,Ng=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Ny=WQ(Pi,Nh=function(e){return Ng.test(e)},"UUID"),Nv=new BU("BooleanFromString",Pc.is,function(e,t){return ea(Pi.validate(e,t),fV(function(n){return"true"===n?ey(!0):"false"===n?ey(!1):Bj(e,t)}))},String);function Nx(e){switch(e._tag){case"InterfaceType":return e.props;case"ExactType":return Nx(e.type)}}var Nb=D7.fromProp(),NC=Dr("RegExp",function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}),NS=new BU("DateFromUnixTime",function(e){return e instanceof Date},function(e,t){return ea(Wf.validate(e,t),fV(function(n){var r=new Date(1e3*n);return isNaN(r.getTime())?Bj(e,t):ey(r)}))},function(e){return Math.floor(e.getTime()/1e3)}),Nw=new BU("NumberFromString",Pa.is,function(e,t){return ea(Pi.validate(e,t),fV(function(n){var r=+n;return isNaN(r)||""===n.trim()?Bj(e,t):ey(r)}))},String),NI=new BU("IntFromString",Wf.is,function(e,t){return ea(Nw.validate(e,t),fV(function(n){return Wf.is(n)?ey(n):Bj(e,t)}))},Nw.encode),N_=WA("JsonArray",function(){return WO(NO)}),NT=WA("JsonRecord",function(){return Wb(Pi,NO)}),NO=WS([Pc,Pa,Pi,B9,N_,NT],"Json"),NR=new BU("JsonFromString",NO.is,function(e,t){try{return ey(JSON.parse(e))}catch{return Bj(e,t)}},function(e){return JSON.stringify(e)}),Nk=Pm("Left"),NE=Pm("Right"),NM=new BU("BigIntFromString",function(e){return"bigint"==typeof e},function(e,t){return ea(Pi.validate(e,t),fV(function(n){if(!De.is(n.trim()))return Bj(e,t);try{return ey(BigInt(n))}catch{return Bj(e,t)}}))},String),NF=new BU("BooleanFromNumber",Pc.is,function(e,t){return ea(Pa.validate(e,t),fL(function(e){return 0!==e}))},Number);let Nj=Object.freeze(Object.defineProperty({__proto__:null,BigIntFromString:NM,BooleanFromNumber:NF,BooleanFromString:Nv,DateFromISOString:Nc,DateFromNumber:Nf,DateFromUnixTime:NS,IntFromString:NI,Json:NO,JsonArray:N_,JsonFromString:NR,JsonRecord:NT,NonEmptyString:De,NumberFromString:Nw,UUID:Ny,clone:Nd,date:Di,either:function(e,t,n){return void 0===n&&(n="Either<"+e.name+", "+t.name+">"),WS([WR({_tag:Nk,left:e},"Left<"+e.name+">"),WR({_tag:NE,right:t},"Right<"+e.name+">")],n)},fromNewtype:function(e,t){return void 0===t&&(t="fromNewtype("+e.name+")"),new BU(t,function(t){return e.is(t)},function(t,n){return ea(e.validate(t,n),fL(Na.wrap))},function(t){return e.encode(Na.unwrap(t))})},fromNullable:function(e,t,n){return void 0===n&&(n="fromNullable("+e.name+")"),Np(e,function(n,r){return null==n?ey(t):e.validate(n,r)},n)},fromRefinement:Dr,getLenses:function(e){var t={};for(var n in Nx(e))t[n]=Nb(n);return t},mapOutput:W3,nonEmptyArray:Dt,option:Nl,optionFromNullable:function(e,t){return void 0===t&&(t="Option<"+e.name+">"),new BU(t,Nl(e).is,function(t,n){return null==t?ey(ep):ea(e.validate(t,n),fL(eA))},function(t){return dU(ea(t,cz(e.encode)))})},readonlyNonEmptyArray:function(e,t){return void 0===t&&(t="ReadonlyNonEmptyArray<"+e.name+">"),Dt(e,t)},readonlySetFromArray:function(e,t,n){return void 0===n&&(n="ReadonlySet<"+e.name+">"),Dn(e,t,n)},regexp:NC,setFromArray:Dn,withEncode:function(e,t,n){return void 0===n&&(n=e.name),new BU(n,e.is,e.validate,t)},withFallback:function(e,t,n){return void 0===n&&(n="withFallback("+e.name+")"),Np(e,function(n,r){return pd(function(){return ey(t)})(e.validate(n,r))},n)},withMessage:function(e,t){return Np(e,function(n,r){return f0(function(){return[{value:n,context:r,message:t(n,r),actual:n}]})(e.validate(n,r))})},withValidate:Np},Symbol.toStringTag,{value:"Module"})),NU=O(Nj),NK=O(W9);Object.defineProperty(W6,"__esModule",{value:!0}),W6.withCustomError=W6.addType=W6.isEmpty=W6.objectToMap=W6.grouped=W6.formatDate=W6.formatDateTime=W6.filterDouble=W6.refineType=W6.nullable=void 0;let NL=(0,B.__importStar)(WZ);W6.nullable=function(e){return NL.union([e,NL.null,NL.undefined])},W6.refineType=function(e,t,n){return new NL.Type(t,e.is,(t,r)=>(0,W5.pipe)(e.validate(t,r),LP.either.chain(e=>n(e)?NL.success(e):NL.failure(t,r))),e.encode)},W6.filterDouble=function(e){if(""===e)return null;let t=Number(e);return Number.isNaN(t)?null:t},W6.formatDateTime=function(e){return e.toISOString().replace(/\.\d{3}Z$/,"+0000")},W6.formatDate=function(e){return e.toISOString().replace(/T.*/,"")},W6.grouped=function(e,t){return e.reduce((e,n,r)=>(r%t==0?e.push([n]):e[Math.floor(r/t)].push(n),e),[])},W6.objectToMap=function(e){return new Map(Object.entries(e))},W6.isEmpty=function(e){for(let t in e)return!1;return!0},W6.addType=function(e,t){return(0,NK.mapOutput)(e,e=>({...e,__TYPE__:t}))},W6.withCustomError=function(e,t){return(0,NU.withValidate)(e,(n,r)=>LP.either.mapLeft(e=>e.find(e=>e.message)?e:[{value:n,context:r,message:t(n,r),actual:n}])(e.validate(n,r)))},Object.defineProperty(W2,"__esModule",{value:!0}),W2.WidgetKey=void 0;let NB=(0,B.__importStar)(WZ),NP=RegExp("^[^<>]+$");W2.WidgetKey=(0,W6.refineType)(NB.string,"WidgetKey",e=>0===e.length||NP.test(e)),Object.defineProperty(q1=WG,"__esModule",{value:!0}),(0,B.__exportStar)(W$,q1),(0,B.__exportStar)(W0,q1),(0,B.__exportStar)(W2,q1);var NW={},ND={},NN={},Nq={},NQ={};Object.defineProperty(NQ,"__esModule",{value:!0}),NQ.clone=void 0,NQ.clone=function(e){var t=Object.create(Object.getPrototypeOf(e));return Object.assign(t,e),t};var NV=T&&T.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),Nz=T&&T.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),NY=T&&T.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&NV(t,e,n);return Nz(t,e),t};Object.defineProperty(Nq,"__esModule",{value:!0}),Nq.withValidate=void 0;var NH=NY(WZ);Nq.withValidate=function(e,t,n){void 0===n&&(n=e.name);var r=NQ.clone(e);return r.validate=t,r.decode=function(e){return t(e,NH.getDefaultContext(r))},r.name=n,r};var NZ=T&&T.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),NJ=T&&T.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),NG=T&&T.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&NZ(t,e,n);return NJ(t,e),t};Object.defineProperty(NN,"__esModule",{value:!0}),NN.withFallback=void 0;var N$=NG(WZ);NN.withFallback=function(e,t,n){return void 0===n&&(n="withFallback("+e.name+")"),Nq.withValidate(e,function(n,r){return LW.orElse(function(){return N$.success(t)})(e.validate(n,r))},n)};var NX={},N0={};Object.defineProperty(N0,"__esModule",{value:!0}),N0.EmptyArray=N0.EmptyObject=N0.Boolean=N0.NumberOrNull=N0.Number=N0.StringOrNull=N0.String=void 0;let N1=(0,B.__importStar)(WZ);N0.String=(0,W6.withCustomError)(N1.string,()=>"The value must be a string"),N0.StringOrNull=(0,W6.withCustomError)(N1.union([N1.string,N1.null]),()=>"The value must be a string or null"),N0.Number=(0,W6.withCustomError)(N1.number,()=>"The value must be a number"),N0.NumberOrNull=(0,W6.withCustomError)(N1.union([N1.number,N1.null]),()=>"The value must be a number or null"),N0.Boolean=(0,W6.withCustomError)(N1.boolean,()=>"The value must be a boolean"),N0.EmptyObject=N1.UnknownRecord.pipe(new N1.Type("emptyObject",e=>N1.UnknownRecord.is(e),(e,t)=>Object.keys(e).length>0?N1.failure(e,t,"The object is not empty."):N1.success({}),N1.identity)),N0.EmptyArray=new N1.Type("emptyArray",e=>N1.UnknownArray.is(e)&&0===e.length,(e,t)=>(0,Lq.pipe)(N1.UnknownArray.decode(e),LP.either.chain(n=>n.length>0?N1.failure(e,t,"The array is not empty."):N1.success([]))),()=>[]);var N2={};let N6=O(pF);var N5={};Object.defineProperty(N5,"__esModule",{value:!0});let N3=(0,B.__importStar)(WZ);N5.default=new N3.Type("dateFromStringOrNumber",e=>e instanceof Date,(e,t)=>(0,W5.pipe)(N3.union([N3.number,N3.string]).validate(e,t),(0,N6.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?N3.failure(e,t):N3.success(r)})),e=>e);var N9={};Object.defineProperty(N9,"__esModule",{value:!0});let N4=(0,B.__importStar)(WZ);N9.default=new N4.Type("dateFromTsMs",e=>e instanceof Date,(e,t)=>(0,W5.pipe)(N4.number.validate(e,t),(0,N6.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?N4.failure(e,t):N4.success(r)})),e=>e.getTime());var N7={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyArrayOrElse=e.EmptyObjectOrElse=e.NullOrElse=e.DefaultOrElse=void 0;let t=(0,B.__importStar)(WZ),n=e=>n=>new t.Type(`DefaultOrElse<${e.name}, ${n.name}>`,e=>null===e||n.is(e),(r,i)=>(0,LW.isRight)(e.validate(r,i))?t.success(null):n.validate(r,i),e=>e?n.encode(e):void 0);e.DefaultOrElse=n;let r=n=>(0,e.DefaultOrElse)(t.null)(n);e.NullOrElse=r;let i=t=>(0,e.DefaultOrElse)(N0.EmptyObject)(t);e.EmptyObjectOrElse=i;let o=t=>(0,e.DefaultOrElse)(N0.EmptyArray)(t);e.EmptyArrayOrElse=o}(N7);var N8={};Object.defineProperty(N8,"__esModule",{value:!0});let qe=(0,B.__importStar)(WZ);N8.default=new qe.Type("IntFromNumber",qe.Int.is,(e,t)=>(0,W5.pipe)(qe.number.validate(e,t),(0,N6.chain)(e=>qe.Int.is(e)?qe.success(e):qe.success(Math.round(e)))),qe.Int.encode);var qt={};Object.defineProperty(qt,"__esModule",{value:!0});let qn=(0,B.__importStar)(WZ),qr=/^([0-9]+)px$/;qt.default=new qn.Type("IntFromPixels",qn.Int.is,(e,t)=>(0,W5.pipe)(qn.string.validate(e,t),(0,N6.chain)(n=>{try{let r=n.match(qr);if(!r)return qn.failure(e,t);let i=parseInt(r[1]);return qn.success(i)}catch{return qn.failure(e,t)}})),String);var qi={};Object.defineProperty(qi,"__esModule",{value:!0});let qo=(0,B.__importStar)(WZ);qi.default=(0,W6.withCustomError)((0,W6.refineType)(qo.string,"nonEmptyString",e=>e.trim().length>0),()=>"The value must be a non-empty string");var qa={},qu={};Object.defineProperty(qu,"__esModule",{value:!0});let qs=(0,B.__importStar)(WZ);qu.default=(0,W6.nullable)(qs.string),Object.defineProperty(qa,"__esModule",{value:!0});let ql=(0,B.__importDefault)(qu);qa.default=new WZ.Type("nonEmptyStringOrNull",e=>"string"==typeof e||null===e,(e,t)=>(0,W5.pipe)(ql.default.validate(e,t),(0,N6.chain)(e=>"string"==typeof e&&e.length>0?(0,WZ.success)(e):(0,WZ.success)(null))),e=>e);var qc={};Object.defineProperty(qc,"__esModule",{value:!0});let qd=(0,B.__importStar)(WZ);qc.default=(0,W6.nullable)(qd.number);var qf={};Object.defineProperty(qf,"__esModule",{value:!0});let qp=(0,B.__importStar)(WZ);qf.default=(e,t,n)=>N0.Number.pipe(new qp.Type("numberInRange",e=>N0.Number.is(e),(r,i)=>r>t||r<e?qp.failure(r,i,`${n} must be a number between ${e} and ${t}`):qp.success(r),qp.identity));var qA={};Object.defineProperty(qA,"__esModule",{value:!0});let qh=(0,B.__importStar)(WZ);qA.default=new qh.Type("StringFromInt",qh.string.is,(e,t)=>(0,W5.pipe)(qh.boolean.validate(e,t),(0,N6.chain)(e=>qh.success(e.toString()))),e=>e);var qm={};Object.defineProperty(qm,"__esModule",{value:!0});let qg=(0,B.__importStar)(WZ);function qy(){var e,t;return QB||(QB=1,Object.defineProperty(e=NX,"__esModule",{value:!0}),e.StringOrNull=e.StringFromNumber=e.StringFromBoolean=e.NumberRange=e.NumberOrNull=e.NonEmptyStringOrNull=e.NonEmptyString=e.IntFromPixels=e.IntFromNumber=e.Function=e.DateFromTsMs=e.DateFromStringOrNumber=e.DateFromString=void 0,(0,B.__exportStar)(N0,e),t=function(){if(QL)return N2;QL=1,Object.defineProperty(N2,"__esModule",{value:!0});let e=(0,B.__importStar)(WZ),t=qy();return N2.default=new e.Type("dateFromString",e=>e instanceof Date,(n,r)=>(0,W5.pipe)(t.String.validate(n,r),(0,N6.chain)(t=>{let i=new Date(t);return isNaN(i.getTime())?e.failure(n,r):e.success(i)})),e=>e.toISOString()),N2}(),Object.defineProperty(e,"DateFromString",{enumerable:!0,get:function(){return(0,B.__importDefault)(t).default}}),Object.defineProperty(e,"DateFromStringOrNumber",{enumerable:!0,get:function(){return(0,B.__importDefault)(N5).default}}),Object.defineProperty(e,"DateFromTsMs",{enumerable:!0,get:function(){return(0,B.__importDefault)(N9).default}}),(0,B.__exportStar)(N7,e),e.Function=(0,B.__importStar)(W6),Object.defineProperty(e,"IntFromNumber",{enumerable:!0,get:function(){return(0,B.__importDefault)(N8).default}}),Object.defineProperty(e,"IntFromPixels",{enumerable:!0,get:function(){return(0,B.__importDefault)(qt).default}}),Object.defineProperty(e,"NonEmptyString",{enumerable:!0,get:function(){return(0,B.__importDefault)(qi).default}}),Object.defineProperty(e,"NonEmptyStringOrNull",{enumerable:!0,get:function(){return(0,B.__importDefault)(qa).default}}),Object.defineProperty(e,"NumberOrNull",{enumerable:!0,get:function(){return(0,B.__importDefault)(qc).default}}),Object.defineProperty(e,"NumberRange",{enumerable:!0,get:function(){return(0,B.__importDefault)(qf).default}}),Object.defineProperty(e,"StringFromBoolean",{enumerable:!0,get:function(){return(0,B.__importDefault)(qA).default}}),Object.defineProperty(e,"StringFromNumber",{enumerable:!0,get:function(){return(0,B.__importDefault)(qm).default}}),Object.defineProperty(e,"StringOrNull",{enumerable:!0,get:function(){return(0,B.__importDefault)(qu).default}})),NX}qm.default=new qg.Type("StringFromInt",qg.string.is,(e,t)=>(0,W5.pipe)(qg.number.validate(e,t),(0,N6.chain)(e=>qg.success(e.toString()))),e=>e);var qv={},qx={},qb={},qC={},qS={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BooleanField=e.BooleanConfig=e.BooleanFieldType=void 0;let t=(0,B.__importStar)(WZ),n=qy();e.BooleanFieldType="Boolean",e.BooleanConfig=t.exact(t.partial({label:n.StringOrNull,default_value:t.boolean,placeholder_true:t.string,placeholder_false:t.string})),e.BooleanField=t.exact(t.intersection([t.type({type:t.literal(e.BooleanFieldType)}),t.partial({config:e.BooleanConfig})]))}(qS);var qw={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Color=e.ColorConfig=e.ColorFieldType=void 0;let t=(0,B.__importStar)(WZ),n=qy();e.ColorFieldType="Color",e.ColorConfig=t.exact(t.partial({label:n.StringOrNull,placeholder:t.string})),e.Color=t.exact(t.intersection([t.type({type:t.literal(e.ColorFieldType)}),t.partial({fieldset:n.StringOrNull,config:e.ColorConfig})]))}(qw);var qI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Date=e.DateConfig=e.DateFieldType=void 0;let t=(0,B.__importStar)(WZ),n=qy();e.DateFieldType="Date",e.DateConfig=t.exact(t.partial({label:n.StringOrNull,placeholder:t.string,default:t.string})),e.Date=t.exact(t.intersection([t.type({type:t.literal(e.DateFieldType)}),t.partial({fieldset:n.StringOrNull,config:e.DateConfig})]))}(qI);var q_={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Embed=e.EmbedConfig=e.EmbedFieldType=void 0;let t=(0,B.__importStar)(WZ),n=qy();e.EmbedFieldType="Embed",e.EmbedConfig=t.exact(t.partial({label:n.StringOrNull,placeholder:t.string,useAsTitle:t.boolean})),e.Embed=t.exact(t.intersection([t.type({type:t.literal(e.EmbedFieldType)}),t.partial({fieldset:n.StringOrNull,config:e.EmbedConfig})]))}(q_);var qT={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GeoPoint=e.GeoPointConfig=e.GeoPointFieldType=void 0;let t=(0,B.__importStar)(WZ),n=qy();e.GeoPointFieldType="GeoPoint",e.GeoPointConfig=t.exact(t.partial({label:n.StringOrNull})),e.GeoPoint=t.exact(t.intersection([t.type({type:t.literal(e.GeoPointFieldType)}),t.partial({fieldset:n.StringOrNull,config:e.GeoPointConfig})]))}(qT);var qO={},qR={},qk={},qE={},qM={};Object.defineProperty(qM,"__esModule",{value:!0}),qM.pipe=qM.pipeable=void 0,qM.pipeable=function(e){var t,n,r,i,o,a,u,s,l,c,d,f,p,A,h,m={};if("function"==typeof e.map){var g=function(t){return function(n){return e.map(n,t)}};m.map=g}if("function"==typeof e.contramap){var y=function(t){return function(n){return e.contramap(n,t)}};m.contramap=y}if("function"==typeof e.mapWithIndex){var v=function(t){return function(n){return e.mapWithIndex(n,t)}};m.mapWithIndex=v}if("function"==typeof e.ap){var x=function(t){return function(n){return e.ap(n,t)}},b=function(t){return function(n){return e.ap(e.map(n,function(e){return function(){return e}}),t)}};m.ap=x,m.apFirst=b,m.apSecond=function(t){return function(n){return e.ap(e.map(n,function(){return function(e){return e}}),t)}}}if("function"==typeof e.chain){var C=function(t){return function(n){return e.chain(n,t)}},S=function(t){return function(n){return e.chain(n,function(n){return e.map(t(n),function(){return n})})}},w=function(t){return e.chain(t,Lq.identity)};m.chain=C,m.chainFirst=S,m.flatten=w}if("function"==typeof e.bimap){var I=function(t,n){return function(r){return e.bimap(r,t,n)}},_=function(t){return function(n){return e.mapLeft(n,t)}};m.bimap=I,m.mapLeft=_}if("function"==typeof e.extend){var T=function(t){return function(n){return e.extend(n,t)}},O=function(t){return e.extend(t,Lq.identity)};m.extend=T,m.duplicate=O}if("function"==typeof e.reduce){var R=function(t,n){return function(r){return e.reduce(r,t,n)}},k=function(t){var n=e.foldMap(t);return function(e){return function(t){return n(t,e)}}},E=function(t,n){return function(r){return e.reduceRight(r,t,n)}};m.reduce=R,m.foldMap=k,m.reduceRight=E}if("function"==typeof e.reduceWithIndex){var M=function(t,n){return function(r){return e.reduceWithIndex(r,t,n)}},F=function(t){var n=e.foldMapWithIndex(t);return function(e){return function(t){return n(t,e)}}},j=function(t,n){return function(r){return e.reduceRightWithIndex(r,t,n)}};m.reduceWithIndex=M,m.foldMapWithIndex=F,m.reduceRightWithIndex=j}if("function"==typeof e.alt){var U=function(t){return function(n){return e.alt(n,t)}};m.alt=U}if("function"==typeof e.compact&&(m.compact=e.compact,m.separate=e.separate),"function"==typeof e.filter){var K=function(t){return function(n){return e.filter(n,t)}},L=function(t){return function(n){return e.filterMap(n,t)}},B=function(t){return function(n){return e.partition(n,t)}},P=function(t){return function(n){return e.partitionMap(n,t)}};m.filter=K,m.filterMap=L,m.partition=B,m.partitionMap=P}if("function"==typeof e.filterWithIndex){var W=function(t){return function(n){return e.filterWithIndex(n,t)}},D=function(t){return function(n){return e.filterMapWithIndex(n,t)}},N=function(t){return function(n){return e.partitionWithIndex(n,t)}},q=function(t){return function(n){return e.partitionMapWithIndex(n,t)}};m.filterWithIndex=W,m.filterMapWithIndex=D,m.partitionWithIndex=N,m.partitionMapWithIndex=q}if("function"==typeof e.promap){var Q=function(t,n){return function(r){return e.promap(r,t,n)}};m.promap=Q}if("function"==typeof e.compose){var V=function(t){return function(n){return e.compose(n,t)}};m.compose=V}if("function"==typeof e.throwError){var z=function(t){return function(n){return"None"===n._tag?e.throwError(t()):e.of(n.value)}},Y=function(t){return"Left"===t._tag?e.throwError(t.left):e.of(t.right)},H=function(t,n){return function(r){return t(r)?e.of(r):e.throwError(n(r))}},Z=function(t,n){return function(r){return e.chain(r,function(r){return t(r)?e.of(r):e.throwError(n(r))})}};m.fromOption=z,m.fromEither=Y,m.fromPredicate=H,m.filterOrElse=Z}return m},qM.pipe=Lq.pipe;var qF=T&&T.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),qj=T&&T.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),qU=T&&T.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&qF(t,e,n);return qj(t,e),t};Object.defineProperty(qE,"__esModule",{value:!0}),qE.NumberFromString=void 0;var qK=qU(WZ);qE.NumberFromString=new qK.Type("NumberFromString",qK.number.is,function(e,t){return qM.pipe(qK.string.validate(e,t),LW.chain(function(n){var r=+n;return isNaN(r)||""===n.trim()?qK.failure(e,t):qK.success(r)}))},String);var qL=T&&T.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),qB=T&&T.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),qP=T&&T.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&qL(t,e,n);return qB(t,e),t};Object.defineProperty(qk,"__esModule",{value:!0}),qk.IntFromString=void 0;var qW=qP(WZ);qk.IntFromString=new qW.Type("IntFromString",qW.Int.is,function(e,t){return qM.pipe(qE.NumberFromString.validate(e,t),LW.chain(function(n){return qW.Int.is(n)?qW.success(n):qW.failure(e,t)}))},qE.NumberFromString.encode),Object.defineProperty(qR,"__esModule",{value:!0});let qD=(0,B.__importStar)(WZ),qN=qy(),qq=new qD.Type("SideConstraints",e=>!e||"number"==typeof e,(e,t)=>LW.either.chain(qD.union([qD.literal("auto"),qD.literal(""),qD.Int,qk.IntFromString,qN.IntFromNumber,qN.IntFromPixels,qD.null]).validate(e,t),e=>"auto"===e||""===e?qD.success(null):qD.success(e)),e=>e),qQ=qD.partial({width:qq,height:qq});qR.default=qQ,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Image=e.ImageConfig=e.Thumbnail=e.ImageFieldType=void 0;let t=(0,B.__importStar)(WZ),n=qy(),r=(0,B.__importDefault)(qR);e.ImageFieldType="Image",e.Thumbnail=t.exact(t.intersection([t.type({name:t.string}),r.default])),e.ImageConfig=t.exact(t.partial({label:n.StringOrNull,placeholder:t.string,constraint:r.default,thumbnails:t.readonlyArray(e.Thumbnail)})),e.Image=t.exact(t.intersection([t.type({type:t.literal(e.ImageFieldType)}),t.partial({fieldset:n.StringOrNull,config:e.ImageConfig})]))}(qO);var qV={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IntegrationField=e.IntegrationFieldConfig=e.IntegrationFieldType=void 0;let t=(0,B.__importStar)(WZ),n=qy();e.IntegrationFieldType="IntegrationFields",e.IntegrationFieldConfig=t.exact(t.partial({label:n.StringOrNull,placeholder:t.string,catalog:t.string})),e.IntegrationField=t.exact(t.intersection([t.type({type:t.literal(e.IntegrationFieldType)}),t.partial({fieldset:n.StringOrNull,config:e.IntegrationFieldConfig})]))}(qV);var qz={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Link=e.LinkConfig=e.LinkFieldType=void 0;let t=(0,B.__importStar)(WZ),n=qy(),r=e=>{if(e instanceof Array&&e.reduce((e,t)=>e&&"string"==typeof t,!0))return t.success(e)},i=e=>{if("string"==typeof e)return t.success([e])},o=new t.Type("MasksArrayString",e=>e instanceof Array,(e,n)=>LW.either.chain(t.union([t.array(t.string),t.string]).validate(e,n),o=>r(o)||i(o)||t.failure(e,n)),e=>e);e.LinkFieldType="Link",e.LinkConfig=t.exact(t.partial({label:n.StringOrNull,useAsTitle:t.boolean,placeholder:t.string,select:(0,NN.withFallback)(t.union([t.literal("media"),t.literal("document"),t.literal("web"),t.null]),null),customtypes:t.readonlyArray(t.string),masks:o,tags:o,allowTargetBlank:t.boolean})),e.Link=t.exact(t.intersection([t.type({type:t.literal(e.LinkFieldType)}),t.partial({fieldset:n.StringOrNull,config:e.LinkConfig})]))}(qz);var qY={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Number=e.NumberConfig=e.NumberFieldType=void 0;let t=(0,B.__importStar)(WZ),n=qy();e.NumberFieldType="Number",e.NumberConfig=t.exact(t.partial({label:n.StringOrNull,placeholder:t.string,min:t.union([t.number,qE.NumberFromString]),max:t.union([t.number,qE.NumberFromString]),step:t.union([t.number,qE.NumberFromString])})),e.Number=t.exact(t.intersection([t.type({type:t.literal(e.NumberFieldType)}),t.partial({fieldset:n.StringOrNull,config:e.NumberConfig})]))}(qY);var qH={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Range=e.RangeConfig=e.RangeFieldType=void 0;let t=(0,B.__importStar)(WZ),n=qy();e.RangeFieldType="Range",e.RangeConfig=t.exact(t.partial({label:n.StringOrNull,placeholder:t.string,min:t.union([t.number,qE.NumberFromString]),max:t.union([t.number,qE.NumberFromString]),step:t.union([t.number,qE.NumberFromString])})),e.Range=t.exact(t.intersection([t.type({type:t.literal(e.RangeFieldType)}),t.partial({fieldset:n.StringOrNull,config:e.RangeConfig})]))}(qH);var qZ={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RichText=e.RichTextConfig=e.RichTextNodeTypeCodec=e.RichTextNodeType=e.DEFAULT_OPTION=e.RichTextFieldType=void 0;let t=(0,B.__importStar)(WZ),n=qy(),r=(0,B.__importDefault)(qR);e.RichTextFieldType="StructuredText",e.DEFAULT_OPTION="paragraph",e.RichTextNodeType={heading1:"heading1",heading2:"heading2",heading3:"heading3",heading4:"heading4",heading5:"heading5",heading6:"heading6",paragraph:"paragraph",strong:"strong",em:"em",preformatted:"preformatted",hyperlink:"hyperlink",image:"image",embed:"embed",list:"list-item",orderedList:"o-list-item",rtl:"rtl"},e.RichTextNodeTypeCodec=t.keyof({[e.RichTextNodeType.heading1]:null,[e.RichTextNodeType.heading2]:null,[e.RichTextNodeType.heading3]:null,[e.RichTextNodeType.heading4]:null,[e.RichTextNodeType.heading5]:null,[e.RichTextNodeType.heading6]:null,[e.RichTextNodeType.paragraph]:null,[e.RichTextNodeType.strong]:null,[e.RichTextNodeType.em]:null,[e.RichTextNodeType.preformatted]:null,[e.RichTextNodeType.hyperlink]:null,[e.RichTextNodeType.image]:null,[e.RichTextNodeType.embed]:null,[e.RichTextNodeType.list]:null,[e.RichTextNodeType.orderedList]:null,[e.RichTextNodeType.rtl]:null});let i=new t.Type("RichTextOptions",e=>"string"==typeof e,n=>(0,Lq.pipe)(t.union([t.string,t.null]).decode(n),LP.either.map(t=>{if(!t)return e.DEFAULT_OPTION;let n=t.split(",").map(e=>e.trim()).filter(t=>(0,LW.getOrElseW)(()=>{})(e.RichTextNodeTypeCodec.decode(t)));return n.length?n.join(","):e.DEFAULT_OPTION})),e=>e),o=e=>{if(!e)return t.success([])},a=e=>{if(e instanceof Object){if(!Object.entries(e).length)return t.success([]);if(e[""])return t.success(e[""].map(e=>e.name));let n=Object.entries(e).reduce((e,[,t])=>e.concat(t.map(e=>e.name)),[]).filter(Boolean);return t.success(n)}},u=e=>{if(e instanceof Array&&e.reduce((e,t)=>e&&"string"==typeof t,!0))return t.success(e)},s=e=>{if("string"==typeof e)return t.success([e])},l=new t.Type("RichTextLabels",e=>e instanceof Array,(e,n)=>{let r=t.record(t.string,t.readonlyArray(t.record(t.literal("name"),t.string))),i=t.readonlyArray(t.string);return(0,Lq.pipe)(t.union([r,i,t.string,t.null]).decode(e),LP.either.chain(r=>o(r)||u(r)||a(r)||s(r)||t.failure(e,n)))},e=>e);e.RichTextConfig=t.exact(t.partial({label:n.StringOrNull,placeholder:t.string,useAsTitle:t.boolean,single:i,multi:i,imageConstraint:r.default,labels:l,allowTargetBlank:t.boolean})),e.RichText=t.exact(t.intersection([t.type({type:t.literal(e.RichTextFieldType)}),t.partial({fieldset:n.StringOrNull,config:e.RichTextConfig})]))}(qZ);var qJ={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Select=e.SelectConfig=e.SelectFieldType=void 0;let t=(0,B.__importStar)(WZ),n=qy();e.SelectFieldType="Select",e.SelectConfig=t.exact(t.partial({label:n.StringOrNull,placeholder:t.string,default_value:t.string,options:t.readonlyArray(t.union([t.string,n.StringFromNumber,n.StringFromBoolean]))})),e.Select=t.exact(t.intersection([t.type({type:t.literal(e.SelectFieldType)}),t.partial({fieldset:n.StringOrNull,config:e.SelectConfig})]))}(qJ);var qG={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Separator=e.SeparatorConfig=e.SeparatorFieldType=void 0;let t=(0,B.__importStar)(WZ),n=qy();e.SeparatorFieldType="Separator",e.SeparatorConfig=t.exact(t.partial({label:n.StringOrNull})),e.Separator=t.exact(t.intersection([t.type({type:t.literal(e.SeparatorFieldType)}),t.partial({config:e.SeparatorConfig})]))}(qG);var q$={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Text=e.TextConfig=e.TextFieldType=void 0;let t=(0,B.__importStar)(WZ),n=qy();e.TextFieldType="Text",e.TextConfig=t.exact(t.partial({label:n.StringOrNull,useAsTitle:t.boolean,placeholder:t.string})),e.Text=t.exact(t.intersection([t.type({type:t.literal(e.TextFieldType)}),t.partial({fieldset:n.StringOrNull,config:e.TextConfig})]))}(q$);var qX={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Timestamp=e.TimestampConfig=e.TimestampFieldType=void 0;let t=(0,B.__importStar)(WZ),n=qy();e.TimestampFieldType="Timestamp",e.TimestampConfig=t.exact(t.partial({label:n.StringOrNull,placeholder:t.string,default:t.string})),e.Timestamp=t.exact(t.intersection([t.type({type:t.literal(e.TimestampFieldType)}),t.partial({fieldset:n.StringOrNull,config:e.TimestampConfig})]))}(qX),Object.defineProperty(qC,"__esModule",{value:!0}),qC.NestableWidget=void 0;let q0=(0,B.__importStar)(WZ);qC.NestableWidget=q0.union([qw.Color,qS.BooleanField,q_.Embed,qT.GeoPoint,qI.Date,qY.Number,qH.Range,qZ.RichText,qJ.Select,qG.Separator,q$.Text,qX.Timestamp,qz.Link,qO.Image,qV.IntegrationField]),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Group=e.GroupConfig=e.GroupFieldType=void 0;let t=(0,B.__importStar)(WZ),n=qy();e.GroupFieldType="Group",e.GroupConfig=t.exact(t.partial({label:n.StringOrNull,repeat:t.boolean,fields:t.record(WG.WidgetKey,qC.NestableWidget)})),e.Group=t.exact(t.intersection([t.type({type:t.literal(e.GroupFieldType)}),t.partial({fieldset:n.StringOrNull,icon:t.string,description:t.string,config:e.GroupConfig})]))}(qb);var q1,q2,q6={};Object.defineProperty(q6,"__esModule",{value:!0}),(0,B.__exportStar)(qS,q6),(0,B.__exportStar)(qw,q6),(0,B.__exportStar)(qI,q6),(0,B.__exportStar)(q_,q6),(0,B.__exportStar)(qT,q6),(0,B.__exportStar)(qO,q6),(0,B.__exportStar)(qV,q6),(0,B.__exportStar)(qz,q6),(0,B.__exportStar)(qC,q6),(0,B.__exportStar)(qY,q6),(0,B.__exportStar)(qH,q6),(0,B.__exportStar)(qZ,q6),(0,B.__exportStar)(qJ,q6),(0,B.__exportStar)(qG,q6),(0,B.__exportStar)(q$,q6),(0,B.__exportStar)(qX,q6);var q5={},q3={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isCompositeSlice=e.CompositeSlice=e.CompositeSliceConfig=e.CompositeSliceType=void 0;let t=(0,B.__importStar)(WZ),n=qy();e.CompositeSliceType="Slice",e.CompositeSliceConfig=t.exact(t.partial({label:n.StringOrNull})),e.CompositeSlice=t.exact(t.intersection([t.type({type:t.literal(e.CompositeSliceType)}),t.partial({fieldset:n.StringOrNull,description:t.string,icon:t.string,display:t.string,"non-repeat":t.record(WG.WidgetKey,qC.NestableWidget),repeat:t.record(WG.WidgetKey,qC.NestableWidget),config:e.CompositeSliceConfig})])),e.isCompositeSlice=function(e){return"Slice"===e.type}}(q3);var q9={};Object.defineProperty(q9,"__esModule",{value:!0}),q9.isLegacySlice=q9.LegacySlice=void 0;let q4=(0,B.__importStar)(WZ);q9.LegacySlice=q4.union([qC.NestableWidget,qb.Group]),q9.isLegacySlice=function(e){return"Slice"!==e.type&&"SharedSlice"!==e.type};var q7={},q8={};Object.defineProperty(q8,"__esModule",{value:!0}),q8.isSlicePrimaryWidget=q8.SlicePrimaryWidget=void 0;let Qe=(0,B.__importStar)(WZ);q8.SlicePrimaryWidget=Qe.union([q6.NestableWidget,qb.Group]);let Qt=e=>q6.NestableWidget.is(e)||qb.Group.is(e);q8.isSlicePrimaryWidget=Qt,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isDynamicSharedSlice=e.isStaticSharedSlice=e.SharedSlice=e.SharedSliceType=e.Variation=void 0;let t=(0,B.__importStar)(WZ);e.Variation=t.exact(t.intersection([t.type({id:t.string,name:t.string,description:t.string,imageUrl:(0,NN.withFallback)(t.string,"https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format"),docURL:t.string,version:t.string}),t.partial({display:t.string,primary:t.record(WG.WidgetKey,q8.SlicePrimaryWidget),items:t.record(WG.WidgetKey,qC.NestableWidget)})])),e.SharedSliceType="SharedSlice";let n=t.string,r=t.string;e.SharedSlice=t.exact(t.intersection([t.type({id:t.string,type:t.literal(e.SharedSliceType),name:t.string,variations:t.readonlyArray(e.Variation)}),t.partial({description:t.string,legacyPaths:t.record(n,r)})])),e.isStaticSharedSlice=function(e){return"SharedSlice"===e.type},e.isDynamicSharedSlice=function(e){return"SharedSlice"===e.type}}(q7);var Qn={};Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.SharedSliceRef=void 0;let Qr=(0,B.__importStar)(WZ);Qn.SharedSliceRef=Qr.exact(Qr.type({type:Qr.literal(q7.SharedSliceType)})),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Slices=e.DynamicSlices=e.StaticSlices=e.slicesReader=e.DynamicSlicesConfig=e.StaticSlicesConfig=e.slicesConfigReader=e.SlicesLabels=e.SlicesFieldType=e.LegacySlicesFieldType=void 0;let t=(0,B.__importStar)(WZ),n=qy();function r(r){return t.exact(t.partial({label:n.StringOrNull,labels:e.SlicesLabels,choices:t.record(WG.WidgetKey,t.union([q9.LegacySlice,q3.CompositeSlice,r]))}))}e.LegacySlicesFieldType="Choice",e.SlicesFieldType="Slices",e.SlicesLabels=t.union([t.record(t.string,t.readonlyArray(t.exact(t.intersection([t.type({name:t.string}),t.partial({display:t.string})])))),t.null]),e.slicesConfigReader=r,e.StaticSlicesConfig=r(q7.SharedSlice),e.DynamicSlicesConfig=r(Qn.SharedSliceRef);let i={toStatic(e,t){let n=Object.entries(e.choices||{}).reduce((e,[n,r])=>{if("SharedSlice"!==r.type)return{...e,[n]:r};{let i=t.get(n);return i?{...e,[n]:i}:e}},{});return{...e,choices:n}}};function o(r){return t.exact(t.intersection([t.type({type:t.keyof({[e.SlicesFieldType]:null,[e.LegacySlicesFieldType]:null})}),t.partial({fieldset:n.StringOrNull,config:r})]))}e.slicesReader=o,e.StaticSlices=o(e.StaticSlicesConfig),e.DynamicSlices=o(e.DynamicSlicesConfig),e.Slices={toStatic:(e,t)=>e.config?{...e,config:i.toStatic(e.config,t)}:e}}(q5);var Qi={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UID=e.UIDConfig=e.UIDFieldType=void 0;let t=(0,B.__importStar)(WZ),n=qy();e.UIDFieldType="UID",e.UIDConfig=t.exact(t.partial({label:n.StringOrNull,useAsTitle:t.boolean,placeholder:t.string})),e.UID=t.exact(t.intersection([t.type({type:t.literal(e.UIDFieldType)}),t.partial({fieldset:n.StringOrNull,config:e.UIDConfig})]))}(Qi),Object.defineProperty(qx,"__esModule",{value:!0}),qx.Widgets=qx.FieldType=qx.DynamicWidget=qx.StaticWidget=qx.widgetReader=void 0;let Qo=(0,B.__importStar)(WZ);function Qa(e){return Qo.union([Qi.UID,qC.NestableWidget,qb.Group,e])}qx.widgetReader=Qa,qx.StaticWidget=Qa(q5.StaticSlices),qx.DynamicWidget=Qa(q5.DynamicSlices),qx.FieldType=Qo.keyof({[q6.ColorFieldType]:null,[q6.BooleanFieldType]:null,[q6.NumberFieldType]:null,[q6.EmbedFieldType]:null,[q6.GeoPointFieldType]:null,[q6.DateFieldType]:null,[q6.RangeFieldType]:null,[q6.RichTextFieldType]:null,[q6.SelectFieldType]:null,[q6.SeparatorFieldType]:null,[q6.TextFieldType]:null,[q6.TimestampFieldType]:null,[q6.LinkFieldType]:null,[q6.ImageFieldType]:null,[q6.IntegrationFieldType]:null,[Qi.UIDFieldType]:null,[qb.GroupFieldType]:null,[q5.SlicesFieldType]:null,[q5.LegacySlicesFieldType]:null}),qx.Widgets={toStatic(e,t){switch(e.type){case"Choice":case"Slices":return q5.Slices.toStatic(e,t);default:return e}}},Object.defineProperty(qv,"__esModule",{value:!0}),qv.Sections=qv.DynamicSection=qv.StaticSection=qv.sectionReader=void 0;let Qu=(0,B.__importStar)(WZ);function Qs(e){return Qu.record(WG.WidgetKey,e)}qv.sectionReader=Qs,qv.StaticSection=Qs(qx.StaticWidget),qv.DynamicSection=Qs(qx.DynamicWidget),qv.Sections={toStatic:(e,t)=>Object.entries(e).reduce((e,[n,r])=>({...e,[n]:qx.Widgets.toStatic(r,t)}),{})},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.collectSharedSlices=e.flattenCustomTypeFields=e.filterMissingSharedSlices=e.collectWidgets=e.validateSlices=e.toStatic=e.flattenSections=e.flattenWidgets=e.CustomType=e.StaticCustomType=e.CustomTypeFormat=void 0;let t=(0,B.__importStar)(WZ),n=qy();e.CustomTypeFormat={page:"page",custom:"custom"};class r extends Error{constructor(e){super(),Object.defineProperty(this,"slices",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"message",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.slices=e,this.message=this._formatError(e)}_formatError(e){return`The following slices doesn't exists in your Prismic repository:
|
|
3
3
|
${e.map(e=>` - ${e}`).join(`
|
|
4
4
|
`)}
|
|
@@ -19,4 +19,4 @@ ${e.map(e=>` - ${e}`).join(`
|
|
|
19
19
|
`,eae={fromPrismic:e=>function(t){var n;if(t===eo8)return null==(n=e.nodes[eo7.name])?void 0:n.create({})},toPrismic(e){if(e.type.name===eo7.name)return eo8}},eat={isEmptyLine:e=>0===e.length,isFirst:e=>0===e},ean={name:eo7.name,component:eo7,converter:eae,splitTextToNodes:function(e,t){return function(n){let r=eae.fromPrismic(e)(eo8);if(!r)return[n(t)];let i=t.split(eo8);return 1===i.length?t.length?[n(t)]:[r]:i.reduce((e,t,i)=>eat.isFirst(i)?eat.isEmptyLine(t)?e:[...e,n(t)]:eat.isEmptyLine(t)?[...e,r]:[...e,r,n(t)],[])}}},ear=etX.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,considerAnyAsEmpty:!1,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[new $4({key:new Xe("placeholder"),props:{decorations:({doc:e,selection:t})=>{var n;let r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=t,o=[];if(!r)return null;let{firstChild:a}=e.content,u=a&&a.type.isLeaf,s=a&&a.isAtom,l=!!this.options.considerAnyAsEmpty||a&&a.type.name===(null===(n=e.type.contentMatch.defaultType)||void 0===n?void 0:n.name),c=e.content.childCount<=1&&a&&l&&a.nodeSize<=2&&(!u||!s);return e.descendants((e,t)=>{let n=i>=t&&i<=t+e.nodeSize,r=!e.isLeaf&&!e.childCount;if((n||!this.options.showOnlyCurrent)&&r){let a=[this.options.emptyNodeClass];c&&a.push(this.options.emptyEditorClass);let u=eev.node(t,t+e.nodeSize,{class:a.join(" "),"data-placeholder":"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:e,pos:t,hasAnchor:n}):this.options.placeholder});o.push(u)}return this.options.includeChildren}),eeC.create(e,o)}}})]}}),eai=e=>ear.configure({includeChildren:!0,placeholder:t=>(function({props:e,params:t}){var n;let{editor:r,hasAnchor:i,node:o}=e,{placeholderByNodeType:a,unfocusedPlaceholder:u,nodeExtensions:s}=t,l=!eoz.children.exists(r.state.doc,e=>e===o),c=r.isEditable,d=r.isFocused&&i,f=o.type.name!==euX.name,p=d||f||l,A=s.length>1,h=function(){if(l)return eo6.placeholder;let e=a[o.type.name];return"string"==typeof e?e:null==e?void 0:e(o.attrs)}();return u&&!d&&r.isEmpty?u:("Type '/' for commands"===h?c&&p&&A:c&&p)&&h||""})({props:t,params:e}),showOnlyCurrent:!1,showOnlyWhenEditable:!1});function eao(e){return e.split("-")[1]}function eaa(e){return"y"===e?"height":"width"}function eau(e){return e.split("-")[0]}function eas(e){return["top","bottom"].includes(eau(e))?"x":"y"}function eal(e,t,n){let{reference:r,floating:i}=e,o=r.x+r.width/2-i.width/2,a=r.y+r.height/2-i.height/2,u=eas(t),s=eaa(u),l=r[s]/2-i[s]/2,c="x"===u,d;switch(eau(t)){case"top":d={x:o,y:r.y-i.height};break;case"bottom":d={x:o,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-i.width,y:a};break;default:d={x:r.x,y:r.y}}switch(eao(t)){case"start":d[u]-=l*(n&&c?-1:1);break;case"end":d[u]+=l*(n&&c?-1:1)}return d}let eac=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,u=o.filter(Boolean),s=await (null==a.isRTL?void 0:a.isRTL(t)),l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=eal(l,r,s),f=r,p={},A=0;for(let h=0;h<u.length;h++){let{name:m,fn:g}=u[h],{x:y,y:v,data:x,reset:b}=await g({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:a,elements:{reference:e,floating:t}});c=y??c,d=v??d,p={...p,[m]:{...p[m],...x}},b&&A<=50&&(A++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(l=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:c,y:d}=eal(l,f,s)),h=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:p}};function ead(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function eaf(e,t){var n,r,i;void 0===t&&(t={});let{x:o,y:a,platform:u,rects:s,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:A=!1,padding:h=0}=t,m="number"!=typeof h?{top:0,right:0,bottom:0,left:0,...h}:{top:h,right:h,bottom:h,left:h},g=l[A?"floating"===p?"reference":"floating":p],y=ead(await u.getClippingRect({element:null==(n=await (null==u.isElement?void 0:u.isElement(g)))||n?g:g.contextElement||await (null==u.getDocumentElement?void 0:u.getDocumentElement(l.floating)),boundary:d,rootBoundary:f,strategy:c})),v="floating"===p?{...s.floating,x:o,y:a}:s.reference,x=await (null==u.getOffsetParent?void 0:u.getOffsetParent(l.floating)),b=await (null==u.isElement?void 0:u.isElement(x))&&await (null==u.getScale?void 0:u.getScale(x))||{x:1,y:1},C=ead(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:x,strategy:c}):v);return{top:(y.top-C.top+m.top)/b.y,bottom:(C.bottom-y.bottom+m.bottom)/b.y,left:(y.left-C.left+m.left)/b.x,right:(C.right-y.right+m.right)/b.x}}let eap=Math.min,eaA=Math.max;function eah(e,t,n){return eaA(e,eap(t,n))}["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let eam={left:"right",right:"left",bottom:"top",top:"bottom"};function eag(e){return e.replace(/left|right|bottom|top/g,e=>eam[e])}let eay={start:"end",end:"start"};function eav(e){return e.replace(/start|end/g,e=>eay[e])}function eax(e){return"x"===e?"y":"x"}function eab(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eaC(e){return eab(e).getComputedStyle(e)}let eaS=Math.min,eaw=Math.max,eaI=Math.round;function ea_(e){let t=eaC(e),n=parseFloat(t.width),r=parseFloat(t.height),i=e.offsetWidth,o=e.offsetHeight,a=eaI(n)!==i||eaI(r)!==o;return a&&(n=i,r=o),{width:n,height:r,fallback:a}}function eaT(e){return eaM(e)?(e.nodeName||"").toLowerCase():""}let eaO;function eaR(){if(eaO)return eaO;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?eaO=e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function eak(e){return e instanceof eab(e).HTMLElement}function eaE(e){return e instanceof eab(e).Element}function eaM(e){return e instanceof eab(e).Node}function eaF(e){return!(typeof ShadowRoot>"u")&&(e instanceof eab(e).ShadowRoot||e instanceof ShadowRoot)}function eaj(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=eaC(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function eaU(e){return["table","td","th"].includes(eaT(e))}function eaK(e){let t=/firefox/i.test(eaR()),n=eaC(e),r=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!r&&"none"!==r||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some(e=>n.willChange.includes(e))||["paint","layout","strict","content"].some(e=>{let t=n.contain;return null!=t&&t.includes(e)})}function eaL(){return/^((?!chrome|android).)*safari/i.test(eaR())}function eaB(e){return["html","body","#document"].includes(eaT(e))}function eaP(e){return eaE(e)?e:e.contextElement}let eaW={x:1,y:1};function eaD(e){let t=eaP(e);if(!eak(t))return eaW;let n=t.getBoundingClientRect(),{width:r,height:i,fallback:o}=ea_(t),a=(o?eaI(n.width):n.width)/r,u=(o?eaI(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}function eaN(e,t,n,r){var i,o;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),u=eaP(e),s=eaW;t&&(r?eaE(r)&&(s=eaD(r)):s=eaD(e));let l=u?eab(u):window,c=eaL()&&n,d=(a.left+(c&&(null==(i=l.visualViewport)?void 0:i.offsetLeft)||0))/s.x,f=(a.top+(c&&(null==(o=l.visualViewport)?void 0:o.offsetTop)||0))/s.y,p=a.width/s.x,A=a.height/s.y;if(u){let h=eab(u),m=r&&eaE(r)?eab(r):r,g=h.frameElement;for(;g&&r&&m!==h;){let y=eaD(g),v=g.getBoundingClientRect(),x=getComputedStyle(g);v.x+=(g.clientLeft+parseFloat(x.paddingLeft))*y.x,v.y+=(g.clientTop+parseFloat(x.paddingTop))*y.y,d*=y.x,f*=y.y,p*=y.x,A*=y.y,d+=v.x,f+=v.y,g=eab(g).frameElement}}return{width:p,height:A,top:f,right:d+p,bottom:f+A,left:d,x:d,y:f}}function eaq(e){return((eaM(e)?e.ownerDocument:e.document)||window.document).documentElement}function eaQ(e){return eaE(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function eaV(e){return eaN(eaq(e)).left+eaQ(e).scrollLeft}function eaz(e){if("html"===eaT(e))return e;let t=e.assignedSlot||e.parentNode||eaF(e)&&e.host||eaq(e);return eaF(t)?t.host:t}function eaY(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=eaz(t);return eaB(n)?n.ownerDocument.body:eak(n)&&eaj(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=eab(r);return i?t.concat(o,o.visualViewport||[],eaj(r)?r:[]):t.concat(r,eaY(r))}function eaH(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=eab(e),r=eaq(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,u=0,s=0;if(i){o=i.width,a=i.height;let l=eaL();(!l||l&&"fixed"===t)&&(u=i.offsetLeft,s=i.offsetTop)}return{width:o,height:a,x:u,y:s}}(e,n);else if("document"===t)r=function(e){let t=eaq(e),n=eaQ(e),r=e.ownerDocument.body,i=eaw(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=eaw(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+eaV(e),u=-n.scrollTop;return"rtl"===eaC(r).direction&&(a+=eaw(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:u}}(eaq(e));else if(eaE(t))r=function(e,t){let n=eaN(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=eak(e)?eaD(e):{x:1,y:1};return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{let i={...t};if(eaL()){var o,a;let u=eab(e);i.x-=(null==(o=u.visualViewport)?void 0:o.offsetLeft)||0,i.y-=(null==(a=u.visualViewport)?void 0:a.offsetTop)||0}r=i}return ead(r)}function eaZ(e,t){return eak(e)&&"fixed"!==eaC(e).position?t?t(e):e.offsetParent:null}function eaJ(e,t){let n=eab(e),r=eaZ(e,t);for(;r&&eaU(r)&&"static"===eaC(r).position;)r=eaZ(r,t);return r&&("html"===eaT(r)||"body"===eaT(r)&&"static"===eaC(r).position&&!eaK(r))?n:r||function(e){let t=eaz(e);for(;eak(t)&&!eaB(t);){if(eaK(t))return t;t=eaz(t)}return null}(e)||n}let eaG={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o="clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let r=eaY(e).filter(e=>eaE(e)&&"body"!==eaT(e)),i=null,o="fixed"===eaC(e).position,a=o?eaz(e):e;for(;eaE(a)&&!eaB(a);){let u=eaC(a),s=eaK(a);"fixed"===u.position?i=null:(o?s||i:s||"static"!==u.position||!i||!["absolute","fixed"].includes(i.position))?i=u:r=r.filter(e=>e!==a),a=eaz(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...o,r],u=a[0],s=a.reduce((e,n)=>{let r=eaH(t,n,i);return e.top=eaw(r.top,e.top),e.right=eaS(r.right,e.right),e.bottom=eaS(r.bottom,e.bottom),e.left=eaw(r.left,e.left),e},eaH(t,u,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=eak(n),o=eaq(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},u={x:1,y:1},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==eaT(n)||eaj(o))&&(a=eaQ(n)),eak(n))){let l=eaN(n);u=eaD(n),s.x=l.x+n.clientLeft,s.y=l.y+n.clientTop}return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-a.scrollLeft*u.x+s.x,y:t.y*u.y-a.scrollTop*u.y+s.y}},isElement:eaE,getDimensions:function(e){return eak(e)?ea_(e):e.getBoundingClientRect()},getOffsetParent:eaJ,getDocumentElement:eaq,getScale:eaD,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||eaJ,o=this.getDimensions;return{reference:function(e,t,n){let r=eak(t),i=eaq(t),o=eaN(e,!0,"fixed"===n,t),a={scrollLeft:0,scrollTop:0},u={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==eaT(t)||eaj(i))&&(a=eaQ(t)),eak(t)){let s=eaN(t,!0);u.x=s.x+t.clientLeft,u.y=s.y+t.clientTop}else i&&(u.x=eaV(i))}return{x:o.left+a.scrollLeft-u.x,y:o.top+a.scrollTop-u.y,width:o.width,height:o.height}}(t,await i(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===eaC(e).direction};function ea$(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:u=!1}=r,s=i&&!u,l=s||o?[...eaE(e)?eaY(e):e.contextElement?eaY(e.contextElement):[],...eaY(t)]:[];l.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});let c,d=null;if(a){let f=!0;d=new ResizeObserver(()=>{f||n(),f=!1}),eaE(e)&&!u&&d.observe(e),eaE(e)||!e.contextElement||u||d.observe(e.contextElement),d.observe(t)}let p=u?eaN(e):null;return u&&function t(){let r=eaN(e);p&&(r.x!==p.x||r.y!==p.y||r.width!==p.width||r.height!==p.height)&&n(),p=r,c=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach(e=>{s&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==(e=d)||e.disconnect(),d=null,u&&cancelAnimationFrame(c)}}let eaX=(e,t,n)=>{let r=new Map,i={platform:eaG,...n},o={...i.platform,_c:r};return eac(e,t,{...i,platform:o})};var ea0="u">typeof document?c.useLayoutEffect:c.useEffect;function ea1(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!ea1(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let o=i[r];if(!("_owner"===o&&e.$$typeof)&&!ea1(e[o],t[o]))return!1}return!0}return e!=e&&t!=t}function ea2(e){let t=c.useRef(e);return ea0(()=>{t.current=e}),t}var ea6="u">typeof document?c.useLayoutEffect:c.useEffect;let ea5=!1,ea3=0,ea9=()=>"floating-ui-"+ea3++,ea4=(QK||(QK=n.t(c,2)))["useId".toString()],ea7=ea4??function(){let[e,t]=c.useState(()=>ea5?ea9():void 0);return ea6(()=>{null==e&&t(ea9())},[]),c.useEffect(()=>{ea5||(ea5=!0)},[]),e},ea8=c.createContext(null),eue=c.createContext(null),eut=()=>{var e,t;return null!=(e=null==(t=c.useContext(ea8))?void 0:t.id)?e:null},eun=()=>c.useContext(eue);function eur(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function eui(e){var t;return null!=(t=eur(e).defaultView)?t:window}function euo(e){return!!e&&e instanceof eui(e).Element}let eua=(QK||(QK=n.t(c,2)))["useInsertionEffect".toString()];function euu(e){let t=c.useRef(()=>{});return eua?eua(()=>{t.current=e}):t.current=e,c.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function eus(e,t,n){let r=new Map;return{..."floating"===n&&{tabIndex:-1},...e,...t.map(e=>e?e[n]:null).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,i]=t;if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof i){var o;null==(o=r.get(n))||o.push(i),e[n]=function(){for(var e,t=arguments.length,i=Array(t),o=0;o<t;o++)i[o]=arguments[o];null==(e=r.get(n))||e.forEach(e=>e(...i))}}}else e[n]=i}),e),{})}}function eul(e,t){var n,r;let i=null!=(n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}))?n:[],o=i;for(;o.length;)o=null!=(r=e.filter(e=>{var t;return null==(t=o)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}))?r:[],i=i.concat(o);return i}function euc(e){let t=e.activeElement;for(;(null==(n=t)||null==(r=n.shadowRoot)?void 0:r.activeElement)!=null;){var n,r;t=t.shadowRoot.activeElement}return t}function eud(e){e.preventDefault(),e.stopPropagation()}function euf(e){let t=(0,c.useRef)();return ea6(()=>{t.current=e},[e]),t.current}let eup=function(e,t){let{open:n}=e,{enabled:r=!0,role:i="dialog"}=void 0===t?{}:t,o=ea7(),a=ea7(),u={id:o,role:i};return r?"tooltip"===i?{reference:{"aria-describedby":n?o:void 0},floating:u}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===i?"dialog":i,"aria-controls":n?o:void 0,..."listbox"===i&&{role:"combobox"},..."menu"===i&&{id:a}},floating:{...u,..."menu"===i&&{"aria-labelledby":a}}}:{}};function euA(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}let euh=function(e,t){let{open:n,onOpenChange:r,refs:i,events:o,nodeId:a}=e,{enabled:u=!0,escapeKey:s=!0,outsidePointerDown:l=!0,referencePointerDown:d=!1,ancestorScroll:f=!1,bubbles:p=!0}=void 0===t?{}:t,A=eun(),h=null!=eut(),m=c.useRef(!1);return c.useEffect(()=>{if(!n||!u)return;function e(e){"Escape"!==e.key||!p&&A&&eul(A.nodesRef.current,a).length>0||(o.emit("dismiss",{preventScroll:!1}),r(!1))}function t(e){var t,n;let u=m.current;if(m.current=!1,u)return;let s="composedPath"in e?e.composedPath()[0]:e.target;if(euo(s)&&i.floating.current){let l=null!=(n=i.floating.current.ownerDocument.defaultView)?n:window,c=s.scrollWidth>s.clientWidth,d=s.scrollHeight>s.clientHeight,f=d&&e.offsetX>s.clientWidth;if(d&&"rtl"===l.getComputedStyle(s).direction&&(f=e.offsetX<=s.offsetWidth-s.clientWidth),f||c&&e.offsetY>s.clientHeight)return}let g=A&&eul(A.nodesRef.current,a).some(t=>{var n;return euA(e,null==(n=t.context)?void 0:n.refs.floating.current)});euA(e,i.floating.current)||euA(e,i.domReference.current)||g||!p&&A&&eul(A.nodesRef.current,a).length>0||(o.emit("dismiss",!!h&&{preventScroll:!0}),r(!1))}function c(){r(!1)}let d=eur(i.floating.current);s&&d.addEventListener("keydown",e),l&&d.addEventListener("pointerdown",t);let g=(f?[...euo(i.reference.current)?eaY(i.reference.current):[],...euo(i.floating.current)?eaY(i.floating.current):[]]:[]).filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)});return g.forEach(e=>e.addEventListener("scroll",c,{passive:!0})),()=>{s&&d.removeEventListener("keydown",e),l&&d.removeEventListener("pointerdown",t),g.forEach(e=>e.removeEventListener("scroll",c))}},[s,l,o,A,a,n,r,f,u,p,i,h]),u?{reference:{onPointerDown(){d&&(o.emit("dismiss"),r(!1))}},floating:{onPointerDownCapture(){m.current=!0}}}:{}},eum="ArrowUp",eug="ArrowDown",euy="ArrowLeft",euv="ArrowRight";function eux(e,t,n){return Math.floor(e/t)!==n}function eub(e,t){return t<0||t>=e.current.length}function euC(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:i,amount:o=1}=void 0===t?{}:t,a=e.current,u=n;do{var s,l;u+=r?-o:o}while(u>=0&&u<=a.length-1&&(i?i.includes(u):null==a[u]||null!=(s=a[u])&&s.hasAttribute("disabled")||(null==(l=a[u])?void 0:l.getAttribute("aria-disabled"))==="true"));return u}function euS(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function euw(e,t){return euS(t,e===eum||e===eug,e===euy||e===euv)}function euI(e,t,n){return euS(t,e===eug,n?e===euy:e===euv)||"Enter"===e||" "==e||""===e}function eu_(e,t){return euC(e,{disabledIndices:t})}function euT(e,t){return euC(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}let euO=function(e,t){let{open:n,onOpenChange:r,refs:i}=e,{listRef:o,activeIndex:a,onNavigate:u=()=>{},enabled:s=!0,selectedIndex:l=null,allowEscape:d=!1,loop:f=!1,nested:p=!1,rtl:A=!1,virtual:h=!1,focusItemOnOpen:m="auto",focusItemOnHover:g=!0,openOnArrowKeyDown:y=!0,disabledIndices:v,orientation:x="vertical",cols:b=1}=void 0===t?{listRef:{current:[]},activeIndex:null,onNavigate(){}}:t,C=eut(),S=eun(),w=euf(n),I=euu(u),_=euu(euf(u)),T=c.useRef(m),O=c.useRef(l??-1),R=c.useRef(null),k=function(e){let t=(0,c.useRef)(e);return ea6(()=>{t.current=e}),t}(v),E=c.useRef(!1),M=c.useRef(-1),[F,j]=c.useState(),U=c.useCallback((e,t)=>{M.current=requestAnimationFrame(()=>{var n,r;h?j(null==(n=e.current[t.current])?void 0:n.id):null==(r=e.current[t.current])||r.focus({preventScroll:!0})})},[h]);function K(e){var t,a,u,s;if(E.current=!0,p&&(t=e.key,euS(x,A?t===euv:t===euy,t===eum))){eud(e),r(!1),(s=i.domReference.current)&&s instanceof eui(s).HTMLElement&&i.domReference.current.focus();return}let l=O.current,c=eu_(o,v),m=euT(o,v);if("Home"===e.key&&(O.current=c,I(O.current)),"End"===e.key&&(O.current=m,I(O.current)),b>1){let g=O.current;if(e.key===eum){if(eud(e),-1===g)O.current=m;else if(O.current=euC(o,{startingIndex:g,amount:b,decrement:!0,disabledIndices:v}),f&&(g-b<c||O.current<0)){let y=g%b,C=m%b,S=m-(C-y);C===y?O.current=m:O.current=C>y?S:S-b}eub(o,O.current)&&(O.current=g),I(O.current)}if(e.key===eug&&(eud(e),-1===g?O.current=c:(O.current=euC(o,{startingIndex:g,amount:b,disabledIndices:v}),f&&g+b>m&&(O.current=euC(o,{startingIndex:g%b-b,amount:b,disabledIndices:v}))),eub(o,O.current)&&(O.current=g),I(O.current)),"both"===x){let w=Math.floor(g/b);e.key===euv&&(eud(e),g%b!=b-1?(O.current=euC(o,{startingIndex:g,disabledIndices:v}),f&&eux(O.current,b,w)&&(O.current=euC(o,{startingIndex:g-g%b-1,disabledIndices:v}))):f&&(O.current=euC(o,{startingIndex:g-g%b-1,disabledIndices:v})),eux(O.current,b,w)&&(O.current=g)),e.key===euy&&(eud(e),g%b!=0?(O.current=euC(o,{startingIndex:g,disabledIndices:v,decrement:!0}),f&&eux(O.current,b,w)&&(O.current=euC(o,{startingIndex:g+(b-g%b),decrement:!0,disabledIndices:v}))):f&&(O.current=euC(o,{startingIndex:g+(b-g%b),decrement:!0,disabledIndices:v})),eux(O.current,b,w)&&(O.current=g)),eub(o,O.current)&&(f&&Math.floor(m/b)===w?O.current=e.key===euy?m:euC(o,{startingIndex:g-g%b-1,disabledIndices:v}):O.current=g),I(O.current);return}}if(euw(e.key,x)){if(eud(e),n&&!h&&euc(e.currentTarget.ownerDocument)===e.currentTarget){O.current=euI(e.key,x,A)?c:m,I(O.current);return}euI(e.key,x,A)?f?O.current=l>=m?d&&l!==o.current.length?-1:c:euC(o,{startingIndex:l,disabledIndices:v}):O.current=Math.min(m,euC(o,{startingIndex:l,disabledIndices:v})):f?O.current=l<=c?d&&-1!==l?o.current.length:m:euC(o,{startingIndex:l,decrement:!0,disabledIndices:v}):O.current=Math.max(c,euC(o,{startingIndex:l,decrement:!0,disabledIndices:v})),eub(o,O.current)?I(null):I(O.current)}}return ea6(()=>{s&&(!w&&n&&T.current&&null!=l&&I(l),w&&!n&&(cancelAnimationFrame(M.current),O.current=-1,_(null)))},[n,w,l,o,U,s,I,_]),ea6(()=>{s&&n&&(null==a?null==l&&(w&&(O.current=-1,U(o,O)),!w&&T.current&&(null!=R.current||!0===T.current&&null==R.current)&&(O.current=null==R.current||euI(R.current,x,A)||p?eu_(o,k.current):euT(o,k.current),I(O.current),U(o,O))):eub(o,a)||(O.current=a,U(o,O)))},[n,w,a,l,p,o,I,U,s,d,x,A,h,k]),ea6(()=>{if(s&&!n&&w){var e,t;let r=null==S||null==(e=S.nodesRef.current.find(e=>e.id===C))||null==(t=e.context)?void 0:t.refs.floating.current;r&&!r.contains(euc(eur(r)))&&r.focus({preventScroll:!0})}},[s,n,w,S,C]),ea6(()=>{R.current=null}),s?{reference:{...h&&n&&null!=a&&{"aria-activedescendant":F},onKeyDown(e){if(E.current=!0,h&&n)return K(e);if((0===e.key.indexOf("Arrow")||"Enter"===e.key||" "===e.key||""===e.key)&&(R.current=e.key),p){var t,i,a;t=e.key,euS(x,A?t===euy:t===euv,t===eug)&&(eud(e),n?(O.current=eu_(o,v),I(O.current)):r(!0));return}euw(e.key,x)&&(null!=l&&(O.current=l),eud(e),!n&&y?r(!0):K(e),n&&I(O.current))}},floating:{"aria-orientation":"both"===x?void 0:x,...h&&null!=a&&{"aria-activedescendant":F},onKeyDown:K,onPointerMove(){E.current=!1}},item:{onFocus(e){let{currentTarget:t}=e,n=o.current.indexOf(t);-1!==n&&I(n)},onClick(e){let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...g&&{onMouseMove(e){let{currentTarget:t}=e;if(t){let n=o.current.indexOf(t);-1!==n&&I(n)}},onPointerLeave(){if(!E.current&&(O.current=-1,U(o,O),I(null),!h)){var e;null==(e=i.floating.current)||e.focus({preventScroll:!0})}}}}}:{}};function euR(e){var t,n;let{char:r,allowSpaces:i,allowedPrefixes:o,startOfLine:a,$position:u}=e,s=r.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),l=RegExp(`\\s${s}$`),c=a?"^":"",d=i?RegExp(`${c}${s}.*?(?=\\s${s}|$)`,"gm"):RegExp(`${c}(?:^)?${s}[^\\s${s}]*`,"gm"),f=(null===(t=u.nodeBefore)||void 0===t?void 0:t.isText)&&u.nodeBefore.text;if(!f)return null;let p=u.pos-f.length,A=Array.from(f.matchAll(d)).pop();if(!A||void 0===A.input||void 0===A.index)return null;let h=A.input.slice(Math.max(0,A.index-1),A.index),m=RegExp(`^[${null==o?void 0:o.join("")}\0]?$`).test(h);if(null!==o&&!m)return null;let g=p+A.index,y=g+A[0].length;return i&&l.test(f.slice(y-1,y+1))&&(A[0]+=" ",y+=1),g<u.pos&&y>=u.pos?{range:{from:g,to:y},query:A[0].slice(r.length),text:A[0]}:null}let euk=new Xe("suggestion"),euE=erp.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",etj(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),euM={heading1:"heading1",heading2:"heading2",heading3:"heading3",heading4:"heading4",heading5:"heading5",heading6:"heading6",paragraph:"paragraph",preformatted:"preformatted",strong:"strong",em:"em",listItem:"list-item",oListItem:"o-list-item",list:"group-list-item",oList:"group-o-list-item",image:"image",embed:"embed",hyperlink:"hyperlink",label:"label",span:"span"},euF=()=>(++euF.i).toString();euF.i=0;let euj=e=>{let t=euL(e),n=[];for(let r=0;r<t.length;r++)n.push(euB(t[r]));return{key:euF(),children:n}},euU=(e,t=[])=>({key:euF(),type:e.type,text:"text"in e?e.text:void 0,node:e,children:t}),euK=e=>euU({type:euM.span,text:e,spans:[]}),euL=e=>{let t=e.slice(0);for(let n=0;n<t.length;n++){let r=t[n];if(r.type===euM.listItem||r.type===euM.oListItem){let i=[r];for(;t[n+1]&&t[n+1].type===r.type;)i.push(t[n+1]),t.splice(n,1);r.type===euM.listItem?t[n]={type:euM.list,items:i}:t[n]={type:euM.oList,items:i}}}return t},euB=e=>{if("text"in e)return euU(e,euP(e.spans,e));if("items"in e){let t=[];for(let n=0;n<e.items.length;n++)t.push(euB(e.items[n]));return euU(e,t)}return euU(e)},euP=(e,t,n)=>{if(!e.length)return[euK(t.text)];let r=e.slice(0);r.sort((e,t)=>e.start-t.start||t.end-e.end);let i=[];for(let o=0;o<r.length;o++){let a=r[o],u=n&&n.start||0,s=a.start-u,l=a.end-u,c=t.text.slice(s,l),d=[];for(let f=o;f<r.length;f++){let p=r[f];p!==a&&p.start>=a.start&&p.end<=a.end&&(d.push(p),r.splice(f,1),f--)}0===o&&s>0&&i.push(euK(t.text.slice(0,s)));let A={...a,text:c};i.push(euU(A,euP(d,{...t,text:c},a))),l<t.text.length&&i.push(euK(t.text.slice(l,r[o+1]?r[o+1].start-u:void 0)))}return i},euW=(e,t)=>euD(euj(e).children,t),euD=(e,t)=>{let n=[];for(let r=0;r<e.length;r++){let i=e[r],o=t(i.type,i.node,i.text,euD(i.children,t),i.key);null!=o&&n.push(o)}return n},euN=erp.create({name:"text",group:"inline"});function euq(e){return e.sort((e,t)=>e.start-t.start)}let euQ={fromPrismic:e=>t=>{switch(t.type){case"hyperlink":return esM.converter.fromPrismic(e)(t);case"em":return esO.converter.fromPrismic(e)(t);case"strong":return eoZ.converter.fromPrismic(e)(t);case"label":return esk.converter.fromPrismic(e)(t);case"list-item":return}},toPrismic(e,t,n){let r=esN.find(t=>e.type.name===t.name);if(!r)throw Error(`Invalid mark extension '${e.type.name}'.`);switch(r.richTextNodeTypes){case"hyperlink":return{type:"hyperlink",start:t,end:n,data:esM.converter.toPrismic(e)};case"strong":return{type:"strong",start:t,end:n};case"em":return{type:"em",start:t,end:n};case"paragraph":return{type:"label",start:t,end:n,data:esk.converter.toPrismic(e)}}}},euV=euN.extend({name:"text"}),euz={name:euV.name,component:euV,converter:{fromPrismic:e=>function(t,n,r=!1){let i={type:t,text:n.content.text,spans:n.content.spans||[]};return euW([i],function(e,t=!1){return(n,r,i,o)=>{var a,u;if("span"===n&&i&&i.length)return t?[e.text(i)]:ean.splitTextToNodes(e,i)(t=>e.text(t));let s=euQ.fromPrismic(e)(r);return s?(a=s,u=o,u.flat().map(e=>{let t=[...e.marks,a].sort((e,t)=>e.type.name.localeCompare(t.type.name));return e.mark(t)})):o.flat()}}(e,r)).flatMap(e=>e)},toPrismic(e,t,n){let r=eoz.children.reduce(e,(e,t)=>{let n=t.type.name===ean.name?ean.converter.toPrismic(t):t.textContent,r=n?e.text+n:e.text,i=e.text.length,o=r.length,a=t.marks.length?eoz.marks.map(t,e=>euQ.toPrismic(e,i,o)):void 0;return{...e,text:r,spans:a?[...e.spans,...a]:e.spans}},{text:"",spans:[]});return{type:t,content:{text:r.text,spans:[...function(e){var t;let n=e.reduce((e,t)=>{let n=(e[t.type]||[]).concat(t);return{...e,[t.type]:n}},{}),r=Object.entries(n).map(([e,t])=>euq(t).reduce((e,t)=>{if(!e.length)return[t];let n=e.length-1,r=e[n];return r?r.end<t.start?[...e,t]:r.end>=t.end?e:[...e.slice(0,n),{...r,end:t.end}]:e},[])).flat();return euq(r)}(r.spans)].sort((e,t)=>e.type.localeCompare(t.type))},...n}}}},euY=NW.RichTextNodeType.rtl,euH=etX.create({name:"textDirection",addOptions:()=>({supportedExtensionNames:[]}),addGlobalAttributes(){return[{types:this.options.supportedExtensionNames,attributes:{dir:{default:"ltr",parseHTML:e=>e.getAttribute("dir"),renderHTML:e=>({dir:euJ(e.dir)})}}}]},addCommands(){return{setDirection:e=>({commands:t})=>{switch(e){case"ltr":return t.setLeftToRight();case"rtl":return t.setRightToLeft()}},toggleDirection:e=>({commands:t})=>t.setDirection("rtl"===e?"ltr":"rtl"),setRightToLeft:()=>({commands:e})=>this.options.supportedExtensionNames.every(t=>e.updateAttributes(t,{dir:"rtl"})),setLeftToRight:()=>({commands:e})=>this.options.supportedExtensionNames.every(t=>e.resetAttributes(t,"dir"))}},addKeyboardShortcuts(){return{"Mod-Shift-r":()=>this.editor.commands.setRightToLeft(),"Mod-Shift-l":()=>this.editor.commands.setLeftToRight()}}}),euZ={parseNodeAttrsDirection:e=>euJ(e.dir),fromPrismic:e=>({dir:euJ(e.direction)}),toPrismic(e){return{direction:this.parseNodeAttrsDirection(e.attrs)}}};function euJ(e){return"rtl"===e?"rtl":"ltr"}let euG=euE.extend({name:"paragraph",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",etj(this.options.HTMLAttributes,e),0]}}),eu$=new eoW([NW.RichTextNodeType.paragraph],euG.name,euG,{fromPrismic:e=>function(t){var n;let r=euz.converter.fromPrismic(e)(euG.name,t);return null==(n=e.nodes[euG.name])?void 0:n.create(euZ.fromPrismic(t),r)},toPrismic:e=>euz.converter.toPrismic(e,NW.RichTextNodeType.paragraph,euZ.toPrismic(e))},"Type '/' for commands"),euX=eu$,eu0=["ArrowDown","ArrowUp","End","Home"],eu1=["Enter"],eu2=["Escape",...eu0,...eu1],eu6=etX.create({name:"slash-commands",addOptions:()=>({nodeTypes:[]}),addProseMirrorPlugins(){let e=esZ(esQ,this.options.nodeTypes);return e.length>1?[function({pluginKey:e=euk,editor:t,char:n="@",allowSpaces:r=!1,allowedPrefixes:i=[" "],startOfLine:o=!1,decorationTag:a="span",decorationClass:u="suggestion",command:s=()=>null,items:l=()=>[],render:c=()=>({}),allow:d=()=>!0,findSuggestionMatch:f=euR}){let p,A=null==c?void 0:c(),h=new $4({key:e,view(){return{update:async(e,n)=>{var r,i,o,a,u,c,d;let f=null===(r=this.key)||void 0===r?void 0:r.getState(n),h=null===(i=this.key)||void 0===i?void 0:i.getState(e.state),m=f.active&&h.active&&f.range.from!==h.range.from,g=!f.active&&h.active,y=f.active&&!h.active,v=!g&&!y&&f.query!==h.query,x=g||m,b=v&&!m,C=y||m;if(!x&&!b&&!C)return;let S=C&&!x?f:h,w=e.dom.querySelector(`[data-decoration-id="${S.decorationId}"]`);p={editor:t,range:S.range,query:S.query,text:S.text,items:[],command:e=>s({editor:t,range:S.range,props:e}),decorationNode:w,clientRect:w?()=>{var n;let{decorationId:r}=null===(n=this.key)||void 0===n?void 0:n.getState(t.state),i=e.dom.querySelector(`[data-decoration-id="${r}"]`);return(null==i?void 0:i.getBoundingClientRect())||null}:null},x&&(null===(o=null==A?void 0:A.onBeforeStart)||void 0===o||o.call(A,p)),b&&(null===(a=null==A?void 0:A.onBeforeUpdate)||void 0===a||a.call(A,p)),(b||x)&&(p.items=await l({editor:t,query:S.query})),C&&(null===(u=null==A?void 0:A.onExit)||void 0===u||u.call(A,p)),b&&(null===(c=null==A?void 0:A.onUpdate)||void 0===c||c.call(A,p)),x&&(null===(d=null==A?void 0:A.onStart)||void 0===d||d.call(A,p))},destroy(){var e;p&&(null===(e=null==A?void 0:A.onExit)||void 0===e||e.call(A,p))}}},state:{init:()=>({active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}),apply(e,a,u,s){let{isEditable:l}=t,{composing:c}=t.view,{selection:p}=e,{empty:A,from:h}=p,m={...a};if(m.composing=c,l&&(A||t.view.composing)){(h<a.range.from||h>a.range.to)&&!c&&!a.composing&&(m.active=!1);let g=f({char:n,allowSpaces:r,allowedPrefixes:i,startOfLine:o,$position:p.$from}),y=`id_${Math.floor(4294967295*Math.random())}`;g&&d({editor:t,state:s,range:g.range})?(m.active=!0,m.decorationId=a.decorationId?a.decorationId:y,m.range=g.range,m.query=g.query,m.text=g.text):m.active=!1}else m.active=!1;return m.active||(m.decorationId=null,m.range={from:0,to:0},m.query=null,m.text=null),m}},props:{handleKeyDown(e,t){var n;let{active:r,range:i}=h.getState(e.state);return r&&(null===(n=null==A?void 0:A.onKeyDown)||void 0===n?void 0:n.call(A,{view:e,event:t,range:i}))||!1},decorations(e){let{active:t,range:n,decorationId:r}=h.getState(e);return t?eeC.create(e.doc,[eev.inline(n.from,n.to,{nodeName:a,class:u,"data-decoration-id":r})]):null}}});return h}({allowSpaces:!0,char:"/",editor:this.editor,startOfLine:!0,allow({state:e}){let t=e.selection.$from;return t.parent.type.name===euX.name&&1===t.depth},command({editor:e,props:t,range:n}){t.runCommands(e,{deleteRange:n})},items({query:t}){let n=t.toLocaleLowerCase().trim();return e.filter(e=>{var t,r;return(null==(t=e.shortText)?void 0:t.toLocaleLowerCase().includes(n))||(null==(r=e.text)?void 0:r.toLocaleLowerCase().includes(n))})},render(){let e;return{onStart(t){e=new eoO(eu5,{editor:t.editor,props:t}),document.body.appendChild(e.element)},onUpdate(t){null==e||e.updateProps(t)},onKeyDown({event:t}){var n;return!!(eu2.includes(t.key)&&null!=(n=null==e?void 0:e.ref)&&n.handleKeyDown(t))},onExit(){null==e||e.destroy(),null==e||e.element.remove()}}}})]:[]}}),eu5=(0,c.forwardRef)(function(e,t){var n,r,i,o,a;let{command:u,decorationNode:s,editor:l,items:d}=e,[A,h]=(0,c.useState)(!0),m=parseFloat(f.TV.space[0]),{context:g,floating:y,reference:v,x:x,y:b}=function(e){let{open:t=!1,onOpenChange:n,whileElementsMounted:r,placement:i,middleware:o,strategy:a,nodeId:u}=void 0===e?{}:e,[s,l]=c.useState(null),d=eun(),f=c.useRef(null),p=c.useRef({}),A=c.useState(()=>(function(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){e.set(t,(e.get(t)||[]).filter(e=>e!==n))}}})())[0],h=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,whileElementsMounted:o,open:a}=e,[u,s]=c.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[l,d]=c.useState(r);ea1(l,r)||d(r);let f=c.useRef(null),p=c.useRef(null),A=c.useRef(u),h=ea2(o),m=ea2(i),[g,y]=c.useState(null),[v,x]=c.useState(null),b=c.useCallback(e=>{f.current!==e&&(f.current=e,y(e))},[]),S=c.useCallback(e=>{p.current!==e&&(p.current=e,x(e))},[]),w=c.useCallback(()=>{if(!f.current||!p.current)return;let e={placement:t,strategy:n,middleware:l};m.current&&(e.platform=m.current),eaX(f.current,p.current,e).then(e=>{let t={...e,isPositioned:!0};I.current&&!ea1(A.current,t)&&(A.current=t,C.flushSync(()=>{s(t)}))})},[l,t,n,m]);ea0(()=>{!1===a&&A.current.isPositioned&&(A.current.isPositioned=!1,s(e=>({...e,isPositioned:!1})))},[a]);let I=c.useRef(!1);ea0(()=>(I.current=!0,()=>{I.current=!1}),[]),ea0(()=>{if(g&&v){if(h.current)return h.current(g,v,w);w()}},[g,v,w,h]);let _=c.useMemo(()=>({reference:f,floating:p,setReference:b,setFloating:S}),[b,S]),T=c.useMemo(()=>({reference:g,floating:v}),[g,v]);return c.useMemo(()=>({...u,update:w,refs:_,elements:T,reference:b,floating:S}),[u,w,_,T,b,S])}({placement:i,middleware:o,strategy:a,whileElementsMounted:r}),m=euu(n),g=c.useMemo(()=>({...h.refs,domReference:f}),[h.refs]),y=c.useMemo(()=>({...h,refs:g,dataRef:p,nodeId:u,events:A,open:t,onOpenChange:m,_:{domReference:s}}),[h,u,A,t,m,g,s]);ea6(()=>{let e=null==d?void 0:d.nodesRef.current.find(e=>e.id===u);e&&(e.context=y)});let{reference:v}=h,x=c.useCallback(e=>{(euo(e)||null===e)&&(y.refs.domReference.current=e,l(e)),v(e)},[v,y.refs]);return c.useMemo(()=>({...h,context:y,refs:g,reference:x}),[h,g,y,x])}({middleware:[(void 0===(n=m)&&(n=0),{name:"offset",options:n,async fn(e){let{x:t,y:r}=e,i=await async function(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=eau(n),u=eao(n),s="x"===eas(n),l=["left","top"].includes(a)?-1:1,c=o&&s?-1:1,d="function"==typeof t?t(e):t,{mainAxis:f,crossAxis:p,alignmentAxis:A}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return u&&"number"==typeof A&&(p="end"===u?-1*A:A),s?{x:p*c,y:f*l}:{x:f*l,y:p*c}}(e,n);return{x:t+i.x,y:r+i.y,data:i}}}),(void 0===r&&(r={}),{name:"flip",options:r,async fn(e){var t,n,i,o;let{placement:a,middlewareData:u,rects:s,initialPlacement:l,platform:c,elements:d}=e,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:A,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...y}=r,v=eau(a),x=eau(l)===l,b=await (null==c.isRTL?void 0:c.isRTL(d.floating)),C=A||(x||!g?[eag(l)]:function(e){let t=eag(e);return[eav(e),t,eav(t)]}(l));A||"none"===m||C.push(...function(e,t,n,r){let i=eao(e),o=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(eau(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(eav)))),o}(l,g,m,b));let S=await eaf(e,y),w=[],I=(null==(t=u.flip)?void 0:t.overflows)||[];if(f&&w.push(S[v]),p){let{main:_,cross:T}=function(e,t,n){void 0===n&&(n=!1);let r=eao(e),i=eas(e),o=eaa(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=eag(a)),{main:a,cross:eag(a)}}(a,s,b);w.push(S[_],S[T])}if(I=[...I,{placement:a,overflows:w}],!w.every(e=>e<=0)){let O=((null==(n=u.flip)?void 0:n.index)||0)+1,R=[l,...C][O];if(R)return{data:{index:O,overflows:I},reset:{placement:R}};let k=null==(i=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!k)switch(h){case"bestFit":{let E=null==(o=I.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];E&&(k=E);break}case"initialPlacement":k=l}if(a!==k)return{reset:{placement:k}}}return{}}}),(o={limiter:(void 0===i&&(i={}),{options:i,fn(e){let{x:t,y:n,placement:r,rects:o,middlewareData:a}=e,{offset:u=0,mainAxis:s=!0,crossAxis:l=!0}=i,c={x:t,y:n},d=eas(r),f=eax(d),p=c[d],A=c[f],h="function"==typeof u?u(e):u,m="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){let g="y"===d?"height":"width",y=o.reference[d]-o.floating[g]+m.mainAxis,v=o.reference[d]+o.reference[g]-m.mainAxis;p<y?p=y:p>v&&(p=v)}if(l){var x,b;let C="y"===d?"width":"height",S=["top","left"].includes(eau(r)),w=o.reference[f]-o.floating[C]+(S&&(null==(x=a.offset)?void 0:x[f])||0)+(S?0:m.crossAxis),I=o.reference[f]+o.reference[C]+(S?0:(null==(b=a.offset)?void 0:b[f])||0)-(S?m.crossAxis:0);A<w?A=w:A>I&&(A=I)}return{[d]:p,[f]:A}}})},{name:"shift",options:o,async fn(e){let{x:t,y:n,placement:r}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:u={fn(e){let{x:t,y:n}=e;return{x:t,y:n}}},...s}=o,l={x:t,y:n},c=await eaf(e,s),d=eas(eau(r)),f=eax(d),p=l[d],A=l[f];i&&(p=eah(p+c["y"===d?"top":"left"],p,p-c["y"===d?"bottom":"right"])),a&&(A=eah(A+c["y"===f?"top":"left"],A,A-c["y"===f?"bottom":"right"]));let h=u.fn({...e,[d]:p,[f]:A});return{...h,data:{x:h.x-t,y:h.y-n}}}})],onOpenChange:h,open:A,placement:"top-start",strategy:"fixed",whileElementsMounted:ea$});(0,c.useLayoutEffect)(()=>{v(s)},[v,s]),(0,c.useEffect)(()=>{let e,t=()=>{e=window.setTimeout(()=>{h(!0)})},n=()=>{h(!1)};return l.on("focus",t).on("blur",n),()=>{l.off("focus",t).off("blur",n),clearTimeout(e)}},[l]);let[S,w]=(0,c.useState)(0),I=(0,c.useRef)([]);(0,p.pQ)(d,()=>{w(0),I.current=[]});let{getFloatingProps:_,getItemProps:T,getReferenceProps:O}=(a=[euh(g,{outsidePointerDown:!1}),euO(g,{activeIndex:S,listRef:I,onNavigate(e){w(t=>e??t)},openOnArrowKeyDown:!1,virtual:!0}),eup(g,{role:"menu"})],{getReferenceProps:e=>eus(e,a,"reference"),getFloatingProps:e=>eus(e,a,"floating"),getItemProps:e=>eus(e,a,"item")}),R=O().onKeyDown;return(0,c.useImperativeHandle)(t,()=>({handleKeyDown(e){if(!A)return!1;if(eu0.includes(e.key)&&R(e),eu1.includes(e.key)){let t=d[S];void 0!==t&&u(t)}return!0}}),[S,u,d,R,A]),A?zE.jsx(f.xu,{..._(),minWidth:256,backgroundColor:"grey1",border:!0,borderStyle:"solid",borderRadius:6,flexDirection:"column",ref:y,top:parseFloat(f.TV.space[0]),left:parseFloat(f.TV.space[0]),position:"fixed",transform:null!==x&&null!==b?`translate3d(${Math.round(x)}px, ${Math.round(b)}px, 0)`:"translate3d(0, -200%, 0)",overflow:"hidden",children:zE.jsxs("div",{style:{boxShadow:"0px 2px 10px 0px hsla(0, 0%, 0%, 0.1)"},children:[d.map((e,t)=>{let n=T({onClick(){u(e)},onPointerDown(e){e.preventDefault()}});return(0,c.createElement)(eu3,{...n,key:e.nodeType,ref(e){I.current[t]=e},active:t===S,isFirstItem:0===t,isLastItem:t===d.length-1,shortcut:`/${e.shortText??""}`},e.text)}),0===d.length&&zE.jsx(eu3,{...T({onPointerDown(e){e.preventDefault()}}),disabled:!0,ref(e){I.current[0]=e},children:"No results"})]})}):null}),eu3=(0,c.forwardRef)(function(e,t){let{children:n,disabled:r=!1,shortcut:i,active:o=!1,isFirstItem:a=!1,isLastItem:u=!1,...s}=e;return zE.jsx("div",{...s,role:"button",style:{cursor:r?"default":"pointer"},ref:t,children:zE.jsxs(f.xu,{alignItems:"center",height:32,flexDirection:"row",gap:8,padding:8,backgroundColor:o?"grey4":"inherit",justifyContent:"space-between",opacity:r?.5:1,children:[zE.jsx(f.xv,{color:"grey12",component:"span",children:n}),i&&zE.jsx(f.xv,{color:"inherit",component:"span",variant:"small",children:i})]})})}),eu9=eoX.extend({name:"bulletList",parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",etj(this.options.HTMLAttributes,e),0]}}).configure({itemTypeName:"listItem"}),eu4=new eoq([NW.RichTextNodeType.list],eu9.name,eu9,{fromPrismic:e=>function(t){var n;let r=eo6.converter.fromPrismic(e)(t);if(r)return null==(n=e.nodes[eu9.name])?void 0:n.create(euZ.fromPrismic(t),r)},toPrismic:e=>eoz.children.map(e,e=>eo6.converter.toPrismic(e,NW.RichTextNodeType.list).filter(h.$)).flat()}),eu7=eu4,eu8=/^```([a-z]+)?[\s\n]$/,ese=/^~~~([a-z]+)?[\s\n]$/,est=erp.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:e=>{var t;let{languageClassPrefix:n}=this.options,r=[...(null===(t=e.firstElementChild)||void 0===t?void 0:t.classList)||[]].filter(e=>e.startsWith(n)).map(e=>e.replace(n,""))[0];return r||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",etj(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,n=1===t.pos;return!!e&&t.parent.type.name===this.name&&(!!n||!t.parent.textContent.length)&&this.editor.commands.clearNodes()},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;let o=r.parentOffset===r.parent.nodeSize-2,a=r.parent.textContent.endsWith(`
|
|
20
20
|
|
|
21
21
|
`);return!!o&&!!a&&e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:o}=n;if(!o||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let a=i.after();return!(void 0===a||r.nodeAt(a))&&e.commands.exitCode()}}},addInputRules(){return[erc({find:eu8,type:this.type,getAttributes:e=>({language:e[1]})}),erc({find:ese,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new $4({key:new Xe("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,o=null==i?void 0:i.mode;if(!n||!o)return!1;let{tr:a}=e.state;return a.replaceSelectionWith(this.type.create({language:o})),a.setSelection($G.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.insertText(n.replace(/\r\n?/g,`
|
|
22
|
-
`)),a.setMeta("paste",!0),e.dispatch(a),!0}}})]}}),esn=est.extend({name:"preformatted",addAttributes(){return{language:{default:null,parseHTML:e=>{var t;let{languageClassPrefix:n}=this.options,r=[...(null==(t=e.firstElementChild)?void 0:t.classList)||[]].filter(e=>e.startsWith(n)).map(e=>e.replace(n,""))[0];return r||null},renderHTML:e=>e.language?{class:this.options.languageClassPrefix+e.language}:null}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({HTMLAttributes:e}){return["pre",etj(this.options.HTMLAttributes),["code",e,0]]}}).configure({exitOnTripleEnter:!1}),esr=new eoW([NW.RichTextNodeType.preformatted],esn.name,esn,{fromPrismic:e=>function(t){var n;let r=euz.converter.fromPrismic(e)(esn.name,t,!0);return null==(n=e.nodes[esn.name])?void 0:n.create(euZ.fromPrismic(t),r)},toPrismic:e=>euz.converter.toPrismic(e,NW.RichTextNodeType.preformatted,euZ.toPrismic(e))},"",!0);function esi(e){let{editor:t,getPos:n,node:r}=e,[i,o]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{function e(){let{from:e,to:i}=t.state.selection,a=n(),u=n()+r.nodeSize;o(e<=a&&i>=u)}function i(){o(!1)}return t.on("blur",i),t.on("selectionUpdate",e),()=>{t.off("blur",i),t.off("selectionUpdate",e)}},[t,n,r.nodeSize]),{selected:i}}function eso(e){let t=(0,c.useRef)(null),n=(0,c.useRef)(null),{onKeyDown:r,url:i,urlChanged:o,onContentChange:a,debouncedUrl:u,content:s}=function(e,t,n){let{node:r}=e,i=r.attrs.content,o=(0,p.R9)(e.updateAttributes),a=(0,p.$P)({initialState:(null==i?void 0:i.embed_url)??"",startTransition:c.startTransition});function u(e){o({content:e})}let{onKeyDown:s}=function(e,t,n,r){let{editor:i,getPos:o,node:a}=e,[u,s]=(0,c.useState)(!0);return(0,c.useEffect)(()=>{u&&e.editor.isFocused&&(0,f.rI)(()=>{var e;return null==(e=n.current)?void 0:e.focus()})},[n,u,e.editor.isFocused]),{containerRef:r,inputRef:n,onKeyDown:function(e){let n=o(),r=o()+a.nodeSize;"Enter"===e.code&&(s(!1),i.chain().insertContentAt(r,{type:"paragraph"}).focus(r+1).run()),"Backspace"===e.code&&""===t&&i.chain().deleteRange({from:n,to:r}).focus(r+1).run(),"ArrowUp"===e.code&&(s(!1),i.chain().focus(n-1).run()),"ArrowDown"===e.code&&(s(!1),i.chain().focus(r+1).run())}}}(e,a.value,t,n);return{inputRef:t,containerRef:n,onKeyDown:s,url:a.value,urlChanged:function(e){a.set(e),(0,l.ju)(e)||u(void 0)},onContentChange:u,debouncedUrl:a.debouncedValue,content:e.node.attrs.content}}(e,t,n),{selected:d}=esi(e);return zE.jsx(eoT,{className:"custom-embed",children:zE.jsxs("div",{contentEditable:"false",suppressContentEditableWarning:!0,children:[zE.jsxs(f.xu,{flexGrow:1,alignItems:"center",children:[zE.jsx(f.I5,{size:"small",name:"cloud",color:"grey11"}),zE.jsx(f.xu,{flexGrow:1,height:40,ref:n,children:zE.jsx(Jn,{id:"id",ref:t,value:i,variant:(0,l.ju)(i)?"link":"normal",placeholder:"Paste your link here",onValueChange:o,onKeyDown:r})})]}),(0,l.ju)(i)&&zE.jsx(Ja,{selected:d,debouncedUrl:u,onContentChange:a,content:s})]})})}let esa=erp.create({name:"embed",group:"block",atom:!0,content:"block*",marks:"",addAttributes:()=>({content:{default:void 0}}),addCommands(){return{setEmbed:()=>({tr:e,dispatch:t})=>{let n=this.type.create();return t&&e.replaceSelectionWith(n),!0}}},parseHTML:()=>[{tag:"embed"}],renderHTML:()=>["embed"],addNodeView:()=>eok(eso)}),esu=new class{constructor(e,t,n,r){_(this,"extType","node"),_(this,"nodeType","embed"),this.richTextNodeTypes=e,this.name=t,this.component=n,this.converter=r}}([NW.RichTextNodeType.embed],esa.name,esa,{fromPrismic:e=>function(t){var n;return null==(n=e.nodes[esa.name])?void 0:n.create({content:t.data})},toPrismic:e=>void 0===e.attrs.content?{type:"embed",data:{type:"embed",embed_url:"",__TYPE__:"EmbedContent",all:[]}}:{type:"embed",data:{...e.attrs.content}}}),ess=erp.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,etj(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>erc({find:RegExp(`^(#{1,${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),esl="heading";function esc(e){switch(e){case 1:return NW.RichTextNodeType.heading1;case 2:return NW.RichTextNodeType.heading2;case 3:return NW.RichTextNodeType.heading3;case 4:return NW.RichTextNodeType.heading4;case 5:return NW.RichTextNodeType.heading5;case 6:return NW.RichTextNodeType.heading6}}function esd(e){return{fullName:esc(e),level:e}}let esf=[1,2,3,4,5,6];function esp(e,t=esf){let n=RegExp(`^heading([${t.join(",")}]){1}$`),r=e.match(n);if(!r||!r[1])return;let i=parseInt(r[1]);return{fullName:esc(i),level:i}}function esA(e,t){let n=e.level;if(t.includes(n))return{fullName:esc(n),level:n}}let esh=e=>{let t=e[0]??1;return{fromPrismic:n=>function(r){var i;let o=euz.converter.fromPrismic(n)(esl,r),a=esp(r.type,e)||esd(t);return null==(i=n.nodes[esl])?void 0:i.create({level:a.level,...euZ.fromPrismic(r)},o)},toPrismic(n){let{fullName:r}=esA(n.attrs,e)||esd(t);return euz.converter.toPrismic(n,r,euZ.toPrismic(n))}}},esm={name:esl,build(e){var t,n;let r=e?e.size?Array.from(e.values()).reduce((e,t)=>{let n=esp(t);return n?[...e,n.level]:e},[]).sort((e,t)=>e-t):[]:esf;if(!r)return;let i=r.map(e=>esc(e));return new eoN(i,ess.extend({name:"heading"}).configure({levels:r}),r,esh(r),e=>{let t=esA(e,r);return t&&`Heading ${t.level}`})}};function esg(e){let{node:t}=e,n=t.attrs.content,{selected:r}=esi(e),i={width:void 0,height:void 0,name:ZR},{onMediaSelected:o,onCropperDialogClose:a,isUpdating:u,updateContent:s,onClear:l}=function(e){let{content:t,thumbnail:n,imageViewProps:{getPos:r,updateAttributes:i,editor:o,node:a}}=e,[u,s]=(0,c.useTransition)();function l(e){s(()=>i({content:e}))}return{onMediaSelected:function(e){let n=ZF(e),i=r()+a.nodeSize;l({__TYPE__:"ImageContent",...t,...n}),o.chain().focus(i+1).run()},onCropperDialogClose:function({croppedImages:e}){if(!t)return;let r=e[n.name];if(!r)return;let i=JO({content:t,thumbnail:n.name,croppedImage:r});i!==t&&l(i)},isUpdating:u,updateContent:l,onClear:function(){let e=r(),t=r()+a.nodeSize;o.chain().deleteRange({from:e,to:t}).focus(t).run()}}}({content:n,thumbnail:i,imageViewProps:e}),d=(null==n?void 0:n.width)===0&&(null==n?void 0:n.height)===0,p=n&&!d?[`${n.width}x${n.height}px`]:[],A=(null==n?void 0:n.alt)??"",h={thumbnail:i,contentView:n,labels:Zk(i,n,n)};return zE.jsx(eoT,{className:"custom-image",children:zE.jsx("div",{contentEditable:"false",suppressContentEditableWarning:!0,children:zE.jsx(JM,{content:n,selected:r,fieldLabel:"Feature image",imageLabel:p,initialImages:[h],readOnly:!1,onMediaSelected:o,onCropperDialogClose:a,onClear:l,children:zE.jsx(c.Suspense,{fallback:esy,children:null!=n&&n.url?zE.jsxs(f.aY,{children:[zE.jsx(f.hM,{children:zE.jsx(f.xu,{flexDirection:"column",alignItems:"center",position:"relative",height:400,children:zE.jsx(f.xu,{justifyContent:"center",flexGrow:1,maxHeight:"100%",maxWidth:"100%",children:zE.jsx(f.kg,{src:ZE(n.url),alt:A,sizing:"contain"})})})}),zE.jsx(J_,{onValueChange(e){s({...n,alt:e})},altText:A,readOnly:!n,selected:r})]}):zE.jsx(JI,{isUpdating:u,readOnly:!1,onMediaSelected:o})})})})})}let esy=zE.jsx("div",{style:{height:468}}),esv=erp.create({name:"image",group:"block",atom:!0,addAttributes:()=>({content:{default:void 0}}),addCommands(){return{setImage:()=>e=>{let{dispatch:t,tr:n}=e,r=this.type.create();return t&&n.replaceSelectionWith(r),!0}}},parseHTML:()=>[{tag:"image"}],renderHTML:({HTMLAttributes:e})=>["image",etj(e)],addNodeView:()=>eok(esg)}),esx=new class{constructor(e,t,n,r){_(this,"extType","node"),_(this,"nodeType","image"),this.richTextNodeTypes=e,this.name=t,this.component=n,this.converter=r}}([NW.RichTextNodeType.image],esv.name,esv,{fromPrismic:e=>function(t){var n;return null==(n=e.nodes[esv.name])?void 0:n.create({content:t.data})},toPrismic(e){if(void 0!==e.attrs.content)return{type:"image",data:{...e.attrs.content}}}}),esb=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,esC=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,esS=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,esw=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,esI=erf.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:e}){return["em",etj(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[erl({find:esb,type:this.type}),erl({find:esS,type:this.type})]},addPasteRules(){return[erh({find:esC,type:this.type}),erh({find:esw,type:this.type})]}}),es_=esI.extend({name:"em"}),esT=new class{constructor(e,t,n){_(this,"extType",eoB.Mark),_(this,"richTextNodeTypes",NW.RichTextNodeType.em),this.name=e,this.component=t,this.converter=n}}(es_.name,es_,{fromPrismic:e=>function(){var t;return null==(t=e.marks[es_.name])?void 0:t.create()},toPrismic(){}}),esO=esT,esR=erf.create({name:"label",priority:1e3,keepOnSplit:!1,inclusive:!1,addOptions:()=>({htmlAttributes:{style:"background-color: hsl(251, 89%, 96%); border: 1px dashed rgba(68, 53, 146, 0.4); border-radius: 0px 2px 2px 2px"}}),addAttributes:()=>({label:{default:""}}),addCommands(){return{setLabel:e=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMark(this.name,e).run(),unsetLabel:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},renderHTML({HTMLAttributes:e}){return["span",etj(this.options.htmlAttributes,e),0]}}),esk=new class{constructor(e,t,n){_(this,"extType",eoB.Mark),_(this,"richTextNodeTypes",NW.RichTextNodeType.paragraph),this.name=e,this.component=t,this.converter=n}}(esR.name,esR,{fromPrismic:e=>function(t){var n;let r=t.data,i={type:esR.name,label:r};return null==(n=e.marks[esR.name])?void 0:n.create(i)},toPrismic:e=>e.attrs.label}),esE=erf.create({name:"hyperlink",priority:1e3,keepOnSplit:!1,inclusive:!1,addOptions:()=>({openOnClick:!1,linkOnPaste:!0,autolink:!0,protocols:[],htmlAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null,id:""},validate:void 0}),addAttributes:()=>({href:{default:""},id:{default:""},target:{default:"_blank"},rel:{default:"noopener noreferrer nofollow"},class:{default:null},media:{default:null}}),parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:e}){return["a",etj(this.options.htmlAttributes,e),0]},addCommands(){return{setWebLink:e=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMark(this.name,e).setMeta("preventAutolink",!0).run(),setDocumentLink:e=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMark(this.name,e).setMeta("preventAutolink",!0).run(),setMediaLink:e=>({chain:t})=>{let n=esF(Gg({media:e.media}).value);return t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMark(this.name,{media:n}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}}}),esM=new class{constructor(e,t,n){_(this,"extType",eoB.Mark),_(this,"richTextNodeTypes",NW.RichTextNodeType.hyperlink),this.name=e,this.component=t,this.converter=n}}(esE.name,esE,{fromPrismic:e=>function(t){var n,r,i,o;let a=t.data;if("DocumentLink"===a.__TYPE__){let u={type:esE.name,id:a.id};return null==(n=e.marks[esE.name])?void 0:n.create(u)}if("ImageLink"===a.__TYPE__){let s={type:esE.name,media:esF(a)};return null==(r=e.marks[esE.name])?void 0:r.create(s)}if("FileLink"===a.__TYPE__){let l={type:esE.name,media:esF(a)};return null==(i=e.marks[esE.name])?void 0:i.create(l)}if("ExternalLink"===a.__TYPE__){let c={type:esE.name,url:a.url,href:a.url,target:a.target};return null==(o=e.marks[esE.name])?void 0:o.create(c)}},toPrismic:e=>e.attrs.media?esj(e.attrs.media):e.attrs.id?{__TYPE__:"DocumentLink",id:e.attrs.id}:{__TYPE__:"ExternalLink",url:e.attrs.href,target:e.attrs.target}});function esF(e){return JSON.stringify(e)}function esj(e){return JSON.parse(e)}let esU=erp.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",etj(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),esK=erf.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:e=>!!e.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:e}){return["span",etj(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{let n=enz(e,this.type);return!!Object.entries(n).some(([,e])=>!!e)||t.unsetMark(this.name)}}}}),esL=/^(\d+)\.\s$/,esB=erp.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,...n}=e;return 1===t?["ol",etj(this.options.HTMLAttributes,n),0]:["ol",etj(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(esU.name,this.editor.getAttributes(esK.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=erd({find:esL,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=erd({find:esL,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(esK.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),esP=esB.extend({name:"orderedList",addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1}}),renderHTML({HTMLAttributes:e}){let{start:t,...n}=e;return 1===t?["ol",etj(this.options.HTMLAttributes,n),0]:["ol",etj(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}}}).configure({itemTypeName:"listItem"}),esW=new eoq([NW.RichTextNodeType.orderedList],esP.name,esP,{fromPrismic:e=>function(t){var n;let r=eo6.converter.fromPrismic(e)(t);if(r)return null==(n=e.nodes[esP.name])?void 0:n.create(euZ.fromPrismic(t),r)},toPrismic:e=>eoz.children.map(e,e=>eo6.converter.toPrismic(e,NW.RichTextNodeType.orderedList).filter(h.$)).flat()}),esD=esW,esN=[eoZ,esO,esM,esk];function esq(e){return[euX,eu7,esD,esm.build(e),esr,esu,esx,...esN].filter(h.$)}let esQ=[{nodeType:NW.RichTextNodeType.paragraph,icon:"textFields",isActive:e=>e.isActive(euX.name)&&!e.isActive(eu7.name)&&!e.isActive(esD.name),runCommands:esY((e,t)=>e.clearNodes().setDirection(esH(t))),shortText:"par",text:"Paragraph"},{nodeType:NW.RichTextNodeType.heading1,icon:"looks1",isActive:e=>e.isActive(esm.name,{level:1}),runCommands:esY((e,t)=>e.setHeading({level:1}).setDirection(esH(t))),shortText:"h1",text:"Heading 1"},{nodeType:NW.RichTextNodeType.heading2,icon:"looks2",isActive:e=>e.isActive(esm.name,{level:2}),runCommands:esY((e,t)=>e.setHeading({level:2}).setDirection(esH(t))),shortText:"h2",text:"Heading 2"},{nodeType:NW.RichTextNodeType.heading3,icon:"looks3",isActive:e=>e.isActive(esm.name,{level:3}),runCommands:esY((e,t)=>e.setHeading({level:3}).setDirection(esH(t))),shortText:"h3",text:"Heading 3"},{nodeType:NW.RichTextNodeType.heading4,icon:"looks4",isActive:e=>e.isActive(esm.name,{level:4}),runCommands:esY((e,t)=>e.setHeading({level:4}).setDirection(esH(t))),shortText:"h4",text:"Heading 4"},{nodeType:NW.RichTextNodeType.heading5,icon:"looks5",isActive:e=>e.isActive(esm.name,{level:5}),runCommands:esY((e,t)=>e.setHeading({level:5}).setDirection(esH(t))),shortText:"h5",text:"Heading 5"},{nodeType:NW.RichTextNodeType.heading6,icon:"looks6",isActive:e=>e.isActive(esm.name,{level:6}),runCommands:esY((e,t)=>e.setHeading({level:6}).setDirection(esH(t))),shortText:"h6",text:"Heading 6"},{nodeType:NW.RichTextNodeType.list,icon:"formatListBulleted",isActive:e=>e.isActive(eu7.name),runCommands:esY((e,t)=>e.toggleBulletList().setDirection(esH(t))),shortText:"bull",text:"Bulleted list"},{nodeType:NW.RichTextNodeType.orderedList,icon:"formatListNumbered",isActive:e=>e.isActive(esD.name),runCommands:esY((e,t)=>e.toggleOrderedList().setDirection(esH(t))),shortText:"num",text:"Numbered list"},{nodeType:NW.RichTextNodeType.preformatted,icon:"dataObject",isActive:e=>e.isActive(esr.name),runCommands:esY((e,t)=>e.setCodeBlock().setDirection(esH(t))),shortText:"code",text:"Code"},{nodeType:NW.RichTextNodeType.embed,icon:"cloud",isActive:e=>e.isActive(esu.name),runCommands:esY(e=>e.setEmbed()),shortText:"emb",text:"Embed"},{nodeType:NW.RichTextNodeType.image,icon:"image",isActive:e=>e.isActive(esx.name),runCommands:esY(e=>e.setImage()),shortText:"img",text:"Image"}],esV=[{nodeType:NW.RichTextNodeType.strong,icon:"formatBold",isActive:e=>e.isActive(eoZ.name),runCommands:esY(e=>e.toggleBold())},{nodeType:NW.RichTextNodeType.em,icon:"formatItalic",isActive:e=>e.isActive(esO.name),runCommands:esY(e=>e.toggleItalic())}],esz=[{nodeType:NW.RichTextNodeType.rtl,icon:"formatTextDirectionRToL",isActive:e=>e.isActive({dir:"rtl"}),runCommands:esY((e,t)=>e.toggleDirection(esH(t)))}];function esY(e){return(t,n={})=>{let r=!0===n.can?t.can().chain():t.chain().focus();return void 0!==n.deleteRange&&(r=r.deleteRange(n.deleteRange)),n.can?function(e,t,n){try{return n(t,e).run()}catch{return!1}}(t,r,e):e(r,t).run()}}function esH(e){let t=e.state.selection.$from.parent.attrs;return euZ.parseNodeAttrsDirection(t)}function esZ(e,t){return e.filter(e=>t.includes(e.nodeType))}function esJ(e){let{items:t,editor:n}=e;return 0===t.length?null:zE.jsxs(zE.Fragment,{children:[zE.jsx(f.Jf,{}),t.map(e=>zE.jsx(f.r8,{disabled:!e.runCommands(n,{can:!0}),onPressedChange(){e.runCommands(n)},pressed:e.isActive(n),startIcon:e.icon},e.nodeType))]})}function esG(e){let{labels:t,editor:n}=e,r=n.getAttributes("label").label;return zE.jsxs(zE.Fragment,{children:[zE.jsx(f.Jf,{}),zE.jsxs(f.h_,{children:[zE.jsx(f.$F,{disabled:0===t.length,children:zE.jsx(f.zx,{endIcon:"arrowDropDown",size:"small",color:"grey",children:es$(r??"Labels")})}),zE.jsx(f.AW,{align:"start",asPortal:!1,maxHeight:256,avoidCollisions:!1,children:t.map((e,t)=>{let i=r===e;return zE.jsx(f.Xi,{onSelect:()=>i?n.commands.unsetLabel():function(e,t){esY(e=>e.setLabel({label:t}))(e)}(n,e),endIcon:i&&zE.jsx(f.I5,{name:"check",size:"extraSmall"}),children:es$(e)},`${e}-${t}`)})})]})]})}function es$(e){return(0,x.tx)(e,20)}function esX(e){let{editor:t}=e,n=t.getAttributes("label");if(!n.label)return null;let r=n.label;return zE.jsx(f.xu,{backgroundColor:"purple9",padding:{block:2,inline:4},alignItems:"center",borderRadius:{topLeft:2,topRight:2,bottomRight:2},maxWidth:125,children:zE.jsx(f.xv,{color:"white",variant:"small",noWrap:!0,children:r})})}function es0(e){let{disabled:t,showWebLinkModal:n,showDocumentsLinkModal:r,showMediaLinkModal:i}=function(e){let{editor:t,setModal:n}=e;return{disabled:!esY(e=>e.setWebLink({href:""}))(t,{can:!0}),showWebLinkModal:function(){n("webLink")},showDocumentsLinkModal:function(){n("documentLink")},showMediaLinkModal:function(){n("mediaLink")}}}(e);return zE.jsxs(zE.Fragment,{children:[zE.jsx(f.Jf,{}),zE.jsxs(f.yM,{density:"compact",children:[zE.jsx(f.hA,{disabled:t,startIcon:"link",onClick:n},NW.RichTextNodeType.hyperlink),zE.jsxs(f.h_,{children:[zE.jsx(f.$F,{children:zE.jsx(f.hA,{startIcon:"arrowDropDown"})}),zE.jsxs(f.AW,{align:"end",asPortal:!1,children:[zE.jsx(f.Xi,{startIcon:zE.jsx(f.I5,{name:"public"}),onSelect:n,children:"Link to web page"}),zE.jsx(f.Xi,{startIcon:zE.jsx(f.I5,{name:"description"}),onSelect:r,children:"Link to document"}),zE.jsx(f.Xi,{startIcon:zE.jsx(f.I5,{name:"image"}),onSelect:i,children:"Link to media"})]})]})]})]})}function es1(e){let{docId:t,onEdit:n,onUnlink:r}=e,i=function(e){let t=zL();t.searchDocuments||zP("searchDocuments");let{coreApiBaseUrl:n,authStrategy:r}=t;return(0,m.QT)(Hj,[n,r,e])}(t),o=zL();if(!i)return null;let a=i.versions[0],u=zO({status:null==a?void 0:a.status,releaseId:(null==a?void 0:a.status)==="release"?a.release_id:void 0,documentId:i.id,versionId:null==a?void 0:a.version_id,baseUrl:o.baseUrl}),s=(null==a?void 0:a.preview_summary)??"",l=(null==a?void 0:a.custom_type_label)??"";return zE.jsx(f.oZ,{url:u,title:i.title,subTitle:l,description:s,onEdit:n,onUnlink:r,largeIconName:"description"})}function es2(e){let{editor:t}=e,{searchDocuments:n}=zL(),r=t.getAttributes(NW.RichTextNodeType.hyperlink);if(r.id&&n){let i=r.id;return zE.jsx(es6,{docId:i,...e})}if(r.href){let o=r.href;return zE.jsx(es5,{url:o,...e})}if(r.media){let a=esj(r.media);return zE.jsx(es3,{media:a,...e})}return null}function es6(e){let{editor:t,onEditDocumentLink:n,docId:r}=e;return zE.jsx(f.SV,{renderError:()=>zE.jsx(f.oZ,{url:"",title:"Failed to Load Linked Document Data",subTitle:"",error:!0,onEdit:n,onUnlink:()=>es9(t)}),children:zE.jsx(c.Suspense,{fallback:zE.jsx(f.oZ,{url:"",title:"",subTitle:"",loading:!0,onEdit:n,onUnlink:()=>es9(t)}),children:zE.jsx(es1,{docId:r,onEdit:n,onUnlink:()=>es9(t)})})})}function es5(e){let{url:t,editor:n,onEditWebLink:r}=e,i=(0,l.ju)(t);return i?zE.jsx(f.oZ,{url:t,title:(0,l.S$)(i),subTitle:t,onEdit:r,onUnlink:()=>es9(n)}):zE.jsx(f.oZ,{url:t,title:"",subTitle:t,onEdit:r,onUnlink:()=>es9(n)})}function es3(e){let{media:t,editor:n,onEditMediaLink:r}=e;return"ImageLink"===t.__TYPE__?zE.jsx(f.Qi,{url:t.url,title:t.name,subTitle:`${t.width} x ${t.height} pixels`,onEdit:r,onUnlink:()=>es9(n)}):"FileLink"===t.__TYPE__?zE.jsx(f.oZ,{url:t.url,title:t.name,subTitle:function(e){let{filename:t}=e,n=t.split(".").pop();return n?n.toLowerCase():""}({filename:t.name}),onEdit:r,onUnlink:()=>es9(n),largeIconName:"insertDriveFile"}):null}function es9(e){esY(e=>e.unsetLink())(e)}function es4(e){let{open:t}=e,{onOpenChange:n,onSelectDocument:r}=function(e){let{editor:t,setOpen:n}=e;function r(e){n(e)}return{onSelectDocument:function(e){esY(t=>t.extendMarkRange(NW.RichTextNodeType.hyperlink).setDocumentLink({id:e}))(t),n(!1)},onOpenChange:r}}(e);return zE.jsx(Ga,{open:t,onOpenChange:n,onSelectDocument:r})}function es7(e){let{open:t}=e,{onOpenChange:n,onMediaSelected:r}=function(e){let{editor:t,setOpen:n}=e;return{onMediaSelected:function(e){esY(t=>t.extendMarkRange(NW.RichTextNodeType.hyperlink).setMediaLink({media:e}))(t),n(!1)},onOpenChange:n}}(e);return zE.jsx(Jw,{open:t,onOpenChange:n,onMediaSelected:r,assetType:"all"})}function es8(e){let{open:t}=e,{url:n,setUrl:r,onOpenChange:i,onKeyDown:o,openInNewTab:a,setOpenInNewTab:u,onSetUrl:s,selectionUrl:d,selectionUrlTitle:p}=function(e){var t;let{editor:n,setOpen:r}=e,[i,o]=(0,c.useState)(""),[a,u]=(0,c.useState)(!1),s=function(e){let t=e.getAttributes(NW.RichTextNodeType.hyperlink);return t.href?t.href:void 0}(n),d=(t=n,"_blank"===t.getAttributes(NW.RichTextNodeType.hyperlink).target);(0,c.useEffect)(()=>{o(s??"")},[s]),(0,c.useEffect)(()=>{u(d??!1)},[d]);let f=s?(0,l.ju)(s):void 0,p=f?(0,l.S$)(f):"";function A(e){let t=a?"_blank":"_self";esY(n=>n.extendMarkRange(NW.RichTextNodeType.hyperlink).setWebLink({href:e,target:t}))(n),r(!1)}return{url:i,setUrl:o,onSetUrl:A,selectionUrl:s,selectionUrlTitle:p,openInNewTab:a,selectionOpenInNewTab:d,setOpenInNewTab:u,onKeyDown:function(e){"Enter"===e.key&&A(i)},onOpenChange:function(e){o(""),u(!1),r(e)}}}(e);return zE.jsx(f.Vq,{open:t,onOpenChange:i,hasClose:!1,size:"small",children:zE.jsx(f.cZ,{children:zE.jsxs(f.xu,{flexDirection:"column",children:[zE.jsxs(f.xu,{flexDirection:"column",height:"100%",padding:16,gap:4,children:[zE.jsx(f.yt,{value:n,onValueChange:r,placeholder:"Paste URL",icon:"public",onKeyDown:o}),d&&zE.jsxs(f.xu,{flexDirection:"column",padding:{top:8},gap:4,children:[zE.jsx(f.xv,{variant:"smallBold",color:"grey11",children:"Linked to"}),zE.jsxs(f.xu,{backgroundColor:"grey4",borderRadius:6,padding:8,alignItems:"center",gap:8,children:[zE.jsx(f.pI,{largeIconName:"public",smallIconName:"link"}),zE.jsxs(f.xu,{flexDirection:"column",children:[zE.jsx(f.xv,{variant:"bold",color:"grey12",children:p}),zE.jsx(f.xv,{color:"grey11",variant:"small",children:"Web page"})]})]})]})]}),n&&zE.jsxs(f.xu,{flexDirection:"column",padding:{block:8},border:{top:!0},children:[zE.jsx(f.UN,{onSelect:()=>u(!a),icon:a?"checkBox":"checkBoxOutlinedBlank",textContent:"Open in new tab"}),zE.jsx(f.UN,{onSelect:()=>s(n),icon:"link",textContent:"Link to URL"})]})]})})})}function ele(e){let{items:t,editor:n}=e;return 0===t.length?null:zE.jsxs(zE.Fragment,{children:[zE.jsx(f.Jf,{}),zE.jsx(f.dV,{onValueChange(e){t.forEach(t=>{(t.isActive(n)&&!e.includes(t.nodeType)||!t.isActive(n)&&e.includes(t.nodeType))&&t.runCommands(n)})},type:"multiple",value:t.filter(e=>e.isActive(n)).map(e=>e.nodeType),children:t.map(e=>zE.jsx(f.nG,{disabled:!e.runCommands(n,{can:!0}),startIcon:e.icon,value:e.nodeType},e.nodeType))},"mark")]})}function elt(e){var t;let{items:n,editor:r}=e;return 0===n.length?null:zE.jsxs(f.h_,{children:[zE.jsx(f.$F,{disabled:1===n.length,children:zE.jsx(f.zx,{endIcon:"arrowDropDown",size:"small",color:"grey",children:(null==(t=n.find(e=>e.isActive(r)))?void 0:t.text)??""})}),zE.jsx(f.AW,{align:"start",asPortal:!1,maxHeight:256,avoidCollisions:!1,children:n.map(e=>zE.jsx(f.Xi,{onSelect(){e.runCommands(r)},children:e.text},e.nodeType))})]})}function eln(e){return{duration:100,hideOnClick:!0,offset:e,placement:"top-start",zIndex:30}}function elr(e){let{editor:t,nodeTypes:n,labels:r}=e,[i,o]=(0,c.useState)(),a=n.includes(NW.RichTextNodeType.hyperlink),u=!i,{shouldShowBubbleMenu:s,shouldshowPopover:l}=function(e){let{editor:t}=e;return{shouldShowBubbleMenu:function(e){let{view:n,state:r,from:i,to:o}=e;if(!n.hasFocus())return!1;let{doc:a,selection:u}=r;return!(t.isActive(NW.RichTextNodeType.preformatted)||u.empty||0===a.textBetween(i,o).length)},shouldshowPopover:function(e,t){let{view:n,state:r,from:i,to:o}=e,a=n.state.doc.nodeAt(i),{doc:u,selection:s}=r;return!!s.empty&&!(u.textBetween(i,o).length>0)&&!!(null!=a&&a.marks.some(e=>e.type.name===t))}}}({editor:t}),[d,f]=(0,c.useState)(!0);return(0,c.useEffect)(()=>{f(!1)},[]),d?null:zE.jsxs(zE.Fragment,{children:[zE.jsx(eow,{editor:t,tippyOptions:eln([-48,0]),shouldShow:s,children:u&&zE.jsx(eli,{editor:t,nodeTypes:n,labels:r,setModal:o})}),zE.jsx(eow,{editor:t,tippyOptions:eln([-48,0]),shouldShow:e=>l(e,"hyperlink"),children:u&&zE.jsx(es2,{editor:t,onEditWebLink:()=>o("webLink"),onEditDocumentLink:()=>o("documentLink"),onEditMediaLink:()=>o("mediaLink")})}),zE.jsx(eow,{editor:t,tippyOptions:eln([0,0]),shouldShow:e=>l(e,"label"),children:zE.jsx(esX,{editor:t})}),a&&zE.jsxs(zE.Fragment,{children:[zE.jsx(es8,{open:"webLink"===i,setOpen:function(e){o(e?"webLink":void 0)},editor:t}),zE.jsx(es4,{open:"documentLink"===i,setOpen:function(e){o(e?"documentLink":void 0)},editor:t}),zE.jsx(es7,{open:"mediaLink"===i,setOpen:function(e){o(e?"mediaLink":void 0)},editor:t})]})]})}function eli(e){let{editor:t,nodeTypes:n,labels:r,setModal:i}=e,o=n.includes("hyperlink"),a=r.length>0,u=esZ(esQ,n),s=esZ(esV,n),l=esZ(esz,n),c=u.length+s.length+l.length+Number(o);return 0===c?null:zE.jsxs(f.o8,{children:[zE.jsx(elt,{items:u,editor:t}),a&&zE.jsx(esG,{labels:r,editor:t}),zE.jsx(ele,{items:s,editor:t}),o&&zE.jsx(es0,{editor:t,setModal:i}),zE.jsx(esJ,{items:l,editor:t}),c>1&&zE.jsxs(zE.Fragment,{children:[zE.jsx(f.Jf,{}),zE.jsx(f.hA,{onClick(){t.chain().focus().clearNodes().unsetAllMarks().run()},startIcon:"formatClear"},"clear")]})]})}function elo(e){var t;let{content:n,field:r,id:i,readOnly:o}=e,a=function(e){var t,n;let r=`${(null==(t=e.config)?void 0:t.multi)??""}-${(null==(n=e.config)?void 0:n.single)??""}`;return(0,c.useMemo)(()=>{var t,n;let{extensions:r,defaultTextConverter:i}=function(e){var t;if(!e||!(null!=e&&e.single)&&!(null!=e&&e.multi))return eoY();let n=function(e){let t=(e.single||e.multi||"").split(/\s*,\s*/).map(e=>{let t=NW.RichTextNodeTypeCodec.decode(e);return"Right"===t._tag?t.right:void 0}).filter(h.$);return new Set(t)}(e);if(!(null!=n&&n.size))return eoY();let r=(t=n,esq(t).filter(e=>(0,v.G)(t,t=>e.richTextNodeTypes.includes(t)))),i=function(e){let t=new Set(e);return(0,v.G)(t,eoQ)&&t.add(euX),(0,v.G)(t,eoD)||t.add(euX),[...t]}(r);return{extensions:i,defaultTextConverter:function(e){let t=e.find(eoD)??euX;return function(e){return n=>t.converter.fromPrismic(e)({...n,type:t.richTextNodeTypes[0]??"heading1"})}}(i)}}(e.config),o=r.filter(ela),a=r.flatMap(e=>e.richTextNodeTypes),u=r.map(e=>e.component),s=r.filter(elu).map(e=>e.name),l=[...u,...function(e,t){var n,r,i;let o=t.map(e=>e.richTextNodeTypes).flat(),a={placeholderByNodeType:(i=t,i.reduce((e,t)=>(t.nodeType===eoP.Text&&(e[t.name]=t.placeholder),e),{})),unfocusedPlaceholder:null==(n=e.config)?void 0:n.placeholder,nodeExtensions:t},u=o.includes(NW.RichTextNodeType.orderedList)||o.includes(NW.RichTextNodeType.list);return[eo4.component((null==(r=e.config)?void 0:r.single)===void 0),euz.component,ean.component,eai(a),u?eo6.component:void 0,eu6.configure({nodeTypes:o})].filter(h.$)}(e,o),euH.configure({supportedExtensionNames:s}),erF],c=l.map(e=>e.name),d=function(e,t){let n=etJ.resolve(e);return etP(n,void 0)}(l),f=(n=null==(t=e.config)?void 0:t.labels,Array.from(n??[]));return{allComponents:l,extensionNames:c,defaultTextConverter:i,nodeExtensions:o,names:a,schema:d,labels:f}},[r])}(r),u=n&&eo4.converter(a.nodeExtensions).fromPrismic(a.schema,null==(t=a.defaultTextConverter)?void 0:t.call(a,a.schema))(n),s=(0,p.R9)(e.onContentChange),l=(0,f.jE)({content:null==u?void 0:u.toJSON(),editable:!o,editorProps:{attributes:{class:`${f.rk} ${f.bN}`,id:i,tabIndex:"0"}},extensions:a.allComponents,injectCSS:!1,onUpdate({editor:e}){if(e.isEmpty)return s(void 0);let t=eo4.converter(a.nodeExtensions).toPrismic(e.state.doc);s(t)}},[a,o]);return zE.jsxs(f.gN,{children:[zE.jsx(f.Qy,{htmlFor:i,children:Z4(r)}),zE.jsxs(f.JO,{children:[l.isEditable&&zE.jsx(elr,{editor:l,nodeTypes:a.names.concat(euY),labels:a.labels}),zE.jsx(eob,{editor:l,style:{flexGrow:1}})]})]})}function ela(e){return e.extType===eoB.Node}function elu(e){return!(e.extType!==eoB.Node||e.nodeType!==eoP.Text||e.lockedFormat)}function els(e){var t,n,r,i,o;let{content:a,field:u,id:s,onContentChange:l,readOnly:c}=e,d=Z7(u),p=(r=u,(null==(i=r.config)?void 0:i.default_value)===void 0||null==(o=r.config.options)?void 0:o[0]),A=(null==a?void 0:a.value)??p;return zE.jsxs(f.gN,{children:[zE.jsx(f.fw,{name:"arrowDropDownCircle"}),zE.jsx(f.Qy,{htmlFor:s,children:Z4(u)}),zE.jsx(f.JO,{children:zE.jsx(f.Ph,{id:s,size:"large",color:"grey",value:A,renderTrigger:()=>zE.jsx(f.JF,{id:s,placeholder:d}),onValueChange(e){var t;c||l((t=e,0===t.length?void 0:{__TYPE__:"FieldContent",type:"Select",value:t}))},children:null==(n=null==(t=u.config)?void 0:t.options)?void 0:n.map(e=>zE.jsx(f.Ql,{value:e,children:e},e))})})]})}function ell(e){let{id:t,readOnly:n,field:r,content:i,onContentChange:o}=e,a=null!=i&&i.value?(0,A._O)(i.value):void 0;return zE.jsxs(f.gN,{children:[zE.jsx(f.fw,{name:"event"}),zE.jsx(f.Qy,{id:t,children:Z4(r)}),zE.jsx(f.JO,{children:zE.jsx(f.xu,{padding:{left:4,right:12},width:"100%",flexDirection:"column",justifyContent:"center",children:zE.jsx(f.Wr,{mode:"date-time","aria-labelledby":t,disabled:n,value:a,onValueChange:e=>o(function(e){if(e)return{__TYPE__:"FieldContent",type:"Timestamp",value:function(e){let t=`${e.getUTCFullYear()}`.padStart(4,"0"),n=`${e.getUTCMonth()+1}`.padStart(2,"0"),r=`${e.getUTCDate()}`.padStart(2,"0"),i=`${e.getUTCHours()}`.padStart(2,"0"),o=`${e.getUTCMinutes()}`.padStart(2,"0");return`${t}-${n}-${r}T${i}:${o}:00+00:00`}(e)}}(e))})})})]})}function elc(e){let{id:t,readOnly:n,content:r,nestableWidget:i}=e,o=(0,p.R9)(e.onContentChange);return(0,c.useMemo)(()=>{let e={id:t,readOnly:n,onContentChange:o};return"Boolean"===i.type?zE.jsx(Z8,{...e,field:i,content:R.isBooleanContent(r)?r:void 0}):"Date"===i.type?zE.jsx(Jt,{...e,field:i,content:R.isDateContent(r)?r:void 0}):"Timestamp"===i.type?zE.jsx(ell,{...e,field:i,content:R.isTimestampContent(r)?r:void 0}):"Image"===i.type?zE.jsx(JF,{...e,field:i,content:R.isImageContent(r)?r:void 0}):"Link"===i.type?zE.jsx(Gy,{...e,field:i,content:R.isLinkContent(r)?r:void 0}):"Number"===i.type?zE.jsx(GC,{...e,field:i,content:R.isNumberContent(r)?r:void 0}):"StructuredText"===i.type?zE.jsx(elo,{...e,field:i,content:R.isRichTextContent(r)?r:void 0}):"Select"===i.type?zE.jsx(els,{...e,field:i,content:R.isSelectContent(r)?r:void 0}):"Text"===i.type?zE.jsx(J0,{...e,field:i,content:R.isTextContent(r)?r:void 0}):"Embed"===i.type?zE.jsx(Jd,{...e,field:i,content:R.isEmbedContent(r)?r:void 0}):"Color"===i.type?zE.jsx(Je,{...e,field:i,content:R.isColorContent(r)?r:void 0}):"GeoPoint"===i.type?zE.jsx(Jm,{...e,field:i,content:R.isGeoPointContent(r)?r:void 0}):"IntegrationFields"===i.type?zE.jsx(JX,{...e,field:i,content:R.isIntegrationFieldContent(r)?r:void 0}):null},[r,t,i,o,n])}function eld(e){let{id:t,title:n,addItemButtonTitle:r,content:i,onContentChange:o,readOnly:a,repeatable:u=!0,repeatableZone:s}=e,l=Object.entries(s),d=i??[elf];!u&&d.length>1&&(d=d.slice(0,1));let p=(0,c.useRef)(new WeakMap);function A(e){return p.current.get(e)??"!bugged!"}function h(e){let{index:t,offset:n}=e;o((0,g.pB)(d,t,t+n))}function m(e){let{index:t}=e;o((0,g.$E)(d,t))}return!function(e,t){t.forEach(t=>{e.has(t)||e.set(t,(0,S.d)())})}(p.current,d),0===Object.keys(s).length?null:zE.jsx(f.ZA,{title:n??"Repeatable zone",addItemButtonTitle:r??"Add item in repeatable zone",items:d,maxItems:u?void 0:1,getItemKey:A,onAddItem:function(){o(d.concat(elp()))},children(e,n){let r=new Map(e.value),i=A(e);return zE.jsx(f.En,{keepLoaded:!0,children:zE.jsx(f.MN,{index:n,title:`${n+1} • Item`,onMove:h,onDelete:m,children:l.map(([u,s])=>{let l=r.get(u),c=R.isNestableContent(l)?l:void 0;return zE.jsx(elc,{id:`${t}[${i}].${u}`,content:c,nestableWidget:s,onContentChange:t=>(function(e,t,n,r){let i=function(e,t){let[n,r]=t;if(!r){let i=e.value.filter(([e])=>e!==n);return elp(i)}let o=Array.from(new Map(e.value).set(n,r));return elp(o)}(e,[n,r]),a=function(e,t){let[n,r]=t;return r?e.map((e,t)=>t===n?r:e):e.filter((e,t)=>t!==n)}(d,[t,i]);(function(e,t,n){let r=e.get(t);void 0!==r&&e.set(n,r)})(p.current,e,i),o(a)})(e,n,u,t),readOnly:a},u)})})})}})}let elf={__TYPE__:"GroupItemContent",value:[]};function elp(e=[]){return{__TYPE__:"GroupItemContent",value:e}}function elA(e){var t,n;let{group:r,content:i,onContentChange:o,...a}=e;return zE.jsx(eld,{...a,title:elh(r),addItemButtonTitle:`Add item in "${elh(r)}"`,repeatable:(null==(t=r.config)?void 0:t.repeat)!==!1,repeatableZone:(null==(n=r.config)?void 0:n.fields)??{},content:null==i?void 0:i.value,onContentChange(e){o({__TYPE__:"GroupContentType",value:e})}})}function elh(e){var t;return(null==(t=e.config)?void 0:t.label)??e.fieldset??e.type}function elm(e){let{id:t,readOnly:n,content:r,slicePrimaryWidget:i}=e,o=(0,p.R9)(e.onContentChange);return(0,c.useMemo)(()=>{let e={id:t,readOnly:n,onContentChange:o};return"Group"===i.type?zE.jsx(elA,{...e,group:i,content:R.isGroupContent(r)?r:void 0}):zE.jsx(elc,{...e,nestableWidget:i,content:R.isNestableContent(r)?r:void 0})},[r,t,i,o,n])}function elg(e){let{content:t,id:n,slicePrimaryZone:r,onContentChange:i,readOnly:o}=e,a=(0,c.useMemo)(()=>Object.entries(r),[r]);return zE.jsx(zE.Fragment,{children:a.map(([e,r])=>{let a=t[e];return zE.jsx(elm,{id:`${n}.${e}`,readOnly:o,slicePrimaryWidget:r,content:R.isSlicePrimaryContent(a)?a:void 0,onContentChange(n){var r,o,a;i((r=t,o=e,a=n,a?{...r,[o]:a}:(0,d.ud)(r,o)))}},e)})})}function ely(e){var t,n,r,i;let{config:o,content:a,sliceKey:u,readOnly:s=!1,sharedSlice:l,onContentChange:d,...p}=e,A=(t=l,n=a.variation,(0,c.useMemo)(()=>t.variations.find(e=>e.id===n),[t,n])),h=(0,c.useId)(),m={id:p.id??h,readOnly:s},{selected:g,selectionId:y,selection:v}=function(e){let{sliceKey:t}=e||{},n=(0,c.useContext)(Z9),r=function(e,t){if(t)return`${e}___${t}`}("sliceFieldSet",t),i=t===(null==n?void 0:n.id);return{selectionId:r,selected:i,selection:n}}({sliceKey:u});return void 0===A?null:zE.jsx(zK.Provider,{value:o,children:zE.jsx(f.C3,{id:y,selected:g,onFocus:function(){u&&v.update("sliceFieldSet",u)},legend:(r=l,i=A,[r.name,i.name].join(" • ")),children:zE.jsxs(f.En,{heightEstimate:400,gap:16,keepLoaded:!0,children:[zE.jsx(elg,{...m,slicePrimaryZone:A.primary??{},content:a.primary,onContentChange(e){d({...a,primary:e})}}),zE.jsx(eld,{...m,repeatableZone:A.items??{},content:a.items,onContentChange(e){d({...a,items:e})}})]})})})}}}]);
|
|
22
|
+
`)),a.setMeta("paste",!0),e.dispatch(a),!0}}})]}}),esn=est.extend({name:"preformatted",addAttributes(){return{language:{default:null,parseHTML:e=>{var t;let{languageClassPrefix:n}=this.options,r=[...(null==(t=e.firstElementChild)?void 0:t.classList)||[]].filter(e=>e.startsWith(n)).map(e=>e.replace(n,""))[0];return r||null},renderHTML:e=>e.language?{class:this.options.languageClassPrefix+e.language}:null}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({HTMLAttributes:e}){return["pre",etj(this.options.HTMLAttributes),["code",e,0]]}}).configure({exitOnTripleEnter:!1}),esr=new eoW([NW.RichTextNodeType.preformatted],esn.name,esn,{fromPrismic:e=>function(t){var n;let r=euz.converter.fromPrismic(e)(esn.name,t,!0);return null==(n=e.nodes[esn.name])?void 0:n.create(euZ.fromPrismic(t),r)},toPrismic:e=>euz.converter.toPrismic(e,NW.RichTextNodeType.preformatted,euZ.toPrismic(e))},"",!0);function esi(e){let{editor:t,getPos:n,node:r}=e,[i,o]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{function e(){let{from:e,to:i}=t.state.selection,a=n(),u=n()+r.nodeSize;o(e<=a&&i>=u)}function i(){o(!1)}return t.on("blur",i),t.on("selectionUpdate",e),()=>{t.off("blur",i),t.off("selectionUpdate",e)}},[t,n,r.nodeSize]),{selected:i}}function eso(e){let t=(0,c.useRef)(null),n=(0,c.useRef)(null),{onKeyDown:r,url:i,urlChanged:o,onContentChange:a,debouncedUrl:u,content:s}=function(e,t,n){let{node:r}=e,i=r.attrs.content,o=(0,p.R9)(e.updateAttributes),a=(0,p.$P)({initialState:(null==i?void 0:i.embed_url)??"",startTransition:c.startTransition});function u(e){o({content:e})}let{onKeyDown:s}=function(e,t,n,r){let{editor:i,getPos:o,node:a}=e,[u,s]=(0,c.useState)(!0);return(0,c.useEffect)(()=>{u&&e.editor.isFocused&&(0,f.rI)(()=>{var e;return null==(e=n.current)?void 0:e.focus()})},[n,u,e.editor.isFocused]),{containerRef:r,inputRef:n,onKeyDown:function(e){let n=o(),r=o()+a.nodeSize;"Enter"===e.code&&(s(!1),i.chain().insertContentAt(r,{type:"paragraph"}).focus(r+1).run()),"Backspace"===e.code&&""===t&&i.chain().deleteRange({from:n,to:r}).focus(r+1).run(),"ArrowUp"===e.code&&(s(!1),i.chain().focus(n-1).run()),"ArrowDown"===e.code&&(s(!1),i.chain().focus(r+1).run())}}}(e,a.value,t,n);return{inputRef:t,containerRef:n,onKeyDown:s,url:a.value,urlChanged:function(e){a.set(e),(0,l.ju)(e)||u(void 0)},onContentChange:u,debouncedUrl:a.debouncedValue,content:e.node.attrs.content}}(e,t,n),{selected:d}=esi(e);return zE.jsx(eoT,{className:"custom-embed",children:zE.jsxs("div",{contentEditable:"false",suppressContentEditableWarning:!0,children:[zE.jsxs(f.xu,{flexGrow:1,alignItems:"center",children:[zE.jsx(f.I5,{size:"small",name:"cloud",color:"grey11"}),zE.jsx(f.xu,{flexGrow:1,height:40,ref:n,children:zE.jsx(Jn,{id:"id",ref:t,value:i,variant:(0,l.ju)(i)?"link":"normal",placeholder:"Paste your link here",onValueChange:o,onKeyDown:r})})]}),(0,l.ju)(i)&&zE.jsx(Ja,{selected:d,debouncedUrl:u,onContentChange:a,content:s})]})})}let esa=erp.create({name:"embed",group:"block",atom:!0,content:"block*",marks:"",addAttributes:()=>({content:{default:void 0}}),addCommands(){return{setEmbed:()=>({tr:e,dispatch:t})=>{let n=this.type.create();return t&&e.replaceSelectionWith(n),!0}}},parseHTML:()=>[{tag:"embed"}],renderHTML:()=>["embed"],addNodeView:()=>eok(eso)}),esu=new class{constructor(e,t,n,r){_(this,"extType","node"),_(this,"nodeType","embed"),this.richTextNodeTypes=e,this.name=t,this.component=n,this.converter=r}}([NW.RichTextNodeType.embed],esa.name,esa,{fromPrismic:e=>function(t){var n;return null==(n=e.nodes[esa.name])?void 0:n.create({content:t.data})},toPrismic:e=>void 0===e.attrs.content?{type:"embed",data:{type:"embed",embed_url:"",__TYPE__:"EmbedContent",all:[]}}:{type:"embed",data:{...e.attrs.content}}}),ess=erp.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,etj(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>erc({find:RegExp(`^(#{1,${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),esl="heading";function esc(e){switch(e){case 1:return NW.RichTextNodeType.heading1;case 2:return NW.RichTextNodeType.heading2;case 3:return NW.RichTextNodeType.heading3;case 4:return NW.RichTextNodeType.heading4;case 5:return NW.RichTextNodeType.heading5;case 6:return NW.RichTextNodeType.heading6}}function esd(e){return{fullName:esc(e),level:e}}let esf=[1,2,3,4,5,6];function esp(e,t=esf){let n=RegExp(`^heading([${t.join(",")}]){1}$`),r=e.match(n);if(!r||!r[1])return;let i=parseInt(r[1]);return{fullName:esc(i),level:i}}function esA(e,t){let n=e.level;if(t.includes(n))return{fullName:esc(n),level:n}}let esh=e=>{let t=e[0]??1;return{fromPrismic:n=>function(r){var i;let o=euz.converter.fromPrismic(n)(esl,r),a=esp(r.type,e)||esd(t);return null==(i=n.nodes[esl])?void 0:i.create({level:a.level,...euZ.fromPrismic(r)},o)},toPrismic(n){let{fullName:r}=esA(n.attrs,e)||esd(t);return euz.converter.toPrismic(n,r,euZ.toPrismic(n))}}},esm={name:esl,build(e){var t,n;let r=e?e.size?Array.from(e.values()).reduce((e,t)=>{let n=esp(t);return n?[...e,n.level]:e},[]).sort((e,t)=>e-t):[]:esf;if(!r)return;let i=r.map(e=>esc(e));return new eoN(i,ess.extend({name:"heading"}).configure({levels:r}),r,esh(r),e=>{let t=esA(e,r);return t&&`Heading ${t.level}`})}};function esg(e){let{node:t}=e,n=t.attrs.content,{selected:r}=esi(e),i={width:void 0,height:void 0,name:ZR},{onMediaSelected:o,onCropperDialogClose:a,isUpdating:u,updateContent:s,onClear:l}=function(e){let{content:t,thumbnail:n,imageViewProps:{getPos:r,updateAttributes:i,editor:o,node:a}}=e,[u,s]=(0,c.useTransition)();function l(e){s(()=>i({content:e}))}return{onMediaSelected:function(e){let n=ZF(e),i=r()+a.nodeSize;l({__TYPE__:"ImageContent",...t,...n}),o.chain().focus(i+1).run()},onCropperDialogClose:function({croppedImages:e}){if(!t)return;let r=e[n.name];if(!r)return;let i=JO({content:t,thumbnail:n.name,croppedImage:r});i!==t&&l(i)},isUpdating:u,updateContent:l,onClear:function(){let e=r(),t=r()+a.nodeSize;o.chain().deleteRange({from:e,to:t}).focus(t).run()}}}({content:n,thumbnail:i,imageViewProps:e}),d=(null==n?void 0:n.width)===0&&(null==n?void 0:n.height)===0,p=n&&!d?[`${n.width}x${n.height}px`]:[],A=(null==n?void 0:n.alt)??"",h={thumbnail:i,contentView:n,labels:Zk(i,n,n)};return zE.jsx(eoT,{className:"custom-image",children:zE.jsx("div",{contentEditable:"false",suppressContentEditableWarning:!0,children:zE.jsx(JM,{content:n,selected:r,fieldLabel:"Feature image",imageLabel:p,initialImages:[h],readOnly:!1,onMediaSelected:o,onCropperDialogClose:a,onClear:l,children:zE.jsx(c.Suspense,{fallback:esy,children:null!=n&&n.url?zE.jsxs(f.aY,{children:[zE.jsx(f.hM,{children:zE.jsx(f.xu,{flexDirection:"column",alignItems:"center",position:"relative",height:400,children:zE.jsx(f.xu,{justifyContent:"center",flexGrow:1,maxHeight:"100%",maxWidth:"100%",children:zE.jsx(f.kg,{src:ZE(n.url),alt:A,sizing:"contain"})})})}),zE.jsx(J_,{onValueChange(e){s({...n,alt:e})},altText:A,readOnly:!n,selected:r})]}):zE.jsx(JI,{isUpdating:u,readOnly:!1,onMediaSelected:o})})})})})}let esy=zE.jsx("div",{style:{height:468}}),esv=erp.create({name:"image",group:"block",atom:!0,addAttributes:()=>({content:{default:void 0}}),addCommands(){return{setImage:()=>e=>{let{dispatch:t,tr:n}=e,r=this.type.create();return t&&n.replaceSelectionWith(r),!0}}},parseHTML:()=>[{tag:"image"}],renderHTML:({HTMLAttributes:e})=>["image",etj(e)],addNodeView:()=>eok(esg)}),esx=new class{constructor(e,t,n,r){_(this,"extType","node"),_(this,"nodeType","image"),this.richTextNodeTypes=e,this.name=t,this.component=n,this.converter=r}}([NW.RichTextNodeType.image],esv.name,esv,{fromPrismic:e=>function(t){var n;return null==(n=e.nodes[esv.name])?void 0:n.create({content:t.data})},toPrismic(e){if(void 0!==e.attrs.content)return{type:"image",data:{...e.attrs.content}}}}),esb=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,esC=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,esS=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,esw=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,esI=erf.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:e}){return["em",etj(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[erl({find:esb,type:this.type}),erl({find:esS,type:this.type})]},addPasteRules(){return[erh({find:esC,type:this.type}),erh({find:esw,type:this.type})]}}),es_=esI.extend({name:"em"}),esT=new class{constructor(e,t,n){_(this,"extType",eoB.Mark),_(this,"richTextNodeTypes",NW.RichTextNodeType.em),this.name=e,this.component=t,this.converter=n}}(es_.name,es_,{fromPrismic:e=>function(){var t;return null==(t=e.marks[es_.name])?void 0:t.create()},toPrismic(){}}),esO=esT,esR=erf.create({name:"label",priority:1e3,keepOnSplit:!1,inclusive:!1,addOptions:()=>({htmlAttributes:{style:"background-color: hsl(251, 89%, 96%); border: 1px dashed rgba(68, 53, 146, 0.4); border-radius: 0px 2px 2px 2px"}}),addAttributes:()=>({label:{default:""}}),addCommands(){return{setLabel:e=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMark(this.name,e).run(),unsetLabel:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},renderHTML({HTMLAttributes:e}){return["span",etj(this.options.htmlAttributes,e),0]}}),esk=new class{constructor(e,t,n){_(this,"extType",eoB.Mark),_(this,"richTextNodeTypes",NW.RichTextNodeType.paragraph),this.name=e,this.component=t,this.converter=n}}(esR.name,esR,{fromPrismic:e=>function(t){var n;let r=t.data,i={type:esR.name,label:r};return null==(n=e.marks[esR.name])?void 0:n.create(i)},toPrismic:e=>e.attrs.label}),esE=erf.create({name:"hyperlink",priority:1e3,keepOnSplit:!1,inclusive:!1,addOptions:()=>({openOnClick:!1,linkOnPaste:!0,autolink:!0,protocols:[],htmlAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null,id:""},validate:void 0}),addAttributes:()=>({href:{default:""},id:{default:""},target:{default:"_blank"},rel:{default:"noopener noreferrer nofollow"},class:{default:null},media:{default:null}}),parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:e}){return["a",etj(this.options.htmlAttributes,e),0]},addCommands(){return{setWebLink:e=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMark(this.name,e).setMeta("preventAutolink",!0).run(),setDocumentLink:e=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMark(this.name,e).setMeta("preventAutolink",!0).run(),setMediaLink:e=>({chain:t})=>{let n=esF(Gg({media:e.media}).value);return t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMark(this.name,{media:n}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}}}),esM=new class{constructor(e,t,n){_(this,"extType",eoB.Mark),_(this,"richTextNodeTypes",NW.RichTextNodeType.hyperlink),this.name=e,this.component=t,this.converter=n}}(esE.name,esE,{fromPrismic:e=>function(t){var n,r,i,o;let a=t.data;if("DocumentLink"===a.__TYPE__){let u={type:esE.name,id:a.id};return null==(n=e.marks[esE.name])?void 0:n.create(u)}if("ImageLink"===a.__TYPE__){let s={type:esE.name,media:esF(a)};return null==(r=e.marks[esE.name])?void 0:r.create(s)}if("FileLink"===a.__TYPE__){let l={type:esE.name,media:esF(a)};return null==(i=e.marks[esE.name])?void 0:i.create(l)}if("ExternalLink"===a.__TYPE__){let c={type:esE.name,url:a.url,href:a.url,target:a.target};return null==(o=e.marks[esE.name])?void 0:o.create(c)}},toPrismic:e=>e.attrs.media?esj(e.attrs.media):e.attrs.id?{__TYPE__:"DocumentLink",id:e.attrs.id}:{__TYPE__:"ExternalLink",url:e.attrs.href,target:e.attrs.target}});function esF(e){return JSON.stringify(e)}function esj(e){return JSON.parse(e)}let esU=erp.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",etj(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),esK=erf.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:e=>!!e.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:e}){return["span",etj(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{let n=enz(e,this.type);return!!Object.entries(n).some(([,e])=>!!e)||t.unsetMark(this.name)}}}}),esL=/^(\d+)\.\s$/,esB=erp.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,...n}=e;return 1===t?["ol",etj(this.options.HTMLAttributes,n),0]:["ol",etj(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(esU.name,this.editor.getAttributes(esK.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=erd({find:esL,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=erd({find:esL,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(esK.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),esP=esB.extend({name:"orderedList",addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1}}),renderHTML({HTMLAttributes:e}){let{start:t,...n}=e;return 1===t?["ol",etj(this.options.HTMLAttributes,n),0]:["ol",etj(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}}}).configure({itemTypeName:"listItem"}),esW=new eoq([NW.RichTextNodeType.orderedList],esP.name,esP,{fromPrismic:e=>function(t){var n;let r=eo6.converter.fromPrismic(e)(t);if(r)return null==(n=e.nodes[esP.name])?void 0:n.create(euZ.fromPrismic(t),r)},toPrismic:e=>eoz.children.map(e,e=>eo6.converter.toPrismic(e,NW.RichTextNodeType.orderedList).filter(h.$)).flat()}),esD=esW,esN=[eoZ,esO,esM,esk];function esq(e){return[euX,eu7,esD,esm.build(e),esr,esu,esx,...esN].filter(h.$)}let esQ=[{nodeType:NW.RichTextNodeType.paragraph,icon:"textFields",isActive:e=>e.isActive(euX.name)&&!e.isActive(eu7.name)&&!e.isActive(esD.name),runCommands:esY((e,t)=>e.clearNodes().setDirection(esH(t))),shortText:"par",text:"Paragraph"},{nodeType:NW.RichTextNodeType.heading1,icon:"looks1",isActive:e=>e.isActive(esm.name,{level:1}),runCommands:esY((e,t)=>e.setHeading({level:1}).setDirection(esH(t))),shortText:"h1",text:"Heading 1"},{nodeType:NW.RichTextNodeType.heading2,icon:"looks2",isActive:e=>e.isActive(esm.name,{level:2}),runCommands:esY((e,t)=>e.setHeading({level:2}).setDirection(esH(t))),shortText:"h2",text:"Heading 2"},{nodeType:NW.RichTextNodeType.heading3,icon:"looks3",isActive:e=>e.isActive(esm.name,{level:3}),runCommands:esY((e,t)=>e.setHeading({level:3}).setDirection(esH(t))),shortText:"h3",text:"Heading 3"},{nodeType:NW.RichTextNodeType.heading4,icon:"looks4",isActive:e=>e.isActive(esm.name,{level:4}),runCommands:esY((e,t)=>e.setHeading({level:4}).setDirection(esH(t))),shortText:"h4",text:"Heading 4"},{nodeType:NW.RichTextNodeType.heading5,icon:"looks5",isActive:e=>e.isActive(esm.name,{level:5}),runCommands:esY((e,t)=>e.setHeading({level:5}).setDirection(esH(t))),shortText:"h5",text:"Heading 5"},{nodeType:NW.RichTextNodeType.heading6,icon:"looks6",isActive:e=>e.isActive(esm.name,{level:6}),runCommands:esY((e,t)=>e.setHeading({level:6}).setDirection(esH(t))),shortText:"h6",text:"Heading 6"},{nodeType:NW.RichTextNodeType.list,icon:"formatListBulleted",isActive:e=>e.isActive(eu7.name),runCommands:esY((e,t)=>e.toggleBulletList().setDirection(esH(t))),shortText:"bull",text:"Bulleted list"},{nodeType:NW.RichTextNodeType.orderedList,icon:"formatListNumbered",isActive:e=>e.isActive(esD.name),runCommands:esY((e,t)=>e.toggleOrderedList().setDirection(esH(t))),shortText:"num",text:"Numbered list"},{nodeType:NW.RichTextNodeType.preformatted,icon:"dataObject",isActive:e=>e.isActive(esr.name),runCommands:esY((e,t)=>e.setCodeBlock().setDirection(esH(t))),shortText:"code",text:"Code"},{nodeType:NW.RichTextNodeType.embed,icon:"cloud",isActive:e=>e.isActive(esu.name),runCommands:esY(e=>e.setEmbed()),shortText:"emb",text:"Embed"},{nodeType:NW.RichTextNodeType.image,icon:"image",isActive:e=>e.isActive(esx.name),runCommands:esY(e=>e.setImage()),shortText:"img",text:"Image"}],esV=[{nodeType:NW.RichTextNodeType.strong,icon:"formatBold",isActive:e=>e.isActive(eoZ.name),runCommands:esY(e=>e.toggleBold())},{nodeType:NW.RichTextNodeType.em,icon:"formatItalic",isActive:e=>e.isActive(esO.name),runCommands:esY(e=>e.toggleItalic())}],esz=[{nodeType:NW.RichTextNodeType.rtl,icon:"formatTextDirectionRToL",isActive:e=>e.isActive({dir:"rtl"}),runCommands:esY((e,t)=>e.toggleDirection(esH(t)))}];function esY(e){return(t,n={})=>{let r=!0===n.can?t.can().chain():t.chain().focus();return void 0!==n.deleteRange&&(r=r.deleteRange(n.deleteRange)),n.can?function(e,t,n){try{return n(t,e).run()}catch{return!1}}(t,r,e):e(r,t).run()}}function esH(e){let t=e.state.selection.$from.parent.attrs;return euZ.parseNodeAttrsDirection(t)}function esZ(e,t){return e.filter(e=>t.includes(e.nodeType))}function esJ(e){let{items:t,editor:n}=e;return 0===t.length?null:zE.jsxs(zE.Fragment,{children:[zE.jsx(f.Jf,{}),t.map(e=>zE.jsx(f.r8,{disabled:!e.runCommands(n,{can:!0}),onPressedChange(){e.runCommands(n)},pressed:e.isActive(n),startIcon:e.icon},e.nodeType))]})}function esG(e){let{labels:t,editor:n}=e,r=n.getAttributes("label").label;return zE.jsxs(zE.Fragment,{children:[zE.jsx(f.Jf,{}),zE.jsxs(f.h_,{children:[zE.jsx(f.$F,{disabled:0===t.length,children:zE.jsx(f.zx,{endIcon:"arrowDropDown",size:"small",color:"grey",children:es$(r??"Labels")})}),zE.jsx(f.AW,{align:"start",asPortal:!1,maxHeight:256,avoidCollisions:!1,children:t.map((e,t)=>{let i=r===e;return zE.jsx(f.Xi,{onSelect:()=>i?n.commands.unsetLabel():function(e,t){esY(e=>e.setLabel({label:t}))(e)}(n,e),endIcon:i&&zE.jsx(f.I5,{name:"check",size:"extraSmall"}),children:es$(e)},`${e}-${t}`)})})]})]})}function es$(e){return(0,x.tx)(e,20)}function esX(e){let{editor:t}=e,n=t.getAttributes("label");if(!n.label)return null;let r=n.label;return zE.jsx(f.xu,{backgroundColor:"purple9",padding:{block:2,inline:4},alignItems:"center",borderRadius:{topLeft:2,topRight:2,bottomRight:2},maxWidth:125,children:zE.jsx(f.xv,{color:"white",variant:"small",noWrap:!0,children:r})})}function es0(e){let{disabled:t,showWebLinkModal:n,showDocumentsLinkModal:r,showMediaLinkModal:i}=function(e){let{editor:t,setModal:n}=e;return{disabled:!esY(e=>e.setWebLink({href:""}))(t,{can:!0}),showWebLinkModal:function(){n("webLink")},showDocumentsLinkModal:function(){n("documentLink")},showMediaLinkModal:function(){n("mediaLink")}}}(e);return zE.jsxs(zE.Fragment,{children:[zE.jsx(f.Jf,{}),zE.jsxs(f.yM,{density:"compact",children:[zE.jsx(f.hA,{disabled:t,startIcon:"link",onClick:n},NW.RichTextNodeType.hyperlink),zE.jsxs(f.h_,{children:[zE.jsx(f.$F,{children:zE.jsx(f.hA,{startIcon:"arrowDropDown"})}),zE.jsxs(f.AW,{align:"end",asPortal:!1,children:[zE.jsx(f.Xi,{startIcon:zE.jsx(f.I5,{name:"public"}),onSelect:n,children:"Link to web page"}),zE.jsx(f.Xi,{startIcon:zE.jsx(f.I5,{name:"description"}),onSelect:r,children:"Link to document"}),zE.jsx(f.Xi,{startIcon:zE.jsx(f.I5,{name:"image"}),onSelect:i,children:"Link to media"})]})]})]})]})}function es1(e){let{docId:t,onEdit:n,onUnlink:r}=e,i=function(e){let t=zL();t.searchDocuments||zP("searchDocuments");let{coreApiBaseUrl:n,authStrategy:r}=t;return(0,m.QT)(Hj,[n,r,e])}(t),o=zL();if(!i)return null;let a=i.versions[0],u=zO({status:null==a?void 0:a.status,releaseId:(null==a?void 0:a.status)==="release"?a.release_id:void 0,documentId:i.id,versionId:null==a?void 0:a.version_id,baseUrl:o.baseUrl}),s=(null==a?void 0:a.preview_summary)??"",l=(null==a?void 0:a.custom_type_label)??"";return zE.jsx(f.oZ,{url:u,title:i.title,subTitle:l,description:s,onEdit:n,onUnlink:r,largeIconName:"description"})}function es2(e){let{editor:t}=e,{searchDocuments:n}=zL(),r=t.getAttributes(NW.RichTextNodeType.hyperlink);if(r.id&&n){let i=r.id;return zE.jsx(es6,{docId:i,...e})}if(r.href){let o=r.href;return zE.jsx(es5,{url:o,...e})}if(r.media){let a=esj(r.media);return zE.jsx(es3,{media:a,...e})}return null}function es6(e){let{editor:t,onEditDocumentLink:n,docId:r}=e;return zE.jsx(f.SV,{renderError:()=>zE.jsx(f.oZ,{url:"",title:"Failed to Load Linked Document Data",subTitle:"",error:!0,onEdit:n,onUnlink:()=>es9(t)}),children:zE.jsx(c.Suspense,{fallback:zE.jsx(f.oZ,{url:"",title:"",subTitle:"",loading:!0,onEdit:n,onUnlink:()=>es9(t)}),children:zE.jsx(es1,{docId:r,onEdit:n,onUnlink:()=>es9(t)})})})}function es5(e){let{url:t,editor:n,onEditWebLink:r}=e,i=(0,l.ju)(t);return i?zE.jsx(f.oZ,{url:t,title:(0,l.S$)(i),subTitle:t,onEdit:r,onUnlink:()=>es9(n)}):zE.jsx(f.oZ,{url:t,title:"",subTitle:t,onEdit:r,onUnlink:()=>es9(n)})}function es3(e){let{media:t,editor:n,onEditMediaLink:r}=e;return"ImageLink"===t.__TYPE__?zE.jsx(f.Qi,{url:t.url,title:t.name,subTitle:`${t.width} x ${t.height} pixels`,onEdit:r,onUnlink:()=>es9(n)}):"FileLink"===t.__TYPE__?zE.jsx(f.oZ,{url:t.url,title:t.name,subTitle:function(e){let{filename:t}=e,n=t.split(".").pop();return n?n.toLowerCase():""}({filename:t.name}),onEdit:r,onUnlink:()=>es9(n),largeIconName:"insertDriveFile"}):null}function es9(e){esY(e=>e.unsetLink())(e)}function es4(e){let{open:t}=e,{onOpenChange:n,onSelectDocument:r}=function(e){let{editor:t,setOpen:n}=e;function r(e){n(e)}return{onSelectDocument:function(e){esY(t=>t.extendMarkRange(NW.RichTextNodeType.hyperlink).setDocumentLink({id:e}))(t),n(!1)},onOpenChange:r}}(e);return zE.jsx(Ga,{open:t,onOpenChange:n,onSelectDocument:r})}function es7(e){let{open:t}=e,{onOpenChange:n,onMediaSelected:r}=function(e){let{editor:t,setOpen:n}=e;return{onMediaSelected:function(e){esY(t=>t.extendMarkRange(NW.RichTextNodeType.hyperlink).setMediaLink({media:e}))(t),n(!1)},onOpenChange:n}}(e);return zE.jsx(Jw,{open:t,onOpenChange:n,onMediaSelected:r,assetType:"all"})}function es8(e){let{open:t}=e,{url:n,setUrl:r,onOpenChange:i,onKeyDown:o,openInNewTab:a,setOpenInNewTab:u,onSetUrl:s,selectionUrl:d,selectionUrlTitle:p}=function(e){var t;let{editor:n,setOpen:r}=e,[i,o]=(0,c.useState)(""),[a,u]=(0,c.useState)(!1),s=function(e){let t=e.getAttributes(NW.RichTextNodeType.hyperlink);return t.href?t.href:void 0}(n),d=(t=n,"_blank"===t.getAttributes(NW.RichTextNodeType.hyperlink).target);(0,c.useEffect)(()=>{o(s??"")},[s]),(0,c.useEffect)(()=>{u(d??!1)},[d]);let f=s?(0,l.ju)(s):void 0,p=f?(0,l.S$)(f):"";function A(e){let t=a?"_blank":"_self";esY(n=>n.extendMarkRange(NW.RichTextNodeType.hyperlink).setWebLink({href:e,target:t}))(n),r(!1)}return{url:i,setUrl:o,onSetUrl:A,selectionUrl:s,selectionUrlTitle:p,openInNewTab:a,selectionOpenInNewTab:d,setOpenInNewTab:u,onKeyDown:function(e){"Enter"===e.key&&A(i)},onOpenChange:function(e){o(""),u(!1),r(e)}}}(e);return zE.jsx(f.Vq,{open:t,onOpenChange:i,hasClose:!1,size:"small",children:zE.jsx(f.cZ,{children:zE.jsxs(f.xu,{flexDirection:"column",children:[zE.jsxs(f.xu,{flexDirection:"column",height:"100%",padding:16,gap:4,children:[zE.jsx(f.yt,{value:n,onValueChange:r,placeholder:"Paste URL",icon:"public",onKeyDown:o}),d&&zE.jsxs(f.xu,{flexDirection:"column",padding:{top:8},gap:4,children:[zE.jsx(f.xv,{variant:"smallBold",color:"grey11",children:"Linked to"}),zE.jsxs(f.xu,{backgroundColor:"grey4",borderRadius:6,padding:8,alignItems:"center",gap:8,children:[zE.jsx(f.pI,{largeIconName:"public",smallIconName:"link"}),zE.jsxs(f.xu,{flexDirection:"column",children:[zE.jsx(f.xv,{variant:"bold",color:"grey12",children:p}),zE.jsx(f.xv,{color:"grey11",variant:"small",children:"Web page"})]})]})]})]}),n&&zE.jsxs(f.xu,{flexDirection:"column",padding:{block:8},border:{top:!0},children:[zE.jsx(f.UN,{onSelect:()=>u(!a),icon:a?"checkBox":"checkBoxOutlinedBlank",textContent:"Open in new tab"}),zE.jsx(f.UN,{onSelect:()=>s(n),icon:"link",textContent:"Link to URL"})]})]})})})}function ele(e){let{items:t,editor:n}=e;return 0===t.length?null:zE.jsxs(zE.Fragment,{children:[zE.jsx(f.Jf,{}),zE.jsx(f.dV,{onValueChange(e){t.forEach(t=>{(t.isActive(n)&&!e.includes(t.nodeType)||!t.isActive(n)&&e.includes(t.nodeType))&&t.runCommands(n)})},type:"multiple",value:t.filter(e=>e.isActive(n)).map(e=>e.nodeType),children:t.map(e=>zE.jsx(f.nG,{disabled:!e.runCommands(n,{can:!0}),startIcon:e.icon,value:e.nodeType},e.nodeType))},"mark")]})}function elt(e){var t;let{items:n,editor:r}=e;return 0===n.length?null:zE.jsxs(f.h_,{children:[zE.jsx(f.$F,{disabled:1===n.length,children:zE.jsx(f.zx,{endIcon:"arrowDropDown",size:"small",color:"grey",children:(null==(t=n.find(e=>e.isActive(r)))?void 0:t.text)??""})}),zE.jsx(f.AW,{align:"start",asPortal:!1,maxHeight:256,avoidCollisions:!1,children:n.map(e=>zE.jsx(f.Xi,{onSelect(){e.runCommands(r)},children:e.text},e.nodeType))})]})}function eln(e){return{duration:100,hideOnClick:!0,offset:e,placement:"top-start",zIndex:30}}function elr(e){let{editor:t,nodeTypes:n,labels:r}=e,[i,o]=(0,c.useState)(),a=n.includes(NW.RichTextNodeType.hyperlink),u=!i,{shouldShowBubbleMenu:s,shouldshowPopover:l}=function(e){let{editor:t}=e;return{shouldShowBubbleMenu:function(e){let{view:n,state:r,from:i,to:o}=e;if(!n.hasFocus())return!1;let{doc:a,selection:u}=r;return!(t.isActive(NW.RichTextNodeType.preformatted)||u.empty||0===a.textBetween(i,o).length)},shouldshowPopover:function(e,t){let{view:n,state:r,from:i,to:o}=e,a=n.state.doc.nodeAt(i),{doc:u,selection:s}=r;return!!s.empty&&!(u.textBetween(i,o).length>0)&&!!(null!=a&&a.marks.some(e=>e.type.name===t))}}}({editor:t}),[d,f]=(0,c.useState)(!0);return(0,c.useEffect)(()=>{f(!1)},[]),d?null:zE.jsxs(zE.Fragment,{children:[zE.jsx(eow,{editor:t,tippyOptions:eln([-48,0]),shouldShow:s,children:u&&zE.jsx(eli,{editor:t,nodeTypes:n,labels:r,setModal:o})}),zE.jsx(eow,{editor:t,tippyOptions:eln([-48,0]),shouldShow:e=>l(e,"hyperlink"),children:u&&zE.jsx(es2,{editor:t,onEditWebLink:()=>o("webLink"),onEditDocumentLink:()=>o("documentLink"),onEditMediaLink:()=>o("mediaLink")})}),zE.jsx(eow,{editor:t,tippyOptions:eln([0,0]),shouldShow:e=>l(e,"label"),children:zE.jsx(esX,{editor:t})}),a&&zE.jsxs(zE.Fragment,{children:[zE.jsx(es8,{open:"webLink"===i,setOpen:function(e){o(e?"webLink":void 0)},editor:t}),zE.jsx(es4,{open:"documentLink"===i,setOpen:function(e){o(e?"documentLink":void 0)},editor:t}),zE.jsx(es7,{open:"mediaLink"===i,setOpen:function(e){o(e?"mediaLink":void 0)},editor:t})]})]})}function eli(e){let{editor:t,nodeTypes:n,labels:r,setModal:i}=e,o=n.includes("hyperlink"),a=r.length>0,u=esZ(esQ,n),s=esZ(esV,n),l=esZ(esz,n),c=u.length+s.length+l.length+Number(o);return 0===c?null:zE.jsxs(f.o8,{children:[zE.jsx(elt,{items:u,editor:t}),a&&zE.jsx(esG,{labels:r,editor:t}),zE.jsx(ele,{items:s,editor:t}),o&&zE.jsx(es0,{editor:t,setModal:i}),zE.jsx(esJ,{items:l,editor:t}),c>1&&zE.jsxs(zE.Fragment,{children:[zE.jsx(f.Jf,{}),zE.jsx(f.hA,{onClick(){t.chain().focus().clearNodes().unsetAllMarks().run()},startIcon:"formatClear"},"clear")]})]})}function elo(e){var t;let{content:n,field:r,id:i,readOnly:o}=e,a=function(e){var t,n;let r=`${(null==(t=e.config)?void 0:t.multi)??""}-${(null==(n=e.config)?void 0:n.single)??""}`;return(0,c.useMemo)(()=>{var t,n;let{extensions:r,defaultTextConverter:i}=function(e){var t;if(!e||!(null!=e&&e.single)&&!(null!=e&&e.multi))return eoY();let n=function(e){let t=(e.single||e.multi||"").split(/\s*,\s*/).map(e=>{let t=NW.RichTextNodeTypeCodec.decode(e);return"Right"===t._tag?t.right:void 0}).filter(h.$);return new Set(t)}(e);if(!(null!=n&&n.size))return eoY();let r=(t=n,esq(t).filter(e=>(0,v.G)(t,t=>e.richTextNodeTypes.includes(t)))),i=function(e){let t=new Set(e);return(0,v.G)(t,eoQ)&&t.add(euX),(0,v.G)(t,eoD)||t.add(euX),[...t]}(r);return{extensions:i,defaultTextConverter:function(e){let t=e.find(eoD)??euX;return function(e){return n=>t.converter.fromPrismic(e)({...n,type:t.richTextNodeTypes[0]??"heading1"})}}(i)}}(e.config),o=r.filter(ela),a=r.flatMap(e=>e.richTextNodeTypes),u=r.map(e=>e.component),s=r.filter(elu).map(e=>e.name),l=[...u,...function(e,t){var n,r,i;let o=t.map(e=>e.richTextNodeTypes).flat(),a={placeholderByNodeType:(i=t,i.reduce((e,t)=>(t.nodeType===eoP.Text&&(e[t.name]=t.placeholder),e),{})),unfocusedPlaceholder:null==(n=e.config)?void 0:n.placeholder,nodeExtensions:t},u=o.includes(NW.RichTextNodeType.orderedList)||o.includes(NW.RichTextNodeType.list);return[eo4.component((null==(r=e.config)?void 0:r.single)===void 0),euz.component,ean.component,eai(a),u?eo6.component:void 0,eu6.configure({nodeTypes:o})].filter(h.$)}(e,o),euH.configure({supportedExtensionNames:s}),erF],c=l.map(e=>e.name),d=function(e,t){let n=etJ.resolve(e);return etP(n,void 0)}(l),f=(n=null==(t=e.config)?void 0:t.labels,Array.from(n??[]));return{allComponents:l,extensionNames:c,defaultTextConverter:i,nodeExtensions:o,names:a,schema:d,labels:f}},[r])}(r),u=n&&eo4.converter(a.nodeExtensions).fromPrismic(a.schema,null==(t=a.defaultTextConverter)?void 0:t.call(a,a.schema))(n),s=(0,p.R9)(e.onContentChange),l=(0,f.jE)({content:null==u?void 0:u.toJSON(),editable:!o,editorProps:{attributes:{class:`${f.rk} ${f.bN}`,id:i,tabIndex:"0"}},extensions:a.allComponents,injectCSS:!1,onUpdate({editor:e}){if(e.isEmpty)return s(void 0);let t=eo4.converter(a.nodeExtensions).toPrismic(e.state.doc);s(t)}},[a,o]);return zE.jsxs(f.gN,{children:[zE.jsx(f.Qy,{htmlFor:i,children:Z4(r)}),zE.jsxs(f.JO,{children:[l.isEditable&&zE.jsx(elr,{editor:l,nodeTypes:a.names.concat(euY),labels:a.labels}),zE.jsx(eob,{editor:l,style:{flexGrow:1}})]})]})}function ela(e){return e.extType===eoB.Node}function elu(e){return!(e.extType!==eoB.Node||e.nodeType!==eoP.Text||e.lockedFormat)}function els(e){var t,n,r,i,o;let{content:a,field:u,id:s,onContentChange:l,readOnly:c}=e,d=Z7(u),p=(r=u,(null==(i=r.config)?void 0:i.default_value)===void 0||null==(o=r.config.options)?void 0:o[0]),A=(null==a?void 0:a.value)??p;return zE.jsxs(f.gN,{children:[zE.jsx(f.fw,{name:"arrowDropDownCircle"}),zE.jsx(f.Qy,{htmlFor:s,children:Z4(u)}),zE.jsx(f.JO,{children:zE.jsx(f.Ph,{id:s,size:"large",color:"grey",value:A,renderTrigger:()=>zE.jsx(f.JF,{id:s,placeholder:d}),onValueChange(e){var t;c||l((t=e,0===t.length?void 0:{__TYPE__:"FieldContent",type:"Select",value:t}))},children:null==(n=null==(t=u.config)?void 0:t.options)?void 0:n.map(e=>zE.jsx(f.Ql,{value:e,children:e},e))})})]})}function ell(e){let{id:t,readOnly:n,field:r,content:i,onContentChange:o}=e,a=null!=i&&i.value?(0,A._O)(i.value):void 0;return zE.jsxs(f.gN,{children:[zE.jsx(f.fw,{name:"event"}),zE.jsx(f.Qy,{id:t,children:Z4(r)}),zE.jsx(f.JO,{children:zE.jsx(f.xu,{padding:{left:4,right:12},width:"100%",flexDirection:"column",justifyContent:"center",children:zE.jsx(f.Wr,{mode:"date-time","aria-labelledby":t,disabled:n,value:a,onValueChange:e=>o(function(e){if(e)return{__TYPE__:"FieldContent",type:"Timestamp",value:function(e){let t=`${e.getUTCFullYear()}`.padStart(4,"0"),n=`${e.getUTCMonth()+1}`.padStart(2,"0"),r=`${e.getUTCDate()}`.padStart(2,"0"),i=`${e.getUTCHours()}`.padStart(2,"0"),o=`${e.getUTCMinutes()}`.padStart(2,"0");return`${t}-${n}-${r}T${i}:${o}:00+00:00`}(e)}}(e))})})})]})}function elc(e){let{id:t,readOnly:n,content:r,nestableWidget:i}=e,o=(0,p.R9)(e.onContentChange);return(0,c.useMemo)(()=>{let e={id:t,readOnly:n,onContentChange:o};return"Boolean"===i.type?zE.jsx(Z8,{...e,field:i,content:R.isBooleanContent(r)?r:void 0}):"Date"===i.type?zE.jsx(Jt,{...e,field:i,content:R.isDateContent(r)?r:void 0}):"Timestamp"===i.type?zE.jsx(ell,{...e,field:i,content:R.isTimestampContent(r)?r:void 0}):"Image"===i.type?zE.jsx(JF,{...e,field:i,content:R.isImageContent(r)?r:void 0}):"Link"===i.type?zE.jsx(Gy,{...e,field:i,content:R.isLinkContent(r)?r:void 0}):"Number"===i.type?zE.jsx(GC,{...e,field:i,content:R.isNumberContent(r)?r:void 0}):"StructuredText"===i.type?zE.jsx(elo,{...e,field:i,content:R.isRichTextContent(r)?r:void 0}):"Select"===i.type?zE.jsx(els,{...e,field:i,content:R.isSelectContent(r)?r:void 0}):"Text"===i.type?zE.jsx(J0,{...e,field:i,content:R.isTextContent(r)?r:void 0}):"Embed"===i.type?zE.jsx(Jd,{...e,field:i,content:R.isEmbedContent(r)?r:void 0}):"Color"===i.type?zE.jsx(Je,{...e,field:i,content:R.isColorContent(r)?r:void 0}):"GeoPoint"===i.type?zE.jsx(Jm,{...e,field:i,content:R.isGeoPointContent(r)?r:void 0}):"IntegrationFields"===i.type?zE.jsx(JX,{...e,field:i,content:R.isIntegrationFieldContent(r)?r:void 0}):null},[r,t,i,o,n])}function eld(e){let{id:t,title:n,addItemButtonTitle:r,content:i,onContentChange:o,readOnly:a,repeatable:u=!0,repeatableZone:s}=e,l=Object.entries(s),d=i??[elp];!u&&d.length>1&&(d=d.slice(0,1));let p=(0,c.useRef)(new WeakMap),{registerItemKey:A}=function(e,t){let n=(0,c.useRef)(t);if(n.current&&t.every(t=>!e.has(t)))for(let r=0;r<t.length;r++){let i=n.current[r],o=t[r];i&&o&&elf(e,i,o)}function a(t){e.has(t)||e.set(t,(0,S.d)().toString())}return n.current=t,t.forEach(a),{registerItemKey:a}}(p.current,d),{expand:h,accordionProps:m}=(0,f.As)({type:"single",defaultExpanded:d[0]?[y(d[0])]:[]});function y(e){return p.current.get(e)??"!bugged!"}function v(e){let{index:t,offset:n}=e;o((0,g.pB)(d,t,t+n))}function x(e){let{index:t}=e;o((0,g.$E)(d,t))}return 0===Object.keys(s).length?null:zE.jsx(f.ZA,{title:n??"Repeatable zone",addItemButtonTitle:r??"Add item in repeatable zone",items:d,maxItems:u?void 0:1,getItemKey:y,onAddItem:function(){let e=elA();A(e),h(y(e)),o(d.concat(e))},accordionType:m.type,expanded:m.expanded,onExpandedChange:m.onExpandedChange,children(e,n){let r=new Map(e.value),i=y(e);return zE.jsx(f.En,{keepLoaded:!0,children:zE.jsx(f.MN,{index:n,title:`${n+1} • Item`,accordionValue:i,onMove:v,onDelete:x,children:l.map(([u,s])=>{let l=r.get(u),c=R.isNestableContent(l)?l:void 0;return zE.jsx(elc,{id:`${t}[${i}].${u}`,content:c,nestableWidget:s,onContentChange:t=>(function(e,t,n,r){let i=function(e,t){let[n,r]=t;if(!r){let i=e.value.filter(([e])=>e!==n);return elA(i)}let o=Array.from(new Map(e.value).set(n,r));return elA(o)}(e,[n,r]),a=function(e,t){let[n,r]=t;return r?e.map((e,t)=>t===n?r:e):e.filter((e,t)=>t!==n)}(d,[t,i]);elf(p.current,e,i),o(a)})(e,n,u,t),readOnly:a},u)})})})}})}function elf(e,t,n){let r=e.get(t);void 0!==r&&e.set(n,r)}let elp={__TYPE__:"GroupItemContent",value:[]};function elA(e=[]){return{__TYPE__:"GroupItemContent",value:e}}function elh(e){var t,n;let{group:r,content:i,onContentChange:o,...a}=e;return zE.jsx(eld,{...a,title:elm(r),addItemButtonTitle:`Add item in "${elm(r)}"`,repeatable:(null==(t=r.config)?void 0:t.repeat)!==!1,repeatableZone:(null==(n=r.config)?void 0:n.fields)??{},content:null==i?void 0:i.value,onContentChange(e){o({__TYPE__:"GroupContentType",value:e})}})}function elm(e){var t;return(null==(t=e.config)?void 0:t.label)??e.fieldset??e.type}function elg(e){let{id:t,readOnly:n,content:r,slicePrimaryWidget:i}=e,o=(0,p.R9)(e.onContentChange);return(0,c.useMemo)(()=>{let e={id:t,readOnly:n,onContentChange:o};return"Group"===i.type?zE.jsx(elh,{...e,group:i,content:R.isGroupContent(r)?r:void 0}):zE.jsx(elc,{...e,nestableWidget:i,content:R.isNestableContent(r)?r:void 0})},[r,t,i,o,n])}function ely(e){let{content:t,id:n,slicePrimaryZone:r,onContentChange:i,readOnly:o}=e,a=(0,c.useMemo)(()=>Object.entries(r),[r]);return zE.jsx(zE.Fragment,{children:a.map(([e,r])=>{let a=t[e];return zE.jsx(elg,{id:`${n}.${e}`,readOnly:o,slicePrimaryWidget:r,content:R.isSlicePrimaryContent(a)?a:void 0,onContentChange(n){var r,o,a;i((r=t,o=e,a=n,a?{...r,[o]:a}:(0,d.ud)(r,o)))}},e)})})}function elv(e){var t,n,r,i;let{config:o,content:a,sliceKey:u,readOnly:s=!1,sharedSlice:l,onContentChange:d,...p}=e,A=(t=l,n=a.variation,(0,c.useMemo)(()=>t.variations.find(e=>e.id===n),[t,n])),h=(0,c.useId)(),m={id:p.id??h,readOnly:s},{selected:g,selectionId:y,selection:v}=function(e){let{sliceKey:t}=e||{},n=(0,c.useContext)(Z9),r=function(e,t){if(t)return`${e}___${t}`}("sliceFieldSet",t),i=t===(null==n?void 0:n.id);return{selectionId:r,selected:i,selection:n}}({sliceKey:u});return void 0===A?null:zE.jsx(zK.Provider,{value:o,children:zE.jsx(f.C3,{id:y,selected:g,onFocus:function(){u&&v.update("sliceFieldSet",u)},legend:(r=l,i=A,[r.name,i.name].join(" • ")),children:zE.jsxs(f.En,{heightEstimate:400,gap:16,keepLoaded:!0,children:[zE.jsx(ely,{...m,slicePrimaryZone:A.primary??{},content:a.primary,onContentChange(e){d({...a,primary:e})}}),zE.jsx(eld,{...m,repeatableZone:A.items??{},content:a.items,onContentChange(e){d({...a,items:e})}})]})})})}}}]);
|