goj/document/某OJ系统恶意代码执行漏洞 - Matrix_files/function.js

10 lines
218 KiB
JavaScript
Raw Permalink Normal View History

2021-08-24 02:03:45 +00:00
/*! handsome 2020-08-13 */
function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.4",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.4",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));a&&this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"=
c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.4",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e&&"top";if("bottom"==this.affixed)return null!=c?!(e+this.unpin<=f.top)&&"bottom":!(a-d>=e+g)&&"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d&&"bottom"},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=a(document.body).height();"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery),$.fn.fancyMorph=function(a){var b=function(a,b){var c=this;c.opts=$.extend({animationEffect:!1,infobar:!1,buttons:[
"cloud-lightning":'<path d="M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9"></path><polyline points="13 11 9 17 15 17 11 23"></polyline>',"cloud-off":'<path d="M22.61 16.95A5 5 0 0 0 18 10h-1.26a8 8 0 0 0-7.05-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3"></path><line x1="1" y1="1" x2="23" y2="23"></line>',"cloud-rain":'<line x1="16" y1="13" x2="16" y2="21"></line><line x1="8" y1="13" x2="8" y2="21"></line><line x1="12" y1="15" x2="12" y2="23"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-snow":'<path d="M20 17.58A5 5 0 0 0 18 8h-1.26A8 8 0 1 0 4 16.25"></path><line x1="8" y1="16" x2="8.01" y2="16"></line><line x1="8" y1="20" x2="8.01" y2="20"></line><line x1="12" y1="18" x2="12.01" y2="18"></line><line x1="12" y1="22" x2="12.01" y2="22"></line><line x1="16" y1="16" x2="16.01" y2="16"></line><line x1="16" y1="20" x2="16.01" y2="20"></line>',cloud:'<path d="M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"></path>',code:'<polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline>',codepen:'<polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon><line x1="12" y1="22" x2="12" y2="15.5"></line><polyline points="22 8.5 12 15.5 2 8.5"></polyline><polyline points="2 15.5 12 8.5 22 15.5"></polyline><line x1="12" y1="2" x2="12" y2="8.5"></line>',codesandbox:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="7.5 4.21 12 6.81 16.5 4.21"></polyline><polyline points="7.5 19.79 7.5 14.6 3 12"></polyline><polyline points="21 12 16.5 14.6 16.5 19.79"></polyline><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',coffee:'<path d="M18 8h1a4 4 0 0 1 0 8h-1"></path><path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"></path><line x1="6" y1="1" x2="6" y2="4"></line><line x1="10" y1="1" x2="10" y2="4"></line><line x1="14" y1="1" x2="14" y2="4"></line>',columns:'<path d="M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"></path>',command:'<path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"></path>',compass:'<circle cx="12" cy="12" r="10"></circle><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"></polygon>',copy:'<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>',"corner-down-left":'<polyline points="9 10 4 15 9 20"></polyline><path d="M20 4v7a4 4 0 0 1-4 4H4"></path>',"corner-down-right":'<polyline points="15 10 20 15 15 20"></polyline><path d="M4 4v7a4 4 0 0 0 4 4h12"></path>',"corner-left-down":'<polyline points="14 15 9 20 4 15"></polyline><path d="M20 4h-7a4 4 0 0 0-4 4v12"></path>',"corner-left-up":'<polyline points="14 9 9 4 4 9"></polyline><path d="M20 20h-7a4 4 0 0 1-4-4V4"></path>',"corner-right-down":'<polyline points="10 15 15 20 20 15"></polyline><path d="M4 4h7a4 4 0 0 1 4 4v12"></path>',"corner-right-up":'<polyline points="10 9 15 4 20 9"></polyline><path d="M4 20h7a4 4 0 0 0 4-4V4"></path>',"corner-up-left":'<polyline points="9 14 4 9 9 4"></polyline><path d="M20 20v-7a4 4 0 0 0-4-4H4"></path>',"corner-up-right":'<polyline points="15 14 20 9 15 4"></polyline><path d="M4 20v-7a4 4 0 0 1 4-4h12"></path>',cpu:'<rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect><rect x="9" y="9" width="6" height="6"></rect><line x1="9" y1="1" x2="9" y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line><line x1="9" y1="20" x2="9" y2="23"></line><line x1="15" y1="20" x2="15" y2="23"></line><line x1="20" y1="9" x2="23" y2="9"></line><line x1="20" y1="14" x2="23" y2="14"></line><line x1="1" y1="9" x2="4" y2="9"></line><line x1="1" y1="14" x2="4" y2="14"></line>',"credit-card":'<rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="1" y1="10" x2="23" y2="10"></line>',crop:'<path d="M6.13 1L6 16a2
sunrise:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="2" x2="12" y2="9"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="8 6 12 2 16 6"></polyline>',sunset:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="9" x2="12" y2="2"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="16 5 12 9 8 5"></polyline>',tablet:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',tag:'<path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line>',target:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle>',terminal:'<polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line>',thermometer:'<path d="M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z"></path>',"thumbs-down":'<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path>',"thumbs-up":'<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path>',"toggle-left":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="8" cy="12" r="3"></circle>',"toggle-right":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="16" cy="12" r="3"></circle>',tool:'<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path>',"trash-2":'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><line x1="10" y1="11" x2="10" y2="17"></line><line x1="14" y1="11" x2="14" y2="17"></line>',trash:'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>',trello:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><rect x="7" y="7" width="3" height="9"></rect><rect x="14" y="7" width="3" height="5"></rect>',"trending-down":'<polyline points="23 18 13.5 8.5 8.5 13.5 1 6"></polyline><polyline points="17 18 23 18 23 12"></polyline>',"trending-up":'<polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline>',triangle:'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path>',truck:'<rect x="1" y="3" width="15" height="13"></rect><polygon points="16 8 20 8 23 11 23 16 16 16 16 8"></polygon><circle cx="5.5" cy="18.5" r="2.5"></circle><circle cx="18.5" cy="18.5" r="2.5"></circle>',tv:'<rect x="2" y="7" width="20" height="15" rx="2" ry="2"></rect><polyline points="17 2 12 7 7 2"></polyline>',twitch:'<path d="M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7"></path>',twitter:'<path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>',type:'<polyline points="4 7 4 4 20 4 20 7"></polyline><line x1="9" y1="20" x2="15" y2="20"></line><line x1="12" y1="4" x2="12" y2="20"></line>',umbrella:'<path d="M23 12a11.05 11.05 0 0 0-22 0zm-5 7a3 3 0 0 1-6 0v-7"></path>',underline:'<path d="M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3"></path><line x1="4" y1="21" x2="20" y2="21"></line>',unlock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 9.9-1"></path>',"upload-cloud":'<polyline points="16 16 12 12 8 16"></polyl
c.fancybox.animate(d.$slide,{top:0,left:(d.pos-g.pos)*i.width+(d.pos-g.pos)*d.opts.gutter},b,function(){d.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),d.pos===m.currPos&&m.complete()})})):b&&g.opts.transitionEffect&&(k="fancybox-animated fancybox-fx-"+g.opts.transitionEffect,h.$slide.addClass("fancybox-slide--"+(h.pos>g.pos?"next":"previous")),c.fancybox.animate(h.$slide,k,b,function(){h.$slide.removeClass(k).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),g.isLoaded?m.revealContent(g):m.loadSlide(g),m.preload("image")}},createSlide:function(a){var b,d,e=this;return d=a%e.group.length,d=d<0?e.group.length+d:d,!e.slides[a]&&e.group[d]&&(b=c('<div class="fancybox-slide"></div>').appendTo(e.$refs.stage),e.slides[a]=c.extend(!0,{},e.group[d],{pos:a,$slide:b,isLoaded:!1}),e.updateSlide(e.slides[a])),e.slides[a]},scaleToActual:function(a,b,d){var e,f,g,h,i,j=this,k=j.current,l=k.$content,m=c.fancybox.getTranslate(k.$slide).width,n=c.fancybox.getTranslate(k.$slide).height,o=k.width,p=k.height;j.isAnimating||j.isMoved()||!l||"image"!=k.type||!k.isLoaded||k.hasError||(j.isAnimating=!0,c.fancybox.stop(l),a=void 0===a?.5*m:a,b=void 0===b?.5*n:b,e=c.fancybox.getTranslate(l),e.top-=c.fancybox.getTranslate(k.$slide).top,e.left-=c.fancybox.getTranslate(k.$slide).left,h=o/e.width,i=p/e.height,f=.5*m-.5*o,g=.5*n-.5*p,o>m&&(f=e.left*h-(a*h-a),f>0&&(f=0),f<m-o&&(f=m-o)),p>n&&(g=e.top*i-(b*i-b),g>0&&(g=0),g<n-p&&(g=n-p)),j.updateCursor(o,p),c.fancybox.animate(l,{top:g,left:f,scaleX:h,scaleY:i},d||366,function(){j.isAnimating=!1}),j.SlideShow&&j.SlideShow.isActive&&j.SlideShow.stop())},scaleToFit:function(a){var b,d=this,e=d.current,f=e.$content;d.isAnimating||d.isMoved()||!f||"image"!=e.type||!e.isLoaded||e.hasError||(d.isAnimating=!0,c.fancybox.stop(f),b=d.getFitPos(e),d.updateCursor(b.width,b.height),c.fancybox.animate(f,{top:b.top,left:b.left,scaleX:b.width/f.width(),scaleY:b.height/f.height()},a||366,function(){d.isAnimating=!1}))},getFitPos:function(a){var b,d,e,f,g=this,h=a.$content,i=a.$slide,j=a.width||a.opts.width,k=a.height||a.opts.height,l={};return!!(a.isLoaded&&h&&h.length)&&(b=c.fancybox.getTranslate(g.$refs.stage).width,d=c.fancybox.getTranslate(g.$refs.stage).height,b-=parseFloat(i.css("paddingLeft"))+parseFloat(i.css("paddingRight"))+parseFloat(h.css("marginLeft"))+parseFloat(h.css("marginRight")),d-=parseFloat(i.css("paddingTop"))+parseFloat(i.css("paddingBottom"))+parseFloat(h.css("marginTop"))+parseFloat(h.css("marginBottom")),j&&k||(j=b,k=d),e=Math.min(1,b/j,d/k),j*=e,k*=e,j>b-.5&&(j=b),k>d-.5&&(k=d),"image"===a.type?(l.top=Math.floor(.5*(d-k))+parseFloat(i.css("paddingTop")),l.left=Math.floor(.5*(b-j))+parseFloat(i.css("paddingLeft"))):"video"===a.contentType&&(f=a.opts.width&&a.opts.height?j/k:a.opts.ratio||16/9,k>j/f?k=j/f:j>k*f&&(j=k*f)),l.width=j,l.height=k,l)},update:function(a){var b=this;c.each(b.slides,function(c,d){b.updateSlide(d,a)})},updateSlide:function(a,b){var d=this,e=a&&a.$content,f=a.width||a.opts.width,g=a.height||a.opts.height,h=a.$slide;d.adjustCaption(a),e&&(f||g||"video"===a.contentType)&&!a.hasError&&(c.fancybox.stop(e),c.fancybox.setTranslate(e,d.getFitPos(a)),a.pos===d.currPos&&(d.isAnimating=!1,d.updateCursor())),d.adjustLayout(a),h.length&&(h.trigger("refresh"),a.pos===d.currPos&&d.$refs.toolbar.add(d.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",h.get(0).scrollHeight>h.get(0).clientHeight)),d.trigger("onUpdate",a,b)},centerSlide:function(a){var b=this,d=b.current,e=d.$slide;!b.isClosing&&d&&(e.siblings().css({transform:"",opacity:""}),e.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),c.fancybox.animate(e,{top:0,left:0,opacity:1},void 0===a?0:a,function(){e.css({transform:"",opacity:""}),d.isComplete||b.complete()},!1))},isMoved:function(a){var b,d,e=a||this.current;return!!e&&(d=c.fancybox.getTranslate(this.$refs.stage),b=c.fancybox.getTranslate(e.$slide),!e.$slide.hasClass("fancybox-animated")&&(Math.abs(b.top-d.top)>.5||Math.abs(b.left
b.removeEventListener("scroll",c.onscroll,!0)},k.prototype.ontouchmove=function(a){var b=this;return void 0!==a.originalEvent.buttons&&0===a.originalEvent.buttons?void b.ontouchend(a):b.isScrolling?void(b.canTap=!1):(b.newPoints=f(a),void((b.opts||b.canPan)&&b.newPoints.length&&b.newPoints.length&&(b.isSwiping&&!0===b.isSwiping||a.preventDefault(),b.distanceX=g(b.newPoints[0],b.startPoints[0],"x"),b.distanceY=g(b.newPoints[0],b.startPoints[0],"y"),b.distance=g(b.newPoints[0],b.startPoints[0]),b.distance>0&&(b.isSwiping?b.onSwipe(a):b.isPanning?b.onPan():b.isZooming&&b.onZoom()))))},k.prototype.onSwipe=function(b){var f,g=this,h=g.instance,i=g.isSwiping,j=g.sliderStartPos.left||0;if(!0!==i)"x"==i&&(g.distanceX>0&&(g.instance.group.length<2||0===g.instance.current.index&&!g.instance.current.opts.loop)?j+=Math.pow(g.distanceX,.8):g.distanceX<0&&(g.instance.group.length<2||g.instance.current.index===g.instance.group.length-1&&!g.instance.current.opts.loop)?j-=Math.pow(-g.distanceX,.8):j+=g.distanceX),g.sliderLastPos={top:"x"==i?0:g.sliderStartPos.top+g.distanceY,left:j},g.requestId&&(e(g.requestId),g.requestId=null),g.requestId=d(function(){g.sliderLastPos&&(c.each(g.instance.slides,function(a,b){var d=b.pos-g.instance.currPos;c.fancybox.setTranslate(b.$slide,{top:g.sliderLastPos.top,left:g.sliderLastPos.left+d*g.canvasWidth+d*b.opts.gutter})}),g.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(g.distance)>10){if(g.canTap=!1,h.group.length<2&&g.opts.vertical?g.isSwiping="y":h.isDragging||!1===g.opts.vertical||"auto"===g.opts.vertical&&c(a).width()>800?g.isSwiping="x":(f=Math.abs(180*Math.atan2(g.distanceY,g.distanceX)/Math.PI),g.isSwiping=f>45&&f<135?"y":"x"),"y"===g.isSwiping&&c.fancybox.isMobile&&g.isScrollable)return void(g.isScrolling=!0);h.isDragging=g.isSwiping,g.startPoints=g.newPoints,c.each(h.slides,function(a,b){var d,e;c.fancybox.stop(b.$slide),d=c.fancybox.getTranslate(b.$slide),e=c.fancybox.getTranslate(h.$refs.stage),b.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(a,b){return(b.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),b.pos===h.current.pos&&(g.sliderStartPos.top=d.top-e.top,g.sliderStartPos.left=d.left-e.left),c.fancybox.setTranslate(b.$slide,{top:d.top-e.top,left:d.left-e.left})}),h.SlideShow&&h.SlideShow.isActive&&h.SlideShow.stop()}},k.prototype.onPan=function(){var a=this;if(g(a.newPoints[0],a.realPoints[0])<(c.fancybox.isMobile?10:5))return void(a.startPoints=a.newPoints);a.canTap=!1,a.contentLastPos=a.limitMovement(),a.requestId&&e(a.requestId),a.requestId=d(function(){c.fancybox.setTranslate(a.$content,a.contentLastPos)})},k.prototype.limitMovement=function(){var a,b,c,d,e,f,g=this,h=g.canvasWidth,i=g.canvasHeight,j=g.distanceX,k=g.distanceY,l=g.contentStartPos,m=l.left,n=l.top,o=l.width,p=l.height;return e=o>h?m+j:m,f=n+k,a=Math.max(0,.5*h-.5*o),b=Math.max(0,.5*i-.5*p),c=Math.min(h-o,.5*h-.5*o),d=Math.min(i-p,.5*i-.5*p),j>0&&e>a&&(e=a-1+Math.pow(-a+m+j,.8)||0),j<0&&e<c&&(e=c+1-Math.pow(c-m-j,.8)||0),k>0&&f>b&&(f=b-1+Math.pow(-b+n+k,.8)||0),k<0&&f<d&&(f=d+1-Math.pow(d-n-k,.8)||0),{top:f,left:e}},k.prototype.limitPosition=function(a,b,c,d){var e=this,f=e.canvasWidth,g=e.canvasHeight;return c>f?(a=a>0?0:a,a=a<f-c?f-c:a):a=Math.max(0,f/2-c/2),d>g?(b=b>0?0:b,b=b<g-d?g-d:b):b=Math.max(0,g/2-d/2),{top:b,left:a}},k.prototype.onZoom=function(){var b=this,f=b.contentStartPos,h=f.width,i=f.height,j=f.left,k=f.top,l=g(b.newPoints[0],b.newPoints[1]),m=l/b.startDistanceBetweenFingers,n=Math.floor(h*m),o=Math.floor(i*m),p=(h-n)*b.percentageOfImageAtPinchPointX,q=(i-o)*b.percentageOfImageAtPinchPointY,r=(b.newPoints[0].x+b.newPoints[1].x)/2-c(a).scrollLeft(),s=(b.newPoints[0].y+b.newPoints[1].y)/2-c(a).scrollTop(),t=r-b.centerPointStartX,u=s-b.centerPointStartY,v=j+(p+t),w=k+(q+u),x={top:w,left:v,scaleX:m,scaleY:m};b.canTap=!1,b.newWidth=n,b.newHeight=o,b.contentLastPos=x,b.requestId&&e(b.requestId),b.requestId=d(function(){c.fancybox.setTranslate(b.$content,b.contentLastPos)})},k.prototype.ontouchend=function(a){var d=this,g=
var a='\n <audio class="skPlayer-source" src="'+("file"===this.type?this.music[0].src:"")+'" preload="auto"></audio>\n <div class="skPlayer-picture">\n <img class="skPlayer-cover" src="'+this.music[0].cover+'" alt="">\n \n </div>\n <div class="skPlayer-control">\n <p class="skPlayer-name">'+this.music[0].name+'</p>\n <div class="playController"><div onclick="player.prev();" class="lastMusic music-off "><span class="feathericons"><svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1"><polygon points="11 19 2 12 11 5 11 19"></polygon><polygon points="22 19 13 12 22 5 22 19"></polygon></svg></span></div> &nbsp;&nbsp;\n <div class="runMusic music-off skPlayer-play-btn"><span class="runMusicIcon feathericons"><svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1"><polygon points="5 3 19 12 5 21 5 3"></polygon></svg></span></div>&nbsp;&nbsp; \n <div onclick="player.next();" class="nextMusic music-off "><span class="feathericons"><svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1"><polygon points="13 19 22 12 13 5 13 19"></polygon><polygon points="2 19 11 12 2 5 2 19"></polygon></svg></span></div></div>\n <p class="skPlayer-author">'+this.music[0].author+'</p>\n <div class="skPlayer-percent">\n <div class="skPlayer-line-loading"></div>\n <div class="skPlayer-line lter"></div>\n </div>\n <p class="skPlayer-time">\n <span class="skPlayer-cur">00:00</span>/<span class="skPlayer-total">00:00</span>\n </p>\n <div class="skPlayer-volume" style="'+(this.isMobile?"display:none;":"")+'">\n <span class="feathericons skPlayer-volume-icon"><svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path></svg></span>\n <div class="skPlayer-percent">\n <div class="skPlayer-line"></div>\n </div>\n </div>\n <i class="'+("singleloop"===this.option.mode?"skPlayer-mode skPlayer-mode-loop":"skPlayer-mode")+'"></i>\n </div>\n <ul id="skPlayer-list" class="skPlayer-list animated flipInX">\n ';for(var b in this.music)a+='\n <li data-index="'+b+'">\n <i class="skPlayer-list-sign"></i>\n <span class="skPlayer-list-index">'+(parseInt(b)+1)+'</span>\n <span class="skPlayer-list-name" title="'+this.music[b].name+'">'+this.music[b].name+'</span>\n <span class="skPlayer-list-author" title="'+this.music[b].author+'">'+this.music[b].author+"</span>\n </li>\n ";return a+="\n </ul>\n "}},{key:"init",value:function(){var a=this;if(this.dom={cover:this.root.querySelector(".skPlayer-cover"),playbutton:this.root.querySelector(".skPlayer-play-btn"),runIcon:this.root.querySelector(".skPlayer-play-btn .runMusicIcon"),name:this.root.querySelector(".skPlayer-name"),author:this.root.querySelector(".skPlayer-author"),timeline_total:this.root.querySelector(".skPlayer-percent"),timeline_loaded:this.root.querySelector(".skPlayer-line-loading"),timeline_played:this.root.querySelector(".skPlayer-percent .skPlayer-line"),timetext_total:this.root.querySelector(".skPlayer-total"),timetext_played:this.root.querySelector(".skPlayer-cur"),volumebutton:this.root.querySelector(".skPlayer-volume-icon"),volumeline_tot
var a,b=this;b.$audio_area.on("click",function(){c||(b.Audio.load(),c=!0),b.play(),a||(b.updateTotalTime(),a=!0)})},run:function(){this.animateProgressBarPosition(),this.Audio.ended&&this.pause()},animateProgressBarPosition:function(){var a=100*this.Audio.currentTime/this.Audio.duration+"%";"NaN%"==a&&(a="0%"),this.$audio_progress.css({width:a})},getAudioSeconds:function(a){return a=this.addZero(Math.floor(a%60),2),60>a||(a="00"),a},getAudioMinutes:function(a){return a=this.addZero(Math.floor(a/60),2),60>a||(a="00"),a},addZero:function(a,b){for(a=String(a);a.length<b;)a="0"+a;return a},updateTotalTime:function(){if(this.Audio){var a=this.Audio.duration,b=this.getAudioMinutes(a);return a=this.getAudioSeconds(a),this.$audio_length.text(b+":"+a),b+":"+a}console.log("音频未加载成功")},changeSrc:function(a,b){this.pause(),this.Audio.src=a,this.play(),b()}};var f={};return d.each(function(a,c){f["weixinAudio"+a]=new b($(this))}),f}}(jQuery);