forked from Stock-control-supervisors/awesome-go
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
3056-714e045c603a8a65.js.download
1 lines (1 loc) · 17.1 KB
/
3056-714e045c603a8a65.js.download
1
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3056],{38355:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.eqDate=t.eqNumber=t.eqString=t.eqBoolean=t.eq=t.strictEqual=t.getStructEq=t.getTupleEq=t.Contravariant=t.getMonoid=t.getSemigroup=t.eqStrict=t.URI=t.contramap=t.tuple=t.struct=t.fromEquals=void 0;var r=n(82884);t.fromEquals=function(e){return{equals:function(t,n){return t===n||e(t,n)}}},t.struct=function(e){return(0,t.fromEquals)(function(t,n){for(var r in e)if(!e[r].equals(t[r],n[r]))return!1;return!0})},t.tuple=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,t.fromEquals)(function(t,n){return e.every(function(e,r){return e.equals(t[r],n[r])})})},t.contramap=function(e){return function(n){return(0,t.fromEquals)(function(t,r){return n.equals(e(t),e(r))})}},t.URI="Eq",t.eqStrict={equals:function(e,t){return e===t}};var o={equals:function(){return!0}};t.getSemigroup=function(){return{concat:function(e,n){return(0,t.fromEquals)(function(t,r){return e.equals(t,r)&&n.equals(t,r)})}}},t.getMonoid=function(){return{concat:(0,t.getSemigroup)().concat,empty:o}},t.Contravariant={URI:t.URI,contramap:function(e,n){return(0,r.pipe)(e,(0,t.contramap)(n))}},t.getTupleEq=t.tuple,t.getStructEq=t.struct,t.strictEqual=t.eqStrict.equals,t.eq=t.Contravariant,t.eqBoolean=t.eqStrict,t.eqString=t.eqStrict,t.eqNumber=t.eqStrict,t.eqDate={equals:function(e,t){return e.valueOf()===t.valueOf()}}},94341:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=t.endo=t.filterSecond=t.filterFirst=t.reverse=void 0,t.reverse=function(e){return{concat:function(t,n){return e.concat(n,t)}}},t.filterFirst=function(e){return function(t){return{concat:function(n,r){return e(n)?t.concat(n,r):r}}}},t.filterSecond=function(e){return function(t){return{concat:function(n,r){return e(r)?t.concat(n,r):n}}}},t.endo=function(e){return function(t){return{concat:function(n,r){return t.concat(e(n),e(r))}}}},t.concatAll=function(e){return function(t){return function(n){return n.reduce(function(t,n){return e.concat(t,n)},t)}}}},73056:function(e,t,n){var r=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.MonadThrow=t.throwError=t.Witherable=t.wilt=t.wither=t.Traversable=t.sequence=t.traverse=t.Filterable=t.partitionMap=t.partition=t.filterMap=t.filter=t.Compactable=t.separate=t.compact=t.Extend=t.extend=t.Alternative=t.guard=t.Zero=t.zero=t.Alt=t.alt=t.altW=t.Foldable=t.reduceRight=t.foldMap=t.reduce=t.Monad=t.Chain=t.chain=t.flatMap=t.Applicative=t.Apply=t.ap=t.Pointed=t.of=t.Functor=t.map=t.getMonoid=t.getOrd=t.getEq=t.getShow=t.URI=t.getRight=t.getLeft=t.fromPredicate=t.some=t.none=void 0,t.getLastMonoid=t.getFirstMonoid=t.getApplyMonoid=t.getApplySemigroup=t.option=t.mapNullable=t.getRefinement=t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex=t.traverseReadonlyNonEmptyArrayWithIndex=t.ApT=t.apS=t.bind=t.let=t.bindTo=t.Do=t.exists=t.elem=t.toUndefined=t.toNullable=t.chainNullableK=t.fromNullableK=t.tryCatchK=t.tryCatch=t.fromNullable=t.chainFirstEitherK=t.chainEitherK=t.fromEitherK=t.duplicate=t.chainFirst=t.flatten=t.apSecond=t.apFirst=t.flap=t.getOrElse=t.getOrElseW=t.fold=t.match=t.foldW=t.matchW=t.isNone=t.isSome=t.FromEither=t.fromEither=void 0;var u=n(91575),i=n(18415),a=n(12728),c=n(59504),f=n(82884),l=n(73034),p=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(81269)),m=n(55675),s=n(22627),d=n(41040),g=n(71932),v=n(32781);t.none=p.none,t.some=p.some,t.fromPredicate=function(e){return function(n){return e(n)?(0,t.some)(n):t.none}},t.getLeft=function(e){return"Right"===e._tag?t.none:(0,t.some)(e.left)},t.getRight=function(e){return"Left"===e._tag?t.none:(0,t.some)(e.right)};var h=function(e,n){return(0,f.pipe)(e,(0,t.map)(n))},y=function(e,n){return(0,f.pipe)(e,(0,t.ap)(n))},R=function(e,n,r){return(0,f.pipe)(e,(0,t.reduce)(n,r))},b=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},q=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceRight)(n,r))},S=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},M=function(e,n){return(0,f.pipe)(e,(0,t.alt)(n))},I=function(e,n){return(0,f.pipe)(e,(0,t.filter)(n))},A=function(e,n){return(0,f.pipe)(e,(0,t.filterMap)(n))},N=function(e,n){return(0,f.pipe)(e,(0,t.extend)(n))},E=function(e,n){return(0,f.pipe)(e,(0,t.partition)(n))},U=function(e,n){return(0,f.pipe)(e,(0,t.partitionMap)(n))};t.URI="Option",t.getShow=function(e){return{show:function(n){return(0,t.isNone)(n)?"none":"some(".concat(e.show(n.value),")")}}},t.getEq=function(e){return{equals:function(n,r){return n===r||((0,t.isNone)(n)?(0,t.isNone)(r):!(0,t.isNone)(r)&&e.equals(n.value,r.value))}}},t.getOrd=function(e){return{equals:(0,t.getEq)(e).equals,compare:function(n,r){return n===r?0:(0,t.isSome)(n)?(0,t.isSome)(r)?e.compare(n.value,r.value):1:-1}}},t.getMonoid=function(e){return{concat:function(n,r){return(0,t.isNone)(n)?r:(0,t.isNone)(r)?n:(0,t.some)(e.concat(n.value,r.value))},empty:t.none}},t.map=function(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.some)(e(n.value))}},t.Functor={URI:t.URI,map:h},t.of=t.some,t.Pointed={URI:t.URI,of:t.of},t.ap=function(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.isNone)(e)?t.none:(0,t.some)(n.value(e.value))}},t.Apply={URI:t.URI,map:h,ap:y},t.Applicative={URI:t.URI,map:h,ap:y,of:t.of},t.flatMap=(0,f.dual)(2,function(e,n){return(0,t.isNone)(e)?t.none:n(e.value)}),t.chain=t.flatMap,t.Chain={URI:t.URI,map:h,ap:y,chain:t.flatMap},t.Monad={URI:t.URI,map:h,ap:y,of:t.of,chain:t.flatMap},t.reduce=function(e,n){return function(r){return(0,t.isNone)(r)?e:n(e,r.value)}},t.foldMap=function(e){return function(n){return function(r){return(0,t.isNone)(r)?e.empty:n(r.value)}}},t.reduceRight=function(e,n){return function(r){return(0,t.isNone)(r)?e:n(r.value,e)}},t.Foldable={URI:t.URI,reduce:R,foldMap:b,reduceRight:q},t.altW=function(e){return function(n){return(0,t.isNone)(n)?e():n}},t.alt=t.altW,t.Alt={URI:t.URI,map:h,alt:M},t.zero=function(){return t.none},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,v.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:h,ap:y,of:t.of,alt:M,zero:t.zero},t.extend=function(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.some)(e(n))}},t.Extend={URI:t.URI,map:h,extend:N},t.compact=(0,t.chain)(f.identity);var O=(0,d.separated)(t.none,t.none);t.separate=function(e){return(0,t.isNone)(e)?O:(0,d.separated)((0,t.getLeft)(e.value),(0,t.getRight)(e.value))},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.filter=function(e){return function(n){return(0,t.isNone)(n)?t.none:e(n.value)?n:t.none}},t.filterMap=function(e){return function(n){return(0,t.isNone)(n)?t.none:e(n.value)}},t.partition=function(e){return function(t){return(0,d.separated)(I(t,(0,m.not)(e)),I(t,e))}},t.partitionMap=function(e){return(0,f.flow)((0,t.map)(e),t.separate)},t.Filterable={URI:t.URI,map:h,compact:t.compact,separate:t.separate,filter:I,filterMap:A,partition:E,partitionMap:U},t.traverse=function(e){return function(n){return function(r){return(0,t.isNone)(r)?e.of(t.none):e.map(n(r.value),t.some)}}},t.sequence=function(e){return function(n){return(0,t.isNone)(n)?e.of(t.none):e.map(n.value,t.some)}},t.Traversable={URI:t.URI,map:h,reduce:R,foldMap:b,reduceRight:q,traverse:S,sequence:t.sequence};var w=(0,g.witherDefault)(t.Traversable,t.Compactable),C=(0,g.wiltDefault)(t.Traversable,t.Compactable);t.wither=function(e){var t=w(e);return function(e){return function(n){return t(n,e)}}},t.wilt=function(e){var t=C(e);return function(e){return function(n){return t(n,e)}}},t.Witherable={URI:t.URI,map:h,reduce:R,foldMap:b,reduceRight:q,traverse:S,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:I,filterMap:A,partition:E,partitionMap:U,wither:w,wilt:C},t.throwError=function(){return t.none},t.MonadThrow={URI:t.URI,map:h,ap:y,of:t.of,chain:t.flatMap,throwError:t.throwError},t.fromEither=t.getRight,t.FromEither={URI:t.URI,fromEither:t.fromEither},t.isSome=p.isSome,t.isNone=function(e){return"None"===e._tag},t.matchW=function(e,n){return function(r){return(0,t.isNone)(r)?e():n(r.value)}},t.foldW=t.matchW,t.match=t.matchW,t.fold=t.match,t.getOrElseW=function(e){return function(n){return(0,t.isNone)(n)?e():n.value}},t.getOrElse=t.getOrElseW,t.flap=(0,l.flap)(t.Functor),t.apFirst=(0,i.apFirst)(t.Apply),t.apSecond=(0,i.apSecond)(t.Apply),t.flatten=t.compact,t.chainFirst=(0,a.chainFirst)(t.Chain),t.duplicate=(0,t.extend)(f.identity),t.fromEitherK=(0,c.fromEitherK)(t.FromEither),t.chainEitherK=(0,c.chainEitherK)(t.FromEither,t.Chain),t.chainFirstEitherK=(0,c.chainFirstEitherK)(t.FromEither,t.Chain),t.fromNullable=function(e){return null==e?t.none:(0,t.some)(e)},t.tryCatch=function(e){try{return(0,t.some)(e())}catch(e){return t.none}},t.tryCatchK=function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(0,t.tryCatch)(function(){return e.apply(void 0,n)})}},t.fromNullableK=function(e){return(0,f.flow)(e,t.fromNullable)},t.chainNullableK=function(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.fromNullable)(e(n.value))}},t.toNullable=(0,t.match)(f.constNull,f.identity),t.toUndefined=(0,t.match)(f.constUndefined,f.identity),t.elem=function e(n){return function(r,o){if(void 0===o){var u=e(n);return function(e){return u(r,e)}}return!(0,t.isNone)(o)&&n.equals(r,o.value)}},t.exists=function(e){return function(n){return!(0,t.isNone)(n)&&e(n.value)}},t.Do=(0,t.of)(p.emptyRecord),t.bindTo=(0,l.bindTo)(t.Functor);var F=(0,l.let)(t.Functor);t.let=F,t.bind=(0,a.bind)(t.Chain),t.apS=(0,i.apS)(t.Apply),t.ApT=(0,t.of)(p.emptyReadonlyArray),t.traverseReadonlyNonEmptyArrayWithIndex=function(e){return function(n){var r=e(0,p.head(n));if((0,t.isNone)(r))return t.none;for(var o=[r.value],u=1;u<n.length;u++){var i=e(u,n[u]);if((0,t.isNone)(i))return t.none;o.push(i.value)}return(0,t.some)(o)}},t.traverseReadonlyArrayWithIndex=function(e){var n=(0,t.traverseReadonlyNonEmptyArrayWithIndex)(e);return function(e){return p.isNonEmpty(e)?n(e):t.ApT}},t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex,t.traverseArray=function(e){return(0,t.traverseReadonlyArrayWithIndex)(function(t,n){return e(n)})},t.sequenceArray=(0,t.traverseArray)(f.identity),t.getRefinement=function(e){return function(n){return(0,t.isSome)(e(n))}},t.mapNullable=t.chainNullableK,t.option={URI:t.URI,map:h,of:t.of,ap:y,chain:t.flatMap,reduce:R,foldMap:b,reduceRight:q,traverse:S,sequence:t.sequence,zero:t.zero,alt:M,extend:N,compact:t.compact,separate:t.separate,filter:I,filterMap:A,partition:E,partitionMap:U,wither:w,wilt:C,throwError:t.throwError},t.getApplySemigroup=(0,i.getApplySemigroup)(t.Apply),t.getApplyMonoid=(0,u.getApplicativeMonoid)(t.Applicative),t.getFirstMonoid=function(){return(0,t.getMonoid)((0,s.first)())},t.getLastMonoid=function(){return(0,t.getMonoid)((0,s.last)())}},66993:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ordDate=t.ordNumber=t.ordString=t.ordBoolean=t.ord=t.getDualOrd=t.getTupleOrd=t.between=t.clamp=t.max=t.min=t.geq=t.leq=t.gt=t.lt=t.equals=t.trivial=t.Contravariant=t.getMonoid=t.getSemigroup=t.URI=t.contramap=t.reverse=t.tuple=t.fromCompare=t.equalsDefault=void 0;var r=n(38355),o=n(82884);t.equalsDefault=function(e){return function(t,n){return t===n||0===e(t,n)}},t.fromCompare=function(e){return{equals:(0,t.equalsDefault)(e),compare:function(t,n){return t===n?0:e(t,n)}}},t.tuple=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,t.fromCompare)(function(t,n){for(var r=0;r<e.length-1;r++){var o=e[r].compare(t[r],n[r]);if(0!==o)return o}return e[r].compare(t[r],n[r])})},t.reverse=function(e){return(0,t.fromCompare)(function(t,n){return e.compare(n,t)})},t.contramap=function(e){return function(n){return(0,t.fromCompare)(function(t,r){return n.compare(e(t),e(r))})}},t.URI="Ord",t.getSemigroup=function(){return{concat:function(e,n){return(0,t.fromCompare)(function(t,r){var o=e.compare(t,r);return 0!==o?o:n.compare(t,r)})}}},t.getMonoid=function(){return{concat:(0,t.getSemigroup)().concat,empty:(0,t.fromCompare)(function(){return 0})}},t.Contravariant={URI:t.URI,contramap:function(e,n){return(0,o.pipe)(e,(0,t.contramap)(n))}},t.trivial={equals:o.constTrue,compare:(0,o.constant)(0)},t.equals=function(e){return function(t){return function(n){return n===t||0===e.compare(n,t)}}},t.lt=function(e){return function(t,n){return -1===e.compare(t,n)}},t.gt=function(e){return function(t,n){return 1===e.compare(t,n)}},t.leq=function(e){return function(t,n){return 1!==e.compare(t,n)}},t.geq=function(e){return function(t,n){return -1!==e.compare(t,n)}},t.min=function(e){return function(t,n){return t===n||1>e.compare(t,n)?t:n}},t.max=function(e){return function(t,n){return t===n||e.compare(t,n)>-1?t:n}},t.clamp=function(e){var n=(0,t.min)(e),r=(0,t.max)(e);return function(e,t){return function(o){return r(n(o,t),e)}}},t.between=function(e){var n=(0,t.lt)(e),r=(0,t.gt)(e);return function(e,t){return function(o){return!(n(o,e)||r(o,t))}}},t.getTupleOrd=t.tuple,t.getDualOrd=t.reverse,t.ord=t.Contravariant;var u={equals:r.eqStrict.equals,compare:function(e,t){return e<t?-1:e>t?1:0}};t.ordBoolean=u,t.ordString=u,t.ordNumber=u,t.ordDate=(0,o.pipe)(t.ordNumber,(0,t.contramap)(function(e){return e.valueOf()}))},55675:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.and=t.or=t.not=t.Contravariant=t.getMonoidAll=t.getSemigroupAll=t.getMonoidAny=t.getSemigroupAny=t.URI=t.contramap=void 0;var r=n(82884);t.contramap=function(e){return function(t){return(0,r.flow)(e,t)}},t.URI="Predicate",t.getSemigroupAny=function(){return{concat:function(e,n){return(0,r.pipe)(e,(0,t.or)(n))}}},t.getMonoidAny=function(){return{concat:(0,t.getSemigroupAny)().concat,empty:r.constFalse}},t.getSemigroupAll=function(){return{concat:function(e,n){return(0,r.pipe)(e,(0,t.and)(n))}}},t.getMonoidAll=function(){return{concat:(0,t.getSemigroupAll)().concat,empty:r.constTrue}},t.Contravariant={URI:t.URI,contramap:function(e,n){return(0,r.pipe)(e,(0,t.contramap)(n))}},t.not=function(e){return function(t){return!e(t)}},t.or=function(e){return function(t){return function(n){return t(n)||e(n)}}},t.and=function(e){return function(t){return function(n){return t(n)&&e(n)}}}},22627:function(e,t,n){var r=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.semigroupProduct=t.semigroupSum=t.semigroupString=t.getFunctionSemigroup=t.semigroupAny=t.semigroupAll=t.fold=t.getIntercalateSemigroup=t.getMeetSemigroup=t.getJoinSemigroup=t.getDualSemigroup=t.getStructSemigroup=t.getTupleSemigroup=t.getFirstSemigroup=t.getLastSemigroup=t.getObjectSemigroup=t.semigroupVoid=t.concatAll=t.last=t.first=t.intercalate=t.tuple=t.struct=t.reverse=t.constant=t.max=t.min=void 0;var i=n(82884),a=u(n(81269)),c=u(n(94341)),f=u(n(66993));t.min=function(e){return{concat:f.min(e)}},t.max=function(e){return{concat:f.max(e)}},t.constant=function(e){return{concat:function(){return e}}},t.reverse=c.reverse,t.struct=function(e){return{concat:function(t,n){var r={};for(var o in e)a.has.call(e,o)&&(r[o]=e[o].concat(t[o],n[o]));return r}}},t.tuple=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{concat:function(t,n){return e.map(function(e,r){return e.concat(t[r],n[r])})}}},t.intercalate=function(e){return function(t){return{concat:function(n,r){return t.concat(n,t.concat(e,r))}}}},t.first=function(){return{concat:i.identity}},t.last=function(){return{concat:function(e,t){return t}}},t.concatAll=c.concatAll,t.semigroupVoid=(0,t.constant)(void 0),t.getObjectSemigroup=function(){return{concat:function(e,t){return Object.assign({},e,t)}}},t.getLastSemigroup=t.last,t.getFirstSemigroup=t.first,t.getTupleSemigroup=t.tuple,t.getStructSemigroup=t.struct,t.getDualSemigroup=t.reverse,t.getJoinSemigroup=t.max,t.getMeetSemigroup=t.min,t.getIntercalateSemigroup=t.intercalate,t.fold=function(e){var n=(0,t.concatAll)(e);return function(e,t){return void 0===t?n(e):n(e)(t)}},t.semigroupAll={concat:function(e,t){return e&&t}},t.semigroupAny={concat:function(e,t){return e||t}},t.getFunctionSemigroup=i.getSemigroup,t.semigroupString={concat:function(e,t){return e+t}},t.semigroupSum={concat:function(e,t){return e+t}},t.semigroupProduct={concat:function(e,t){return e*t}}},32781:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.guard=void 0,t.guard=function(e,t){return function(n){return n?t.of(void 0):e.zero()}}}}]);