Release v23.044 (from fd133747)
This commit is contained in:
10
charting_library/bundles/3014.516162fd8b06ec2cad15.js
Normal file
10
charting_library/bundles/3014.516162fd8b06ec2cad15.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3014],{13398:function(e,t){var n,r,o,i;i=function(e){var t=Object.prototype.toString,n=Array.isArray||function(e){return"[object Array]"===t.call(e)};function r(e){return"function"==typeof e}function o(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function i(e,t){return null!=e&&"object"==typeof e&&t in e}var a=RegExp.prototype.test,s=/\S/;function f(e){return!function(e,t){return a.call(e,t)}(s,e)}var c={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},u=/\s*/,p=/\s+/,l=/\s*=/,d=/\s*\}/,h=/#|\^|\/|>|\{|&|=|!/;function m(e){this.string=e,this.tail=e,this.pos=0}function v(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function y(){this.cache={}}m.prototype.eos=function(){return""===this.tail},m.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},m.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},v.prototype.push=function(e){return new v(e,this)},v.prototype.lookup=function(e){var t,n=this.cache;if(n.hasOwnProperty(e))t=n[e];else{for(var o,a,s=this,f=!1;s;){if(e.indexOf(".")>0)for(t=s.view,o=e.split("."),a=0;null!=t&&a<o.length;)a===o.length-1&&(f=i(t,o[a])),t=t[o[a++]];else t=s.view[e],f=i(s.view,e);if(f)break;s=s.parent}n[e]=t}return r(t)&&(t=t.call(this.view)),t},y.prototype.clearCache=function(){this.cache={}},y.prototype.parse=function(t,r){var i=this.cache,a=i[t];return null==a&&(a=i[t]=function(t,r){if(!t)return[];var i,a,s,c=[],v=[],y=[],g=!1,b=!1;function w(){if(g&&!b)for(;y.length;)delete v[y.pop()];else y=[];g=!1,b=!1}function x(e){if("string"==typeof e&&(e=e.split(p,2)),!n(e)||2!==e.length)throw new Error("Invalid tags: "+e);i=new RegExp(o(e[0])+"\\s*"),a=new RegExp("\\s*"+o(e[1])),s=new RegExp("\\s*"+o("}"+e[1]))}x(r||e.tags);for(var O,E,k,j,R,D,S=new m(t);!S.eos();){if(O=S.pos,k=S.scanUntil(i))for(var A=0,M=k.length;A<M;++A)f(j=k.charAt(A))?y.push(v.length):b=!0,v.push(["text",j,O,O+1]),O+=1,"\n"===j&&w();if(!S.scan(i))break;if(g=!0,E=S.scan(h)||"name",S.scan(u),"="===E?(k=S.scanUntil(l),S.scan(l),S.scanUntil(a)):"{"===E?(k=S.scanUntil(s),S.scan(d),S.scanUntil(a),E="&"):k=S.scanUntil(a),!S.scan(a))throw new Error("Unclosed tag at "+S.pos);if(R=[E,k,O,S.pos],v.push(R),"#"===E||"^"===E)c.push(R);else if("/"===E){if(!(D=c.pop()))throw new Error('Unopened section "'+k+'" at '+O);if(D[1]!==k)throw new Error('Unclosed section "'+D[1]+'" at '+O)}else"name"===E||"{"===E||"&"===E?b=!0:"="===E&&x(k)}if(D=c.pop())throw new Error('Unclosed section "'+D[1]+'" at '+S.pos);return function(e){for(var t,n=[],r=n,o=[],i=0,a=e.length;i<a;++i)switch((t=e[i])[0]){case"#":case"^":r.push(t),o.push(t),r=t[4]=[];break;case"/":o.pop()[5]=t[2],r=o.length>0?o[o.length-1][4]:n;break;default:r.push(t)}return n
|
||||
}(function(e){for(var t,n,r=[],o=0,i=e.length;o<i;++o)(t=e[o])&&("text"===t[0]&&n&&"text"===n[0]?(n[1]+=t[1],n[3]=t[3]):(r.push(t),n=t));return r}(v))}(t,r)),a},y.prototype.render=function(e,t,n){var r=this.parse(e),o=t instanceof v?t:new v(t);return this.renderTokens(r,o,n,e)},y.prototype.renderTokens=function(e,t,n,r){for(var o,i,a,s="",f=0,c=e.length;f<c;++f)a=void 0,"#"===(i=(o=e[f])[0])?a=this.renderSection(o,t,n,r):"^"===i?a=this.renderInverted(o,t,n,r):">"===i?a=this.renderPartial(o,t,n,r):"&"===i?a=this.unescapedValue(o,t):"name"===i?a=this.escapedValue(o,t):"text"===i&&(a=this.rawValue(o)),void 0!==a&&(s+=a);return s},y.prototype.renderSection=function(e,t,o,i){var a=this,s="",f=t.lookup(e[1]);if(f){if(n(f))for(var c=0,u=f.length;c<u;++c)s+=this.renderTokens(e[4],t.push(f[c]),o,i);else if("object"==typeof f||"string"==typeof f||"number"==typeof f)s+=this.renderTokens(e[4],t.push(f),o,i);else if(r(f)){if("string"!=typeof i)throw new Error("Cannot use higher-order sections without the original template");null!=(f=f.call(t.view,i.slice(e[3],e[5]),(function(e){return a.render(e,t,o)})))&&(s+=f)}else s+=this.renderTokens(e[4],t,o,i);return s}},y.prototype.renderInverted=function(e,t,r,o){var i=t.lookup(e[1]);if(!i||n(i)&&0===i.length)return this.renderTokens(e[4],t,r,o)},y.prototype.renderPartial=function(e,t,n){if(n){var o=r(n)?n(e[1]):n[e[1]];return null!=o?this.renderTokens(this.parse(o),t,n,o):void 0}},y.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},y.prototype.escapedValue=function(t,n){var r=n.lookup(t[1]);if(null!=r)return e.escape(r)},y.prototype.rawValue=function(e){return e[1]},e.name="mustache.js",e.version="2.2.1",e.tags=["{{","}}"];var g=new y;e.clearCache=function(){return g.clearCache()},e.parse=function(e,t){return g.parse(e,t)},e.render=function(e,t,r){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+(n(o=e)?"array":typeof o)+'" was given as the first argument for mustache#render(template, view, partials)');var o;return g.render(e,t,r)},e.to_html=function(t,n,o,i){var a=e.render(t,n,o);if(!r(i))return a;i(a)},e.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,(function(e){return c[e]}))},e.Scanner=m,e.Context=v,e.Writer=y},t&&"string"!=typeof t.nodeName?i(t):(r=[t],void 0===(o="function"==typeof(n=i)?n.apply(t,r):n)||(e.exports=o))},61970:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,i){try{return function e(i,a){if(i===a)return!0;if(i&&a&&"object"==typeof i&&"object"==typeof a){if(i.constructor!==a.constructor)return!1;var s,f,c,u;if(Array.isArray(i)){if((s=i.length)!=a.length)return!1;for(f=s;0!=f--;)if(!e(i[f],a[f]))return!1;return!0}if(n&&i instanceof Map&&a instanceof Map){if(i.size!==a.size)return!1;for(u=i.entries();!(f=u.next()).done;)if(!a.has(f.value[0]))return!1;for(u=i.entries();!(f=u.next()).done;)if(!e(f.value[1],a.get(f.value[0])))return!1;return!0}
|
||||
if(r&&i instanceof Set&&a instanceof Set){if(i.size!==a.size)return!1;for(u=i.entries();!(f=u.next()).done;)if(!a.has(f.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(i)&&ArrayBuffer.isView(a)){if((s=i.length)!=a.length)return!1;for(f=s;0!=f--;)if(i[f]!==a[f])return!1;return!0}if(i.constructor===RegExp)return i.source===a.source&&i.flags===a.flags;if(i.valueOf!==Object.prototype.valueOf)return i.valueOf()===a.valueOf();if(i.toString!==Object.prototype.toString)return i.toString()===a.toString();if((s=(c=Object.keys(i)).length)!==Object.keys(a).length)return!1;for(f=s;0!=f--;)if(!Object.prototype.hasOwnProperty.call(a,c[f]))return!1;if(t&&i instanceof Element)return!1;for(f=s;0!=f--;)if(("_owner"!==c[f]&&"__v"!==c[f]&&"__o"!==c[f]||!i.$$typeof)&&!e(i[c[f]],a[c[f]]))return!1;return!0}return i!=i&&a!=a}(e,i)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},2998:(e,t,n)=>{"use strict";n.d(t,{ManagerReferenceNodeContext:()=>o,ManagerReferenceNodeSetterContext:()=>i,Manager:()=>a});var r=n(59496),o=r.createContext(),i=r.createContext();function a(e){var t=e.children,n=r.useState(null),a=n[0],s=n[1];return r.useEffect((function(){return function(){s(null)}}),[s]),r.createElement(o.Provider,{value:a},r.createElement(i.Provider,{value:s},t))}},4298:(e,t,n)=>{"use strict";n.d(t,{Popper:()=>ve});var r=n(59496),o=n(2998),i=n(58949);function a(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function s(e){return e instanceof a(e).Element||e instanceof Element}function f(e){return e instanceof a(e).HTMLElement||e instanceof HTMLElement}function c(e){return"undefined"!=typeof ShadowRoot&&(e instanceof a(e).ShadowRoot||e instanceof ShadowRoot)}var u=Math.round;function p(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;return f(e)&&t&&(r=n.width/e.offsetWidth||1,o=n.height/e.offsetHeight||1),{width:u(n.width/r),height:u(n.height/o),top:u(n.top/o),right:u(n.right/r),bottom:u(n.bottom/o),left:u(n.left/r),x:u(n.left/r),y:u(n.top/o)}}function l(e){var t=a(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function d(e){return e?(e.nodeName||"").toLowerCase():null}function h(e){return((s(e)?e.ownerDocument:e.document)||window.document).documentElement}function m(e){return p(h(e)).left+l(e).scrollLeft}function v(e){return a(e).getComputedStyle(e)}function y(e){var t=v(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function g(e,t,n){void 0===n&&(n=!1);var r,o,i=f(t),s=f(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return 1!==n||1!==r}(t),c=h(t),u=p(e,s),v={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(i||!i&&!n)&&(("body"!==d(t)||y(c))&&(v=(r=t)!==a(r)&&f(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:l(r)),f(t)?((g=p(t,!0)).x+=t.clientLeft,g.y+=t.clientTop):c&&(g.x=m(c))),{x:u.left+v.scrollLeft-g.x,y:u.top+v.scrollTop-g.y,width:u.width,
|
||||
height:u.height}}function b(e){var t=p(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 w(e){return"html"===d(e)?e:e.assignedSlot||e.parentNode||(c(e)?e.host:null)||h(e)}function x(e,t){var n;void 0===t&&(t=[]);var r=function e(t){return["html","body","#document"].indexOf(d(t))>=0?t.ownerDocument.body:f(t)&&y(t)?t:e(w(t))}(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=a(r),s=o?[i].concat(i.visualViewport||[],y(r)?r:[]):r,c=t.concat(s);return o?c:c.concat(x(w(s)))}function O(e){return["table","td","th"].indexOf(d(e))>=0}function E(e){return f(e)&&"fixed"!==v(e).position?e.offsetParent:null}function k(e){for(var t=a(e),n=E(e);n&&O(n)&&"static"===v(n).position;)n=E(n);return n&&("html"===d(n)||"body"===d(n)&&"static"===v(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&f(e)&&"fixed"===v(e).position)return null;for(var n=w(e);f(n)&&["html","body"].indexOf(d(n))<0;){var r=v(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}var j="top",R="bottom",D="right",S="left",A=[j,R,D,S],M=A.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),P=[].concat(A,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),C=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function U(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=t.get(r);o&&e(o)}})),r.push(o)}(e)})),r}var L={placement:"bottom",modifiers:[],strategy:"absolute"};function T(){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 B(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?L:o;return function(e,t,n){void 0===n&&(n=i);var o,a,f={placement:"bottom",orderedModifiers:[],options:Object.assign({},L,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,p={state:f,setOptions:function(n){l(),f.options=Object.assign({},i,f.options,n),f.scrollParents={reference:s(e)?x(e):e.contextElement?x(e.contextElement):[],popper:x(t)};var o=function(e){var t=U(e);return C.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.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}),{});return Object.keys(t).map((function(e){return t[e]}))
|
||||
}([].concat(r,f.options.modifiers)));return f.orderedModifiers=o.filter((function(e){return e.enabled})),f.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:f,name:t,instance:p,options:r});c.push(i||function(){})}})),p.update()},forceUpdate:function(){if(!u){var e=f.elements,t=e.reference,n=e.popper;if(T(t,n)){f.rects={reference:g(t,k(n),"fixed"===f.options.strategy),popper:b(n)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach((function(e){return f.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<f.orderedModifiers.length;r++)if(!0!==f.reset){var o=f.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,c=o.name;"function"==typeof i&&(f=i({state:f,options:s,name:c,instance:p})||f)}else f.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){p.forceUpdate(),e(f)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){l(),u=!0}};if(!T(e,t))return p;function l(){c.forEach((function(e){return e()})),c=[]}return p.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),p}}var W={passive:!0};const H={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,s=r.resize,f=void 0===s||s,c=a(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,W)})),f&&c.addEventListener("resize",n.update,W),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,W)})),f&&c.removeEventListener("resize",n.update,W)}},data:{}};function V(e){return e.split("-")[0]}function I(e){return e.split("-")[1]}function q(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function N(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?V(o):null,a=o?I(o):null,s=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2;switch(i){case j:t={x:s,y:n.y-r.height};break;case R:t={x:s,y:n.y+n.height};break;case D:t={x:n.x+n.width,y:f};break;case S:t={x:n.x-r.width,y:f};break;default:t={x:n.x,y:n.y}}var c=i?q(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case"start":t[c]=t[c]-(n[u]/2-r[u]/2);break;case"end":t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}const F={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=N({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var _=Math.max,z=Math.min,$=Math.round,X={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Y(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.offsets,s=e.position,f=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:$($(t*r)/r)||0,y:$($(n*r)/r)||0}
|
||||
}(i):"function"==typeof u?u(i):i,l=p.x,d=void 0===l?0:l,m=p.y,y=void 0===m?0:m,g=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),w=S,x=j,O=window;if(c){var E=k(n),A="clientHeight",M="clientWidth";E===a(n)&&"static"!==v(E=h(n)).position&&(A="scrollHeight",M="scrollWidth"),E=E,o===j&&(x=R,y-=E[A]-r.height,y*=f?1:-1),o===S&&(w=D,d-=E[M]-r.width,d*=f?1:-1)}var P,C=Object.assign({position:s},c&&X);return f?Object.assign({},C,((P={})[x]=b?"0":"",P[w]=g?"0":"",P.transform=(O.devicePixelRatio||1)<2?"translate("+d+"px, "+y+"px)":"translate3d("+d+"px, "+y+"px, 0)",P)):Object.assign({},C,((t={})[x]=b?y+"px":"",t[w]=g?d+"px":"",t.transform="",t))}var G={left:"right",right:"left",bottom:"top",top:"bottom"};function J(e){return e.replace(/left|right|bottom|top/g,(function(e){return G[e]}))}var K={start:"end",end:"start"};function Q(e){return e.replace(/start|end/g,(function(e){return K[e]}))}function Z(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&c(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ee(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function te(e,t){return"viewport"===t?ee(function(e){var t=a(e),n=h(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,f=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,f=r.offsetTop)),{width:o,height:i,x:s+m(e),y:f}}(e)):f(t)?function(e){var t=p(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ee(function(e){var t,n=h(e),r=l(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=_(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=_(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+m(e),f=-r.scrollTop;return"rtl"===v(o||n).direction&&(s+=_(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:f}}(h(e)))}function ne(e,t,n){var r="clippingParents"===t?function(e){var t=x(w(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&f(e)?k(e):e;return s(n)?t.filter((function(e){return s(e)&&Z(e,n)&&"body"!==d(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=te(e,n);return t.top=_(r.top,t.top),t.right=z(r.right,t.right),t.bottom=z(r.bottom,t.bottom),t.left=_(r.left,t.left),t}),te(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function re(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function oe(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ie(e,t){void 0===t&&(t={})
|
||||
;var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,f=n.rootBoundary,c=void 0===f?"viewport":f,u=n.elementContext,l=void 0===u?"popper":u,d=n.altBoundary,m=void 0!==d&&d,v=n.padding,y=void 0===v?0:v,g=re("number"!=typeof y?y:oe(y,A)),b="popper"===l?"reference":"popper",w=e.elements.reference,x=e.rects.popper,O=e.elements[m?b:l],E=ne(s(O)?O:O.contextElement||h(e.elements.popper),a,c),k=p(w),S=N({reference:k,element:x,strategy:"absolute",placement:o}),M=ee(Object.assign({},x,S)),P="popper"===l?M:k,C={top:E.top-P.top+g.top,bottom:P.bottom-E.bottom+g.bottom,left:E.left-P.left+g.left,right:P.right-E.right+g.right},U=e.modifiersData.offset;if("popper"===l&&U){var L=U[o];Object.keys(C).forEach((function(e){var t=[D,R].indexOf(e)>=0?1:-1,n=[j,R].indexOf(e)>=0?"y":"x";C[e]+=L[n]*t}))}return C}function ae(e,t,n){return _(e,z(t,n))}function se(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 fe(e){return[j,D,R,S].some((function(t){return e[t]>=0}))}var ce=B({defaultModifiers:[H,F,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(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:V(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Y(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,Y(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})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(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];f(o)&&d(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)})))}))},effect:function(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}),{});f(r)&&d(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=P.reduce((function(e,n){return e[n]=function(e,t,n){
|
||||
var r=V(e),o=[S,j].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,[S,D].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}},{name:"flip",enabled:!0,phase:"main",fn:function(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,u=n.boundary,p=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,v=t.options.placement,y=V(v),g=f||(y===v||!h?[J(v)]:function(e){if("auto"===V(e))return[];var t=J(e);return[Q(e),t,Q(t)]}(v)),b=[v].concat(g).reduce((function(e,n){return e.concat("auto"===V(n)?function(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?P:f,u=I(r),p=u?s?M:M.filter((function(e){return I(e)===u})):A,l=p.filter((function(e){return c.indexOf(e)>=0}));0===l.length&&(l=p);var d=l.reduce((function(t,n){return t[n]=ie(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[V(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:u,rootBoundary:p,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,E=!0,k=b[0],C=0;C<b.length;C++){var U=b[C],L=V(U),T="start"===I(U),B=[j,R].indexOf(L)>=0,W=B?"width":"height",H=ie(t,{placement:U,boundary:u,rootBoundary:p,altBoundary:l,padding:c}),q=B?T?D:S:T?R:j;w[W]>x[W]&&(q=J(q));var N=J(q),F=[];if(i&&F.push(H[L]<=0),s&&F.push(H[q]<=0,H[N]<=0),F.every((function(e){return e}))){k=U,E=!1;break}O.set(U,F)}if(E)for(var _=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},z=h?3:1;z>0;z--){if("break"===_(z))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(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,u=n.altBoundary,p=n.padding,l=n.tether,d=void 0===l||l,h=n.tetherOffset,m=void 0===h?0:h,v=ie(t,{boundary:f,rootBoundary:c,padding:p,altBoundary:u}),y=V(t.placement),g=I(t.placement),w=!g,x=q(y),O="x"===x?"y":"x",E=t.modifiersData.popperOffsets,A=t.rects.reference,M=t.rects.popper,P="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C={x:0,y:0};if(E){if(i||s){var U="y"===x?j:S,L="y"===x?R:D,T="y"===x?"height":"width",B=E[x],W=E[x]+v[U],H=E[x]-v[L],N=d?-M[T]/2:0,F="start"===g?A[T]:M[T],$="start"===g?-M[T]:-A[T],X=t.elements.arrow,Y=d&&X?b(X):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0
|
||||
},J=G[U],K=G[L],Q=ae(0,A[T],Y[T]),Z=w?A[T]/2-N-Q-J-P:F-Q-J-P,ee=w?-A[T]/2+N+Q+K+P:$+Q+K+P,te=t.elements.arrow&&k(t.elements.arrow),ne=te?"y"===x?te.clientTop||0:te.clientLeft||0:0,re=t.modifiersData.offset?t.modifiersData.offset[t.placement][x]:0,oe=E[x]+Z-re-ne,se=E[x]+ee-re;if(i){var fe=ae(d?z(W,oe):W,B,d?_(H,se):H);E[x]=fe,C[x]=fe-B}if(s){var ce="x"===x?j:S,ue="x"===x?R:D,pe=E[O],le=pe+v[ce],de=pe-v[ue],he=ae(d?z(le,oe):le,pe,d?_(de,se):de);E[O]=he,C[O]=he-pe}}t.modifiersData[r]=C}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=V(n.placement),f=q(s),c=[S,D].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return re("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:oe(e,A))}(o.padding,n),p=b(i),l="y"===f?j:S,d="y"===f?R:D,h=n.rects.reference[c]+n.rects.reference[f]-a[f]-n.rects.popper[c],m=a[f]-n.rects.reference[f],v=k(i),y=v?"y"===f?v.clientHeight||0:v.clientWidth||0:0,g=h/2-m/2,w=u[l],x=y-p[c]-u[d],O=y/2-p[c]/2+g,E=ae(w,O,x),M=f;n.modifiersData[r]=((t={})[M]=E,t.centerOffset=E-O,t)}},effect:function(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)))&&Z(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ie(t,{elementContext:"reference"}),s=ie(t,{altBoundary:!0}),f=se(a,r),c=se(s,o,i),u=fe(f),p=fe(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),ue=n(61970),pe=n.n(ue),le=[],de=function(){},he=function(){return Promise.resolve(null)},me=[];function ve(e){var t=e.placement,n=void 0===t?"bottom":t,a=e.strategy,s=void 0===a?"absolute":a,f=e.modifiers,c=void 0===f?me:f,u=e.referenceElement,p=e.onFirstUpdate,l=e.innerRef,d=e.children,h=r.useContext(o.ManagerReferenceNodeContext),m=r.useState(null),v=m[0],y=m[1],g=r.useState(null),b=g[0],w=g[1];r.useEffect((function(){(0,i.setRef)(l,v)}),[l,v]);var x=r.useMemo((function(){return{placement:n,strategy:s,onFirstUpdate:p,modifiers:[].concat(c,[{name:"arrow",enabled:null!=b,options:{element:b}}])}}),[n,s,p,c,b]),O=function(e,t,n){void 0===n&&(n={});var o=r.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||le},s=r.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"}},attributes:{}}),f=s[0],c=s[1],u=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);c({styles:(0,i.fromEntries)(n.map((function(e){
|
||||
return[e,t.styles[e]||{}]}))),attributes:(0,i.fromEntries)(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),p=r.useMemo((function(){var e={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[u,{name:"applyStyles",enabled:!1}])};return pe()(o.current,e)?o.current||e:(o.current=e,e)}),[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,u]),l=r.useRef();return(0,i.useIsomorphicLayoutEffect)((function(){l.current&&l.current.setOptions(p)}),[p]),(0,i.useIsomorphicLayoutEffect)((function(){if(null!=e&&null!=t){var r=(n.createPopper||ce)(e,t,p);return l.current=r,function(){r.destroy(),l.current=null}}}),[e,t,n.createPopper]),{state:l.current?l.current.state:null,styles:f.styles,attributes:f.attributes,update:l.current?l.current.update:null,forceUpdate:l.current?l.current.forceUpdate:null}}(u||h,v,x),E=O.state,k=O.styles,j=O.forceUpdate,R=O.update,D=r.useMemo((function(){return{ref:y,style:k.popper,placement:E?E.placement:n,hasPopperEscaped:E&&E.modifiersData.hide?E.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:E&&E.modifiersData.hide?E.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:k.arrow,ref:w},forceUpdate:j||de,update:R||he}}),[y,w,n,E,k,R,j]);return(0,i.unwrapArray)(d)(D)}},64118:(e,t,n)=>{"use strict";n.d(t,{Reference:()=>f});var r=n(59496),o=n(91190),i=n.n(o),a=n(2998),s=n(58949);function f(e){var t=e.children,n=e.innerRef,o=r.useContext(a.ManagerReferenceNodeSetterContext),f=r.useCallback((function(e){(0,s.setRef)(n,e),(0,s.safeInvoke)(o,e)}),[n,o]);return r.useEffect((function(){return function(){return(0,s.setRef)(n,null)}})),r.useEffect((function(){i()(Boolean(o),"`Reference` should not be used outside of a `Manager` component.")}),[o]),(0,s.unwrapArray)(t)({ref:f})}},58949:(e,t,n)=>{"use strict";n.d(t,{unwrapArray:()=>o,safeInvoke:()=>i,setRef:()=>a,fromEntries:()=>s,useIsomorphicLayoutEffect:()=>f});var r=n(59496),o=function(e){return Array.isArray(e)?e[0]:e},i=function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},a=function(e,t){if("function"==typeof e)return i(e,t);null!=e&&(e.current=t)},s=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},f="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect},91190:e=>{"use strict";var t=function(){};e.exports=t}}]);
|
||||
Reference in New Issue
Block a user