@bigbinary/neeto-commons-frontend 2.0.18 → 2.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/initializers.cjs.js +583 -10
- package/initializers.d.ts +3 -1
- package/initializers.js +583 -12
- package/package.json +1 -1
- package/react-utils.cjs.js +813 -237
- package/react-utils.js +815 -240
package/react-utils.cjs.js
CHANGED
|
@@ -407,6 +407,563 @@ var Columns = function Columns(_ref) {
|
|
|
407
407
|
}, noColumnMessage), !!actionBlock && /*#__PURE__*/React__default$1["default"].createElement(React__default$1["default"].Fragment, null, /*#__PURE__*/React__default$1["default"].createElement(Divider, null), actionBlock))));
|
|
408
408
|
};
|
|
409
409
|
|
|
410
|
+
const createStoreImpl = (createState) => {
|
|
411
|
+
let state;
|
|
412
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
413
|
+
const setState = (partial, replace) => {
|
|
414
|
+
const nextState = typeof partial === "function" ? partial(state) : partial;
|
|
415
|
+
if (!Object.is(nextState, state)) {
|
|
416
|
+
const previousState = state;
|
|
417
|
+
state = (replace != null ? replace : typeof nextState !== "object") ? nextState : Object.assign({}, state, nextState);
|
|
418
|
+
listeners.forEach((listener) => listener(state, previousState));
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
const getState = () => state;
|
|
422
|
+
const subscribe = (listener) => {
|
|
423
|
+
listeners.add(listener);
|
|
424
|
+
return () => listeners.delete(listener);
|
|
425
|
+
};
|
|
426
|
+
const destroy = () => listeners.clear();
|
|
427
|
+
const api = { setState, getState, subscribe, destroy };
|
|
428
|
+
state = createState(
|
|
429
|
+
setState,
|
|
430
|
+
getState,
|
|
431
|
+
api
|
|
432
|
+
);
|
|
433
|
+
return api;
|
|
434
|
+
};
|
|
435
|
+
const createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
|
|
436
|
+
|
|
437
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
438
|
+
|
|
439
|
+
function getDefaultExportFromCjs (x) {
|
|
440
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
var withSelector = {exports: {}};
|
|
444
|
+
|
|
445
|
+
var withSelector_production_min = {};
|
|
446
|
+
|
|
447
|
+
var shim = {exports: {}};
|
|
448
|
+
|
|
449
|
+
var useSyncExternalStoreShim_production_min = {};
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* @license React
|
|
453
|
+
* use-sync-external-store-shim.production.min.js
|
|
454
|
+
*
|
|
455
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
456
|
+
*
|
|
457
|
+
* This source code is licensed under the MIT license found in the
|
|
458
|
+
* LICENSE file in the root directory of this source tree.
|
|
459
|
+
*/
|
|
460
|
+
|
|
461
|
+
var hasRequiredUseSyncExternalStoreShim_production_min;
|
|
462
|
+
|
|
463
|
+
function requireUseSyncExternalStoreShim_production_min () {
|
|
464
|
+
if (hasRequiredUseSyncExternalStoreShim_production_min) return useSyncExternalStoreShim_production_min;
|
|
465
|
+
hasRequiredUseSyncExternalStoreShim_production_min = 1;
|
|
466
|
+
var e=React__default$1["default"];function h(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var k="function"===typeof Object.is?Object.is:h,l=e.useState,m=e.useEffect,n=e.useLayoutEffect,p=e.useDebugValue;function q(a,b){var d=b(),f=l({inst:{value:d,getSnapshot:b}}),c=f[0].inst,g=f[1];n(function(){c.value=d;c.getSnapshot=b;r(c)&&g({inst:c});},[a,d,b]);m(function(){r(c)&&g({inst:c});return a(function(){r(c)&&g({inst:c});})},[a]);p(d);return d}
|
|
467
|
+
function r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return !k(a,d)}catch(f){return !0}}function t(a,b){return b()}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?t:q;useSyncExternalStoreShim_production_min.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u;
|
|
468
|
+
return useSyncExternalStoreShim_production_min;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
var useSyncExternalStoreShim_development = {};
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* @license React
|
|
475
|
+
* use-sync-external-store-shim.development.js
|
|
476
|
+
*
|
|
477
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
478
|
+
*
|
|
479
|
+
* This source code is licensed under the MIT license found in the
|
|
480
|
+
* LICENSE file in the root directory of this source tree.
|
|
481
|
+
*/
|
|
482
|
+
|
|
483
|
+
var hasRequiredUseSyncExternalStoreShim_development;
|
|
484
|
+
|
|
485
|
+
function requireUseSyncExternalStoreShim_development () {
|
|
486
|
+
if (hasRequiredUseSyncExternalStoreShim_development) return useSyncExternalStoreShim_development;
|
|
487
|
+
hasRequiredUseSyncExternalStoreShim_development = 1;
|
|
488
|
+
|
|
489
|
+
if (process.env.NODE_ENV !== "production") {
|
|
490
|
+
(function() {
|
|
491
|
+
|
|
492
|
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
493
|
+
if (
|
|
494
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
495
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
|
|
496
|
+
'function'
|
|
497
|
+
) {
|
|
498
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
499
|
+
}
|
|
500
|
+
var React = React__default$1["default"];
|
|
501
|
+
|
|
502
|
+
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
503
|
+
|
|
504
|
+
function error(format) {
|
|
505
|
+
{
|
|
506
|
+
{
|
|
507
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
508
|
+
args[_key2 - 1] = arguments[_key2];
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
printWarning('error', format, args);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
function printWarning(level, format, args) {
|
|
517
|
+
// When changing this logic, you might want to also
|
|
518
|
+
// update consoleWithStackDev.www.js as well.
|
|
519
|
+
{
|
|
520
|
+
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
521
|
+
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
|
522
|
+
|
|
523
|
+
if (stack !== '') {
|
|
524
|
+
format += '%s';
|
|
525
|
+
args = args.concat([stack]);
|
|
526
|
+
} // eslint-disable-next-line react-internal/safe-string-coercion
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
var argsWithFormat = args.map(function (item) {
|
|
530
|
+
return String(item);
|
|
531
|
+
}); // Careful: RN currently depends on this prefix
|
|
532
|
+
|
|
533
|
+
argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
|
|
534
|
+
// breaks IE9: https://github.com/facebook/react/issues/13610
|
|
535
|
+
// eslint-disable-next-line react-internal/no-production-logging
|
|
536
|
+
|
|
537
|
+
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
543
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
544
|
+
*/
|
|
545
|
+
function is(x, y) {
|
|
546
|
+
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
|
|
547
|
+
;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
var objectIs = typeof Object.is === 'function' ? Object.is : is;
|
|
551
|
+
|
|
552
|
+
// dispatch for CommonJS interop named imports.
|
|
553
|
+
|
|
554
|
+
var useState = React.useState,
|
|
555
|
+
useEffect = React.useEffect,
|
|
556
|
+
useLayoutEffect = React.useLayoutEffect,
|
|
557
|
+
useDebugValue = React.useDebugValue;
|
|
558
|
+
var didWarnOld18Alpha = false;
|
|
559
|
+
var didWarnUncachedGetSnapshot = false; // Disclaimer: This shim breaks many of the rules of React, and only works
|
|
560
|
+
// because of a very particular set of implementation details and assumptions
|
|
561
|
+
// -- change any one of them and it will break. The most important assumption
|
|
562
|
+
// is that updates are always synchronous, because concurrent rendering is
|
|
563
|
+
// only available in versions of React that also have a built-in
|
|
564
|
+
// useSyncExternalStore API. And we only use this shim when the built-in API
|
|
565
|
+
// does not exist.
|
|
566
|
+
//
|
|
567
|
+
// Do not assume that the clever hacks used by this hook also work in general.
|
|
568
|
+
// The point of this shim is to replace the need for hacks by other libraries.
|
|
569
|
+
|
|
570
|
+
function useSyncExternalStore(subscribe, getSnapshot, // Note: The shim does not use getServerSnapshot, because pre-18 versions of
|
|
571
|
+
// React do not expose a way to check if we're hydrating. So users of the shim
|
|
572
|
+
// will need to track that themselves and return the correct value
|
|
573
|
+
// from `getSnapshot`.
|
|
574
|
+
getServerSnapshot) {
|
|
575
|
+
{
|
|
576
|
+
if (!didWarnOld18Alpha) {
|
|
577
|
+
if (React.startTransition !== undefined) {
|
|
578
|
+
didWarnOld18Alpha = true;
|
|
579
|
+
|
|
580
|
+
error('You are using an outdated, pre-release alpha of React 18 that ' + 'does not support useSyncExternalStore. The ' + 'use-sync-external-store shim will not work correctly. Upgrade ' + 'to a newer pre-release.');
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
} // Read the current snapshot from the store on every render. Again, this
|
|
584
|
+
// breaks the rules of React, and only works here because of specific
|
|
585
|
+
// implementation details, most importantly that updates are
|
|
586
|
+
// always synchronous.
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
var value = getSnapshot();
|
|
590
|
+
|
|
591
|
+
{
|
|
592
|
+
if (!didWarnUncachedGetSnapshot) {
|
|
593
|
+
var cachedValue = getSnapshot();
|
|
594
|
+
|
|
595
|
+
if (!objectIs(value, cachedValue)) {
|
|
596
|
+
error('The result of getSnapshot should be cached to avoid an infinite loop');
|
|
597
|
+
|
|
598
|
+
didWarnUncachedGetSnapshot = true;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
} // Because updates are synchronous, we don't queue them. Instead we force a
|
|
602
|
+
// re-render whenever the subscribed state changes by updating an some
|
|
603
|
+
// arbitrary useState hook. Then, during render, we call getSnapshot to read
|
|
604
|
+
// the current value.
|
|
605
|
+
//
|
|
606
|
+
// Because we don't actually use the state returned by the useState hook, we
|
|
607
|
+
// can save a bit of memory by storing other stuff in that slot.
|
|
608
|
+
//
|
|
609
|
+
// To implement the early bailout, we need to track some things on a mutable
|
|
610
|
+
// object. Usually, we would put that in a useRef hook, but we can stash it in
|
|
611
|
+
// our useState hook instead.
|
|
612
|
+
//
|
|
613
|
+
// To force a re-render, we call forceUpdate({inst}). That works because the
|
|
614
|
+
// new object always fails an equality check.
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
var _useState = useState({
|
|
618
|
+
inst: {
|
|
619
|
+
value: value,
|
|
620
|
+
getSnapshot: getSnapshot
|
|
621
|
+
}
|
|
622
|
+
}),
|
|
623
|
+
inst = _useState[0].inst,
|
|
624
|
+
forceUpdate = _useState[1]; // Track the latest getSnapshot function with a ref. This needs to be updated
|
|
625
|
+
// in the layout phase so we can access it during the tearing check that
|
|
626
|
+
// happens on subscribe.
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
useLayoutEffect(function () {
|
|
630
|
+
inst.value = value;
|
|
631
|
+
inst.getSnapshot = getSnapshot; // Whenever getSnapshot or subscribe changes, we need to check in the
|
|
632
|
+
// commit phase if there was an interleaved mutation. In concurrent mode
|
|
633
|
+
// this can happen all the time, but even in synchronous mode, an earlier
|
|
634
|
+
// effect may have mutated the store.
|
|
635
|
+
|
|
636
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
637
|
+
// Force a re-render.
|
|
638
|
+
forceUpdate({
|
|
639
|
+
inst: inst
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
}, [subscribe, value, getSnapshot]);
|
|
643
|
+
useEffect(function () {
|
|
644
|
+
// Check for changes right before subscribing. Subsequent changes will be
|
|
645
|
+
// detected in the subscription handler.
|
|
646
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
647
|
+
// Force a re-render.
|
|
648
|
+
forceUpdate({
|
|
649
|
+
inst: inst
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
var handleStoreChange = function () {
|
|
654
|
+
// TODO: Because there is no cross-renderer API for batching updates, it's
|
|
655
|
+
// up to the consumer of this library to wrap their subscription event
|
|
656
|
+
// with unstable_batchedUpdates. Should we try to detect when this isn't
|
|
657
|
+
// the case and print a warning in development?
|
|
658
|
+
// The store changed. Check if the snapshot changed since the last time we
|
|
659
|
+
// read from the store.
|
|
660
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
661
|
+
// Force a re-render.
|
|
662
|
+
forceUpdate({
|
|
663
|
+
inst: inst
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
}; // Subscribe to the store and return a clean-up function.
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
return subscribe(handleStoreChange);
|
|
670
|
+
}, [subscribe]);
|
|
671
|
+
useDebugValue(value);
|
|
672
|
+
return value;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
function checkIfSnapshotChanged(inst) {
|
|
676
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
677
|
+
var prevValue = inst.value;
|
|
678
|
+
|
|
679
|
+
try {
|
|
680
|
+
var nextValue = latestGetSnapshot();
|
|
681
|
+
return !objectIs(prevValue, nextValue);
|
|
682
|
+
} catch (error) {
|
|
683
|
+
return true;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
function useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {
|
|
688
|
+
// Note: The shim does not use getServerSnapshot, because pre-18 versions of
|
|
689
|
+
// React do not expose a way to check if we're hydrating. So users of the shim
|
|
690
|
+
// will need to track that themselves and return the correct value
|
|
691
|
+
// from `getSnapshot`.
|
|
692
|
+
return getSnapshot();
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
|
|
696
|
+
|
|
697
|
+
var isServerEnvironment = !canUseDOM;
|
|
698
|
+
|
|
699
|
+
var shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore;
|
|
700
|
+
var useSyncExternalStore$2 = React.useSyncExternalStore !== undefined ? React.useSyncExternalStore : shim;
|
|
701
|
+
|
|
702
|
+
useSyncExternalStoreShim_development.useSyncExternalStore = useSyncExternalStore$2;
|
|
703
|
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
704
|
+
if (
|
|
705
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
706
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
|
|
707
|
+
'function'
|
|
708
|
+
) {
|
|
709
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
})();
|
|
713
|
+
}
|
|
714
|
+
return useSyncExternalStoreShim_development;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
var hasRequiredShim;
|
|
718
|
+
|
|
719
|
+
function requireShim () {
|
|
720
|
+
if (hasRequiredShim) return shim.exports;
|
|
721
|
+
hasRequiredShim = 1;
|
|
722
|
+
(function (module) {
|
|
723
|
+
|
|
724
|
+
if (process.env.NODE_ENV === 'production') {
|
|
725
|
+
module.exports = requireUseSyncExternalStoreShim_production_min();
|
|
726
|
+
} else {
|
|
727
|
+
module.exports = requireUseSyncExternalStoreShim_development();
|
|
728
|
+
}
|
|
729
|
+
} (shim));
|
|
730
|
+
return shim.exports;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* @license React
|
|
735
|
+
* use-sync-external-store-shim/with-selector.production.min.js
|
|
736
|
+
*
|
|
737
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
738
|
+
*
|
|
739
|
+
* This source code is licensed under the MIT license found in the
|
|
740
|
+
* LICENSE file in the root directory of this source tree.
|
|
741
|
+
*/
|
|
742
|
+
|
|
743
|
+
var hasRequiredWithSelector_production_min;
|
|
744
|
+
|
|
745
|
+
function requireWithSelector_production_min () {
|
|
746
|
+
if (hasRequiredWithSelector_production_min) return withSelector_production_min;
|
|
747
|
+
hasRequiredWithSelector_production_min = 1;
|
|
748
|
+
var h=React__default$1["default"],n=requireShim();function p(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var q="function"===typeof Object.is?Object.is:p,r=n.useSyncExternalStore,t=h.useRef,u=h.useEffect,v=h.useMemo,w=h.useDebugValue;
|
|
749
|
+
withSelector_production_min.useSyncExternalStoreWithSelector=function(a,b,e,l,g){var c=t(null);if(null===c.current){var f={hasValue:!1,value:null};c.current=f;}else f=c.current;c=v(function(){function a(a){if(!c){c=!0;d=a;a=l(a);if(void 0!==g&&f.hasValue){var b=f.value;if(g(b,a))return k=b}return k=a}b=k;if(q(d,a))return b;var e=l(a);if(void 0!==g&&g(b,e))return b;d=a;return k=e}var c=!1,d,k,m=void 0===e?null:e;return [function(){return a(b())},null===m?void 0:function(){return a(m())}]},[b,e,l,g]);var d=r(a,c[0],c[1]);
|
|
750
|
+
u(function(){f.hasValue=!0;f.value=d;},[d]);w(d);return d};
|
|
751
|
+
return withSelector_production_min;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
var withSelector_development = {};
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* @license React
|
|
758
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
759
|
+
*
|
|
760
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
761
|
+
*
|
|
762
|
+
* This source code is licensed under the MIT license found in the
|
|
763
|
+
* LICENSE file in the root directory of this source tree.
|
|
764
|
+
*/
|
|
765
|
+
|
|
766
|
+
var hasRequiredWithSelector_development;
|
|
767
|
+
|
|
768
|
+
function requireWithSelector_development () {
|
|
769
|
+
if (hasRequiredWithSelector_development) return withSelector_development;
|
|
770
|
+
hasRequiredWithSelector_development = 1;
|
|
771
|
+
|
|
772
|
+
if (process.env.NODE_ENV !== "production") {
|
|
773
|
+
(function() {
|
|
774
|
+
|
|
775
|
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
776
|
+
if (
|
|
777
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
778
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
|
|
779
|
+
'function'
|
|
780
|
+
) {
|
|
781
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
782
|
+
}
|
|
783
|
+
var React = React__default$1["default"];
|
|
784
|
+
var shim = requireShim();
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
788
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
789
|
+
*/
|
|
790
|
+
function is(x, y) {
|
|
791
|
+
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
|
|
792
|
+
;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
var objectIs = typeof Object.is === 'function' ? Object.is : is;
|
|
796
|
+
|
|
797
|
+
var useSyncExternalStore = shim.useSyncExternalStore;
|
|
798
|
+
|
|
799
|
+
// for CommonJS interop.
|
|
800
|
+
|
|
801
|
+
var useRef = React.useRef,
|
|
802
|
+
useEffect = React.useEffect,
|
|
803
|
+
useMemo = React.useMemo,
|
|
804
|
+
useDebugValue = React.useDebugValue; // Same as useSyncExternalStore, but supports selector and isEqual arguments.
|
|
805
|
+
|
|
806
|
+
function useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
|
|
807
|
+
// Use this to track the rendered snapshot.
|
|
808
|
+
var instRef = useRef(null);
|
|
809
|
+
var inst;
|
|
810
|
+
|
|
811
|
+
if (instRef.current === null) {
|
|
812
|
+
inst = {
|
|
813
|
+
hasValue: false,
|
|
814
|
+
value: null
|
|
815
|
+
};
|
|
816
|
+
instRef.current = inst;
|
|
817
|
+
} else {
|
|
818
|
+
inst = instRef.current;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
var _useMemo = useMemo(function () {
|
|
822
|
+
// Track the memoized state using closure variables that are local to this
|
|
823
|
+
// memoized instance of a getSnapshot function. Intentionally not using a
|
|
824
|
+
// useRef hook, because that state would be shared across all concurrent
|
|
825
|
+
// copies of the hook/component.
|
|
826
|
+
var hasMemo = false;
|
|
827
|
+
var memoizedSnapshot;
|
|
828
|
+
var memoizedSelection;
|
|
829
|
+
|
|
830
|
+
var memoizedSelector = function (nextSnapshot) {
|
|
831
|
+
if (!hasMemo) {
|
|
832
|
+
// The first time the hook is called, there is no memoized result.
|
|
833
|
+
hasMemo = true;
|
|
834
|
+
memoizedSnapshot = nextSnapshot;
|
|
835
|
+
|
|
836
|
+
var _nextSelection = selector(nextSnapshot);
|
|
837
|
+
|
|
838
|
+
if (isEqual !== undefined) {
|
|
839
|
+
// Even if the selector has changed, the currently rendered selection
|
|
840
|
+
// may be equal to the new selection. We should attempt to reuse the
|
|
841
|
+
// current value if possible, to preserve downstream memoizations.
|
|
842
|
+
if (inst.hasValue) {
|
|
843
|
+
var currentSelection = inst.value;
|
|
844
|
+
|
|
845
|
+
if (isEqual(currentSelection, _nextSelection)) {
|
|
846
|
+
memoizedSelection = currentSelection;
|
|
847
|
+
return currentSelection;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
memoizedSelection = _nextSelection;
|
|
853
|
+
return _nextSelection;
|
|
854
|
+
} // We may be able to reuse the previous invocation's result.
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
// We may be able to reuse the previous invocation's result.
|
|
858
|
+
var prevSnapshot = memoizedSnapshot;
|
|
859
|
+
var prevSelection = memoizedSelection;
|
|
860
|
+
|
|
861
|
+
if (objectIs(prevSnapshot, nextSnapshot)) {
|
|
862
|
+
// The snapshot is the same as last time. Reuse the previous selection.
|
|
863
|
+
return prevSelection;
|
|
864
|
+
} // The snapshot has changed, so we need to compute a new selection.
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
// The snapshot has changed, so we need to compute a new selection.
|
|
868
|
+
var nextSelection = selector(nextSnapshot); // If a custom isEqual function is provided, use that to check if the data
|
|
869
|
+
// has changed. If it hasn't, return the previous selection. That signals
|
|
870
|
+
// to React that the selections are conceptually equal, and we can bail
|
|
871
|
+
// out of rendering.
|
|
872
|
+
|
|
873
|
+
// If a custom isEqual function is provided, use that to check if the data
|
|
874
|
+
// has changed. If it hasn't, return the previous selection. That signals
|
|
875
|
+
// to React that the selections are conceptually equal, and we can bail
|
|
876
|
+
// out of rendering.
|
|
877
|
+
if (isEqual !== undefined && isEqual(prevSelection, nextSelection)) {
|
|
878
|
+
return prevSelection;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
memoizedSnapshot = nextSnapshot;
|
|
882
|
+
memoizedSelection = nextSelection;
|
|
883
|
+
return nextSelection;
|
|
884
|
+
}; // Assigning this to a constant so that Flow knows it can't change.
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
// Assigning this to a constant so that Flow knows it can't change.
|
|
888
|
+
var maybeGetServerSnapshot = getServerSnapshot === undefined ? null : getServerSnapshot;
|
|
889
|
+
|
|
890
|
+
var getSnapshotWithSelector = function () {
|
|
891
|
+
return memoizedSelector(getSnapshot());
|
|
892
|
+
};
|
|
893
|
+
|
|
894
|
+
var getServerSnapshotWithSelector = maybeGetServerSnapshot === null ? undefined : function () {
|
|
895
|
+
return memoizedSelector(maybeGetServerSnapshot());
|
|
896
|
+
};
|
|
897
|
+
return [getSnapshotWithSelector, getServerSnapshotWithSelector];
|
|
898
|
+
}, [getSnapshot, getServerSnapshot, selector, isEqual]),
|
|
899
|
+
getSelection = _useMemo[0],
|
|
900
|
+
getServerSelection = _useMemo[1];
|
|
901
|
+
|
|
902
|
+
var value = useSyncExternalStore(subscribe, getSelection, getServerSelection);
|
|
903
|
+
useEffect(function () {
|
|
904
|
+
inst.hasValue = true;
|
|
905
|
+
inst.value = value;
|
|
906
|
+
}, [value]);
|
|
907
|
+
useDebugValue(value);
|
|
908
|
+
return value;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
withSelector_development.useSyncExternalStoreWithSelector = useSyncExternalStoreWithSelector;
|
|
912
|
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
913
|
+
if (
|
|
914
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
915
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
|
|
916
|
+
'function'
|
|
917
|
+
) {
|
|
918
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
})();
|
|
922
|
+
}
|
|
923
|
+
return withSelector_development;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
(function (module) {
|
|
927
|
+
|
|
928
|
+
if (process.env.NODE_ENV === 'production') {
|
|
929
|
+
module.exports = requireWithSelector_production_min();
|
|
930
|
+
} else {
|
|
931
|
+
module.exports = requireWithSelector_development();
|
|
932
|
+
}
|
|
933
|
+
} (withSelector));
|
|
934
|
+
|
|
935
|
+
var useSyncExternalStoreExports = /*@__PURE__*/getDefaultExportFromCjs(withSelector.exports);
|
|
936
|
+
|
|
937
|
+
const { useSyncExternalStoreWithSelector } = useSyncExternalStoreExports;
|
|
938
|
+
function useStore(api, selector = api.getState, equalityFn) {
|
|
939
|
+
const slice = useSyncExternalStoreWithSelector(
|
|
940
|
+
api.subscribe,
|
|
941
|
+
api.getState,
|
|
942
|
+
api.getServerState || api.getState,
|
|
943
|
+
selector,
|
|
944
|
+
equalityFn
|
|
945
|
+
);
|
|
946
|
+
React$1.useDebugValue(slice);
|
|
947
|
+
return slice;
|
|
948
|
+
}
|
|
949
|
+
const createImpl = (createState) => {
|
|
950
|
+
const api = typeof createState === "function" ? createStore(createState) : createState;
|
|
951
|
+
const useBoundStore = (selector, equalityFn) => useStore(api, selector, equalityFn);
|
|
952
|
+
Object.assign(useBoundStore, api);
|
|
953
|
+
return useBoundStore;
|
|
954
|
+
};
|
|
955
|
+
const create$7 = (createState) => createState ? createImpl(createState) : createImpl;
|
|
956
|
+
|
|
957
|
+
var useDisplayErrorPage = function useDisplayErrorPage() {
|
|
958
|
+
return useErrorDisplayStore(ramda.prop("show404Page"));
|
|
959
|
+
};
|
|
960
|
+
|
|
961
|
+
var useErrorDisplayStore = create$7(function () {
|
|
962
|
+
return {
|
|
963
|
+
show404Page: false
|
|
964
|
+
};
|
|
965
|
+
});
|
|
966
|
+
|
|
410
967
|
function useDebounce(value) {
|
|
411
968
|
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 350;
|
|
412
969
|
|
|
@@ -582,8 +1139,6 @@ function _asyncToGenerator$1(fn) {
|
|
|
582
1139
|
};
|
|
583
1140
|
}
|
|
584
1141
|
|
|
585
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
586
|
-
|
|
587
1142
|
var regeneratorRuntime$2 = {exports: {}};
|
|
588
1143
|
|
|
589
1144
|
var _typeof$3 = {exports: {}};
|
|
@@ -2218,6 +2773,19 @@ var FallbackComponent = function FallbackComponent() {
|
|
|
2218
2773
|
var _useTranslation = reactI18next.useTranslation(),
|
|
2219
2774
|
t = _useTranslation.t;
|
|
2220
2775
|
|
|
2776
|
+
React$1.useEffect(function () {
|
|
2777
|
+
var listener = function listener(e) {
|
|
2778
|
+
var _e$target;
|
|
2779
|
+
|
|
2780
|
+
if (ramda.isNil(e.state)) return;
|
|
2781
|
+
window.location.href = (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.location.href;
|
|
2782
|
+
};
|
|
2783
|
+
|
|
2784
|
+
window.addEventListener("popstate", listener);
|
|
2785
|
+
return function () {
|
|
2786
|
+
return window.removeEventListener("popstate", listener);
|
|
2787
|
+
};
|
|
2788
|
+
}, []);
|
|
2221
2789
|
return /*#__PURE__*/React__default$1["default"].createElement("div", {
|
|
2222
2790
|
className: "flex h-screen w-full flex-row items-start justify-start"
|
|
2223
2791
|
}, /*#__PURE__*/React__default$1["default"].createElement("div", {
|
|
@@ -2263,10 +2831,14 @@ var HoneybadgerErrorBoundary = function HoneybadgerErrorBoundary(_ref) {
|
|
|
2263
2831
|
breadcrumbsEnabled: true,
|
|
2264
2832
|
projectRoot: "webpack:///./"
|
|
2265
2833
|
});
|
|
2266
|
-
return
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2834
|
+
return (
|
|
2835
|
+
/*#__PURE__*/
|
|
2836
|
+
// @ts-ignore
|
|
2837
|
+
React__default$1["default"].createElement(react.HoneybadgerErrorBoundary, {
|
|
2838
|
+
honeybadger: honeybadger,
|
|
2839
|
+
ErrorComponent: ErrorComponent
|
|
2840
|
+
}, children)
|
|
2841
|
+
);
|
|
2270
2842
|
};
|
|
2271
2843
|
|
|
2272
2844
|
var ENV_BRANCH = {
|
|
@@ -53281,7 +53853,7 @@ var languageLoaders = {
|
|
|
53281
53853
|
return Promise.resolve().then(function () { return apex$1; });
|
|
53282
53854
|
}),
|
|
53283
53855
|
apl: createLanguageAsyncLoader("apl", function () {
|
|
53284
|
-
return Promise.resolve().then(function () { return apl; });
|
|
53856
|
+
return Promise.resolve().then(function () { return apl$1; });
|
|
53285
53857
|
}),
|
|
53286
53858
|
applescript: createLanguageAsyncLoader("applescript", function () {
|
|
53287
53859
|
return Promise.resolve().then(function () { return applescript$2; });
|
|
@@ -53314,7 +53886,7 @@ var languageLoaders = {
|
|
|
53314
53886
|
return Promise.resolve().then(function () { return autoit$2; });
|
|
53315
53887
|
}),
|
|
53316
53888
|
avisynth: createLanguageAsyncLoader("avisynth", function () {
|
|
53317
|
-
return Promise.resolve().then(function () { return avisynth
|
|
53889
|
+
return Promise.resolve().then(function () { return avisynth; });
|
|
53318
53890
|
}),
|
|
53319
53891
|
avroIdl: createLanguageAsyncLoader("avroIdl", function () {
|
|
53320
53892
|
return Promise.resolve().then(function () { return avroIdl; });
|
|
@@ -63098,54 +63670,50 @@ var apex$1 = /*#__PURE__*/_mergeNamespaces({
|
|
|
63098
63670
|
'default': apex_1
|
|
63099
63671
|
}, [apex_1]);
|
|
63100
63672
|
|
|
63101
|
-
var apl_1;
|
|
63102
|
-
|
|
63103
|
-
|
|
63104
|
-
function
|
|
63105
|
-
|
|
63106
|
-
|
|
63107
|
-
|
|
63108
|
-
|
|
63109
|
-
|
|
63110
|
-
|
|
63111
|
-
|
|
63112
|
-
|
|
63113
|
-
|
|
63114
|
-
|
|
63115
|
-
|
|
63116
|
-
|
|
63117
|
-
|
|
63118
|
-
|
|
63119
|
-
|
|
63120
|
-
|
|
63121
|
-
|
|
63122
|
-
|
|
63123
|
-
|
|
63124
|
-
|
|
63125
|
-
|
|
63126
|
-
|
|
63127
|
-
|
|
63128
|
-
|
|
63129
|
-
|
|
63130
|
-
|
|
63131
|
-
|
|
63132
|
-
|
|
63133
|
-
|
|
63134
|
-
|
|
63135
|
-
|
|
63136
|
-
|
|
63137
|
-
|
|
63138
|
-
},
|
|
63139
|
-
punctuation: /[\[;\]()◇⋄]/,
|
|
63140
|
-
dfn: {
|
|
63141
|
-
pattern: /[{}⍺⍵⍶⍹∇⍫:]/,
|
|
63142
|
-
alias: 'builtin'
|
|
63143
|
-
}
|
|
63144
|
-
};
|
|
63145
|
-
}
|
|
63146
|
-
return apl_1;
|
|
63673
|
+
var apl_1 = apl;
|
|
63674
|
+
apl.displayName = 'apl';
|
|
63675
|
+
apl.aliases = [];
|
|
63676
|
+
function apl(Prism) {
|
|
63677
|
+
Prism.languages.apl = {
|
|
63678
|
+
comment: /(?:⍝|#[! ]).*$/m,
|
|
63679
|
+
string: {
|
|
63680
|
+
pattern: /'(?:[^'\r\n]|'')*'/,
|
|
63681
|
+
greedy: true
|
|
63682
|
+
},
|
|
63683
|
+
number:
|
|
63684
|
+
/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,
|
|
63685
|
+
statement: /:[A-Z][a-z][A-Za-z]*\b/,
|
|
63686
|
+
'system-function': {
|
|
63687
|
+
pattern: /⎕[A-Z]+/i,
|
|
63688
|
+
alias: 'function'
|
|
63689
|
+
},
|
|
63690
|
+
constant: /[⍬⌾#⎕⍞]/,
|
|
63691
|
+
function: /[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,
|
|
63692
|
+
'monadic-operator': {
|
|
63693
|
+
pattern: /[\\\/⌿⍀¨⍨⌶&∥]/,
|
|
63694
|
+
alias: 'operator'
|
|
63695
|
+
},
|
|
63696
|
+
'dyadic-operator': {
|
|
63697
|
+
pattern: /[.⍣⍠⍤∘⌸@⌺⍥]/,
|
|
63698
|
+
alias: 'operator'
|
|
63699
|
+
},
|
|
63700
|
+
assignment: {
|
|
63701
|
+
pattern: /←/,
|
|
63702
|
+
alias: 'keyword'
|
|
63703
|
+
},
|
|
63704
|
+
punctuation: /[\[;\]()◇⋄]/,
|
|
63705
|
+
dfn: {
|
|
63706
|
+
pattern: /[{}⍺⍵⍶⍹∇⍫:]/,
|
|
63707
|
+
alias: 'builtin'
|
|
63708
|
+
}
|
|
63709
|
+
};
|
|
63147
63710
|
}
|
|
63148
63711
|
|
|
63712
|
+
var apl$1 = /*#__PURE__*/_mergeNamespaces({
|
|
63713
|
+
__proto__: null,
|
|
63714
|
+
'default': apl_1
|
|
63715
|
+
}, [apl_1]);
|
|
63716
|
+
|
|
63149
63717
|
var applescript_1 = applescript$1;
|
|
63150
63718
|
applescript$1.displayName = 'applescript';
|
|
63151
63719
|
applescript$1.aliases = [];
|
|
@@ -64466,179 +65034,183 @@ var autoit$2 = /*#__PURE__*/_mergeNamespaces({
|
|
|
64466
65034
|
'default': autoit_1
|
|
64467
65035
|
}, [autoit_1]);
|
|
64468
65036
|
|
|
64469
|
-
var avisynth_1
|
|
64470
|
-
|
|
64471
|
-
|
|
64472
|
-
function
|
|
65037
|
+
var avisynth_1;
|
|
65038
|
+
var hasRequiredAvisynth;
|
|
65039
|
+
|
|
65040
|
+
function requireAvisynth () {
|
|
65041
|
+
if (hasRequiredAvisynth) return avisynth_1;
|
|
65042
|
+
hasRequiredAvisynth = 1;
|
|
65043
|
+
|
|
65044
|
+
avisynth_1 = avisynth;
|
|
65045
|
+
avisynth.displayName = 'avisynth';
|
|
65046
|
+
avisynth.aliases = ['avs'];
|
|
65047
|
+
function avisynth(Prism) {
|
|
64473
65048
|
(function (Prism) {
|
|
64474
|
-
|
|
64475
|
-
|
|
64476
|
-
|
|
64477
|
-
|
|
64478
|
-
|
|
64479
|
-
|
|
64480
|
-
|
|
64481
|
-
|
|
64482
|
-
|
|
64483
|
-
|
|
64484
|
-
|
|
64485
|
-
|
|
64486
|
-
|
|
64487
|
-
|
|
64488
|
-
|
|
64489
|
-
|
|
64490
|
-
|
|
64491
|
-
|
|
64492
|
-
|
|
64493
|
-
|
|
64494
|
-
|
|
64495
|
-
|
|
64496
|
-
|
|
64497
|
-
|
|
64498
|
-
|
|
64499
|
-
|
|
64500
|
-
|
|
64501
|
-
|
|
64502
|
-
|
|
64503
|
-
|
|
64504
|
-
|
|
64505
|
-
|
|
64506
|
-
|
|
64507
|
-
|
|
64508
|
-
|
|
64509
|
-
|
|
64510
|
-
|
|
64511
|
-
|
|
64512
|
-
|
|
64513
|
-
|
|
64514
|
-
|
|
64515
|
-
|
|
64516
|
-
|
|
64517
|
-
|
|
64518
|
-
|
|
64519
|
-
|
|
64520
|
-
|
|
64521
|
-
|
|
64522
|
-
|
|
64523
|
-
|
|
64524
|
-
|
|
64525
|
-
|
|
64526
|
-
|
|
64527
|
-
|
|
64528
|
-
|
|
64529
|
-
|
|
64530
|
-
|
|
64531
|
-
|
|
64532
|
-
|
|
64533
|
-
|
|
64534
|
-
|
|
64535
|
-
|
|
64536
|
-
|
|
64537
|
-
|
|
64538
|
-
|
|
64539
|
-
|
|
64540
|
-
|
|
64541
|
-
|
|
64542
|
-
|
|
64543
|
-
|
|
64544
|
-
|
|
64545
|
-
|
|
64546
|
-
|
|
64547
|
-
|
|
64548
|
-
|
|
64549
|
-
|
|
64550
|
-
|
|
64551
|
-
|
|
64552
|
-
|
|
64553
|
-
|
|
64554
|
-
|
|
64555
|
-
|
|
64556
|
-
|
|
64557
|
-
|
|
64558
|
-
|
|
64559
|
-
|
|
64560
|
-
|
|
64561
|
-
|
|
64562
|
-
|
|
64563
|
-
|
|
64564
|
-
|
|
64565
|
-
|
|
64566
|
-
|
|
64567
|
-
|
|
64568
|
-
|
|
64569
|
-
|
|
64570
|
-
|
|
64571
|
-
|
|
64572
|
-
|
|
64573
|
-
|
|
64574
|
-
|
|
64575
|
-
|
|
64576
|
-
|
|
64577
|
-
|
|
64578
|
-
|
|
64579
|
-
|
|
64580
|
-
|
|
64581
|
-
|
|
64582
|
-
|
|
64583
|
-
|
|
64584
|
-
|
|
64585
|
-
|
|
64586
|
-
|
|
64587
|
-
|
|
64588
|
-
|
|
64589
|
-
|
|
64590
|
-
|
|
64591
|
-
|
|
64592
|
-
|
|
64593
|
-
|
|
64594
|
-
|
|
64595
|
-
|
|
64596
|
-
|
|
64597
|
-
|
|
64598
|
-
|
|
64599
|
-
|
|
64600
|
-
|
|
64601
|
-
|
|
64602
|
-
|
|
64603
|
-
|
|
64604
|
-
|
|
64605
|
-
|
|
64606
|
-
|
|
64607
|
-
|
|
64608
|
-
|
|
64609
|
-
|
|
64610
|
-
|
|
64611
|
-
|
|
64612
|
-
|
|
64613
|
-
|
|
64614
|
-
|
|
64615
|
-
|
|
64616
|
-
|
|
64617
|
-
|
|
64618
|
-
|
|
64619
|
-
|
|
64620
|
-
|
|
64621
|
-
|
|
64622
|
-
|
|
64623
|
-
|
|
64624
|
-
|
|
64625
|
-
|
|
64626
|
-
|
|
64627
|
-
|
|
64628
|
-
|
|
64629
|
-
|
|
64630
|
-
|
|
64631
|
-
|
|
64632
|
-
|
|
64633
|
-
|
|
64634
|
-
|
|
65049
|
+
function replace(pattern, replacements) {
|
|
65050
|
+
return pattern.replace(/<<(\d+)>>/g, function (m, index) {
|
|
65051
|
+
return replacements[+index]
|
|
65052
|
+
})
|
|
65053
|
+
}
|
|
65054
|
+
function re(pattern, replacements, flags) {
|
|
65055
|
+
return RegExp(replace(pattern, replacements), flags || '')
|
|
65056
|
+
}
|
|
65057
|
+
var types = /bool|clip|float|int|string|val/.source;
|
|
65058
|
+
var internals = [
|
|
65059
|
+
// bools
|
|
65060
|
+
/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/
|
|
65061
|
+
.source, // control
|
|
65062
|
+
/apply|assert|default|eval|import|nop|select|undefined/.source, // global
|
|
65063
|
+
/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/
|
|
65064
|
+
.source, // conv
|
|
65065
|
+
/hex(?:value)?|value/.source, // numeric
|
|
65066
|
+
/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/
|
|
65067
|
+
.source, // trig
|
|
65068
|
+
/a?sinh?|a?cosh?|a?tan[2h]?/.source, // bit
|
|
65069
|
+
/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/
|
|
65070
|
+
.source, // runtime
|
|
65071
|
+
/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/
|
|
65072
|
+
.source, // script
|
|
65073
|
+
/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/
|
|
65074
|
+
.source, // string
|
|
65075
|
+
/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/
|
|
65076
|
+
.source, // version
|
|
65077
|
+
/isversionorgreater|version(?:number|string)/.source, // helper
|
|
65078
|
+
/buildpixeltype|colorspacenametopixeltype/.source, // avsplus
|
|
65079
|
+
/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source
|
|
65080
|
+
].join('|');
|
|
65081
|
+
var properties = [
|
|
65082
|
+
// content
|
|
65083
|
+
/has(?:audio|video)/.source, // resolution
|
|
65084
|
+
/height|width/.source, // framerate
|
|
65085
|
+
/frame(?:count|rate)|framerate(?:denominator|numerator)/.source, // interlacing
|
|
65086
|
+
/getparity|is(?:field|frame)based/.source, // color format
|
|
65087
|
+
/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/
|
|
65088
|
+
.source, // audio
|
|
65089
|
+
/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/
|
|
65090
|
+
.source
|
|
65091
|
+
].join('|');
|
|
65092
|
+
var filters = [
|
|
65093
|
+
// source
|
|
65094
|
+
/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/
|
|
65095
|
+
.source, // color
|
|
65096
|
+
/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/
|
|
65097
|
+
.source, // overlay
|
|
65098
|
+
/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source, // geometry
|
|
65099
|
+
/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/
|
|
65100
|
+
.source, // pixel
|
|
65101
|
+
/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/
|
|
65102
|
+
.source, // timeline
|
|
65103
|
+
/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/
|
|
65104
|
+
.source, // interlace
|
|
65105
|
+
/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/
|
|
65106
|
+
.source, // audio
|
|
65107
|
+
/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/
|
|
65108
|
+
.source, // conditional
|
|
65109
|
+
/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/
|
|
65110
|
+
.source, // export
|
|
65111
|
+
/imagewriter/.source, // debug
|
|
65112
|
+
/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/
|
|
65113
|
+
.source
|
|
65114
|
+
].join('|');
|
|
65115
|
+
var allinternals = [internals, properties, filters].join('|');
|
|
65116
|
+
Prism.languages.avisynth = {
|
|
65117
|
+
comment: [
|
|
65118
|
+
{
|
|
65119
|
+
// Matches [* *] nestable block comments, but only supports 1 level of nested comments
|
|
65120
|
+
// /\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|<self>)*\*\]/
|
|
65121
|
+
pattern:
|
|
65122
|
+
/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,
|
|
65123
|
+
lookbehind: true,
|
|
65124
|
+
greedy: true
|
|
65125
|
+
},
|
|
65126
|
+
{
|
|
65127
|
+
// Matches /* */ block comments
|
|
65128
|
+
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
|
|
65129
|
+
lookbehind: true,
|
|
65130
|
+
greedy: true
|
|
65131
|
+
},
|
|
65132
|
+
{
|
|
65133
|
+
// Matches # comments
|
|
65134
|
+
pattern: /(^|[^\\$])#.*/,
|
|
65135
|
+
lookbehind: true,
|
|
65136
|
+
greedy: true
|
|
65137
|
+
}
|
|
65138
|
+
],
|
|
65139
|
+
// Handle before strings because optional arguments are surrounded by double quotes
|
|
65140
|
+
argument: {
|
|
65141
|
+
pattern: re(/\b(?:<<0>>)\s+("?)\w+\1/.source, [types], 'i'),
|
|
65142
|
+
inside: {
|
|
65143
|
+
keyword: /^\w+/
|
|
65144
|
+
}
|
|
65145
|
+
},
|
|
65146
|
+
// Optional argument assignment
|
|
65147
|
+
'argument-label': {
|
|
65148
|
+
pattern: /([,(][\s\\]*)\w+\s*=(?!=)/,
|
|
65149
|
+
lookbehind: true,
|
|
65150
|
+
inside: {
|
|
65151
|
+
'argument-name': {
|
|
65152
|
+
pattern: /^\w+/,
|
|
65153
|
+
alias: 'punctuation'
|
|
65154
|
+
},
|
|
65155
|
+
punctuation: /=$/
|
|
65156
|
+
}
|
|
65157
|
+
},
|
|
65158
|
+
string: [
|
|
65159
|
+
{
|
|
65160
|
+
// triple double-quoted
|
|
65161
|
+
pattern: /"""[\s\S]*?"""/,
|
|
65162
|
+
greedy: true
|
|
65163
|
+
},
|
|
65164
|
+
{
|
|
65165
|
+
// single double-quoted
|
|
65166
|
+
pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,
|
|
65167
|
+
greedy: true,
|
|
65168
|
+
inside: {
|
|
65169
|
+
constant: {
|
|
65170
|
+
// These *are* case-sensitive!
|
|
65171
|
+
pattern:
|
|
65172
|
+
/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/
|
|
65173
|
+
}
|
|
65174
|
+
}
|
|
65175
|
+
}
|
|
65176
|
+
],
|
|
65177
|
+
// The special "last" variable that takes the value of the last implicitly returned clip
|
|
65178
|
+
variable: /\b(?:last)\b/i,
|
|
65179
|
+
boolean: /\b(?:false|no|true|yes)\b/i,
|
|
65180
|
+
keyword:
|
|
65181
|
+
/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,
|
|
65182
|
+
constant: /\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,
|
|
65183
|
+
// AviSynth's internal functions, filters, and properties
|
|
65184
|
+
'builtin-function': {
|
|
65185
|
+
pattern: re(/\b(?:<<0>>)\b/.source, [allinternals], 'i'),
|
|
65186
|
+
alias: 'function'
|
|
65187
|
+
},
|
|
65188
|
+
'type-cast': {
|
|
65189
|
+
pattern: re(/\b(?:<<0>>)(?=\s*\()/.source, [types], 'i'),
|
|
65190
|
+
alias: 'keyword'
|
|
65191
|
+
},
|
|
65192
|
+
// External/user-defined filters
|
|
65193
|
+
function: {
|
|
65194
|
+
pattern: /\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,
|
|
65195
|
+
lookbehind: true
|
|
65196
|
+
},
|
|
65197
|
+
// Matches a \ as the first or last character on a line
|
|
65198
|
+
'line-continuation': {
|
|
65199
|
+
pattern: /(^[ \t]*)\\|\\(?=[ \t]*$)/m,
|
|
65200
|
+
lookbehind: true,
|
|
65201
|
+
alias: 'punctuation'
|
|
65202
|
+
},
|
|
65203
|
+
number:
|
|
65204
|
+
/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,
|
|
65205
|
+
operator: /\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,
|
|
65206
|
+
punctuation: /[{}\[\]();,.]/
|
|
65207
|
+
};
|
|
65208
|
+
Prism.languages.avs = Prism.languages.avisynth;
|
|
65209
|
+
})(Prism);
|
|
65210
|
+
}
|
|
65211
|
+
return avisynth_1;
|
|
64635
65212
|
}
|
|
64636
65213
|
|
|
64637
|
-
var avisynth$1 = /*#__PURE__*/_mergeNamespaces({
|
|
64638
|
-
__proto__: null,
|
|
64639
|
-
'default': avisynth_1
|
|
64640
|
-
}, [avisynth_1]);
|
|
64641
|
-
|
|
64642
65214
|
var avroIdl_1;
|
|
64643
65215
|
var hasRequiredAvroIdl;
|
|
64644
65216
|
|
|
@@ -85872,7 +86444,7 @@ refractor.register(al_1);
|
|
|
85872
86444
|
refractor.register(antlr4_1);
|
|
85873
86445
|
refractor.register(apacheconf_1);
|
|
85874
86446
|
refractor.register(apex_1);
|
|
85875
|
-
refractor.register(
|
|
86447
|
+
refractor.register(apl_1);
|
|
85876
86448
|
refractor.register(applescript_1);
|
|
85877
86449
|
refractor.register(aql_1);
|
|
85878
86450
|
refractor.register(arduino_1);
|
|
@@ -85883,7 +86455,7 @@ refractor.register(asmatmel_1);
|
|
|
85883
86455
|
refractor.register(aspnet_1);
|
|
85884
86456
|
refractor.register(autohotkey_1);
|
|
85885
86457
|
refractor.register(autoit_1);
|
|
85886
|
-
refractor.register(
|
|
86458
|
+
refractor.register(requireAvisynth());
|
|
85887
86459
|
refractor.register(requireAvroIdl());
|
|
85888
86460
|
refractor.register(requireBash());
|
|
85889
86461
|
refractor.register(requireBasic());
|
|
@@ -87608,14 +88180,16 @@ var Fields = function Fields(_ref) {
|
|
|
87608
88180
|
var _useFormikContext = formik.useFormikContext(),
|
|
87609
88181
|
values = _useFormikContext.values,
|
|
87610
88182
|
setFieldValue = _useFormikContext.setFieldValue,
|
|
87611
|
-
resetForm = _useFormikContext.resetForm
|
|
88183
|
+
resetForm = _useFormikContext.resetForm,
|
|
88184
|
+
errors = _useFormikContext.errors;
|
|
87612
88185
|
|
|
87613
88186
|
React$1.useEffect(function () {
|
|
87614
88187
|
return handleValuesChanged(values);
|
|
87615
88188
|
}, [values]);
|
|
87616
88189
|
React$1.useImperativeHandle(scheduleRef, function () {
|
|
87617
88190
|
return {
|
|
87618
|
-
resetForm: resetForm
|
|
88191
|
+
resetForm: resetForm,
|
|
88192
|
+
errors: errors
|
|
87619
88193
|
};
|
|
87620
88194
|
});
|
|
87621
88195
|
return /*#__PURE__*/React__default$1["default"].createElement(formik.FieldArray, {
|
|
@@ -87736,16 +88310,17 @@ var Schedule = /*#__PURE__*/React$1.forwardRef(function (_ref, scheduleRef) {
|
|
|
87736
88310
|
handleValuesChanged = _ref$handleValuesChan === void 0 ? noop$2 : _ref$handleValuesChan;
|
|
87737
88311
|
|
|
87738
88312
|
var handleCopy = function handleCopy(_ref2) {
|
|
88313
|
+
var _values$wdays$index$p;
|
|
88314
|
+
|
|
87739
88315
|
var values = _ref2.values,
|
|
87740
88316
|
index = _ref2.index,
|
|
87741
88317
|
setFieldValue = _ref2.setFieldValue,
|
|
87742
88318
|
wdaysToCopy = _ref2.wdaysToCopy;
|
|
87743
|
-
|
|
87744
|
-
var newPeriods = values.wdays[index].periods.map(ramda.pick(["startTime", "endTime"]));
|
|
88319
|
+
var newPeriods = (_values$wdays$index$p = values.wdays[index].periods) === null || _values$wdays$index$p === void 0 ? void 0 : _values$wdays$index$p.map(ramda.pick(["startTime", "endTime"]));
|
|
87745
88320
|
wdaysToCopy.forEach(function (wday) {
|
|
87746
|
-
var
|
|
87747
|
-
setFieldValue("wdays[".concat(
|
|
87748
|
-
setFieldValue("wdays[".concat(
|
|
88321
|
+
var dayIndex = DAYS.indexOf(wday);
|
|
88322
|
+
setFieldValue("wdays[".concat(dayIndex, "].available"), isPresent(values.wdays[index].periods));
|
|
88323
|
+
setFieldValue("wdays[".concat(dayIndex, "].periods"), newPeriods.map(function (period) {
|
|
87749
88324
|
return ramda.assoc("wday", wday, period);
|
|
87750
88325
|
}));
|
|
87751
88326
|
});
|
|
@@ -90713,12 +91288,12 @@ var zephir = /*#__PURE__*/_mergeNamespaces({
|
|
|
90713
91288
|
'default': zephirExports
|
|
90714
91289
|
}, [zephirExports]);
|
|
90715
91290
|
|
|
90716
|
-
var
|
|
91291
|
+
var avisynthExports = requireAvisynth();
|
|
90717
91292
|
|
|
90718
|
-
var
|
|
91293
|
+
var avisynth = /*#__PURE__*/_mergeNamespaces({
|
|
90719
91294
|
__proto__: null,
|
|
90720
|
-
'default':
|
|
90721
|
-
}, [
|
|
91295
|
+
'default': avisynthExports
|
|
91296
|
+
}, [avisynthExports]);
|
|
90722
91297
|
|
|
90723
91298
|
var avroIdlExports = requireAvroIdl();
|
|
90724
91299
|
|
|
@@ -92489,6 +93064,7 @@ exports.Schedule = Schedule;
|
|
|
92489
93064
|
exports.Sidebar = Sidebar;
|
|
92490
93065
|
exports.TimeFormat = TimeFormat;
|
|
92491
93066
|
exports.useDebounce = useDebounce;
|
|
93067
|
+
exports.useDisplayErrorPage = useDisplayErrorPage;
|
|
92492
93068
|
exports.useFuncDebounce = useFuncDebounce;
|
|
92493
93069
|
exports.useIsElementVisibleInDom = useIsElementVisibleInDom;
|
|
92494
93070
|
exports.useLocalStorage = useLocalStorage;
|