slice-machine-ui 2.18.1-beta.7 → 2.18.1

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.
Files changed (63) hide show
  1. package/out/404.html +1 -1
  2. package/out/_next/static/{Zy4opMpDS8I-mxQ1kA3m2 → JnNsFjiOtQSOKhLcOb3-p}/_buildManifest.js +1 -1
  3. package/out/_next/static/chunks/{248-43faecb386a16518.js → 248-a9c33f7fbe2da2f1.js} +1 -1
  4. package/out/_next/static/chunks/34-50c64778da33cff6.js +1 -0
  5. package/out/_next/static/chunks/429-aab52070cad2884b.js +3 -0
  6. package/out/_next/static/chunks/{489-234ed5471aa694b3.js → 489-a046ae0fa4f74435.js} +1 -1
  7. package/out/_next/static/chunks/{630-bb6e3db525588f16.js → 630-eae75e90b30f201a.js} +1 -1
  8. package/out/_next/static/chunks/pages/{_app-64feff311539f17b.js → _app-1b4541325b4a29ab.js} +40 -40
  9. package/out/_next/static/chunks/pages/{changelog-ba55ed247c20dc21.js → changelog-3901f2fc937d9648.js} +1 -1
  10. package/out/_next/static/chunks/pages/changes-c58a60af39167147.js +1 -0
  11. package/out/_next/static/chunks/pages/{labs-78ac01d97ab02cd7.js → labs-dd04033db23a58f3.js} +1 -1
  12. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/{simulator-b127d948a17968d3.js → simulator-f237aaa755dc9a99.js} +1 -1
  13. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/{[variation]-da423aa0da7bc11e.js → [variation]-c8c3e7ffb898261c.js} +1 -1
  14. package/out/_next/static/chunks/pages/{slices-59b857edc9f72d5f.js → slices-0aaae79dcc7b8c55.js} +1 -1
  15. package/out/changelog.html +1 -1
  16. package/out/changes.html +1 -1
  17. package/out/custom-types/[customTypeId].html +1 -1
  18. package/out/custom-types.html +1 -1
  19. package/out/index.html +1 -1
  20. package/out/labs.html +1 -1
  21. package/out/page-types/[pageTypeId].html +1 -1
  22. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  23. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  24. package/out/slices.html +1 -1
  25. package/package.json +4 -5
  26. package/src/features/auth/LogoutButton.tsx +42 -36
  27. package/src/features/builder/fields/contentRelationship/ContentRelationshipFieldPicker.tsx +3 -3
  28. package/src/features/changes/StatusBadge.tsx +1 -9
  29. package/src/features/customTypes/customTypesBuilder/PageSnippetDialog/PageSnippetDialog.tsx +3 -3
  30. package/src/features/customTypes/customTypesTable/CustomTypesTablePage.tsx +3 -3
  31. package/src/features/environments/actions/useSetEnvironment.ts +22 -0
  32. package/src/features/environments/useActiveEnvironment.ts +17 -9
  33. package/src/features/environments/useEnvironments.ts +11 -8
  34. package/src/features/errorBoundaries/AppStateErrorBoundary.tsx +108 -0
  35. package/src/{ErrorBoundary.tsx → features/errorBoundaries/DefaultErrorBoundary.tsx} +2 -2
  36. package/src/features/errorBoundaries/index.ts +2 -0
  37. package/src/features/labs/labsList/LabsPage.tsx +3 -3
  38. package/src/features/navigation/Navigation.tsx +7 -8
  39. package/src/features/slices/sliceBuilder/FloatingBackButton.tsx +3 -3
  40. package/src/features/sync/AutoSyncProvider.tsx +2 -2
  41. package/src/features/sync/getUnSyncChanges.ts +1 -3
  42. package/src/legacy/components/AppLayout/index.tsx +10 -85
  43. package/src/legacy/components/ChangesEmptyState/UnauthenticatedView.tsx +31 -0
  44. package/src/legacy/components/ChangesEmptyState/index.ts +1 -1
  45. package/src/legacy/components/ChangesItems/ChangesItems.tsx +3 -3
  46. package/src/legacy/components/LoginModal/index.tsx +14 -6
  47. package/src/legacy/components/Navigation/ChangesItem.tsx +2 -6
  48. package/src/legacy/components/Navigation/Environment.tsx +2 -7
  49. package/src/legacy/components/Navigation/SideNavEnvironmentSelector/SideNavEnvironmentSelector.tsx +3 -8
  50. package/src/legacy/components/Simulator/index.tsx +3 -3
  51. package/src/legacy/lib/builders/CustomTypeBuilder/TabZone/index.tsx +3 -3
  52. package/src/modules/userContext/index.ts +5 -5
  53. package/src/modules/userContext/types.ts +2 -3
  54. package/src/pages/_app.tsx +93 -95
  55. package/src/pages/changes.tsx +4 -5
  56. package/src/queryClient.tsx +24 -0
  57. package/test/__testutils__/index.tsx +13 -10
  58. package/out/_next/static/chunks/157-fa8b348c960c8283.js +0 -3
  59. package/out/_next/static/chunks/34-8d9d9b2944824750.js +0 -1
  60. package/out/_next/static/chunks/pages/changes-4c23263cdc8e59c6.js +0 -1
  61. package/src/features/environments/actions/setEnvironment.ts +0 -18
  62. package/src/legacy/components/ChangesEmptyState/AuthErrorPage.tsx +0 -44
  63. /package/out/_next/static/{Zy4opMpDS8I-mxQ1kA3m2 → JnNsFjiOtQSOKhLcOb3-p}/_ssgManifest.js +0 -0
@@ -1,3 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[157],{15952:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(74982),u=e(23535),o=e(73985),a=e(79687),c=e(81542),f=r.__importDefault(e(3758)),l=/(\w+)\[\d+]/;function p(t){let n={id:t.id,type:t.typ,lang:t.language};return t.uid?{...n,uid:t.uid}:n}function d(t){return(n,e)=>{if(!(0,i.isEmptyContent)(n))return(0,i.isUIDContent)(n)?c.UIDRenderer.renderV1(n):((0,i.isGroupContent)(n)||(0,i.isRepeatableContent)(n)||(0,i.isNestableContent)(n))&&!i.EmptyContent.is(n)?(0,c.StaticWidgetRenderer)(t).renderV1(n,o.Fetch.extractGroupOrFieldIfAny(e)):(0,f.default)(t).renderV1(n,o.Fetch.extractSliceFetchIfAny(e))}}function s(t){return(n,e,r)=>(0,i.isSlicesContent)(e)&&"Slices"===n.type?(0,f.default)(t).renderV2(n,e,o.Fetch.extractSliceFetchIfAny(r)):(0,i.isGroupContent)(e)&&"Group"===n.type?(0,c.StaticWidgetRenderer)(t).renderV2(n,e,o.Fetch.extractGroupOrFieldIfAny(r)):(0,i.isUIDContent)(e)&&"UID"===n.type?c.UIDRenderer.renderV2(n,e):(0,i.isNestableContent)(e)&&u.NestableWidget.is(n)?(0,c.StaticWidgetRenderer)(t).renderV2(n,e,o.Fetch.extractGroupOrFieldIfAny(r)):h(t)(n)}function h(t){return n=>{switch(n.type){case"Choice":case"Slices":return(0,f.default)(t).renderDefault(n);case"UID":return;default:return(0,c.StaticWidgetRenderer)(t).renderDefault(n)}}}n.default=t=>({renderV1:(n,e,r,u,o,c,f,s,h)=>{var m,v;let g=(o[n.groupLangId]||[]).filter(t=>t.id!==n.id).map(t=>p(t)),y=((n,e,r)=>{let u={};for(let[n,o]of e)if(!(0,i.isUIDContent)(o)){let e=n.match(l),i=e&&e[1],a=i?e[1]:n,c=i?u[a]:void 0;if(void 0!==r){let e=r.fields[n];void 0!==e&&(i?u[a]=Array.isArray(c)?[...c,d(t)(o,e)]:[d(t)(o,e)]:u[a]=d(t)(o,e))}else i?u[a]=Array.isArray(c)?[...c,d(t)(o,void 0)]:[d(t)(o,void 0)]:u[a]=d(t)(o,void 0)}return{[n.type]:u}})(n,e,h);return{id:n.id,uid:null!==(m=n.data.uid)&&void 0!==m?m:null,url:null!==(v=t.LinkResolver.buildUrl({linkResolver:s,pageType:n.type,masterLang:r,brokenRoute:f,doc:n}))&&void 0!==v?v:null,type:n.type,href:t.urlRewriter.enforceCDN(u),tags:n.tags,first_publication_date:n.first_publication_date?(0,a.formatDateTime)(n.first_publication_date):null,last_publication_date:n.last_publication_date?(0,a.formatDateTime)(n.last_publication_date):null,slugs:n.data.slugs,linked_documents:[],lang:n.language,alternate_languages:g,data:y,...c?n.metadata:{}}},renderWidgetV1:d(t),renderWidgetV2:s(t),renderV2:(n,e,r,u,o,c,f,d,m,v)=>{var g,y;let b=Object.entries(n.fields).map(([n,e])=>{if("UID"===e.type)return;let r=u.find(([t])=>t===n),o=null==v?void 0:v.fields[n],a=n.match(l),c=!!(a&&a[1]),f=c?a[1]:n;if(r){let[,n]=r;return(0,i.isUIDContent)(n)?void 0:void 0===v||void 0!==o?[f,s(t)(e,n,o),c]:void 0}return void 0===v||void 0!==o?[f,h(t)(e),c]:void 0}).reduce((t,n)=>{if(n){let[e,r,i]=n;if(i){let n=t[e];if(n){if(Array.isArray(n))return{...t,[e]:[...n,r]};throw Error(`[UNEXPECTED ERROR] ${JSON.stringify(n)} should be an Array`)}return{...t,[e]:[r]}}return{...t,[e]:r}}return t},{}),_=(c[e.groupLangId]||[]).filter(t=>t.id!==e.id).map(t=>p(t));return{id:e.id,uid:null!==(g=e.data.uid)&&void 0!==g?g:null,url:null!==(y=t.LinkResolver.buildUrl({linkResolver:m,pageType:e.type,masterLang:r,brokenRoute:d,doc:e}))&&void 0!==y?y:null,type:e.type,href:t.urlRewriter.enforceCDN(o),tags:e.tags,first_publication_date:e.first_publication_date?(0,a.formatDateTime)(e.first_publication_date):null,last_publication_date:e.last_publication_date?(0,a.formatDateTime)(e.last_publication_date):null,slugs:e.data.slugs,linked_documents:[],lang:e.language,alternate_languages:_,data:b,...f?e.metadata:{}}},renderMocks:(n,e)=>{let r=e.reduce((t,[,n])=>{if(i.UIDContent.is(n))return n.value},void 0),o=Object.entries(n.fields).map(([n,r])=>{var o;if("UID"===r.type)return;let a=e.find(([t])=>t===n),p=n.match(l),d=!!(p&&p[1]),s=d?p[1]:n;return a?[s,"SliceContentType"===(o=a[1]).__TYPE__&&"Slices"===r.type?(0,f.default)(t).renderMocks(r,o):(0,i.isGroupContent)(o)&&"Group"===r.type?(0,c.StaticWidgetRenderer)(t).renderMocks(r,o):(0,i.isNestableContent)(o)&&u.NestableWidget.is(r)?(0,c.StaticWidgetRenderer)(t).renderMocks(r,o):h(t)(r),d]:[s,h(t)(r),d]}).reduce((t,n)=>{if(n){let[e,r,i]=n;if(i){let n=t[e];if(n){if(Array.isArray(n))return{...t,[e]:[...n,r]};throw Error(`[UNEXPECTED ERROR] ${JSON.stringify(n)} should be an Array`)}return{...t,[e]:[r]}}return{...t,[e]:r}}return t},{});return{id:"mock-doc-id",uid:r,url:r?`/${r}`:null,type:n.customTypeId,href:null,tags:[],first_publication_date:"1970-01-01T00:00:01+0000",last_publication_date:"1970-01-01T00:00:01+0000",slugs:[],linked_documents:[],lang:"en-us",alternate_languages:[],data:o}},renderDefaultWidget:h(t)})},88985:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.Utils=n.Models=n.DocumentRenderer=void 0;let r=e(22970);var i=e(15952);Object.defineProperty(n,"DocumentRenderer",{enumerable:!0,get:function(){return r.__importDefault(i).default}}),n.Models=r.__importStar(e(73985)),n.Utils=r.__importStar(e(79687)),r.__exportStar(e(81542),n)},59527:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.DocumentContent=void 0;let r=e(74982),i=e(74982),u=e(23535),o=e(87412);class a{constructor(t,n){Object.defineProperty(this,"fieldTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"widgets",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"slugs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"customType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parsed",{enumerable:!0,configurable:!0,writable:!0,value:{}});let{widgets:e,types:r,slugs:u,uid:o}=i.DocumentLegacy.extractMetadata(t);this.fieldTypes=r,this.slugs=u,this.uid=o,this.widgets=e,this.customType=n}getWidget(t){let n=this.parsed[t];if(n)return n;let e=this.widgets[t],i=(()=>{let n=(0,r.WidgetLegacy)((0,r.defaultCtx)(t,this.fieldTypes)).decode(e);if(!n||(0,o.isLeft)(n))return;if(!this.customType)return n.right;let i=this.customType.fields[t];return(0,r.isSlicesContent)(n.right)&&u.StaticSlices.is(i)?(0,r.traverseSlices)({path:[{key:this.customType.customTypeId,type:"CustomType"},{key:t,type:"Widget"}],key:t,model:i,content:n.right})({transformSlice:r.migrateSliceItem}):n.right})();if(i)return this.parsed[t]=i,i}parseAll(){let t=i.DocumentLegacy._codec(this.fieldTypes).decode(this.widgets),n=(0,o.isRight)(t)?t.right:{},e=this.customType?(0,r.migrateDocument)(n,this.customType):n;return this.parsed=e,e}}n.DocumentContent=a},53264:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.DocumentMetadata=void 0;let r=e(22970),i=e(35002),u=r.__importStar(e(87830)),o=u.exact(u.intersection([u.type({title:u.string,description:u.string}),u.partial({imageURL:(0,i.nullable)(u.string)})]));n.DocumentMetadata={empty:{title:"Untitled document",description:"",imageURL:void 0},codec:o}},72375:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.RelatedDocument=void 0;let r=e(22970).__importStar(e(87830));n.RelatedDocument=r.exact(r.intersection([r.type({typ:r.string,id:r.string,language:r.string,groupLangId:r.string}),r.partial({uid:r.union([r.string,r.null,r.undefined])})]))},27380:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.RelatedDocument=n.DocumentMetadata=n.DocumentContent=n.ApiDocumentCodec=n.GroupLangId=void 0;let r=e(22970),i=e(8597),u=e(9554),o=e(42275),a=r.__importStar(e(87830)),c=e(23284),f=e(2932),l=e(59527),p=e(53264);n.GroupLangId=a.string;let d=a.exact(a.intersection([a.type({id:a.string,version:a.string,type:a.string,groupLangId:n.GroupLangId,tags:a.array(a.string),data:a.UnknownRecord,language:a.string}),a.partial({first_publication_date:i.Function.nullable(i.DateFromStringOrNumber),last_publication_date:i.Function.nullable(i.DateFromStringOrNumber),metadata:(0,c.withFallback)(i.Function.nullable(p.DocumentMetadata.codec),p.DocumentMetadata.empty)})])),s=t=>(0,f.mapOutput)(d,n=>({id:n.id,version:n.version,type:n.type,groupLangId:n.groupLangId,tags:n.tags,data:new l.DocumentContent(n.data,t),language:n.language,first_publication_date:n.first_publication_date,last_publication_date:n.last_publication_date,metadata:n.metadata}));n.ApiDocumentCodec=t=>new a.Type("DocCodec",t=>s().is(t),(n,e)=>(0,o.pipe)(d.validate(n,e),u.either.chain(n=>{let e=t&&t.find(t=>t.customTypeId===n.type);return a.success(s(e).encode(n))})),t=>t);var h=e(59527);Object.defineProperty(n,"DocumentContent",{enumerable:!0,get:function(){return h.DocumentContent}});var m=e(53264);Object.defineProperty(n,"DocumentMetadata",{enumerable:!0,get:function(){return m.DocumentMetadata}});var v=e(72375);Object.defineProperty(n,"RelatedDocument",{enumerable:!0,get:function(){return v.RelatedDocument}})},15087:function(t,n){var e;Object.defineProperty(n,"__esModule",{value:!0}),n.ApiVersion=void 0,(e=n.ApiVersion||(n.ApiVersion={})).v1="v1",e.v2="v2",e.mocks="mocks"},43134:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.customParam=n.langParam=n.uidParam=n.staticParam=n.LinkResolver=n.Rule=void 0;let r=e(22970).__importStar(e(87830)),i=r.type({isOptional:r.boolean,name:r.string,type:r.literal("custom")}),u=r.type({isOptional:r.boolean,type:r.literal("uid")}),o=r.type({isOptional:r.boolean,type:r.literal("lang")}),a=r.union([i,u,o]),c=r.type({value:r.string,type:r.literal("static")}),f=r.union([c,a]),l=r.type({trailingSlash:r.boolean,params:r.array(f)}),p=r.type({customTypeID:r.string,relationName:r.string,targetCustomTypeID:r.string}),d=r.record(r.string,r.array(p));n.Rule=r.type({pattern:l,resolvers:d}),n.LinkResolver=r.record(r.string,r.record(r.string,r.record(r.string,n.Rule))),n.staticParam=function(t){return{value:t,type:"static"}},n.uidParam=function(t){return{isOptional:t,type:"uid"}},n.langParam=function(t){return{isOptional:t,type:"lang"}},n.customParam=function(t,n){return{name:t,isOptional:n,type:"custom"}}},44273:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.CustomTypeDef=void 0;let r=e(22970),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=e(78771),c=o.strict({id:o.string,definitions:o.array(a.WidgetDef)});n.CustomTypeDef=new o.Type("CustomTypeDef",t=>"object"==typeof t&&null!==t&&"customTypeId"in t,t=>(0,u.pipe)(c.decode(t),i.either.map(({id:t,definitions:n})=>({customTypeId:t,fields:n.reduce((t,{key:n,def:e})=>({...t,[n]:e}),{})}))),t=>t)},52908:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.GroupDef=n.NestedGroupDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=e(66106);function l(t,n){return new a.Type("GroupDef",n=>(0,c.isFieldDef)(n)&&t.is(n.def),t=>{let e=a.strict({name:a.string,fields:a.array(n)});return(0,o.pipe)(e.decode(t),u.either.map(({name:t,fields:n})=>({key:t,def:{type:"Group",config:{fields:n.reduce((t,n)=>({...t,[n.key]:n.def}),{})}}})))},t=>t)}n.NestedGroupDef=l(i.NestedGroup,f.NestableDef),n.GroupDef=l(i.Group,a.union([f.NestableDef,n.NestedGroupDef]))},52144:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.UIDDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({uid:a.string});n.UIDDef=new a.Type("UID",t=>(0,c.isFieldDef)(t)&&i.UID.is(t.def),t=>(0,o.pipe)(f.decode(t),u.either.map(({uid:t})=>({key:t,def:{type:"UID"}}))),t=>t)},78771:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.WidgetDef=void 0;let r=e(22970).__importStar(e(87830)),i=e(52908),u=e(40646),o=e(68126),a=e(52144);n.WidgetDef=r.union([o.SlicesDef,i.GroupDef,a.UIDDef,u.NestableDef])},88476:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970);r.__exportStar(e(52908),n),r.__exportStar(e(40646),n),r.__exportStar(e(68126),n),r.__exportStar(e(52144),n),r.__exportStar(e(78771),n)},63868:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.BooleanDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({booleanField:a.string,config:a.strict({default_value:a.boolean})});n.BooleanDef=new a.Type("BooleanDef",t=>(0,c.isFieldDef)(t)&&i.BooleanField.is(t.def),t=>(0,o.pipe)(f.decode(t),u.either.map(({booleanField:t,config:n})=>({key:t,def:{type:"Boolean",config:n}}))),t=>t)},68294:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.ColorDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({color:a.string});n.ColorDef=new a.Type("ColorDef",t=>(0,c.isFieldDef)(t)&&i.Color.is(t.def),t=>(0,o.pipe)(f.decode(t),u.either.map(({color:t})=>({key:t,def:{type:"Color"}}))),t=>t)},43499:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.DateDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({date:a.string});n.DateDef=new a.Type("DateDef",t=>(0,c.isFieldDef)(t)&&i.Date.is(t.def),t=>(0,o.pipe)(f.decode(t),u.either.map(({date:t})=>({key:t,def:{type:"Date"}}))),t=>t)},56301:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.EmbedDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({embed:a.string});n.EmbedDef=new a.Type("EmbedDef",t=>(0,c.isFieldDef)(t)&&i.Embed.is(t.def),t=>(0,o.pipe)(f.decode(t),u.either.map(({embed:t})=>({key:t,def:{type:"Embed"}}))),t=>t)},24256:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.GeoPointDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({geopoint:a.string});n.GeoPointDef=new a.Type("GeoPointDef",t=>(0,c.isFieldDef)(t)&&i.GeoPoint.is(t.def),t=>(0,o.pipe)(f.decode(t),u.either.map(({geopoint:t})=>({key:t,def:{type:"GeoPoint"}}))),t=>t)},30245:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.ImageDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({image:a.string,config:a.strict({thumbnails:a.array(a.string)})});n.ImageDef=new a.Type("ImageDef",t=>(0,c.isFieldDef)(t)&&i.Image.is(t.def),t=>(0,o.pipe)(f.decode(t),u.either.map(({image:t,config:n})=>({key:t,def:{type:"Image",config:{thumbnails:n.thumbnails.map(t=>({name:t}))}}}))),t=>t)},30923:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.IntegrationFieldDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({integrationFields:a.string});n.IntegrationFieldDef=new a.Type("IntegrationFieldDef",t=>(0,c.isFieldDef)(t)&&i.IntegrationField.is(t.def),t=>(0,o.pipe)(f.decode(t),u.either.map(({integrationFields:t})=>({key:t,def:{type:"IntegrationFields"}}))),t=>t)},17914:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.defaultAnyLinkDef=n.AnyLinkDef=void 0;let r=e(22970),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=o.partial({select:o.union([o.literal("any"),o.null,o.undefined]),allowText:o.boolean,repeat:o.boolean,variants:o.array(o.string)});n.AnyLinkDef=new o.Type("AnyLinkDef",t=>"any"===t.select,t=>(0,u.pipe)(a.decode(t),i.either.map(t=>({...t,select:null}))),t=>t),n.defaultAnyLinkDef=function(t){return{select:null,allowText:!0,...t}}},64049:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.defaultDocumentLinkDef=n.DocumentLinkDef=void 0;let r=e(22970).__importStar(e(87830));n.DocumentLinkDef=r.intersection([r.strict({select:r.literal("document"),customtypes:r.readonlyArray(r.string)}),r.partial({allowText:r.boolean,repeat:r.boolean,variants:r.array(r.string)})]),n.defaultDocumentLinkDef=function(t){return{select:"document",customtypes:[],allowText:!0,...t}}},10599:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.defaultMediaLinkDef=n.MediaLinkDef=void 0;let r=e(22970).__importStar(e(87830));n.MediaLinkDef=r.intersection([r.strict({select:r.literal("media")}),r.partial({allowText:r.boolean,repeat:r.boolean,variants:r.array(r.string)})]),n.defaultMediaLinkDef=function(t){return{select:"media",allowText:!0,...t}}},49612:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.defaultWebLinkDef=n.WebLinkDef=void 0;let r=e(22970).__importStar(e(87830));n.WebLinkDef=r.intersection([r.strict({select:r.literal("web")}),r.partial({allowText:r.boolean,repeat:r.boolean,variants:r.array(r.string)})]),n.defaultWebLinkDef=function(t){return{select:"web",allowText:!0,...t}}},38207:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.isWebLinkDef=n.isDocumentLinkDef=n.isAnyLinkDef=n.isMediaLinkDef=n.defaultLink=n.LinkDef=void 0;let r=e(22970),i=e(44613),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=e(17914),l=e(64049),p=e(10599),d=e(49612),s=a.union([p.MediaLinkDef,l.DocumentLinkDef,d.WebLinkDef,f.AnyLinkDef]),h=a.strict({link:a.string,config:s});n.LinkDef=new a.Type("LinkDef",t=>(0,c.isFieldDef)(t)&&i.Link.is(t.def),t=>(0,o.pipe)(h.decode(t),u.either.map(({link:t,config:n})=>({key:t,def:{type:"Link",config:n}}))),t=>t),n.defaultLink=function(t,n){return{type:"Link",config:(()=>{switch(t){case"document":return(0,l.defaultDocumentLinkDef)(n);case"media":return(0,p.defaultMediaLinkDef)(n);case"web":return(0,d.defaultWebLinkDef)(n);case null:return(0,f.defaultAnyLinkDef)(n)}})()}},n.isMediaLinkDef=function(t){var n;return"Link"===t.type&&(null===(n=null==t?void 0:t.config)||void 0===n?void 0:n.select)==="media"},n.isAnyLinkDef=function(t){var n;return"Link"===t.type&&(null===(n=null==t?void 0:t.config)||void 0===n?void 0:n.select)===null},n.isDocumentLinkDef=function(t){var n;return"Link"===t.type&&(null===(n=null==t?void 0:t.config)||void 0===n?void 0:n.select)==="document"},n.isWebLinkDef=function(t){var n;return"Link"===t.type&&(null===(n=null==t?void 0:t.config)||void 0===n?void 0:n.select)==="web"},r.__exportStar(e(17914),n),r.__exportStar(e(64049),n),r.__exportStar(e(10599),n),r.__exportStar(e(49612),n)},66106:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.NestableDef=void 0;let r=e(22970).__importStar(e(87830)),i=e(63868),u=e(68294),o=e(43499),a=e(56301),c=e(24256),f=e(30245),l=e(30923),p=e(38207),d=e(56156),s=e(44135),h=e(36116),m=e(53335),v=e(8871),g=e(76128),y=e(58912),b=e(49437);n.NestableDef=r.union([i.BooleanDef,u.ColorDef,o.DateDef,a.EmbedDef,c.GeoPointDef,f.ImageDef,l.IntegrationFieldDef,d.NumberDef,s.RangeDef,h.RichTextDef,m.SelectDef,v.SeparatorDef,y.TextDef,b.TimestampDef,p.LinkDef,g.TableDef])},56156:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.NumberDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({number:a.string});n.NumberDef=new a.Type("NumberDef",t=>(0,c.isFieldDef)(t)&&i.Number.is(t.def),t=>(0,o.pipe)(f.decode(t),u.either.map(({number:t})=>({key:t,def:{type:"Number"}}))),t=>t)},44135:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.RangeDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({range:a.string});n.RangeDef=new a.Type("RangeDef",t=>(0,c.isFieldDef)(t)&&i.Range.is(t.def),t=>(0,o.pipe)(f.decode(t),u.either.map(({range:t})=>({key:t,def:{type:"Range"}}))),t=>t)},36116:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.RichTextDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({structuredtext:a.string});n.RichTextDef=new a.Type("RichTextDef",t=>(0,c.isFieldDef)(t)&&i.RichText.is(t.def),t=>(0,o.pipe)(f.decode(t),u.either.map(({structuredtext:t})=>({key:t,def:{type:"StructuredText"}}))),t=>t)},53335:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.SelectDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({select:a.string,config:a.strict({options:a.readonlyArray(a.string)})});n.SelectDef=new a.Type("SelectDef",t=>(0,c.isFieldDef)(t)&&i.Select.is(t.def),t=>(0,o.pipe)(f.decode(t),u.either.map(({select:t,config:n})=>({key:t,def:{type:"Select",config:n}}))),t=>t)},8871:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.SeparatorDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({separator:a.string});n.SeparatorDef=new a.Type("SeparatorDef",t=>(0,c.isFieldDef)(t)&&i.Separator.is(t.def),t=>(0,o.pipe)(f.decode(t),u.either.map(({separator:t})=>({key:t,def:{type:"Separator"}}))),t=>t)},76128:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.TableDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({table:a.string});n.TableDef=new a.Type("TableDef",t=>(0,c.isFieldDef)(t)&&i.Table.is(t.def),t=>(0,o.pipe)(f.decode(t),u.either.map(({table:t})=>({key:t,def:{type:"Table"}}))),t=>t)},58912:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.TextDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({text:a.string});n.TextDef=new a.Type("TextDef",t=>(0,c.isFieldDef)(t)&&i.Text.is(t.def),t=>(0,o.pipe)(f.decode(t),u.either.map(({text:t})=>({key:t,def:{type:"Text"}}))),t=>t)},49437:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.TimestampDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=a.strict({timestamp:a.string});n.TimestampDef=new a.Type("TimestampDef",t=>(0,c.isFieldDef)(t)&&i.Timestamp.is(t.def),t=>(0,o.pipe)(f.decode(t),u.either.map(({timestamp:t})=>({key:t,def:{type:"Timestamp"}}))),t=>t)},40646:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970);r.__exportStar(e(63868),n),r.__exportStar(e(68294),n),r.__exportStar(e(43499),n),r.__exportStar(e(56301),n),r.__exportStar(e(24256),n),r.__exportStar(e(30245),n),r.__exportStar(e(30923),n),r.__exportStar(e(38207),n),r.__exportStar(e(66106),n),r.__exportStar(e(56156),n),r.__exportStar(e(44135),n),r.__exportStar(e(36116),n),r.__exportStar(e(53335),n),r.__exportStar(e(8871),n),r.__exportStar(e(76128),n),r.__exportStar(e(58912),n),r.__exportStar(e(49437),n)},3094:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.CompositeSliceDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=e(52908),l=e(66106),p=a.strict({name:a.string,primary:a.array(l.NestableDef),items:f.NestedGroupDef});n.CompositeSliceDef=new a.Type("CompositeSliceDef",t=>(0,c.isFieldDef)(t)&&i.CompositeSlice.is(t.def),t=>(0,o.pipe)(p.decode(t),u.either.map(({name:t,primary:n,items:e})=>{var r;return{key:t,def:{type:"Slice","non-repeat":n.reduce((t,{key:n,def:e})=>({...t,[n]:e}),{}),repeat:null===(r=e.def.config)||void 0===r?void 0:r.fields}}})),t=>t)},58294:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.LegacySliceDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=e(52908),l=e(40646),p=a.type({name:a.string,widget:a.union([f.NestedGroupDef,l.NestableDef])});n.LegacySliceDef=new a.Type("LegacySliceDef",t=>(0,c.isFieldDef)(t)&&i.LegacySlice.is(t.def),t=>(0,o.pipe)(p.decode(t),u.either.map(({name:t,widget:n})=>({key:t,def:n.def}))),t=>t)},26669:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.SharedSliceDef=n.VariationDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=e(52908),l=e(66106),p=a.strict({id:a.string,primary:a.array(a.union([f.GroupDef,l.NestableDef])),items:a.array(l.NestableDef),version:a.string});n.VariationDef=new a.Type("VariationDef",t=>(0,c.hasType)(t)&&i.Variation.is(t),t=>(0,o.pipe)(p.decode(t),u.either.map(t=>({id:t.id,name:t.id,description:t.id,imageUrl:"",docURL:"",version:t.version,primary:t.primary.reduce((t,{key:n,def:e})=>({...t,[n]:e}),{}),items:t.items.reduce((t,{key:n,def:e})=>({...t,[n]:e}),{})}))),t=>t);let d=a.string,s=a.string,h=a.intersection([a.strict({name:a.string,variations:a.array(n.VariationDef)}),a.partial({legacyPaths:a.record(d,s)})]);n.SharedSliceDef=new a.Type("SharedSliceDef",t=>(0,c.isFieldDef)(t)&&i.SharedSlice.is(t.def),t=>(0,o.pipe)(h.decode(t),u.either.map(({name:t,variations:n,legacyPaths:e})=>({key:t,def:{id:t,name:t,type:"SharedSlice",variations:n,...e?{legacyPaths:e}:{}}}))),t=>t)},53531:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.SliceDef=void 0;let r=e(22970).__importStar(e(87830)),i=e(3094),u=e(58294),o=e(26669);n.SliceDef=r.union([o.SharedSliceDef,i.CompositeSliceDef,u.LegacySliceDef])},19183:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.SlicesDef=void 0;let r=e(22970),i=e(23535),u=e(9554),o=e(14632),a=r.__importStar(e(87830)),c=e(87956),f=e(53531),l=a.strict({name:a.string,slices:a.array(f.SliceDef)});n.SlicesDef=new a.Type("SlicesDef",t=>(0,c.isFieldDef)(t)&&i.StaticSlices.is(t.def),t=>(0,o.pipe)(l.decode(t),u.either.map(({name:t,slices:n})=>({key:t,def:{type:"Slices",config:{choices:n.reduce((t,{key:n,def:e})=>({...t,[n]:e}),{})}}}))),t=>t)},68126:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970);r.__exportStar(e(3094),n),r.__exportStar(e(58294),n),r.__exportStar(e(26669),n),r.__exportStar(e(53531),n),r.__exportStar(e(19183),n)},32548:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970);r.__exportStar(e(44273),n),r.__exportStar(e(88476),n),r.__exportStar(e(87956),n)},87956:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.hasType=n.isFieldDef=void 0,n.isFieldDef=function(t){return"object"==typeof t&&null!==t&&"key"in t&&"def"in t},n.hasType=function(t){return"object"==typeof t&&null!==t&&"type"in t}},35280:function(t,n){Object.defineProperty(n,"__esModule",{value:!0})},71659:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.extractSliceFetchIfAny=n.extractGroupOrFieldIfAny=n.DocRelationType=n.Docs=n.Doc=n.DocType=n.Simple=n.DocRelationC=n.GroupType=n.Slice=n.SharedSlice=n.SharedSliceType=n.CompositeSlice=n.CompositeSliceType=n.VariationC=n.SliceZone=n.SliceZoneType=n.FieldC=n.GroupOrFieldC=n.Group=n.SimpleField=n.SimpleFieldType=void 0;let r=e(22970).__importStar(e(87830));n.SimpleFieldType="SimpleField",n.SimpleField=r.strict({TYPE:r.literal(n.SimpleFieldType),name:r.string,legacy:r.boolean}),n.Group=r.recursion("Group",()=>r.strict({TYPE:r.literal(n.GroupType),name:r.string,fields:r.record(r.string,n.GroupOrFieldC)})),n.GroupOrFieldC=r.recursion("GroupOrField",()=>r.union([n.Simple,n.Group])),n.FieldC=r.recursion("Field",()=>r.union([n.GroupOrFieldC,n.SliceZone])),n.SliceZoneType="SliceZone",n.SliceZone=r.recursion("SliceZone",()=>r.strict({TYPE:r.literal(n.SliceZoneType),name:r.string,slices:r.record(r.string,r.union([n.GroupOrFieldC,n.Slice]))})),n.VariationC=r.recursion("Variation",()=>r.strict({TYPE:r.literal("Variation"),nonRepeat:r.strict({fields:r.record(r.string,n.GroupOrFieldC)}),repeat:r.strict({fields:r.record(r.string,n.FieldC)})})),n.CompositeSliceType="CompositeSlice",n.CompositeSlice=r.strict({TYPE:r.literal(n.CompositeSliceType),nonRepeat:r.strict({fields:r.record(r.string,n.GroupOrFieldC),TYPE:r.literal("NonRepeat")}),repeat:r.strict({fields:r.record(r.string,n.GroupOrFieldC),TYPE:r.literal("Repeat")})}),n.SharedSliceType="SharedSlice",n.SharedSlice=r.strict({TYPE:r.literal(n.SharedSliceType),variations:r.record(r.string,n.VariationC)}),n.Slice=r.union([n.SharedSlice,n.CompositeSlice]),n.GroupType="Group",n.DocRelationC=r.recursion("DocRelation",()=>r.strict({TYPE:r.literal(n.DocRelationType),name:r.string,uuid:r.string,fields:r.record(r.string,r.record(r.string,n.FieldC))})),n.Simple=r.union([n.DocRelationC,n.SimpleField]),n.DocType="Doc",n.Doc=r.recursion("Field",()=>r.strict({TYPE:r.literal("Doc"),typ:r.string,fields:r.record(r.string,n.FieldC)})),n.Docs=r.recursion("Field",()=>r.strict({docs:r.record(r.string,r.union([n.DocRelationC,n.SimpleField,n.Group,n.SliceZone])),docRelationsMap:r.record(r.string,n.DocRelationC)})),n.DocRelationType="DocRelation",n.extractGroupOrFieldIfAny=function(t){return void 0!==t&&(t.TYPE===n.SimpleFieldType||t.TYPE===n.DocRelationType||t.TYPE===n.GroupType)?t:void 0},n.extractSliceFetchIfAny=function(t){if(void 0!==t&&t.TYPE===n.SliceZoneType)return t}},73985:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.LinkResolver=n.Fetch=n.Extensions=n.ApiVersion=void 0;let r=e(22970);r.__exportStar(e(27380),n);var i=e(15087);Object.defineProperty(n,"ApiVersion",{enumerable:!0,get:function(){return i.ApiVersion}}),r.__exportStar(e(32548),n),n.Extensions=r.__importStar(e(35280)),n.Fetch=r.__importStar(e(71659));var u=e(43134);Object.defineProperty(n,"LinkResolver",{enumerable:!0,get:function(){return u.LinkResolver}})},621:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.withObjectRenderers=void 0;let r=e(22970),i=e(74982),u=e(92425),o=r.__importStar(e(72720)),a=e(79687);n.withObjectRenderers=function(t){return{...t,renderV1Object(n,e){let r=n instanceof Array?n:Object.entries(n);return Object.fromEntries((0,u.compact)(r.map(([n,r])=>i.EmptyContent.is(r)?o.none:(0,a.renderIfNoFetchOrFetchDefined)(e,n,e=>o.some([n,t.renderV1(r,e)])))))},renderV2Object(n,e,r,u,c){let f=n instanceof Array?Object.fromEntries(n):n,l={};return Object.entries(r).forEach(([n,r])=>{let p=f[n];if(void 0===p)e&&n in e||!e?l[n]=t.renderDefault(r):e&&"default"===u.withFetch&&(l[n]=t.renderDefault(r));else if(i.EmptyContent.is(p))e&&n in e?"default"===c.withFetchField?l[n]=t.renderDefault(r):"render"===c.withFetchField&&(l[n]=t.renderV2(r,p,e[n])):e?"default"===c.withFetch&&(l[n]=t.renderDefault(r)):"default"===c.default?l[n]=t.renderDefault(r):"render"===c.default&&(l[n]=t.renderV2(r,p));else{let i=(0,a.renderIfNoFetchOrFetchDefined)(e,n,n=>o.some(t.renderV2(r,p,n)));o.isSome(i)&&(l[n]=i.value)}}),l},renderMocksObject(n,e){let r=n instanceof Array?Object.fromEntries(n):n,u={};return Object.entries(e).forEach(([n,e])=>{let c=r[n];if(void 0===c)u[n]=t.renderDefault(e);else if(i.EmptyContent.is(c))u[n]=t.renderDefault(e);else{let r=(0,a.renderIfNoFetchOrFetchDefined)(void 0,n,()=>o.some(t.renderMocks(e,c)));o.isSome(r)&&(u[n]=r.value)}}),u}}}},79687:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.isEmpty=n.formatDate=n.formatDateTime=n.filterDouble=n.writeEmptyStringOrNull=n.renderIfNoFetchOrFetchDefined=void 0;let r=e(22970).__importStar(e(72720));n.renderIfNoFetchOrFetchDefined=function(t,n,e){if(void 0===t)return e(void 0);{let i=t[n];return void 0===i?r.none:e(i)}},n.writeEmptyStringOrNull=function(t,n){return null==t?n?"":null:t},n.filterDouble=function(t){if(""===t)return null;let n=Number(t);return Number.isNaN(n)?null:n},n.formatDateTime=function(t){return t.toISOString().replace(/\.\d{3}Z$/,"+0000")},n.formatDate=function(t){return t.toISOString().replace(/T.*/,"")},n.isEmpty=function(t){for(let n in t)return!1;return!0}},937:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970).__importDefault(e(12706));n.default=t=>({renderV1:(n,e)=>({type:"Group",value:n.value.map(n=>(0,r.default)(t).renderV1Object(n.value,null==e?void 0:e.fields))}),renderV2:(n,e,i)=>e.value.map(e=>{var u;return(0,r.default)(t).renderV2Object(e.value,null==i?void 0:i.fields,(null===(u=n.config)||void 0===u?void 0:u.fields)||{},{withFetch:"filter"},{default:"default",withFetch:"default",withFetchField:"default"})}),renderDefault:()=>[],renderMocks:(n,e)=>e.value.map(e=>{var i,u;return(null===(i=n.config)||void 0===i?void 0:i.fields)?(0,r.default)(t).renderMocksObject(e.value,null===(u=n.config)||void 0===u?void 0:u.fields):{}})})},56016:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970).__importDefault(e(12706));n.default=t=>({renderV1:(n,e)=>n.value.map(n=>(0,r.default)(t).renderV1(n,e)),renderV2:(n,e,i)=>e.value.map(e=>(0,r.default)(t).renderV2({...n,config:{...n.config,repeat:!1}},e,i)),renderDefault:()=>[],renderMocks:(n,e)=>e.value.map(e=>(0,r.default)(t).renderMocks({...n,config:{...n.config,repeat:!1}},e))})},65082:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(74982),u=e(71659),o=e(621),a=e(26041),c=r.__importDefault(e(32955));function f(t){return void 0!==t&&t.TYPE===u.SimpleFieldType?t:void 0}function l(t){return void 0!==t&&t.TYPE===u.DocRelationType?t:void 0}n.default=t=>(0,o.withObjectRenderers)({renderV1(n,e){if((0,i.isRichTextContent)(n))return(0,a.StructuredTextRenderer)(t).renderV1(n,f(e));if((0,i.isImageContent)(n))return(0,a.ImageRenderer)(t).renderV1(n);if((0,i.isRangeContent)(n)||(0,i.isNumberContent)(n)||(0,i.isTimestampContent)(n)||(0,i.isDateContent)(n)||(0,i.isTextContent)(n)||(0,i.isColorContent)(n)||(0,i.isSelectContent)(n))return a.FieldRenderer.renderV1(n);if((0,i.isLinkContent)(n))return(0,a.LinkRenderer)(t).renderV1(n,l(e));if((0,i.isEmbedContent)(n))return a.EmbedRenderer.renderV1(n);if((0,i.isGeoPointContent)(n))return a.GeoPointRenderer.renderV1(n);if((0,i.isUIDContent)(n))return c.default.renderV1(n);else if((0,i.isIntegrationFieldContent)(n))return(0,a.IntegrationFieldsRenderer)(t).renderV1(n);else if((0,i.isSeparatorContent)(n))return a.SeparatorRenderer.renderV1(n);else if((0,i.isBooleanContent)(n))return a.BooleanRenderer.renderV1(n);else if((0,i.isTableContent)(n))return(0,a.TableRenderer)(t).renderV1(n,f(e));else return null},renderV2(n,e,r){if("StructuredText"===n.type&&(0,i.isRichTextContent)(e))return(0,a.StructuredTextRenderer)(t).renderV2(n,e,f(r));if("Image"===n.type&&(0,i.isImageContent)(e))return(0,a.ImageRenderer)(t).renderV2(n,e);if("Link"===n.type&&(0,i.isLinkContent)(e))return(0,a.LinkRenderer)(t).renderV2(n,e,l(r));if("Embed"===n.type&&(0,i.isEmbedContent)(e))return a.EmbedRenderer.renderV2(n,e);if("GeoPoint"===n.type&&(0,i.isGeoPointContent)(e))return a.GeoPointRenderer.renderV2(n,e);if("IntegrationFields"===n.type&&(0,i.isIntegrationFieldContent)(e))return(0,a.IntegrationFieldsRenderer)(t).renderV2(n,e);if("Separator"===n.type&&(0,i.isSeparatorContent)(e))return a.SeparatorRenderer.renderV2(n,e);else if("Boolean"===n.type&&(0,i.isBooleanContent)(e))return a.BooleanRenderer.renderV2(n,e);else if((0,i.isRangeContent)(e)||(0,i.isNumberContent)(e)||(0,i.isTimestampContent)(e)||(0,i.isDateContent)(e)||(0,i.isTextContent)(e)||(0,i.isColorContent)(e)||(0,i.isSelectContent)(e))return a.FieldRenderer.renderV2(n,e);else if("Table"===n.type&&(0,i.isTableContent)(e))return(0,a.TableRenderer)(t).renderV2(n,e,f(r));else return null},renderDefault(n){if("Link"===n.type)return(0,a.LinkRenderer)(t).renderDefault(n);if("Embed"===n.type)return a.EmbedRenderer.renderDefault(n);if("GeoPoint"===n.type)return a.GeoPointRenderer.renderDefault(n);if("StructuredText"===n.type)return(0,a.StructuredTextRenderer)(t).renderDefault(n);if("Image"===n.type)return(0,a.ImageRenderer)(t).renderDefault(n);if("Separator"===n.type)return a.SeparatorRenderer.renderDefault(n);if("Boolean"===n.type)return a.BooleanRenderer.renderDefault(n);else if("IntegrationFields"===n.type)return(0,a.IntegrationFieldsRenderer)(t).renderDefault(n);else if("Table"===n.type)return(0,a.TableRenderer)(t).renderDefault(n);else return a.FieldRenderer.renderDefault(n)},renderMocks(n,e){if("StructuredText"===n.type&&(0,i.isRichTextContent)(e))return(0,a.StructuredTextRenderer)(t).renderMocks(n,e);if("Image"===n.type&&(0,i.isImageContent)(e))return(0,a.ImageRenderer)(t).renderMocks(n,e);if("Link"===n.type&&(0,i.isLinkContent)(e))return(0,a.LinkRenderer)(t).renderMocks(n,e);if("Embed"===n.type&&(0,i.isEmbedContent)(e))return a.EmbedRenderer.renderMocks(n,e);if("GeoPoint"===n.type&&(0,i.isGeoPointContent)(e))return a.GeoPointRenderer.renderMocks(n,e);if("IntegrationFields"===n.type&&(0,i.isIntegrationFieldContent)(e))return(0,a.IntegrationFieldsRenderer)(t).renderMocks(n,e);if("Separator"===n.type&&(0,i.isSeparatorContent)(e))return a.SeparatorRenderer.renderMocks(n,e);else if("Boolean"===n.type&&(0,i.isBooleanContent)(e))return a.BooleanRenderer.renderMocks(n,e);else if((0,i.isRangeContent)(e)&&"Range"===n.type||(0,i.isNumberContent)(e)&&"Number"===n.type||(0,i.isTimestampContent)(e)&&"Timestamp"===n.type||(0,i.isDateContent)(e)&&"Date"===n.type||(0,i.isTextContent)(e)&&"Text"===n.type||(0,i.isColorContent)(e)&&"Color"===n.type||(0,i.isSelectContent)(e)&&"Select"===n.type)return a.FieldRenderer.renderMocks(n,e);else if("Table"===n.type&&(0,i.isTableContent)(e))return(0,a.TableRenderer)(t).renderMocks(n,e);else return null}})},12706:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(74982),u=e(71659),o=e(621),a=r.__importDefault(e(937)),c=r.__importDefault(e(56016)),f=r.__importDefault(e(65082));function l(t){return void 0!==t&&t.TYPE===u.GroupType?t:void 0}function p(t){return void 0!==t&&t.TYPE!==u.GroupType?t:void 0}function d(t){return void 0!==t&&("SimpleField"===t.TYPE||"DocRelation"===t.TYPE)?t:void 0}function s(t,n,e,r){var u,o,a,c;if("Link"===t.type){if((null===(u=t.config)||void 0===u?void 0:u.repeat)&&(0,i.isRepeatableContent)(n))return r.repeatable(t,n,d(e));if((null===(o=t.config)||void 0===o?void 0:o.repeat)&&(0,i.isLinkContent)(n))return r.repeatable(t,{__TYPE__:"RepeatableContent",type:t.type,value:[n]},d(e));if(!(null===(a=t.config)||void 0===a?void 0:a.repeat)&&(0,i.isRepeatableContent)(n)&&n.value[0])return r.simple(t,n.value[0],p(e));if(!(null===(c=t.config)||void 0===c?void 0:c.repeat)&&(0,i.isRepeatableContent)(n))return r.default(t)}return"Group"!==t.type&&(0,i.isNestableContent)(n)?r.simple(t,n,p(e)):"Group"===t.type&&(0,i.isGroupContent)(n)?r.group(t,n,l(e)):r.default(t)}n.default=t=>(0,o.withObjectRenderers)({renderV1:(n,e)=>(0,i.isGroupContent)(n)?(0,a.default)(t).renderV1(n,l(e)):(0,i.isRepeatableContent)(n)?(0,c.default)(t).renderV1(n,d(e)):(0,f.default)(t).renderV1(n,p(e)),renderV2(n,e,r){return s(n,e,r,{group:(n,e,r)=>(0,a.default)(t).renderV2(n,e,r),repeatable:(n,e,r)=>(0,c.default)(t).renderV2(n,e,r),simple:(n,e,r)=>(0,f.default)(t).renderV2(n,e,r),default:t=>this.renderDefault(t)})},renderDefault(n){var e;return"Link"===n.type&&(null===(e=n.config)||void 0===e?void 0:e.repeat)?(0,c.default)(t).renderDefault(n):"Group"===n.type?(0,a.default)(t).renderDefault(n):(0,f.default)(t).renderDefault(n)},renderMocks(n,e){return s(n,e,void 0,{group:(n,e)=>(0,a.default)(t).renderMocks(n,e),repeatable:(n,e)=>(0,c.default)(t).renderMocks(n,e),simple:(n,e)=>(0,f.default)(t).renderMocks(n,e),default:t=>this.renderDefault(t)})}})},32955:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={renderV1:t=>({value:t.value}),renderV2:(t,n)=>n.value,renderDefault:t=>null,renderMocks:(t,n)=>n.value}},81542:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.UIDRenderer=n.StaticWidgetRenderer=n.SimpleWidgetRenderer=n.GroupRenderer=void 0;let r=e(22970);var i=e(937);Object.defineProperty(n,"GroupRenderer",{enumerable:!0,get:function(){return r.__importDefault(i).default}}),r.__exportStar(e(26041),n);var u=e(65082);Object.defineProperty(n,"SimpleWidgetRenderer",{enumerable:!0,get:function(){return r.__importDefault(u).default}}),r.__exportStar(e(94814),n);var o=e(12706);Object.defineProperty(n,"StaticWidgetRenderer",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var a=e(32955);Object.defineProperty(n,"UIDRenderer",{enumerable:!0,get:function(){return r.__importDefault(a).default}})},7796:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={renderV1:t=>({type:"Boolean",value:t.value}),renderV2:(t,n)=>n.value,renderDefault:t=>null,renderMocks(t,n){return this.renderV2(t,n)}}},89591:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={renderV1:t=>({type:"Embed",value:{oembed:t.all}}),renderV2:(t,n)=>n.all,renderDefault:t=>({}),renderMocks(t,n){return this.renderV2(t,n)}}},49357:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(79687),i=/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:(?:[+-]{1}[0-9]{2}:?[0-9]{2})|Z)$/,u=/^(\d{1,4})-([0-9]{1,2})-([0-9]{1,2})$/;function o(t){let[n,e,r]=[t[1],t[2],t[3]];return`${n.padStart(4,"0")}-${e.padStart(2,"0")}-${r.padStart(2,"0")}T00:00:00.000+0000`}n.default={renderV1(t){let n={type:t.type,value:null};switch(t.type){case"Number":{let e=(0,r.filterDouble)(t.value);return{...n,value:e}}case"Date":try{let e=u.exec(t.value);if(e){let t=new Date(o(e));return{...n,value:(0,r.formatDate)(t)}}return n}catch(e){return console.warn(`Unable to render Date value with ${t.value}: ${e.toString()}`),n}case"Timestamp":try{if(i.test(t.value)){let e=new Date(t.value);return{...n,value:(0,r.formatDateTime)(e)}}return n}catch(e){return console.warn(`Unable to render Timestamp value with ${t.value}: ${e.toString()}`),n}default:return{...n,value:t.value}}},renderV2(t,n){switch(n.type){case"Number":return(0,r.filterDouble)(n.value);case"Date":try{let t=u.exec(n.value);if(t){let n=new Date(o(t));return(0,r.formatDate)(n)}return null}catch(t){return console.warn(`Unable to render Date value with ${n.value}: ${t.toString()}`),null}case"Timestamp":try{if(i.test(n.value)){let t=new Date(n.value);return(0,r.formatDateTime)(t)}return null}catch(t){return console.warn(`Unable to render Timestamp value with ${n.value}: ${t.toString()}`),null}default:return n.value}},renderDefault:t=>null,renderMocks(t,n){return this.renderV2(t,n)}}},42715:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={renderV1:t=>({type:"GeoPoint",value:{latitude:t.position.lat,longitude:t.position.lng}}),renderV2:(t,n)=>({latitude:n.position.lat,longitude:n.position.lng}),renderDefault:t=>({}),renderMocks(t,n){return this.renderV2(t,n)}}},6637:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(73985),i=e(79687);function u(t,n,e){let r="v2"===e?{id:t.origin.id,edit:{x:t.edit.crop.x,y:t.edit.crop.y,zoom:t.edit.zoom,background:t.edit.background}}:{};return{dimensions:{width:t.width,height:t.height},alt:(0,i.writeEmptyStringOrNull)(t.alt,n.emptyStringInsteadOfNull),copyright:(0,i.writeEmptyStringOrNull)(t.credits,n.emptyStringInsteadOfNull),url:n.urlRewriter.rewriteImageUrl(t),...r}}n.default=t=>({renderV1(n){if(n.thumbnails){let e=Object.entries(n.thumbnails).reduce((n,[e,i])=>({...n,[e.toLowerCase()]:u(i,t,r.ApiVersion.v1)}),{});return{type:"Image",value:{main:u(n,t,r.ApiVersion.v1),views:e}}}return{type:"Image",value:{main:u(n,t,r.ApiVersion.v1),views:{}}}},renderV2(n,e){let i=u(e,t,r.ApiVersion.v2);return e.thumbnails?Object.assign(i,Object.entries(e.thumbnails).reduce((n,[e,i])=>Object.assign(n,{[e]:u(i,t,r.ApiVersion.v2)}),{})):i},renderDefault(t){var n;return((null===(n=t.config)||void 0===n?void 0:n.thumbnails)||[]).reduce((t,{name:n})=>({...t,[n]:{}}),{})},renderMocks(t,n){return this.renderV2(t,n)}})},6413:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=t=>{var n;let e=null===(n=t.Extension)||void 0===n?void 0:n.encoders.integrationFields;return{renderV1(t){if(!e)return{value:{}};try{return{type:"IntegrationFields",value:e.encode(t.value)}}catch(t){return{value:{}}}},renderV2(t,n){if(!e)return{};try{return e.encode(n.value)}catch(t){return{}}},renderDefault:t=>null,renderMocks(t){return this.renderDefault(t)}}}},8092:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={renderV1:(t,n,e)=>({type:"Link.any",value:{...!(null==e?void 0:e.omitKey)&&{key:t.key},...t.value.text&&{text:t.value.text},...t.value.variant&&{variant:t.value.variant}}}),renderV2(t,n,e,r){let i=t.variants||[],u=n.value.variant&&i.includes(n.value.variant)?n.value.variant:i[0];return{link_type:"Any",...!(null==r?void 0:r.omitKey)&&{key:n.key},...t.allowText&&n.value.text&&{text:n.value.text},...u&&{variant:u}}},renderMocks(t,n,e){return this.renderV2(t,n,void 0,e)}}},50335:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.BROKEN_CUSTOM_TYPE=void 0;let r=e(74982),i=e(73985);function u(t,e){return{type:"Link.document",value:{...!(null==e?void 0:e.omitKey)&&{key:t.key},...r.FilledDocumentLinkContent.is(t.value)&&{id:t.value.id,tags:[]},type:n.BROKEN_CUSTOM_TYPE,isBroken:!0,...t.value.text&&{text:t.value.text},...t.value.variant&&{variant:t.value.variant}}}}function o(t,e,i){let u=e.variants||[],o=t.value.variant&&u.includes(t.value.variant)?t.value.variant:u[0];return{...!(null==i?void 0:i.omitKey)&&{key:t.key},...r.FilledDocumentLinkContent.is(t.value)&&{id:t.value.id,tags:[]},type:n.BROKEN_CUSTOM_TYPE,isBroken:!0,...e.allowText&&t.value.text&&{text:t.value.text},...o&&{variant:o}}}n.BROKEN_CUSTOM_TYPE="broken_type",n.default=t=>{let n=t.Extension;return{renderV1(t,e,i){if(!n)return u(t,i);try{if(r.FilledDocumentLinkContent.is(t.value)){let r=(null==i?void 0:i.omitKey)?void 0:t.key,u=n.DocEncoder.encodeDocId(t.value.id,null==e?void 0:e.uuid,[r,t.value.text,t.value.variant]);return{type:"Link.document",value:n.encoders.documentLinks.encode(u)}}return{type:"Link.document",value:{...!(null==i?void 0:i.omitKey)&&{key:t.key},...t.value.text&&{text:t.value.text},...t.value.variant&&{variant:t.value.variant}}}}catch(n){return u(t,i)}},renderV2(t,e,i,u){if(!n)return o(e,t,u);try{let o=t.allowText?e.value.text:void 0,a=t.variants||[],c=e.value.variant&&a.includes(e.value.variant)?e.value.variant:a[0];if(r.FilledDocumentLinkContent.is(e.value)){let t=(null==u?void 0:u.omitKey)?void 0:e.key,r=n.DocEncoder.encodeDocId(e.value.id,null==i?void 0:i.uuid,[t,o,c]);return n.encoders.documentLinks.encode(r)}return{link_type:"Document",...!(null==u?void 0:u.omitKey)&&{key:e.key},...o&&{text:o},...c&&{variant:c}}}catch(n){return o(e,t,u)}},renderMocks(t,n,e){if(r.FilledDocumentLinkContent.is(n.value)){let r=i.DocumentLinkDef.is(t)&&t.customtypes[0]||"mock",u=t.variants||[],o=n.value.variant&&u.includes(n.value.variant)?n.value.variant:u[0];return{id:n.value.id,...t.allowText&&n.value.text&&{text:n.value.text},...o&&{variant:o},link_type:"Document",...!(null==e?void 0:e.omitKey)&&{key:n.key},type:r,tags:[],lang:"en-us",slug:null,first_publication_date:"1970-01-01T00:00:01+0000",last_publication_date:"1970-01-01T01:00:00+0000"}}return o(n,t,e)}}}},15802:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(74982);n.default={renderV1:(t,n,e)=>({type:"Link.web",value:{...!(null==e?void 0:e.omitKey)&&{key:t.key},...r.FilledExternalLinkContent.is(t.value)&&{url:t.value.url,..."string"==typeof t.value.target&&{target:t.value.target}},...t.value.text&&{text:t.value.text},...t.value.variant&&{variant:t.value.variant}}}),renderV2(t,n,e,i){let u=t.variants||[],o=n.value.variant&&u.includes(n.value.variant)?n.value.variant:u[0];return{link_type:"Web",...!(null==i?void 0:i.omitKey)&&{key:n.key},...r.FilledExternalLinkContent.is(n.value)&&{url:n.value.url,..."string"==typeof n.value.target&&{target:n.value.target}},...t.allowText&&n.value.text&&{text:n.value.text},...o&&{variant:o}}},renderMocks(t,n,e){return this.renderV2(t,n,void 0,e)}}},50632:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(74982);n.default=t=>({renderV1:(n,e,i)=>({type:"Link.file",value:{...!(null==i?void 0:i.omitKey)&&{key:n.key},file:{kind:n.value.kind,...r.FilledFileLinkContent.is(n.value)&&{url:t.urlRewriter.rewriteFileUrl(n.value.url),name:n.value.name,size:n.value.size},...n.value.text&&{text:n.value.text},...n.value.variant&&{variant:n.value.variant}}}}),renderV2(n,e,i,u){let o=n.variants||[],a=e.value.variant&&o.includes(e.value.variant)?e.value.variant:o[0];return{link_type:"Media",...!(null==u?void 0:u.omitKey)&&{key:e.key},kind:e.value.kind,...r.FilledFileLinkContent.is(e.value)&&{id:e.value.id,url:t.urlRewriter.rewriteFileUrl(e.value.url),name:e.value.name,size:e.value.size},...n.allowText&&e.value.text&&{text:e.value.text},...a&&{variant:a}}},renderMocks(t,n,e){return this.renderV2(t,n,void 0,e)}})},83434:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(74982);n.default=t=>({renderV1:(n,e,i)=>({type:"Link.image",value:{...!(null==i?void 0:i.omitKey)&&{key:n.key},image:{kind:n.value.kind,...r.FilledImageLinkContent.is(n.value)&&{id:n.value.id,url:t.urlRewriter.optimizeImageUrl(n.value.url),name:n.value.name,size:n.value.size,width:n.value.width,height:n.value.height},...n.value.text&&{text:n.value.text},...n.value.variant&&{variant:n.value.variant}}}}),renderV2(n,e,i,u){let o=n.variants||[],a=e.value.variant&&o.includes(e.value.variant)?e.value.variant:o[0];return{link_type:"Media",...!(null==u?void 0:u.omitKey)&&{key:e.key},kind:e.value.kind,...r.FilledImageLinkContent.is(e.value)&&{id:e.value.id,url:t.urlRewriter.optimizeImageUrl(e.value.url),name:e.value.name,size:e.value.size,width:e.value.width,height:e.value.height},...n.allowText&&e.value.text&&{text:e.value.text},...a&&{variant:a}}},renderMocks(t,n,e){return this.renderV2(t,n,void 0,e)}})},1666:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={renderV1:(t,n,e)=>({type:"Link.media",value:{...!(null==e?void 0:e.omitKey)&&{key:t.key},...t.value.text&&{text:t.value.text},...t.value.variant&&{variant:t.value.variant}}}),renderV2(t,n,e,r){let i=t.variants||[],u=n.value.variant&&i.includes(n.value.variant)?n.value.variant:i[0];return{link_type:"Media",...!(null==r?void 0:r.omitKey)&&{key:n.key},...t.allowText&&n.value.text&&{text:n.value.text},...u&&{variant:u}}},renderMocks(t,n,e){return this.renderV2(t,n,void 0,e)}}},57777:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.ImageLinkRenderer=n.FileLinkRenderer=n.ExternalLinkRenderer=n.DocumentLinkRenderer=void 0;let r=e(22970),i=e(73985),u=r.__importDefault(e(8092)),o=r.__importDefault(e(50335));n.DocumentLinkRenderer=o.default;let a=r.__importDefault(e(15802));n.ExternalLinkRenderer=a.default;let c=r.__importDefault(e(50632));n.FileLinkRenderer=c.default;let f=r.__importDefault(e(83434));n.ImageLinkRenderer=f.default;let l=r.__importDefault(e(1666));n.default=t=>({renderV1(n,e,r){if("ImageLink"===n.value.__TYPE__)return(0,f.default)(t).renderV1({...n,value:n.value},void 0,r);if("DocumentLink"===n.value.__TYPE__)return(0,o.default)(t).renderV1({...n,value:n.value},e,r);if("FileLink"===n.value.__TYPE__)return(0,c.default)(t).renderV1({...n,value:n.value},void 0,r);if("ExternalLink"===n.value.__TYPE__)return a.default.renderV1({...n,value:n.value},void 0,r);if("MediaLink"===n.value.__TYPE__)return l.default.renderV1({...n,value:n.value},void 0,r);if("AnyLink"===n.value.__TYPE__)return u.default.renderV1({...n,value:n.value},void 0,r);throw Error(`No rendered found for link ${JSON.stringify(n)}`)},renderV2(n,e,r,p){return((0,i.isMediaLinkDef)(n)||(0,i.isAnyLinkDef)(n))&&"ImageLink"===e.value.__TYPE__?(0,f.default)(t).renderV2(n.config,{...e,value:e.value},void 0,p):((0,i.isDocumentLinkDef)(n)||(0,i.isAnyLinkDef)(n))&&"DocumentLink"===e.value.__TYPE__?(0,o.default)(t).renderV2(n.config,{...e,value:e.value},r,p):((0,i.isMediaLinkDef)(n)||(0,i.isAnyLinkDef)(n))&&"FileLink"===e.value.__TYPE__?(0,c.default)(t).renderV2(n.config,{...e,value:e.value},void 0,p):((0,i.isWebLinkDef)(n)||(0,i.isAnyLinkDef)(n))&&"ExternalLink"===e.value.__TYPE__?a.default.renderV2(n.config,{...e,value:e.value},void 0,p):((0,i.isMediaLinkDef)(n)||(0,i.isAnyLinkDef)(n))&&"MediaLink"===e.value.__TYPE__?l.default.renderV2(n.config,{...e,value:e.value},void 0,p):(0,i.isAnyLinkDef)(n)&&"AnyLink"===e.value.__TYPE__?u.default.renderV2(n.config,{...e,value:e.value},void 0,p):this.renderDefault(n)},renderDefault(t){var n;switch(null===(n=t.config)||void 0===n?void 0:n.select){case"media":return{link_type:"Media"};case"document":return{link_type:"Document"};case"web":return{link_type:"Web"};default:return{link_type:"Any"}}},renderMocks(n,e,r){return((0,i.isMediaLinkDef)(n)||(0,i.isAnyLinkDef)(n))&&"ImageLink"===e.value.__TYPE__?(0,f.default)(t).renderMocks(n.config,{...e,value:e.value},r):((0,i.isDocumentLinkDef)(n)||(0,i.isAnyLinkDef)(n))&&"DocumentLink"===e.value.__TYPE__?(0,o.default)(t).renderMocks(n.config,{...e,value:e.value},r):((0,i.isMediaLinkDef)(n)||(0,i.isAnyLinkDef)(n))&&"FileLink"===e.value.__TYPE__?(0,c.default)(t).renderMocks(n.config,{...e,value:e.value},r):((0,i.isWebLinkDef)(n)||(0,i.isAnyLinkDef)(n))&&"ExternalLink"===e.value.__TYPE__?a.default.renderMocks(n.config,{...e,value:e.value},r):((0,i.isMediaLinkDef)(n)||(0,i.isAnyLinkDef)(n))&&"MediaLink"===e.value.__TYPE__?l.default.renderMocks(n.config,{...e,value:e.value},r):(0,i.isAnyLinkDef)(n)&&"AnyLink"===e.value.__TYPE__?u.default.renderMocks(n.config,{...e,value:e.value},r):this.renderDefault(n)}})},97562:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={renderV1:t=>({type:"Separator"}),renderV2:(t,n)=>!0,renderDefault:t=>!0,renderMocks(t,n){return this.renderV2(t,n)}}},83775:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(74982),u=r.__importStar(e(87412)),o=e(73985),a=e(73985),c=e(79687),f=r.__importDefault(e(57777));function l(t){if((0,i.isLinkContent)(t))switch(t.value.__TYPE__){case"DocumentLink":return"document";case"ExternalLink":return"web";case"FileLink":case"ImageLink":return"media";default:return null}throw Error(`[UNREACHABLE] unknown Link type for ${JSON.stringify(t)}`)}function p(t,n,e){return n===o.ApiVersion.v1?(0,f.default)(e).renderV1(t,void 0,{omitKey:!0}):n===o.ApiVersion.v2?(0,f.default)(e).renderV2((0,a.defaultLink)(l(t)),t,void 0,{omitKey:!0}):n===o.ApiVersion.mocks?(0,f.default)(e).renderMocks((0,a.defaultLink)(l(t)),t,{omitKey:!0}):void 0}n.default=t=>({renderBlock:n=>e=>{if((0,i.checkImageBlock)(n)){let r=n.data.linkTo?{linkTo:p({__TYPE__:"LinkContent",key:"",value:n.data.linkTo},e,t)}:{},i=n.label?{label:n.label}:{},u=n.direction?{direction:n.direction}:{},a=e===o.ApiVersion.v2?{id:n.data.origin.id,edit:{x:n.data.edit.crop.x,y:n.data.edit.crop.y,zoom:n.data.edit.zoom,background:n.data.edit.background}}:{};return{type:"image",url:t.urlRewriter.rewriteImageUrl(n.data),alt:(0,c.writeEmptyStringOrNull)(n.data.alt,t.emptyStringInsteadOfNull),copyright:(0,c.writeEmptyStringOrNull)(n.data.credits,t.emptyStringInsteadOfNull),dimensions:{width:n.data.width,height:n.data.height},...a,...r,...i,...u}}if((0,i.checkEmbedBlock)(n)){let t=n.label?{label:n.label}:{},e=n.direction?{direction:n.direction}:{};return{type:"embed",oembed:n.data.all,...t,...e}}{let r=n.label?{label:n.label}:{},o=n.direction?{direction:n.direction}:{},a=(n.content.spans||[]).map(n=>{let r={start:n.start,end:n.end,type:n.type};if("hyperlink"===n.type){let o=i.Link.decode(n.data),a=u.isRight(o)?p({__TYPE__:"LinkContent",value:o.right},e,t):{};return{...r,data:a}}return"label"===n.type?{...r,data:{label:"string"==typeof n.data?n.data:""}}:r});return{type:n.type,text:n.content.text,...r,spans:a,...o}}}})},558:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(14632),u=r.__importStar(e(72720)),o=e(73985),a=r.__importDefault(e(83775));function c(t,n){return n({__TYPE__:"StructuredTextContent",value:(0,i.pipe)(u.fromNullable(t.value.find(t=>t.type.startsWith("heading"))),u.alt(()=>u.fromNullable(t.value.find(t=>"embed"!==t.type&&"image"!==t.type))),u.map(t=>[t]),u.getOrElse(()=>[]))})}n.default=t=>({renderV1(n,e){let r=n.value.map(n=>(0,a.default)(t).renderBlock(n)(o.ApiVersion.v1));return void 0!==e&&e.legacy?c(n,n=>n.value.map(n=>(0,a.default)(t).renderBlock(n)(o.ApiVersion.v1))):{type:"StructuredText",value:r}},renderV2(n,e,r){return void 0!=r&&r.legacy?c(e,t=>this.renderV2(n,t,void 0)):e.value.map(n=>(0,a.default)(t).renderBlock(n)(o.ApiVersion.v2))},renderDefault:t=>[],renderMocks:(n,e)=>e.value.map(n=>(0,a.default)(t).renderBlock(n)(o.ApiVersion.mocks))})},11873:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(23535),u=r.__importDefault(e(558));function o(t,n){return{key:t.key,cells:t.content.map(t=>({key:t.key,type:a[t.type],content:n(t.content)}))}}let a={tableHeader:"header",tableCell:"data"};n.default=t=>({renderV1:(t,n)=>null,renderV2:(n,e,r)=>(function(t,n){let e=t.content[0];if(!e)return null;let r=e.content.every(t=>"tableHeader"===t.type),i=r?e:void 0,u=r?t.content.slice(1):t.content;return{...i?{head:function(t,n){if(t)return{rows:[o(t,n)]}}(i,n)}:{},body:{rows:u.map(t=>o(t,n))}}})(e,n=>(0,u.default)(t).renderV2(i.TableCell,n,r)),renderDefault:t=>null,renderMocks(t,n){return this.renderV2(t,n)}})},26041:function(t,n,e){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0}),n.TableRenderer=n.StructuredTextRenderer=n.SeparatorRenderer=n.LinkRenderer=n.ImageLinkRenderer=n.FileLinkRenderer=n.ExternalLinkRenderer=n.DocumentLinkRenderer=n.IntegrationFieldsRenderer=n.ImageRenderer=n.GeoPointRenderer=n.FieldRenderer=n.EmbedRenderer=n.BooleanRenderer=void 0;var i=e(7796);Object.defineProperty(n,"BooleanRenderer",{enumerable:!0,get:function(){return r(i).default}});var u=e(89591);Object.defineProperty(n,"EmbedRenderer",{enumerable:!0,get:function(){return r(u).default}});var o=e(49357);Object.defineProperty(n,"FieldRenderer",{enumerable:!0,get:function(){return r(o).default}});var a=e(42715);Object.defineProperty(n,"GeoPointRenderer",{enumerable:!0,get:function(){return r(a).default}});var c=e(6637);Object.defineProperty(n,"ImageRenderer",{enumerable:!0,get:function(){return r(c).default}});var f=e(6413);Object.defineProperty(n,"IntegrationFieldsRenderer",{enumerable:!0,get:function(){return r(f).default}});var l=e(57777);Object.defineProperty(n,"DocumentLinkRenderer",{enumerable:!0,get:function(){return l.DocumentLinkRenderer}}),Object.defineProperty(n,"ExternalLinkRenderer",{enumerable:!0,get:function(){return l.ExternalLinkRenderer}}),Object.defineProperty(n,"FileLinkRenderer",{enumerable:!0,get:function(){return l.FileLinkRenderer}}),Object.defineProperty(n,"ImageLinkRenderer",{enumerable:!0,get:function(){return l.ImageLinkRenderer}}),Object.defineProperty(n,"LinkRenderer",{enumerable:!0,get:function(){return r(l).default}});var p=e(97562);Object.defineProperty(n,"SeparatorRenderer",{enumerable:!0,get:function(){return r(p).default}});var d=e(558);Object.defineProperty(n,"StructuredTextRenderer",{enumerable:!0,get:function(){return r(d).default}});var s=e(11873);Object.defineProperty(n,"TableRenderer",{enumerable:!0,get:function(){return r(s).default}})},24485:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(71659),u=e(79687),o=r.__importDefault(e(12706));n.default=t=>({renderV1(n,e){var r,i;let a=null===(r=null==e?void 0:e.repeat)||void 0===r?void 0:r.fields,c=null===(i=null==e?void 0:e.nonRepeat)||void 0===i?void 0:i.fields,f=n.repeat.flatMap(n=>{let e=(0,o.default)(t).renderV1Object(n.value,a);return(0,u.isEmpty)(e)?[]:[e]});return{"non-repeat":(0,o.default)(t).renderV1Object(n.nonRepeat,c),repeat:f}},renderV2(n,e,r){var u;let a=void 0===r?void 0:{TYPE:i.GroupType,name:n.type,fields:r.repeat.fields},c=null===(u=null==r?void 0:r.nonRepeat)||void 0===u?void 0:u.fields,f=e.repeat.map(e=>(0,o.default)(t).renderV2Object(e.value,null==a?void 0:a.fields,n.repeat||{},{withFetch:"default"},{default:"render",withFetch:"filter",withFetchField:"render"}));return{primary:(0,o.default)(t).renderV2Object(e.nonRepeat,c,n["non-repeat"]||{},{withFetch:"default"},{default:"render",withFetch:"filter",withFetchField:"render"}),items:f}},renderDefault:t=>({}),renderMocks(n,e){let r=e.repeat.map(e=>(0,o.default)(t).renderMocksObject(e.value,n.repeat||{}));return{primary:(0,o.default)(t).renderMocksObject(e.nonRepeat,n["non-repeat"]||{}),items:r}}})},68422:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970).__importDefault(e(12706));function i(t,n,e){var r,i,u;return null===(u=null===(i=null===(r=null==e?void 0:e.variations)||void 0===r?void 0:r[t])||void 0===i?void 0:i[n])||void 0===u?void 0:u.fields}n.default=t=>({renderV1(n,e){let u=n.items.map(u=>(0,r.default)(t).renderV1Object(u.value,i(n.variation,"repeat",e))),o=(0,r.default)(t).renderV1Object(n.primary,i(n.variation,"nonRepeat",e));return{variation:n.variation,items:u,primary:o}},renderV2(n,e,u){let o=n.variations.find(t=>t.id===e.variation);if(void 0===o)return this.renderDefault(n);let a=e.items.map(n=>(0,r.default)(t).renderV2Object(n.value,i(e.variation,"repeat",u),o.items||{},{withFetch:"filter"},{default:"default",withFetch:"filter",withFetchField:"render"})),c=(0,r.default)(t).renderV2Object(e.primary,i(e.variation,"nonRepeat",u),o.primary||{},{withFetch:"filter"},{default:"default",withFetch:"filter",withFetchField:"render"});return{variation:e.variation,version:o.version,items:a,primary:c}},renderDefault:t=>({}),renderMocks(n,e){let i=n.variations.find(t=>t.id===e.variation);if(void 0===i)return this.renderDefault(n);let u=e.items.map(n=>(0,r.default)(t).renderMocksObject(n.value,i.items||{})),o=(0,r.default)(t).renderMocksObject(e.primary,i.primary||{});return{variation:e.variation,version:i.version,items:u,primary:o}}})},57962:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(74982),u=r.__importStar(e(72720)),o=r.__importDefault(e(12706));n.default=t=>({renderV1:(n,e)=>n.__TYPE__===i.EmptyContentType?u.none:u.some({value:(0,o.default)(t).renderV1(n,e)}),renderV2:(n,e,r)=>e.__TYPE__===i.EmptyContentType?u.none:u.some({value:(0,o.default)(t).renderV2(n,e,r)}),renderDefault:t=>({}),renderMocks:(n,e)=>e.__TYPE__===i.EmptyContentType?u.none:u.some({value:(0,o.default)(t).renderMocks(n,e)})})},6324:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(74982),u=e(23535),o=r.__importStar(e(72720)),a=e(71659),c=r.__importDefault(e(24485)),f=r.__importDefault(e(68422)),l=r.__importDefault(e(57962)),p={extractCompositeSlice(t){if(void 0!==t&&t.TYPE===a.CompositeSliceType)return t},extractSharedSlice(t){if(void 0!==t&&t.TYPE===a.SharedSliceType)return t},extractGroupOrField(t){if(void 0!==t&&t.TYPE!==a.CompositeSliceType&&t.TYPE!==a.SharedSliceType)return t}};n.default=t=>({renderV1:(n,e)=>(0,i.isCompositeSliceContent)(n)?o.some((0,c.default)(t).renderV1(n,p.extractCompositeSlice(e))):(0,i.isSharedSliceContent)(n)?o.some((0,f.default)(t).renderV1(n,p.extractSharedSlice(e))):(0,l.default)(t).renderV1(n,p.extractGroupOrField(e)),renderV2(n,e,r){return(0,i.isCompositeSliceContent)(e)&&u.CompositeSlice.is(n)?o.some((0,c.default)(t).renderV2(n,e,p.extractCompositeSlice(r))):(0,i.isSharedSliceContent)(e)&&u.SharedSlice.is(n)?o.some((0,f.default)(t).renderV2(n,e,p.extractSharedSlice(r))):(0,i.isSimpleSliceContent)(e)&&u.LegacySlice.is(n)?(0,l.default)(t).renderV2(n,e,p.extractGroupOrField(r)):o.some(this.renderDefault(n))},renderDefault:t=>({}),renderMocks(n,e){return(0,i.isCompositeSliceContent)(e)&&u.CompositeSlice.is(n)?o.some((0,c.default)(t).renderMocks(n,e)):(0,i.isSharedSliceContent)(e)&&u.SharedSlice.is(n)?o.some((0,f.default)(t).renderMocks(n,e)):(0,i.isSimpleSliceContent)(e)&&u.LegacySlice.is(n)?(0,l.default)(t).renderMocks(n,e):o.some(this.renderDefault(n))}})},3758:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(74982),u=e(42275),o=e(92425),a=r.__importStar(e(20492)),c=e(60130),f=e(79687),l=r.__importDefault(e(6324));function p(t,n){let e=RegExp(`^(${n})\\$\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12}$`);return t.match(e)?t:`${n}$${(0,c.v4)()}`}n.default=t=>({renderV1:(n,e)=>({type:"SliceZone",value:(function(t,n,e){let r=null==n?void 0:n.slices;return(0,o.compact)(t.value.map(t=>(0,u.pipe)((0,f.renderIfNoFetchOrFetchDefined)(r,t.key,n=>(0,l.default)(e).renderV1(t.widget,n)),a.map(n=>[t,n]))))})(n,e,t).map(([t,n])=>{var e;return{...n,id:p(t.key,t.name),slice_type:t.name,slice_label:null!==(e=t.maybeLabel)&&void 0!==e?e:null,type:"Slice"}})}),renderV2(n,e,r){var c;let d=Object.fromEntries(Object.entries((null===(c=n.config)||void 0===c?void 0:c.choices)||{}).map(([t,n])=>[t,n])),s=null==r?void 0:r.slices;return(0,o.compact)(e.value.map(n=>(0,f.renderIfNoFetchOrFetchDefined)(s,n.name,e=>(function(t,n,e,r){if("__TYPE__"in t.widget&&t.widget.__TYPE__===i.EmptyContentType||!(t.name in r))return a.none;{let i=r[t.name];return i?(0,u.pipe)((0,l.default)(e).renderV2(i,t.widget,n),a.map(n=>{var e;return{...n,id:p(t.key,t.name),slice_type:t.name,slice_label:null!==(e=t.maybeLabel)&&void 0!==e?e:null}})):a.none}})(n,e,t,d))))},renderDefault:t=>[],renderMocks(t,n){return this.renderV2(t,n)}})},94814:function(t,n,e){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0}),n.SliceWidgetRenderer=n.SlicesRenderer=n.SimpleSliceRenderer=n.SharedSliceRenderer=n.CompositeSliceRenderer=void 0;var i=e(24485);Object.defineProperty(n,"CompositeSliceRenderer",{enumerable:!0,get:function(){return r(i).default}});var u=e(68422);Object.defineProperty(n,"SharedSliceRenderer",{enumerable:!0,get:function(){return r(u).default}});var o=e(57962);Object.defineProperty(n,"SimpleSliceRenderer",{enumerable:!0,get:function(){return r(o).default}});var a=e(3758);Object.defineProperty(n,"SlicesRenderer",{enumerable:!0,get:function(){return r(a).default}});var c=e(6324);Object.defineProperty(n,"SliceWidgetRenderer",{enumerable:!0,get:function(){return r(c).default}})},62283:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.IncompatibleMockConfigError=void 0;class e extends Error{constructor(t,n){super(`The ${t} mock config is not compatible with the ${n} field.`),Object.defineProperty(this,"mockConfigType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.mockConfigType=t,this.fieldType=n}}n.IncompatibleMockConfigError=e},24662:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.DocumentMock=void 0;let r=e(23535),i=e(73605),u=e(32361);n.DocumentMock={generate:(t,n={},e)=>(0,r.flattenWidgets)(t).map(([t,r])=>{let o=function(t,n,e){switch(t.type){case"Choice":case"Slices":return u.SliceZoneMock.generate(t,n,e);case"Group":return i.GroupMock.generate(t,e);case"UID":return i.UIDMock.generate(t,e);default:return i.NestableWidgetMock.generate(t,e)}}(r,n,(null==e?void 0:e.value)&&e.value[t]);return[t,o]}).reduce((t,[n,e])=>({...t,[n]:e}),{})}},73605:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(24662),n),(0,r.__exportStar)(e(93103),n)},15801:function(t,n,e){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0}),n.randomInt=n.slug=void 0;var i=e(91249);Object.defineProperty(n,"slug",{enumerable:!0,get:function(){return r(i).default}}),n.randomInt=function(t=0,n=100){return Math.floor(Math.random()*(n-t+1)+t)}},91249:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=(0,e(22970).__importDefault)(e(93953)),i=e(15801);n.default=function(t){return function n(){let e=function(t){let n=t[(0,i.randomInt)(0,t.length-1)];if(!n)throw Error("Error while generating a slug.");return n}(r.default);return t&&(t.exactly&&e.length!=t.exactly||t.min&&e.length<t.min||t.max&&e.length>t.max)?n():e}()}},44609:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.GroupMock=n.randomGroupBlock=void 0;let r=e(33832),i=e(23535),u=e(62283),o=e(93103);function a(t,e){return t.map(([t,r])=>{var a;let c=null==e?void 0:e[t];if(r.type===i.GroupFieldType){if(c&&c.type!==i.GroupFieldType)throw new u.IncompatibleMockConfigError(c.type,r.type);return[t,n.GroupMock.generate(r,c)]}if(!c||c.type===r.type||"Repeatable"==c.type&&"Link"===r.type&&(null===(a=r.config)||void 0===a?void 0:a.repeat))return[t,o.NestableWidgetMock.generate(r,c)];throw new u.IncompatibleMockConfigError(c.type,r.type)})}n.randomGroupBlock=a,n.GroupMock={generate(t,n){let e=(null==n?void 0:n.value)||function(t,n=1,e={}){if(!t.config||!t.config.fields)return[];let r=Object.entries(t.config.fields);return Array(n).fill(null).map(()=>a(r,e))}(t,null==n?void 0:n.nbBlocks,null==n?void 0:n.fields);return{__TYPE__:r.GroupContentType,value:e.map(t=>({__TYPE__:r.GroupItemContentType,value:t}))}},patch(t,e,u){if(t.op===i.DiffOperation.Removed)return;let a=((null==e?void 0:e.value)||Array((null==u?void 0:u.nbBlocks)||1).fill({__TYPE__:r.GroupItemContentType,value:[]})).map(e=>{var a;let c=Object.fromEntries(e.value);return Object.entries(null!==(a=t.value.config.fields)&&void 0!==a?a:{}).forEach(([t,e])=>{var a;let f;let l=c[t],p=null===(a=null==u?void 0:u.fields)||void 0===a?void 0:a[t];(0,r.isGroupContent)(l)&&(!p||(null==p?void 0:p.type)===i.GroupFieldType)?f=n.GroupMock.patch(e,l,p):(0,r.isGroupContent)(l)||(null==p?void 0:p.type)===i.GroupFieldType||(f=o.NestableWidgetMock.patch(e,l,p)),f?c[t]=f:delete c[t]}),{__TYPE__:r.GroupItemContentType,value:Object.entries(c)}});return{__TYPE__:r.GroupContentType,value:a}}}},73042:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.SharedSliceMock=void 0;let r=e(74982),i=e(74982),u=e(23535),o=e(74702),a=e(93103);function c(t,n){return function(t,n){let e=(null==n?void 0:n.nbItemsBlocks)||1;return{__TYPE__:i.SharedSliceContentType,variation:t.id,primary:t.primary?(0,a.randomGroupBlock)(Object.entries(t.primary),null==n?void 0:n.primaryFields).reduce((t,[n,e])=>({...t,[n]:e}),{}):{},items:t.items?Array(e).fill(null).map(()=>{var e,r;return e=Object.entries(t.items||{}),r=null==n?void 0:n.itemFields,e.map(([t,n])=>{let e=r&&r[t];return[t,a.NestableWidgetMock.generate(n,e)]})}).map(t=>({__TYPE__:r.GroupItemContentType,value:t})):[]}}(t,n)}function f(t,n,e){let i=Object.entries(t).reduce((t,[i,c])=>{var f;let l;let p=null===(f=n.find(([t])=>t===i))||void 0===f?void 0:f[1],d=null==e?void 0:e[i];return(0,r.isGroupContent)(p)||(null==d?void 0:d.type)===u.GroupFieldType||c.op===o.DiffOperation.Removed||c.value.type===u.GroupFieldType?(!p||(0,r.isGroupContent)(p))&&(!d||d.type===u.GroupFieldType)&&(l=a.GroupMock.patch(c,p,d)):l=a.NestableWidgetMock.patch(c,p,d),{...t,...l?{[i]:l}:{}}},{});return{...n.reduce((n,[e,r])=>{let u=t[e]?i[e]:r;return u?{...n,[e]:u}:n},{}),...i}}n.SharedSliceMock={generate(t,n){var e;if(null==n?void 0:n.value)return{__TYPE__:i.SharedSliceContentType,...n.value};let r=null!==(e=t.variations.find(t=>t.id===(null==n?void 0:n.variation)))&&void 0!==e?e:t.variations[0];if(!r)throw Error(`Something happened during Shared slice generation. No variations were configured for slice ${t.id}.`);let u=(null==n?void 0:n.variations)&&n.variations[r.id];return c(r,u)},patch(t,n,e){var i,u;switch(t.op){case o.DiffOperation.Removed:if(!(null==e?void 0:e.variation)||e.variation===(null==n?void 0:n.variation))return{ok:!0,result:void 0};return{ok:!1,error:Error(`Content doesn't match the config for variation ${e.variation}`)};case o.DiffOperation.Added:if(n)return{ok:!1,error:Error(`Content already exists for slice ${t.value.id}.`)};if(!(null==e?void 0:e.variation)||t.value.variations.find(t=>t.id===e.variation))return{ok:!0,result:this.generate(t.value,e)};return{ok:!1,error:Error(`Configured variation ${e.variation} not found in slice ${t.value.id} definition.`)};case o.DiffOperation.Updated:{let a=null!=n&&n.variation?(null==e?void 0:e.variation)&&n.variation!==(null==e?void 0:e.variation)?{ok:!1,error:Error(`Variation ${n.variation} from the content doesn't match the config ${null==e?void 0:e.variation}.`)}:{ok:!0,result:n.variation}:(null==e?void 0:e.variation)?{ok:!0,result:e.variation}:{ok:!1,error:Error("No variation provided. You must either provide some content or a config.")};if(!a.ok)return a;let l=a.result,p=null===(i=t.value.variations)||void 0===i?void 0:i[l];if(!p)return{ok:!1,error:Error(`The model of the content with variation ${l} has not changed.`)};return function(t,n,e,i){switch(n.op){case o.DiffOperation.Removed:return{ok:!0,result:void 0};case o.DiffOperation.Added:if(!e)return{ok:!0,result:c(n.value,i)};return{ok:!1,error:Error(`Content already exists for variation ${e.variation}.`)};case o.DiffOperation.Updated:return{ok:!0,result:{__TYPE__:"SharedSliceContent",variation:t,primary:n.value.primary&&(null==e?void 0:e.primary)?f(n.value.primary,Object.entries(null==e?void 0:e.primary),null==i?void 0:i.primaryFields):(null==e?void 0:e.primary)||{},items:(()=>{if(!n.value.items||null==e||!e.items)return(null==e?void 0:e.items)||[];{let t=n.value.items;return e.items.map(n=>({__TYPE__:r.GroupItemContentType,value:Object.entries(f(t,n.value,null==i?void 0:i.itemFields))}))}})()}}}}(l,p,n,p.op!==o.DiffOperation.Removed?null===(u=null==e?void 0:e.variations)||void 0===u?void 0:u[l]:void 0)}}}}},32361:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.SliceZoneMock=void 0;let r=e(74982),i=e(73207),u=e(93103),o=e(92947);n.SliceZoneMock={generate(t,n={},e){var a;if(!(null===(a=t.config)||void 0===a?void 0:a.choices))return{__TYPE__:r.SlicesContentType,value:[]};let c=Object.entries(t.config.choices).reduce((t,[r,a])=>{let c=(null==e?void 0:e.value)&&e.value[r],f=(()=>{switch(a.type){case"SharedSlice":{let t=n[r];if(!t){console.error(`You must provide the definition of the Shared Slice ${r} to get mocks.`);return}return u.SharedSliceMock.generate(t,c)}case"Slice":return;case"Group":return u.GroupMock.generate(a);default:return o.NestableWidgetMock.generate(a)}})();return f?t.concat({key:`${r}$${(0,i.v4)()}`,name:r,maybeLabel:void 0,widget:f}):t},[]);return{__TYPE__:r.SlicesContentType,value:c}}}},32033:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.UIDMock=void 0;let r=e(74982),i=e(15801);n.UIDMock={generate(t,n){let e=(null==n?void 0:n.value)||(0,i.slug)({min:3,max:10});return{__TYPE__:r.UIDContentType,value:e}}}},93103:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(44609),n),(0,r.__exportStar)(e(92947),n),(0,r.__exportStar)(e(73042),n),(0,r.__exportStar)(e(32033),n)},42386:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.BooleanMock=void 0;let r=e(74982),i=e(74702);n.BooleanMock={generate(t,n){let e="boolean"==typeof(null==n?void 0:n.value)?n.value:.5>Math.random();return{__TYPE__:r.BooleanContentType,value:e}},patch(t,n,e){switch(t.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(t.value,e)}},applyPatch(t){var n;return t.diff.op===i.DiffOperation.Removed?{result:void 0}:"Boolean"===t.diff.value.type?{result:this.patch(t.diff,t.content&&t.content.__TYPE__!==r.BooleanContentType?void 0:t.content,(null===(n=t.config)||void 0===n?void 0:n.type)==="Boolean"?t.config:void 0)}:void 0}}},98017:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.ColorMock=void 0;let r=e(74982),i=e(74982),u=e(74702);n.ColorMock={generate(t,n){let e=(null==n?void 0:n.value)||function(){let t="#";for(let n=0;n<6;n++)t+="0123456789abcdef"[Math.floor(16*Math.random())];return t}();return{__TYPE__:i.FieldContentType,value:e,type:"Color"}},applyPatch(t){var n;return t.diff.op===u.DiffOperation.Removed?{result:void 0}:"Color"===t.diff.value.type?{result:this.patch(t.diff,(0,r.isColorContent)(t.content)?t.content:void 0,(null===(n=t.config)||void 0===n?void 0:n.type)==="Color"?t.config:void 0)}:void 0},patch(t,n,e){switch(t.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(t.value,e)}}}},21276:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.DateMock=void 0;let r=e(74982),i=e(74702);function u(t){let n=t.toISOString().split("T")[0];if(!n)throw Error("Something happened during Date generation.");return n}function o(t=new Date(2012,0,1),n=new Date){return u(new Date(t.getTime()+Math.random()*(n.getTime()-t.getTime())))}n.DateMock={generate(t,n){let e=(null==n?void 0:n.value)?u(n.value):(null==n?void 0:n.start)&&(null==n?void 0:n.end)?o(n.start,n.end):o(new Date(2012,0,1),new Date);return{__TYPE__:r.FieldContentType,type:"Date",value:e}},applyPatch(t){var n;return t.diff.op===i.DiffOperation.Removed?{result:void 0}:"Date"===t.diff.value.type?{result:this.patch(t.diff,(0,r.isDateContent)(t.content)?t.content:void 0,(null===(n=t.config)||void 0===n?void 0:n.type)==="Date"?t.config:void 0)}:void 0},patch(t,n,e){switch(t.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(t.value,e)}}}},60300:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.EmbedMock=void 0;let r=e(22970),i=e(74982),u=e(74702),o=(0,r.__importDefault)(e(19108));n.EmbedMock={generate:(t,n)=>(function(t){var n;let e=t||(null===(n=o.default[Math.floor(Math.random()*o.default.length)])||void 0===n?void 0:n.oembed);if(!e)throw Error("Something happened during Embed generation.");return{...e,all:e,__TYPE__:i.EmbedContentType}})(null==n?void 0:n.value),applyPatch(t){var n;return t.diff.op===u.DiffOperation.Removed?{result:void 0}:"Embed"===t.diff.value.type?{result:this.patch(t.diff,(0,i.isEmbedContent)(t.content)?t.content:void 0,(null===(n=t.config)||void 0===n?void 0:n.type)==="Embed"?t.config:void 0)}:void 0},patch(t,n,e){switch(t.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(t.value,e)}}}},95441:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.GeoPointMock=void 0;let r=e(22970),i=e(74982),u=e(74702),o=(0,r.__importDefault)(e(88416));n.GeoPointMock={generate(t,n){let e=(null==n?void 0:n.value)||function(){let t=o.default[Math.floor(Math.random()*o.default.length)];if(!t)throw Error("Something happened during GeoPoint generation.");return{latitude:t.points.latitude,longitude:t.points.longitude}}();return{__TYPE__:i.GeoPointContentType,position:{lat:e.latitude,lng:e.longitude}}},applyPatch(t){var n;return t.diff.op===u.DiffOperation.Removed?{result:void 0}:"GeoPoint"===t.diff.value.type?{result:this.patch(t.diff,(0,i.isGeoPointContent)(t.content)?t.content:void 0,(null===(n=t.config)||void 0===n?void 0:n.type)==="GeoPoint"?t.config:void 0)}:void 0},patch(t,n,e){switch(t.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(t.value,e)}}}},66947:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.ImageMock=n.random=void 0;let r=e(22970),i=e(74982),u=e(74702),o=(0,r.__importDefault)(e(15542)),a=e(15801),c=o.default,f=(t,n)=>{let[e,r]=(()=>{let{width:e,height:r}=null!=n?n:{};return e&&r?[e,r]:e?[e,Math.round(t.height*(e/t.width))]:r?[Math.round(t.width*(r/t.height)),r]:[t.width,t.height]})(),i=Math.max(e/t.width,r/t.height),u=Math.round((t.width-e/i)/2),o=Math.round((t.height-r/i)/2);return{width:e,height:r,rect:{x:u,y:o,width:Math.round(e/i),height:Math.round(r/i)}}},l=(t,n,e)=>{let r=new URL(t),{x:i,y:u,width:o,height:a}=n;return r.searchParams.set("rect",[i,u,o,a].join(",")),r.searchParams.set("w",e.width.toString()),r.searchParams.set("h",e.height.toString()),r.toString()};function p(t){var n,e;let[r,i,u]=(()=>{let n=t.images[(0,a.randomInt)(0,t.images.length-1)],e=null==n?void 0:n.url.split("?")[0];if(!e)throw Error("Something happened during Image generation.");return[e,n.width,n.height]})(),{width:o,height:c,rect:p}=f({width:i,height:u},t.constraints),d=(null===(n=t.constraints)||void 0===n?void 0:n.width)||(null===(e=t.constraints)||void 0===e?void 0:e.height)?l(r,p,{width:o,height:c}):r;return{origin:{id:t.id,url:r,width:i,height:u},url:d,width:o,height:c,edit:{zoom:1,crop:{x:p.x,y:p.y},background:"transparent"},alt:(0,a.slug)()}}function d(t,n=c){var e,r,u;let o=p({id:"main",constraints:null===(e=t.config)||void 0===e?void 0:e.constraint,images:n}),a=null===(u=null===(r=t.config)||void 0===r?void 0:r.thumbnails)||void 0===u?void 0:u.map(t=>[t.name,p({id:t.name,constraints:{width:t.width,height:t.height},images:n})]),f=a?{thumbnails:a.reduce((t,[n,e])=>({...t,[n]:e}),{})}:{};return{__TYPE__:i.ImageContentType,...o,...f}}n.random=d,n.ImageMock={generate:(t,n)=>d(t,(null==n?void 0:n.value)&&[n.value]),applyPatch(t){return t.diff.op===u.DiffOperation.Removed?{result:void 0}:"Image"===t.diff.value.type?{result:this.patch(t.diff,(0,i.isImageContent)(t.content)?t.content:void 0)}:void 0},patch(t,n){switch(t.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(t.value)}}}},54595:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.IntegrationFieldMock=void 0;let r=e(74982),i=e(74702);n.IntegrationFieldMock={generate(t,n){let e=(null==n?void 0:n.value)||"integration-field-product-id";return{__TYPE__:r.IntegrationFieldContentType,value:e}},applyPatch(t){var n;return t.diff.op===i.DiffOperation.Removed?{result:void 0}:"IntegrationFields"===t.diff.value.type?{result:this.patch(t.diff,(0,r.isIntegrationFieldContent)(t.content)?t.content:void 0,(null===(n=t.config)||void 0===n?void 0:n.type)==="IntegrationFields"?t.config:void 0)}:void 0},patch(t,n,e){switch(t.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(t.value,e)}}}},50107:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.DocumentLinkMock=void 0;let r=e(74982),i=e(15801);n.DocumentLinkMock={generate(t,n){var e,u,o;let a;if(null==n?void 0:n.value)a=n.value;else{let n=(null===(e=t.config)||void 0===e?void 0:e.allowText)?(0,i.slug)():void 0,r=null===(o=null===(u=t.config)||void 0===u?void 0:u.variants)||void 0===o?void 0:o[Math.floor(Math.random()*t.config.variants.length)];a={__TYPE__:"DocumentLink",id:"mock_document_id",...n&&{text:n},...r&&{variant:r}}}return r.DocumentLinkContent.encode(a)}}},79241:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.ExternalLinkMock=void 0;let r=e(22970),i=e(74982),u=(0,r.__importDefault)(e(83777)),o=e(15801);n.ExternalLinkMock={generate(t,n){var e,r,a;let c;if(null==n?void 0:n.value)c=n.value;else{let n=function(){let t=u.default,n=Math.floor(Math.random()*t.length),e=t[n];if(!e)throw Error("Something happened during web link generation.");return e}(),i=(null===(e=t.config)||void 0===e?void 0:e.allowText)?(0,o.slug)():void 0,f=null===(a=null===(r=t.config)||void 0===r?void 0:r.variants)||void 0===a?void 0:a[Math.floor(Math.random()*t.config.variants.length)];c={__TYPE__:"ExternalLink",url:n,...i&&{text:i},...f&&{variant:f}}}return i.ExternalLinkContent.encode(c)}}},25891:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.MediaLinkMock=void 0;let r=e(74982),i=e(15801);n.MediaLinkMock={generate(t,n){var e,u,o,a;let c;if(null==n?void 0:n.value)c=n.value;else{let f=(null===(e=t.config)||void 0===e?void 0:e.allowText)?(0,i.slug)():void 0,l=null===(o=null===(u=t.config)||void 0===u?void 0:u.variants)||void 0===o?void 0:o[Math.floor(Math.random()*t.config.variants.length)];c=null!==(a=null==n?void 0:n.value)&&void 0!==a?a:{__TYPE__:r.FileLinkType,id:"mock_Media_link",kind:"file",name:"mock_name",url:"https://source.unsplash.com/daily",size:"0",...f&&{text:f},...l&&{variant:l}}}return r.FileLinkContent.encode(c)}}},33610:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.LinkMock=void 0;let r=e(22970),i=e(74982),u=e(74702),o=e(73207),a=e(50107),c=e(79241),f=e(25891);n.LinkMock={generate(t,n){let e=(()=>{var e;switch(null===(e=t.config)||void 0===e?void 0:e.select){case"document":return a.DocumentLinkMock.generate(t);case"web":default:return c.ExternalLinkMock.generate(t,(null==n?void 0:n.value)&&n.value);case"media":return f.MediaLinkMock.generate(t,(null==n?void 0:n.value)&&n.value)}})();return{__TYPE__:i.LinkContentType,key:(0,o.v4)(),value:e}},applyPatch(t){var n,e;return t.diff.op===u.DiffOperation.Removed?{result:void 0}:"Link"!==t.diff.value.type||null!==(n=t.diff.value.config)&&void 0!==n&&n.repeat?void 0:{result:this.patch(t.diff,(0,i.isLinkContent)(t.content)?t.content:void 0,(null===(e=t.config)||void 0===e?void 0:e.type)==="Link"?t.config:void 0)}},patch(t,n,e){switch(t.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Added:case u.DiffOperation.Updated:return this.generate(t.value,e)}}},(0,r.__exportStar)(e(50107),n),(0,r.__exportStar)(e(79241),n),(0,r.__exportStar)(e(25891),n)},628:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.NumberMock=void 0;let r=e(74982),i=e(74702);n.NumberMock={generate(t,n){var e,i,u;let o=(null===(e=t.config)||void 0===e?void 0:e.min)?(null==n?void 0:n.min)&&n.min>t.config.min?n.min:t.config.min:0,a=(null===(i=t.config)||void 0===i?void 0:i.max)?(null==n?void 0:n.max)&&n.max<t.config.max?n.max:t.config.max:100,c=(null===(u=t.config)||void 0===u?void 0:u.step)?(null==n?void 0:n.step)&&n.step>t.config.step?n.step:t.config.step:1,f=((null==n?void 0:n.value)?n.value:function(t,n,e){let r=Math.floor(Math.random()*(n-t))+t;return r%e==0?r:Math.min(r+(e-r%e),n)}(o,a,c)).toString();return{__TYPE__:r.FieldContentType,value:f,type:"Number"}},applyPatch(t){var n;return t.diff.op===i.DiffOperation.Removed?{result:void 0}:"Number"===t.diff.value.type?{result:this.patch(t.diff,t.content&&t.content.__TYPE__!==r.FieldContentType?void 0:t.content,(null===(n=t.config)||void 0===n?void 0:n.type)==="Number"?t.config:void 0)}:void 0},patch(t,n,e){switch(t.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(t.value,e)}}}},38206:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.RangeMock=void 0;let r=e(74982),i=e(74702);n.RangeMock={generate(t,n){var e,i,u;let o=(null===(e=t.config)||void 0===e?void 0:e.min)?(null==n?void 0:n.min)&&n.min>t.config.min?n.min:t.config.min:0,a=(null===(i=t.config)||void 0===i?void 0:i.max)?(null==n?void 0:n.max)&&n.max<t.config.max?n.max:t.config.max:100,c=(null===(u=t.config)||void 0===u?void 0:u.step)?(null==n?void 0:n.step)&&n.step>t.config.step?n.step:t.config.step:1,f=((null==n?void 0:n.value)?n.value:function(t,n,e){let r=Math.floor(Math.random()*(n-t))+t;return r%e==0?r:Math.min(r+(e-r%e),n)}(o,a,c)).toString();return{__TYPE__:r.FieldContentType,value:f,type:"Range"}},applyPatch(t){var n;return t.diff.op===i.DiffOperation.Removed?{result:void 0}:"Range"===t.diff.value.type?{result:this.patch(t.diff,(0,r.isRangeContent)(t.content)?t.content:void 0,(null===(n=t.config)||void 0===n?void 0:n.type)==="Range"?t.config:void 0)}:void 0},patch(t,n,e){switch(t.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(t.value,e)}}}},28158:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.RepeatableMock=void 0;let r=e(74982),i=e(74702),u=e(33610);n.RepeatableMock={generate(t,n){var e,r;return{__TYPE__:"RepeatableContent",type:t.type,value:null!==(e=null==n?void 0:n.value)&&void 0!==e?e:Array(null!==(r=null==n?void 0:n.nbItems)&&void 0!==r?r:1).fill(null).map(()=>u.LinkMock.generate(t))}},patch(t,n,e){switch(t.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(t.value,e)}},applyPatch(t){var n,e;return t.diff.op===i.DiffOperation.Removed?{result:void 0}:"Link"===t.diff.value.type&&(null===(n=t.diff.value.config)||void 0===n?void 0:n.repeat)?{result:this.patch(t.diff,(0,r.isRepeatableContent)(t.content)?t.content:void 0,(null===(e=t.config)||void 0===e?void 0:e.type)==="Repeatable"?t.config:void 0)}:void 0}}},13319:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.RichTextMockConfig=n.Patterns=void 0;let r=e(23535),i=e(72788),u=e(15801),o={sentencesPerParagraph:{min:1,max:3},wordsPerSentence:{min:4,max:16}};n.Patterns={PARAGRAPH:{title:"Simple Paragraph",test:t=>t.some(t=>t===r.RichTextNodeType.paragraph),value:()=>[r.RichTextNodeType.paragraph],description:"A single paragraph with a variant number of words.",loremConfig:o},HEADING:{title:"Section Title",test:t=>t.some(n.RichTextMockConfig.isHeading),value:t=>[t.find(n.RichTextMockConfig.isHeading)||r.RichTextNodeType.heading1],description:"A single heading (h1 to h6) with a variant number of words.",loremConfig:o},STORY:{title:"Story",test:t=>t.some(n.RichTextMockConfig.isHeading)&&t.some(t=>t===r.RichTextNodeType.paragraph),value:t=>[t.find(n.RichTextMockConfig.isHeading)||r.RichTextNodeType.heading1,...n.RichTextMockConfig.optionalType(t,r.RichTextNodeType.image),r.RichTextNodeType.paragraph],description:"Content with headings, texts and optional images",loremConfig:o},TABLE_HEADER:{title:"Table header",test:t=>t.some(t=>t===r.RichTextNodeType.paragraph),value:()=>[r.RichTextNodeType.paragraph],description:"A very short paragraph that can be used as a table header.",loremConfig:{sentencesPerParagraph:{min:1,max:1},wordsPerSentence:{min:1,max:2}}},TABLE_CELL:{title:"Table cell",test:t=>t.some(t=>t===r.RichTextNodeType.paragraph),value:()=>[r.RichTextNodeType.paragraph],description:"A single sentence paragraph that can be used as a table cell.",loremConfig:{sentencesPerParagraph:{min:1,max:1},wordsPerSentence:{min:4,max:8}}}},n.RichTextMockConfig={INITIAL_CONFIG:{pattern:n.Patterns.PARAGRAPH,blocks:1},isHeading:t=>0===t.indexOf("heading"),isText:t=>t===r.RichTextNodeType.paragraph||n.RichTextMockConfig.isHeading(t),isImage:t=>t===r.RichTextNodeType.image,optionalType:(t,n)=>t.find(t=>t===n)&&Math.random()>.5?[n]:[],findMatchingPattern:t=>{let e=Object.entries(n.Patterns).find(([,n])=>n.test(t));return e&&e.length?e[1]:n.RichTextMockConfig.INITIAL_CONFIG.pattern},generateText:(t,e)=>{if(n.RichTextMockConfig.isHeading(t)){let t=(0,u.slug)({min:5,max:10});return[t[0]&&t[0].toUpperCase(),...t.slice(1)].join("")}return new i.LoremIpsum(e).generateParagraphs(1)}}},35650:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.RichTextMock=void 0;let r=e(22970),i=e(74982),u=e(23535),o=e(74702),a=e(66947),c=e(13319);n.RichTextMock={generate(t,n){let e=(null==n?void 0:n.value)||function(t,n){var e,r;let i=((null===(e=null==t?void 0:t.config)||void 0===e?void 0:e.multi)||(null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.single)||`${u.RichTextNodeType.paragraph}`).split(",").map(t=>t),o=(null==n?void 0:n.pattern)&&c.Patterns[n.pattern]||c.RichTextMockConfig.findMatchingPattern(i),f=o.value(i);return Array((null==n?void 0:n.nbBlocks)||c.RichTextMockConfig.INITIAL_CONFIG.blocks).fill(null).map(()=>f.map(t=>{if(c.RichTextMockConfig.isText(t))return{type:t,content:{text:c.RichTextMockConfig.generateText(t,o.loremConfig)}};let n=(0,a.random)({type:"Image"});return{type:u.RichTextNodeType.image,data:n}})).flat()}(t,n);return{__TYPE__:i.RichTextContentType,value:e}},applyPatch(t){var n;return t.diff.op===o.DiffOperation.Removed?{result:void 0}:"StructuredText"===t.diff.value.type?{result:this.patch(t.diff,(0,i.isRichTextContent)(t.content)?t.content:void 0,(null===(n=t.config)||void 0===n?void 0:n.type)==="StructuredText"?t.config:void 0)}:void 0},patch(t,n,e){switch(t.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(t.value,e)}}},(0,r.__exportStar)(e(13319),n)},20999:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.SelectMock=void 0;let r=e(74982),i=e(74702),u="mock_option";n.SelectMock={generate(t,n){let e=(null==n?void 0:n.value)||function(t){if(!t.config)return u;if(t.config.default_value&&.5>Math.random())return t.config.default_value;if(!t.config.options)return u;let n=Math.floor(Math.random()*t.config.options.length);return t.config.options[n]||u}(t);return{__TYPE__:r.FieldContentType,value:e,type:"Select"}},applyPatch(t){var n;return t.diff.op===i.DiffOperation.Removed?{result:void 0}:"Select"===t.diff.value.type?{result:this.patch(t.diff,(0,r.isSelectContent)(t.content)?t.content:void 0,(null===(n=t.config)||void 0===n?void 0:n.type)==="Select"?t.config:void 0)}:void 0},patch(t,n,e){switch(t.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(t.value,e)}}}},14259:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.SeparatorMock=void 0;let r=e(74982),i=e(74702);n.SeparatorMock={generate:()=>({__TYPE__:r.SeparatorContentType}),applyPatch(t){return t.diff.op===i.DiffOperation.Removed?{result:void 0}:"Separator"===t.diff.value.type?{result:this.patch(t.diff,(0,r.isSeparatorContent)(t.content)?t.content:void 0)}:void 0},patch(t,n){switch(t.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(t.value)}}}},91678:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.TableMock=void 0;let r=e(74982),i=e(23535),u=e(74702),o=e(73207),a=e(35650);n.TableMock={generate(t,n){var e;return{__TYPE__:"TableContent",content:null!==(e=null==n?void 0:n.value)&&void 0!==e?e:[{key:(0,o.v4)(),type:"tableRow",content:f({length:2,type:"tableHeader"})},{key:(0,o.v4)(),type:"tableRow",content:f({length:2,type:"tableCell"})}]}},applyPatch(t){var n;return t.diff.op===u.DiffOperation.Removed?{result:void 0}:"Table"===t.diff.value.type?{result:this.patch(t.diff,(0,r.isTableContent)(t.content)?t.content:void 0,(null===(n=t.config)||void 0===n?void 0:n.type)==="Table"?t.config:void 0)}:void 0},patch(t,n,e){switch(t.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(t.value,e)}}};let c={tableHeader:"TABLE_HEADER",tableCell:"TABLE_CELL"},f=({length:t,type:n})=>Array.from({length:t},()=>({key:(0,o.v4)(),type:n,content:a.RichTextMock.generate(i.TableCell,{type:"StructuredText",pattern:c[n]})}))},44395:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.TextMock=void 0;let r=e(74982),i=e(74702),u=e(15801);n.TextMock={generate(t,n){var e,i;let o=(null==n?void 0:n.value)||(e=null==n?void 0:n.minChar,i=null==n?void 0:n.maxChar,(0,u.slug)({...e?{min:e}:{},...i?{max:i}:{}}));return{__TYPE__:r.FieldContentType,value:o,type:"Text"}},applyPatch(t){var n;return t.diff.op===i.DiffOperation.Removed?{result:void 0}:"Text"===t.diff.value.type?{result:this.patch(t.diff,(0,r.isTextContent)(t.content)?t.content:void 0,(null===(n=t.config)||void 0===n?void 0:n.type)==="Text"?t.config:void 0)}:void 0},patch(t,n,e){switch(t.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(t.value,e)}}}},4424:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.TimestampMock=void 0;let r=e(74982),i=e(74702);function u(t){return t.toISOString().slice(0,19)+"Z"}function o(t=new Date(2012,0,1),n=new Date){return u(new Date(t.getTime()+Math.random()*(n.getTime()-t.getTime())))}n.TimestampMock={generate(t,n){let e=(null==n?void 0:n.value)?u(n.value):(null==n?void 0:n.start)&&(null==n?void 0:n.end)?o(n.start,n.end):o(new Date(2012,0,1),new Date);return{__TYPE__:r.FieldContentType,type:"Timestamp",value:e}},applyPatch(t){var n;return t.diff.op===i.DiffOperation.Removed?{result:void 0}:"Timestamp"===t.diff.value.type?{result:this.patch(t.diff,(0,r.isTimestampContent)(t.content)?t.content:void 0,(null===(n=t.config)||void 0===n?void 0:n.type)==="Timestamp"?t.config:void 0)}:void 0},patch(t,n,e){switch(t.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(t.value,e)}}}},92947:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.NestableWidgetMock=void 0;let r=e(22970),i=e(74702),u=e(42386),o=e(98017),a=e(21276),c=e(60300),f=e(95441),l=e(66947),p=e(54595),d=e(33610),s=e(628),h=e(38206),m=e(28158),v=e(35650),g=e(20999),y=e(14259),b=e(91678),_=e(44395),I=e(4424);(0,r.__exportStar)(e(42386),n),(0,r.__exportStar)(e(98017),n),(0,r.__exportStar)(e(21276),n),(0,r.__exportStar)(e(60300),n),(0,r.__exportStar)(e(95441),n),(0,r.__exportStar)(e(66947),n),(0,r.__exportStar)(e(54595),n),(0,r.__exportStar)(e(33610),n),(0,r.__exportStar)(e(628),n),(0,r.__exportStar)(e(38206),n),(0,r.__exportStar)(e(28158),n),(0,r.__exportStar)(e(35650),n),(0,r.__exportStar)(e(20999),n),(0,r.__exportStar)(e(14259),n),(0,r.__exportStar)(e(44395),n),(0,r.__exportStar)(e(4424),n),n.NestableWidgetMock={generate(t,n){var e;switch(t.type){case"Boolean":return u.BooleanMock.generate(t,(null==n?void 0:n.type)==="Boolean"?n:void 0);case"Color":return o.ColorMock.generate(t,(null==n?void 0:n.type)==="Color"?n:void 0);case"Link":if(null===(e=t.config)||void 0===e?void 0:e.repeat)return m.RepeatableMock.generate(t,(null==n?void 0:n.type)==="Repeatable"?n:void 0);return d.LinkMock.generate(t,(null==n?void 0:n.type)==="Link"?n:void 0);case"Date":return a.DateMock.generate(t,(null==n?void 0:n.type)==="Date"?n:void 0);case"Embed":return c.EmbedMock.generate(t,(null==n?void 0:n.type)==="Embed"?n:void 0);case"GeoPoint":return f.GeoPointMock.generate(t,(null==n?void 0:n.type)==="GeoPoint"?n:void 0);case"Image":return l.ImageMock.generate(t);case"IntegrationFields":return p.IntegrationFieldMock.generate(t,(null==n?void 0:n.type)==="IntegrationFields"?n:void 0);case"Number":return s.NumberMock.generate(t,(null==n?void 0:n.type)==="Number"?n:void 0);case"Range":return h.RangeMock.generate(t,(null==n?void 0:n.type)==="Range"?n:void 0);case"StructuredText":return v.RichTextMock.generate(t,(null==n?void 0:n.type)==="StructuredText"?n:void 0);case"Select":return g.SelectMock.generate(t,(null==n?void 0:n.type)==="Select"?n:void 0);case"Table":return b.TableMock.generate(t,(null==n?void 0:n.type)==="Table"?n:void 0);case"Text":return _.TextMock.generate(t,(null==n?void 0:n.type)==="Text"?n:void 0);case"Timestamp":return I.TimestampMock.generate(t,(null==n?void 0:n.type)==="Timestamp"?n:void 0);case"Separator":return y.SeparatorMock.generate(t)}},patch(t,n,e){if(t.op===i.DiffOperation.Removed)return;let r={diff:t,content:n,config:e},R=o.ColorMock.applyPatch(r)||a.DateMock.applyPatch(r)||I.TimestampMock.applyPatch(r)||g.SelectMock.applyPatch(r)||h.RangeMock.applyPatch(r)||_.TextMock.applyPatch(r)||s.NumberMock.applyPatch(r)||u.BooleanMock.applyPatch(r)||v.RichTextMock.applyPatch(r)||d.LinkMock.applyPatch(r)||c.EmbedMock.applyPatch(r)||f.GeoPointMock.applyPatch(r)||l.ImageMock.applyPatch(r)||p.IntegrationFieldMock.applyPatch(r)||y.SeparatorMock.applyPatch(r)||b.TableMock.applyPatch(r)||m.RepeatableMock.applyPatch(r);return null==R?void 0:R.result}}},25242:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.generateSliceMock=n.generateDocumentMock=void 0;let r=e(22970),i=e(73605);n.generateDocumentMock=function(t,n,e){let r=i.DocumentMock.generate(t,n,e);return e=>e?e(t,n,r):r},n.generateSliceMock=function(t,n){let e=i.SharedSliceMock.generate(t,n);return n=>n?n(t,e):e},(0,r.__exportStar)(e(62283),n),(0,r.__exportStar)(e(73605),n),(0,r.__exportStar)(e(86449),n)},54775:function(t,n){Object.defineProperty(n,"__esModule",{value:!0});let e={urlRewriter:{optimizeImageUrl:t=>t,rewriteImageUrl:t=>t.url||"/mockURL",rewriteFileUrl:t=>t,rewriteS3Bucket:t=>t,enforceCDN:t=>t},emptyStringInsteadOfNull:!1,Extension:{DocEncoder:{encodeDocId:(t,n,e)=>`${t}${(null==e?void 0:e.length)?"%%"+e.join("%%"):""}`},encoders:{documentLinks:r("=&="),documentUrls:r(">&<"),integrationFields:r("%!%")}},LinkResolver:{buildUrl:t=>"/"}};function r(t){return{encode:n=>`${t}#${n}`}}n.default=e},86449:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.renderSliceMock=n.renderDocumentMock=void 0;let r=e(22970),i=e(88985),u=e(23535),o=e(73207),a=(0,r.__importDefault)(e(54775));n.renderDocumentMock=function(t,n,e){let r=Object.entries(n).filter(t=>!!t[1]),o=Object.entries(e).filter(t=>!!t[1]),c=(0,u.toStatic)(t,new Map(r)),f={customTypeId:t.id,fields:Object.fromEntries((0,u.flattenSections)(c))};return(0,i.DocumentRenderer)(a.default).renderMocks(f,o)},n.renderSliceMock=function(t,n){return{...(0,i.SharedSliceRenderer)(a.default).renderMocks(t,n),id:`${t.id}$${(0,o.v4)()}`,slice_type:t.id}}},73207:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"v4",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,"v5",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(n,"version",{enumerable:!0,get:function(){return c.default}});var r=d(e(99324)),i=d(e(37776)),u=d(e(60588)),o=d(e(88434)),a=d(e(20669)),c=d(e(36058)),f=d(e(41252)),l=d(e(71400)),p=d(e(80169));function d(t){return t&&t.__esModule?t:{default:t}}},96902:function(t,n){function e(t){return(t+64>>>9<<4)+14+1}function r(t,n){let e=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(e>>16)<<16|65535&e}function i(t,n,e,i,u,o){var a;return r((a=r(r(n,t),r(i,o)))<<u|a>>>32-u,e)}function u(t,n,e,r,u,o,a){return i(n&e|~n&r,t,n,u,o,a)}function o(t,n,e,r,u,o,a){return i(n&r|e&~r,t,n,u,o,a)}function a(t,n,e,r,u,o,a){return i(n^e^r,t,n,u,o,a)}function c(t,n,e,r,u,o,a){return i(e^(n|~r),t,n,u,o,a)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(t){if("string"==typeof t){let n=unescape(encodeURIComponent(t));t=new Uint8Array(n.length);for(let e=0;e<n.length;++e)t[e]=n.charCodeAt(e)}return function(t){let n=[],e=32*t.length,r="0123456789abcdef";for(let i=0;i<e;i+=8){let e=t[i>>5]>>>i%32&255,u=parseInt(r.charAt(e>>>4&15)+r.charAt(15&e),16);n.push(u)}return n}(function(t,n){t[n>>5]|=128<<n%32,t[e(n)-1]=n;let i=1732584193,f=-271733879,l=-1732584194,p=271733878;for(let n=0;n<t.length;n+=16){let e=i,d=f,s=l,h=p;i=u(i,f,l,p,t[n],7,-680876936),p=u(p,i,f,l,t[n+1],12,-389564586),l=u(l,p,i,f,t[n+2],17,606105819),f=u(f,l,p,i,t[n+3],22,-1044525330),i=u(i,f,l,p,t[n+4],7,-176418897),p=u(p,i,f,l,t[n+5],12,1200080426),l=u(l,p,i,f,t[n+6],17,-1473231341),f=u(f,l,p,i,t[n+7],22,-45705983),i=u(i,f,l,p,t[n+8],7,1770035416),p=u(p,i,f,l,t[n+9],12,-1958414417),l=u(l,p,i,f,t[n+10],17,-42063),f=u(f,l,p,i,t[n+11],22,-1990404162),i=u(i,f,l,p,t[n+12],7,1804603682),p=u(p,i,f,l,t[n+13],12,-40341101),l=u(l,p,i,f,t[n+14],17,-1502002290),f=u(f,l,p,i,t[n+15],22,1236535329),i=o(i,f,l,p,t[n+1],5,-165796510),p=o(p,i,f,l,t[n+6],9,-1069501632),l=o(l,p,i,f,t[n+11],14,643717713),f=o(f,l,p,i,t[n],20,-373897302),i=o(i,f,l,p,t[n+5],5,-701558691),p=o(p,i,f,l,t[n+10],9,38016083),l=o(l,p,i,f,t[n+15],14,-660478335),f=o(f,l,p,i,t[n+4],20,-405537848),i=o(i,f,l,p,t[n+9],5,568446438),p=o(p,i,f,l,t[n+14],9,-1019803690),l=o(l,p,i,f,t[n+3],14,-187363961),f=o(f,l,p,i,t[n+8],20,1163531501),i=o(i,f,l,p,t[n+13],5,-1444681467),p=o(p,i,f,l,t[n+2],9,-51403784),l=o(l,p,i,f,t[n+7],14,1735328473),f=o(f,l,p,i,t[n+12],20,-1926607734),i=a(i,f,l,p,t[n+5],4,-378558),p=a(p,i,f,l,t[n+8],11,-2022574463),l=a(l,p,i,f,t[n+11],16,1839030562),f=a(f,l,p,i,t[n+14],23,-35309556),i=a(i,f,l,p,t[n+1],4,-1530992060),p=a(p,i,f,l,t[n+4],11,1272893353),l=a(l,p,i,f,t[n+7],16,-155497632),f=a(f,l,p,i,t[n+10],23,-1094730640),i=a(i,f,l,p,t[n+13],4,681279174),p=a(p,i,f,l,t[n],11,-358537222),l=a(l,p,i,f,t[n+3],16,-722521979),f=a(f,l,p,i,t[n+6],23,76029189),i=a(i,f,l,p,t[n+9],4,-640364487),p=a(p,i,f,l,t[n+12],11,-421815835),l=a(l,p,i,f,t[n+15],16,530742520),f=a(f,l,p,i,t[n+2],23,-995338651),i=c(i,f,l,p,t[n],6,-198630844),p=c(p,i,f,l,t[n+7],10,1126891415),l=c(l,p,i,f,t[n+14],15,-1416354905),f=c(f,l,p,i,t[n+5],21,-57434055),i=c(i,f,l,p,t[n+12],6,1700485571),p=c(p,i,f,l,t[n+3],10,-1894986606),l=c(l,p,i,f,t[n+10],15,-1051523),f=c(f,l,p,i,t[n+1],21,-2054922799),i=c(i,f,l,p,t[n+8],6,1873313359),p=c(p,i,f,l,t[n+15],10,-30611744),l=c(l,p,i,f,t[n+6],15,-1560198380),f=c(f,l,p,i,t[n+13],21,1309151649),i=c(i,f,l,p,t[n+4],6,-145523070),p=c(p,i,f,l,t[n+11],10,-1120210379),l=c(l,p,i,f,t[n+2],15,718787259),f=c(f,l,p,i,t[n+9],21,-343485551),i=r(i,e),f=r(f,d),l=r(l,s),p=r(p,h)}return[i,f,l,p]}(function(t){if(0===t.length)return[];let n=8*t.length,r=new Uint32Array(e(n));for(let e=0;e<n;e+=8)r[e>>5]|=(255&t[e/8])<<e%32;return r}(t),8*t.length))}},45691:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;let e="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);n.default={randomUUID:e}},20669:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default="00000000-0000-0000-0000-000000000000"},80169:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e(41252))&&r.__esModule?r:{default:r};n.default=function(t){let n;if(!(0,i.default)(t))throw TypeError("Invalid UUID");let e=new Uint8Array(16);return e[0]=(n=parseInt(t.slice(0,8),16))>>>24,e[1]=n>>>16&255,e[2]=n>>>8&255,e[3]=255&n,e[4]=(n=parseInt(t.slice(9,13),16))>>>8,e[5]=255&n,e[6]=(n=parseInt(t.slice(14,18),16))>>>8,e[7]=255&n,e[8]=(n=parseInt(t.slice(19,23),16))>>>8,e[9]=255&n,e[10]=(n=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=n/4294967296&255,e[12]=n>>>24&255,e[13]=n>>>16&255,e[14]=n>>>8&255,e[15]=255&n,e}},42143:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},90371:function(t,n){let e;Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(r)};let r=new Uint8Array(16)},63639:function(t,n){function e(t,n){return t<<n|t>>>32-n}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(t){let n=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){let n=unescape(encodeURIComponent(t));t=[];for(let e=0;e<n.length;++e)t.push(n.charCodeAt(e))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);let i=Math.ceil((t.length/4+2)/16),u=Array(i);for(let n=0;n<i;++n){let e=new Uint32Array(16);for(let r=0;r<16;++r)e[r]=t[64*n+4*r]<<24|t[64*n+4*r+1]<<16|t[64*n+4*r+2]<<8|t[64*n+4*r+3];u[n]=e}u[i-1][14]=(t.length-1)*8/4294967296,u[i-1][14]=Math.floor(u[i-1][14]),u[i-1][15]=(t.length-1)*8&4294967295;for(let t=0;t<i;++t){let i=new Uint32Array(80);for(let n=0;n<16;++n)i[n]=u[t][n];for(let t=16;t<80;++t)i[t]=e(i[t-3]^i[t-8]^i[t-14]^i[t-16],1);let o=r[0],a=r[1],c=r[2],f=r[3],l=r[4];for(let t=0;t<80;++t){let r=Math.floor(t/20),u=e(o,5)+function(t,n,e,r){switch(t){case 0:return n&e^~n&r;case 1:case 3:return n^e^r;case 2:return n&e^n&r^e&r}}(r,a,c,f)+l+n[r]+i[t]>>>0;l=f,f=c,c=e(a,30)>>>0,a=o,o=u}r[0]=r[0]+o>>>0,r[1]=r[1]+a>>>0,r[2]=r[2]+c>>>0,r[3]=r[3]+f>>>0,r[4]=r[4]+l>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},71400:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.unsafeStringify=o;var r,i=(r=e(41252))&&r.__esModule?r:{default:r};let u=[];for(let t=0;t<256;++t)u.push((t+256).toString(16).slice(1));function o(t,n=0){return u[t[n+0]]+u[t[n+1]]+u[t[n+2]]+u[t[n+3]]+"-"+u[t[n+4]]+u[t[n+5]]+"-"+u[t[n+6]]+u[t[n+7]]+"-"+u[t[n+8]]+u[t[n+9]]+"-"+u[t[n+10]]+u[t[n+11]]+u[t[n+12]]+u[t[n+13]]+u[t[n+14]]+u[t[n+15]]}n.default=function(t,n=0){let e=o(t,n);if(!(0,i.default)(e))throw TypeError("Stringified UUID is invalid");return e}},99324:function(t,n,e){let r,i;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u,o=(u=e(90371))&&u.__esModule?u:{default:u},a=e(71400);let c=0,f=0;n.default=function(t,n,e){let u=n&&e||0,l=n||Array(16),p=(t=t||{}).node||r,d=void 0!==t.clockseq?t.clockseq:i;if(null==p||null==d){let n=t.random||(t.rng||o.default)();null==p&&(p=r=[1|n[0],n[1],n[2],n[3],n[4],n[5]]),null==d&&(d=i=(n[6]<<8|n[7])&16383)}let s=void 0!==t.msecs?t.msecs:Date.now(),h=void 0!==t.nsecs?t.nsecs:f+1,m=s-c+(h-f)/1e4;if(m<0&&void 0===t.clockseq&&(d=d+1&16383),(m<0||s>c)&&void 0===t.nsecs&&(h=0),h>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");c=s,f=h,i=d;let v=((268435455&(s+=122192928e5))*1e4+h)%4294967296;l[u++]=v>>>24&255,l[u++]=v>>>16&255,l[u++]=v>>>8&255,l[u++]=255&v;let g=s/4294967296*1e4&268435455;l[u++]=g>>>8&255,l[u++]=255&g,l[u++]=g>>>24&15|16,l[u++]=g>>>16&255,l[u++]=d>>>8|128,l[u++]=255&d;for(let t=0;t<6;++t)l[u+t]=p[t];return n||(0,a.unsafeStringify)(l)}},37776:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=u(e(90619)),i=u(e(96902));function u(t){return t&&t.__esModule?t:{default:t}}let o=(0,r.default)("v3",48,i.default);n.default=o},90619:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.URL=n.DNS=void 0,n.default=function(t,n,e){function r(t,r,o,a){var c;if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));let n=[];for(let e=0;e<t.length;++e)n.push(t.charCodeAt(e));return n}(t)),"string"==typeof r&&(r=(0,u.default)(r)),(null===(c=r)||void 0===c?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let f=new Uint8Array(16+t.length);if(f.set(r),f.set(t,r.length),(f=e(f))[6]=15&f[6]|n,f[8]=63&f[8]|128,o){a=a||0;for(let t=0;t<16;++t)o[a+t]=f[t];return o}return(0,i.unsafeStringify)(f)}try{r.name=t}catch(t){}return r.DNS=o,r.URL=a,r};var r,i=e(71400),u=(r=e(80169))&&r.__esModule?r:{default:r};let o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";n.DNS=o;let a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";n.URL=a},60588:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(e(45691)),i=o(e(90371)),u=e(71400);function o(t){return t&&t.__esModule?t:{default:t}}n.default=function(t,n,e){if(r.default.randomUUID&&!n&&!t)return r.default.randomUUID();let o=(t=t||{}).random||(t.rng||i.default)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,n){e=e||0;for(let t=0;t<16;++t)n[e+t]=o[t];return n}return(0,u.unsafeStringify)(o)}},88434:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=u(e(90619)),i=u(e(63639));function u(t){return t&&t.__esModule?t:{default:t}}let o=(0,r.default)("v5",80,i.default);n.default=o},41252:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e(42143))&&r.__esModule?r:{default:r};n.default=function(t){return"string"==typeof t&&i.default.test(t)}},36058:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e(41252))&&r.__esModule?r:{default:r};n.default=function(t){if(!(0,i.default)(t))throw TypeError("Invalid UUID");return parseInt(t.slice(14,15),16)}},32387:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ContentPath=void 0,n.ContentPath={serialize:t=>t.map(t=>t.key).join("::"),current:t=>t[t.length-1],append:(t,n)=>t+"::"+n,make:t=>t.reduce((t,{key:n,type:e})=>n?t.concat({key:n,type:e}):t,[])}},9085:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getAssetOrThrow=void 0,n.getAssetOrThrow=t=>n=>{let e=t[n];if(!e)throw Error(`Missing asset with id '${n}'!`);return e}},97381:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getEmbedOrThrow=void 0,n.getEmbedOrThrow=t=>n=>{let e=t[n];if(!e)throw Error(`Missing embed with url '${n}'`);return e}},55962:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.HexaColor=void 0;let e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;n.HexaColor={is:t=>e.test(t)}},70402:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.WidgetKey=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(35002),u=RegExp("^[^<>]+$");n.WidgetKey=(0,i.refineType)(r.string,"WidgetKey",t=>0===t.length||u.test(t))},31289:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(9085),n),(0,r.__exportStar)(e(97381),n),(0,r.__exportStar)(e(70402),n)},20168:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.migrateDocument=n.collectWidgets=n.traverseDocument=n.fillDocumentWithDefaultValues=n.DocumentLegacy=n.Document=void 0;let r=e(22970),i=e(9554),u=e(87412),o=e(14632),a=(0,r.__importStar)(e(87830)),c=e(32387),f=e(31289),l=e(23535),p=e(33832),d=e(3845);n.Document=a.record(f.WidgetKey,p.WidgetContent);let s=a.record(f.WidgetKey,a.unknown),h=t=>new a.Type("Document",t=>!!t&&"object"==typeof t,n=>(0,o.pipe)(s.decode(n),i.either.map(n=>Object.entries(n).reduce((n,[e,r])=>{let i=(0,d.defaultCtx)(e,t),o=(0,p.WidgetLegacy)(i).decode(r);return!o||(0,u.isLeft)(o)?n:{...n,[e]:o.right}},{}))),n=>Object.entries(n).reduce((n,[e,r])=>{let i=(0,d.defaultCtx)(e,t),u=(0,p.WidgetLegacy)(i).encode(r);return u?{content:{...n.content,[e]:u.content},types:{...n.types,...u.types}}:n},{content:{},types:{}}));function m(t){let{types:n,widgets:e}=Object.entries(t).reduce((t,[n,e])=>{if(n.endsWith("_TYPE")){let r=d.FieldOrSliceType.decode(e);if((0,u.isRight)(r))return{...t,types:t.types.set(n.substring(0,n.length-5),r.right)}}return n.endsWith("_POSITION")||n.endsWith("_TYPE")?t:{...t,widgets:{...t.widgets,[n]:e}}},{types:new Map,widgets:{}}),r=t.slugs_INTERNAL||[];return{widgets:e,types:n,uid:t.uid,slugs:r}}function v(t){return{customTypeId:null==t?void 0:t.id,fields:Object.fromEntries((0,l.flattenSections)(t))}}function g({document:t,customType:n}){let e=n&&l.StaticCustomType.is(n)?v(n):n;return({transformWidget:n=({content:t})=>t,transformSlice:r=({content:t})=>t})=>{let i=e&&Object.entries(e.fields).reduce((t,[n,e])=>({...t,[n]:e}),{});return Object.entries(t).reduce((t,[u,o])=>{let a=i&&i[u],f=c.ContentPath.make([{key:null==e?void 0:e.customTypeId,type:"CustomType"},{key:u,type:"Widget"}]),l=(()=>{switch(o.__TYPE__){case"SliceContentType":return(0,p.traverseSlices)({path:f,key:u,model:(null==a?void 0:a.type)==="Slices"||(null==a?void 0:a.type)==="Choice"?a:void 0,content:o})({transformWidget:n,transformSlice:r});case"GroupContentType":return(0,p.traverseGroupContent)({path:f,key:u,apiId:u,model:(null==a?void 0:a.type)==="Group"?a:void 0,content:o})(n);case"RepeatableContent":return(0,p.traverseRepeatableContent)({path:f,key:u,apiId:u,model:(null==a?void 0:a.type)==="Link"?a:void 0,content:o})(n);case"TableContent":return(0,p.traverseTableContent)({path:f,key:u,apiId:u,model:(null==a?void 0:a.type)==="Table"?a:void 0,content:o})(n);default:return n({path:f,key:u,apiId:u,model:(null==a?void 0:a.type)!=="Group"&&(null==a?void 0:a.type)!=="Slices"&&(null==a?void 0:a.type)!=="Choice"?a:void 0,content:o})}})();return{...t,...l?{[u]:l}:{}}},{})}}function y(t,n){let e=l.StaticCustomType.is(n)?v(n):n;return Object.values((0,l.collectSharedSlices)(e)).some(t=>!!t.legacyPaths)?g({document:t,customType:n})({transformSlice:p.migrateSliceItem}):t}n.DocumentLegacy={_codec:h,extractMetadata:m,parse:function(t,n){let e=(0,o.pipe)(a.record(f.WidgetKey,a.unknown).decode(t),i.either.chain(t=>{let{types:n,widgets:e}=m(t);return h(n).decode(e)}));return(0,u.isLeft)(e)?void 0:y(e.right,n)},encode:function(t){let n=h().encode(t);return{...n.content,...n.types}}},n.fillDocumentWithDefaultValues=function(t,n){let{fields:e}=t&&l.StaticCustomType.is(t)?v(t):t;return Object.entries(e).reduce((t,[e,r])=>{let i=n[e],u=(()=>{switch(r.type){case"Group":return(0,p.isGroupContent)(i)?(0,p.groupContentWithDefaultValues)(r,i):i;case"Choice":case"Slices":return(0,p.isSlicesContent)(i)?(0,p.slicesContentWithDefaultValues)(r,i):i;default:return void 0===i&&l.NestableWidget.is(r)?(0,p.NestableContentDefaultValue)(r):i}})();return u?{...t,[e]:u}:t},n)},n.traverseDocument=g,n.collectWidgets=function(t,n){let e={};return g({document:t})({transformWidget:({content:t,path:r})=>{let i=c.ContentPath.serialize(r);return n(t,r)&&(e[i]=t),t}}),e},n.migrateDocument=y},3845:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.defaultCtx=n.getFieldCtx=n.LegacyContentCtx=n.FieldOrSliceType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(99814);n.FieldOrSliceType=r.union([r.union([i.FieldType,i.SlicesTypes]),r.literal("Repeatable.Link")]);class u{constructor(t,n,e){Object.defineProperty(this,"fieldKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"prefixedKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"keyOfType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"allTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.fieldKey=t,this.fieldPath=n||[],this.allTypes=e||new Map;let r=Array.of(this.fieldPath,[this.fieldKey]).flat().join(".");this.prefixedKey=r,this.keyOfType=`${r}_TYPE`,this.fieldType=this.allTypes.get(this.prefixedKey)}}n.LegacyContentCtx=u,n.getFieldCtx=function(t,n,e){return new u(t,[...n.fieldPath,n.fieldKey,...e||[]],n.allTypes)},n.defaultCtx=function(t,n=new Map){return new u(t,[],n)}},82646:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.EmptyContent=n.EmptyLegacy=n.isEmptyContent=n.EmptyContentType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(58237);n.EmptyContentType="EmptyContent",n.isEmptyContent=t=>(0,a.hasContentType)(t)&&t.__TYPE__===n.EmptyContentType;let c=o.union([o.null,o.type({value:o.null})]);n.EmptyLegacy=t=>new o.Type("EmptyLegacy",n.isEmptyContent,e=>(0,u.pipe)(c.decode(e),i.either.map(()=>({type:t,__TYPE__:n.EmptyContentType}))),()=>null),n.EmptyContent=o.strict({type:o.string,__TYPE__:o.literal(n.EmptyContentType)})},22443:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.traverseGroupItemsContent=n.traverseGroupContent=n.groupContentWithDefaultValues=n.GroupLegacy=n.GroupItemLegacy=n.GroupContentDefaultValue=n.isGroupContent=n.GroupContent=n.GroupItemContent=n.GroupContentType=n.GroupItemContentType=void 0;let r=e(22970),i=e(9554),u=e(87412),o=e(14632),a=(0,r.__importStar)(e(87830)),c=e(23535),f=e(3845),l=e(58237),p=e(91366),d=e(22583);n.GroupItemContentType="GroupItemContent",n.GroupContentType="GroupContentType",n.GroupItemContent=a.recursion("GroupItemContent",()=>a.strict({__TYPE__:a.literal(n.GroupItemContentType),value:a.array(a.tuple([a.string,a.union([p.NestableContent,n.GroupContent])]))})),n.GroupContent=a.recursion("GroupContent",()=>a.strict({__TYPE__:a.literal(n.GroupContentType),value:a.array(n.GroupItemContent)})),n.isGroupContent=t=>(0,l.hasContentType)(t)&&t.__TYPE__===n.GroupContentType,n.GroupContentDefaultValue={__TYPE__:n.GroupContentType,value:[]};let s=a.record(a.string,a.unknown);function h({path:t,key:n,apiId:e,model:r,content:i}){return u=>{var o;let a=m({path:t,model:null===(o=null==r?void 0:r.config)||void 0===o?void 0:o.fields,content:i.value})(u);return u({path:t,key:n,apiId:e,model:r,content:{__TYPE__:i.__TYPE__,value:a}})}}function m({path:t,model:e,content:r}){return i=>r.map((r,u)=>{let o=t.concat([{key:u.toString(),type:"GroupItem"}]),a=r.value.reduce((t,[r,u])=>{let a;let c=null==e?void 0:e[r];return(a=(0,n.isGroupContent)(u)?h({path:o.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==c?void 0:c.type)==="Group"?c:void 0,content:u})(i):(0,p.isRepeatableContent)(u)?(0,p.traverseRepeatableContent)({path:o.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==c?void 0:c.type)==="Link"?c:void 0,content:u})(i):(0,p.isTableContent)(u)?(0,p.traverseTableContent)({path:o.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==c?void 0:c.type)==="Table"?c:void 0,content:u})(i):i({path:o.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:c,content:u}))&&((0,p.isNestableContent)(a)||(0,n.isGroupContent)(a))?t.concat([[r,a]]):t},[]);return{__TYPE__:r.__TYPE__,value:a}})}n.GroupItemLegacy=t=>new a.Type("GroupItemLegacy",t=>(0,l.hasContentType)(t)&&t.__TYPE__===n.GroupItemContentType,e=>(0,o.pipe)(s.decode(e),i.either.map(e=>({value:Object.entries(e).reduce((e,[r,i])=>{let o=(0,f.getFieldCtx)(r,t),a=o.fieldType===c.GroupFieldType?(0,n.GroupLegacy)(o).decode(i):(0,p.NestableLegacy)(o).decode(i);return!a||(0,u.isLeft)(a)?e:[...e,[r,a.right]]},[]),__TYPE__:n.GroupItemContentType}))),e=>e.value.reduce((e,[r,i])=>{let u=(0,f.getFieldCtx)(r,t),o=(0,n.isGroupContent)(i)?(0,n.GroupLegacy)(u).encode(i):(0,p.NestableLegacy)(u).encode(i);return o?{content:{...e.content,[r]:o.content},types:{...e.types,...o.types}}:e},{content:{},types:{}})),n.GroupLegacy=t=>{let e=a.array(a.union([a.null,(0,n.GroupItemLegacy)(t)])),r=a.array((0,n.GroupItemLegacy)(t));return new a.Type("GroupLegacy",n.isGroupContent,t=>(0,o.pipe)(e.decode(t),i.either.map(t=>({value:t.map(t=>null===t?{__TYPE__:n.GroupItemContentType,value:[]}:t),__TYPE__:n.GroupContentType}))),n=>{let e=r.encode(n.value);return{content:e.map(t=>t.content),types:e.reduce((t,n)=>({...t,...n.types}),{[t.keyOfType]:c.GroupFieldType})}})},n.groupContentWithDefaultValues=function(t,n){var e;let r=null===(e=t.config)||void 0===e?void 0:e.fields;return r?{...n,value:(0,d.repeatableContentWithDefaultNestableContentValues)(r,n.value)}:n},n.traverseGroupContent=h,n.traverseGroupItemsContent=m},40174:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.UIDContent=n.UIDLegacy=n.isUIDContent=n.UIDContentType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(58237);n.UIDContentType="UIDContent",n.isUIDContent=t=>(0,a.hasContentType)(t)&&t.__TYPE__===n.UIDContentType,n.UIDLegacy=t=>new o.Type("UIDLegacy",n.isUIDContent,t=>(0,u.pipe)(o.string.decode(t),i.either.map(t=>n.UIDContent.encode({value:t,__TYPE__:n.UIDContentType}))),n=>({content:n.value,types:{[t.keyOfType]:"UID"}})),n.UIDContent=o.type({__TYPE__:o.literal(n.UIDContentType),value:o.string})},93057:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.WidgetLegacy=n.isWidgetContent=n.WidgetContent=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(22443),u=e(91366),o=e(83592),a=e(40174);n.WidgetContent=r.union([i.GroupContent,u.NestableContent,a.UIDContent,o.SlicesContent]),n.isWidgetContent=t=>(0,i.isGroupContent)(t)||(0,u.isNestableContent)(t)||(0,a.isUIDContent)(t)||(0,o.isSlicesContent)(t),n.WidgetLegacy=t=>({decode(n){if(!t.fieldType)return;let e=(()=>{switch(t.fieldType){case"UID":return(0,a.UIDLegacy)(t);case"Group":return(0,i.GroupLegacy)(t);case"Choice":case"Slices":return(0,o.SlicesLegacy)(t);default:return(0,u.NestableLegacy)(t)}})();if(e)return e.decode(n)},encode(n){switch(n.__TYPE__){case a.UIDContentType:return(0,a.UIDLegacy)(t).encode(n);case i.GroupContentType:return(0,i.GroupLegacy)(t).encode(n);case o.SlicesContentType:return(0,o.SlicesLegacy)(t).encode(n);default:return(0,u.NestableLegacy)(t).encode(n)}}})},33832:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(82646),n),(0,r.__exportStar)(e(22443),n),(0,r.__exportStar)(e(91366),n),(0,r.__exportStar)(e(83592),n),(0,r.__exportStar)(e(40174),n),(0,r.__exportStar)(e(93057),n)},47451:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.BooleanContentDefaultValue=n.BooleanContent=n.BooleanLegacy=n.isBooleanContent=n.BooleanContentType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(58237);n.BooleanContentType="BooleanContent",n.isBooleanContent=t=>(0,a.hasContentType)(t)&&t.__TYPE__===n.BooleanContentType,n.BooleanLegacy=t=>new o.Type("BooleanLegacy",n.isBooleanContent,t=>(0,u.pipe)(o.boolean.decode(t),i.either.map(t=>n.BooleanContent.encode({value:t,__TYPE__:n.BooleanContentType}))),n=>({content:n.value,types:{[t.keyOfType]:"Boolean"}})),n.BooleanContent=o.strict({__TYPE__:o.literal(n.BooleanContentType),value:o.boolean}),n.BooleanContentDefaultValue=t=>{var e;return(null===(e=t.config)||void 0===e?void 0:e.default_value)!==void 0?{__TYPE__:n.BooleanContentType,value:t.config.default_value||!1}:void 0}},11836:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.EmbedContent=n.EmbedLegacy=n.EmbedContentLegacy=n.isEmbedContent=n.EmbedContentType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(8597),c=e(58237);n.EmbedContentType="EmbedContent",n.isEmbedContent=t=>(0,c.hasContentType)(t)&&t.__TYPE__===n.EmbedContentType,n.EmbedContentLegacy=o.exact(o.intersection([o.type({embed_url:o.string,type:o.string}),o.partial({version:o.union([o.string,o.number,o.null]),title:a.StringOrNull,author_name:a.StringOrNull,author_url:a.StringOrNull,provider_name:a.StringOrNull,provider_url:a.StringOrNull,cache_age:o.union([o.string,o.number,o.null]),thumbnail_url:a.StringOrNull,thumbnail_width:a.NumberOrNull,thumbnail_height:a.NumberOrNull,html:a.StringOrNull})])),n.EmbedLegacy=t=>new o.Type("EmbedLegacy",n.isEmbedContent,t=>(0,u.pipe)(n.EmbedContentLegacy.decode(t),i.either.map(e=>({...e,all:t,__TYPE__:n.EmbedContentType}))),n=>({content:n.all,types:{[t.keyOfType]:"Embed"}})),n.EmbedContent=o.intersection([n.EmbedContentLegacy,o.strict({__TYPE__:o.literal(n.EmbedContentType),all:o.unknown})])},77124:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.ColorContent=n.ColorLegacy=n.isColorContent=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(99814),c=(0,r.__importDefault)(e(38729)),f=e(58237),l=e(84929);n.isColorContent=t=>(0,f.hasContentType)(t)&&t.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(t)&&"Color"===t.type,n.ColorLegacy=t=>new o.Type("ColorLegacy",n.isColorContent,t=>(0,u.pipe)(c.default.decode(t),i.either.map(t=>n.ColorContent.encode({value:t,type:a.ColorFieldType,__TYPE__:l.FieldContentType}))),n=>({content:n.value,types:{[t.keyOfType]:a.ColorFieldType}})),n.ColorContent=o.strict({type:o.literal(a.ColorFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},62544:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.DateContent=n.DateLegacy=n.isDateContent=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(99814),c=(0,r.__importDefault)(e(38729)),f=e(58237),l=e(84929);n.isDateContent=t=>(0,f.hasContentType)(t)&&t.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(t)&&"Date"===t.type,n.DateLegacy=t=>new o.Type("DateLegacy",n.isDateContent,t=>(0,u.pipe)(c.default.decode(t),i.either.map(t=>n.DateContent.encode({value:t,type:a.DateFieldType,__TYPE__:l.FieldContentType}))),n=>({content:n.value,types:{[t.keyOfType]:a.DateFieldType}})),n.DateContent=o.strict({type:o.literal(a.DateFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},83768:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.NumberContent=n.NumberLegacy=n.isNumberContent=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(99814),c=(0,r.__importDefault)(e(38729)),f=e(58237),l=e(84929);n.isNumberContent=t=>(0,f.hasContentType)(t)&&t.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(t)&&"Number"===t.type,n.NumberLegacy=t=>new o.Type("NumberLegacy",n.isNumberContent,t=>(0,u.pipe)(c.default.decode(t),i.either.map(t=>n.NumberContent.encode({value:t,type:a.NumberFieldType,__TYPE__:l.FieldContentType}))),n=>({content:n.value,types:{[t.keyOfType]:a.NumberFieldType}})),n.NumberContent=o.strict({type:o.literal(a.NumberFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},8944:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.RangeContent=n.RangeLegacy=n.isRangeContent=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(99814),c=(0,r.__importDefault)(e(38729)),f=e(58237),l=e(84929);n.isRangeContent=t=>(0,f.hasContentType)(t)&&t.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(t)&&"Range"===t.type,n.RangeLegacy=t=>new o.Type("RangeLegacy",n.isRangeContent,t=>(0,u.pipe)(c.default.decode(t),i.either.map(t=>n.RangeContent.encode({value:t,type:a.RangeFieldType,__TYPE__:l.FieldContentType}))),n=>({content:n.value,types:{[t.keyOfType]:a.RangeFieldType}})),n.RangeContent=o.strict({type:o.literal(a.RangeFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},13221:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.SelectContentDefaultValue=n.SelectContent=n.SelectLegacy=n.isSelectContent=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(99814),c=(0,r.__importDefault)(e(38729)),f=e(58237),l=e(84929);n.isSelectContent=t=>(0,f.hasContentType)(t)&&t.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(t)&&"Select"===t.type,n.SelectLegacy=t=>new o.Type("SelectLegacy",n.isSelectContent,t=>(0,u.pipe)(c.default.decode(t),i.either.map(t=>n.SelectContent.encode({value:t,type:a.SelectFieldType,__TYPE__:l.FieldContentType}))),n=>({content:n.value,types:{[t.keyOfType]:a.SelectFieldType}})),n.SelectContent=o.strict({type:o.literal(a.SelectFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)}),n.SelectContentDefaultValue=t=>{var n;return(null===(n=t.config)||void 0===n?void 0:n.default_value)?{__TYPE__:l.FieldContentType,type:a.SelectFieldType,value:t.config.default_value||""}:void 0}},38295:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.TextContent=n.TextLegacy=n.isTextContent=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(99814),c=(0,r.__importDefault)(e(38729)),f=e(58237),l=e(84929);n.isTextContent=t=>(0,f.hasContentType)(t)&&t.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(t)&&"Text"===t.type,n.TextLegacy=t=>new o.Type("TextLegacy",n.isTextContent,t=>(0,u.pipe)(c.default.decode(t),i.either.map(t=>n.TextContent.encode({value:t,type:a.TextFieldType,__TYPE__:l.FieldContentType}))),n=>({content:n.value,types:{[t.keyOfType]:a.TextFieldType}})),n.TextContent=o.strict({type:o.literal(a.TextFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},79137:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.TimestampContent=n.TimestampLegacy=n.isTimestampContent=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(99814),c=(0,r.__importDefault)(e(38729)),f=e(58237),l=e(84929);n.isTimestampContent=t=>(0,f.hasContentType)(t)&&t.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(t)&&"Timestamp"===t.type,n.TimestampLegacy=t=>new o.Type("TimestampLegacy",n.isTimestampContent,t=>(0,u.pipe)(c.default.decode(t),i.either.map(t=>n.TimestampContent.encode({value:t,type:a.TimestampFieldType,__TYPE__:l.FieldContentType}))),n=>({content:n.value,types:{[t.keyOfType]:a.TimestampFieldType}})),n.TimestampContent=o.strict({type:o.literal(a.TimestampFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},84929:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.FieldContentType=void 0,n.FieldContentType="FieldContent"},86649:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.FieldContent=n.FieldType=void 0;let r=e(22970),i=(0,r.__importStar)(e(87830)),u=e(77124),o=e(62544),a=e(83768),c=e(8944),f=e(13221),l=e(38295),p=e(79137);n.FieldType=i.keyof({Text:null,Date:null,Timestamp:null,Color:null,Number:null,Range:null,Select:null}),n.FieldContent=i.union([o.DateContent,u.ColorContent,a.NumberContent,c.RangeContent,f.SelectContent,l.TextContent,p.TimestampContent]),(0,r.__exportStar)(e(77124),n),(0,r.__exportStar)(e(84929),n),(0,r.__exportStar)(e(62544),n),(0,r.__exportStar)(e(83768),n),(0,r.__exportStar)(e(8944),n),(0,r.__exportStar)(e(13221),n),(0,r.__exportStar)(e(38295),n),(0,r.__exportStar)(e(79137),n)},48896:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.GeoPointContent=n.GeoPointLegacy=n.isGeoPointContent=n.GeoPointContentType=void 0;let r=e(22970),i=e(9554),u=e(42275),o=(0,r.__importStar)(e(87830)),a=e(58237);n.GeoPointContentType="GeoPointContent",n.isGeoPointContent=t=>(0,a.hasContentType)(t)&&t.__TYPE__===n.GeoPointContentType;let c=o.strict({position:o.strict({lat:o.number,lng:o.number})});n.GeoPointLegacy=t=>new o.Type("GeoPointLegacy",n.isGeoPointContent,t=>(0,u.pipe)(c.decode(t),i.either.map(t=>n.GeoPointContent.encode({...t,__TYPE__:n.GeoPointContentType}))),n=>({content:{position:n.position},types:{[t.keyOfType]:"GeoPoint"}})),n.GeoPointContent=o.intersection([c,o.strict({__TYPE__:o.literal(n.GeoPointContentType)})])},15764:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.ImageContent=n.ImageLegacy=n.ImageContentView=n.isImageContent=n.ImageContentType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(17160),c=e(8597),f=e(58237);n.ImageContentType="ImageContent",n.isImageContent=t=>(0,f.hasContentType)(t)&&t.__TYPE__===n.ImageContentType;let l=o.exact(o.type({id:o.string,url:o.string,width:o.number,height:o.number}));n.ImageContentView=o.exact(o.intersection([o.type({origin:l,width:o.number,height:o.number,edit:o.type({zoom:o.number,crop:o.type({x:o.number,y:o.number}),background:o.string})}),o.partial({url:o.string,credits:c.NonEmptyStringOrNull,alt:c.NonEmptyStringOrNull,provider:c.StringOrNull})]));let p=o.intersection([n.ImageContentView,o.partial({thumbnails:o.record(o.string,n.ImageContentView)})]);n.ImageLegacy=t=>new o.Type("ImageLegacy",n.isImageContent,t=>(0,u.pipe)(p.decode(t),i.either.map(t=>n.ImageContent.encode({...t,__TYPE__:n.ImageContentType}))),n=>({content:(0,a.withOptionals)({edit:n.edit,height:n.height,origin:n.origin,width:n.width},[["alt",n.alt],["credits",n.credits],["provider",n.provider],["thumbnails",n.thumbnails],["url",n.url]]),types:{[t.keyOfType]:"Image"}})),n.ImageContent=o.intersection([p,o.strict({__TYPE__:o.literal(n.ImageContentType)})])},9583:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.IntegrationFieldContent=n.IntegrationFieldLegacy=n.isIntegrationFieldContent=n.IntegrationFieldContentType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(58237);n.IntegrationFieldContentType="IntegrationFieldsContent",n.isIntegrationFieldContent=t=>(0,a.hasContentType)(t)&&t.__TYPE__===n.IntegrationFieldContentType,n.IntegrationFieldLegacy=t=>new o.Type("IntegrationFieldLegacy",n.isIntegrationFieldContent,t=>(0,u.pipe)(o.string.decode(t),i.either.map(t=>n.IntegrationFieldContent.encode({value:t,__TYPE__:n.IntegrationFieldContentType}))),n=>({content:n.value,types:{[t.keyOfType]:"IntegrationFields"}})),n.IntegrationFieldContent=o.strict({__TYPE__:o.literal(n.IntegrationFieldContentType),value:o.string})},72202:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.FilledLinkContent=n.FilledLink=n.FilledLinkContentLegacy=n.FilledLinkLegacy=n.isFilledLinkContent=n.LinkContent=n.Link=n.LinkContentLegacy=n.LinkLegacy=n.isLinkContent=n.LinkContentType=n.AnyLinkContent=n.AnyLinkType=n.ExternalLinkContent=n.FilledExternalLinkContent=n.ExternalLinkType=n.DocumentLinkContent=n.FilledDocumentLinkContent=n.DocumentLinkType=n.MediaLinkContent=n.MediaLinkType=n.FileLinkContent=n.FilledFileLinkContent=n.FileLinkType=n.ImageLinkContent=n.FilledImageLinkContent=n.ImageLinkType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(23284),c=e(8597),f=e(35002),l=e(58237);n.ImageLinkType="ImageLink";let p=t=>"string"==typeof t,d=new o.Type("ImageLinkKind",t=>p(t),(t,n)=>p(t)?o.success("image"):o.failure(t,n),()=>"image"),s=o.intersection([o.strict({kind:d,id:o.string,url:o.string,height:o.string,width:o.string,size:o.string,name:o.string}),o.exact(o.partial({date:c.StringOrNull}))]),h=new o.Type("FilledImageLink",t=>(0,l.hasContentType)(t)&&t.__TYPE__===n.ImageLinkType,t=>(0,u.pipe)(s.decode(t),i.either.map(t=>n.FilledImageLinkContent.encode({...t,__TYPE__:n.ImageLinkType}))),t=>s.encode(t));n.FilledImageLinkContent=o.intersection([o.strict({__TYPE__:o.literal(n.ImageLinkType)}),s]);let m=o.intersection([o.union([s,o.strict({kind:o.literal("image")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),v=new o.Type("ImageLink",t=>(0,l.hasContentType)(t)&&t.__TYPE__===n.ImageLinkType,t=>(0,u.pipe)(m.decode(t),i.either.map(t=>n.ImageLinkContent.encode({...t,__TYPE__:n.ImageLinkType}))),t=>m.encode(t));n.ImageLinkContent=o.intersection([o.strict({__TYPE__:o.literal(n.ImageLinkType)}),m]),n.FileLinkType="FileLink";let g=t=>"string"==typeof t,y=new o.Type("FileLinkKind",t=>g(t),(t,n)=>g(t)?o.success("file"):o.failure(t,n),()=>"file"),b=o.exact(o.intersection([o.type({kind:y,id:o.string,url:o.string,name:o.string,size:(0,a.withFallback)(o.string,"0")}),o.partial({date:c.StringOrNull})])),_=new o.Type("FilledFileLink",t=>(0,l.hasContentType)(t)&&t.__TYPE__===n.FileLinkType,t=>(0,u.pipe)(b.decode(t),i.either.map(t=>n.FilledFileLinkContent.encode({...t,__TYPE__:n.FileLinkType}))),t=>b.encode(t));n.FilledFileLinkContent=o.intersection([o.strict({__TYPE__:o.literal(n.FileLinkType)}),b]);let I=o.intersection([o.union([b,o.strict({kind:o.literal("file")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),R=new o.Type("FileLink",t=>(0,l.hasContentType)(t)&&t.__TYPE__===n.FileLinkType,t=>(0,u.pipe)(I.decode(t),i.either.map(t=>n.FileLinkContent.encode({...t,__TYPE__:n.FileLinkType}))),t=>I.encode(t));n.FileLinkContent=o.intersection([o.strict({__TYPE__:o.literal(n.FileLinkType)}),I]),n.MediaLinkType="MediaLink";let S=o.intersection([o.strict({kind:o.literal("media")}),o.exact(o.partial({text:o.string,variant:o.string}))]),T=new o.Type("MediaLink",t=>(0,l.hasContentType)(t)&&t.__TYPE__===n.MediaLinkType,t=>(0,u.pipe)(S.decode(t),i.either.map(t=>n.MediaLinkContent.encode({...t,__TYPE__:n.MediaLinkType}))),t=>S.encode(t));n.MediaLinkContent=o.intersection([o.strict({__TYPE__:o.literal(n.MediaLinkType)}),S]),n.DocumentLinkType="DocumentLink";let x=o.strict({id:c.NonEmptyString}),w=new o.Type("FilledDocumentLink",t=>(0,l.hasContentType)(t)&&t.__TYPE__===n.DocumentLinkType,t=>(0,u.pipe)(x.decode(t),i.either.map(t=>n.FilledDocumentLinkContent.encode({...t,__TYPE__:n.DocumentLinkType}))),t=>x.encode(t));n.FilledDocumentLinkContent=o.intersection([o.strict({__TYPE__:o.literal(n.DocumentLinkType)}),x]);let M=o.intersection([o.union([x,o.strict({kind:o.literal("document")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),O=new o.Type("DocumentLink",t=>(0,l.hasContentType)(t)&&t.__TYPE__===n.DocumentLinkType,t=>(0,u.pipe)(M.decode(t),i.either.map(t=>n.DocumentLinkContent.encode({...t,__TYPE__:n.DocumentLinkType}))),t=>M.encode(t));n.DocumentLinkContent=o.intersection([o.strict({__TYPE__:o.literal(n.DocumentLinkType)}),M]),n.ExternalLinkType="ExternalLink";let E=o.exact(o.intersection([o.type({url:o.string}),o.partial({kind:o.literal("web"),target:c.StringOrNull,preview:(0,f.nullable)(o.partial({title:o.string}))})])),C=new o.Type("FilledExternalLink",t=>(0,l.hasContentType)(t)&&t.__TYPE__===n.ExternalLinkType,t=>(0,u.pipe)(E.decode(t),i.either.map(t=>n.FilledExternalLinkContent.encode({...t,__TYPE__:n.ExternalLinkType}))),t=>E.encode(t));n.FilledExternalLinkContent=o.intersection([o.strict({__TYPE__:o.literal(n.ExternalLinkType)}),E]);let k=o.intersection([o.union([E,o.strict({kind:o.literal("web")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),W=new o.Type("ExternalLink",t=>(0,l.hasContentType)(t)&&t.__TYPE__===n.ExternalLinkType,t=>(0,u.pipe)(k.decode(t),i.either.map(t=>n.ExternalLinkContent.encode({...t,__TYPE__:n.ExternalLinkType}))),t=>k.encode(t));n.ExternalLinkContent=o.intersection([o.strict({__TYPE__:o.literal(n.ExternalLinkType)}),k]),n.AnyLinkType="AnyLink";let F=o.exact(o.intersection([o.type({kind:(0,a.withFallback)(o.literal("any"),"any")}),o.partial({text:o.string,variant:o.string})])),P=new o.Type("AnyLink",t=>(0,l.hasContentType)(t)&&t.__TYPE__===n.AnyLinkType,t=>(0,u.pipe)(F.decode(t),i.either.map(t=>n.AnyLinkContent.encode({...t,__TYPE__:n.AnyLinkType}))),t=>F.encode(t));n.AnyLinkContent=o.intersection([o.strict({__TYPE__:o.literal(n.AnyLinkType)}),F]),n.LinkContentType="LinkContent",n.isLinkContent=t=>(0,l.hasContentType)(t)&&t.__TYPE__===n.LinkContentType,n.LinkLegacy=(0,l.withKey)(o.union([v,R,O,W,T,P])),n.LinkContentLegacy=t=>new o.Type("LinkLegacy",n.isLinkContent,t=>(0,u.pipe)(n.LinkLegacy.decode(t),i.either.map(({key:t,...e})=>n.LinkContent.encode({__TYPE__:"LinkContent",key:t,value:e}))),({key:e,value:r})=>({content:n.LinkLegacy.encode({...r,key:e}),types:{[t.keyOfType]:"Link"}})),n.Link=o.union([n.ImageLinkContent,n.FileLinkContent,n.DocumentLinkContent,n.ExternalLinkContent,n.MediaLinkContent,n.AnyLinkContent]),n.LinkContent=(0,l.withKey)(o.strict({__TYPE__:o.literal(n.LinkContentType),value:n.Link})),n.isFilledLinkContent=t=>(0,l.hasContentType)(t)&&t.__TYPE__===n.LinkContentType,n.FilledLinkLegacy=o.union([h,_,w,C]),n.FilledLinkContentLegacy=t=>{let e=(0,l.withKey)(n.FilledLinkLegacy);return new o.Type("FilledLinkLegacy",n.isFilledLinkContent,t=>(0,u.pipe)(e.decode(t),i.either.map(({key:t,...e})=>n.FilledLinkContent.encode({__TYPE__:"LinkContent",key:t,value:e}))),({key:n,value:r})=>({content:e.encode({...r,key:n}),types:{[t.keyOfType]:"Link"}}))},n.FilledLink=o.union([n.FilledImageLinkContent,n.FilledFileLinkContent,n.FilledDocumentLinkContent,n.FilledExternalLinkContent]),n.FilledLinkContent=(0,l.withKey)(o.strict({__TYPE__:o.literal(n.LinkContentType),value:n.FilledLink}))},65090:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.NestableLegacy=n.isNestableContent=n.NestableContentDefaultValue=n.NestableContent=void 0;let r=e(22970),i=e(87412),u=(0,r.__importStar)(e(87830)),o=e(82646),a=e(47451),c=e(11836),f=e(86649),l=e(84929),p=e(48896),d=e(15764),s=e(9583),h=e(72202),m=e(92521),v=e(89040),g=e(68507),y=e(84057);n.NestableContent=u.union([o.EmptyContent,a.BooleanContent,c.EmbedContent,f.TextContent,f.TimestampContent,f.SelectContent,f.RangeContent,f.NumberContent,f.DateContent,f.ColorContent,p.GeoPointContent,d.ImageContent,s.IntegrationFieldContent,h.LinkContent,v.RichTextContent,g.SeparatorContent,y.TableContent,m.RepeatableContent]),n.NestableContentDefaultValue=t=>{switch(t.type){case"Boolean":return(0,a.BooleanContentDefaultValue)(t);case"Select":return(0,f.SelectContentDefaultValue)(t);default:return}},n.isNestableContent=t=>(0,f.isTextContent)(t)||(0,f.isColorContent)(t)||(0,f.isDateContent)(t)||(0,f.isTimestampContent)(t)||(0,f.isNumberContent)(t)||(0,f.isRangeContent)(t)||(0,f.isSelectContent)(t)||(0,p.isGeoPointContent)(t)||(0,v.isRichTextContent)(t)||(0,a.isBooleanContent)(t)||(0,c.isEmbedContent)(t)||(0,d.isImageContent)(t)||(0,s.isIntegrationFieldContent)(t)||(0,h.isLinkContent)(t)||(0,g.isSeparatorContent)(t)||(0,y.isTableContent)(t)||(0,o.isEmptyContent)(t)||(0,m.isRepeatableContent)(t),n.NestableLegacy=t=>({decode(n){if(!t.fieldType)return;let e=(0,o.EmptyLegacy)(t.fieldType).decode(n);if((0,i.isRight)(e))return e;let r=(()=>{switch(t.fieldType){case"Text":return(0,f.TextLegacy)(t);case"Color":return(0,f.ColorLegacy)(t);case"Date":return(0,f.DateLegacy)(t);case"Timestamp":return(0,f.TimestampLegacy)(t);case"Number":return(0,f.NumberLegacy)(t);case"Range":return(0,f.RangeLegacy)(t);case"Select":return(0,f.SelectLegacy)(t);case"GeoPoint":return(0,p.GeoPointLegacy)(t);case"StructuredText":return(0,v.RichTextLegacy)(t);case"Boolean":return(0,a.BooleanLegacy)(t);case"Embed":return(0,c.EmbedLegacy)(t);case"Image":return(0,d.ImageLegacy)(t);case"IntegrationFields":return(0,s.IntegrationFieldLegacy)(t);case"Link":return(0,h.LinkContentLegacy)(t);case"Separator":return(0,g.SeparatorLegacy)(t);case"Table":return(0,y.TableLegacy)(t);case"Repeatable.Link":return(0,m.RepeatableLegacy)(t,"Link");default:return}})();if(r)return r.decode(n)},encode(n){switch(n.__TYPE__){case l.FieldContentType:if("Text"===n.type)return(0,f.TextLegacy)(t).encode(n);if("Color"===n.type)return(0,f.ColorLegacy)(t).encode(n);if("Range"===n.type)return(0,f.RangeLegacy)(t).encode(n);if("Date"===n.type)return(0,f.DateLegacy)(t).encode(n);if("Number"===n.type)return(0,f.NumberLegacy)(t).encode(n);if("Timestamp"===n.type)return(0,f.TimestampLegacy)(t).encode(n);if("Select"===n.type)return(0,f.SelectLegacy)(t).encode(n);return;case p.GeoPointContentType:return(0,p.GeoPointLegacy)(t).encode(n);case v.RichTextContentType:return(0,v.RichTextLegacy)(t).encode(n);case c.EmbedContentType:return(0,c.EmbedLegacy)(t).encode(n);case a.BooleanContentType:return(0,a.BooleanLegacy)(t).encode(n);case d.ImageContentType:return(0,d.ImageLegacy)(t).encode(n);case s.IntegrationFieldContentType:return(0,s.IntegrationFieldLegacy)(t).encode(n);case h.LinkContentType:return(0,h.LinkContentLegacy)(t).encode(n);case g.SeparatorContentType:return(0,g.SeparatorLegacy)(t).encode(n);case y.TableContentType:return(0,y.TableLegacy)(t).encode(n);case"RepeatableContent":return(0,m.RepeatableLegacy)(t,n.type).encode(n);default:return}}})},92521:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.traverseRepeatableContent=n.RepeatableLegacy=n.isRepeatableContent=n.RepeatableContent=void 0;let r=e(22970),i=e(9554),u=e(87412),o=e(14632),a=(0,r.__importStar)(e(87830)),c=e(58237),f=e(72202),l="RepeatableContent";n.RepeatableContent=a.strict({__TYPE__:a.literal(l),type:a.literal("Link"),value:a.array(f.LinkContent)}),n.isRepeatableContent=t=>(0,c.hasContentType)(t)&&t.__TYPE__===l,n.RepeatableLegacy=(t,e)=>new a.Type("RepeatableLegacy",n.isRepeatableContent,n=>(0,o.pipe)(a.array(a.unknown).decode(n),i.either.map(n=>({value:n.reduce((n,r)=>{let i;return"Link"===e&&(i=(0,f.LinkContentLegacy)(t).decode(r)),!i||(0,u.isLeft)(i)?n:[...n,i.right]},[]),type:e,__TYPE__:"RepeatableContent"}))),n=>({content:a.array(f.LinkContent).encode(n.value).reduce((n,e)=>{let r;return e.__TYPE__===f.LinkContentType&&(r=(0,f.LinkContentLegacy)(t).encode(e)),r?[...n,r]:n},[]).map(t=>t.content),types:{[t.keyOfType]:`Repeatable.${e}`}})),n.traverseRepeatableContent=function({path:t,key:n,apiId:e,model:r,content:i}){return u=>{let o=i.value.reduce((i,o,a)=>{let c=u({path:t.concat([{key:a.toString(),type:"Widget"}]),key:n,apiId:e,model:(null==r?void 0:r.type)==="Link"&&r.config?{...r,config:{...r.config,repeat:!1}}:r,content:o});return c&&(0,f.isLinkContent)(c)?i.concat(c):i},[]);return u({path:t,key:n,apiId:e,model:r,content:{__TYPE__:i.__TYPE__,type:i.type,value:o}})}}},71741:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.Block=n.BlockLegacy=n.TextBlockLegacy=n.TextBlock=n.checkEmbedBlock=n.EmbedBlock=n.checkImageBlock=n.ImageBlock=n.ValidatedSpans=n.SpanLegacy=n.Span=void 0;let r=e(22970),i=e(9554),u=e(87412),o=e(14632),a=(0,r.__importStar)(e(87830)),c=e(23284),f=e(44613),l=e(8597),p=e(35002),d=e(11836),s=e(15764),h=e(72202),m=t=>a.strict({data:t,start:a.number,end:a.number,type:a.literal(f.RichTextNodeType.hyperlink)}),v=a.strict({data:(0,c.withFallback)(a.string,""),start:a.number,end:a.number,type:a.literal("label")}),g=a.strict({start:a.number,end:a.number,type:a.keyof({[f.RichTextNodeType.strong]:null,[f.RichTextNodeType.em]:null,"list-item":null})});n.Span=a.union([m(h.FilledLink),v,g]),n.SpanLegacy=a.union([m(h.FilledLinkLegacy),v,g]),n.ValidatedSpans=t=>new a.Type("ValidatedSpans",n=>Array.isArray(n)&&n.every(t.is),(n,e)=>{if(!Array.isArray(n))return a.failure(n,e);{let e=n.reduce((n,e)=>{let r=t.decode(e);return(0,u.isLeft)(r)?n:[...n,r.right]},[]).sort((t,n)=>t.start-n.start);return a.success(e)}},n=>n.reduce((n,e)=>[...n,t.encode(e)],[]));let y=t=>a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.image),data:a.intersection([s.ImageContentView,a.partial({linkTo:(0,p.nullable)(t)})])}),a.partial({label:l.StringOrNull,direction:l.StringOrNull})]));n.ImageBlock=y(h.FilledLink);let b=y(h.FilledLinkLegacy);n.checkImageBlock=function(t){return t.type===f.RichTextNodeType.image};let _=a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.embed),data:a.unknown}),a.partial({label:l.StringOrNull,direction:l.StringOrNull})])),I=new a.Type("EmbedBlockLegacy",t=>"embed"===t.type,t=>(0,o.pipe)(_.decode(t),i.either.chain(t=>i.either.map(n=>[t,n])(d.EmbedContentLegacy.decode(t.data))),i.either.map(([t,e])=>n.EmbedBlock.encode({...t,data:{...e,__TYPE__:d.EmbedContentType,all:t.data}}))),t=>({..._.encode(t),data:d.EmbedContentLegacy.encode(t.data)}));n.EmbedBlock=a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.embed),data:d.EmbedContent}),a.partial({label:l.StringOrNull,direction:l.StringOrNull})])),n.checkEmbedBlock=function(t){return t.type===f.RichTextNodeType.embed};let R=t=>a.exact(a.intersection([a.type({type:(0,p.refineType)(f.RichTextNodeTypeCodec,`string which isn't ${f.RichTextNodeType.image} ${f.RichTextNodeType.embed}`,t=>t!==f.RichTextNodeType.image&&t!==f.RichTextNodeType.embed),content:a.intersection([a.type({text:a.string}),a.partial({spans:(0,n.ValidatedSpans)(t)})])}),a.partial({label:a.string,direction:a.string})]));n.TextBlock=R(n.Span),n.TextBlockLegacy=R(n.SpanLegacy);let S=a.union([I,b,n.TextBlockLegacy]);n.BlockLegacy=new a.Type("BlockLegacy",t=>I.is(t)||b.is(t)||n.TextBlockLegacy.is(t),t=>S.decode(t),t=>n.ImageBlock.is(t)?b.encode(t):n.EmbedBlock.is(t)?I.encode(t):n.TextBlockLegacy.encode(t)),n.Block=a.union([n.ImageBlock,n.EmbedBlock,n.TextBlock])},89040:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.RichTextLegacy=n.RichTextContent=n.RichTextLegacyContent=n.isRichTextContent=n.RichTextContentType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(58237),c=e(71741);n.RichTextContentType="StructuredTextContent",n.isRichTextContent=t=>(0,a.hasContentType)(t)&&t.__TYPE__===n.RichTextContentType,n.RichTextLegacyContent=o.array(c.BlockLegacy),n.RichTextContent=o.strict({__TYPE__:o.literal(n.RichTextContentType),value:o.array(c.Block)}),(0,r.__exportStar)(e(71741),n),n.RichTextLegacy=t=>new o.Type("RichTextLegacy",n.isRichTextContent,t=>(0,u.pipe)(n.RichTextLegacyContent.decode(t),i.either.map(t=>({value:t,__TYPE__:n.RichTextContentType}))),e=>({content:n.RichTextLegacyContent.encode(e.value),types:{[t.keyOfType]:"StructuredText"}}))},68507:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.SeparatorContent=n.SeparatorLegacy=n.isSeparatorContent=n.SeparatorContentType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(58237);n.SeparatorContentType="SeparatorContent",n.isSeparatorContent=t=>(0,i.hasContentType)(t)&&t.__TYPE__===n.SeparatorContentType,n.SeparatorLegacy=t=>new r.Type("SeparatorLegacy",n.isSeparatorContent,()=>r.success(n.SeparatorContent.encode({__TYPE__:n.SeparatorContentType})),()=>({content:{},types:{[t.keyOfType]:"Separator"}})),n.SeparatorContent=r.strict({__TYPE__:r.literal(n.SeparatorContentType)})},84057:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.traverseTableContent=n.TableLegacy=n.TableContent=n.isTableContent=n.TableContentType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(23535),c=e(58237),f=e(89040);n.TableContentType="TableContent",n.isTableContent=t=>(0,c.hasContentType)(t)&&t.__TYPE__===n.TableContentType;let l=(0,c.withKey)(o.intersection([o.strict({type:o.union([o.literal("tableHeader"),o.literal("tableCell")]),content:f.RichTextContent}),o.exact(o.partial({columnWidth:o.number}))])),p=(0,c.withKey)(o.strict({type:o.literal("tableRow"),content:o.array(l)}));n.TableContent=o.strict({__TYPE__:o.literal(n.TableContentType),content:o.array(p)});let d=(0,c.withKey)(o.intersection([o.strict({type:o.union([o.literal("tableHeader"),o.literal("tableCell")]),content:f.RichTextLegacyContent}),o.exact(o.partial({columnWidth:o.number}))])),s=(0,c.withKey)(o.strict({type:o.literal("tableRow"),content:o.array(d)})),h=o.strict({content:o.array(s)});n.TableLegacy=t=>new o.Type("TableLegacy",n.isTableContent,t=>(0,u.pipe)(h.decode(t),i.either.map(t=>({__TYPE__:"TableContent",content:t.content.map(t=>({...t,content:t.content.map(t=>({...t,content:{__TYPE__:"StructuredTextContent",value:t.content}}))}))}))),n=>({content:h.encode({content:n.content.map(t=>({...t,content:t.content.map(t=>({...t,content:t.content.value}))}))}),types:{[t.keyOfType]:"Table"}})),n.traverseTableContent=function({path:t,key:n,apiId:e,model:r,content:i}){return u=>{let o=i.content.map((r,i)=>({...r,content:r.content.map((r,o)=>{let c=u({path:t.concat([{key:[i.toString(),o.toString()].join(","),type:"Widget"}]),key:n,apiId:e,model:a.TableCell,content:{__TYPE__:r.content.__TYPE__,value:r.content.value}})||{__TYPE__:"StructuredTextContent",value:[]};return{...r,content:c}})}));return u({path:t,key:n,apiId:e,model:r,content:{__TYPE__:i.__TYPE__,content:o}})}}},91366:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(47451),n),(0,r.__exportStar)(e(11836),n),(0,r.__exportStar)(e(86649),n),(0,r.__exportStar)(e(48896),n),(0,r.__exportStar)(e(15764),n),(0,r.__exportStar)(e(9583),n),(0,r.__exportStar)(e(72202),n),(0,r.__exportStar)(e(65090),n),(0,r.__exportStar)(e(92521),n),(0,r.__exportStar)(e(89040),n),(0,r.__exportStar)(e(68507),n),(0,r.__exportStar)(e(84057),n)},53422:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.migrateCompositeSlice=n.traverseCompositeSliceContent=n.compositeSliceContentWithDefaultValues=n.CompositeSliceContent=n.CompositeSliceLegacy=n.isCompositeSliceContent=n.CompositeSliceContentType=void 0;let r=e(22970),i=e(9554),u=e(87412),o=e(14632),a=(0,r.__importStar)(e(87830)),c=e(3845),f=e(58237),l=e(22443),p=e(91366),d=e(22583),s=e(53034);n.CompositeSliceContentType="CompositeSliceContent",n.isCompositeSliceContent=t=>(0,f.hasContentType)(t)&&t.__TYPE__===n.CompositeSliceContentType;let h=a.exact(a.partial({repeat:a.array(a.unknown),"non-repeat":a.UnknownRecord}));n.CompositeSliceLegacy=t=>new a.Type("CompositeSliceLegacy",n.isCompositeSliceContent,e=>(0,o.pipe)(h.decode(e),i.either.map(e=>{let r=(()=>{let n=(0,c.getFieldCtx)("repeat",t),r=(0,s.RepeatableWidgetsLegacy)(n).decode(e.repeat);if(!(!r||(0,u.isLeft)(r)))return r.right})()||[];return{nonRepeat:Object.entries(e["non-repeat"]||{}).reduce((n,[e,r])=>{let i=(0,c.getFieldCtx)(e,t,["non-repeat"]);if(!i)return n;let o=(0,p.NestableLegacy)(i).decode(r);return!o||(0,u.isLeft)(o)?n:{...n,[e]:o.right}},{}),repeat:r,__TYPE__:n.CompositeSliceContentType}})),n=>{let e=Object.entries(n.nonRepeat).reduce((n,[e,r])=>{let i=(0,c.getFieldCtx)(e,t,["non-repeat"]),u=(0,p.NestableLegacy)(i).encode(r);return u?{content:{...n.content,[e]:u.content},types:{...n.types,...u.types}}:n},{content:{},types:{}}),r=(()=>{let e=(0,c.getFieldCtx)("repeat",t);return(0,s.RepeatableWidgetsLegacy)(e).encode(n.repeat)})()||[];return{content:{"non-repeat":e.content,repeat:r.map(t=>t.content)},types:{[t.keyOfType]:"Slice",...e.types,...r.reduce((t,n)=>({...t,...n.types}),{})}}}),n.CompositeSliceContent=a.strict({__TYPE__:a.literal(n.CompositeSliceContentType),nonRepeat:a.record(a.string,p.NestableContent),repeat:s.RepeatableWidgets}),n.compositeSliceContentWithDefaultValues=function(t,n){var e,r;let i=(0,d.withDefaultNestableContentValues)(null!==(e=t["non-repeat"])&&void 0!==e?e:{},n.nonRepeat),u=(0,d.repeatableContentWithDefaultNestableContentValues)(null!==(r=t.repeat)&&void 0!==r?r:{},n.repeat);return{...n,nonRepeat:i,repeat:u}},n.traverseCompositeSliceContent=function({path:t,sliceKey:n,sliceName:e,model:r,content:i}){return(u,o)=>{let a=Object.entries(i.widget.nonRepeat).reduce((i,[o,a])=>{var c,f,l;let d=(null==r?void 0:r.type)==="SharedSlice"?null===(f=null===(c=null==r?void 0:r.fields)||void 0===c?void 0:c.primary)||void 0===f?void 0:f[o]:null===(l=null==r?void 0:r["non-repeat"])||void 0===l?void 0:l[o],s=u({path:t.concat([{key:"non-repeat",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:e,model:d,content:a});return s?(0,p.isNestableContent)(s)?{...i,[o]:s}:(console.warn(`Warn: Non nestable content with key [${o}] detected in a composite slice [${e}] with key [${n}]`),i):i},{}),c=(0,l.traverseGroupItemsContent)({path:t.concat([{key:"repeat",type:"items"}]),model:(null==r?void 0:r.type)==="SharedSlice"?null==r?void 0:r.fields.items:null==r?void 0:r.repeat,content:i.widget.repeat})(u);return o({key:n,apiId:e,path:t,model:r,content:{...i,widget:{__TYPE__:"CompositeSliceContent",repeat:c,nonRepeat:a}}})}},n.migrateCompositeSlice=function(t,n){let[,e]=n.key.split("$");return{key:`${t.sliceName}$${e}`,name:t.sliceName,maybeLabel:n.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:t.variationId,primary:Object.entries(n.widget.nonRepeat).reduce((e,[r,i])=>{var u;return(null===(u=t.fields.primary)||void 0===u?void 0:u[r])?{...e,[r]:i}:(console.warn(`The widget ${r} in the non-repeat zone of the composite slice [${t.sliceName}] with key [${n.key}] doesn't exist in the model.`),e)},{}),items:n.widget.repeat.map(e=>({__TYPE__:"GroupItemContent",value:e.value.reduce((e,[r,i])=>{var u;return(null===(u=t.fields.items)||void 0===u?void 0:u[r])?e.concat([[r,i]]):(console.warn(`The widget ${r} in the repeat zone of the composite slice [${t.sliceName}] with key [${n.key}] doesn't exist in the model.`),e)},[])}),[])}}}},53034:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.RepeatableWidgets=n.RepeatableWidgetsLegacy=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(22443),u=e(91366);n.RepeatableWidgetsLegacy=t=>r.array((0,i.GroupItemLegacy)(t));let o=r.tuple([r.string,r.union([u.NestableContent,i.GroupContent])]),a=r.strict({__TYPE__:r.literal(i.GroupItemContentType),value:r.array(o)});n.RepeatableWidgets=r.array(a)},74951:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.traverseSharedSliceContent=n.sharedSliceContentWithDefaultValues=n.SharedSliceContent=n.SharedSliceLegacy=n.isSharedSliceContent=n.SharedSliceContentType=void 0;let r=e(22970),i=e(9554),u=e(87412),o=e(14632),a=(0,r.__importStar)(e(87830)),c=e(23284),f=e(23535),l=e(3845),p=e(58237),d=e(22443),s=e(91366),h=e(22583),m=e(53034),v=e(12238);n.SharedSliceContentType="SharedSliceContent",n.isSharedSliceContent=t=>(0,p.hasContentType)(t)&&t.__TYPE__===n.SharedSliceContentType;let g=a.exact(a.type({variation:a.string,items:(0,c.withFallback)(a.array(a.unknown),[]),primary:(0,c.withFallback)(a.UnknownRecord,{})}));n.SharedSliceLegacy=t=>new a.Type("SharedSliceLegacy",n.isSharedSliceContent,e=>(0,o.pipe)(g.decode(e),i.either.map(e=>{let r=(()=>{let n=(0,l.getFieldCtx)("items",t,["variations",e.variation]),r=(0,m.RepeatableWidgetsLegacy)(n).decode(e.items);if(!(!r||(0,u.isLeft)(r)))return r.right})()||[],i=Object.entries(e.primary).reduce((n,[r,i])=>{let o=(0,l.getFieldCtx)(r,t,["variations",e.variation,"primary"]),a=(0,v.SlicePrimaryLegacy)(o).decode(i);return!a||(0,u.isLeft)(a)?n:{...n,[r]:a.right}},{});return{variation:e.variation,primary:i,items:r,__TYPE__:n.SharedSliceContentType}})),n=>{let e=Object.entries(n.primary).reduce((e,[r,i])=>{let u=(0,l.getFieldCtx)(r,t,["variations",n.variation,"primary"]),o=(0,v.SlicePrimaryLegacy)(u).encode(i);return o?{content:{...e.content,[r]:o.content},types:{...e.types,...o.types}}:e},{content:{},types:{}}),r=(()=>{let e=(0,l.getFieldCtx)("items",t,["variations",n.variation]);return(0,m.RepeatableWidgetsLegacy)(e).encode(n.items)})()||[];return{content:{primary:e.content,items:r.map(t=>t.content),variation:n.variation},types:{[t.keyOfType]:"SharedSlice",...e.types,...r.reduce((t,n)=>({...t,...n.types}),{})}}}),n.SharedSliceContent=a.strict({__TYPE__:a.literal(n.SharedSliceContentType),variation:a.string,primary:a.record(a.string,v.SlicePrimaryContent),items:m.RepeatableWidgets}),n.sharedSliceContentWithDefaultValues=function(t,n){var e,r;let i=t.variations.find(t=>t.id===n.variation),u=null!==(e=null==i?void 0:i.primary)&&void 0!==e?e:{},o=null!==(r=null==i?void 0:i.items)&&void 0!==r?r:{},a=(0,h.withDefaultSlicePrimaryContentValues)(u,n.primary),c=(0,h.repeatableContentWithDefaultNestableContentValues)(o,n.items);return{...n,primary:a,items:c}},n.traverseSharedSliceContent=function({path:t,sliceKey:n,sliceName:e,model:r,content:i}){return(u,o)=>{let a=Object.entries(i.widget.primary).reduce((i,[o,a])=>{var c,l;let p=null===(l=null===(c=null==r?void 0:r.fields)||void 0===c?void 0:c.primary)||void 0===l?void 0:l[o],h=(0,d.isGroupContent)(a)?(0,d.traverseGroupContent)({path:t.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,content:a,model:(null==p?void 0:p.type)===f.GroupFieldType?p:void 0})(u):(0,s.isRepeatableContent)(a)?(0,s.traverseRepeatableContent)({path:t.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,content:a,model:(null==p?void 0:p.type)==="Link"?p:void 0})(u):(0,s.isTableContent)(a)?(0,s.traverseTableContent)({path:t.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,content:a,model:(null==p?void 0:p.type)==="Table"?p:void 0})(u):(0,s.isNestableContent)(a)?u({path:t.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,model:p,content:a}):void 0;return h?((0,v.isSlicePrimaryContent)(h)||console.warn(`Warn: Non nestable or group content with key [${o}] detected in a shared slice [${e}] with key [${n}]`),{...i,[o]:h}):i},{}),c=(0,d.traverseGroupItemsContent)({path:t.concat([{key:"items",type:"items"}]),model:null==r?void 0:r.fields.items,content:i.widget.items})(u);return o({key:n,apiId:e,path:t,model:r,content:{...i,widget:{__TYPE__:"SharedSliceContent",variation:i.widget.variation,primary:a,items:c}}})}}},27835:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.migrateSimpleSlice=n.traverseSimpleSliceContent=n.SimpleSliceLegacy=n.isSimpleSliceContent=n.SimpleSliceContent=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(22443),u=e(91366);n.SimpleSliceContent=r.union([u.NestableContent,i.GroupContent]),n.isSimpleSliceContent=t=>(0,u.isNestableContent)(t)||(0,i.isGroupContent)(t),n.SimpleSliceLegacy=t=>({decode:"Group"===t.fieldType?(0,i.GroupLegacy)(t).decode.bind(null):(0,u.NestableLegacy)(t).decode.bind(null),encode:n=>"GroupContentType"===n.__TYPE__?(0,i.GroupLegacy)(t).encode(n):(0,u.NestableLegacy)(t).encode(n)}),n.traverseSimpleSliceContent=function({path:t,sliceKey:n,sliceName:e,model:r,content:u}){return(o,a)=>{var c;if((0,i.isGroupContent)(u.widget)){let n=(0,i.traverseGroupContent)({path:t,key:u.key,apiId:u.name,model:(null==r?void 0:r.type)==="Group"?r:(null==r?void 0:r.type)==="SharedSlice"?{type:"Group",config:{fields:r.fields.items||{}}}:void 0,content:u.widget})(o);return n&&a({key:u.key,apiId:u.name,path:t,model:r,content:{...u,widget:n}})}let f=o({key:u.key,apiId:u.name,path:t,model:(null==r?void 0:r.type)==="SharedSlice"?null===(c=r.fields.primary)||void 0===c?void 0:c[u.name]:(null==r?void 0:r.type)!=="Group"?r:void 0,content:u.widget});return f&&a({key:n,apiId:e,path:t,model:r,content:{...u,widget:f}})}},n.migrateSimpleSlice=function(t,n){var e;let[,r]=n.key.split("$"),i=`${t.sliceName}$${r}`;return"GroupContentType"===n.widget.__TYPE__?{key:i,name:t.sliceName,maybeLabel:n.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:t.variationId,primary:{},items:n.widget.value.map(n=>({__TYPE__:"GroupItemContent",value:n.value.reduce((n,[e,r])=>{var i;return(null===(i=t.fields.items)||void 0===i?void 0:i[e])?n.concat([[e,r]]):n},[])}),[])}}:{key:i,name:t.sliceName,maybeLabel:n.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:t.variationId,primary:(null===(e=t.fields.primary)||void 0===e?void 0:e[n.name])?{[n.name]:n.widget}:{},items:[]}}}},12238:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.isSlicePrimaryContent=n.SlicePrimaryLegacy=n.SlicePrimaryContent=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(23535),u=e(22443),o=e(91366);n.SlicePrimaryContent=r.union([o.NestableContent,u.GroupContent]),n.SlicePrimaryLegacy=t=>{let n=(0,u.GroupLegacy)(t),e=(0,o.NestableLegacy)(t);return{decode:r=>t.fieldType===i.GroupFieldType?n.decode(r):e.decode(r),encode:t=>(0,u.isGroupContent)(t)?n.encode(t):e.encode(t)}},n.isSlicePrimaryContent=t=>(0,o.isNestableContent)(t)||(0,u.isGroupContent)(t)},21925:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.SliceContent=n.SliceLegacy=void 0;let r=e(22970),i=(0,r.__importStar)(e(87830)),u=e(53422),o=e(74951),a=e(27835);n.SliceLegacy=t=>({decode:n=>(()=>{switch(t.fieldType){case"Slice":return(0,u.CompositeSliceLegacy)(t);case"SharedSlice":return(0,o.SharedSliceLegacy)(t);default:return(0,a.SimpleSliceLegacy)(t)}})().decode(n),encode:n=>{switch(n.__TYPE__){case"SharedSliceContent":return(0,o.SharedSliceLegacy)(t).encode(n);case"CompositeSliceContent":return(0,u.CompositeSliceLegacy)(t).encode(n);default:return(0,a.SimpleSliceLegacy)(t).encode(n)}}}),n.SliceContent=i.union([u.CompositeSliceContent,o.SharedSliceContent,a.SimpleSliceContent]),(0,r.__exportStar)(e(53422),n),(0,r.__exportStar)(e(74951),n),(0,r.__exportStar)(e(27835),n),(0,r.__exportStar)(e(12238),n)},57495:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.migrateSliceItem=n.SlicesItemLegacy=n.sliceItemContentWithDefaultValues=n.isSimpleSliceItemContent=n.isCompositeSliceItemContent=n.isSharedSliceItemContent=n.SliceItemContent=void 0;let r=e(22970),i=e(9554),u=e(87412),o=e(14632),a=(0,r.__importStar)(e(87830)),c=e(35002),f=e(3845),l=e(22443),p=e(91366),d=e(22583),s=e(21925),h=e(53422),m=e(74951),v=e(27835);function g(t){return(0,h.isCompositeSliceContent)(t.widget)}function y(t){return(0,l.isGroupContent)(t.widget)||(0,p.isNestableContent)(t.widget)}n.SliceItemContent=a.type({key:a.string,name:a.string,maybeLabel:a.union([a.string,a.undefined]),widget:s.SliceContent}),n.isSharedSliceItemContent=function(t){return(0,m.isSharedSliceContent)(t.widget)},n.isCompositeSliceItemContent=g,n.isSimpleSliceItemContent=y,n.sliceItemContentWithDefaultValues=function(t,n){var e;if("SharedSlice"===t.type&&(0,m.isSharedSliceContent)(n))return(0,s.sharedSliceContentWithDefaultValues)(t,n);if("Slice"===t.type&&(0,h.isCompositeSliceContent)(n))return(0,s.compositeSliceContentWithDefaultValues)(t,n);if("Group"===t.type&&(0,l.isGroupContent)(n)&&(null===(e=t.config)||void 0===e?void 0:e.fields)){let e=(0,d.repeatableContentWithDefaultNestableContentValues)(t.config.fields,n.value);return{...n,value:e}}return n};let b=a.exact(a.intersection([a.type({key:a.string,value:a.unknown}),a.partial({label:(0,c.nullable)(a.string)})]));n.SlicesItemLegacy=t=>new a.Type("SlicesItemLegacy",t=>((0,m.isSharedSliceContent)(t.widget),(0,h.isCompositeSliceContent)(t.widget),(0,v.isSimpleSliceContent)(t.widget)),(n,e)=>(0,o.pipe)(b.decode(n),i.either.chain(r=>{var i;let o=r.key.indexOf("$"),c=r.key.substring(0,o>0?o:void 0),l=(0,f.getFieldCtx)(c,t),p=(0,s.SliceLegacy)(l).decode(r.value);return!p||(0,u.isLeft)(p)?a.failure(n,e):a.success({key:r.key,name:c,maybeLabel:null!==(i=r.label)&&void 0!==i?i:void 0,widget:p.right})})),n=>{let e=(0,f.getFieldCtx)(n.name,t),r=(0,s.SliceLegacy)(e).encode(n.widget);return{content:{key:n.key,label:n.maybeLabel,value:(null==r?void 0:r.content)||{}},types:(null==r?void 0:r.types)||{}}}),n.migrateSliceItem=({model:t,content:n})=>g(n)&&(null==t?void 0:t.type)==="SharedSlice"?(0,h.migrateCompositeSlice)(t,n):y(n)&&(null==t?void 0:t.type)==="SharedSlice"?(0,v.migrateSimpleSlice)(t,n):n},8059:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.traverseSlices=n.slicesContentWithDefaultValues=n.SlicesContent=n.SlicesLegacy=n.isSlicesContent=n.SlicesContentType=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(32387),c=e(23535),f=e(58237),l=e(53422),p=e(74951),d=e(27835),s=e(57495);n.SlicesContentType="SliceContentType",n.isSlicesContent=t=>(0,f.hasContentType)(t)&&t.__TYPE__===n.SlicesContentType,n.SlicesLegacy=t=>{let e=o.array((0,s.SlicesItemLegacy)(t));return new o.Type("SlicesLegacy",n.isSlicesContent,t=>(0,u.pipe)(e.decode(t),i.either.map(t=>({__TYPE__:n.SlicesContentType,value:t}))),n=>{let r=e.encode(n.value);return{content:r.map(t=>t.content),types:r.reduce((t,n)=>({...t,...n.types}),{[t.keyOfType]:"Slices"})}})},n.SlicesContent=o.type({__TYPE__:o.literal(n.SlicesContentType),value:o.array(s.SliceItemContent)}),n.slicesContentWithDefaultValues=function(t,n){var e;let r=null===(e=null==t?void 0:t.config)||void 0===e?void 0:e.choices;if(void 0===r)return n;let i=n.value.map(t=>{let n=r[t.name];if(n){let e=(0,s.sliceItemContentWithDefaultValues)(n,t.widget);return{...t,widget:e}}return t});return{...n,value:i}},n.traverseSlices=function({path:t,key:n,model:e,content:r}){return({transformWidget:i=({content:t})=>t,transformSlice:u=({content:t})=>t})=>{let o=r.value.reduce((n,r)=>{let o=e&&function(t,n,e){var r,i;let u=null===(i=null===(r=null==n?void 0:n.config)||void 0===r?void 0:r.choices)||void 0===i?void 0:i[e.name];return(()=>{if((0,s.isSharedSliceItemContent)(e)&&u&&(0,c.isStaticSharedSlice)(u)){let t=u.variations.find(t=>t.id===e.widget.variation);return t?{type:"SharedSlice",sliceName:u.id,variationId:t.id,fields:{primary:t.primary||{},items:t.items||{}}}:void 0}})()||(()=>{var r;let i=a.ContentPath.append(a.ContentPath.serialize(t),e.name),u=Object.values((null===(r=null==n?void 0:n.config)||void 0===r?void 0:r.choices)||{}).find(t=>{var n;return!!(0,c.isStaticSharedSlice)(t)&&!!(null===(n=t.legacyPaths)||void 0===n?void 0:n[i])});if(!u)return;let o=null==u?void 0:u.variations.find(t=>{var n;return t.id===(null===(n=u.legacyPaths)||void 0===n?void 0:n[i])});if(o)return{type:"SharedSlice",sliceName:u.id,variationId:o.id,fields:{primary:o.primary||{},items:o.items||{}}}})()||(()=>{if(u){if((0,c.isCompositeSlice)(u))return{type:"Slice","non-repeat":u["non-repeat"]||{},repeat:u.repeat||{}};if((0,c.isLegacySlice)(u))return u}})()}(t,e,r),f=(0,s.isSharedSliceItemContent)(r)?(0,p.traverseSharedSliceContent)({path:t.concat({key:r.key,type:"SharedSlice"}),sliceKey:r.key,sliceName:r.name,model:(null==o?void 0:o.type)==="SharedSlice"?o:void 0,content:r})(i,u):(0,s.isCompositeSliceItemContent)(r)?(0,l.traverseCompositeSliceContent)({path:t.concat({key:r.key,type:"Slice"}),sliceKey:r.key,sliceName:r.name,model:(null==o?void 0:o.type)==="Slice"||(null==o?void 0:o.type)==="SharedSlice"?o:void 0,content:r})(i,u):(0,s.isSimpleSliceItemContent)(r)?(0,d.traverseSimpleSliceContent)({path:t.concat({key:r.key,type:"LegacySlice"}),sliceKey:r.key,sliceName:r.name,model:o&&(null==o?void 0:o.type)!=="Slice"?o:void 0,content:r})(i,u):void 0;return f?n.concat(f):n},[]);return i({path:t,key:n,apiId:n,model:e,content:{__TYPE__:r.__TYPE__,value:o}})}}},83592:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(21925),n),(0,r.__exportStar)(e(57495),n),(0,r.__exportStar)(e(8059),n)},22583:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.repeatableContentWithDefaultNestableContentValues=n.withDefaultNestableContentValues=n.withDefaultSlicePrimaryContentValues=void 0;let r=e(23535),i=e(22443),u=e(91366);n.withDefaultSlicePrimaryContentValues=function(t,n){for(let[e,o]of Object.entries(t)){let t=n[e];if(void 0===t){if(o.type===r.GroupFieldType)n[e]=(0,i.groupContentWithDefaultValues)(o,i.GroupContentDefaultValue);else{let t=(0,u.NestableContentDefaultValue)(o);t&&(n[e]=t)}continue}o.type===r.GroupFieldType&&(0,i.isGroupContent)(t)&&(n[e]=(0,i.groupContentWithDefaultValues)(o,t))}return n},n.withDefaultNestableContentValues=function(t,n){return Object.entries(t).reduce((t,[e,r])=>{if(void 0===n[e]){let n=(0,u.NestableContentDefaultValue)(r);return void 0!==n?{...t,[e]:n}:t}return t},n)},n.repeatableContentWithDefaultNestableContentValues=function(t,n){let e=Object.entries(t);return n.map(t=>e.reduce((n,[e,r])=>{var o;let a=t.value.find(([t])=>t===e);if("Group"===r.type){let t=(0,i.groupContentWithDefaultValues)(r,null!==(o=null==a?void 0:a[1])&&void 0!==o?o:{__TYPE__:i.GroupContentType,value:[]});return{...n,value:[...n.value.filter(([t])=>t!==e),...t?[[e,t]]:[]]}}if(!a){let t=(0,u.NestableContentDefaultValue)(r);return{...n,value:[...n.value,...t?[[e,t]]:[]]}}return n},t))}},74982:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(20168),n),(0,r.__exportStar)(e(33832),n),(0,r.__exportStar)(e(3845),n)},58237:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.withKey=n.hasContentType=n.hasFieldContentType=void 0;let r=e(22970),i=e(87412),u=(0,r.__importStar)(e(87830)),o=e(60130),a=e(33832);function c(t){return"object"==typeof t&&null!==t&&"__TYPE__"in t}n.hasFieldContentType=function(t){return c(t)&&t.__TYPE__===a.FieldContentType&&(null==t?void 0:t.type)!==void 0&&"string"==typeof t.type&&(0,i.isRight)(a.FieldType.decode(t.type))},n.hasContentType=c;let f=t=>"string"==typeof t&&(0,o.validate)(t),l=new u.Type("UUID",f,(t,n)=>void 0===t?u.success((0,o.v4)()):f(t)?u.success(t):u.failure(t,n),u.identity);n.withKey=function(t){return u.intersection([u.strict({key:l}),t])}},17896:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.traverseCustomType=n.collectSharedSlices=n.flattenCustomTypeFields=n.filterMissingSharedSlices=n.collectWidgets=n.validateSlices=n.toStatic=n.flattenSections=n.flattenWidgets=n.CustomType=n.StaticCustomType=n.CustomTypeFormat=void 0;let r=e(22970),i=e(87412),u=(0,r.__importStar)(e(87830)),o=e(69624),a=e(8597),c=e(22453);n.CustomTypeFormat={page:"page",custom:"custom"};class f extends Error{constructor(t){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=t,this.message=this._formatError(t)}_formatError(t){let n=t.map(t=>` - ${t}`);return`The following slices doesn't exists in your Prismic repository:
2
- ${n.join("\n")}
3
- `}}function l(t){return u.exact(u.intersection([u.type({id:u.string,label:a.StringOrNull,repeatable:(0,o.withFallback)(u.boolean,!0),json:u.record(u.string,t),status:(0,o.withFallback)(u.boolean,!0)}),u.partial({format:(0,o.withFallback)(u.keyof(n.CustomTypeFormat),"custom")})]))}function p(t){return Object.entries(t.json).reduce((t,[,n])=>{let e=Object.entries(n);return t.concat(e)},[])}function d(t,n){let e=Object.entries(t.json).reduce((t,[e,r])=>{let i=Object.entries(r).reduce((t,[e,r])=>{let i=n(e,r);return i?{...t,[e]:i}:t},{});return{...t,[e]:i}},{});return{...t,json:e}}n.StaticCustomType=l(c.StaticSection),n.CustomType=l(c.DynamicSection),n.flattenWidgets=p,n.flattenSections=function(t){return Object.entries(t.json).reduce((t,[,n])=>{let e=Object.entries(n);return t.concat(e)},[])},n.toStatic=function(t,n){let e=Object.entries(t.json).reduce((t,[e,r])=>({...t,[e]:c.Sections.toStatic(r,n)}),{});return{...t,json:e}},n.validateSlices=function(t,n){let e=(function(t){let n=p(t).filter(([,t])=>"Slices"===t.type).reduce((t,[,n])=>{let e=Object.entries(n.config&&n.config.choices?n.config.choices:{}).filter(([,t])=>"SharedSlice"===t.type).map(([t])=>t);return t.concat(e)},[]);return function(t){return n.map(t)}})(t)(t=>{if(!n.get(t))return t}).filter(Boolean);return e.length>0?(0,i.left)(new f(e)):(0,i.right)(t)},n.collectWidgets=d,n.filterMissingSharedSlices=function(t,n){return d(t,(t,e)=>{if("Slices"===e.type){if(!e.config||!e.config.choices)return e;let t=Object.entries(e.config.choices).reduce((t,[e,r])=>"SharedSlice"!==r.type||n.get(e)?{...t,[e]:r}:t,{}),r={...e.config,choices:t};return{...e,config:r}}return e})},n.flattenCustomTypeFields=function(t){return Object.values(t.json).reduce((t,n)=>({...t,...n}),{})},n.collectSharedSlices=function(t){return Object.entries(t.fields).reduce((t,[,n])=>{var e;return"Slices"===n.type||"Choice"===n.type?{...t,...Object.entries((null===(e=n.config)||void 0===e?void 0:e.choices)||{}).reduce((t,[n,e])=>"SharedSlice"===e.type?{...t,[n]:e}:t,{})}:t},{})},n.traverseCustomType=function(t){let n;let{customType:e,onField:r}=t;for(let[t,i]of Object.entries(e.json)){let u=(0,c.traverseSection)({path:[t],section:i,onField:r});u!==i&&(n||(n={...e.json}),n[t]=u)}return n?{...e,json:n}:e}},22453:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.traverseSection=n.Sections=n.DynamicSection=n.StaticSection=n.sectionReader=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(31289),u=e(99814),o=e(53039);function a(t){return r.record(i.WidgetKey,t)}n.sectionReader=a,n.StaticSection=a(o.StaticWidget),n.DynamicSection=a(o.DynamicWidget),n.Sections={toStatic:(t,n)=>Object.entries(t).reduce((t,[e,r])=>({...t,[e]:o.Widgets.toStatic(r,n)}),{})},n.traverseSection=function(t){let n;let{path:e,section:r,onField:i}=t;for(let[t,o]of Object.entries(r)){let a;let c=[...e,t];switch(o.type){case"Choice":case"Slices":a=(0,u.traverseSlices)({path:c,slices:o,onField:i});break;case"Group":a=i({path:c,key:t,field:(0,u.traverseGroup)({path:c,group:o,onField:i})});break;default:a=i({path:c,key:t,field:o})}a!==o&&(n||(n={...r}),n[t]=a)}return null!=n?n:r}},5480:function(t,n){var e;Object.defineProperty(n,"__esModule",{value:!0}),n.DiffOperation=void 0,(e=n.DiffOperation||(n.DiffOperation={})).Added="added",e.Removed="removed",e.Updated="updated"},89408:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.SliceComparator=void 0;let r=e(35566),i=e(5480),u=e(62961);n.SliceComparator={compare(t,n){if(!t&&n)return{op:i.DiffOperation.Added,value:n};if(t&&!n)return{op:i.DiffOperation.Removed};let e=Object.entries(r.Objects.zipObjects(t,n)).reduce((t,[n,e])=>"variations"===n||(null==e?void 0:e.left)===(null==e?void 0:e.right)?t:{...t,[n]:null==e?void 0:e.right},{}),o=Object.entries(r.Objects.zipObjects(t&&r.Arrays.toRecord(t.variations,t=>t.id),n&&r.Arrays.toRecord(n.variations,t=>t.id))).reduce((t,[n,e])=>{if(!e)return t;let r=u.VariationComparator.compare(e.left,e.right);return r?{...t,[n]:r}:t},{}),a={...e,...r.Objects.isNotEmpty(o)?{variations:o}:{}};if(r.Objects.isNotEmpty(a))return{op:i.DiffOperation.Updated,value:a}}}},62961:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.VariationComparator=void 0;let r=e(35566),i=e(10673),u=e(5480);function o(t,n){let e=Object.entries(r.Objects.zipObjects(t,n)).reduce((t,[n,e])=>{if(JSON.stringify(null==e?void 0:e.left)===JSON.stringify(null==e?void 0:e.right))return t;let r=(()=>{var t,n,r,a,c,f,l;if((null==e?void 0:e.left)||(null==e?void 0:e.right)){if((null==e?void 0:e.left)&&!e.right)return{op:u.DiffOperation.Removed};if(!(null==e?void 0:e.left)&&(null==e?void 0:e.right)){if((null===(t=e.right)||void 0===t?void 0:t.type)===i.GroupFieldType){let t={...e.right,config:{...e.right.config,fields:{}}};return t.config.fields=o(void 0,null===(n=e.right.config)||void 0===n?void 0:n.fields)||{},{op:u.DiffOperation.Added,value:t}}return{op:u.DiffOperation.Added,value:e.right}}if((null===(r=e.right)||void 0===r?void 0:r.type)===i.GroupFieldType){let t={...e.right,config:{...e.right.config,fields:{}}};return t.config.fields=o((null===(a=e.left)||void 0===a?void 0:a.type)===i.GroupFieldType?null===(f=null===(c=e.left)||void 0===c?void 0:c.config)||void 0===f?void 0:f.fields:void 0,null===(l=e.right.config)||void 0===l?void 0:l.fields)||{},{op:u.DiffOperation.Updated,value:t}}return{op:u.DiffOperation.Updated,value:e.right}}})();return r?{...t,[n]:r}:t},{});return r.Objects.isNotEmpty(e)?e:void 0}n.VariationComparator={compare(t,n){if(t&&!n)return{op:u.DiffOperation.Removed};if(!t&&n)return{op:u.DiffOperation.Added,value:n};let e=Object.entries(r.Objects.zipObjects(t,n)).reduce((t,[n,e])=>"primary"===n||"items"===n||(null==e?void 0:e.left)===(null==e?void 0:e.right)?t:{...t,[n]:null==e?void 0:e.right},{}),i=o(null==t?void 0:t.primary,null==n?void 0:n.primary),a=o(null==t?void 0:t.items,null==n?void 0:n.items),c={...e,...i?{primary:i}:{},...a?{items:a}:{}};if(r.Objects.isNotEmpty(c))return{op:u.DiffOperation.Updated,value:c}}}},83095:function(t,n){Object.defineProperty(n,"__esModule",{value:!0})},74702:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(5480),n),(0,r.__exportStar)(e(89408),n),(0,r.__exportStar)(e(62961),n),(0,r.__exportStar)(e(83095),n)},23535:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(17896),n),(0,r.__exportStar)(e(74702),n),(0,r.__exportStar)(e(22453),n),(0,r.__exportStar)(e(99814),n)},10673:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.traverseGroup=n.traverseNestedGroup=n.Group=n.GroupConfig=n.NestedGroup=n.NestedGroupConfig=n.GroupFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(31289),u=e(8597),o=e(8435);n.GroupFieldType="Group";let a=t=>r.exact(r.partial({label:u.StringOrNull,repeat:r.boolean,fields:r.record(i.WidgetKey,t)})),c=t=>r.exact(r.intersection([r.type({type:r.literal(n.GroupFieldType)}),r.partial({fieldset:u.StringOrNull,icon:r.string,description:r.string,config:a(t)})]));function f(t){var n;let e;let{path:r,group:i,onField:u}=t;if(!(null===(n=i.config)||void 0===n?void 0:n.fields))return i;for(let[t,n]of Object.entries(i.config.fields)){let o=u({path:[...r,t],key:t,field:n});n!==o&&(e||(e={...i.config.fields}),e[t]=o)}return e?{...i,config:{...i.config,fields:e}}:i}n.NestedGroupConfig=a(o.NestableWidget),n.NestedGroup=c(o.NestableWidget),n.GroupConfig=a(r.union([o.NestableWidget,n.NestedGroup])),n.Group=c(r.union([o.NestableWidget,n.NestedGroup])),n.traverseNestedGroup=f,n.traverseGroup=function(t){var n;let e;let{path:r,group:i,onField:u}=t;if(!(null===(n=i.config)||void 0===n?void 0:n.fields))return i;for(let[t,n]of Object.entries(i.config.fields)){let o;let a=[...r,t];o="Group"===n.type?f({path:a,group:n,onField:u}):n;let c=u({path:a,key:t,field:o});o!==c&&(e||(e={...i.config.fields}),e[t]=c)}return e?{...i,config:{...i.config,fields:e}}:i}},63437:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.UID=n.UIDConfig=n.UIDFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);n.UIDFieldType="UID",n.UIDConfig=r.exact(r.partial({label:i.StringOrNull,useAsTitle:r.boolean,placeholder:r.string})),n.UID=r.exact(r.intersection([r.type({type:r.literal(n.UIDFieldType)}),r.partial({fieldset:i.StringOrNull,config:n.UIDConfig})]))},53039:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.Widgets=n.FieldType=n.DynamicWidget=n.StaticWidget=n.widgetReader=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(10673),u=e(44613),o=e(8435),a=e(78110),c=e(63437);function f(t){return r.union([c.UID,o.NestableWidget,i.Group,t])}n.widgetReader=f,n.StaticWidget=f(a.StaticSlices),n.DynamicWidget=f(a.DynamicSlices),n.FieldType=r.keyof({[u.ColorFieldType]:null,[u.BooleanFieldType]:null,[u.NumberFieldType]:null,[u.EmbedFieldType]:null,[u.GeoPointFieldType]:null,[u.DateFieldType]:null,[u.RangeFieldType]:null,[u.RichTextFieldType]:null,[u.SelectFieldType]:null,[u.SeparatorFieldType]:null,[u.TableFieldType]:null,[u.TextFieldType]:null,[u.TimestampFieldType]:null,[u.LinkFieldType]:null,[u.ImageFieldType]:null,[u.IntegrationFieldType]:null,[c.UIDFieldType]:null,[i.GroupFieldType]:null,[a.SlicesFieldType]:null,[a.LegacySlicesFieldType]:null}),n.Widgets={toStatic(t,n){switch(t.type){case"Choice":case"Slices":return a.Slices.toStatic(t,n);default:return t}}}},99814:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(10673),n),(0,r.__exportStar)(e(44613),n),(0,r.__exportStar)(e(77666),n),(0,r.__exportStar)(e(30324),n),(0,r.__exportStar)(e(63437),n),(0,r.__exportStar)(e(53039),n)},66014:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.BooleanField=n.BooleanConfig=n.BooleanFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);n.BooleanFieldType="Boolean",n.BooleanConfig=r.exact(r.partial({label:i.StringOrNull,default_value:r.boolean,placeholder_true:r.string,placeholder_false:r.string})),n.BooleanField=r.exact(r.intersection([r.type({type:r.literal(n.BooleanFieldType)}),r.partial({config:n.BooleanConfig})]))},2330:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.Color=n.ColorConfig=n.ColorFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);n.ColorFieldType="Color",n.ColorConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string})),n.Color=r.exact(r.intersection([r.type({type:r.literal(n.ColorFieldType)}),r.partial({fieldset:i.StringOrNull,config:n.ColorConfig})]))},77352:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.Date=n.DateConfig=n.DateFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);n.DateFieldType="Date",n.DateConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,default:r.string})),n.Date=r.exact(r.intersection([r.type({type:r.literal(n.DateFieldType)}),r.partial({fieldset:i.StringOrNull,config:n.DateConfig})]))},53142:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.Embed=n.EmbedConfig=n.EmbedFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);n.EmbedFieldType="Embed",n.EmbedConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,useAsTitle:r.boolean})),n.Embed=r.exact(r.intersection([r.type({type:r.literal(n.EmbedFieldType)}),r.partial({fieldset:i.StringOrNull,config:n.EmbedConfig})]))},46068:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.GeoPoint=n.GeoPointConfig=n.GeoPointFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);n.GeoPointFieldType="GeoPoint",n.GeoPointConfig=r.exact(r.partial({label:i.StringOrNull})),n.GeoPoint=r.exact(r.intersection([r.type({type:r.literal(n.GeoPointFieldType)}),r.partial({fieldset:i.StringOrNull,config:n.GeoPointConfig})]))},65694:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.Image=n.ImageConfig=n.Thumbnail=n.ImageFieldType=void 0;let r=e(22970),i=(0,r.__importStar)(e(87830)),u=e(8597),o=(0,r.__importDefault)(e(71747));n.ImageFieldType="Image",n.Thumbnail=i.exact(i.intersection([i.type({name:i.string}),o.default])),n.ImageConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,constraint:o.default,thumbnails:i.readonlyArray(n.Thumbnail)})),n.Image=i.exact(i.intersection([i.type({type:i.literal(n.ImageFieldType)}),i.partial({fieldset:u.StringOrNull,config:n.ImageConfig})]))},60337:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.IntegrationField=n.IntegrationFieldConfig=n.IntegrationFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);n.IntegrationFieldType="IntegrationFields",n.IntegrationFieldConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,catalog:r.string})),n.IntegrationField=r.exact(r.intersection([r.type({type:r.literal(n.IntegrationFieldType)}),r.partial({fieldset:i.StringOrNull,config:n.IntegrationFieldConfig})]))},64907:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.Link=n.LinkConfig=n.LinkFieldType=n.CustomTypes=void 0;let r=e(22970),i=e(87412),u=(0,r.__importStar)(e(87830)),o=e(69624),a=e(8597),c=t=>{if(t instanceof Array&&t.reduce((t,n)=>t&&"string"==typeof n,!0))return u.success(t)},f=t=>{if("string"==typeof t)return u.success([t])},l=new u.Type("MasksArrayString",t=>t instanceof Array,(t,n)=>i.either.chain(u.union([u.array(u.string),u.string]).validate(t,n),e=>c(e)||f(e)||u.failure(t,n)),t=>t),p=new u.Type("CustomTypeLevel2FieldGroupFields",t=>Array.isArray(t)&&t.every(t=>"string"==typeof t),(t,n)=>i.either.chain(u.array(u.string).validate(t,n),e=>new Set(e).size===e.length?u.success(e):u.failure(t,n,"Fields have duplicates.")),t=>t),d=u.union([u.strict({id:u.string,fields:p}),u.string]),s=new u.Type("CustomTypeLevel2Fields",t=>Array.isArray(t)&&t.every(t=>d.is(t)),(t,n)=>i.either.chain(u.array(d).validate(t,n),e=>new Set(e.map(t=>"string"==typeof t?t:t.id)).size===e.length?u.success(e):u.failure(t,n,"Fields have duplicates.")),t=>t),h=u.union([u.string,u.strict({id:u.string,fields:s})]),m=new u.Type("CustomTypesLevel2",t=>Array.isArray(t)&&t.every(t=>h.is(t)),(t,n)=>i.either.chain(u.array(h).validate(t,n),e=>new Set(e.map(t=>"string"==typeof t?t:t.id)).size===e.length?u.success(e):u.failure(t,n,"Custom types have duplicates.")),t=>t),v=u.strict({id:u.string,customtypes:m}),g=u.union([v,u.string]),y=new u.Type("CustomTypeLevel1FieldGroupFields",t=>Array.isArray(t)&&t.every(t=>g.is(t)),(t,n)=>i.either.chain(u.array(g).validate(t,n),e=>new Set(e.map(t=>"string"==typeof t?t:t.id)).size===e.length?u.success(e):u.failure(t,n,"Fields have duplicates.")),t=>t),b=u.union([u.strict({id:u.string,fields:y}),v,u.string]),_=new u.Type("CustomTypeLevel1Fields",t=>Array.isArray(t)&&t.every(t=>b.is(t)),(t,n)=>i.either.chain(u.array(b).validate(t,n),e=>new Set(e.map(t=>"string"==typeof t?t:t.id)).size===e.length?u.success(e):u.failure(t,n,"Fields have duplicates.")),t=>t),I=u.union([u.string,u.strict({id:u.string,fields:_})]);n.CustomTypes=new u.Type("CustomTypes",t=>Array.isArray(t)&&t.every(t=>I.is(t)),(t,n)=>i.either.chain(u.array(I).validate(t,n),e=>{let r=new Set,i=new Set;for(let o of e){let e=!1;if("string"==typeof o)e=i.has(o),r.add(o);else{let{id:t}=o;e=r.has(t)||i.has(t),i.add(t)}if(e)return u.failure(t,n,"Custom types have duplicates.")}return u.success(e)}),t=>t),n.LinkFieldType="Link",n.LinkConfig=u.exact(u.partial({label:a.StringOrNull,useAsTitle:u.boolean,placeholder:u.string,select:(0,o.withFallback)(u.union([u.literal("media"),u.literal("document"),u.literal("web"),u.null]),null),customtypes:n.CustomTypes,masks:l,tags:l,allowTargetBlank:u.boolean,allowText:u.boolean,repeat:u.boolean,variants:u.array(u.string)})),n.Link=u.exact(u.intersection([u.type({type:u.literal(n.LinkFieldType)}),u.partial({fieldset:a.StringOrNull,config:n.LinkConfig})]))},8435:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.NestableWidget=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(66014),u=e(2330),o=e(77352),a=e(53142),c=e(46068),f=e(65694),l=e(60337),p=e(64907),d=e(16879),s=e(61490),h=e(48483),m=e(44284),v=e(29881),g=e(31324),y=e(36732),b=e(48903);n.NestableWidget=r.union([u.Color,i.BooleanField,a.Embed,c.GeoPoint,o.Date,d.Number,s.Range,h.RichText,m.Select,v.Separator,g.Table,y.Text,b.Timestamp,p.Link,f.Image,l.IntegrationField])},16879:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.Number=n.NumberConfig=n.NumberFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(59054),u=e(8597);n.NumberFieldType="Number",n.NumberConfig=r.exact(r.partial({label:u.StringOrNull,placeholder:r.string,min:r.union([r.number,i.NumberFromString]),max:r.union([r.number,i.NumberFromString]),step:r.union([r.number,i.NumberFromString])})),n.Number=r.exact(r.intersection([r.type({type:r.literal(n.NumberFieldType)}),r.partial({fieldset:u.StringOrNull,config:n.NumberConfig})]))},61490:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.Range=n.RangeConfig=n.RangeFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(59054),u=e(8597);n.RangeFieldType="Range",n.RangeConfig=r.exact(r.partial({label:u.StringOrNull,placeholder:r.string,min:r.union([r.number,i.NumberFromString]),max:r.union([r.number,i.NumberFromString]),step:r.union([r.number,i.NumberFromString])})),n.Range=r.exact(r.intersection([r.type({type:r.literal(n.RangeFieldType)}),r.partial({fieldset:u.StringOrNull,config:n.RangeConfig})]))},48483:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.RichText=n.RichTextConfig=n.RichTextNodeTypeCodec=n.RichTextNodeType=n.DEFAULT_OPTION=n.RichTextFieldType=void 0;let r=e(22970),i=e(9554),u=e(87412),o=e(14632),a=(0,r.__importStar)(e(87830)),c=e(8597),f=(0,r.__importDefault)(e(71747));n.RichTextFieldType="StructuredText",n.DEFAULT_OPTION="paragraph",n.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"},n.RichTextNodeTypeCodec=a.keyof({[n.RichTextNodeType.heading1]:null,[n.RichTextNodeType.heading2]:null,[n.RichTextNodeType.heading3]:null,[n.RichTextNodeType.heading4]:null,[n.RichTextNodeType.heading5]:null,[n.RichTextNodeType.heading6]:null,[n.RichTextNodeType.paragraph]:null,[n.RichTextNodeType.strong]:null,[n.RichTextNodeType.em]:null,[n.RichTextNodeType.preformatted]:null,[n.RichTextNodeType.hyperlink]:null,[n.RichTextNodeType.image]:null,[n.RichTextNodeType.embed]:null,[n.RichTextNodeType.list]:null,[n.RichTextNodeType.orderedList]:null,[n.RichTextNodeType.rtl]:null});let l=new a.Type("RichTextOptions",t=>"string"==typeof t,t=>(0,o.pipe)(a.union([a.string,a.null]).decode(t),i.either.map(t=>{if(!t)return n.DEFAULT_OPTION;let e=t.split(",").map(t=>t.trim()).filter(t=>(0,u.getOrElseW)(()=>void 0)(n.RichTextNodeTypeCodec.decode(t)));return e.length?e.join(","):n.DEFAULT_OPTION})),t=>t),p=t=>{if(!t)return a.success([])},d=t=>{if(t instanceof Object){if(!Object.entries(t).length)return a.success([]);if(t[""])return a.success(t[""].map(t=>t.name));let n=Object.entries(t).reduce((t,[,n])=>t.concat(n.map(t=>t.name)),[]).filter(Boolean);return a.success(n)}},s=t=>{if(t instanceof Array&&t.reduce((t,n)=>t&&"string"==typeof n,!0))return a.success(t)},h=t=>{if("string"==typeof t)return a.success([t])},m=new a.Type("RichTextLabels",t=>t instanceof Array,(t,n)=>{let e=a.record(a.string,a.readonlyArray(a.record(a.literal("name"),a.string))),r=a.readonlyArray(a.string);return(0,o.pipe)(a.union([e,r,a.string,a.null]).decode(t),i.either.chain(e=>p(e)||s(e)||d(e)||h(e)||a.failure(t,n)))},t=>t);n.RichTextConfig=a.exact(a.partial({label:c.StringOrNull,placeholder:a.string,useAsTitle:a.boolean,single:l,multi:l,imageConstraint:f.default,labels:m,allowTargetBlank:a.boolean})),n.RichText=a.exact(a.intersection([a.type({type:a.literal(n.RichTextFieldType)}),a.partial({fieldset:c.StringOrNull,config:n.RichTextConfig})]))},44284:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.Select=n.SelectConfig=n.SelectFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);n.SelectFieldType="Select",n.SelectConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,default_value:r.string,options:r.readonlyArray(r.union([r.string,i.StringFromNumber,i.StringFromBoolean]))})),n.Select=r.exact(r.intersection([r.type({type:r.literal(n.SelectFieldType)}),r.partial({fieldset:i.StringOrNull,config:n.SelectConfig})]))},29881:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.Separator=n.SeparatorConfig=n.SeparatorFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);n.SeparatorFieldType="Separator",n.SeparatorConfig=r.exact(r.partial({label:i.StringOrNull})),n.Separator=r.exact(r.intersection([r.type({type:r.literal(n.SeparatorFieldType)}),r.partial({config:n.SeparatorConfig})]))},31324:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.TableCell=n.Table=n.TableFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597),u=e(48483);n.TableFieldType="Table";let o=r.exact(r.partial({label:i.StringOrNull}));n.Table=r.exact(r.intersection([r.type({type:r.literal(n.TableFieldType)}),r.partial({config:o})])),n.TableCell={type:"StructuredText",config:{multi:[u.RichTextNodeType.paragraph,u.RichTextNodeType.strong,u.RichTextNodeType.em,u.RichTextNodeType.hyperlink].join(",")}}},36732:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.Text=n.TextConfig=n.TextFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);n.TextFieldType="Text",n.TextConfig=r.exact(r.partial({label:i.StringOrNull,useAsTitle:r.boolean,placeholder:r.string})),n.Text=r.exact(r.intersection([r.type({type:r.literal(n.TextFieldType)}),r.partial({fieldset:i.StringOrNull,config:n.TextConfig})]))},48903:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.Timestamp=n.TimestampConfig=n.TimestampFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(8597);n.TimestampFieldType="Timestamp",n.TimestampConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,default:r.string})),n.Timestamp=r.exact(r.intersection([r.type({type:r.literal(n.TimestampFieldType)}),r.partial({fieldset:i.StringOrNull,config:n.TimestampConfig})]))},44613:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(66014),n),(0,r.__exportStar)(e(2330),n),(0,r.__exportStar)(e(77352),n),(0,r.__exportStar)(e(53142),n),(0,r.__exportStar)(e(46068),n),(0,r.__exportStar)(e(65694),n),(0,r.__exportStar)(e(60337),n),(0,r.__exportStar)(e(64907),n),(0,r.__exportStar)(e(8435),n),(0,r.__exportStar)(e(16879),n),(0,r.__exportStar)(e(61490),n),(0,r.__exportStar)(e(48483),n),(0,r.__exportStar)(e(44284),n),(0,r.__exportStar)(e(29881),n),(0,r.__exportStar)(e(31324),n),(0,r.__exportStar)(e(36732),n),(0,r.__exportStar)(e(48903),n)},71747:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(87412),u=(0,r.__importStar)(e(87830)),o=e(11621),a=e(8597),c=new u.Type("SideConstraints",t=>!t||"number"==typeof t,(t,n)=>i.either.chain(u.union([u.literal("auto"),u.literal(""),u.Int,o.IntFromString,a.IntFromNumber,a.IntFromPixels,u.null]).validate(t,n),t=>"auto"===t||""===t?u.success(null):u.success(t)),t=>t),f=u.partial({width:c,height:c});n.default=f},77666:function(t,n,e){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0}),n.ImageConstraint=void 0;var i=e(71747);Object.defineProperty(n,"ImageConstraint",{enumerable:!0,get:function(){return r(i).default}})},26417:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.traverseCompositeSlice=n.isCompositeSlice=n.CompositeSlice=n.CompositeSliceConfig=n.CompositeSliceType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(31289),u=e(8597),o=e(8435);n.CompositeSliceType="Slice",n.CompositeSliceConfig=r.exact(r.partial({label:u.StringOrNull})),n.CompositeSlice=r.exact(r.intersection([r.type({type:r.literal(n.CompositeSliceType)}),r.partial({fieldset:u.StringOrNull,description:r.string,icon:r.string,display:r.string,"non-repeat":r.record(i.WidgetKey,o.NestableWidget),repeat:r.record(i.WidgetKey,o.NestableWidget),config:n.CompositeSliceConfig})])),n.isCompositeSlice=function(t){return"Slice"===t.type},n.traverseCompositeSlice=function(t){var n,e;let r,i;let{path:u,slice:o,onField:a}=t;for(let[t,e]of Object.entries(null!==(n=o["non-repeat"])&&void 0!==n?n:{})){let n=a({path:[...u,"non-repeat",t],key:t,field:e});e!==n&&(r||(r={...o["non-repeat"]}),r[t]=n)}for(let[t,n]of Object.entries(null!==(e=o.repeat)&&void 0!==e?e:{})){let e=a({path:[...u,"repeat",t],key:t,field:n});n!==e&&(i||(i={...o.repeat}),i[t]=e)}return i||r?{...o,...r&&{"non-repeat":r},...i&&{repeat:i}}:o}},97442:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.isLegacySlice=n.LegacySlice=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(10673),u=e(8435);n.LegacySlice=r.union([u.NestableWidget,i.NestedGroup]),n.isLegacySlice=function(t){return"Slice"!==t.type&&"SharedSlice"!==t.type}},32233:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.traverseSharedSlice=n.traverseVariation=n.isDynamicSharedSlice=n.isStaticSharedSlice=n.SharedSlice=n.SharedSliceType=n.Variation=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(69624),u=e(31289),o=e(10673),a=e(8435),c=e(19288);n.Variation=r.exact(r.intersection([r.type({id:r.string,name:r.string,description:r.string,imageUrl:(0,i.withFallback)(r.string,"https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format"),docURL:r.string,version:r.string}),r.partial({display:r.string,primary:r.record(u.WidgetKey,c.SlicePrimaryWidget),items:r.record(u.WidgetKey,a.NestableWidget)})])),n.SharedSliceType="SharedSlice";let f=r.string,l=r.string;function p(t){var n,e;let r,i;let{path:u,variation:a,onField:c}=t;for(let[t,e]of Object.entries(null!==(n=a.primary)&&void 0!==n?n:{})){let n;let i=[...u,"primary",t];n="Group"===e.type?(0,o.traverseGroup)({path:i,group:e,onField:c}):e;let f=c({path:i,key:t,field:n});n!==f&&(r||(r={...a.primary}),r[t]=f)}for(let[t,n]of Object.entries(null!==(e=a.items)&&void 0!==e?e:{})){let e=c({path:[...u,"items",t],key:t,field:n});n!==e&&(i||(i={...a.items}),i[t]=e)}return r||i?{...a,...r&&{primary:r},...i&&{items:i}}:a}n.SharedSlice=r.exact(r.intersection([r.type({id:r.string,type:r.literal(n.SharedSliceType),name:r.string,variations:r.readonlyArray(n.Variation)}),r.partial({description:r.string,legacyPaths:r.record(f,l)})])),n.isStaticSharedSlice=function(t){return"SharedSlice"===t.type},n.isDynamicSharedSlice=function(t){return"SharedSlice"===t.type},n.traverseVariation=p,n.traverseSharedSlice=function(t){let n;let{path:e,slice:r,onField:i}=t;for(let t=0;t<r.variations.length;t++){let u=r.variations[t];if(!u)continue;let o=p({path:[...e,u.id],variation:u,onField:i});o!==u&&(n||(n=[...r.variations]),n[t]=o)}return n?{...r,variations:n}:r}},73194:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.SharedSliceRef=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(32233);n.SharedSliceRef=r.exact(r.type({type:r.literal(i.SharedSliceType)}))},42738:function(t,n){Object.defineProperty(n,"__esModule",{value:!0})},19288:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.isSlicePrimaryWidget=n.SlicePrimaryWidget=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(10673),u=e(44613);n.SlicePrimaryWidget=r.union([u.NestableWidget,i.Group]),n.isSlicePrimaryWidget=t=>u.NestableWidget.is(t)||i.Group.is(t)},78110:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.traverseSlices=n.Slices=n.DynamicSlices=n.StaticSlices=n.slicesReader=n.DynamicSlicesConfig=n.StaticSlicesConfig=n.slicesConfigReader=n.SlicesLabels=n.SlicesFieldType=n.LegacySlicesFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(31289),u=e(8597),o=e(10673),a=e(26417),c=e(97442),f=e(32233),l=e(73194);function p(t){return r.exact(r.partial({label:u.StringOrNull,labels:n.SlicesLabels,choices:r.record(i.WidgetKey,r.union([c.LegacySlice,a.CompositeSlice,t]))}))}n.LegacySlicesFieldType="Choice",n.SlicesFieldType="Slices",n.SlicesLabels=r.union([r.record(r.string,r.readonlyArray(r.exact(r.intersection([r.type({name:r.string}),r.partial({display:r.string})])))),r.null]),n.slicesConfigReader=p,n.StaticSlicesConfig=p(f.SharedSlice),n.DynamicSlicesConfig=p(l.SharedSliceRef);let d={toStatic(t,n){let e=Object.entries(t.choices||{}).reduce((t,[e,r])=>{if("SharedSlice"!==r.type)return{...t,[e]:r};{let r=n.get(e);return r?{...t,[e]:r}:t}},{});return{...t,choices:e}}};function s(t){return r.exact(r.intersection([r.type({type:r.keyof({[n.SlicesFieldType]:null,[n.LegacySlicesFieldType]:null})}),r.partial({fieldset:u.StringOrNull,config:t})]))}n.slicesReader=s,n.StaticSlices=s(n.StaticSlicesConfig),n.DynamicSlices=s(n.DynamicSlicesConfig),n.Slices={toStatic:(t,n)=>t.config?{...t,config:d.toStatic(t.config,n)}:t},n.traverseSlices=function(t){var n;let e;let{path:r,slices:i,onField:u}=t;if(!(null===(n=i.config)||void 0===n?void 0:n.choices))return i;for(let[t,n]of Object.entries(i.config.choices)){let c;let l=[...r,t];switch(n.type){case"Slice":c=(0,a.traverseCompositeSlice)({path:l,slice:n,onField:u});break;case"SharedSlice":c="variations"in n?(0,f.traverseSharedSlice)({path:l,slice:n,onField:u}):n;break;case"Group":c=u({path:l,key:t,field:(0,o.traverseNestedGroup)({path:l,group:n,onField:u})});break;default:c=u({path:l,key:t,field:n})}c!==n&&(e||(e={...i.config.choices}),e[t]=c)}return e?{...i,config:{...i.config,choices:e}}:i}},51945:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.SlicesTypes=void 0;let r=(0,e(22970).__importStar)(e(87830)),i=e(26417),u=e(32233);n.SlicesTypes=r.keyof({[i.CompositeSliceType]:null,[u.SharedSliceType]:null})},30324:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(26417),n),(0,r.__exportStar)(e(97442),n),(0,r.__exportStar)(e(32233),n),(0,r.__exportStar)(e(73194),n),(0,r.__exportStar)(e(42738),n),(0,r.__exportStar)(e(19288),n),(0,r.__exportStar)(e(78110),n),(0,r.__exportStar)(e(51945),n)},18949:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.toRecord=void 0,n.toRecord=function(t,n){return t.reduce((t,e)=>{let r=n(e);return{...t,[r]:e}},{})}},17160:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.mapValues=n.isObject=n.withOptionals=n.isNotEmpty=n.zipObjects=void 0;let r=e(22970),i=e(87412),u=(0,r.__importStar)(e(87830));n.zipObjects=function(t,n){return[...new Set(Object.keys(t||{}).concat(Object.keys(n||{})))].reduce((e,r)=>{let i=null==t?void 0:t[r],u=null==n?void 0:n[r];return{...e,[r]:{left:i,right:u}}},{})},n.isNotEmpty=function(t){return!!Object.keys(t).length},n.withOptionals=function(t,n){return{...t,...n.reduce((t,[n,e])=>e?{...t,[n]:e}:t,{})}};let o=u.record(u.string,u.unknown);n.isObject=function(t){return(0,i.isRight)(o.decode(t))},n.mapValues=function(t,n){return Object.entries(t).reduce((t,[e,r])=>({...t,[e]:n(r,e)}),{})}},35566:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.Objects=n.Arrays=n.HexaColorCode=void 0;let r=e(22970);n.HexaColorCode=(0,r.__importStar)(e(55962)),n.Arrays=(0,r.__importStar)(e(18949)),n.Objects=(0,r.__importStar)(e(17160))},19841:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.EmptyArray=n.EmptyObject=n.Boolean=n.NumberOrNull=n.Number=n.StringOrNull=n.String=void 0;let r=e(22970),i=e(9554),u=e(14632),o=(0,r.__importStar)(e(87830)),a=e(35002);n.String=(0,a.withCustomError)(o.string,()=>"The value must be a string"),n.StringOrNull=(0,a.withCustomError)(o.union([o.string,o.null]),()=>"The value must be a string or null"),n.Number=(0,a.withCustomError)(o.number,()=>"The value must be a number"),n.NumberOrNull=(0,a.withCustomError)(o.union([o.number,o.null]),()=>"The value must be a number or null"),n.Boolean=(0,a.withCustomError)(o.boolean,()=>"The value must be a boolean"),n.EmptyObject=o.UnknownRecord.pipe(new o.Type("emptyObject",t=>o.UnknownRecord.is(t),(t,n)=>Object.keys(t).length>0?o.failure(t,n,"The object is not empty."):o.success({}),o.identity)),n.EmptyArray=new o.Type("emptyArray",t=>o.UnknownArray.is(t)&&0===t.length,(t,n)=>(0,u.pipe)(o.UnknownArray.decode(t),i.either.chain(e=>e.length>0?o.failure(t,n,"The array is not empty."):o.success([]))),()=>[])},89394:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830)),a=e(8597);n.default=new o.Type("dateFromString",t=>t instanceof Date,(t,n)=>(0,u.pipe)(a.String.validate(t,n),(0,i.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(t,n):o.success(r)})),t=>t.toISOString())},23954:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));n.default=new o.Type("dateFromStringOrNumber",t=>t instanceof Date,(t,n)=>(0,u.pipe)(o.union([o.number,o.string]).validate(t,n),(0,i.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(t,n):o.success(r)})),t=>t)},72113:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));n.default=new o.Type("dateFromTsMs",t=>t instanceof Date,(t,n)=>(0,u.pipe)(o.number.validate(t,n),(0,i.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(t,n):o.success(r)})),t=>t.getTime())},35541:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.EmptyArrayOrElse=n.EmptyObjectOrElse=n.NullOrElse=n.DefaultOrElse=void 0;let r=e(22970),i=e(87412),u=(0,r.__importStar)(e(87830)),o=e(19841);n.DefaultOrElse=t=>n=>new u.Type(`DefaultOrElse<${t.name}, ${n.name}>`,t=>null===t||n.is(t),(e,r)=>(0,i.isRight)(t.validate(e,r))?u.success(null):n.validate(e,r),t=>t?n.encode(t):void 0),n.NullOrElse=t=>(0,n.DefaultOrElse)(u.null)(t),n.EmptyObjectOrElse=t=>(0,n.DefaultOrElse)(o.EmptyObject)(t),n.EmptyArrayOrElse=t=>(0,n.DefaultOrElse)(o.EmptyArray)(t)},62990:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));n.default=new o.Type("IntFromNumber",o.Int.is,(t,n)=>(0,u.pipe)(o.number.validate(t,n),(0,i.chain)(t=>o.Int.is(t)?o.success(t):o.success(Math.round(t)))),o.Int.encode)},64678:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830)),a=/^([0-9]+)px$/;n.default=new o.Type("IntFromPixels",o.Int.is,(t,n)=>(0,u.pipe)(o.string.validate(t,n),(0,i.chain)(e=>{try{let r=e.match(a);if(!r)return o.failure(t,n);let i=parseInt(r[1]);return o.success(i)}catch{return o.failure(t,n)}})),String)},19528:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(87830)),i=e(35002);n.default=(0,i.withCustomError)((0,i.refineType)(r.string,"nonEmptyString",t=>t.trim().length>0),()=>"The value must be a non-empty string")},89448:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=e(87830),a=(0,r.__importDefault)(e(89793));n.default=new o.Type("nonEmptyStringOrNull",t=>"string"==typeof t||null===t,(t,n)=>(0,u.pipe)(a.default.validate(t,n),(0,i.chain)(t=>"string"==typeof t&&t.length>0?(0,o.success)(t):(0,o.success)(null))),t=>t)},33805:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(87830)),i=e(35002);n.default=(0,i.nullable)(r.number)},13670:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(87830)),i=e(19841);n.default=(t,n,e)=>i.Number.pipe(new r.Type("numberInRange",t=>i.Number.is(t),(i,u)=>i>n||i<t?r.failure(i,u,`${e} must be a number between ${t} and ${n}`):r.success(i),r.identity))},32047:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));n.default=new o.Type("StringFromInt",o.string.is,(t,n)=>(0,u.pipe)(o.boolean.validate(t,n),(0,i.chain)(t=>o.success(t.toString()))),t=>t)},80990:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));n.default=new o.Type("StringFromInt",o.string.is,(t,n)=>(0,u.pipe)(o.number.validate(t,n),(0,i.chain)(t=>o.success(t.toString()))),t=>t)},89793:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(87830)),i=e(35002);n.default=(0,i.nullable)(r.string)},38729:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});let r=e(22970),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));n.default=new o.Type("TrimmedString",o.string.is,(t,n)=>(0,u.pipe)(o.string.validate(t,n),(0,i.chain)(t=>o.success(function(t){let n=0;for(;n<t.length&&t[n]<=" ";)n++;let e=t.length;for(;n<e&&t[e-1]<=" ";)e--;return t.substring(n,e)}(t)))),t=>t)},35002:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.withCustomError=n.addType=n.isEmpty=n.objectToMap=n.grouped=n.formatDate=n.formatDateTime=n.filterDouble=n.refineType=n.nullable=void 0;let r=e(22970),i=e(9554),u=e(42275),o=(0,r.__importStar)(e(87830)),a=e(23284),c=e(47361);n.nullable=function(t){return o.union([t,o.null,o.undefined])},n.refineType=function(t,n,e){return new o.Type(n,t.is,(n,r)=>(0,u.pipe)(t.validate(n,r),i.either.chain(t=>e(t)?o.success(t):o.failure(n,r))),t.encode)},n.filterDouble=function(t){if(""===t)return null;let n=Number(t);return Number.isNaN(n)?null:n},n.formatDateTime=function(t){return t.toISOString().replace(/\.\d{3}Z$/,"+0000")},n.formatDate=function(t){return t.toISOString().replace(/T.*/,"")},n.grouped=function(t,n){return t.reduce((t,e,r)=>(r%n==0?t.push([e]):t[Math.floor(r/n)].push(e),t),[])},n.objectToMap=function(t){return new Map(Object.entries(t))},n.isEmpty=function(t){for(let n in t)return!1;return!0},n.addType=function(t,n){return(0,c.mapOutput)(t,t=>({...t,__TYPE__:n}))},n.withCustomError=function(t,n){return(0,a.withValidate)(t,(e,r)=>i.either.mapLeft(t=>t.find(t=>t.message)?t:[{value:e,context:r,message:n(e,r),actual:e}])(t.validate(e,r)))}},8597:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.StringOrNull=n.StringFromNumber=n.StringFromBoolean=n.NumberRange=n.NumberOrNull=n.NonEmptyStringOrNull=n.NonEmptyString=n.IntFromPixels=n.IntFromNumber=n.Function=n.DateFromTsMs=n.DateFromStringOrNumber=n.DateFromString=void 0;let r=e(22970);(0,r.__exportStar)(e(19841),n);var i=e(89394);Object.defineProperty(n,"DateFromString",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var u=e(23954);Object.defineProperty(n,"DateFromStringOrNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}});var o=e(72113);Object.defineProperty(n,"DateFromTsMs",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}}),(0,r.__exportStar)(e(35541),n),n.Function=(0,r.__importStar)(e(35002));var a=e(62990);Object.defineProperty(n,"IntFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var c=e(64678);Object.defineProperty(n,"IntFromPixels",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var f=e(19528);Object.defineProperty(n,"NonEmptyString",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var l=e(89448);Object.defineProperty(n,"NonEmptyStringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var p=e(33805);Object.defineProperty(n,"NumberOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(p).default}});var d=e(13670);Object.defineProperty(n,"NumberRange",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}});var s=e(32047);Object.defineProperty(n,"StringFromBoolean",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var h=e(80990);Object.defineProperty(n,"StringFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(h).default}});var m=e(89793);Object.defineProperty(n,"StringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(m).default}})},46111:function(t,n,e){e.r(n),e.d(n,{getApplicativeComposition:function(){return a},getApplicativeMonoid:function(){return o}});var r=e(42925),i=e(42275),u=e(67560);function o(t){var n=(0,r.getApplySemigroup)(t);return function(e){return{concat:n(e).concat,empty:t.of(e.empty)}}}function a(t,n){var e=(0,u.getFunctorComposition)(t,n).map,o=(0,r.ap)(t,n);return{map:e,of:function(e){return t.of(n.of(e))},ap:function(t,n){return(0,i.pipe)(t,o(n))}}}},42925:function(t,n,e){e.r(n),e.d(n,{ap:function(){return u},apFirst:function(){return o},apS:function(){return c},apSecond:function(){return a},getApplySemigroup:function(){return f},sequenceS:function(){return s},sequenceT:function(){return d}});var r=e(42275),i=e(97963);function u(t,n){return function(e){return function(r){return t.ap(t.map(r,function(t){return function(e){return n.ap(t,e)}}),e)}}}function o(t){return function(n){return function(e){return t.ap(t.map(e,function(t){return function(){return t}}),n)}}}function a(t){return function(n){return function(e){return t.ap(t.map(e,function(){return function(t){return t}}),n)}}}function c(t){return function(n,e){return function(r){return t.ap(t.map(r,function(t){return function(e){var r;return Object.assign({},t,((r={})[n]=e,r))}}),e)}}}function f(t){return function(n){return{concat:function(e,r){return t.ap(t.map(e,function(t){return function(e){return n.concat(t,e)}}),r)}}}}function l(t,n,e){return function(r){for(var i=Array(e.length+1),u=0;u<e.length;u++)i[u]=e[u];return i[e.length]=r,0===n?t.apply(null,i):l(t,n-1,i)}}var p={1:function(t){return[t]},2:function(t){return function(n){return[t,n]}},3:function(t){return function(n){return function(e){return[t,n,e]}}},4:function(t){return function(n){return function(e){return function(r){return[t,n,e,r]}}}},5:function(t){return function(n){return function(e){return function(r){return function(i){return[t,n,e,r,i]}}}}}};function d(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var u=n.length,o=(i.e$.call(p,u)||(p[u]=l(r.tuple,u-1,[])),p[u]),a=t.map(n[0],o),c=1;c<u;c++)a=t.ap(a,n[c]);return a}}function s(t){return function(n){for(var e=Object.keys(n),r=e.length,i=function(t){var n=t.length;switch(n){case 1:return function(n){var e;return(e={})[t[0]]=n,e};case 2:return function(n){return function(e){var r;return(r={})[t[0]]=n,r[t[1]]=e,r}};case 3:return function(n){return function(e){return function(r){var i;return(i={})[t[0]]=n,i[t[1]]=e,i[t[2]]=r,i}}};case 4:return function(n){return function(e){return function(r){return function(i){var u;return(u={})[t[0]]=n,u[t[1]]=e,u[t[2]]=r,u[t[3]]=i,u}}}};case 5:return function(n){return function(e){return function(r){return function(i){return function(u){var o;return(o={})[t[0]]=n,o[t[1]]=e,o[t[2]]=r,o[t[3]]=i,o[t[4]]=u,o}}}}};default:return l(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var i={},u=0;u<n;u++)i[t[u]]=e[u];return i},n-1,[])}}(e),u=t.map(n[e[0]],i),o=1;o<r;o++)u=t.ap(u,n[e[o]]);return u}}},1358:function(t,n,e){e.r(n),e.d(n,{Alt:function(){return nY},Alternative:function(){return nH},Applicative:function(){return nN},Apply:function(){return nD},Chain:function(){return nj},ChainRecBreadthFirst:function(){return n9},ChainRecDepthFirst:function(){return n4},Compactable:function(){return nX},Do:function(){return ef},Extend:function(){return nz},Filterable:function(){return nJ},FilterableWithIndex:function(){return n$},Foldable:function(){return nZ},FoldableWithIndex:function(){return nQ},FromEither:function(){return et},Functor:function(){return nW},FunctorWithIndex:function(){return nA},Monad:function(){return nG},Pointed:function(){return nP},Traversable:function(){return n0},TraversableWithIndex:function(){return n1},URI:function(){return nR},Unfoldable:function(){return nK},Witherable:function(){return n8},Zero:function(){return nV},alt:function(){return no},altW:function(){return nu},ap:function(){return t2},apFirst:function(){return nU},apS:function(){return es},apSecond:function(){return nL},append:function(){return y},appendW:function(){return b},array:function(){return e_},bind:function(){return ed},bindTo:function(){return el},chain:function(){return eh},chainFirst:function(){return nq},chainRecBreadthFirst:function(){return n7},chainRecDepthFirst:function(){return n3},chainWithIndex:function(){return F},chop:function(){return t_},chunksOf:function(){return tR},compact:function(){return t9},comprehension:function(){return tT},concat:function(){return tw},concatW:function(){return tx},cons:function(){return eg},copy:function(){return tr},deleteAt:function(){return to},difference:function(){return tE},dropLeft:function(){return z},dropLeftWhile:function(){return J},dropRight:function(){return X},duplicate:function(){return nf},elem:function(){return tg},empty:function(){return ev},every:function(){return eu},exists:function(){return ea},extend:function(){return nc},filter:function(){return nt},filterE:function(){return n6},filterMap:function(){return t7},filterMapWithIndex:function(){return t4},filterWithIndex:function(){return na},findFirst:function(){return Z},findFirstMap:function(){return Q},findIndex:function(){return $},findLast:function(){return tt},findLastIndex:function(){return te},findLastMap:function(){return tn},flap:function(){return nF},flatMap:function(){return t5},flatten:function(){return t8},foldLeft:function(){return E},foldMap:function(){return nl},foldMapWithIndex:function(){return np},foldRight:function(){return W},fromEither:function(){return T},fromEitherK:function(){return en},fromOption:function(){return S},fromOptionK:function(){return tS},fromPredicate:function(){return R},getDifferenceMagma:function(){return nk},getEq:function(){return nw},getIntersectionSemigroup:function(){return nC},getMonoid:function(){return nx},getOrd:function(){return nM},getSemigroup:function(){return nT},getShow:function(){return nS},getUnionMonoid:function(){return nE},getUnionSemigroup:function(){return nO},guard:function(){return nB},head:function(){return N},init:function(){return G},insertAt:function(){return ti},intercalate:function(){return ec},intersection:function(){return tO},intersperse:function(){return tm},isEmpty:function(){return h},isNonEmpty:function(){return m},isOutOfBound:function(){return U},last:function(){return j},lefts:function(){return tl},let:function(){return ep},lookup:function(){return L},makeBy:function(){return _},map:function(){return t1},mapWithIndex:function(){return t3},match:function(){return w},matchLeft:function(){return O},matchLeftW:function(){return M},matchRight:function(){return k},matchRightW:function(){return C},matchW:function(){return x},modifyAt:function(){return ta},of:function(){return tQ},partition:function(){return nn},partitionMap:function(){return nr},partitionMapWithIndex:function(){return ni},partitionWithIndex:function(){return ne},prepend:function(){return v},prependAll:function(){return th},prependToAll:function(){return eb},prependW:function(){return g},range:function(){return em},reduce:function(){return nd},reduceRight:function(){return nh},reduceRightWithIndex:function(){return nm},reduceWithIndex:function(){return ns},replicate:function(){return I},reverse:function(){return tc},rights:function(){return tf},rotate:function(){return tv},scanLeft:function(){return P},scanRight:function(){return A},separate:function(){return t6},sequence:function(){return ng},size:function(){return D},snoc:function(){return ey},some:function(){return eo},sort:function(){return tp},sortBy:function(){return tb},spanLeft:function(){return H},splitAt:function(){return tI},tail:function(){return q},takeLeft:function(){return K},takeLeftWhile:function(){return V},takeRight:function(){return Y},traverse:function(){return nv},traverseWithIndex:function(){return ny},unfold:function(){return nI},union:function(){return tM},uniq:function(){return ty},unsafeDeleteAt:function(){return ei},unsafeInsertAt:function(){return ee},unsafeUpdateAt:function(){return er},unzip:function(){return ts},updateAt:function(){return tu},wilt:function(){return n_},wither:function(){return nb},zero:function(){return t0},zip:function(){return function t(n,e){return void 0===e?function(e){return t(e,n)}:td(n,e,function(t,n){return[t,n]})}},zipWith:function(){return td}});var r=e(42925),i=e(88543),u=e(25162),o=e(42275),a=e(67560),c=e(97963),f=e(43586),l=e(31583),p=e(34219),d=e(76511),s=e(28957),h=function(t){return 0===t.length},m=f.isNonEmpty,v=f.prepend,g=f.prependW,y=f.append,b=f.appendW,_=function(t,n){return t<=0?[]:f.makeBy(n)(t)},I=function(t,n){return _(t,function(){return n})};function R(t){return function(n){return t(n)?[n]:[]}}var S=function(t){return c.Wi(t)?[]:[t.value]},T=function(t){return c.nM(t)?[]:[t.right]},x=function(t,n){return function(e){return m(e)?n(e):t()}},w=x,M=function(t,n){return function(e){return m(e)?n(f.head(e),f.tail(e)):t()}},O=M,E=O,C=function(t,n){return function(e){return m(e)?n(f.init(e),f.last(e)):t()}},k=C,W=k,F=function(t){return function(n){for(var e=[],r=0;r<n.length;r++)e.push.apply(e,t(r,n[r]));return e}},P=function(t,n){return function(e){var r=e.length,i=Array(r+1);i[0]=t;for(var u=0;u<r;u++)i[u+1]=n(i[u],e[u]);return i}},A=function(t,n){return function(e){var r=e.length,i=Array(r+1);i[r]=t;for(var u=r-1;u>=0;u--)i[u]=n(e[u],i[u+1]);return i}},D=function(t){return t.length},U=f.isOutOfBound,L=l.lookup,N=l.head,j=l.last,q=function(t){return m(t)?c.G(f.tail(t)):c.YP},G=function(t){return m(t)?c.G(f.init(t)):c.YP},K=function(t){return function(n){return U(t,n)?tr(n):n.slice(0,t)}},Y=function(t){return function(n){return U(t,n)?tr(n):0===t?[]:n.slice(-t)}};function V(t){return function(n){for(var e=[],r=0;r<n.length;r++){var i=n[r];if(!t(i))break;e.push(i)}return e}}var B=function(t,n){for(var e=t.length,r=0;r<e&&n(t[r]);r++);return r};function H(t){return function(n){var e=tI(B(n,t))(n);return{init:e[0],rest:e[1]}}}var z=function(t){return function(n){return t<=0||h(n)?tr(n):t>=n.length?[]:n.slice(t,n.length)}},X=function(t){return function(n){return t<=0||h(n)?tr(n):t>=n.length?[]:n.slice(0,n.length-t)}};function J(t){return function(n){return n.slice(B(n,t))}}var $=l.findIndex;function Z(t){return l.findFirst(t)}var Q=l.findFirstMap;function tt(t){return l.findLast(t)}var tn=l.findLastMap,te=l.findLastIndex,tr=function(t){return t.slice()},ti=function(t,n){return function(e){return t<0||t>e.length?c.YP:c.G(ee(t,n,e))}},tu=function(t,n){return ta(t,function(){return n})},to=function(t){return function(n){return U(t,n)?c.YP:c.G(ei(t,n))}},ta=function(t,n){return function(e){return U(t,e)?c.YP:c.G(er(t,n(e[t]),e))}},tc=function(t){return h(t)?[]:t.slice().reverse()},tf=function(t){for(var n=[],e=0;e<t.length;e++){var r=t[e];"Right"===r._tag&&n.push(r.right)}return n},tl=function(t){for(var n=[],e=0;e<t.length;e++){var r=t[e];"Left"===r._tag&&n.push(r.left)}return n},tp=function(t){return function(n){return n.length<=1?tr(n):n.slice().sort(t.compare)}},td=function(t,n,e){for(var r=[],i=Math.min(t.length,n.length),u=0;u<i;u++)r[u]=e(t[u],n[u]);return r},ts=function(t){for(var n=[],e=[],r=0;r<t.length;r++)n[r]=t[r][0],e[r]=t[r][1];return[n,e]},th=function(t){var n=f.prependAll(t);return function(t){return m(t)?n(t):[]}},tm=function(t){var n=f.intersperse(t);return function(t){return m(t)?n(t):tr(t)}},tv=function(t){var n=f.rotate(t);return function(t){return m(t)?n(t):tr(t)}},tg=l.elem,ty=function(t){var n=f.uniq(t);return function(t){return m(t)?n(t):tr(t)}},tb=function(t){var n=f.sortBy(t);return function(t){return m(t)?n(t):tr(t)}},t_=function(t){var n=f.chop(t);return function(t){return m(t)?n(t):[]}},tI=function(t){return function(n){return t>=1&&m(n)?f.splitAt(t)(n):h(n)?[tr(n),[]]:[[],tr(n)]}},tR=function(t){var n=f.chunksOf(t);return function(t){return m(t)?n(t):[]}},tS=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return S(t.apply(void 0,n))}};function tT(t,n,e){void 0===e&&(e=function(){return!0});var r=function(t,i){return m(i)?t5(f.head(i),function(n){return r((0,o.pipe)(t,y(n)),f.tail(i))}):e.apply(void 0,t)?[n.apply(void 0,t)]:[]};return r([],t)}var tx=function(t){return function(n){return h(n)?tr(t):h(t)?tr(n):n.concat(t)}},tw=tx;function tM(t){var n=f.union(t);return function(e,r){if(void 0===r){var i=tM(t);return function(t){return i(t,e)}}return m(e)&&m(r)?n(r)(e):m(e)?tr(e):tr(r)}}function tO(t){var n=tg(t);return function(e,r){if(void 0===r){var i=tO(t);return function(t){return i(t,e)}}return e.filter(function(t){return n(t,r)})}}function tE(t){var n=tg(t);return function(e,r){if(void 0===r){var i=tE(t);return function(t){return i(t,e)}}return e.filter(function(t){return!n(t,r)})}}var tC=function(t,n){return(0,o.pipe)(t,t1(n))},tk=function(t,n){return(0,o.pipe)(t,t3(n))},tW=function(t,n){return(0,o.pipe)(t,t2(n))},tF=function(t,n){return(0,o.pipe)(t,nt(n))},tP=function(t,n){return(0,o.pipe)(t,t7(n))},tA=function(t,n){return(0,o.pipe)(t,nn(n))},tD=function(t,n){return(0,o.pipe)(t,nr(n))},tU=function(t,n){return(0,o.pipe)(t,ne(n))},tL=function(t,n){return(0,o.pipe)(t,ni(n))},tN=function(t,n){return(0,o.pipe)(t,no(n))},tj=function(t,n,e){return(0,o.pipe)(t,nd(n,e))},tq=function(t){var n=nl(t);return function(t,e){return(0,o.pipe)(t,n(e))}},tG=function(t,n,e){return(0,o.pipe)(t,nh(n,e))},tK=function(t,n,e){return(0,o.pipe)(t,ns(n,e))},tY=function(t){var n=np(t);return function(t,e){return(0,o.pipe)(t,n(e))}},tV=function(t,n,e){return(0,o.pipe)(t,nm(n,e))},tB=function(t,n){return(0,o.pipe)(t,t4(n))},tH=function(t,n){return(0,o.pipe)(t,na(n))},tz=function(t,n){return(0,o.pipe)(t,nc(n))},tX=function(t){var n=nv(t);return function(t,e){return(0,o.pipe)(t,n(e))}},tJ=function(t){var n=ny(t);return function(t,e){return(0,o.pipe)(t,n(e))}},t$=l._chainRecDepthFirst,tZ=l._chainRecBreadthFirst,tQ=f.of,t0=function(){return[]},t1=function(t){return function(n){return n.map(function(n){return t(n)})}},t2=function(t){return t5(function(n){return(0,o.pipe)(t,t1(n))})},t5=(0,o.dual)(2,function(t,n){return(0,o.pipe)(t,F(function(t,e){return n(e,t)}))}),t8=t5(o.identity),t3=function(t){return function(n){return n.map(function(n,e){return t(e,n)})}},t4=function(t){return function(n){for(var e=[],r=0;r<n.length;r++){var i=t(r,n[r]);c.pC(i)&&e.push(i.value)}return e}},t7=function(t){return t4(function(n,e){return t(e)})},t9=t7(o.identity),t6=function(t){for(var n=[],e=[],r=0;r<t.length;r++){var i=t[r];"Left"===i._tag?n.push(i.left):e.push(i.right)}return(0,p.separated)(n,e)},nt=function(t){return function(n){return n.filter(t)}},nn=function(t){return ne(function(n,e){return t(e)})},ne=function(t){return function(n){for(var e=[],r=[],i=0;i<n.length;i++){var u=n[i];t(i,u)?r.push(u):e.push(u)}return(0,p.separated)(e,r)}},nr=function(t){return ni(function(n,e){return t(e)})},ni=function(t){return function(n){for(var e=[],r=[],i=0;i<n.length;i++){var u=t(i,n[i]);"Left"===u._tag?e.push(u.left):r.push(u.right)}return(0,p.separated)(e,r)}},nu=function(t){return function(n){return n.concat(t())}},no=nu,na=function(t){return function(n){return n.filter(function(n,e){return t(e,n)})}},nc=function(t){return function(n){return n.map(function(e,r){return t(n.slice(r))})}},nf=nc(o.identity),nl=l.foldMap,np=l.foldMapWithIndex,nd=l.reduce,ns=l.reduceWithIndex,nh=l.reduceRight,nm=l.reduceRightWithIndex,nv=function(t){var n=ny(t);return function(t){return n(function(n,e){return t(e)})}},ng=function(t){return function(n){return tj(n,t.of(t0()),function(n,e){return t.ap(t.map(n,function(t){return function(n){return(0,o.pipe)(t,y(n))}}),e)})}},ny=function(t){return function(n){return ns(t.of(t0()),function(e,r,i){return t.ap(t.map(r,function(t){return function(n){return(0,o.pipe)(t,y(n))}}),n(e,i))})}},nb=function(t){var n=n2(t);return function(t){return function(e){return n(e,t)}}},n_=function(t){var n=n5(t);return function(t){return function(e){return n(e,t)}}},nI=function(t,n){for(var e=[],r=t;;){var i=n(r);if(c.pC(i)){var u=i.value,o=u[0],a=u[1];e.push(o),r=a}else break}return e},nR="Array",nS=l.getShow,nT=function(){return{concat:function(t,n){return t.concat(n)}}},nx=function(){return{concat:nT().concat,empty:[]}},nw=l.getEq,nM=l.getOrd,nO=function(t){var n=tM(t);return{concat:function(t,e){return n(e)(t)}}},nE=function(t){return{concat:nO(t).concat,empty:[]}},nC=function(t){var n=tO(t);return{concat:function(t,e){return n(e)(t)}}},nk=function(t){var n=tE(t);return{concat:function(t,e){return n(e)(t)}}},nW={URI:nR,map:tC},nF=(0,a.flap)(nW),nP={URI:nR,of:tQ},nA={URI:nR,map:tC,mapWithIndex:tk},nD={URI:nR,map:tC,ap:tW},nU=(0,r.apFirst)(nD),nL=(0,r.apSecond)(nD),nN={URI:nR,map:tC,ap:tW,of:tQ},nj={URI:nR,map:tC,ap:tW,chain:t5},nq=(0,i.chainFirst)(nj),nG={URI:nR,map:tC,ap:tW,of:tQ,chain:t5},nK={URI:nR,unfold:nI},nY={URI:nR,map:tC,alt:tN},nV={URI:nR,zero:t0},nB=(0,s.guard)(nV,nP),nH={URI:nR,map:tC,ap:tW,of:tQ,alt:tN,zero:t0},nz={URI:nR,map:tC,extend:tz},nX={URI:nR,compact:t9,separate:t6},nJ={URI:nR,map:tC,compact:t9,separate:t6,filter:tF,filterMap:tP,partition:tA,partitionMap:tD},n$={URI:nR,map:tC,mapWithIndex:tk,compact:t9,separate:t6,filter:tF,filterMap:tP,partition:tA,partitionMap:tD,partitionMapWithIndex:tL,partitionWithIndex:tU,filterMapWithIndex:tB,filterWithIndex:tH},nZ={URI:nR,reduce:tj,foldMap:tq,reduceRight:tG},nQ={URI:nR,reduce:tj,foldMap:tq,reduceRight:tG,reduceWithIndex:tK,foldMapWithIndex:tY,reduceRightWithIndex:tV},n0={URI:nR,map:tC,reduce:tj,foldMap:tq,reduceRight:tG,traverse:tX,sequence:ng},n1={URI:nR,map:tC,mapWithIndex:tk,reduce:tj,foldMap:tq,reduceRight:tG,reduceWithIndex:tK,foldMapWithIndex:tY,reduceRightWithIndex:tV,traverse:tX,sequence:ng,traverseWithIndex:tJ},n2=(0,d.witherDefault)(n0,nX),n5=(0,d.wiltDefault)(n0,nX),n8={URI:nR,map:tC,compact:t9,separate:t6,filter:tF,filterMap:tP,partition:tA,partitionMap:tD,reduce:tj,foldMap:tq,reduceRight:tG,traverse:tX,sequence:ng,wither:n2,wilt:n5},n3=l.chainRecDepthFirst,n4={URI:nR,map:tC,ap:tW,chain:t5,chainRec:t$},n7=l.chainRecBreadthFirst,n9={URI:nR,map:tC,ap:tW,chain:t5,chainRec:tZ},n6=(0,d.filterE)(n8),et={URI:nR,fromEither:T},en=(0,u.fromEitherK)(et),ee=f.unsafeInsertAt,er=function(t,n,e){return m(e)?f.unsafeUpdateAt(t,n,e):[]},ei=function(t,n){var e=n.slice();return e.splice(t,1),e},eu=l.every,eo=function(t){return function(n){return n.some(t)}},ea=eo,ec=l.intercalate,ef=tQ(c.F4),el=(0,a.bindTo)(nW),ep=(0,a.let)(nW),ed=(0,i.bind)(nj),es=(0,r.apS)(nD),eh=t5,em=f.range,ev=[],eg=f.cons,ey=f.snoc,eb=th,e_={URI:nR,compact:t9,separate:t6,map:tC,ap:tW,of:tQ,chain:t5,filter:tF,filterMap:tP,partition:tA,partitionMap:tD,mapWithIndex:tk,partitionMapWithIndex:tL,partitionWithIndex:tU,filterMapWithIndex:tB,filterWithIndex:tH,alt:tN,zero:t0,unfold:nI,reduce:tj,foldMap:tq,reduceRight:tG,traverse:tX,sequence:ng,reduceWithIndex:tK,foldMapWithIndex:tY,reduceRightWithIndex:tV,traverseWithIndex:tJ,extend:tz,wither:n2,wilt:n5}},88543:function(t,n,e){function r(t){var n=i(t);return function(t){return function(e){return n(e,t)}}}function i(t){return function(n,e){return t.chain(n,function(n){return t.map(e(n),function(){return n})})}}function u(t){return function(n,e){return function(r){return t.chain(r,function(r){return t.map(e(r),function(t){var e;return Object.assign({},r,((e={})[n]=t,e))})})}}}e.r(n),e.d(n,{bind:function(){return u},chainFirst:function(){return r},tap:function(){return i}})},56661:function(t,n,e){e.r(n),e.d(n,{tailRec:function(){return r}});var r=function(t,n){for(var e=n(t);"Left"===e._tag;)e=n(e.left);return e.right}},90817:function(t,n,e){e.r(n),e.d(n,{Bifunctor:function(){return C},Contravariant:function(){return E},Functor:function(){return M},URI:function(){return w},bimap:function(){return T},const_:function(){return k},contramap:function(){return R},flap:function(){return O},getApplicative:function(){return g},getApply:function(){return v},getBooleanAlgebra:function(){return m},getBounded:function(){return f},getEq:function(){return a},getHeytingAlgebra:function(){return h},getMonoid:function(){return p},getOrd:function(){return c},getRing:function(){return s},getSemigroup:function(){return l},getSemiring:function(){return d},getShow:function(){return o},make:function(){return u},map:function(){return S},mapLeft:function(){return x}});var r=e(42275),i=e(67560),u=r.unsafeCoerce;function o(t){return{show:function(n){return"make(".concat(t.show(n),")")}}}var a=r.identity,c=r.identity,f=r.identity,l=r.identity,p=r.identity,d=r.identity,s=r.identity,h=r.identity,m=r.identity;function v(t){return{URI:w,_E:void 0,map:b,ap:function(n,e){return u(t.concat(n,e))}}}function g(t){var n=v(t);return{URI:w,_E:void 0,map:n.map,ap:n.ap,of:function(){return u(t.empty)}}}var y=function(t,n){return(0,r.pipe)(t,R(n))},b=function(t,n){return(0,r.pipe)(t,S(n))},_=function(t,n,e){return(0,r.pipe)(t,T(n,e))},I=function(t,n){return(0,r.pipe)(t,x(n))},R=function(){return r.unsafeCoerce},S=function(){return r.unsafeCoerce},T=function(t){return function(n){return u(t(n))}},x=function(t){return function(n){return u(t(n))}},w="Const",M={URI:w,map:b},O=(0,i.flap)(M),E={URI:w,contramap:y},C={URI:w,bimap:_,mapLeft:I},k={URI:w,map:b,contramap:y,bimap:_,mapLeft:I}},81878:function(t,n,e){e.r(n),e.d(n,{Alt:function(){return to},ApT:function(){return t7},Applicative:function(){return V},Apply:function(){return Y},Bifunctor:function(){return tr},Chain:function(){return B},ChainRec:function(){return tf},Do:function(){return t0},Extend:function(){return tc},Foldable:function(){return $},FromEither:function(){return td},Functor:function(){return U},Monad:function(){return H},MonadThrow:function(){return tp},Pointed:function(){return q},Traversable:function(){return tt},URI:function(){return M},alt:function(){return tu},altW:function(){return ti},ap:function(){return K},apFirst:function(){return tT},apFirstW:function(){return tx},apS:function(){return t3},apSW:function(){return t4},apSecond:function(){return tw},apSecondW:function(){return tM},apW:function(){return G},as:function(){return L},asUnit:function(){return N},bimap:function(){return tn},bind:function(){return t5},bindTo:function(){return t1},bindW:function(){return t8},chain:function(){return ni},chainFirst:function(){return nu},chainFirstW:function(){return no},chainNullableK:function(){return tJ},chainOptionK:function(){return tF},chainOptionKW:function(){return tP},chainW:function(){return nr},duplicate:function(){return tk},either:function(){return nf},elem:function(){return function t(n){return function(e,r){if(void 0===r){var i=t(n);return function(t){return i(e,t)}}return!tm(r)&&n.equals(e,r.right)}}},exists:function(){return tQ},extend:function(){return ta},filterOrElse:function(){return tq},filterOrElseW:function(){return tG},flap:function(){return tS},flatMap:function(){return m},flatMapNullable:function(){return tN},flatMapOption:function(){return tj},flatten:function(){return tC},flattenW:function(){return tE},fold:function(){return t_},foldMap:function(){return X},foldW:function(){return ty},fromNullable:function(){return tB},fromNullableK:function(){return tX},fromOption:function(){return th},fromOptionK:function(){return tW},fromPredicate:function(){return ts},getAltValidation:function(){return A},getApplicativeValidation:function(){return P},getApplyMonoid:function(){return np},getApplySemigroup:function(){return nl},getCompactable:function(){return k},getEq:function(){return E},getFilterable:function(){return W},getOrElse:function(){return tR},getOrElseW:function(){return tI},getSemigroup:function(){return C},getShow:function(){return O},getValidation:function(){return nh},getValidationMonoid:function(){return ns},getValidationSemigroup:function(){return nd},getWitherable:function(){return F},isLeft:function(){return tm},isRight:function(){return tv},left:function(){return s},let:function(){return t2},liftNullable:function(){return tD},liftOption:function(){return tU},map:function(){return D},mapLeft:function(){return te},match:function(){return tb},matchW:function(){return tg},of:function(){return j},orElse:function(){return tV},orElseW:function(){return tY},parseJSON:function(){return na},reduce:function(){return z},reduceRight:function(){return J},right:function(){return h},sequence:function(){return Q},sequenceArray:function(){return ne},stringifyJSON:function(){return nc},swap:function(){return tK},tap:function(){return tO},throwError:function(){return tl},toError:function(){return tZ},toUnion:function(){return t$},traverse:function(){return Z},traverseArray:function(){return nn},traverseArrayWithIndex:function(){return nt},traverseReadonlyArrayWithIndex:function(){return t6},traverseReadonlyNonEmptyArrayWithIndex:function(){return t9},tryCatch:function(){return tH},tryCatchK:function(){return tz}});var r=e(46111),i=e(42925),u=e(88543),o=e(56661),a=e(25162),c=e(42275),f=e(67560),l=e(97963),p=e(34219),d=e(76511),s=l.t$,h=l.F2,m=(0,c.dual)(2,function(t,n){return tm(t)?t:n(t.right)}),v=function(t,n){return(0,c.pipe)(t,D(n))},g=function(t,n){return(0,c.pipe)(t,K(n))},y=function(t,n,e){return(0,c.pipe)(t,z(n,e))},b=function(t){return function(n,e){var r=X(t);return(0,c.pipe)(n,r(e))}},_=function(t,n,e){return(0,c.pipe)(t,J(n,e))},I=function(t){var n=Z(t);return function(t,e){return(0,c.pipe)(t,n(e))}},R=function(t,n,e){return(0,c.pipe)(t,tn(n,e))},S=function(t,n){return(0,c.pipe)(t,te(n))},T=function(t,n){return(0,c.pipe)(t,tu(n))},x=function(t,n){return(0,c.pipe)(t,ta(n))},w=function(t,n){return(0,o.tailRec)(n(t),function(t){return tm(t)?h(s(t.left)):tm(t.right)?s(n(t.right.left)):h(h(t.right.right))})},M="Either",O=function(t,n){return{show:function(e){return tm(e)?"left(".concat(t.show(e.left),")"):"right(".concat(n.show(e.right),")")}}},E=function(t,n){return{equals:function(e,r){return e===r||(tm(e)?tm(r)&&t.equals(e.left,r.left):tv(r)&&n.equals(e.right,r.right))}}},C=function(t){return{concat:function(n,e){return tm(e)?n:tm(n)?e:h(t.concat(n.right,e.right))}}},k=function(t){var n=s(t.empty);return{URI:M,_E:void 0,compact:function(t){return tm(t)?t:"None"===t.right._tag?n:h(t.right.value)},separate:function(t){return tm(t)?(0,p.separated)(t,t):tm(t.right)?(0,p.separated)(h(t.right.left),n):(0,p.separated)(n,h(t.right.right))}}},W=function(t){var n=s(t.empty),e=k(t);return{URI:M,_E:void 0,map:v,compact:e.compact,separate:e.separate,filter:function(t,e){return tm(t)?t:e(t.right)?t:n},filterMap:function(t,e){if(tm(t))return t;var r=e(t.right);return"None"===r._tag?n:h(r.value)},partition:function(t,e){return tm(t)?(0,p.separated)(t,t):e(t.right)?(0,p.separated)(n,h(t.right)):(0,p.separated)(h(t.right),n)},partitionMap:function(t,e){if(tm(t))return(0,p.separated)(t,t);var r=e(t.right);return tm(r)?(0,p.separated)(h(r.left),n):(0,p.separated)(n,h(r.right))}}},F=function(t){var n=W(t),e=k(t);return{URI:M,_E:void 0,map:v,compact:n.compact,separate:n.separate,filter:n.filter,filterMap:n.filterMap,partition:n.partition,partitionMap:n.partitionMap,traverse:I,sequence:Q,reduce:y,foldMap:b,reduceRight:_,wither:(0,d.witherDefault)(tt,e),wilt:(0,d.wiltDefault)(tt,e)}},P=function(t){return{URI:M,_E:void 0,map:v,ap:function(n,e){return tm(n)?tm(e)?s(t.concat(n.left,e.left)):n:tm(e)?e:h(n.right(e.right))},of:j}},A=function(t){return{URI:M,_E:void 0,map:v,alt:function(n,e){if(tv(n))return n;var r=e();return tm(r)?s(t.concat(n.left,r.left)):r}}},D=function(t){return function(n){return tm(n)?n:h(t(n.right))}},U={URI:M,map:v},L=(0,c.dual)(2,(0,f.as)(U)),N=(0,f.asUnit)(U),j=h,q={URI:M,of:j},G=function(t){return function(n){return tm(n)?n:tm(t)?t:h(n.right(t.right))}},K=G,Y={URI:M,map:v,ap:g},V={URI:M,map:v,ap:g,of:j},B={URI:M,map:v,ap:g,chain:m},H={URI:M,map:v,ap:g,of:j,chain:m},z=function(t,n){return function(e){return tm(e)?t:n(t,e.right)}},X=function(t){return function(n){return function(e){return tm(e)?t.empty:n(e.right)}}},J=function(t,n){return function(e){return tm(e)?t:n(e.right,t)}},$={URI:M,reduce:y,foldMap:b,reduceRight:_},Z=function(t){return function(n){return function(e){return tm(e)?t.of(s(e.left)):t.map(n(e.right),h)}}},Q=function(t){return function(n){return tm(n)?t.of(s(n.left)):t.map(n.right,h)}},tt={URI:M,map:v,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:Q},tn=function(t,n){return function(e){return tm(e)?s(t(e.left)):h(n(e.right))}},te=function(t){return function(n){return tm(n)?s(t(n.left)):n}},tr={URI:M,bimap:R,mapLeft:S},ti=function(t){return function(n){return tm(n)?t():n}},tu=ti,to={URI:M,map:v,alt:T},ta=function(t){return function(n){return tm(n)?n:h(t(n))}},tc={URI:M,map:v,extend:x},tf={URI:M,map:v,ap:g,chain:m,chainRec:w},tl=s,tp={URI:M,map:v,ap:g,of:j,chain:m,throwError:tl},td={URI:M,fromEither:c.identity},ts=(0,a.fromPredicate)(td),th=(0,a.fromOption)(td),tm=l.nM,tv=l.tO,tg=function(t,n){return function(e){return tm(e)?t(e.left):n(e.right)}},ty=tg,tb=tg,t_=tb,tI=function(t){return function(n){return tm(n)?t(n.left):n.right}},tR=tI,tS=(0,f.flap)(U),tT=(0,i.apFirst)(Y),tx=tT,tw=(0,i.apSecond)(Y),tM=tw,tO=(0,c.dual)(2,u.tap(B)),tE=m(c.identity),tC=tE,tk=ta(c.identity),tW=(0,a.fromOptionK)(td),tF=(0,a.chainOptionK)(td,B),tP=tF,tA={fromEither:td.fromEither},tD=l.uL(tA),tU=l.WE(tA),tL={flatMap:m},tN=l.ny(tA,tL),tj=l.hU(tA,tL),tq=(0,a.filterOrElse)(td,B),tG=tq,tK=function(t){return tm(t)?h(t.left):s(t.right)},tY=function(t){return function(n){return tm(n)?t(n.left):n}},tV=tY,tB=function(t){return function(n){return null==n?s(t):h(n)}},tH=function(t,n){try{return h(t())}catch(t){return s(n(t))}},tz=function(t,n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return tH(function(){return t.apply(void 0,e)},n)}},tX=function(t){var n=tB(t);return function(t){return(0,c.flow)(t,n)}},tJ=function(t){var n=tX(t);return function(t){return m(n(t))}},t$=ty(c.identity,c.identity);function tZ(t){return t instanceof Error?t:Error(String(t))}var tQ=function(t){return function(n){return!tm(n)&&t(n.right)}},t0=j(l.F4),t1=(0,f.bindTo)(U),t2=(0,f.let)(U),t5=u.bind(B),t8=t5,t3=(0,i.apS)(Y),t4=t3,t7=j(l.Xl),t9=function(t){return function(n){var e=t(0,l.YM(n));if(tm(e))return e;for(var r=[e.right],i=1;i<n.length;i++){var u=t(i,n[i]);if(tm(u))return u;r.push(u.right)}return h(r)}},t6=function(t){var n=t9(t);return function(t){return l.Od(t)?n(t):t7}},nt=t6,nn=function(t){return t6(function(n,e){return t(e)})},ne=nn(c.identity),nr=m,ni=m,nu=tO,no=tO;function na(t,n){return tH(function(){return JSON.parse(t)},n)}var nc=function(t,n){return tH(function(){var n=JSON.stringify(t);if("string"!=typeof n)throw Error("Converting unsupported structure to JSON");return n},n)},nf={URI:M,map:v,of:j,ap:g,chain:m,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:Q,bimap:R,mapLeft:S,alt:T,extend:x,chainRec:w,throwError:tl},nl=(0,i.getApplySemigroup)(Y),np=(0,r.getApplicativeMonoid)(V),nd=function(t,n){return(0,i.getApplySemigroup)(P(t))(n)},ns=function(t,n){return(0,r.getApplicativeMonoid)(P(t))(n)};function nh(t){return{URI:M,_E:void 0,map:v,of:j,chain:m,bimap:R,mapLeft:S,reduce:y,foldMap:b,reduceRight:_,extend:x,traverse:I,sequence:Q,chainRec:w,throwError:tl,ap:P(t).ap,alt:A(t).alt}}},47797:function(t,n,e){e.r(n),e.d(n,{URI:function(){return i},getMonoid:function(){return o},getSemigroup:function(){return u}});var r=e(42275),i="Endomorphism",u=function(){return{concat:function(t,n){return(0,r.flow)(t,n)}}},o=function(){return{concat:u().concat,empty:r.identity}}},65191:function(t,n,e){e.r(n),e.d(n,{Contravariant:function(){return s},URI:function(){return c},contramap:function(){return a},eq:function(){return g},eqBoolean:function(){return y},eqDate:function(){return I},eqNumber:function(){return _},eqStrict:function(){return f},eqString:function(){return b},fromEquals:function(){return i},getMonoid:function(){return d},getSemigroup:function(){return p},getStructEq:function(){return m},getTupleEq:function(){return h},strictEqual:function(){return v},struct:function(){return u},tuple:function(){return o}});var r=e(42275),i=function(t){return{equals:function(n,e){return n===e||t(n,e)}}},u=function(t){return i(function(n,e){for(var r in t)if(!t[r].equals(n[r],e[r]))return!1;return!0})},o=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return i(function(n,e){return t.every(function(t,r){return t.equals(n[r],e[r])})})},a=function(t){return function(n){return i(function(e,r){return n.equals(t(e),t(r))})}},c="Eq",f={equals:function(t,n){return t===n}},l={equals:function(){return!0}},p=function(){return{concat:function(t,n){return i(function(e,r){return t.equals(e,r)&&n.equals(e,r)})}}},d=function(){return{concat:p().concat,empty:l}},s={URI:c,contramap:function(t,n){return(0,r.pipe)(t,a(n))}},h=o,m=u,v=f.equals,g=s,y=f,b=f,_=f,I={equals:function(t,n){return t.valueOf()===n.valueOf()}}},25162:function(t,n,e){e.r(n),e.d(n,{chainEitherK:function(){return p},chainFirstEitherK:function(){return d},chainOptionK:function(){return f},filterOrElse:function(){return s},fromEitherK:function(){return l},fromOption:function(){return o},fromOptionK:function(){return c},fromPredicate:function(){return a},tapEither:function(){return h}});var r=e(88543),i=e(42275),u=e(97963);function o(t){return function(n){return function(e){return t.fromEither(u.Wi(e)?u.t$(n()):u.F2(e.value))}}}function a(t){return function(n,e){return function(r){return t.fromEither(n(r)?u.F2(r):u.t$(e(r)))}}}function c(t){var n=o(t);return function(t){var e=n(t);return function(t){return(0,i.flow)(t,e)}}}function f(t,n){var e=c(t);return function(t){var r=e(t);return function(t){return function(e){return n.chain(e,r(t))}}}}function l(t){return function(n){return(0,i.flow)(n,t.fromEither)}}function p(t,n){var e=l(t);return function(t){return function(r){return n.chain(r,e(t))}}}function d(t,n){var e=h(t,n);return function(t){return function(n){return e(n,t)}}}function s(t,n){return function(e,r){return function(i){return n.chain(i,function(n){return t.fromEither(e(n)?u.F2(n):u.t$(r(n)))})}}}function h(t,n){var e=l(t),i=(0,r.tap)(n);return function(t,n){return i(t,e(n))}}},67560:function(t,n,e){e.r(n),e.d(n,{as:function(){return f},asUnit:function(){return l},bindTo:function(){return o},flap:function(){return u},getFunctorComposition:function(){return c},let:function(){return a},map:function(){return i}});var r=e(42275);function i(t,n){return function(e){return function(r){return t.map(r,function(t){return n.map(t,e)})}}}function u(t){return function(n){return function(e){return t.map(e,function(t){return t(n)})}}}function o(t){return function(n){return function(e){return t.map(e,function(t){var e;return(e={})[n]=t,e})}}}function a(t){return function(n,e){return function(r){return t.map(r,function(t){var r;return Object.assign({},t,((r={})[n]=e(t),r))})}}}function c(t,n){var e=i(t,n);return{map:function(t,n){return(0,r.pipe)(t,e(n))}}}function f(t){return function(n,e){return t.map(n,function(){return e})}}function l(t){var n=f(t);return function(t){return n(t,void 0)}}},76113:function(t,n,e){e.r(n),e.d(n,{concatAll:function(){return a},endo:function(){return o},filterFirst:function(){return i},filterSecond:function(){return u},reverse:function(){return r}});var r=function(t){return{concat:function(n,e){return t.concat(e,n)}}},i=function(t){return function(n){return{concat:function(e,r){return t(e)?n.concat(e,r):r}}}},u=function(t){return function(n){return{concat:function(e,r){return t(r)?n.concat(e,r):e}}}},o=function(t){return function(n){return{concat:function(e,r){return n.concat(t(e),t(r))}}}},a=function(t){return function(n){return function(e){return e.reduce(function(n,e){return t.concat(n,e)},n)}}}},55116:function(t,n,e){e.r(n),e.d(n,{Compactable:function(){return tb},Filterable:function(){return t_},Functor:function(){return tg},URI:function(){return tn},collect:function(){return y},compact:function(){return H},deleteAt:function(){return R},difference:function(){return tT},elem:function(){return m},empty:function(){return tx},filter:function(){return z},filterMap:function(){return X},filterMapWithIndex:function(){return D},filterWithIndex:function(){return U},flap:function(){return ty},foldMap:function(){return tf},foldMapWithIndex:function(){return ts},fromFoldable:function(){return W},getDifferenceMagma:function(){return tu},getEq:function(){return E},getFilterableWithIndex:function(){return to},getFoldable:function(){return tp},getFoldableWithIndex:function(){return tm},getIntersectionSemigroup:function(){return ti},getMonoid:function(){return C},getShow:function(){return p},getTraversableWithIndex:function(){return tv},getUnionMonoid:function(){return tr},getUnionSemigroup:function(){return te},getWitherable:function(){return ta},insertAt:function(){return tw},intersection:function(){return tS},isEmpty:function(){return s},isSubmap:function(){return O},keys:function(){return v},lookup:function(){return M},lookupWithKey:function(){return w},map:function(){return J},mapWithIndex:function(){return $},map_:function(){return tM},member:function(){return h},modifyAt:function(){return T},partition:function(){return Z},partitionMap:function(){return Q},partitionMapWithIndex:function(){return P},partitionWithIndex:function(){return A},pop:function(){return x},reduce:function(){return tc},reduceRight:function(){return tl},reduceRightWithIndex:function(){return th},reduceWithIndex:function(){return td},separate:function(){return tt},singleton:function(){return k},size:function(){return d},toArray:function(){return b},toUnfoldable:function(){return _},union:function(){return tR},updateAt:function(){return S},upsertAt:function(){return I},values:function(){return g}});var r=e(42275),i=e(67560),u=e(97963),o=e(20492),a=e(13512),c=e(34219),f=e(76511),l=function(){return(l=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t}).apply(this,arguments)},p=a.getShow,d=a.size,s=a.isEmpty,h=a.member,m=a.elem,v=function(t){return function(n){return Array.from(n.keys()).sort(t.compare)}},g=function(t){return function(n){return Array.from(n.values()).sort(t.compare)}};function y(t){var n=v(t);return function(t){return function(e){for(var r=[],i=n(e),u=0;u<i.length;u++){var o=i[u];r.push(t(o,e.get(o)))}return r}}}function b(t){return y(t)(function(t,n){return[t,n]})}function _(t,n){var e=b(t);return function(t){var r=e(t),i=r.length;return n.unfold(0,function(t){return t<i?u.G([r[t],t+1]):u.YP})}}var I=function(t){var n=w(t);return function(t,e){var r=n(t);return function(n){var i=r(n);if(u.Wi(i)){var o=new Map(n);return o.set(t,e),o}if(i.value[1]!==e){var o=new Map(n);return o.set(i.value[0],e),o}return n}}},R=function(t){var n=w(t);return function(t){return function(e){var r=n(t,e);if(u.pC(r)){var i=new Map(e);return i.delete(r.value[0]),i}return e}}},S=function(t){var n=T(t);return function(t,e){return n(t,function(){return e})}},T=function(t){var n=w(t);return function(t,e){return function(r){var i=n(t,r);if(u.Wi(i))return u.YP;var o=new Map(r);return o.set(i.value[0],e(i.value[1])),u.G(o)}}};function x(t){var n=M(t),e=R(t);return function(t){var i=e(t);return function(e){return(0,r.pipe)(n(t,e),o.map(function(t){return[t,i(e)]}))}}}function w(t){return function(n,e){if(void 0===e){var r,i=w(t);return function(t){return i(n,t)}}for(var o=e.entries();!(r=o.next()).done;){var a=r.value,c=a[0],f=a[1];if(t.equals(c,n))return u.G([c,f])}return u.YP}}var M=a.lookup,O=a.isSubmap,E=a.getEq;function C(t,n){var e=w(t);return{concat:function(t,r){if(s(t))return r;if(s(r))return t;for(var i,o=new Map(t),a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=e(f,t);u.pC(p)?o.set(p.value[0],n.concat(p.value[1],l)):o.set(f,l)}return o},empty:new Map}}var k=function(t,n){return new Map([[t,n]])};function W(t,n,e){return function(r){var i=w(t);return e.reduce(r,new Map,function(t,e){var r=e[0],o=e[1],a=i(r,t);return u.pC(a)?t.set(a.value[0],n.concat(a.value[1],o)):t.set(r,o),t})}}var F=function(t,n){for(var e,r=new Map,i=t.entries();!(e=i.next()).done;){var u=e.value,o=u[0],a=u[1];r.set(o,n(o,a))}return r},P=function(t){return function(n){for(var e,r=new Map,i=new Map,o=n.entries();!(e=o.next()).done;){var a=e.value,f=a[0],l=t(f,a[1]);u.nM(l)?r.set(f,l.left):i.set(f,l.right)}return(0,c.separated)(r,i)}};function A(t){return function(n){for(var e,r=new Map,i=new Map,u=n.entries();!(e=u.next()).done;){var o=e.value,a=o[0],f=o[1];t(a,f)?i.set(a,f):r.set(a,f)}return(0,c.separated)(r,i)}}var D=function(t){return function(n){for(var e,r=new Map,i=n.entries();!(e=i.next()).done;){var o=e.value,a=o[0],c=t(a,o[1]);u.pC(c)&&r.set(a,c.value)}return r}};function U(t){return function(n){for(var e,r=new Map,i=n.entries();!(e=i.next()).done;){var u=e.value,o=u[0],a=u[1];t(o,a)&&r.set(o,a)}return r}}var L=function(t,n){return F(t,function(t,e){return n(e)})},N=function(t,n){return K(t,function(t,e){return n(e)})},j=function(t,n){return Y(t,function(t,e){return n(e)})},q=function(t,n){return V(t,function(t,e){return n(e)})},G=function(t,n){return B(t,function(t,e){return n(e)})},K=function(t,n){return(0,r.pipe)(t,U(n))},Y=function(t,n){return(0,r.pipe)(t,D(n))},V=function(t,n){return(0,r.pipe)(t,A(n))},B=function(t,n){return(0,r.pipe)(t,P(n))},H=function(t){for(var n,e=new Map,r=t.entries();!(n=r.next()).done;){var i=n.value,o=i[0],a=i[1];u.pC(a)&&e.set(o,a.value)}return e},z=function(t){return function(n){return N(n,t)}},X=function(t){return function(n){return j(n,t)}},J=function(t){return function(n){return L(n,t)}},$=function(t){return function(n){return F(n,t)}},Z=function(t){return function(n){return q(n,t)}},Q=function(t){return function(n){return G(n,t)}},tt=function(t){for(var n,e=new Map,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,a=o[0],f=o[1];u.nM(f)?e.set(a,f.left):r.set(a,f.right)}return(0,c.separated)(e,r)},tn="Map",te=function(t,n){var e=tR(t,n);return{concat:function(t,n){return e(n)(t)}}},tr=function(t,n){return{concat:te(t,n).concat,empty:new Map}},ti=function(t,n){var e=tS(t,n);return{concat:function(t,n){return e(n)(t)}}},tu=function(t){return function(){var n=tT(t);return{concat:function(t,e){return n(e)(t)}}}};function to(){return{URI:tn,_E:void 0,map:L,mapWithIndex:F,compact:H,separate:tt,filter:N,filterMap:j,partition:q,partitionMap:G,partitionMapWithIndex:B,partitionWithIndex:V,filterMapWithIndex:Y,filterWithIndex:K}}function ta(t){var n=tv(t);return{URI:tn,_E:void 0,map:L,compact:H,separate:tt,filter:N,filterMap:j,partition:q,partitionMap:G,reduce:n.reduce,foldMap:n.foldMap,reduceRight:n.reduceRight,traverse:n.traverse,sequence:n.sequence,mapWithIndex:F,reduceWithIndex:n.reduceWithIndex,foldMapWithIndex:n.foldMapWithIndex,reduceRightWithIndex:n.reduceRightWithIndex,traverseWithIndex:n.traverseWithIndex,wilt:(0,f.wiltDefault)(n,tb),wither:(0,f.witherDefault)(n,tb)}}var tc=a.reduce,tf=a.foldMap,tl=a.reduceRight,tp=function(t){return l(l({},a.getFoldable(t)),{URI:tn})},td=a.reduceWithIndex,ts=a.foldMapWithIndex,th=a.reduceRightWithIndex,tm=function(t){return l(l({},a.getFoldableWithIndex(t)),{URI:tn})},tv=function(t){var n=tm(t),e=v(t),r=function(t){return function(n,r){for(var i=t.of(new Map),u=e(n),o=u.length,a=0;a<o;a++)!function(e){var o=u[e],a=n.get(o);i=t.ap(t.map(i,function(t){return function(n){return t.set(o,n)}}),r(o,a))}(a);return i}};return{URI:tn,_E:void 0,map:L,mapWithIndex:F,reduce:n.reduce,foldMap:n.foldMap,reduceRight:n.reduceRight,reduceWithIndex:n.reduceWithIndex,foldMapWithIndex:n.foldMapWithIndex,reduceRightWithIndex:n.reduceRightWithIndex,traverse:function(t){var n=r(t);return function(t,e){return n(t,function(t,n){return e(n)})}},sequence:function(t){var n=r(t);return function(t){return n(t,function(t,n){return n})}},traverseWithIndex:r}},tg={URI:tn,map:L},ty=(0,i.flap)(tg),tb={URI:tn,compact:H,separate:tt},t_={URI:tn,map:L,compact:H,separate:tt,filter:N,filterMap:j,partition:q,partitionMap:G},tI=function(t){return new Map(t)},tR=function(t,n){var e=a.union(t,n);return function(t){return function(n){return s(n)?tI(t):s(t)?tI(n):e(t)(n)}}},tS=function(t,n){var e=a.intersection(t,n);return function(t){return function(n){return s(n)||s(t)?new Map:e(t)(n)}}},tT=function(t){var n=a.difference(t);return function(t){return function(e){return s(e)?tI(t):s(t)?tI(e):n(t)(e)}}},tx=new Map,tw=I,tM=t_},96576:function(t,n,e){e.r(n),e.d(n,{concatAll:function(){return d},fold:function(){return b},getDualMonoid:function(){return v},getEndomorphismMonoid:function(){return S},getFunctionMonoid:function(){return R},getJoinMonoid:function(){return g},getMeetMonoid:function(){return y},getStructMonoid:function(){return m},getTupleMonoid:function(){return h},max:function(){return c},min:function(){return a},monoidAll:function(){return _},monoidAny:function(){return I},monoidProduct:function(){return w},monoidString:function(){return T},monoidSum:function(){return x},monoidVoid:function(){return s},reverse:function(){return f},struct:function(){return l},tuple:function(){return p}});var r=e(47797),i=e(42275),u=e(97963),o=e(3291),a=function(t){return{concat:o.min(t).concat,empty:t.top}},c=function(t){return{concat:o.max(t).concat,empty:t.bottom}},f=function(t){return{concat:o.reverse(t).concat,empty:t.empty}},l=function(t){var n={};for(var e in t)u.e$.call(t,e)&&(n[e]=t[e].empty);return{concat:o.struct(t).concat,empty:n}},p=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return{concat:o.tuple.apply(o,t).concat,empty:t.map(function(t){return t.empty})}},d=function(t){return o.concatAll(t)(t.empty)},s={concat:o.semigroupVoid.concat,empty:void 0},h=p,m=l,v=f,g=c,y=a,b=d,_={concat:o.semigroupAll.concat,empty:!0},I={concat:o.semigroupAny.concat,empty:!1},R=i.getMonoid,S=function(){return f((0,r.getMonoid)())},T={concat:o.semigroupString.concat,empty:""},x={concat:o.semigroupSum.concat,empty:0},w={concat:o.semigroupProduct.concat,empty:1}},43586:function(t,n,e){e.r(n),e.d(n,{Alt:function(){return tH},Applicative:function(){return tN},Apply:function(){return tD},Chain:function(){return tj},Comonad:function(){return tz},Do:function(){return tX},Foldable:function(){return tK},FoldableWithIndex:function(){return tY},Functor:function(){return tW},FunctorWithIndex:function(){return tA},Monad:function(){return tG},Pointed:function(){return tP},Traversable:function(){return tV},TraversableWithIndex:function(){return tB},URI:function(){return tM},alt:function(){return tp},altW:function(){return tl},ap:function(){return td},apFirst:function(){return tU},apS:function(){return tQ},apSecond:function(){return tL},append:function(){return v},appendW:function(){return m},bind:function(){return tZ},bindTo:function(){return tJ},chain:function(){return ni},chainFirst:function(){return tq},chainWithIndex:function(){return H},chop:function(){return z},chunksOf:function(){return J},concat:function(){return k},concatAll:function(){return t4},concatW:function(){return C},cons:function(){return nl},copy:function(){return N},duplicate:function(){return tm},extend:function(){return th},extract:function(){return tw},filter:function(){return no},filterWithIndex:function(){return na},flap:function(){return tF},flatMap:function(){return ts},flatten:function(){return tv},fold:function(){return ns},foldMap:function(){return B},foldMapWithIndex:function(){return V},fromArray:function(){return T},fromReadonlyNonEmptyArray:function(){return S},getEq:function(){return tC},getSemigroup:function(){return tE},getShow:function(){return tO},getUnionSemigroup:function(){return tk},group:function(){return F},groupBy:function(){return P},groupSort:function(){return nu},head:function(){return t0},init:function(){return t5},insertAt:function(){return D},intercalate:function(){return nr},intersperse:function(){return Y},isNonEmpty:function(){return p},isOutOfBound:function(){return d},last:function(){return t2},let:function(){return t$},makeBy:function(){return x},map:function(){return tg},mapWithIndex:function(){return ty},matchLeft:function(){return t7},matchRight:function(){return t9},max:function(){return t3},min:function(){return t8},modifyAt:function(){return L},modifyHead:function(){return t6},modifyLast:function(){return nn},nonEmptyArray:function(){return nh},of:function(){return j},prepend:function(){return h},prependAll:function(){return K},prependToAll:function(){return nd},prependW:function(){return s},range:function(){return M},reduce:function(){return tb},reduceRight:function(){return tI},reduceRightWithIndex:function(){return tR},reduceWithIndex:function(){return t_},replicate:function(){return w},reverse:function(){return W},rotate:function(){return R},sequence:function(){return tT},snoc:function(){return np},sort:function(){return A},sortBy:function(){return _},splitAt:function(){return X},tail:function(){return t1},traverse:function(){return tS},traverseWithIndex:function(){return tx},unappend:function(){return E},uncons:function(){return nc},union:function(){return I},uniq:function(){return b},unprepend:function(){return O},unsafeInsertAt:function(){return g},unsafeUpdateAt:function(){return y},unsnoc:function(){return nf},unzip:function(){return G},updateAt:function(){return U},updateHead:function(){return nt},updateLast:function(){return ne},zip:function(){return function t(n,e){return void 0===e?function(e){return t(e,n)}:q(n,e,function(t,n){return[t,n]})}},zipWith:function(){return q}});var r=e(42925),i=e(88543),u=e(42275),o=e(67560),a=e(97963),c=e(5586),f=e(28350),l=function(t,n,e){if(e||2==arguments.length)for(var r,i=0,u=n.length;i<u;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return t.concat(r||Array.prototype.slice.call(n))},p=function(t){return t.length>0},d=function(t,n){return t<0||t>=n.length},s=function(t){return function(n){return l([t],n,!0)}},h=s,m=function(t){return function(n){return l(l([],n,!0),[t],!1)}},v=m,g=function(t,n,e){if(p(e)){var r=S(e);return r.splice(t,0,n),r}return[n]},y=function(t,n,e){var r=S(e);return r[t]=n,r},b=function(t){return function(n){if(1===n.length)return N(n);for(var e=[t0(n)],r=t1(n),i=function(n){e.every(function(e){return!t.equals(e,n)})&&e.push(n)},u=0;u<r.length;u++)i(r[u]);return e}},_=function(t){if(p(t)){var n=(0,c.getMonoid)();return A(t.reduce(n.concat,n.empty))}return N},I=function(t){var n=b(t);return function(t){return function(e){return n((0,u.pipe)(e,k(t)))}}},R=function(t){return function(n){var e=n.length,r=Math.round(t)%e;if(d(Math.abs(r),n)||0===r)return N(n);if(!(r<0))return R(r-e)(n);var i=X(-r)(n),o=i[0],a=i[1];return(0,u.pipe)(a,k(o))}},S=a.r1,T=function(t){return p(t)?a.G(t):a.YP},x=function(t){return function(n){for(var e=Math.max(0,Math.floor(n)),r=[t(0)],i=1;i<e;i++)r.push(t(i));return r}},w=function(t){return x(function(){return t})},M=function(t,n){return t<=n?x(function(n){return t+n})(n-t+1):[t]},O=function(t){return[t0(t),t1(t)]},E=function(t){return[t5(t),t2(t)]};function C(t){return function(n){return n.concat(t)}}function k(t,n){return n?t.concat(n):function(n){return n.concat(t)}}var W=function(t){return l([t2(t)],t.slice(0,-1).reverse(),!0)};function F(t){return function(n){var e=n.length;if(0===e)return[];for(var r=[],i=n[0],u=[i],o=1;o<e;o++){var a=n[o];t.equals(a,i)?u.push(a):(r.push(u),u=[i=a])}return r.push(u),r}}var P=function(t){return function(n){for(var e={},r=0;r<n.length;r++){var i=n[r],u=t(i);a.e$.call(e,u)?e[u].push(i):e[u]=[i]}return e}},A=function(t){return function(n){return n.slice().sort(t.compare)}},D=function(t,n){return function(e){return t<0||t>e.length?a.YP:a.G(g(t,n,e))}},U=function(t,n){return L(t,function(){return n})},L=function(t,n){return function(e){return d(t,e)?a.YP:a.G(y(t,n(e[t]),e))}},N=S,j=function(t){return[t]},q=function(t,n,e){for(var r=[e(t[0],n[0])],i=Math.min(t.length,n.length),u=1;u<i;u++)r[u]=e(t[u],n[u]);return r},G=function(t){for(var n=[t[0][0]],e=[t[0][1]],r=1;r<t.length;r++)n[r]=t[r][0],e[r]=t[r][1];return[n,e]},K=function(t){return function(n){for(var e=[t,n[0]],r=1;r<n.length;r++)e.push(t,n[r]);return e}},Y=function(t){return function(n){var e=t1(n);return p(e)?(0,u.pipe)(e,K(t),h(t0(n))):N(n)}},V=f.foldMapWithIndex,B=f.foldMap,H=function(t){return function(n){for(var e=S(t(0,t0(n))),r=1;r<n.length;r++)e.push.apply(e,t(r,n[r]));return e}},z=function(t){return function(n){for(var e=t(n),r=e[0],i=e[1],u=[r],o=i;p(o);){var a=t(o),c=a[0],f=a[1];u.push(c),o=f}return u}},X=function(t){return function(n){var e=Math.max(1,t);return e>=n.length?[N(n),[]]:[(0,u.pipe)(n.slice(1,e),h(t0(n))),n.slice(e)]}},J=function(t){return z(X(t))},$=function(t,n){return(0,u.pipe)(t,tg(n))},Z=function(t,n){return(0,u.pipe)(t,ty(n))},Q=function(t,n){return(0,u.pipe)(t,td(n))},tt=function(t,n){return(0,u.pipe)(t,th(n))},tn=function(t,n,e){return(0,u.pipe)(t,tb(n,e))},te=function(t){var n=B(t);return function(t,e){return(0,u.pipe)(t,n(e))}},tr=function(t,n,e){return(0,u.pipe)(t,tI(n,e))},ti=function(t){var n=tS(t);return function(t,e){return(0,u.pipe)(t,n(e))}},tu=function(t,n){return(0,u.pipe)(t,tp(n))},to=function(t,n,e){return(0,u.pipe)(t,t_(n,e))},ta=function(t){var n=V(t);return function(t,e){return(0,u.pipe)(t,n(e))}},tc=function(t,n,e){return(0,u.pipe)(t,tR(n,e))},tf=function(t){var n=tx(t);return function(t,e){return(0,u.pipe)(t,n(e))}},tl=function(t){return function(n){return(0,u.pipe)(n,C(t()))}},tp=tl,td=function(t){return ts(function(n){return(0,u.pipe)(t,tg(n))})},ts=(0,u.dual)(2,function(t,n){return(0,u.pipe)(t,H(function(t,e){return n(e,t)}))}),th=function(t){return function(n){for(var e=t1(n),r=[t(n)];p(e);)r.push(t(e)),e=t1(e);return r}},tm=th(u.identity),tv=ts(u.identity),tg=function(t){return ty(function(n,e){return t(e)})},ty=function(t){return function(n){for(var e=[t(0,t0(n))],r=1;r<n.length;r++)e.push(t(r,n[r]));return e}},tb=f.reduce,t_=f.reduceWithIndex,tI=f.reduceRight,tR=f.reduceRightWithIndex,tS=function(t){var n=tx(t);return function(t){return n(function(n,e){return t(e)})}},tT=function(t){return tx(t)(function(t,n){return n})},tx=function(t){return function(n){return function(e){for(var r=t.map(n(0,t0(e)),j),i=1;i<e.length;i++)r=t.ap(t.map(r,function(t){return function(n){return(0,u.pipe)(t,v(n))}}),n(i,e[i]));return r}}},tw=f.head,tM="NonEmptyArray",tO=f.getShow,tE=function(){return{concat:k}},tC=f.getEq,tk=function(t){var n=I(t);return{concat:function(t,e){return n(e)(t)}}},tW={URI:tM,map:$},tF=(0,o.flap)(tW),tP={URI:tM,of:j},tA={URI:tM,map:$,mapWithIndex:Z},tD={URI:tM,map:$,ap:Q},tU=(0,r.apFirst)(tD),tL=(0,r.apSecond)(tD),tN={URI:tM,map:$,ap:Q,of:j},tj={URI:tM,map:$,ap:Q,chain:ts},tq=(0,i.chainFirst)(tj),tG={URI:tM,map:$,ap:Q,of:j,chain:ts},tK={URI:tM,reduce:tn,foldMap:te,reduceRight:tr},tY={URI:tM,reduce:tn,foldMap:te,reduceRight:tr,reduceWithIndex:to,foldMapWithIndex:ta,reduceRightWithIndex:tc},tV={URI:tM,map:$,reduce:tn,foldMap:te,reduceRight:tr,traverse:ti,sequence:tT},tB={URI:tM,map:$,mapWithIndex:Z,reduce:tn,foldMap:te,reduceRight:tr,traverse:ti,sequence:tT,reduceWithIndex:to,foldMapWithIndex:ta,reduceRightWithIndex:tc,traverseWithIndex:tf},tH={URI:tM,map:$,alt:tu},tz={URI:tM,map:$,extend:tt,extract:tw},tX=j(a.F4),tJ=(0,o.bindTo)(tW),t$=(0,o.let)(tW),tZ=(0,i.bind)(tj),tQ=(0,r.apS)(tD),t0=f.head,t1=function(t){return t.slice(1)},t2=f.last,t5=function(t){return t.slice(0,-1)},t8=f.min,t3=f.max,t4=function(t){return function(n){return n.reduce(t.concat)}},t7=function(t){return function(n){return t(t0(n),t1(n))}},t9=function(t){return function(n){return t(t5(n),t2(n))}},t6=function(t){return function(n){return l([t(t0(n))],t1(n),!0)}},nt=function(t){return t6(function(){return t})},nn=function(t){return function(n){return(0,u.pipe)(t5(n),v(t(t2(n))))}},ne=function(t){return nn(function(){return t})},nr=f.intercalate,ni=ts;function nu(t){var n=A(t),e=F(t);return function(t){return p(t)?e(n(t)):[]}}function no(t){return na(function(n,e){return t(e)})}var na=function(t){return function(n){return T(n.filter(function(n,e){return t(e,n)}))}},nc=O,nf=E;function nl(t,n){return void 0===n?h(t):(0,u.pipe)(n,h(t))}var np=function(t,n){return(0,u.pipe)(t,v(n))},nd=K,ns=f.concatAll,nh={URI:tM,of:j,map:$,mapWithIndex:Z,ap:Q,chain:ts,extend:tt,extract:tw,reduce:tn,foldMap:te,reduceRight:tr,traverse:ti,sequence:tT,reduceWithIndex:to,foldMapWithIndex:ta,reduceRightWithIndex:tc,traverseWithIndex:tf,alt:tu}},20492:function(t,n,e){e.r(n),e.d(n,{Alt:function(){return te},Alternative:function(){return to},ApT:function(){return t7},Applicative:function(){return V},Apply:function(){return Y},Chain:function(){return H},Compactable:function(){return td},Do:function(){return t2},Extend:function(){return tc},Filterable:function(){return tg},Foldable:function(){return Z},FromEither:function(){return tE},Functor:function(){return L},Monad:function(){return z},MonadThrow:function(){return tM},Pointed:function(){return G},Traversable:function(){return t_},URI:function(){return W},Witherable:function(){return tx},Zero:function(){return ti},alt:function(){return tn},altW:function(){return tt},ap:function(){return K},apFirst:function(){return tN},apS:function(){return t4},apSecond:function(){return tj},as:function(){return N},asUnit:function(){return j},bind:function(){return t3},bindTo:function(){return t5},chain:function(){return nr},chainEitherK:function(){return tB},chainFirst:function(){return ni},chainFirstEitherK:function(){return tH},chainNullableK:function(){return tZ},compact:function(){return tf},duplicate:function(){return tY},elem:function(){return function t(n){return function(e,r){if(void 0===r){var i=t(n);return function(t){return i(e,t)}}return!tk(r)&&n.equals(e,r.value)}}},exists:function(){return t1},extend:function(){return ta},filter:function(){return ts},filterMap:function(){return th},flap:function(){return tL},flatMap:function(){return B},flatten:function(){return tq},fold:function(){return tA},foldMap:function(){return J},foldW:function(){return tF},fromEither:function(){return tO},fromEitherK:function(){return tV},fromNullable:function(){return tz},fromNullableK:function(){return t$},fromPredicate:function(){return g},getApplyMonoid:function(){return nf},getApplySemigroup:function(){return nc},getEq:function(){return P},getFirstMonoid:function(){return nl},getLastMonoid:function(){return np},getLeft:function(){return y},getMonoid:function(){return D},getOrElse:function(){return tU},getOrElseW:function(){return tD},getOrd:function(){return A},getRefinement:function(){return nu},getRight:function(){return b},getShow:function(){return F},guard:function(){return tu},isNone:function(){return tk},isSome:function(){return tC},let:function(){return t8},map:function(){return U},mapNullable:function(){return no},match:function(){return tP},matchW:function(){return tW},none:function(){return m},of:function(){return q},option:function(){return na},orElse:function(){return Q},partition:function(){return tm},partitionMap:function(){return tv},reduce:function(){return X},reduceRight:function(){return $},separate:function(){return tp},sequence:function(){return tb},sequenceArray:function(){return ne},some:function(){return v},tap:function(){return tG},tapEither:function(){return tK},throwError:function(){return tw},toNullable:function(){return tQ},toUndefined:function(){return t0},traverse:function(){return ty},traverseArray:function(){return nn},traverseArrayWithIndex:function(){return nt},traverseReadonlyArrayWithIndex:function(){return t6},traverseReadonlyNonEmptyArrayWithIndex:function(){return t9},tryCatch:function(){return tX},tryCatchK:function(){return tJ},wilt:function(){return tT},wither:function(){return tS},zero:function(){return tr}});var r=e(46111),i=e(42925),u=e(88543),o=e(25162),a=e(42275),c=e(67560),f=e(97963),l=e(88491),p=e(3291),d=e(34219),s=e(76511),h=e(28957),m=f.YP,v=f.G;function g(t){return function(n){return t(n)?v(n):m}}var y=function(t){return"Right"===t._tag?m:v(t.left)},b=function(t){return"Left"===t._tag?m:v(t.right)},_=function(t,n){return(0,a.pipe)(t,U(n))},I=function(t,n){return(0,a.pipe)(t,K(n))},R=function(t,n,e){return(0,a.pipe)(t,X(n,e))},S=function(t){var n=J(t);return function(t,e){return(0,a.pipe)(t,n(e))}},T=function(t,n,e){return(0,a.pipe)(t,$(n,e))},x=function(t){var n=ty(t);return function(t,e){return(0,a.pipe)(t,n(e))}},w=function(t,n){return(0,a.pipe)(t,tn(n))},M=function(t,n){return(0,a.pipe)(t,ts(n))},O=function(t,n){return(0,a.pipe)(t,th(n))},E=function(t,n){return(0,a.pipe)(t,ta(n))},C=function(t,n){return(0,a.pipe)(t,tm(n))},k=function(t,n){return(0,a.pipe)(t,tv(n))},W="Option",F=function(t){return{show:function(n){return tk(n)?"none":"some(".concat(t.show(n.value),")")}}},P=function(t){return{equals:function(n,e){return n===e||(tk(n)?tk(e):!tk(e)&&t.equals(n.value,e.value))}}},A=function(t){return{equals:P(t).equals,compare:function(n,e){return n===e?0:tC(n)?tC(e)?t.compare(n.value,e.value):1:-1}}},D=function(t){return{concat:function(n,e){return tk(n)?e:tk(e)?n:v(t.concat(n.value,e.value))},empty:m}},U=function(t){return function(n){return tk(n)?m:v(t(n.value))}},L={URI:W,map:_},N=(0,a.dual)(2,(0,c.as)(L)),j=(0,c.asUnit)(L),q=v,G={URI:W,of:q},K=function(t){return function(n){return tk(n)?m:tk(t)?m:v(n.value(t.value))}},Y={URI:W,map:_,ap:I},V={URI:W,map:_,ap:I,of:q},B=(0,a.dual)(2,function(t,n){return tk(t)?m:n(t.value)}),H={URI:W,map:_,ap:I,chain:B},z={URI:W,map:_,ap:I,of:q,chain:B},X=function(t,n){return function(e){return tk(e)?t:n(t,e.value)}},J=function(t){return function(n){return function(e){return tk(e)?t.empty:n(e.value)}}},$=function(t,n){return function(e){return tk(e)?t:n(e.value,t)}},Z={URI:W,reduce:R,foldMap:S,reduceRight:T},Q=(0,a.dual)(2,function(t,n){return tk(t)?n():t}),tt=Q,tn=Q,te={URI:W,map:_,alt:w},tr=function(){return m},ti={URI:W,zero:tr},tu=(0,h.guard)(ti,G),to={URI:W,map:_,ap:I,of:q,alt:w,zero:tr},ta=function(t){return function(n){return tk(n)?m:v(t(n))}},tc={URI:W,map:_,extend:E},tf=B(a.identity),tl=(0,d.separated)(m,m),tp=function(t){return tk(t)?tl:(0,d.separated)(y(t.value),b(t.value))},td={URI:W,compact:tf,separate:tp},ts=function(t){return function(n){return tk(n)?m:t(n.value)?n:m}},th=function(t){return function(n){return tk(n)?m:t(n.value)}},tm=function(t){return function(n){return(0,d.separated)(M(n,(0,l.not)(t)),M(n,t))}},tv=function(t){return(0,a.flow)(U(t),tp)},tg={URI:W,map:_,compact:tf,separate:tp,filter:M,filterMap:O,partition:C,partitionMap:k},ty=function(t){return function(n){return function(e){return tk(e)?t.of(m):t.map(n(e.value),v)}}},tb=function(t){return function(n){return tk(n)?t.of(m):t.map(n.value,v)}},t_={URI:W,map:_,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:tb},tI=(0,s.witherDefault)(t_,td),tR=(0,s.wiltDefault)(t_,td),tS=function(t){var n=tI(t);return function(t){return function(e){return n(e,t)}}},tT=function(t){var n=tR(t);return function(t){return function(e){return n(e,t)}}},tx={URI:W,map:_,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:tb,compact:tf,separate:tp,filter:M,filterMap:O,partition:C,partitionMap:k,wither:tI,wilt:tR},tw=function(){return m},tM={URI:W,map:_,ap:I,of:q,chain:B,throwError:tw},tO=b,tE={URI:W,fromEither:tO},tC=f.pC,tk=function(t){return"None"===t._tag},tW=function(t,n){return function(e){return tk(e)?t():n(e.value)}},tF=tW,tP=tW,tA=tP,tD=function(t){return function(n){return tk(n)?t():n.value}},tU=tD,tL=(0,c.flap)(L),tN=(0,i.apFirst)(Y),tj=(0,i.apSecond)(Y),tq=tf,tG=(0,a.dual)(2,u.tap(H)),tK=(0,a.dual)(2,(0,o.tapEither)(tE,H)),tY=ta(a.identity),tV=(0,o.fromEitherK)(tE),tB=(0,o.chainEitherK)(tE,H),tH=tK,tz=function(t){return null==t?m:v(t)},tX=function(t){try{return v(t())}catch(t){return m}},tJ=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return tX(function(){return t.apply(void 0,n)})}},t$=function(t){return(0,a.flow)(t,tz)},tZ=function(t){return function(n){return tk(n)?m:tz(t(n.value))}},tQ=tP(a.constNull,a.identity),t0=tP(a.constUndefined,a.identity),t1=function(t){return function(n){return!tk(n)&&t(n.value)}},t2=q(f.F4),t5=(0,c.bindTo)(L),t8=(0,c.let)(L),t3=u.bind(H),t4=(0,i.apS)(Y),t7=q(f.Xl),t9=function(t){return function(n){var e=t(0,f.YM(n));if(tk(e))return m;for(var r=[e.value],i=1;i<n.length;i++){var u=t(i,n[i]);if(tk(u))return m;r.push(u.value)}return v(r)}},t6=function(t){var n=t9(t);return function(t){return f.Od(t)?n(t):t7}},nt=t6,nn=function(t){return t6(function(n,e){return t(e)})},ne=nn(a.identity),nr=B,ni=tG;function nu(t){return function(n){return tC(t(n))}}var no=tZ,na={URI:W,map:_,of:q,ap:I,chain:B,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:tb,zero:tr,alt:w,extend:E,compact:tf,separate:tp,filter:M,filterMap:O,partition:C,partitionMap:k,wither:tI,wilt:tR,throwError:tw},nc=(0,i.getApplySemigroup)(Y),nf=(0,r.getApplicativeMonoid)(V),nl=function(){return D((0,p.first)())},np=function(){return D((0,p.last)())}},5586:function(t,n,e){e.r(n),e.d(n,{Contravariant:function(){return s},URI:function(){return l},between:function(){return S},clamp:function(){return R},contramap:function(){return f},equals:function(){return m},equalsDefault:function(){return u},fromCompare:function(){return o},geq:function(){return b},getDualOrd:function(){return x},getMonoid:function(){return d},getSemigroup:function(){return p},getTupleOrd:function(){return T},gt:function(){return g},leq:function(){return y},lt:function(){return v},max:function(){return I},min:function(){return _},ord:function(){return w},ordBoolean:function(){return O},ordDate:function(){return k},ordNumber:function(){return C},ordString:function(){return E},reverse:function(){return c},trivial:function(){return h},tuple:function(){return a}});var r=e(65191),i=e(42275),u=function(t){return function(n,e){return n===e||0===t(n,e)}},o=function(t){return{equals:u(t),compare:function(n,e){return n===e?0:t(n,e)}}},a=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o(function(n,e){for(var r=0;r<t.length-1;r++){var i=t[r].compare(n[r],e[r]);if(0!==i)return i}return t[r].compare(n[r],e[r])})},c=function(t){return o(function(n,e){return t.compare(e,n)})},f=function(t){return function(n){return o(function(e,r){return n.compare(t(e),t(r))})}},l="Ord",p=function(){return{concat:function(t,n){return o(function(e,r){var i=t.compare(e,r);return 0!==i?i:n.compare(e,r)})}}},d=function(){return{concat:p().concat,empty:o(function(){return 0})}},s={URI:l,contramap:function(t,n){return(0,i.pipe)(t,f(n))}},h={equals:i.constTrue,compare:(0,i.constant)(0)},m=function(t){return function(n){return function(e){return e===n||0===t.compare(e,n)}}},v=function(t){return function(n,e){return -1===t.compare(n,e)}},g=function(t){return function(n,e){return 1===t.compare(n,e)}},y=function(t){return function(n,e){return 1!==t.compare(n,e)}},b=function(t){return function(n,e){return -1!==t.compare(n,e)}},_=function(t){return function(n,e){return n===e||1>t.compare(n,e)?n:e}},I=function(t){return function(n,e){return n===e||t.compare(n,e)>-1?n:e}},R=function(t){var n=_(t),e=I(t);return function(t,r){return function(i){return e(n(i,r),t)}}},S=function(t){var n=v(t),e=g(t);return function(t,r){return function(i){return!(n(i,t)||e(i,r))}}},T=a,x=c,w=s,M={equals:r.eqStrict.equals,compare:function(t,n){return t<n?-1:t>n?1:0}},O=M,E=M,C=M,k=(0,i.pipe)(C,f(function(t){return t.valueOf()}))},88491:function(t,n,e){e.r(n),e.d(n,{Contravariant:function(){return l},URI:function(){return u},and:function(){return s},contramap:function(){return i},getMonoidAll:function(){return f},getMonoidAny:function(){return a},getSemigroupAll:function(){return c},getSemigroupAny:function(){return o},not:function(){return p},or:function(){return d}});var r=e(42275),i=function(t){return function(n){return(0,r.flow)(t,n)}},u="Predicate",o=function(){return{concat:function(t,n){return(0,r.pipe)(t,d(n))}}},a=function(){return{concat:o().concat,empty:r.constFalse}},c=function(){return{concat:function(t,n){return(0,r.pipe)(t,s(n))}}},f=function(){return{concat:c().concat,empty:r.constTrue}},l={URI:u,contramap:function(t,n){return(0,r.pipe)(t,i(n))}},p=function(t){return function(n){return!t(n)}},d=function(t){return function(n){return function(e){return n(e)||t(e)}}},s=function(t){return function(n){return function(e){return n(e)&&t(e)}}}},31583:function(t,n,e){e.r(n),e.d(n,{Alt:function(){return nV},Alternative:function(){return nz},Applicative:function(){return nj},Apply:function(){return nU},Chain:function(){return nq},ChainRecBreadthFirst:function(){return n4},ChainRecDepthFirst:function(){return n8},Compactable:function(){return nJ},Do:function(){return es},Extend:function(){return nX},Filterable:function(){return n$},FilterableWithIndex:function(){return nZ},Foldable:function(){return nQ},FoldableWithIndex:function(){return n0},FromEither:function(){return en},Functor:function(){return nF},FunctorWithIndex:function(){return nD},Monad:function(){return nG},Pointed:function(){return nA},Traversable:function(){return n1},TraversableWithIndex:function(){return n2},URI:function(){return nS},Unfoldable:function(){return nY},Witherable:function(){return n6},Zero:function(){return nB},_chainRecBreadthFirst:function(){return tQ},_chainRecDepthFirst:function(){return tZ},alt:function(){return t5},altW:function(){return t2},ap:function(){return t8},apFirst:function(){return nL},apS:function(){return eg},apSecond:function(){return nN},append:function(){return I},appendW:function(){return R},bind:function(){return ev},bindTo:function(){return eh},chain:function(){return ey},chainFirst:function(){return nK},chainRecBreadthFirst:function(){return n3},chainRecDepthFirst:function(){return n5},chainWithIndex:function(){return D},chop:function(){return tI},chunksOf:function(){return tS},compact:function(){return nr},comprehension:function(){return tx},concat:function(){return tM},concatW:function(){return tw},cons:function(){return e_},deleteAt:function(){return ta},difference:function(){return tC},dropLeft:function(){return J},dropLeftWhile:function(){return Z},dropRight:function(){return $},duplicate:function(){return nl},elem:function(){return ty},empty:function(){return ec},every:function(){return ef},exists:function(){return ep},extend:function(){return nf},filter:function(){return nt},filterE:function(){return et},filterMap:function(){return ne},filterMapWithIndex:function(){return nn},filterWithIndex:function(){return nc},findFirst:function(){return tt},findFirstMap:function(){return tn},findIndex:function(){return Q},findLast:function(){return te},findLastIndex:function(){return ti},findLastMap:function(){return tr},flap:function(){return nP},flatMap:function(){return t3},flatten:function(){return t4},foldLeft:function(){return W},foldMap:function(){return ns},foldMapWithIndex:function(){return np},foldRight:function(){return A},fromArray:function(){return ea},fromEither:function(){return M},fromEitherK:function(){return ee},fromOption:function(){return w},fromOptionK:function(){return tT},fromPredicate:function(){return x},getDifferenceMagma:function(){return nW},getEq:function(){return nM},getIntersectionSemigroup:function(){return nk},getMonoid:function(){return nw},getOrd:function(){return nO},getSemigroup:function(){return nx},getShow:function(){return nT},getUnionMonoid:function(){return nC},getUnionSemigroup:function(){return nE},guard:function(){return nH},head:function(){return q},init:function(){return Y},insertAt:function(){return tu},intercalate:function(){return ed},intersection:function(){return tE},intersperse:function(){return tv},isEmpty:function(){return g},isNonEmpty:function(){return y},isOutOfBound:function(){return j},last:function(){return G},lefts:function(){return tp},let:function(){return em},lookup:function(){return function t(n,e){return void 0===e?function(e){return t(n,e)}:j(n,e)?f.YP:f.G(e[n])}},makeBy:function(){return S},map:function(){return t7},mapWithIndex:function(){return t9},match:function(){return E},matchLeft:function(){return k},matchLeftW:function(){return C},matchRight:function(){return P},matchRightW:function(){return F},matchW:function(){return O},modifyAt:function(){return tc},of:function(){return t0},partition:function(){return ni},partitionMap:function(){return no},partitionMapWithIndex:function(){return na},partitionWithIndex:function(){return nu},prepend:function(){return b},prependAll:function(){return tm},prependToAll:function(){return eR},prependW:function(){return _},range:function(){return eb},readonlyArray:function(){return eS},reduce:function(){return nd},reduceRight:function(){return nm},reduceRightWithIndex:function(){return nv},reduceWithIndex:function(){return nh},replicate:function(){return T},reverse:function(){return tf},rights:function(){return tl},rotate:function(){return tg},scanLeft:function(){return U},scanRight:function(){return L},separate:function(){return t6},sequence:function(){return ny},size:function(){return N},snoc:function(){return eI},some:function(){return el},sort:function(){return td},sortBy:function(){return t_},spanLeft:function(){return X},splitAt:function(){return tR},tail:function(){return K},takeLeft:function(){return V},takeLeftWhile:function(){return H},takeRight:function(){return B},toArray:function(){return eo},traverse:function(){return ng},traverseWithIndex:function(){return nb},unfold:function(){return nR},union:function(){return tO},uniq:function(){return tb},unsafeDeleteAt:function(){return eu},unsafeInsertAt:function(){return er},unsafeUpdateAt:function(){return ei},unzip:function(){return th},updateAt:function(){return to},wilt:function(){return nI},wither:function(){return n_},zero:function(){return t1},zip:function(){return function t(n,e){return void 0===e?function(e){return t(e,n)}:ts(n,e,function(t,n){return[t,n]})}},zipWith:function(){return ts}});var r=e(42925),i=e(88543),u=e(65191),o=e(25162),a=e(42275),c=e(67560),f=e(97963),l=e(76627),p=e(5586),d=e(28350),s=e(34219),h=e(76511),m=e(28957),v=function(t,n,e){if(e||2==arguments.length)for(var r,i=0,u=n.length;i<u;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return t.concat(r||Array.prototype.slice.call(n))},g=function(t){return 0===t.length},y=d.isNonEmpty,b=d.prepend,_=d.prependW,I=d.append,R=d.appendW,S=function(t,n){return t<=0?ec:d.makeBy(n)(t)},T=function(t,n){return S(t,function(){return n})};function x(t){return function(n){return t(n)?[n]:ec}}var w=function(t){return f.Wi(t)?ec:[t.value]},M=function(t){return f.nM(t)?ec:[t.right]},O=function(t,n){return function(e){return y(e)?n(e):t()}},E=O,C=function(t,n){return function(e){return y(e)?n(d.head(e),d.tail(e)):t()}},k=C,W=k,F=function(t,n){return function(e){return y(e)?n(d.init(e),d.last(e)):t()}},P=F,A=P,D=function(t){return function(n){if(g(n))return ec;for(var e=[],r=0;r<n.length;r++)e.push.apply(e,t(r,n[r]));return e}},U=function(t,n){return function(e){var r=e.length,i=Array(r+1);i[0]=t;for(var u=0;u<r;u++)i[u+1]=n(i[u],e[u]);return i}},L=function(t,n){return function(e){var r=e.length,i=Array(r+1);i[r]=t;for(var u=r-1;u>=0;u--)i[u]=n(e[u],i[u+1]);return i}},N=function(t){return t.length},j=d.isOutOfBound,q=function(t){return y(t)?f.G(d.head(t)):f.YP},G=function(t){return y(t)?f.G(d.last(t)):f.YP},K=function(t){return y(t)?f.G(d.tail(t)):f.YP},Y=function(t){return y(t)?f.G(d.init(t)):f.YP},V=function(t){return function(n){return j(t,n)?n:0===t?ec:n.slice(0,t)}},B=function(t){return function(n){return j(t,n)?n:0===t?ec:n.slice(-t)}};function H(t){return function(n){for(var e=[],r=0;r<n.length;r++){var i=n[r];if(!t(i))break;e.push(i)}var u=e.length;return u===n.length?n:0===u?ec:e}}var z=function(t,n){for(var e=t.length,r=0;r<e&&n(t[r]);r++);return r};function X(t){return function(n){var e=tR(z(n,t))(n);return{init:e[0],rest:e[1]}}}var J=function(t){return function(n){return t<=0||g(n)?n:t>=n.length?ec:n.slice(t,n.length)}},$=function(t){return function(n){return t<=0||g(n)?n:t>=n.length?ec:n.slice(0,n.length-t)}};function Z(t){return function(n){var e=z(n,t);return 0===e?n:e===n.length?ec:n.slice(e)}}var Q=function(t){return function(n){for(var e=0;e<n.length;e++)if(t(n[e]))return f.G(e);return f.YP}};function tt(t){return function(n){for(var e=0;e<n.length;e++)if(t(n[e]))return f.G(n[e]);return f.YP}}var tn=function(t){return function(n){for(var e=0;e<n.length;e++){var r=t(n[e]);if(f.pC(r))return r}return f.YP}};function te(t){return function(n){for(var e=n.length-1;e>=0;e--)if(t(n[e]))return f.G(n[e]);return f.YP}}var tr=function(t){return function(n){for(var e=n.length-1;e>=0;e--){var r=t(n[e]);if(f.pC(r))return r}return f.YP}},ti=function(t){return function(n){for(var e=n.length-1;e>=0;e--)if(t(n[e]))return f.G(e);return f.YP}},tu=function(t,n){return function(e){return t<0||t>e.length?f.YP:f.G(d.unsafeInsertAt(t,n,e))}},to=function(t,n){return tc(t,function(){return n})},ta=function(t){return function(n){return j(t,n)?f.YP:f.G(eu(t,n))}},tc=function(t,n){return function(e){return j(t,e)?f.YP:f.G(ei(t,n(e[t]),e))}},tf=function(t){return t.length<=1?t:t.slice().reverse()},tl=function(t){for(var n=[],e=0;e<t.length;e++){var r=t[e];"Right"===r._tag&&n.push(r.right)}return n},tp=function(t){for(var n=[],e=0;e<t.length;e++){var r=t[e];"Left"===r._tag&&n.push(r.left)}return n},td=function(t){return function(n){return n.length<=1?n:n.slice().sort(t.compare)}},ts=function(t,n,e){for(var r=[],i=Math.min(t.length,n.length),u=0;u<i;u++)r[u]=e(t[u],n[u]);return r},th=function(t){for(var n=[],e=[],r=0;r<t.length;r++)n[r]=t[r][0],e[r]=t[r][1];return[n,e]},tm=function(t){var n=d.prependAll(t);return function(t){return y(t)?n(t):t}},tv=function(t){var n=d.intersperse(t);return function(t){return y(t)?n(t):t}},tg=function(t){var n=d.rotate(t);return function(t){return y(t)?n(t):t}};function ty(t){return function(n,e){if(void 0===e){var r,i=ty(t);return function(t){return i(n,t)}}for(var u=0;u<e.length;u++)if(r=e[u],t.equals(r,n))return!0;return!1}}var tb=function(t){var n=d.uniq(t);return function(t){return y(t)?n(t):t}},t_=function(t){var n=d.sortBy(t);return function(t){return y(t)?n(t):t}},tI=function(t){var n=d.chop(t);return function(t){return y(t)?n(t):ec}},tR=function(t){return function(n){return t>=1&&y(n)?d.splitAt(t)(n):g(n)?[n,ec]:[ec,n]}},tS=function(t){var n=d.chunksOf(t);return function(t){return y(t)?n(t):ec}},tT=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return w(t.apply(void 0,n))}};function tx(t,n,e){void 0===e&&(e=function(){return!0});var r=function(t,i){return y(i)?t3(d.head(i),function(n){return r((0,a.pipe)(t,I(n)),d.tail(i))}):e.apply(void 0,t)?[n.apply(void 0,t)]:ec};return r(ec,t)}var tw=function(t){return function(n){return g(n)?t:g(t)?n:n.concat(t)}},tM=tw;function tO(t){var n=d.union(t);return function(e,r){if(void 0===r){var i=tO(t);return function(t){return i(t,e)}}return y(e)&&y(r)?n(r)(e):y(e)?e:r}}function tE(t){var n=ty(t);return function(e,r){if(void 0===r){var i=tE(t);return function(t){return i(t,e)}}return e.filter(function(t){return n(t,r)})}}function tC(t){var n=ty(t);return function(e,r){if(void 0===r){var i=tC(t);return function(t){return i(t,e)}}return e.filter(function(t){return!n(t,r)})}}var tk=function(t,n){return(0,a.pipe)(t,t7(n))},tW=function(t,n){return(0,a.pipe)(t,t9(n))},tF=function(t,n){return(0,a.pipe)(t,t8(n))},tP=function(t,n){return(0,a.pipe)(t,nt(n))},tA=function(t,n){return(0,a.pipe)(t,ne(n))},tD=function(t,n){return(0,a.pipe)(t,ni(n))},tU=function(t,n){return(0,a.pipe)(t,no(n))},tL=function(t,n){return(0,a.pipe)(t,nu(n))},tN=function(t,n){return(0,a.pipe)(t,na(n))},tj=function(t,n){return(0,a.pipe)(t,t5(n))},tq=function(t,n,e){return(0,a.pipe)(t,nd(n,e))},tG=function(t){var n=ns(t);return function(t,e){return(0,a.pipe)(t,n(e))}},tK=function(t,n,e){return(0,a.pipe)(t,nm(n,e))},tY=function(t,n,e){return(0,a.pipe)(t,nh(n,e))},tV=function(t){var n=np(t);return function(t,e){return(0,a.pipe)(t,n(e))}},tB=function(t,n,e){return(0,a.pipe)(t,nv(n,e))},tH=function(t,n){return(0,a.pipe)(t,nn(n))},tz=function(t,n){return(0,a.pipe)(t,nc(n))},tX=function(t,n){return(0,a.pipe)(t,nf(n))},tJ=function(t){var n=ng(t);return function(t,e){return(0,a.pipe)(t,n(e))}},t$=function(t){var n=nb(t);return function(t,e){return(0,a.pipe)(t,n(e))}},tZ=function(t,n){return(0,a.pipe)(t,n5(n))},tQ=function(t,n){return(0,a.pipe)(t,n3(n))},t0=d.of,t1=function(){return ec},t2=function(t){return function(n){return n.concat(t())}},t5=t2,t8=function(t){return t3(function(n){return(0,a.pipe)(t,t7(n))})},t3=(0,a.dual)(2,function(t,n){return(0,a.pipe)(t,D(function(t,e){return n(e,t)}))}),t4=t3(a.identity),t7=function(t){return function(n){return n.map(function(n){return t(n)})}},t9=function(t){return function(n){return n.map(function(n,e){return t(e,n)})}},t6=function(t){for(var n=[],e=[],r=0;r<t.length;r++){var i=t[r];"Left"===i._tag?n.push(i.left):e.push(i.right)}return(0,s.separated)(n,e)},nt=function(t){return function(n){return n.filter(t)}},nn=function(t){return function(n){for(var e=[],r=0;r<n.length;r++){var i=t(r,n[r]);f.pC(i)&&e.push(i.value)}return e}},ne=function(t){return nn(function(n,e){return t(e)})},nr=ne(a.identity),ni=function(t){return nu(function(n,e){return t(e)})},nu=function(t){return function(n){for(var e=[],r=[],i=0;i<n.length;i++){var u=n[i];t(i,u)?r.push(u):e.push(u)}return(0,s.separated)(e,r)}},no=function(t){return na(function(n,e){return t(e)})},na=function(t){return function(n){for(var e=[],r=[],i=0;i<n.length;i++){var u=t(i,n[i]);"Left"===u._tag?e.push(u.left):r.push(u.right)}return(0,s.separated)(e,r)}},nc=function(t){return function(n){return n.filter(function(n,e){return t(e,n)})}},nf=function(t){return function(n){return n.map(function(e,r){return t(n.slice(r))})}},nl=nf(a.identity),np=function(t){return function(n){return function(e){return e.reduce(function(e,r,i){return t.concat(e,n(i,r))},t.empty)}}},nd=function(t,n){return nh(t,function(t,e,r){return n(e,r)})},ns=function(t){var n=np(t);return function(t){return n(function(n,e){return t(e)})}},nh=function(t,n){return function(e){for(var r=e.length,i=t,u=0;u<r;u++)i=n(u,i,e[u]);return i}},nm=function(t,n){return nv(t,function(t,e,r){return n(e,r)})},nv=function(t,n){return function(e){return e.reduceRight(function(t,e,r){return n(r,e,t)},t)}},ng=function(t){var n=nb(t);return function(t){return n(function(n,e){return t(e)})}},ny=function(t){return function(n){return tq(n,t.of(t1()),function(n,e){return t.ap(t.map(n,function(t){return function(n){return(0,a.pipe)(t,I(n))}}),e)})}},nb=function(t){return function(n){return nh(t.of(t1()),function(e,r,i){return t.ap(t.map(r,function(t){return function(n){return(0,a.pipe)(t,I(n))}}),n(e,i))})}},n_=function(t){var n=n7(t);return function(t){return function(e){return n(e,t)}}},nI=function(t){var n=n9(t);return function(t){return function(e){return n(e,t)}}},nR=function(t,n){for(var e=[],r=t;;){var i=n(r);if(f.pC(i)){var u=i.value,o=u[0],a=u[1];e.push(o),r=a}else break}return e},nS="ReadonlyArray",nT=function(t){return{show:function(n){return"[".concat(n.map(t.show).join(", "),"]")}}},nx=function(){return{concat:function(t,n){return g(t)?n:g(n)?t:t.concat(n)}}},nw=function(){return{concat:nx().concat,empty:ec}},nM=function(t){return(0,u.fromEquals)(function(n,e){return n.length===e.length&&n.every(function(n,r){return t.equals(n,e[r])})})},nO=function(t){return(0,p.fromCompare)(function(n,e){for(var r=n.length,i=e.length,u=Math.min(r,i),o=0;o<u;o++){var a=t.compare(n[o],e[o]);if(0!==a)return a}return l.Ord.compare(r,i)})},nE=function(t){var n=tO(t);return{concat:function(t,e){return n(e)(t)}}},nC=function(t){return{concat:nE(t).concat,empty:ec}},nk=function(t){var n=tE(t);return{concat:function(t,e){return n(e)(t)}}},nW=function(t){var n=tC(t);return{concat:function(t,e){return n(e)(t)}}},nF={URI:nS,map:tk},nP=(0,c.flap)(nF),nA={URI:nS,of:t0},nD={URI:nS,map:tk,mapWithIndex:tW},nU={URI:nS,map:tk,ap:tF},nL=(0,r.apFirst)(nU),nN=(0,r.apSecond)(nU),nj={URI:nS,map:tk,ap:tF,of:t0},nq={URI:nS,map:tk,ap:tF,chain:t3},nG={URI:nS,map:tk,ap:tF,of:t0,chain:t3},nK=(0,i.chainFirst)(nq),nY={URI:nS,unfold:nR},nV={URI:nS,map:tk,alt:tj},nB={URI:nS,zero:t1},nH=(0,m.guard)(nB,nA),nz={URI:nS,map:tk,ap:tF,of:t0,alt:tj,zero:t1},nX={URI:nS,map:tk,extend:tX},nJ={URI:nS,compact:nr,separate:t6},n$={URI:nS,map:tk,compact:nr,separate:t6,filter:tP,filterMap:tA,partition:tD,partitionMap:tU},nZ={URI:nS,map:tk,mapWithIndex:tW,compact:nr,separate:t6,filter:tP,filterMap:tA,partition:tD,partitionMap:tU,partitionMapWithIndex:tN,partitionWithIndex:tL,filterMapWithIndex:tH,filterWithIndex:tz},nQ={URI:nS,reduce:tq,foldMap:tG,reduceRight:tK},n0={URI:nS,reduce:tq,foldMap:tG,reduceRight:tK,reduceWithIndex:tY,foldMapWithIndex:tV,reduceRightWithIndex:tB},n1={URI:nS,map:tk,reduce:tq,foldMap:tG,reduceRight:tK,traverse:tJ,sequence:ny},n2={URI:nS,map:tk,mapWithIndex:tW,reduce:tq,foldMap:tG,reduceRight:tK,reduceWithIndex:tY,foldMapWithIndex:tV,reduceRightWithIndex:tB,traverse:tJ,sequence:ny,traverseWithIndex:t$},n5=function(t){return function(n){for(var e=v([],t(n),!0),r=[];e.length>0;){var i=e.shift();f.nM(i)?e.unshift.apply(e,t(i.left)):r.push(i.right)}return r}},n8={URI:nS,map:tk,ap:tF,chain:t3,chainRec:tZ},n3=function(t){return function(n){var e=t(n),r=[],i=[];function u(n){f.nM(n)?t(n.left).forEach(function(t){return r.push(t)}):i.push(n.right)}for(var o=0;o<e.length;o++)u(e[o]);for(;r.length>0;)u(r.shift());return i}},n4={URI:nS,map:tk,ap:tF,chain:t3,chainRec:tQ},n7=(0,h.witherDefault)(n1,nJ),n9=(0,h.wiltDefault)(n1,nJ),n6={URI:nS,map:tk,compact:nr,separate:t6,filter:tP,filterMap:tA,partition:tD,partitionMap:tU,reduce:tq,foldMap:tG,reduceRight:tK,traverse:tJ,sequence:ny,wither:n7,wilt:n9},et=(0,h.filterE)(n6),en={URI:nS,fromEither:M},ee=(0,o.fromEitherK)(en),er=d.unsafeInsertAt,ei=function(t,n,e){return y(e)?d.unsafeUpdateAt(t,n,e):e},eu=function(t,n){var e=n.slice();return e.splice(t,1),e},eo=function(t){return t.slice()},ea=function(t){return g(t)?ec:t.slice()},ec=d.empty;function ef(t){return function(n){return n.every(t)}}var el=function(t){return function(n){return n.some(t)}},ep=el,ed=function(t){var n=d.intercalate(t);return function(e){return E(function(){return t.empty},n(e))}},es=t0(f.F4),eh=(0,c.bindTo)(nF),em=(0,c.let)(nF),ev=(0,i.bind)(nq),eg=(0,r.apS)(nU),ey=t3,eb=d.range,e_=d.cons,eI=d.snoc,eR=tm,eS={URI:nS,compact:nr,separate:t6,map:tk,ap:tF,of:t0,chain:t3,filter:tP,filterMap:tA,partition:tD,partitionMap:tU,mapWithIndex:tW,partitionMapWithIndex:tN,partitionWithIndex:tL,filterMapWithIndex:tH,filterWithIndex:tz,alt:tj,zero:t1,unfold:nR,reduce:tq,foldMap:tG,reduceRight:tK,traverse:tJ,sequence:ny,reduceWithIndex:tY,foldMapWithIndex:tV,reduceRightWithIndex:tB,traverseWithIndex:t$,extend:tX,wither:n7,wilt:n9}},13512:function(t,n,e){e.r(n),e.d(n,{Compactable:function(){return tp},Filterable:function(){return td},Functor:function(){return tc},URI:function(){return te},collect:function(){return y},compact:function(){return z},deleteAt:function(){return R},difference:function(){return tw},elem:function(){return function t(n){return function(e,r){if(void 0===r){var i,u=t(n);return function(t){return u(e,t)}}for(var o=r.values();!(i=o.next()).done;){var a=i.value;if(n.equals(e,a))return!0}return!1}}},empty:function(){return E},filter:function(){return X},filterMap:function(){return J},filterMapWithIndex:function(){return U},filterWithIndex:function(){return L},flap:function(){return tf},foldMap:function(){return th},foldMapWithIndex:function(){return ty},fromFoldable:function(){return F},fromMap:function(){return l},getDifferenceMagma:function(){return to},getEq:function(){return C},getFilterableWithIndex:function(){return ta},getFoldable:function(){return tv},getFoldableWithIndex:function(){return t_},getFunctorWithIndex:function(){return tl},getIntersectionSemigroup:function(){return tu},getMonoid:function(){return k},getShow:function(){return d},getTraversable:function(){return tI},getTraversableWithIndex:function(){return tR},getUnionMonoid:function(){return ti},getUnionSemigroup:function(){return tr},getWitherable:function(){return tS},insertAt:function(){return tM},intersection:function(){return tx},isEmpty:function(){return h},isSubmap:function(){return O},keys:function(){return v},lookup:function(){return M},lookupWithKey:function(){return w},map:function(){return $},mapWithIndex:function(){return Z},member:function(){return m},modifyAt:function(){return T},partition:function(){return Q},partitionMap:function(){return tt},partitionMapWithIndex:function(){return A},partitionWithIndex:function(){return D},pop:function(){return x},readonlyMap:function(){return tO},reduce:function(){return ts},reduceRight:function(){return tm},reduceRightWithIndex:function(){return tb},reduceWithIndex:function(){return tg},separate:function(){return tn},singleton:function(){return W},size:function(){return s},toMap:function(){return p},toReadonlyArray:function(){return b},toUnfoldable:function(){return _},union:function(){return tT},updateAt:function(){return S},upsertAt:function(){return I},values:function(){return g}});var r=e(65191),i=e(42275),u=e(67560),o=e(97963),a=e(20492),c=e(34219),f=e(76511),l=function(t){return new Map(t)};function p(t){return new Map(t)}function d(t,n){return{show:function(e){var r=[];return e.forEach(function(e,i){r.push("[".concat(t.show(i),", ").concat(n.show(e),"]"))}),"new Map([".concat(r.sort().join(", "),"])")}}}var s=function(t){return t.size},h=function(t){return 0===t.size};function m(t){var n=M(t);return function(e,r){if(void 0===r){var i=m(t);return function(t){return i(e,t)}}return o.pC(n(e,r))}}var v=function(t){return function(n){return Array.from(n.keys()).sort(t.compare)}},g=function(t){return function(n){return Array.from(n.values()).sort(t.compare)}};function y(t){var n=v(t);return function(t){return function(e){for(var r=[],i=n(e),u=0;u<i.length;u++){var o=i[u];r.push(t(o,e.get(o)))}return r}}}var b=function(t){return y(t)(function(t,n){return[t,n]})};function _(t,n){var e=b(t);return function(t){var r=e(t),i=r.length;return n.unfold(0,function(t){return t<i?o.G([r[t],t+1]):o.YP})}}var I=function(t){var n=w(t);return function(t,e){var r=n(t);return function(n){var i=r(n);if(o.Wi(i)){var u=new Map(n);return u.set(t,e),u}if(i.value[1]!==e){var u=new Map(n);return u.set(i.value[0],e),u}return n}}},R=function(t){var n=w(t);return function(t){return function(e){var r=n(t,e);if(o.pC(r)){var i=new Map(e);return i.delete(r.value[0]),i}return e}}},S=function(t){var n=T(t);return function(t,e){return n(t,function(){return e})}},T=function(t){var n=w(t);return function(t,e){return function(r){var i=n(t,r);if(o.Wi(i))return o.YP;var u=i.value,a=u[0],c=u[1],f=e(c);if(f===c)return o.G(r);var l=new Map(r);return l.set(a,f),o.G(l)}}};function x(t){var n=M(t),e=R(t);return function(t){var r=e(t);return function(e){return(0,i.pipe)(n(t,e),a.map(function(t){return[t,r(e)]}))}}}function w(t){return function(n,e){if(void 0===e){var r,i=w(t);return function(t){return i(n,t)}}for(var u=e.entries();!(r=u.next()).done;){var a=r.value,c=a[0],f=a[1];if(t.equals(c,n))return o.G([c,f])}return o.YP}}function M(t){var n=w(t);return function(e,r){if(void 0===r){var u=M(t);return function(t){return u(e,t)}}return(0,i.pipe)(n(e,r),a.map(function(t){return t[0],t[1]}))}}function O(t,n){var e=w(t);return function(r,i){if(void 0===i){var u,a=O(t,n);return function(t){return a(t,r)}}for(var c=r.entries();!(u=c.next()).done;){var f=u.value,l=f[0],p=f[1],d=e(l,i);if(o.Wi(d)||!t.equals(l,d.value[0])||!n.equals(p,d.value[1]))return!1}return!0}}var E=new Map;function C(t,n){var e=O(t,n);return(0,r.fromEquals)(function(t,n){return e(t,n)&&e(n,t)})}function k(t,n){var e=w(t);return{concat:function(t,r){if(h(t))return r;if(h(r))return t;for(var i,u=new Map(t),a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=e(f,t);o.pC(p)?u.set(p.value[0],n.concat(p.value[1],l)):u.set(f,l)}return u},empty:E}}var W=function(t,n){return new Map([[t,n]])};function F(t,n,e){return function(r){var i=w(t);return e.reduce(r,new Map,function(t,e){var r=e[0],u=e[1],a=i(r,t);return o.pC(a)?t.set(a.value[0],n.concat(a.value[1],u)):t.set(r,u),t})}}var P=function(t,n){for(var e,r=new Map,i=t.entries();!(e=i.next()).done;){var u=e.value,o=u[0],a=u[1];r.set(o,n(o,a))}return r},A=function(t){return function(n){for(var e,r=new Map,i=new Map,u=n.entries();!(e=u.next()).done;){var a=e.value,f=a[0],l=t(f,a[1]);o.nM(l)?r.set(f,l.left):i.set(f,l.right)}return(0,c.separated)(r,i)}};function D(t){return function(n){for(var e,r=new Map,i=new Map,u=n.entries();!(e=u.next()).done;){var o=e.value,a=o[0],f=o[1];t(a,f)?i.set(a,f):r.set(a,f)}return(0,c.separated)(r,i)}}var U=function(t){return function(n){for(var e,r=new Map,i=n.entries();!(e=i.next()).done;){var u=e.value,a=u[0],c=t(a,u[1]);o.pC(c)&&r.set(a,c.value)}return r}};function L(t){return function(n){for(var e,r=new Map,i=n.entries();!(e=i.next()).done;){var u=e.value,o=u[0],a=u[1];t(o,a)&&r.set(o,a)}return r}}var N=function(t,n){return P(t,function(t,e){return n(e)})},j=function(t,n){return Y(t,function(t,e){return n(e)})},q=function(t,n){return V(t,function(t,e){return n(e)})},G=function(t,n){return B(t,function(t,e){return n(e)})},K=function(t,n){return H(t,function(t,e){return n(e)})},Y=function(t,n){return(0,i.pipe)(t,L(n))},V=function(t,n){return(0,i.pipe)(t,U(n))},B=function(t,n){return(0,i.pipe)(t,D(n))},H=function(t,n){return(0,i.pipe)(t,A(n))},z=function(t){for(var n,e=new Map,r=t.entries();!(n=r.next()).done;){var i=n.value,u=i[0],a=i[1];o.pC(a)&&e.set(u,a.value)}return e},X=function(t){return function(n){return j(n,t)}},J=function(t){return function(n){return q(n,t)}},$=function(t){return function(n){return N(n,t)}},Z=function(t){return function(n){return P(n,t)}},Q=function(t){return function(n){return G(n,t)}},tt=function(t){return function(n){return K(n,t)}},tn=function(t){for(var n,e=new Map,r=new Map,i=t.entries();!(n=i.next()).done;){var u=n.value,a=u[0],f=u[1];o.nM(f)?e.set(a,f.left):r.set(a,f.right)}return(0,c.separated)(e,r)},te="ReadonlyMap",tr=function(t,n){var e=tT(t,n);return{concat:function(t,n){return e(n)(t)}}},ti=function(t,n){return{concat:tr(t,n).concat,empty:E}},tu=function(t,n){var e=tx(t,n);return{concat:function(t,n){return e(n)(t)}}},to=function(t){return function(){var n=tw(t);return{concat:function(t,e){return n(e)(t)}}}};function ta(){return{URI:te,_E:void 0,map:N,mapWithIndex:P,compact:z,separate:tn,filter:j,filterMap:q,partition:G,partitionMap:K,partitionMapWithIndex:H,partitionWithIndex:B,filterMapWithIndex:V,filterWithIndex:Y}}var tc={URI:te,map:N},tf=(0,u.flap)(tc),tl=function(){return{URI:te,_E:void 0,map:N,mapWithIndex:P}},tp={URI:te,compact:z,separate:tn},td={URI:te,map:N,compact:z,separate:tn,filter:j,filterMap:q,partition:G,partitionMap:K},ts=function(t){var n=tg(t);return function(t,e){return n(t,function(t,n,r){return e(n,r)})}},th=function(t){var n=ty(t);return function(t){var e=n(t);return function(t){return e(function(n,e){return t(e)})}}},tm=function(t){var n=tb(t);return function(t,e){return n(t,function(t,n,r){return e(n,r)})}},tv=function(t){var n=ts(t),e=th(t),r=tm(t);return{URI:te,_E:void 0,reduce:function(t,e,r){return(0,i.pipe)(t,n(e,r))},foldMap:function(t){var n=e(t);return function(t,e){return(0,i.pipe)(t,n(e))}},reduceRight:function(t,n,e){return(0,i.pipe)(t,r(n,e))}}},tg=function(t){var n=v(t);return function(t,e){return function(r){for(var i=t,u=0,o=n(r);u<o.length;u++){var a=o[u];i=e(a,i,r.get(a))}return i}}},ty=function(t){var n=v(t);return function(t){return function(e){return function(r){for(var i=t.empty,u=0,o=n(r);u<o.length;u++){var a=o[u];i=t.concat(i,e(a,r.get(a)))}return i}}}},tb=function(t){var n=v(t);return function(t,e){return function(r){for(var i=t,u=n(r),o=u.length,a=o-1;a>=0;a--){var c=u[a];i=e(c,r.get(c),i)}return i}}},t_=function(t){var n=tv(t),e=tg(t),r=ty(t),u=tb(t);return{URI:te,_E:void 0,reduce:n.reduce,foldMap:n.foldMap,reduceRight:n.reduceRight,reduceWithIndex:function(t,n,r){return(0,i.pipe)(t,e(n,r))},foldMapWithIndex:function(t){var n=r(t);return function(t,e){return(0,i.pipe)(t,n(e))}},reduceRightWithIndex:function(t,n,e){return(0,i.pipe)(t,u(n,e))}}},tI=function(t){var n=tR(t),e=tv(t);return{URI:te,_E:void 0,map:N,reduce:e.reduce,foldMap:e.foldMap,reduceRight:e.reduceRight,traverse:n.traverse,sequence:n.sequence}},tR=function(t){var n=t_(t),e=v(t),r=function(t){return function(n,r){for(var i=t.of(new Map),u=e(n),o=u.length,a=0;a<o;a++)!function(e){var o=u[e],a=n.get(o);i=t.ap(t.map(i,function(t){return function(n){return t.set(o,n)}}),r(o,a))}(a);return i}};return{URI:te,_E:void 0,map:N,mapWithIndex:P,reduce:n.reduce,foldMap:n.foldMap,reduceRight:n.reduceRight,reduceWithIndex:n.reduceWithIndex,foldMapWithIndex:n.foldMapWithIndex,reduceRightWithIndex:n.reduceRightWithIndex,traverse:function(t){var n=r(t);return function(t,e){return n(t,function(t,n){return e(n)})}},sequence:function(t){var n=r(t);return function(t){return n(t,i.SK)}},traverseWithIndex:r}};function tS(t){var n=tR(t);return{URI:te,_E:void 0,map:N,compact:z,separate:tn,filter:j,filterMap:q,partition:G,partitionMap:K,reduce:n.reduce,foldMap:n.foldMap,reduceRight:n.reduceRight,traverse:n.traverse,sequence:n.sequence,mapWithIndex:P,reduceWithIndex:n.reduceWithIndex,foldMapWithIndex:n.foldMapWithIndex,reduceRightWithIndex:n.reduceRightWithIndex,traverseWithIndex:n.traverseWithIndex,wilt:(0,f.wiltDefault)(n,tp),wither:(0,f.witherDefault)(n,tp)}}var tT=function(t,n){var e=M(t);return function(t){return function(r){if(h(r))return t;if(h(t))return r;for(var i,u=new Map,a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=e(f)(t);o.pC(p)?u.set(f,n.concat(l,p.value)):u.set(f,l)}for(var d=t.entries();!(i=d.next()).done;){var s=i.value,f=s[0],l=s[1],p=e(f)(u);o.Wi(p)&&u.set(f,l)}return u}}},tx=function(t,n){var e=M(t);return function(t){return function(r){if(h(r)||h(t))return E;for(var i,u=new Map,a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=e(f)(t);o.pC(p)&&u.set(f,n.concat(l,p.value))}return u}}},tw=function(t){var n=m(t);return function(t){return function(e){if(h(e))return t;if(h(t))return e;for(var r,i=new Map,u=e.entries();!(r=u.next()).done;){var o=r.value,a=o[0],c=o[1];n(a)(t)||i.set(a,c)}for(var f=t.entries();!(r=f.next()).done;){var l=r.value,a=l[0],c=l[1];n(a)(e)||i.set(a,c)}return i}}},tM=I,tO={URI:te,map:N,compact:z,separate:tn,filter:j,filterMap:q,partition:G,partitionMap:K}},28350:function(t,n,e){e.r(n),e.d(n,{Alt:function(){return tH},Applicative:function(){return tN},Apply:function(){return tD},Chain:function(){return tj},Comonad:function(){return tz},Do:function(){return tX},Foldable:function(){return tK},FoldableWithIndex:function(){return tY},Functor:function(){return tW},FunctorWithIndex:function(){return tA},Monad:function(){return tG},Pointed:function(){return tP},Traversable:function(){return tV},TraversableWithIndex:function(){return tB},URI:function(){return tM},alt:function(){return tf},altW:function(){return tc},ap:function(){return tl},apFirst:function(){return tU},apS:function(){return tQ},apSecond:function(){return tL},append:function(){return y},appendW:function(){return g},bind:function(){return tZ},bindTo:function(){return tJ},chain:function(){return ni},chainFirst:function(){return tq},chainWithIndex:function(){return Y},chop:function(){return V},chunksOf:function(){return H},concat:function(){return F},concatAll:function(){return t4},concatW:function(){return W},cons:function(){return nl},duplicate:function(){return ts},empty:function(){return d},extend:function(){return td},extract:function(){return tw},filter:function(){return no},filterWithIndex:function(){return na},flap:function(){return tF},flatMap:function(){return tp},flatten:function(){return th},fold:function(){return nh},foldMap:function(){return ty},foldMapWithIndex:function(){return tI},fromArray:function(){return k},fromReadonlyArray:function(){return x},getEq:function(){return tC},getSemigroup:function(){return tE},getShow:function(){return tO},getUnionSemigroup:function(){return tk},group:function(){return A},groupBy:function(){return D},groupSort:function(){return nu},head:function(){return t0},init:function(){return t5},insertAt:function(){return nd},intercalate:function(){return nr},intersperse:function(){return K},isNonEmpty:function(){return s},isOutOfBound:function(){return h},last:function(){return t2},let:function(){return t$},makeBy:function(){return w},map:function(){return tm},mapWithIndex:function(){return tv},matchLeft:function(){return t7},matchRight:function(){return t9},max:function(){return t3},min:function(){return t8},modifyAt:function(){return N},modifyHead:function(){return t6},modifyLast:function(){return nn},of:function(){return ta},prepend:function(){return v},prependAll:function(){return G},prependToAll:function(){return ns},prependW:function(){return m},range:function(){return O},readonlyNonEmptyArray:function(){return nm},reduce:function(){return tg},reduceRight:function(){return tb},reduceRightWithIndex:function(){return tR},reduceWithIndex:function(){return t_},replicate:function(){return M},reverse:function(){return P},rotate:function(){return T},sequence:function(){return tT},snoc:function(){return np},sort:function(){return U},sortBy:function(){return R},splitAt:function(){return B},tail:function(){return t1},traverse:function(){return tS},traverseWithIndex:function(){return tx},unappend:function(){return C},uncons:function(){return nc},union:function(){return S},uniq:function(){return I},unprepend:function(){return E},unsafeInsertAt:function(){return b},unsafeUpdateAt:function(){return _},unsnoc:function(){return nf},unzip:function(){return q},updateAt:function(){return L},updateHead:function(){return nt},updateLast:function(){return ne},zip:function(){return function t(n,e){return void 0===e?function(e){return t(e,n)}:j(n,e,function(t,n){return[t,n]})}},zipWith:function(){return j}});var r=e(42925),i=e(88543),u=e(65191),o=e(42275),a=e(67560),c=e(97963),f=e(5586),l=e(3291),p=function(t,n,e){if(e||2==arguments.length)for(var r,i=0,u=n.length;i<u;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return t.concat(r||Array.prototype.slice.call(n))},d=c.Xl,s=c.Od,h=function(t,n){return t<0||t>=n.length},m=function(t){return function(n){return p([t],n,!0)}},v=m,g=function(t){return function(n){return p(p([],n,!0),[t],!1)}},y=g,b=function(t,n,e){if(s(e)){var r=c.r1(e);return r.splice(t,0,n),r}return[n]},_=function(t,n,e){if(e[t]===n)return e;var r=c.r1(e);return r[t]=n,r},I=function(t){return function(n){if(1===n.length)return n;for(var e=[t0(n)],r=t1(n),i=function(n){e.every(function(e){return!t.equals(e,n)})&&e.push(n)},u=0;u<r.length;u++)i(r[u]);return e}},R=function(t){if(s(t)){var n=(0,f.getMonoid)();return U(t.reduce(n.concat,n.empty))}return o.identity},S=function(t){var n=I(t);return function(t){return function(e){return n((0,o.pipe)(e,F(t)))}}},T=function(t){return function(n){var e=n.length,r=Math.round(t)%e;if(h(Math.abs(r),n)||0===r)return n;if(!(r<0))return T(r-e)(n);var i=B(-r)(n),u=i[0],a=i[1];return(0,o.pipe)(a,F(u))}},x=function(t){return s(t)?c.G(t):c.YP},w=function(t){return function(n){for(var e=Math.max(0,Math.floor(n)),r=[t(0)],i=1;i<e;i++)r.push(t(i));return r}},M=function(t){return w(function(){return t})},O=function(t,n){return t<=n?w(function(n){return t+n})(n-t+1):[t]},E=function(t){return[t0(t),t1(t)]},C=function(t){return[t5(t),t2(t)]},k=function(t){return x(t.slice())};function W(t){return function(n){return n.concat(t)}}function F(t,n){return n?t.concat(n):function(n){return n.concat(t)}}var P=function(t){return 1===t.length?t:p([t2(t)],t.slice(0,-1).reverse(),!0)};function A(t){return function(n){var e=n.length;if(0===e)return d;for(var r=[],i=n[0],u=[i],o=1;o<e;o++){var a=n[o];t.equals(a,i)?u.push(a):(r.push(u),u=[i=a])}return r.push(u),r}}var D=function(t){return function(n){for(var e={},r=0;r<n.length;r++){var i=n[r],u=t(i);c.e$.call(e,u)?e[u].push(i):e[u]=[i]}return e}},U=function(t){return function(n){return 1===n.length?n:n.slice().sort(t.compare)}},L=function(t,n){return N(t,function(){return n})},N=function(t,n){return function(e){return h(t,e)?c.YP:c.G(_(t,n(e[t]),e))}},j=function(t,n,e){for(var r=[e(t[0],n[0])],i=Math.min(t.length,n.length),u=1;u<i;u++)r[u]=e(t[u],n[u]);return r},q=function(t){for(var n=[t[0][0]],e=[t[0][1]],r=1;r<t.length;r++)n[r]=t[r][0],e[r]=t[r][1];return[n,e]},G=function(t){return function(n){for(var e=[t,n[0]],r=1;r<n.length;r++)e.push(t,n[r]);return e}},K=function(t){return function(n){var e=t1(n);return s(e)?(0,o.pipe)(e,G(t),v(t0(n))):n}},Y=function(t){return function(n){for(var e=c.r1(t(0,t0(n))),r=1;r<n.length;r++)e.push.apply(e,t(r,n[r]));return e}},V=function(t){return function(n){for(var e=t(n),r=e[0],i=e[1],u=[r],o=i;s(o);){var a=t(o),c=a[0],f=a[1];u.push(c),o=f}return u}},B=function(t){return function(n){var e=Math.max(1,t);return e>=n.length?[n,d]:[(0,o.pipe)(n.slice(1,e),v(t0(n))),n.slice(e)]}},H=function(t){return V(B(t))},z=function(t,n){return(0,o.pipe)(t,tm(n))},X=function(t,n){return(0,o.pipe)(t,tv(n))},J=function(t,n){return(0,o.pipe)(t,tl(n))},$=function(t,n){return(0,o.pipe)(t,td(n))},Z=function(t,n,e){return(0,o.pipe)(t,tg(n,e))},Q=function(t){var n=ty(t);return function(t,e){return(0,o.pipe)(t,n(e))}},tt=function(t,n,e){return(0,o.pipe)(t,tb(n,e))},tn=function(t){var n=tS(t);return function(t,e){return(0,o.pipe)(t,n(e))}},te=function(t,n){return(0,o.pipe)(t,tf(n))},tr=function(t,n,e){return(0,o.pipe)(t,t_(n,e))},ti=function(t){var n=tI(t);return function(t,e){return(0,o.pipe)(t,n(e))}},tu=function(t,n,e){return(0,o.pipe)(t,tR(n,e))},to=function(t){var n=tx(t);return function(t,e){return(0,o.pipe)(t,n(e))}},ta=c.ri,tc=function(t){return function(n){return(0,o.pipe)(n,W(t()))}},tf=tc,tl=function(t){return tp(function(n){return(0,o.pipe)(t,tm(n))})},tp=(0,o.dual)(2,function(t,n){return(0,o.pipe)(t,Y(function(t,e){return n(e,t)}))}),td=function(t){return function(n){for(var e=t1(n),r=[t(n)];s(e);)r.push(t(e)),e=t1(e);return r}},ts=td(o.identity),th=tp(o.identity),tm=function(t){return tv(function(n,e){return t(e)})},tv=function(t){return function(n){for(var e=[t(0,t0(n))],r=1;r<n.length;r++)e.push(t(r,n[r]));return e}},tg=function(t,n){return t_(t,function(t,e,r){return n(e,r)})},ty=function(t){return function(n){return function(e){return e.slice(1).reduce(function(e,r){return t.concat(e,n(r))},n(e[0]))}}},tb=function(t,n){return tR(t,function(t,e,r){return n(e,r)})},t_=function(t,n){return function(e){return e.reduce(function(t,e,r){return n(r,t,e)},t)}},tI=function(t){return function(n){return function(e){return e.slice(1).reduce(function(e,r,i){return t.concat(e,n(i+1,r))},n(0,e[0]))}}},tR=function(t,n){return function(e){return e.reduceRight(function(t,e,r){return n(r,e,t)},t)}},tS=function(t){var n=tx(t);return function(t){return n(function(n,e){return t(e)})}},tT=function(t){return tx(t)(o.SK)},tx=function(t){return function(n){return function(e){for(var r=t.map(n(0,t0(e)),ta),i=1;i<e.length;i++)r=t.ap(t.map(r,function(t){return function(n){return(0,o.pipe)(t,y(n))}}),n(i,e[i]));return r}}},tw=c.YM,tM="ReadonlyNonEmptyArray",tO=function(t){return{show:function(n){return"[".concat(n.map(t.show).join(", "),"]")}}},tE=function(){return{concat:F}},tC=function(t){return(0,u.fromEquals)(function(n,e){return n.length===e.length&&n.every(function(n,r){return t.equals(n,e[r])})})},tk=function(t){var n=S(t);return{concat:function(t,e){return n(e)(t)}}},tW={URI:tM,map:z},tF=(0,a.flap)(tW),tP={URI:tM,of:ta},tA={URI:tM,map:z,mapWithIndex:X},tD={URI:tM,map:z,ap:J},tU=(0,r.apFirst)(tD),tL=(0,r.apSecond)(tD),tN={URI:tM,map:z,ap:J,of:ta},tj={URI:tM,map:z,ap:J,chain:tp},tq=(0,i.chainFirst)(tj),tG={URI:tM,map:z,ap:J,of:ta,chain:tp},tK={URI:tM,reduce:Z,foldMap:Q,reduceRight:tt},tY={URI:tM,reduce:Z,foldMap:Q,reduceRight:tt,reduceWithIndex:tr,foldMapWithIndex:ti,reduceRightWithIndex:tu},tV={URI:tM,map:z,reduce:Z,foldMap:Q,reduceRight:tt,traverse:tn,sequence:tT},tB={URI:tM,map:z,mapWithIndex:X,reduce:Z,foldMap:Q,reduceRight:tt,traverse:tn,sequence:tT,reduceWithIndex:tr,foldMapWithIndex:ti,reduceRightWithIndex:tu,traverseWithIndex:to},tH={URI:tM,map:z,alt:te},tz={URI:tM,map:z,extend:$,extract:tw},tX=ta(c.F4),tJ=(0,a.bindTo)(tW),t$=(0,a.let)(tW),tZ=(0,i.bind)(tj),tQ=(0,r.apS)(tD),t0=tw,t1=c.Gb,t2=function(t){return t[t.length-1]},t5=function(t){return t.slice(0,-1)},t8=function(t){var n=l.min(t);return function(t){return t.reduce(n.concat)}},t3=function(t){var n=l.max(t);return function(t){return t.reduce(n.concat)}},t4=function(t){return function(n){return n.reduce(t.concat)}},t7=function(t){return function(n){return t(t0(n),t1(n))}},t9=function(t){return function(n){return t(t5(n),t2(n))}},t6=function(t){return function(n){return p([t(t0(n))],t1(n),!0)}},nt=function(t){return t6(function(){return t})},nn=function(t){return function(n){return(0,o.pipe)(t5(n),y(t(t2(n))))}},ne=function(t){return nn(function(){return t})},nr=function(t){var n=t4(t);return function(t){return(0,o.flow)(K(t),n)}},ni=tp;function nu(t){var n=U(t),e=A(t);return function(t){return s(t)?e(n(t)):d}}function no(t){return na(function(n,e){return t(e)})}var na=function(t){return function(n){return x(n.filter(function(n,e){return t(e,n)}))}},nc=E,nf=C;function nl(t,n){return void 0===n?v(t):(0,o.pipe)(n,v(t))}var np=function(t,n){return(0,o.pipe)(t,F([n]))},nd=function(t,n){return function(e){return t<0||t>e.length?c.YP:c.G(b(t,n,e))}},ns=G,nh=t4,nm={URI:tM,of:ta,map:z,mapWithIndex:X,ap:J,chain:tp,extend:$,extract:tw,reduce:Z,foldMap:Q,reduceRight:tt,traverse:tn,sequence:tT,reduceWithIndex:tr,foldMapWithIndex:ti,reduceRightWithIndex:tu,traverseWithIndex:to,alt:te}},97054:function(t,n,e){e.r(n),e.d(n,{Compactable:function(){return tP},Filterable:function(){return tA},FilterableWithIndex:function(){return tD},Foldable:function(){return tY},FoldableWithIndex:function(){return tV},Functor:function(){return tE},FunctorWithIndex:function(){return tk},Traversable:function(){return tB},TraversableWithIndex:function(){return tH},URI:function(){return tw},Witherable:function(){return tJ},_filter:function(){return tr},_filterMap:function(){return ti},_filterMapWithIndex:function(){return td},_filterWithIndex:function(){return ts},_foldMap:function(){return tn},_foldMapWithIndex:function(){return tc},_map:function(){return Z},_mapWithIndex:function(){return Q},_partition:function(){return tu},_partitionMap:function(){return to},_partitionMapWithIndex:function(){return tl},_partitionWithIndex:function(){return tp},_reduce:function(){return tt},_reduceRight:function(){return te},_reduceRightWithIndex:function(){return tf},_reduceWithIndex:function(){return ta},_sequence:function(){return tm},_traverse:function(){return th},collect:function(){return v},compact:function(){return tT},deleteAt:function(){return I},difference:function(){return $},elem:function(){return function t(n){return function(e,r){if(void 0===r){var i=t(n);return function(t){return i(e,t)}}for(var u in r)if(n.equals(r[u],e))return!0;return!1}}},empty:function(){return M},every:function(){return H},filter:function(){return tg},filterMap:function(){return ty},filterMapWithIndex:function(){return q},filterWithIndex:function(){return G},flap:function(){return tC},foldMap:function(){return tR},foldMapWithIndex:function(){return k},fromEntries:function(){return B},fromFoldable:function(){return K},fromFoldableMap:function(){return Y},fromRecord:function(){return l},getDifferenceMagma:function(){return tK},getEq:function(){return tM},getFoldable:function(){return tW},getFoldableWithIndex:function(){return tF},getIntersectionSemigroup:function(){return tG},getMonoid:function(){return tO},getShow:function(){return function t(n){return"compare"in n?function(t){return{show:function(e){var r=v(n)(function(n,e){return"".concat(JSON.stringify(n),": ").concat(t.show(e))})(e).join(", ");return""===r?"{}":"{ ".concat(r," }")}}}:t(c.Ord)(n)}},getTraversable:function(){return tU},getTraversableWithIndex:function(){return tL},getUnionMonoid:function(){return tq},getUnionSemigroup:function(){return tj},getWitherable:function(){return tN},has:function(){return _},hasOwnProperty:function(){return tZ},insertAt:function(){return t$},intersection:function(){return J},isEmpty:function(){return s},isSubrecord:function(){return x},keys:function(){return m},lookup:function(){return w},map:function(){return E},mapWithIndex:function(){return O},modifyAt:function(){return S},partition:function(){return tb},partitionMap:function(){return t_},partitionMapWithIndex:function(){return N},partitionWithIndex:function(){return j},pop:function(){return T},readonlyRecord:function(){return tQ},reduce:function(){return tI},reduceRight:function(){return tS},reduceRightWithIndex:function(){return W},reduceWithIndex:function(){return C},separate:function(){return tx},sequence:function(){return D},singleton:function(){return F},size:function(){return d},some:function(){return z},toEntries:function(){return V},toReadonlyArray:function(){return g},toRecord:function(){return p},toUnfoldable:function(){return y},traverse:function(){return A},traverseWithIndex:function(){return P},union:function(){return X},updateAt:function(){return R},upsertAt:function(){return b},wilt:function(){return L},wither:function(){return U}});var r=e(65191),i=e(42275),u=e(67560),o=e(97963),a=e(34219),c=e(57029),f=e(76511),l=function(t){return Object.assign({},t)},p=function(t){return Object.assign({},t)},d=function(t){return Object.keys(t).length},s=function(t){for(var n in t)if(o.e$.call(t,n))return!1;return!0},h=function(t){return function(n){return Object.keys(n).sort(t.compare)}},m=h(c.Ord);function v(t){if("function"==typeof t)return v(c.Ord)(t);var n=h(t);return function(t){return function(e){for(var r=[],i=0,u=n(e);i<u.length;i++){var o=u[i];r.push(t(o,e[o]))}return r}}}var g=v(c.Ord)(function(t,n){return[t,n]});function y(t){return function(n){var e=g(n),r=e.length;return t.unfold(0,function(t){return t<r?o.G([e[t],t+1]):o.YP})}}var b=function(t,n){return function(e){if(o.e$.call(e,t)&&e[t]===n)return e;var r=Object.assign({},e);return r[t]=n,r}},_=function(t,n){return o.e$.call(n,t)};function I(t){return function(n){if(!o.e$.call(n,t))return n;var e=Object.assign({},n);return delete e[t],e}}var R=function(t,n){return function(e){if(!_(t,e))return o.YP;if(e[t]===n)return o.G(e);var r=Object.assign({},e);return r[t]=n,o.G(r)}},S=function(t,n){return function(e){if(!_(t,e))return o.YP;var r=n(e[t]);if(r===e[t])return o.G(e);var i=Object.assign({},e);return i[t]=r,o.G(i)}};function T(t){var n=I(t);return function(e){var r=w(t,e);return o.Wi(r)?o.YP:o.G([r.value,n(e)])}}function x(t){return function(n,e){if(void 0===e){var r=x(t);return function(t){return r(t,n)}}for(var i in n)if(!o.e$.call(e,i)||!t.equals(n[i],e[i]))return!1;return!0}}function w(t,n){return void 0===n?function(n){return w(t,n)}:o.e$.call(n,t)?o.G(n[t]):o.YP}var M={};function O(t){return function(n){var e={};for(var r in n)o.e$.call(n,r)&&(e[r]=t(r,n[r]));return e}}function E(t){return O(function(n,e){return t(e)})}function C(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(2===t.length)return C(c.Ord).apply(void 0,t);var e=h(t[0]);return function(t,n){return function(r){for(var i=t,u=e(r),o=u.length,a=0;a<o;a++){var c=u[a];i=n(c,i,r[c])}return i}}}function k(t){if("compare"in t){var n=h(t);return function(t){return function(e){return function(r){for(var i=t.empty,u=n(r),o=u.length,a=0;a<o;a++){var c=u[a];i=t.concat(i,e(c,r[c]))}return i}}}}return k(c.Ord)(t)}function W(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(2===t.length)return W(c.Ord).apply(void 0,t);var e=h(t[0]);return function(t,n){return function(r){for(var i=t,u=e(r),o=u.length,a=o-1;a>=0;a--){var c=u[a];i=n(c,r[c],i)}return i}}}var F=function(t,n){var e;return(e={})[t]=n,e};function P(t){var n=tv(c.Ord)(t);return function(t){return function(e){return n(e,t)}}}function A(t){var n=th(c.Ord)(t);return function(t){return function(e){return n(e,t)}}}function D(t){return tm(c.Ord)(t)}var U=function(t){var n=A(t);return function(e){return function(r){return t.map((0,i.pipe)(r,n(e)),tT)}}},L=function(t){var n=A(t);return function(e){return function(r){return t.map((0,i.pipe)(r,n(e)),tx)}}};function N(t){return function(n){var e={},r={};for(var i in n)if(o.e$.call(n,i)){var u=t(i,n[i]);switch(u._tag){case"Left":e[i]=u.left;break;case"Right":r[i]=u.right}}return(0,a.separated)(e,r)}}function j(t){return function(n){var e={},r={};for(var i in n)if(o.e$.call(n,i)){var u=n[i];t(i,u)?r[i]=u:e[i]=u}return(0,a.separated)(e,r)}}function q(t){return function(n){var e={};for(var r in n)if(o.e$.call(n,r)){var i=t(r,n[r]);o.pC(i)&&(e[r]=i.value)}return e}}function G(t){return function(n){var e={},r=!1;for(var i in n)if(o.e$.call(n,i)){var u=n[i];t(i,u)?e[i]=u:r=!0}return r?e:n}}function K(t,n){var e=Y(t,n);return function(t){return e(t,i.identity)}}function Y(t,n){return function(e,r){return n.reduce(e,{},function(n,e){var i=r(e),u=i[0],a=i[1];return n[u]=o.e$.call(n,u)?t.concat(n[u],a):a,n})}}var V=g,B=function(t){for(var n={},e=0;e<t.length;e++){var r=t[e];n[r[0]]=r[1]}return n};function H(t){return function(n){for(var e in n)if(!t(n[e]))return!1;return!0}}function z(t){return function(n){for(var e in n)if(t(n[e]))return!0;return!1}}var X=function(t){return function(n){return function(e){if(s(e))return n;if(s(n))return e;var r={};for(var i in e)_(i,n)?r[i]=t.concat(e[i],n[i]):r[i]=e[i];for(var i in n)_(i,r)||(r[i]=n[i]);return r}}},J=function(t){return function(n){return function(e){if(s(e)||s(n))return M;var r={};for(var i in e)_(i,n)&&(r[i]=t.concat(e[i],n[i]));return r}}},$=function(t){return function(n){if(s(n))return t;if(s(t))return n;var e={};for(var r in n)_(r,t)||(e[r]=n[r]);for(var r in t)_(r,n)||(e[r]=t[r]);return e}},Z=function(t,n){return(0,i.pipe)(t,E(n))},Q=function(t,n){return(0,i.pipe)(t,O(n))},tt=function(t){var n=tI(t);return function(t,e,r){return(0,i.pipe)(t,n(e,r))}},tn=function(t){return function(n){var e=tR(t)(n);return function(t,n){return(0,i.pipe)(t,e(n))}}},te=function(t){var n=tS(t);return function(t,e,r){return(0,i.pipe)(t,n(e,r))}},tr=function(t,n){return(0,i.pipe)(t,tg(n))},ti=function(t,n){return(0,i.pipe)(t,ty(n))},tu=function(t,n){return(0,i.pipe)(t,tb(n))},to=function(t,n){return(0,i.pipe)(t,t_(n))},ta=function(t){var n=C(t);return function(t,e,r){return(0,i.pipe)(t,n(e,r))}},tc=function(t){var n=k(t);return function(t){var e=n(t);return function(t,n){return(0,i.pipe)(t,e(n))}}},tf=function(t){var n=W(t);return function(t,e,r){return(0,i.pipe)(t,n(e,r))}},tl=function(t,n){return(0,i.pipe)(t,N(n))},tp=function(t,n){return(0,i.pipe)(t,j(n))},td=function(t,n){return(0,i.pipe)(t,q(n))},ts=function(t,n){return(0,i.pipe)(t,G(n))},th=function(t){var n=tv(t);return function(t){var e=n(t);return function(t,n){return e(t,(0,i.flow)(i.SK,n))}}},tm=function(t){var n=th(t);return function(t){var e=n(t);return function(t){return e(t,i.identity)}}},tv=function(t){return function(n){var e=h(t);return function(t,r){var i=e(t);if(0===i.length)return n.of(M);for(var u=n.of({}),o=function(e){u=n.ap(n.map(u,function(t){return function(n){var r;return Object.assign({},t,((r={})[e]=n,r))}}),r(e,t[e]))},a=0;a<i.length;a++)o(i[a]);return u}}},tg=function(t){return G(function(n,e){return t(e)})},ty=function(t){return q(function(n,e){return t(e)})},tb=function(t){return j(function(n,e){return t(e)})},t_=function(t){return N(function(n,e){return t(e)})};function tI(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(1===t.length){var e=C(t[0]);return function(t,n){return e(t,function(t,e,r){return n(e,r)})}}return tI(c.Ord).apply(void 0,t)}function tR(t){if("compare"in t){var n=k(t);return function(t){var e=n(t);return function(t){return e(function(n,e){return t(e)})}}}return tR(c.Ord)(t)}function tS(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(1===t.length){var e=W(t[0]);return function(t,n){return e(t,function(t,e,r){return n(e,r)})}}return tS(c.Ord).apply(void 0,t)}var tT=function(t){var n={};for(var e in t)if(o.e$.call(t,e)){var r=t[e];o.pC(r)&&(n[e]=r.value)}return n},tx=function(t){var n={},e={};for(var r in t)if(o.e$.call(t,r)){var i=t[r];o.nM(i)?n[r]=i.left:e[r]=i.right}return(0,a.separated)(n,e)},tw="ReadonlyRecord";function tM(t){var n=x(t);return(0,r.fromEquals)(function(t,e){return n(t)(e)&&n(e)(t)})}function tO(t){return{concat:function(n,e){if(s(n))return e;if(s(e))return n;var r=Object.assign({},n);for(var i in e)o.e$.call(e,i)&&(r[i]=o.e$.call(n,i)?t.concat(n[i],e[i]):e[i]);return r},empty:M}}var tE={URI:tw,map:Z},tC=(0,u.flap)(tE),tk={URI:tw,map:Z,mapWithIndex:Q},tW=function(t){return{URI:tw,reduce:tt(t),foldMap:tn(t),reduceRight:te(t)}},tF=function(t){return{URI:tw,reduce:tt(t),foldMap:tn(t),reduceRight:te(t),reduceWithIndex:ta(t),foldMapWithIndex:tc(t),reduceRightWithIndex:tf(t)}},tP={URI:tw,compact:tT,separate:tx},tA={URI:tw,map:Z,compact:tT,separate:tx,filter:tr,filterMap:ti,partition:tu,partitionMap:to},tD={URI:tw,map:Z,mapWithIndex:Q,compact:tT,separate:tx,filter:tr,filterMap:ti,partition:tu,partitionMap:to,filterMapWithIndex:td,filterWithIndex:ts,partitionMapWithIndex:tl,partitionWithIndex:tp},tU=function(t){return{URI:tw,map:Z,reduce:tt(t),foldMap:tn(t),reduceRight:te(t),traverse:th(t),sequence:tm(t)}},tL=function(t){return{URI:tw,map:Z,mapWithIndex:Q,reduce:tt(t),foldMap:tn(t),reduceRight:te(t),reduceWithIndex:ta(t),foldMapWithIndex:tc(t),reduceRightWithIndex:tf(t),traverse:th(t),sequence:tm(t),traverseWithIndex:tv(t)}},tN=function(t){var n=tU(t);return{URI:tw,map:Z,reduce:tt(t),foldMap:tn(t),reduceRight:te(t),traverse:n.traverse,sequence:n.sequence,compact:tT,separate:tx,filter:tr,filterMap:ti,partition:tu,partitionMap:to,wither:(0,f.witherDefault)(n,tP),wilt:(0,f.wiltDefault)(n,tP)}},tj=function(t){var n=X(t);return{concat:function(t,e){return n(e)(t)}}},tq=function(t){return{concat:tj(t).concat,empty:M}},tG=function(t){var n=J(t);return{concat:function(t,e){return n(e)(t)}}},tK=function(){return{concat:function(t,n){return $(n)(t)}}},tY={URI:tw,reduce:tt(c.Ord),foldMap:tn(c.Ord),reduceRight:te(c.Ord)},tV={URI:tw,reduce:tt(c.Ord),foldMap:tn(c.Ord),reduceRight:te(c.Ord),reduceWithIndex:ta(c.Ord),foldMapWithIndex:tc(c.Ord),reduceRightWithIndex:tf(c.Ord)},tB={URI:tw,map:Z,reduce:tt(c.Ord),foldMap:tn(c.Ord),reduceRight:te(c.Ord),traverse:th(c.Ord),sequence:D},tH={URI:tw,map:Z,mapWithIndex:Q,reduce:tt(c.Ord),foldMap:tn(c.Ord),reduceRight:te(c.Ord),reduceWithIndex:ta(c.Ord),foldMapWithIndex:tc(c.Ord),reduceRightWithIndex:tf(c.Ord),traverse:th(c.Ord),sequence:D,traverseWithIndex:tv(c.Ord)},tz=(0,f.witherDefault)(tB,tP),tX=(0,f.wiltDefault)(tB,tP),tJ={URI:tw,map:Z,reduce:tt(c.Ord),foldMap:tn(c.Ord),reduceRight:te(c.Ord),traverse:th(c.Ord),sequence:D,compact:tT,separate:tx,filter:tr,filterMap:ti,partition:tu,partitionMap:to,wither:tz,wilt:tX},t$=b;function tZ(t,n){return o.e$.call(void 0===n?this:n,t)}var tQ={URI:tw,map:Z,reduce:tt(c.Ord),foldMap:tn(c.Ord),reduceRight:te(c.Ord),traverse:th(c.Ord),sequence:D,compact:tT,separate:tx,filter:tr,filterMap:ti,partition:tu,partitionMap:to,mapWithIndex:Q,reduceWithIndex:ta(c.Ord),foldMapWithIndex:tc(c.Ord),reduceRightWithIndex:tf(c.Ord),filterMapWithIndex:td,filterWithIndex:ts,partitionMapWithIndex:tl,partitionWithIndex:tp,traverseWithIndex:tv(c.Ord),wither:tz,wilt:tX}},99156:function(t,n,e){e.r(n),e.d(n,{URI:function(){return D},chain:function(){return d},compact:function(){return x},difference:function(){return y},elem:function(){return P},empty:function(){return O},every:function(){return W},filter:function(){return s},filterMap:function(){return M},foldMap:function(){return _},fromArray:function(){return K},fromReadonlyArray:function(){return f},fromSet:function(){return a},getDifferenceMagma:function(){return G},getEq:function(){return L},getIntersectionSemigroup:function(){return q},getShow:function(){return U},getUnionMonoid:function(){return j},getUnionSemigroup:function(){return N},insert:function(){return R},intersection:function(){return v},isEmpty:function(){return E},isSubset:function(){return F},map:function(){return p},partition:function(){return h},partitionMap:function(){return g},reduce:function(){return b},reduceRight:function(){return I},remove:function(){return S},separate:function(){return w},singleton:function(){return c},size:function(){return C},some:function(){return k},toReadonlyArray:function(){return A},toSet:function(){return l},toggle:function(){return T},union:function(){return m}});var r=e(65191),i=e(42275),u=e(88491),o=e(34219),a=function(t){return new Set(t)},c=function(t){return new Set([t])},f=function(t){return function(n){for(var e=n.length,r=new Set,i=P(t),u=0;u<e;u++){var o=n[u];i(o,r)||r.add(o)}return r}};function l(t){return new Set(t)}function p(t){var n=P(t);return function(t){return function(e){var r=new Set;return e.forEach(function(e){var i=t(e);n(i,r)||r.add(i)}),r}}}function d(t){var n=P(t);return function(t){return function(e){var r=new Set;return e.forEach(function(e){t(e).forEach(function(t){n(t,r)||r.add(t)})}),r}}}function s(t){return function(n){for(var e,r=n.values(),i=new Set;!(e=r.next()).done;){var u=e.value;t(u)&&i.add(u)}return i}}function h(t){return function(n){for(var e,r=n.values(),i=new Set,u=new Set;!(e=r.next()).done;){var a=e.value;t(a)?i.add(a):u.add(a)}return(0,o.separated)(u,i)}}function m(t){var n=P(t);return function(e,r){if(void 0===r){var i=m(t);return function(t){return i(e,t)}}if(E(e))return r;if(E(r))return e;var u=new Set(e);return r.forEach(function(t){n(t,u)||u.add(t)}),u}}function v(t){var n=P(t);return function(e,r){if(void 0===r){var i=v(t);return function(t){return i(t,e)}}if(E(e)||E(r))return O;var u=new Set;return e.forEach(function(t){n(t,r)&&u.add(t)}),u}}function g(t,n){return function(e){return function(r){for(var i,u=r.values(),a=new Set,c=new Set,f=P(t),l=P(n);!(i=u.next()).done;){var p=e(i.value);switch(p._tag){case"Left":f(p.left,a)||a.add(p.left);break;case"Right":l(p.right,c)||c.add(p.right)}}return(0,o.separated)(a,c)}}}function y(t){var n=P(t);return function(e,r){if(void 0===r){var i=y(t);return function(t){return i(t,e)}}return s(function(t){return!n(t,r)})(e)}}function b(t){var n=A(t);return function(t,e){return function(r){return n(r).reduce(e,t)}}}function _(t,n){var e=A(t);return function(t){return function(r){return e(r).reduce(function(e,r){return n.concat(e,t(r))},n.empty)}}}var I=function(t){var n=A(t);return function(t,e){return function(r){return n(r).reduceRight(function(t,n){return e(n,t)},t)}}};function R(t){var n=P(t);return function(t){return function(e){if(n(t)(e))return e;var r=new Set(e);return r.add(t),r}}}var S=function(t){return function(n){return function(e){return s(function(e){return!t.equals(n,e)})(e)}}},T=function(t){var n=P(t),e=S(t),r=R(t);return function(t){return function(i){return(n(t,i)?e:r)(t)(i)}}},x=function(t){return M(t)(i.identity)};function w(t,n){return function(e){var r=P(t),i=P(n),u=new Set,a=new Set;return e.forEach(function(t){switch(t._tag){case"Left":r(t.left,u)||u.add(t.left);break;case"Right":i(t.right,a)||a.add(t.right)}}),(0,o.separated)(u,a)}}function M(t){var n=P(t);return function(t){return function(e){var r=new Set;return e.forEach(function(e){var i=t(e);"Some"!==i._tag||n(i.value,r)||r.add(i.value)}),r}}}var O=new Set,E=function(t){return 0===t.size},C=function(t){return t.size},k=function(t){return function(n){for(var e,r=n.values(),i=!1;!i&&!(e=r.next()).done;)i=t(e.value);return i}};function W(t){return(0,u.not)(k((0,u.not)(t)))}function F(t){var n=P(t);return function(e,r){if(void 0===r){var i=F(t);return function(t){return i(t,e)}}return W(function(t){return n(t,r)})(e)}}function P(t){return function(n,e){if(void 0===e){var r,i=P(t);return function(t){return i(n,t)}}for(var u=e.values(),o=!1;!o&&!(r=u.next()).done;)o=t.equals(n,r.value);return o}}var A=function(t){return function(n){var e=[];return n.forEach(function(t){return e.push(t)}),e.sort(t.compare)}},D="ReadonlySet";function U(t){return{show:function(n){var e=[];return n.forEach(function(n){e.push(t.show(n))}),"new Set([".concat(e.sort().join(", "),"])")}}}function L(t){var n=F(t);return(0,r.fromEquals)(function(t,e){return n(t,e)&&n(e,t)})}var N=function(t){return{concat:m(t)}},j=function(t){return{concat:N(t).concat,empty:O}},q=function(t){return{concat:v(t)}},G=function(t){return{concat:y(t)}},K=f},3291:function(t,n,e){e.r(n),e.d(n,{concatAll:function(){return v},constant:function(){return f},first:function(){return h},fold:function(){return M},getDualSemigroup:function(){return S},getFirstSemigroup:function(){return _},getFunctionSemigroup:function(){return C},getIntercalateSemigroup:function(){return w},getJoinSemigroup:function(){return T},getLastSemigroup:function(){return b},getMeetSemigroup:function(){return x},getObjectSemigroup:function(){return y},getStructSemigroup:function(){return R},getTupleSemigroup:function(){return I},intercalate:function(){return s},last:function(){return m},max:function(){return c},min:function(){return a},reverse:function(){return l},semigroupAll:function(){return O},semigroupAny:function(){return E},semigroupProduct:function(){return F},semigroupString:function(){return k},semigroupSum:function(){return W},semigroupVoid:function(){return g},struct:function(){return p},tuple:function(){return d}});var r=e(42275),i=e(97963),u=e(76113),o=e(5586),a=function(t){return{concat:o.min(t)}},c=function(t){return{concat:o.max(t)}},f=function(t){return{concat:function(){return t}}},l=u.reverse,p=function(t){return{concat:function(n,e){var r={};for(var u in t)i.e$.call(t,u)&&(r[u]=t[u].concat(n[u],e[u]));return r}}},d=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return{concat:function(n,e){return t.map(function(t,r){return t.concat(n[r],e[r])})}}},s=function(t){return function(n){return{concat:function(e,r){return n.concat(e,n.concat(t,r))}}}},h=function(){return{concat:r.identity}},m=function(){return{concat:function(t,n){return n}}},v=u.concatAll,g=f(void 0),y=function(){return{concat:function(t,n){return Object.assign({},t,n)}}},b=m,_=h,I=d,R=p,S=l,T=c,x=a,w=s;function M(t){var n=v(t);return function(t,e){return void 0===e?n(t):n(t)(e)}}var O={concat:function(t,n){return t&&n}},E={concat:function(t,n){return t||n}},C=r.getSemigroup,k={concat:function(t,n){return t+n}},W={concat:function(t,n){return t+n}},F={concat:function(t,n){return t*n}}},34219:function(t,n,e){e.r(n),e.d(n,{Bifunctor:function(){return l},Functor:function(){return p},URI:function(){return f},bimap:function(){return c},flap:function(){return d},left:function(){return s},map:function(){return o},mapLeft:function(){return a},right:function(){return h},separated:function(){return u}});var r=e(42275),i=e(67560),u=function(t,n){return{left:t,right:n}},o=function(t){return function(n){return u(s(n),t(h(n)))}},a=function(t){return function(n){return u(t(s(n)),h(n))}},c=function(t,n){return function(e){return u(t(s(e)),n(h(e)))}},f="Separated",l={URI:f,mapLeft:function(t,n){return(0,r.pipe)(t,a(n))},bimap:function(t,n,e){return(0,r.pipe)(t,c(n,e))}},p={URI:f,map:function(t,n){return(0,r.pipe)(t,o(n))}},d=(0,i.flap)(p),s=function(t){return t.left},h=function(t){return t.right}},1214:function(t,n,e){e.r(n),e.d(n,{chain:function(){return f},compact:function(){return O},difference:function(){return m},elem:function(){return U},empty:function(){return k},every:function(){return A},filter:function(){return l},filterMap:function(){return C},foldMap:function(){return I},fromArray:function(){return M},getDifferenceMagma:function(){return b},getEq:function(){return a},getIntersectionSemigroup:function(){return y},getShow:function(){return o},getUnionMonoid:function(){return g},getUnionSemigroup:function(){return v},insert:function(){return T},intersection:function(){return s},isEmpty:function(){return W},isSubset:function(){return D},map:function(){return c},partition:function(){return p},partitionMap:function(){return h},reduce:function(){return _},reduceRight:function(){return R},remove:function(){return x},separate:function(){return E},singleton:function(){return S},size:function(){return F},some:function(){return P},subset:function(){return N},toArray:function(){return L},toggle:function(){return w},union:function(){return d}});var r=e(42275),i=e(99156),u=e(34219),o=i.getShow,a=i.getEq;function c(t){var n=U(t);return function(t){return function(e){var r=new Set;return e.forEach(function(e){var i=t(e);n(i,r)||r.add(i)}),r}}}function f(t){var n=U(t);return function(t){return function(e){var r=new Set;return e.forEach(function(e){t(e).forEach(function(t){n(t,r)||r.add(t)})}),r}}}function l(t){return function(n){for(var e,r=n.values(),i=new Set;!(e=r.next()).done;){var u=e.value;t(u)&&i.add(u)}return i}}function p(t){return function(n){for(var e,r=n.values(),i=new Set,o=new Set;!(e=r.next()).done;){var a=e.value;t(a)?i.add(a):o.add(a)}return(0,u.separated)(o,i)}}function d(t){var n=U(t);return function(e,r){if(void 0===r){var i=d(t);return function(t){return i(e,t)}}if(W(e))return r;if(W(r))return e;var u=new Set(e);return r.forEach(function(t){n(t,u)||u.add(t)}),u}}function s(t){var n=U(t);return function(e,r){if(void 0===r){var i=s(t);return function(t){return i(t,e)}}if(W(e)||W(r))return new Set;var u=new Set;return e.forEach(function(t){n(t,r)&&u.add(t)}),u}}function h(t,n){return function(e){return function(r){for(var i,o=r.values(),a=new Set,c=new Set,f=U(t),l=U(n);!(i=o.next()).done;){var p=e(i.value);switch(p._tag){case"Left":f(p.left,a)||a.add(p.left);break;case"Right":l(p.right,c)||c.add(p.right)}}return(0,u.separated)(a,c)}}}function m(t){var n=U(t);return function(e,r){if(void 0===r){var i=m(t);return function(t){return i(t,e)}}return l(function(t){return!n(t,r)})(e)}}var v=function(t){return{concat:d(t)}},g=function(t){return{concat:v(t).concat,empty:new Set}},y=function(t){return{concat:s(t)}},b=function(t){return{concat:m(t)}},_=i.reduce,I=i.foldMap,R=i.reduceRight,S=function(t){return new Set([t])};function T(t){var n=U(t);return function(t){return function(e){if(n(t)(e))return e;var r=new Set(e);return r.add(t),r}}}var x=function(t){return function(n){return function(e){return l(function(e){return!t.equals(n,e)})(e)}}},w=function(t){var n=U(t),e=x(t),r=T(t);return function(t){return function(i){return(n(t,i)?e:r)(t)(i)}}},M=function(t){return function(n){for(var e=n.length,r=new Set,i=U(t),u=0;u<e;u++){var o=n[u];i(o,r)||r.add(o)}return r}},O=function(t){return C(t)(r.identity)};function E(t,n){return function(e){var r=U(t),i=U(n),o=new Set,a=new Set;return e.forEach(function(t){switch(t._tag){case"Left":r(t.left,o)||o.add(t.left);break;case"Right":i(t.right,a)||a.add(t.right)}}),(0,u.separated)(o,a)}}function C(t){var n=U(t);return function(t){return function(e){var r=new Set;return e.forEach(function(e){var i=t(e);"Some"!==i._tag||n(i.value,r)||r.add(i.value)}),r}}}var k=new Set,W=function(t){return 0===t.size},F=function(t){return t.size},P=i.some,A=i.every,D=i.isSubset,U=i.elem,L=function(t){return function(n){var e=[];return n.forEach(function(t){return e.push(t)}),e.sort(t.compare)}},N=i.isSubset},76511:function(t,n,e){e.r(n),e.d(n,{filterE:function(){return o},wiltDefault:function(){return i},witherDefault:function(){return u}});var r=e(97963);function i(t,n){return function(e){var r=t.traverse(e);return function(t,i){return e.map(r(t,i),n.separate)}}}function u(t,n){return function(e){var r=t.traverse(e);return function(t,i){return e.map(r(t,i),n.compact)}}}function o(t){return function(n){var e=t.wither(n);return function(t){return function(i){return e(i,function(e){return n.map(t(e),function(t){return t?r.G(e):r.YP})})}}}}},28957:function(t,n,e){function r(t,n){return function(e){return e?n.of(void 0):t.zero()}}e.r(n),e.d(n,{guard:function(){return r}})},42275:function(t,n,e){e.r(n),e.d(n,{SK:function(){return O},absurd:function(){return S},apply:function(){return f},constFalse:function(){return h},constNull:function(){return m},constTrue:function(){return s},constUndefined:function(){return v},constVoid:function(){return g},constant:function(){return d},decrement:function(){return R},dual:function(){return k},flip:function(){return y},flow:function(){return b},getBooleanAlgebra:function(){return i},getEndomorphismMonoid:function(){return C},getMonoid:function(){return o},getRing:function(){return c},getSemigroup:function(){return u},getSemiring:function(){return a},hole:function(){return M},identity:function(){return l},increment:function(){return I},not:function(){return E},pipe:function(){return w},tuple:function(){return _},tupled:function(){return T},unsafeCoerce:function(){return p},untupled:function(){return x}});var r=function(t,n,e){if(e||2==arguments.length)for(var r,i=0,u=n.length;i<u;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return t.concat(r||Array.prototype.slice.call(n))},i=function(t){return function(){return{meet:function(n,e){return function(r){return t.meet(n(r),e(r))}},join:function(n,e){return function(r){return t.join(n(r),e(r))}},zero:function(){return t.zero},one:function(){return t.one},implies:function(n,e){return function(r){return t.implies(n(r),e(r))}},not:function(n){return function(e){return t.not(n(e))}}}}},u=function(t){return function(){return{concat:function(n,e){return function(r){return t.concat(n(r),e(r))}}}}},o=function(t){var n=u(t);return function(){return{concat:n().concat,empty:function(){return t.empty}}}},a=function(t){return{add:function(n,e){return function(r){return t.add(n(r),e(r))}},zero:function(){return t.zero},mul:function(n,e){return function(r){return t.mul(n(r),e(r))}},one:function(){return t.one}}},c=function(t){var n=a(t);return{add:n.add,mul:n.mul,one:n.one,zero:n.zero,sub:function(n,e){return function(r){return t.sub(n(r),e(r))}}}},f=function(t){return function(n){return n(t)}};function l(t){return t}var p=l;function d(t){return function(){return t}}var s=d(!0),h=d(!1),m=d(null),v=d(void 0),g=v;function y(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.length>1?t(n[1],n[0]):function(e){return t(e)(n[0])}}}function b(t,n,e,r,i,u,o,a,c){switch(arguments.length){case 1:return t;case 2:return function(){return n(t.apply(this,arguments))};case 3:return function(){return e(n(t.apply(this,arguments)))};case 4:return function(){return r(e(n(t.apply(this,arguments))))};case 5:return function(){return i(r(e(n(t.apply(this,arguments)))))};case 6:return function(){return u(i(r(e(n(t.apply(this,arguments))))))};case 7:return function(){return o(u(i(r(e(n(t.apply(this,arguments)))))))};case 8:return function(){return a(o(u(i(r(e(n(t.apply(this,arguments))))))))};case 9:return function(){return c(a(o(u(i(r(e(n(t.apply(this,arguments)))))))))}}}function _(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t}function I(t){return t+1}function R(t){return t-1}function S(t){throw Error("Called `absurd` function which should be uncallable")}function T(t){return function(n){return t.apply(void 0,n)}}function x(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return t(n)}}function w(t,n,e,r,i,u,o,a,c){switch(arguments.length){case 1:return t;case 2:return n(t);case 3:return e(n(t));case 4:return r(e(n(t)));case 5:return i(r(e(n(t))));case 6:return u(i(r(e(n(t)))));case 7:return o(u(i(r(e(n(t))))));case 8:return a(o(u(i(r(e(n(t)))))));case 9:return c(a(o(u(i(r(e(n(t))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}}var M=S,O=function(t,n){return n};function E(t){return function(n){return!t(n)}}var C=function(){return{concat:function(t,n){return b(t,n)},empty:l}},k=function(t,n){var e="number"==typeof t?function(n){return n.length>=t}:t;return function(){var t=Array.from(arguments);return e(arguments)?n.apply(this,t):function(e){return n.apply(void 0,r([e],t,!1))}}}},9554:function(t,n,e){e.r(n),e.d(n,{alt:function(){return r},alternative:function(){return i},applicative:function(){return tG},apply:function(){return tN},array:function(){return tK},bifunctor:function(){return u},boolean:function(){return o},booleanAlgebra:function(){return a},bounded:function(){return c},boundedDistributiveLattice:function(){return l},boundedJoinSemilattice:function(){return p},boundedLattice:function(){return d},boundedMeetSemilattice:function(){return s},category:function(){return h},chain:function(){return nu},chainRec:function(){return no},choice:function(){return m},comonad:function(){return v},compactable:function(){return g},console:function(){return y},const:function(){return nI},contravariant:function(){return b},date:function(){return _},distributiveLattice:function(){return f},either:function(){return nC},eitherT:function(){return I},endomorphism:function(){return n8},eq:function(){return n3},extend:function(){return R},field:function(){return S},filterable:function(){return T},filterableWithIndex:function(){return x},foldable:function(){return w},foldableWithIndex:function(){return M},fromEither:function(){return eb},fromIO:function(){return O},fromReader:function(){return C},fromState:function(){return W},fromTask:function(){return F},fromThese:function(){return P},function:function(){return t5},functor:function(){return np},functorWithIndex:function(){return A},group:function(){return D},heytingAlgebra:function(){return U},hkt:function(){return L},identity:function(){return N},invariant:function(){return j},io:function(){return q},ioEither:function(){return G},ioOption:function(){return Y},ioRef:function(){return V},joinSemilattice:function(){return B},json:function(){return H},lattice:function(){return z},magma:function(){return fy},map:function(){return fb},meetSemilattice:function(){return X},monad:function(){return J},monadIO:function(){return $},monadTask:function(){return Z},monadThrow:function(){return Q},monoid:function(){return f_},naturalTransformation:function(){return tt},nonEmptyArray:function(){return fI},number:function(){return nR},option:function(){return nd},optionT:function(){return K},ord:function(){return t6},ordering:function(){return tn},pipeable:function(){return fF},pointed:function(){return te},predicate:function(){return n6},profunctor:function(){return tr},random:function(){return ti},reader:function(){return E},readerEither:function(){return tu},readerIO:function(){return ta},readerT:function(){return to},readerTask:function(){return tf},readerTaskEither:function(){return tp},readonlyArray:function(){return _b},readonlyMap:function(){return __},readonlyNonEmptyArray:function(){return _I},readonlyRecord:function(){return _R},readonlySet:function(){return _S},readonlyTuple:function(){return td},record:function(){return ts},refinement:function(){return th},ring:function(){return tm},semigroup:function(){return In},semigroupoid:function(){return tv},semiring:function(){return tg},separated:function(){return ns},set:function(){return RZ},show:function(){return ty},state:function(){return k},stateReaderTaskEither:function(){return t_},stateT:function(){return tb},store:function(){return tI},string:function(){return Ie},strong:function(){return tR},struct:function(){return tS},task:function(){return tc},taskEither:function(){return tl},taskOption:function(){return tT},taskThese:function(){return tM},these:function(){return tx},theseT:function(){return tw},traced:function(){return tO},traversable:function(){return tE},traversableWithIndex:function(){return tC},tree:function(){return tk},tuple:function(){return tW},unfoldable:function(){return tF},validationT:function(){return tP},void:function(){return tA},witherable:function(){return Ir},writer:function(){return tD},writerT:function(){return tU},zero:function(){return a5}});var r={};e.r(r),e.d(r,{altAll:function(){return tL}});var i={};e.r(i),e.d(i,{altAll:function(){return tj},getAlternativeMonoid:function(){return tq}});var u={};e.r(u);var o={};e.r(o),e.d(o,{BooleanAlgebra:function(){return tJ},Eq:function(){return tX},MonoidAll:function(){return tQ},MonoidAny:function(){return t0},Ord:function(){return t1},SemigroupAll:function(){return t$},SemigroupAny:function(){return tZ},Show:function(){return t2},fold:function(){return tz},foldW:function(){return tB},isBoolean:function(){return tY},match:function(){return tH},matchW:function(){return tV}});var a={};e.r(a),e.d(a,{booleanAlgebraBoolean:function(){return t7},booleanAlgebraVoid:function(){return t3},getDualBooleanAlgebra:function(){return t4},getFunctionBooleanAlgebra:function(){return t9},reverse:function(){return t8}});var c={};e.r(c),e.d(c,{boundedNumber:function(){return ne},clamp:function(){return nt},reverse:function(){return nn}});var f={};e.r(f),e.d(f,{getMinMaxDistributiveLattice:function(){return nr}});var l={};e.r(l),e.d(l,{getMinMaxBoundedDistributiveLattice:function(){return ni}});var p={};e.r(p);var d={};e.r(d);var s={};e.r(s);var h={};e.r(h);var m={};e.r(m),e.d(m,{fanIn:function(){return nc},fanin:function(){return nl},split:function(){return na},splitChoice:function(){return nf}});var v={};e.r(v);var g={};e.r(g),e.d(g,{compact:function(){return nh},getCompactableComposition:function(){return nv},separate:function(){return nm}});var y={};e.r(y),e.d(y,{error:function(){return nb},info:function(){return n_},log:function(){return ng},warn:function(){return ny}});var b={};e.r(b);var _={};e.r(_),e.d(_,{Eq:function(){return nS},Ord:function(){return nM},create:function(){return nO},eqDate:function(){return nT},eqMonth:function(){return nx},eqYear:function(){return nw},now:function(){return nE}});var I={};e.r(I),e.d(I,{alt:function(){return nG},altValidation:function(){return nH},ap:function(){return nN},bimap:function(){return nK},chain:function(){return nj},chainNullableK:function(){return nU},flatMap:function(){return nq},fromNullable:function(){return nA},fromNullableK:function(){return nD},getEitherM:function(){return n5},getOrElse:function(){return nJ},left:function(){return nW},leftF:function(){return nP},map:function(){return nL},mapBoth:function(){return nY},mapError:function(){return nB},mapLeft:function(){return nV},match:function(){return nz},matchE:function(){return nX},orElse:function(){return n$},orElseFirst:function(){return nZ},orLeft:function(){return n0},right:function(){return nk},rightF:function(){return nF},swap:function(){return n1},tapError:function(){return nQ},toUnion:function(){return n2}});var R={};e.r(R);var S={};e.r(S),e.d(S,{fieldNumber:function(){return n9},gcd:function(){return n4},lcm:function(){return n7}});var T={};e.r(T),e.d(T,{filter:function(){return et},filterMap:function(){return en},getFilterableComposition:function(){return ei},partition:function(){return ee},partitionMap:function(){return er}});var x={};e.r(x);var w={};e.r(w),e.d(w,{foldM:function(){return ed},foldMap:function(){return eo},getFoldableComposition:function(){return eh},intercalate:function(){return ef},reduce:function(){return eu},reduceM:function(){return ec},reduceRight:function(){return ea},toArray:function(){return es},toReadonlyArray:function(){return el},traverse_:function(){return ep}});var M={};e.r(M),e.d(M,{foldMapWithIndex:function(){return ev},getFoldableWithIndexComposition:function(){return ey},reduceRightWithIndex:function(){return eg},reduceWithIndex:function(){return em}});var O={};e.r(O),e.d(O,{chainFirstIOK:function(){return eR},chainIOK:function(){return eI},fromIOK:function(){return e_},tapIO:function(){return eS}});var E={};e.r(E),e.d(E,{ApT:function(){return rc},Applicative:function(){return e5},Apply:function(){return eZ},Category:function(){return e9},Chain:function(){return e8},Choice:function(){return rt},Do:function(){return ru},Functor:function(){return eX},Monad:function(){return e3},Pointed:function(){return e$},Profunctor:function(){return e7},Strong:function(){return e6},URI:function(){return ez},ap:function(){return eD},apFirst:function(){return eQ},apFirstW:function(){return e0},apS:function(){return ro},apSW:function(){return ra},apSecond:function(){return e1},apSecondW:function(){return e2},apW:function(){return eA},ask:function(){return ex},asks:function(){return ew},asksReader:function(){return eE},asksReaderW:function(){return eO},bind:function(){return rr},bindTo:function(){return rn},bindW:function(){return ri},chain:function(){return rm},chainFirst:function(){return rv},chainFirstW:function(){return rg},chainW:function(){return rh},compose:function(){return eq},first:function(){return eY},flap:function(){return eJ},flatMap:function(){return eL},flatten:function(){return ej},flattenW:function(){return eN},getMonoid:function(){return r_},getSemigroup:function(){return rb},id:function(){return eK},left:function(){return eB},let:function(){return re},local:function(){return eM},map:function(){return eP},of:function(){return eU},promap:function(){return eG},reader:function(){return ry},right:function(){return eH},second:function(){return eV},sequenceArray:function(){return rs},tap:function(){return e4},traverseArray:function(){return rd},traverseArrayWithIndex:function(){return rp},traverseReadonlyArrayWithIndex:function(){return rl},traverseReadonlyNonEmptyArrayWithIndex:function(){return rf}});var C={};e.r(C),e.d(C,{ask:function(){return rI},asks:function(){return rR},chainFirstReaderK:function(){return rx},chainReaderK:function(){return rT},fromReaderK:function(){return rS},tapReader:function(){return rw}});var k={};e.r(k),e.d(k,{Applicative:function(){return rV},Apply:function(){return rG},Chain:function(){return rB},FromState:function(){return rX},Functor:function(){return rN},Monad:function(){return rH},Pointed:function(){return rq},URI:function(){return rL},ap:function(){return rP},apFirst:function(){return rK},apS:function(){return r1},apSecond:function(){return rY},bind:function(){return r0},bindTo:function(){return rZ},chain:function(){return r7},chainFirst:function(){return r9},evalState:function(){return r6},evaluate:function(){return rJ},execState:function(){return it},execute:function(){return r$},flap:function(){return rj},flatMap:function(){return rD},flatten:function(){return rU},get:function(){return rM},gets:function(){return rC},let:function(){return rQ},map:function(){return rF},modify:function(){return rE},of:function(){return rA},put:function(){return rO},sequenceArray:function(){return r4},state:function(){return ie},tap:function(){return rz},traverseArray:function(){return r3},traverseArrayWithIndex:function(){return r8},traverseReadonlyArrayWithIndex:function(){return r5},traverseReadonlyNonEmptyArrayWithIndex:function(){return r2}});var W={};e.r(W),e.d(W,{chainStateK:function(){return ic},fromStateK:function(){return ia},get:function(){return ir},gets:function(){return io},modify:function(){return iu},put:function(){return ii}});var F={};e.r(F),e.d(F,{chainFirstTaskK:function(){return id},chainTaskK:function(){return ip},fromTaskK:function(){return il},tapTask:function(){return is}});var P={};e.r(P),e.d(P,{fromTheseK:function(){return ih}});var A={};e.r(A),e.d(A,{getFunctorWithIndexComposition:function(){return iv},mapWithIndex:function(){return im}});var D={};e.r(D);var U={};e.r(U);var L={};e.r(L);var N={};e.r(N),e.d(N,{Alt:function(){return i2},Applicative:function(){return iJ},Apply:function(){return iH},Chain:function(){return i$},ChainRec:function(){return i8},Comonad:function(){return i5},Do:function(){return i3},Foldable:function(){return i0},Functor:function(){return iY},Monad:function(){return iZ},Pointed:function(){return iB},Traversable:function(){return i1},URI:function(){return iq},alt:function(){return ij},altW:function(){return iN},ap:function(){return iM},apFirst:function(){return iz},apS:function(){return i6},apSecond:function(){return iX},bind:function(){return i9},bindTo:function(){return i4},chain:function(){return ut},chainFirst:function(){return iQ},duplicate:function(){return iW},extend:function(){return iC},extract:function(){return ik},flap:function(){return iV},flatMap:function(){return iE},flatten:function(){return iF},foldMap:function(){return iA},getEq:function(){return iK},getShow:function(){return iG},identity:function(){return un},let:function(){return i7},map:function(){return iw},of:function(){return iO},reduce:function(){return iP},reduceRight:function(){return iD},sequence:function(){return iL},traverse:function(){return iU}});var j={};e.r(j);var q={};e.r(q),e.d(q,{ApT:function(){return uW},Applicative:function(){return ub},Apply:function(){return uv},Chain:function(){return u_},ChainRec:function(){return ux},Do:function(){return uM},FromIO:function(){return uw},Functor:function(){return up},Monad:function(){return uI},MonadIO:function(){return uT},Pointed:function(){return um},URI:function(){return ul},ap:function(){return uo},apFirst:function(){return ug},apS:function(){return uk},apSecond:function(){return uy},as:function(){return ud},asUnit:function(){return us},bind:function(){return uC},bindTo:function(){return uO},chain:function(){return uL},chainFirst:function(){return uN},flap:function(){return uh},flatMap:function(){return uc},flatten:function(){return uf},fromIO:function(){return uS},getMonoid:function(){return uG},getSemigroup:function(){return uq},io:function(){return uj},let:function(){return uE},map:function(){return uu},of:function(){return ua},sequenceArray:function(){return uU},tap:function(){return uR},traverseArray:function(){return uD},traverseArrayWithIndex:function(){return uA},traverseReadonlyArrayWithIndex:function(){return uP},traverseReadonlyNonEmptyArrayWithIndex:function(){return uF}});var G={};e.r(G),e.d(G,{Alt:function(){return oY},ApT:function(){return am},Applicative:function(){return aw},ApplicativePar:function(){return oA},ApplicativeSeq:function(){return oD},ApplyPar:function(){return oC},Bifunctor:function(){return oE},Chain:function(){return oU},Do:function(){return ac},FromEither:function(){return oN},FromIO:function(){return oj},Functor:function(){return oT},Monad:function(){return oL},MonadIO:function(){return oV},MonadThrow:function(){return oB},Pointed:function(){return oO},URI:function(){return ob},alt:function(){return ov},altW:function(){return og},ap:function(){return ol},apFirst:function(){return ok},apFirstW:function(){return oW},apS:function(){return as},apSW:function(){return ah},apSecond:function(){return oF},apSecondW:function(){return oP},apW:function(){return op},as:function(){return ox},asUnit:function(){return ow},bimap:function(){return oa},bind:function(){return ap},bindTo:function(){return af},bindW:function(){return ad},bracket:function(){return ao},bracketW:function(){return aa},chain:function(){return aM},chainEitherK:function(){return o9},chainEitherKW:function(){return o6},chainFirst:function(){return aE},chainFirstEitherK:function(){return at},chainFirstEitherKW:function(){return an},chainFirstIOK:function(){return oz},chainFirstW:function(){return aC},chainIOK:function(){return o7},chainOptionK:function(){return o$},chainOptionKW:function(){return oZ},chainW:function(){return aO},filterOrElse:function(){return ar},filterOrElseW:function(){return ai},flap:function(){return oM},flatMap:function(){return os},flatMapEither:function(){return o3},flatMapIO:function(){return o4},flatMapNullable:function(){return o5},flatMapOption:function(){return o8},flatten:function(){return om},flattenW:function(){return oh},fold:function(){return uZ},foldW:function(){return u0},fromEither:function(){return uH},fromEitherK:function(){return au},fromIO:function(){return uz},fromIOK:function(){return oH},fromOption:function(){return oX},fromOptionK:function(){return oJ},fromPredicate:function(){return ae},getAltIOValidation:function(){return oI},getApplicativeIOValidation:function(){return o_},getApplyMonoid:function(){return aA},getApplySemigroup:function(){return aP},getCompactable:function(){return oR},getFilterable:function(){return oS},getIOValidation:function(){return aU},getOrElse:function(){return u1},getOrElseW:function(){return u2},getSemigroup:function(){return aD},ioEither:function(){return aF},left:function(){return uK},leftIO:function(){return uB},let:function(){return al},liftNullable:function(){return o0},liftOption:function(){return o1},map:function(){return ou},mapBoth:function(){return oo},mapError:function(){return oc},mapLeft:function(){return of},match:function(){return uX},matchE:function(){return u$},matchEW:function(){return uQ},matchW:function(){return uJ},of:function(){return od},orElse:function(){return u4},orElseFirst:function(){return ak},orElseFirstIOK:function(){return u6},orElseFirstW:function(){return aW},orElseW:function(){return u7},orLeft:function(){return ot},right:function(){return uY},rightIO:function(){return uV},sequenceArray:function(){return aR},sequenceSeqArray:function(){return ax},swap:function(){return on},tap:function(){return oq},tapEither:function(){return oG},tapError:function(){return u9},tapIO:function(){return oK},throwError:function(){return oy},toUnion:function(){return u3},traverseArray:function(){return aI},traverseArrayWithIndex:function(){return a_},traverseReadonlyArrayWithIndex:function(){return ag},traverseReadonlyArrayWithIndexSeq:function(){return ab},traverseReadonlyNonEmptyArrayWithIndex:function(){return av},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return ay},traverseSeqArray:function(){return aT},traverseSeqArrayWithIndex:function(){return aS},tryCatch:function(){return u5},tryCatchK:function(){return u8}});var K={};e.r(K),e.d(K,{alt:function(){return a1},ap:function(){return aZ},chain:function(){return aQ},chainNullableK:function(){return aK},chainOptionK:function(){return aV},flatMap:function(){return a0},fromEither:function(){return aH},fromF:function(){return aj},fromNullable:function(){return aq},fromNullableK:function(){return aG},fromOptionK:function(){return aY},fromPredicate:function(){return aB},getOptionM:function(){return a2},getOrElse:function(){return aJ},map:function(){return a$},match:function(){return az},matchE:function(){return aX},some:function(){return aL},zero:function(){return aN}});var Y={};e.r(Y),e.d(Y,{Alt:function(){return cH},Alternative:function(){return cJ},ApT:function(){return ff},Applicative:function(){return cj},Apply:function(){return cU},Chain:function(){return cq},Compactable:function(){return cQ},Do:function(){return fi},Filterable:function(){return c0},FromEither:function(){return cG},FromIO:function(){return cK},Functor:function(){return cW},Monad:function(){return c$},MonadIO:function(){return cZ},Pointed:function(){return cD},URI:function(){return ck},Zero:function(){return cz},alt:function(){return cy},altW:function(){return cb},ap:function(){return ch},apFirst:function(){return cL},apS:function(){return fc},apSecond:function(){return cN},as:function(){return cF},asUnit:function(){return cP},bind:function(){return fa},bindTo:function(){return fu},chain:function(){return fd},chainEitherK:function(){return fn},chainFirst:function(){return fs},chainFirstEitherK:function(){return fe},chainFirstIOK:function(){return c6},chainIOK:function(){return c9},chainNullableK:function(){return cp},chainOptionK:function(){return fr},compact:function(){return cR},filter:function(){return cT},filterMap:function(){return cx},flap:function(){return cA},flatMap:function(){return cv},flatMapEither:function(){return c3},flatMapIO:function(){return c5},flatMapNullable:function(){return c4},flatMapOption:function(){return c8},flatten:function(){return cg},fold:function(){return cr},fromEither:function(){return a7},fromEitherK:function(){return ft},fromIO:function(){return a9},fromIOEither:function(){return a6},fromIOK:function(){return c7},fromNullable:function(){return cf},fromNullableK:function(){return cl},fromOption:function(){return a4},fromOptionK:function(){return cd},fromPredicate:function(){return a3},getOrElse:function(){return cu},getOrElseW:function(){return co},guard:function(){return cX},let:function(){return fo},map:function(){return cs},match:function(){return ct},matchE:function(){return ce},matchEW:function(){return ci},matchW:function(){return cn},none:function(){return cI},of:function(){return cm},partition:function(){return cw},partitionMap:function(){return cM},separate:function(){return cS},some:function(){return a8},tap:function(){return cY},tapEither:function(){return cV},tapIO:function(){return cB},toNullable:function(){return cc},toUndefined:function(){return ca},traverseReadonlyArrayWithIndex:function(){return fp},traverseReadonlyNonEmptyArrayWithIndex:function(){return fl},zero:function(){return c_}});var V={};e.r(V),e.d(V,{IORef:function(){return fh},newIORef:function(){return fm}});var B={};e.r(B);var H={};e.r(H),e.d(H,{parse:function(){return fv},stringify:function(){return fg}});var z={};e.r(z);var X={};e.r(X);var J={};e.r(J);var $={};e.r($);var Z={};e.r(Z);var Q={};e.r(Q);var tt={};e.r(tt);var tn={};e.r(tn),e.d(tn,{Eq:function(){return fx},Monoid:function(){return fM},Semigroup:function(){return fw},eqOrdering:function(){return fk},invert:function(){return fE},match:function(){return fS},matchW:function(){return fR},monoidOrdering:function(){return fW},reverse:function(){return fT},semigroupOrdering:function(){return fC},sign:function(){return fO}});var te={};e.r(te);var tr={};e.r(tr);var ti={};e.r(ti),e.d(ti,{random:function(){return fP},randomBool:function(){return fU},randomElem:function(){return fL},randomInt:function(){return fA},randomRange:function(){return fD}});var tu={};e.r(tu),e.d(tu,{Alt:function(){return lN},ApT:function(){return pd},Applicative:function(){return lC},Apply:function(){return lx},Bifunctor:function(){return lL},Chain:function(){return lk},Do:function(){return pu},FromEither:function(){return lF},FromReader:function(){return lP},Functor:function(){return l_},Monad:function(){return lW},MonadThrow:function(){return lV},Pointed:function(){return lT},URI:function(){return lm},alt:function(){return ld},altW:function(){return ls},ap:function(){return lo},apFirst:function(){return lw},apFirstW:function(){return lM},apS:function(){return pl},apSW:function(){return pp},apSecond:function(){return lO},apSecondW:function(){return lE},apW:function(){return la},as:function(){return lI},asUnit:function(){return lR},ask:function(){return lj},asks:function(){return lq},asksReaderEither:function(){return f2},asksReaderEitherW:function(){return f1},bimap:function(){return lr},bind:function(){return pc},bindTo:function(){return po},bindW:function(){return pf},chain:function(){return py},chainEitherK:function(){return l3},chainEitherKW:function(){return l4},chainFirst:function(){return p_},chainFirstEitherK:function(){return l7},chainFirstEitherKW:function(){return l9},chainFirstReaderK:function(){return lK},chainFirstReaderKW:function(){return lY},chainFirstW:function(){return pI},chainOptionK:function(){return lz},chainOptionKW:function(){return lX},chainReaderK:function(){return l6},chainReaderKW:function(){return pt},chainW:function(){return pb},filterOrElse:function(){return pe},filterOrElseW:function(){return pr},flap:function(){return lS},flatMap:function(){return lf},flatMapEither:function(){return l5},flatMapNullable:function(){return l1},flatMapOption:function(){return l2},flatMapReader:function(){return l8},flatten:function(){return lp},flattenW:function(){return ll},fold:function(){return fz},foldW:function(){return fJ},fromEither:function(){return fK},fromEitherK:function(){return pi},fromOption:function(){return lB},fromOptionK:function(){return lH},fromPredicate:function(){return pn},fromReader:function(){return fY},fromReaderK:function(){return lG},getAltReaderValidation:function(){return lb},getApplicativeReaderValidation:function(){return ly},getApplyMonoid:function(){return pw},getApplySemigroup:function(){return px},getCompactable:function(){return lv},getFilterable:function(){return lg},getOrElse:function(){return f$},getOrElseW:function(){return fZ},getReaderValidation:function(){return pO},getSemigroup:function(){return pM},left:function(){return fN},leftReader:function(){return fG},let:function(){return pa},liftNullable:function(){return lZ},liftOption:function(){return lQ},local:function(){return f0},map:function(){return ln},mapBoth:function(){return le},mapError:function(){return li},mapLeft:function(){return lu},match:function(){return fV},matchE:function(){return fH},matchEW:function(){return fX},matchW:function(){return fB},of:function(){return lc},orElse:function(){return f5},orElseFirst:function(){return pR},orElseFirstW:function(){return pS},orElseW:function(){return f8},orLeft:function(){return f4},readerEither:function(){return pT},right:function(){return fj},rightReader:function(){return fq},sequenceArray:function(){return pg},swap:function(){return f7},tap:function(){return lA},tapEither:function(){return lD},tapError:function(){return f3},tapReader:function(){return lU},throwError:function(){return lh},toUnion:function(){return fQ},traverseArray:function(){return pv},traverseArrayWithIndex:function(){return pm},traverseReadonlyArrayWithIndex:function(){return ph},traverseReadonlyNonEmptyArrayWithIndex:function(){return ps}});var to={};e.r(to),e.d(to,{ap:function(){return pk},chain:function(){return pW},flatMap:function(){return pF},fromNaturalTransformation:function(){return pA},fromReader:function(){return pP},getReaderM:function(){return pD},map:function(){return pC},of:function(){return pE}});var ta={};e.r(ta),e.d(ta,{ApT:function(){return dw},Applicative:function(){return p4},Apply:function(){return p5},Chain:function(){return p7},Do:function(){return d_},FromIO:function(){return dt},FromReader:function(){return dn},Functor:function(){return pZ},Monad:function(){return p9},MonadIO:function(){return p6},Pointed:function(){return p2},URI:function(){return p$},ap:function(){return pV},apFirst:function(){return p8},apS:function(){return dT},apSW:function(){return dx},apSecond:function(){return p3},apW:function(){return pB},as:function(){return pQ},asUnit:function(){return p0},ask:function(){return ds},asks:function(){return dh},asksReaderIO:function(){return pq},asksReaderIOW:function(){return pj},bind:function(){return dR},bindTo:function(){return dI},bindW:function(){return dS},chain:function(){return dW},chainFirst:function(){return dP},chainFirstIOK:function(){return dd},chainFirstReaderK:function(){return dy},chainFirstReaderKW:function(){return db},chainFirstW:function(){return dA},chainIOK:function(){return dp},chainReaderK:function(){return dv},chainReaderKW:function(){return dg},chainW:function(){return dF},flap:function(){return p1},flatMap:function(){return pz},flatMapIO:function(){return di},flatMapReader:function(){return du},flatten:function(){return pJ},flattenW:function(){return pX},fromIO:function(){return pL},fromIOK:function(){return dl},fromReader:function(){return pU},fromReaderK:function(){return dm},local:function(){return pN},map:function(){return pY},of:function(){return pH},sequenceArray:function(){return dk},tap:function(){return da},tapIO:function(){return dc},tapReader:function(){return df},traverseArray:function(){return dC},traverseArrayWithIndex:function(){return dE},traverseReadonlyArrayWithIndex:function(){return dO},traverseReadonlyNonEmptyArrayWithIndex:function(){return dM}});var tc={};e.r(tc),e.d(tc,{ApT:function(){return sm},ApplicativePar:function(){return d2},ApplicativeSeq:function(){return d8},ApplyPar:function(){return dQ},ApplySeq:function(){return d5},Chain:function(){return d3},Do:function(){return sl},FromIO:function(){return st},FromTask:function(){return sc},Functor:function(){return dz},Monad:function(){return d4},MonadIO:function(){return d7},MonadTask:function(){return d6},Pointed:function(){return dZ},URI:function(){return dB},ap:function(){return dG},apFirst:function(){return d0},apS:function(){return sh},apSecond:function(){return d1},as:function(){return dX},asUnit:function(){return dJ},bind:function(){return ss},bindTo:function(){return sp},chain:function(){return sw},chainFirst:function(){return sM},chainFirstIOK:function(){return sa},chainIOK:function(){return so},delay:function(){return dU},flap:function(){return d$},flatMap:function(){return dY},flatMapIO:function(){return se},flatten:function(){return dV},fromIO:function(){return dD},fromIOK:function(){return su},fromTask:function(){return d9},getMonoid:function(){return sk},getRaceMonoid:function(){return dH},getSemigroup:function(){return sC},let:function(){return sd},map:function(){return dq},never:function(){return sf},of:function(){return dK},sequenceArray:function(){return sR},sequenceSeqArray:function(){return sx},tap:function(){return sr},tapIO:function(){return si},task:function(){return sO},taskSeq:function(){return sE},traverseArray:function(){return sI},traverseArrayWithIndex:function(){return s_},traverseReadonlyArrayWithIndex:function(){return sg},traverseReadonlyArrayWithIndexSeq:function(){return sb},traverseReadonlyNonEmptyArrayWithIndex:function(){return sv},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return sy},traverseSeqArray:function(){return sT},traverseSeqArrayWithIndex:function(){return sS}});var tf={};e.r(tf),e.d(tf,{ApT:function(){return hj},ApplicativePar:function(){return s8},ApplicativeSeq:function(){return s4},ApplyPar:function(){return s1},ApplySeq:function(){return s3},Chain:function(){return s7},Do:function(){return hF},FromIO:function(){return hn},FromReader:function(){return hr},FromTask:function(){return he},Functor:function(){return sJ},Monad:function(){return s9},MonadIO:function(){return s6},MonadTask:function(){return ht},Pointed:function(){return s0},URI:function(){return sX},ap:function(){return sK},apFirst:function(){return s2},apS:function(){return hL},apSW:function(){return hN},apSecond:function(){return s5},apW:function(){return sY},as:function(){return s$},asUnit:function(){return sZ},ask:function(){return hy},asks:function(){return hb},asksReaderTask:function(){return sL},asksReaderTaskW:function(){return sU},bind:function(){return hD},bindTo:function(){return hP},bindW:function(){return hU},chain:function(){return hJ},chainFirst:function(){return hZ},chainFirstIOK:function(){return hg},chainFirstReaderIOK:function(){return hE},chainFirstReaderIOKW:function(){return hO},chainFirstReaderK:function(){return hS},chainFirstReaderKW:function(){return hT},chainFirstTaskK:function(){return hW},chainFirstW:function(){return hQ},chainIOK:function(){return hv},chainReaderIOK:function(){return hM},chainReaderIOKW:function(){return hw},chainReaderK:function(){return hI},chainReaderKW:function(){return hR},chainTaskK:function(){return hk},chainW:function(){return h$},flap:function(){return sQ},flatMap:function(){return sB},flatMapIO:function(){return ho},flatMapReader:function(){return hc},flatMapReaderIO:function(){return hf},flatMapTask:function(){return ha},flatten:function(){return sz},flattenW:function(){return sH},fromIO:function(){return sP},fromIOK:function(){return hm},fromReader:function(){return sW},fromReaderIO:function(){return sA},fromReaderIOK:function(){return hx},fromReaderK:function(){return h_},fromTask:function(){return sF},fromTaskK:function(){return hC},getMonoid:function(){return h8},getSemigroup:function(){return h5},let:function(){return hA},local:function(){return sD},map:function(){return sG},of:function(){return sV},readerTask:function(){return h1},readerTaskSeq:function(){return h2},run:function(){return h3},sequenceArray:function(){return hH},sequenceSeqArray:function(){return h0},tap:function(){return hl},tapIO:function(){return hp},tapReader:function(){return hd},tapReaderIO:function(){return hh},tapTask:function(){return hs},traverseArray:function(){return hB},traverseArrayWithIndex:function(){return hV},traverseReadonlyArrayWithIndex:function(){return hG},traverseReadonlyArrayWithIndexSeq:function(){return hY},traverseReadonlyNonEmptyArrayWithIndex:function(){return hq},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return hK},traverseSeqArray:function(){return hX},traverseSeqArrayWithIndex:function(){return hz}});var tl={};e.r(tl),e.d(tl,{Alt:function(){return vy},ApT:function(){return v7},ApplicativePar:function(){return ve},ApplicativeSeq:function(){return vi},ApplyPar:function(){return m7},ApplySeq:function(){return vr},Bifunctor:function(){return vg},Chain:function(){return vu},Do:function(){return v0},FromEither:function(){return vl},FromIO:function(){return vp},FromTask:function(){return vd},Functor:function(){return m2},Monad:function(){return vo},MonadIO:function(){return va},MonadTask:function(){return vc},MonadThrow:function(){return vf},Pointed:function(){return m4},URI:function(){return m$},alt:function(){return mH},altW:function(){return mz},ap:function(){return mG},apFirst:function(){return m9},apFirstW:function(){return m6},apS:function(){return v3},apSW:function(){return v4},apSecond:function(){return vt},apSecondW:function(){return vn},apW:function(){return mK},as:function(){return m5},asUnit:function(){return m8},bimap:function(){return mN},bind:function(){return v5},bindTo:function(){return v1},bindW:function(){return v8},bracket:function(){return vZ},bracketW:function(){return vQ},chain:function(){return gc},chainEitherK:function(){return vA},chainEitherKW:function(){return vD},chainFirst:function(){return gl},chainFirstEitherK:function(){return vU},chainFirstEitherKW:function(){return vL},chainFirstIOK:function(){return vV},chainFirstTaskK:function(){return vz},chainFirstW:function(){return gp},chainIOEitherK:function(){return vJ},chainIOEitherKW:function(){return vX},chainIOK:function(){return vY},chainNullableK:function(){return mI},chainOptionK:function(){return vI},chainOptionKW:function(){return vR},chainTaskK:function(){return vH},chainTaskOptionK:function(){return mk},chainTaskOptionKW:function(){return mC},chainW:function(){return gf},filterOrElse:function(){return vj},filterOrElseW:function(){return vq},flap:function(){return m3},flatMap:function(){return mY},flatMapEither:function(){return vC},flatMapIO:function(){return vk},flatMapIOEither:function(){return vF},flatMapNullable:function(){return vO},flatMapOption:function(){return vE},flatMapTask:function(){return vW},flatMapTaskOption:function(){return vP},flatten:function(){return mB},flattenW:function(){return mV},fold:function(){return mp},foldW:function(){return ms},fromEither:function(){return mu},fromEitherK:function(){return vG},fromIO:function(){return mr},fromIOEither:function(){return mo},fromIOEitherK:function(){return mW},fromIOK:function(){return vK},fromNullable:function(){return mb},fromNullableK:function(){return m_},fromOption:function(){return vb},fromOptionK:function(){return v_},fromPredicate:function(){return vN},fromTask:function(){return mi},fromTaskK:function(){return vB},fromTaskOption:function(){return ma},fromTaskOptionK:function(){return mE},getAltTaskValidation:function(){return mQ},getApplicativeTaskValidation:function(){return mZ},getApplyMonoid:function(){return gg},getApplySemigroup:function(){return gv},getCompactable:function(){return m0},getFilterable:function(){return m1},getOrElse:function(){return mh},getOrElseW:function(){return mm},getSemigroup:function(){return gy},getTaskValidation:function(){return gb},left:function(){return h7},leftIO:function(){return me},leftTask:function(){return mt},let:function(){return v2},liftNullable:function(){return vT},liftOption:function(){return vx},map:function(){return mU},mapBoth:function(){return mL},mapError:function(){return mj},mapLeft:function(){return mq},match:function(){return mc},matchE:function(){return ml},matchEW:function(){return md},matchW:function(){return mf},of:function(){return mX},orElse:function(){return mR},orElseFirst:function(){return gd},orElseFirstIOK:function(){return mx},orElseFirstTaskK:function(){return mw},orElseFirstW:function(){return gs},orElseW:function(){return mS},orLeft:function(){return mM},right:function(){return h9},rightIO:function(){return mn},rightTask:function(){return h6},sequenceArray:function(){return gi},sequenceSeqArray:function(){return ga},swap:function(){return mO},tap:function(){return vs},tapEither:function(){return vh},tapError:function(){return mT},tapIO:function(){return vm},tapTask:function(){return vv},taskEither:function(){return gh},taskEitherSeq:function(){return gm},taskify:function(){return v$},throwError:function(){return mJ},toUnion:function(){return my},traverseArray:function(){return gr},traverseArrayWithIndex:function(){return ge},traverseReadonlyArrayWithIndex:function(){return v6},traverseReadonlyArrayWithIndexSeq:function(){return gn},traverseReadonlyNonEmptyArrayWithIndex:function(){return v9},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return gt},traverseSeqArray:function(){return go},traverseSeqArrayWithIndex:function(){return gu},tryCatch:function(){return mv},tryCatchK:function(){return mg}});var tp={};e.r(tp),e.d(tp,{Alt:function(){return yQ},ApT:function(){return b3},ApplicativePar:function(){return yk},ApplicativeSeq:function(){return yF},ApplyPar:function(){return yw},ApplySeq:function(){return yW},Bifunctor:function(){return yZ},Chain:function(){return yP},Do:function(){return bZ},FromEither:function(){return yN},FromIO:function(){return yj},FromReader:function(){return yG},FromTask:function(){return yq},Functor:function(){return yI},Monad:function(){return yA},MonadIO:function(){return yD},MonadTask:function(){return yU},MonadThrow:function(){return yL},Pointed:function(){return yx},URI:function(){return yv},alt:function(){return ys},altW:function(){return yh},ap:function(){return ya},apFirst:function(){return yM},apFirstW:function(){return yO},apS:function(){return b5},apSW:function(){return b8},apSecond:function(){return yE},apSecondW:function(){return yC},apW:function(){return yc},as:function(){return yR},asUnit:function(){return yS},ask:function(){return y0},asks:function(){return y1},asksReaderTaskEither:function(){return gQ},asksReaderTaskEitherW:function(){return gZ},bimap:function(){return yi},bind:function(){return b1},bindTo:function(){return bQ},bindW:function(){return b2},bracket:function(){return bJ},bracketW:function(){return b$},chain:function(){return _o},chainEitherK:function(){return bT},chainEitherKW:function(){return bx},chainFirst:function(){return _c},chainFirstEitherK:function(){return bw},chainFirstEitherKW:function(){return bM},chainFirstIOK:function(){return bL},chainFirstReaderEitherK:function(){return y4},chainFirstReaderEitherKW:function(){return y3},chainFirstReaderIOK:function(){return bi},chainFirstReaderIOKW:function(){return br},chainFirstReaderK:function(){return y5},chainFirstReaderKW:function(){return y8},chainFirstReaderTaskK:function(){return bn},chainFirstReaderTaskKW:function(){return bt},chainFirstTaskEitherK:function(){return y9},chainFirstTaskEitherKW:function(){return y7},chainFirstTaskK:function(){return bq},chainFirstW:function(){return _f},chainIOEitherK:function(){return bH},chainIOEitherKW:function(){return bB},chainIOK:function(){return bU},chainNullableK:function(){return gJ},chainOptionK:function(){return ba},chainOptionKW:function(){return bc},chainReaderEitherK:function(){return bX},chainReaderEitherKW:function(){return bz},chainReaderIOK:function(){return bV},chainReaderIOKW:function(){return bY},chainReaderK:function(){return bG},chainReaderKW:function(){return bK},chainReaderTaskK:function(){return bk},chainReaderTaskKW:function(){return bC},chainTaskEitherK:function(){return bE},chainTaskEitherKW:function(){return bO},chainTaskK:function(){return bj},chainW:function(){return _a},filterOrElse:function(){return bF},filterOrElseW:function(){return bP},flap:function(){return yT},flatMap:function(){return yl},flatMapEither:function(){return bm},flatMapIO:function(){return by},flatMapIOEither:function(){return bR},flatMapNullable:function(){return bs},flatMapOption:function(){return bh},flatMapReader:function(){return b_},flatMapReaderEither:function(){return bS},flatMapReaderIO:function(){return bI},flatMapReaderTask:function(){return bg},flatMapTask:function(){return bb},flatMapTaskEither:function(){return bv},flatten:function(){return yd},flattenW:function(){return yp},fold:function(){return gG},foldW:function(){return gY},fromEither:function(){return gF},fromEitherK:function(){return bA},fromIO:function(){return gA},fromIOEither:function(){return gU},fromIOEitherK:function(){return g3},fromIOK:function(){return bD},fromNullable:function(){return gz},fromNullableK:function(){return gX},fromOption:function(){return bu},fromOptionK:function(){return bo},fromPredicate:function(){return bW},fromReader:function(){return gP},fromReaderEither:function(){return gL},fromReaderEitherK:function(){return g7},fromReaderIOK:function(){return be},fromReaderK:function(){return y2},fromReaderTaskK:function(){return y6},fromTask:function(){return gD},fromTaskEither:function(){return g_},fromTaskEitherK:function(){return g4},fromTaskK:function(){return bN},getAltReaderTaskValidation:function(){return y_},getApplicativeReaderTaskValidation:function(){return yb},getApplyMonoid:function(){return _m},getApplySemigroup:function(){return _h},getCompactable:function(){return yg},getFilterable:function(){return yy},getOrElse:function(){return gV},getOrElseW:function(){return gB},getReaderTaskValidation:function(){return _g},getSemigroup:function(){return _v},left:function(){return gI},leftIO:function(){return gC},leftReader:function(){return gw},leftReaderIO:function(){return gW},leftReaderTask:function(){return gO},leftTask:function(){return gT},let:function(){return b0},liftNullable:function(){return bl},liftOption:function(){return bp},local:function(){return g$},map:function(){return ye},mapBoth:function(){return yr},mapError:function(){return yu},mapLeft:function(){return yo},match:function(){return gN},matchE:function(){return gq},matchEW:function(){return gK},matchW:function(){return gj},of:function(){return yf},orElse:function(){return g0},orElseFirst:function(){return _l},orElseFirstW:function(){return _p},orElseW:function(){return g1},orLeft:function(){return g5},readerTaskEither:function(){return _d},readerTaskEitherSeq:function(){return _s},right:function(){return gR},rightIO:function(){return gE},rightReader:function(){return gx},rightReaderIO:function(){return gk},rightReaderTask:function(){return gM},rightTask:function(){return gS},run:function(){return _y},sequenceArray:function(){return _e},sequenceSeqArray:function(){return _u},swap:function(){return g8},tap:function(){return yK},tapEither:function(){return yY},tapError:function(){return g2},tapIO:function(){return yV},tapReader:function(){return yH},tapReaderEither:function(){return yz},tapReaderIO:function(){return y$},tapReaderTask:function(){return yJ},tapTask:function(){return yB},tapTaskEither:function(){return yX},throwError:function(){return ym},toUnion:function(){return gH},traverseArray:function(){return _n},traverseArrayWithIndex:function(){return _t},traverseReadonlyArrayWithIndex:function(){return b7},traverseReadonlyArrayWithIndexSeq:function(){return b6},traverseReadonlyNonEmptyArrayWithIndex:function(){return b4},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return b9},traverseSeqArray:function(){return _i},traverseSeqArrayWithIndex:function(){return _r}});var td={};e.r(td),e.d(td,{Bifunctor:function(){return _3},Comonad:function(){return _7},Foldable:function(){return _9},Functor:function(){return _1},Semigroupoid:function(){return _4},Traversable:function(){return _6},URI:function(){return _0},bimap:function(){return _G},compose:function(){return _V},duplicate:function(){return _z},extend:function(){return _B},extract:function(){return _H},flap:function(){return _2},foldMap:function(){return _J},fst:function(){return _T},getApplicative:function(){return _E},getApply:function(){return _M},getChain:function(){return _C},getChainRec:function(){return _W},getMonad:function(){return _k},map:function(){return _5},mapFst:function(){return _K},mapLeft:function(){return _8},mapSnd:function(){return _Y},readonlyTuple:function(){return It},reduce:function(){return _X},reduceRight:function(){return _$},sequence:function(){return _Q},snd:function(){return _x},swap:function(){return _w},traverse:function(){return _Z}});var ts={};e.r(ts),e.d(ts,{Compactable:function(){return Ry},Filterable:function(){return Rb},FilterableWithIndex:function(){return R_},Foldable:function(){return RO},FoldableWithIndex:function(){return RE},Functor:function(){return Rs},FunctorWithIndex:function(){return Rm},Traversable:function(){return RC},TraversableWithIndex:function(){return Rk},URI:function(){return Rf},Witherable:function(){return RP},collect:function(){return If},compact:function(){return Ra},deleteAt:function(){return Ih},difference:function(){return IY},elem:function(){return Iq},empty:function(){return RA},every:function(){return IN},filter:function(){return Rt},filterMap:function(){return Rn},filterMapWithIndex:function(){return IF},filterWithIndex:function(){return IP},flap:function(){return Rh},foldMap:function(){return Ru},foldMapWithIndex:function(){return IS},fromEntries:function(){return IU},fromFoldable:function(){return IA},fromFoldableMap:function(){return IL},getDifferenceMagma:function(){return RM},getEq:function(){return Rp},getFoldable:function(){return Rv},getFoldableWithIndex:function(){return Rg},getIntersectionSemigroup:function(){return Rw},getMonoid:function(){return Rd},getShow:function(){return Rl},getTraversable:function(){return RI},getTraversableWithIndex:function(){return RR},getUnionMonoid:function(){return Rx},getUnionSemigroup:function(){return RT},getWitherable:function(){return RS},has:function(){return Is},hasOwnProperty:function(){return RU},insertAt:function(){return RD},intersection:function(){return IK},isEmpty:function(){return Io},isSubrecord:function(){return Iy},keys:function(){return Ic},lookup:function(){return Ib},map:function(){return II},mapWithIndex:function(){return I_},modifyAt:function(){return Iv},partition:function(){return Re},partitionMap:function(){return Rr},partitionMapWithIndex:function(){return Ik},partitionWithIndex:function(){return IW},pop:function(){return Ig},record:function(){return RL},reduce:function(){return Ri},reduceRight:function(){return Ro},reduceRightWithIndex:function(){return IT},reduceWithIndex:function(){return IR},separate:function(){return Rc},sequence:function(){return IO},singleton:function(){return Ix},size:function(){return Iu},some:function(){return Ij},toArray:function(){return Il},toEntries:function(){return ID},toUnfoldable:function(){return Ip},traverse:function(){return IM},traverseWithIndex:function(){return Iw},union:function(){return IG},updateAt:function(){return Im},upsertAt:function(){return Id},wilt:function(){return IC},wither:function(){return IE}});var th={};e.r(th),e.d(th,{and:function(){return RY},compose:function(){return RB},fromEitherK:function(){return Rj},fromOptionK:function(){return RN},id:function(){return Rq},not:function(){return RG},or:function(){return RK},zero:function(){return RV}});var tm={};e.r(tm),e.d(tm,{getFunctionRing:function(){return RJ},getTupleRing:function(){return RX},negate:function(){return Rz},tuple:function(){return RH}});var tv={};e.r(tv);var tg={};e.r(tg),e.d(tg,{getFunctionSemiring:function(){return R$}});var ty={};e.r(ty),e.d(ty,{getStructShow:function(){return R2},getTupleShow:function(){return R1},showBoolean:function(){return R5},showNumber:function(){return R3},showString:function(){return R8},struct:function(){return RQ},tuple:function(){return R0}});var tb={};e.r(tb),e.d(tb,{ap:function(){return R9},chain:function(){return R6},evaluate:function(){return Sr},execute:function(){return Si},flatMap:function(){return St},fromF:function(){return Se},fromState:function(){return Sn},getStateM:function(){return Su},map:function(){return R7},of:function(){return R4}});var t_={};e.r(t_),e.d(t_,{Alt:function(){return Tk},Applicative:function(){return Tc},Apply:function(){return Tr},Bifunctor:function(){return TC},Chain:function(){return Tf},FromEither:function(){return TI},FromIO:function(){return TR},FromReader:function(){return TT},FromState:function(){return Tl},FromTask:function(){return TS},Functor:function(){return S9},Monad:function(){return Tg},MonadIO:function(){return Ty},MonadTask:function(){return Tb},MonadThrow:function(){return T_},Pointed:function(){return Te},URI:function(){return S7},alt:function(){return S3},altW:function(){return S8},ap:function(){return Sq},apFirst:function(){return Ti},apFirstW:function(){return Tu},apS:function(){return xr},apSW:function(){return xi},apSecond:function(){return To},apSecondW:function(){return Ta},apW:function(){return SG},as:function(){return S6},asUnit:function(){return Tt},ask:function(){return TW},asks:function(){return TF},asksStateReaderTaskEither:function(){return SM},asksStateReaderTaskEitherW:function(){return Sw},bimap:function(){return SN},bind:function(){return xn},bindTo:function(){return T6},bindW:function(){return xe},chain:function(){return xl},chainEitherK:function(){return TK},chainEitherKW:function(){return TY},chainFirst:function(){return xd},chainFirstEitherK:function(){return TV},chainFirstEitherKW:function(){return TB},chainFirstIOK:function(){return TQ},chainFirstReaderK:function(){return TU},chainFirstReaderKW:function(){return TL},chainFirstTaskK:function(){return T4},chainFirstW:function(){return xs},chainIOEitherK:function(){return T5},chainIOEitherKW:function(){return T2},chainIOK:function(){return TZ},chainOptionK:function(){return Tq},chainOptionKW:function(){return TG},chainReaderK:function(){return TA},chainReaderKW:function(){return TD},chainReaderTaskEitherK:function(){return SW},chainReaderTaskEitherKW:function(){return Sk},chainStateK:function(){return Tv},chainTaskEitherK:function(){return T1},chainTaskEitherKW:function(){return T0},chainTaskK:function(){return T3},chainW:function(){return xp},evalState:function(){return xv},evaluate:function(){return T7},execState:function(){return xg},execute:function(){return T9},filterOrElse:function(){return Tz},filterOrElseW:function(){return TX},flap:function(){return Tn},flatMap:function(){return SV},flatMapEither:function(){return SZ},flatMapIO:function(){return Sz},flatMapIOEither:function(){return S$},flatMapOption:function(){return SQ},flatMapReader:function(){return SJ},flatMapReaderTaskEither:function(){return S0},flatMapState:function(){return S1},flatMapTask:function(){return SX},flatMapTaskEither:function(){return SH},flatten:function(){return S5},flattenW:function(){return S2},fromEither:function(){return Sv},fromEitherK:function(){return TJ},fromIO:function(){return Sy},fromIOEither:function(){return SR},fromIOEitherK:function(){return SO},fromIOK:function(){return T$},fromOption:function(){return TN},fromOptionK:function(){return Tj},fromPredicate:function(){return TH},fromReader:function(){return Sg},fromReaderEither:function(){return SS},fromReaderK:function(){return TP},fromReaderTaskEither:function(){return ST},fromReaderTaskEitherK:function(){return SC},fromState:function(){return S_},fromStateK:function(){return Tm},fromTask:function(){return Sb},fromTaskEither:function(){return SI},fromTaskEitherK:function(){return SE},fromTaskK:function(){return T8},get:function(){return Tp},gets:function(){return Th},left:function(){return So},leftIO:function(){return Ss},leftReader:function(){return Sp},leftState:function(){return Sm},leftTask:function(){return Sf},let:function(){return xt},local:function(){return Sx},map:function(){return SL},mapLeft:function(){return Sj},modify:function(){return Ts},of:function(){return SK},put:function(){return Td},right:function(){return Sa},rightIO:function(){return Sd},rightReader:function(){return Sl},rightState:function(){return Sh},rightTask:function(){return Sc},run:function(){return xy},sequenceArray:function(){return xf},stateReaderTaskEither:function(){return xh},stateReaderTaskEitherSeq:function(){return xm},tap:function(){return Tx},tapEither:function(){return Tw},tapIO:function(){return TM},tapReader:function(){return TE},tapTask:function(){return TO},throwError:function(){return S4},traverseArray:function(){return xc},traverseArrayWithIndex:function(){return xa},traverseReadonlyArrayWithIndex:function(){return xo},traverseReadonlyNonEmptyArrayWithIndex:function(){return xu}});var tI={};e.r(tI),e.d(tI,{Comonad:function(){return xk},Functor:function(){return xE},URI:function(){return xO},duplicate:function(){return xw},experiment:function(){return xR},extend:function(){return xT},extract:function(){return xx},flap:function(){return xC},map:function(){return xM},peeks:function(){return xI},seek:function(){return xb},seeks:function(){return x_},store:function(){return xW}});var tR={};e.r(tR),e.d(tR,{fanOut:function(){return xP},fanout:function(){return xD},split:function(){return xF},splitStrong:function(){return xA}});var tS={};e.r(tS),e.d(tS,{evolve:function(){return xL},getAssignSemigroup:function(){return xU}});var tT={};e.r(tT),e.d(tT,{Alt:function(){return wj},Alternative:function(){return wK},ApT:function(){return w6},ApplicativePar:function(){return wO},ApplicativeSeq:function(){return wk},ApplyPar:function(){return wx},ApplySeq:function(){return wC},Chain:function(){return wW},Compactable:function(){return wH},Do:function(){return w8},Filterable:function(){return wz},FromEither:function(){return wF},FromIO:function(){return wP},FromTask:function(){return wA},Functor:function(){return w_},Monad:function(){return wY},MonadIO:function(){return wV},MonadTask:function(){return wB},Pointed:function(){return wT},URI:function(){return wb},Zero:function(){return wq},alt:function(){return wo},altW:function(){return wa},ap:function(){return x6},apFirst:function(){return ww},apS:function(){return w9},apSecond:function(){return wM},as:function(){return wI},asUnit:function(){return wR},bind:function(){return w7},bindTo:function(){return w3},chain:function(){return Ml},chainEitherK:function(){return wQ},chainFirst:function(){return Mp},chainFirstEitherK:function(){return w0},chainFirstIOK:function(){return w$},chainFirstTaskK:function(){return w5},chainIOK:function(){return wJ},chainNullableK:function(){return x3},chainOptionK:function(){return x7},chainTaskK:function(){return w2},compact:function(){return wl},filter:function(){return wd},filterMap:function(){return ws},flap:function(){return wS},flatMap:function(){return wn},flatMapIO:function(){return wr},flatMapTask:function(){return wi},flatten:function(){return wu},fold:function(){return xJ},foldW:function(){return xZ},fromEither:function(){return xK},fromEitherK:function(){return wZ},fromIO:function(){return xY},fromIOK:function(){return wX},fromNullable:function(){return x1},fromNullableK:function(){return x8},fromOption:function(){return xG},fromOptionK:function(){return x4},fromPredicate:function(){return xq},fromTask:function(){return xV},fromTaskEither:function(){return xB},fromTaskK:function(){return w1},getOrElse:function(){return xQ},getOrElseW:function(){return x0},guard:function(){return wG},let:function(){return w4},map:function(){return x9},match:function(){return xH},matchE:function(){return xX},matchEW:function(){return x$},matchW:function(){return xz},none:function(){return wf},of:function(){return wt},partition:function(){return wh},partitionMap:function(){return wm},separate:function(){return wp},sequenceArray:function(){return Mo},sequenceSeqArray:function(){return Mf},some:function(){return xj},tap:function(){return wD},tapEither:function(){return wU},tapIO:function(){return wL},tapTask:function(){return wN},traverseArray:function(){return Mu},traverseArrayWithIndex:function(){return Mi},traverseReadonlyArrayWithIndex:function(){return Mn},traverseReadonlyArrayWithIndexSeq:function(){return Mr},traverseReadonlyNonEmptyArrayWithIndex:function(){return Mt},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return Me},traverseSeqArray:function(){return Mc},traverseSeqArrayWithIndex:function(){return Ma},tryCatch:function(){return x2},tryCatchK:function(){return x5},zero:function(){return wc}});var tx={};e.r(tx),e.d(tx,{ApT:function(){return Ou},Bifunctor:function(){return M5},Foldable:function(){return M3},FromEither:function(){return M7},FromThese:function(){return M8},Functor:function(){return M0},Pointed:function(){return M2},Traversable:function(){return M4},URI:function(){return MQ},bimap:function(){return MY},both:function(){return Mg},elem:function(){return On},exists:function(){return Oe},flap:function(){return M1},fold:function(){return MI},foldMap:function(){return Mz},foldW:function(){return Mb},fromOption:function(){return M6},fromOptionK:function(){return Ot},fromOptions:function(){return MD},fromPredicate:function(){return M9},getApplicative:function(){return MM},getApply:function(){return Mw},getChain:function(){return MO},getEq:function(){return MT},getLeft:function(){return MC},getLeftOnly:function(){return MP},getMonad:function(){return ME},getRight:function(){return Mk},getRightOnly:function(){return MA},getSemigroup:function(){return Mx},getShow:function(){return MS},isBoth:function(){return Mh},isLeft:function(){return Md},isRight:function(){return Ms},left:function(){return Mm},leftOrBoth:function(){return MW},map:function(){return MB},mapLeft:function(){return MV},match:function(){return M_},matchW:function(){return My},of:function(){return MZ},reduce:function(){return MH},reduceRight:function(){return MX},right:function(){return Mv},rightOrBoth:function(){return MF},sequence:function(){return M$},swap:function(){return MR},these:function(){return Oc},toTuple:function(){return Oi},toTuple2:function(){return Or},traverse:function(){return MJ},traverseReadonlyArrayWithIndex:function(){return Oa},traverseReadonlyNonEmptyArrayWithIndex:function(){return Oo}});var tw={};e.r(tw),e.d(tw,{ap:function(){return Om},bimap:function(){return Og},both:function(){return Op},chain:function(){return Ov},getTheseM:function(){return OS},left:function(){return Ol},leftF:function(){return Os},map:function(){return Oh},mapLeft:function(){return Oy},match:function(){return Ob},matchE:function(){return O_},right:function(){return Of},rightF:function(){return Od},swap:function(){return OI},toTuple2:function(){return OR}});var tM={};e.r(tM),e.d(tM,{ApT:function(){return Eo},Bifunctor:function(){return O8},FromEither:function(){return O3},FromIO:function(){return En},FromTask:function(){return Er},FromThese:function(){return O6},Functor:function(){return O1},Pointed:function(){return O5},URI:function(){return OJ},bifunctorTaskThese:function(){return Ed},bimap:function(){return OH},both:function(){return Ow},flap:function(){return O2},fold:function(){return ON},foldW:function(){return Oq},fromEither:function(){return Ok},fromIO:function(){return OF},fromIOEither:function(){return OP},fromIOK:function(){return Ee},fromOption:function(){return O4},fromOptionK:function(){return O7},fromPredicate:function(){return O9},fromTask:function(){return OA},fromTaskK:function(){return Ei},fromThese:function(){return OW},fromTheseK:function(){return Et},functorTaskThese:function(){return Ep},getApplicative:function(){return OZ},getApply:function(){return O$},getChain:function(){return OQ},getMonad:function(){return O0},getSemigroup:function(){return Em},left:function(){return OT},leftIO:function(){return OC},leftTask:function(){return OO},map:function(){return OB},mapLeft:function(){return Oz},match:function(){return OD},matchE:function(){return OL},matchEW:function(){return Oj},matchW:function(){return OU},of:function(){return OX},right:function(){return Ox},rightIO:function(){return OE},rightTask:function(){return OM},swap:function(){return OG},taskThese:function(){return Eh},toTuple:function(){return Es},toTuple2:function(){return Eu},traverseReadonlyArrayWithIndex:function(){return Ec},traverseReadonlyArrayWithIndexSeq:function(){return El},traverseReadonlyNonEmptyArrayWithIndex:function(){return Ea},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return Ef}});var tO={};e.r(tO),e.d(tO,{Functor:function(){return ET},URI:function(){return ES},censor:function(){return Eb},flap:function(){return Ex},getComonad:function(){return E_},listen:function(){return Eg},listens:function(){return Ey},map:function(){return ER},traced:function(){return Ew},tracks:function(){return Ev}});var tE={};e.r(tE),e.d(tE,{getTraversableComposition:function(){return EE},sequence:function(){return EO},traverse:function(){return EM}});var tC={};e.r(tC);var tk={};e.r(tk),e.d(tk,{Applicative:function(){return Ci},Apply:function(){return Cn},Chain:function(){return Cu},Comonad:function(){return Cl},Do:function(){return Cp},Foldable:function(){return Cc},Functor:function(){return E9},Monad:function(){return Co},Pointed:function(){return Ct},Traversable:function(){return Cf},URI:function(){return E7},ap:function(){return Ez},apFirst:function(){return Ce},apS:function(){return Cm},apSecond:function(){return Cr},bind:function(){return Ch},bindTo:function(){return Cd},chain:function(){return Cy},chainFirst:function(){return Ca},drawForest:function(){return EP},drawTree:function(){return EA},duplicate:function(){return E$},elem:function(){return Cv},exists:function(){return Cg},extend:function(){return EJ},extract:function(){return E5},flap:function(){return E6},flatMap:function(){return EX},flatten:function(){return EZ},fold:function(){return Ej},foldMap:function(){return E1},getEq:function(){return EW},getShow:function(){return Ek},let:function(){return Cs},make:function(){return EC},map:function(){return EQ},of:function(){return E4},reduce:function(){return E0},reduceRight:function(){return E2},sequence:function(){return E3},traverse:function(){return E8},tree:function(){return Cb},unfoldForest:function(){return EU},unfoldForestM:function(){return EN},unfoldTree:function(){return ED},unfoldTreeM:function(){return EL}});var tW={};e.r(tW),e.d(tW,{Bifunctor:function(){return CQ},Comonad:function(){return C1},Foldable:function(){return C2},Functor:function(){return C$},Semigroupoid:function(){return C0},Traversable:function(){return C5},URI:function(){return CJ},bimap:function(){return CL},compose:function(){return Cq},duplicate:function(){return CK},extend:function(){return CG},extract:function(){return CY},flap:function(){return CZ},foldMap:function(){return CV},fst:function(){return C_},getApplicative:function(){return Cx},getApply:function(){return CS},getChain:function(){return Cw},getChainRec:function(){return CO},getMonad:function(){return CM},map:function(){return C8},mapFst:function(){return CN},mapLeft:function(){return C3},mapSnd:function(){return Cj},reduce:function(){return CB},reduceRight:function(){return CH},sequence:function(){return CX},snd:function(){return CI},swap:function(){return CR},traverse:function(){return Cz},tuple:function(){return C4}});var tF={};e.r(tF);var tP={};e.r(tP),e.d(tP,{getValidationM:function(){return C7}});var tA={};e.r(tA),e.d(tA,{Monoid:function(){return C6},Semigroup:function(){return C9}});var tD={};e.r(tD),e.d(tD,{Functor:function(){return ks},URI:function(){return ka},censor:function(){return ki},evalWriter:function(){return kg},evaluate:function(){return km},execWriter:function(){return ky},execute:function(){return kv},flap:function(){return kh},getApplicative:function(){return kl},getApply:function(){return kf},getChain:function(){return kp},getMonad:function(){return kd},getPointed:function(){return kc},listen:function(){return kn},listens:function(){return kr},map:function(){return ko},pass:function(){return ke},tell:function(){return kt},writer:function(){return kb}});var tU={};function tL(t){return function(n){return function(e){return e.reduce(function(n,e){return t.alt(n,function(){return e})},n)}}}e.r(tU),e.d(tU,{getWriterM:function(){return k_}});var tN=e(42925);function tj(t){return tL(t)(t.zero())}function tq(t){var n=(0,tN.getApplySemigroup)(t);return function(e){var r=n(e);return{concat:function(n,e){return t.alt(r.concat(n,e),function(){return t.alt(n,function(){return e})})},empty:t.zero()}}}var tG=e(46111),tK=e(1358),tY=function(t){return"boolean"==typeof t},tV=function(t,n){return function(e){return e?n():t()}},tB=tV,tH=tB,tz=tH,tX={equals:function(t,n){return t===n}},tJ={meet:function(t,n){return t&&n},join:function(t,n){return t||n},zero:!1,one:!0,implies:function(t,n){return!t||n},not:function(t){return!t}},t$={concat:function(t,n){return t&&n}},tZ={concat:function(t,n){return t||n}},tQ={concat:t$.concat,empty:!0},t0={concat:tZ.concat,empty:!1},t1={equals:tX.equals,compare:function(t,n){return t<n?-1:t>n?1:0}},t2={show:function(t){return JSON.stringify(t)}},t5=e(42275),t8=function(t){return{meet:function(n,e){return t.join(n,e)},join:function(n,e){return t.meet(n,e)},zero:t.one,one:t.zero,implies:function(n,e){return t.join(t.not(n),e)},not:t.not}},t3={meet:function(){},join:function(){},zero:void 0,one:void 0,implies:function(){},not:function(){}},t4=t8,t7={meet:function(t,n){return t&&n},join:function(t,n){return t||n},zero:!1,one:!0,implies:function(t,n){return!t||n},not:function(t){return!t}},t9=t5.getBooleanAlgebra,t6=e(5586),nt=function(t){return t6.clamp(t)(t.bottom,t.top)},nn=function(t){var n=t6.reverse(t);return{equals:n.equals,compare:n.compare,top:t.bottom,bottom:t.top}},ne={equals:t6.ordNumber.equals,compare:t6.ordNumber.compare,top:1/0,bottom:-1/0};function nr(t){return{meet:(0,t6.min)(t),join:(0,t6.max)(t)}}function ni(t){var n=nr(t);return function(t,e){return{join:n.join,meet:n.meet,zero:t,one:e}}}var nu=e(88543),no=e(56661);function na(t,n){return function(e,r){return n.compose(t.right(r),t.left(e))}}function nc(t,n){var e=na(t,n);return function(r,i){return n.compose(t.promap(n.id(),function(t){return"Left"===t._tag?t.left:t.right},t5.identity),e(r,i))}}function nf(t){return na(t,t)}function nl(t){return nc(t,t)}var np=e(67560),nd=e(20492),ns=e(34219);function nh(t,n){return function(e){return t.map(e,n.compact)}}function nm(t,n,e){var r=nh(t,n),i=(0,np.map)(t,e);return function(t){return ns.separated(r((0,t5.pipe)(t,i(nd.getLeft))),r((0,t5.pipe)(t,i(nd.getRight))))}}function nv(t,n){return{map:(0,np.getFunctorComposition)(t,n).map,compact:nh(t,n),separate:nm(t,n,n)}}var ng=function(t){return function(){return console.log(t)}},ny=function(t){return function(){return console.warn(t)}},nb=function(t){return function(){return console.error(t)}},n_=function(t){return function(){return console.info(t)}},nI=e(90817),nR=e(76627),nS={equals:function(t,n){return t.valueOf()===n.valueOf()}},nT={equals:function(t,n){return t.getDate()===n.getDate()}},nx={equals:function(t,n){return t.getMonth()===n.getMonth()}},nw={equals:function(t,n){return t.getFullYear()===n.getFullYear()}},nM=(0,t5.pipe)(nR.Ord,t6.contramap(function(t){return t.valueOf()})),nO=function(){return new Date},nE=function(){return new Date().getTime()},nC=e(81878);function nk(t){return(0,t5.flow)(nC.right,t.of)}function nW(t){return(0,t5.flow)(nC.left,t.of)}function nF(t){return function(n){return t.map(n,nC.right)}}function nP(t){return function(n){return t.map(n,nC.left)}}function nA(t){return function(n){return(0,t5.flow)(nC.fromNullable(n),t.of)}}function nD(t){var n=nA(t);return function(t){var e=n(t);return function(t){return(0,t5.flow)(t,e)}}}function nU(t){var n=nj(t),e=nD(t);return function(t){var r=e(t);return function(t){return n(r(t))}}}function nL(t){return(0,np.map)(t,nC.Functor)}function nN(t){return(0,tN.ap)(t,nC.Apply)}function nj(t){var n=nq(t);return function(t){return function(e){return n(e,t)}}}function nq(t){return function(n,e){return t.chain(n,function(n){return nC.isLeft(n)?t.of(n):e(n.right)})}}function nG(t){return function(n){return function(e){return t.chain(e,function(e){return nC.isLeft(e)?n():t.of(e)})}}}function nK(t){var n=nY(t);return function(t,e){return function(r){return n(r,t,e)}}}function nY(t){return function(n,e,r){return t.map(n,nC.bimap(e,r))}}function nV(t){var n=nB(t);return function(t){return function(e){return n(e,t)}}}function nB(t){return function(n,e){return t.map(n,nC.mapLeft(e))}}function nH(t,n){return function(e){return function(r){return t.chain(r,nC.match(function(r){return t.map(e(),nC.mapLeft(function(t){return n.concat(r,t)}))},nk(t)))}}}function nz(t){return function(n,e){return function(r){return t.map(r,nC.match(n,e))}}}function nX(t){return function(n,e){return function(r){return t.chain(r,nC.match(n,e))}}}function nJ(t){return function(n){return function(e){return t.chain(e,nC.match(n,t.of))}}}function n$(t){return function(n){return function(e){return t.chain(e,function(e){return nC.isLeft(e)?n(e.left):t.of(e)})}}}function nZ(t){var n=nQ(t);return function(t){return function(e){return n(e,t)}}}function nQ(t){var n=n$(t);return function(e,r){return(0,t5.pipe)(e,n(function(n){return t.map(r(n),function(t){return nC.isLeft(t)?t:nC.left(n)})}))}}function n0(t){return function(n){return function(e){return t.chain(e,nC.match(function(e){return t.map(n(e),nC.left)},function(n){return t.of(nC.right(n))}))}}}function n1(t){return function(n){return t.map(n,nC.swap)}}function n2(t){return function(n){return t.map(n,nC.toUnion)}}function n5(t){var n=nN(t),e=nL(t),r=nj(t),i=nG(t),u=nK(t),o=nV(t),a=nX(t),c=nJ(t),f=n$(t);return{map:function(t,n){return(0,t5.pipe)(t,e(n))},ap:function(t,e){return(0,t5.pipe)(t,n(e))},of:nk(t),chain:function(t,n){return(0,t5.pipe)(t,r(n))},alt:function(t,n){return(0,t5.pipe)(t,i(n))},bimap:function(t,n,e){return(0,t5.pipe)(t,u(n,e))},mapLeft:function(t,n){return(0,t5.pipe)(t,o(n))},fold:function(t,n,e){return(0,t5.pipe)(t,a(n,e))},getOrElse:function(t,n){return(0,t5.pipe)(t,c(n))},orElse:function(t,n){return(0,t5.pipe)(t,f(n))},swap:n1(t),rightM:nF(t),leftM:nP(t),left:nW(t)}}var n8=e(47797),n3=e(65191);function n4(t,n){var e=n.zero,r=function(i,u){return t.equals(u,e)?i:r(u,n.mod(i,u))};return r}function n7(t,n){var e=n.zero,r=n4(t,n);return function(i,u){return t.equals(i,e)||t.equals(u,e)?e:n.div(n.mul(i,u),r(i,u))}}var n9={add:function(t,n){return t+n},zero:0,mul:function(t,n){return t*n},one:1,sub:function(t,n){return t-n},degree:function(t){return 1},div:function(t,n){return t/n},mod:function(t,n){return t%n}},n6=e(88491);function et(t,n){return function(e){return function(r){return t.map(r,function(t){return n.filter(t,e)})}}}function en(t,n){return function(e){return function(r){return t.map(r,function(t){return n.filterMap(t,e)})}}}function ee(t,n){var e=et(t,n);return function(t){var n=e((0,n6.not)(t)),r=e(t);return function(t){return(0,ns.separated)(n(t),r(t))}}}function er(t,n){var e=en(t,n);return function(t){return function(n){return(0,ns.separated)((0,t5.pipe)(n,e(function(n){return(0,nd.getLeft)(t(n))})),(0,t5.pipe)(n,e(function(n){return(0,nd.getRight)(t(n))})))}}}function ei(t,n){var e=(0,np.getFunctorComposition)(t,n).map,r=nh(t,n),i=nm(t,n,n),u=et(t,n),o=en(t,n),a=ee(t,n),c=er(t,n);return{map:e,compact:r,separate:i,filter:function(t,n){return(0,t5.pipe)(t,u(n))},filterMap:function(t,n){return(0,t5.pipe)(t,o(n))},partition:function(t,n){return(0,t5.pipe)(t,a(n))},partitionMap:function(t,n){return(0,t5.pipe)(t,c(n))}}}function eu(t,n){return function(e,r){return function(i){return t.reduce(i,e,function(t,e){return n.reduce(e,t,r)})}}}function eo(t,n){return function(e){var r=t.foldMap(e),i=n.foldMap(e);return function(t){return function(n){return r(n,function(n){return i(n,t)})}}}}function ea(t,n){return function(e,r){return function(i){return t.reduceRight(i,e,function(t,e){return n.reduceRight(t,e,r)})}}}function ec(t,n){return function(e,r){return function(i){return n.reduce(i,t.of(e),function(n,e){return t.chain(n,function(t){return r(t,e)})})}}}function ef(t,n){return function(e,r){return n.reduce(r,{init:!0,acc:t.empty},function(n,r){var i=n.init,u=n.acc;return i?{init:!1,acc:r}:{init:!1,acc:t.concat(t.concat(u,e),r)}}).acc}}function el(t){return function(n){return t.reduce(n,[],function(t,n){return t.push(n),t})}}function ep(t,n){var e=t.of(void 0);return function(r,i){return n.reduce(r,e,function(n,e){var r;return r=i(e),t.ap(t.map(n,t5.constant),r)})}}function ed(t,n){return function(e,r,i){return n.reduce(e,t.of(r),function(n,e){return t.chain(n,function(t){return i(t,e)})})}}var es=el;function eh(t,n){var e=eu(t,n),r=eo(t,n),i=ea(t,n);return{reduce:function(t,n,r){return(0,t5.pipe)(t,e(n,r))},foldMap:function(t){var n=r(t);return function(t,e){return(0,t5.pipe)(t,n(e))}},reduceRight:function(t,n,e){return(0,t5.pipe)(t,i(n,e))}}}function em(t,n){return function(e,r){return function(i){return t.reduceWithIndex(i,e,function(t,e,i){return n.reduceWithIndex(i,e,function(n,e,i){return r([t,n],e,i)})})}}}function ev(t,n){return function(e){var r=t.foldMapWithIndex(e),i=n.foldMapWithIndex(e);return function(t){return function(n){return r(n,function(n,e){return i(e,function(e,r){return t([n,e],r)})})}}}}function eg(t,n){return function(e,r){return function(i){return t.reduceRightWithIndex(i,e,function(t,e,i){return n.reduceRightWithIndex(e,i,function(n,e,i){return r([t,n],e,i)})})}}}function ey(t,n){var e=eh(t,n),r=em(t,n),i=ev(t,n),u=eg(t,n);return{reduce:e.reduce,foldMap:e.foldMap,reduceRight:e.reduceRight,reduceWithIndex:function(t,n,e){return(0,t5.pipe)(t,r(n,e))},foldMapWithIndex:function(t){var n=i(t);return function(t,e){return(0,t5.pipe)(t,n(e))}},reduceRightWithIndex:function(t,n,e){return(0,t5.pipe)(t,u(n,e))}}}var eb=e(25162);function e_(t){return function(n){return(0,t5.flow)(n,t.fromIO)}}function eI(t,n){return function(e){var r=(0,t5.flow)(e,t.fromIO);return function(t){return n.chain(t,r)}}}function eR(t,n){var e=eS(t,n);return function(t){return function(n){return e(n,t)}}}function eS(t,n){var e=(0,nu.tap)(n);return function(n,r){return e(n,(0,t5.flow)(r,t.fromIO))}}var eT=e(97963),ex=function(){return t5.identity},ew=t5.identity,eM=function(t){return function(n){return function(e){return n(t(e))}}},eO=function(t){return function(n){return t(n)(n)}},eE=eO,eC=function(t,n){return(0,t5.pipe)(t,eP(n))},ek=function(t,n){return(0,t5.pipe)(t,eD(n))},eW=function(t,n){return(0,t5.pipe)(t,eq(n))},eF=function(t,n,e){return(0,t5.pipe)(t,eG(n,e))},eP=function(t){return function(n){return function(e){return t(n(e))}}},eA=function(t){return function(n){return function(e){return n(e)(t(e))}}},eD=eA,eU=t5.constant,eL=(0,t5.dual)(2,function(t,n){return function(e){return n(t(e))(e)}}),eN=eL(t5.identity),ej=eN,eq=function(t){return function(n){return(0,t5.flow)(t,n)}},eG=function(t,n){return function(e){return function(r){return n(e(t(r)))}}},eK=function(){return t5.identity},eY=function(t){return function(n){var e=n[0],r=n[1];return[t(e),r]}},eV=function(t){return function(n){return[n[0],t(n[1])]}},eB=function(t){return nC.fold(function(n){return eT.t$(t(n))},nC.right)},eH=function(t){return nC.fold(nC.left,function(n){return eT.F2(t(n))})},ez="Reader",eX={URI:ez,map:eC},eJ=(0,np.flap)(eX),e$={URI:ez,of:eU},eZ={URI:ez,map:eC,ap:ek},eQ=(0,tN.apFirst)(eZ),e0=eQ,e1=(0,tN.apSecond)(eZ),e2=e1,e5={URI:ez,map:eC,ap:ek,of:eU},e8={URI:ez,map:eC,ap:ek,chain:eL},e3={URI:ez,map:eC,of:eU,ap:ek,chain:eL},e4=(0,t5.dual)(2,nu.tap(e8)),e7={URI:ez,map:eC,promap:eF},e9={URI:ez,compose:eW,id:eK},e6={URI:ez,map:eC,promap:eF,first:eY,second:eV},rt={URI:ez,map:eC,promap:eF,left:eB,right:eH},rn=(0,np.bindTo)(eX),re=(0,np.let)(eX),rr=nu.bind(e8),ri=rr,ru=eU(eT.F4),ro=(0,tN.apS)(eZ),ra=ro,rc=eU(eT.Xl),rf=function(t){return function(n){return function(e){for(var r=[t(0,eT.YM(n))(e)],i=1;i<n.length;i++)r.push(t(i,n[i])(e));return r}}},rl=function(t){var n=rf(t);return function(t){return eT.Od(t)?n(t):rc}},rp=rl,rd=function(t){return rl(function(n,e){return t(e)})},rs=rd(t5.identity),rh=eL,rm=eL,rv=e4,rg=e4,ry={URI:ez,map:eC,of:eU,ap:ek,chain:eL,promap:eF,compose:eW,id:eK,first:eY,second:eV,left:eB,right:eH},rb=(0,tN.getApplySemigroup)(eZ),r_=(0,tG.getApplicativeMonoid)(e5);function rI(t){return function(){return t.fromReader(ex())}}function rR(t){return t.fromReader}function rS(t){return function(n){return(0,t5.flow)(n,t.fromReader)}}function rT(t,n){var e=rS(t);return function(t){return function(r){return n.chain(r,e(t))}}}function rx(t,n){var e=rw(t,n);return function(t){return function(n){return e(n,t)}}}function rw(t,n){var e=(0,nu.tap)(n);return function(n,r){return e(n,(0,t5.flow)(r,t.fromReader))}}var rM=function(){return function(t){return[t,t]}},rO=function(t){return function(){return[void 0,t]}},rE=function(t){return function(n){return[void 0,t(n)]}},rC=function(t){return function(n){return[t(n),n]}},rk=function(t,n){return(0,t5.pipe)(t,rF(n))},rW=function(t,n){return(0,t5.pipe)(t,rP(n))},rF=function(t){return function(n){return function(e){var r=n(e),i=r[0],u=r[1];return[t(i),u]}}},rP=function(t){return function(n){return function(e){var r=n(e),i=r[0],u=t(r[1]),o=u[0],a=u[1];return[i(o),a]}}},rA=function(t){return function(n){return[t,n]}},rD=(0,t5.dual)(2,function(t,n){return function(e){var r=t(e),i=r[0],u=r[1];return n(i)(u)}}),rU=rD(t5.identity),rL="State",rN={URI:rL,map:rk},rj=(0,np.flap)(rN),rq={URI:rL,of:rA},rG={URI:rL,map:rk,ap:rW},rK=(0,tN.apFirst)(rG),rY=(0,tN.apSecond)(rG),rV={URI:rL,map:rk,ap:rW,of:rA},rB={URI:rL,map:rk,ap:rW,chain:rD},rH={URI:rL,map:rk,ap:rW,of:rA,chain:rD},rz=(0,t5.dual)(2,nu.tap(rB)),rX={URI:rL,fromState:t5.identity},rJ=function(t){return function(n){return n(t)[0]}},r$=function(t){return function(n){return n(t)[1]}},rZ=(0,np.bindTo)(rN),rQ=(0,np.let)(rN),r0=nu.bind(rB),r1=(0,tN.apS)(rG),r2=function(t){return function(n){return function(e){for(var r=t(0,eT.YM(n))(e),i=r[0],u=r[1],o=[i],a=u,c=1;c<n.length;c++){var f=t(c,n[c])(a),l=f[0],p=f[1];o.push(l),a=p}return[o,a]}}},r5=function(t){var n=r2(t);return function(t){return eT.Od(t)?n(t):rA(eT.Xl)}},r8=r5,r3=function(t){return r5(function(n,e){return t(e)})},r4=r3(t5.identity),r7=rD,r9=rz,r6=function(t,n){return t(n)[0]},it=function(t,n){return t(n)[1]},ie=rH;function ir(t){return function(){return t.fromState(rM())}}function ii(t){return function(n){return t.fromState(rO(n))}}function iu(t){return(0,t5.flow)(rE,t.fromState)}function io(t){return(0,t5.flow)(rC,t.fromState)}function ia(t){return function(n){return(0,t5.flow)(n,t.fromState)}}function ic(t,n){var e=ia(t);return function(t){return function(r){return n.chain(r,e(t))}}}function il(t){return function(n){return(0,t5.flow)(n,t.fromTask)}}function ip(t,n){return function(e){var r=(0,t5.flow)(e,t.fromTask);return function(t){return n.chain(t,r)}}}function id(t,n){var e=is(t,n);return function(t){return function(n){return e(n,t)}}}function is(t,n){var e=(0,nu.tap)(n);return function(n,r){return e(n,(0,t5.flow)(r,t.fromTask))}}function ih(t){return function(n){return(0,t5.flow)(n,t.fromThese)}}function im(t,n){return function(e){return function(r){return t.mapWithIndex(r,function(t,r){return n.mapWithIndex(r,function(n,r){return e([t,n],r)})})}}}function iv(t,n){var e=(0,np.getFunctorComposition)(t,n).map,r=im(t,n);return{map:e,mapWithIndex:function(t,n){return(0,t5.pipe)(t,r(n))}}}var ig=function(t,n){return(0,t5.pipe)(t,iw(n))},iy=function(t,n){return(0,t5.pipe)(t,iM(n))},ib=function(t,n,e){return(0,t5.pipe)(t,iP(n,e))},i_=function(t){return function(n,e){return(0,t5.pipe)(n,iA(t)(e))}},iI=function(t,n,e){return(0,t5.pipe)(t,iD(n,e))},iR=function(t,n){return(0,t5.pipe)(t,ij(n))},iS=function(t,n){return(0,t5.pipe)(t,iC(n))},iT=function(t){var n=iU(t);return function(t,e){return(0,t5.pipe)(t,n(e))}},ix=no.tailRec,iw=function(t){return function(n){return t(n)}},iM=function(t){return function(n){return n(t)}},iO=t5.identity,iE=(0,t5.dual)(2,function(t,n){return n(t)}),iC=function(t){return function(n){return t(n)}},ik=t5.identity,iW=iC(t5.identity),iF=iE(t5.identity),iP=function(t,n){return function(e){return n(t,e)}},iA=function(){return function(t){return function(n){return t(n)}}},iD=function(t,n){return function(e){return n(e,t)}},iU=function(t){return function(n){return function(e){return t.map(n(e),t5.identity)}}},iL=function(t){return function(n){return t.map(n,t5.identity)}},iN=function(){return t5.identity},ij=iN,iq="Identity",iG=t5.identity,iK=t5.identity,iY={URI:iq,map:ig},iV=(0,np.flap)(iY),iB={URI:iq,of:iO},iH={URI:iq,map:ig,ap:iy},iz=(0,tN.apFirst)(iH),iX=(0,tN.apSecond)(iH),iJ={URI:iq,map:ig,ap:iy,of:iO},i$={URI:iq,map:ig,ap:iy,chain:iE},iZ={URI:iq,map:ig,ap:iy,of:iO,chain:iE},iQ=(0,nu.chainFirst)(i$),i0={URI:iq,reduce:ib,foldMap:i_,reduceRight:iI},i1={URI:iq,map:ig,reduce:ib,foldMap:i_,reduceRight:iI,traverse:iT,sequence:iL},i2={URI:iq,map:ig,alt:iR},i5={URI:iq,map:ig,extend:iS,extract:ik},i8={URI:iq,map:ig,ap:iy,chain:iE,chainRec:ix},i3=iO(eT.F4),i4=(0,np.bindTo)(iY),i7=(0,np.let)(iY),i9=(0,nu.bind)(i$),i6=(0,tN.apS)(iH),ut=iE,un={URI:iq,map:ig,ap:iy,of:iO,chain:iE,reduce:ib,foldMap:i_,reduceRight:iI,traverse:iT,sequence:iL,alt:iR,extract:ik,extend:iS,chainRec:ix},ue=function(t,n){return function(){return n(t())}},ur=function(t,n){return function(){return t()(n())}},ui=function(t,n){return function(){for(var e=n(t)();"Left"===e._tag;)e=n(e.left)();return e.right}},uu=function(t){return function(n){return ue(n,t)}},uo=function(t){return function(n){return ur(n,t)}},ua=t5.constant,uc=(0,t5.dual)(2,function(t,n){return function(){return n(t())()}}),uf=uc(t5.identity),ul="IO",up={URI:ul,map:ue},ud=(0,t5.dual)(2,(0,np.as)(up)),us=(0,np.asUnit)(up),uh=(0,np.flap)(up),um={URI:ul,of:ua},uv={URI:ul,map:ue,ap:ur},ug=(0,tN.apFirst)(uv),uy=(0,tN.apSecond)(uv),ub={URI:ul,map:ue,ap:ur,of:ua},u_={URI:ul,map:ue,ap:ur,chain:uc},uI={URI:ul,map:ue,ap:ur,of:ua,chain:uc},uR=(0,t5.dual)(2,nu.tap(u_)),uS=t5.identity,uT={URI:ul,map:ue,ap:ur,of:ua,chain:uc,fromIO:uS},ux={URI:ul,map:ue,ap:ur,chain:uc,chainRec:ui},uw={URI:ul,fromIO:t5.identity},uM=ua(eT.F4),uO=(0,np.bindTo)(up),uE=(0,np.let)(up),uC=nu.bind(u_),uk=(0,tN.apS)(uv),uW=ua(eT.Xl),uF=function(t){return function(n){return function(){for(var e=[t(0,eT.YM(n))()],r=1;r<n.length;r++)e.push(t(r,n[r])());return e}}},uP=function(t){var n=uF(t);return function(t){return eT.Od(t)?n(t):uW}},uA=uP,uD=function(t){return uP(function(n,e){return t(e)})},uU=uD(t5.identity),uL=uc,uN=uR,uj={URI:ul,map:ue,of:ua,ap:ur,chain:uc,fromIO:uS,chainRec:ui},uq=(0,tN.getApplySemigroup)(uv),uG=(0,tG.getApplicativeMonoid)(ub),uK=nW(um),uY=nk(um),uV=nF(up),uB=nP(up),uH=ua,uz=uV,uX=nz(up),uJ=uX,u$=nX(uI),uZ=u$,uQ=u$,u0=uQ,u1=nJ(uI),u2=u1,u5=function(t,n){return function(){return nC.tryCatch(t,n)}},u8=function(t,n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return u5(function(){return t.apply(void 0,e)},n)}},u3=n2(up),u4=n$(uI),u7=u4,u9=(0,t5.dual)(2,nQ(uI)),u6=function(t){return u9(oH(t))},ot=n0(uI),on=n1(up),oe=function(t,n){return(0,t5.pipe)(t,ou(n))},or=function(t,n){return(0,t5.pipe)(t,ol(n))},oi=function(t,n){return(0,t5.pipe)(t,ov(n))},ou=nL(up),oo=(0,t5.dual)(3,nY(up)),oa=oo,oc=(0,t5.dual)(2,nB(up)),of=oc,ol=nN(uv),op=ol,od=uY,os=(0,t5.dual)(2,nq(uI)),oh=os(t5.identity),om=oh,ov=nG(uI),og=ov,oy=uK,ob="IOEither";function o_(t){var n=(0,tN.ap)(uv,nC.getApplicativeValidation(t));return{URI:ob,_E:void 0,map:oe,ap:function(t,e){return(0,t5.pipe)(t,n(e))},of:od}}function oI(t){var n=nH(uI,t);return{URI:ob,_E:void 0,map:oe,alt:function(t,e){return(0,t5.pipe)(t,n(e))}}}var oR=function(t){var n=nC.getCompactable(t);return{URI:ob,_E:void 0,compact:nh(up,n),separate:nm(up,n,nC.Functor)}};function oS(t){var n=nC.getFilterable(t),e=oR(t),r=et(up,n),i=en(up,n),u=ee(up,n),o=er(up,n);return{URI:ob,_E:void 0,map:oe,compact:e.compact,separate:e.separate,filter:function(t,n){return(0,t5.pipe)(t,r(n))},filterMap:function(t,n){return(0,t5.pipe)(t,i(n))},partition:function(t,n){return(0,t5.pipe)(t,u(n))},partitionMap:function(t,n){return(0,t5.pipe)(t,o(n))}}}var oT={URI:ob,map:oe},ox=(0,t5.dual)(2,(0,np.as)(oT)),ow=(0,np.asUnit)(oT),oM=(0,np.flap)(oT),oO={URI:ob,of:od},oE={URI:ob,bimap:oo,mapLeft:oc},oC={URI:ob,map:oe,ap:or},ok=(0,tN.apFirst)(oC),oW=ok,oF=(0,tN.apSecond)(oC),oP=oF,oA={URI:ob,map:oe,ap:or,of:od},oD={URI:ob,map:oe,ap:function(t,n){return os(t,function(t){return(0,t5.pipe)(n,ou(t))})},of:od},oU={URI:ob,map:oe,ap:or,chain:os},oL={URI:ob,map:oe,ap:or,of:od,chain:os},oN={URI:ob,fromEither:uH},oj={URI:ob,fromIO:uz},oq=(0,t5.dual)(2,nu.tap(oU)),oG=(0,t5.dual)(2,(0,eb.tapEither)(oN,oU)),oK=(0,t5.dual)(2,eS(oj,oU)),oY={URI:ob,map:oe,alt:oi},oV={URI:ob,map:oe,ap:or,of:od,chain:os,fromIO:uz},oB={URI:ob,map:oe,ap:or,of:od,chain:os,throwError:oy},oH=e_(oj),oz=oK,oX=(0,eb.fromOption)(oN),oJ=(0,eb.fromOptionK)(oN),o$=(0,eb.chainOptionK)(oN,oU),oZ=o$,oQ={fromEither:oN.fromEither},o0=eT.uL(oQ),o1=eT.WE(oQ),o2={flatMap:os},o5=eT.ny(oQ,o2),o8=eT.hU(oQ,o2),o3=eT.iu(oQ,o2),o4=eT.we({fromIO:uz},o2),o7=o4,o9=o3,o6=o3,at=oG,an=oG,ae=(0,eb.fromPredicate)(oN),ar=(0,eb.filterOrElse)(oN,oU),ai=ar,au=(0,eb.fromEitherK)(oN),ao=function(t,n,e){return aa(t,n,e)},aa=function(t,n,e){return os(t,function(t){return uc(n(t),function(n){return os(e(t,n),function(){return ua(n)})})})},ac=od(eT.F4),af=(0,np.bindTo)(oT),al=(0,np.let)(oT),ap=nu.bind(oU),ad=ap,as=(0,tN.apS)(oC),ah=as,am=od(eT.Xl),av=function(t){return(0,t5.flow)(uF(t),uu(nC.traverseReadonlyNonEmptyArrayWithIndex(t5.SK)))},ag=function(t){var n=av(t);return function(t){return eT.Od(t)?n(t):am}},ay=function(t){return function(n){return function(){var e=t(0,eT.YM(n))();if(eT.nM(e))return e;for(var r=[e.right],i=1;i<n.length;i++){var u=t(i,n[i])();if(eT.nM(u))return u;r.push(u.right)}return eT.F2(r)}}},ab=function(t){var n=ay(t);return function(t){return eT.Od(t)?n(t):am}},a_=ag,aI=function(t){return ag(function(n,e){return t(e)})},aR=aI(t5.identity),aS=ab,aT=function(t){return ab(function(n,e){return t(e)})},ax=aT(t5.identity),aw=oA,aM=os,aO=os,aE=oq,aC=oq,ak=u9,aW=u9,aF={URI:ob,bimap:oo,mapLeft:oc,map:oe,of:od,ap:or,chain:os,alt:oi,fromIO:uz,throwError:oy},aP=(0,tN.getApplySemigroup)(oC),aA=(0,tG.getApplicativeMonoid)(oA),aD=function(t){return(0,tN.getApplySemigroup)(uv)(nC.getSemigroup(t))};function aU(t){var n=o_(t),e=oI(t);return{URI:ob,_E:void 0,map:oe,ap:n.ap,of:od,chain:os,bimap:oo,mapLeft:oc,alt:e.alt,fromIO:uz,throwError:oy}}function aL(t){return(0,t5.flow)(nd.some,t.of)}function aN(t){return(0,t5.constant)(t.of(nd.none))}function aj(t){return function(n){return t.map(n,nd.some)}}function aq(t){return(0,t5.flow)(nd.fromNullable,t.of)}function aG(t){var n=aq(t);return function(t){return(0,t5.flow)(t,n)}}function aK(t){var n=aQ(t),e=aG(t);return function(t){return n(e(t))}}function aY(t){return function(n){return(0,t5.flow)(n,t.of)}}function aV(t){var n=aQ(t),e=aY(t);return function(t){return n(e(t))}}function aB(t){return function(n){return function(e){return t.of(nd.fromPredicate(n)(e))}}}function aH(t){return(0,t5.flow)(nd.fromEither,t.of)}function az(t){return function(n,e){return function(r){return t.map(r,nd.match(n,e))}}}function aX(t){return function(n,e){return function(r){return t.chain(r,nd.match(n,e))}}}function aJ(t){return function(n){return function(e){return t.chain(e,nd.match(n,t.of))}}}function a$(t){return(0,np.map)(t,nd.Functor)}function aZ(t){return(0,tN.ap)(t,nd.Apply)}function aQ(t){var n=a0(t);return function(t){return function(e){return n(e,t)}}}function a0(t){var n=aN(t);return function(e,r){return t.chain(e,nd.match(function(){return n()},r))}}function a1(t){var n=aL(t);return function(e){return function(r){return t.chain(r,nd.match(e,n))}}}function a2(t){var n=aZ(t),e=a$(t),r=aQ(t),i=a1(t),u=aX(t),o=aJ(t),a=aN(t);return{map:function(t,n){return(0,t5.pipe)(t,e(n))},ap:function(t,e){return(0,t5.pipe)(t,n(e))},of:aL(t),chain:function(t,n){return(0,t5.pipe)(t,r(n))},alt:function(t,n){return(0,t5.pipe)(t,i(n))},fold:function(t,n,e){return(0,t5.pipe)(t,u(n,e))},getOrElse:function(t,n){return(0,t5.pipe)(t,o(n))},fromM:aj(t),none:function(){return a()}}}var a5=e(28957),a8=aL(um),a3=aB(um),a4=ua,a7=aH(um),a9=aj(up),a6=uu(nd.fromEither),ct=az(up),cn=ct,ce=aX(u_),cr=ce,ci=ce,cu=aJ(uI),co=cu,ca=uu(nd.toUndefined),cc=uu(nd.toNullable),cf=aq(um),cl=aG(um),cp=aK(uI),cd=aY(um),cs=a$(up),ch=aZ(uv),cm=a8,cv=(0,t5.dual)(2,a0(uI)),cg=cv(t5.identity),cy=a1(uI),cb=cy,c_=aN(um),cI=c_(),cR=nh(up,nd.Compactable),cS=nm(up,nd.Compactable,nd.Functor),cT=et(up,nd.Filterable),cx=en(up,nd.Filterable),cw=ee(up,nd.Filterable),cM=er(up,nd.Filterable),cO=function(t,n){return(0,t5.pipe)(t,cs(n))},cE=function(t,n){return(0,t5.pipe)(t,ch(n))},cC=function(t,n){return(0,t5.pipe)(t,cy(n))},ck="IOOption",cW={URI:ck,map:cO},cF=(0,t5.dual)(2,(0,np.as)(cW)),cP=(0,np.asUnit)(cW),cA=(0,np.flap)(cW),cD={URI:ck,of:cm},cU={URI:ck,map:cO,ap:cE},cL=(0,tN.apFirst)(cU),cN=(0,tN.apSecond)(cU),cj={URI:ck,map:cO,ap:cE,of:cm},cq={URI:ck,map:cO,ap:cE,chain:cv},cG={URI:ck,fromEither:a7},cK={URI:ck,fromIO:a9},cY=(0,t5.dual)(2,nu.tap(cq)),cV=(0,t5.dual)(2,(0,eb.tapEither)(cG,cq)),cB=(0,t5.dual)(2,eS(cK,cq)),cH={URI:ck,map:cO,alt:cC},cz={URI:ck,zero:c_},cX=(0,a5.guard)(cz,cD),cJ={URI:ck,map:cO,ap:cE,of:cm,alt:cC,zero:c_},c$={URI:ck,map:cO,ap:cE,of:cm,chain:cv},cZ={URI:ck,map:cO,ap:cE,of:cm,chain:cv,fromIO:a9},cQ={URI:ck,compact:cR,separate:cS},c0={URI:ck,map:cO,compact:cR,separate:cS,filter:function(t,n){return(0,t5.pipe)(t,cT(n))},filterMap:function(t,n){return(0,t5.pipe)(t,cx(n))},partition:function(t,n){return(0,t5.pipe)(t,cw(n))},partitionMap:function(t,n){return(0,t5.pipe)(t,cM(n))}},c1={flatMap:cv},c2={fromIO:cK.fromIO},c5=eT.we(c2,c1),c8=(0,t5.dual)(2,function(t,n){return cv(t,cd(n))}),c3=eT.iu({fromEither:a7},c1),c4=(0,t5.dual)(2,function(t,n){return cv(t,cl(n))}),c7=e_(cK),c9=c5,c6=cB,ft=(0,eb.fromEitherK)(cG),fn=c3,fe=cV,fr=c8,fi=cm(eT.F4),fu=(0,np.bindTo)(cW),fo=(0,np.let)(cW),fa=nu.bind(cq),fc=(0,tN.apS)(cU),ff=cm(eT.Xl),fl=function(t){return(0,t5.flow)(uF(t),uu(nd.traverseReadonlyNonEmptyArrayWithIndex(t5.SK)))},fp=function(t){var n=fl(t);return function(t){return eT.Od(t)?n(t):ff}},fd=cv,fs=cY,fh=function(){function t(t){var n=this;this.value=t,this.read=function(){return n.value},this.write=this.write.bind(this),this.modify=this.modify.bind(this)}return t.prototype.write=function(t){var n=this;return function(){n.value=t}},t.prototype.modify=function(t){var n=this;return function(){n.value=t(n.value)}},t}();function fm(t){return function(){return new fh(t)}}var fv=function(t){return(0,nC.tryCatch)(function(){return JSON.parse(t)},t5.identity)},fg=function(t){return(0,nC.tryCatch)(function(){var n=JSON.stringify(t);if("string"!=typeof n)throw Error("Converting unsupported structure to JSON");return n},t5.identity)},fy=e(76113),fb=e(55116),f_=e(96576),fI=e(43586),fR=function(t,n,e){return function(r){return -1===r?t():0===r?n():e()}},fS=fR,fT=function(t){return -1===t?1:1===t?-1:0},fx={equals:function(t,n){return t===n}},fw={concat:function(t,n){return 0!==t?t:n}},fM={concat:fw.concat,empty:0},fO=function(t){return t<=-1?-1:t>=1?1:0},fE=fT,fC=fw,fk=fx,fW=fM,fF=e(18896),fP=function(){return Math.random()};function fA(t,n){return(0,t5.pipe)(fP,uu(function(e){return Math.floor((n-t+1)*e+t)}))}function fD(t,n){return(0,t5.pipe)(fP,uu(function(e){return(n-t)*e+t}))}var fU=(0,t5.pipe)(fP,uu(function(t){return t<.5})),fL=function(t){return(0,t5.pipe)(fA(0,t.length-1),uu(function(n){return t[n]}))},fN=nW(e$),fj=nk(e$),fq=nF(eX),fG=nP(eX),fK=eU,fY=fq,fV=nz(eX),fB=fV,fH=nX(e3),fz=fH,fX=fH,fJ=fX,f$=nJ(e3),fZ=f$,fQ=n2(eX),f0=eM,f1=eO,f2=f1,f5=n$(e3),f8=f5,f3=(0,t5.dual)(2,nQ(e3)),f4=n0(e3),f7=n1(eX),f9=function(t,n){return(0,t5.pipe)(t,ln(n))},f6=function(t,n){return(0,t5.pipe)(t,lo(n))},lt=function(t,n){return(0,t5.pipe)(t,ld(n))},ln=nL(eX),le=(0,t5.dual)(3,nY(eX)),lr=le,li=(0,t5.dual)(2,nB(eX)),lu=li,lo=nN(eZ),la=lo,lc=fj,lf=(0,t5.dual)(2,nq(e3)),ll=lf(t5.identity),lp=ll,ld=nG(e3),ls=ld,lh=fN,lm="ReaderEither",lv=function(t){var n=nC.getCompactable(t);return{URI:lm,_E:void 0,compact:nh(eX,n),separate:nm(eX,n,nC.Functor)}};function lg(t){var n=nC.getFilterable(t),e=lv(t),r=et(eX,n),i=en(eX,n),u=ee(eX,n),o=er(eX,n);return{URI:lm,_E:void 0,map:f9,compact:e.compact,separate:e.separate,filter:function(t,n){return(0,t5.pipe)(t,r(n))},filterMap:function(t,n){return(0,t5.pipe)(t,i(n))},partition:function(t,n){return(0,t5.pipe)(t,u(n))},partitionMap:function(t,n){return(0,t5.pipe)(t,o(n))}}}function ly(t){var n=(0,tN.ap)(eZ,nC.getApplicativeValidation(t));return{URI:lm,_E:void 0,map:f9,ap:function(t,e){return(0,t5.pipe)(t,n(e))},of:lc}}function lb(t){var n=nH(e3,t);return{URI:lm,_E:void 0,map:f9,alt:function(t,e){return(0,t5.pipe)(t,n(e))}}}var l_={URI:lm,map:f9},lI=(0,t5.dual)(2,(0,np.as)(l_)),lR=(0,np.asUnit)(l_),lS=(0,np.flap)(l_),lT={URI:lm,of:lc},lx={URI:lm,map:f9,ap:f6},lw=(0,tN.apFirst)(lx),lM=lw,lO=(0,tN.apSecond)(lx),lE=lO,lC={URI:lm,map:f9,ap:f6,of:lc},lk={URI:lm,map:f9,ap:f6,chain:lf},lW={URI:lm,map:f9,ap:f6,of:lc,chain:lf},lF={URI:lm,fromEither:fK},lP={URI:lm,fromReader:fY},lA=(0,t5.dual)(2,nu.tap(lk)),lD=(0,t5.dual)(2,(0,eb.tapEither)(lF,lk)),lU=(0,t5.dual)(2,rw(lP,lk)),lL={URI:lm,bimap:le,mapLeft:li},lN={URI:lm,map:f9,alt:lt},lj=rI(lP),lq=rR(lP),lG=rS(lP),lK=lU,lY=lU,lV={URI:lm,map:f9,ap:f6,of:lc,chain:lf,throwError:lh},lB=(0,eb.fromOption)(lF),lH=(0,eb.fromOptionK)(lF),lz=(0,eb.chainOptionK)(lF,lk),lX=lz,lJ={fromEither:lF.fromEither},l$={fromReader:lP.fromReader},lZ=eT.uL(lJ),lQ=eT.WE(lJ),l0={flatMap:lf},l1=eT.ny(lJ,l0),l2=eT.hU(lJ,l0),l5=eT.iu(lJ,l0),l8=eT.on(l$,l0),l3=l5,l4=l5,l7=lD,l9=lD,l6=l8,pt=l8,pn=(0,eb.fromPredicate)(lF),pe=(0,eb.filterOrElse)(lF,lk),pr=pe,pi=(0,eb.fromEitherK)(lF),pu=lc(eT.F4),po=(0,np.bindTo)(l_),pa=(0,np.let)(l_),pc=nu.bind(lk),pf=pc,pl=(0,tN.apS)(lx),pp=pl,pd=lc(eT.Xl),ps=function(t){return(0,t5.flow)(rf(t),eP(nC.traverseReadonlyNonEmptyArrayWithIndex(t5.SK)))},ph=function(t){var n=ps(t);return function(t){return eT.Od(t)?n(t):pd}},pm=ph,pv=function(t){return ph(function(n,e){return t(e)})},pg=pv(t5.identity),py=lf,pb=lf,p_=lA,pI=lA,pR=f3,pS=f3,pT={URI:lm,bimap:le,mapLeft:li,map:f9,of:lc,ap:f6,chain:lf,alt:lt,throwError:fN},px=(0,tN.getApplySemigroup)(lx),pw=(0,tG.getApplicativeMonoid)(lC),pM=function(t){return(0,tN.getApplySemigroup)(eZ)(nC.getSemigroup(t))};function pO(t){var n=ly(t),e=lb(t);return{URI:lm,_E:void 0,map:f9,ap:n.ap,of:lc,chain:lf,bimap:le,mapLeft:li,alt:e.alt,throwError:lh}}function pE(t){return function(n){return function(){return t.of(n)}}}function pC(t){return function(n){return function(e){return function(r){return t.map(e(r),n)}}}}function pk(t){return function(n){return function(e){return function(r){return t.ap(e(r),n(r))}}}}function pW(t){var n=pF(t);return function(t){return function(e){return n(e,t)}}}function pF(t){return function(n,e){return function(r){return t.chain(n(r),function(t){return e(t)(r)})}}}function pP(t){return function(n){return(0,t5.flow)(n,t.of)}}function pA(t){return function(n){return(0,t5.flow)(n,t)}}function pD(t){var n=pk(t),e=pC(t),r=pW(t);return{map:function(t,n){return(0,t5.pipe)(t,e(n))},ap:function(t,e){return(0,t5.pipe)(t,n(e))},of:pE(t),chain:function(t,n){return(0,t5.pipe)(t,r(n))},ask:function(){return t.of},asks:function(n){return(0,t5.flow)(n,t.of)},local:function(t,n){return function(e){return t(n(e))}},fromReader:pP(t),fromM:function(t){return function(){return t}}}}var pU=pP(um),pL=eU,pN=eM,pj=eO,pq=pj,pG=function(t,n){return(0,t5.pipe)(t,pY(n))},pK=function(t,n){return(0,t5.pipe)(t,pV(n))},pY=pC(up),pV=pk(uv),pB=pV,pH=pE(um),pz=(0,t5.dual)(2,pF(uI)),pX=pz(t5.identity),pJ=pX,p$="ReaderIO",pZ={URI:p$,map:pG},pQ=(0,t5.dual)(2,(0,np.as)(pZ)),p0=(0,np.asUnit)(pZ),p1=(0,np.flap)(pZ),p2={URI:p$,of:pH},p5={URI:p$,map:pG,ap:pK},p8=(0,tN.apFirst)(p5),p3=(0,tN.apSecond)(p5),p4={URI:p$,map:pG,ap:pK,of:pH},p7={URI:p$,map:pG,ap:pK,chain:pz},p9={URI:p$,map:pG,of:pH,ap:pK,chain:pz},p6={URI:p$,map:pG,of:pH,ap:pK,chain:pz,fromIO:pL},dt={URI:p$,fromIO:pL},dn={URI:p$,fromReader:pU},de={flatMap:pz},dr={fromIO:dt.fromIO},di=eT.we(dr,de),du=eT.on({fromReader:pU},de),da=(0,t5.dual)(2,nu.tap(p7)),dc=(0,t5.dual)(2,eS(dt,p7)),df=(0,t5.dual)(2,rw(dn,p7)),dl=e_(dt),dp=di,dd=dc,ds=rI(dn),dh=rR(dn),dm=rS(dn),dv=du,dg=du,dy=df,db=df,d_=pH(eT.F4),dI=(0,np.bindTo)(pZ),dR=nu.bind(p7),dS=dR,dT=(0,tN.apS)(p5),dx=dT,dw=pH(eT.Xl),dM=function(t){return(0,t5.flow)(rf(t),eP(uF(t5.SK)))},dO=function(t){var n=dM(t);return function(t){return eT.Od(t)?n(t):dw}},dE=dO,dC=function(t){return dO(function(n,e){return t(e)})},dk=dC(t5.identity),dW=pz,dF=pz,dP=da,dA=da,dD=function(t){return function(){return Promise.resolve().then(t)}};function dU(t){return function(n){return function(){return new Promise(function(e){setTimeout(function(){Promise.resolve().then(n).then(e)},t)})}}}var dL=function(t,n){return(0,t5.pipe)(t,dq(n))},dN=function(t,n){return(0,t5.pipe)(t,dG(n))},dj=function(t,n){return dY(t,function(t){return(0,t5.pipe)(n,dq(t))})},dq=function(t){return function(n){return function(){return Promise.resolve().then(n).then(t)}}},dG=function(t){return function(n){return function(){return Promise.all([Promise.resolve().then(n),Promise.resolve().then(t)]).then(function(t){return(0,t[0])(t[1])})}}},dK=function(t){return function(){return Promise.resolve(t)}},dY=(0,t5.dual)(2,function(t,n){return function(){return Promise.resolve().then(t).then(function(t){return n(t)()})}}),dV=dY(t5.identity),dB="Task";function dH(){return{concat:function(t,n){return function(){return Promise.race([Promise.resolve().then(t),Promise.resolve().then(n)])}},empty:sf}}var dz={URI:dB,map:dL},dX=(0,t5.dual)(2,(0,np.as)(dz)),dJ=(0,np.asUnit)(dz),d$=(0,np.flap)(dz),dZ={URI:dB,of:dK},dQ={URI:dB,map:dL,ap:dN},d0=(0,tN.apFirst)(dQ),d1=(0,tN.apSecond)(dQ),d2={URI:dB,map:dL,ap:dN,of:dK},d5={URI:dB,map:dL,ap:dj},d8={URI:dB,map:dL,ap:dj,of:dK},d3={URI:dB,map:dL,ap:dN,chain:dY},d4={URI:dB,map:dL,of:dK,ap:dN,chain:dY},d7={URI:dB,map:dL,of:dK,ap:dN,chain:dY,fromIO:dD},d9=t5.identity,d6={URI:dB,map:dL,of:dK,ap:dN,chain:dY,fromIO:dD,fromTask:d9},st={URI:dB,fromIO:dD},sn={fromIO:st.fromIO},se=eT.we(sn,{flatMap:dY}),sr=(0,t5.dual)(2,nu.tap(d3)),si=(0,t5.dual)(2,eS(st,d3)),su=e_(st),so=se,sa=si,sc={URI:dB,fromIO:dD,fromTask:d9},sf=function(){return new Promise(function(t){})},sl=dK(eT.F4),sp=(0,np.bindTo)(dz),sd=(0,np.let)(dz),ss=nu.bind(d3),sh=(0,tN.apS)(dQ),sm=dK(eT.Xl),sv=function(t){return function(n){return function(){return Promise.all(n.map(function(n,e){return Promise.resolve().then(function(){return t(e,n)()})}))}}},sg=function(t){var n=sv(t);return function(t){return eT.Od(t)?n(t):sm}},sy=function(t){return function(n){return function(){return eT.Gb(n).reduce(function(n,e,r){return n.then(function(n){return Promise.resolve().then(t(r+1,e)).then(function(t){return n.push(t),n})})},Promise.resolve().then(t(0,eT.YM(n))).then(eT.ri))}}},sb=function(t){var n=sy(t);return function(t){return eT.Od(t)?n(t):sm}},s_=sg,sI=function(t){return sg(function(n,e){return t(e)})},sR=sI(t5.identity),sS=sb,sT=function(t){return sb(function(n,e){return t(e)})},sx=sT(t5.identity),sw=dY,sM=sr,sO={URI:dB,map:dL,of:dK,ap:dN,chain:dY,fromIO:dD,fromTask:d9},sE={URI:dB,map:dL,of:dK,ap:dj,chain:dY,fromIO:dD,fromTask:d9},sC=(0,tN.getApplySemigroup)(d5),sk=(0,tG.getApplicativeMonoid)(d8),sW=pP(dZ),sF=eU,sP=(0,t5.flow)(dD,sF),sA=eP(dD),sD=eM,sU=eO,sL=sU,sN=function(t,n){return(0,t5.pipe)(t,sG(n))},sj=function(t,n){return(0,t5.pipe)(t,sK(n))},sq=function(t,n){return sB(t,function(t){return(0,t5.pipe)(n,sG(t))})},sG=pC(dz),sK=pk(dQ),sY=sK,sV=pE(dZ),sB=(0,t5.dual)(2,pF(d4)),sH=sB(t5.identity),sz=sH,sX="ReaderTask",sJ={URI:sX,map:sN},s$=(0,t5.dual)(2,(0,np.as)(sJ)),sZ=(0,np.asUnit)(sJ),sQ=(0,np.flap)(sJ),s0={URI:sX,of:sV},s1={URI:sX,map:sN,ap:sj},s2=(0,tN.apFirst)(s1),s5=(0,tN.apSecond)(s1),s8={URI:sX,map:sN,ap:sj,of:sV},s3={URI:sX,map:sN,ap:sq},s4={URI:sX,map:sN,ap:sq,of:sV},s7={URI:sX,map:sN,ap:sj,chain:sB},s9={URI:sX,map:sN,of:sV,ap:sj,chain:sB},s6={URI:sX,map:sN,of:sV,ap:sj,chain:sB,fromIO:sP},ht={URI:sX,map:sN,of:sV,ap:sj,chain:sB,fromIO:sP,fromTask:sF},hn={URI:sX,fromIO:sP},he={URI:sX,fromIO:sP,fromTask:sF},hr={URI:sX,fromReader:sW},hi={flatMap:sB},hu={fromIO:hn.fromIO},ho=eT.we(hu,hi),ha=eT.D9({fromTask:sF},hi),hc=eT.on({fromReader:sW},hi),hf=(0,t5.dual)(2,function(t,n){return sB(t,hx(n))}),hl=(0,t5.dual)(2,nu.tap(s7)),hp=(0,t5.dual)(2,eS(hn,s7)),hd=(0,t5.dual)(2,rw(hr,s7)),hs=(0,t5.dual)(2,is(he,s7)),hh=(0,t5.dual)(2,function(t,n){return hl(t,hx(n))}),hm=e_(hn),hv=ho,hg=hp,hy=rI(hr),hb=rR(hr),h_=rS(hr),hI=hc,hR=hc,hS=hd,hT=hd,hx=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return sA(t.apply(void 0,n))}},hw=hf,hM=hf,hO=hh,hE=hh,hC=il(he),hk=ha,hW=hs,hF=sV(eT.F4),hP=(0,np.bindTo)(sJ),hA=(0,np.let)(sJ),hD=nu.bind(s7),hU=hD,hL=(0,tN.apS)(s1),hN=hL,hj=sV(eT.Xl),hq=function(t){return(0,t5.flow)(rf(t),eP(sv(t5.SK)))},hG=function(t){var n=hq(t);return function(t){return eT.Od(t)?n(t):hj}},hK=function(t){return(0,t5.flow)(rf(t),eP(sy(t5.SK)))},hY=function(t){var n=hK(t);return function(t){return eT.Od(t)?n(t):hj}},hV=hG,hB=function(t){return hG(function(n,e){return t(e)})},hH=hB(t5.identity),hz=hY,hX=function(t){return hY(function(n,e){return t(e)})},hJ=sB,h$=sB,hZ=hl,hQ=hl,h0=hX(t5.identity),h1={URI:sX,map:sN,of:sV,ap:sj,chain:sB,fromIO:sP,fromTask:sF},h2={URI:sX,map:sN,of:sV,ap:sq,chain:sB,fromIO:sP,fromTask:sF},h5=(0,tN.getApplySemigroup)(s3),h8=(0,tG.getApplicativeMonoid)(s4);function h3(t,n){return t(n)()}var h4=function(t,n){var e,r,i,u,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(c){return function(a){if(e)throw TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(o=0)),o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},h7=nW(dZ),h9=nk(dZ),h6=nF(dz),mt=nP(dz),mn=(0,t5.flow)(dD,h6),me=(0,t5.flow)(dD,mt),mr=mn,mi=h6,mu=dK,mo=dD,ma=function(t){return dq(nC.fromOption(t))},mc=nz(dz),mf=mc,ml=nX(d4),mp=ml,md=ml,ms=md,mh=nJ(d4),mm=mh,mv=function(t,n){return function(){var e,r,i,u;return e=void 0,r=void 0,i=void 0,u=function(){var e;return h4(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t().then(eT.F2)];case 1:return[2,r.sent()];case 2:return e=r.sent(),[2,eT.t$(n(e))];case 3:return[2]}})},new(i||(i=Promise))(function(t,n){function o(t){try{c(u.next(t))}catch(t){n(t)}}function a(t){try{c(u.throw(t))}catch(t){n(t)}}function c(n){var e;n.done?t(n.value):((e=n.value)instanceof i?e:new i(function(t){t(e)})).then(o,a)}c((u=u.apply(e,r||[])).next())})}},mg=function(t,n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return mv(function(){return t.apply(void 0,e)},n)}},my=n2(dz),mb=nA(dZ),m_=nD(dZ),mI=nU(d4),mR=n$(d4),mS=mR,mT=(0,t5.dual)(2,nQ(d4)),mx=function(t){return mT(vK(t))},mw=function(t){return mT(vB(t))},mM=n0(d4),mO=n1(dz),mE=function(t){var n=ma(t);return function(t){return(0,t5.flow)(t,n)}},mC=function(t){return function(n){return function(e){return mY(e,mE(t)(n))}}},mk=mC,mW=function(t){return(0,t5.flow)(t,mo)},mF=function(t,n){return(0,t5.pipe)(t,mU(n))},mP=function(t,n){return(0,t5.pipe)(t,mG(n))},mA=function(t,n){return mY(t,function(t){return(0,t5.pipe)(n,mU(t))})},mD=function(t,n){return(0,t5.pipe)(t,mH(n))},mU=nL(dz),mL=(0,t5.dual)(3,nY(dz)),mN=mL,mj=(0,t5.dual)(2,nB(dz)),mq=mj,mG=nN(dQ),mK=mG,mY=(0,t5.dual)(2,nq(d4)),mV=mY(t5.identity),mB=mV,mH=nG(d4),mz=mH,mX=h9,mJ=h7,m$="TaskEither";function mZ(t,n){var e=(0,tN.ap)(t,nC.getApplicativeValidation(n));return{URI:m$,_E:void 0,map:mF,ap:function(t,n){return(0,t5.pipe)(t,e(n))},of:mX}}function mQ(t){var n=nH(d4,t);return{URI:m$,_E:void 0,map:mF,alt:function(t,e){return(0,t5.pipe)(t,n(e))}}}var m0=function(t){var n=nC.getCompactable(t);return{URI:m$,_E:void 0,compact:nh(dz,n),separate:nm(dz,n,nC.Functor)}};function m1(t){var n=nC.getFilterable(t),e=m0(t),r=et(dz,n),i=en(dz,n),u=ee(dz,n),o=er(dz,n);return{URI:m$,_E:void 0,map:mF,compact:e.compact,separate:e.separate,filter:function(t,n){return(0,t5.pipe)(t,r(n))},filterMap:function(t,n){return(0,t5.pipe)(t,i(n))},partition:function(t,n){return(0,t5.pipe)(t,u(n))},partitionMap:function(t,n){return(0,t5.pipe)(t,o(n))}}}var m2={URI:m$,map:mF},m5=(0,t5.dual)(2,(0,np.as)(m2)),m8=(0,np.asUnit)(m2),m3=(0,np.flap)(m2),m4={URI:m$,of:mX},m7={URI:m$,map:mF,ap:mP},m9=(0,tN.apFirst)(m7),m6=m9,vt=(0,tN.apSecond)(m7),vn=vt,ve={URI:m$,map:mF,ap:mP,of:mX},vr={URI:m$,map:mF,ap:mA},vi={URI:m$,map:mF,ap:mA,of:mX},vu={URI:m$,map:mF,ap:mP,chain:mY},vo={URI:m$,map:mF,ap:mP,chain:mY,of:mX},va={URI:m$,map:mF,ap:mP,chain:mY,of:mX,fromIO:mr},vc={URI:m$,map:mF,ap:mP,chain:mY,of:mX,fromIO:mr,fromTask:mi},vf={URI:m$,map:mF,ap:mP,chain:mY,of:mX,throwError:mJ},vl={URI:m$,fromEither:mu},vp={URI:m$,fromIO:mr},vd={URI:m$,fromIO:mr,fromTask:mi},vs=(0,t5.dual)(2,nu.tap(vu)),vh=(0,t5.dual)(2,(0,eb.tapEither)(vl,vu)),vm=(0,t5.dual)(2,eS(vp,vu)),vv=(0,t5.dual)(2,is(vd,vu)),vg={URI:m$,bimap:mL,mapLeft:mj},vy={URI:m$,map:mF,alt:mD},vb=(0,eb.fromOption)(vl),v_=(0,eb.fromOptionK)(vl),vI=(0,eb.chainOptionK)(vl,vu),vR=vI,vS={fromEither:vl.fromEither},vT=eT.uL(vS),vx=eT.WE(vS),vw={flatMap:mY},vM={fromIO:vp.fromIO},vO=eT.ny(vS,vw),vE=eT.hU(vS,vw),vC=eT.iu(vS,vw),vk=eT.we(vM,vw),vW=eT.D9({fromTask:mi},vw),vF=(0,t5.dual)(2,function(t,n){return mY(t,mW(n))}),vP=(0,t5.dual)(3,function(t,n,e){return mY(t,function(t){return ma(function(){return e(t)})(n(t))})}),vA=vC,vD=vC,vU=vh,vL=vh,vN=(0,eb.fromPredicate)(vl),vj=(0,eb.filterOrElse)(vl,vu),vq=vj,vG=(0,eb.fromEitherK)(vl),vK=e_(vp),vY=vk,vV=vm,vB=il(vd),vH=vW,vz=vv,vX=vF,vJ=vF;function v$(t){return function(){var n=Array.prototype.slice.call(arguments);return function(){return new Promise(function(e){t.apply(null,n.concat(function(t,n){return null!=t?e(eT.t$(t)):e(eT.F2(n))}))})}}}var vZ=function(t,n,e){return vQ(t,n,e)},vQ=function(t,n,e){return mY(t,function(t){return dY(n(t),function(n){return mY(e(t,n),function(){return dK(n)})})})},v0=mX(eT.F4),v1=(0,np.bindTo)(m2),v2=(0,np.let)(m2),v5=nu.bind(vu),v8=v5,v3=(0,tN.apS)(m7),v4=v3,v7=mX(eT.Xl),v9=function(t){return(0,t5.flow)(sv(t),dq(nC.traverseReadonlyNonEmptyArrayWithIndex(t5.SK)))},v6=function(t){var n=v9(t);return function(t){return eT.Od(t)?n(t):v7}},gt=function(t){return function(n){return function(){return eT.Gb(n).reduce(function(n,e,r){return n.then(function(i){return eT.nM(i)?n:t(r+1,e)().then(function(t){return eT.nM(t)?t:(i.right.push(t.right),i)})})},t(0,eT.YM(n))().then(nC.map(eT.ri)))}}},gn=function(t){var n=gt(t);return function(t){return eT.Od(t)?n(t):v7}},ge=v6,gr=function(t){return v6(function(n,e){return t(e)})},gi=gr(t5.identity),gu=gn,go=function(t){return gn(function(n,e){return t(e)})},ga=go(t5.identity),gc=mY,gf=mY,gl=vs,gp=vs,gd=mT,gs=mT,gh={URI:m$,bimap:mL,mapLeft:mj,map:mF,of:mX,ap:mP,chain:mY,alt:mD,fromIO:mr,fromTask:mi,throwError:mJ},gm={URI:m$,bimap:mL,mapLeft:mj,map:mF,of:mX,ap:mA,chain:mY,alt:mD,fromIO:mr,fromTask:mi,throwError:mJ},gv=(0,tN.getApplySemigroup)(vr),gg=(0,tG.getApplicativeMonoid)(vi),gy=function(t){return(0,tN.getApplySemigroup)(d5)(nC.getSemigroup(t))};function gb(t){var n=mZ(d2,t),e=mQ(t);return{URI:m$,_E:void 0,map:mF,ap:n.ap,of:mX,chain:mY,bimap:mL,mapLeft:mj,alt:e.alt,fromIO:mr,fromTask:mi,throwError:mJ}}var g_=eU,gI=nW(s0),gR=nk(s0),gS=(0,t5.flow)(h6,g_),gT=(0,t5.flow)(mt,g_),gx=function(t){return(0,t5.flow)(t,h9)},gw=function(t){return(0,t5.flow)(t,h7)},gM=nF(sJ),gO=nP(sJ),gE=(0,t5.flow)(mn,g_),gC=(0,t5.flow)(me,g_),gk=function(t){return(0,t5.flow)(t,mn)},gW=function(t){return(0,t5.flow)(t,me)},gF=sV,gP=gx,gA=gE,gD=gS,gU=(0,t5.flow)(mo,g_),gL=function(t){return(0,t5.flow)(t,mu)},gN=nz(sJ),gj=gN,gq=nX(s7),gG=gq,gK=gq,gY=gK,gV=nJ(s9),gB=gV,gH=n2(sJ),gz=nA(s0),gX=nD(s0),gJ=nU(s9),g$=eM,gZ=eO,gQ=gZ,g0=n$(s9),g1=g0,g2=(0,t5.dual)(2,nQ(s9)),g5=n0(s9),g8=n1(sJ),g3=function(t){return(0,t5.flow)(t,gU)},g4=function(t){return(0,t5.flow)(t,g_)},g7=function(t){return(0,t5.flow)(t,gL)},g9=function(t,n){return(0,t5.pipe)(t,ye(n))},g6=function(t,n){return(0,t5.pipe)(t,ya(n))},yt=function(t,n){return yl(t,function(t){return(0,t5.pipe)(n,ye(t))})},yn=function(t,n){return(0,t5.pipe)(t,ys(n))},ye=nL(sJ),yr=(0,t5.dual)(3,nY(sJ)),yi=yr,yu=(0,t5.dual)(2,nB(sJ)),yo=yu,ya=nN(s1),yc=ya,yf=gR,yl=(0,t5.dual)(2,nq(s9)),yp=yl(t5.identity),yd=yp,ys=nG(s9),yh=ys,ym=gI,yv="ReaderTaskEither",yg=function(t){var n=nC.getCompactable(t);return{URI:yv,_E:void 0,compact:nh(sJ,n),separate:nm(sJ,n,nC.Functor)}};function yy(t){var n=nC.getFilterable(t),e=yg(t),r=et(sJ,n),i=en(sJ,n),u=ee(sJ,n),o=er(sJ,n);return{URI:yv,_E:void 0,map:g9,compact:e.compact,separate:e.separate,filter:function(t,n){return(0,t5.pipe)(t,r(n))},filterMap:function(t,n){return(0,t5.pipe)(t,i(n))},partition:function(t,n){return(0,t5.pipe)(t,u(n))},partitionMap:function(t,n){return(0,t5.pipe)(t,o(n))}}}function yb(t,n){var e=(0,tN.ap)(eZ,mZ(t,n));return{URI:yv,_E:void 0,map:g9,ap:function(t,n){return(0,t5.pipe)(t,e(n))},of:yf}}function y_(t){var n=nH(s9,t);return{URI:yv,_E:void 0,map:g9,alt:function(t,e){return(0,t5.pipe)(t,n(e))}}}var yI={URI:yv,map:g9},yR=(0,t5.dual)(2,(0,np.as)(yI)),yS=(0,np.asUnit)(yI),yT=(0,np.flap)(yI),yx={URI:yv,of:yf},yw={URI:yv,map:g9,ap:g6},yM=(0,tN.apFirst)(yw),yO=yM,yE=(0,tN.apSecond)(yw),yC=yE,yk={URI:yv,map:g9,ap:g6,of:yf},yW={URI:yv,map:g9,ap:yt},yF={URI:yv,map:g9,ap:yt,of:yf},yP={URI:yv,map:g9,ap:g6,chain:yl},yA={URI:yv,map:g9,ap:g6,chain:yl,of:yf},yD={URI:yv,map:g9,ap:g6,chain:yl,of:yf,fromIO:gA},yU={URI:yv,map:g9,ap:g6,chain:yl,of:yf,fromIO:gA,fromTask:gD},yL={URI:yv,map:g9,ap:g6,chain:yl,of:yf,throwError:ym},yN={URI:yv,fromEither:gF},yj={URI:yv,fromIO:gA},yq={URI:yv,fromIO:gA,fromTask:gD},yG={URI:yv,fromReader:gP},yK=(0,t5.dual)(2,nu.tap(yP)),yY=(0,t5.dual)(2,(0,eb.tapEither)(yN,yP)),yV=(0,t5.dual)(2,eS(yj,yP)),yB=(0,t5.dual)(2,is(yq,yP)),yH=(0,t5.dual)(2,rw(yG,yP)),yz=(0,t5.dual)(2,function(t,n){return yK(t,g7(n))}),yX=(0,t5.dual)(2,function(t,n){return yK(t,g4(n))}),yJ=(0,t5.dual)(2,function(t,n){return yK(t,y6(n))}),y$=(0,t5.dual)(2,function(t,n){return yK(t,be(n))}),yZ={URI:yv,bimap:yr,mapLeft:yu},yQ={URI:yv,map:g9,alt:yn},y0=rI(yG),y1=rR(yG),y2=rS(yG),y5=yH,y8=yH,y3=yz,y4=yz,y7=yX,y9=yX,y6=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return gM(t.apply(void 0,n))}},bt=yJ,bn=yJ,be=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return gk(t.apply(void 0,n))}},br=y$,bi=y$,bu=(0,eb.fromOption)(yN),bo=(0,eb.fromOptionK)(yN),ba=(0,eb.chainOptionK)(yN,yP),bc=ba,bf={fromEither:yN.fromEither},bl=eT.uL(bf),bp=eT.WE(bf),bd={flatMap:yl},bs=eT.ny(bf,bd),bh=eT.hU(bf,bd),bm=eT.iu(bf,bd),bv=(0,t5.dual)(2,function(t,n){return yl(t,g4(n))}),bg=(0,t5.dual)(2,function(t,n){return yl(t,y6(n))}),by=eT.we({fromIO:gA},bd),bb=eT.D9({fromTask:gD},bd),b_=eT.on({fromReader:gP},bd),bI=(0,t5.dual)(2,function(t,n){return yl(t,be(n))}),bR=(0,t5.dual)(2,function(t,n){return yl(t,g3(n))}),bS=(0,t5.dual)(2,function(t,n){return yl(t,g7(n))}),bT=bm,bx=bm,bw=yY,bM=yY,bO=bv,bE=bv,bC=bg,bk=bg,bW=(0,eb.fromPredicate)(yN),bF=(0,eb.filterOrElse)(yN,yP),bP=bF,bA=(0,eb.fromEitherK)(yN),bD=e_(yj),bU=by,bL=yV,bN=il(yq),bj=bb,bq=yB,bG=b_,bK=b_,bY=bI,bV=bI,bB=bR,bH=bR,bz=bS,bX=bS;function bJ(t,n,e){return b$(t,n,e)}function b$(t,n,e){return function(r){return vQ(t(r),function(t){return n(t)(r)},function(t,n){return e(t,n)(r)})}}var bZ=yf(eT.F4),bQ=(0,np.bindTo)(yI),b0=(0,np.let)(yI),b1=nu.bind(yP),b2=b1,b5=(0,tN.apS)(yw),b8=b5,b3=yf(eT.Xl),b4=function(t){return(0,t5.flow)(rf(t),eP(v9(t5.SK)))},b7=function(t){var n=b4(t);return function(t){return eT.Od(t)?n(t):b3}},b9=function(t){return(0,t5.flow)(rf(t),eP(gt(t5.SK)))},b6=function(t){var n=b9(t);return function(t){return eT.Od(t)?n(t):b3}},_t=b7,_n=function(t){return b7(function(n,e){return t(e)})},_e=_n(t5.identity),_r=b6,_i=function(t){return b6(function(n,e){return t(e)})},_u=_i(t5.identity),_o=yl,_a=yl,_c=yK,_f=yK,_l=g2,_p=g2,_d={URI:yv,map:g9,of:yf,ap:g6,chain:yl,alt:yn,bimap:yr,mapLeft:yu,fromIO:gA,fromTask:gD,throwError:ym},_s={URI:yv,map:g9,of:yf,ap:yt,chain:yl,alt:yn,bimap:yr,mapLeft:yu,fromIO:gA,fromTask:gD,throwError:ym},_h=(0,tN.getApplySemigroup)(yW),_m=(0,tG.getApplicativeMonoid)(yF),_v=function(t){return(0,tN.getApplySemigroup)(s3)(nC.getSemigroup(t))};function _g(t){var n=yb(d2,t),e=y_(t);return{URI:yv,_E:void 0,map:g9,of:yf,chain:yl,bimap:yr,mapLeft:yu,ap:n.ap,alt:e.alt,fromIO:gA,fromTask:gD,throwError:ym}}function _y(t,n){return t(n)()}var _b=e(31583),__=e(13512),_I=e(28350),_R=e(97054),_S=e(99156);function _T(t){return t[0]}function _x(t){return t[1]}var _w=function(t){return[_x(t),t[0]]};function _M(t){return{URI:_0,_E:void 0,map:_P,ap:function(n,e){return[n[0](e[0]),t.concat(_x(n),_x(e))]}}}var _O=function(t){return function(n){return[n,t.empty]}};function _E(t){return{URI:_0,_E:void 0,map:_P,ap:_M(t).ap,of:_O(t)}}function _C(t){return{URI:_0,_E:void 0,map:_P,ap:_M(t).ap,chain:function(n,e){var r=e(n[0]),i=r[0],u=r[1];return[i,t.concat(_x(n),u)]}}}function _k(t){var n=_C(t);return{URI:_0,_E:void 0,map:_P,ap:n.ap,chain:n.chain,of:_O(t)}}function _W(t){var n=_C(t);return{URI:_0,_E:void 0,map:_P,ap:n.ap,chain:n.chain,chainRec:function(n,e){for(var r=e(n),i=t.empty,u=r[0];"Left"===u._tag;)i=t.concat(i,_x(r)),u=(r=e(u.left))[0];return[u.right,t.concat(i,_x(r))]}}}var _F=function(t,n){return(0,t5.pipe)(t,_V(n))},_P=function(t,n){return(0,t5.pipe)(t,_K(n))},_A=function(t,n,e){return(0,t5.pipe)(t,_G(n,e))},_D=function(t,n){return(0,t5.pipe)(t,_Y(n))},_U=function(t,n){return(0,t5.pipe)(t,_B(n))},_L=function(t,n,e){return(0,t5.pipe)(t,_X(n,e))},_N=function(t){var n=_J(t);return function(t,e){return(0,t5.pipe)(t,n(e))}},_j=function(t,n,e){return(0,t5.pipe)(t,_$(n,e))},_q=function(t){var n=_Z(t);return function(t,e){return(0,t5.pipe)(t,n(e))}},_G=function(t,n){return function(e){return[n(e[0]),t(_x(e))]}},_K=function(t){return function(n){return[t(n[0]),_x(n)]}},_Y=function(t){return function(n){return[n[0],t(_x(n))]}},_V=function(t){return function(n){return[n[0],_x(t)]}},_B=function(t){return function(n){return[t(n),_x(n)]}},_H=_T,_z=_B(t5.identity),_X=function(t,n){return function(e){return n(t,e[0])}},_J=function(){return function(t){return function(n){return t(n[0])}}},_$=function(t,n){return function(e){return n(e[0],t)}},_Z=function(t){return function(n){return function(e){return t.map(n(e[0]),function(t){return[t,_x(e)]})}}},_Q=function(t){return function(n){return t.map(n[0],function(t){return[t,_x(n)]})}},_0="ReadonlyTuple",_1={URI:_0,map:_P},_2=(0,np.flap)(_1),_5=_K,_8=_Y,_3={URI:_0,bimap:_A,mapLeft:_D},_4={URI:_0,compose:_F},_7={URI:_0,map:_P,extend:_U,extract:_H},_9={URI:_0,reduce:_L,foldMap:_N,reduceRight:_j},_6={URI:_0,map:_P,reduce:_L,foldMap:_N,reduceRight:_j,traverse:_q,sequence:_Q},It={URI:_0,compose:_F,map:_P,bimap:_A,mapLeft:_D,extract:_H,extend:_U,reduce:_L,foldMap:_N,reduceRight:_j,traverse:_q,sequence:_Q},In=e(3291),Ie=e(57029),Ir=e(76511),Ii=function(){return(Ii=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t}).apply(this,arguments)},Iu=_R.size,Io=_R.isEmpty,Ia=function(t){return function(n){return Object.keys(n).sort(t.compare)}},Ic=Ia(Ie.Ord);function If(t){if("function"==typeof t)return If(Ie.Ord)(t);var n=Ia(t);return function(t){return function(e){for(var r=[],i=0,u=n(e);i<u.length;i++){var o=u[i];r.push(t(o,e[o]))}return r}}}var Il=If(Ie.Ord)(function(t,n){return[t,n]});function Ip(t){return function(n){var e=Il(n),r=e.length;return t.unfold(0,function(t){return t<r?eT.G([e[t],t+1]):eT.YP})}}var Id=_R.upsertAt,Is=_R.has;function Ih(t){return function(n){if(!eT.e$.call(n,t))return n;var e=Object.assign({},n);return delete e[t],e}}var Im=function(t,n){return Iv(t,function(){return n})},Iv=function(t,n){return function(e){if(!Is(t,e))return eT.YP;var r=Object.assign({},e);return r[t]=n(e[t]),eT.G(r)}};function Ig(t){var n=Ih(t);return function(e){var r=Ib(t,e);return eT.Wi(r)?eT.YP:eT.G([r.value,n(e)])}}var Iy=_R.isSubrecord,Ib=_R.lookup,I_=_R.mapWithIndex,II=_R.map;function IR(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===t.length?_R.reduceWithIndex(t[0]):_R.reduceWithIndex(Ie.Ord).apply(void 0,t)}function IS(t){return"compare"in t?_R.foldMapWithIndex(t):_R.foldMapWithIndex(Ie.Ord)(t)}function IT(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===t.length?_R.reduceRightWithIndex(t[0]):_R.reduceRightWithIndex(Ie.Ord).apply(void 0,t)}var Ix=_R.singleton;function Iw(t){return _R.traverseWithIndex(t)}function IM(t){return _R.traverse(t)}function IO(t){return _R.sequence(t)}var IE=function(t){var n=IM(t);return function(e){return function(r){return t.map((0,t5.pipe)(r,n(e)),Ra)}}},IC=function(t){var n=IM(t);return function(e){return function(r){return t.map((0,t5.pipe)(r,n(e)),Rc)}}},Ik=_R.partitionMapWithIndex;function IW(t){return _R.partitionWithIndex(t)}var IF=_R.filterMapWithIndex;function IP(t){return _R.filterWithIndex(t)}function IA(t,n){return _R.fromFoldable(t,n)}var ID=Il,IU=function(t){return IA(In.last(),tK.Foldable)(t)};function IL(t,n){return _R.fromFoldableMap(t,n)}var IN=_R.every,Ij=_R.some,Iq=_R.elem,IG=function(t){var n=_R.union(t);return function(t){return function(e){return Io(e)?Ii({},t):Io(t)?Ii({},e):n(t)(e)}}},IK=function(t){return function(n){return function(e){return Io(e)||Io(n)?{}:_R.intersection(t)(n)(e)}}},IY=function(t){return function(n){return Io(n)?Ii({},t):Io(t)?Ii({},n):_R.difference(t)(n)}},IV=_R._map,IB=_R._mapWithIndex,IH=_R._reduce,Iz=_R._foldMap,IX=_R._reduceRight,IJ=_R._filter,I$=_R._filterMap,IZ=_R._partition,IQ=_R._partitionMap,I0=_R._reduceWithIndex,I1=_R._foldMapWithIndex,I2=_R._reduceRightWithIndex,I5=_R._partitionMapWithIndex,I8=_R._partitionWithIndex,I3=_R._filterMapWithIndex,I4=_R._filterWithIndex,I7=_R._traverse,I9=_R._sequence,I6=function(t){return function(n){var e=Ia(t);return function(t,r){var i=e(t);if(0===i.length)return n.of({});for(var u=n.of({}),o=function(e){u=n.ap(n.map(u,function(t){return function(n){return t[e]=n,t}}),r(e,t[e]))},a=0;a<i.length;a++)o(i[a]);return u}}},Rt=_R.filter,Rn=_R.filterMap,Re=_R.partition,Rr=_R.partitionMap;function Ri(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===t.length?_R.reduce(t[0]):_R.reduce(Ie.Ord).apply(void 0,t)}function Ru(t){return"compare"in t?_R.foldMap(t):_R.foldMap(Ie.Ord)(t)}function Ro(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===t.length?_R.reduceRight(t[0]):_R.reduceRight(Ie.Ord).apply(void 0,t)}var Ra=_R.compact,Rc=_R.separate,Rf="Record";function Rl(t){return"compare"in t?_R.getShow(t):_R.getShow(Ie.Ord)(t)}var Rp=_R.getEq,Rd=_R.getMonoid,Rs={URI:Rf,map:IV},Rh=(0,np.flap)(Rs),Rm={URI:Rf,map:IV,mapWithIndex:IB},Rv=function(t){return{URI:Rf,reduce:IH(t),foldMap:Iz(t),reduceRight:IX(t)}},Rg=function(t){return{URI:Rf,reduce:IH(t),foldMap:Iz(t),reduceRight:IX(t),reduceWithIndex:I0(t),foldMapWithIndex:I1(t),reduceRightWithIndex:I2(t)}},Ry={URI:Rf,compact:Ra,separate:Rc},Rb={URI:Rf,map:IV,compact:Ra,separate:Rc,filter:IJ,filterMap:I$,partition:IZ,partitionMap:IQ},R_={URI:Rf,map:IV,mapWithIndex:IB,compact:Ra,separate:Rc,filter:IJ,filterMap:I$,partition:IZ,partitionMap:IQ,filterMapWithIndex:I3,filterWithIndex:I4,partitionMapWithIndex:I5,partitionWithIndex:I8},RI=function(t){return{URI:Rf,map:IV,reduce:IH(t),foldMap:Iz(t),reduceRight:IX(t),traverse:I7(t),sequence:I9(t)}},RR=function(t){return{URI:Rf,map:IV,mapWithIndex:IB,reduce:IH(t),foldMap:Iz(t),reduceRight:IX(t),reduceWithIndex:I0(t),foldMapWithIndex:I1(t),reduceRightWithIndex:I2(t),traverse:I7(t),sequence:I9(t),traverseWithIndex:I6(t)}},RS=function(t){var n=RI(t);return{URI:Rf,map:IV,reduce:IH(t),foldMap:Iz(t),reduceRight:IX(t),traverse:n.traverse,sequence:n.sequence,compact:Ra,separate:Rc,filter:IJ,filterMap:I$,partition:IZ,partitionMap:IQ,wither:(0,Ir.witherDefault)(n,Ry),wilt:(0,Ir.wiltDefault)(n,Ry)}},RT=function(t){var n=IG(t);return{concat:function(t,e){return n(e)(t)}}},Rx=function(t){return{concat:RT(t).concat,empty:{}}},Rw=function(t){var n=IK(t);return{concat:function(t,e){return n(e)(t)}}},RM=function(){return{concat:function(t,n){return IY(n)(t)}}},RO={URI:Rf,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord)},RE={URI:Rf,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord),reduceWithIndex:I0(Ie.Ord),foldMapWithIndex:I1(Ie.Ord),reduceRightWithIndex:I2(Ie.Ord)},RC={URI:Rf,map:IV,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord),traverse:I7(Ie.Ord),sequence:IO},Rk={URI:Rf,map:IV,mapWithIndex:IB,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord),reduceWithIndex:I0(Ie.Ord),foldMapWithIndex:I1(Ie.Ord),reduceRightWithIndex:I2(Ie.Ord),traverse:I7(Ie.Ord),sequence:IO,traverseWithIndex:I6(Ie.Ord)},RW=(0,Ir.witherDefault)(RC,Ry),RF=(0,Ir.wiltDefault)(RC,Ry),RP={URI:Rf,map:IV,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord),traverse:I7(Ie.Ord),sequence:IO,compact:Ra,separate:Rc,filter:IJ,filterMap:I$,partition:IZ,partitionMap:IQ,wither:RW,wilt:RF},RA={},RD=Id,RU=_R.hasOwnProperty,RL={URI:Rf,map:IV,reduce:IH(Ie.Ord),foldMap:Iz(Ie.Ord),reduceRight:IX(Ie.Ord),traverse:I7(Ie.Ord),sequence:IO,compact:Ra,separate:Rc,filter:IJ,filterMap:I$,partition:IZ,partitionMap:IQ,mapWithIndex:IB,reduceWithIndex:I0(Ie.Ord),foldMapWithIndex:I1(Ie.Ord),reduceRightWithIndex:I2(Ie.Ord),filterMapWithIndex:I3,filterWithIndex:I4,partitionMapWithIndex:I5,partitionWithIndex:I8,traverseWithIndex:I6(Ie.Ord),wither:RW,wilt:RF},RN=function(t){return function(n){return eT.pC(t(n))}},Rj=function(t){return function(n){return eT.tO(t(n))}},Rq=function(){return function(t){return!0}},RG=function(t){return function(n){return!t(n)}},RK=function(t){return function(n){return function(e){return n(e)||t(e)}}},RY=function(t){return function(n){return function(e){return n(e)&&t(e)}}},RV=function(){return function(t){return!1}},RB=function(t){return function(n){return function(e){return n(e)&&t(e)}}},RH=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return{add:function(n,e){return t.map(function(t,r){return t.add(n[r],e[r])})},zero:t.map(function(t){return t.zero}),mul:function(n,e){return t.map(function(t,r){return t.mul(n[r],e[r])})},one:t.map(function(t){return t.one}),sub:function(n,e){return t.map(function(t,r){return t.sub(n[r],e[r])})}}},Rz=function(t){return function(n){return t.sub(t.zero,n)}},RX=RH,RJ=t5.getRing,R$=t5.getSemiring,RZ=e(1214),RQ=function(t){return{show:function(n){var e="{";for(var r in t)eT.e$.call(t,r)&&(e+=" ".concat(r,": ").concat(t[r].show(n[r]),","));return e.length>1&&(e=e.slice(0,-1)+" "),e+="}"}}},R0=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return{show:function(n){return"[".concat(n.map(function(n,e){return t[e].show(n)}).join(", "),"]")}}},R1=R0,R2=RQ,R5={show:function(t){return JSON.stringify(t)}},R8={show:function(t){return JSON.stringify(t)}},R3={show:function(t){return JSON.stringify(t)}};function R4(t){return function(n){return function(e){return t.of([n,e])}}}function R7(t){return function(n){return function(e){return function(r){return t.map(e(r),function(t){var e=t[0],r=t[1];return[n(e),r]})}}}}function R9(t){return function(n){return function(e){return function(r){return t.chain(e(r),function(e){var r=e[0],i=e[1];return t.map(n(i),function(t){var n=t[0],e=t[1];return[r(n),e]})})}}}}function R6(t){var n=St(t);return function(t){return function(e){return n(e,t)}}}function St(t){return function(n,e){return function(r){return t.chain(n(r),function(t){var n=t[0],r=t[1];return e(n)(r)})}}}function Sn(t){return function(n){return function(e){return t.of(n(e))}}}function Se(t){return function(n){return function(e){return t.map(n,function(t){return[t,e]})}}}function Sr(t){return function(n){return function(e){return t.map(e(n),function(t){return t[0]})}}}function Si(t){return function(n){return function(e){return t.map(e(n),_x)}}}function Su(t){var n=R9(t),e=R7(t),r=R6(t),i=Sr(t),u=Si(t);return{map:function(t,n){return(0,t5.pipe)(t,e(n))},ap:function(t,e){return(0,t5.pipe)(t,n(e))},of:R4(t),chain:function(t,n){return(0,t5.pipe)(t,r(n))},get:function(){return function(n){return t.of([n,n])}},put:function(n){return function(){return t.of([void 0,n])}},modify:function(n){return function(e){return t.of([void 0,n(e)])}},gets:function(n){return function(e){return t.of([n(e),e])}},fromState:Sn(t),fromM:Se(t),evalState:function(t,n){return(0,t5.pipe)(t,i(n))},execState:function(t,n){return(0,t5.pipe)(t,u(n))}}}var So=function(t){return function(){return gI(t)}},Sa=R4(yx);function Sc(t){return ST(gS(t))}function Sf(t){return ST(gT(t))}function Sl(t){return ST(gx(t))}function Sp(t){return ST(gw(t))}function Sd(t){return ST(gE(t))}function Ss(t){return ST(gC(t))}var Sh=function(t){return(0,t5.flow)(t,gR)},Sm=function(t){return function(n){return gI(t(n)[0])}},Sv=nC.match(function(t){return So(t)},Sa),Sg=Sl,Sy=Sd,Sb=Sc,S_=Sn(yx),SI=function(t){return ST(g_(t))},SR=function(t){return ST(gU(t))},SS=function(t){return ST(gL(t))},ST=Se(yI),Sx=function(t){return function(n){return(0,t5.flow)(n,eM(t))}},Sw=function(t){return function(n){return function(e){return t(e)(n)(e)}}},SM=Sw,SO=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return SR(t.apply(void 0,n))}},SE=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return SI(t.apply(void 0,n))}},SC=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return ST(t.apply(void 0,n))}},Sk=function(t){return function(n){return SV(n,SC(t))}},SW=Sk,SF=function(t,n){return(0,t5.pipe)(t,SL(n))},SP=function(t,n){return(0,t5.pipe)(t,Sq(n))},SA=function(t,n){return function(e){return(0,t5.pipe)(t(e),ys(function(){return n()(e)}))}},SD=function(t,n,e){return function(r){return(0,t5.pipe)(t(r),yi(n,function(t){var n=t[0],r=t[1];return[e(n),r]}))}},SU=function(t,n){return function(e){return(0,t5.pipe)(t(e),yo(n))}},SL=R7(yI),SN=function(t,n){return function(e){return SD(e,t,n)}},Sj=function(t){return function(n){return SU(n,t)}},Sq=R9(yP),SG=Sq,SK=Sa,SY={fromEither:Sv},SV=(0,t5.dual)(2,St(yA)),SB={flatMap:SV},SH=(0,t5.dual)(2,function(t,n){return SV(t,function(t){return SE(n)(t)})}),Sz=eT.we({fromIO:Sy},SB),SX=eT.D9({fromTask:Sb},SB),SJ=eT.on({fromReader:Sg},SB),S$=(0,t5.dual)(2,function(t,n){return SV(t,function(t){return SO(n)(t)})}),SZ=(0,t5.dual)(2,eT.iu(SY,SB)),SQ=eT.hU(SY,SB),S0=(0,t5.dual)(2,function(t,n){return SV(t,function(t){return SC(n)(t)})}),S1=(0,t5.dual)(2,function(t,n){return SV(t,Tm(n))}),S2=SV(t5.identity),S5=S2,S8=function(t){return function(n){return function(e){return(0,t5.pipe)(n(e),yh(function(){return t()(e)}))}}},S3=S8,S4=So,S7="StateReaderTaskEither",S9={URI:S7,map:SF},S6=(0,t5.dual)(2,(0,np.as)(S9)),Tt=(0,np.asUnit)(S9),Tn=(0,np.flap)(S9),Te={URI:S7,of:SK},Tr={URI:S7,map:SF,ap:SP},Ti=(0,tN.apFirst)(Tr),Tu=Ti,To=(0,tN.apSecond)(Tr),Ta=To,Tc={URI:S7,map:SF,ap:SP,of:SK},Tf={URI:S7,map:SF,ap:SP,chain:SV},Tl={URI:S7,fromState:S_},Tp=ir(Tl),Td=ii(Tl),Ts=iu(Tl),Th=io(Tl),Tm=ia(Tl),Tv=ic(Tl,Tf),Tg={URI:S7,map:SF,ap:SP,of:SK,chain:SV},Ty={URI:S7,map:SF,ap:SP,of:SK,chain:SV,fromIO:Sy},Tb={URI:S7,map:SF,ap:SP,of:SK,chain:SV,fromIO:Sy,fromTask:Sb},T_={URI:S7,map:SF,ap:SP,of:SK,chain:SV,throwError:S4},TI={URI:S7,fromEither:Sv},TR={URI:S7,fromIO:Sy},TS={URI:S7,fromIO:Sy,fromTask:Sb},TT={URI:S7,fromReader:Sg},Tx=(0,t5.dual)(2,nu.tap(Tf)),Tw=(0,t5.dual)(2,(0,eb.tapEither)(TI,Tf)),TM=(0,t5.dual)(2,eS(TR,Tf)),TO=(0,t5.dual)(2,is(TS,Tf)),TE=(0,t5.dual)(2,rw(TT,Tf)),TC={URI:S7,bimap:SD,mapLeft:SU},Tk={URI:S7,map:SF,alt:SA},TW=rI(TT),TF=rR(TT),TP=rS(TT),TA=SJ,TD=SJ,TU=TE,TL=TE,TN=(0,eb.fromOption)(TI),Tj=(0,eb.fromOptionK)(TI),Tq=(0,eb.chainOptionK)(TI,Tf),TG=Tq,TK=SZ,TY=SZ,TV=Tw,TB=Tw,TH=(0,eb.fromPredicate)(TI),Tz=(0,eb.filterOrElse)(TI,Tf),TX=Tz,TJ=(0,eb.fromEitherK)(TI),T$=e_(TR),TZ=Sz,TQ=TM,T0=SH,T1=SH,T2=S$,T5=S$,T8=il(TS),T3=SX,T4=TO,T7=Sr(yI),T9=Si(yI),T6=(0,np.bindTo)(S9),xt=(0,np.let)(S9),xn=nu.bind(Tf),xe=xn,xr=(0,tN.apS)(Tr),xi=xr,xu=function(t){return function(n){return function(e){return function(r){return function(){return eT.Gb(n).reduce(function(n,e,i){return n.then(function(u){return eT.nM(u)?n:t(i+1,e)(u.right[1])(r)().then(function(t){if(eT.nM(t))return t;var n=t.right,e=n[0],r=n[1];return u.right[0].push(e),u.right[1]=r,u})})},t(0,eT.YM(n))(e)(r)().then(nC.map(function(t){return[[t[0]],t[1]]})))}}}}},xo=function(t){var n=xu(t);return function(t){return eT.Od(t)?n(t):SK(eT.Xl)}},xa=xo,xc=function(t){return xo(function(n,e){return t(e)})},xf=xc(t5.identity),xl=SV,xp=SV,xd=Tx,xs=Tx,xh={URI:S7,map:SF,of:SK,ap:SP,chain:SV,bimap:SD,mapLeft:SU,alt:SA,fromIO:Sy,fromTask:Sb,throwError:S4},xm={URI:S7,map:SF,of:SK,ap:SP,chain:SV,bimap:SD,mapLeft:SU,alt:SA,fromIO:Sy,fromTask:Sb,throwError:S4},xv=function(t,n){return(0,t5.pipe)(t(n),ye(function(t){return t[0]}))},xg=function(t,n){return(0,t5.pipe)(t(n),ye(function(t){return t[0],t[1]}))};function xy(t,n,e){return t(n)(e)()}function xb(t){return function(n){return{peek:n.peek,pos:t}}}function x_(t){return function(n){return{peek:n.peek,pos:t(n.pos)}}}function xI(t){return function(n){return n.peek(t(n.pos))}}function xR(t){return function(n){return function(e){return t.map(n(e.pos),function(t){return e.peek(t)})}}}var xS=function(t,n){return(0,t5.pipe)(t,xM(n))},xT=function(t){return function(n){return{peek:function(e){return t({peek:n.peek,pos:e})},pos:n.pos}}},xx=function(t){return t.peek(t.pos)},xw=xT(t5.identity),xM=function(t){return function(n){return{peek:function(e){return t(n.peek(e))},pos:n.pos}}},xO="Store",xE={URI:xO,map:xS},xC=(0,np.flap)(xE),xk={URI:xO,map:xS,extend:function(t,n){return(0,t5.pipe)(t,xT(n))},extract:xx},xW=xk;function xF(t,n){return function(e,r){return n.compose(t.second(r),t.first(e))}}function xP(t,n){var e=xF(t,n);return function(r,i){return n.compose(e(r,i),t.promap(n.id(),t5.identity,function(t){return[t,t]}))}}function xA(t){return xF(t,t)}function xD(t){return xP(t,t)}var xU=function(){return{concat:function(t,n){return Object.assign({},t,n)}}},xL=function(t){return function(n){var e={};for(var r in n)eT.e$.call(n,r)&&(e[r]=t[r](n[r]));return e}},xN=function(t,n){var e,r,i,u,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(c){return function(a){if(e)throw TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(o=0)),o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},xj=aL(dZ),xq=aB(dZ),xG=dK,xK=aH(dZ),xY=function(t){return xV(dD(t))},xV=aj(dz),xB=dq(nd.fromEither),xH=az(dz),xz=xH,xX=aX(d3),xJ=xX,x$=xX,xZ=x$,xQ=aJ(d4),x0=xQ,x1=aq(dZ),x2=function(t){return function(){var n,e,r,i;return n=void 0,e=void 0,r=void 0,i=function(){return xN(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t().then(eT.G)];case 1:return[2,n.sent()];case 2:return n.sent(),[2,eT.YP];case 3:return[2]}})},new(r||(r=Promise))(function(t,u){function o(t){try{c(i.next(t))}catch(t){u(t)}}function a(t){try{c(i.throw(t))}catch(t){u(t)}}function c(n){var e;n.done?t(n.value):((e=n.value)instanceof r?e:new r(function(t){t(e)})).then(o,a)}c((i=i.apply(n,e||[])).next())})}},x5=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return x2(function(){return t.apply(void 0,n)})}},x8=aG(dZ),x3=aK(d4),x4=aY(dZ),x7=aV(d4),x9=a$(dz),x6=aZ(dQ),wt=xj,wn=(0,t5.dual)(2,a0(d4)),we={flatMap:wn},wr=eT.we({fromIO:xY},we),wi=eT.D9({fromTask:xV},we),wu=wn(t5.identity),wo=a1(d4),wa=wo,wc=aN(dZ),wf=wc(),wl=nh(dz,nd.Compactable),wp=nm(dz,nd.Compactable,nd.Functor),wd=et(dz,nd.Filterable),ws=en(dz,nd.Filterable),wh=ee(dz,nd.Filterable),wm=er(dz,nd.Filterable),wv=function(t,n){return(0,t5.pipe)(t,x9(n))},wg=function(t,n){return(0,t5.pipe)(t,x6(n))},wy=function(t,n){return(0,t5.pipe)(t,wo(n))},wb="TaskOption",w_={URI:wb,map:wv},wI=(0,t5.dual)(2,(0,np.as)(w_)),wR=(0,np.asUnit)(w_),wS=(0,np.flap)(w_),wT={URI:wb,of:wt},wx={URI:wb,map:wv,ap:wg},ww=(0,tN.apFirst)(wx),wM=(0,tN.apSecond)(wx),wO={URI:wb,map:wv,ap:wg,of:wt},wE=function(t,n){return wn(t,function(t){return(0,t5.pipe)(n,x9(t))})},wC={URI:wb,map:wv,ap:wE},wk={URI:wb,map:wv,ap:wE,of:wt},wW={URI:wb,map:wv,ap:wg,chain:wn},wF={URI:wb,fromEither:xK},wP={URI:wb,fromIO:xY},wA={URI:wb,fromIO:xY,fromTask:xV},wD=(0,t5.dual)(2,nu.tap(wW)),wU=(0,t5.dual)(2,(0,eb.tapEither)(wF,wW)),wL=(0,t5.dual)(2,eS(wP,wW)),wN=(0,t5.dual)(2,is(wA,wW)),wj={URI:wb,map:wv,alt:wy},wq={URI:wb,zero:wc},wG=(0,a5.guard)(wq,wT),wK={URI:wb,map:wv,ap:wg,of:wt,alt:wy,zero:wc},wY={URI:wb,map:wv,ap:wg,of:wt,chain:wn},wV={URI:wb,map:wv,ap:wg,of:wt,chain:wn,fromIO:xY},wB={URI:wb,map:wv,ap:wg,of:wt,chain:wn,fromIO:xY,fromTask:xV},wH={URI:wb,compact:wl,separate:wp},wz={URI:wb,map:wv,compact:wl,separate:wp,filter:function(t,n){return(0,t5.pipe)(t,wd(n))},filterMap:function(t,n){return(0,t5.pipe)(t,ws(n))},partition:function(t,n){return(0,t5.pipe)(t,wh(n))},partitionMap:function(t,n){return(0,t5.pipe)(t,wm(n))}},wX=e_(wP),wJ=wr,w$=wL,wZ=(0,eb.fromEitherK)(wF),wQ=(0,eb.chainEitherK)(wF,wW),w0=wU,w1=il(wA),w2=wi,w5=wN,w8=wt(eT.F4),w3=(0,np.bindTo)(w_),w4=(0,np.let)(w_),w7=nu.bind(wW),w9=(0,tN.apS)(wx),w6=wt(eT.Xl),Mt=function(t){return(0,t5.flow)(sv(t),dq(nd.traverseReadonlyNonEmptyArrayWithIndex(t5.SK)))},Mn=function(t){var n=Mt(t);return function(t){return eT.Od(t)?n(t):w6}},Me=function(t){return function(n){return function(){return eT.Gb(n).reduce(function(n,e,r){return n.then(function(i){return eT.Wi(i)?n:t(r+1,e)().then(function(t){return eT.Wi(t)?t:(i.value.push(t.value),i)})})},t(0,eT.YM(n))().then(nd.map(eT.ri)))}}},Mr=function(t){var n=Me(t);return function(t){return eT.Od(t)?n(t):w6}},Mi=Mn,Mu=function(t){return Mn(function(n,e){return t(e)})},Mo=Mu(t5.identity),Ma=Mr,Mc=function(t){return Mr(function(n,e){return t(e)})},Mf=Mc(t5.identity),Ml=wn,Mp=wD,Md=function(t){return"Left"===t._tag},Ms=function(t){return"Right"===t._tag};function Mh(t){return"Both"===t._tag}function Mm(t){return{_tag:"Left",left:t}}function Mv(t){return{_tag:"Right",right:t}}function Mg(t,n){return{_tag:"Both",left:t,right:n}}var My=function(t,n,e){return function(r){switch(r._tag){case"Left":return t(r.left);case"Right":return n(r.right);case"Both":return e(r.left,r.right)}}},Mb=My,M_=My,MI=M_,MR=M_(Mv,Mm,function(t,n){return Mg(n,t)});function MS(t,n){return{show:M_(function(n){return"left(".concat(t.show(n),")")},function(t){return"right(".concat(n.show(t),")")},function(e,r){return"both(".concat(t.show(e),", ").concat(n.show(r),")")})}}function MT(t,n){return(0,n3.fromEquals)(function(e,r){return Md(e)?Md(r)&&t.equals(e.left,r.left):Ms(e)?Ms(r)&&n.equals(e.right,r.right):Mh(r)&&t.equals(e.left,r.left)&&n.equals(e.right,r.right)})}function Mx(t,n){return{concat:function(e,r){return Md(e)?Md(r)?Mm(t.concat(e.left,r.left)):Ms(r)?Mg(e.left,r.right):Mg(t.concat(e.left,r.left),r.right):Ms(e)?Md(r)?Mg(r.left,e.right):Ms(r)?Mv(n.concat(e.right,r.right)):Mg(r.left,n.concat(e.right,r.right)):Md(r)?Mg(t.concat(e.left,r.left),e.right):Ms(r)?Mg(e.left,n.concat(e.right,r.right)):Mg(t.concat(e.left,r.left),n.concat(e.right,r.right))}}}var Mw=function(t){return{URI:MQ,_E:void 0,map:MU,ap:function(n,e){return Md(n)?Md(e)?Mm(t.concat(n.left,e.left)):Ms(e)?Mm(n.left):Mm(t.concat(n.left,e.left)):Ms(n)?Md(e)?Mm(e.left):Ms(e)?Mv(n.right(e.right)):Mg(e.left,n.right(e.right)):Md(e)?Mm(t.concat(n.left,e.left)):Ms(e)?Mg(n.left,n.right(e.right)):Mg(t.concat(n.left,e.left),n.right(e.right))}}};function MM(t){return{URI:MQ,_E:void 0,map:MU,ap:Mw(t).ap,of:MZ}}function MO(t){return{URI:MQ,_E:void 0,map:MU,ap:Mw(t).ap,chain:function(n,e){if(Md(n))return n;if(Ms(n))return e(n.right);var r=e(n.right);return Md(r)?Mm(t.concat(n.left,r.left)):Ms(r)?Mg(n.left,r.right):Mg(t.concat(n.left,r.left),r.right)}}}function ME(t){var n=MO(t);return{URI:MQ,_E:void 0,map:MU,of:MZ,ap:n.ap,chain:n.chain,throwError:Mm}}function MC(t){return Md(t)?eT.G(t.left):Ms(t)?eT.YP:eT.G(t.left)}function Mk(t){return Md(t)?eT.YP:(Ms(t),eT.G(t.right))}function MW(t){return function(n){return eT.Wi(n)?Mm(t):Mg(t,n.value)}}function MF(t){return function(n){return eT.Wi(n)?Mv(t):Mg(n.value,t)}}function MP(t){return Md(t)?eT.G(t.left):eT.YP}function MA(t){return Ms(t)?eT.G(t.right):eT.YP}var MD=function(t,n){return eT.Wi(t)?eT.Wi(n)?eT.YP:eT.G(Mv(n.value)):eT.Wi(n)?eT.G(Mm(t.value)):eT.G(Mg(t.value,n.value))},MU=function(t,n){return(0,t5.pipe)(t,MB(n))},ML=function(t,n,e){return(0,t5.pipe)(t,MY(n,e))},MN=function(t,n){return(0,t5.pipe)(t,MV(n))},Mj=function(t,n,e){return(0,t5.pipe)(t,MH(n,e))},Mq=function(t){var n=Mz(t);return function(t,e){return(0,t5.pipe)(t,n(e))}},MG=function(t,n,e){return(0,t5.pipe)(t,MX(n,e))},MK=function(t){var n=MJ(t);return function(t,e){return(0,t5.pipe)(t,n(e))}},MY=function(t,n){return function(e){return Md(e)?Mm(t(e.left)):Ms(e)?Mv(n(e.right)):Mg(t(e.left),n(e.right))}},MV=function(t){return function(n){return Md(n)?Mm(t(n.left)):Mh(n)?Mg(t(n.left),n.right):n}},MB=function(t){return function(n){return Md(n)?n:Ms(n)?Mv(t(n.right)):Mg(n.left,t(n.right))}},MH=function(t,n){return function(e){return Md(e)?t:n(t,e.right)}},Mz=function(t){return function(n){return function(e){return Md(e)?t.empty:n(e.right)}}},MX=function(t,n){return function(e){return Md(e)?t:n(e.right,t)}},MJ=function(t){return function(n){return function(e){return Md(e)?t.of(e):Ms(e)?t.map(n(e.right),Mv):t.map(n(e.right),function(t){return Mg(e.left,t)})}}},M$=function(t){return function(n){return Md(n)?t.of(n):Ms(n)?t.map(n.right,Mv):t.map(n.right,function(t){return Mg(n.left,t)})}},MZ=Mv,MQ="These",M0={URI:MQ,map:MU},M1=(0,np.flap)(M0),M2={URI:MQ,of:MZ},M5={URI:MQ,bimap:ML,mapLeft:MN},M8={URI:MQ,fromThese:t5.identity},M3={URI:MQ,reduce:Mj,foldMap:Mq,reduceRight:MG},M4={URI:MQ,map:MU,reduce:Mj,foldMap:Mq,reduceRight:MG,traverse:MK,sequence:M$},M7={URI:MQ,fromEither:t5.identity},M9=(0,eb.fromPredicate)(M7),M6=(0,eb.fromOption)(M7),Ot=(0,eb.fromOptionK)(M7),On=function(t){return function(n){return function(e){return!Md(e)&&t.equals(n,e.right)}}},Oe=function(t){return function(n){return!Md(n)&&t(n.right)}},Or=function(t,n){return function(e){return Md(e)?[e.left,n()]:Ms(e)?[t(),e.right]:[e.left,e.right]}},Oi=function(t,n){return Or(function(){return t},function(){return n})},Ou=MZ(eT.Xl),Oo=function(t){return function(n){return function(e){var r=eT.YP,i=n(0,eT.YM(e));if(Md(i))return i;Mh(i)&&(r=eT.G(i.left));for(var u=[i.right],o=1;o<e.length;o++){var a=n(o,e[o]);if(Md(a))return a;Mh(a)&&(r=eT.Wi(r)?eT.G(a.left):eT.G(t.concat(r.value,a.left))),u.push(a.right)}return eT.Wi(r)?Mv(u):Mg(r.value,u)}}},Oa=function(t){return function(n){var e=Oo(t)(n);return function(t){return eT.Od(t)?e(t):Ou}}},Oc={URI:MQ,map:MU,bimap:ML,mapLeft:MN,reduce:Mj,foldMap:Mq,reduceRight:MG,traverse:MK,sequence:M$};function Of(t){return(0,t5.flow)(Mv,t.of)}function Ol(t){return(0,t5.flow)(Mm,t.of)}function Op(t){return(0,t5.flow)(Mg,t.of)}function Od(t){return function(n){return t.map(n,Mv)}}function Os(t){return function(n){return t.map(n,Mm)}}function Oh(t){return(0,np.map)(t,M0)}function Om(t,n){return(0,tN.ap)(t,Mw(n))}function Ov(t,n){var e=Ol(t);return function(r){return function(i){return t.chain(i,M_(e,r,function(e,i){return t.map(r(i),M_(function(t){return Mm(n.concat(e,t))},function(t){return Mg(e,t)},function(t,r){return Mg(n.concat(e,t),r)}))}))}}}function Og(t){return function(n,e){return function(r){return t.map(r,MY(n,e))}}}function Oy(t){return function(n){return function(e){return t.map(e,MV(n))}}}function Ob(t){return function(n,e,r){return function(i){return t.map(i,M_(n,e,r))}}}function O_(t){return function(n,e,r){return function(i){return t.chain(i,M_(n,e,r))}}}function OI(t){return function(n){return t.map(n,MR)}}function OR(t){return function(n,e){return function(r){return t.map(r,Or(n,e))}}}function OS(t){var n=Oh(t),e=Og(t),r=Oy(t),i=O_(t),u=OR(t),o=Of(t),a=function(t,e){return(0,t5.pipe)(t,n(e))};return{map:a,bimap:function(t,n,r){return(0,t5.pipe)(t,e(n,r))},mapLeft:function(t,n){return(0,t5.pipe)(t,r(n))},fold:function(t,n,e,r){return(0,t5.pipe)(t,i(n,e,r))},swap:OI(t),rightM:Od(t),leftM:Os(t),left:Ol(t),right:Of(t),both:Op(t),toTuple:function(t,n,e){return(0,t5.pipe)(t,u(function(){return n},function(){return e}))},getMonad:function(n){var e=Om(t,n),r=Ov(t,n);return{_E:void 0,map:a,of:o,ap:function(t,n){return(0,t5.pipe)(t,e(n))},chain:function(t,n){return(0,t5.pipe)(t,r(n))}}}}}var OT=Ol(dZ),Ox=Of(dZ),Ow=Op(dZ),OM=Od(dz),OO=Os(dz),OE=(0,t5.flow)(dD,OM),OC=(0,t5.flow)(dD,OO),Ok=dK,OW=dK,OF=OE,OP=dD,OA=OM,OD=Ob(dz),OU=OD,OL=O_(d4),ON=OL,Oj=ON,Oq=Oj,OG=OI(dz),OK=function(t,n){return(0,t5.pipe)(t,OB(n))},OY=function(t,n,e){return(0,t5.pipe)(t,OH(n,e))},OV=function(t,n){return(0,t5.pipe)(t,Oz(n))},OB=Oh(dz),OH=Og(dz),Oz=Oy(dz),OX=Ox,OJ="TaskThese",O$=function(t,n){var e=Om(t,n);return{URI:OJ,_E:void 0,map:OK,ap:function(t,n){return(0,t5.pipe)(t,e(n))}}};function OZ(t,n){return{URI:OJ,_E:void 0,map:OK,ap:O$(t,n).ap,of:OX}}function OQ(t){var n=O$(d2,t),e=Ov(d4,t);return{URI:OJ,_E:void 0,map:OK,ap:n.ap,chain:function(t,n){return(0,t5.pipe)(t,e(n))}}}function O0(t){var n=OZ(d2,t),e=OQ(t);return{URI:OJ,_E:void 0,map:OK,ap:n.ap,of:OX,chain:e.chain,fromIO:OF,fromTask:OA}}var O1={URI:OJ,map:OK},O2=(0,np.flap)(O1),O5={URI:OJ,of:OX},O8={URI:OJ,bimap:OY,mapLeft:OV},O3={URI:OJ,fromEither:Ok},O4=(0,eb.fromOption)(O3),O7=(0,eb.fromOptionK)(O3),O9=(0,eb.fromPredicate)(O3),O6={URI:OJ,fromThese:OW},Et=ih(O6),En={URI:OJ,fromIO:OF},Ee=e_(En),Er={URI:OJ,fromIO:OF,fromTask:OA},Ei=il(Er),Eu=OR(dz),Eo=OX(eT.Xl),Ea=function(t){var n=Oo(t);return function(t){return(0,t5.flow)(sv(t),dq(n(t5.SK)))}},Ec=function(t){return function(n){var e=Ea(t)(n);return function(t){return eT.Od(t)?e(t):Eo}}},Ef=function(t){return function(n){return function(e){return function(){return eT.Gb(e).reduce(function(e,r,i){return e.then(function(u){return Md(u)?e:n(i+1,r)().then(function(n){if(Md(n))return n;if(Mh(n)){var e=u.right;return e.push(n.right),Mh(u)?Mg(t.concat(u.left,n.left),e):Mg(n.left,e)}return u.right.push(n.right),u})})},n(0,eT.YM(e))().then(MB(eT.ri)))}}}},El=function(t){return function(n){var e=Ef(t)(n);return function(t){return eT.Od(t)?e(t):Eo}}},Ep={URI:OJ,map:OK},Ed={URI:OJ,bimap:OY,mapLeft:OV},Es=function(t,n){return Eu(function(){return t},function(){return n})},Eh={URI:OJ,map:OK,bimap:OY,mapLeft:OV},Em=function(t,n){return(0,tN.getApplySemigroup)(d5)(Mx(t,n))};function Ev(t,n){return function(e){return e(n(e(t.empty)))}}function Eg(t){return function(n){return[t(n),n]}}function Ey(t){return function(n){return function(e){return[n(e),t(e)]}}}function Eb(t){return function(n){return function(e){return n(t(e))}}}function E_(t){return{URI:ES,_E:void 0,map:EI,extend:function(n,e){return function(r){return e(function(e){return n(t.concat(r,e))})}},extract:function(n){return n(t.empty)}}}var EI=function(t,n){return(0,t5.pipe)(t,ER(n))},ER=function(t){return function(n){return function(e){return t(n(e))}}},ES="Traced",ET={URI:ES,map:EI},Ex=(0,np.flap)(ET),Ew=ET;function EM(t,n){return function(e){var r=t.traverse(e),i=n.traverse(e);return function(t){return function(n){return r(n,function(n){return i(n,t)})}}}}function EO(t,n){return function(e){var r=t.sequence(e),i=n.sequence(e);return function(n){return r(t.map(n,i))}}}function EE(t,n){var e=(0,np.getFunctorComposition)(t,n).map,r=eh(t,n),i=EM(t,n),u=EO(t,n);return{map:e,reduce:r.reduce,foldMap:r.foldMap,reduceRight:r.reduceRight,traverse:function(t){var n=i(t);return function(t,e){return(0,t5.pipe)(t,n(e))}},sequence:function(t){var n=u(t);return function(t){return(0,t5.pipe)(t,n)}}}}function EC(t,n){return void 0===n&&(n=[]),{value:t,forest:n}}function Ek(t){var n=function(e){return tK.isEmpty(e.forest)?"make(".concat(t.show(e.value),")"):"make(".concat(t.show(e.value),", [").concat(e.forest.map(n).join(", "),"])")};return{show:n}}function EW(t){var n,e=(0,n3.fromEquals)(function(e,r){return t.equals(e.value,r.value)&&n.equals(e.forest,r.forest)});return n=tK.getEq(e),e}var EF=function(t,n){for(var e,r="",i=n.length,u=0;u<i;u++){e=n[u];var o=u===i-1;r+=t+(o?"└":"├")+"─ "+e.value+EF(t+(i>1&&!o?"│ ":" "),e.forest)}return r};function EP(t){return EF("\n",t)}function EA(t){return t.value+EP(t.forest)}function ED(t,n){var e=n(t);return{value:e[0],forest:EU(e[1],n)}}function EU(t,n){return t.map(function(t){return ED(t,n)})}function EL(t){var n=EN(t);return function(e,r){return t.chain(r(e),function(e){var i=e[0],u=e[1];return t.map(n(u,r),function(t){return{value:i,forest:t}})})}}function EN(t){var n=tK.traverse(t);return function(e,r){return(0,t5.pipe)(e,n(function(n){return EL(t)(n,r)}))}}function Ej(t){var n=function(e){return t(e.value,e.forest.map(n))};return n}var Eq=function(t,n){return(0,t5.pipe)(t,EQ(n))},EG=function(t,n){return EX(t,function(t){return(0,t5.pipe)(n,EQ(t))})},EK=function(t,n,e){return(0,t5.pipe)(t,E0(n,e))},EY=function(t){var n=E1(t);return function(t,e){return(0,t5.pipe)(t,n(e))}},EV=function(t,n,e){return(0,t5.pipe)(t,E2(n,e))},EB=function(t,n){return(0,t5.pipe)(t,EJ(n))},EH=function(t){var n=E8(t);return function(t,e){return(0,t5.pipe)(t,n(e))}},Ez=function(t){return function(n){return EG(n,t)}},EX=(0,t5.dual)(2,function(t,n){var e=n(t.value),r=e.value,i=e.forest;return{value:r,forest:(0,tK.getMonoid().concat)(i,t.forest.map(EX(n)))}}),EJ=function(t){return function(n){return{value:t(n),forest:n.forest.map(EJ(t))}}},E$=EJ(t5.identity),EZ=EX(t5.identity),EQ=function(t){return function(n){return{value:t(n.value),forest:n.forest.map(EQ(t))}}},E0=function(t,n){return function(e){for(var r=n(t,e.value),i=e.forest.length,u=0;u<i;u++)r=(0,t5.pipe)(e.forest[u],E0(r,n));return r}},E1=function(t){return function(n){return E0(t.empty,function(e,r){return t.concat(e,n(r))})}},E2=function(t,n){return function(e){for(var r=t,i=e.forest.length,u=i-1;u>=0;u--)r=(0,t5.pipe)(e.forest[u],E2(r,n));return n(e.value,r)}},E5=function(t){return t.value},E8=function(t){var n=tK.traverse(t),e=function(r){return function(i){return t.ap(t.map(r(i.value),function(t){return function(n){return{value:t,forest:n}}}),(0,t5.pipe)(i.forest,n(e(r))))}};return e},E3=function(t){return E8(t)(t5.identity)},E4=function(t){return EC(t)},E7="Tree",E9={URI:E7,map:Eq},E6=(0,np.flap)(E9),Ct={URI:E7,of:E4},Cn={URI:E7,map:Eq,ap:EG},Ce=(0,tN.apFirst)(Cn),Cr=(0,tN.apSecond)(Cn),Ci={URI:E7,map:Eq,ap:EG,of:E4},Cu={URI:E7,map:Eq,ap:EG,chain:EX},Co={URI:E7,map:Eq,ap:EG,of:E4,chain:EX},Ca=(0,nu.chainFirst)(Cu),Cc={URI:E7,reduce:EK,foldMap:EY,reduceRight:EV},Cf={URI:E7,map:Eq,reduce:EK,foldMap:EY,reduceRight:EV,traverse:EH,sequence:E3},Cl={URI:E7,map:Eq,extend:EB,extract:E5},Cp=E4(eT.F4),Cd=(0,np.bindTo)(E9),Cs=(0,np.let)(E9),Ch=(0,nu.bind)(Cu),Cm=(0,tN.apS)(Cn);function Cv(t){var n=function(e,r){return t.equals(e,r.value)||r.forest.some(function(t){return n(e,t)})};return n}var Cg=function(t){return function(n){return t(n.value)||n.forest.some(Cg(t))}},Cy=EX,Cb={URI:E7,map:Eq,of:E4,ap:EG,chain:EX,reduce:EK,foldMap:EY,reduceRight:EV,traverse:EH,sequence:E3,extract:E5,extend:EB},C_=_T,CI=_x,CR=function(t){return[CI(t),C_(t)]};function CS(t){return{URI:CJ,_E:void 0,map:CC,ap:function(n,e){return[C_(n)(C_(e)),t.concat(CI(n),CI(e))]}}}var CT=function(t){return function(n){return[n,t.empty]}};function Cx(t){var n=CS(t);return{URI:CJ,_E:void 0,map:n.map,ap:n.ap,of:CT(t)}}function Cw(t){var n=CS(t);return{URI:CJ,_E:void 0,map:n.map,ap:n.ap,chain:function(n,e){var r=e(C_(n)),i=r[0],u=r[1];return[i,t.concat(CI(n),u)]}}}function CM(t){var n=Cw(t);return{URI:CJ,_E:void 0,map:n.map,ap:n.ap,chain:n.chain,of:CT(t)}}function CO(t){var n=Cw(t);return{URI:CJ,_E:void 0,map:n.map,ap:n.ap,chain:n.chain,chainRec:function(n,e){for(var r=e(n),i=t.empty,u=C_(r);"Left"===u._tag;)i=t.concat(i,CI(r)),u=C_(r=e(u.left));return[u.right,t.concat(i,CI(r))]}}}var CE=function(t,n){return(0,t5.pipe)(t,Cq(n))},CC=function(t,n){return(0,t5.pipe)(t,CN(n))},Ck=function(t,n,e){return(0,t5.pipe)(t,CL(n,e))},CW=function(t,n){return(0,t5.pipe)(t,Cj(n))},CF=function(t,n){return(0,t5.pipe)(t,CG(n))},CP=function(t,n,e){return(0,t5.pipe)(t,CB(n,e))},CA=function(t){var n=CV(t);return function(t,e){return(0,t5.pipe)(t,n(e))}},CD=function(t,n,e){return(0,t5.pipe)(t,CH(n,e))};function CU(t){var n=Cz(t);return function(t,e){return(0,t5.pipe)(t,n(e))}}var CL=function(t,n){return function(e){return[n(C_(e)),t(CI(e))]}},CN=function(t){return function(n){return[t(C_(n)),CI(n)]}},Cj=function(t){return function(n){return[C_(n),t(CI(n))]}},Cq=function(t){return function(n){return[C_(n),CI(t)]}},CG=function(t){return function(n){return[t(n),CI(n)]}},CK=CG(t5.identity),CY=_H,CV=_J,CB=_X,CH=_$,Cz=function(t){return function(n){return function(e){return t.map(n(C_(e)),function(t){return[t,CI(e)]})}}},CX=function(t){return function(n){return t.map(C_(n),function(t){return[t,CI(n)]})}},CJ="Tuple",C$={URI:CJ,map:CC},CZ=(0,np.flap)(C$),CQ={URI:CJ,bimap:Ck,mapLeft:CW},C0={URI:CJ,compose:CE},C1={URI:CJ,map:CC,extend:CF,extract:CY},C2={URI:CJ,reduce:CP,foldMap:CA,reduceRight:CD},C5={URI:CJ,map:CC,reduce:CP,foldMap:CA,reduceRight:CD,traverse:CU,sequence:CX},C8=CN,C3=Cj,C4={URI:CJ,compose:CE,map:CC,bimap:Ck,mapLeft:CW,extract:CY,extend:CF,reduce:CP,foldMap:CA,reduceRight:CD,traverse:CU,sequence:CX};function C7(t,n){var e=(0,tG.getApplicativeComposition)(n,nC.getApplicativeValidation(t));return{map:e.map,ap:e.ap,of:e.of,chain:function(t,e){return n.chain(t,function(t){return eT.nM(t)?n.of(eT.t$(t.left)):e(t.right)})},alt:function(e,r){return n.chain(e,function(e){return eT.tO(e)?n.of(e):n.map(r(),function(n){return eT.nM(n)?eT.t$(t.concat(e.left,n.left)):n})})}}}var C9=In.constant(void 0),C6={concat:C9.concat,empty:void 0},kt=function(t){return function(){return[void 0,t]}},kn=function(t){return function(){var n=t(),e=n[0],r=n[1];return[[e,r],r]}},ke=function(t){return function(){var n=t(),e=n[0];return[e[0],(0,e[1])(n[1])]}},kr=function(t){return function(n){return function(){var e=n(),r=e[0],i=e[1];return[[r,t(i)],i]}}},ki=function(t){return function(n){return function(){var e=n();return[e[0],t(e[1])]}}},ku=function(t,n){return(0,t5.pipe)(t,ko(n))},ko=function(t){return function(n){return function(){var e=n(),r=e[0],i=e[1];return[t(r),i]}}},ka="Writer",kc=function(t){return{URI:ka,_E:void 0,of:function(n){return function(){return[n,t.empty]}}}},kf=function(t){return{URI:ka,_E:void 0,map:ku,ap:function(n,e){return function(){var r=n(),i=r[0],u=r[1],o=e(),a=o[0],c=o[1];return[i(a),t.concat(u,c)]}}}},kl=function(t){var n=kf(t),e=kc(t);return{URI:ka,_E:void 0,map:ku,ap:n.ap,of:e.of}};function kp(t){return{URI:ka,_E:void 0,map:ku,ap:kf(t).ap,chain:function(n,e){return function(){var r=n(),i=r[0],u=r[1],o=e(i)(),a=o[0],c=o[1];return[a,t.concat(u,c)]}}}}function kd(t){var n=kl(t),e=kp(t);return{URI:ka,_E:void 0,map:ku,ap:n.ap,of:n.of,chain:e.chain}}var ks={URI:ka,map:ku},kh=(0,np.flap)(ks),km=function(t){return t()[0]},kv=function(t){return t()[1]},kg=function(t){return t()[0]},ky=function(t){return t()[1]},kb=ks;function k_(t){var n=function(n,e){return function(){return t.map(n(),function(t){var n=t[0],r=t[1];return[e(n),r]})}};return{map:n,evalWriter:function(n){return t.map(n(),function(t){return t[0]})},execWriter:function(n){return t.map(n(),function(t){return t[0],t[1]})},tell:function(n){return function(){return t.of([void 0,n])}},listen:function(n){return function(){return t.map(n(),function(t){var n=t[0],e=t[1];return[[n,e],e]})}},pass:function(n){return function(){return t.map(n(),function(t){var n=t[0];return[n[0],(0,n[1])(t[1])]})}},listens:function(n,e){return function(){return t.map(n(),function(t){var n=t[0],r=t[1];return[[n,e(r)],r]})}},censor:function(n,e){return function(){return t.map(n(),function(t){return[t[0],e(t[1])]})}},getMonad:function(e){return{_E:void 0,map:n,of:function(n){return function(){return t.of([n,e.empty])}},ap:function(n,r){return function(){return t.chain(n(),function(n){var i=n[0],u=n[1];return t.map(r(),function(t){var n=t[0],r=t[1];return[i(n),e.concat(u,r)]})})}},chain:function(n,r){return function(){return t.chain(n(),function(n){var i=n[0],u=n[1];return t.map(r(i)(),function(t){var n=t[0],r=t[1];return[n,e.concat(u,r)]})})}}}}}}},97963:function(t,n,e){e.d(n,{D9:function(){return M},F2:function(){return d},F4:function(){return y},G:function(){return c},Gb:function(){return v},Od:function(){return h},WE:function(){return R},Wi:function(){return u},Xl:function(){return g},YM:function(){return m},YP:function(){return a},e$:function(){return b},hU:function(){return T},iu:function(){return x},nM:function(){return f},ny:function(){return S},on:function(){return O},pC:function(){return o},r1:function(){return _},ri:function(){return s},t$:function(){return p},tO:function(){return l},uL:function(){return I},we:function(){return w}});var r=e(42275),i=function(t,n,e){if(e||2==arguments.length)for(var r,i=0,u=n.length;i<u;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return t.concat(r||Array.prototype.slice.call(n))},u=function(t){return"None"===t._tag},o=function(t){return"Some"===t._tag},a={_tag:"None"},c=function(t){return{_tag:"Some",value:t}},f=function(t){return"Left"===t._tag},l=function(t){return"Right"===t._tag},p=function(t){return{_tag:"Left",left:t}},d=function(t){return{_tag:"Right",right:t}},s=function(t){return[t]},h=function(t){return t.length>0},m=function(t){return t[0]},v=function(t){return t.slice(1)},g=[],y={},b=Object.prototype.hasOwnProperty,_=function(t){return i([t[0]],t.slice(1),!0)},I=function(t){return function(n,e){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var u=n.apply(void 0,r);return t.fromEither(null==u?p(e.apply(void 0,r)):d(u))}}},R=function(t){return function(n,e){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=n.apply(void 0,r);return t.fromEither(u(o)?p(e.apply(void 0,r)):d(o.value))}}},S=function(t,n){return(0,r.dual)(3,function(e,r,i){return n.flatMap(e,I(t)(r,i))})},T=function(t,n){return(0,r.dual)(3,function(e,r,i){return n.flatMap(e,R(t)(r,i))})},x=function(t,n){return(0,r.dual)(2,function(e,r){return n.flatMap(e,function(n){return t.fromEither(r(n))})})},w=function(t,n){return(0,r.dual)(2,function(e,r){return n.flatMap(e,function(n){return t.fromIO(r(n))})})},M=function(t,n){return(0,r.dual)(2,function(e,r){return n.flatMap(e,function(n){return t.fromTask(r(n))})})},O=function(t,n){return(0,r.dual)(2,function(e,r){return n.flatMap(e,function(n){return t.fromReader(r(n))})})}},76627:function(t,n,e){e.r(n),e.d(n,{Bounded:function(){return o},Eq:function(){return i},Field:function(){return s},MagmaSub:function(){return c},MonoidProduct:function(){return d},MonoidSum:function(){return p},Ord:function(){return u},SemigroupProduct:function(){return l},SemigroupSum:function(){return f},Show:function(){return a},isNumber:function(){return r}});var r=function(t){return"number"==typeof t},i={equals:function(t,n){return t===n}},u={equals:i.equals,compare:function(t,n){return t<n?-1:t>n?1:0}},o={equals:i.equals,compare:u.compare,top:1/0,bottom:-1/0},a={show:function(t){return JSON.stringify(t)}},c={concat:function(t,n){return t-n}},f={concat:function(t,n){return t+n}},l={concat:function(t,n){return t*n}},p={concat:f.concat,empty:0},d={concat:l.concat,empty:1},s={add:f.concat,zero:0,mul:l.concat,one:1,sub:c.concat,degree:function(t){return 1},div:function(t,n){return t/n},mod:function(t,n){return t%n}}},18896:function(t,n,e){e.r(n),e.d(n,{alt:function(){return _},ap:function(){return f},bimap:function(){return p},chain:function(){return l},compose:function(){return C},contramap:function(){return a},extend:function(){return s},filter:function(){return I},filterMap:function(){return R},filterMapWithIndex:function(){return w},filterWithIndex:function(){return x},foldMap:function(){return m},foldMapWithIndex:function(){return y},map:function(){return o},mapLeft:function(){return d},mapWithIndex:function(){return c},partition:function(){return S},partitionMap:function(){return T},partitionMapWithIndex:function(){return O},partitionWithIndex:function(){return M},pipe:function(){return W},pipeable:function(){return k},promap:function(){return E},reduce:function(){return h},reduceRight:function(){return v},reduceRightWithIndex:function(){return b},reduceWithIndex:function(){return g}});var r=e(42925),i=e(88543),u=e(42275);function o(t){return function(n){return function(e){return t.map(e,n)}}}function a(t){return function(n){return function(e){return t.contramap(e,n)}}}function c(t){return function(n){return function(e){return t.mapWithIndex(e,n)}}}function f(t){return function(n){return function(e){return t.ap(e,n)}}}function l(t){return function(n){return function(e){return t.chain(e,n)}}}function p(t){return function(n,e){return function(r){return t.bimap(r,n,e)}}}function d(t){return function(n){return function(e){return t.mapLeft(e,n)}}}function s(t){return function(n){return function(e){return t.extend(e,n)}}}function h(t){return function(n,e){return function(r){return t.reduce(r,n,e)}}}function m(t){return function(n){var e=t.foldMap(n);return function(t){return function(n){return e(n,t)}}}}function v(t){return function(n,e){return function(r){return t.reduceRight(r,n,e)}}}function g(t){return function(n,e){return function(r){return t.reduceWithIndex(r,n,e)}}}function y(t){return function(n){var e=t.foldMapWithIndex(n);return function(t){return function(n){return e(n,t)}}}}function b(t){return function(n,e){return function(r){return t.reduceRightWithIndex(r,n,e)}}}function _(t){return function(n){return function(e){return t.alt(e,n)}}}function I(t){return function(n){return function(e){return t.filter(e,n)}}}function R(t){return function(n){return function(e){return t.filterMap(e,n)}}}function S(t){return function(n){return function(e){return t.partition(e,n)}}}function T(t){return function(n){return function(e){return t.partitionMap(e,n)}}}function x(t){return function(n){return function(e){return t.filterWithIndex(e,n)}}}function w(t){return function(n){return function(e){return t.filterMapWithIndex(e,n)}}}function M(t){return function(n){return function(e){return t.partitionWithIndex(e,n)}}}function O(t){return function(n){return function(e){return t.partitionMapWithIndex(e,n)}}}function E(t){return function(n,e){return function(r){return t.promap(r,n,e)}}}function C(t){return function(n){return function(e){return t.compose(e,n)}}}function k(t){var n={};return"function"==typeof t.map&&(n.map=o(t)),"function"==typeof t.contramap&&(n.contramap=a(t)),"function"==typeof t.mapWithIndex&&(n.mapWithIndex=c(t)),"function"==typeof t.ap&&(n.ap=f(t),n.apFirst=(0,r.apFirst)(t),n.apSecond=(0,r.apSecond)(t)),"function"==typeof t.chain&&(n.chain=l(t),n.chainFirst=(0,i.chainFirst)(t),n.flatten=n.chain(u.identity)),"function"==typeof t.bimap&&(n.bimap=p(t),n.mapLeft=d(t)),"function"==typeof t.extend&&(n.extend=s(t),n.duplicate=n.extend(u.identity)),"function"==typeof t.reduce&&(n.reduce=h(t),n.foldMap=m(t),n.reduceRight=v(t)),"function"==typeof t.reduceWithIndex&&(n.reduceWithIndex=g(t),n.foldMapWithIndex=y(t),n.reduceRightWithIndex=b(t)),"function"==typeof t.alt&&(n.alt=_(t)),"function"==typeof t.compact&&(n.compact=t.compact,n.separate=t.separate),"function"==typeof t.filter&&(n.filter=I(t),n.filterMap=R(t),n.partition=S(t),n.partitionMap=T(t)),"function"==typeof t.filterWithIndex&&(n.filterWithIndex=x(t),n.filterMapWithIndex=w(t),n.partitionWithIndex=M(t),n.partitionMapWithIndex=O(t)),"function"==typeof t.promap&&(n.promap=E(t)),"function"==typeof t.compose&&(n.compose=C(t)),"function"==typeof t.throwError&&(n.fromOption=function(n){return function(e){return"None"===e._tag?t.throwError(n()):t.of(e.value)}},n.fromEither=function(n){return"Left"===n._tag?t.throwError(n.left):t.of(n.right)},n.fromPredicate=function(n,e){return function(r){return n(r)?t.of(r):t.throwError(e(r))}},n.filterOrElse=function(n,e){return function(r){return t.chain(r,function(r){return n(r)?t.of(r):t.throwError(e(r))})}}),n}var W=u.pipe},57029:function(t,n,e){e.r(n),e.d(n,{Eq:function(){return i},Monoid:function(){return a},Ord:function(){return c},Semigroup:function(){return u},Show:function(){return f},empty:function(){return o},endsWith:function(){return S},includes:function(){return I},isEmpty:function(){return y},isString:function(){return l},replace:function(){return s},size:function(){return b},slice:function(){return g},split:function(){return _},startsWith:function(){return R},toLowerCase:function(){return d},toUpperCase:function(){return p},trim:function(){return h},trimLeft:function(){return m},trimRight:function(){return v}});var r=e(28350),i={equals:function(t,n){return t===n}},u={concat:function(t,n){return t+n}},o="",a={concat:u.concat,empty:o},c={equals:i.equals,compare:function(t,n){return t<n?-1:t>n?1:0}},f={show:function(t){return JSON.stringify(t)}},l=function(t){return"string"==typeof t},p=function(t){return t.toUpperCase()},d=function(t){return t.toLowerCase()},s=function(t,n){return function(e){return e.replace(t,n)}},h=function(t){return t.trim()},m=function(t){return t.trimLeft()},v=function(t){return t.trimRight()},g=function(t,n){return function(e){return e.slice(t,n)}},y=function(t){return 0===t.length},b=function(t){return t.length},_=function(t){return function(n){var e=n.split(t);return(0,r.isNonEmpty)(e)?e:[n]}},I=function(t,n){return function(e){return e.includes(t,n)}},R=function(t,n){return function(e){return e.startsWith(t,n)}},S=function(t,n){return function(e){return e.endsWith(t,n)}}},91756:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.getApplicativeComposition=n.getApplicativeMonoid=void 0;var r=e(93145),i=e(14632),u=e(8762);n.getApplicativeMonoid=function(t){var n=(0,r.getApplySemigroup)(t);return function(e){return{concat:n(e).concat,empty:t.of(e.empty)}}},n.getApplicativeComposition=function(t,n){var e=(0,u.getFunctorComposition)(t,n).map,o=(0,r.ap)(t,n);return{map:e,of:function(e){return t.of(n.of(e))},ap:function(t,n){return(0,i.pipe)(t,o(n))}}}},93145:function(t,n,e){var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);(!i||("get"in i?!n.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&r(n,t,e);return i(n,t),n};Object.defineProperty(n,"__esModule",{value:!0}),n.sequenceS=n.sequenceT=n.getApplySemigroup=n.apS=n.apSecond=n.apFirst=n.ap=void 0;var o=e(14632),a=u(e(5309));function c(t,n,e){return function(r){for(var i=Array(e.length+1),u=0;u<e.length;u++)i[u]=e[u];return i[e.length]=r,0===n?t.apply(null,i):c(t,n-1,i)}}n.ap=function(t,n){return function(e){return function(r){return t.ap(t.map(r,function(t){return function(e){return n.ap(t,e)}}),e)}}},n.apFirst=function(t){return function(n){return function(e){return t.ap(t.map(e,function(t){return function(){return t}}),n)}}},n.apSecond=function(t){return function(n){return function(e){return t.ap(t.map(e,function(){return function(t){return t}}),n)}}},n.apS=function(t){return function(n,e){return function(r){return t.ap(t.map(r,function(t){return function(e){var r;return Object.assign({},t,((r={})[n]=e,r))}}),e)}}},n.getApplySemigroup=function(t){return function(n){return{concat:function(e,r){return t.ap(t.map(e,function(t){return function(e){return n.concat(t,e)}}),r)}}}};var f={1:function(t){return[t]},2:function(t){return function(n){return[t,n]}},3:function(t){return function(n){return function(e){return[t,n,e]}}},4:function(t){return function(n){return function(e){return function(r){return[t,n,e,r]}}}},5:function(t){return function(n){return function(e){return function(r){return function(i){return[t,n,e,r,i]}}}}}};n.sequenceT=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var r=n.length,i=(a.has.call(f,r)||(f[r]=c(o.tuple,r-1,[])),f[r]),u=t.map(n[0],i),l=1;l<r;l++)u=t.ap(u,n[l]);return u}},n.sequenceS=function(t){return function(n){for(var e=Object.keys(n),r=e.length,i=function(t){var n=t.length;switch(n){case 1:return function(n){var e;return(e={})[t[0]]=n,e};case 2:return function(n){return function(e){var r;return(r={})[t[0]]=n,r[t[1]]=e,r}};case 3:return function(n){return function(e){return function(r){var i;return(i={})[t[0]]=n,i[t[1]]=e,i[t[2]]=r,i}}};case 4:return function(n){return function(e){return function(r){return function(i){var u;return(u={})[t[0]]=n,u[t[1]]=e,u[t[2]]=r,u[t[3]]=i,u}}}};case 5:return function(n){return function(e){return function(r){return function(i){return function(u){var o;return(o={})[t[0]]=n,o[t[1]]=e,o[t[2]]=r,o[t[3]]=i,o[t[4]]=u,o}}}}};default:return c(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var i={},u=0;u<n;u++)i[t[u]]=e[u];return i},n-1,[])}}(e),u=t.map(n[e[0]],i),o=1;o<r;o++)u=t.ap(u,n[e[o]]);return u}}},92425:function(t,n,e){var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);(!i||("get"in i?!n.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&r(n,t,e);return i(n,t),n};Object.defineProperty(n,"__esModule",{value:!0}),n.lefts=n.rights=n.reverse=n.modifyAt=n.deleteAt=n.updateAt=n.insertAt=n.copy=n.findLastIndex=n.findLastMap=n.findLast=n.findFirstMap=n.findFirst=n.findIndex=n.dropLeftWhile=n.dropRight=n.dropLeft=n.spanLeft=n.takeLeftWhile=n.takeRight=n.takeLeft=n.init=n.tail=n.last=n.head=n.lookup=n.isOutOfBound=n.size=n.scanRight=n.scanLeft=n.chainWithIndex=n.foldRight=n.matchRight=n.matchRightW=n.foldLeft=n.matchLeft=n.matchLeftW=n.match=n.matchW=n.fromEither=n.fromOption=n.fromPredicate=n.replicate=n.makeBy=n.appendW=n.append=n.prependW=n.prepend=n.isNonEmpty=n.isEmpty=void 0,n.traverseWithIndex=n.sequence=n.traverse=n.reduceRightWithIndex=n.reduceRight=n.reduceWithIndex=n.reduce=n.foldMapWithIndex=n.foldMap=n.duplicate=n.extend=n.filterWithIndex=n.alt=n.altW=n.partitionMapWithIndex=n.partitionMap=n.partitionWithIndex=n.partition=n.filter=n.separate=n.compact=n.filterMap=n.filterMapWithIndex=n.mapWithIndex=n.flatten=n.flatMap=n.ap=n.map=n.zero=n.of=n.difference=n.intersection=n.union=n.concat=n.concatW=n.comprehension=n.fromOptionK=n.chunksOf=n.splitAt=n.chop=n.sortBy=n.uniq=n.elem=n.rotate=n.intersperse=n.prependAll=n.unzip=n.zip=n.zipWith=n.sort=void 0,n.some=n.every=n.unsafeDeleteAt=n.unsafeUpdateAt=n.unsafeInsertAt=n.fromEitherK=n.FromEither=n.filterE=n.ChainRecBreadthFirst=n.chainRecBreadthFirst=n.ChainRecDepthFirst=n.chainRecDepthFirst=n.Witherable=n.TraversableWithIndex=n.Traversable=n.FoldableWithIndex=n.Foldable=n.FilterableWithIndex=n.Filterable=n.Compactable=n.Extend=n.Alternative=n.guard=n.Zero=n.Alt=n.Unfoldable=n.Monad=n.chainFirst=n.Chain=n.Applicative=n.apSecond=n.apFirst=n.Apply=n.FunctorWithIndex=n.Pointed=n.flap=n.Functor=n.getDifferenceMagma=n.getIntersectionSemigroup=n.getUnionMonoid=n.getUnionSemigroup=n.getOrd=n.getEq=n.getMonoid=n.getSemigroup=n.getShow=n.URI=n.unfold=n.wilt=n.wither=void 0,n.array=n.prependToAll=n.snoc=n.cons=n.empty=n.range=n.chain=n.apS=n.bind=n.let=n.bindTo=n.Do=n.intercalate=n.exists=void 0;var o=e(93145),a=e(18222),c=e(57756),f=e(14632),l=e(8762),p=u(e(5309)),d=u(e(7219)),s=u(e(78703)),h=e(4773),m=e(69706),v=e(3899);n.isEmpty=function(t){return 0===t.length},n.isNonEmpty=d.isNonEmpty,n.prepend=d.prepend,n.prependW=d.prependW,n.append=d.append,n.appendW=d.appendW,n.makeBy=function(t,n){return t<=0?[]:d.makeBy(n)(t)},n.replicate=function(t,e){return(0,n.makeBy)(t,function(){return e})},n.fromPredicate=function(t){return function(n){return t(n)?[n]:[]}},n.fromOption=function(t){return p.isNone(t)?[]:[t.value]},n.fromEither=function(t){return p.isLeft(t)?[]:[t.right]},n.matchW=function(t,e){return function(r){return(0,n.isNonEmpty)(r)?e(r):t()}},n.match=n.matchW,n.matchLeftW=function(t,e){return function(r){return(0,n.isNonEmpty)(r)?e(d.head(r),d.tail(r)):t()}},n.matchLeft=n.matchLeftW,n.foldLeft=n.matchLeft,n.matchRightW=function(t,e){return function(r){return(0,n.isNonEmpty)(r)?e(d.init(r),d.last(r)):t()}},n.matchRight=n.matchRightW,n.foldRight=n.matchRight,n.chainWithIndex=function(t){return function(n){for(var e=[],r=0;r<n.length;r++)e.push.apply(e,t(r,n[r]));return e}},n.scanLeft=function(t,n){return function(e){var r=e.length,i=Array(r+1);i[0]=t;for(var u=0;u<r;u++)i[u+1]=n(i[u],e[u]);return i}},n.scanRight=function(t,n){return function(e){var r=e.length,i=Array(r+1);i[r]=t;for(var u=r-1;u>=0;u--)i[u]=n(e[u],i[u+1]);return i}},n.size=function(t){return t.length},n.isOutOfBound=d.isOutOfBound,n.lookup=s.lookup,n.head=s.head,n.last=s.last,n.tail=function(t){return(0,n.isNonEmpty)(t)?p.some(d.tail(t)):p.none},n.init=function(t){return(0,n.isNonEmpty)(t)?p.some(d.init(t)):p.none},n.takeLeft=function(t){return function(e){return(0,n.isOutOfBound)(t,e)?(0,n.copy)(e):e.slice(0,t)}},n.takeRight=function(t){return function(e){return(0,n.isOutOfBound)(t,e)?(0,n.copy)(e):0===t?[]:e.slice(-t)}},n.takeLeftWhile=function(t){return function(n){for(var e=[],r=0;r<n.length;r++){var i=n[r];if(!t(i))break;e.push(i)}return e}};var g=function(t,n){for(var e=t.length,r=0;r<e&&n(t[r]);r++);return r};function y(t){var e=d.union(t);return function(r,i){if(void 0===i){var u=y(t);return function(t){return u(t,r)}}return(0,n.isNonEmpty)(r)&&(0,n.isNonEmpty)(i)?e(i)(r):(0,n.isNonEmpty)(r)?(0,n.copy)(r):(0,n.copy)(i)}}function b(t){var e=(0,n.elem)(t);return function(n,r){if(void 0===r){var i=b(t);return function(t){return i(t,n)}}return n.filter(function(t){return e(t,r)})}}function _(t){var e=(0,n.elem)(t);return function(n,r){if(void 0===r){var i=_(t);return function(t){return i(t,n)}}return n.filter(function(t){return!e(t,r)})}}n.spanLeft=function(t){return function(e){var r=(0,n.splitAt)(g(e,t))(e);return{init:r[0],rest:r[1]}}},n.dropLeft=function(t){return function(e){return t<=0||(0,n.isEmpty)(e)?(0,n.copy)(e):t>=e.length?[]:e.slice(t,e.length)}},n.dropRight=function(t){return function(e){return t<=0||(0,n.isEmpty)(e)?(0,n.copy)(e):t>=e.length?[]:e.slice(0,e.length-t)}},n.dropLeftWhile=function(t){return function(n){return n.slice(g(n,t))}},n.findIndex=s.findIndex,n.findFirst=function(t){return s.findFirst(t)},n.findFirstMap=s.findFirstMap,n.findLast=function(t){return s.findLast(t)},n.findLastMap=s.findLastMap,n.findLastIndex=s.findLastIndex,n.copy=function(t){return t.slice()},n.insertAt=function(t,e){return function(r){return t<0||t>r.length?p.none:p.some((0,n.unsafeInsertAt)(t,e,r))}},n.updateAt=function(t,e){return(0,n.modifyAt)(t,function(){return e})},n.deleteAt=function(t){return function(e){return(0,n.isOutOfBound)(t,e)?p.none:p.some((0,n.unsafeDeleteAt)(t,e))}},n.modifyAt=function(t,e){return function(r){return(0,n.isOutOfBound)(t,r)?p.none:p.some((0,n.unsafeUpdateAt)(t,e(r[t]),r))}},n.reverse=function(t){return(0,n.isEmpty)(t)?[]:t.slice().reverse()},n.rights=function(t){for(var n=[],e=0;e<t.length;e++){var r=t[e];"Right"===r._tag&&n.push(r.right)}return n},n.lefts=function(t){for(var n=[],e=0;e<t.length;e++){var r=t[e];"Left"===r._tag&&n.push(r.left)}return n},n.sort=function(t){return function(e){return e.length<=1?(0,n.copy)(e):e.slice().sort(t.compare)}},n.zipWith=function(t,n,e){for(var r=[],i=Math.min(t.length,n.length),u=0;u<i;u++)r[u]=e(t[u],n[u]);return r},n.zip=function t(e,r){return void 0===r?function(n){return t(n,e)}:(0,n.zipWith)(e,r,function(t,n){return[t,n]})},n.unzip=function(t){for(var n=[],e=[],r=0;r<t.length;r++)n[r]=t[r][0],e[r]=t[r][1];return[n,e]},n.prependAll=function(t){var e=d.prependAll(t);return function(t){return(0,n.isNonEmpty)(t)?e(t):[]}},n.intersperse=function(t){var e=d.intersperse(t);return function(t){return(0,n.isNonEmpty)(t)?e(t):(0,n.copy)(t)}},n.rotate=function(t){var e=d.rotate(t);return function(t){return(0,n.isNonEmpty)(t)?e(t):(0,n.copy)(t)}},n.elem=s.elem,n.uniq=function(t){var e=d.uniq(t);return function(t){return(0,n.isNonEmpty)(t)?e(t):(0,n.copy)(t)}},n.sortBy=function(t){var e=d.sortBy(t);return function(t){return(0,n.isNonEmpty)(t)?e(t):(0,n.copy)(t)}},n.chop=function(t){var e=d.chop(t);return function(t){return(0,n.isNonEmpty)(t)?e(t):[]}},n.splitAt=function(t){return function(e){return t>=1&&(0,n.isNonEmpty)(e)?d.splitAt(t)(e):(0,n.isEmpty)(e)?[(0,n.copy)(e),[]]:[[],(0,n.copy)(e)]}},n.chunksOf=function(t){var e=d.chunksOf(t);return function(t){return(0,n.isNonEmpty)(t)?e(t):[]}},n.fromOptionK=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0,n.fromOption)(t.apply(void 0,e))}},n.comprehension=function(t,e,r){void 0===r&&(r=function(){return!0});var i=function(t,u){return(0,n.isNonEmpty)(u)?(0,n.flatMap)(d.head(u),function(e){return i((0,f.pipe)(t,(0,n.append)(e)),d.tail(u))}):r.apply(void 0,t)?[e.apply(void 0,t)]:[]};return i([],t)},n.concatW=function(t){return function(e){return(0,n.isEmpty)(e)?(0,n.copy)(t):(0,n.isEmpty)(t)?(0,n.copy)(e):e.concat(t)}},n.concat=n.concatW,n.union=y,n.intersection=b,n.difference=_;var I=function(t,e){return(0,f.pipe)(t,(0,n.map)(e))},R=function(t,e){return(0,f.pipe)(t,(0,n.mapWithIndex)(e))},S=function(t,e){return(0,f.pipe)(t,(0,n.ap)(e))},T=function(t,e){return(0,f.pipe)(t,(0,n.filter)(e))},x=function(t,e){return(0,f.pipe)(t,(0,n.filterMap)(e))},w=function(t,e){return(0,f.pipe)(t,(0,n.partition)(e))},M=function(t,e){return(0,f.pipe)(t,(0,n.partitionMap)(e))},O=function(t,e){return(0,f.pipe)(t,(0,n.partitionWithIndex)(e))},E=function(t,e){return(0,f.pipe)(t,(0,n.partitionMapWithIndex)(e))},C=function(t,e){return(0,f.pipe)(t,(0,n.alt)(e))},k=function(t,e,r){return(0,f.pipe)(t,(0,n.reduce)(e,r))},W=function(t){var e=(0,n.foldMap)(t);return function(t,n){return(0,f.pipe)(t,e(n))}},F=function(t,e,r){return(0,f.pipe)(t,(0,n.reduceRight)(e,r))},P=function(t,e,r){return(0,f.pipe)(t,(0,n.reduceWithIndex)(e,r))},A=function(t){var e=(0,n.foldMapWithIndex)(t);return function(t,n){return(0,f.pipe)(t,e(n))}},D=function(t,e,r){return(0,f.pipe)(t,(0,n.reduceRightWithIndex)(e,r))},U=function(t,e){return(0,f.pipe)(t,(0,n.filterMapWithIndex)(e))},L=function(t,e){return(0,f.pipe)(t,(0,n.filterWithIndex)(e))},N=function(t,e){return(0,f.pipe)(t,(0,n.extend)(e))},j=function(t){var e=(0,n.traverse)(t);return function(t,n){return(0,f.pipe)(t,e(n))}},q=function(t){var e=(0,n.traverseWithIndex)(t);return function(t,n){return(0,f.pipe)(t,e(n))}},G=s._chainRecDepthFirst,K=s._chainRecBreadthFirst;n.of=d.of,n.zero=function(){return[]},n.map=function(t){return function(n){return n.map(function(n){return t(n)})}},n.ap=function(t){return(0,n.flatMap)(function(e){return(0,f.pipe)(t,(0,n.map)(e))})},n.flatMap=(0,f.dual)(2,function(t,e){return(0,f.pipe)(t,(0,n.chainWithIndex)(function(t,n){return e(n,t)}))}),n.flatten=(0,n.flatMap)(f.identity),n.mapWithIndex=function(t){return function(n){return n.map(function(n,e){return t(e,n)})}},n.filterMapWithIndex=function(t){return function(n){for(var e=[],r=0;r<n.length;r++){var i=t(r,n[r]);p.isSome(i)&&e.push(i.value)}return e}},n.filterMap=function(t){return(0,n.filterMapWithIndex)(function(n,e){return t(e)})},n.compact=(0,n.filterMap)(f.identity),n.separate=function(t){for(var n=[],e=[],r=0;r<t.length;r++){var i=t[r];"Left"===i._tag?n.push(i.left):e.push(i.right)}return(0,h.separated)(n,e)},n.filter=function(t){return function(n){return n.filter(t)}},n.partition=function(t){return(0,n.partitionWithIndex)(function(n,e){return t(e)})},n.partitionWithIndex=function(t){return function(n){for(var e=[],r=[],i=0;i<n.length;i++){var u=n[i];t(i,u)?r.push(u):e.push(u)}return(0,h.separated)(e,r)}},n.partitionMap=function(t){return(0,n.partitionMapWithIndex)(function(n,e){return t(e)})},n.partitionMapWithIndex=function(t){return function(n){for(var e=[],r=[],i=0;i<n.length;i++){var u=t(i,n[i]);"Left"===u._tag?e.push(u.left):r.push(u.right)}return(0,h.separated)(e,r)}},n.altW=function(t){return function(n){return n.concat(t())}},n.alt=n.altW,n.filterWithIndex=function(t){return function(n){return n.filter(function(n,e){return t(e,n)})}},n.extend=function(t){return function(n){return n.map(function(e,r){return t(n.slice(r))})}},n.duplicate=(0,n.extend)(f.identity),n.foldMap=s.foldMap,n.foldMapWithIndex=s.foldMapWithIndex,n.reduce=s.reduce,n.reduceWithIndex=s.reduceWithIndex,n.reduceRight=s.reduceRight,n.reduceRightWithIndex=s.reduceRightWithIndex,n.traverse=function(t){var e=(0,n.traverseWithIndex)(t);return function(t){return e(function(n,e){return t(e)})}},n.sequence=function(t){return function(e){return k(e,t.of((0,n.zero)()),function(e,r){return t.ap(t.map(e,function(t){return function(e){return(0,f.pipe)(t,(0,n.append)(e))}}),r)})}},n.traverseWithIndex=function(t){return function(e){return(0,n.reduceWithIndex)(t.of((0,n.zero)()),function(r,i,u){return t.ap(t.map(i,function(t){return function(e){return(0,f.pipe)(t,(0,n.append)(e))}}),e(r,u))})}},n.wither=function(t){var n=Y(t);return function(t){return function(e){return n(e,t)}}},n.wilt=function(t){var n=V(t);return function(t){return function(e){return n(e,t)}}},n.unfold=function(t,n){for(var e=[],r=t;;){var i=n(r);if(p.isSome(i)){var u=i.value,o=u[0],a=u[1];e.push(o),r=a}else break}return e},n.URI="Array",n.getShow=s.getShow,n.getSemigroup=function(){return{concat:function(t,n){return t.concat(n)}}},n.getMonoid=function(){return{concat:(0,n.getSemigroup)().concat,empty:[]}},n.getEq=s.getEq,n.getOrd=s.getOrd,n.getUnionSemigroup=function(t){var n=y(t);return{concat:function(t,e){return n(e)(t)}}},n.getUnionMonoid=function(t){return{concat:(0,n.getUnionSemigroup)(t).concat,empty:[]}},n.getIntersectionSemigroup=function(t){var n=b(t);return{concat:function(t,e){return n(e)(t)}}},n.getDifferenceMagma=function(t){var n=_(t);return{concat:function(t,e){return n(e)(t)}}},n.Functor={URI:n.URI,map:I},n.flap=(0,l.flap)(n.Functor),n.Pointed={URI:n.URI,of:n.of},n.FunctorWithIndex={URI:n.URI,map:I,mapWithIndex:R},n.Apply={URI:n.URI,map:I,ap:S},n.apFirst=(0,o.apFirst)(n.Apply),n.apSecond=(0,o.apSecond)(n.Apply),n.Applicative={URI:n.URI,map:I,ap:S,of:n.of},n.Chain={URI:n.URI,map:I,ap:S,chain:n.flatMap},n.chainFirst=(0,a.chainFirst)(n.Chain),n.Monad={URI:n.URI,map:I,ap:S,of:n.of,chain:n.flatMap},n.Unfoldable={URI:n.URI,unfold:n.unfold},n.Alt={URI:n.URI,map:I,alt:C},n.Zero={URI:n.URI,zero:n.zero},n.guard=(0,v.guard)(n.Zero,n.Pointed),n.Alternative={URI:n.URI,map:I,ap:S,of:n.of,alt:C,zero:n.zero},n.Extend={URI:n.URI,map:I,extend:N},n.Compactable={URI:n.URI,compact:n.compact,separate:n.separate},n.Filterable={URI:n.URI,map:I,compact:n.compact,separate:n.separate,filter:T,filterMap:x,partition:w,partitionMap:M},n.FilterableWithIndex={URI:n.URI,map:I,mapWithIndex:R,compact:n.compact,separate:n.separate,filter:T,filterMap:x,partition:w,partitionMap:M,partitionMapWithIndex:E,partitionWithIndex:O,filterMapWithIndex:U,filterWithIndex:L},n.Foldable={URI:n.URI,reduce:k,foldMap:W,reduceRight:F},n.FoldableWithIndex={URI:n.URI,reduce:k,foldMap:W,reduceRight:F,reduceWithIndex:P,foldMapWithIndex:A,reduceRightWithIndex:D},n.Traversable={URI:n.URI,map:I,reduce:k,foldMap:W,reduceRight:F,traverse:j,sequence:n.sequence},n.TraversableWithIndex={URI:n.URI,map:I,mapWithIndex:R,reduce:k,foldMap:W,reduceRight:F,reduceWithIndex:P,foldMapWithIndex:A,reduceRightWithIndex:D,traverse:j,sequence:n.sequence,traverseWithIndex:q};var Y=(0,m.witherDefault)(n.Traversable,n.Compactable),V=(0,m.wiltDefault)(n.Traversable,n.Compactable);n.Witherable={URI:n.URI,map:I,compact:n.compact,separate:n.separate,filter:T,filterMap:x,partition:w,partitionMap:M,reduce:k,foldMap:W,reduceRight:F,traverse:j,sequence:n.sequence,wither:Y,wilt:V},n.chainRecDepthFirst=s.chainRecDepthFirst,n.ChainRecDepthFirst={URI:n.URI,map:I,ap:S,chain:n.flatMap,chainRec:G},n.chainRecBreadthFirst=s.chainRecBreadthFirst,n.ChainRecBreadthFirst={URI:n.URI,map:I,ap:S,chain:n.flatMap,chainRec:K},n.filterE=(0,m.filterE)(n.Witherable),n.FromEither={URI:n.URI,fromEither:n.fromEither},n.fromEitherK=(0,c.fromEitherK)(n.FromEither),n.unsafeInsertAt=d.unsafeInsertAt,n.unsafeUpdateAt=function(t,e,r){return(0,n.isNonEmpty)(r)?d.unsafeUpdateAt(t,e,r):[]},n.unsafeDeleteAt=function(t,n){var e=n.slice();return e.splice(t,1),e},n.every=s.every,n.some=function(t){return function(n){return n.some(t)}},n.exists=n.some,n.intercalate=s.intercalate,n.Do=(0,n.of)(p.emptyRecord),n.bindTo=(0,l.bindTo)(n.Functor);var B=(0,l.let)(n.Functor);n.let=B,n.bind=(0,a.bind)(n.Chain),n.apS=(0,o.apS)(n.Apply),n.chain=n.flatMap,n.range=d.range,n.empty=[],n.cons=d.cons,n.snoc=d.snoc,n.prependToAll=n.prependAll,n.array={URI:n.URI,compact:n.compact,separate:n.separate,map:I,ap:S,of:n.of,chain:n.flatMap,filter:T,filterMap:x,partition:w,partitionMap:M,mapWithIndex:R,partitionMapWithIndex:E,partitionWithIndex:O,filterMapWithIndex:U,filterWithIndex:L,alt:C,zero:n.zero,unfold:n.unfold,reduce:k,foldMap:W,reduceRight:F,traverse:j,sequence:n.sequence,reduceWithIndex:P,foldMapWithIndex:A,reduceRightWithIndex:D,traverseWithIndex:q,extend:N,wither:Y,wilt:V}},18222:function(t,n){function e(t){return function(n,e){return t.chain(n,function(n){return t.map(e(n),function(){return n})})}}Object.defineProperty(n,"__esModule",{value:!0}),n.bind=n.tap=n.chainFirst=void 0,n.chainFirst=function(t){var n=e(t);return function(t){return function(e){return n(e,t)}}},n.tap=e,n.bind=function(t){return function(n,e){return function(r){return t.chain(r,function(r){return t.map(e(r),function(t){var e;return Object.assign({},r,((e={})[n]=t,e))})})}}}},71166:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.tailRec=void 0,n.tailRec=function(t,n){for(var e=n(t);"Left"===e._tag;)e=n(e.left);return e.right}},87412:function(t,n,e){var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);(!i||("get"in i?!n.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&r(n,t,e);return i(n,t),n};Object.defineProperty(n,"__esModule",{value:!0}),n.match=n.foldW=n.matchW=n.isRight=n.isLeft=n.fromOption=n.fromPredicate=n.FromEither=n.MonadThrow=n.throwError=n.ChainRec=n.Extend=n.extend=n.Alt=n.alt=n.altW=n.Bifunctor=n.mapLeft=n.bimap=n.Traversable=n.sequence=n.traverse=n.Foldable=n.reduceRight=n.foldMap=n.reduce=n.Monad=n.Chain=n.Applicative=n.Apply=n.ap=n.apW=n.Pointed=n.of=n.asUnit=n.as=n.Functor=n.map=n.getAltValidation=n.getApplicativeValidation=n.getWitherable=n.getFilterable=n.getCompactable=n.getSemigroup=n.getEq=n.getShow=n.URI=n.flatMap=n.right=n.left=void 0,n.chainFirstW=n.chainFirst=n.chain=n.chainW=n.sequenceArray=n.traverseArray=n.traverseArrayWithIndex=n.traverseReadonlyArrayWithIndex=n.traverseReadonlyNonEmptyArrayWithIndex=n.ApT=n.apSW=n.apS=n.bindW=n.bind=n.let=n.bindTo=n.Do=n.exists=n.elem=n.toError=n.toUnion=n.chainNullableK=n.fromNullableK=n.tryCatchK=n.tryCatch=n.fromNullable=n.orElse=n.orElseW=n.swap=n.filterOrElseW=n.filterOrElse=n.flatMapOption=n.flatMapNullable=n.liftOption=n.liftNullable=n.chainOptionKW=n.chainOptionK=n.fromOptionK=n.duplicate=n.flatten=n.flattenW=n.tap=n.apSecondW=n.apSecond=n.apFirstW=n.apFirst=n.flap=n.getOrElse=n.getOrElseW=n.fold=void 0,n.getValidation=n.getValidationMonoid=n.getValidationSemigroup=n.getApplyMonoid=n.getApplySemigroup=n.either=n.stringifyJSON=n.parseJSON=void 0;var o=e(91756),a=e(93145),c=u(e(18222)),f=e(71166),l=e(57756),p=e(14632),d=e(8762),s=u(e(5309)),h=e(4773),m=e(69706);n.left=s.left,n.right=s.right,n.flatMap=(0,p.dual)(2,function(t,e){return(0,n.isLeft)(t)?t:e(t.right)});var v=function(t,e){return(0,p.pipe)(t,(0,n.map)(e))},g=function(t,e){return(0,p.pipe)(t,(0,n.ap)(e))},y=function(t,e,r){return(0,p.pipe)(t,(0,n.reduce)(e,r))},b=function(t){return function(e,r){var i=(0,n.foldMap)(t);return(0,p.pipe)(e,i(r))}},_=function(t,e,r){return(0,p.pipe)(t,(0,n.reduceRight)(e,r))},I=function(t){var e=(0,n.traverse)(t);return function(t,n){return(0,p.pipe)(t,e(n))}},R=function(t,e,r){return(0,p.pipe)(t,(0,n.bimap)(e,r))},S=function(t,e){return(0,p.pipe)(t,(0,n.mapLeft)(e))},T=function(t,e){return(0,p.pipe)(t,(0,n.alt)(e))},x=function(t,e){return(0,p.pipe)(t,(0,n.extend)(e))},w=function(t,e){return(0,f.tailRec)(e(t),function(t){return(0,n.isLeft)(t)?(0,n.right)((0,n.left)(t.left)):(0,n.isLeft)(t.right)?(0,n.left)(e(t.right.left)):(0,n.right)((0,n.right)(t.right.right))})};n.URI="Either",n.getShow=function(t,e){return{show:function(r){return(0,n.isLeft)(r)?"left(".concat(t.show(r.left),")"):"right(".concat(e.show(r.right),")")}}},n.getEq=function(t,e){return{equals:function(r,i){return r===i||((0,n.isLeft)(r)?(0,n.isLeft)(i)&&t.equals(r.left,i.left):(0,n.isRight)(i)&&e.equals(r.right,i.right))}}},n.getSemigroup=function(t){return{concat:function(e,r){return(0,n.isLeft)(r)?e:(0,n.isLeft)(e)?r:(0,n.right)(t.concat(e.right,r.right))}}},n.getCompactable=function(t){var e=(0,n.left)(t.empty);return{URI:n.URI,_E:void 0,compact:function(t){return(0,n.isLeft)(t)?t:"None"===t.right._tag?e:(0,n.right)(t.right.value)},separate:function(t){return(0,n.isLeft)(t)?(0,h.separated)(t,t):(0,n.isLeft)(t.right)?(0,h.separated)((0,n.right)(t.right.left),e):(0,h.separated)(e,(0,n.right)(t.right.right))}}},n.getFilterable=function(t){var e=(0,n.left)(t.empty),r=(0,n.getCompactable)(t),i=r.compact,u=r.separate;return{URI:n.URI,_E:void 0,map:v,compact:i,separate:u,filter:function(t,r){return(0,n.isLeft)(t)?t:r(t.right)?t:e},filterMap:function(t,r){if((0,n.isLeft)(t))return t;var i=r(t.right);return"None"===i._tag?e:(0,n.right)(i.value)},partition:function(t,r){return(0,n.isLeft)(t)?(0,h.separated)(t,t):r(t.right)?(0,h.separated)(e,(0,n.right)(t.right)):(0,h.separated)((0,n.right)(t.right),e)},partitionMap:function(t,r){if((0,n.isLeft)(t))return(0,h.separated)(t,t);var i=r(t.right);return(0,n.isLeft)(i)?(0,h.separated)((0,n.right)(i.left),e):(0,h.separated)(e,(0,n.right)(i.right))}}},n.getWitherable=function(t){var e=(0,n.getFilterable)(t),r=(0,n.getCompactable)(t);return{URI:n.URI,_E:void 0,map:v,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:I,sequence:n.sequence,reduce:y,foldMap:b,reduceRight:_,wither:(0,m.witherDefault)(n.Traversable,r),wilt:(0,m.wiltDefault)(n.Traversable,r)}},n.getApplicativeValidation=function(t){return{URI:n.URI,_E:void 0,map:v,ap:function(e,r){return(0,n.isLeft)(e)?(0,n.isLeft)(r)?(0,n.left)(t.concat(e.left,r.left)):e:(0,n.isLeft)(r)?r:(0,n.right)(e.right(r.right))},of:n.of}},n.getAltValidation=function(t){return{URI:n.URI,_E:void 0,map:v,alt:function(e,r){if((0,n.isRight)(e))return e;var i=r();return(0,n.isLeft)(i)?(0,n.left)(t.concat(e.left,i.left)):i}}},n.map=function(t){return function(e){return(0,n.isLeft)(e)?e:(0,n.right)(t(e.right))}},n.Functor={URI:n.URI,map:v},n.as=(0,p.dual)(2,(0,d.as)(n.Functor)),n.asUnit=(0,d.asUnit)(n.Functor),n.of=n.right,n.Pointed={URI:n.URI,of:n.of},n.apW=function(t){return function(e){return(0,n.isLeft)(e)?e:(0,n.isLeft)(t)?t:(0,n.right)(e.right(t.right))}},n.ap=n.apW,n.Apply={URI:n.URI,map:v,ap:g},n.Applicative={URI:n.URI,map:v,ap:g,of:n.of},n.Chain={URI:n.URI,map:v,ap:g,chain:n.flatMap},n.Monad={URI:n.URI,map:v,ap:g,of:n.of,chain:n.flatMap},n.reduce=function(t,e){return function(r){return(0,n.isLeft)(r)?t:e(t,r.right)}},n.foldMap=function(t){return function(e){return function(r){return(0,n.isLeft)(r)?t.empty:e(r.right)}}},n.reduceRight=function(t,e){return function(r){return(0,n.isLeft)(r)?t:e(r.right,t)}},n.Foldable={URI:n.URI,reduce:y,foldMap:b,reduceRight:_},n.traverse=function(t){return function(e){return function(r){return(0,n.isLeft)(r)?t.of((0,n.left)(r.left)):t.map(e(r.right),n.right)}}},n.sequence=function(t){return function(e){return(0,n.isLeft)(e)?t.of((0,n.left)(e.left)):t.map(e.right,n.right)}},n.Traversable={URI:n.URI,map:v,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:n.sequence},n.bimap=function(t,e){return function(r){return(0,n.isLeft)(r)?(0,n.left)(t(r.left)):(0,n.right)(e(r.right))}},n.mapLeft=function(t){return function(e){return(0,n.isLeft)(e)?(0,n.left)(t(e.left)):e}},n.Bifunctor={URI:n.URI,bimap:R,mapLeft:S},n.altW=function(t){return function(e){return(0,n.isLeft)(e)?t():e}},n.alt=n.altW,n.Alt={URI:n.URI,map:v,alt:T},n.extend=function(t){return function(e){return(0,n.isLeft)(e)?e:(0,n.right)(t(e))}},n.Extend={URI:n.URI,map:v,extend:x},n.ChainRec={URI:n.URI,map:v,ap:g,chain:n.flatMap,chainRec:w},n.throwError=n.left,n.MonadThrow={URI:n.URI,map:v,ap:g,of:n.of,chain:n.flatMap,throwError:n.throwError},n.FromEither={URI:n.URI,fromEither:p.identity},n.fromPredicate=(0,l.fromPredicate)(n.FromEither),n.fromOption=(0,l.fromOption)(n.FromEither),n.isLeft=s.isLeft,n.isRight=s.isRight,n.matchW=function(t,e){return function(r){return(0,n.isLeft)(r)?t(r.left):e(r.right)}},n.foldW=n.matchW,n.match=n.matchW,n.fold=n.match,n.getOrElseW=function(t){return function(e){return(0,n.isLeft)(e)?t(e.left):e.right}},n.getOrElse=n.getOrElseW,n.flap=(0,d.flap)(n.Functor),n.apFirst=(0,a.apFirst)(n.Apply),n.apFirstW=n.apFirst,n.apSecond=(0,a.apSecond)(n.Apply),n.apSecondW=n.apSecond,n.tap=(0,p.dual)(2,c.tap(n.Chain)),n.flattenW=(0,n.flatMap)(p.identity),n.flatten=n.flattenW,n.duplicate=(0,n.extend)(p.identity),n.fromOptionK=(0,l.fromOptionK)(n.FromEither),n.chainOptionK=(0,l.chainOptionK)(n.FromEither,n.Chain),n.chainOptionKW=n.chainOptionK;var M={fromEither:n.FromEither.fromEither};n.liftNullable=s.liftNullable(M),n.liftOption=s.liftOption(M);var O={flatMap:n.flatMap};n.flatMapNullable=s.flatMapNullable(M,O),n.flatMapOption=s.flatMapOption(M,O),n.filterOrElse=(0,l.filterOrElse)(n.FromEither,n.Chain),n.filterOrElseW=n.filterOrElse,n.swap=function(t){return(0,n.isLeft)(t)?(0,n.right)(t.left):(0,n.left)(t.right)},n.orElseW=function(t){return function(e){return(0,n.isLeft)(e)?t(e.left):e}},n.orElse=n.orElseW,n.fromNullable=function(t){return function(e){return null==e?(0,n.left)(t):(0,n.right)(e)}},n.tryCatch=function(t,e){try{return(0,n.right)(t())}catch(t){return(0,n.left)(e(t))}},n.tryCatchK=function(t,e){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return(0,n.tryCatch)(function(){return t.apply(void 0,r)},e)}},n.fromNullableK=function(t){var e=(0,n.fromNullable)(t);return function(t){return(0,p.flow)(t,e)}},n.chainNullableK=function(t){var e=(0,n.fromNullableK)(t);return function(t){return(0,n.flatMap)(e(t))}},n.toUnion=(0,n.foldW)(p.identity,p.identity),n.toError=function(t){return t instanceof Error?t:Error(String(t))},n.elem=function t(e){return function(r,i){if(void 0===i){var u=t(e);return function(t){return u(r,t)}}return!(0,n.isLeft)(i)&&e.equals(r,i.right)}},n.exists=function(t){return function(e){return!(0,n.isLeft)(e)&&t(e.right)}},n.Do=(0,n.of)(s.emptyRecord),n.bindTo=(0,d.bindTo)(n.Functor);var E=(0,d.let)(n.Functor);n.let=E,n.bind=c.bind(n.Chain),n.bindW=n.bind,n.apS=(0,a.apS)(n.Apply),n.apSW=n.apS,n.ApT=(0,n.of)(s.emptyReadonlyArray),n.traverseReadonlyNonEmptyArrayWithIndex=function(t){return function(e){var r=t(0,s.head(e));if((0,n.isLeft)(r))return r;for(var i=[r.right],u=1;u<e.length;u++){var o=t(u,e[u]);if((0,n.isLeft)(o))return o;i.push(o.right)}return(0,n.right)(i)}},n.traverseReadonlyArrayWithIndex=function(t){var e=(0,n.traverseReadonlyNonEmptyArrayWithIndex)(t);return function(t){return s.isNonEmpty(t)?e(t):n.ApT}},n.traverseArrayWithIndex=n.traverseReadonlyArrayWithIndex,n.traverseArray=function(t){return(0,n.traverseReadonlyArrayWithIndex)(function(n,e){return t(e)})},n.sequenceArray=(0,n.traverseArray)(p.identity),n.chainW=n.flatMap,n.chain=n.flatMap,n.chainFirst=n.tap,n.chainFirstW=n.tap,n.parseJSON=function(t,e){return(0,n.tryCatch)(function(){return JSON.parse(t)},e)},n.stringifyJSON=function(t,e){return(0,n.tryCatch)(function(){var n=JSON.stringify(t);if("string"!=typeof n)throw Error("Converting unsupported structure to JSON");return n},e)},n.either={URI:n.URI,map:v,of:n.of,ap:g,chain:n.flatMap,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:n.sequence,bimap:R,mapLeft:S,alt:T,extend:x,chainRec:w,throwError:n.throwError},n.getApplySemigroup=(0,a.getApplySemigroup)(n.Apply),n.getApplyMonoid=(0,o.getApplicativeMonoid)(n.Applicative),n.getValidationSemigroup=function(t,e){return(0,a.getApplySemigroup)((0,n.getApplicativeValidation)(t))(e)},n.getValidationMonoid=function(t,e){return(0,o.getApplicativeMonoid)((0,n.getApplicativeValidation)(t))(e)},n.getValidation=function(t){var e=(0,n.getApplicativeValidation)(t).ap,r=(0,n.getAltValidation)(t).alt;return{URI:n.URI,_E:void 0,map:v,of:n.of,chain:n.flatMap,bimap:R,mapLeft:S,reduce:y,foldMap:b,reduceRight:_,extend:x,traverse:I,sequence:n.sequence,chainRec:w,throwError:n.throwError,ap:e,alt:r}}},8190:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.eqDate=n.eqNumber=n.eqString=n.eqBoolean=n.eq=n.strictEqual=n.getStructEq=n.getTupleEq=n.Contravariant=n.getMonoid=n.getSemigroup=n.eqStrict=n.URI=n.contramap=n.tuple=n.struct=n.fromEquals=void 0;var r=e(14632);n.fromEquals=function(t){return{equals:function(n,e){return n===e||t(n,e)}}},n.struct=function(t){return(0,n.fromEquals)(function(n,e){for(var r in t)if(!t[r].equals(n[r],e[r]))return!1;return!0})},n.tuple=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,n.fromEquals)(function(n,e){return t.every(function(t,r){return t.equals(n[r],e[r])})})},n.contramap=function(t){return function(e){return(0,n.fromEquals)(function(n,r){return e.equals(t(n),t(r))})}},n.URI="Eq",n.eqStrict={equals:function(t,n){return t===n}};var i={equals:function(){return!0}};n.getSemigroup=function(){return{concat:function(t,e){return(0,n.fromEquals)(function(n,r){return t.equals(n,r)&&e.equals(n,r)})}}},n.getMonoid=function(){return{concat:(0,n.getSemigroup)().concat,empty:i}},n.Contravariant={URI:n.URI,contramap:function(t,e){return(0,r.pipe)(t,(0,n.contramap)(e))}},n.getTupleEq=n.tuple,n.getStructEq=n.struct,n.strictEqual=n.eqStrict.equals,n.eq=n.Contravariant,n.eqBoolean=n.eqStrict,n.eqString=n.eqStrict,n.eqNumber=n.eqStrict,n.eqDate={equals:function(t,n){return t.valueOf()===n.valueOf()}}},57756:function(t,n,e){var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);(!i||("get"in i?!n.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&r(n,t,e);return i(n,t),n};Object.defineProperty(n,"__esModule",{value:!0}),n.tapEither=n.filterOrElse=n.chainFirstEitherK=n.chainEitherK=n.fromEitherK=n.chainOptionK=n.fromOptionK=n.fromPredicate=n.fromOption=void 0;var o=e(18222),a=e(14632),c=u(e(5309));function f(t){return function(n){return function(e){return t.fromEither(c.isNone(e)?c.left(n()):c.right(e.value))}}}function l(t){var n=f(t);return function(t){var e=n(t);return function(t){return(0,a.flow)(t,e)}}}function p(t){return function(n){return(0,a.flow)(n,t.fromEither)}}function d(t,n){var e=p(t),r=(0,o.tap)(n);return function(t,n){return r(t,e(n))}}n.fromOption=f,n.fromPredicate=function(t){return function(n,e){return function(r){return t.fromEither(n(r)?c.right(r):c.left(e(r)))}}},n.fromOptionK=l,n.chainOptionK=function(t,n){var e=l(t);return function(t){var r=e(t);return function(t){return function(e){return n.chain(e,r(t))}}}},n.fromEitherK=p,n.chainEitherK=function(t,n){var e=p(t);return function(t){return function(r){return n.chain(r,e(t))}}},n.chainFirstEitherK=function(t,n){var e=d(t,n);return function(t){return function(n){return e(n,t)}}},n.filterOrElse=function(t,n){return function(e,r){return function(i){return n.chain(i,function(n){return t.fromEither(e(n)?c.right(n):c.left(r(n)))})}}},n.tapEither=d},8762:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.asUnit=n.as=n.getFunctorComposition=n.let=n.bindTo=n.flap=n.map=void 0;var r=e(14632);function i(t,n){return function(e){return function(r){return t.map(r,function(t){return n.map(t,e)})}}}function u(t){return function(n,e){return t.map(n,function(){return e})}}n.map=i,n.flap=function(t){return function(n){return function(e){return t.map(e,function(t){return t(n)})}}},n.bindTo=function(t){return function(n){return function(e){return t.map(e,function(t){var e;return(e={})[n]=t,e})}}},n.let=function(t){return function(n,e){return function(r){return t.map(r,function(t){var r;return Object.assign({},t,((r={})[n]=e(t),r))})}}},n.getFunctorComposition=function(t,n){var e=i(t,n);return{map:function(t,n){return(0,r.pipe)(t,e(n))}}},n.as=u,n.asUnit=function(t){var n=u(t);return function(t){return n(t,void 0)}}},73540:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.concatAll=n.endo=n.filterSecond=n.filterFirst=n.reverse=void 0,n.reverse=function(t){return{concat:function(n,e){return t.concat(e,n)}}},n.filterFirst=function(t){return function(n){return{concat:function(e,r){return t(e)?n.concat(e,r):r}}}},n.filterSecond=function(t){return function(n){return{concat:function(e,r){return t(r)?n.concat(e,r):e}}}},n.endo=function(t){return function(n){return{concat:function(e,r){return n.concat(t(e),t(r))}}}},n.concatAll=function(t){return function(n){return function(e){return e.reduce(function(n,e){return t.concat(n,e)},n)}}}},7219:function(t,n,e){var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);(!i||("get"in i?!n.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&r(n,t,e);return i(n,t),n},o=this&&this.__spreadArray||function(t,n,e){if(e||2==arguments.length)for(var r,i=0,u=n.length;i<u;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return t.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(n,"__esModule",{value:!0}),n.mapWithIndex=n.map=n.flatten=n.duplicate=n.extend=n.flatMap=n.ap=n.alt=n.altW=n.chunksOf=n.splitAt=n.chop=n.chainWithIndex=n.foldMap=n.foldMapWithIndex=n.intersperse=n.prependAll=n.unzip=n.zip=n.zipWith=n.of=n.copy=n.modifyAt=n.updateAt=n.insertAt=n.sort=n.groupBy=n.group=n.reverse=n.concat=n.concatW=n.unappend=n.unprepend=n.range=n.replicate=n.makeBy=n.fromArray=n.fromReadonlyNonEmptyArray=n.rotate=n.union=n.sortBy=n.uniq=n.unsafeUpdateAt=n.unsafeInsertAt=n.append=n.appendW=n.prepend=n.prependW=n.isOutOfBound=n.isNonEmpty=void 0,n.chain=n.intercalate=n.updateLast=n.modifyLast=n.updateHead=n.modifyHead=n.matchRight=n.matchLeft=n.concatAll=n.max=n.min=n.init=n.last=n.tail=n.head=n.apS=n.bind=n.let=n.bindTo=n.Do=n.Comonad=n.Alt=n.TraversableWithIndex=n.Traversable=n.FoldableWithIndex=n.Foldable=n.Monad=n.chainFirst=n.Chain=n.Applicative=n.apSecond=n.apFirst=n.Apply=n.FunctorWithIndex=n.Pointed=n.flap=n.Functor=n.getUnionSemigroup=n.getEq=n.getSemigroup=n.getShow=n.URI=n.extract=n.traverseWithIndex=n.sequence=n.traverse=n.reduceRightWithIndex=n.reduceRight=n.reduceWithIndex=n.reduce=void 0,n.nonEmptyArray=n.fold=n.prependToAll=n.snoc=n.cons=n.unsnoc=n.uncons=n.filterWithIndex=n.filter=n.groupSort=void 0;var a=e(93145),c=e(18222),f=e(14632),l=e(8762),p=u(e(5309)),d=e(83235),s=u(e(84612));function h(t){return function(n){return n.concat(t)}}function m(t,n){return n?t.concat(n):function(n){return n.concat(t)}}function v(t){return function(n){var e=n.length;if(0===e)return[];for(var r=[],i=n[0],u=[i],o=1;o<e;o++){var a=n[o];t.equals(a,i)?u.push(a):(r.push(u),u=[i=a])}return r.push(u),r}}n.isNonEmpty=function(t){return t.length>0},n.isOutOfBound=function(t,n){return t<0||t>=n.length},n.prependW=function(t){return function(n){return o([t],n,!0)}},n.prepend=n.prependW,n.appendW=function(t){return function(n){return o(o([],n,!0),[t],!1)}},n.append=n.appendW,n.unsafeInsertAt=function(t,e,r){if((0,n.isNonEmpty)(r)){var i=(0,n.fromReadonlyNonEmptyArray)(r);return i.splice(t,0,e),i}return[e]},n.unsafeUpdateAt=function(t,e,r){var i=(0,n.fromReadonlyNonEmptyArray)(r);return i[t]=e,i},n.uniq=function(t){return function(e){if(1===e.length)return(0,n.copy)(e);for(var r=[(0,n.head)(e)],i=(0,n.tail)(e),u=function(n){r.every(function(e){return!t.equals(e,n)})&&r.push(n)},o=0;o<i.length;o++)u(i[o]);return r}},n.sortBy=function(t){if((0,n.isNonEmpty)(t)){var e=(0,d.getMonoid)();return(0,n.sort)(t.reduce(e.concat,e.empty))}return n.copy},n.union=function(t){var e=(0,n.uniq)(t);return function(t){return function(n){return e((0,f.pipe)(n,m(t)))}}},n.rotate=function(t){return function(e){var r=e.length,i=Math.round(t)%r;if((0,n.isOutOfBound)(Math.abs(i),e)||0===i)return(0,n.copy)(e);if(!(i<0))return(0,n.rotate)(i-r)(e);var u=(0,n.splitAt)(-i)(e),o=u[0],a=u[1];return(0,f.pipe)(a,m(o))}},n.fromReadonlyNonEmptyArray=p.fromReadonlyNonEmptyArray,n.fromArray=function(t){return(0,n.isNonEmpty)(t)?p.some(t):p.none},n.makeBy=function(t){return function(n){for(var e=Math.max(0,Math.floor(n)),r=[t(0)],i=1;i<e;i++)r.push(t(i));return r}},n.replicate=function(t){return(0,n.makeBy)(function(){return t})},n.range=function(t,e){return t<=e?(0,n.makeBy)(function(n){return t+n})(e-t+1):[t]},n.unprepend=function(t){return[(0,n.head)(t),(0,n.tail)(t)]},n.unappend=function(t){return[(0,n.init)(t),(0,n.last)(t)]},n.concatW=h,n.concat=m,n.reverse=function(t){return o([(0,n.last)(t)],t.slice(0,-1).reverse(),!0)},n.group=v,n.groupBy=function(t){return function(n){for(var e={},r=0;r<n.length;r++){var i=n[r],u=t(i);p.has.call(e,u)?e[u].push(i):e[u]=[i]}return e}},n.sort=function(t){return function(n){return n.slice().sort(t.compare)}},n.insertAt=function(t,e){return function(r){return t<0||t>r.length?p.none:p.some((0,n.unsafeInsertAt)(t,e,r))}},n.updateAt=function(t,e){return(0,n.modifyAt)(t,function(){return e})},n.modifyAt=function(t,e){return function(r){return(0,n.isOutOfBound)(t,r)?p.none:p.some((0,n.unsafeUpdateAt)(t,e(r[t]),r))}},n.copy=n.fromReadonlyNonEmptyArray,n.of=function(t){return[t]},n.zipWith=function(t,n,e){for(var r=[e(t[0],n[0])],i=Math.min(t.length,n.length),u=1;u<i;u++)r[u]=e(t[u],n[u]);return r},n.zip=function t(e,r){return void 0===r?function(n){return t(n,e)}:(0,n.zipWith)(e,r,function(t,n){return[t,n]})},n.unzip=function(t){for(var n=[t[0][0]],e=[t[0][1]],r=1;r<t.length;r++)n[r]=t[r][0],e[r]=t[r][1];return[n,e]},n.prependAll=function(t){return function(n){for(var e=[t,n[0]],r=1;r<n.length;r++)e.push(t,n[r]);return e}},n.intersperse=function(t){return function(e){var r=(0,n.tail)(e);return(0,n.isNonEmpty)(r)?(0,f.pipe)(r,(0,n.prependAll)(t),(0,n.prepend)((0,n.head)(e))):(0,n.copy)(e)}},n.foldMapWithIndex=s.foldMapWithIndex,n.foldMap=s.foldMap,n.chainWithIndex=function(t){return function(e){for(var r=(0,n.fromReadonlyNonEmptyArray)(t(0,(0,n.head)(e))),i=1;i<e.length;i++)r.push.apply(r,t(i,e[i]));return r}},n.chop=function(t){return function(e){for(var r=t(e),i=r[0],u=r[1],o=[i],a=u;(0,n.isNonEmpty)(a);){var c=t(a),f=c[0],l=c[1];o.push(f),a=l}return o}},n.splitAt=function(t){return function(e){var r=Math.max(1,t);return r>=e.length?[(0,n.copy)(e),[]]:[(0,f.pipe)(e.slice(1,r),(0,n.prepend)((0,n.head)(e))),e.slice(r)]}},n.chunksOf=function(t){return(0,n.chop)((0,n.splitAt)(t))};var g=function(t,e){return(0,f.pipe)(t,(0,n.map)(e))},y=function(t,e){return(0,f.pipe)(t,(0,n.mapWithIndex)(e))},b=function(t,e){return(0,f.pipe)(t,(0,n.ap)(e))},_=function(t,e){return(0,f.pipe)(t,(0,n.extend)(e))},I=function(t,e,r){return(0,f.pipe)(t,(0,n.reduce)(e,r))},R=function(t){var e=(0,n.foldMap)(t);return function(t,n){return(0,f.pipe)(t,e(n))}},S=function(t,e,r){return(0,f.pipe)(t,(0,n.reduceRight)(e,r))},T=function(t){var e=(0,n.traverse)(t);return function(t,n){return(0,f.pipe)(t,e(n))}},x=function(t,e){return(0,f.pipe)(t,(0,n.alt)(e))},w=function(t,e,r){return(0,f.pipe)(t,(0,n.reduceWithIndex)(e,r))},M=function(t){var e=(0,n.foldMapWithIndex)(t);return function(t,n){return(0,f.pipe)(t,e(n))}},O=function(t,e,r){return(0,f.pipe)(t,(0,n.reduceRightWithIndex)(e,r))},E=function(t){var e=(0,n.traverseWithIndex)(t);return function(t,n){return(0,f.pipe)(t,e(n))}};n.altW=function(t){return function(n){return(0,f.pipe)(n,h(t()))}},n.alt=n.altW,n.ap=function(t){return(0,n.flatMap)(function(e){return(0,f.pipe)(t,(0,n.map)(e))})},n.flatMap=(0,f.dual)(2,function(t,e){return(0,f.pipe)(t,(0,n.chainWithIndex)(function(t,n){return e(n,t)}))}),n.extend=function(t){return function(e){for(var r=(0,n.tail)(e),i=[t(e)];(0,n.isNonEmpty)(r);)i.push(t(r)),r=(0,n.tail)(r);return i}},n.duplicate=(0,n.extend)(f.identity),n.flatten=(0,n.flatMap)(f.identity),n.map=function(t){return(0,n.mapWithIndex)(function(n,e){return t(e)})},n.mapWithIndex=function(t){return function(e){for(var r=[t(0,(0,n.head)(e))],i=1;i<e.length;i++)r.push(t(i,e[i]));return r}},n.reduce=s.reduce,n.reduceWithIndex=s.reduceWithIndex,n.reduceRight=s.reduceRight,n.reduceRightWithIndex=s.reduceRightWithIndex,n.traverse=function(t){var e=(0,n.traverseWithIndex)(t);return function(t){return e(function(n,e){return t(e)})}},n.sequence=function(t){return(0,n.traverseWithIndex)(t)(function(t,n){return n})},n.traverseWithIndex=function(t){return function(e){return function(r){for(var i=t.map(e(0,(0,n.head)(r)),n.of),u=1;u<r.length;u++)i=t.ap(t.map(i,function(t){return function(e){return(0,f.pipe)(t,(0,n.append)(e))}}),e(u,r[u]));return i}}},n.extract=s.head,n.URI="NonEmptyArray",n.getShow=s.getShow,n.getSemigroup=function(){return{concat:m}},n.getEq=s.getEq,n.getUnionSemigroup=function(t){var e=(0,n.union)(t);return{concat:function(t,n){return e(n)(t)}}},n.Functor={URI:n.URI,map:g},n.flap=(0,l.flap)(n.Functor),n.Pointed={URI:n.URI,of:n.of},n.FunctorWithIndex={URI:n.URI,map:g,mapWithIndex:y},n.Apply={URI:n.URI,map:g,ap:b},n.apFirst=(0,a.apFirst)(n.Apply),n.apSecond=(0,a.apSecond)(n.Apply),n.Applicative={URI:n.URI,map:g,ap:b,of:n.of},n.Chain={URI:n.URI,map:g,ap:b,chain:n.flatMap},n.chainFirst=(0,c.chainFirst)(n.Chain),n.Monad={URI:n.URI,map:g,ap:b,of:n.of,chain:n.flatMap},n.Foldable={URI:n.URI,reduce:I,foldMap:R,reduceRight:S},n.FoldableWithIndex={URI:n.URI,reduce:I,foldMap:R,reduceRight:S,reduceWithIndex:w,foldMapWithIndex:M,reduceRightWithIndex:O},n.Traversable={URI:n.URI,map:g,reduce:I,foldMap:R,reduceRight:S,traverse:T,sequence:n.sequence},n.TraversableWithIndex={URI:n.URI,map:g,mapWithIndex:y,reduce:I,foldMap:R,reduceRight:S,traverse:T,sequence:n.sequence,reduceWithIndex:w,foldMapWithIndex:M,reduceRightWithIndex:O,traverseWithIndex:E},n.Alt={URI:n.URI,map:g,alt:x},n.Comonad={URI:n.URI,map:g,extend:_,extract:n.extract},n.Do=(0,n.of)(p.emptyRecord),n.bindTo=(0,l.bindTo)(n.Functor);var C=(0,l.let)(n.Functor);n.let=C,n.bind=(0,c.bind)(n.Chain),n.apS=(0,a.apS)(n.Apply),n.head=s.head,n.tail=function(t){return t.slice(1)},n.last=s.last,n.init=function(t){return t.slice(0,-1)},n.min=s.min,n.max=s.max,n.concatAll=function(t){return function(n){return n.reduce(t.concat)}},n.matchLeft=function(t){return function(e){return t((0,n.head)(e),(0,n.tail)(e))}},n.matchRight=function(t){return function(e){return t((0,n.init)(e),(0,n.last)(e))}},n.modifyHead=function(t){return function(e){return o([t((0,n.head)(e))],(0,n.tail)(e),!0)}},n.updateHead=function(t){return(0,n.modifyHead)(function(){return t})},n.modifyLast=function(t){return function(e){return(0,f.pipe)((0,n.init)(e),(0,n.append)(t((0,n.last)(e))))}},n.updateLast=function(t){return(0,n.modifyLast)(function(){return t})},n.intercalate=s.intercalate,n.chain=n.flatMap,n.groupSort=function(t){var e=(0,n.sort)(t),r=v(t);return function(t){return(0,n.isNonEmpty)(t)?r(e(t)):[]}},n.filter=function(t){return(0,n.filterWithIndex)(function(n,e){return t(e)})},n.filterWithIndex=function(t){return function(e){return(0,n.fromArray)(e.filter(function(n,e){return t(e,n)}))}},n.uncons=n.unprepend,n.unsnoc=n.unappend,n.cons=function(t,e){return void 0===e?(0,n.prepend)(t):(0,f.pipe)(e,(0,n.prepend)(t))},n.snoc=function(t,e){return(0,f.pipe)(t,(0,n.append)(e))},n.prependToAll=n.prependAll,n.fold=s.concatAll,n.nonEmptyArray={URI:n.URI,of:n.of,map:g,mapWithIndex:y,ap:b,chain:n.flatMap,extend:_,extract:n.extract,reduce:I,foldMap:R,reduceRight:S,traverse:T,sequence:n.sequence,reduceWithIndex:w,foldMapWithIndex:M,reduceRightWithIndex:O,traverseWithIndex:E,alt:x}},72720:function(t,n,e){var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);(!i||("get"in i?!n.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&r(n,t,e);return i(n,t),n};Object.defineProperty(n,"__esModule",{value:!0}),n.Witherable=n.wilt=n.wither=n.Traversable=n.sequence=n.traverse=n.Filterable=n.partitionMap=n.partition=n.filterMap=n.filter=n.Compactable=n.separate=n.compact=n.Extend=n.extend=n.Alternative=n.guard=n.Zero=n.zero=n.Alt=n.alt=n.altW=n.orElse=n.Foldable=n.reduceRight=n.foldMap=n.reduce=n.Monad=n.Chain=n.flatMap=n.Applicative=n.Apply=n.ap=n.Pointed=n.of=n.asUnit=n.as=n.Functor=n.map=n.getMonoid=n.getOrd=n.getEq=n.getShow=n.URI=n.getRight=n.getLeft=n.fromPredicate=n.some=n.none=void 0,n.getFirstMonoid=n.getApplyMonoid=n.getApplySemigroup=n.option=n.mapNullable=n.getRefinement=n.chainFirst=n.chain=n.sequenceArray=n.traverseArray=n.traverseArrayWithIndex=n.traverseReadonlyArrayWithIndex=n.traverseReadonlyNonEmptyArrayWithIndex=n.ApT=n.apS=n.bind=n.let=n.bindTo=n.Do=n.exists=n.elem=n.toUndefined=n.toNullable=n.chainNullableK=n.fromNullableK=n.tryCatchK=n.tryCatch=n.fromNullable=n.chainFirstEitherK=n.chainEitherK=n.fromEitherK=n.duplicate=n.tapEither=n.tap=n.flatten=n.apSecond=n.apFirst=n.flap=n.getOrElse=n.getOrElseW=n.fold=n.match=n.foldW=n.matchW=n.isNone=n.isSome=n.FromEither=n.fromEither=n.MonadThrow=n.throwError=void 0,n.getLastMonoid=void 0;var o=e(91756),a=e(93145),c=u(e(18222)),f=e(57756),l=e(14632),p=e(8762),d=u(e(5309)),s=e(87612),h=e(98744),m=e(4773),v=e(69706),g=e(3899);n.none=d.none,n.some=d.some,n.fromPredicate=function(t){return function(e){return t(e)?(0,n.some)(e):n.none}},n.getLeft=function(t){return"Right"===t._tag?n.none:(0,n.some)(t.left)},n.getRight=function(t){return"Left"===t._tag?n.none:(0,n.some)(t.right)};var y=function(t,e){return(0,l.pipe)(t,(0,n.map)(e))},b=function(t,e){return(0,l.pipe)(t,(0,n.ap)(e))},_=function(t,e,r){return(0,l.pipe)(t,(0,n.reduce)(e,r))},I=function(t){var e=(0,n.foldMap)(t);return function(t,n){return(0,l.pipe)(t,e(n))}},R=function(t,e,r){return(0,l.pipe)(t,(0,n.reduceRight)(e,r))},S=function(t){var e=(0,n.traverse)(t);return function(t,n){return(0,l.pipe)(t,e(n))}},T=function(t,e){return(0,l.pipe)(t,(0,n.alt)(e))},x=function(t,e){return(0,l.pipe)(t,(0,n.filter)(e))},w=function(t,e){return(0,l.pipe)(t,(0,n.filterMap)(e))},M=function(t,e){return(0,l.pipe)(t,(0,n.extend)(e))},O=function(t,e){return(0,l.pipe)(t,(0,n.partition)(e))},E=function(t,e){return(0,l.pipe)(t,(0,n.partitionMap)(e))};n.URI="Option",n.getShow=function(t){return{show:function(e){return(0,n.isNone)(e)?"none":"some(".concat(t.show(e.value),")")}}},n.getEq=function(t){return{equals:function(e,r){return e===r||((0,n.isNone)(e)?(0,n.isNone)(r):!(0,n.isNone)(r)&&t.equals(e.value,r.value))}}},n.getOrd=function(t){return{equals:(0,n.getEq)(t).equals,compare:function(e,r){return e===r?0:(0,n.isSome)(e)?(0,n.isSome)(r)?t.compare(e.value,r.value):1:-1}}},n.getMonoid=function(t){return{concat:function(e,r){return(0,n.isNone)(e)?r:(0,n.isNone)(r)?e:(0,n.some)(t.concat(e.value,r.value))},empty:n.none}},n.map=function(t){return function(e){return(0,n.isNone)(e)?n.none:(0,n.some)(t(e.value))}},n.Functor={URI:n.URI,map:y},n.as=(0,l.dual)(2,(0,p.as)(n.Functor)),n.asUnit=(0,p.asUnit)(n.Functor),n.of=n.some,n.Pointed={URI:n.URI,of:n.of},n.ap=function(t){return function(e){return(0,n.isNone)(e)?n.none:(0,n.isNone)(t)?n.none:(0,n.some)(e.value(t.value))}},n.Apply={URI:n.URI,map:y,ap:b},n.Applicative={URI:n.URI,map:y,ap:b,of:n.of},n.flatMap=(0,l.dual)(2,function(t,e){return(0,n.isNone)(t)?n.none:e(t.value)}),n.Chain={URI:n.URI,map:y,ap:b,chain:n.flatMap},n.Monad={URI:n.URI,map:y,ap:b,of:n.of,chain:n.flatMap},n.reduce=function(t,e){return function(r){return(0,n.isNone)(r)?t:e(t,r.value)}},n.foldMap=function(t){return function(e){return function(r){return(0,n.isNone)(r)?t.empty:e(r.value)}}},n.reduceRight=function(t,e){return function(r){return(0,n.isNone)(r)?t:e(r.value,t)}},n.Foldable={URI:n.URI,reduce:_,foldMap:I,reduceRight:R},n.orElse=(0,l.dual)(2,function(t,e){return(0,n.isNone)(t)?e():t}),n.altW=n.orElse,n.alt=n.orElse,n.Alt={URI:n.URI,map:y,alt:T},n.zero=function(){return n.none},n.Zero={URI:n.URI,zero:n.zero},n.guard=(0,g.guard)(n.Zero,n.Pointed),n.Alternative={URI:n.URI,map:y,ap:b,of:n.of,alt:T,zero:n.zero},n.extend=function(t){return function(e){return(0,n.isNone)(e)?n.none:(0,n.some)(t(e))}},n.Extend={URI:n.URI,map:y,extend:M},n.compact=(0,n.flatMap)(l.identity);var C=(0,m.separated)(n.none,n.none);n.separate=function(t){return(0,n.isNone)(t)?C:(0,m.separated)((0,n.getLeft)(t.value),(0,n.getRight)(t.value))},n.Compactable={URI:n.URI,compact:n.compact,separate:n.separate},n.filter=function(t){return function(e){return(0,n.isNone)(e)?n.none:t(e.value)?e:n.none}},n.filterMap=function(t){return function(e){return(0,n.isNone)(e)?n.none:t(e.value)}},n.partition=function(t){return function(n){return(0,m.separated)(x(n,(0,s.not)(t)),x(n,t))}},n.partitionMap=function(t){return(0,l.flow)((0,n.map)(t),n.separate)},n.Filterable={URI:n.URI,map:y,compact:n.compact,separate:n.separate,filter:x,filterMap:w,partition:O,partitionMap:E},n.traverse=function(t){return function(e){return function(r){return(0,n.isNone)(r)?t.of(n.none):t.map(e(r.value),n.some)}}},n.sequence=function(t){return function(e){return(0,n.isNone)(e)?t.of(n.none):t.map(e.value,n.some)}},n.Traversable={URI:n.URI,map:y,reduce:_,foldMap:I,reduceRight:R,traverse:S,sequence:n.sequence};var k=(0,v.witherDefault)(n.Traversable,n.Compactable),W=(0,v.wiltDefault)(n.Traversable,n.Compactable);n.wither=function(t){var n=k(t);return function(t){return function(e){return n(e,t)}}},n.wilt=function(t){var n=W(t);return function(t){return function(e){return n(e,t)}}},n.Witherable={URI:n.URI,map:y,reduce:_,foldMap:I,reduceRight:R,traverse:S,sequence:n.sequence,compact:n.compact,separate:n.separate,filter:x,filterMap:w,partition:O,partitionMap:E,wither:k,wilt:W},n.throwError=function(){return n.none},n.MonadThrow={URI:n.URI,map:y,ap:b,of:n.of,chain:n.flatMap,throwError:n.throwError},n.fromEither=n.getRight,n.FromEither={URI:n.URI,fromEither:n.fromEither},n.isSome=d.isSome,n.isNone=function(t){return"None"===t._tag},n.matchW=function(t,e){return function(r){return(0,n.isNone)(r)?t():e(r.value)}},n.foldW=n.matchW,n.match=n.matchW,n.fold=n.match,n.getOrElseW=function(t){return function(e){return(0,n.isNone)(e)?t():e.value}},n.getOrElse=n.getOrElseW,n.flap=(0,p.flap)(n.Functor),n.apFirst=(0,a.apFirst)(n.Apply),n.apSecond=(0,a.apSecond)(n.Apply),n.flatten=n.compact,n.tap=(0,l.dual)(2,c.tap(n.Chain)),n.tapEither=(0,l.dual)(2,(0,f.tapEither)(n.FromEither,n.Chain)),n.duplicate=(0,n.extend)(l.identity),n.fromEitherK=(0,f.fromEitherK)(n.FromEither),n.chainEitherK=(0,f.chainEitherK)(n.FromEither,n.Chain),n.chainFirstEitherK=n.tapEither,n.fromNullable=function(t){return null==t?n.none:(0,n.some)(t)},n.tryCatch=function(t){try{return(0,n.some)(t())}catch(t){return n.none}},n.tryCatchK=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0,n.tryCatch)(function(){return t.apply(void 0,e)})}},n.fromNullableK=function(t){return(0,l.flow)(t,n.fromNullable)},n.chainNullableK=function(t){return function(e){return(0,n.isNone)(e)?n.none:(0,n.fromNullable)(t(e.value))}},n.toNullable=(0,n.match)(l.constNull,l.identity),n.toUndefined=(0,n.match)(l.constUndefined,l.identity),n.elem=function t(e){return function(r,i){if(void 0===i){var u=t(e);return function(t){return u(r,t)}}return!(0,n.isNone)(i)&&e.equals(r,i.value)}},n.exists=function(t){return function(e){return!(0,n.isNone)(e)&&t(e.value)}},n.Do=(0,n.of)(d.emptyRecord),n.bindTo=(0,p.bindTo)(n.Functor);var F=(0,p.let)(n.Functor);n.let=F,n.bind=c.bind(n.Chain),n.apS=(0,a.apS)(n.Apply),n.ApT=(0,n.of)(d.emptyReadonlyArray),n.traverseReadonlyNonEmptyArrayWithIndex=function(t){return function(e){var r=t(0,d.head(e));if((0,n.isNone)(r))return n.none;for(var i=[r.value],u=1;u<e.length;u++){var o=t(u,e[u]);if((0,n.isNone)(o))return n.none;i.push(o.value)}return(0,n.some)(i)}},n.traverseReadonlyArrayWithIndex=function(t){var e=(0,n.traverseReadonlyNonEmptyArrayWithIndex)(t);return function(t){return d.isNonEmpty(t)?e(t):n.ApT}},n.traverseArrayWithIndex=n.traverseReadonlyArrayWithIndex,n.traverseArray=function(t){return(0,n.traverseReadonlyArrayWithIndex)(function(n,e){return t(e)})},n.sequenceArray=(0,n.traverseArray)(l.identity),n.chain=n.flatMap,n.chainFirst=n.tap,n.getRefinement=function(t){return function(e){return(0,n.isSome)(t(e))}},n.mapNullable=n.chainNullableK,n.option={URI:n.URI,map:y,of:n.of,ap:b,chain:n.flatMap,reduce:_,foldMap:I,reduceRight:R,traverse:S,sequence:n.sequence,zero:n.zero,alt:T,extend:M,compact:n.compact,separate:n.separate,filter:x,filterMap:w,partition:O,partitionMap:E,wither:k,wilt:W,throwError:n.throwError},n.getApplySemigroup=(0,a.getApplySemigroup)(n.Apply),n.getApplyMonoid=(0,o.getApplicativeMonoid)(n.Applicative),n.getFirstMonoid=function(){return(0,n.getMonoid)((0,h.first)())},n.getLastMonoid=function(){return(0,n.getMonoid)((0,h.last)())}},83235:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.ordDate=n.ordNumber=n.ordString=n.ordBoolean=n.ord=n.getDualOrd=n.getTupleOrd=n.between=n.clamp=n.max=n.min=n.geq=n.leq=n.gt=n.lt=n.equals=n.trivial=n.Contravariant=n.getMonoid=n.getSemigroup=n.URI=n.contramap=n.reverse=n.tuple=n.fromCompare=n.equalsDefault=void 0;var r=e(8190),i=e(14632);n.equalsDefault=function(t){return function(n,e){return n===e||0===t(n,e)}},n.fromCompare=function(t){return{equals:(0,n.equalsDefault)(t),compare:function(n,e){return n===e?0:t(n,e)}}},n.tuple=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,n.fromCompare)(function(n,e){for(var r=0;r<t.length-1;r++){var i=t[r].compare(n[r],e[r]);if(0!==i)return i}return t[r].compare(n[r],e[r])})},n.reverse=function(t){return(0,n.fromCompare)(function(n,e){return t.compare(e,n)})},n.contramap=function(t){return function(e){return(0,n.fromCompare)(function(n,r){return e.compare(t(n),t(r))})}},n.URI="Ord",n.getSemigroup=function(){return{concat:function(t,e){return(0,n.fromCompare)(function(n,r){var i=t.compare(n,r);return 0!==i?i:e.compare(n,r)})}}},n.getMonoid=function(){return{concat:(0,n.getSemigroup)().concat,empty:(0,n.fromCompare)(function(){return 0})}},n.Contravariant={URI:n.URI,contramap:function(t,e){return(0,i.pipe)(t,(0,n.contramap)(e))}},n.trivial={equals:i.constTrue,compare:(0,i.constant)(0)},n.equals=function(t){return function(n){return function(e){return e===n||0===t.compare(e,n)}}},n.lt=function(t){return function(n,e){return -1===t.compare(n,e)}},n.gt=function(t){return function(n,e){return 1===t.compare(n,e)}},n.leq=function(t){return function(n,e){return 1!==t.compare(n,e)}},n.geq=function(t){return function(n,e){return -1!==t.compare(n,e)}},n.min=function(t){return function(n,e){return n===e||1>t.compare(n,e)?n:e}},n.max=function(t){return function(n,e){return n===e||t.compare(n,e)>-1?n:e}},n.clamp=function(t){var e=(0,n.min)(t),r=(0,n.max)(t);return function(t,n){return function(i){return r(e(i,n),t)}}},n.between=function(t){var e=(0,n.lt)(t),r=(0,n.gt)(t);return function(t,n){return function(i){return!(e(i,t)||r(i,n))}}},n.getTupleOrd=n.tuple,n.getDualOrd=n.reverse,n.ord=n.Contravariant;var u={equals:r.eqStrict.equals,compare:function(t,n){return t<n?-1:t>n?1:0}};n.ordBoolean=u,n.ordString=u,n.ordNumber=u,n.ordDate=(0,i.pipe)(n.ordNumber,(0,n.contramap)(function(t){return t.valueOf()}))},87612:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.and=n.or=n.not=n.Contravariant=n.getMonoidAll=n.getSemigroupAll=n.getMonoidAny=n.getSemigroupAny=n.URI=n.contramap=void 0;var r=e(14632);n.contramap=function(t){return function(n){return(0,r.flow)(t,n)}},n.URI="Predicate",n.getSemigroupAny=function(){return{concat:function(t,e){return(0,r.pipe)(t,(0,n.or)(e))}}},n.getMonoidAny=function(){return{concat:(0,n.getSemigroupAny)().concat,empty:r.constFalse}},n.getSemigroupAll=function(){return{concat:function(t,e){return(0,r.pipe)(t,(0,n.and)(e))}}},n.getMonoidAll=function(){return{concat:(0,n.getSemigroupAll)().concat,empty:r.constTrue}},n.Contravariant={URI:n.URI,contramap:function(t,e){return(0,r.pipe)(t,(0,n.contramap)(e))}},n.not=function(t){return function(n){return!t(n)}},n.or=function(t){return function(n){return function(e){return n(e)||t(e)}}},n.and=function(t){return function(n){return function(e){return n(e)&&t(e)}}}},78703:function(t,n,e){var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);(!i||("get"in i?!n.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&r(n,t,e);return i(n,t),n},o=this&&this.__spreadArray||function(t,n,e){if(e||2==arguments.length)for(var r,i=0,u=n.length;i<u;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return t.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(n,"__esModule",{value:!0}),n.sort=n.lefts=n.rights=n.reverse=n.modifyAt=n.deleteAt=n.updateAt=n.insertAt=n.findLastIndex=n.findLastMap=n.findLast=n.findFirstMap=n.findFirst=n.findIndex=n.dropLeftWhile=n.dropRight=n.dropLeft=n.spanLeft=n.takeLeftWhile=n.takeRight=n.takeLeft=n.init=n.tail=n.last=n.head=n.lookup=n.isOutOfBound=n.size=n.scanRight=n.scanLeft=n.chainWithIndex=n.foldRight=n.matchRight=n.matchRightW=n.foldLeft=n.matchLeft=n.matchLeftW=n.match=n.matchW=n.fromEither=n.fromOption=n.fromPredicate=n.replicate=n.makeBy=n.appendW=n.append=n.prependW=n.prepend=n.isNonEmpty=n.isEmpty=void 0,n.sequence=n.traverse=n.reduceRightWithIndex=n.reduceRight=n.reduceWithIndex=n.foldMap=n.reduce=n.foldMapWithIndex=n.duplicate=n.extend=n.filterWithIndex=n.partitionMapWithIndex=n.partitionMap=n.partitionWithIndex=n.partition=n.compact=n.filterMap=n.filterMapWithIndex=n.filter=n.separate=n.mapWithIndex=n.map=n.flatten=n.flatMap=n.ap=n.alt=n.altW=n.zero=n.of=n._chainRecBreadthFirst=n._chainRecDepthFirst=n.difference=n.intersection=n.union=n.concat=n.concatW=n.comprehension=n.fromOptionK=n.chunksOf=n.splitAt=n.chop=n.sortBy=n.uniq=n.elem=n.rotate=n.intersperse=n.prependAll=n.unzip=n.zip=n.zipWith=void 0,n.toArray=n.unsafeDeleteAt=n.unsafeUpdateAt=n.unsafeInsertAt=n.fromEitherK=n.FromEither=n.filterE=n.Witherable=n.ChainRecBreadthFirst=n.chainRecBreadthFirst=n.ChainRecDepthFirst=n.chainRecDepthFirst=n.TraversableWithIndex=n.Traversable=n.FoldableWithIndex=n.Foldable=n.FilterableWithIndex=n.Filterable=n.Compactable=n.Extend=n.Alternative=n.guard=n.Zero=n.Alt=n.Unfoldable=n.chainFirst=n.Monad=n.Chain=n.Applicative=n.apSecond=n.apFirst=n.Apply=n.FunctorWithIndex=n.Pointed=n.flap=n.Functor=n.getDifferenceMagma=n.getIntersectionSemigroup=n.getUnionMonoid=n.getUnionSemigroup=n.getOrd=n.getEq=n.getMonoid=n.getSemigroup=n.getShow=n.URI=n.unfold=n.wilt=n.wither=n.traverseWithIndex=void 0,n.readonlyArray=n.prependToAll=n.snoc=n.cons=n.range=n.chain=n.apS=n.bind=n.let=n.bindTo=n.Do=n.intercalate=n.exists=n.some=n.every=n.empty=n.fromArray=void 0;var a=e(93145),c=e(18222),f=e(8190),l=e(57756),p=e(14632),d=e(8762),s=u(e(5309)),h=u(e(40457)),m=e(83235),v=u(e(84612)),g=e(4773),y=e(69706),b=e(3899);n.isEmpty=function(t){return 0===t.length},n.isNonEmpty=v.isNonEmpty,n.prepend=v.prepend,n.prependW=v.prependW,n.append=v.append,n.appendW=v.appendW,n.makeBy=function(t,e){return t<=0?n.empty:v.makeBy(e)(t)},n.replicate=function(t,e){return(0,n.makeBy)(t,function(){return e})},n.fromPredicate=function(t){return function(e){return t(e)?[e]:n.empty}},n.fromOption=function(t){return s.isNone(t)?n.empty:[t.value]},n.fromEither=function(t){return s.isLeft(t)?n.empty:[t.right]},n.matchW=function(t,e){return function(r){return(0,n.isNonEmpty)(r)?e(r):t()}},n.match=n.matchW,n.matchLeftW=function(t,e){return function(r){return(0,n.isNonEmpty)(r)?e(v.head(r),v.tail(r)):t()}},n.matchLeft=n.matchLeftW,n.foldLeft=n.matchLeft,n.matchRightW=function(t,e){return function(r){return(0,n.isNonEmpty)(r)?e(v.init(r),v.last(r)):t()}},n.matchRight=n.matchRightW,n.foldRight=n.matchRight,n.chainWithIndex=function(t){return function(e){if((0,n.isEmpty)(e))return n.empty;for(var r=[],i=0;i<e.length;i++)r.push.apply(r,t(i,e[i]));return r}},n.scanLeft=function(t,n){return function(e){var r=e.length,i=Array(r+1);i[0]=t;for(var u=0;u<r;u++)i[u+1]=n(i[u],e[u]);return i}},n.scanRight=function(t,n){return function(e){var r=e.length,i=Array(r+1);i[r]=t;for(var u=r-1;u>=0;u--)i[u]=n(e[u],i[u+1]);return i}},n.size=function(t){return t.length},n.isOutOfBound=v.isOutOfBound,n.lookup=function t(e,r){return void 0===r?function(n){return t(e,n)}:(0,n.isOutOfBound)(e,r)?s.none:s.some(r[e])},n.head=function(t){return(0,n.isNonEmpty)(t)?s.some(v.head(t)):s.none},n.last=function(t){return(0,n.isNonEmpty)(t)?s.some(v.last(t)):s.none},n.tail=function(t){return(0,n.isNonEmpty)(t)?s.some(v.tail(t)):s.none},n.init=function(t){return(0,n.isNonEmpty)(t)?s.some(v.init(t)):s.none},n.takeLeft=function(t){return function(e){return(0,n.isOutOfBound)(t,e)?e:0===t?n.empty:e.slice(0,t)}},n.takeRight=function(t){return function(e){return(0,n.isOutOfBound)(t,e)?e:0===t?n.empty:e.slice(-t)}},n.takeLeftWhile=function(t){return function(e){for(var r=[],i=0;i<e.length;i++){var u=e[i];if(!t(u))break;r.push(u)}var o=r.length;return o===e.length?e:0===o?n.empty:r}};var _=function(t,n){for(var e=t.length,r=0;r<e&&n(t[r]);r++);return r};function I(t){return function(n,e){if(void 0===e){var r,i=I(t);return function(t){return i(n,t)}}for(var u=0;u<e.length;u++)if(r=e[u],t.equals(r,n))return!0;return!1}}function R(t){var e=v.union(t);return function(r,i){if(void 0===i){var u=R(t);return function(t){return u(t,r)}}return(0,n.isNonEmpty)(r)&&(0,n.isNonEmpty)(i)?e(i)(r):(0,n.isNonEmpty)(r)?r:i}}function S(t){var n=I(t);return function(e,r){if(void 0===r){var i=S(t);return function(t){return i(t,e)}}return e.filter(function(t){return n(t,r)})}}function T(t){var n=I(t);return function(e,r){if(void 0===r){var i=T(t);return function(t){return i(t,e)}}return e.filter(function(t){return!n(t,r)})}}n.spanLeft=function(t){return function(e){var r=(0,n.splitAt)(_(e,t))(e);return{init:r[0],rest:r[1]}}},n.dropLeft=function(t){return function(e){return t<=0||(0,n.isEmpty)(e)?e:t>=e.length?n.empty:e.slice(t,e.length)}},n.dropRight=function(t){return function(e){return t<=0||(0,n.isEmpty)(e)?e:t>=e.length?n.empty:e.slice(0,e.length-t)}},n.dropLeftWhile=function(t){return function(e){var r=_(e,t);return 0===r?e:r===e.length?n.empty:e.slice(r)}},n.findIndex=function(t){return function(n){for(var e=0;e<n.length;e++)if(t(n[e]))return s.some(e);return s.none}},n.findFirst=function(t){return function(n){for(var e=0;e<n.length;e++)if(t(n[e]))return s.some(n[e]);return s.none}},n.findFirstMap=function(t){return function(n){for(var e=0;e<n.length;e++){var r=t(n[e]);if(s.isSome(r))return r}return s.none}},n.findLast=function(t){return function(n){for(var e=n.length-1;e>=0;e--)if(t(n[e]))return s.some(n[e]);return s.none}},n.findLastMap=function(t){return function(n){for(var e=n.length-1;e>=0;e--){var r=t(n[e]);if(s.isSome(r))return r}return s.none}},n.findLastIndex=function(t){return function(n){for(var e=n.length-1;e>=0;e--)if(t(n[e]))return s.some(e);return s.none}},n.insertAt=function(t,n){return function(e){return t<0||t>e.length?s.none:s.some(v.unsafeInsertAt(t,n,e))}},n.updateAt=function(t,e){return(0,n.modifyAt)(t,function(){return e})},n.deleteAt=function(t){return function(e){return(0,n.isOutOfBound)(t,e)?s.none:s.some((0,n.unsafeDeleteAt)(t,e))}},n.modifyAt=function(t,e){return function(r){return(0,n.isOutOfBound)(t,r)?s.none:s.some((0,n.unsafeUpdateAt)(t,e(r[t]),r))}},n.reverse=function(t){return t.length<=1?t:t.slice().reverse()},n.rights=function(t){for(var n=[],e=0;e<t.length;e++){var r=t[e];"Right"===r._tag&&n.push(r.right)}return n},n.lefts=function(t){for(var n=[],e=0;e<t.length;e++){var r=t[e];"Left"===r._tag&&n.push(r.left)}return n},n.sort=function(t){return function(n){return n.length<=1?n:n.slice().sort(t.compare)}},n.zipWith=function(t,n,e){for(var r=[],i=Math.min(t.length,n.length),u=0;u<i;u++)r[u]=e(t[u],n[u]);return r},n.zip=function t(e,r){return void 0===r?function(n){return t(n,e)}:(0,n.zipWith)(e,r,function(t,n){return[t,n]})},n.unzip=function(t){for(var n=[],e=[],r=0;r<t.length;r++)n[r]=t[r][0],e[r]=t[r][1];return[n,e]},n.prependAll=function(t){var e=v.prependAll(t);return function(t){return(0,n.isNonEmpty)(t)?e(t):t}},n.intersperse=function(t){var e=v.intersperse(t);return function(t){return(0,n.isNonEmpty)(t)?e(t):t}},n.rotate=function(t){var e=v.rotate(t);return function(t){return(0,n.isNonEmpty)(t)?e(t):t}},n.elem=I,n.uniq=function(t){var e=v.uniq(t);return function(t){return(0,n.isNonEmpty)(t)?e(t):t}},n.sortBy=function(t){var e=v.sortBy(t);return function(t){return(0,n.isNonEmpty)(t)?e(t):t}},n.chop=function(t){var e=v.chop(t);return function(t){return(0,n.isNonEmpty)(t)?e(t):n.empty}},n.splitAt=function(t){return function(e){return t>=1&&(0,n.isNonEmpty)(e)?v.splitAt(t)(e):(0,n.isEmpty)(e)?[e,n.empty]:[n.empty,e]}},n.chunksOf=function(t){var e=v.chunksOf(t);return function(t){return(0,n.isNonEmpty)(t)?e(t):n.empty}},n.fromOptionK=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0,n.fromOption)(t.apply(void 0,e))}},n.comprehension=function(t,e,r){void 0===r&&(r=function(){return!0});var i=function(t,u){return(0,n.isNonEmpty)(u)?(0,n.flatMap)(v.head(u),function(e){return i((0,p.pipe)(t,(0,n.append)(e)),v.tail(u))}):r.apply(void 0,t)?[e.apply(void 0,t)]:n.empty};return i(n.empty,t)},n.concatW=function(t){return function(e){return(0,n.isEmpty)(e)?t:(0,n.isEmpty)(t)?e:e.concat(t)}},n.concat=n.concatW,n.union=R,n.intersection=S,n.difference=T;var x=function(t,e){return(0,p.pipe)(t,(0,n.map)(e))},w=function(t,e){return(0,p.pipe)(t,(0,n.mapWithIndex)(e))},M=function(t,e){return(0,p.pipe)(t,(0,n.ap)(e))},O=function(t,e){return(0,p.pipe)(t,(0,n.filter)(e))},E=function(t,e){return(0,p.pipe)(t,(0,n.filterMap)(e))},C=function(t,e){return(0,p.pipe)(t,(0,n.partition)(e))},k=function(t,e){return(0,p.pipe)(t,(0,n.partitionMap)(e))},W=function(t,e){return(0,p.pipe)(t,(0,n.partitionWithIndex)(e))},F=function(t,e){return(0,p.pipe)(t,(0,n.partitionMapWithIndex)(e))},P=function(t,e){return(0,p.pipe)(t,(0,n.alt)(e))},A=function(t,e,r){return(0,p.pipe)(t,(0,n.reduce)(e,r))},D=function(t){var e=(0,n.foldMap)(t);return function(t,n){return(0,p.pipe)(t,e(n))}},U=function(t,e,r){return(0,p.pipe)(t,(0,n.reduceRight)(e,r))},L=function(t,e,r){return(0,p.pipe)(t,(0,n.reduceWithIndex)(e,r))},N=function(t){var e=(0,n.foldMapWithIndex)(t);return function(t,n){return(0,p.pipe)(t,e(n))}},j=function(t,e,r){return(0,p.pipe)(t,(0,n.reduceRightWithIndex)(e,r))},q=function(t,e){return(0,p.pipe)(t,(0,n.filterMapWithIndex)(e))},G=function(t,e){return(0,p.pipe)(t,(0,n.filterWithIndex)(e))},K=function(t,e){return(0,p.pipe)(t,(0,n.extend)(e))},Y=function(t){var e=(0,n.traverse)(t);return function(t,n){return(0,p.pipe)(t,e(n))}},V=function(t){var e=(0,n.traverseWithIndex)(t);return function(t,n){return(0,p.pipe)(t,e(n))}};n._chainRecDepthFirst=function(t,e){return(0,p.pipe)(t,(0,n.chainRecDepthFirst)(e))},n._chainRecBreadthFirst=function(t,e){return(0,p.pipe)(t,(0,n.chainRecBreadthFirst)(e))},n.of=v.of,n.zero=function(){return n.empty},n.altW=function(t){return function(n){return n.concat(t())}},n.alt=n.altW,n.ap=function(t){return(0,n.flatMap)(function(e){return(0,p.pipe)(t,(0,n.map)(e))})},n.flatMap=(0,p.dual)(2,function(t,e){return(0,p.pipe)(t,(0,n.chainWithIndex)(function(t,n){return e(n,t)}))}),n.flatten=(0,n.flatMap)(p.identity),n.map=function(t){return function(n){return n.map(function(n){return t(n)})}},n.mapWithIndex=function(t){return function(n){return n.map(function(n,e){return t(e,n)})}},n.separate=function(t){for(var n=[],e=[],r=0;r<t.length;r++){var i=t[r];"Left"===i._tag?n.push(i.left):e.push(i.right)}return(0,g.separated)(n,e)},n.filter=function(t){return function(n){return n.filter(t)}},n.filterMapWithIndex=function(t){return function(n){for(var e=[],r=0;r<n.length;r++){var i=t(r,n[r]);s.isSome(i)&&e.push(i.value)}return e}},n.filterMap=function(t){return(0,n.filterMapWithIndex)(function(n,e){return t(e)})},n.compact=(0,n.filterMap)(p.identity),n.partition=function(t){return(0,n.partitionWithIndex)(function(n,e){return t(e)})},n.partitionWithIndex=function(t){return function(n){for(var e=[],r=[],i=0;i<n.length;i++){var u=n[i];t(i,u)?r.push(u):e.push(u)}return(0,g.separated)(e,r)}},n.partitionMap=function(t){return(0,n.partitionMapWithIndex)(function(n,e){return t(e)})},n.partitionMapWithIndex=function(t){return function(n){for(var e=[],r=[],i=0;i<n.length;i++){var u=t(i,n[i]);"Left"===u._tag?e.push(u.left):r.push(u.right)}return(0,g.separated)(e,r)}},n.filterWithIndex=function(t){return function(n){return n.filter(function(n,e){return t(e,n)})}},n.extend=function(t){return function(n){return n.map(function(e,r){return t(n.slice(r))})}},n.duplicate=(0,n.extend)(p.identity),n.foldMapWithIndex=function(t){return function(n){return function(e){return e.reduce(function(e,r,i){return t.concat(e,n(i,r))},t.empty)}}},n.reduce=function(t,e){return(0,n.reduceWithIndex)(t,function(t,n,r){return e(n,r)})},n.foldMap=function(t){var e=(0,n.foldMapWithIndex)(t);return function(t){return e(function(n,e){return t(e)})}},n.reduceWithIndex=function(t,n){return function(e){for(var r=e.length,i=t,u=0;u<r;u++)i=n(u,i,e[u]);return i}},n.reduceRight=function(t,e){return(0,n.reduceRightWithIndex)(t,function(t,n,r){return e(n,r)})},n.reduceRightWithIndex=function(t,n){return function(e){return e.reduceRight(function(t,e,r){return n(r,e,t)},t)}},n.traverse=function(t){var e=(0,n.traverseWithIndex)(t);return function(t){return e(function(n,e){return t(e)})}},n.sequence=function(t){return function(e){return A(e,t.of((0,n.zero)()),function(e,r){return t.ap(t.map(e,function(t){return function(e){return(0,p.pipe)(t,(0,n.append)(e))}}),r)})}},n.traverseWithIndex=function(t){return function(e){return(0,n.reduceWithIndex)(t.of((0,n.zero)()),function(r,i,u){return t.ap(t.map(i,function(t){return function(e){return(0,p.pipe)(t,(0,n.append)(e))}}),e(r,u))})}},n.wither=function(t){var n=B(t);return function(t){return function(e){return n(e,t)}}},n.wilt=function(t){var n=H(t);return function(t){return function(e){return n(e,t)}}},n.unfold=function(t,n){for(var e=[],r=t;;){var i=n(r);if(s.isSome(i)){var u=i.value,o=u[0],a=u[1];e.push(o),r=a}else break}return e},n.URI="ReadonlyArray",n.getShow=function(t){return{show:function(n){return"[".concat(n.map(t.show).join(", "),"]")}}},n.getSemigroup=function(){return{concat:function(t,e){return(0,n.isEmpty)(t)?e:(0,n.isEmpty)(e)?t:t.concat(e)}}},n.getMonoid=function(){return{concat:(0,n.getSemigroup)().concat,empty:n.empty}},n.getEq=function(t){return(0,f.fromEquals)(function(n,e){return n.length===e.length&&n.every(function(n,r){return t.equals(n,e[r])})})},n.getOrd=function(t){return(0,m.fromCompare)(function(n,e){for(var r=n.length,i=e.length,u=Math.min(r,i),o=0;o<u;o++){var a=t.compare(n[o],e[o]);if(0!==a)return a}return h.Ord.compare(r,i)})},n.getUnionSemigroup=function(t){var n=R(t);return{concat:function(t,e){return n(e)(t)}}},n.getUnionMonoid=function(t){return{concat:(0,n.getUnionSemigroup)(t).concat,empty:n.empty}},n.getIntersectionSemigroup=function(t){var n=S(t);return{concat:function(t,e){return n(e)(t)}}},n.getDifferenceMagma=function(t){var n=T(t);return{concat:function(t,e){return n(e)(t)}}},n.Functor={URI:n.URI,map:x},n.flap=(0,d.flap)(n.Functor),n.Pointed={URI:n.URI,of:n.of},n.FunctorWithIndex={URI:n.URI,map:x,mapWithIndex:w},n.Apply={URI:n.URI,map:x,ap:M},n.apFirst=(0,a.apFirst)(n.Apply),n.apSecond=(0,a.apSecond)(n.Apply),n.Applicative={URI:n.URI,map:x,ap:M,of:n.of},n.Chain={URI:n.URI,map:x,ap:M,chain:n.flatMap},n.Monad={URI:n.URI,map:x,ap:M,of:n.of,chain:n.flatMap},n.chainFirst=(0,c.chainFirst)(n.Chain),n.Unfoldable={URI:n.URI,unfold:n.unfold},n.Alt={URI:n.URI,map:x,alt:P},n.Zero={URI:n.URI,zero:n.zero},n.guard=(0,b.guard)(n.Zero,n.Pointed),n.Alternative={URI:n.URI,map:x,ap:M,of:n.of,alt:P,zero:n.zero},n.Extend={URI:n.URI,map:x,extend:K},n.Compactable={URI:n.URI,compact:n.compact,separate:n.separate},n.Filterable={URI:n.URI,map:x,compact:n.compact,separate:n.separate,filter:O,filterMap:E,partition:C,partitionMap:k},n.FilterableWithIndex={URI:n.URI,map:x,mapWithIndex:w,compact:n.compact,separate:n.separate,filter:O,filterMap:E,partition:C,partitionMap:k,partitionMapWithIndex:F,partitionWithIndex:W,filterMapWithIndex:q,filterWithIndex:G},n.Foldable={URI:n.URI,reduce:A,foldMap:D,reduceRight:U},n.FoldableWithIndex={URI:n.URI,reduce:A,foldMap:D,reduceRight:U,reduceWithIndex:L,foldMapWithIndex:N,reduceRightWithIndex:j},n.Traversable={URI:n.URI,map:x,reduce:A,foldMap:D,reduceRight:U,traverse:Y,sequence:n.sequence},n.TraversableWithIndex={URI:n.URI,map:x,mapWithIndex:w,reduce:A,foldMap:D,reduceRight:U,reduceWithIndex:L,foldMapWithIndex:N,reduceRightWithIndex:j,traverse:Y,sequence:n.sequence,traverseWithIndex:V},n.chainRecDepthFirst=function(t){return function(n){for(var e=o([],t(n),!0),r=[];e.length>0;){var i=e.shift();s.isLeft(i)?e.unshift.apply(e,t(i.left)):r.push(i.right)}return r}},n.ChainRecDepthFirst={URI:n.URI,map:x,ap:M,chain:n.flatMap,chainRec:n._chainRecDepthFirst},n.chainRecBreadthFirst=function(t){return function(n){var e=t(n),r=[],i=[];function u(n){s.isLeft(n)?t(n.left).forEach(function(t){return r.push(t)}):i.push(n.right)}for(var o=0;o<e.length;o++)u(e[o]);for(;r.length>0;)u(r.shift());return i}},n.ChainRecBreadthFirst={URI:n.URI,map:x,ap:M,chain:n.flatMap,chainRec:n._chainRecBreadthFirst};var B=(0,y.witherDefault)(n.Traversable,n.Compactable),H=(0,y.wiltDefault)(n.Traversable,n.Compactable);n.Witherable={URI:n.URI,map:x,compact:n.compact,separate:n.separate,filter:O,filterMap:E,partition:C,partitionMap:k,reduce:A,foldMap:D,reduceRight:U,traverse:Y,sequence:n.sequence,wither:B,wilt:H},n.filterE=(0,y.filterE)(n.Witherable),n.FromEither={URI:n.URI,fromEither:n.fromEither},n.fromEitherK=(0,l.fromEitherK)(n.FromEither),n.unsafeInsertAt=v.unsafeInsertAt,n.unsafeUpdateAt=function(t,e,r){return(0,n.isNonEmpty)(r)?v.unsafeUpdateAt(t,e,r):r},n.unsafeDeleteAt=function(t,n){var e=n.slice();return e.splice(t,1),e},n.toArray=function(t){return t.slice()},n.fromArray=function(t){return(0,n.isEmpty)(t)?n.empty:t.slice()},n.empty=v.empty,n.every=function(t){return function(n){return n.every(t)}},n.some=function(t){return function(n){return n.some(t)}},n.exists=n.some,n.intercalate=function(t){var e=v.intercalate(t);return function(r){return(0,n.match)(function(){return t.empty},e(r))}},n.Do=(0,n.of)(s.emptyRecord),n.bindTo=(0,d.bindTo)(n.Functor);var z=(0,d.let)(n.Functor);n.let=z,n.bind=(0,c.bind)(n.Chain),n.apS=(0,a.apS)(n.Apply),n.chain=n.flatMap,n.range=v.range,n.cons=v.cons,n.snoc=v.snoc,n.prependToAll=n.prependAll,n.readonlyArray={URI:n.URI,compact:n.compact,separate:n.separate,map:x,ap:M,of:n.of,chain:n.flatMap,filter:O,filterMap:E,partition:C,partitionMap:k,mapWithIndex:w,partitionMapWithIndex:F,partitionWithIndex:W,filterMapWithIndex:q,filterWithIndex:G,alt:P,zero:n.zero,unfold:n.unfold,reduce:A,foldMap:D,reduceRight:U,traverse:Y,sequence:n.sequence,reduceWithIndex:L,foldMapWithIndex:N,reduceRightWithIndex:j,traverseWithIndex:V,extend:K,wither:B,wilt:H}},84612:function(t,n,e){var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);(!i||("get"in i?!n.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&r(n,t,e);return i(n,t),n},o=this&&this.__spreadArray||function(t,n,e){if(e||2==arguments.length)for(var r,i=0,u=n.length;i<u;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return t.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(n,"__esModule",{value:!0}),n.reduceRight=n.foldMap=n.reduce=n.mapWithIndex=n.map=n.flatten=n.duplicate=n.extend=n.flatMap=n.ap=n.alt=n.altW=n.of=n.chunksOf=n.splitAt=n.chop=n.chainWithIndex=n.intersperse=n.prependAll=n.unzip=n.zip=n.zipWith=n.modifyAt=n.updateAt=n.sort=n.groupBy=n.group=n.reverse=n.concat=n.concatW=n.fromArray=n.unappend=n.unprepend=n.range=n.replicate=n.makeBy=n.fromReadonlyArray=n.rotate=n.union=n.sortBy=n.uniq=n.unsafeUpdateAt=n.unsafeInsertAt=n.append=n.appendW=n.prepend=n.prependW=n.isOutOfBound=n.isNonEmpty=n.empty=void 0,n.groupSort=n.chain=n.intercalate=n.updateLast=n.modifyLast=n.updateHead=n.modifyHead=n.matchRight=n.matchLeft=n.concatAll=n.max=n.min=n.init=n.last=n.tail=n.head=n.apS=n.bind=n.let=n.bindTo=n.Do=n.Comonad=n.Alt=n.TraversableWithIndex=n.Traversable=n.FoldableWithIndex=n.Foldable=n.Monad=n.chainFirst=n.Chain=n.Applicative=n.apSecond=n.apFirst=n.Apply=n.FunctorWithIndex=n.Pointed=n.flap=n.Functor=n.getUnionSemigroup=n.getEq=n.getSemigroup=n.getShow=n.URI=n.extract=n.traverseWithIndex=n.sequence=n.traverse=n.reduceRightWithIndex=n.foldMapWithIndex=n.reduceWithIndex=void 0,n.readonlyNonEmptyArray=n.fold=n.prependToAll=n.insertAt=n.snoc=n.cons=n.unsnoc=n.uncons=n.filterWithIndex=n.filter=void 0;var a=e(93145),c=e(18222),f=e(8190),l=e(14632),p=e(8762),d=u(e(5309)),s=e(83235),h=u(e(98744));function m(t){return function(n){return n.concat(t)}}function v(t,n){return n?t.concat(n):function(n){return n.concat(t)}}function g(t){return function(e){var r=e.length;if(0===r)return n.empty;for(var i=[],u=e[0],o=[u],a=1;a<r;a++){var c=e[a];t.equals(c,u)?o.push(c):(i.push(o),o=[u=c])}return i.push(o),i}}n.empty=d.emptyReadonlyArray,n.isNonEmpty=d.isNonEmpty,n.isOutOfBound=function(t,n){return t<0||t>=n.length},n.prependW=function(t){return function(n){return o([t],n,!0)}},n.prepend=n.prependW,n.appendW=function(t){return function(n){return o(o([],n,!0),[t],!1)}},n.append=n.appendW,n.unsafeInsertAt=function(t,e,r){if((0,n.isNonEmpty)(r)){var i=d.fromReadonlyNonEmptyArray(r);return i.splice(t,0,e),i}return[e]},n.unsafeUpdateAt=function(t,n,e){if(e[t]===n)return e;var r=d.fromReadonlyNonEmptyArray(e);return r[t]=n,r},n.uniq=function(t){return function(e){if(1===e.length)return e;for(var r=[(0,n.head)(e)],i=(0,n.tail)(e),u=function(n){r.every(function(e){return!t.equals(e,n)})&&r.push(n)},o=0;o<i.length;o++)u(i[o]);return r}},n.sortBy=function(t){if((0,n.isNonEmpty)(t)){var e=(0,s.getMonoid)();return(0,n.sort)(t.reduce(e.concat,e.empty))}return l.identity},n.union=function(t){var e=(0,n.uniq)(t);return function(t){return function(n){return e((0,l.pipe)(n,v(t)))}}},n.rotate=function(t){return function(e){var r=e.length,i=Math.round(t)%r;if((0,n.isOutOfBound)(Math.abs(i),e)||0===i)return e;if(!(i<0))return(0,n.rotate)(i-r)(e);var u=(0,n.splitAt)(-i)(e),o=u[0],a=u[1];return(0,l.pipe)(a,v(o))}},n.fromReadonlyArray=function(t){return(0,n.isNonEmpty)(t)?d.some(t):d.none},n.makeBy=function(t){return function(n){for(var e=Math.max(0,Math.floor(n)),r=[t(0)],i=1;i<e;i++)r.push(t(i));return r}},n.replicate=function(t){return(0,n.makeBy)(function(){return t})},n.range=function(t,e){return t<=e?(0,n.makeBy)(function(n){return t+n})(e-t+1):[t]},n.unprepend=function(t){return[(0,n.head)(t),(0,n.tail)(t)]},n.unappend=function(t){return[(0,n.init)(t),(0,n.last)(t)]},n.fromArray=function(t){return(0,n.fromReadonlyArray)(t.slice())},n.concatW=m,n.concat=v,n.reverse=function(t){return 1===t.length?t:o([(0,n.last)(t)],t.slice(0,-1).reverse(),!0)},n.group=g,n.groupBy=function(t){return function(n){for(var e={},r=0;r<n.length;r++){var i=n[r],u=t(i);d.has.call(e,u)?e[u].push(i):e[u]=[i]}return e}},n.sort=function(t){return function(n){return 1===n.length?n:n.slice().sort(t.compare)}},n.updateAt=function(t,e){return(0,n.modifyAt)(t,function(){return e})},n.modifyAt=function(t,e){return function(r){return(0,n.isOutOfBound)(t,r)?d.none:d.some((0,n.unsafeUpdateAt)(t,e(r[t]),r))}},n.zipWith=function(t,n,e){for(var r=[e(t[0],n[0])],i=Math.min(t.length,n.length),u=1;u<i;u++)r[u]=e(t[u],n[u]);return r},n.zip=function t(e,r){return void 0===r?function(n){return t(n,e)}:(0,n.zipWith)(e,r,function(t,n){return[t,n]})},n.unzip=function(t){for(var n=[t[0][0]],e=[t[0][1]],r=1;r<t.length;r++)n[r]=t[r][0],e[r]=t[r][1];return[n,e]},n.prependAll=function(t){return function(n){for(var e=[t,n[0]],r=1;r<n.length;r++)e.push(t,n[r]);return e}},n.intersperse=function(t){return function(e){var r=(0,n.tail)(e);return(0,n.isNonEmpty)(r)?(0,l.pipe)(r,(0,n.prependAll)(t),(0,n.prepend)((0,n.head)(e))):e}},n.chainWithIndex=function(t){return function(e){for(var r=d.fromReadonlyNonEmptyArray(t(0,(0,n.head)(e))),i=1;i<e.length;i++)r.push.apply(r,t(i,e[i]));return r}},n.chop=function(t){return function(e){for(var r=t(e),i=r[0],u=r[1],o=[i],a=u;(0,n.isNonEmpty)(a);){var c=t(a),f=c[0],l=c[1];o.push(f),a=l}return o}},n.splitAt=function(t){return function(e){var r=Math.max(1,t);return r>=e.length?[e,n.empty]:[(0,l.pipe)(e.slice(1,r),(0,n.prepend)((0,n.head)(e))),e.slice(r)]}},n.chunksOf=function(t){return(0,n.chop)((0,n.splitAt)(t))};var y=function(t,e){return(0,l.pipe)(t,(0,n.map)(e))},b=function(t,e){return(0,l.pipe)(t,(0,n.mapWithIndex)(e))},_=function(t,e){return(0,l.pipe)(t,(0,n.ap)(e))},I=function(t,e){return(0,l.pipe)(t,(0,n.extend)(e))},R=function(t,e,r){return(0,l.pipe)(t,(0,n.reduce)(e,r))},S=function(t){var e=(0,n.foldMap)(t);return function(t,n){return(0,l.pipe)(t,e(n))}},T=function(t,e,r){return(0,l.pipe)(t,(0,n.reduceRight)(e,r))},x=function(t){var e=(0,n.traverse)(t);return function(t,n){return(0,l.pipe)(t,e(n))}},w=function(t,e){return(0,l.pipe)(t,(0,n.alt)(e))},M=function(t,e,r){return(0,l.pipe)(t,(0,n.reduceWithIndex)(e,r))},O=function(t){var e=(0,n.foldMapWithIndex)(t);return function(t,n){return(0,l.pipe)(t,e(n))}},E=function(t,e,r){return(0,l.pipe)(t,(0,n.reduceRightWithIndex)(e,r))},C=function(t){var e=(0,n.traverseWithIndex)(t);return function(t,n){return(0,l.pipe)(t,e(n))}};n.of=d.singleton,n.altW=function(t){return function(n){return(0,l.pipe)(n,m(t()))}},n.alt=n.altW,n.ap=function(t){return(0,n.flatMap)(function(e){return(0,l.pipe)(t,(0,n.map)(e))})},n.flatMap=(0,l.dual)(2,function(t,e){return(0,l.pipe)(t,(0,n.chainWithIndex)(function(t,n){return e(n,t)}))}),n.extend=function(t){return function(e){for(var r=(0,n.tail)(e),i=[t(e)];(0,n.isNonEmpty)(r);)i.push(t(r)),r=(0,n.tail)(r);return i}},n.duplicate=(0,n.extend)(l.identity),n.flatten=(0,n.flatMap)(l.identity),n.map=function(t){return(0,n.mapWithIndex)(function(n,e){return t(e)})},n.mapWithIndex=function(t){return function(e){for(var r=[t(0,(0,n.head)(e))],i=1;i<e.length;i++)r.push(t(i,e[i]));return r}},n.reduce=function(t,e){return(0,n.reduceWithIndex)(t,function(t,n,r){return e(n,r)})},n.foldMap=function(t){return function(n){return function(e){return e.slice(1).reduce(function(e,r){return t.concat(e,n(r))},n(e[0]))}}},n.reduceRight=function(t,e){return(0,n.reduceRightWithIndex)(t,function(t,n,r){return e(n,r)})},n.reduceWithIndex=function(t,n){return function(e){return e.reduce(function(t,e,r){return n(r,t,e)},t)}},n.foldMapWithIndex=function(t){return function(n){return function(e){return e.slice(1).reduce(function(e,r,i){return t.concat(e,n(i+1,r))},n(0,e[0]))}}},n.reduceRightWithIndex=function(t,n){return function(e){return e.reduceRight(function(t,e,r){return n(r,e,t)},t)}},n.traverse=function(t){var e=(0,n.traverseWithIndex)(t);return function(t){return e(function(n,e){return t(e)})}},n.sequence=function(t){return(0,n.traverseWithIndex)(t)(l.SK)},n.traverseWithIndex=function(t){return function(e){return function(r){for(var i=t.map(e(0,(0,n.head)(r)),n.of),u=1;u<r.length;u++)i=t.ap(t.map(i,function(t){return function(e){return(0,l.pipe)(t,(0,n.append)(e))}}),e(u,r[u]));return i}}},n.extract=d.head,n.URI="ReadonlyNonEmptyArray",n.getShow=function(t){return{show:function(n){return"[".concat(n.map(t.show).join(", "),"]")}}},n.getSemigroup=function(){return{concat:v}},n.getEq=function(t){return(0,f.fromEquals)(function(n,e){return n.length===e.length&&n.every(function(n,r){return t.equals(n,e[r])})})},n.getUnionSemigroup=function(t){var e=(0,n.union)(t);return{concat:function(t,n){return e(n)(t)}}},n.Functor={URI:n.URI,map:y},n.flap=(0,p.flap)(n.Functor),n.Pointed={URI:n.URI,of:n.of},n.FunctorWithIndex={URI:n.URI,map:y,mapWithIndex:b},n.Apply={URI:n.URI,map:y,ap:_},n.apFirst=(0,a.apFirst)(n.Apply),n.apSecond=(0,a.apSecond)(n.Apply),n.Applicative={URI:n.URI,map:y,ap:_,of:n.of},n.Chain={URI:n.URI,map:y,ap:_,chain:n.flatMap},n.chainFirst=(0,c.chainFirst)(n.Chain),n.Monad={URI:n.URI,map:y,ap:_,of:n.of,chain:n.flatMap},n.Foldable={URI:n.URI,reduce:R,foldMap:S,reduceRight:T},n.FoldableWithIndex={URI:n.URI,reduce:R,foldMap:S,reduceRight:T,reduceWithIndex:M,foldMapWithIndex:O,reduceRightWithIndex:E},n.Traversable={URI:n.URI,map:y,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:n.sequence},n.TraversableWithIndex={URI:n.URI,map:y,mapWithIndex:b,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:n.sequence,reduceWithIndex:M,foldMapWithIndex:O,reduceRightWithIndex:E,traverseWithIndex:C},n.Alt={URI:n.URI,map:y,alt:w},n.Comonad={URI:n.URI,map:y,extend:I,extract:n.extract},n.Do=(0,n.of)(d.emptyRecord),n.bindTo=(0,p.bindTo)(n.Functor);var k=(0,p.let)(n.Functor);n.let=k,n.bind=(0,c.bind)(n.Chain),n.apS=(0,a.apS)(n.Apply),n.head=n.extract,n.tail=d.tail,n.last=function(t){return t[t.length-1]},n.init=function(t){return t.slice(0,-1)},n.min=function(t){var n=h.min(t);return function(t){return t.reduce(n.concat)}},n.max=function(t){var n=h.max(t);return function(t){return t.reduce(n.concat)}},n.concatAll=function(t){return function(n){return n.reduce(t.concat)}},n.matchLeft=function(t){return function(e){return t((0,n.head)(e),(0,n.tail)(e))}},n.matchRight=function(t){return function(e){return t((0,n.init)(e),(0,n.last)(e))}},n.modifyHead=function(t){return function(e){return o([t((0,n.head)(e))],(0,n.tail)(e),!0)}},n.updateHead=function(t){return(0,n.modifyHead)(function(){return t})},n.modifyLast=function(t){return function(e){return(0,l.pipe)((0,n.init)(e),(0,n.append)(t((0,n.last)(e))))}},n.updateLast=function(t){return(0,n.modifyLast)(function(){return t})},n.intercalate=function(t){var e=(0,n.concatAll)(t);return function(t){return(0,l.flow)((0,n.intersperse)(t),e)}},n.chain=n.flatMap,n.groupSort=function(t){var e=(0,n.sort)(t),r=g(t);return function(t){return(0,n.isNonEmpty)(t)?r(e(t)):n.empty}},n.filter=function(t){return(0,n.filterWithIndex)(function(n,e){return t(e)})},n.filterWithIndex=function(t){return function(e){return(0,n.fromReadonlyArray)(e.filter(function(n,e){return t(e,n)}))}},n.uncons=n.unprepend,n.unsnoc=n.unappend,n.cons=function(t,e){return void 0===e?(0,n.prepend)(t):(0,l.pipe)(e,(0,n.prepend)(t))},n.snoc=function(t,n){return(0,l.pipe)(t,v([n]))},n.insertAt=function(t,e){return function(r){return t<0||t>r.length?d.none:d.some((0,n.unsafeInsertAt)(t,e,r))}},n.prependToAll=n.prependAll,n.fold=n.concatAll,n.readonlyNonEmptyArray={URI:n.URI,of:n.of,map:y,mapWithIndex:b,ap:_,chain:n.flatMap,extend:I,extract:n.extract,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:n.sequence,reduceWithIndex:M,foldMapWithIndex:O,reduceRightWithIndex:E,traverseWithIndex:C,alt:w}},98744:function(t,n,e){var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);(!i||("get"in i?!n.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&r(n,t,e);return i(n,t),n};Object.defineProperty(n,"__esModule",{value:!0}),n.semigroupProduct=n.semigroupSum=n.semigroupString=n.getFunctionSemigroup=n.semigroupAny=n.semigroupAll=n.fold=n.getIntercalateSemigroup=n.getMeetSemigroup=n.getJoinSemigroup=n.getDualSemigroup=n.getStructSemigroup=n.getTupleSemigroup=n.getFirstSemigroup=n.getLastSemigroup=n.getObjectSemigroup=n.semigroupVoid=n.concatAll=n.last=n.first=n.intercalate=n.tuple=n.struct=n.reverse=n.constant=n.max=n.min=void 0;var o=e(14632),a=u(e(5309)),c=u(e(73540)),f=u(e(83235));n.min=function(t){return{concat:f.min(t)}},n.max=function(t){return{concat:f.max(t)}},n.constant=function(t){return{concat:function(){return t}}},n.reverse=c.reverse,n.struct=function(t){return{concat:function(n,e){var r={};for(var i in t)a.has.call(t,i)&&(r[i]=t[i].concat(n[i],e[i]));return r}}},n.tuple=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return{concat:function(n,e){return t.map(function(t,r){return t.concat(n[r],e[r])})}}},n.intercalate=function(t){return function(n){return{concat:function(e,r){return n.concat(e,n.concat(t,r))}}}},n.first=function(){return{concat:o.identity}},n.last=function(){return{concat:function(t,n){return n}}},n.concatAll=c.concatAll,n.semigroupVoid=(0,n.constant)(void 0),n.getObjectSemigroup=function(){return{concat:function(t,n){return Object.assign({},t,n)}}},n.getLastSemigroup=n.last,n.getFirstSemigroup=n.first,n.getTupleSemigroup=n.tuple,n.getStructSemigroup=n.struct,n.getDualSemigroup=n.reverse,n.getJoinSemigroup=n.max,n.getMeetSemigroup=n.min,n.getIntercalateSemigroup=n.intercalate,n.fold=function(t){var e=(0,n.concatAll)(t);return function(t,n){return void 0===n?e(t):e(t)(n)}},n.semigroupAll={concat:function(t,n){return t&&n}},n.semigroupAny={concat:function(t,n){return t||n}},n.getFunctionSemigroup=o.getSemigroup,n.semigroupString={concat:function(t,n){return t+n}},n.semigroupSum={concat:function(t,n){return t+n}},n.semigroupProduct={concat:function(t,n){return t*n}}},4773:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.right=n.left=n.flap=n.Functor=n.Bifunctor=n.URI=n.bimap=n.mapLeft=n.map=n.separated=void 0;var r=e(14632),i=e(8762);n.separated=function(t,n){return{left:t,right:n}},n.map=function(t){return function(e){return(0,n.separated)((0,n.left)(e),t((0,n.right)(e)))}},n.mapLeft=function(t){return function(e){return(0,n.separated)(t((0,n.left)(e)),(0,n.right)(e))}},n.bimap=function(t,e){return function(r){return(0,n.separated)(t((0,n.left)(r)),e((0,n.right)(r)))}},n.URI="Separated",n.Bifunctor={URI:n.URI,mapLeft:function(t,e){return(0,r.pipe)(t,(0,n.mapLeft)(e))},bimap:function(t,e,i){return(0,r.pipe)(t,(0,n.bimap)(e,i))}},n.Functor={URI:n.URI,map:function(t,e){return(0,r.pipe)(t,(0,n.map)(e))}},n.flap=(0,i.flap)(n.Functor),n.left=function(t){return t.left},n.right=function(t){return t.right}},69706:function(t,n,e){var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);(!i||("get"in i?!n.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&r(n,t,e);return i(n,t),n};Object.defineProperty(n,"__esModule",{value:!0}),n.filterE=n.witherDefault=n.wiltDefault=void 0;var o=u(e(5309));n.wiltDefault=function(t,n){return function(e){var r=t.traverse(e);return function(t,i){return e.map(r(t,i),n.separate)}}},n.witherDefault=function(t,n){return function(e){var r=t.traverse(e);return function(t,i){return e.map(r(t,i),n.compact)}}},n.filterE=function(t){return function(n){var e=t.wither(n);return function(t){return function(r){return e(r,function(e){return n.map(t(e),function(t){return t?o.some(e):o.none})})}}}}},3899:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.guard=void 0,n.guard=function(t,n){return function(e){return e?n.of(void 0):t.zero()}}},14632:function(t,n){var e=this&&this.__spreadArray||function(t,n,e){if(e||2==arguments.length)for(var r,i=0,u=n.length;i<u;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return t.concat(r||Array.prototype.slice.call(n))};function r(t){return t}function i(t){return function(){return t}}function u(t,n,e,r,i,u,o,a,c){switch(arguments.length){case 1:return t;case 2:return function(){return n(t.apply(this,arguments))};case 3:return function(){return e(n(t.apply(this,arguments)))};case 4:return function(){return r(e(n(t.apply(this,arguments))))};case 5:return function(){return i(r(e(n(t.apply(this,arguments)))))};case 6:return function(){return u(i(r(e(n(t.apply(this,arguments))))))};case 7:return function(){return o(u(i(r(e(n(t.apply(this,arguments)))))))};case 8:return function(){return a(o(u(i(r(e(n(t.apply(this,arguments))))))))};case 9:return function(){return c(a(o(u(i(r(e(n(t.apply(this,arguments)))))))))}}}function o(t){throw Error("Called `absurd` function which should be uncallable")}Object.defineProperty(n,"__esModule",{value:!0}),n.dual=n.getEndomorphismMonoid=n.not=n.SK=n.hole=n.pipe=n.untupled=n.tupled=n.absurd=n.decrement=n.increment=n.tuple=n.flow=n.flip=n.constVoid=n.constUndefined=n.constNull=n.constFalse=n.constTrue=n.constant=n.unsafeCoerce=n.identity=n.apply=n.getRing=n.getSemiring=n.getMonoid=n.getSemigroup=n.getBooleanAlgebra=void 0,n.getBooleanAlgebra=function(t){return function(){return{meet:function(n,e){return function(r){return t.meet(n(r),e(r))}},join:function(n,e){return function(r){return t.join(n(r),e(r))}},zero:function(){return t.zero},one:function(){return t.one},implies:function(n,e){return function(r){return t.implies(n(r),e(r))}},not:function(n){return function(e){return t.not(n(e))}}}}},n.getSemigroup=function(t){return function(){return{concat:function(n,e){return function(r){return t.concat(n(r),e(r))}}}}},n.getMonoid=function(t){var e=(0,n.getSemigroup)(t);return function(){return{concat:e().concat,empty:function(){return t.empty}}}},n.getSemiring=function(t){return{add:function(n,e){return function(r){return t.add(n(r),e(r))}},zero:function(){return t.zero},mul:function(n,e){return function(r){return t.mul(n(r),e(r))}},one:function(){return t.one}}},n.getRing=function(t){var e=(0,n.getSemiring)(t);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(n,e){return function(r){return t.sub(n(r),e(r))}}}},n.apply=function(t){return function(n){return n(t)}},n.identity=r,n.unsafeCoerce=r,n.constant=i,n.constTrue=i(!0),n.constFalse=i(!1),n.constNull=i(null),n.constUndefined=i(void 0),n.constVoid=n.constUndefined,n.flip=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.length>1?t(n[1],n[0]):function(e){return t(e)(n[0])}}},n.flow=u,n.tuple=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t},n.increment=function(t){return t+1},n.decrement=function(t){return t-1},n.absurd=o,n.tupled=function(t){return function(n){return t.apply(void 0,n)}},n.untupled=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return t(n)}},n.pipe=function(t,n,e,r,i,u,o,a,c){switch(arguments.length){case 1:return t;case 2:return n(t);case 3:return e(n(t));case 4:return r(e(n(t)));case 5:return i(r(e(n(t))));case 6:return u(i(r(e(n(t)))));case 7:return o(u(i(r(e(n(t))))));case 8:return a(o(u(i(r(e(n(t)))))));case 9:return c(a(o(u(i(r(e(n(t))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}},n.hole=o,n.SK=function(t,n){return n},n.not=function(t){return function(n){return!t(n)}},n.getEndomorphismMonoid=function(){return{concat:function(t,n){return u(t,n)},empty:r}},n.dual=function(t,n){var r="number"==typeof t?function(n){return n.length>=t}:t;return function(){var t=Array.from(arguments);return r(arguments)?n.apply(this,t):function(r){return n.apply(void 0,e([r],t,!1))}}}},5309:function(t,n,e){var r=this&&this.__spreadArray||function(t,n,e){if(e||2==arguments.length)for(var r,i=0,u=n.length;i<u;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return t.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(n,"__esModule",{value:!0}),n.flatMapReader=n.flatMapTask=n.flatMapIO=n.flatMapEither=n.flatMapOption=n.flatMapNullable=n.liftOption=n.liftNullable=n.fromReadonlyNonEmptyArray=n.has=n.emptyRecord=n.emptyReadonlyArray=n.tail=n.head=n.isNonEmpty=n.singleton=n.right=n.left=n.isRight=n.isLeft=n.some=n.none=n.isSome=n.isNone=void 0;var i=e(14632);n.isNone=function(t){return"None"===t._tag},n.isSome=function(t){return"Some"===t._tag},n.none={_tag:"None"},n.some=function(t){return{_tag:"Some",value:t}},n.isLeft=function(t){return"Left"===t._tag},n.isRight=function(t){return"Right"===t._tag},n.left=function(t){return{_tag:"Left",left:t}},n.right=function(t){return{_tag:"Right",right:t}},n.singleton=function(t){return[t]},n.isNonEmpty=function(t){return t.length>0},n.head=function(t){return t[0]},n.tail=function(t){return t.slice(1)},n.emptyReadonlyArray=[],n.emptyRecord={},n.has=Object.prototype.hasOwnProperty,n.fromReadonlyNonEmptyArray=function(t){return r([t[0]],t.slice(1),!0)},n.liftNullable=function(t){return function(e,r){return function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var o=e.apply(void 0,i);return t.fromEither(null==o?(0,n.left)(r.apply(void 0,i)):(0,n.right)(o))}}},n.liftOption=function(t){return function(e,r){return function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var o=e.apply(void 0,i);return t.fromEither((0,n.isNone)(o)?(0,n.left)(r.apply(void 0,i)):(0,n.right)(o.value))}}},n.flatMapNullable=function(t,e){return(0,i.dual)(3,function(r,i,u){return e.flatMap(r,(0,n.liftNullable)(t)(i,u))})},n.flatMapOption=function(t,e){return(0,i.dual)(3,function(r,i,u){return e.flatMap(r,(0,n.liftOption)(t)(i,u))})},n.flatMapEither=function(t,n){return(0,i.dual)(2,function(e,r){return n.flatMap(e,function(n){return t.fromEither(r(n))})})},n.flatMapIO=function(t,n){return(0,i.dual)(2,function(e,r){return n.flatMap(e,function(n){return t.fromIO(r(n))})})},n.flatMapTask=function(t,n){return(0,i.dual)(2,function(e,r){return n.flatMap(e,function(n){return t.fromTask(r(n))})})},n.flatMapReader=function(t,n){return(0,i.dual)(2,function(e,r){return n.flatMap(e,function(n){return t.fromReader(r(n))})})}},40457:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Field=n.MonoidProduct=n.MonoidSum=n.SemigroupProduct=n.SemigroupSum=n.MagmaSub=n.Show=n.Bounded=n.Ord=n.Eq=n.isNumber=void 0,n.isNumber=function(t){return"number"==typeof t},n.Eq={equals:function(t,n){return t===n}},n.Ord={equals:n.Eq.equals,compare:function(t,n){return t<n?-1:t>n?1:0}},n.Bounded={equals:n.Eq.equals,compare:n.Ord.compare,top:1/0,bottom:-1/0},n.Show={show:function(t){return JSON.stringify(t)}},n.MagmaSub={concat:function(t,n){return t-n}},n.SemigroupSum={concat:function(t,n){return t+n}},n.SemigroupProduct={concat:function(t,n){return t*n}},n.MonoidSum={concat:n.SemigroupSum.concat,empty:0},n.MonoidProduct={concat:n.SemigroupProduct.concat,empty:1},n.Field={add:n.SemigroupSum.concat,zero:0,mul:n.SemigroupProduct.concat,one:1,sub:n.MagmaSub.concat,degree:function(t){return 1},div:function(t,n){return t/n},mod:function(t,n){return t%n}}},67794:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.pipe=n.pipeable=n.compose=n.promap=n.partitionMapWithIndex=n.partitionWithIndex=n.filterMapWithIndex=n.filterWithIndex=n.partitionMap=n.partition=n.filterMap=n.filter=n.alt=n.reduceRightWithIndex=n.foldMapWithIndex=n.reduceWithIndex=n.reduceRight=n.foldMap=n.reduce=n.extend=n.mapLeft=n.bimap=n.chain=n.ap=n.mapWithIndex=n.contramap=n.map=void 0;var r=e(93145),i=e(18222),u=e(14632);function o(t){return function(n){return function(e){return t.map(e,n)}}}function a(t){return function(n){return function(e){return t.contramap(e,n)}}}function c(t){return function(n){return function(e){return t.mapWithIndex(e,n)}}}function f(t){return function(n){return function(e){return t.ap(e,n)}}}function l(t){return function(n){return function(e){return t.chain(e,n)}}}function p(t){return function(n,e){return function(r){return t.bimap(r,n,e)}}}function d(t){return function(n){return function(e){return t.mapLeft(e,n)}}}function s(t){return function(n){return function(e){return t.extend(e,n)}}}function h(t){return function(n,e){return function(r){return t.reduce(r,n,e)}}}function m(t){return function(n){var e=t.foldMap(n);return function(t){return function(n){return e(n,t)}}}}function v(t){return function(n,e){return function(r){return t.reduceRight(r,n,e)}}}function g(t){return function(n,e){return function(r){return t.reduceWithIndex(r,n,e)}}}function y(t){return function(n){var e=t.foldMapWithIndex(n);return function(t){return function(n){return e(n,t)}}}}function b(t){return function(n,e){return function(r){return t.reduceRightWithIndex(r,n,e)}}}function _(t){return function(n){return function(e){return t.alt(e,n)}}}function I(t){return function(n){return function(e){return t.filter(e,n)}}}function R(t){return function(n){return function(e){return t.filterMap(e,n)}}}function S(t){return function(n){return function(e){return t.partition(e,n)}}}function T(t){return function(n){return function(e){return t.partitionMap(e,n)}}}function x(t){return function(n){return function(e){return t.filterWithIndex(e,n)}}}function w(t){return function(n){return function(e){return t.filterMapWithIndex(e,n)}}}function M(t){return function(n){return function(e){return t.partitionWithIndex(e,n)}}}function O(t){return function(n){return function(e){return t.partitionMapWithIndex(e,n)}}}function E(t){return function(n,e){return function(r){return t.promap(r,n,e)}}}function C(t){return function(n){return function(e){return t.compose(e,n)}}}n.map=o,n.contramap=a,n.mapWithIndex=c,n.ap=f,n.chain=l,n.bimap=p,n.mapLeft=d,n.extend=s,n.reduce=h,n.foldMap=m,n.reduceRight=v,n.reduceWithIndex=g,n.foldMapWithIndex=y,n.reduceRightWithIndex=b,n.alt=_,n.filter=I,n.filterMap=R,n.partition=S,n.partitionMap=T,n.filterWithIndex=x,n.filterMapWithIndex=w,n.partitionWithIndex=M,n.partitionMapWithIndex=O,n.promap=E,n.compose=C,n.pipeable=function(t){var n={};return"function"==typeof t.map&&(n.map=o(t)),"function"==typeof t.contramap&&(n.contramap=a(t)),"function"==typeof t.mapWithIndex&&(n.mapWithIndex=c(t)),"function"==typeof t.ap&&(n.ap=f(t),n.apFirst=(0,r.apFirst)(t),n.apSecond=(0,r.apSecond)(t)),"function"==typeof t.chain&&(n.chain=l(t),n.chainFirst=(0,i.chainFirst)(t),n.flatten=n.chain(u.identity)),"function"==typeof t.bimap&&(n.bimap=p(t),n.mapLeft=d(t)),"function"==typeof t.extend&&(n.extend=s(t),n.duplicate=n.extend(u.identity)),"function"==typeof t.reduce&&(n.reduce=h(t),n.foldMap=m(t),n.reduceRight=v(t)),"function"==typeof t.reduceWithIndex&&(n.reduceWithIndex=g(t),n.foldMapWithIndex=y(t),n.reduceRightWithIndex=b(t)),"function"==typeof t.alt&&(n.alt=_(t)),"function"==typeof t.compact&&(n.compact=t.compact,n.separate=t.separate),"function"==typeof t.filter&&(n.filter=I(t),n.filterMap=R(t),n.partition=S(t),n.partitionMap=T(t)),"function"==typeof t.filterWithIndex&&(n.filterWithIndex=x(t),n.filterMapWithIndex=w(t),n.partitionWithIndex=M(t),n.partitionMapWithIndex=O(t)),"function"==typeof t.promap&&(n.promap=E(t)),"function"==typeof t.compose&&(n.compose=C(t)),"function"==typeof t.throwError&&(n.fromOption=function(n){return function(e){return"None"===e._tag?t.throwError(n()):t.of(e.value)}},n.fromEither=function(n){return"Left"===n._tag?t.throwError(n.left):t.of(n.right)},n.fromPredicate=function(n,e){return function(r){return n(r)?t.of(r):t.throwError(e(r))}},n.filterOrElse=function(n,e){return function(r){return t.chain(r,function(r){return n(r)?t.of(r):t.throwError(e(r))})}}),n},n.pipe=u.pipe},23284:function(t,n,e){e.r(n),e.d(n,{BigIntFromString:function(){return nv},BooleanFromNumber:function(){return ny},BooleanFromString:function(){return nt},DateFromISOString:function(){return t1},DateFromNumber:function(){return t8},DateFromUnixTime:function(){return no},IntFromString:function(){return nc},Json:function(){return np},JsonArray:function(){return nf},JsonFromString:function(){return nd},JsonRecord:function(){return nl},NonEmptyString:function(){return o},NumberFromString:function(){return na},UUID:function(){return t9},clone:function(){return t5},date:function(){return g},either:function(){return nm},fromNewtype:function(){return tJ},fromNullable:function(){return t6},fromRefinement:function(){return v},getLenses:function(){return ni},mapFromEntries:function(){return nI},mapOutput:function(){return i.mapOutput},nonEmptyArray:function(){return d},option:function(){return tQ},optionFromNullable:function(){return t0},readonlyMapFromEntries:function(){return nR},readonlyNonEmptyArray:function(){return t2},readonlySetFromArray:function(){return m},regexp:function(){return nu},setFromArray:function(){return h},withEncode:function(){return ng},withFallback:function(){return t4},withMessage:function(){return nn},withValidate:function(){return t3}});var r={};e.r(r),e.d(r,{Category:function(){return tM},Invariant:function(){return tx},Semigroupoid:function(){return tw},URI:function(){return tT},asOptional:function(){return $},asTraversal:function(){return Z},atKey:function(){return tm},component:function(){return tp},compose:function(){return Q},composeIso:function(){return tn},composeLens:function(){return tt},composeOptional:function(){return tr},composePrism:function(){return te},composeTraversal:function(){return ti},filter:function(){return tc},findFirst:function(){return t_},findFirstNonEmpty:function(){return tI},fromNullable:function(){return ta},id:function(){return J},imap:function(){return tR},index:function(){return td},indexNonEmpty:function(){return ts},key:function(){return th},left:function(){return ty},lens:function(){return X},modify:function(){return tu},modifyF:function(){return to},prop:function(){return tf},props:function(){return tl},right:function(){return tg},some:function(){return tv},traverse:function(){return tb}});var i=e(47361),u=e(87830),o=u.brand(u.string,function(t){return t.length>0},"NonEmptyString"),a=e(43586),c=e(1358),f=e(18896),l=e(81878),p=e(20492);function d(t,n){void 0===n&&(n="NonEmptyArray<"+t.name+">");var e=u.array(t);return new u.Type(n,function(t){return e.is(t)&&(0,c.isNonEmpty)(t)},function(t,n){return(0,f.pipe)(e.validate(t,n),(0,l.chain)(function(e){var r=(0,a.fromArray)(e);return(0,p.isNone)(r)?u.failure(t,n):u.success(r.value)}))},(0,a.map)(t.encode))}var s=e(1214);function h(t,n,e){void 0===e&&(e="Set<"+t.name+">");var r=u.array(t),i=(0,s.toArray)(n),o=(0,s.fromArray)(n);return new u.Type(e,function(n){return n instanceof Set&&(0,s.every)(t.is)(n)},function(t,n){return(0,f.pipe)(r.validate(t,n),(0,l.chain)(function(e){var r=o(e);return r.size!==e.length?u.failure(t,n):u.success(r)}))},function(t){return r.encode(i(t))})}function m(t,n,e){return void 0===e&&(e="ReadonlySet<"+t.name+">"),h(t,n,e)}function v(t,n){return new u.Type(t,n,function(t,e){return n(t)?u.success(t):u.failure(t,e)},u.identity)}var g=v("Date",function(t){return t instanceof Date}),y=e(42275),b=e(90817),_=e(96576),I=e(31583),R=e(97054),S=function(t,n,e){if(e||2==arguments.length)for(var r,i=0,u=n.length;i<u;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return t.concat(r||Array.prototype.slice.call(n))},T=function(t){return w(t.get,(0,y.flow)(t.reverseGet,y.constant))},x=function(t){return D((0,y.flow)(t.get,p.some),(0,y.flow)(t.reverseGet,y.constant))},w=function(t,n){return{get:t,set:n}},M=function(t){return D((0,y.flow)(t.get,p.some),t.set)},O=function(t){return function(n){return w(function(e){return t.get(n.get(e))},function(e){return function(r){return n.set(t.set(e)(n.get(r)))(r)}})}},E=function(t){return function(n){return N(k(t))(M(n))}},C=function(t,n){return{getOption:t,reverseGet:n}},k=function(t){return D(t.getOption,function(n){return F(n)(t)})},W=function(t){return q(function(n){return function(e){return function(r){return(0,f.pipe)(t.getOption(r),p.fold(function(){return n.of(r)},function(i){return n.map(e(i),function(n){return F(n)(t)(r)})}))}}})},F=function(t){var n;return n=function(){return t},function(t){return function(e){var r;return(0,f.pipe)((r=e,(0,f.pipe)(t.getOption(r),p.map(function(e){var i=n(e);return i===e?r:t.reverseGet(i)}))),p.getOrElse(function(){return e}))}}},P=function(t){return C(p.fromPredicate(t),y.identity)},A=function(){return C(y.identity,p.some)},D=function(t,n){return{getOption:t,set:n}},U=function(t){return function(n){return function(e){return(0,f.pipe)(n.getOption(e),p.map(function(r){var i=t(r);return i===r?e:n.set(i)(e)}))}}},L=function(t){return function(n){var e=U(t)(n);return function(t){return(0,f.pipe)(e(t),p.getOrElse(function(){return t}))}}},N=function(t){return function(n){return D((0,y.flow)(n.getOption,p.chain(t.getOption)),function(e){return L(t.set(e))(n)})}},j=function(t,n,e){if(e[t]===n)return e;var r=S([e[0]],e.slice(1),!0);return r[t]=n,r},q=function(t){return{modifyF:t}};function G(t){return function(n){return q(function(e){return function(r){return n.modifyF(e)(t.modifyF(e)(r))}})}}var K={URI:"Identity",map:function(t,n){return n(t)},of:y.identity,ap:function(t,n){return t(n)}},Y=function(t){return{index:t}},V=function(t){return{at:t}},B=function(t,n){return{get:t,reverseGet:n}},H=function(t){return C((0,y.flow)(t.get,p.some),t.reverseGet)},z=function(t){return q(function(n){return function(e){return function(r){return n.map(e(t.get(r)),function(n){return t.reverseGet(n)})}}})},X=w,J=function(){return w(y.identity,y.constant)},$=M,Z=function(t){return q(function(n){return function(e){return function(r){return n.map(e(t.get(r)),function(n){return t.set(n)(r)})}}})},Q=O,tt=Q,tn=(0,y.flow)(T,Q),te=E,tr=function(t){return(0,y.flow)($,N(t))},ti=function(t){return(0,y.flow)(Z,G(t))},tu=function(t){return function(n){return function(e){var r=n.get(e),i=t(r);return r===i?e:n.set(i)(e)}}};function to(t){return function(n){return function(e){return function(r){return(0,f.pipe)(e.get(r),n,function(n){return t.map(n,function(t){return e.set(t)(r)})})}}}}var ta=function(t){return te(C(p.fromNullable,y.identity))(t)};function tc(t){return te(P(t))}var tf=function(t){return function(n){return w(function(e){return n.get(e)[t]},function(e){return function(r){var i,u=n.get(r);return e===u[t]?r:n.set(Object.assign({},u,((i={})[t]=e,i)))(r)}})}},tl=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return function(n){return w(function(e){for(var r=n.get(e),i={},u=0;u<t.length;u++){var o=t[u];i[o]=r[o]}return i},function(e){return function(r){for(var i=n.get(r),u=0;u<t.length;u++){var o=t[u];if(e[o]!==i[o])return n.set(Object.assign({},i,e))(r)}return r}})}},tp=function(t){return function(n){return w(function(e){return n.get(e)[t]},function(e){return function(r){var i=n.get(r);if(e===i[t])return r;var u=i.slice();return u[t]=e,n.set(u)(r)}})}},td=function(t){return(0,y.flow)($,function(n){return(0,f.pipe)(n,N(Y(function(t){return D(function(n){return I.lookup(t,n)},function(n){return function(e){return(0,f.pipe)(I.lookup(t,e),p.fold(function(){return e},function(){return I.unsafeUpdateAt(t,n,e)}))}})}).index(t)))})},ts=function(t){return(0,y.flow)($,function(n){return(0,f.pipe)(n,N(Y(function(t){return D(function(n){return I.lookup(t,n)},function(n){return function(e){return(0,f.pipe)(I.lookup(t,e),p.fold(function(){return e},function(){return j(t,n,e)}))}})}).index(t)))})},th=function(t){return(0,y.flow)($,function(n){return(0,f.pipe)(n,N(Y(function(t){return D(function(n){return R.lookup(t,n)},function(n){return function(e){return e[t]===n||p.isNone(R.lookup(t,e))?e:R.insertAt(t,n)(e)}})}).index(t)))})},tm=function(t){return function(n){return(0,f.pipe)(n,O(V(function(t){return w(function(n){return R.lookup(t,n)},p.fold(function(){return R.deleteAt(t)},function(n){return R.insertAt(t,n)}))}).at(t)))}},tv=te(A()),tg=te(C(p.fromEither,l.right)),ty=te(C(function(t){return l.isLeft(t)?p.some(t.left):p.none},l.left));function tb(t){return(0,y.flow)(Z,G(q(function(n){var e="Identity"===n.URI?t.map:t.traverse(n);return function(t){return function(n){return e(n,t)}}})))}function t_(t){return tr(D(I.findFirst(t),function(n){return function(e){return(0,f.pipe)(I.findIndex(t)(e),p.fold(function(){return e},function(t){return I.unsafeUpdateAt(t,n,e)}))}}))}function tI(t){return tr(D(I.findFirst(t),function(n){return function(e){return(0,f.pipe)(I.findIndex(t)(e),p.fold(function(){return e},function(t){return j(t,n,e)}))}}))}var tR=function(t,n){return function(e){return tS(e,t,n)}},tS=function(t,n,e){return X((0,y.flow)(t.get,n),(0,y.flow)(e,t.set))},tT="monocle-ts/Lens",tx={URI:tT,imap:tS},tw={URI:tT,compose:function(t,n){return Q(t)(n)}},tM={URI:tT,compose:tw.compose,id:J},tO=function(t){return q(function(n){return function(e){return function(r){return(0,f.pipe)(t.getOption(r),p.fold(function(){return n.of(r)},function(i){return n.map(e(i),function(n){return t.set(n)(r)})}))}}})},tE=function(t){return function(n){return C((0,y.flow)(n.getOption,p.chain(t.getOption)),(0,y.flow)(t.reverseGet,n.reverseGet))}},tC=function(t){return function(n){return n.modifyF(K)(t)}},tk=function(t){return new tL(t.get,t.reverseGet)},tW=function(t){return new tN(t.get,t.set)},tF=function(t){return new tj(t.getOption,t.reverseGet)},tP=function(t){return new tG(t.getOption,t.set)},tA=function(t){return new tK(t.modifyF)},tD=function(t){return new tV(function(n){return tP(t.index(n))})},tU=function(t,n,e){var r;return e===t[n]?t:Object.assign({},t,((r={})[n]=e,r))},tL=function(){function t(t,n){this.get=t,this.reverseGet=n,this._tag="Iso",this.unwrap=this.get,this.to=this.get,this.wrap=this.reverseGet,this.from=this.reverseGet}return t.prototype.reverse=function(){return tk(B(this.reverseGet,this.get))},t.prototype.modify=function(t){var n;return n=this,function(e){return n.reverseGet(t(n.get(e)))}},t.prototype.asLens=function(){return tW(T(this))},t.prototype.asPrism=function(){return tF(H(this))},t.prototype.asOptional=function(){return tP(x(this))},t.prototype.asTraversal=function(){return tA(z(this))},t.prototype.asFold=function(){var t=this;return new tH(function(){return function(n){return function(e){return n(t.get(e))}}})},t.prototype.asGetter=function(){var t=this;return new tB(function(n){return t.get(n)})},t.prototype.asSetter=function(){var t=this;return new tz(function(n){return t.modify(n)})},t.prototype.compose=function(t){var n;return tk((n=this,B((0,y.flow)(n.get,t.get),(0,y.flow)(t.reverseGet,n.reverseGet))))},t.prototype.composeIso=function(t){return this.compose(t)},t.prototype.composeLens=function(t){return tW((0,f.pipe)(this,T,Q(t)))},t.prototype.composePrism=function(t){return tF((0,f.pipe)(this,H,tE(t)))},t.prototype.composeOptional=function(t){return tP((0,f.pipe)(this,x,N(t)))},t.prototype.composeTraversal=function(t){return tA((0,f.pipe)(this,z,G(t)))},t.prototype.composeFold=function(t){return this.asFold().compose(t)},t.prototype.composeGetter=function(t){return this.asGetter().compose(t)},t.prototype.composeSetter=function(t){return this.asSetter().compose(t)},t}(),tN=function(){function t(t,n){this.get=t,this.set=n,this._tag="Lens"}return t.fromPath=function(){var n=t.fromProp();return function(t){var e=n(t[0]);return t.slice(1).reduce(function(t,e){return t.compose(n(e))},e)}},t.fromProp=function(){return function(t){return tW((0,f.pipe)(J(),tf(t)))}},t.fromProps=function(){return function(t){return tW((0,f.pipe)(J(),tl.apply(r,t)))}},t.fromNullableProp=function(){return function(n,e){return new t(function(t){var r=(0,p.fromNullable)(t[n]);return(0,p.isNone)(r)?e:r.value},function(t){return function(e){return tU(e,n,t)}})}},t.prototype.modify=function(t){return tu(t)(this)},t.prototype.asOptional=function(){return tP($(this))},t.prototype.asTraversal=function(){return tA(Z(this))},t.prototype.asSetter=function(){var t=this;return new tz(function(n){return t.modify(n)})},t.prototype.asGetter=function(){var t=this;return new tB(function(n){return t.get(n)})},t.prototype.asFold=function(){var t=this;return new tH(function(){return function(n){return function(e){return n(t.get(e))}}})},t.prototype.compose=function(t){return tW(Q(t)(this))},t.prototype.composeLens=function(t){return this.compose(t)},t.prototype.composeGetter=function(t){return this.asGetter().compose(t)},t.prototype.composeFold=function(t){return this.asFold().compose(t)},t.prototype.composeOptional=function(t){return tP((0,f.pipe)(this,$,N(t)))},t.prototype.composeTraversal=function(t){return tA((0,f.pipe)(this,Z,G(t)))},t.prototype.composeSetter=function(t){return this.asSetter().compose(t)},t.prototype.composeIso=function(t){return tW((0,f.pipe)(this,Q((0,f.pipe)(t,T))))},t.prototype.composePrism=function(t){return tP(te(t)(this))},t}(),tj=function(){function t(t,n){this.getOption=t,this.reverseGet=n,this._tag="Prism"}return t.fromPredicate=function(t){return tF(P(t))},t.some=function(){return tq},t.prototype.modify=function(t){var n=this;return function(e){var r=n.modifyOption(t)(e);return(0,p.isNone)(r)?e:r.value}},t.prototype.modifyOption=function(t){var n=this;return function(e){return p.option.map(n.getOption(e),function(r){var i=t(r);return i===r?e:n.reverseGet(i)})}},t.prototype.set=function(t){return this.modify(function(){return t})},t.prototype.asOptional=function(){return tP(k(this))},t.prototype.asTraversal=function(){return tA(W(this))},t.prototype.asSetter=function(){var t=this;return new tz(function(n){return t.modify(n)})},t.prototype.asFold=function(){var t=this;return new tH(function(n){return function(e){return function(r){var i=t.getOption(r);return(0,p.isNone)(i)?n.empty:e(i.value)}}})},t.prototype.compose=function(t){return tF(tE(t)(this))},t.prototype.composePrism=function(t){return this.compose(t)},t.prototype.composeOptional=function(t){return tP((0,f.pipe)(this,k,N(t)))},t.prototype.composeTraversal=function(t){return tA((0,f.pipe)(this,W,G(t)))},t.prototype.composeFold=function(t){return this.asFold().compose(t)},t.prototype.composeSetter=function(t){return this.asSetter().compose(t)},t.prototype.composeIso=function(t){return tF((0,f.pipe)(this,tE((0,f.pipe)(t,H))))},t.prototype.composeLens=function(t){return tP(N(M(t))(k(this)))},t.prototype.composeGetter=function(t){return this.asFold().compose(t.asFold())},t}(),tq=new tj(y.identity,p.some),tG=function(){function t(t,n){this.getOption=t,this.set=n,this._tag="Optional"}return t.fromPath=function(){var n=t.fromNullableProp();return function(t){var e=n(t[0]);return t.slice(1).reduce(function(t,e){return t.compose(n(e))},e)}},t.fromNullableProp=function(){return function(n){return new t(function(t){return(0,p.fromNullable)(t[n])},function(t){return function(e){return null==e[n]?e:tU(e,n,t)}})}},t.fromOptionProp=function(){var t=tN.fromProp();return function(n){return t(n).composePrism(tq)}},t.prototype.modify=function(t){return L(t)(this)},t.prototype.modifyOption=function(t){return U(t)(this)},t.prototype.asTraversal=function(){return tA(tO(this))},t.prototype.asFold=function(){var t=this;return new tH(function(n){return function(e){return function(r){var i=t.getOption(r);return(0,p.isNone)(i)?n.empty:e(i.value)}}})},t.prototype.asSetter=function(){var t=this;return new tz(function(n){return t.modify(n)})},t.prototype.compose=function(t){return tP(N(t)(this))},t.prototype.composeOptional=function(t){return this.compose(t)},t.prototype.composeTraversal=function(t){return tA((0,f.pipe)(this,tO,G(t)))},t.prototype.composeFold=function(t){return this.asFold().compose(t)},t.prototype.composeSetter=function(t){return this.asSetter().compose(t)},t.prototype.composeLens=function(t){return tP((0,f.pipe)(this,N((0,f.pipe)(t,$))))},t.prototype.composePrism=function(t){return tP((0,f.pipe)(this,N((0,f.pipe)(t,k))))},t.prototype.composeIso=function(t){return tP((0,f.pipe)(this,N((0,f.pipe)(t,x))))},t.prototype.composeGetter=function(t){return this.asFold().compose(t.asFold())},t}(),tK=function(){function t(t){this.modifyF=t,this._tag="Traversal"}return t.prototype.modify=function(t){return tC(t)(this)},t.prototype.set=function(t){return tC(function(){return t})(this)},t.prototype.filter=function(t){return tA(G(W(P(t)))(this))},t.prototype.asFold=function(){var t=this;return new tH(function(n){return function(e){return t.modifyF((0,b.getApplicative)(n))(function(t){return(0,b.make)(e(t))})}})},t.prototype.asSetter=function(){var t=this;return new tz(function(n){return t.modify(n)})},t.prototype.compose=function(t){return tA(G(t)(this))},t.prototype.composeTraversal=function(t){return this.compose(t)},t.prototype.composeFold=function(t){return this.asFold().compose(t)},t.prototype.composeSetter=function(t){return this.asSetter().compose(t)},t.prototype.composeOptional=function(t){return this.compose(t.asTraversal())},t.prototype.composeLens=function(t){return tA((0,f.pipe)(this,G((0,f.pipe)(t,Z))))},t.prototype.composePrism=function(t){return tA((0,f.pipe)(this,G((0,f.pipe)(t,W))))},t.prototype.composeIso=function(t){return tA((0,f.pipe)(this,G((0,f.pipe)(t,z))))},t.prototype.composeGetter=function(t){return this.asFold().compose(t.asFold())},t}(),tY=function(){function t(t){this.at=t,this._tag="At"}return t.prototype.fromIso=function(t){var n,e;return e=this,n=V(function(n){return(0,f.pipe)(t,T,O(e.at(n)))}),new tY(function(t){return tW(n.at(t))})},t}(),tV=function(){function t(t){this.index=t,this._tag="Index"}return t.fromAt=function(t){return tD(Y(function(n){return E(A())(t.at(n))}))},t.prototype.fromIso=function(t){var n;return tD((n=this,Y(function(e){return(0,f.pipe)(t,x,N(n.index(e)))})))},t}(),tB=function(){function t(t){this.get=t,this._tag="Getter"}return t.prototype.asFold=function(){var t=this;return new tH(function(){return function(n){return function(e){return n(t.get(e))}}})},t.prototype.compose=function(n){var e=this;return new t(function(t){return n.get(e.get(t))})},t.prototype.composeGetter=function(t){return this.compose(t)},t.prototype.composeFold=function(t){return this.asFold().compose(t)},t.prototype.composeLens=function(t){return this.compose(t.asGetter())},t.prototype.composeIso=function(t){return this.compose(t.asGetter())},t.prototype.composeTraversal=function(t){return this.asFold().compose(t.asFold())},t.prototype.composeOptional=function(t){return this.asFold().compose(t.asFold())},t.prototype.composePrism=function(t){return this.asFold().compose(t.asFold())},t}(),tH=function(){function t(t){this.foldMap=t,this._tag="Fold",this.getAll=t(c.getMonoid())(c.of),this.exist=t(_.monoidAny),this.all=t(_.monoidAll),this.foldMapFirst=t((0,p.getFirstMonoid)())}return t.prototype.compose=function(n){var e=this;return new t(function(t){return function(r){return e.foldMap(t)(n.foldMap(t)(r))}})},t.prototype.composeFold=function(t){return this.compose(t)},t.prototype.composeGetter=function(t){return this.compose(t.asFold())},t.prototype.composeTraversal=function(t){return this.compose(t.asFold())},t.prototype.composeOptional=function(t){return this.compose(t.asFold())},t.prototype.composeLens=function(t){return this.compose(t.asFold())},t.prototype.composePrism=function(t){return this.compose(t.asFold())},t.prototype.composeIso=function(t){return this.compose(t.asFold())},t.prototype.find=function(t){return this.foldMapFirst((0,p.fromPredicate)(t))},t.prototype.headOption=function(t){return this.find(function(){return!0})(t)},t}(),tz=function(){function t(t){this.modify=t,this._tag="Setter"}return t.prototype.set=function(t){return this.modify((0,y.constant)(t))},t.prototype.compose=function(n){var e=this;return new t(function(t){return e.modify(n.modify(t))})},t.prototype.composeSetter=function(t){return this.compose(t)},t.prototype.composeTraversal=function(t){return this.compose(t.asSetter())},t.prototype.composeOptional=function(t){return this.compose(t.asSetter())},t.prototype.composeLens=function(t){return this.compose(t.asSetter())},t.prototype.composePrism=function(t){return this.compose(t.asSetter())},t.prototype.composeIso=function(t){return this.compose(t.asSetter())},t}(),tX=new tL(y.unsafeCoerce,y.unsafeCoerce);function tJ(t,n){return void 0===n&&(n="fromNewtype("+t.name+")"),new u.Type(n,function(n){return t.is(n)},function(n,e){return(0,f.pipe)(t.validate(n,e),(0,l.map)(tX.wrap))},function(n){return t.encode(tX.unwrap(n))})}var t$=u.strict({_tag:u.literal("None")},"None"),tZ=u.literal("Some");function tQ(t,n){return void 0===n&&(n="Option<"+t.name+">"),u.union([t$,u.strict({_tag:tZ,value:t},"Some<"+t.name+">")],n)}function t0(t,n){return void 0===n&&(n="Option<"+t.name+">"),new u.Type(n,tQ(t).is,function(n,e){return null==n?u.success(p.none):(0,f.pipe)(t.validate(n,e),(0,l.map)(p.some))},function(n){return p.toNullable((0,f.pipe)(n,p.map(t.encode)))})}var t1=new u.Type("DateFromISOString",function(t){return t instanceof Date},function(t,n){return(0,f.pipe)(u.string.validate(t,n),(0,l.chain)(function(e){var r=new Date(e);return isNaN(r.getTime())?u.failure(t,n):u.success(r)}))},function(t){return t.toISOString()});function t2(t,n){return void 0===n&&(n="ReadonlyNonEmptyArray<"+t.name+">"),d(t,n)}function t5(t){var n=Object.create(Object.getPrototypeOf(t));return Object.assign(n,t),n}var t8=new u.Type("DateFromNumber",function(t){return t instanceof Date},function(t,n){return(0,f.pipe)(u.number.validate(t,n),(0,l.chain)(function(e){var r=new Date(e);return isNaN(r.getTime())?u.failure(t,n):u.success(r)}))},function(t){return t.getTime()});function t3(t,n,e){void 0===e&&(e=t.name);var r=t5(t);return r.validate=n,r.decode=function(t){return n(t,u.getDefaultContext(r))},r.name=e,r}function t4(t,n,e){return void 0===e&&(e="withFallback("+t.name+")"),t3(t,function(e,r){return(0,l.orElse)(function(){return u.success(n)})(t.validate(e,r))},e)}var t7=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,t9=u.brand(u.string,function(t){return t7.test(t)},"UUID");function t6(t,n,e){return void 0===e&&(e="fromNullable("+t.name+")"),t3(t,function(e,r){return null==e?u.success(n):t.validate(e,r)},e)}var nt=new u.Type("BooleanFromString",u.boolean.is,function(t,n){return(0,f.pipe)(u.string.validate(t,n),(0,l.chain)(function(e){return"true"===e?u.success(!0):"false"===e?u.success(!1):u.failure(t,n)}))},String);function nn(t,n){return t3(t,function(e,r){return(0,l.mapLeft)(function(){return[{value:e,context:r,message:n(e,r),actual:e}]})(t.validate(e,r))})}function ne(t){switch(t._tag){case"InterfaceType":return t.props;case"ExactType":return ne(t.type)}}var nr=tN.fromProp();function ni(t){var n={};for(var e in ne(t))n[e]=nr(e);return n}var nu=v("RegExp",function(t){return"[object RegExp]"===Object.prototype.toString.call(t)}),no=new u.Type("DateFromUnixTime",function(t){return t instanceof Date},function(t,n){return(0,f.pipe)(u.Int.validate(t,n),(0,l.chain)(function(e){var r=new Date(1e3*e);return isNaN(r.getTime())?u.failure(t,n):u.success(r)}))},function(t){return Math.floor(t.getTime()/1e3)}),na=new u.Type("NumberFromString",u.number.is,function(t,n){return(0,f.pipe)(u.string.validate(t,n),(0,l.chain)(function(e){var r=+e;return isNaN(r)||""===e.trim()?u.failure(t,n):u.success(r)}))},String),nc=new u.Type("IntFromString",u.Int.is,function(t,n){return(0,f.pipe)(na.validate(t,n),(0,l.chain)(function(e){return u.Int.is(e)?u.success(e):u.failure(t,n)}))},na.encode),nf=u.recursion("JsonArray",function(){return u.readonlyArray(np)}),nl=u.recursion("JsonRecord",function(){return u.record(u.string,np)}),np=u.union([u.boolean,u.number,u.string,u.null,nf,nl],"Json"),nd=new u.Type("JsonFromString",np.is,function(t,n){try{return u.success(JSON.parse(t))}catch(e){return u.failure(t,n)}},function(t){return JSON.stringify(t)}),ns=u.literal("Left"),nh=u.literal("Right");function nm(t,n,e){return void 0===e&&(e="Either<"+t.name+", "+n.name+">"),u.union([u.strict({_tag:ns,left:t},"Left<"+t.name+">"),u.strict({_tag:nh,right:n},"Right<"+t.name+">")],e)}var nv=new u.Type("BigIntFromString",function(t){return"bigint"==typeof t},function(t,n){return(0,f.pipe)(u.string.validate(t,n),(0,l.chain)(function(e){if(!o.is(e.trim()))return u.failure(t,n);try{return u.success(BigInt(e))}catch(e){return u.failure(t,n)}}))},String);function ng(t,n,e){return void 0===e&&(e=t.name),new u.Type(e,t.is,t.validate,n)}var ny=new u.Type("BooleanFromNumber",u.boolean.is,function(t,n){return(0,f.pipe)(u.number.validate(t,n),(0,l.map)(function(t){return 0!==t}))},Number),nb=e(55116),n_=e(3291);function nI(t,n,e,r){void 0===r&&(r="Map<"+t.name+", "+e.name+">");var i,o,a=u.array(u.tuple([t,e])),f=(0,nb.toArray)(n),p=(0,nb.fromFoldable)(n,(0,n_.getLastSemigroup)(),c.Foldable),d=(i=t.is,o=e.is,function(t){for(var n,e=t.entries();!(n=e.next()).done;)if(!1===i(n.value[0])||!1===o(n.value[1]))return!1;return!0});return new u.Type(r,function(t){return t instanceof Map&&d(t)},function(t,n){return(0,y.pipe)(a.validate(t,n),(0,l.chain)(function(e){var r=p(e);return r.size!==e.length?u.failure(t,n):u.success(r)}))},function(t){return a.encode(f(t))})}function nR(t,n,e,r){return void 0===r&&(r="ReadonlyMap<"+t.name+", "+e.name+">"),nI(t,n,e,r)}},47361:function(t,n,e){e.r(n),e.d(n,{mapOutput:function(){return i}});var r=e(87830);function i(t,n,e){return void 0===e&&(e=t.name),new r.Type(e,t.is,t.validate,function(e){return n(t.encode(e))})}},11621:function(t,n,e){var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.hasOwnProperty.call(t,e)&&r(n,t,e);return i(n,t),n};Object.defineProperty(n,"__esModule",{value:!0}),n.IntFromString=void 0;var o=u(e(87830)),a=e(59054),c=e(67794),f=e(87412);n.IntFromString=new o.Type("IntFromString",o.Int.is,function(t,n){return c.pipe(a.NumberFromString.validate(t,n),f.chain(function(e){return o.Int.is(e)?o.success(e):o.failure(t,n)}))},a.NumberFromString.encode)},59054:function(t,n,e){var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.hasOwnProperty.call(t,e)&&r(n,t,e);return i(n,t),n};Object.defineProperty(n,"__esModule",{value:!0}),n.NumberFromString=void 0;var o=u(e(87830)),a=e(67794),c=e(87412);n.NumberFromString=new o.Type("NumberFromString",o.number.is,function(t,n){return a.pipe(o.string.validate(t,n),c.chain(function(e){var r=+e;return isNaN(r)||""===e.trim()?o.failure(t,n):o.success(r)}))},String)},62886:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.clone=void 0,n.clone=function(t){var n=Object.create(Object.getPrototypeOf(t));return Object.assign(n,t),n}},2932:function(t,n,e){var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.hasOwnProperty.call(t,e)&&r(n,t,e);return i(n,t),n};Object.defineProperty(n,"__esModule",{value:!0}),n.mapOutput=void 0;var o=u(e(87830));n.mapOutput=function(t,n,e){return void 0===e&&(e=t.name),new o.Type(e,t.is,t.validate,function(e){return n(t.encode(e))})}},69624:function(t,n,e){var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.hasOwnProperty.call(t,e)&&r(n,t,e);return i(n,t),n};Object.defineProperty(n,"__esModule",{value:!0}),n.withFallback=void 0;var o=u(e(87830)),a=e(40308),c=e(87412);n.withFallback=function(t,n,e){return void 0===e&&(e="withFallback("+t.name+")"),a.withValidate(t,function(e,r){return c.orElse(function(){return o.success(n)})(t.validate(e,r))},e)}},40308:function(t,n,e){var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.hasOwnProperty.call(t,e)&&r(n,t,e);return i(n,t),n};Object.defineProperty(n,"__esModule",{value:!0}),n.withValidate=void 0;var o=u(e(87830)),a=e(62886);n.withValidate=function(t,n,e){void 0===e&&(e=t.name);var r=a.clone(t);return r.validate=n,r.decode=function(t){return n(t,o.getDefaultContext(r))},r.name=e,r}},87830:function(t,n,e){e.r(n),e.d(n,{AnyArrayType:function(){return $},AnyDictionaryType:function(){return Q},AnyType:function(){return tA},Array:function(){return Z},ArrayType:function(){return tl},BigIntType:function(){return H},BooleanType:function(){return X},Dictionary:function(){return tK},DictionaryType:function(){return tv},ExactType:function(){return tE},Function:function(){return tW},FunctionType:function(){return tk},Int:function(){return ta},Integer:function(){return tL},InterfaceType:function(){return td},IntersectionType:function(){return t_},KeyofType:function(){return tr},LiteralType:function(){return tn},NeverType:function(){return tF},NullType:function(){return A},NumberType:function(){return V},ObjectType:function(){return tY},PartialType:function(){return th},ReadonlyArrayType:function(){return tw},ReadonlyType:function(){return tT},RecursiveType:function(){return tc},RefinementType:function(){return tu},StrictType:function(){return tH},StringType:function(){return K},TaggedUnionType:function(){return tN},TupleType:function(){return tR},Type:function(){return p},UndefinedType:function(){return U},UnionType:function(){return ty},UnknownArray:function(){return Z},UnknownRecord:function(){return tt},UnknownType:function(){return q},VoidType:function(){return N},alias:function(){return tX},any:function(){return tD},appendContext:function(){return m},array:function(){return tp},bigint:function(){return z},boolean:function(){return J},brand:function(){return to},clean:function(){return tz},dictionary:function(){return tB},emptyTags:function(){return w},exact:function(){return tC},failure:function(){return f},failures:function(){return c},getContextEntry:function(){return h},getDefaultContext:function(){return tG},getDomainKeys:function(){return R},getFunctionName:function(){return s},getIndex:function(){return P},getTags:function(){return F},getValidationError:function(){return tq},identity:function(){return d},interface:function(){return ts},intersection:function(){return tI},keyof:function(){return ti},literal:function(){return te},mergeAll:function(){return T},never:function(){return tP},null:function(){return D},nullType:function(){return D},number:function(){return B},object:function(){return tV},partial:function(){return tm},readonly:function(){return tx},readonlyArray:function(){return tM},record:function(){return tg},recursion:function(){return tf},refinement:function(){return tU},strict:function(){return tO},string:function(){return Y},success:function(){return l},taggedUnion:function(){return tj},tuple:function(){return tS},type:function(){return ts},undefined:function(){return L},union:function(){return tb},unknown:function(){return G},void:function(){return j},voidType:function(){return j}});var r,i=e(81878),u=(r=function(t,n){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=function(){return(o=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t}).apply(this,arguments)},a=function(t,n,e){if(e||2==arguments.length)for(var r,i=0,u=n.length;i<u;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return t.concat(r||Array.prototype.slice.call(n))},c=i.left,f=function(t,n,e){return c([{value:t,context:n,message:e}])},l=i.right,p=function(){function t(t,n,e,r){this.name=t,this.is=n,this.validate=e,this.encode=r,this.decode=this.decode.bind(this)}return t.prototype.pipe=function(n,e){var r=this;return void 0===e&&(e="pipe(".concat(this.name,", ").concat(n.name,")")),new t(e,n.is,function(t,e){var u=r.validate(t,e);return(0,i.isLeft)(u)?u:n.validate(u.right,e)},this.encode===d&&n.encode===d?d:function(t){return r.encode(n.encode(t))})},t.prototype.asDecoder=function(){return this},t.prototype.asEncoder=function(){return this},t.prototype.decode=function(t){return this.validate(t,[{key:"",type:this,actual:t}])},t}(),d=function(t){return t};function s(t){return t.displayName||t.name||"<function".concat(t.length,">")}function h(t,n){return{key:t,type:n}}function m(t,n,e,r){for(var i=t.length,u=Array(i+1),o=0;o<i;o++)u[o]=t[o];return u[i]={key:n,type:e,actual:r},u}function v(t,n){for(var e=n.length,r=0;r<e;r++)t.push(n[r])}var g=Object.prototype.hasOwnProperty;function y(t){return Object.keys(t).map(function(n){return"".concat(n,": ").concat(t[n].name)}).join(", ")}function b(t){for(var n=0;n<t.length;n++)if(t[n].encode!==d)return!1;return!0}function _(t){return"{ ".concat(y(t)," }")}function I(t){return"Partial<".concat(t,">")}function R(t){var n;if(E(t)){var e=t.value;if(Y.is(e))return(n={})[e]=null,n}else{if("KeyofType"===t._tag)return t.keys;if(k(t)){var r=t.types.map(function(t){return R(t)});return r.some(L.is)?void 0:Object.assign.apply(Object,a([{}],r,!1))}}}function S(t){return"("+t.map(function(t){return t.name}).join(" | ")+")"}function T(t,n){for(var e=!0,r=!0,i=!tt.is(t),u=0;u<n.length;u++){var o=n[u];o!==t&&(e=!1),tt.is(o)&&(r=!1)}if(e)return t;if(r)return n[n.length-1];for(var a={},c=0;c<n.length;c++){var o=n[c];for(var f in o)(!g.call(a,f)||i||o[f]!==t[f])&&(a[f]=o[f])}return a}function x(t,n){for(var e=Object.getOwnPropertyNames(t),r=!1,i={},u=0;u<e.length;u++){var o=e[u];g.call(n,o)?i[o]=t[o]:r=!0}return r?i:t}var w={};function M(t,n){for(var e=[],r=0;r<t.length;r++){var i=t[r];-1!==n.indexOf(i)&&e.push(i)}return e}function O(t){return"AnyType"===t._tag}function E(t){return"LiteralType"===t._tag}function C(t){return"InterfaceType"===t._tag}function k(t){return"UnionType"===t._tag}var W=[];function F(t){if(-1!==W.indexOf(t))return w;if(C(t)||"StrictType"===t._tag){var n=w;for(var e in t.props){var r=t.props[e];E(r)&&(n===w&&(n={}),n[e]=[r.value])}return n}if("ExactType"===t._tag||"RefinementType"===t._tag)return F(t.type);if("IntersectionType"===t._tag)return t.types.reduce(function(t,n){return function(t,n){if(t===w)return n;if(n===w)return t;var e=Object.assign({},t);for(var r in n)if(g.call(t,r)){var i=M(t[r],n[r]);if(i.length>0)e[r]=i;else{e=w;break}}else e[r]=n[r];return e}(t,F(n))},w);if(k(t))return t.types.slice(1).reduce(function(t,n){return function(t,n){if(t===w||n===w)return w;var e=w;for(var r in t)g.call(n,r)&&0===M(t[r],n[r]).length&&(e===w&&(e={}),e[r]=t[r].concat(n[r]));return e}(t,F(n))},F(t.types[0]));if("RecursiveType"===t._tag){W.push(t);var i=F(t.type);return W.pop(),i}return w}function P(t){for(var n=F(t[0]),e=Object.keys(n),r=t.length,i=0;i<e.length;i++){var u=function(e){for(var i=n[e].slice(),u=[n[e]],o=1;o<r;o++){var a=F(t[o])[e];if(void 0===a||a.some(function(t){return -1!==i.indexOf(t)}))return"continue-keys";i.push.apply(i,a),u.push(a)}return{value:[e,u]}}(e[i]);if("object"==typeof u)return u.value;if("continue-keys"===u)continue}}var A=function(t){function n(){var n=t.call(this,"null",function(t){return null===t},function(t,e){return n.is(t)?l(t):f(t,e)},d)||this;return n._tag="NullType",n}return u(n,t),n}(p),D=new A,U=function(t){function n(){var n=t.call(this,"undefined",function(t){return void 0===t},function(t,e){return n.is(t)?l(t):f(t,e)},d)||this;return n._tag="UndefinedType",n}return u(n,t),n}(p),L=new U,N=function(t){function n(){var n=t.call(this,"void",L.is,L.validate,d)||this;return n._tag="VoidType",n}return u(n,t),n}(p),j=new N,q=function(t){function n(){var n=t.call(this,"unknown",function(t){return!0},l,d)||this;return n._tag="UnknownType",n}return u(n,t),n}(p),G=new q,K=function(t){function n(){var n=t.call(this,"string",function(t){return"string"==typeof t},function(t,e){return n.is(t)?l(t):f(t,e)},d)||this;return n._tag="StringType",n}return u(n,t),n}(p),Y=new K,V=function(t){function n(){var n=t.call(this,"number",function(t){return"number"==typeof t},function(t,e){return n.is(t)?l(t):f(t,e)},d)||this;return n._tag="NumberType",n}return u(n,t),n}(p),B=new V,H=function(t){function n(){var n=t.call(this,"bigint",function(t){return"bigint"==typeof t},function(t,e){return n.is(t)?l(t):f(t,e)},d)||this;return n._tag="BigIntType",n}return u(n,t),n}(p),z=new H,X=function(t){function n(){var n=t.call(this,"boolean",function(t){return"boolean"==typeof t},function(t,e){return n.is(t)?l(t):f(t,e)},d)||this;return n._tag="BooleanType",n}return u(n,t),n}(p),J=new X,$=function(t){function n(){var n=t.call(this,"UnknownArray",Array.isArray,function(t,e){return n.is(t)?l(t):f(t,e)},d)||this;return n._tag="AnyArrayType",n}return u(n,t),n}(p),Z=new $,Q=function(t){function n(){var n=t.call(this,"UnknownRecord",function(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)},function(t,e){return n.is(t)?l(t):f(t,e)},d)||this;return n._tag="AnyDictionaryType",n}return u(n,t),n}(p),tt=new Q,tn=function(t){function n(n,e,r,i,u){var o=t.call(this,n,e,r,i)||this;return o.value=u,o._tag="LiteralType",o}return u(n,t),n}(p);function te(t,n){void 0===n&&(n=JSON.stringify(t));var e=function(n){return n===t};return new tn(n,e,function(n,r){return e(n)?l(t):f(n,r)},d,t)}var tr=function(t){function n(n,e,r,i,u){var o=t.call(this,n,e,r,i)||this;return o.keys=u,o._tag="KeyofType",o}return u(n,t),n}(p);function ti(t,n){void 0===n&&(n=Object.keys(t).map(function(t){return JSON.stringify(t)}).join(" | "));var e=function(n){return Y.is(n)&&g.call(t,n)};return new tr(n,e,function(t,n){return e(t)?l(t):f(t,n)},d,t)}var tu=function(t){function n(n,e,r,i,u,o){var a=t.call(this,n,e,r,i)||this;return a.type=u,a.predicate=o,a._tag="RefinementType",a}return u(n,t),n}(p);function to(t,n,e){return tU(t,n,e)}var ta=tU(B,function(t){return Number.isInteger(t)},"Int"),tc=function(t){function n(n,e,r,i,u){var o=t.call(this,n,e,r,i)||this;return o.runDefinition=u,o._tag="RecursiveType",o}return u(n,t),n}(p);function tf(t,n){var e,r=function(){return e||((e=n(i)).name=t),e},i=new tc(t,function(t){return r().is(t)},function(t,n){return r().validate(t,n)},function(t){return r().encode(t)},r);return i}Object.defineProperty(tc.prototype,"type",{get:function(){return this.runDefinition()},enumerable:!0,configurable:!0});var tl=function(t){function n(n,e,r,i,u){var o=t.call(this,n,e,r,i)||this;return o.type=u,o._tag="ArrayType",o}return u(n,t),n}(p);function tp(t,n){return void 0===n&&(n="Array<".concat(t.name,">")),new tl(n,function(n){return Z.is(n)&&n.every(t.is)},function(n,e){var r=Z.validate(n,e);if((0,i.isLeft)(r))return r;for(var u=r.right,o=u.length,a=u,f=[],p=0;p<o;p++){var d=u[p],s=t.validate(d,m(e,String(p),t,d));if((0,i.isLeft)(s))v(f,s.left);else{var h=s.right;h!==d&&(a===u&&(a=u.slice()),a[p]=h)}}return f.length>0?c(f):l(a)},t.encode===d?d:function(n){return n.map(t.encode)},t)}var td=function(t){function n(n,e,r,i,u){var o=t.call(this,n,e,r,i)||this;return o.props=u,o._tag="InterfaceType",o}return u(n,t),n}(p);function ts(t,n){void 0===n&&(n=_(t));var e=Object.keys(t),r=e.map(function(n){return t[n]}),u=e.length;return new td(n,function(t){if(tt.is(t)){for(var n=0;n<u;n++){var i=e[n],o=t[i];if(void 0===o&&!g.call(t,i)||!r[n].is(o))return!1}return!0}return!1},function(t,n){var a=tt.validate(t,n);if((0,i.isLeft)(a))return a;for(var f=a.right,p=f,d=[],s=0;s<u;s++){var h=e[s],y=p[h],b=r[s],_=b.validate(y,m(n,h,b,y));if((0,i.isLeft)(_))v(d,_.left);else{var I=_.right;I===y&&(void 0!==I||g.call(p,h))||(p===f&&(p=o({},f)),p[h]=I)}}return d.length>0?c(d):l(p)},b(r)?d:function(t){for(var n=o({},t),i=0;i<u;i++){var a=e[i],c=r[i].encode;c!==d&&(n[a]=c(t[a]))}return n},t)}var th=function(t){function n(n,e,r,i,u){var o=t.call(this,n,e,r,i)||this;return o.props=u,o._tag="PartialType",o}return u(n,t),n}(p);function tm(t,n){void 0===n&&(n=I(_(t)));var e=Object.keys(t),r=e.map(function(n){return t[n]}),u=e.length;return new th(n,function(n){if(tt.is(n)){for(var r=0;r<u;r++){var i=e[r],o=n[i];if(void 0!==o&&!t[i].is(o))return!1}return!0}return!1},function(n,r){var a=tt.validate(n,r);if((0,i.isLeft)(a))return a;for(var f=a.right,p=f,d=[],s=0;s<u;s++){var h=e[s],g=p[h],y=t[h],b=y.validate(g,m(r,h,y,g));if((0,i.isLeft)(b))void 0!==g&&v(d,b.left);else{var _=b.right;_!==g&&(p===f&&(p=o({},f)),p[h]=_)}}return d.length>0?c(d):l(p)},b(r)?d:function(t){for(var n=o({},t),i=0;i<u;i++){var a=e[i],c=t[a];void 0!==c&&(n[a]=r[i].encode(c))}return n},t)}var tv=function(t){function n(n,e,r,i,u,o){var a=t.call(this,n,e,r,i)||this;return a.domain=u,a.codomain=o,a._tag="DictionaryType",a}return u(n,t),n}(p);function tg(t,n,e){var r,u,o,a,p=R(t);return p?(r=Object.keys(p),void 0===(u=e)&&(u="{ [K in ".concat(t.name,"]: ").concat(n.name," }")),o=r.length,new tv(u,function(t){return tt.is(t)&&r.every(function(e){return n.is(t[e])})},function(t,e){var u=tt.validate(t,e);if((0,i.isLeft)(u))return u;for(var a=u.right,f={},p=[],d=!1,s=0;s<o;s++){var h=r[s],g=a[h],y=n.validate(g,m(e,h,n,g));if((0,i.isLeft)(y))v(p,y.left);else{var b=y.right;d=d||b!==g,f[h]=b}}return p.length>0?c(p):l(d||Object.keys(a).length!==o?f:a)},n.encode===d?d:function(t){for(var e={},i=0;i<o;i++){var u=r[i];e[u]=n.encode(t[u])}return e},t,n)):(void 0===(a=e)&&(a="{ [K in ".concat(t.name,"]: ").concat(n.name," }")),new tv(a,function(e){return tt.is(e)?Object.keys(e).every(function(r){return t.is(r)&&n.is(e[r])}):O(n)&&Array.isArray(e)},function(e,r){if(tt.is(e)){for(var u={},o=[],a=Object.keys(e),p=a.length,d=!1,s=0;s<p;s++){var h=a[s],g=e[h],y=t.validate(h,m(r,h,t,h));if((0,i.isLeft)(y))v(o,y.left);else{var b=y.right;d=d||b!==h,h=b;var _=n.validate(g,m(r,h,n,g));if((0,i.isLeft)(_))v(o,_.left);else{var I=_.right;d=d||I!==g,u[h]=I}}}return o.length>0?c(o):l(d?u:e)}return O(n)&&Array.isArray(e)?l(e):f(e,r)},t.encode===d&&n.encode===d?d:function(e){for(var r={},i=Object.keys(e),u=i.length,o=0;o<u;o++){var a=i[o];r[String(t.encode(a))]=n.encode(e[a])}return r},t,n))}var ty=function(t){function n(n,e,r,i,u){var o=t.call(this,n,e,r,i)||this;return o.types=u,o._tag="UnionType",o}return u(n,t),n}(p);function tb(t,n){void 0===n&&(n=S(t));var e=P(t);if(void 0===e||!(t.length>0))return new ty(n,function(n){return t.some(function(t){return t.is(n)})},function(n,e){for(var r=[],u=0;u<t.length;u++){var o=t[u],a=o.validate(n,m(e,String(u),o,n));if(!(0,i.isLeft)(a))return l(a.right);v(r,a.left)}return c(r)},b(t)?d:function(e){for(var r=0;r<t.length;r++){var i=t[r];if(i.is(e))return i.encode(e)}throw Error("no codec found to encode value in union type ".concat(n))},t);var r=e[0],u=e[1],o=u.length,a=function(t){for(var n=0;n<o;n++)if(-1!==u[n].indexOf(t))return n};return new tN(n,function(n){if(tt.is(n)){var e=a(n[r]);return void 0!==e&&t[e].is(n)}return!1},function(n,e){var u=tt.validate(n,e);if((0,i.isLeft)(u))return u;var o=u.right,c=a(o[r]);if(void 0===c)return f(n,e);var l=t[c];return l.validate(o,m(e,String(c),l,o))},b(t)?d:function(e){var i=a(e[r]);if(void 0!==i)return t[i].encode(e);throw Error("no codec found to encode value in union codec ".concat(n))},t,r)}var t_=function(t){function n(n,e,r,i,u){var o=t.call(this,n,e,r,i)||this;return o.types=u,o._tag="IntersectionType",o}return u(n,t),n}(p);function tI(t,n){void 0===n&&(n="(".concat(t.map(function(t){return t.name}).join(" & "),")"));var e=t.length;return new t_(n,function(n){return t.every(function(t){return t.is(n)})},0===t.length?l:function(n,r){for(var u=[],o=[],a=0;a<e;a++){var f=t[a],p=f.validate(n,m(r,String(a),f,n));(0,i.isLeft)(p)?v(o,p.left):u.push(p.right)}return o.length>0?c(o):l(T(n,u))},0===t.length?d:function(n){return T(n,t.map(function(t){return t.encode(n)}))},t)}var tR=function(t){function n(n,e,r,i,u){var o=t.call(this,n,e,r,i)||this;return o.types=u,o._tag="TupleType",o}return u(n,t),n}(p);function tS(t,n){void 0===n&&(n="[".concat(t.map(function(t){return t.name}).join(", "),"]"));var e=t.length;return new tR(n,function(n){return Z.is(n)&&n.length===e&&t.every(function(t,e){return t.is(n[e])})},function(n,r){var u=Z.validate(n,r);if((0,i.isLeft)(u))return u;for(var o=u.right,a=o.length>e?o.slice(0,e):o,f=[],p=0;p<e;p++){var d=o[p],s=t[p],h=s.validate(d,m(r,String(p),s,d));if((0,i.isLeft)(h))v(f,h.left);else{var g=h.right;g!==d&&(a===o&&(a=o.slice()),a[p]=g)}}return f.length>0?c(f):l(a)},b(t)?d:function(n){return t.map(function(t,e){return t.encode(n[e])})},t)}var tT=function(t){function n(n,e,r,i,u){var o=t.call(this,n,e,r,i)||this;return o.type=u,o._tag="ReadonlyType",o}return u(n,t),n}(p);function tx(t,n){return void 0===n&&(n="Readonly<".concat(t.name,">")),new tT(n,t.is,t.validate,t.encode,t)}var tw=function(t){function n(n,e,r,i,u){var o=t.call(this,n,e,r,i)||this;return o.type=u,o._tag="ReadonlyArrayType",o}return u(n,t),n}(p);function tM(t,n){void 0===n&&(n="ReadonlyArray<".concat(t.name,">"));var e=tp(t);return new tw(n,e.is,e.validate,e.encode,t)}var tO=function(t,n){return tC(ts(t),n)},tE=function(t){function n(n,e,r,i,u){var o=t.call(this,n,e,r,i)||this;return o.type=u,o._tag="ExactType",o}return u(n,t),n}(p);function tC(t,n){void 0===n&&(n=C(t)?"{| ".concat(y(t.props)," |}"):"PartialType"===t._tag?I("{| ".concat(y(t.props)," |}")):"Exact<".concat(t.name,">"));var e=function t(n){switch(n._tag){case"RefinementType":case"ReadonlyType":return t(n.type);case"InterfaceType":case"StrictType":case"PartialType":return n.props;case"IntersectionType":return n.types.reduce(function(n,e){return Object.assign(n,t(e))},{})}}(t);return new tE(n,t.is,function(n,r){var u=tt.validate(n,r);if((0,i.isLeft)(u))return u;var o=t.validate(n,r);return(0,i.isLeft)(o)?o:(0,i.right)(x(o.right,e))},function(n){return t.encode(x(n,e))},t)}var tk=function(t){function n(){var n=t.call(this,"Function",function(t){return"function"==typeof t},function(t,e){return n.is(t)?l(t):f(t,e)},d)||this;return n._tag="FunctionType",n}return u(n,t),n}(p),tW=new tk,tF=function(t){function n(){var n=t.call(this,"never",function(t){return!1},function(t,n){return f(t,n)},function(){throw Error("cannot encode never")})||this;return n._tag="NeverType",n}return u(n,t),n}(p),tP=new tF,tA=function(t){function n(){var n=t.call(this,"any",function(t){return!0},l,d)||this;return n._tag="AnyType",n}return u(n,t),n}(p),tD=new tA;function tU(t,n,e){return void 0===e&&(e="(".concat(t.name," | ").concat(s(n),")")),new tu(e,function(e){return t.is(e)&&n(e)},function(e,r){var u=t.validate(e,r);if((0,i.isLeft)(u))return u;var o=u.right;return n(o)?l(o):f(o,r)},t.encode,t,n)}var tL=tU(B,Number.isInteger,"Integer"),tN=function(t){function n(n,e,r,i,u,o){var a=t.call(this,n,e,r,i,u)||this;return a.tag=o,a}return u(n,t),n}(ty),tj=function(t,n,e){void 0===e&&(e=S(n));var r=tb(n,e);return r instanceof tN?r:(console.warn("[io-ts] Cannot build a tagged union for ".concat(e,", returning a de-optimized union")),new tN(e,r.is,r.validate,r.encode,n,t))},tq=function(t,n){return{value:t,context:n}},tG=function(t){return[{key:"",type:t}]},tK=tt,tY=function(t){function n(){var n=t.call(this,"object",function(t){return null!==t&&"object"==typeof t},function(t,e){return n.is(t)?l(t):f(t,e)},d)||this;return n._tag="ObjectType",n}return u(n,t),n}(p),tV=new tY,tB=tg,tH=function(t){function n(n,e,r,i,u){var o=t.call(this,n,e,r,i)||this;return o.props=u,o._tag="StrictType",o}return u(n,t),n}(p);function tz(t){return t}function tX(t){return function(){return t}}},77883:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.FORMAT_PLAIN=n.FORMAT_HTML=n.FORMATS=void 0;var e="html";n.FORMAT_HTML=e;var r="plain";n.FORMAT_PLAIN=r;var i=[e,r];n.FORMATS=i},779:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.LINE_ENDINGS=void 0,n.LINE_ENDINGS={POSIX:"\n",WIN32:"\r\n"}},36021:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.SUPPORTED_PLATFORMS=void 0,n.SUPPORTED_PLATFORMS={DARWIN:"darwin",LINUX:"linux",WIN32:"win32"}},29688:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.UNIT_WORDS=n.UNIT_WORD=n.UNIT_SENTENCES=n.UNIT_SENTENCE=n.UNIT_PARAGRAPHS=n.UNIT_PARAGRAPH=n.UNITS=void 0;var e="words";n.UNIT_WORDS=e;var r="word";n.UNIT_WORD=r;var i="sentences";n.UNIT_SENTENCES=i;var u="sentence";n.UNIT_SENTENCE=u;var o="paragraphs";n.UNIT_PARAGRAPHS=o;var a="paragraph";n.UNIT_PARAGRAPH=a;var c=[e,r,i,u,o,a];n.UNITS=c},90783:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.WORDS=void 0,n.WORDS=["ad","adipisicing","aliqua","aliquip","amet","anim","aute","cillum","commodo","consectetur","consequat","culpa","cupidatat","deserunt","do","dolor","dolore","duis","ea","eiusmod","elit","enim","esse","est","et","eu","ex","excepteur","exercitation","fugiat","id","in","incididunt","ipsum","irure","labore","laboris","laborum","Lorem","magna","minim","mollit","nisi","non","nostrud","nulla","occaecat","officia","pariatur","proident","qui","quis","reprehenderit","sint","sit","sunt","tempor","ullamco","ut","velit","veniam","voluptate"]},72788:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"LoremIpsum",{enumerable:!0,get:function(){return a.default}}),n.loremIpsum=void 0;var r,i=e(77883),u=e(29688),o=e(90783),a=(r=e(55548))&&r.__esModule?r:{default:r};n.loremIpsum=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.count,e=void 0===n?1:n,r=t.format,c=void 0===r?i.FORMAT_PLAIN:r,f=t.paragraphLowerBound,l=t.paragraphUpperBound,p=t.random,d=t.sentenceLowerBound,s=t.sentenceUpperBound,h=t.units,m=void 0===h?u.UNIT_SENTENCES:h,v=t.words,g=void 0===v?o.WORDS:v,y=t.suffix,b=new a.default({random:p,sentencesPerParagraph:{max:void 0===l?7:l,min:void 0===f?3:f},words:g,wordsPerSentence:{max:void 0===s?15:s,min:void 0===d?5:d}},c,void 0===y?"":y);switch(m){case u.UNIT_PARAGRAPHS:case u.UNIT_PARAGRAPH:return b.generateParagraphs(e);case u.UNIT_SENTENCES:case u.UNIT_SENTENCE:return b.generateSentences(e);case u.UNIT_WORDS:case u.UNIT_WORD:return b.generateWords(e);default:return""}}},55548:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=e(77883),u=e(779),o=(r=e(40928))&&r.__esModule?r:{default:r},a=e(23749),c=function(){var t;function n(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.FORMAT_PLAIN,a=arguments.length>2?arguments[2]:void 0;if(!function(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}(this,n),this.format=u,this.suffix=a,e=void 0,(t="generator")in this?Object.defineProperty(this,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):this[t]=e,-1===i.FORMATS.indexOf(u.toLowerCase()))throw Error("".concat(u," is an invalid format. Please use ").concat(i.FORMATS.join(" or "),"."));this.generator=new o.default(r)}return t=[{key:"getLineEnding",value:function(){return this.suffix?this.suffix:!(0,a.isReactNative)()&&(0,a.isNode)()&&(0,a.isWindows)()?u.LINE_ENDINGS.WIN32:u.LINE_ENDINGS.POSIX}},{key:"formatString",value:function(t){return this.format===i.FORMAT_HTML?"<p>".concat(t,"</p>"):t}},{key:"formatStrings",value:function(t){var n=this;return t.map(function(t){return n.formatString(t)})}},{key:"generateWords",value:function(t){return this.formatString(this.generator.generateRandomWords(t))}},{key:"generateSentences",value:function(t){return this.formatString(this.generator.generateRandomParagraph(t))}},{key:"generateParagraphs",value:function(t){var n=this.generator.generateRandomParagraph.bind(this.generator);return this.formatStrings((0,a.makeArrayOfStrings)(t,n)).join(this.getLineEnding())}}],function(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=c},40928:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e(90783),i=e(23749);function u(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var o=function(){var t;function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.sentencesPerParagraph,i=void 0===e?{max:7,min:3}:e,o=t.wordsPerSentence,a=void 0===o?{max:15,min:5}:o,c=t.random,f=(t.seed,t.words),l=void 0===f?r.WORDS:f;if(!function(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}(this,n),u(this,"sentencesPerParagraph",void 0),u(this,"wordsPerSentence",void 0),u(this,"random",void 0),u(this,"words",void 0),i.min>i.max)throw Error("Minimum number of sentences per paragraph (".concat(i.min,") cannot exceed maximum (").concat(i.max,")."));if(a.min>a.max)throw Error("Minimum number of words per sentence (".concat(a.min,") cannot exceed maximum (").concat(a.max,")."));this.sentencesPerParagraph=i,this.words=l,this.wordsPerSentence=a,this.random=c||Math.random}return t=[{key:"generateRandomInteger",value:function(t,n){return Math.floor(this.random()*(n-t+1)+t)}},{key:"generateRandomWords",value:function(t){var n=this,e=this.wordsPerSentence,r=e.min,u=e.max,o=t||this.generateRandomInteger(r,u);return(0,i.makeArrayOfLength)(o).reduce(function(t,e){return"".concat(n.pluckRandomWord()," ").concat(t)},"").trim()}},{key:"generateRandomSentence",value:function(t){return"".concat((0,i.capitalize)(this.generateRandomWords(t)),".")}},{key:"generateRandomParagraph",value:function(t){var n=this,e=this.sentencesPerParagraph,r=e.min,u=e.max,o=t||this.generateRandomInteger(r,u);return(0,i.makeArrayOfLength)(o).reduce(function(t,e){return"".concat(n.generateRandomSentence()," ").concat(t)},"").trim()}},{key:"pluckRandomWord",value:function(){var t=this.words.length-1,n=this.generateRandomInteger(0,t);return this.words[n]}}],function(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();n.default=o},79998:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(t){var n=t.trim();return n.charAt(0).toUpperCase()+n.slice(1)}},23749:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"capitalize",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"isNode",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"isReactNative",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,"isWindows",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"makeArrayOfLength",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"makeArrayOfStrings",{enumerable:!0,get:function(){return c.default}});var r=f(e(79998)),i=f(e(18077)),u=f(e(66002)),o=f(e(89759)),a=f(e(13385)),c=f(e(74523));function f(t){return t&&t.__esModule?t:{default:t}}},18077:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(){return!!t.exports}},66002:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(){var t=!1;try{t="ReactNative"===navigator.product}catch(n){t=!1}return t}},89759:function(t,n,e){var r=e(34406);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e(36021);n.default=function(){var t=!1;try{t=r.platform===i.SUPPORTED_PLATFORMS.WIN32}catch(n){t=!1}return t}},13385:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.apply(null,Array(t)).map(function(t,n){return n})}},74523:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e(13385))&&r.__esModule?r:{default:r};n.default=function(t,n){return(0,i.default)(t).map(function(){return n()})}},58831:function(t,n,e){var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.ArrowContainer=void 0;var i=e(52322),u=e(2784),o=e(64379);n.ArrowContainer=function(t){var n=t.childRect,e=t.popoverRect,a=t.position,c=t.arrowColor,f=t.arrowSize,l=t.arrowClassName,p=t.arrowStyle,d=t.className,s=t.children,h=t.style,m=o.useArrowContainer({childRect:n,popoverRect:e,position:a,arrowColor:c,arrowSize:f}),v=m.arrowContainerStyle,g=m.arrowStyle,y=u.useMemo(function(){return r(r({},v),h)},[v,h]),b=u.useMemo(function(){return r(r({},g),p)},[g,p]);return i.jsxs("div",r({className:d,style:y},{children:[i.jsx("div",{style:b,className:l},void 0),s]}),void 0)}},19909:function(t,n,e){var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.Popover=n.usePopover=n.ArrowContainer=n.useArrowContainer=void 0;var i=e(52322),u=e(2784),o=e(44635),a=e(27574),c=e(61462);Object.defineProperty(n,"usePopover",{enumerable:!0,get:function(){return c.usePopover}});var f=e(70414),l=e(64379);Object.defineProperty(n,"useArrowContainer",{enumerable:!0,get:function(){return l.useArrowContainer}});var p=e(58831);Object.defineProperty(n,"ArrowContainer",{enumerable:!0,get:function(){return p.ArrowContainer}});var d=["top","left","right","bottom"],s=u.forwardRef(function(t,n){var e=t.isOpen,l=t.children,p=t.content,s=t.positions,h=t.align,m=void 0===h?"center":h,v=t.padding,g=void 0===v?0:v,y=t.reposition,b=void 0===y||y,_=t.parentElement,I=void 0===_?window.document.body:_,R=t.boundaryElement,S=void 0===R?I:R,T=t.containerClassName,x=t.containerStyle,w=t.contentLocation,M=t.boundaryInset,O=void 0===M?0:M,E=t.onClickOutside,C=t.clickOutsideCapture,k=void 0!==C&&C,W=f.useMemoizedArray(void 0===s?d:s),F=u.useRef(!1),P=u.useRef(),A=u.useRef(),D=u.useRef(b),U=u.useRef(),L=u.useState({align:m,nudgedLeft:0,nudgedTop:0,position:W[0],padding:g,childRect:a.EMPTY_CLIENT_RECT,popoverRect:a.EMPTY_CLIENT_RECT,parentRect:a.EMPTY_CLIENT_RECT,boundaryRect:a.EMPTY_CLIENT_RECT,boundaryInset:O,violations:a.EMPTY_CLIENT_RECT,hasViolations:!1}),N=L[0],j=L[1],q=u.useCallback(function(t){return j(t)},[]),G=c.usePopover({isOpen:e,childRef:U,containerClassName:void 0===T?"react-tiny-popover-container":T,parentElement:I,boundaryElement:S,contentLocation:w,positions:W,align:m,padding:g,boundaryInset:O,reposition:b,onPositionPopover:q}),K=G.positionPopover,Y=G.popoverRef,V=G.scoutRef;u.useLayoutEffect(function(){var t=!0,n=function(){var r,i;if(e&&t){var u=null===(r=null==U?void 0:U.current)||void 0===r?void 0:r.getBoundingClientRect(),o=null===(i=null==Y?void 0:Y.current)||void 0===i?void 0:i.getBoundingClientRect();null==u||null==o||a.rectsAreEqual(u,{top:N.childRect.top,left:N.childRect.left,width:N.childRect.width,height:N.childRect.height,bottom:N.childRect.top+N.childRect.height,right:N.childRect.left+N.childRect.width})&&o.width===N.popoverRect.width&&o.height===N.popoverRect.height&&N.padding===g&&N.align===m&&W===P.current&&w===A.current&&b===D.current||K(),W!==P.current&&(P.current=W),w!==A.current&&(A.current=w),b!==D.current&&(D.current=b),t&&window.requestAnimationFrame(n)}F.current=e};return window.requestAnimationFrame(n),function(){t=!1}},[m,w,e,g,Y,N.align,N.childRect.height,N.childRect.left,N.childRect.top,N.childRect.width,N.padding,N.popoverRect.height,N.popoverRect.width,K,W,b]),u.useEffect(function(){var t=Y.current;return Object.assign(t.style,x),function(){Object.keys(null!=x?x:{}).forEach(function(n){return delete t.style[n]})}},[x,e,Y]);var B=u.useCallback(function(t){var n,r;!e||(null===(n=Y.current)||void 0===n?void 0:n.contains(t.target))||(null===(r=U.current)||void 0===r?void 0:r.contains(t.target))||null==E||E(t)},[e,E,Y]),H=u.useCallback(function(){U.current&&window.requestAnimationFrame(function(){return K()})},[K]);u.useEffect(function(){var t=I.ownerDocument.body;return t.addEventListener("click",B,k),t.addEventListener("contextmenu",B,k),t.addEventListener("resize",H),function(){t.removeEventListener("click",B,k),t.removeEventListener("contextmenu",B,k),t.removeEventListener("resize",H)}},[k,B,H,I]);var z=u.useCallback(function(t){U.current=t,null!=n&&("object"==typeof n?n.current=t:"function"==typeof n&&n(t))},[n]);return i.jsxs(i.Fragment,{children:[u.cloneElement(l,{ref:z}),e?i.jsx(o.PopoverPortal,r({element:Y.current,scoutElement:V.current,container:I},{children:"function"==typeof p?p(N):p}),void 0):null]},void 0)});n.Popover=u.forwardRef(function(t,n){return"undefined"==typeof window?t.children:i.jsx(s,r({},t,{ref:n}),void 0)})},44635:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.PopoverPortal=void 0;var r=e(2784),i=e(28316);n.PopoverPortal=function(t){var n=t.container,e=t.element,u=t.scoutElement,o=t.children;return r.useLayoutEffect(function(){return n.appendChild(e),n.appendChild(u),function(){n.removeChild(e),n.removeChild(u)}},[n,e,u]),i.createPortal(o,e)}},64379:function(t,n,e){var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.useArrowContainer=void 0;var i=e(2784);n.useArrowContainer=function(t){var n=t.childRect,e=t.popoverRect,u=t.position,o=t.arrowSize,a=t.arrowColor;return{arrowContainerStyle:i.useMemo(function(){return{padding:o}},[o]),arrowStyle:i.useMemo(function(){return r({position:"absolute"},function(){var t=2*o,r=n.top-e.top+n.height/2-t/2,i=n.left-e.left+n.width/2-t/2,c=e.width-o,f=e.height-o;switch(i=(i=i<o?o:i)+t>c?c-t:i,r=Number.isNaN(r=(r=r<o?o:r)+t>f?f-t:r)?0:r,i=Number.isNaN(i)?0:i,u){case"right":return{borderTop:o+"px solid transparent",borderBottom:o+"px solid transparent",borderRight:o+"px solid "+a,left:0,top:r};case"left":return{borderTop:o+"px solid transparent",borderBottom:o+"px solid transparent",borderLeft:o+"px solid "+a,right:0,top:r};case"bottom":return{borderLeft:o+"px solid transparent",borderRight:o+"px solid transparent",borderBottom:o+"px solid "+a,top:0,left:i};case"top":return{borderLeft:o+"px solid transparent",borderRight:o+"px solid transparent",borderTop:o+"px solid "+a,bottom:0,left:i};default:return{display:"hidden"}}}())},[a,o,n.height,n.left,n.top,n.width,e.height,e.left,e.top,e.width,u])}}},79601:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.useElementRef=void 0;var r=e(2784),i=e(27574);n.useElementRef=function(t,n){var e=r.useRef(),u=r.useMemo(function(){return i.createContainer(n,t)},[t,n]);return e.current=u,e}},70414:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.useMemoizedArray=void 0;var r=e(2784);n.useMemoizedArray=function(t){var n=r.useRef(t);return r.useMemo(function(){if(n.current===t)return n.current;if(n.current.length!==t.length)return n.current=t,t;for(var e=0;e<t.length;e+=1)if(t[e]!==n.current[e])return n.current=t,t;return n.current},[t])}},61462:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.usePopover=void 0;var r=e(2784),i=e(27574),u=e(79601),o={position:"fixed",overflow:"visible",top:"0px",left:"0px"},a={position:"fixed",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden"};n.usePopover=function(t){var n=t.isOpen,e=t.childRef,c=t.positions,f=t.containerClassName,l=t.parentElement,p=t.contentLocation,d=t.align,s=t.padding,h=t.reposition,m=t.boundaryInset,v=t.boundaryElement,g=t.onPositionPopover,y=u.useElementRef(f,o),b=u.useElementRef("react-tiny-popover-scout",a),_=r.useCallback(function(t){var r,u,o=void 0===t?{}:t,a=o.positionIndex,f=void 0===a?0:a,I=o.parentRect,R=void 0===I?l.getBoundingClientRect():I,S=o.childRect,T=void 0===S?null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.getBoundingClientRect():S,x=o.scoutRect,w=void 0===x?null===(u=null==b?void 0:b.current)||void 0===u?void 0:u.getBoundingClientRect():x,M=o.popoverRect,O=void 0===M?y.current.getBoundingClientRect():M,E=o.boundaryRect,C=void 0===E?v===l?R:v.getBoundingClientRect():E;if(T&&R&&n){if(p){var k="function"==typeof p?p({childRect:T,popoverRect:O,parentRect:R,boundaryRect:C,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:m,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1}):p,W=k.top,F=k.left,P=Math.round(R.left+F-w.left),A=Math.round(R.top+W-w.top);y.current.style.transform="translate("+P+"px, "+A+"px)",g({childRect:T,popoverRect:O,parentRect:R,boundaryRect:C,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:m,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1});return}var D=f===c.length,U=D?c[0]:c[f],L=i.getNewPopoverRect({childRect:T,popoverRect:O,boundaryRect:C,position:U,align:d,padding:s,reposition:h},m),N=L.rect;if(L.boundaryViolation&&h&&!D){_({positionIndex:f+1,childRect:T,popoverRect:O,parentRect:R,boundaryRect:C});return}var j=N.top,q=N.left,G=N.width,K=N.height,Y=h&&!D,V=i.getNudgedPopoverRect(N,C,m),B=V.left,H=V.top,z=j,X=q;Y&&(z=H,X=B),z=Math.round(z-w.top),X=Math.round(X-w.left),y.current.style.transform="translate("+X+"px, "+z+"px)";var J={top:C.top+m-z,left:C.left+m-X,right:X+G-C.right+m,bottom:z+K-C.bottom+m};g({childRect:T,popoverRect:{top:z,left:X,width:G,height:K,right:X+G,bottom:z+K},parentRect:R,boundaryRect:C,position:U,align:d,padding:s,nudgedTop:H-j,nudgedLeft:B-q,boundaryInset:m,violations:{top:J.top<=0?0:J.top,left:J.left<=0?0:J.left,right:J.right<=0?0:J.right,bottom:J.bottom<=0?0:J.bottom},hasViolations:J.top>0||J.left>0||J.right>0||J.bottom>0})}},[l,e,b,y,v,n,p,c,d,s,h,m,g]);return{positionPopover:_,popoverRef:y,scoutRef:b}}},27574:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getNudgedPopoverRect=n.getNewPopoverRect=n.popoverRectForPosition=n.createContainer=n.rectsAreEqual=n.EMPTY_CLIENT_RECT=void 0,n.EMPTY_CLIENT_RECT={top:0,left:0,bottom:0,height:0,right:0,width:0},n.rectsAreEqual=function(t,n){return t===n||(null==t?void 0:t.bottom)===(null==n?void 0:n.bottom)&&(null==t?void 0:t.height)===(null==n?void 0:n.height)&&(null==t?void 0:t.left)===(null==n?void 0:n.left)&&(null==t?void 0:t.right)===(null==n?void 0:n.right)&&(null==t?void 0:t.top)===(null==n?void 0:n.top)&&(null==t?void 0:t.width)===(null==n?void 0:n.width)},n.createContainer=function(t,n){var e=window.document.createElement("div");return n&&(e.className=n),Object.assign(e.style,t),e},n.popoverRectForPosition=function(t,n,e,r,i){var u,o,a=n.left+n.width/2,c=n.top+n.height/2,f=e.width,l=e.height;switch(t){case"left":u=c-l/2,o=n.left-r-f,"start"===i&&(u=n.top),"end"===i&&(u=n.bottom-l);break;case"bottom":u=n.bottom+r,o=a-f/2,"start"===i&&(o=n.left),"end"===i&&(o=n.right-f);break;case"right":u=c-l/2,o=n.right+r,"start"===i&&(u=n.top),"end"===i&&(u=n.bottom-l);break;default:u=n.top-l-r,o=a-f/2,"start"===i&&(o=n.left),"end"===i&&(o=n.right-f)}return{top:u,left:o,width:f,height:l,right:o+f,bottom:u+l}},n.getNewPopoverRect=function(t,e){var r=t.position,i=t.align,u=t.childRect,o=t.popoverRect,a=t.boundaryRect,c=t.padding,f=t.reposition,l=n.popoverRectForPosition(r,u,o,c,i),p=f&&("top"===r&&l.top<a.top+e||"left"===r&&l.left<a.left+e||"right"===r&&l.right>a.right-e||"bottom"===r&&l.bottom>a.bottom-e);return{rect:l,boundaryViolation:p}},n.getNudgedPopoverRect=function(t,n,e){var r=n.top+e,i=n.left+e,u=n.right-e,o=n.bottom-e,a=t.top<r?r:t.top;a=a+t.height>o?o-t.height:a;var c=t.left<i?i:t.left;return{top:a,left:c=c+t.width>u?u-t.width:c,width:t.width,height:t.height,right:c+t.width,bottom:a+t.height}}},80734:function(t,n,e){var r,i=e(1710);function u(t){if(!Object.prototype.hasOwnProperty.call(o.message,t))throw Error("invalid status code: "+t);return o.message[t]}function o(t){if("number"==typeof t)return u(t);if("string"!=typeof t)throw TypeError("code must be a number or string");var n=parseInt(t,10);return isNaN(n)?function(t){var n=t.toLowerCase();if(!Object.prototype.hasOwnProperty.call(o.code,n))throw Error('invalid status message: "'+t+'"');return o.code[n]}(t):u(n)}t.exports=o,o.message=i,o.code=(r={},Object.keys(i).forEach(function(t){var n=i[t],e=Number(t);r[n.toLowerCase()]=e}),r),o.codes=Object.keys(i).map(function(t){return Number(t)}),o.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},o.empty={204:!0,205:!0,304:!0},o.retry={502:!0,503:!0,504:!0}},60130:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"v4",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,"v5",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(n,"version",{enumerable:!0,get:function(){return c.default}});var r=d(e(27343)),i=d(e(46076)),u=d(e(85854)),o=d(e(95899)),a=d(e(15384)),c=d(e(25791)),f=d(e(77888)),l=d(e(49926)),p=d(e(9964));function d(t){return t&&t.__esModule?t:{default:t}}},2763:function(t,n){function e(t){return(t+64>>>9<<4)+14+1}function r(t,n){let e=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(e>>16)<<16|65535&e}function i(t,n,e,i,u,o){var a;return r((a=r(r(n,t),r(i,o)))<<u|a>>>32-u,e)}function u(t,n,e,r,u,o,a){return i(n&e|~n&r,t,n,u,o,a)}function o(t,n,e,r,u,o,a){return i(n&r|e&~r,t,n,u,o,a)}function a(t,n,e,r,u,o,a){return i(n^e^r,t,n,u,o,a)}function c(t,n,e,r,u,o,a){return i(e^(n|~r),t,n,u,o,a)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(t){if("string"==typeof t){let n=unescape(encodeURIComponent(t));t=new Uint8Array(n.length);for(let e=0;e<n.length;++e)t[e]=n.charCodeAt(e)}return function(t){let n=[],e=32*t.length,r="0123456789abcdef";for(let i=0;i<e;i+=8){let e=t[i>>5]>>>i%32&255,u=parseInt(r.charAt(e>>>4&15)+r.charAt(15&e),16);n.push(u)}return n}(function(t,n){t[n>>5]|=128<<n%32,t[e(n)-1]=n;let i=1732584193,f=-271733879,l=-1732584194,p=271733878;for(let n=0;n<t.length;n+=16){let e=i,d=f,s=l,h=p;i=u(i,f,l,p,t[n],7,-680876936),p=u(p,i,f,l,t[n+1],12,-389564586),l=u(l,p,i,f,t[n+2],17,606105819),f=u(f,l,p,i,t[n+3],22,-1044525330),i=u(i,f,l,p,t[n+4],7,-176418897),p=u(p,i,f,l,t[n+5],12,1200080426),l=u(l,p,i,f,t[n+6],17,-1473231341),f=u(f,l,p,i,t[n+7],22,-45705983),i=u(i,f,l,p,t[n+8],7,1770035416),p=u(p,i,f,l,t[n+9],12,-1958414417),l=u(l,p,i,f,t[n+10],17,-42063),f=u(f,l,p,i,t[n+11],22,-1990404162),i=u(i,f,l,p,t[n+12],7,1804603682),p=u(p,i,f,l,t[n+13],12,-40341101),l=u(l,p,i,f,t[n+14],17,-1502002290),f=u(f,l,p,i,t[n+15],22,1236535329),i=o(i,f,l,p,t[n+1],5,-165796510),p=o(p,i,f,l,t[n+6],9,-1069501632),l=o(l,p,i,f,t[n+11],14,643717713),f=o(f,l,p,i,t[n],20,-373897302),i=o(i,f,l,p,t[n+5],5,-701558691),p=o(p,i,f,l,t[n+10],9,38016083),l=o(l,p,i,f,t[n+15],14,-660478335),f=o(f,l,p,i,t[n+4],20,-405537848),i=o(i,f,l,p,t[n+9],5,568446438),p=o(p,i,f,l,t[n+14],9,-1019803690),l=o(l,p,i,f,t[n+3],14,-187363961),f=o(f,l,p,i,t[n+8],20,1163531501),i=o(i,f,l,p,t[n+13],5,-1444681467),p=o(p,i,f,l,t[n+2],9,-51403784),l=o(l,p,i,f,t[n+7],14,1735328473),f=o(f,l,p,i,t[n+12],20,-1926607734),i=a(i,f,l,p,t[n+5],4,-378558),p=a(p,i,f,l,t[n+8],11,-2022574463),l=a(l,p,i,f,t[n+11],16,1839030562),f=a(f,l,p,i,t[n+14],23,-35309556),i=a(i,f,l,p,t[n+1],4,-1530992060),p=a(p,i,f,l,t[n+4],11,1272893353),l=a(l,p,i,f,t[n+7],16,-155497632),f=a(f,l,p,i,t[n+10],23,-1094730640),i=a(i,f,l,p,t[n+13],4,681279174),p=a(p,i,f,l,t[n],11,-358537222),l=a(l,p,i,f,t[n+3],16,-722521979),f=a(f,l,p,i,t[n+6],23,76029189),i=a(i,f,l,p,t[n+9],4,-640364487),p=a(p,i,f,l,t[n+12],11,-421815835),l=a(l,p,i,f,t[n+15],16,530742520),f=a(f,l,p,i,t[n+2],23,-995338651),i=c(i,f,l,p,t[n],6,-198630844),p=c(p,i,f,l,t[n+7],10,1126891415),l=c(l,p,i,f,t[n+14],15,-1416354905),f=c(f,l,p,i,t[n+5],21,-57434055),i=c(i,f,l,p,t[n+12],6,1700485571),p=c(p,i,f,l,t[n+3],10,-1894986606),l=c(l,p,i,f,t[n+10],15,-1051523),f=c(f,l,p,i,t[n+1],21,-2054922799),i=c(i,f,l,p,t[n+8],6,1873313359),p=c(p,i,f,l,t[n+15],10,-30611744),l=c(l,p,i,f,t[n+6],15,-1560198380),f=c(f,l,p,i,t[n+13],21,1309151649),i=c(i,f,l,p,t[n+4],6,-145523070),p=c(p,i,f,l,t[n+11],10,-1120210379),l=c(l,p,i,f,t[n+2],15,718787259),f=c(f,l,p,i,t[n+9],21,-343485551),i=r(i,e),f=r(f,d),l=r(l,s),p=r(p,h)}return[i,f,l,p]}(function(t){if(0===t.length)return[];let n=8*t.length,r=new Uint32Array(e(n));for(let e=0;e<n;e+=8)r[e>>5]|=(255&t[e/8])<<e%32;return r}(t),8*t.length))}},74267:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;let e="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);n.default={randomUUID:e}},15384:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default="00000000-0000-0000-0000-000000000000"},9964:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e(77888))&&r.__esModule?r:{default:r};n.default=function(t){let n;if(!(0,i.default)(t))throw TypeError("Invalid UUID");let e=new Uint8Array(16);return e[0]=(n=parseInt(t.slice(0,8),16))>>>24,e[1]=n>>>16&255,e[2]=n>>>8&255,e[3]=255&n,e[4]=(n=parseInt(t.slice(9,13),16))>>>8,e[5]=255&n,e[6]=(n=parseInt(t.slice(14,18),16))>>>8,e[7]=255&n,e[8]=(n=parseInt(t.slice(19,23),16))>>>8,e[9]=255&n,e[10]=(n=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=n/4294967296&255,e[12]=n>>>24&255,e[13]=n>>>16&255,e[14]=n>>>8&255,e[15]=255&n,e}},76678:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},41874:function(t,n){let e;Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(r)};let r=new Uint8Array(16)},13254:function(t,n){function e(t,n){return t<<n|t>>>32-n}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(t){let n=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){let n=unescape(encodeURIComponent(t));t=[];for(let e=0;e<n.length;++e)t.push(n.charCodeAt(e))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);let i=Math.ceil((t.length/4+2)/16),u=Array(i);for(let n=0;n<i;++n){let e=new Uint32Array(16);for(let r=0;r<16;++r)e[r]=t[64*n+4*r]<<24|t[64*n+4*r+1]<<16|t[64*n+4*r+2]<<8|t[64*n+4*r+3];u[n]=e}u[i-1][14]=(t.length-1)*8/4294967296,u[i-1][14]=Math.floor(u[i-1][14]),u[i-1][15]=(t.length-1)*8&4294967295;for(let t=0;t<i;++t){let i=new Uint32Array(80);for(let n=0;n<16;++n)i[n]=u[t][n];for(let t=16;t<80;++t)i[t]=e(i[t-3]^i[t-8]^i[t-14]^i[t-16],1);let o=r[0],a=r[1],c=r[2],f=r[3],l=r[4];for(let t=0;t<80;++t){let r=Math.floor(t/20),u=e(o,5)+function(t,n,e,r){switch(t){case 0:return n&e^~n&r;case 1:case 3:return n^e^r;case 2:return n&e^n&r^e&r}}(r,a,c,f)+l+n[r]+i[t]>>>0;l=f,f=c,c=e(a,30)>>>0,a=o,o=u}r[0]=r[0]+o>>>0,r[1]=r[1]+a>>>0,r[2]=r[2]+c>>>0,r[3]=r[3]+f>>>0,r[4]=r[4]+l>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},49926:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.unsafeStringify=o;var r,i=(r=e(77888))&&r.__esModule?r:{default:r};let u=[];for(let t=0;t<256;++t)u.push((t+256).toString(16).slice(1));function o(t,n=0){return(u[t[n+0]]+u[t[n+1]]+u[t[n+2]]+u[t[n+3]]+"-"+u[t[n+4]]+u[t[n+5]]+"-"+u[t[n+6]]+u[t[n+7]]+"-"+u[t[n+8]]+u[t[n+9]]+"-"+u[t[n+10]]+u[t[n+11]]+u[t[n+12]]+u[t[n+13]]+u[t[n+14]]+u[t[n+15]]).toLowerCase()}n.default=function(t,n=0){let e=o(t,n);if(!(0,i.default)(e))throw TypeError("Stringified UUID is invalid");return e}},27343:function(t,n,e){let r,i;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u,o=(u=e(41874))&&u.__esModule?u:{default:u},a=e(49926);let c=0,f=0;n.default=function(t,n,e){let u=n&&e||0,l=n||Array(16),p=(t=t||{}).node||r,d=void 0!==t.clockseq?t.clockseq:i;if(null==p||null==d){let n=t.random||(t.rng||o.default)();null==p&&(p=r=[1|n[0],n[1],n[2],n[3],n[4],n[5]]),null==d&&(d=i=(n[6]<<8|n[7])&16383)}let s=void 0!==t.msecs?t.msecs:Date.now(),h=void 0!==t.nsecs?t.nsecs:f+1,m=s-c+(h-f)/1e4;if(m<0&&void 0===t.clockseq&&(d=d+1&16383),(m<0||s>c)&&void 0===t.nsecs&&(h=0),h>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");c=s,f=h,i=d;let v=((268435455&(s+=122192928e5))*1e4+h)%4294967296;l[u++]=v>>>24&255,l[u++]=v>>>16&255,l[u++]=v>>>8&255,l[u++]=255&v;let g=s/4294967296*1e4&268435455;l[u++]=g>>>8&255,l[u++]=255&g,l[u++]=g>>>24&15|16,l[u++]=g>>>16&255,l[u++]=d>>>8|128,l[u++]=255&d;for(let t=0;t<6;++t)l[u+t]=p[t];return n||(0,a.unsafeStringify)(l)}},46076:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=u(e(18679)),i=u(e(2763));function u(t){return t&&t.__esModule?t:{default:t}}let o=(0,r.default)("v3",48,i.default);n.default=o},18679:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.URL=n.DNS=void 0,n.default=function(t,n,e){function r(t,r,o,a){var c;if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));let n=[];for(let e=0;e<t.length;++e)n.push(t.charCodeAt(e));return n}(t)),"string"==typeof r&&(r=(0,u.default)(r)),(null===(c=r)||void 0===c?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let f=new Uint8Array(16+t.length);if(f.set(r),f.set(t,r.length),(f=e(f))[6]=15&f[6]|n,f[8]=63&f[8]|128,o){a=a||0;for(let t=0;t<16;++t)o[a+t]=f[t];return o}return(0,i.unsafeStringify)(f)}try{r.name=t}catch(t){}return r.DNS=o,r.URL=a,r};var r,i=e(49926),u=(r=e(9964))&&r.__esModule?r:{default:r};let o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";n.DNS=o;let a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";n.URL=a},85854:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(e(74267)),i=o(e(41874)),u=e(49926);function o(t){return t&&t.__esModule?t:{default:t}}n.default=function(t,n,e){if(r.default.randomUUID&&!n&&!t)return r.default.randomUUID();let o=(t=t||{}).random||(t.rng||i.default)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,n){e=e||0;for(let t=0;t<16;++t)n[e+t]=o[t];return n}return(0,u.unsafeStringify)(o)}},95899:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=u(e(18679)),i=u(e(13254));function u(t){return t&&t.__esModule?t:{default:t}}let o=(0,r.default)("v5",80,i.default);n.default=o},77888:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e(76678))&&r.__esModule?r:{default:r};n.default=function(t){return"string"==typeof t&&i.default.test(t)}},25791:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e(77888))&&r.__esModule?r:{default:r};n.default=function(t){if(!(0,i.default)(t))throw TypeError("Invalid UUID");return parseInt(t.slice(14,15),16)}},16:function(t,n,e){e.d(n,{SH:function(){return V}}),(r=u||(u={})).SetActiveSlice="setActiveSlice",r.SetSliceZoneSize="setSliceZoneSize",(i=o||(o={})).Ping="ping",i.SetSliceZone="setSliceZone",i.ScrollToSlice="scrollToSlice";var r,i,u,o,a,c,f,l,p,d=e(80734);(a||(a={})).Connect="connect",(c||(c={})).Ready="ready";var s=Object.defineProperty,h=(t,n,e)=>n in t?s(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,m=(t,n,e)=>(h(t,"symbol"!=typeof n?n+"":n,e),e);class v extends Error{constructor(t){super(t.msg),m(this,"response"),this.response=t}}class g extends Error{constructor(){super("Connection timed out")}}class y extends Error{constructor(t){super("Too many concurrent requests"),m(this,"request"),this.request=t}}class b extends Error{constructor(t){super(`Request \`${t.requestID}\` timed out`),m(this,"request"),this.request=t}}class _ extends Error{}class I extends Error{constructor(){super("Port is not set")}}class R extends Error{constructor(){super("Channel is not set")}}let S=0,T=(t,n,e="")=>({requestID:`${e}${S++}`,type:t,data:n}),x=(t,n,e=200)=>{var r;if(e>=400)throw TypeError(`Invalid success status code, expected status to be within \`[100;400[\`, got \`${e}\``);return{requestID:t,status:e,msg:(null==(r=d.message[e])?void 0:r.replace(/\.$/,"").toLowerCase())??"",data:n}},w=(t,n,e=400)=>{var r;if(e<400)throw TypeError(`Invalid error status code, expected status to be within \`[500;600[\`, got \`${e}\``);return{requestID:t,status:e,msg:(null==(r=d.message[e])?void 0:r.replace(/\.$/,"").toLowerCase())??"",error:n}},M=t=>{if("object"!=typeof t||null===t)throw TypeError(`Invalid message received, expected message to be of type \`object\`, got \`${typeof t}\``);if(Object.keys(t).every(t=>["requestID","type","data","status","msg","error"].includes(t))){if("string"!=typeof t.requestID)throw TypeError(`Invalid message received, expected \`message.requestID\` to be of type \`string\`, got \`${typeof t.id}\``)}else throw TypeError(`Invalid message received: ${JSON.stringify(t)}`);return t},O=t=>"type"in t,E=t=>!("type"in t),C=t=>E(t)&&!("error"in t);var k=Object.defineProperty,W=(t,n,e)=>n in t?k(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,F=(t,n,e)=>(W(t,"symbol"!=typeof n?n+"":n,e),e);let P={debug:!1,maximumRequestConcurrency:20,defaultTimeout:5e3,requestIDPrefix:"channel-"};class A{constructor(t,n){F(this,"requestHandlers"),F(this,"options"),F(this,"_port",null),F(this,"_pendingRequests",new Map),this.requestHandlers=t,this.options={...P,...n}}get port(){if(!this._port)throw new I;return this._port}set port(t){this._port&&(this._port.onmessage=null),this._port=t,this._port&&(this._port.onmessage=this.onMessage.bind(this))}createRequestMessage(t,n){return T(t,n,this.options.requestIDPrefix)}async onMessage(t){this.options.debug&&console.debug(t.data);try{let n=M(t.data);if(O(n)){if(this.requestHandlers[n.type])try{let t=await this.requestHandlers[n.type](n,{success:x.bind(this,n.requestID),error:w.bind(this,n.requestID)});this.postResponse(t)}catch(t){this.postResponse(w(n.requestID,t,500))}else this.postResponse(w(n.requestID,void 0,501))}else this._pendingRequests.has(n.requestID)?(this._pendingRequests.get(n.requestID)(n),this._pendingRequests.delete(n.requestID)):console.error(`Unknown request ID received in response: ${JSON.stringify(n)}`)}catch(t){if(t instanceof TypeError)console.warn(t.message);else throw t}}postRequest(t,n=t=>this.port.postMessage(t),e={}){if(this.options.debug&&console.debug(t),this._pendingRequests.size>=this.options.maximumRequestConcurrency)throw new y(t);return new Promise((r,i)=>{let u=setTimeout(()=>{this._pendingRequests.has(t.requestID)&&this._pendingRequests.delete(t.requestID),i(new b(t))},e.timeout||this.options.defaultTimeout);this._pendingRequests.set(t.requestID,t=>{clearTimeout(u),C(t)?r(t):i(new v(t))}),n(t)})}postResponse(t,n=t=>this.port.postMessage(t)){return this.options.debug&&console.debug(t),n(t),t}}var D=Object.defineProperty,U=(t,n,e)=>n in t?D(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,L=(t,n,e)=>(U(t,"symbol"!=typeof n?n+"":n,e),e);let N={connectTimeout:2e4,requestIDPrefix:"emitter-"};class j extends A{constructor(t,n,e){super(n,{...N,...e}),L(this,"_target"),L(this,"_channel",null),L(this,"_receiverReady",""),L(this,"_receiverReadyCallback",null),L(this,"_connected",!1),this._target=t,window.addEventListener("message",t=>{this._onPublicMessage(t)})}get channel(){if(!this._channel)throw new R;return this._channel}set channel(t){this._channel=t,this._channel?this.port=this._channel.port1:this.port=null}get connected(){return this._connected}connect(t={},n=!1){return this.disconnect(),n&&(this._receiverReady=""),new Promise((n,e)=>{this._target.addEventListener("load",()=>{if(!this._target.contentWindow)return e(Error("Target window is not available"));let r=setTimeout(()=>{e(new g)},this.options.connectTimeout),i=async()=>{clearTimeout(r),this.channel=new MessageChannel;let e=this.createRequestMessage(a.Connect,t),i=await this.postRequest(e,t=>{this._target.contentWindow.postMessage(t,"*",[this.channel.port2])});this.postResponse(x(this._receiverReady,void 0),t=>{this._target.contentWindow.postMessage(t,"*")}),this._connected=!0,n(i)};this._receiverReady?i():this._receiverReadyCallback=i},{once:!0})})}disconnect(){this._connected=!1,this.channel=null}async _onPublicMessage(t){if(t.source===this._target.contentWindow)try{let n=M(t.data);if(O(n)){if(this.options.debug&&console.debug(t.data),n.type===c.Ready){if(this._receiverReady=n.requestID,this._receiverReadyCallback){let t=this._receiverReadyCallback();this._receiverReadyCallback=null,await t}}else this.postResponse(w(n.requestID,void 0),n=>{t.source.postMessage(n,t.origin)})}}catch(t){if(t instanceof TypeError);else throw t}}postFormattedRequest(t,n,e={}){if(!this._connected)throw new _("Emitter is not connected, use `ChannelEmitter.connect()` first");return this.postRequest(this.createRequestMessage(t,n),void 0,e)}}var q=Object.defineProperty,G=(t,n,e)=>n in t?q(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,K=(t,n,e)=>(G(t,"symbol"!=typeof n?n+"":n,e),e);let Y={requestIDPrefix:"client-"};class V extends j{constructor(t,n,e){var r,i;let a=(null==e?void 0:e.debug)||/[?&]debug=true/i.test(decodeURIComponent(window.location.search));super(t,{[u.SetActiveSlice]:(t,n)=>n.success(),[u.SetSliceZoneSize]:(t,n)=>n.success(),...n},{...Y,...e,debug:a}),K(this,f,async()=>await this.postFormattedRequest(o.Ping)),K(this,l,async t=>await this.postFormattedRequest(o.SetSliceZone,t)),K(this,p,async t=>await this.postFormattedRequest(o.ScrollToSlice,t)),a&&(window.prismic||(window.prismic={}),(r=window.prismic).sliceSimulator||(r.sliceSimulator={}),(i=window.prismic.sliceSimulator).client||(i.client=[]),window.prismic.sliceSimulator.client.push(this))}}f=o.Ping,l=o.SetSliceZone,p=o.ScrollToSlice,u.SetActiveSlice,u.SetSliceZoneSize},25865:function(t,n,e){e.d(n,{S:function(){return h}});var r=e(78298),i=e(681),u=e(21895),o=e(63248),a=class extends o.l{constructor(t={}){super(),this.config=t,this.#t=new Map}#t;build(t,n,e){let u=n.queryKey,o=n.queryHash??(0,r.Rm)(u,n),a=this.get(o);return a||(a=new i.A({cache:this,queryKey:u,queryHash:o,options:t.defaultQueryOptions(n),state:e,defaultOptions:t.getQueryDefaults(u)}),this.add(a)),a}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){let n=this.#t.get(t.queryHash);n&&(t.destroy(),n===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){u.V.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){let n={exact:!0,...t};return this.getAll().find(t=>(0,r._x)(n,t))}findAll(t={}){let n=this.getAll();return Object.keys(t).length>0?n.filter(n=>(0,r._x)(t,n)):n}notify(t){u.V.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){u.V.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){u.V.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},c=e(80457),f=class extends o.l{constructor(t={}){super(),this.config=t,this.#n=new Map,this.#e=Date.now()}#n;#e;build(t,n,e){let r=new c.m({mutationCache:this,mutationId:++this.#e,options:t.defaultMutationOptions(n),state:e});return this.add(r),r}add(t){let n=l(t),e=this.#n.get(n)??[];e.push(t),this.#n.set(n,e),this.notify({type:"added",mutation:t})}remove(t){let n=l(t);if(this.#n.has(n)){let e=this.#n.get(n)?.filter(n=>n!==t);e&&(0===e.length?this.#n.delete(n):this.#n.set(n,e))}this.notify({type:"removed",mutation:t})}canRun(t){let n=this.#n.get(l(t))?.find(t=>"pending"===t.state.status);return!n||n===t}runNext(t){let n=this.#n.get(l(t))?.find(n=>n!==t&&n.state.isPaused);return n?.continue()??Promise.resolve()}clear(){u.V.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...this.#n.values()].flat()}find(t){let n={exact:!0,...t};return this.getAll().find(t=>(0,r.X7)(n,t))}findAll(t={}){return this.getAll().filter(n=>(0,r.X7)(t,n))}notify(t){u.V.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){let t=this.getAll().filter(t=>t.state.isPaused);return u.V.batch(()=>Promise.all(t.map(t=>t.continue().catch(r.ZT))))}};function l(t){return t.options.scope?.id??String(t.mutationId)}var p=e(25777),d=e(63965);function s(t,{pages:n,pageParams:e}){let r=n.length-1;return n.length>0?t.getNextPageParam(n[r],n,e[r],e):void 0}var h=class{#r;#i;#u;#o;#a;#c;#f;#l;constructor(t={}){this.#r=t.queryCache||new a,this.#i=t.mutationCache||new f,this.#u=t.defaultOptions||{},this.#o=new Map,this.#a=new Map,this.#c=0}mount(){this.#c++,1===this.#c&&(this.#f=p.j.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#r.onFocus())}),this.#l=d.N.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#r.onOnline())}))}unmount(){this.#c--,0===this.#c&&(this.#f?.(),this.#f=void 0,this.#l?.(),this.#l=void 0)}isFetching(t){return this.#r.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#i.findAll({...t,status:"pending"}).length}getQueryData(t){let n=this.defaultQueryOptions({queryKey:t});return this.#r.get(n.queryHash)?.state.data}ensureQueryData(t){let n=this.getQueryData(t.queryKey);if(void 0===n)return this.fetchQuery(t);{let e=this.defaultQueryOptions(t),i=this.#r.build(this,e);return t.revalidateIfStale&&i.isStaleByTime((0,r.KC)(e.staleTime,i))&&this.prefetchQuery(e),Promise.resolve(n)}}getQueriesData(t){return this.#r.findAll(t).map(({queryKey:t,state:n})=>[t,n.data])}setQueryData(t,n,e){let i=this.defaultQueryOptions({queryKey:t}),u=this.#r.get(i.queryHash),o=u?.state.data,a=(0,r.SE)(n,o);if(void 0!==a)return this.#r.build(this,i).setData(a,{...e,manual:!0})}setQueriesData(t,n,e){return u.V.batch(()=>this.#r.findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,n,e)]))}getQueryState(t){let n=this.defaultQueryOptions({queryKey:t});return this.#r.get(n.queryHash)?.state}removeQueries(t){let n=this.#r;u.V.batch(()=>{n.findAll(t).forEach(t=>{n.remove(t)})})}resetQueries(t,n){let e=this.#r,r={type:"active",...t};return u.V.batch(()=>(e.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries(r,n)))}cancelQueries(t={},n={}){let e={revert:!0,...n};return Promise.all(u.V.batch(()=>this.#r.findAll(t).map(t=>t.cancel(e)))).then(r.ZT).catch(r.ZT)}invalidateQueries(t={},n={}){return u.V.batch(()=>{if(this.#r.findAll(t).forEach(t=>{t.invalidate()}),"none"===t.refetchType)return Promise.resolve();let e={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(e,n)})}refetchQueries(t={},n){let e={...n,cancelRefetch:n?.cancelRefetch??!0};return Promise.all(u.V.batch(()=>this.#r.findAll(t).filter(t=>!t.isDisabled()).map(t=>{let n=t.fetch(void 0,e);return e.throwOnError||(n=n.catch(r.ZT)),"paused"===t.state.fetchStatus?Promise.resolve():n}))).then(r.ZT)}fetchQuery(t){let n=this.defaultQueryOptions(t);void 0===n.retry&&(n.retry=!1);let e=this.#r.build(this,n);return e.isStaleByTime((0,r.KC)(n.staleTime,e))?e.fetch(n):Promise.resolve(e.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(r.ZT).catch(r.ZT)}fetchInfiniteQuery(t){var n;return t.behavior=(n=t.pages,{onFetch:(t,e)=>{let i=async()=>{let e;let i=t.options,u=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],a=t.state.data?.pageParams||[],c=!1,f=n=>{Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(t.signal.aborted?c=!0:t.signal.addEventListener("abort",()=>{c=!0}),t.signal)})},l=(0,r.cG)(t.options,t.fetchOptions),p=async(n,e,i)=>{if(c)return Promise.reject();if(null==e&&n.pages.length)return Promise.resolve(n);let u={queryKey:t.queryKey,pageParam:e,direction:i?"backward":"forward",meta:t.options.meta};f(u);let o=await l(u),{maxPages:a}=t.options,p=i?r.Ht:r.VX;return{pages:p(n.pages,o,a),pageParams:p(n.pageParams,e,a)}};if(u&&o.length){let t="backward"===u,n={pages:o,pageParams:a},r=(t?function(t,{pages:n,pageParams:e}){return n.length>0?t.getPreviousPageParam?.(n[0],n,e[0],e):void 0}:s)(i,n);e=await p(n,r,t)}else{e=await p({pages:[],pageParams:[]},a[0]??i.initialPageParam);let t=n??o.length;for(let n=1;n<t;n++){let t=s(i,e);if(null==t)break;e=await p(e,t)}}return e};t.options.persister?t.fetchFn=()=>t.options.persister?.(i,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e):t.fetchFn=i}}),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(r.ZT).catch(r.ZT)}resumePausedMutations(){return d.N.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#r}getMutationCache(){return this.#i}getDefaultOptions(){return this.#u}setDefaultOptions(t){this.#u=t}setQueryDefaults(t,n){this.#o.set((0,r.Ym)(t),{queryKey:t,defaultOptions:n})}getQueryDefaults(t){let n=[...this.#o.values()],e={};return n.forEach(n=>{(0,r.to)(t,n.queryKey)&&(e={...e,...n.defaultOptions})}),e}setMutationDefaults(t,n){this.#a.set((0,r.Ym)(t),{mutationKey:t,defaultOptions:n})}getMutationDefaults(t){let n=[...this.#a.values()],e={};return n.forEach(n=>{(0,r.to)(t,n.mutationKey)&&(e={...e,...n.defaultOptions})}),e}defaultQueryOptions(t){if(t._defaulted)return t;let n={...this.#u.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return n.queryHash||(n.queryHash=(0,r.Rm)(n.queryKey,n)),void 0===n.refetchOnReconnect&&(n.refetchOnReconnect="always"!==n.networkMode),void 0===n.throwOnError&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),!0!==n.enabled&&n.queryFn===r.CN&&(n.enabled=!1),n}defaultMutationOptions(t){return t?._defaulted?t:{...this.#u.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#r.clear(),this.#i.clear()}}},19108:function(t){t.exports=JSON.parse('[{"url":"https://twitter.com/prismicio/status/1356293316158095361","oembed":{"embed_url":"https://twitter.com/prismicio/status/1356293316158095361","author_name":"Prismic","author_url":"https://twitter.com/prismicio","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">Gatsby is a popular choice for Prismic users and we work hard on delivering a CMS that plays to its strengths.<br><br>But, what makes <a href=\\"https://twitter.com/GatsbyJS?ref_src=twsrc%5Etfw\\">@GatsbyJS</a> so popular?<br><br>Here are some of <a href=\\"https://twitter.com/mxstbr?ref_src=twsrc%5Etfw\\">@mxstbr</a>&#39;s thoughts on Gatsby&#39;s success and how they&#39;re improving developer experience.<a href=\\"https://t.co/ZjCPvsWWUD\\">https://t.co/ZjCPvsWWUD</a> <a href=\\"https://t.co/EQqzJpeNKl\\">pic.twitter.com/EQqzJpeNKl</a></p>&mdash; Prismic (@prismicio) <a href=\\"https://twitter.com/prismicio/status/1356293316158095361?ref_src=twsrc%5Etfw\\">February 1, 2021</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}},{"url":"https://twitter.com/timbenniks/status/1304146886832594944","oembed":{"embed_url":"https://twitter.com/timbenniks/status/1304146886832594944","author_name":"Tim Benniks","author_url":"https://twitter.com/timbenniks","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">I’ve been diving deep on <a href=\\"https://twitter.com/prismicio?ref_src=twsrc%5Etfw\\">@prismicio</a> <a href=\\"https://twitter.com/hashtag/slicemachine?src=hash&amp;ref_src=twsrc%5Etfw\\">#slicemachine</a> today. I made all my own components and I used custom slices. It works like a charm with <a href=\\"https://twitter.com/nuxt_js?ref_src=twsrc%5Etfw\\">@nuxt_js</a>. Also\\": I’m coding with this view. <a href=\\"https://t.co/F0I8X9gz39\\">pic.twitter.com/F0I8X9gz39</a></p>&mdash; Tim Benniks (@timbenniks) <a href=\\"https://twitter.com/timbenniks/status/1304146886832594944?ref_src=twsrc%5Etfw\\">September 10, 2020</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}},{"url":"https://twitter.com/prismicio/status/1354112310252630016","oembed":{"embed_url":"https://twitter.com/prismicio/status/1354112310252630016","author_name":"Prismic","author_url":"https://twitter.com/prismicio","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">We&#39;re launching a new <a href=\\"https://twitter.com/hashtag/SliceContest?src=hash&amp;ref_src=twsrc%5Etfw\\">#SliceContest</a> tomorrow along with Slice Machine upgrades.<br><br>Want to know more? Join us at tomorrow&#39;s Product Meet-up\uD83D\uDC47<a href=\\"https://t.co/prYSypiAvB\\">https://t.co/prYSypiAvB</a><br><br>We can&#39;t tell you any further details for now, but here&#39;s a sneak peek at the prizes\uD83D\uDC40 <a href=\\"https://t.co/fV1eoGlEBh\\">pic.twitter.com/fV1eoGlEBh</a></p>&mdash; Prismic (@prismicio) <a href=\\"https://twitter.com/prismicio/status/1354112310252630016?ref_src=twsrc%5Etfw\\">January 26, 2021</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}},{"url":"https://twitter.com/prismicio/status/1354835716430319617","oembed":{"embed_url":"https://twitter.com/prismicio/status/1354835716430319617","author_name":"Prismic","author_url":"https://twitter.com/prismicio","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">Does anyone want to create a wildly popular website for discussing &#39;Wall Street Bets&#39; using Prismic?<br><br>It may or may not have to look a lot like <a href=\\"https://twitter.com/hashtag/reddit?src=hash&amp;ref_src=twsrc%5Etfw\\">#reddit</a> and we won&#39;t make it private.<br><br>Just asking for some friends...</p>&mdash; Prismic (@prismicio) <a href=\\"https://twitter.com/prismicio/status/1354835716430319617?ref_src=twsrc%5Etfw\\">January 28, 2021</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}}]')},88416:function(t){t.exports=JSON.parse('[{"name":"Moulin Rouge","imageUrl":"https://lh4.googleusercontent.com/proxy/xJPIDVmq8AZjNlaDRkNadqW8ojW8e3Xu81Fgf3WuaVkwp_8d-hho0xbZHGeMpzIX58tV8HCTeb6nttHMr5sJiYKIr-Nmm4IQ2OVgkisg5wXt_6dhpLEeQhjNvBzZD2poV3AHZMuhb0cOUVdM-htjlyGJ2aLz6A=w408-h272-k-no","points":{"latitude":48.8841267,"longitude":2.3300579}},{"name":"Prismic Headquarters","imageUrl":"/prismic-headquarters.png","points":{"latitude":48.8703712,"longitude":2.3865198}},{"name":"Eiffel Tower","imageUrl":"https://lh5.googleusercontent.com/p/AF1QipPs_9Q0oquXoQMMEg45fpFd_Hkn8B9ljATTaDRY=w408-h295-k-no","points":{"latitude":48.8583736,"longitude":2.2922926}},{"name":"Louvre Museum","imageUrl":"https://lh5.googleusercontent.com/p/AF1QipNbg2fGRkUEXpmsBuhEgANtpr-SH_SrsaKFsamK=w408-h270-k-no","points":{"latitude":48.8606111,"longitude":2.337644}}]')},15542:function(t){t.exports=JSON.parse('[{"url":"https://images.unsplash.com/photo-1515378791036-0648a3ef77b2?ixid=MXwyMDEzOTN8MXwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":5616,"height":3744},{"url":"https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":4076,"height":2712},{"url":"https://images.unsplash.com/photo-1589652717521-10c0d092dea9?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":4752,"height":3168},{"url":"https://images.unsplash.com/photo-1515378960530-7c0da6231fb1?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":5616,"height":3744},{"url":"https://images.unsplash.com/photo-1547394765-185e1e68f34e?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":6000,"height":4000},{"url":"https://images.unsplash.com/photo-1601933973783-43cf8a7d4c5f?ixid=MXwyMDEzOTN8MXwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":6597,"height":4398},{"url":"https://images.unsplash.com/photo-1537498425277-c283d32ef9db?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":4380,"height":2895},{"url":"https://images.unsplash.com/photo-1496181133206-80ce9b88a853?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":5243,"height":3495},{"url":"https://images.unsplash.com/photo-1448932223592-d1fc686e76ea?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":3500,"height":2338},{"url":"https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":3882,"height":2584},{"url":"https://images.unsplash.com/photo-1560762484-813fc97650a0?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":3344,"height":2509},{"url":"https://images.unsplash.com/photo-1544731612-de7f96afe55f?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":6000,"height":4000},{"url":"https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":5848,"height":3899},{"url":"https://images.unsplash.com/photo-1560457079-9a6532ccb118?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":4160,"height":3120},{"url":"https://images.unsplash.com/photo-1547082299-de196ea013d6?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":4272,"height":2848},{"url":"https://images.unsplash.com/photo-1551739440-5dd934d3a94a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3456,"height":4320},{"url":"https://images.unsplash.com/photo-1531771686035-25f47595c87a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3024,"height":3778},{"url":"https://images.unsplash.com/photo-1471897488648-5eae4ac6686b?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3560,"height":5340},{"url":"https://images.unsplash.com/photo-1504198070170-4ca53bb1c1fa?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":2747,"height":4120},{"url":"https://images.unsplash.com/photo-1494173853739-c21f58b16055?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3277,"height":4092},{"url":"https://images.unsplash.com/photo-1541807084-5c52b6b3adef?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":4000,"height":6000},{"url":"https://images.unsplash.com/photo-1593642633279-1796119d5482?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":4016,"height":6016},{"url":"https://images.unsplash.com/photo-1545239351-1141bd82e8a6?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3212,"height":3880},{"url":"https://images.unsplash.com/photo-1491975474562-1f4e30bc9468?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":4000,"height":6000},{"url":"https://images.unsplash.com/photo-1587614295999-6c1c13675117?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3810,"height":5715},{"url":"https://images.unsplash.com/photo-1525547719571-a2d4ac8945e2?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3648,"height":4560},{"url":"https://images.unsplash.com/photo-1587905069134-008460d7a636?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3935,"height":5894},{"url":"https://images.unsplash.com/photo-1587613865763-4b8b0d19e8ab?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":12288,"height":16384},{"url":"https://images.unsplash.com/photo-1589321599763-d66926c29613?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3168,"height":4752},{"url":"https://images.unsplash.com/photo-1589321578146-4c1ba445cc88?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3168,"height":4752},{"url":"https://images.unsplash.com/photo-1593642532973-d31b6557fa68?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":8640,"height":8640},{"url":"https://images.unsplash.com/photo-1591012911207-0dbac31f37da?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4000,"height":4000},{"url":"https://images.unsplash.com/photo-1576662712957-9c79ae1280f8?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":3456,"height":3456},{"url":"https://images.unsplash.com/photo-1606248897732-2c5ffe759c04?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4000,"height":4000},{"url":"https://images.unsplash.com/photo-1600804931749-2da4ce26c869?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":3199,"height":3199},{"url":"https://images.unsplash.com/photo-1607582278038-6bebbd4d7b72?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4010,"height":4010},{"url":"https://images.unsplash.com/photo-1587840171670-8b850147754e?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4480,"height":4480},{"url":"https://images.unsplash.com/photo-1493119508027-2b584f234d6c?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":3424,"height":3424},{"url":"https://images.unsplash.com/photo-1600861194802-a2b11076bc51?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":2545,"height":2545},{"url":"https://images.unsplash.com/photo-1571126770897-2d612d1f7b89?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":3456,"height":3456},{"url":"https://images.unsplash.com/photo-1586952518485-11b180e92764?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":4172,"height":4000},{"url":"https://images.unsplash.com/photo-1587653915936-5623ea0b949a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":4000,"height":4000},{"url":"https://images.unsplash.com/photo-1607582278043-57198ac8da43?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":4024,"height":4024},{"url":"https://images.unsplash.com/photo-1579931794097-0ad001e51edb?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":3958,"height":3958},{"url":"https://images.unsplash.com/photo-1596195689404-24d8a8d1c6ea?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":5000,"height":4613}]')},93953:function(t){t.exports=JSON.parse('["ability","able","aboard","about","above","accept","accident","according","account","accurate","acres","across","act","action","active","activity","actual","actually","add","addition","additional","adjective","adult","adventure","advice","affect","afraid","after","afternoon","again","against","age","ago","agree","ahead","aid","air","airplane","alike","alive","all","allow","almost","alone","along","aloud","alphabet","already","also","although","am","among","amount","ancient","angle","angry","animal","announced","another","answer","ants","any","anybody","anyone","anything","anyway","anywhere","apart","apartment","appearance","apple","applied","appropriate","are","area","arm","army","around","arrange","arrangement","arrive","arrow","art","article","as","aside","ask","asleep","at","ate","atmosphere","atom","atomic","attached","attack","attempt","attention","audience","author","automobile","available","average","avoid","aware","away","baby","back","bad","badly","bag","balance","ball","balloon","band","bank","bar","bare","bark","barn","base","baseball","basic","basis","basket","bat","battle","be","bean","bear","beat","beautiful","beauty","became","because","become","becoming","bee","been","before","began","beginning","begun","behavior","behind","being","believed","bell","belong","below","belt","bend","beneath","bent","beside","best","bet","better","between","beyond","bicycle","bigger","biggest","bill","birds","birth","birthday","bit","bite","black","blank","blanket","blew","blind","block","blood","blow","blue","board","boat","body","bone","book","border","born","both","bottle","bottom","bound","bow","bowl","box","boy","brain","branch","brass","brave","bread","break","breakfast","breath","breathe","breathing","breeze","brick","bridge","brief","bright","bring","broad","broke","broken","brother","brought","brown","brush","buffalo","build","building","built","buried","burn","burst","bus","bush","business","busy","but","butter","buy","by","cabin","cage","cake","call","calm","came","camera","camp","can","canal","cannot","cap","capital","captain","captured","car","carbon","card","care","careful","carefully","carried","carry","case","cast","castle","cat","catch","cattle","caught","cause","cave","cell","cent","center","central","century","certain","certainly","chain","chair","chamber","chance","change","changing","chapter","character","characteristic","charge","chart","check","cheese","chemical","chest","chicken","chief","child","children","choice","choose","chose","chosen","church","circle","circus","citizen","city","class","classroom","claws","clay","clean","clear","clearly","climate","climb","clock","close","closely","closer","cloth","clothes","clothing","cloud","club","coach","coal","coast","coat","coffee","cold","collect","college","colony","color","column","combination","combine","come","comfortable","coming","command","common","community","company","compare","compass","complete","completely","complex","composed","composition","compound","concerned","condition","congress","connected","consider","consist","consonant","constantly","construction","contain","continent","continued","contrast","control","conversation","cook","cookies","cool","copper","copy","corn","corner","correct","correctly","cost","cotton","could","count","country","couple","courage","course","court","cover","cow","cowboy","crack","cream","create","creature","crew","crop","cross","crowd","cry","cup","curious","current","curve","customs","cut","cutting","daily","damage","dance","danger","dangerous","dark","darkness","date","daughter","dawn","day","dead","deal","dear","death","decide","declared","deep","deeply","deer","definition","degree","depend","depth","describe","desert","design","desk","detail","determine","develop","development","diagram","diameter","did","die","differ","difference","different","difficult","difficulty","dig","dinner","direct","direction","directly","dirt","dirty","disappear","discover","discovery","discuss","discussion","disease","dish","distance","distant","divide","division","do","doctor","does","dog","doing","doll","dollar","done","donkey","door","dot","double","doubt","down","dozen","draw","drawn","dream","dress","drew","dried","drink","drive","driven","driver","driving","drop","dropped","drove","dry","duck","due","dug","dull","during","dust","duty","each","eager","ear","earlier","early","earn","earth","easier","easily","east","easy","eat","eaten","edge","education","effect","effort","egg","eight","either","electric","electricity","element","elephant","eleven","else","empty","end","enemy","energy","engine","engineer","enjoy","enough","enter","entire","entirely","environment","equal","equally","equator","equipment","escape","especially","essential","establish","even","evening","event","eventually","ever","every","everybody","everyone","everything","everywhere","evidence","exact","exactly","examine","example","excellent","except","exchange","excited","excitement","exciting","exclaimed","exercise","exist","expect","experience","experiment","explain","explanation","explore","express","expression","extra","eye","face","facing","fact","factor","factory","failed","fair","fairly","fall","fallen","familiar","family","famous","far","farm","farmer","farther","fast","fastened","faster","fat","father","favorite","fear","feathers","feature","fed","feed","feel","feet","fell","fellow","felt","fence","few","fewer","field","fierce","fifteen","fifth","fifty","fight","fighting","figure","fill","film","final","finally","find","fine","finest","finger","finish","fire","fireplace","firm","first","fish","five","fix","flag","flame","flat","flew","flies","flight","floating","floor","flow","flower","fly","fog","folks","follow","food","foot","football","for","force","foreign","forest","forget","forgot","forgotten","form","former","fort","forth","forty","forward","fought","found","four","fourth","fox","frame","free","freedom","frequently","fresh","friend","friendly","frighten","frog","from","front","frozen","fruit","fuel","full","fully","fun","function","funny","fur","furniture","further","future","gain","game","garage","garden","gas","gasoline","gate","gather","gave","general","generally","gentle","gently","get","getting","giant","gift","girl","give","given","giving","glad","glass","globe","go","goes","gold","golden","gone","good","goose","got","government","grabbed","grade","gradually","grain","grandfather","grandmother","graph","grass","gravity","gray","great","greater","greatest","greatly","green","grew","ground","group","grow","grown","growth","guard","guess","guide","gulf","gun","habit","had","hair","half","halfway","hall","hand","handle","handsome","hang","happen","happened","happily","happy","harbor","hard","harder","hardly","has","hat","have","having","hay","he","headed","heading","health","heard","hearing","heart","heat","heavy","height","held","hello","help","helpful","her","herd","here","herself","hidden","hide","high","higher","highest","highway","hill","him","himself","his","history","hit","hold","hole","hollow","home","honor","hope","horn","horse","hospital","hot","hour","house","how","however","huge","human","hundred","hung","hungry","hunt","hunter","hurried","hurry","hurt","husband","ice","idea","identity","if","ill","image","imagine","immediately","importance","important","impossible","improve","in","inch","include","including","income","increase","indeed","independent","indicate","individual","industrial","industry","influence","information","inside","instance","instant","instead","instrument","interest","interior","into","introduced","invented","involved","iron","is","island","it","its","itself","jack","jar","jet","job","join","joined","journey","joy","judge","jump","jungle","just","keep","kept","key","kids","kill","kind","kitchen","knew","knife","know","knowledge","known","label","labor","lack","lady","laid","lake","lamp","land","language","large","larger","largest","last","late","later","laugh","law","lay","layers","lead","leader","leaf","learn","least","leather","leave","leaving","led","left","leg","length","lesson","let","letter","level","library","lie","life","lift","light","like","likely","limited","line","lion","lips","liquid","list","listen","little","live","living","load","local","locate","location","log","lonely","long","longer","look","loose","lose","loss","lost","lot","loud","love","lovely","low","lower","luck","lucky","lunch","lungs","lying","machine","machinery","mad","made","magic","magnet","mail","main","mainly","major","make","making","man","managed","manner","manufacturing","many","map","mark","market","married","mass","massage","master","material","mathematics","matter","may","maybe","me","meal","mean","means","meant","measure","meat","medicine","meet","melted","member","memory","men","mental","merely","met","metal","method","mice","middle","might","mighty","mile","military","milk","mill","mind","mine","minerals","minute","mirror","missing","mission","mistake","mix","mixture","model","modern","molecular","moment","money","monkey","month","mood","moon","more","morning","most","mostly","mother","motion","motor","mountain","mouse","mouth","move","movement","movie","moving","mud","muscle","music","musical","must","my","myself","mysterious","nails","name","nation","national","native","natural","naturally","nature","near","nearby","nearer","nearest","nearly","necessary","neck","needed","needle","needs","negative","neighbor","neighborhood","nervous","nest","never","new","news","newspaper","next","nice","night","nine","no","nobody","nodded","noise","none","noon","nor","north","nose","not","note","noted","nothing","notice","noun","now","number","numeral","nuts","object","observe","obtain","occasionally","occur","ocean","of","off","offer","office","officer","official","oil","old","older","oldest","on","once","one","only","onto","open","operation","opinion","opportunity","opposite","or","orange","orbit","order","ordinary","organization","organized","origin","original","other","ought","our","ourselves","out","outer","outline","outside","over","own","owner","oxygen","pack","package","page","paid","pain","paint","pair","palace","pale","pan","paper","paragraph","parallel","parent","park","part","particles","particular","particularly","partly","parts","party","pass","passage","past","path","pattern","pay","peace","pen","pencil","people","per","percent","perfect","perfectly","perhaps","period","person","personal","pet","phrase","physical","piano","pick","picture","pictured","pie","piece","pig","pile","pilot","pine","pink","pipe","pitch","place","plain","plan","plane","planet","planned","planning","plant","plastic","plate","plates","play","pleasant","please","pleasure","plenty","plural","plus","pocket","poem","poet","poetry","point","pole","police","policeman","political","pond","pony","pool","poor","popular","population","porch","port","position","positive","possible","possibly","post","pot","potatoes","pound","pour","powder","power","powerful","practical","practice","prepare","present","president","press","pressure","pretty","prevent","previous","price","pride","primitive","principal","principle","printed","private","prize","probably","problem","process","produce","product","production","program","progress","promised","proper","properly","property","protection","proud","prove","provide","public","pull","pupil","pure","purple","purpose","push","put","putting","quarter","queen","question","quick","quickly","quiet","quietly","quite","rabbit","race","radio","railroad","rain","raise","ran","ranch","range","rapidly","rate","rather","raw","rays","reach","read","reader","ready","real","realize","rear","reason","recall","receive","recent","recently","recognize","record","red","refer","refused","region","regular","related","relationship","religious","remain","remarkable","remember","remove","repeat","replace","replied","report","represent","require","research","respect","rest","result","return","review","rhyme","rhythm","rice","rich","ride","riding","right","ring","rise","rising","river","road","roar","rock","rocket","rocky","rod","roll","roof","room","root","rope","rose","rough","round","route","row","rubbed","rubber","rule","ruler","run","running","rush","sad","saddle","safe","safety","said","sail","sale","salmon","salt","same","sand","sang","sat","satellites","satisfied","save","saved","saw","say","scale","scared","scene","school","science","scientific","scientist","score","screen","sea","search","season","seat","second","secret","section","see","seed","seeing","seems","seen","seldom","select","selection","sell","send","sense","sent","sentence","separate","series","serious","serve","service","sets","setting","settle","settlers","seven","several","shade","shadow","shake","shaking","shall","shallow","shape","share","sharp","she","sheep","sheet","shelf","shells","shelter","shine","shinning","ship","shirt","shoe","shoot","shop","shore","short","shorter","shot","should","shoulder","shout","show","shown","shut","sick","sides","sight","sign","signal","silence","silent","silk","silly","silver","similar","simple","simplest","simply","since","sing","single","sink","sister","sit","sitting","situation","six","size","skill","skin","sky","slabs","slave","sleep","slept","slide","slight","slightly","slip","slipped","slope","slow","slowly","small","smaller","smallest","smell","smile","smoke","smooth","snake","snow","so","soap","social","society","soft","softly","soil","solar","sold","soldier","solid","solution","solve","some","somebody","somehow","someone","something","sometime","somewhere","son","song","soon","sort","sound","source","south","southern","space","speak","special","species","specific","speech","speed","spell","spend","spent","spider","spin","spirit","spite","split","spoken","sport","spread","spring","square","stage","stairs","stand","standard","star","stared","start","state","statement","station","stay","steady","steam","steel","steep","stems","step","stepped","stick","stiff","still","stock","stomach","stone","stood","stop","stopped","store","storm","story","stove","straight","strange","stranger","straw","stream","street","strength","stretch","strike","string","strip","strong","stronger","struck","structure","struggle","stuck","student","studied","studying","subject","substance","success","successful","such","sudden","suddenly","sugar","suggest","suit","sum","summer","sun","sunlight","supper","supply","support","suppose","sure","surface","surprise","surrounded","swam","sweet","swept","swim","swimming","swing","swung","syllable","symbol","system","table","tail","take","taken","tales","talk","tall","tank","tape","task","taste","taught","tax","tea","teach","teacher","team","tears","teeth","telephone","television","tell","temperature","ten","tent","term","terrible","test","than","thank","that","thee","them","themselves","then","theory","there","therefore","these","they","thick","thin","thing","think","third","thirty","this","those","thou","though","thought","thousand","thread","three","threw","throat","through","throughout","throw","thrown","thumb","thus","thy","tide","tie","tight","tightly","till","time","tin","tiny","tip","tired","title","to","tobacco","today","together","told","tomorrow","tone","tongue","tonight","too","took","tool","top","topic","torn","total","touch","toward","tower","town","toy","trace","track","trade","traffic","trail","train","transportation","trap","travel","treated","tree","triangle","tribe","trick","tried","trip","troops","tropical","trouble","truck","trunk","truth","try","tube","tune","turn","twelve","twenty","twice","two","type","typical","uncle","under","underline","understanding","unhappy","union","unit","universe","unknown","unless","until","unusual","up","upon","upper","upward","us","use","useful","using","usual","usually","valley","valuable","value","vapor","variety","various","vast","vegetable","verb","vertical","very","vessels","victory","view","village","visit","visitor","voice","volume","vote","vowel","voyage","wagon","wait","walk","wall","want","war","warm","warn","was","wash","waste","watch","water","wave","way","we","weak","wealth","wear","weather","week","weigh","weight","welcome","well","went","were","west","western","wet","whale","what","whatever","wheat","wheel","when","whenever","where","wherever","whether","which","while","whispered","whistle","white","who","whole","whom","whose","why","wide","widely","wife","wild","will","willing","win","wind","window","wing","winter","wire","wise","wish","with","within","without","wolf","women","won","wonder","wonderful","wood","wooden","wool","word","wore","work","worker","world","worried","worry","worse","worth","would","wrapped","write","writer","writing","written","wrong","wrote","yard","year","yellow","yes","yesterday","yet","you","young","younger","your","yourself","youth","zero","zebra","zipper","zoo","zulu"]')},83777:function(t){t.exports=JSON.parse('["https://slicemachine.dev","https://prismic.io","http://google.com","http://twitter.com"]')},1710:function(t){t.exports=JSON.parse('{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I\'m a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}')}}]);