@bigbinary/neeto-commons-frontend 2.0.19 → 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 +944 -371
- package/react-utils.js +946 -374
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 = {
|
|
@@ -7644,11 +8216,11 @@ function require_1c () {
|
|
|
7644
8216
|
* */
|
|
7645
8217
|
|
|
7646
8218
|
var abnf_1$1;
|
|
7647
|
-
var hasRequiredAbnf
|
|
8219
|
+
var hasRequiredAbnf;
|
|
7648
8220
|
|
|
7649
|
-
function requireAbnf
|
|
7650
|
-
if (hasRequiredAbnf
|
|
7651
|
-
hasRequiredAbnf
|
|
8221
|
+
function requireAbnf () {
|
|
8222
|
+
if (hasRequiredAbnf) return abnf_1$1;
|
|
8223
|
+
hasRequiredAbnf = 1;
|
|
7652
8224
|
/**
|
|
7653
8225
|
* @param {RegExp | string } re
|
|
7654
8226
|
* @returns {string}
|
|
@@ -51698,7 +52270,7 @@ var low = core$4;
|
|
|
51698
52270
|
var lowlight = low;
|
|
51699
52271
|
|
|
51700
52272
|
low.registerLanguage('1c', require_1c());
|
|
51701
|
-
low.registerLanguage('abnf', requireAbnf
|
|
52273
|
+
low.registerLanguage('abnf', requireAbnf());
|
|
51702
52274
|
low.registerLanguage(
|
|
51703
52275
|
'accesslog',
|
|
51704
52276
|
requireAccesslog()
|
|
@@ -52662,7 +53234,7 @@ var languageLoaders$1 = {
|
|
|
52662
53234
|
return Promise.resolve().then(function () { return _1c; });
|
|
52663
53235
|
}),
|
|
52664
53236
|
abnf: createLanguageAsyncLoader("abnf", function () {
|
|
52665
|
-
return Promise.resolve().then(function () { return abnf
|
|
53237
|
+
return Promise.resolve().then(function () { return abnf; });
|
|
52666
53238
|
}),
|
|
52667
53239
|
accesslog: createLanguageAsyncLoader("accesslog", function () {
|
|
52668
53240
|
return Promise.resolve().then(function () { return accesslog; });
|
|
@@ -53257,7 +53829,7 @@ var languageLoaders = {
|
|
|
53257
53829
|
return Promise.resolve().then(function () { return abap$1; });
|
|
53258
53830
|
}),
|
|
53259
53831
|
abnf: createLanguageAsyncLoader("abnf", function () {
|
|
53260
|
-
return Promise.resolve().then(function () { return abnf; });
|
|
53832
|
+
return Promise.resolve().then(function () { return abnf$2; });
|
|
53261
53833
|
}),
|
|
53262
53834
|
actionscript: createLanguageAsyncLoader("actionscript", function () {
|
|
53263
53835
|
return Promise.resolve().then(function () { return actionscript$2; });
|
|
@@ -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,10 +53886,10 @@ 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
|
-
return Promise.resolve().then(function () { return avroIdl
|
|
53892
|
+
return Promise.resolve().then(function () { return avroIdl; });
|
|
53321
53893
|
}),
|
|
53322
53894
|
bash: createLanguageAsyncLoader("bash", function () {
|
|
53323
53895
|
return Promise.resolve().then(function () { return bash; });
|
|
@@ -62626,77 +63198,73 @@ var abap$1 = /*#__PURE__*/_mergeNamespaces({
|
|
|
62626
63198
|
'default': abap_1
|
|
62627
63199
|
}, [abap_1]);
|
|
62628
63200
|
|
|
62629
|
-
var abnf_1;
|
|
62630
|
-
|
|
62631
|
-
|
|
62632
|
-
function
|
|
62633
|
-
if (hasRequiredAbnf) return abnf_1;
|
|
62634
|
-
hasRequiredAbnf = 1;
|
|
62635
|
-
|
|
62636
|
-
abnf_1 = abnf;
|
|
62637
|
-
abnf.displayName = 'abnf';
|
|
62638
|
-
abnf.aliases = [];
|
|
62639
|
-
function abnf(Prism) {
|
|
63201
|
+
var abnf_1 = abnf$1;
|
|
63202
|
+
abnf$1.displayName = 'abnf';
|
|
63203
|
+
abnf$1.aliases = [];
|
|
63204
|
+
function abnf$1(Prism) {
|
|
62640
63205
|
(function (Prism) {
|
|
62641
|
-
|
|
62642
|
-
|
|
62643
|
-
|
|
62644
|
-
|
|
62645
|
-
|
|
62646
|
-
|
|
62647
|
-
|
|
62648
|
-
|
|
62649
|
-
|
|
62650
|
-
|
|
62651
|
-
|
|
62652
|
-
|
|
62653
|
-
|
|
62654
|
-
|
|
62655
|
-
|
|
62656
|
-
|
|
62657
|
-
|
|
62658
|
-
|
|
62659
|
-
|
|
62660
|
-
|
|
62661
|
-
|
|
62662
|
-
|
|
62663
|
-
|
|
62664
|
-
|
|
62665
|
-
|
|
62666
|
-
|
|
62667
|
-
|
|
62668
|
-
|
|
62669
|
-
|
|
62670
|
-
|
|
62671
|
-
|
|
62672
|
-
|
|
62673
|
-
|
|
62674
|
-
|
|
62675
|
-
|
|
62676
|
-
|
|
62677
|
-
|
|
62678
|
-
|
|
62679
|
-
|
|
62680
|
-
|
|
62681
|
-
|
|
62682
|
-
|
|
62683
|
-
|
|
62684
|
-
|
|
62685
|
-
|
|
62686
|
-
|
|
62687
|
-
|
|
62688
|
-
|
|
62689
|
-
|
|
62690
|
-
|
|
62691
|
-
|
|
62692
|
-
|
|
62693
|
-
|
|
62694
|
-
|
|
62695
|
-
|
|
62696
|
-
}
|
|
62697
|
-
return abnf_1;
|
|
63206
|
+
var coreRules =
|
|
63207
|
+
'(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)';
|
|
63208
|
+
Prism.languages.abnf = {
|
|
63209
|
+
comment: /;.*/,
|
|
63210
|
+
string: {
|
|
63211
|
+
pattern: /(?:%[is])?"[^"\n\r]*"/,
|
|
63212
|
+
greedy: true,
|
|
63213
|
+
inside: {
|
|
63214
|
+
punctuation: /^%[is]/
|
|
63215
|
+
}
|
|
63216
|
+
},
|
|
63217
|
+
range: {
|
|
63218
|
+
pattern: /%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,
|
|
63219
|
+
alias: 'number'
|
|
63220
|
+
},
|
|
63221
|
+
terminal: {
|
|
63222
|
+
pattern:
|
|
63223
|
+
/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,
|
|
63224
|
+
alias: 'number'
|
|
63225
|
+
},
|
|
63226
|
+
repetition: {
|
|
63227
|
+
pattern: /(^|[^\w-])(?:\d*\*\d*|\d+)/,
|
|
63228
|
+
lookbehind: true,
|
|
63229
|
+
alias: 'operator'
|
|
63230
|
+
},
|
|
63231
|
+
definition: {
|
|
63232
|
+
pattern: /(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,
|
|
63233
|
+
lookbehind: true,
|
|
63234
|
+
alias: 'keyword',
|
|
63235
|
+
inside: {
|
|
63236
|
+
punctuation: /<|>/
|
|
63237
|
+
}
|
|
63238
|
+
},
|
|
63239
|
+
'core-rule': {
|
|
63240
|
+
pattern: RegExp(
|
|
63241
|
+
'(?:(^|[^<\\w-])' + coreRules + '|<' + coreRules + '>)(?![\\w-])',
|
|
63242
|
+
'i'
|
|
63243
|
+
),
|
|
63244
|
+
lookbehind: true,
|
|
63245
|
+
alias: ['rule', 'constant'],
|
|
63246
|
+
inside: {
|
|
63247
|
+
punctuation: /<|>/
|
|
63248
|
+
}
|
|
63249
|
+
},
|
|
63250
|
+
rule: {
|
|
63251
|
+
pattern: /(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,
|
|
63252
|
+
lookbehind: true,
|
|
63253
|
+
inside: {
|
|
63254
|
+
punctuation: /<|>/
|
|
63255
|
+
}
|
|
63256
|
+
},
|
|
63257
|
+
operator: /=\/?|\//,
|
|
63258
|
+
punctuation: /[()\[\]]/
|
|
63259
|
+
};
|
|
63260
|
+
})(Prism);
|
|
62698
63261
|
}
|
|
62699
63262
|
|
|
63263
|
+
var abnf$2 = /*#__PURE__*/_mergeNamespaces({
|
|
63264
|
+
__proto__: null,
|
|
63265
|
+
'default': abnf_1
|
|
63266
|
+
}, [abnf_1]);
|
|
63267
|
+
|
|
62700
63268
|
var actionscript_1 = actionscript$1;
|
|
62701
63269
|
actionscript$1.displayName = 'actionscript';
|
|
62702
63270
|
actionscript$1.aliases = [];
|
|
@@ -63102,54 +63670,50 @@ var apex$1 = /*#__PURE__*/_mergeNamespaces({
|
|
|
63102
63670
|
'default': apex_1
|
|
63103
63671
|
}, [apex_1]);
|
|
63104
63672
|
|
|
63105
|
-
var apl_1;
|
|
63106
|
-
|
|
63107
|
-
|
|
63108
|
-
function
|
|
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
|
-
|
|
63140
|
-
|
|
63141
|
-
|
|
63142
|
-
},
|
|
63143
|
-
punctuation: /[\[;\]()◇⋄]/,
|
|
63144
|
-
dfn: {
|
|
63145
|
-
pattern: /[{}⍺⍵⍶⍹∇⍫:]/,
|
|
63146
|
-
alias: 'builtin'
|
|
63147
|
-
}
|
|
63148
|
-
};
|
|
63149
|
-
}
|
|
63150
|
-
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
|
+
};
|
|
63151
63710
|
}
|
|
63152
63711
|
|
|
63712
|
+
var apl$1 = /*#__PURE__*/_mergeNamespaces({
|
|
63713
|
+
__proto__: null,
|
|
63714
|
+
'default': apl_1
|
|
63715
|
+
}, [apl_1]);
|
|
63716
|
+
|
|
63153
63717
|
var applescript_1 = applescript$1;
|
|
63154
63718
|
applescript$1.displayName = 'applescript';
|
|
63155
63719
|
applescript$1.aliases = [];
|
|
@@ -64470,235 +65034,243 @@ var autoit$2 = /*#__PURE__*/_mergeNamespaces({
|
|
|
64470
65034
|
'default': autoit_1
|
|
64471
65035
|
}, [autoit_1]);
|
|
64472
65036
|
|
|
64473
|
-
var avisynth_1
|
|
64474
|
-
|
|
64475
|
-
|
|
64476
|
-
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) {
|
|
64477
65048
|
(function (Prism) {
|
|
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
|
-
|
|
64635
|
-
|
|
64636
|
-
|
|
64637
|
-
|
|
64638
|
-
|
|
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;
|
|
64639
65212
|
}
|
|
64640
65213
|
|
|
64641
|
-
var
|
|
64642
|
-
|
|
64643
|
-
'default': avisynth_1
|
|
64644
|
-
}, [avisynth_1]);
|
|
64645
|
-
|
|
64646
|
-
var avroIdl_1 = avroIdl;
|
|
64647
|
-
avroIdl.displayName = 'avroIdl';
|
|
64648
|
-
avroIdl.aliases = [];
|
|
64649
|
-
function avroIdl(Prism) {
|
|
64650
|
-
// GitHub: https://github.com/apache/avro
|
|
64651
|
-
// Docs: https://avro.apache.org/docs/current/idl.html
|
|
64652
|
-
Prism.languages['avro-idl'] = {
|
|
64653
|
-
comment: {
|
|
64654
|
-
pattern: /\/\/.*|\/\*[\s\S]*?\*\//,
|
|
64655
|
-
greedy: true
|
|
64656
|
-
},
|
|
64657
|
-
string: {
|
|
64658
|
-
pattern: /(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,
|
|
64659
|
-
lookbehind: true,
|
|
64660
|
-
greedy: true
|
|
64661
|
-
},
|
|
64662
|
-
annotation: {
|
|
64663
|
-
pattern: /@(?:[$\w.-]|`[^\r\n`]+`)+/,
|
|
64664
|
-
greedy: true,
|
|
64665
|
-
alias: 'function'
|
|
64666
|
-
},
|
|
64667
|
-
'function-identifier': {
|
|
64668
|
-
pattern: /`[^\r\n`]+`(?=\s*\()/,
|
|
64669
|
-
greedy: true,
|
|
64670
|
-
alias: 'function'
|
|
64671
|
-
},
|
|
64672
|
-
identifier: {
|
|
64673
|
-
pattern: /`[^\r\n`]+`/,
|
|
64674
|
-
greedy: true
|
|
64675
|
-
},
|
|
64676
|
-
'class-name': {
|
|
64677
|
-
pattern: /(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,
|
|
64678
|
-
lookbehind: true,
|
|
64679
|
-
greedy: true
|
|
64680
|
-
},
|
|
64681
|
-
keyword:
|
|
64682
|
-
/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,
|
|
64683
|
-
function: /\b[a-z_]\w*(?=\s*\()/i,
|
|
64684
|
-
number: [
|
|
64685
|
-
{
|
|
64686
|
-
pattern:
|
|
64687
|
-
/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,
|
|
64688
|
-
lookbehind: true
|
|
64689
|
-
},
|
|
64690
|
-
/-?\b(?:Infinity|NaN)\b/
|
|
64691
|
-
],
|
|
64692
|
-
operator: /=/,
|
|
64693
|
-
punctuation: /[()\[\]{}<>.:,;-]/
|
|
64694
|
-
};
|
|
64695
|
-
Prism.languages.avdl = Prism.languages['avro-idl'];
|
|
64696
|
-
}
|
|
65214
|
+
var avroIdl_1;
|
|
65215
|
+
var hasRequiredAvroIdl;
|
|
64697
65216
|
|
|
64698
|
-
|
|
64699
|
-
|
|
64700
|
-
|
|
64701
|
-
|
|
65217
|
+
function requireAvroIdl () {
|
|
65218
|
+
if (hasRequiredAvroIdl) return avroIdl_1;
|
|
65219
|
+
hasRequiredAvroIdl = 1;
|
|
65220
|
+
|
|
65221
|
+
avroIdl_1 = avroIdl;
|
|
65222
|
+
avroIdl.displayName = 'avroIdl';
|
|
65223
|
+
avroIdl.aliases = [];
|
|
65224
|
+
function avroIdl(Prism) {
|
|
65225
|
+
// GitHub: https://github.com/apache/avro
|
|
65226
|
+
// Docs: https://avro.apache.org/docs/current/idl.html
|
|
65227
|
+
Prism.languages['avro-idl'] = {
|
|
65228
|
+
comment: {
|
|
65229
|
+
pattern: /\/\/.*|\/\*[\s\S]*?\*\//,
|
|
65230
|
+
greedy: true
|
|
65231
|
+
},
|
|
65232
|
+
string: {
|
|
65233
|
+
pattern: /(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,
|
|
65234
|
+
lookbehind: true,
|
|
65235
|
+
greedy: true
|
|
65236
|
+
},
|
|
65237
|
+
annotation: {
|
|
65238
|
+
pattern: /@(?:[$\w.-]|`[^\r\n`]+`)+/,
|
|
65239
|
+
greedy: true,
|
|
65240
|
+
alias: 'function'
|
|
65241
|
+
},
|
|
65242
|
+
'function-identifier': {
|
|
65243
|
+
pattern: /`[^\r\n`]+`(?=\s*\()/,
|
|
65244
|
+
greedy: true,
|
|
65245
|
+
alias: 'function'
|
|
65246
|
+
},
|
|
65247
|
+
identifier: {
|
|
65248
|
+
pattern: /`[^\r\n`]+`/,
|
|
65249
|
+
greedy: true
|
|
65250
|
+
},
|
|
65251
|
+
'class-name': {
|
|
65252
|
+
pattern: /(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,
|
|
65253
|
+
lookbehind: true,
|
|
65254
|
+
greedy: true
|
|
65255
|
+
},
|
|
65256
|
+
keyword:
|
|
65257
|
+
/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,
|
|
65258
|
+
function: /\b[a-z_]\w*(?=\s*\()/i,
|
|
65259
|
+
number: [
|
|
65260
|
+
{
|
|
65261
|
+
pattern:
|
|
65262
|
+
/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,
|
|
65263
|
+
lookbehind: true
|
|
65264
|
+
},
|
|
65265
|
+
/-?\b(?:Infinity|NaN)\b/
|
|
65266
|
+
],
|
|
65267
|
+
operator: /=/,
|
|
65268
|
+
punctuation: /[()\[\]{}<>.:,;-]/
|
|
65269
|
+
};
|
|
65270
|
+
Prism.languages.avdl = Prism.languages['avro-idl'];
|
|
65271
|
+
}
|
|
65272
|
+
return avroIdl_1;
|
|
65273
|
+
}
|
|
64702
65274
|
|
|
64703
65275
|
var bash_1;
|
|
64704
65276
|
var hasRequiredBash;
|
|
@@ -85864,7 +86436,7 @@ var refractor = core;
|
|
|
85864
86436
|
var refractor_1 = refractor;
|
|
85865
86437
|
|
|
85866
86438
|
refractor.register(abap_1);
|
|
85867
|
-
refractor.register(
|
|
86439
|
+
refractor.register(abnf_1);
|
|
85868
86440
|
refractor.register(actionscript_1);
|
|
85869
86441
|
refractor.register(ada_1);
|
|
85870
86442
|
refractor.register(agda_1);
|
|
@@ -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,8 +86455,8 @@ 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(
|
|
85887
|
-
refractor.register(
|
|
86458
|
+
refractor.register(requireAvisynth());
|
|
86459
|
+
refractor.register(requireAvroIdl());
|
|
85888
86460
|
refractor.register(requireBash());
|
|
85889
86461
|
refractor.register(requireBasic());
|
|
85890
86462
|
refractor.register(requireBatch());
|
|
@@ -89386,12 +89958,12 @@ var _1c = /*#__PURE__*/_mergeNamespaces({
|
|
|
89386
89958
|
'default': _1cExports
|
|
89387
89959
|
}, [_1cExports]);
|
|
89388
89960
|
|
|
89389
|
-
var abnfExports
|
|
89961
|
+
var abnfExports = requireAbnf();
|
|
89390
89962
|
|
|
89391
|
-
var abnf
|
|
89963
|
+
var abnf = /*#__PURE__*/_mergeNamespaces({
|
|
89392
89964
|
__proto__: null,
|
|
89393
|
-
'default': abnfExports
|
|
89394
|
-
}, [abnfExports
|
|
89965
|
+
'default': abnfExports
|
|
89966
|
+
}, [abnfExports]);
|
|
89395
89967
|
|
|
89396
89968
|
var accesslogExports = requireAccesslog();
|
|
89397
89969
|
|
|
@@ -90716,19 +91288,19 @@ var zephir = /*#__PURE__*/_mergeNamespaces({
|
|
|
90716
91288
|
'default': zephirExports
|
|
90717
91289
|
}, [zephirExports]);
|
|
90718
91290
|
|
|
90719
|
-
var
|
|
91291
|
+
var avisynthExports = requireAvisynth();
|
|
90720
91292
|
|
|
90721
|
-
var
|
|
91293
|
+
var avisynth = /*#__PURE__*/_mergeNamespaces({
|
|
90722
91294
|
__proto__: null,
|
|
90723
|
-
'default':
|
|
90724
|
-
}, [
|
|
91295
|
+
'default': avisynthExports
|
|
91296
|
+
}, [avisynthExports]);
|
|
90725
91297
|
|
|
90726
|
-
var
|
|
91298
|
+
var avroIdlExports = requireAvroIdl();
|
|
90727
91299
|
|
|
90728
|
-
var
|
|
91300
|
+
var avroIdl = /*#__PURE__*/_mergeNamespaces({
|
|
90729
91301
|
__proto__: null,
|
|
90730
|
-
'default':
|
|
90731
|
-
}, [
|
|
91302
|
+
'default': avroIdlExports
|
|
91303
|
+
}, [avroIdlExports]);
|
|
90732
91304
|
|
|
90733
91305
|
var bashExports = requireBash();
|
|
90734
91306
|
|
|
@@ -92492,6 +93064,7 @@ exports.Schedule = Schedule;
|
|
|
92492
93064
|
exports.Sidebar = Sidebar;
|
|
92493
93065
|
exports.TimeFormat = TimeFormat;
|
|
92494
93066
|
exports.useDebounce = useDebounce;
|
|
93067
|
+
exports.useDisplayErrorPage = useDisplayErrorPage;
|
|
92495
93068
|
exports.useFuncDebounce = useFuncDebounce;
|
|
92496
93069
|
exports.useIsElementVisibleInDom = useIsElementVisibleInDom;
|
|
92497
93070
|
exports.useLocalStorage = useLocalStorage;
|