!function(t,e){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define(e):t.shuffle=e()}(this,function(){"use strict";functiont(t,e){if(A)returnA.call(t,e);for(vari=t.parentNode.querySelectorAll(e),n=0;n<i.length;n++)if(i[n]==t)return!0;return!1}functione(){for(vart={},e=0;e<arguments.length;e++){vari=arguments[e];for(varnini)C.call(i,n)&&(t[n]=i[n])}returnt}functioni(t,e){functioni(){o=0,a=+newDate,s=t.apply(n,r),n=null,r=null}varn,r,s,o,a=0;returnfunction(){n=this,r=arguments;vart=newDate-a;returno||(t>=e?i():o=setTimeout(i,e-t)),s}}functionn(){}functionr(t){returnparseFloat(t)||0}functions(t,e){vari=arguments.length>2&&void0!==arguments[2]?arguments[2]:window.getComputedStyle(t,null),n=r(i[e]);returnO||"width"!==e?O||"height"!==e||(n+=r(i.paddingTop)+r(i.paddingBottom)+r(i.borderTopWidth)+r(i.borderBottomWidth)):n+=r(i.paddingLeft)+r(i.paddingRight)+r(i.borderLeftWidth)+r(i.borderRightWidth),n}functiono(t){for(vare=t.length;e;){e-=1;vari=Math.floor(Math.random()*(e+1)),n=t[i];t[i]=t[e],t[e]=n}returnt}functiona(t,e){vari=x(W,e),n=[].slice.call(t),r=!1;returnt.length?i.randomize?o(t):("function"==typeofi.by&&t.sort(function(t,e){if(r)return0;varn=i.by(t[i.key]),s=i.by(e[i.key]);returnvoid0===n&&void0===s?(r=!0,0):n<s||"sortFirst"===n||"sortLast"===s?-1:n>s||"sortLast"===n||"sortFirst"===s?1:0}),r?n:(i.reverse&&t.reverse(),t)):[]}functionl(){returnV+=1,P+V}functionu(t){return!!q[t]&&(q[t].element.removeEventListener(P,q[t].listener),q[t]=null,!0)}functionh(t,e){vari=l(),n=function(t){t.currentTarget===t.target&&(u(i),e(t))};returnt.addEventListener(P,n),q[i]={element:t,listener:n},i}functionf(t){returnMath.max.apply(Math,t)}functionc(t){returnMath.min.apply(Math,t)}functiond(t,e,i,n){varr=t/e;returnMath.abs(Math.round(r)-r)<n&&(r=Math.round(r)),Math.min(Math.ceil(r),i)}functiong(t,e,i){if(1===e)returnt;for(varn=[],r=0;r<=i-e;r++)n.push(f(t.slice(r,r+e)));returnn}functionm(t,e){for(vari=c(t),n=0,r=t.length;n<r;n++)if(t[n]>=i-e&&t[n]<=i+e)returnn;return0}functionp(t){for(vare=t.itemSize,i=t.positions,n=t.gridSize,r=t.total,s=t.threshold,o=t.buffer,a=d(e.width,n,r,s),l=g(i,a,r),u=m(l,o),h=newD(Math.round(n*u),Math.round(l[u])),f=l[u]+e.height,c=0;c<a;c++)i[u+c]=f;returnh}functionv(t){returnArray.prototype.slice.call(t)}functionb(t,e){returnt.indexOf(e)>-1}try{vary=newwindow.CustomEvent("test");if(y.preventDefault(),!0!==y.defaultPrevented)thrownewError("Could not prevent default")}catch(t){var_=function(t,e){vari,n;returne=e||{bubbles:!1,cancelable:!1,detail:void0},i=document.createEvent("CustomEvent"),i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n=i.preventDefault,i.preventDefault=function(){n.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(t){this.defaultPrevented=!0}},i};_.prototype=window.Event.prototype,window.CustomEvent=_}varS=Element.prototype,A=S.matches||S.matchesSelector||S.webkitMatchesSelector||S.mozMatchesSelector||S.msMatchesSelector||S.oMatchesSelector,k=t,E="undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:{},w=function(t,e){returne={exports:{}},t(e,e.exports),e.exports}(function(t){functione(t){for(vare=[],i=0;i<t.length;i++)-1===e.indexOf(t[i])&&e.push(t[i]);returne}functioni(t){vare=newSet;returnt.filter(function(t){return!e.has(t)&&(e.add(t),!0)})}functionn(t){vare=[];returnnewSet(t).forEach(function(t){e.push(t)}),e}"Set"inE?"function"==typeofSet.prototype.forEach&&function(){vart=!1;returnnewSet([!0]).forEach(function(e){t=e}),!0===t}()?t.exports=n:t.exports=i:t.exports=e}),x=e,C=Object.prototype.hasOwnProperty,I=i,T=function(t,e,i){functionr(t){returnfunction(e,n){if(!o){if(e)returni(e,a),void(o=!0);a[t]=n,--s||i(null,a)}}}i||("function"==typeofe?(i=e,e=null):i=n);vars=t&&t.length;if(!s)returni(null,[]);varo=!1,a=newArray(s);t.forEach(e?function(t,i){t.call(e,r(i))}:function(t,e){t(r(e))})},F=function(t,e){if(!(tinstanceofe))thrownewTy