claude-web/node_modules/vue-grid-layout-v3/dist/vue-grid-layout-v3.umd.js

14 lines
108 KiB
JavaScript
Raw Permalink Normal View History

2026-02-23 02:23:38 +00:00
/**
* vue-grid-layout-v3 3.1.2
* coffeebi <merfais.bwq@163.com>
* https://github.com/merfais/vue-grid-layout-v3
*/
(function(nt,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],b):(nt=typeof globalThis<"u"?globalThis:nt||self,b(nt.VueGridLayout={},nt.Vue))})(this,function(nt,b){"use strict";var ke=document.createElement("style");ke.textContent=`.vue-grid-item[data-v-99aff433]{transition:all .2s ease;transition-property:left,top,right}.vue-grid-item.no-touch[data-v-99aff433]{touch-action:none}.vue-grid-item.cssTransforms[data-v-99aff433]{transition-property:transform;left:0;right:auto}.vue-grid-item.cssTransforms.render-rtl[data-v-99aff433]{left:auto;right:0}.vue-grid-item.resizing[data-v-99aff433]{opacity:.6;z-index:3}.vue-grid-item.vue-draggable-dragging[data-v-99aff433]{transition:none;z-index:3}.vue-grid-item.vue-grid-placeholder[data-v-99aff433]{background:red;opacity:.2;transition-duration:.1s;z-index:2;-webkit-user-select:none;user-select:none}.vue-grid-item>.vue-resizable-handle[data-v-99aff433]{position:absolute;width:20px;height:20px;bottom:0;right:0;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg08IS0tIEdlbmVyYXRvcjogQWRvYmUgRmlyZXdvcmtzIENTNiwgRXhwb3J0IFNWRyBFeHRlbnNpb24gYnkgQWFyb24gQmVhbGwgKGh0dHA6Ly9maXJld29ya3MuYWJlYWxsLmNvbSkgLiBWZXJzaW9uOiAwLjYuMSAgLS0+DTwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DTxzdmcgaWQ9IlVudGl0bGVkLVBhZ2UlMjAxIiB2aWV3Qm94PSIwIDAgNiA2IiBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHZlcnNpb249IjEuMSINCXhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbDpzcGFjZT0icHJlc2VydmUiDQl4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjZweCIgaGVpZ2h0PSI2cHgiDT4NCTxnIG9wYWNpdHk9IjAuMzAyIj4NCQk8cGF0aCBkPSJNIDYgNiBMIDAgNiBMIDAgNC4yIEwgNCA0LjIgTCA0LjIgNC4yIEwgNC4yIDAgTCA2IDAgTCA2IDYgTCA2IDYgWiIgZmlsbD0iIzAwMDAwMCIvPg0JPC9nPg08L3N2Zz4=);background-position:bottom right;padding:0 3px 3px 0;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;cursor:se-resize}.vue-grid-item>.vue-rtl-resizable-handle[data-v-99aff433]{bottom:0;left:0;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAuMDAwMDAwMDAwMDAwMDAyIiBoZWlnaHQ9IjEwLjAwMDAwMDAwMDAwMDAwMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KIDwhLS0gQ3JlYXRlZCB3aXRoIE1ldGhvZCBEcmF3IC0gaHR0cDovL2dpdGh1Yi5jb20vZHVvcGl4ZWwvTWV0aG9kLURyYXcvIC0tPgogPGc+CiAgPHRpdGxlPmJhY2tncm91bmQ8L3RpdGxlPgogIDxyZWN0IGZpbGw9Im5vbmUiIGlkPSJjYW52YXNfYmFja2dyb3VuZCIgaGVpZ2h0PSIxMiIgd2lkdGg9IjEyIiB5PSItMSIgeD0iLTEiLz4KICA8ZyBkaXNwbGF5PSJub25lIiBvdmVyZmxvdz0idmlzaWJsZ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-repeat:no-repeat;background-origin:content-box;cursor:sw-resize;right:auto}.vue-grid-item.disable-userselect[data-v-99aff433]{-webkit-user-select:none;user-select:none}.vue-grid-layout[data-v-a10aee95]{position:relative;transition:height .2s ease}
/*$vite$:1*/`,document.head.appendChild(ke);const G={init:ti,document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function Tt(){}function ti(e){const t=e;G.document=t.document,G.DocumentFragment=t.DocumentFragment||Tt,G.SVGElement=t.SVGElement||Tt,G.SVGSVGElement=t.SVGSVGElement||Tt,G.SVGElementInstance=t.SVGElementInstance||Tt,G.Element=t.Element||Tt,G.HTMLElement=t.HTMLElement||G.Element,G.Event=t.Event,G.Touch=t.Touch||Tt,G.PointerEvent=t.PointerEvent||t.MSPointerEvent}var _e=e=>!!(e&&e.Window)&&e instanceof e.Window;let Re,dt;function Oe(e){Re=e;const t=e.document.createTextNode("");t.ownerDocument!==e.document&&typeof e.wrap=="function"&&e.wrap(t)===t&&(e=e.wrap(e)),dt=e}typeof window<"u"&&window&&Oe(window);function yt(e){return _e(e)?e:(e.ownerDocument||e).defaultView||dt.window}const ei=e=>e===dt||_e(e),ni=e=>Gt(e)&&e.nodeType===11,Gt=e=>!!e&&typeof e=="object",He=e=>typeof e=="function";var p={window:ei,docFrag:ni,object:Gt,func:He,number:e=>typeof e=="number",bool:e=>typeof e=="boolean",string:e=>typeof e=="string",element:e=>{if(!e||typeof e!="object")return!1;const t=yt(e)||dt;return/object|function/.test(typeof Element)?e instanceof Element||e instanceof t.Element:e.nodeType===1&&typeof e.nodeName=="string"},plainObject:e=>Gt(e)&&!!e.constructor&&/function Object\b/.test(e.constructor.toString()),array:e=>Gt(e)&&typeof e.length<"u"&&He(e.splice)};const Z={init:ii,supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null};function ii(e){const t=G.Element,n=e.navigator||{};Z.supportsTouch="ontouchstart"in e||p.func(e.DocumentTouch)&&G.document instanceof e.DocumentTouch,Z.supportsPointerEvent=n.pointerEnabled!==!1&&!!G.PointerEvent,Z.isIOS=/iP(hone|od|ad)/.test(n.platform),Z.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),Z.isIe9=/MSIE 9/.test(n.userAgent),Z.isOperaMobile=n.appName==="Opera"&&Z.supportsTouch&&/Presto/.test(n.userAgent),Z.prefixedMatchesSelector="matches"in t.prototype?"matches":"webkitMatchesSelector"in t.prototype?"webkitMatchesSelector":"mozMatchesSelector"in t.prototype?"mozMatchesSelector":"oMatchesSelector"in t.prototype?"oMatchesSelector":"msMatchesSelector",Z.pEventTypes=Z.supportsPointerEvent?G.PointerEvent===e.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,Z.wheelEvent=G.document&&"onmousewheel"in G.document?"mousewheel":"wheel"}const We=(e,t)=>{for(const n of t)e.push(n);return e},Le=e=>We([],e),Zt=(e,t)=>{for(let n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1},qt=(e,t)=>e[Zt(e,t)];function Ct(e){const t={};for(const n in e){const i=e[n];p.plainObject(i)?t[n]=Ct(i):p.array(i)?t[n]=Le(i):t[n]=i}return t}function I(e,t){for(const i in t)e[i]=t[i];return e}let Ne=0,ot,bt;function ri(e){if(ot=e.requestAnimationFrame,bt=e.cancelAnimationFrame,!ot){const t=["ms","moz","webkit","o"];for(const n of t)ot=e[`${n}RequestAnimationFrame`],bt=e[`${n}CancelAnimationFrame`]||e[`${n}CancelRequestAnimationFrame`]}ot=ot&&ot.bind(e),bt=bt&&bt.bind(e),ot||(ot=t=>{const n=Date.now(),i=Math.max(0,16-(n-Ne)),o=e.setTimeout(()=>{t(n+i)},i);return Ne=n+i,o},bt=t=>clearTimeout(t))}var Pt={request:e=>ot(e),cancel:e=>bt(e),init:ri};function vt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:o=>!0,i=arguments.length>3?arguments[3]:void 0;if(i=i||{},p.string(e)&&e.search(" ")!==-1&&(e=je(e)),p.array(e))return e.forEach(o=>vt(o,t,n,i)),i;if(p.object(e)&&(t=e,e=""),p.func(t)&&n(e))i[e]=i[e]||[],i[e].push(t);else if(p.array(t))for(const o of t)vt(e,o,n,i);else if(p.object(t))for(const o in t){const s=je(o).map(a=>`${e}${a}`);vt(s,t[o],n,i)}return i}function je(e){return e.trim().split(/ +/)}function Be(e,t){for(const n of t){if(e.immediatePropagationStopped
`},{name:Bt.boxSizing,perform(e){const{element:t}=e;return e.prepared.name==="resize"&&t instanceof G.HTMLElement&&!Sn(t,"boxSizing",/border-box/)},text:'Consider adding CSS "box-sizing: border-box" to this resizable element',getInfo(e){let{element:t}=e;return[t,De.boxSizing]}},{name:Bt.noListeners,perform(e){var t;const n=e.prepared.name;return!(((t=e.interactable)==null?void 0:t.events.types[`${n}move`])||[]).length},getInfo(e){return[e.prepared.name,e.interactable]},text:"There are no listeners set for this action"}];function Sn(e,t,n){const i=e.style[t]||dt.getComputedStyle(e)[t];return n.test((i||"").toString())}function Jr(e,t,n){let i=e;for(;p.element(i);){if(Sn(i,t,n))return!0;i=ft(i)}return!1}const Kr={id:"dev-tools",install:Vr,listeners:{"interactions:action-start":(e,t)=>{let{interaction:n}=e;for(const i of wn){const o=n.interactable&&n.interactable.options;!(o&&o.devTools&&o.devTools.ignore[i.name])&&i.perform(n)&&t.logger.warn(ze+i.text,...i.getInfo(n))}}},checks:wn,CheckName:Bt,links:De,prefix:ze};st.use(Kr);function Qr(e){let t=0,n;for(let i=0,o=e.length;i<o;i++)n=e[i].y+e[i].h,n>t&&(t=n);return t}function It(e){return(e||[]).map(t=>({...t}))}function In(e,t){return!(e===t||e.x+e.w<=t.x||e.x>=t.x+t.w||e.y+e.h<=t.y||e.y>=t.y+t.h)}function $t(e,t,n){const i=Dn(e),o=Tn(e),s=Array(e.length);for(let a=0,l=o.length;a<l;a++){let c=o[a];c.static||(c=to(i,c,t,n),i.push(c)),s[e.indexOf(c)]=c,delete c.moved}return s}function to(e,t,n,i){if(n)for(;t.y>0&&!Ft(e,t);)t.y--;else if(i){const s=i[t.i].y;for(;t.y>s&&!Ft(e,t);)t.y--}let o;for(;o=Ft(e,t);)t.y=o.y+o.h;return t}function eo(e,t){const n=Dn(e);for(let i=0,o=e.length;i<o;i++){const s=e[i];if(s.x+s.w>t.cols&&(s.x=t.cols-s.w),s.x<0&&(s.x=0,s.w=t.cols),!s.static)n.push(s);else for(;Ft(n,s);)s.y++}return e}function En(e,t){for(let n=0,i=e.length;n<i;n++)if(e[n].i===t)return e[n]}function Ft(e,t){for(let n=0,i=e.length;n<i;n++)if(In(e[n],t))return e[n]}function zn(e,t){return e.filter(n=>In(n,t))}function Dn(e){return e.filter(t=>t.static)}function Me(e,t,n,i,o,s){if(t.static)return e;const a=t.x,l=t.y,c=i&&t.y>i;typeof n=="number"&&(t.x=n),typeof i=="number"&&(t.y=i),t.moved=!0;let r=Tn(e);c&&(r=r.reverse());const d=zn(r,t);if(s&&d.length)return t.x=a,t.y=l,t.moved=!1,e;for(let f=0,m=d.length;f<m;f++){const g=d[f];g.moved||t.y>g.y&&t.y-g.y>g.h/4||(g.static?e=Mn(e,g,t,o):e=Mn(e,t,g,o))}return e}function Mn(e,t,n,i){if(i){const s={x:n.x,y:n.y,w:n.w,h:n.h,i:"-1"};if(s.y=Math.max(t.y-n.h,0),!Ft(e,s))return Me(e,n,void 0,s.y,!1)}return Me(e,n,void 0,n.y+1,!1)}function no(e,t,n,i){const o=`translate3d(${t}px,${e}px, 0)`;return{transform:o,WebkitTransform:o,MozTransform:o,msTransform:o,OTransform:o,width:`${n}px`,height:`${i}px`,position:"absolute"}}function io(e,t,n,i){const o=`translate3d(${t*-1}px,${e}px, 0)`;return{transform:o,WebkitTransform:o,MozTransform:o,msTransform:o,OTransform:o,width:`${n}px`,height:`${i}px`,position:"absolute"}}function ro(e,t,n,i){return{top:`${e}px`,left:`${t}px`,width:`${n}px`,height:`${i}px`,position:"absolute"}}function oo(e,t,n,i){return{top:`${e}px`,right:`${t}px`,width:`${n}px`,height:`${i}px`,position:"absolute"}}function Tn(e){return[].concat(e).sort((t,n)=>t.y===n.y&&t.x===n.x?0:t.y>n.y||t.y===n.y&&t.x>n.x?1:-1)}function so(e,t){t=t||"Layout";const n=["x","y","w","h"],i=[];if(!Array.isArray(e))throw new Error(`${t} must be an array!`);for(let o=0,s=e.length;o<s;o++){const a=e[o];for(let l=0;l<n.length;l++)if(typeof a[n[l]]!="number")throw new Error(`VueGridLayout: ${t}[${o}].${n[l]} must be a number!`);if(a.i===void 0||a.i===null)throw new Error(`VueGridLayout: ${t}[${o}].i cannot be null!`);if(typeof a.i!="number"&&typeof a.i!="string")throw new Error(`VueGridLayout: ${t}[${o}].i must be a string or number!`);if(i.indexOf(a.i)>=0)throw new Error(`VueGridLayout: ${t}[${o}].i must be unique!`);if(i.push(a.i),a.static!==void 0&&typeof a.static!="boolean")throw new Error(`VueGridLayout: ${t}[${o}].static must be a boolean!`)}}function Cn(e){return ao(e)}function ao(e){const t=e.target.offsetParent||document.body,n=e.offsetParent===docume
`;L+="."+S+" > div::-webkit-scrollbar { "+r(["display: none"])+` }
`,L+="."+F+" { "+r(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+M,"animation-name: "+M])+` }
`,L+="@-webkit-keyframes "+M+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
`,L+="@keyframes "+M+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",v(L)}}function m(y){y.className+=" "+l+"_animation_active"}function g(y,u,S){if(y.addEventListener)y.addEventListener(u,S);else if(y.attachEvent)y.attachEvent("on"+u,S);else return t.error("[scroll] Don't know how to add event listeners.")}function x(y,u,S){if(y.removeEventListener)y.removeEventListener(u,S);else if(y.detachEvent)y.detachEvent("on"+u,S);else return t.error("[scroll] Don't know how to remove event listeners.")}function P(y){return i(y).container.childNodes[0].childNodes[0].childNodes[0]}function O(y){return i(y).container.childNodes[0].childNodes[0].childNodes[1]}function H(y,u){var S=i(y).listeners;if(!S.push)throw new Error("Cannot add listener to an element that is not detectable.");i(y).listeners.push(u)}function E(y,u,S){S||(S=u,u=y,y=null),y=y||{};function v(){if(y.debug){var w=Array.prototype.slice.call(arguments);if(w.unshift(o.get(u),"Scroll: "),t.log.apply)t.log.apply(null,w);else for(var W=0;W<w.length;W++)t.log(w[W])}}function M(w){function W(j){var J=j.getRootNode&&j.getRootNode().contains(j);return j===j.ownerDocument.body||j.ownerDocument.body.contains(j)||J}return!W(w)||window.getComputedStyle(w)===null}function F(w){var W=i(w).container.childNodes[0],j=window.getComputedStyle(W);return!j.width||j.width.indexOf("px")===-1}function L(){var w=window.getComputedStyle(u),W={};return W.position=w.position,W.width=u.offsetWidth,W.height=u.offsetHeight,W.top=w.top,W.right=w.right,W.bottom=w.bottom,W.left=w.left,W.widthCSS=w.width,W.heightCSS=w.height,W}function k(){var w=L();i(u).startSize={width:w.width,height:w.height},v("Element start size",i(u).startSize)}function T(){i(u).listeners=[]}function _(){if(v("storeStyle invoked."),!i(u)){v("Aborting because element has been uninstalled");return}var w=L();i(u).style=w}function N(w,W,j){i(w).lastWidth=W,i(w).lastHeight=j}function X(w){return P(w).childNodes[0]}function V(){return 2*s.width+1}function At(){return 2*s.height+1}function Et(w){return w+10+V()}function zt(w){return w+10+At()}function Q(w){return w*2+V()}function Pe(w){return w*2+At()}function h(w,W,j){var J=P(w),et=O(w),it=Et(W),rt=zt(j),K=Q(W),$=Pe(j);J.scrollLeft=it,J.scrollTop=rt,et.scrollLeft=K,et.scrollTop=$}function R(){var w=i(u).container;if(!w){w=document.createElement("div"),w.className=l,w.style.cssText=r(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),i(u).container=w,m(w),u.appendChild(w);var W=function(){i(u).onRendered&&i(u).onRendered()};g(w,"animationstart",W),i(u).onAnimationStart=W}return w}function B(){function w(){var U=i(u).style;if(U.position==="static"){u.style.setProperty("position","relative",y.important?"important":"");var ut=function(_t,Mt,Fo,ae){function Yo(Xo){return Xo.replace(/[^-\d\.]/g,"")}var Ae=Fo[ae];Ae!=="auto"&&Yo(Ae)!=="0"&&(_t.warn("An element that is positioned static has style."+ae+"="+Ae+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+ae+" will be set to 0. Element: ",Mt),Mt.style[ae]=0)};ut(t,u,U,"top"),ut(t,u,U,"right"),ut(t,u,U,"bottom"),ut(t,u,U,"left")}}function W(U,ut,_t,Mt){return U=U?U+"px":"0",ut=ut?ut+"px":"0",_t=_t?_t+"px":"0",Mt=Mt?Mt+"px":"0",["left: "+U,"top: "+ut,"right: "+Mt,"bottom: "+_t]}if(v("Injecting elements"),!i(u)){v("Aborting because element has been uninstalled");return}w();var j=i(u).container;j||(j=R());var J=s.width,et=s.height,it=r(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),rt=r(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(W(-(1+J),-(1+et),-et,-J))),K=r(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),$=r(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),tt=r(["position: absolute","left: 0","top: 0