2 lines
54 KiB
JavaScript
2 lines
54 KiB
JavaScript
(()=>{"use strict";function t(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function e(e){return e instanceof t(e).Element||e instanceof Element}function n(e){return e instanceof t(e).HTMLElement||e instanceof HTMLElement}function r(e){return"undefined"!==typeof ShadowRoot&&(e instanceof t(e).ShadowRoot||e instanceof ShadowRoot)}var o=Math.max,i=Math.min,a=Math.round;function s(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function c(){return!/^((?!chrome|android).)*safari/i.test(s())}function u(r,o,i){void 0===o&&(o=!1),void 0===i&&(i=!1);var s=r.getBoundingClientRect(),u=1,d=1;o&&n(r)&&(u=r.offsetWidth>0&&a(s.width)/r.offsetWidth||1,d=r.offsetHeight>0&&a(s.height)/r.offsetHeight||1);var l=(e(r)?t(r):window).visualViewport,f=!c()&&i,p=(s.left+(f&&l?l.offsetLeft:0))/u,v=(s.top+(f&&l?l.offsetTop:0))/d,E=s.width/u,m=s.height/d;return{width:E,height:m,top:v,right:p+E,bottom:v+m,left:p,x:p,y:v}}function d(e){var n=t(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function l(t){return t?(t.nodeName||"").toLowerCase():null}function f(t){return((e(t)?t.ownerDocument:t.document)||window.document).documentElement}function p(t){return u(f(t)).left+d(t).scrollLeft}function v(e){return t(e).getComputedStyle(e)}function E(t){var e=v(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function m(e,r,o){void 0===o&&(o=!1);var i=n(r),s=n(r)&&function(t){var e=t.getBoundingClientRect(),n=a(e.width)/t.offsetWidth||1,r=a(e.height)/t.offsetHeight||1;return 1!==n||1!==r}(r),c=f(r),v=u(e,s,o),m={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(i||!i&&!o)&&(("body"!==l(r)||E(c))&&(m=function(e){return e!==t(e)&&n(e)?{scrollLeft:(r=e).scrollLeft,scrollTop:r.scrollTop}:d(e);var r}(r)),n(r)?((g=u(r,!0)).x+=r.clientLeft,g.y+=r.clientTop):c&&(g.x=p(c))),{x:v.left+m.scrollLeft-g.x,y:v.top+m.scrollTop-g.y,width:v.width,height:v.height}}function g(t){var e=u(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function T(t){return"html"===l(t)?t:t.assignedSlot||t.parentNode||(r(t)?t.host:null)||f(t)}function h(t){return["html","body","#document"].indexOf(l(t))>=0?t.ownerDocument.body:n(t)&&E(t)?t:h(T(t))}function y(e,n){var r;void 0===n&&(n=[]);var o=h(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=t(o),s=i?[a].concat(a.visualViewport||[],E(o)?o:[]):o,c=n.concat(s);return i?c:c.concat(y(T(s)))}function _(t){return["table","td","th"].indexOf(l(t))>=0}function b(t){return n(t)&&"fixed"!==v(t).position?t.offsetParent:null}function A(e){for(var o=t(e),i=b(e);i&&_(i)&&"static"===v(i).position;)i=b(i);return i&&("html"===l(i)||"body"===l(i)&&"static"===v(i).position)?o:i||function(t){var e=/firefox/i.test(s());if(/Trident/i.test(s())&&n(t)&&"fixed"===v(t).position)return null;var o=T(t);for(r(o)&&(o=o.host);n(o)&&["html","body"].indexOf(l(o))<0;){var i=v(o);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return o;o=o.parentNode}return null}(e)||o}var O="top",S="bottom",R="right",L="left",C="auto",w=[O,S,R,L],N="start",I="end",P="clippingParents",x="viewport",D="popper",M="reference",B=w.reduce((function(t,e){return t.concat([e+"-"+N,e+"-"+I])}),[]),U=[].concat(w,[C]).reduce((function(t,e){return t.concat([e,e+"-"+N,e+"-"+I])}),[]),H=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function G(t){var e=new Map,n=new Set,r=[];function o(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var r=e.get(t);r&&o(r)}})),r.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||o(t)})),r}function k(t){var e;return function(){return e||(e=new Promise((function(n){Promise.resolve().then((function(){e=void 0,n(t())}))}))),e}}var F={placement:"bottom",modifiers:[],strategy:"absolute"};function j(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"===typeof t.getBoundingClientRect)}))}function V(t){void 0===t&&(t={});var n=t,r=n.defaultModifiers,o=void 0===r?[]:r,i=n.defaultOptions,a=void 0===i?F:i;return function(t,n,r){void 0===r&&(r=a);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},F,a),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},s=[],c=!1,u={state:i,setOptions:function(r){var c="function"===typeof r?r(i.options):r;d(),i.options=Object.assign({},a,i.options,c),i.scrollParents={reference:e(t)?y(t):t.contextElement?y(t.contextElement):[],popper:y(n)};var l=function(t){var e=G(t);return H.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}(function(t){var e=t.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}([].concat(o,i.options.modifiers)));return i.orderedModifiers=l.filter((function(t){return t.enabled})),i.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,r=void 0===n?{}:n,o=t.effect;if("function"===typeof o){var a=o({state:i,name:e,instance:u,options:r}),c=function(){};s.push(a||c)}})),u.update()},forceUpdate:function(){if(!c){var t=i.elements,e=t.reference,n=t.popper;if(j(e,n)){i.rects={reference:m(e,A(n),"fixed"===i.options.strategy),popper:g(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(t){return i.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,s=o.options,d=void 0===s?{}:s,l=o.name;"function"===typeof a&&(i=a({state:i,options:d,name:l,instance:u})||i)}else i.reset=!1,r=-1}}},update:k((function(){return new Promise((function(t){u.forceUpdate(),t(i)}))})),destroy:function(){d(),c=!0}};if(!j(t,n))return u;function d(){s.forEach((function(t){return t()})),s=[]}return u.setOptions(r).then((function(t){!c&&r.onFirstUpdate&&r.onFirstUpdate(t)})),u}}var X={passive:!0};function W(t){return t.split("-")[0]}function q(t){return t.split("-")[1]}function Y(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Q(t){var e,n=t.reference,r=t.element,o=t.placement,i=o?W(o):null,a=o?q(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case O:e={x:s,y:n.y-r.height};break;case S:e={x:s,y:n.y+n.height};break;case R:e={x:n.x+n.width,y:c};break;case L:e={x:n.x-r.width,y:c};break;default:e={x:n.x,y:n.y}}var u=i?Y(i):null;if(null!=u){var d="y"===u?"height":"width";switch(a){case N:e[u]=e[u]-(n[d]/2-r[d]/2);break;case I:e[u]=e[u]+(n[d]/2-r[d]/2)}}return e}var z={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(e){var n,r=e.popper,o=e.popperRect,i=e.placement,s=e.variation,c=e.offsets,u=e.position,d=e.gpuAcceleration,l=e.adaptive,p=e.roundOffsets,E=e.isFixed,m=c.x,g=void 0===m?0:m,T=c.y,h=void 0===T?0:T,y="function"===typeof p?p({x:g,y:h}):{x:g,y:h};g=y.x,h=y.y;var _=c.hasOwnProperty("x"),b=c.hasOwnProperty("y"),C=L,w=O,N=window;if(l){var P=A(r),x="clientHeight",D="clientWidth";if(P===t(r)&&"static"!==v(P=f(r)).position&&"absolute"===u&&(x="scrollHeight",D="scrollWidth"),i===O||(i===L||i===R)&&s===I)w=S,h-=(E&&P===N&&N.visualViewport?N.visualViewport.height:P[x])-o.height,h*=d?1:-1;if(i===L||(i===O||i===S)&&s===I)C=R,g-=(E&&P===N&&N.visualViewport?N.visualViewport.width:P[D])-o.width,g*=d?1:-1}var M,B=Object.assign({position:u},l&&z),U=!0===p?function(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:a(n*o)/o||0,y:a(r*o)/o||0}}({x:g,y:h},t(r)):{x:g,y:h};return g=U.x,h=U.y,d?Object.assign({},B,((M={})[w]=b?"0":"",M[C]=_?"0":"",M.transform=(N.devicePixelRatio||1)<=1?"translate("+g+"px, "+h+"px)":"translate3d("+g+"px, "+h+"px, 0)",M)):Object.assign({},B,((n={})[w]=b?h+"px":"",n[C]=_?g+"px":"",n.transform="",n))}const K={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},i=e.elements[t];n(i)&&l(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((function(t){var e=o[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach((function(t){var o=e.elements[t],i=e.attributes[t]||{},a=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:r[t]).reduce((function(t,e){return t[e]="",t}),{});n(o)&&l(o)&&(Object.assign(o.style,a),Object.keys(i).forEach((function(t){o.removeAttribute(t)})))}))}},requires:["computeStyles"]};const Z={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=void 0===o?[0,0]:o,a=U.reduce((function(t,n){return t[n]=function(t,e,n){var r=W(t),o=[L,O].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign({},e,{placement:t})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[L,R].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,e.rects,i),t}),{}),s=a[e.placement],c=s.x,u=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=a}};var $={left:"right",right:"left",bottom:"top",top:"bottom"};function tt(t){return t.replace(/left|right|bottom|top/g,(function(t){return $[t]}))}var et={start:"end",end:"start"};function nt(t){return t.replace(/start|end/g,(function(t){return et[t]}))}function rt(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&r(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function ot(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function it(n,r,i){return r===x?ot(function(e,n){var r=t(e),o=f(e),i=r.visualViewport,a=o.clientWidth,s=o.clientHeight,u=0,d=0;if(i){a=i.width,s=i.height;var l=c();(l||!l&&"fixed"===n)&&(u=i.offsetLeft,d=i.offsetTop)}return{width:a,height:s,x:u+p(e),y:d}}(n,i)):e(r)?function(t,e){var n=u(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(r,i):ot(function(t){var e,n=f(t),r=d(t),i=null==(e=t.ownerDocument)?void 0:e.body,a=o(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=o(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-r.scrollLeft+p(t),u=-r.scrollTop;return"rtl"===v(i||n).direction&&(c+=o(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:c,y:u}}(f(n)))}function at(t,r,a,s){var c="clippingParents"===r?function(t){var r=y(T(t)),o=["absolute","fixed"].indexOf(v(t).position)>=0&&n(t)?A(t):t;return e(o)?r.filter((function(t){return e(t)&&rt(t,o)&&"body"!==l(t)})):[]}(t):[].concat(r),u=[].concat(c,[a]),d=u[0],f=u.reduce((function(e,n){var r=it(t,n,s);return e.top=o(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=o(r.left,e.left),e}),it(t,d,s));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function st(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function ct(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function ut(t,n){void 0===n&&(n={});var r=n,o=r.placement,i=void 0===o?t.placement:o,a=r.strategy,s=void 0===a?t.strategy:a,c=r.boundary,d=void 0===c?P:c,l=r.rootBoundary,p=void 0===l?x:l,v=r.elementContext,E=void 0===v?D:v,m=r.altBoundary,g=void 0!==m&&m,T=r.padding,h=void 0===T?0:T,y=st("number"!==typeof h?h:ct(h,w)),_=E===D?M:D,b=t.rects.popper,A=t.elements[g?_:E],L=at(e(A)?A:A.contextElement||f(t.elements.popper),d,p,s),C=u(t.elements.reference),N=Q({reference:C,element:b,strategy:"absolute",placement:i}),I=ot(Object.assign({},b,N)),B=E===D?I:C,U={top:L.top-B.top+y.top,bottom:B.bottom-L.bottom+y.bottom,left:L.left-B.left+y.left,right:B.right-L.right+y.right},H=t.modifiersData.offset;if(E===D&&H){var G=H[i];Object.keys(U).forEach((function(t){var e=[R,S].indexOf(t)>=0?1:-1,n=[O,S].indexOf(t)>=0?"y":"x";U[t]+=G[n]*e}))}return U}const dt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,l=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,v=void 0===p||p,E=n.allowedAutoPlacements,m=e.options.placement,g=W(m),T=c||(g===m||!v?[tt(m)]:function(t){if(W(t)===C)return[];var e=tt(t);return[nt(t),e,nt(e)]}(m)),h=[m].concat(T).reduce((function(t,n){return t.concat(W(n)===C?function(t,e){void 0===e&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?U:c,d=q(r),l=d?s?B:B.filter((function(t){return q(t)===d})):w,f=l.filter((function(t){return u.indexOf(t)>=0}));0===f.length&&(f=l);var p=f.reduce((function(e,n){return e[n]=ut(t,{placement:n,boundary:o,rootBoundary:i,padding:a})[W(n)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:n,boundary:d,rootBoundary:l,padding:u,flipVariations:v,allowedAutoPlacements:E}):n)}),[]),y=e.rects.reference,_=e.rects.popper,b=new Map,A=!0,I=h[0],P=0;P<h.length;P++){var x=h[P],D=W(x),M=q(x)===N,H=[O,S].indexOf(D)>=0,G=H?"width":"height",k=ut(e,{placement:x,boundary:d,rootBoundary:l,altBoundary:f,padding:u}),F=H?M?R:L:M?S:O;y[G]>_[G]&&(F=tt(F));var j=tt(F),V=[];if(i&&V.push(k[D]<=0),s&&V.push(k[F]<=0,k[j]<=0),V.every((function(t){return t}))){I=x,A=!1;break}b.set(x,V)}if(A)for(var X=function(t){var e=h.find((function(e){var n=b.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return I=e,"break"},Y=v?3:1;Y>0;Y--){if("break"===X(Y))break}e.placement!==I&&(e.modifiersData[r]._skip=!0,e.placement=I,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function lt(t,e,n){return o(t,i(e,n))}const ft={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name,a=n.mainAxis,s=void 0===a||a,c=n.altAxis,u=void 0!==c&&c,d=n.boundary,l=n.rootBoundary,f=n.altBoundary,p=n.padding,v=n.tether,E=void 0===v||v,m=n.tetherOffset,T=void 0===m?0:m,h=ut(e,{boundary:d,rootBoundary:l,padding:p,altBoundary:f}),y=W(e.placement),_=q(e.placement),b=!_,C=Y(y),w="x"===C?"y":"x",I=e.modifiersData.popperOffsets,P=e.rects.reference,x=e.rects.popper,D="function"===typeof T?T(Object.assign({},e.rects,{placement:e.placement})):T,M="number"===typeof D?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,U={x:0,y:0};if(I){if(s){var H,G="y"===C?O:L,k="y"===C?S:R,F="y"===C?"height":"width",j=I[C],V=j+h[G],X=j-h[k],Q=E?-x[F]/2:0,z=_===N?P[F]:x[F],J=_===N?-x[F]:-P[F],K=e.elements.arrow,Z=E&&K?g(K):{width:0,height:0},$=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},tt=$[G],et=$[k],nt=lt(0,P[F],Z[F]),rt=b?P[F]/2-Q-nt-tt-M.mainAxis:z-nt-tt-M.mainAxis,ot=b?-P[F]/2+Q+nt+et+M.mainAxis:J+nt+et+M.mainAxis,it=e.elements.arrow&&A(e.elements.arrow),at=it?"y"===C?it.clientTop||0:it.clientLeft||0:0,st=null!=(H=null==B?void 0:B[C])?H:0,ct=j+ot-st,dt=lt(E?i(V,j+rt-st-at):V,j,E?o(X,ct):X);I[C]=dt,U[C]=dt-j}if(u){var ft,pt="x"===C?O:L,vt="x"===C?S:R,Et=I[w],mt="y"===w?"height":"width",gt=Et+h[pt],Tt=Et-h[vt],ht=-1!==[O,L].indexOf(y),yt=null!=(ft=null==B?void 0:B[w])?ft:0,_t=ht?gt:Et-P[mt]-x[mt]-yt+M.altAxis,bt=ht?Et+P[mt]+x[mt]-yt-M.altAxis:Tt,At=E&&ht?function(t,e,n){var r=lt(t,e,n);return r>n?n:r}(_t,Et,bt):lt(E?_t:gt,Et,E?bt:Tt);I[w]=At,U[w]=At-Et}e.modifiersData[r]=U}},requiresIfExists:["offset"]};const pt={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=W(n.placement),c=Y(s),u=[L,R].indexOf(s)>=0?"height":"width";if(i&&a){var d=function(t,e){return st("number"!==typeof(t="function"===typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:ct(t,w))}(o.padding,n),l=g(i),f="y"===c?O:L,p="y"===c?S:R,v=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],E=a[c]-n.rects.reference[c],m=A(i),T=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,h=v/2-E/2,y=d[f],_=T-l[u]-d[p],b=T/2-l[u]/2+h,C=lt(y,b,_),N=c;n.modifiersData[r]=((e={})[N]=C,e.centerOffset=C-b,e)}},effect:function(t){var e=t.state,n=t.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=e.elements.popper.querySelector(r)))&&rt(e.elements.popper,r)&&(e.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Et(t){return[O,R,S,L].some((function(e){return t[e]>=0}))}var mt=V({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var n=e.state,r=e.instance,o=e.options,i=o.scroll,a=void 0===i||i,s=o.resize,c=void 0===s||s,u=t(n.elements.popper),d=[].concat(n.scrollParents.reference,n.scrollParents.popper);return a&&d.forEach((function(t){t.addEventListener("scroll",r.update,X)})),c&&u.addEventListener("resize",r.update,X),function(){a&&d.forEach((function(t){t.removeEventListener("scroll",r.update,X)})),c&&u.removeEventListener("resize",r.update,X)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=Q({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s,u={placement:W(e.placement),variation:q(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,J(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,J(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},K,Z,dt,ft,pt,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,a=ut(e,{elementContext:"reference"}),s=ut(e,{altBoundary:!0}),c=vt(a,r),u=vt(s,o,i),d=Et(c),l=Et(u);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:l},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":l})}}]}),gt="tippy-content",Tt="tippy-backdrop",ht="tippy-arrow",yt="tippy-svg-arrow",_t={passive:!0,capture:!0},bt=function(){return document.body};function At(t,e,n){if(Array.isArray(t)){var r=t[e];return null==r?Array.isArray(n)?n[e]:n:r}return t}function Ot(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function St(t,e){return"function"===typeof t?t.apply(void 0,e):t}function Rt(t,e){return 0===e?t:function(r){clearTimeout(n),n=setTimeout((function(){t(r)}),e)};var n}function Lt(t){return[].concat(t)}function Ct(t,e){-1===t.indexOf(e)&&t.push(e)}function wt(t){return t.split("-")[0]}function Nt(t){return[].slice.call(t)}function It(t){return Object.keys(t).reduce((function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e}),{})}function Pt(){return document.createElement("div")}function xt(t){return["Element","Fragment"].some((function(e){return Ot(t,e)}))}function Dt(t){return Ot(t,"MouseEvent")}function Mt(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function Bt(t){return xt(t)?[t]:function(t){return Ot(t,"NodeList")}(t)?Nt(t):Array.isArray(t)?t:Nt(document.querySelectorAll(t))}function Ut(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function Ht(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function Gt(t){var e,n=Lt(t)[0];return null!=n&&null!=(e=n.ownerDocument)&&e.body?n.ownerDocument:document}function kt(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[r](e,n)}))}function Ft(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var jt={isTouch:!1},Vt=0;function Xt(){jt.isTouch||(jt.isTouch=!0,window.performance&&document.addEventListener("mousemove",Wt))}function Wt(){var t=performance.now();t-Vt<20&&(jt.isTouch=!1,document.removeEventListener("mousemove",Wt)),Vt=t}function qt(){var t=document.activeElement;if(Mt(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var Yt=!!("undefined"!==typeof window&&"undefined"!==typeof document)&&!!window.msCrypto;var Qt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},zt=Object.assign({appendTo:bt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Qt,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Jt=Object.keys(zt);function Kt(t){var e=(t.plugins||[]).reduce((function(e,n){var r,o=n.name,i=n.defaultValue;o&&(e[o]=void 0!==t[o]?t[o]:null!=(r=zt[o])?r:i);return e}),{});return Object.assign({},t,e)}function Zt(t,e){var n=Object.assign({},e,{content:St(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(Kt(Object.assign({},zt,{plugins:e}))):Jt).reduce((function(e,n){var r=(t.getAttribute("data-tippy-"+n)||"").trim();if(!r)return e;if("content"===n)e[n]=r;else try{e[n]=JSON.parse(r)}catch(Le){e[n]=r}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},zt.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}var $t=function(){return"innerHTML"};function te(t,e){t[$t()]=e}function ee(t){var e=Pt();return!0===t?e.className=ht:(e.className=yt,xt(t)?e.appendChild(t):te(e,t)),e}function ne(t,e){xt(e.content)?(te(t,""),t.appendChild(e.content)):"function"!==typeof e.content&&(e.allowHTML?te(t,e.content):t.textContent=e.content)}function re(t){var e=t.firstElementChild,n=Nt(e.children);return{box:e,content:n.find((function(t){return t.classList.contains(gt)})),arrow:n.find((function(t){return t.classList.contains(ht)||t.classList.contains(yt)})),backdrop:n.find((function(t){return t.classList.contains(Tt)}))}}function oe(t){var e=Pt(),n=Pt();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Pt();function o(n,r){var o=re(e),i=o.box,a=o.content,s=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"===typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"===typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||ne(a,t.props),r.arrow?s?n.arrow!==r.arrow&&(i.removeChild(s),i.appendChild(ee(r.arrow))):i.appendChild(ee(r.arrow)):s&&i.removeChild(s)}return r.className=gt,r.setAttribute("data-state","hidden"),ne(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props),{popper:e,onUpdate:o}}oe.$$tippy=!0;var ie=1,ae=[],se=[];function ce(t,e){var n,r,o,i,a,s,c,u,d=Zt(t,Object.assign({},zt,Kt(It(e)))),l=!1,f=!1,p=!1,v=!1,E=[],m=Rt(Y,d.interactiveDebounce),g=ie++,T=(u=d.plugins).filter((function(t,e){return u.indexOf(t)===e})),h={id:g,reference:t,popper:Pt(),popperInstance:null,props:d,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:T,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(e){0;if(h.state.isDestroyed)return;x("onBeforeUpdate",[h,e]),W();var n=h.props,r=Zt(t,Object.assign({},n,It(e),{ignoreAttributes:!0}));h.props=r,X(),n.interactiveDebounce!==r.interactiveDebounce&&(B(),m=Rt(Y,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?Lt(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):r.triggerTarget&&t.removeAttribute("aria-expanded");M(),P(),b&&b(n,r);h.popperInstance&&(K(),$().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));x("onAfterUpdate",[h,e])},setContent:function(t){h.setProps({content:t})},show:function(){0;var t=h.state.isVisible,e=h.state.isDestroyed,n=!h.state.isEnabled,r=jt.isTouch&&!h.props.touch,o=At(h.props.duration,0,zt.duration);if(t||e||n||r)return;if(C().hasAttribute("disabled"))return;if(x("onShow",[h],!1),!1===h.props.onShow(h))return;h.state.isVisible=!0,L()&&(_.style.visibility="visible");P(),k(),h.state.isMounted||(_.style.transition="none");if(L()){var i=N();Ut([i.box,i.content],0)}s=function(){var t;if(h.state.isVisible&&!v){if(v=!0,_.offsetHeight,_.style.transition=h.props.moveTransition,L()&&h.props.animation){var e=N(),n=e.box,r=e.content;Ut([n,r],o),Ht([n,r],"visible")}D(),M(),Ct(se,h),null==(t=h.popperInstance)||t.forceUpdate(),x("onMount",[h]),h.props.animation&&L()&&function(t,e){j(t,e)}(o,(function(){h.state.isShown=!0,x("onShown",[h])}))}},function(){var t,e=h.props.appendTo,n=C();t=h.props.interactive&&e===bt||"parent"===e?n.parentNode:St(e,[n]);t.contains(_)||t.appendChild(_);h.state.isMounted=!0,K(),!1}()},hide:function(){0;var t=!h.state.isVisible,e=h.state.isDestroyed,n=!h.state.isEnabled,r=At(h.props.duration,1,zt.duration);if(t||e||n)return;if(x("onHide",[h],!1),!1===h.props.onHide(h))return;h.state.isVisible=!1,h.state.isShown=!1,v=!1,l=!1,L()&&(_.style.visibility="hidden");if(B(),F(),P(!0),L()){var o=N(),i=o.box,a=o.content;h.props.animation&&(Ut([i,a],r),Ht([i,a],"hidden"))}D(),M(),h.props.animation?L()&&function(t,e){j(t,(function(){!h.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&e()}))}(r,h.unmount):h.unmount()},hideWithInteractivity:function(t){0;w().addEventListener("mousemove",m),Ct(ae,m),m(t)},enable:function(){h.state.isEnabled=!0},disable:function(){h.hide(),h.state.isEnabled=!1},unmount:function(){0;h.state.isVisible&&h.hide();if(!h.state.isMounted)return;Z(),$().forEach((function(t){t._tippy.unmount()})),_.parentNode&&_.parentNode.removeChild(_);se=se.filter((function(t){return t!==h})),h.state.isMounted=!1,x("onHidden",[h])},destroy:function(){0;if(h.state.isDestroyed)return;h.clearDelayTimeouts(),h.unmount(),W(),delete t._tippy,h.state.isDestroyed=!0,x("onDestroy",[h])}};if(!d.render)return h;var y=d.render(h),_=y.popper,b=y.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+h.id,h.popper=_,t._tippy=h,_._tippy=h;var A=T.map((function(t){return t.fn(h)})),O=t.hasAttribute("aria-expanded");return X(),M(),P(),x("onCreate",[h]),d.showOnCreate&&tt(),_.addEventListener("mouseenter",(function(){h.props.interactive&&h.state.isVisible&&h.clearDelayTimeouts()})),_.addEventListener("mouseleave",(function(){h.props.interactive&&h.props.trigger.indexOf("mouseenter")>=0&&w().addEventListener("mousemove",m)})),h;function S(){var t=h.props.touch;return Array.isArray(t)?t:[t,0]}function R(){return"hold"===S()[0]}function L(){var t;return!(null==(t=h.props.render)||!t.$$tippy)}function C(){return c||t}function w(){var t=C().parentNode;return t?Gt(t):document}function N(){return re(_)}function I(t){return h.state.isMounted&&!h.state.isVisible||jt.isTouch||i&&"focus"===i.type?0:At(h.props.delay,t?0:1,zt.delay)}function P(t){void 0===t&&(t=!1),_.style.pointerEvents=h.props.interactive&&!t?"":"none",_.style.zIndex=""+h.props.zIndex}function x(t,e,n){var r;(void 0===n&&(n=!0),A.forEach((function(n){n[t]&&n[t].apply(n,e)})),n)&&(r=h.props)[t].apply(r,e)}function D(){var e=h.props.aria;if(e.content){var n="aria-"+e.content,r=_.id;Lt(h.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(n);if(h.state.isVisible)t.setAttribute(n,e?e+" "+r:r);else{var o=e&&e.replace(r,"").trim();o?t.setAttribute(n,o):t.removeAttribute(n)}}))}}function M(){!O&&h.props.aria.expanded&&Lt(h.props.triggerTarget||t).forEach((function(t){h.props.interactive?t.setAttribute("aria-expanded",h.state.isVisible&&t===C()?"true":"false"):t.removeAttribute("aria-expanded")}))}function B(){w().removeEventListener("mousemove",m),ae=ae.filter((function(t){return t!==m}))}function U(e){if(!jt.isTouch||!p&&"mousedown"!==e.type){var n=e.composedPath&&e.composedPath()[0]||e.target;if(!h.props.interactive||!Ft(_,n)){if(Lt(h.props.triggerTarget||t).some((function(t){return Ft(t,n)}))){if(jt.isTouch)return;if(h.state.isVisible&&h.props.trigger.indexOf("click")>=0)return}else x("onClickOutside",[h,e]);!0===h.props.hideOnClick&&(h.clearDelayTimeouts(),h.hide(),f=!0,setTimeout((function(){f=!1})),h.state.isMounted||F())}}}function H(){p=!0}function G(){p=!1}function k(){var t=w();t.addEventListener("mousedown",U,!0),t.addEventListener("touchend",U,_t),t.addEventListener("touchstart",G,_t),t.addEventListener("touchmove",H,_t)}function F(){var t=w();t.removeEventListener("mousedown",U,!0),t.removeEventListener("touchend",U,_t),t.removeEventListener("touchstart",G,_t),t.removeEventListener("touchmove",H,_t)}function j(t,e){var n=N().box;function r(t){t.target===n&&(kt(n,"remove",r),e())}if(0===t)return e();kt(n,"remove",a),kt(n,"add",r),a=r}function V(e,n,r){void 0===r&&(r=!1),Lt(h.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,r),E.push({node:t,eventType:e,handler:n,options:r})}))}function X(){var t;R()&&(V("touchstart",q,{passive:!0}),V("touchend",Q,{passive:!0})),(t=h.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(V(t,q),t){case"mouseenter":V("mouseleave",Q);break;case"focus":V(Yt?"focusout":"blur",z);break;case"focusin":V("focusout",z)}}))}function W(){E.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,o=t.options;e.removeEventListener(n,r,o)})),E=[]}function q(t){var e,n=!1;if(h.state.isEnabled&&!J(t)&&!f){var r="focus"===(null==(e=i)?void 0:e.type);i=t,c=t.currentTarget,M(),!h.state.isVisible&&Dt(t)&&ae.forEach((function(e){return e(t)})),"click"===t.type&&(h.props.trigger.indexOf("mouseenter")<0||l)&&!1!==h.props.hideOnClick&&h.state.isVisible?n=!0:tt(t),"click"===t.type&&(l=!n),n&&!r&&et(t)}}function Y(t){var e=t.target,n=C().contains(e)||_.contains(e);if("mousemove"!==t.type||!n){var r=$().concat(_).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:d}:null})).filter(Boolean);(function(t,e){var n=e.clientX,r=e.clientY;return t.every((function(t){var e=t.popperRect,o=t.popperState,i=t.props.interactiveBorder,a=wt(o.placement),s=o.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,d="right"===a?s.left.x:0,l="left"===a?s.right.x:0,f=e.top-r+c>i,p=r-e.bottom-u>i,v=e.left-n+d>i,E=n-e.right-l>i;return f||p||v||E}))})(r,t)&&(B(),et(t))}}function Q(t){J(t)||h.props.trigger.indexOf("click")>=0&&l||(h.props.interactive?h.hideWithInteractivity(t):et(t))}function z(t){h.props.trigger.indexOf("focusin")<0&&t.target!==C()||h.props.interactive&&t.relatedTarget&&_.contains(t.relatedTarget)||et(t)}function J(t){return!!jt.isTouch&&R()!==t.type.indexOf("touch")>=0}function K(){Z();var e=h.props,n=e.popperOptions,r=e.placement,o=e.offset,i=e.getReferenceClientRect,a=e.moveTransition,c=L()?re(_).arrow:null,u=i?{getBoundingClientRect:i,contextElement:i.contextElement||C()}:t,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(L()){var n=N().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}},l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},d];L()&&c&&l.push({name:"arrow",options:{element:c,padding:3}}),l.push.apply(l,(null==n?void 0:n.modifiers)||[]),h.popperInstance=mt(u,_,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:l}))}function Z(){h.popperInstance&&(h.popperInstance.destroy(),h.popperInstance=null)}function $(){return Nt(_.querySelectorAll("[data-tippy-root]"))}function tt(t){h.clearDelayTimeouts(),t&&x("onTrigger",[h,t]),k();var e=I(!0),r=S(),o=r[0],i=r[1];jt.isTouch&&"hold"===o&&i&&(e=i),e?n=setTimeout((function(){h.show()}),e):h.show()}function et(t){if(h.clearDelayTimeouts(),x("onUntrigger",[h,t]),h.state.isVisible){if(!(h.props.trigger.indexOf("mouseenter")>=0&&h.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&l)){var e=I(!1);e?r=setTimeout((function(){h.state.isVisible&&h.hide()}),e):o=requestAnimationFrame((function(){h.hide()}))}}else F()}}function ue(t,e){void 0===e&&(e={});var n=zt.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",Xt,_t),window.addEventListener("blur",qt);var r=Object.assign({},e,{plugins:n}),o=Bt(t).reduce((function(t,e){var n=e&&ce(e,r);return n&&t.push(n),t}),[]);return xt(t)?o[0]:o}ue.defaultProps=zt,ue.setDefaultProps=function(t){Object.keys(t).forEach((function(e){zt[e]=t[e]}))},ue.currentInput=jt;Object.assign({},K,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}});ue.setDefaultProps({render:oe});const de=ue;const le={getCookie:async function(t,e){var n;const r=await chrome.cookies.get({url:t,name:e});return null!==(n=null===r||void 0===r?void 0:r.value)&&void 0!==n?n:""},getLocalStorage:async function(t){return new Promise(((e,n)=>{try{chrome.storage.sync.get(t,(n=>{e(null===n||void 0===n?void 0:n[t])}))}catch(Le){console.error(Le),n(Le)}}))},setLocalStorage:async function(t,e){return new Promise(((n,r)=>{try{chrome.storage.sync.set({[t]:e},(()=>n()))}catch(Le){console.error(Le),r(Le)}}))},getBytesInUse:async function(){return new Promise(((t,e)=>{chrome.storage.sync.getBytesInUse((e=>{t(e)}))}))}};const fe={delay:function(t){return new Promise(((e,n)=>{setTimeout((()=>{e()}),t)}))},debounce:function(t,e){let n;return r=>{clearTimeout(n),n=setTimeout((()=>{t(r)}),e)}},startInterval:function(t,e){let n=0,r=setInterval((()=>{t(++n)||clearInterval(r)}),e)},startIntervalAsync:function(t,e){const n=[];let r=0;const o=async()=>{try{await t(++r)?n.push(setTimeout(o,e)):n.forEach((t=>clearTimeout(t)))}catch(Le){n.forEach((t=>clearTimeout(t))),console.error(Le)}};o()}},pe="PENDING_MESSAGE_KEY";async function ve(t){return new Promise(((e,n)=>{chrome.tabs.sendMessage(t.targetTabId,t,(t=>{chrome.runtime.lastError?e("CONNECTION_ERROR"):e(t)}))}))}const Ee={addPendingMessage:async function(t){var e;const n=null!==(e=await le.getLocalStorage(pe))&&void 0!==e?e:Array(),r=Date.now(),o=n.filter((t=>t.expirationAt>=r));o.push({...t}),await le.setLocalStorage(pe,o)},consumePendingMessage:async function(t){var e;return(null!==(e=await le.getLocalStorage(pe))&&void 0!==e?e:Array()).find((e=>(null===e||void 0===e?void 0:e.receiverName)===t))},sendRuntimeMessage:function(t,e){chrome.runtime.sendMessage(t,(t=>{null===e||void 0===e||e(null!==t&&void 0!==t?t:void 0)}))},sendRuntimeMessageAsync:async function(t){return new Promise(((e,n)=>{chrome.runtime.sendMessage(t,(t=>{e(t)}))}))},sendTabsMessage:function(t,e){chrome.tabs.sendMessage(t.targetTabId,t,(t=>{null===e||void 0===e||e(null!==t&&void 0!==t?t:void 0)}))},sendTabsMessageAsync:ve,sendTabMessageAsyncUntilConnect:async function(t,e){return new Promise(((n,r)=>{fe.startIntervalAsync((async r=>{const o=await ve(t);return"CONNECTION_ERROR"===o&&r<=e||(n("CONNECTION_ERROR"===o&&r>e?"CONNECTION_ERROR":o),!1)}),1e3)}))},addMessageListener:function(t){chrome.runtime.onMessage.addListener(((e,n,r)=>t(e,n,r)))}};class me{constructor(t){this.type=t}}let ge=function(t){return t.TO_CONTENT_SCRAP_AUTO_BY_URL="TO_CONTENT_SCRAP_AUTO_BY_URL",t.TO_BACKGROUND_SET_1688_QUERY="TO_BACKGROUND_SET_1688_QUERY",t.GET_PERCENTY_TOKEN="GET_PERCENTY_TOKEN",t.INJECT_RESULT="INJECT_RESULT",t.OPEN_TAB_AND_SCRAP="OPEN_TAB_AND_SCRAP",t.OPEN_TAB_AND_SCRAP_FINISH="OPEN_TAB_AND_SCRAP_FINISH",t.SCRAP_AUTO="SCRAP_AUTO",t.SCRAP_AUTO_FINISH="SCRAP_AUTO_FINISH",t.SCRAP_AUTO_FINISH_TO_LIST_PAGE="SCRAP_AUTO_FINISH_TO_LIST_PAGE",t.OPEN_PERCENTY_TAB="OPEN_PERCENTY_TAB",t.GET_CURRENT_TAB_ID_FROM_CONTENTS_SCRIPT="GET_CURRENT_TAB_ID_FROM_CONTENTS_SCRIPT",t.CLOSE_TAB="CLOSE_TAB",t.SCRAP_SUCCESS_TO_PERCENTY_WEB="SCRAP_SUCCESS_TO_PERCENTY_WEB",t.SCRAP_SUCCESS_TO_PERCENTY_WEB_TAB="SCRAP_SUCCESS_TO_PERCENTY_WEB_TAB",t.EXTENSION_INSTALLED_TO_PERCENTY_WEB_TAB="EXTENSION_INSTALLED_TO_PERCENTY_WEB_TAB",t.FETCH_RAW="FETCH_RAW",t.GET_NAVER_SHOPPING_LENS="GET_NAVER_SHOPPING_LENS",t.IMG_SEARCH="IMG_SEARCH",t.IMG_SEARCH_TAB="IMG_SEARCH_TAB",t.IMG_SEARCH_RESULT="IMG_SEARCH_RESULT",t.IMAGE_SEARCH_POSITION="IMAGE_SEARCH_POSITION",t.IMAGE_SEARCH_BTN_POSITION="IMAGE_SEARCH_BTN_POSITION",t.IMAGE_SEARCH_RESULT="IMAGE_SEARCH_RESULT",t.IMAGE_SEARCH_MODAL_OPEN="IMAGE_SEARCH_MODAL_OPEN",t.UPDATE_DECLARATIVE_NET_REQUEST_RULES="UPDATE_DECLARATIVE_NET_REQUEST_RULES",t.GET_SHEIN_THUMBNAIL_IMGS="GET_SHEIN_THUMBNAIL_IMGS",t.GET_IMG_BLOB_URL="GET_IMG_BLOB_URL",t.TO_DELETE_COOKIES="TO_DELETE_COOKIES",t.HEALTH_CHECK="HEALTH_CHECK",t.OPEN_SMART_STORE_LOGIN_EXTERNAL="OPEN_SMART_STORE_LOGIN_EXTERNAL",t.UPLOAD_SMART_STORE_EXTERNAL="UPLOAD_SMART_STORE_EXTERNAL",t.EDIT_SMART_STORE_EXTERNAL="EDIT_SMART_STORE_EXTERNAL",t.GET_CURRENT_LOGGED_IN_SMART_STORE_CHANNEL_EXTERNAL="GET_CURRENT_LOGGED_IN_SMART_STORE_CHANNEL_EXTERNAL",t.GET_CHROME_EXTENSION_VERSION_EXTERNAL="GET_CHROME_EXTENSION_VERSION_EXTERNAL",t.DELETE_SMART_STORE_PRODUCT_EXTERNAL="DELETE_SMART_STORE_PRODUCT_EXTERNAL",t.UPDATE_SMART_STORE_PRODUCT_STATE_EXTERNAL="UPDATE_SMART_STORE_PRODUCT_STATE_EXTERNAL",t.GET_SMART_STORE_PRODUCT_EXTERNAL="GET_SMART_STORE_PRODUCT_EXTERNAL",t.FETCH_RAW_EXTERNAL="FETCH_RAW_EXTERNAL",t.UPDATE_DECLARATIVE_NET_REQUEST_RULES_EXTERNAL="UPDATE_DECLARATIVE_NET_REQUEST_RULES_EXTERNAL",t.GET_DECLARATIVE_NET_REQUEST_RULES_EXTERNAL="GET_DECLARATIVE_NET_REQUEST_RULES_EXTERNAL",t.SCRAP_START_EXTERNAL="SCRAP_START_EXTERNAL",t.REQUEST_AI_SOURCING="REQUEST_AI_SOURCING",t.REQUEST_NAVER_SHOPPING_POPULAR_TERMS="REQUEST_NAVER_SHOPPING_POPULAR_TERMS",t.REQUEST_TAOBAO_IMG_SEARCH_EXTERNAL="REQUEST_TAOBAO_IMG_SEARCH_EXTERNAL",t.SCRAP_SUCCESS_FROM_EXT="SCRAP_SUCCESS_FROM_EXT",t.CHROME_EXTENSION_INSTALLED_FROM_EXT="CHROME_EXTENSION_INSTALLED_FROM_EXT",t.NAVER_SHOPPING_LENS_FROM_EXT="NAVER_SHOPPING_LENS_FROM_EXT",t}({});class Te extends me{constructor(){super(ge.OPEN_PERCENTY_TAB)}}let he=function(t){return t[t.INITIAL=0]="INITIAL",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.ERROR=3]="ERROR",t[t.ANALYSING=4]="ANALYSING",t[t.DUPLICATED_SCRAP=5]="DUPLICATED_SCRAP",t[t.NEED_LOGIN=6]="NEED_LOGIN",t}({}),ye=function(t){return t[t.NONE=0]="NONE",t[t.NEED_LOGIN=1]="NEED_LOGIN",t[t.DUPLICATED_SCRAP=2]="DUPLICATED_SCRAP",t[t.ERROR=3]="ERROR",t}({}),_e=function(t){return t[t.INITIAL=0]="INITIAL",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.ERROR=3]="ERROR",t[t.DUPLICATED_SCRAP=4]="DUPLICATED_SCRAP",t[t.NEED_LOGIN=5]="NEED_LOGIN",t}({});function be(t){t.classList.remove("PercentyFloatingButtonTextLoading","PercentyFloatingButtonTextSuccess","PercentyFloatingButtonTextError","PercentyFloatingButtonTextNeedLogin")}function Ae(t){t.classList.remove("PercentyListButtonTextLoading","PercentyListButtonTextSuccess","PercentyListButtonTextError","PercentyListButtonTextNeedLogin")}const Oe={createFloatingButton:function(){const t=document.createElement("button");return t.innerHTML="".concat('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect width="72" height="72" rx="36" fill="#1B00AE"/> <path d="M27.1108 33.1961C29.7192 33.1961 31.8338 31.0815 31.8338 28.4731C31.8338 25.8646 29.7192 23.75 27.1108 23.75C24.5023 23.75 22.3877 25.8646 22.3877 28.4731C22.3877 31.0815 24.5023 33.1961 27.1108 33.1961Z" fill="white"/> <path d="M44.8886 46.2628C47.4971 46.2628 49.6116 44.1482 49.6116 41.5397C49.6116 38.9312 47.4971 36.8166 44.8886 36.8166C42.2801 36.8166 40.1655 38.9312 40.1655 41.5397C40.1655 44.1482 42.2801 46.2628 44.8886 46.2628Z" fill="white"/> <path d="M44.5346 23.75H38.9133C37.7971 23.75 36.8308 24.3353 36.2863 25.2064L35.9188 26.0775L27.4663 45.8953H33.1013C34.2038 45.8953 35.8235 44.4389 36.191 43.35L44.5346 23.75Z" fill="white"/> </svg>',"<div id=\"percenty_floating_button_id\" class='PercentyFloatingButtonText'><div><div>\ud37c\uc13c\ud2f0\ub85c</div><div>\uc218\uc9d1\ud558\uae30</div></div></div>"),t.classList.add("PercentyFloatingButtonRoot"),t},setFloatingButtonState:function(t,e){const n=t.querySelector("#percenty_floating_button_id");if(n)switch(e){case he.INITIAL:be(n),t.disabled=!1,n.outerHTML="<div id='percenty_floating_button_id' class='PercentyFloatingButtonText'><div><div>\ud37c\uc13c\ud2f0\ub85c</div><div>\uc218\uc9d1\ud558\uae30</div></div></div>";break;case he.LOADING:be(n),t.disabled=!1,n.outerHTML="<div id='percenty_floating_button_id' class='PercentyFloatingButtonText PercentyFloatingButtonTextLoading'><div>\uc218\uc9d1 \uc911...</div></div>";break;case he.SUCCESS:be(n),t.disabled=!1,n.outerHTML="<div id='percenty_floating_button_id' class='PercentyFloatingButtonText PercentyFloatingButtonTextSuccess'><div>\uc218\uc9d1 \uc644\ub8cc!</div></div>";break;case he.ERROR:be(n),t.disabled=!1,n.outerHTML="<div id='percenty_floating_button_id' class='PercentyFloatingButtonText PercentyFloatingButtonTextError'><div><div>\uc218\uc9d1 \uc624\ub958</div><div>\uc7ac\uc2dc\ub3c4</div></div></div>";break;case he.ANALYSING:be(n),t.disabled=!1,n.outerHTML="<div id='percenty_floating_button_id' class='PercentyFloatingButtonText PercentyFloatingButtonTextLoading'><div>\ubd84\uc11d \uc911...</div></div>";break;case he.NEED_LOGIN:be(n),t.disabled=!1,n.outerHTML="<div id='percenty_floating_button_id' class='PercentyFloatingButtonText PercentyFloatingButtonTextNeedLogin'><div><div>\ub85c\uadf8\uc778\uc774</div><div>\ud544\uc694\ud574\uc694</div></div></div>";break;case he.DUPLICATED_SCRAP:be(n),t.disabled=!1,n.outerHTML="<div id='percenty_floating_button_id' class='PercentyFloatingButtonText PercentyFloatingButtonTextError'><div><div>\uc911\ubcf5\uc0c1\ud488</div><div>\uac15\uc81c\uc218\uc9d1</div></div></div>"}},createFloatingTooltip:function(t){return de(t,{placement:"bottom-end",allowHTML:!0,arrow:!0,animation:"shift-away",interactive:!0,trigger:"manual",zIndex:9e8})},setFloatingTooltipState:function(t,e,n){switch(e){case ye.NEED_LOGIN:const e=document.createElement("template");e.innerHTML='<div class="PercentyFloatingTooltipRoot">\n <div class="PercentyFloatingTooltipTitle">\ud37c\uc13c\ud2f0 \ub85c\uadf8\uc778\uc774 \ud544\uc694\ud574\uc694!</div>\n <div id="PercentyFloatingTooltipLoginBtnId" class="PercentyFloatingTooltipLoginBtn">\ub85c\uadf8\uc778 \ud558\ub7ec\uac00\uae30</div>\n </div>';e.content.getElementById("PercentyFloatingTooltipLoginBtnId").onclick=()=>{t.hide(),Ee.sendRuntimeMessage(new Te)},t.setContent(e.content),setTimeout((()=>t.show()),0);break;case ye.ERROR:t.setContent('<div class="PercentyFloatingTooltipRoot"><div class="PercentyFloatingTooltipTitle">\uc218\uc9d1\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4.</div><br/><div>'.concat(n,"</div></div>")),setTimeout((()=>t.show()),0);break;case ye.DUPLICATED_SCRAP:t.setContent('<div class="PercentyFloatingTooltipRoot"><div class="PercentyFloatingTooltipTitle">\uc774\ubbf8 \uc218\uc9d1\ud55c \uc0c1\ud488\uc785\ub2c8\ub2e4.</div><br/><div>\uc218\uc9d1\ud558\uc2dc\ub824\uba74 \ud55c\ubc88 \ub354 \ub20c\ub7ec\uc8fc\uc138\uc694.</div></div>'),setTimeout((()=>t.show()),0);break;case ye.NONE:default:setTimeout((()=>t.hide()),0)}},createListButton:function(t){const e=document.createElement("button");return e.innerHTML="".concat('<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" rx="24" fill="#1B00AE"/><path d="M17.47 21.94C19.3864 21.94 20.94 20.3864 20.94 18.47C20.94 16.5536 19.3864 15 17.47 15C15.5536 15 14 16.5536 14 18.47C14 20.3864 15.5536 21.94 17.47 21.94Z" fill="white"/><path d="M30.5301 31.54C32.4465 31.54 34.0001 29.9864 34.0001 28.07C34.0001 26.1535 32.4465 24.6 30.5301 24.6C28.6136 24.6 27.0601 26.1535 27.0601 28.07C27.0601 29.9864 28.6136 31.54 30.5301 31.54Z" fill="white"/><path d="M30.27 15H26.14C25.32 15 24.61 15.43 24.21 16.07L23.94 16.71L17.73 31.27H21.87C22.68 31.27 23.87 30.2 24.14 29.4L30.27 15Z" fill="white"/></svg>',"<div class='PercentyListButtonText'><div><div>\ud37c\uc13c\ud2f0\ub85c</div><div>\uc218\uc9d1\ud558\uae30</div></div></div>"),t?e.classList.add(t):e.classList.add("PercentyListButtonRoot"),e},setListButtonState:function(t,e){var n;const r=null===(n=t.getElementsByClassName("PercentyListButtonText"))||void 0===n?void 0:n[0];if(r)switch(e){case _e.INITIAL:Ae(r),t.disabled=!1,r.outerHTML="<div class='PercentyListButtonText'><div><div>\ud37c\uc13c\ud2f0\ub85c</div><div>\uc218\uc9d1\ud558\uae30</div></div></div>";break;case _e.LOADING:Ae(r),t.disabled=!0,r.outerHTML="<div class='PercentyListButtonText PercentyListButtonTextLoading'><div>\uc218\uc9d1 \uc911...</div></div>";break;case _e.SUCCESS:Ae(r),t.disabled=!0,r.outerHTML="<div class='PercentyListButtonText PercentyListButtonTextSuccess'><div>\uc218\uc9d1 \uc644\ub8cc!</div></div>";break;case _e.ERROR:Ae(r),t.disabled=!1,r.outerHTML="<div class='PercentyListButtonText PercentyListButtonTextError'><div><div>\uc218\uc9d1 \uc624\ub958</div><div>\uc7ac\uc2dc\ub3c4</div></div></div>";break;case _e.DUPLICATED_SCRAP:Ae(r),t.disabled=!1,r.outerHTML="<div class='PercentyListButtonText PercentyListButtonTextError'><div><div>\uc911\ubcf5 \uc0c1\ud488</div><div>\uac15\uc81c \uc218\uc9d1</div></div></div>";break;case _e.NEED_LOGIN:Ae(r),t.disabled=!0,r.outerHTML="<div class='PercentyListButtonText PercentyListButtonTextNeedLogin'><div><div>\ub85c\uadf8\uc778\uc774</div><div>\ud544\uc694\ud574\uc694</div></div></div>"}},createListTooltip:function(t,e){const n=de(t,{placement:"bottom-end",allowHTML:!0,arrow:!0,animation:"shift-away",interactive:!1,zIndex:9e8,trigger:"manual mouseenter focus"});return n.setContent('<div class="PercentyFloatingTooltipRoot">'.concat(e,"</div>")),n}},Se="ENCITOZYJCMXSFZ";const Re={setScrapState:function(t,e,n){window.sessionStorage.setItem(Se+t,JSON.stringify({id:t,state:e,message:n}))},getScrapState:function(t){const e=window.sessionStorage.getItem(Se+t);return e?JSON.parse(e):void 0},stringifyAndParse:function(t){if(t)try{return JSON.parse(JSON.stringify(t))}catch(Le){return void console.error(Le)}}};function Le(t){this.message=t}Le.prototype=new Error,Le.prototype.name="InvalidCharacterError";var Ce="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new Le("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,a="";r=e.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?a+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function we(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(Ce(t).replace(/(.)/g,(function(t,e){var n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(e)}catch(t){return Ce(e)}}function Ne(t){this.message=t}Ne.prototype=new Error,Ne.prototype.name="InvalidTokenError";const Ie=function(t,e){if("string"!=typeof t)throw new Ne("Invalid token specified");var n=!0===(e=e||{}).header?0:1;try{return JSON.parse(we(t.split(".")[n]))}catch(t){throw new Ne("Invalid token specified: "+t.message)}},Pe="_jg_tk";async function xe(){return le.getLocalStorage(Pe).then((t=>null!==t&&void 0!==t?t:""))}const De={getToken:xe,setToken:async function(t){return le.setLocalStorage(Pe,t)},isTokenValid:async function(){try{const t=await xe();if(!t)return!1;const e=Ie(null!==t&&void 0!==t?t:"");if(null!==e&&void 0!==e&&e.exp&&e.exp>Date.now()/1e3)return!0}catch(Le){console.error(Le)}return!1},getStagedRolloutNumber:async function(){try{const t=await xe();if(!t)return 0;return Ie(null!==t&&void 0!==t?t:"").sub.split("").reduce(((t,e)=>t+e.charCodeAt(0)),0)%100}catch(Le){return console.error(Le),0}},getUserId:async function(){try{const t=await xe();if(!t)return"";return Ie(null!==t&&void 0!==t?t:"").sub}catch(Le){return console.error(Le),""}}};class Me extends me{constructor(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];super(ge.OPEN_TAB_AND_SCRAP),this.url=t,this.callerTabId=e,this.targetProductId=n,this.ignoreDuplicatedScrap=r}}var Be,Ue=new Uint8Array(16);function He(){if(!Be&&!(Be="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Be(Ue)}const Ge=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const ke=function(t){return"string"===typeof t&&Ge.test(t)};for(var Fe=[],je=0;je<256;++je)Fe.push((je+256).toString(16).substr(1));const Ve=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Fe[t[e+0]]+Fe[t[e+1]]+Fe[t[e+2]]+Fe[t[e+3]]+"-"+Fe[t[e+4]]+Fe[t[e+5]]+"-"+Fe[t[e+6]]+Fe[t[e+7]]+"-"+Fe[t[e+8]]+Fe[t[e+9]]+"-"+Fe[t[e+10]]+Fe[t[e+11]]+Fe[t[e+12]]+Fe[t[e+13]]+Fe[t[e+14]]+Fe[t[e+15]]).toLowerCase();if(!ke(n))throw TypeError("Stringified UUID is invalid");return n};const Xe=function(t,e,n){var r=(t=t||{}).random||(t.rng||He)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return Ve(r)};const We={getRandomUUID:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?Xe().replace(/-/g,""):Xe()},getByteSize:function(t){return t?new Blob([t]).size:0},isVersionLowEqual:function(t,e){if(!t||!e)return!1;const n=t.split("."),r=e.split(".");for(let o=0;o<n.length;o++){const t=parseInt(n[o]),e=parseInt(r[o]);if(t<e)return!0;if(t>e)return!1}return!0}};function qe(t,e){const n=t.querySelectorAll("".concat(e));if(n&&n.length>0)return n[0]}const Ye={getObserveContainer:function(t){const e=qe(t,'[class^="Content--contentInner"]');return e||qe(t,"div#mainsrp-itemlist")},getProductItemList:function(t){let e=t.querySelectorAll('[class^="Card--doubleCardWrapper"]');return e&&e.length>0||(e=t.querySelectorAll("div.pic-box"),e&&e.length),e},getLinkFromProductItem:function(t){var e;return t instanceof HTMLAnchorElement&&t.href?t.href:null===(e=t.querySelector("a"))||void 0===e?void 0:e.href},getProductIdFromProductItem:function(t){const e=t.querySelectorAll("[data-item]");for(const n of Array.from(e)){const t=n.getAttribute("data-item");if(t)return t}return We.getRandomUUID()},getCartItemList:function(t){return t.querySelectorAll(".cart-order-holder")},getCollectButtonContainer:function(t,e){return t.querySelectorAll('[class="'.concat(e,'"]'))},getObserver:qe},Qe="LIST_ITEM_BTN_ID_";let ze=-1,Je=!1,Ke=new Map;async function Ze(t){if(t.getElementsByClassName("PercentyListButtonRoot").length>0)return;for(;Ye.getProductItemList(t).length<1;)await fe.delay(500);Ke.forEach((t=>t.destroy())),Ke=new Map;Ye.getProductItemList(t).forEach((t=>{const e=t.querySelector("button.PercentyListButtonRoot");e&&e.remove();const n=Oe.createListButton(),r=Ye.getLinkFromProductItem(t),o=Ye.getProductIdFromProductItem(t);r&&(n.id=Qe+o,n.addEventListener("click",(t=>{var e;if(t.preventDefault(),t.stopPropagation(),Je){var i;const t=(null===(i=Re.getScrapState(o))||void 0===i?void 0:i.state)===_e.DUPLICATED_SCRAP;Re.setScrapState(o,_e.LOADING),Oe.setListButtonState(n,_e.LOADING),Ee.sendRuntimeMessage(new Me(r,ze,o,t))}else $e(),Oe.setListButtonState(n,_e.NEED_LOGIN);null===(e=Ke.get(o))||void 0===e||e.destroy(),Ke.delete(o)})));const i=Re.getScrapState(o);i&&i.state===_e.SUCCESS&&Oe.setListButtonState(n,i.state),t.style.position||(t.style.position="relative"),t.appendChild(n)}))}function $e(){De.isTokenValid().then((t=>{Je=t}))}$e(),Ee.sendRuntimeMessage(new class extends me{constructor(){super(ge.GET_CURRENT_TAB_ID_FROM_CONTENTS_SCRIPT)}},(t=>{var e;ze=null!==(e=null===t||void 0===t?void 0:t.tabId)&&void 0!==e?e:-1})),Ee.addMessageListener(((t,e,n)=>{try{if(t.type===ge.SCRAP_AUTO_FINISH_TO_LIST_PAGE){const e=t,n=document.getElementById(Qe+e.targetProductId);if(n&&e&&(Re.setScrapState(e.targetProductId,e.scrapState.state,e.scrapState.message),Oe.setListButtonState(n,e.scrapState.state),e.scrapState.message&&e.scrapState.message.length>0)){const t=Oe.createListTooltip(n,e.scrapState.message);t.show(),Ke.set(e.targetProductId,t)}}}catch(Le){console.error(Le)}return!1})),Ze(document.body),async function(){const t=new MutationObserver((t=>{t.some((t=>t.addedNodes.length>0))&&Ze(document.body)}));for(;!Ye.getObserveContainer(document);)await fe.delay(500);const e=Ye.getObserveContainer(document);e instanceof HTMLElement&&t.observe(e,{childList:!0,subtree:!0})}()})();
|
|
//# sourceMappingURL=s_taobao_com.js.map
|