Subversion Repositories oidplus

Rev

Rev 1151 | Rev 1339 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1151 Rev 1308
Line 1... Line 1...
1
/*!
1
/*!
2
  * Bootstrap v5.3.0-alpha3 (https://getbootstrap.com/)
2
  * Bootstrap v5.3.0 (https://getbootstrap.com/)
3
  * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
3
  * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
4
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
  */
5
  */
6
import * as Popper from '@popperjs/core';
6
import * as Popper from '@popperjs/core';
7
 
7
 
Line 305... Line 305...
305
 * Bootstrap dom/event-handler.js
305
 * Bootstrap dom/event-handler.js
306
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
306
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
307
 * --------------------------------------------------------------------------
307
 * --------------------------------------------------------------------------
308
 */
308
 */
309
 
309
 
-
 
310
 
310
/**
311
/**
311
 * Constants
312
 * Constants
312
 */
313
 */
313
 
314
 
314
const namespaceRegex = /[^.]*(?=\..*)\.|.*/;
315
const namespaceRegex = /[^.]*(?=\..*)\.|.*/;
Line 583... Line 584...
583
 * Bootstrap util/config.js
584
 * Bootstrap util/config.js
584
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
585
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
585
 * --------------------------------------------------------------------------
586
 * --------------------------------------------------------------------------
586
 */
587
 */
587
 
588
 
-
 
589
 
588
/**
590
/**
589
 * Class definition
591
 * Class definition
590
 */
592
 */
591
 
593
 
592
class Config {
594
class Config {
Line 635... Line 637...
635
 * Bootstrap base-component.js
637
 * Bootstrap base-component.js
636
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
638
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
637
 * --------------------------------------------------------------------------
639
 * --------------------------------------------------------------------------
638
 */
640
 */
639
 
641
 
-
 
642
 
640
/**
643
/**
641
 * Constants
644
 * Constants
642
 */
645
 */
643
 
646
 
644
const VERSION = '5.3.0-alpha2';
647
const VERSION = '5.3.0';
645
 
648
 
646
/**
649
/**
647
 * Class definition
650
 * Class definition
648
 */
651
 */
649
 
652
 
Line 702... Line 705...
702
 * --------------------------------------------------------------------------
705
 * --------------------------------------------------------------------------
703
 * Bootstrap dom/selector-engine.js
706
 * Bootstrap dom/selector-engine.js
704
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
707
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
705
 * --------------------------------------------------------------------------
708
 * --------------------------------------------------------------------------
706
 */
709
 */
-
 
710
 
707
const getSelector = element => {
711
const getSelector = element => {
708
  let selector = element.getAttribute('data-bs-target');
712
  let selector = element.getAttribute('data-bs-target');
709
  if (!selector || selector === '#') {
713
  if (!selector || selector === '#') {
710
    let hrefAttribute = element.getAttribute('href');
714
    let hrefAttribute = element.getAttribute('href');
711
 
715
 
Line 790... Line 794...
790
 * --------------------------------------------------------------------------
794
 * --------------------------------------------------------------------------
791
 * Bootstrap util/component-functions.js
795
 * Bootstrap util/component-functions.js
792
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
796
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
793
 * --------------------------------------------------------------------------
797
 * --------------------------------------------------------------------------
794
 */
798
 */
-
 
799
 
795
const enableDismissTrigger = (component, method = 'hide') => {
800
const enableDismissTrigger = (component, method = 'hide') => {
796
  const clickEvent = `click.dismiss${component.EVENT_KEY}`;
801
  const clickEvent = `click.dismiss${component.EVENT_KEY}`;
797
  const name = component.NAME;
802
  const name = component.NAME;
798
  EventHandler.on(document, clickEvent, `[data-bs-dismiss="${name}"]`, function (event) {
803
  EventHandler.on(document, clickEvent, `[data-bs-dismiss="${name}"]`, function (event) {
799
    if (['A', 'AREA'].includes(this.tagName)) {
804
    if (['A', 'AREA'].includes(this.tagName)) {
Line 815... Line 820...
815
 * Bootstrap alert.js
820
 * Bootstrap alert.js
816
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
821
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
817
 * --------------------------------------------------------------------------
822
 * --------------------------------------------------------------------------
818
 */
823
 */
819
 
824
 
-
 
825
 
820
/**
826
/**
821
 * Constants
827
 * Constants
822
 */
828
 */
823
 
829
 
824
const NAME$f = 'alert';
830
const NAME$f = 'alert';
Line 889... Line 895...
889
 * Bootstrap button.js
895
 * Bootstrap button.js
890
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
896
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
891
 * --------------------------------------------------------------------------
897
 * --------------------------------------------------------------------------
892
 */
898
 */
893
 
899
 
-
 
900
 
894
/**
901
/**
895
 * Constants
902
 * Constants
896
 */
903
 */
897
 
904
 
898
const NAME$e = 'button';
905
const NAME$e = 'button';
Line 952... Line 959...
952
 * Bootstrap util/swipe.js
959
 * Bootstrap util/swipe.js
953
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
960
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
954
 * --------------------------------------------------------------------------
961
 * --------------------------------------------------------------------------
955
 */
962
 */
956
 
963
 
-
 
964
 
957
/**
965
/**
958
 * Constants
966
 * Constants
959
 */
967
 */
960
 
968
 
961
const NAME$d = 'swipe';
969
const NAME$d = 'swipe';
Line 1071... Line 1079...
1071
 * Bootstrap carousel.js
1079
 * Bootstrap carousel.js
1072
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1080
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1073
 * --------------------------------------------------------------------------
1081
 * --------------------------------------------------------------------------
1074
 */
1082
 */
1075
 
1083
 
-
 
1084
 
1076
/**
1085
/**
1077
 * Constants
1086
 * Constants
1078
 */
1087
 */
1079
 
1088
 
1080
const NAME$c = 'carousel';
1089
const NAME$c = 'carousel';
Line 1443... Line 1452...
1443
 * Bootstrap collapse.js
1452
 * Bootstrap collapse.js
1444
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1453
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1445
 * --------------------------------------------------------------------------
1454
 * --------------------------------------------------------------------------
1446
 */
1455
 */
1447
 
1456
 
-
 
1457
 
1448
/**
1458
/**
1449
 * Constants
1459
 * Constants
1450
 */
1460
 */
1451
 
1461
 
1452
const NAME$b = 'collapse';
1462
const NAME$b = 'collapse';
Line 1676... Line 1686...
1676
 * Bootstrap dropdown.js
1686
 * Bootstrap dropdown.js
1677
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1687
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1678
 * --------------------------------------------------------------------------
1688
 * --------------------------------------------------------------------------
1679
 */
1689
 */
1680
 
1690
 
-
 
1691
 
1681
/**
1692
/**
1682
 * Constants
1693
 * Constants
1683
 */
1694
 */
1684
 
1695
 
1685
const NAME$a = 'dropdown';
1696
const NAME$a = 'dropdown';
Line 2043... Line 2054...
2043
 * Bootstrap util/backdrop.js
2054
 * Bootstrap util/backdrop.js
2044
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2055
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2045
 * --------------------------------------------------------------------------
2056
 * --------------------------------------------------------------------------
2046
 */
2057
 */
2047
 
2058
 
-
 
2059
 
2048
/**
2060
/**
2049
 * Constants
2061
 * Constants
2050
 */
2062
 */
2051
 
2063
 
2052
const NAME$9 = 'backdrop';
2064
const NAME$9 = 'backdrop';
Line 2167... Line 2179...
2167
 * Bootstrap util/focustrap.js
2179
 * Bootstrap util/focustrap.js
2168
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2180
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2169
 * --------------------------------------------------------------------------
2181
 * --------------------------------------------------------------------------
2170
 */
2182
 */
2171
 
2183
 
-
 
2184
 
2172
/**
2185
/**
2173
 * Constants
2186
 * Constants
2174
 */
2187
 */
2175
 
2188
 
2176
const NAME$8 = 'focustrap';
2189
const NAME$8 = 'focustrap';
Line 2265... Line 2278...
2265
 * Bootstrap util/scrollBar.js
2278
 * Bootstrap util/scrollBar.js
2266
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2279
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2267
 * --------------------------------------------------------------------------
2280
 * --------------------------------------------------------------------------
2268
 */
2281
 */
2269
 
2282
 
-
 
2283
 
2270
/**
2284
/**
2271
 * Constants
2285
 * Constants
2272
 */
2286
 */
2273
 
2287
 
2274
const SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
2288
const SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
Line 2362... Line 2376...
2362
 * Bootstrap modal.js
2376
 * Bootstrap modal.js
2363
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2377
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2364
 * --------------------------------------------------------------------------
2378
 * --------------------------------------------------------------------------
2365
 */
2379
 */
2366
 
2380
 
-
 
2381
 
2367
/**
2382
/**
2368
 * Constants
2383
 * Constants
2369
 */
2384
 */
2370
 
2385
 
2371
const NAME$7 = 'modal';
2386
const NAME$7 = 'modal';
Line 2666... Line 2681...
2666
 * Bootstrap offcanvas.js
2681
 * Bootstrap offcanvas.js
2667
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2682
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2668
 * --------------------------------------------------------------------------
2683
 * --------------------------------------------------------------------------
2669
 */
2684
 */
2670
 
2685
 
-
 
2686
 
2671
/**
2687
/**
2672
 * Constants
2688
 * Constants
2673
 */
2689
 */
2674
 
2690
 
2675
const NAME$6 = 'offcanvas';
2691
const NAME$6 = 'offcanvas';
Line 2896... Line 2912...
2896
 * Bootstrap util/sanitizer.js
2912
 * Bootstrap util/sanitizer.js
2897
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2913
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2898
 * --------------------------------------------------------------------------
2914
 * --------------------------------------------------------------------------
2899
 */
2915
 */
2900
 
2916
 
2901
const uriAttributes = new Set(['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href']);
-
 
2902
 
-
 
2903
/**
-
 
2904
 * A pattern that recognizes a commonly useful subset of URLs that are safe.
-
 
2905
 *
-
 
2906
 * Shout-out to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
-
 
2907
 */
-
 
2908
const SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i;
-
 
2909
 
-
 
2910
/**
-
 
2911
 * A pattern that matches safe data URLs. Only matches image, video and audio types.
-
 
2912
 *
-
 
2913
 * Shout-out to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
-
 
2914
 */
-
 
2915
const DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;
-
 
2916
const allowedAttribute = (attribute, allowedAttributeList) => {
-
 
2917
  const attributeName = attribute.nodeName.toLowerCase();
-
 
2918
  if (allowedAttributeList.includes(attributeName)) {
-
 
2919
    if (uriAttributes.has(attributeName)) {
-
 
2920
      return Boolean(SAFE_URL_PATTERN.test(attribute.nodeValue) || DATA_URL_PATTERN.test(attribute.nodeValue));
-
 
2921
    }
-
 
2922
    return true;
-
 
2923
  }
-
 
2924
 
-
 
2925
  // Check if a regular expression validates the attribute.
-
 
2926
  return allowedAttributeList.filter(attributeRegex => attributeRegex instanceof RegExp).some(regex => regex.test(attributeName));
-
 
2927
};
-
 
2928
 
-
 
2929
// js-docs-start allow-list
2917
// js-docs-start allow-list
2930
const ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i;
2918
const ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i;
2931
const DefaultAllowlist = {
2919
const DefaultAllowlist = {
2932
  // Global attributes allowed on any supplied element below.
2920
  // Global attributes allowed on any supplied element below.
2933
  '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN],
2921
  '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN],
Line 2961... Line 2949...
2961
  u: [],
2949
  u: [],
2962
  ul: []
2950
  ul: []
2963
};
2951
};
2964
// js-docs-end allow-list
2952
// js-docs-end allow-list
2965
 
2953
 
-
 
2954
const uriAttributes = new Set(['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href']);
-
 
2955
 
-
 
2956
/**
-
 
2957
 * A pattern that recognizes URLs that are safe wrt. XSS in URL navigation
-
 
2958
 * contexts.
-
 
2959
 *
-
 
2960
 * Shout-out to Angular https://github.com/angular/angular/blob/15.2.8/packages/core/src/sanitization/url_sanitizer.ts#L38
-
 
2961
 */
-
 
2962
// eslint-disable-next-line unicorn/better-regex
-
 
2963
const SAFE_URL_PATTERN = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i;
-
 
2964
const allowedAttribute = (attribute, allowedAttributeList) => {
-
 
2965
  const attributeName = attribute.nodeName.toLowerCase();
-
 
2966
  if (allowedAttributeList.includes(attributeName)) {
-
 
2967
    if (uriAttributes.has(attributeName)) {
-
 
2968
      return Boolean(SAFE_URL_PATTERN.test(attribute.nodeValue));
-
 
2969
    }
-
 
2970
    return true;
-
 
2971
  }
-
 
2972
 
-
 
2973
  // Check if a regular expression validates the attribute.
-
 
2974
  return allowedAttributeList.filter(attributeRegex => attributeRegex instanceof RegExp).some(regex => regex.test(attributeName));
-
 
2975
};
2966
function sanitizeHtml(unsafeHtml, allowList, sanitizeFunction) {
2976
function sanitizeHtml(unsafeHtml, allowList, sanitizeFunction) {
2967
  if (!unsafeHtml.length) {
2977
  if (!unsafeHtml.length) {
2968
    return unsafeHtml;
2978
    return unsafeHtml;
2969
  }
2979
  }
2970
  if (sanitizeFunction && typeof sanitizeFunction === 'function') {
2980
  if (sanitizeFunction && typeof sanitizeFunction === 'function') {
Line 2995... Line 3005...
2995
 * Bootstrap util/template-factory.js
3005
 * Bootstrap util/template-factory.js
2996
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3006
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2997
 * --------------------------------------------------------------------------
3007
 * --------------------------------------------------------------------------
2998
 */
3008
 */
2999
 
3009
 
-
 
3010
 
3000
/**
3011
/**
3001
 * Constants
3012
 * Constants
3002
 */
3013
 */
3003
 
3014
 
3004
const NAME$5 = 'TemplateFactory';
3015
const NAME$5 = 'TemplateFactory';
Line 3130... Line 3141...
3130
 * Bootstrap tooltip.js
3141
 * Bootstrap tooltip.js
3131
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3142
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3132
 * --------------------------------------------------------------------------
3143
 * --------------------------------------------------------------------------
3133
 */
3144
 */
3134
 
3145
 
-
 
3146
 
3135
/**
3147
/**
3136
 * Constants
3148
 * Constants
3137
 */
3149
 */
3138
 
3150
 
3139
const NAME$4 = 'tooltip';
3151
const NAME$4 = 'tooltip';
Line 3641... Line 3653...
3641
 * Bootstrap popover.js
3653
 * Bootstrap popover.js
3642
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3654
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3643
 * --------------------------------------------------------------------------
3655
 * --------------------------------------------------------------------------
3644
 */
3656
 */
3645
 
3657
 
-
 
3658
 
3646
/**
3659
/**
3647
 * Constants
3660
 * Constants
3648
 */
3661
 */
3649
 
3662
 
3650
const NAME$3 = 'popover';
3663
const NAME$3 = 'popover';
Line 3721... Line 3734...
3721
 * Bootstrap scrollspy.js
3734
 * Bootstrap scrollspy.js
3722
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3735
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3723
 * --------------------------------------------------------------------------
3736
 * --------------------------------------------------------------------------
3724
 */
3737
 */
3725
 
3738
 
-
 
3739
 
3726
/**
3740
/**
3727
 * Constants
3741
 * Constants
3728
 */
3742
 */
3729
 
3743
 
3730
const NAME$2 = 'scrollspy';
3744
const NAME$2 = 'scrollspy';
Line 3899... Line 3913...
3899
    for (const anchor of targetLinks) {
3913
    for (const anchor of targetLinks) {
3900
      // ensure that the anchor has an id and is not disabled
3914
      // ensure that the anchor has an id and is not disabled
3901
      if (!anchor.hash || isDisabled(anchor)) {
3915
      if (!anchor.hash || isDisabled(anchor)) {
3902
        continue;
3916
        continue;
3903
      }
3917
      }
3904
      const observableSection = SelectorEngine.findOne(anchor.hash, this._element);
3918
      const observableSection = SelectorEngine.findOne(decodeURI(anchor.hash), this._element);
3905
 
3919
 
3906
      // ensure that the observableSection exists & is visible
3920
      // ensure that the observableSection exists & is visible
3907
      if (isVisible(observableSection)) {
3921
      if (isVisible(observableSection)) {
3908
        this._targetLinks.set(anchor.hash, anchor);
3922
        this._targetLinks.set(decodeURI(anchor.hash), anchor);
3909
        this._observableSections.set(anchor.hash, observableSection);
3923
        this._observableSections.set(anchor.hash, observableSection);
3910
      }
3924
      }
3911
    }
3925
    }
3912
  }
3926
  }
3913
  _process(target) {
3927
  _process(target) {
Line 3980... Line 3994...
3980
 * Bootstrap tab.js
3994
 * Bootstrap tab.js
3981
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3995
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3982
 * --------------------------------------------------------------------------
3996
 * --------------------------------------------------------------------------
3983
 */
3997
 */
3984
 
3998
 
-
 
3999
 
3985
/**
4000
/**
3986
 * Constants
4001
 * Constants
3987
 */
4002
 */
3988
 
4003
 
3989
const NAME$1 = 'tab';
4004
const NAME$1 = 'tab';
Line 4241... Line 4256...
4241
 * Bootstrap toast.js
4256
 * Bootstrap toast.js
4242
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
4257
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
4243
 * --------------------------------------------------------------------------
4258
 * --------------------------------------------------------------------------
4244
 */
4259
 */
4245
 
4260
 
-
 
4261
 
4246
/**
4262
/**
4247
 * Constants
4263
 * Constants
4248
 */
4264
 */
4249
 
4265
 
4250
const NAME = 'toast';
4266
const NAME = 'toast';