mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2026-04-23 10:18:55 +00:00
2 lines
20 KiB
JavaScript
2 lines
20 KiB
JavaScript
System.register(["./_baseUniq-legacy-DynFWRuI.js"],function(e,t){var n,r,o,i,a,s,f,c,p,u,l,d,h,m,v,g,y,b,w,x,O,j,E,D,A,L,M,W,k,P,B,H,R,T,S,V;function q(e){return e?(e.nodeName||"").toLowerCase():null}function C(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function N(e){return e instanceof C(e).Element||e instanceof Element}function I(e){return e instanceof C(e).HTMLElement||e instanceof HTMLElement}function U(e){return"undefined"!=typeof ShadowRoot&&(e instanceof C(e).ShadowRoot||e instanceof ShadowRoot)}function z(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];I(o)&&q(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})}function F(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});I(r)&&q(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}}function _(e){return e.split("-")[0]}function X(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Y(){return!/^((?!chrome|android).)*safari/i.test(X())}function Q(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&I(e)&&(o=e.offsetWidth>0&&L(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&L(r.height)/e.offsetHeight||1);var a=(N(e)?C(e):window).visualViewport,s=!Y()&&n,f=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,p=r.width/o,u=r.height/i;return{width:p,height:u,top:c,right:f+p,bottom:c+u,left:f,x:f,y:c}}function G(e){var t=Q(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function J(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&U(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function K(e){return C(e).getComputedStyle(e)}function Z(e){return["table","td","th"].indexOf(q(e))>=0}function $(e){return((N(e)?e.ownerDocument:e.document)||window.document).documentElement}function ee(e){return"html"===q(e)?e:e.assignedSlot||e.parentNode||(U(e)?e.host:null)||$(e)}function te(e){return I(e)&&"fixed"!==K(e).position?e.offsetParent:null}function ne(e){for(var t=C(e),n=te(e);n&&Z(n)&&"static"===K(n).position;)n=te(n);return n&&("html"===q(n)||"body"===q(n)&&"static"===K(n).position)?t:n||function(e){var t=/firefox/i.test(X());if(/Trident/i.test(X())&&I(e)&&"fixed"===K(e).position)return null;var n=ee(e);for(U(n)&&(n=n.host);I(n)&&["html","body"].indexOf(q(n))<0;){var r=K(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function re(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function oe(e,t,n){return D(e,A(t,n))}function ie(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ae(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function se(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=_(n.placement),f=re(s),c=["left","right"].indexOf(s)>=0?"height":"width";if(i&&a){var p=M(o.padding,n),u=G(i),m="y"===f?"top":h,v="y"===f?l:d,g=n.rects.reference[c]+n.rects.reference[f]-a[f]-n.rects.popper[c],y=a[f]-n.rects.reference[f],b=ne(i),w=b?"y"===f?b.clientHeight||0:b.clientWidth||0:0,x=g/2-y/2,O=p[m],j=w-u[c]-p[v],E=w/2-u[c]/2+x,D=oe(O,E,j),A=f;n.modifiersData[r]=((t={})[A]=D,t.centerOffset=D-E,t)}}function fe(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&J(t.elements.popper,r)&&(t.elements.arrow=r)}function ce(e){return e.split("-")[1]}function pe(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,f=e.gpuAcceleration,c=e.adaptive,p=e.roundOffsets,u=e.isFixed,m=a.x,v=void 0===m?0:m,g=a.y,y=void 0===g?0:g,b="function"==typeof p?p({x:v,y:y}):{x:v,y:y};v=b.x,y=b.y;var w=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),O=h,j="top",E=window;if(c){var D=ne(n),A="clientHeight",M="clientWidth";D===C(n)&&"static"!==K(D=$(n)).position&&"absolute"===s&&(A="scrollHeight",M="scrollWidth"),("top"===o||("left"===o||"right"===o)&&"end"===i)&&(j=l,y-=(u&&D===E&&E.visualViewport?E.visualViewport.height:D[A])-r.height,y*=f?1:-1),"left"!==o&&("top"!==o&&"bottom"!==o||"end"!==i)||(O=d,v-=(u&&D===E&&E.visualViewport?E.visualViewport.width:D[M])-r.width,v*=f?1:-1)}var k,P=Object.assign({position:s},c&&W),B=!0===p?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:L(n*o)/o||0,y:L(r*o)/o||0}}({x:v,y:y},C(n)):{x:v,y:y};return v=B.x,y=B.y,f?Object.assign({},P,((k={})[j]=x?"0":"",k[O]=w?"0":"",k.transform=(E.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",k)):Object.assign({},P,((t={})[j]=x?y+"px":"",t[O]=w?v+"px":"",t.transform="",t))}function ue(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,f=void 0===s||s,c={placement:_(t.placement),variation:ce(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,pe(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,pe(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}function le(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,f=C(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,k)}),s&&f.addEventListener("resize",n.update,k),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,k)}),s&&f.removeEventListener("resize",n.update,k)}}function de(e){return e.replace(/left|right|bottom|top/g,function(e){return P[e]})}function he(e){return e.replace(/start|end/g,function(e){return B[e]})}function me(e){var t=C(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ve(e){return Q($(e)).left+me(e).scrollLeft}function ge(e){var t=K(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ye(e){return["html","body","#document"].indexOf(q(e))>=0?e.ownerDocument.body:I(e)&&ge(e)?e:ye(ee(e))}function be(e,t){var n;void 0===t&&(t=[]);var r=ye(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=C(r),a=o?[i].concat(i.visualViewport||[],ge(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(be(ee(a)))}function we(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xe(e,t,n){return"viewport"===t?we(function(e,t){var n=C(e),r=$(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,f=0;if(o){i=o.width,a=o.height;var c=Y();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,f=o.offsetTop)}return{width:i,height:a,x:s+ve(e),y:f}}(e,n)):N(t)?function(e,t){var n=Q(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):we(function(e){var t,n=$(e),r=me(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=D(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=D(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+ve(e),f=-r.scrollTop;return"rtl"===K(o||n).direction&&(s+=D(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:f}}($(e)))}function Oe(e,t,n,r){var o="clippingParents"===t?function(e){var t=be(ee(e)),n=["absolute","fixed"].indexOf(K(e).position)>=0&&I(e)?ne(e):e;return N(n)?t.filter(function(e){return N(e)&&J(e,n)&&"body"!==q(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(t,n){var o=xe(e,n,r);return t.top=D(o.top,t.top),t.right=A(o.right,t.right),t.bottom=A(o.bottom,t.bottom),t.left=D(o.left,t.left),t},xe(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function je(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?_(o):null,a=o?ce(o):null,s=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2;switch(i){case"top":t={x:s,y:n.y-r.height};break;case l:t={x:s,y:n.y+n.height};break;case d:t={x:n.x+n.width,y:f};break;case h:t={x:n.x-r.width,y:f};break;default:t={x:n.x,y:n.y}}var c=i?re(i):null;if(null!=c){var p="y"===c?"height":"width";switch(a){case v:t[c]=t[c]-(n[p]/2-r[p]/2);break;case"end":t[c]=t[c]+(n[p]/2-r[p]/2)}}return t}function Ee(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,f=void 0===s?g:s,c=n.rootBoundary,p=void 0===c?y:c,u=n.elementContext,l=void 0===u?b:u,d=n.altBoundary,h=void 0!==d&&d,v=n.padding,x=void 0===v?0:v,O=ie("number"!=typeof x?x:ae(x,m)),j="popper"===l?w:b,E=e.rects.popper,D=e.elements[h?j:l],A=Oe(N(D)?D:D.contextElement||$(e.elements.popper),f,p,a),L=Q(e.elements.reference),M=je({reference:L,element:E,strategy:"absolute",placement:o}),W=we(Object.assign({},E,M)),k="popper"===l?W:L,P={top:A.top-k.top+O.top,bottom:k.bottom-A.bottom+O.bottom,left:A.left-k.left+O.left,right:k.right-A.right+O.right},B=e.modifiersData.offset;if("popper"===l&&B){var H=B[o];Object.keys(P).forEach(function(e){var t=["right","bottom"].indexOf(e)>=0?1:-1,n=["top","bottom"].indexOf(e)>=0?"y":"x";P[e]+=H[n]*t})}return P}function De(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,c=void 0===f?O:f,p=ce(r),u=p?s?x:x.filter(function(e){return ce(e)===p}):m,l=u.filter(function(e){return c.indexOf(e)>=0});0===l.length&&(l=u);var d=l.reduce(function(t,n){return t[n]=Ee(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[_(n)],t},{});return Object.keys(d).sort(function(e,t){return d[e]-d[t]})}function Ae(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,f=n.fallbackPlacements,c=n.padding,p=n.boundary,u=n.rootBoundary,m=n.altBoundary,g=n.flipVariations,y=void 0===g||g,b=n.allowedAutoPlacements,w=t.options.placement,x=_(w)===w,O=f||(x||!y?[de(w)]:function(e){if("auto"===_(e))return[];var t=de(e);return[he(e),t,he(t)]}(w)),j=[w].concat(O).reduce(function(e,n){return e.concat("auto"===_(n)?De(t,{placement:n,boundary:p,rootBoundary:u,padding:c,flipVariations:y,allowedAutoPlacements:b}):n)},[]),E=t.rects.reference,D=t.rects.popper,A=new Map,L=!0,M=j[0],W=0;W<j.length;W++){var k=j[W],P=_(k),B=ce(k)===v,H=["top",l].indexOf(P)>=0,R=H?"width":"height",T=Ee(t,{placement:k,boundary:p,rootBoundary:u,altBoundary:m,padding:c}),S=H?B?d:h:B?l:"top";E[R]>D[R]&&(S=de(S));var V=de(S),q=[];if(i&&q.push(T[P]<=0),s&&q.push(T[S]<=0,T[V]<=0),q.every(function(e){return e})){M=k,L=!1;break}A.set(k,q)}if(L)for(var C=function(e){var t=j.find(function(t){var n=A.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return M=t,"break"},N=y?3:1;N>0&&"break"!==C(N);N--);t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}function Le(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Me(e){return["top",d,l,h].some(function(t){return e[t]>=0})}function We(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ee(t,{elementContext:"reference"}),s=Ee(t,{altBoundary:!0}),f=Le(a,r),c=Le(s,o,i),p=Me(f),u=Me(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}function ke(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=O.reduce(function(e,n){return e[n]=function(e,t,n){var r=_(e),o=["left","top"].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,["left","right"].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e},{}),s=a[t.placement],f=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}function Pe(e){var t=e.state,n=e.name;t.modifiersData[n]=je({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}function Be(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,f=n.boundary,c=n.rootBoundary,p=n.altBoundary,u=n.padding,m=n.tether,v=void 0===m||m,g=n.tetherOffset,y=void 0===g?0:g,b=Ee(t,{boundary:f,rootBoundary:c,padding:u,altBoundary:p}),w=_(t.placement),x=ce(t.placement),O=!x,j=re(w),E="x"===j?"y":"x",L=t.modifiersData.popperOffsets,M=t.rects.reference,W=t.rects.popper,k="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,P="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(L){if(i){var R,T="y"===j?"top":h,S="y"===j?l:d,V="y"===j?"height":"width",q=L[j],C=q+b[T],N=q-b[S],I=v?-W[V]/2:0,U="start"===x?M[V]:W[V],z="start"===x?-W[V]:-M[V],F=t.elements.arrow,X=v&&F?G(F):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Q=Y[T],J=Y[S],K=oe(0,M[V],X[V]),Z=O?M[V]/2-I-K-Q-P.mainAxis:U-K-Q-P.mainAxis,$=O?-M[V]/2+I+K+J+P.mainAxis:z+K+J+P.mainAxis,ee=t.elements.arrow&&ne(t.elements.arrow),te=ee?"y"===j?ee.clientTop||0:ee.clientLeft||0:0,ie=null!=(R=null==B?void 0:B[j])?R:0,ae=q+$-ie,se=oe(v?A(C,q+Z-ie-te):C,q,v?D(N,ae):N);L[j]=se,H[j]=se-q}if(s){var fe,pe="x"===j?"top":h,ue="x"===j?l:d,le=L[E],de="y"===E?"height":"width",he=le+b[pe],me=le-b[ue],ve=-1!==["top",h].indexOf(w),ge=null!=(fe=null==B?void 0:B[E])?fe:0,ye=ve?he:le-M[de]-W[de]-ge+P.altAxis,be=ve?le+M[de]+W[de]-ge-P.altAxis:me,we=v&&ve?function(e,t,n){var r=oe(e,t,n);return r>n?n:r}(ye,le,be):oe(v?ye:he,le,v?be:me);L[E]=we,H[E]=we-le}t.modifiersData[r]=H}}function He(e,t,n){void 0===n&&(n=!1);var r,o,i=I(t),a=I(t)&&function(e){var t=e.getBoundingClientRect(),n=L(t.width)/e.offsetWidth||1,r=L(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=$(t),f=Q(e,a,n),c={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(i||!i&&!n)&&(("body"!==q(t)||ge(s))&&(c=(r=t)!==C(r)&&I(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:me(r)),I(t)?((p=Q(t,!0)).x+=t.clientLeft,p.y+=t.clientTop):s&&(p.x=ve(s))),{x:f.left+c.scrollLeft-p.x,y:f.top+c.scrollTop-p.y,width:f.width,height:f.height}}function Re(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function Te(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Se(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?H:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},H,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},f=[],c=!1,p={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;u(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:N(e)?be(e):e.contextElement?be(e.contextElement):[],popper:be(t)};var a,c,l=function(e){var t=Re(e);return j.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(r,s.options.modifiers),c=a.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return s.orderedModifiers=l.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:p,options:r});f.push(i||function(){})}}),p.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(Te(t,n)){s.rects={reference:He(t,ne(n),"fixed"===s.options.strategy),popper:G(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,f=void 0===a?{}:a,u=o.name;"function"==typeof i&&(s=i({state:s,options:f,name:u,instance:p})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise(function(e){p.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){u(),c=!0}};if(!Te(e,t))return p;function u(){f.forEach(function(e){return e()}),f=[]}return p.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),p}}return e({n:function(e){if(null==e)return!0;if(f(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||n(e)||i(e)||r(e)))return!e.length;var t=u(e);if(t==R||t==T)return!e.size;if(s(e))return!o(e).length;for(var c in e)if(S.call(e,c))return!1;return!0},t:function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(V);return c(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),p(e,t,{leading:r,maxWait:t,trailing:o})}}),{setters:[function(e){n=e.I,r=e.L,o=e.M,i=e.N,a=e.Q,s=e.R,f=e.V,c=e.X,p=e.u,u=e.y}],execute:function(){v="start",g="clippingParents",y="viewport",b="popper",w="reference",x=(m=["top",l="bottom",d="right",h="left"]).reduce(function(e,t){return e.concat([t+"-"+v,t+"-end"])},[]),O=[].concat(m,["auto"]).reduce(function(e,t){return e.concat([t,t+"-"+v,t+"-end"])},[]),j=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],E={name:"applyStyles",enabled:!0,phase:"write",fn:z,effect:F,requires:["computeStyles"]},D=Math.max,A=Math.min,L=Math.round,M=function(e,t){return ie("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ae(e,m))},W={top:"auto",right:"auto",bottom:"auto",left:"auto"},k={passive:!0},P={left:"right",right:"left",bottom:"top",top:"bottom"},B={start:"end",end:"start"},H={placement:"bottom",modifiers:[],strategy:"absolute"},e("r",Se({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:le,data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:Pe,data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ue,data:{}},E,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ke},{name:"flip",enabled:!0,phase:"main",fn:Ae,requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:Be,requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:se,effect:fe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:We}]})),R="[object Map]",T="[object Set]",S=Object.prototype.hasOwnProperty,V="Expected a function"}}});
|
|
//# sourceMappingURL=throttle-legacy-Bdkr-FUR.js.map
|