mirror of
https://git.juggalol.com/agatha/stockbot-buyvm.git
synced 2024-11-16 20:56:40 +00:00
3 lines
67 KiB
JavaScript
3 lines
67 KiB
JavaScript
|
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.enquire=e()}}(function(){return function e(t,i,n){function o(s,a){if(!i[s]){if(!t[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(r)return r(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var p=i[s]={exports:{}};t[s][0].call(p.exports,function(e){var i=t[s][1][e];return o(i||e)},p,p.exports,e,t,i,n)}return i[s].exports}for(var r="function"==typeof require&&require,s=0;s<n.length;s++)o(n[s]);return o}({1:[function(e,t,i){function n(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var i=this;this.listener=function(e){i.mql=e.currentTarget||e,i.assess()},this.mql.addListener(this.listener)}var o=e(3),r=e(4).each;n.prototype={constuctor:n,addHandler:function(e){var t=new o(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;r(t,function(i,n){if(i.equals(e))return i.destroy(),!t.splice(n,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){r(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";r(this.handlers,function(t){t[e]()})}},t.exports=n},{3:3,4:4}],2:[function(e,t,i){function n(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}var o=e(1),r=e(4),s=r.each,a=r.isFunction,l=r.isArray;n.prototype={constructor:n,register:function(e,t,i){var n=this.queries,r=i&&this.browserIsIncapable;return n[e]||(n[e]=new o(e,r)),a(t)&&(t={match:t}),l(t)||(t=[t]),s(t,function(t){a(t)&&(t={match:t}),n[e].addHandler(t)}),this},unregister:function(e,t){var i=this.queries[e];return i&&(t?i.removeHandler(t):(i.clear(),delete this.queries[e])),this}},t.exports=n},{1:1,4:4}],3:[function(e,t,i){function n(e){this.options=e,!e.deferSetup&&this.setup()}n.prototype={constructor:n,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},t.exports=n},{}],4:[function(e,t,i){function n(e,t){for(var i=0,n=e.length;i<n&&!1!==t(e[i],i);i++);}function o(e){return"[object Array]"===Object.prototype.toString.apply(e)}function r(e){return"function"==typeof e}t.exports={isFunction:r,isArray:o,each:n}},{}],5:[function(e,t,i){var n=e(2);t.exports=new n},{2:2}]},{},[5])(5)}),function(e){function t(e,t,o){var r=e[0],s=/er/.test(o)?_indeterminate:/bl/.test(o)?h:u,a=o==_update?{checked:r[u],disabled:r[h],indeterminate:"true"==e.attr(_indeterminate)||"false"==e.attr(_determinate)}:r[s];if(/^(ch|di|in)/.test(o)&&!a)i(e,s);else if(/^(un|en|de)/.test(o)&&a)n(e,s);else if(o==_update)for(var l in a)a[l]?i(e,l,!0):n(e,l,!0);else t&&"toggle"!=o||(t||e[_callback]("ifClicked"),a?r[_type]!==p&&n(e,s):i(e,s))}function i(t,i,o){var f=t[0],g=t.parent(),v=i==u,m=i==_indeterminate,y=i==h,w=m?_determinate:v?d:"enabled",b=r(t,w+s(f[_type])),C=r(t,i+s(f[_type]));if(!0!==f[i]){if(!o&&i==u&&f[_type]==p&&f.name){var O=t.closest("form"),_='input[name="'+f.name+'"]';_=O.length?O.find(_):e(_);_.each(function(){this!==f&&e(this).data(l)&&n(e(this),i)})}m?(f[i]=!0,f[u]&&n(t,u,"force")):(o||(f[i]=!0),v&&f[_indeterminate]&&n(t,_indeterminate,!1)),a(t,v,i,o)}f[h]&&r(t,_cursor,!0)&&g.find("."+c).css(_cursor,"default"),g[_add](C||r(t,i)||""),g.attr("role")&&!m&&g.attr("aria-"+(y?h:u),"true"),g[_remove](b||r(t,w)||"")}function n(e,t,i){var n=e[0],o=e.parent(),l=t==u,p=t==_indeterminate,f=t==h,g=p?_determinate:l?d:"enabled",v=r
|
||
|
b.attr("autocapitalize")&&n.attr("autocapitalize",b.attr("autocapitalize")),d.$wrapper=t,d.$control=i,d.$control_input=n,d.$dropdown=o,d.$dropdown_content=s,o.on("mouseenter","[data-selectable]",function(){return d.onOptionHover.apply(d,arguments)}),o.on("mousedown click","[data-selectable]",function(){return d.onOptionSelect.apply(d,arguments)}),A(i,"mousedown","*:not(input)",function(){return d.onItemSelect.apply(d,arguments)}),z(n),i.on({mousedown:function(){return d.onMouseDown.apply(d,arguments)},click:function(){return d.onClick.apply(d,arguments)}}),n.on({mousedown:function(e){e.stopPropagation()},keydown:function(){return d.onKeyDown.apply(d,arguments)},keyup:function(){return d.onKeyUp.apply(d,arguments)},keypress:function(){return d.onKeyPress.apply(d,arguments)},resize:function(){d.positionDropdown.apply(d,[])},blur:function(){return d.onBlur.apply(d,arguments)},focus:function(){return d.ignoreBlur=!1,d.onFocus.apply(d,arguments)},paste:function(){return d.onPaste.apply(d,arguments)}}),v.on("keydown"+f,function(e){d.isCmdDown=e[r?"metaKey":"ctrlKey"],d.isCtrlDown=e[r?"altKey":"ctrlKey"],d.isShiftDown=e.shiftKey}),v.on("keyup"+f,function(e){e.keyCode===w&&(d.isCtrlDown=!1),e.keyCode===m&&(d.isShiftDown=!1),e.keyCode===y&&(d.isCmdDown=!1)}),v.on("mousedown"+f,function(e){if(d.isFocused){if(e.target===d.$dropdown[0]||e.target.parentNode===d.$dropdown[0])return!1;d.$control.has(e.target).length||e.target===d.$control[0]||d.blur(e.target)}}),g.on(["scroll"+f,"resize"+f].join(" "),function(){d.isOpen&&d.positionDropdown.apply(d,arguments)}),g.on("mousemove"+f,function(){d.ignoreHover=!1}),this.revertSettings={$children:b.children().detach(),tabindex:b.attr("tabindex")},b.attr("tabindex",-1).hide().after(d.$wrapper),e.isArray(h.items)&&(d.setValue(h.items),delete h.items),_&&b.on("invalid"+f,function(e){e.preventDefault(),d.isInvalid=!0,d.refreshState()}),d.updateOriginalInput(),d.refreshItems(),d.refreshState(),d.updatePlaceholder(),d.isSetup=!0,b.is(":disabled")&&d.disable(),d.on("change",this.onChange),b.data("selectize",d),b.addClass("selectized"),d.trigger("initialize"),!0===h.preload&&d.onSearchChange("")},setupTemplates:function(){var t=this,i=t.settings.labelField,n=t.settings.optgroupLabelField,o={optgroup:function(e){return'<div class="optgroup">'+e.html+"</div>"},optgroup_header:function(e,t){return'<div class="optgroup-header">'+t(e[n])+"</div>"},option:function(e,t){return'<div class="option">'+t(e[i])+"</div>"},item:function(e,t){return'<div class="item">'+t(e[i])+"</div>"},option_create:function(e,t){return'<div class="create">Add <strong>'+t(e.input)+"</strong>…</div>"}};t.settings.render=e.extend({},o,t.settings.render)},setupCallbacks:function(){var e,t,i={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(e in i)i.hasOwnProperty(e)&&(t=this.settings[i[e]],t&&this.on(e,t))},onClick:function(e){var t=this;t.isFocused||(t.focus(),e.preventDefault())},onMouseDown:function(t){var i=this,n=t.isDefaultPrevented();if(e(t.target),i.isFocused){if(t.target!==i.$control_input[0])return"single"===i.settings.mode?i.isOpen?i.close():i.open():n||i.setActiveItem(null),!1}else n||window.setTimeout(function(){i.focus()},0)},onChange:function(){this.$input.trigger("change")},onPaste:function(t){var i=this;return i.isFull()||i.isInputHidden||i.isLocked?void t.preventDefault():void(i.settings.splitOn&&setTimeout(function(){var t=i.$control_input.val();if(t.match(i.settings.splitOn))for(var n=e.trim(t).split(i.settings.splitOn),o=0,r=n.length;o<r;o++)i.createItem(n[o])},0))},onKeyPress:function(e){if(this.isLocked)return e&&e.preventDefault();var t=String.fromCharCode(e.keyCode||e.which);return this.settings.create&&"multi"===this.settings.mode&
|
||
|
var t=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return t&&e("html").css("cursor","pointer").on("click",e.noop),t}(),i=document.documentElement.style,r="behavior"in i&&"fill"in i&&/iemobile/i.test(navigator.userAgent),s=!!t.PointerEvent,a=function(e,t,i){var o,r=n.menuClass;t.cssArrows&&(r+=" "+n.menuArrowClass),o=i?"addClass":"removeClass",e[o](r)},l=function(t,i){return t.find("li."+i.pathClass).slice(0,i.pathLevels).addClass(i.hoverClass+" "+n.bcClass).filter(function(){return e(this).children(i.popUpSelector).hide().show().length}).removeClass(i.pathClass)},c=function(e,t){var i=t?"addClass":"removeClass";e.children("a")[i](n.anchorClass)},p=function(e){var t=e.css("ms-touch-action"),i=e.css("touch-action");i=i||t,i="pan-y"===i?"auto":"pan-y",e.css({"ms-touch-action":i,"touch-action":i})},u=function(e){return e.closest("."+n.menuClass)},d=function(e){return u(e).data("sfOptions")},h=function(){var t=e(this),i=d(t);clearTimeout(i.sfTimer),t.siblings().superfish("hide").end().superfish("show")},f=function(t){t.retainPath=e.inArray(this[0],t.$path)>-1,this.superfish("hide"),this.parents("."+t.hoverClass).length||(t.onIdle.call(u(this)),t.$path.length&&e.proxy(h,t.$path)())},g=function(){var t=e(this),i=d(t);o?e.proxy(f,t,i)():(clearTimeout(i.sfTimer),i.sfTimer=setTimeout(e.proxy(f,t,i),i.delay))},v=function(t){var i=e(this),n=d(i),o=i.siblings(t.data.popUpSelector);if(!1===n.onHandleTouch.call(o))return this;o.length>0&&o.is(":hidden")&&(i.one("click.superfish",!1),"MSPointerDown"===t.type||"pointerdown"===t.type?i.trigger("focus"):e.proxy(h,i.parent("li"))())},m=function(t,i){var n="li:has("+i.popUpSelector+")";e.fn.hoverIntent&&!i.disableHI?t.hoverIntent(h,g,n):t.on("mouseenter.superfish",n,h).on("mouseleave.superfish",n,g);var a="MSPointerDown.superfish";s&&(a="pointerdown.superfish"),o||(a+=" touchend.superfish"),r&&(a+=" mousedown.superfish"),t.on("focusin.superfish","li",h).on("focusout.superfish","li",g).on(a,"a",i,v)},{hide:function(t){if(this.length){var i=this,n=d(i);if(!n)return this;var o=!0===n.retainPath?n.$path:"",r=i.find("li."+n.hoverClass).add(this).not(o).removeClass(n.hoverClass).children(n.popUpSelector),s=n.speedOut;if(t&&(r.show(),s=0),n.retainPath=!1,!1===n.onBeforeHide.call(r))return this;r.stop(!0,!0).animate(n.animationOut,s,function(){var t=e(this);n.onHide.call(t)})}return this},show:function(){var e=d(this);if(!e)return this;var t=this.addClass(e.hoverClass),i=t.children(e.popUpSelector);return!1===e.onBeforeShow.call(i)?this:(i.stop(!0,!0).animate(e.animation,e.speed,function(){e.onShow.call(i)}),this)},destroy:function(){return this.each(function(){var t,i=e(this),o=i.data("sfOptions");if(!o)return!1;t=i.find(o.popUpSelector).parent("li"),clearTimeout(o.sfTimer),a(i,o),c(t),p(i),i.off(".superfish").off(".hoverIntent"),t.children(o.popUpSelector).attr("style",function(e,t){if(void 0!==t)return t.replace(/display[^;]+;?/g,"")}),o.$path.removeClass(o.hoverClass+" "+n.bcClass).addClass(o.pathClass),i.find("."+o.hoverClass).removeClass(o.hoverClass),o.onDestroy.call(i),i.removeData("sfOptions")})},init:function(t){return this.each(function(){var i=e(this);if(i.data("sfOptions"))return!1;var o=e.extend({},e.fn.superfish.defaults,t),r=i.find(o.popUpSelector).parent("li");o.$path=l(i,o),i.data("sfOptions",o),a(i,o,!0),c(r,!0),p(i),m(i,o),r.not("."+n.bcClass).superfish("hide",!0),o.onInit.call(this)})}});e.fn.superfish=function(t,i){return y[t]?y[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?e.error("Method "+t+" does not exist on jQuery.fn.superfish"):y.init.apply(this,arguments)},e.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:e.noop,onBeforeShow:e.noop,onShow:e.noop,onBeforeHide:e.noop,onHide:e.noop,onIdle:e.noop,onDestroy:e.noop,onHandleTouch:e.noop}}(jQuery,window);
|