Module 5463

2,533 characters · in no known chunk
Dependencies
Lazily required by (0)none
Requires (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";function i(e){return Math.max(Math.min(e,1),0)}function r(e,t){let{top:n,bottom:r,left:s,right:a}=e;return{top:null!=n?Math.floor(i(n)*t.height):void 0,left:null!=s?Math.floor(i(s)*t.width):void 0,bottom:null!=r?Math.floor(i(r)*t.height):void 0,right:null!=a?Math.floor(i(a)*t.width):void 0}}function s(e,t){let{width:n,height:r,fixed:s=!1}=e;return s?{width:n,height:r,fixed:s}:{width:"auto"===n?n:Math.floor(i(n)*t.width),height:"auto"===r?r:Math.floor(i(r)*t.height),fixed:s}}function a(e,t){let{top:n,bottom:r,left:s,right:a}=e;return{top:null!=n?i(n/t.height):void 0,left:null!=s?i(s/t.width):void 0,bottom:null!=r?i(r/t.height):void 0,right:null!=a?i(a/t.width):void 0}}function o(e,t){let{width:n,height:i,fixed:r}=e;return r?{width:n,height:i,fixed:r}:{width:"auto"===n?n:n/t.width,height:"auto"===i?i:i/t.height,fixed:r}}function l(e,t,n,i,r){let{top:s,bottom:a,left:o,right:l}=e;if(null==s&&null==a?(s=0,a=n-r):null==s&&null!=a?s=n-(a+r):null!=s&&(a=n-(s+r)),null==o&&null==l?(o=0,l=t-i):null==o&&null!=l?o=t-(l+i):null==l&&null!=o&&(l=t-(o+i)),null==s||null==a||null==o||null==l)throw Error("Logically this can never happen based on our if/else statements");return{top:s,left:o,bottom:a,right:l}}function u(e){let{top:t,left:n,bottom:i,right:r}=e;return 0===t||t<=i?i=null:t=null,0===n||n<=r?r=null:n=null,{top:t,left:n,bottom:i,right:r}}function c(e){let{top:t,left:n,bottom:i,right:r}=e;return i<0&&(t+=i,i=0),t<0&&(i+=t,t=0),r<0&&(n+=r,r=0),n<0&&(r+=n,n=0),{top:t,left:n,bottom:i,right:r}}function d(e,t,n){e=r(e,n);let{width:i,height:a}=s(t,n);return i="string"==typeof i?0:i,a="string"==typeof a?0:a,l(e,n.width,n.height,i,a)}function _(e,t,n){let{top:i,left:r}=e,{x:s,y:d}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{x:0,y:0},{width:_,height:f}=t;return[a(u(c(l({top:i+d,left:r+s,bottom:void 0,right:void 0},n.width,n.height,"number"==typeof _?_:0,"number"==typeof f?f:0))),n),o(t,n)]}function f(e,t,n){let{top:i,right:r}=e,{x:s,y:d}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{x:0,y:0},{width:_,height:f}=t;return[a(u(c(l({top:i+d,left:void 0,bottom:void 0,right:r-s},n.width,n.height,"number"==typeof _?_:0,"number"==typeof f?f:0))),n),o(t,n)]}function h(e,t){let n={top:void 0,bottom:void 0,left:void 0,right:void 0};return null!=t.top&&(n.top=e.top),null!=t.bottom&&(n.bottom=e.bottom),null!=t.left&&(n.left=e.left),null!=t.right&&(n.right=e.right),n}n.d(t,{Ly:()=>l,M4:()=>_,NO:()=>a,NR:()=>d,Nv:()=>r,R9:()=>o,af:()=>h,fd:()=>s,fh:()=>c,h1:()=>u,n7:()=>f})}