@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.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default$1, { useState, useEffect, useRef, useImperativeHandle, forwardRef } from 'react';
|
|
2
|
+
import React__default$1, { useState, useEffect, useDebugValue, useRef, useImperativeHandle, forwardRef } from 'react';
|
|
3
3
|
import { Search, MenuHorizontal, Copy, Check, Help, Delete, Plus, MenuVertical, Clock, LeftArrow as LeftArrow$1, User, Settings } from '@bigbinary/neeto-icons';
|
|
4
4
|
import { Dropdown, Input, Label, Checkbox, Toastr, Tag, Typography, Button, Pane, PageLoader, Table, Alert, Tooltip, Modal, Switch } from '@bigbinary/neetoui';
|
|
5
|
-
import { curryN, isNil, complement as complement$1, isEmpty, either as either$1, curry, includes, __, filter, trim, toLower, identity, without, append, fromPairs, keys, values, last, pluck, any, uniq, intersection, difference, pick, assoc, mergeLeft, not as not$2, toPairs } from 'ramda';
|
|
5
|
+
import { curryN, isNil, complement as complement$1, isEmpty, either as either$1, curry, includes, __, filter, trim, toLower, identity, without, append, prop as prop$1, fromPairs, keys, values, last, pluck, any, uniq, intersection, difference, pick, assoc, mergeLeft, not as not$2, toPairs } from 'ramda';
|
|
6
6
|
import { Container, Header as Header$1, SubHeader, Sidebar as Sidebar$1, AppSwitcher } from '@bigbinary/neetoui/layouts';
|
|
7
7
|
import { useTranslation, Trans } from 'react-i18next';
|
|
8
8
|
import { Input as Input$1, MultiEmailInput, Select, Checkbox as Checkbox$1, Button as Button$1 } from '@bigbinary/neetoui/formik';
|
|
@@ -371,6 +371,563 @@ var Columns = function Columns(_ref) {
|
|
|
371
371
|
}, noColumnMessage), !!actionBlock && /*#__PURE__*/React__default$1.createElement(React__default$1.Fragment, null, /*#__PURE__*/React__default$1.createElement(Divider, null), actionBlock))));
|
|
372
372
|
};
|
|
373
373
|
|
|
374
|
+
const createStoreImpl = (createState) => {
|
|
375
|
+
let state;
|
|
376
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
377
|
+
const setState = (partial, replace) => {
|
|
378
|
+
const nextState = typeof partial === "function" ? partial(state) : partial;
|
|
379
|
+
if (!Object.is(nextState, state)) {
|
|
380
|
+
const previousState = state;
|
|
381
|
+
state = (replace != null ? replace : typeof nextState !== "object") ? nextState : Object.assign({}, state, nextState);
|
|
382
|
+
listeners.forEach((listener) => listener(state, previousState));
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
const getState = () => state;
|
|
386
|
+
const subscribe = (listener) => {
|
|
387
|
+
listeners.add(listener);
|
|
388
|
+
return () => listeners.delete(listener);
|
|
389
|
+
};
|
|
390
|
+
const destroy = () => listeners.clear();
|
|
391
|
+
const api = { setState, getState, subscribe, destroy };
|
|
392
|
+
state = createState(
|
|
393
|
+
setState,
|
|
394
|
+
getState,
|
|
395
|
+
api
|
|
396
|
+
);
|
|
397
|
+
return api;
|
|
398
|
+
};
|
|
399
|
+
const createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
|
|
400
|
+
|
|
401
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
402
|
+
|
|
403
|
+
function getDefaultExportFromCjs (x) {
|
|
404
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
var withSelector = {exports: {}};
|
|
408
|
+
|
|
409
|
+
var withSelector_production_min = {};
|
|
410
|
+
|
|
411
|
+
var shim = {exports: {}};
|
|
412
|
+
|
|
413
|
+
var useSyncExternalStoreShim_production_min = {};
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* @license React
|
|
417
|
+
* use-sync-external-store-shim.production.min.js
|
|
418
|
+
*
|
|
419
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
420
|
+
*
|
|
421
|
+
* This source code is licensed under the MIT license found in the
|
|
422
|
+
* LICENSE file in the root directory of this source tree.
|
|
423
|
+
*/
|
|
424
|
+
|
|
425
|
+
var hasRequiredUseSyncExternalStoreShim_production_min;
|
|
426
|
+
|
|
427
|
+
function requireUseSyncExternalStoreShim_production_min () {
|
|
428
|
+
if (hasRequiredUseSyncExternalStoreShim_production_min) return useSyncExternalStoreShim_production_min;
|
|
429
|
+
hasRequiredUseSyncExternalStoreShim_production_min = 1;
|
|
430
|
+
var e=React__default$1;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}
|
|
431
|
+
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;
|
|
432
|
+
return useSyncExternalStoreShim_production_min;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
var useSyncExternalStoreShim_development = {};
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* @license React
|
|
439
|
+
* use-sync-external-store-shim.development.js
|
|
440
|
+
*
|
|
441
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
442
|
+
*
|
|
443
|
+
* This source code is licensed under the MIT license found in the
|
|
444
|
+
* LICENSE file in the root directory of this source tree.
|
|
445
|
+
*/
|
|
446
|
+
|
|
447
|
+
var hasRequiredUseSyncExternalStoreShim_development;
|
|
448
|
+
|
|
449
|
+
function requireUseSyncExternalStoreShim_development () {
|
|
450
|
+
if (hasRequiredUseSyncExternalStoreShim_development) return useSyncExternalStoreShim_development;
|
|
451
|
+
hasRequiredUseSyncExternalStoreShim_development = 1;
|
|
452
|
+
|
|
453
|
+
if (process.env.NODE_ENV !== "production") {
|
|
454
|
+
(function() {
|
|
455
|
+
|
|
456
|
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
457
|
+
if (
|
|
458
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
459
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
|
|
460
|
+
'function'
|
|
461
|
+
) {
|
|
462
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
463
|
+
}
|
|
464
|
+
var React = React__default$1;
|
|
465
|
+
|
|
466
|
+
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
467
|
+
|
|
468
|
+
function error(format) {
|
|
469
|
+
{
|
|
470
|
+
{
|
|
471
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
472
|
+
args[_key2 - 1] = arguments[_key2];
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
printWarning('error', format, args);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
function printWarning(level, format, args) {
|
|
481
|
+
// When changing this logic, you might want to also
|
|
482
|
+
// update consoleWithStackDev.www.js as well.
|
|
483
|
+
{
|
|
484
|
+
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
485
|
+
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
|
486
|
+
|
|
487
|
+
if (stack !== '') {
|
|
488
|
+
format += '%s';
|
|
489
|
+
args = args.concat([stack]);
|
|
490
|
+
} // eslint-disable-next-line react-internal/safe-string-coercion
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
var argsWithFormat = args.map(function (item) {
|
|
494
|
+
return String(item);
|
|
495
|
+
}); // Careful: RN currently depends on this prefix
|
|
496
|
+
|
|
497
|
+
argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
|
|
498
|
+
// breaks IE9: https://github.com/facebook/react/issues/13610
|
|
499
|
+
// eslint-disable-next-line react-internal/no-production-logging
|
|
500
|
+
|
|
501
|
+
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
507
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
508
|
+
*/
|
|
509
|
+
function is(x, y) {
|
|
510
|
+
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
|
|
511
|
+
;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
var objectIs = typeof Object.is === 'function' ? Object.is : is;
|
|
515
|
+
|
|
516
|
+
// dispatch for CommonJS interop named imports.
|
|
517
|
+
|
|
518
|
+
var useState = React.useState,
|
|
519
|
+
useEffect = React.useEffect,
|
|
520
|
+
useLayoutEffect = React.useLayoutEffect,
|
|
521
|
+
useDebugValue = React.useDebugValue;
|
|
522
|
+
var didWarnOld18Alpha = false;
|
|
523
|
+
var didWarnUncachedGetSnapshot = false; // Disclaimer: This shim breaks many of the rules of React, and only works
|
|
524
|
+
// because of a very particular set of implementation details and assumptions
|
|
525
|
+
// -- change any one of them and it will break. The most important assumption
|
|
526
|
+
// is that updates are always synchronous, because concurrent rendering is
|
|
527
|
+
// only available in versions of React that also have a built-in
|
|
528
|
+
// useSyncExternalStore API. And we only use this shim when the built-in API
|
|
529
|
+
// does not exist.
|
|
530
|
+
//
|
|
531
|
+
// Do not assume that the clever hacks used by this hook also work in general.
|
|
532
|
+
// The point of this shim is to replace the need for hacks by other libraries.
|
|
533
|
+
|
|
534
|
+
function useSyncExternalStore(subscribe, getSnapshot, // Note: The shim does not use getServerSnapshot, because pre-18 versions of
|
|
535
|
+
// React do not expose a way to check if we're hydrating. So users of the shim
|
|
536
|
+
// will need to track that themselves and return the correct value
|
|
537
|
+
// from `getSnapshot`.
|
|
538
|
+
getServerSnapshot) {
|
|
539
|
+
{
|
|
540
|
+
if (!didWarnOld18Alpha) {
|
|
541
|
+
if (React.startTransition !== undefined) {
|
|
542
|
+
didWarnOld18Alpha = true;
|
|
543
|
+
|
|
544
|
+
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.');
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
} // Read the current snapshot from the store on every render. Again, this
|
|
548
|
+
// breaks the rules of React, and only works here because of specific
|
|
549
|
+
// implementation details, most importantly that updates are
|
|
550
|
+
// always synchronous.
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
var value = getSnapshot();
|
|
554
|
+
|
|
555
|
+
{
|
|
556
|
+
if (!didWarnUncachedGetSnapshot) {
|
|
557
|
+
var cachedValue = getSnapshot();
|
|
558
|
+
|
|
559
|
+
if (!objectIs(value, cachedValue)) {
|
|
560
|
+
error('The result of getSnapshot should be cached to avoid an infinite loop');
|
|
561
|
+
|
|
562
|
+
didWarnUncachedGetSnapshot = true;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
} // Because updates are synchronous, we don't queue them. Instead we force a
|
|
566
|
+
// re-render whenever the subscribed state changes by updating an some
|
|
567
|
+
// arbitrary useState hook. Then, during render, we call getSnapshot to read
|
|
568
|
+
// the current value.
|
|
569
|
+
//
|
|
570
|
+
// Because we don't actually use the state returned by the useState hook, we
|
|
571
|
+
// can save a bit of memory by storing other stuff in that slot.
|
|
572
|
+
//
|
|
573
|
+
// To implement the early bailout, we need to track some things on a mutable
|
|
574
|
+
// object. Usually, we would put that in a useRef hook, but we can stash it in
|
|
575
|
+
// our useState hook instead.
|
|
576
|
+
//
|
|
577
|
+
// To force a re-render, we call forceUpdate({inst}). That works because the
|
|
578
|
+
// new object always fails an equality check.
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
var _useState = useState({
|
|
582
|
+
inst: {
|
|
583
|
+
value: value,
|
|
584
|
+
getSnapshot: getSnapshot
|
|
585
|
+
}
|
|
586
|
+
}),
|
|
587
|
+
inst = _useState[0].inst,
|
|
588
|
+
forceUpdate = _useState[1]; // Track the latest getSnapshot function with a ref. This needs to be updated
|
|
589
|
+
// in the layout phase so we can access it during the tearing check that
|
|
590
|
+
// happens on subscribe.
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
useLayoutEffect(function () {
|
|
594
|
+
inst.value = value;
|
|
595
|
+
inst.getSnapshot = getSnapshot; // Whenever getSnapshot or subscribe changes, we need to check in the
|
|
596
|
+
// commit phase if there was an interleaved mutation. In concurrent mode
|
|
597
|
+
// this can happen all the time, but even in synchronous mode, an earlier
|
|
598
|
+
// effect may have mutated the store.
|
|
599
|
+
|
|
600
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
601
|
+
// Force a re-render.
|
|
602
|
+
forceUpdate({
|
|
603
|
+
inst: inst
|
|
604
|
+
});
|
|
605
|
+
}
|
|
606
|
+
}, [subscribe, value, getSnapshot]);
|
|
607
|
+
useEffect(function () {
|
|
608
|
+
// Check for changes right before subscribing. Subsequent changes will be
|
|
609
|
+
// detected in the subscription handler.
|
|
610
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
611
|
+
// Force a re-render.
|
|
612
|
+
forceUpdate({
|
|
613
|
+
inst: inst
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
var handleStoreChange = function () {
|
|
618
|
+
// TODO: Because there is no cross-renderer API for batching updates, it's
|
|
619
|
+
// up to the consumer of this library to wrap their subscription event
|
|
620
|
+
// with unstable_batchedUpdates. Should we try to detect when this isn't
|
|
621
|
+
// the case and print a warning in development?
|
|
622
|
+
// The store changed. Check if the snapshot changed since the last time we
|
|
623
|
+
// read from the store.
|
|
624
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
625
|
+
// Force a re-render.
|
|
626
|
+
forceUpdate({
|
|
627
|
+
inst: inst
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
}; // Subscribe to the store and return a clean-up function.
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
return subscribe(handleStoreChange);
|
|
634
|
+
}, [subscribe]);
|
|
635
|
+
useDebugValue(value);
|
|
636
|
+
return value;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
function checkIfSnapshotChanged(inst) {
|
|
640
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
641
|
+
var prevValue = inst.value;
|
|
642
|
+
|
|
643
|
+
try {
|
|
644
|
+
var nextValue = latestGetSnapshot();
|
|
645
|
+
return !objectIs(prevValue, nextValue);
|
|
646
|
+
} catch (error) {
|
|
647
|
+
return true;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
function useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {
|
|
652
|
+
// Note: The shim does not use getServerSnapshot, because pre-18 versions of
|
|
653
|
+
// React do not expose a way to check if we're hydrating. So users of the shim
|
|
654
|
+
// will need to track that themselves and return the correct value
|
|
655
|
+
// from `getSnapshot`.
|
|
656
|
+
return getSnapshot();
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
|
|
660
|
+
|
|
661
|
+
var isServerEnvironment = !canUseDOM;
|
|
662
|
+
|
|
663
|
+
var shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore;
|
|
664
|
+
var useSyncExternalStore$2 = React.useSyncExternalStore !== undefined ? React.useSyncExternalStore : shim;
|
|
665
|
+
|
|
666
|
+
useSyncExternalStoreShim_development.useSyncExternalStore = useSyncExternalStore$2;
|
|
667
|
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
668
|
+
if (
|
|
669
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
670
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
|
|
671
|
+
'function'
|
|
672
|
+
) {
|
|
673
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
})();
|
|
677
|
+
}
|
|
678
|
+
return useSyncExternalStoreShim_development;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
var hasRequiredShim;
|
|
682
|
+
|
|
683
|
+
function requireShim () {
|
|
684
|
+
if (hasRequiredShim) return shim.exports;
|
|
685
|
+
hasRequiredShim = 1;
|
|
686
|
+
(function (module) {
|
|
687
|
+
|
|
688
|
+
if (process.env.NODE_ENV === 'production') {
|
|
689
|
+
module.exports = requireUseSyncExternalStoreShim_production_min();
|
|
690
|
+
} else {
|
|
691
|
+
module.exports = requireUseSyncExternalStoreShim_development();
|
|
692
|
+
}
|
|
693
|
+
} (shim));
|
|
694
|
+
return shim.exports;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* @license React
|
|
699
|
+
* use-sync-external-store-shim/with-selector.production.min.js
|
|
700
|
+
*
|
|
701
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
702
|
+
*
|
|
703
|
+
* This source code is licensed under the MIT license found in the
|
|
704
|
+
* LICENSE file in the root directory of this source tree.
|
|
705
|
+
*/
|
|
706
|
+
|
|
707
|
+
var hasRequiredWithSelector_production_min;
|
|
708
|
+
|
|
709
|
+
function requireWithSelector_production_min () {
|
|
710
|
+
if (hasRequiredWithSelector_production_min) return withSelector_production_min;
|
|
711
|
+
hasRequiredWithSelector_production_min = 1;
|
|
712
|
+
var h=React__default$1,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;
|
|
713
|
+
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]);
|
|
714
|
+
u(function(){f.hasValue=!0;f.value=d;},[d]);w(d);return d};
|
|
715
|
+
return withSelector_production_min;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
var withSelector_development = {};
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* @license React
|
|
722
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
723
|
+
*
|
|
724
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
725
|
+
*
|
|
726
|
+
* This source code is licensed under the MIT license found in the
|
|
727
|
+
* LICENSE file in the root directory of this source tree.
|
|
728
|
+
*/
|
|
729
|
+
|
|
730
|
+
var hasRequiredWithSelector_development;
|
|
731
|
+
|
|
732
|
+
function requireWithSelector_development () {
|
|
733
|
+
if (hasRequiredWithSelector_development) return withSelector_development;
|
|
734
|
+
hasRequiredWithSelector_development = 1;
|
|
735
|
+
|
|
736
|
+
if (process.env.NODE_ENV !== "production") {
|
|
737
|
+
(function() {
|
|
738
|
+
|
|
739
|
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
740
|
+
if (
|
|
741
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
742
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
|
|
743
|
+
'function'
|
|
744
|
+
) {
|
|
745
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
746
|
+
}
|
|
747
|
+
var React = React__default$1;
|
|
748
|
+
var shim = requireShim();
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
752
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
753
|
+
*/
|
|
754
|
+
function is(x, y) {
|
|
755
|
+
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
|
|
756
|
+
;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
var objectIs = typeof Object.is === 'function' ? Object.is : is;
|
|
760
|
+
|
|
761
|
+
var useSyncExternalStore = shim.useSyncExternalStore;
|
|
762
|
+
|
|
763
|
+
// for CommonJS interop.
|
|
764
|
+
|
|
765
|
+
var useRef = React.useRef,
|
|
766
|
+
useEffect = React.useEffect,
|
|
767
|
+
useMemo = React.useMemo,
|
|
768
|
+
useDebugValue = React.useDebugValue; // Same as useSyncExternalStore, but supports selector and isEqual arguments.
|
|
769
|
+
|
|
770
|
+
function useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
|
|
771
|
+
// Use this to track the rendered snapshot.
|
|
772
|
+
var instRef = useRef(null);
|
|
773
|
+
var inst;
|
|
774
|
+
|
|
775
|
+
if (instRef.current === null) {
|
|
776
|
+
inst = {
|
|
777
|
+
hasValue: false,
|
|
778
|
+
value: null
|
|
779
|
+
};
|
|
780
|
+
instRef.current = inst;
|
|
781
|
+
} else {
|
|
782
|
+
inst = instRef.current;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
var _useMemo = useMemo(function () {
|
|
786
|
+
// Track the memoized state using closure variables that are local to this
|
|
787
|
+
// memoized instance of a getSnapshot function. Intentionally not using a
|
|
788
|
+
// useRef hook, because that state would be shared across all concurrent
|
|
789
|
+
// copies of the hook/component.
|
|
790
|
+
var hasMemo = false;
|
|
791
|
+
var memoizedSnapshot;
|
|
792
|
+
var memoizedSelection;
|
|
793
|
+
|
|
794
|
+
var memoizedSelector = function (nextSnapshot) {
|
|
795
|
+
if (!hasMemo) {
|
|
796
|
+
// The first time the hook is called, there is no memoized result.
|
|
797
|
+
hasMemo = true;
|
|
798
|
+
memoizedSnapshot = nextSnapshot;
|
|
799
|
+
|
|
800
|
+
var _nextSelection = selector(nextSnapshot);
|
|
801
|
+
|
|
802
|
+
if (isEqual !== undefined) {
|
|
803
|
+
// Even if the selector has changed, the currently rendered selection
|
|
804
|
+
// may be equal to the new selection. We should attempt to reuse the
|
|
805
|
+
// current value if possible, to preserve downstream memoizations.
|
|
806
|
+
if (inst.hasValue) {
|
|
807
|
+
var currentSelection = inst.value;
|
|
808
|
+
|
|
809
|
+
if (isEqual(currentSelection, _nextSelection)) {
|
|
810
|
+
memoizedSelection = currentSelection;
|
|
811
|
+
return currentSelection;
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
memoizedSelection = _nextSelection;
|
|
817
|
+
return _nextSelection;
|
|
818
|
+
} // We may be able to reuse the previous invocation's result.
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
// We may be able to reuse the previous invocation's result.
|
|
822
|
+
var prevSnapshot = memoizedSnapshot;
|
|
823
|
+
var prevSelection = memoizedSelection;
|
|
824
|
+
|
|
825
|
+
if (objectIs(prevSnapshot, nextSnapshot)) {
|
|
826
|
+
// The snapshot is the same as last time. Reuse the previous selection.
|
|
827
|
+
return prevSelection;
|
|
828
|
+
} // The snapshot has changed, so we need to compute a new selection.
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
// The snapshot has changed, so we need to compute a new selection.
|
|
832
|
+
var nextSelection = selector(nextSnapshot); // If a custom isEqual function is provided, use that to check if the data
|
|
833
|
+
// has changed. If it hasn't, return the previous selection. That signals
|
|
834
|
+
// to React that the selections are conceptually equal, and we can bail
|
|
835
|
+
// out of rendering.
|
|
836
|
+
|
|
837
|
+
// If a custom isEqual function is provided, use that to check if the data
|
|
838
|
+
// has changed. If it hasn't, return the previous selection. That signals
|
|
839
|
+
// to React that the selections are conceptually equal, and we can bail
|
|
840
|
+
// out of rendering.
|
|
841
|
+
if (isEqual !== undefined && isEqual(prevSelection, nextSelection)) {
|
|
842
|
+
return prevSelection;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
memoizedSnapshot = nextSnapshot;
|
|
846
|
+
memoizedSelection = nextSelection;
|
|
847
|
+
return nextSelection;
|
|
848
|
+
}; // Assigning this to a constant so that Flow knows it can't change.
|
|
849
|
+
|
|
850
|
+
|
|
851
|
+
// Assigning this to a constant so that Flow knows it can't change.
|
|
852
|
+
var maybeGetServerSnapshot = getServerSnapshot === undefined ? null : getServerSnapshot;
|
|
853
|
+
|
|
854
|
+
var getSnapshotWithSelector = function () {
|
|
855
|
+
return memoizedSelector(getSnapshot());
|
|
856
|
+
};
|
|
857
|
+
|
|
858
|
+
var getServerSnapshotWithSelector = maybeGetServerSnapshot === null ? undefined : function () {
|
|
859
|
+
return memoizedSelector(maybeGetServerSnapshot());
|
|
860
|
+
};
|
|
861
|
+
return [getSnapshotWithSelector, getServerSnapshotWithSelector];
|
|
862
|
+
}, [getSnapshot, getServerSnapshot, selector, isEqual]),
|
|
863
|
+
getSelection = _useMemo[0],
|
|
864
|
+
getServerSelection = _useMemo[1];
|
|
865
|
+
|
|
866
|
+
var value = useSyncExternalStore(subscribe, getSelection, getServerSelection);
|
|
867
|
+
useEffect(function () {
|
|
868
|
+
inst.hasValue = true;
|
|
869
|
+
inst.value = value;
|
|
870
|
+
}, [value]);
|
|
871
|
+
useDebugValue(value);
|
|
872
|
+
return value;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
withSelector_development.useSyncExternalStoreWithSelector = useSyncExternalStoreWithSelector;
|
|
876
|
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
877
|
+
if (
|
|
878
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
879
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
|
|
880
|
+
'function'
|
|
881
|
+
) {
|
|
882
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
})();
|
|
886
|
+
}
|
|
887
|
+
return withSelector_development;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
(function (module) {
|
|
891
|
+
|
|
892
|
+
if (process.env.NODE_ENV === 'production') {
|
|
893
|
+
module.exports = requireWithSelector_production_min();
|
|
894
|
+
} else {
|
|
895
|
+
module.exports = requireWithSelector_development();
|
|
896
|
+
}
|
|
897
|
+
} (withSelector));
|
|
898
|
+
|
|
899
|
+
var useSyncExternalStoreExports = /*@__PURE__*/getDefaultExportFromCjs(withSelector.exports);
|
|
900
|
+
|
|
901
|
+
const { useSyncExternalStoreWithSelector } = useSyncExternalStoreExports;
|
|
902
|
+
function useStore(api, selector = api.getState, equalityFn) {
|
|
903
|
+
const slice = useSyncExternalStoreWithSelector(
|
|
904
|
+
api.subscribe,
|
|
905
|
+
api.getState,
|
|
906
|
+
api.getServerState || api.getState,
|
|
907
|
+
selector,
|
|
908
|
+
equalityFn
|
|
909
|
+
);
|
|
910
|
+
useDebugValue(slice);
|
|
911
|
+
return slice;
|
|
912
|
+
}
|
|
913
|
+
const createImpl = (createState) => {
|
|
914
|
+
const api = typeof createState === "function" ? createStore(createState) : createState;
|
|
915
|
+
const useBoundStore = (selector, equalityFn) => useStore(api, selector, equalityFn);
|
|
916
|
+
Object.assign(useBoundStore, api);
|
|
917
|
+
return useBoundStore;
|
|
918
|
+
};
|
|
919
|
+
const create$7 = (createState) => createState ? createImpl(createState) : createImpl;
|
|
920
|
+
|
|
921
|
+
var useDisplayErrorPage = function useDisplayErrorPage() {
|
|
922
|
+
return useErrorDisplayStore(prop$1("show404Page"));
|
|
923
|
+
};
|
|
924
|
+
|
|
925
|
+
var useErrorDisplayStore = create$7(function () {
|
|
926
|
+
return {
|
|
927
|
+
show404Page: false
|
|
928
|
+
};
|
|
929
|
+
});
|
|
930
|
+
|
|
374
931
|
function useDebounce(value) {
|
|
375
932
|
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 350;
|
|
376
933
|
|
|
@@ -546,8 +1103,6 @@ function _asyncToGenerator$1(fn) {
|
|
|
546
1103
|
};
|
|
547
1104
|
}
|
|
548
1105
|
|
|
549
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
550
|
-
|
|
551
1106
|
var regeneratorRuntime$2 = {exports: {}};
|
|
552
1107
|
|
|
553
1108
|
var _typeof$3 = {exports: {}};
|
|
@@ -2182,6 +2737,19 @@ var FallbackComponent = function FallbackComponent() {
|
|
|
2182
2737
|
var _useTranslation = useTranslation(),
|
|
2183
2738
|
t = _useTranslation.t;
|
|
2184
2739
|
|
|
2740
|
+
useEffect(function () {
|
|
2741
|
+
var listener = function listener(e) {
|
|
2742
|
+
var _e$target;
|
|
2743
|
+
|
|
2744
|
+
if (isNil(e.state)) return;
|
|
2745
|
+
window.location.href = (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.location.href;
|
|
2746
|
+
};
|
|
2747
|
+
|
|
2748
|
+
window.addEventListener("popstate", listener);
|
|
2749
|
+
return function () {
|
|
2750
|
+
return window.removeEventListener("popstate", listener);
|
|
2751
|
+
};
|
|
2752
|
+
}, []);
|
|
2185
2753
|
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
2186
2754
|
className: "flex h-screen w-full flex-row items-start justify-start"
|
|
2187
2755
|
}, /*#__PURE__*/React__default$1.createElement("div", {
|
|
@@ -2227,10 +2795,14 @@ var HoneybadgerErrorBoundary = function HoneybadgerErrorBoundary(_ref) {
|
|
|
2227
2795
|
breadcrumbsEnabled: true,
|
|
2228
2796
|
projectRoot: "webpack:///./"
|
|
2229
2797
|
});
|
|
2230
|
-
return
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2798
|
+
return (
|
|
2799
|
+
/*#__PURE__*/
|
|
2800
|
+
// @ts-ignore
|
|
2801
|
+
React__default$1.createElement(HoneybadgerErrorBoundary$1, {
|
|
2802
|
+
honeybadger: honeybadger,
|
|
2803
|
+
ErrorComponent: ErrorComponent
|
|
2804
|
+
}, children)
|
|
2805
|
+
);
|
|
2234
2806
|
};
|
|
2235
2807
|
|
|
2236
2808
|
var ENV_BRANCH = {
|
|
@@ -53245,7 +53817,7 @@ var languageLoaders = {
|
|
|
53245
53817
|
return Promise.resolve().then(function () { return apex$1; });
|
|
53246
53818
|
}),
|
|
53247
53819
|
apl: createLanguageAsyncLoader("apl", function () {
|
|
53248
|
-
return Promise.resolve().then(function () { return apl; });
|
|
53820
|
+
return Promise.resolve().then(function () { return apl$1; });
|
|
53249
53821
|
}),
|
|
53250
53822
|
applescript: createLanguageAsyncLoader("applescript", function () {
|
|
53251
53823
|
return Promise.resolve().then(function () { return applescript$2; });
|
|
@@ -53278,7 +53850,7 @@ var languageLoaders = {
|
|
|
53278
53850
|
return Promise.resolve().then(function () { return autoit$2; });
|
|
53279
53851
|
}),
|
|
53280
53852
|
avisynth: createLanguageAsyncLoader("avisynth", function () {
|
|
53281
|
-
return Promise.resolve().then(function () { return avisynth
|
|
53853
|
+
return Promise.resolve().then(function () { return avisynth; });
|
|
53282
53854
|
}),
|
|
53283
53855
|
avroIdl: createLanguageAsyncLoader("avroIdl", function () {
|
|
53284
53856
|
return Promise.resolve().then(function () { return avroIdl; });
|
|
@@ -63062,54 +63634,50 @@ var apex$1 = /*#__PURE__*/_mergeNamespaces({
|
|
|
63062
63634
|
'default': apex_1
|
|
63063
63635
|
}, [apex_1]);
|
|
63064
63636
|
|
|
63065
|
-
var apl_1;
|
|
63066
|
-
|
|
63067
|
-
|
|
63068
|
-
function
|
|
63069
|
-
|
|
63070
|
-
|
|
63071
|
-
|
|
63072
|
-
|
|
63073
|
-
|
|
63074
|
-
|
|
63075
|
-
|
|
63076
|
-
|
|
63077
|
-
|
|
63078
|
-
|
|
63079
|
-
|
|
63080
|
-
|
|
63081
|
-
|
|
63082
|
-
|
|
63083
|
-
|
|
63084
|
-
|
|
63085
|
-
|
|
63086
|
-
|
|
63087
|
-
|
|
63088
|
-
|
|
63089
|
-
|
|
63090
|
-
|
|
63091
|
-
|
|
63092
|
-
|
|
63093
|
-
|
|
63094
|
-
|
|
63095
|
-
|
|
63096
|
-
|
|
63097
|
-
|
|
63098
|
-
|
|
63099
|
-
|
|
63100
|
-
|
|
63101
|
-
|
|
63102
|
-
},
|
|
63103
|
-
punctuation: /[\[;\]()◇⋄]/,
|
|
63104
|
-
dfn: {
|
|
63105
|
-
pattern: /[{}⍺⍵⍶⍹∇⍫:]/,
|
|
63106
|
-
alias: 'builtin'
|
|
63107
|
-
}
|
|
63108
|
-
};
|
|
63109
|
-
}
|
|
63110
|
-
return apl_1;
|
|
63637
|
+
var apl_1 = apl;
|
|
63638
|
+
apl.displayName = 'apl';
|
|
63639
|
+
apl.aliases = [];
|
|
63640
|
+
function apl(Prism) {
|
|
63641
|
+
Prism.languages.apl = {
|
|
63642
|
+
comment: /(?:⍝|#[! ]).*$/m,
|
|
63643
|
+
string: {
|
|
63644
|
+
pattern: /'(?:[^'\r\n]|'')*'/,
|
|
63645
|
+
greedy: true
|
|
63646
|
+
},
|
|
63647
|
+
number:
|
|
63648
|
+
/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,
|
|
63649
|
+
statement: /:[A-Z][a-z][A-Za-z]*\b/,
|
|
63650
|
+
'system-function': {
|
|
63651
|
+
pattern: /⎕[A-Z]+/i,
|
|
63652
|
+
alias: 'function'
|
|
63653
|
+
},
|
|
63654
|
+
constant: /[⍬⌾#⎕⍞]/,
|
|
63655
|
+
function: /[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,
|
|
63656
|
+
'monadic-operator': {
|
|
63657
|
+
pattern: /[\\\/⌿⍀¨⍨⌶&∥]/,
|
|
63658
|
+
alias: 'operator'
|
|
63659
|
+
},
|
|
63660
|
+
'dyadic-operator': {
|
|
63661
|
+
pattern: /[.⍣⍠⍤∘⌸@⌺⍥]/,
|
|
63662
|
+
alias: 'operator'
|
|
63663
|
+
},
|
|
63664
|
+
assignment: {
|
|
63665
|
+
pattern: /←/,
|
|
63666
|
+
alias: 'keyword'
|
|
63667
|
+
},
|
|
63668
|
+
punctuation: /[\[;\]()◇⋄]/,
|
|
63669
|
+
dfn: {
|
|
63670
|
+
pattern: /[{}⍺⍵⍶⍹∇⍫:]/,
|
|
63671
|
+
alias: 'builtin'
|
|
63672
|
+
}
|
|
63673
|
+
};
|
|
63111
63674
|
}
|
|
63112
63675
|
|
|
63676
|
+
var apl$1 = /*#__PURE__*/_mergeNamespaces({
|
|
63677
|
+
__proto__: null,
|
|
63678
|
+
'default': apl_1
|
|
63679
|
+
}, [apl_1]);
|
|
63680
|
+
|
|
63113
63681
|
var applescript_1 = applescript$1;
|
|
63114
63682
|
applescript$1.displayName = 'applescript';
|
|
63115
63683
|
applescript$1.aliases = [];
|
|
@@ -64430,179 +64998,183 @@ var autoit$2 = /*#__PURE__*/_mergeNamespaces({
|
|
|
64430
64998
|
'default': autoit_1
|
|
64431
64999
|
}, [autoit_1]);
|
|
64432
65000
|
|
|
64433
|
-
var avisynth_1
|
|
64434
|
-
|
|
64435
|
-
|
|
64436
|
-
function
|
|
65001
|
+
var avisynth_1;
|
|
65002
|
+
var hasRequiredAvisynth;
|
|
65003
|
+
|
|
65004
|
+
function requireAvisynth () {
|
|
65005
|
+
if (hasRequiredAvisynth) return avisynth_1;
|
|
65006
|
+
hasRequiredAvisynth = 1;
|
|
65007
|
+
|
|
65008
|
+
avisynth_1 = avisynth;
|
|
65009
|
+
avisynth.displayName = 'avisynth';
|
|
65010
|
+
avisynth.aliases = ['avs'];
|
|
65011
|
+
function avisynth(Prism) {
|
|
64437
65012
|
(function (Prism) {
|
|
64438
|
-
|
|
64439
|
-
|
|
64440
|
-
|
|
64441
|
-
|
|
64442
|
-
|
|
64443
|
-
|
|
64444
|
-
|
|
64445
|
-
|
|
64446
|
-
|
|
64447
|
-
|
|
64448
|
-
|
|
64449
|
-
|
|
64450
|
-
|
|
64451
|
-
|
|
64452
|
-
|
|
64453
|
-
|
|
64454
|
-
|
|
64455
|
-
|
|
64456
|
-
|
|
64457
|
-
|
|
64458
|
-
|
|
64459
|
-
|
|
64460
|
-
|
|
64461
|
-
|
|
64462
|
-
|
|
64463
|
-
|
|
64464
|
-
|
|
64465
|
-
|
|
64466
|
-
|
|
64467
|
-
|
|
64468
|
-
|
|
64469
|
-
|
|
64470
|
-
|
|
64471
|
-
|
|
64472
|
-
|
|
64473
|
-
|
|
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
|
-
|
|
65013
|
+
function replace(pattern, replacements) {
|
|
65014
|
+
return pattern.replace(/<<(\d+)>>/g, function (m, index) {
|
|
65015
|
+
return replacements[+index]
|
|
65016
|
+
})
|
|
65017
|
+
}
|
|
65018
|
+
function re(pattern, replacements, flags) {
|
|
65019
|
+
return RegExp(replace(pattern, replacements), flags || '')
|
|
65020
|
+
}
|
|
65021
|
+
var types = /bool|clip|float|int|string|val/.source;
|
|
65022
|
+
var internals = [
|
|
65023
|
+
// bools
|
|
65024
|
+
/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/
|
|
65025
|
+
.source, // control
|
|
65026
|
+
/apply|assert|default|eval|import|nop|select|undefined/.source, // global
|
|
65027
|
+
/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/
|
|
65028
|
+
.source, // conv
|
|
65029
|
+
/hex(?:value)?|value/.source, // numeric
|
|
65030
|
+
/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/
|
|
65031
|
+
.source, // trig
|
|
65032
|
+
/a?sinh?|a?cosh?|a?tan[2h]?/.source, // bit
|
|
65033
|
+
/(?: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?))/
|
|
65034
|
+
.source, // runtime
|
|
65035
|
+
/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/
|
|
65036
|
+
.source, // script
|
|
65037
|
+
/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/
|
|
65038
|
+
.source, // string
|
|
65039
|
+
/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/
|
|
65040
|
+
.source, // version
|
|
65041
|
+
/isversionorgreater|version(?:number|string)/.source, // helper
|
|
65042
|
+
/buildpixeltype|colorspacenametopixeltype/.source, // avsplus
|
|
65043
|
+
/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source
|
|
65044
|
+
].join('|');
|
|
65045
|
+
var properties = [
|
|
65046
|
+
// content
|
|
65047
|
+
/has(?:audio|video)/.source, // resolution
|
|
65048
|
+
/height|width/.source, // framerate
|
|
65049
|
+
/frame(?:count|rate)|framerate(?:denominator|numerator)/.source, // interlacing
|
|
65050
|
+
/getparity|is(?:field|frame)based/.source, // color format
|
|
65051
|
+
/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/
|
|
65052
|
+
.source, // audio
|
|
65053
|
+
/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/
|
|
65054
|
+
.source
|
|
65055
|
+
].join('|');
|
|
65056
|
+
var filters = [
|
|
65057
|
+
// source
|
|
65058
|
+
/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/
|
|
65059
|
+
.source, // color
|
|
65060
|
+
/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/
|
|
65061
|
+
.source, // overlay
|
|
65062
|
+
/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source, // geometry
|
|
65063
|
+
/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)/
|
|
65064
|
+
.source, // pixel
|
|
65065
|
+
/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/
|
|
65066
|
+
.source, // timeline
|
|
65067
|
+
/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)/
|
|
65068
|
+
.source, // interlace
|
|
65069
|
+
/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/
|
|
65070
|
+
.source, // audio
|
|
65071
|
+
/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/
|
|
65072
|
+
.source, // conditional
|
|
65073
|
+
/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/
|
|
65074
|
+
.source, // export
|
|
65075
|
+
/imagewriter/.source, // debug
|
|
65076
|
+
/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/
|
|
65077
|
+
.source
|
|
65078
|
+
].join('|');
|
|
65079
|
+
var allinternals = [internals, properties, filters].join('|');
|
|
65080
|
+
Prism.languages.avisynth = {
|
|
65081
|
+
comment: [
|
|
65082
|
+
{
|
|
65083
|
+
// Matches [* *] nestable block comments, but only supports 1 level of nested comments
|
|
65084
|
+
// /\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|<self>)*\*\]/
|
|
65085
|
+
pattern:
|
|
65086
|
+
/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,
|
|
65087
|
+
lookbehind: true,
|
|
65088
|
+
greedy: true
|
|
65089
|
+
},
|
|
65090
|
+
{
|
|
65091
|
+
// Matches /* */ block comments
|
|
65092
|
+
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
|
|
65093
|
+
lookbehind: true,
|
|
65094
|
+
greedy: true
|
|
65095
|
+
},
|
|
65096
|
+
{
|
|
65097
|
+
// Matches # comments
|
|
65098
|
+
pattern: /(^|[^\\$])#.*/,
|
|
65099
|
+
lookbehind: true,
|
|
65100
|
+
greedy: true
|
|
65101
|
+
}
|
|
65102
|
+
],
|
|
65103
|
+
// Handle before strings because optional arguments are surrounded by double quotes
|
|
65104
|
+
argument: {
|
|
65105
|
+
pattern: re(/\b(?:<<0>>)\s+("?)\w+\1/.source, [types], 'i'),
|
|
65106
|
+
inside: {
|
|
65107
|
+
keyword: /^\w+/
|
|
65108
|
+
}
|
|
65109
|
+
},
|
|
65110
|
+
// Optional argument assignment
|
|
65111
|
+
'argument-label': {
|
|
65112
|
+
pattern: /([,(][\s\\]*)\w+\s*=(?!=)/,
|
|
65113
|
+
lookbehind: true,
|
|
65114
|
+
inside: {
|
|
65115
|
+
'argument-name': {
|
|
65116
|
+
pattern: /^\w+/,
|
|
65117
|
+
alias: 'punctuation'
|
|
65118
|
+
},
|
|
65119
|
+
punctuation: /=$/
|
|
65120
|
+
}
|
|
65121
|
+
},
|
|
65122
|
+
string: [
|
|
65123
|
+
{
|
|
65124
|
+
// triple double-quoted
|
|
65125
|
+
pattern: /"""[\s\S]*?"""/,
|
|
65126
|
+
greedy: true
|
|
65127
|
+
},
|
|
65128
|
+
{
|
|
65129
|
+
// single double-quoted
|
|
65130
|
+
pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,
|
|
65131
|
+
greedy: true,
|
|
65132
|
+
inside: {
|
|
65133
|
+
constant: {
|
|
65134
|
+
// These *are* case-sensitive!
|
|
65135
|
+
pattern:
|
|
65136
|
+
/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/
|
|
65137
|
+
}
|
|
65138
|
+
}
|
|
65139
|
+
}
|
|
65140
|
+
],
|
|
65141
|
+
// The special "last" variable that takes the value of the last implicitly returned clip
|
|
65142
|
+
variable: /\b(?:last)\b/i,
|
|
65143
|
+
boolean: /\b(?:false|no|true|yes)\b/i,
|
|
65144
|
+
keyword:
|
|
65145
|
+
/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,
|
|
65146
|
+
constant: /\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,
|
|
65147
|
+
// AviSynth's internal functions, filters, and properties
|
|
65148
|
+
'builtin-function': {
|
|
65149
|
+
pattern: re(/\b(?:<<0>>)\b/.source, [allinternals], 'i'),
|
|
65150
|
+
alias: 'function'
|
|
65151
|
+
},
|
|
65152
|
+
'type-cast': {
|
|
65153
|
+
pattern: re(/\b(?:<<0>>)(?=\s*\()/.source, [types], 'i'),
|
|
65154
|
+
alias: 'keyword'
|
|
65155
|
+
},
|
|
65156
|
+
// External/user-defined filters
|
|
65157
|
+
function: {
|
|
65158
|
+
pattern: /\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,
|
|
65159
|
+
lookbehind: true
|
|
65160
|
+
},
|
|
65161
|
+
// Matches a \ as the first or last character on a line
|
|
65162
|
+
'line-continuation': {
|
|
65163
|
+
pattern: /(^[ \t]*)\\|\\(?=[ \t]*$)/m,
|
|
65164
|
+
lookbehind: true,
|
|
65165
|
+
alias: 'punctuation'
|
|
65166
|
+
},
|
|
65167
|
+
number:
|
|
65168
|
+
/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,
|
|
65169
|
+
operator: /\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,
|
|
65170
|
+
punctuation: /[{}\[\]();,.]/
|
|
65171
|
+
};
|
|
65172
|
+
Prism.languages.avs = Prism.languages.avisynth;
|
|
65173
|
+
})(Prism);
|
|
65174
|
+
}
|
|
65175
|
+
return avisynth_1;
|
|
64599
65176
|
}
|
|
64600
65177
|
|
|
64601
|
-
var avisynth$1 = /*#__PURE__*/_mergeNamespaces({
|
|
64602
|
-
__proto__: null,
|
|
64603
|
-
'default': avisynth_1
|
|
64604
|
-
}, [avisynth_1]);
|
|
64605
|
-
|
|
64606
65178
|
var avroIdl_1;
|
|
64607
65179
|
var hasRequiredAvroIdl;
|
|
64608
65180
|
|
|
@@ -85836,7 +86408,7 @@ refractor.register(al_1);
|
|
|
85836
86408
|
refractor.register(antlr4_1);
|
|
85837
86409
|
refractor.register(apacheconf_1);
|
|
85838
86410
|
refractor.register(apex_1);
|
|
85839
|
-
refractor.register(
|
|
86411
|
+
refractor.register(apl_1);
|
|
85840
86412
|
refractor.register(applescript_1);
|
|
85841
86413
|
refractor.register(aql_1);
|
|
85842
86414
|
refractor.register(arduino_1);
|
|
@@ -85847,7 +86419,7 @@ refractor.register(asmatmel_1);
|
|
|
85847
86419
|
refractor.register(aspnet_1);
|
|
85848
86420
|
refractor.register(autohotkey_1);
|
|
85849
86421
|
refractor.register(autoit_1);
|
|
85850
|
-
refractor.register(
|
|
86422
|
+
refractor.register(requireAvisynth());
|
|
85851
86423
|
refractor.register(requireAvroIdl());
|
|
85852
86424
|
refractor.register(requireBash());
|
|
85853
86425
|
refractor.register(requireBasic());
|
|
@@ -87572,14 +88144,16 @@ var Fields = function Fields(_ref) {
|
|
|
87572
88144
|
var _useFormikContext = useFormikContext(),
|
|
87573
88145
|
values = _useFormikContext.values,
|
|
87574
88146
|
setFieldValue = _useFormikContext.setFieldValue,
|
|
87575
|
-
resetForm = _useFormikContext.resetForm
|
|
88147
|
+
resetForm = _useFormikContext.resetForm,
|
|
88148
|
+
errors = _useFormikContext.errors;
|
|
87576
88149
|
|
|
87577
88150
|
useEffect(function () {
|
|
87578
88151
|
return handleValuesChanged(values);
|
|
87579
88152
|
}, [values]);
|
|
87580
88153
|
useImperativeHandle(scheduleRef, function () {
|
|
87581
88154
|
return {
|
|
87582
|
-
resetForm: resetForm
|
|
88155
|
+
resetForm: resetForm,
|
|
88156
|
+
errors: errors
|
|
87583
88157
|
};
|
|
87584
88158
|
});
|
|
87585
88159
|
return /*#__PURE__*/React__default$1.createElement(FieldArray, {
|
|
@@ -87700,16 +88274,17 @@ var Schedule = /*#__PURE__*/forwardRef(function (_ref, scheduleRef) {
|
|
|
87700
88274
|
handleValuesChanged = _ref$handleValuesChan === void 0 ? noop$2 : _ref$handleValuesChan;
|
|
87701
88275
|
|
|
87702
88276
|
var handleCopy = function handleCopy(_ref2) {
|
|
88277
|
+
var _values$wdays$index$p;
|
|
88278
|
+
|
|
87703
88279
|
var values = _ref2.values,
|
|
87704
88280
|
index = _ref2.index,
|
|
87705
88281
|
setFieldValue = _ref2.setFieldValue,
|
|
87706
88282
|
wdaysToCopy = _ref2.wdaysToCopy;
|
|
87707
|
-
|
|
87708
|
-
var newPeriods = values.wdays[index].periods.map(pick(["startTime", "endTime"]));
|
|
88283
|
+
var newPeriods = (_values$wdays$index$p = values.wdays[index].periods) === null || _values$wdays$index$p === void 0 ? void 0 : _values$wdays$index$p.map(pick(["startTime", "endTime"]));
|
|
87709
88284
|
wdaysToCopy.forEach(function (wday) {
|
|
87710
|
-
var
|
|
87711
|
-
setFieldValue("wdays[".concat(
|
|
87712
|
-
setFieldValue("wdays[".concat(
|
|
88285
|
+
var dayIndex = DAYS.indexOf(wday);
|
|
88286
|
+
setFieldValue("wdays[".concat(dayIndex, "].available"), isPresent(values.wdays[index].periods));
|
|
88287
|
+
setFieldValue("wdays[".concat(dayIndex, "].periods"), newPeriods.map(function (period) {
|
|
87713
88288
|
return assoc("wday", wday, period);
|
|
87714
88289
|
}));
|
|
87715
88290
|
});
|
|
@@ -90677,12 +91252,12 @@ var zephir = /*#__PURE__*/_mergeNamespaces({
|
|
|
90677
91252
|
'default': zephirExports
|
|
90678
91253
|
}, [zephirExports]);
|
|
90679
91254
|
|
|
90680
|
-
var
|
|
91255
|
+
var avisynthExports = requireAvisynth();
|
|
90681
91256
|
|
|
90682
|
-
var
|
|
91257
|
+
var avisynth = /*#__PURE__*/_mergeNamespaces({
|
|
90683
91258
|
__proto__: null,
|
|
90684
|
-
'default':
|
|
90685
|
-
}, [
|
|
91259
|
+
'default': avisynthExports
|
|
91260
|
+
}, [avisynthExports]);
|
|
90686
91261
|
|
|
90687
91262
|
var avroIdlExports = requireAvroIdl();
|
|
90688
91263
|
|
|
@@ -92441,4 +93016,4 @@ var zig = /*#__PURE__*/_mergeNamespaces({
|
|
|
92441
93016
|
'default': zigExports
|
|
92442
93017
|
}, [zigExports]);
|
|
92443
93018
|
|
|
92444
|
-
export { Columns, CustomDomain, DateFormat, ErrorPage, HoneybadgerErrorBoundary, SignIn as LoginPage, NeetoWidget, PrivateRoute, Schedule, Sidebar, TimeFormat, useDebounce, useFuncDebounce, useIsElementVisibleInDom, useLocalStorage, useOnClickOutside, usePrevious, useUpdateEffect, withImmutableActions };
|
|
93019
|
+
export { Columns, CustomDomain, DateFormat, ErrorPage, HoneybadgerErrorBoundary, SignIn as LoginPage, NeetoWidget, PrivateRoute, Schedule, Sidebar, TimeFormat, useDebounce, useDisplayErrorPage, useFuncDebounce, useIsElementVisibleInDom, useLocalStorage, useOnClickOutside, usePrevious, useUpdateEffect, withImmutableActions };
|