1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["npm.dom7"],{f4fc:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return l})),n.d(e,"F",(function(){return u})),n.d(e,"n",(function(){return h})),n.d(e,"I",(function(){return f})),n.d(e,"e",(function(){return c})),n.d(e,"E",(function(){return d})),n.d(e,"i",(function(){return a})),n.d(e,"J",(function(){return g})),n.d(e,"K",(function(){return p})),n.d(e,"v",(function(){return m})),n.d(e,"t",(function(){return v})),n.d(e,"M",(function(){return y})),n.d(e,"L",(function(){return b})),n.d(e,"x",(function(){return L})),n.d(e,"w",(function(){return E})),n.d(e,"u",(function(){return w})),n.d(e,"G",(function(){return S})),n.d(e,"h",(function(){return x})),n.d(e,"j",(function(){return T})),n.d(e,"l",(function(){return N})),n.d(e,"o",(function(){return D})),n.d(e,"H",(function(){return C})),n.d(e,"q",(function(){return O})),n.d(e,"p",(function(){return M})),n.d(e,"k",(function(){return k})),n.d(e,"d",(function(){return A})),n.d(e,"A",(function(){return H})),n.d(e,"r",(function(){return B})),n.d(e,"s",(function(){return F})),n.d(e,"B",(function(){return P})),n.d(e,"C",(function(){return V})),n.d(e,"y",(function(){return q})),n.d(e,"z",(function(){return J})),n.d(e,"g",(function(){return z})),n.d(e,"m",(function(){return I})),n.d(e,"f",(function(){return W})),n.d(e,"D",(function(){return j})),n.d(e,"b",(function(){return G}));var i=n("d7d2");class r{constructor(t){const e=this;for(let n=0;n<t.length;n+=1)e[n]=t[n];return e.length=t.length,this}}function s(t,e){const n=[];let s=0;if(t&&!e&&t instanceof r)return t;if(t)if("string"==typeof t){let r,o;const l=t.trim();if(l.indexOf("<")>=0&&l.indexOf(">")>=0){let t="div";for(0===l.indexOf("<li")&&(t="ul"),0===l.indexOf("<tr")&&(t="tbody"),0!==l.indexOf("<td")&&0!==l.indexOf("<th")||(t="tr"),0===l.indexOf("<tbody")&&(t="table"),0===l.indexOf("<option")&&(t="select"),o=i.a.createElement(t),o.innerHTML=l,s=0;s<o.childNodes.length;s+=1)n.push(o.childNodes[s])}else for(r=e||"#"!==t[0]||t.match(/[ .<>:~]/)?(e||i.a).querySelectorAll(t.trim()):[i.a.getElementById(t.trim().split("#")[1])],s=0;s<r.length;s+=1)r[s]&&n.push(r[s])}else if(t.nodeType||t===i.b||t===i.a)n.push(t);else if(t.length>0&&t[0].nodeType)for(s=0;s<t.length;s+=1)n.push(t[s]);return new r(n)}function o(t){const e=[];for(let n=0;n<t.length;n+=1)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function l(t){if(void 0===t)return this;const e=t.split(" ");for(let t=0;t<e.length;t+=1)for(let n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.add(e[t]);return this}function u(t){const e=t.split(" ");for(let t=0;t<e.length;t+=1)for(let n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.remove(e[t]);return this}function h(t){return!!this[0]&&this[0].classList.contains(t)}function f(t){const e=t.split(" ");for(let t=0;t<e.length;t+=1)for(let n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.toggle(e[t]);return this}function c(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(let n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(t,e);else for(const e in t)this[n][e]=t[e],this[n].setAttribute(e,t[e]);return this}function d(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function a(t,e){let n;if(void 0!==e){for(let i=0;i<this.length;i+=1)n=this[i],n.dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[t]=e;return this}if(n=this[0],n){if(n.dom7ElementDataStorage&&t in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[t];return n.getAttribute("data-"+t)||void 0}}function g(t){for(let e=0;e<this.length;e+=1){const n=this[e].style;n.webkitTransform=t,n.transform=t}return this}function p(t){"string"!=typeof t&&(t+="ms");for(let e=0;e<this.length;e+=1){const n=this[e].style;n.webkitTransitionDuration=t,n.transitionDuration=t}return this}function m(...t){let[e,n,i,r]=t;function o(t){const e=t.target;if(!e)return;const r=t.target.dom7EventData||[];if(r.indexOf(t)<0&&r.unshift(t),s(e).is(n))i.apply(e,r);else{const t=s(e).parents();for(let e=0;e<t.length;e+=1)s(t[e]).is(n)&&i.apply(t[e],r)}}function l(t){const e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),i.apply(this,e)}"function"==typeof t[1]&&([e,i,r]=t,n=void 0),r||(r=!1);const u=e.split(" ");let h;for(let t=0;t<this.length;t+=1){const e=this[t];if(n)for(h=0;h<u.length;h+=1){const t=u[h];e.dom7LiveListeners||(e.dom7LiveListeners={}),e.dom7LiveListeners[t]||(e.dom7LiveListeners[t]=[]),e.dom7LiveListeners[t].push({listener:i,proxyListener:o}),e.addEventListener(t,o,r)}else for(h=0;h<u.length;h+=1){const t=u[h];e.dom7Listeners||(e.dom7Listeners={}),e.dom7Listeners[t]||(e.dom7Listeners[t]=[]),e.dom7Listeners[t].push({listener:i,proxyListener:l}),e.addEventListener(t,l,r)}}return this}function v(...t){let[e,n,i,r]=t;"function"==typeof t[1]&&([e,i,r]=t,n=void 0),r||(r=!1);const s=e.split(" ");for(let t=0;t<s.length;t+=1){const e=s[t];for(let t=0;t<this.length;t+=1){const s=this[t];let o;if(!n&&s.dom7Listeners?o=s.dom7Listeners[e]:n&&s.dom7LiveListeners&&(o=s.dom7LiveListeners[e]),o&&o.length)for(let t=o.length-1;t>=0;t-=1){const n=o[t];i&&n.listener===i||i&&n.listener&&n.listener.dom7proxy&&n.listener.dom7proxy===i?(s.removeEventListener(e,n.proxyListener,r),o.splice(t,1)):i||(s.removeEventListener(e,n.proxyListener,r),o.splice(t,1))}}}return this}function y(...t){const e=t[0].split(" "),n=t[1];for(let r=0;r<e.length;r+=1){const s=e[r];for(let e=0;e<this.length;e+=1){const r=this[e];let o;try{o=new i.b.CustomEvent(s,{detail:n,bubbles:!0,cancelable:!0})}catch(t){o=i.a.createEvent("Event"),o.initEvent(s,!0,!0),o.detail=n}r.dom7EventData=t.filter((t,e)=>e>0),r.dispatchEvent(o),r.dom7EventData=[],delete r.dom7EventData}}return this}function b(t){const e=["webkitTransitionEnd","transitionend"],n=this;let i;function r(s){if(s.target===this)for(t.call(this,s),i=0;i<e.length;i+=1)n.off(e[i],r)}if(t)for(i=0;i<e.length;i+=1)n.on(e[i],r);return this}function L(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function E(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function w(){if(this.length>0){const t=this[0],e=t.getBoundingClientRect(),n=i.a.body,r=t.clientTop||n.clientTop||0,s=t.clientLeft||n.clientLeft||0,o=t===i.b?i.b.scrollY:t.scrollTop,l=t===i.b?i.b.scrollX:t.scrollLeft;return{top:e.top+o-r,left:e.left+l-s}}return null}function S(){return this[0]?i.b.getComputedStyle(this[0],null):{}}function x(t,e){let n;if(1===arguments.length){if("string"!=typeof t){for(n=0;n<this.length;n+=1)for(let e in t)this[n].style[e]=t[e];return this}if(this[0])return i.b.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this}function T(t){if(!t)return this;for(let e=0;e<this.length;e+=1)if(!1===t.call(this[e],e,this[e]))return this;return this}function N(t){const e=[],n=this;for(let i=0;i<n.length;i+=1)t.call(n[i],i,n[i])&&e.push(n[i]);return new r(e)}function D(t){if(void 0===t)return this[0]?this[0].innerHTML:void 0;for(let e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function C(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=t;return this}function O(t){const e=this[0];let n,o;if(!e||void 0===t)return!1;if("string"==typeof t){if(e.matches)return e.matches(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);for(n=s(t),o=0;o<n.length;o+=1)if(n[o]===e)return!0;return!1}if(t===i.a)return e===i.a;if(t===i.b)return e===i.b;if(t.nodeType||t instanceof r){for(n=t.nodeType?[t]:t,o=0;o<n.length;o+=1)if(n[o]===e)return!0;return!1}return!1}function M(){let t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}}function k(t){if(void 0===t)return this;const e=this.length;let n;return t>e-1?new r([]):t<0?(n=e+t,new r(n<0?[]:[this[n]])):new r([this[t]])}function A(...t){let e;for(let n=0;n<t.length;n+=1){e=t[n];for(let t=0;t<this.length;t+=1)if("string"==typeof e){const n=i.a.createElement("div");for(n.innerHTML=e;n.firstChild;)this[t].appendChild(n.firstChild)}else if(e instanceof r)for(let n=0;n<e.length;n+=1)this[t].appendChild(e[n]);else this[t].appendChild(e)}return this}function H(t){let e,n;for(e=0;e<this.length;e+=1)if("string"==typeof t){const r=i.a.createElement("div");for(r.innerHTML=t,n=r.childNodes.length-1;n>=0;n-=1)this[e].insertBefore(r.childNodes[n],this[e].childNodes[0])}else if(t instanceof r)for(n=0;n<t.length;n+=1)this[e].insertBefore(t[n],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function B(t){return this.length>0?t?this[0].nextElementSibling&&s(this[0].nextElementSibling).is(t)?new r([this[0].nextElementSibling]):new r([]):this[0].nextElementSibling?new r([this[0].nextElementSibling]):new r([]):new r([])}function F(t){const e=[];let n=this[0];if(!n)return new r([]);for(;n.nextElementSibling;){const i=n.nextElementSibling;t?s(i).is(t)&&e.push(i):e.push(i),n=i}return new r(e)}function P(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&s(e.previousElementSibling).is(t)?new r([e.previousElementSibling]):new r([]):e.previousElementSibling?new r([e.previousElementSibling]):new r([])}return new r([])}function V(t){const e=[];let n=this[0];if(!n)return new r([]);for(;n.previousElementSibling;){const i=n.previousElementSibling;t?s(i).is(t)&&e.push(i):e.push(i),n=i}return new r(e)}function q(t){const e=[];for(let n=0;n<this.length;n+=1)null!==this[n].parentNode&&(t?s(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return s(o(e))}function J(t){const e=[];for(let n=0;n<this.length;n+=1){let i=this[n].parentNode;for(;i;)t?s(i).is(t)&&e.push(i):e.push(i),i=i.parentNode}return s(o(e))}function z(t){let e=this;return void 0===t?new r([]):(e.is(t)||(e=e.parents(t).eq(0)),e)}function I(t){const e=[];for(let n=0;n<this.length;n+=1){const i=this[n].querySelectorAll(t);for(let t=0;t<i.length;t+=1)e.push(i[t])}return new r(e)}function W(t){const e=[];for(let n=0;n<this.length;n+=1){const i=this[n].childNodes;for(let n=0;n<i.length;n+=1)t?1===i[n].nodeType&&s(i[n]).is(t)&&e.push(i[n]):1===i[n].nodeType&&e.push(i[n])}return new r(o(e))}function j(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function G(...t){const e=this;let n,i;for(n=0;n<t.length;n+=1){const r=s(t[n]);for(i=0;i<r.length;i+=1)e[e.length]=r[i],e.length+=1}return e}s.fn=r.prototype,s.Class=r,s.Dom7=r,"resize scroll".split(" ")}}]);
|