bootstrap/dist/js/bootstrap.min.js

7 lines
56 KiB
JavaScript
Raw Permalink Normal View History

/*!
* Bootstrap v5.3.8 (https://getbootstrap.com/)
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
2020-06-17 02:50:01 +08:00
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2017-09-06 12:05:12 +08:00
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e(t.Popper)}(this,function(t){"use strict";function e(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(const i in t)if("default"!==i){const s=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>t[i]})}return e.default=t,Object.freeze(e)}const i=e(t),s=new Map,n={set(t,e,i){s.has(t)||s.set(t,new Map);const n=s.get(t);n.has(e)||0===n.size?n.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(t,e)=>s.has(t)&&s.get(t).get(e)||null,remove(t,e){if(!s.has(t))return;const i=s.get(t);i.delete(e),0===i.size&&s.delete(t)}},o=/[^.]*(?=\..*)\.|.*/,r=/\..*/,a=/::\d+$/,l={};let c=1;const h={mouseenter:"mouseover",mouseleave:"mouseout"},d=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function u(t,e){return e&&`${e}::${c++}`||t.uidEvent||c++}function _(t){const e=u(t);return t.uidEvent=e,l[e]=l[e]||{},l[e]}function g(t,e,i=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===i)}function m(t,e,i){const s="string"==typeof e,n=s?i:e||i;let o=(a=(a=t).replace(r,""),h[a]||a);var a;return d.has(o)||(o=t),[s,n,o]}function p(t,e,i,s,n){if("string"!=typeof e||!t)return;let[r,a,l]=m(e,i,s);if(e in h){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};a=t(a)}const c=_(t),d=c[l]||(c[l]={}),p=g(d,a,r?i:null);if(p)return void(p.oneOff=p.oneOff&&n);const f=u(a,e.replace(o,"")),b=r?function(t,e,i){return function s(n){const o=t.querySelectorAll(e);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return y(n,{delegateTarget:r}),s.oneOff&&v.off(t,n.type,e,i),i.apply(r,[n])}}(t,i,a):function(t,e){return function i(s){return y(s,{delegateTarget:t}),i.oneOff&&v.off(t,s.type,e),e.apply(t,[s])}}(t,a);b.delegationSelector=r?i:null,b.callable=a,b.oneOff=n,b.uidEvent=f,d[f]=b,t.addEventListener(l,b,r)}function f(t,e,i,s,n){const o=g(e[i],s,n);o&&(t.removeEventListener(i,o,Boolean(n)),delete e[i][o.uidEvent])}function b(t,e,i,s){const n=e[i]||{};for(const[o,r]of Object.entries(n))o.includes(s)&&f(t,e,i,r.callable,r.delegationSelector)}const v={on(t,e,i,s){p(t,e,i,s,!1)},one(t,e,i,s){p(t,e,i,s,!0)},off(t,e,i,s){if("string"!=typeof e||!t)return;const[n,o,r]=m(e,i,s),l=r!==e,c=_(t),h=c[r]||{},d=e.startsWith(".");if(void 0===o){if(d)for(const i of Object.keys(c))b(t,c,i,e.slice(1));for(const[i,s]of Object.entries(h)){const n=i.replace(a,"");l&&!e.includes(n)||f(t,c,r,s.callable,s.delegationSelector)}}else{if(!Object.keys(h).length)return;f(t,c,r,o,n?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const s=y(new Event(e,{bubbles:!0,cancelable:!0}),i);return t.dispatchEvent(s),s}};function y(t,e={}){for(const[i,s]of Object.entries(e))try{t[i]=s}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>s})}return t}function w(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function A(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const E={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${A(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`dat
2017-10-19 15:17:08 +08:00
//# sourceMappingURL=bootstrap.min.js.map