N3RDN/JN/dr_py/static/js/eruda.js

24 lines
457 KiB
JavaScript
Raw Normal View History

2023-10-06 09:13:20 +08:00
/*! eruda v2.3.3 https://eruda.liriliri.io/ */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.eruda=e():t.eruda=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/assets/",n(n.s=31)}([function(t,e,n){"use strict";(function(t,r,i){n.d(e,"bb",(function(){return j})),n.d(e,"Y",(function(){return A})),n.d(e,"U",(function(){return S})),n.d(e,"ab",(function(){return P})),n.d(e,"ib",(function(){return N})),n.d(e,"Z",(function(){return I})),n.d(e,"zb",(function(){return W})),n.d(e,"t",(function(){return X})),n.d(e,"v",(function(){return J})),n.d(e,"w",(function(){return Z})),n.d(e,"x",(function(){return et})),n.d(e,"y",(function(){return nt})),n.d(e,"A",(function(){return rt})),n.d(e,"C",(function(){return it})),n.d(e,"Eb",(function(){return at})),n.d(e,"E",(function(){return ot})),n.d(e,"G",(function(){return ct})),n.d(e,"qb",(function(){return ht})),n.d(e,"N",(function(){return dt})),n.d(e,"T",(function(){return mt})),n.d(e,"u",(function(){return yt})),n.d(e,"X",(function(){return $t})),n.d(e,"m",(function(){return Ot})),n.d(e,"L",(function(){return Et})),n.d(e,"H",(function(){return jt})),n.d(e,"tb",(function(){return St})),n.d(e,"I",(function(){return Tt})),n.d(e,"K",(function(){return Ct})),n.d(e,"M",(function(){return Pt})),n.d(e,"O",(function(){return Dt})),n.d(e,"P",(function(){return Mt})),n.d(e,"Q",(function(){return zt})),n.d(e,"R",(function(){return Ht})),n.d(e,"S",(function(){return Ut})),n.d(e,"V",(function(){return Kt})),n.d(e,"W",(function(){return Gt})),n.d(e,"db",(function(){return Vt})),n.d(e,"eb",(function(){return Xt})),n.d(e,"o",(function(){return Jt})),n.d(e,"rb",(function(){return ne})),n.d(e,"yb",(function(){return re})),n.d(e,"gb",(function(){return ie})),n.d(e,"xb",(function(){return ae})),n.d(e,"s",(function(){return oe})),n.d(e,"hb",(function(){return se})),n.d(e,"jb",(function(){return ue})),n.d(e,"lb",(function(){return le})),n.d(e,"mb",(function(){return ce})),n.d(e,"B",(function(){return pe})),n.d(e,"Db",(function(){return de})),n.d(e,"r",(function(){return ge})),n.d(e,"F",(function(){return me})),n.d(e,"z",(function(){return be})),n.d(e,"j",(function(){return ye})),n.d(e,"n",(function(){return we})),n.d(e,"fb",(function(){return xe})),n.d(e,"p",(function(){return ke})),n.d(e,"wb",(function(){return Oe})),n.d(e,"b",(function(){return Ee})),n.d(e,"f",(function(){return Ae})),n.d(e,"g",(function(){return ze})),n.d(e,"l",(function(){return He})),n.d(e,"c",(function(){return Ge})),n.d(e,"e",(function(){return qe})),n.d(e,"J",(function(){return Xe})),n.d(e,"kb",(function(){return Qe})),n.d(e,"k",(function(){return Ze})),n.d(e,"a",(function(){return nn})),n.d(e,"nb",(function(){return rn})),n.d(e,"ob",(function(){return an})),n.d(e,"pb",(function(){return on})),n.d(e,"Ab",(function(){return un})),n.d(e,"cb",(function(){return cn})),n.d(e,"h",(function(){return hn})),n.d(e,"D",(function(){return pn})),n.d(e,"i",(function(){return fn})),n.d(e,"sb",(function(){return dn})),n.d(e,"d",(function(){return mn})),n.d(e,"ub",(function(){return bn})),n.d(e,"vb",(function(){return yn})),n.d(e,"Bb",(function(){return wn})),n.d(e,"Cb",(function(){return xn})),n.d(e,"Fb",(fu
/*!
* Draggabilly v2.2.0
* Make that shiz draggable
* https://draggabilly.desandro.com
* MIT license
*/!function(a,o){r=[n(32),n(33)],void 0===(i=function(t,e){return function(t,e,n){"use strict";function r(t,e){for(var n in e)t[n]=e[n];return t}var i=t.jQuery;function a(t,e){this.element="string"==typeof t?document.querySelector(t):t,i&&(this.$element=i(this.element)),this.options=r({},this.constructor.defaults),this.option(e),this._create()}var o=a.prototype=Object.create(n.prototype);a.defaults={},o.option=function(t){r(this.options,t)};var s={relative:!0,absolute:!0,fixed:!0};function u(t,e,n){return n=n||"round",e?Math[n](t/e)*e:t}o._create=function(){this.position={},this._getPosition(),this.startPoint={x:0,y:0},this.dragPoint={x:0,y:0},this.startPosition=r({},this.position);var t=getComputedStyle(this.element);s[t.position]||(this.element.style.position="relative"),this.on("pointerDown",this.onPointerDown),this.on("pointerMove",this.onPointerMove),this.on("pointerUp",this.onPointerUp),this.enable(),this.setHandles()},o.setHandles=function(){this.handles=this.options.handle?this.element.querySelectorAll(this.options.handle):[this.element],this.bindHandles()},o.dispatchEvent=function(t,e,n){var r=[e].concat(n);this.emitEvent(t,r),this.dispatchJQueryEvent(t,e,n)},o.dispatchJQueryEvent=function(e,n,r){var i=t.jQuery;if(i&&this.$element){var a=i.Event(n);a.type=e,this.$element.trigger(a,r)}},o._getPosition=function(){var t=getComputedStyle(this.element),e=this._getPositionCoord(t.left,"width"),n=this._getPositionCoord(t.top,"height");this.position.x=isNaN(e)?0:e,this.position.y=isNaN(n)?0:n,this._addTransformPosition(t)},o._getPositionCoord=function(t,n){if(-1!=t.indexOf("%")){var r=e(this.element.parentNode);return r?parseFloat(t)/100*r[n]:0}return parseInt(t,10)},o._addTransformPosition=function(t){var e=t.transform;if(0===e.indexOf("matrix")){var n=e.split(","),r=0===e.indexOf("matrix3d")?12:4,i=parseInt(n[r],10),a=parseInt(n[r+1],10);this.position.x+=i,this.position.y+=a}},o.onPointerDown=function(t,e){this.element.classList.add("is-pointer-down"),this.dispatchJQueryEvent("pointerDown",t,[e])},o.dragStart=function(t,e){this.isEnabled&&(this._getPosition(),this.measureContainment(),this.startPosition.x=this.position.x,this.startPosition.y=this.position.y,this.setLeftTop(),this.dragPoint.x=0,this.dragPoint.y=0,this.element.classList.add("is-dragging"),this.dispatchEvent("dragStart",t,[e]),this.animate())},o.measureContainment=function(){var t=this.getContainer();if(t){var n=e(this.element),r=e(t),i=this.element.getBoundingClientRect(),a=t.getBoundingClientRect(),o=r.borderLeftWidth+r.borderRightWidth,s=r.borderTopWidth+r.borderBottomWidth,u=this.relativeStartPosition={x:i.left-(a.left+r.borderLeftWidth),y:i.top-(a.top+r.borderTopWidth)};this.containSize={width:r.width-o-u.x-n.width,height:r.height-s-u.y-n.height}}},o.getContainer=function(){var t=this.options.containment;if(t)return t instanceof HTMLElement?t:"string"==typeof t?document.querySelector(t):this.element.parentNode},o.onPointerMove=function(t,e,n){this.dispatchJQueryEvent("pointerMove",t,[e,n])},o.dragMove=function(t,e,n){if(this.isEnabled){var r=n.x,i=n.y,a=this.options.grid,o=a&&a[0],s=a&&a[1];r=u(r,o),i=u(i,s),r=this.containDrag("x",r,o),i=this.containDrag("y",i,s),r="y"==this.options.axis?0:r,i="x"==this.options.axis?0:i,this.position.x=this.startPosition.x+r,this.position.y=this.startPosition.y+i,this.dragPoint.x=r,this.dragPoint.y=i,this.dispatchEvent("dragMove",t,[e,n])}},o.containDrag=function(t,e,n){if(!this.options.containment)return e;var r="x"==t?"width":"height",i=u(-this.relativeStartPosition[t],n,"ceil"),a=this.containSize[r];return a=u(a,n,"floor"),Math.max(i,Math.min(a,e))},o.onPointerUp=function(t,e){this.element.classList.remove("is-pointer-down"),this.dispatchJQueryEvent("pointerUp",t,[e])},o.dragEnd=function(t,e){this.isEnabled&&(this.element.style.transform="",this.setLeftTop(),this.element.classList.remove("is-dragging"),this.dispatchEvent("dragEnd",t,[e]))},o.animate=function(){if(this.isDragging){this.positionDrag();var t=this;requestAnimationFrame((function(){t.animate()}))}},o.setLeftTop=function(){this.element.style.left=thi
/*!
* getSize v2.0.3
* measure size of elements
* MIT license
*/window,void 0===(i="function"==typeof(r=function(){"use strict";function t(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}var e="undefined"==typeof console?function(){}:function(t){console.error(t)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=n.length;function i(t){var n=getComputedStyle(t);return n||e("Style returned "+n+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),n}var a,o=!1;function s(e){if(function(){if(!o){o=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(e);var r=i(e);a=200==Math.round(t(r.width)),s.isBoxSizeOuter=a,n.removeChild(e)}}(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var u=i(e);if("none"==u.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<r;e++)t[n[e]]=0;return t}();var l={};l.width=e.offsetWidth,l.height=e.offsetHeight;for(var c=l.isBorderBox="border-box"==u.boxSizing,_=0;_<r;_++){var h=n[_],p=u[h],f=parseFloat(p);l[h]=isNaN(f)?0:f}var d=l.paddingLeft+l.paddingRight,v=l.paddingTop+l.paddingBottom,g=l.marginLeft+l.marginRight,m=l.marginTop+l.marginBottom,b=l.borderLeftWidth+l.borderRightWidth,y=l.borderTopWidth+l.borderBottomWidth,w=c&&a,x=t(u.width);!1!==x&&(l.width=x+(w?0:d+b));var k=t(u.height);return!1!==k&&(l.height=k+(w?0:v+y)),l.innerWidth=l.width-(d+b),l.innerHeight=l.height-(v+y),l.outerWidth=l.width+g,l.outerHeight=l.height+m,l}}return s})?r.call(e,n,e,t):r)||(t.exports=i)},function(t,e,n){var r,i;
/*!
* Unidragger v2.3.1
* Draggable base class
* MIT license
*/!function(a,o){r=[n(34)],void 0===(i=function(t){return function(t,e){"use strict";function n(){}var r=n.prototype=Object.create(e.prototype);r.bindHandles=function(){this._bindHandles(!0)},r.unbindHandles=function(){this._bindHandles(!1)},r._bindHandles=function(e){for(var n=(e=void 0===e||e)?"addEventListener":"removeEventListener",r=e?this._touchActionValue:"",i=0;i<this.handles.length;i++){var a=this.handles[i];this._bindStartEvent(a,e),a[n]("click",this),t.PointerEvent&&(a.style.touchAction=r)}},r._touchActionValue="none",r.pointerDown=function(t,e){this.okayPointerDown(t)&&(this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))};var i={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},a={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return r.okayPointerDown=function(t){var e=i[t.target.nodeName],n=a[t.target.type],r=!e||n;return r||this._pointerReset(),r},r.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},r.pointerMove=function(t,e){var n=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,n]),this._dragMove(t,e,n)},r._dragPointerMove=function(t,e){var n={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(n)&&this._dragStart(t,e),n},r.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},r.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},r._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},r._dragStart=function(t,e){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(t,e)},r.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},r._dragMove=function(t,e,n){this.isDragging&&this.dragMove(t,e,n)},r.dragMove=function(t,e,n){t.preventDefault(),this.emitEvent("dragMove",[t,e,n])},r._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},r.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},r.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},r._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},r.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},n.getPointerPoint=e.getPointerPoint,n}(a,t)}.apply(e,r))||(t.exports=i)}(window)},function(t,e,n){var r,i;
/*!
* Unipointer v2.3.0
* base class for doing one thing with pointer event
* MIT license
*/!function(a,o){r=[n(35)],void 0===(i=function(t){return function(t,e){"use strict";function n(){}var r=n.prototype=Object.create(e.prototype);r.bindStartEvent=function(t){this._bindStartEvent(t,!0)},r.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},r._bindStartEvent=function(e,n){var r=(n=void 0===n||n)?"addEventListener":"removeEventListener",i="mousedown";t.PointerEvent?i="pointerdown":"ontouchstart"in t&&(i="touchstart"),e[r](i,this)},r.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},r.getTouch=function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.identifier==this.pointerIdentifier)return n}},r.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},r.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},r.onpointerdown=function(t){this._pointerDown(t,t)},r._pointerDown=function(t,e){t.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},r.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])};var i={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return r._bindPostStartEvents=function(e){if(e){var n=i[e.type];n.forEach((function(e){t.addEventListener(e,this)}),this),this._boundPointerEvents=n}},r._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach((function(e){t.removeEventListener(e,this)}),this),delete this._boundPointerEvents)},r.onmousemove=function(t){this._pointerMove(t,t)},r.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},r.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},r._pointerMove=function(t,e){this.pointerMove(t,e)},r.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},r.onmouseup=function(t){this._pointerUp(t,t)},r.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},r.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},r._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},r.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])},r._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},r._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},r.pointerDone=function(){},r.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},r.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},r._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},r.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},n.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},n}(a,t)}.apply(e,r))||(t.exports=i)}(window)},function(t,e,n){var r,i;"undefined"!=typeof window&&window,void 0===(i="function"==typeof(r=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},r=n[t]=n[t]||[];return-1==r.indexOf(e)&&r.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var r=n.indexOf(e);return-1!=r&&n.splice(r,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var r=this._onceEvents&&this._onceEvents[t],i=0;i<n.length;i++){var a=n[i];r&&r[a]&&(this.off(t,a),delete r[a]),a.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?r.call(e,n,e,t):r)||(t.exports=i)},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function a(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new a(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new a(i.call(setInterval,r,a
//# sourceMappingURL=eruda.js.map