-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path8082-es5.abe02bd14d0d3e83cdf0.js
1 lines (1 loc) · 34.2 KB
/
8082-es5.abe02bd14d0d3e83cdf0.js
1
!function(){function e(e,t,r){return(t=i(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return r};var e,r={},o=Object.prototype,n=o.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",p=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var n=t&&t.prototype instanceof m?t:m,a=Object.create(n.prototype),s=new A(o||[]);return i(a,"_invoke",{value:D(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=u;var f="suspendedStart",h="executing",v="completed",g={};function m(){}function y(){}function w(){}var b={};l(b,s,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==o&&n.call(k,s)&&(b=k);var P=w.prototype=m.prototype=Object.create(b);function T(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function E(e,t){function r(o,i,a,s){var c=d(e[o],e,i);if("throw"!==c.type){var p=c.arg,l=p.value;return l&&"object"==typeof l&&n.call(l,"__await")?t.resolve(l.__await).then(function(e){r("next",e,a,s)},function(e){r("throw",e,a,s)}):t.resolve(l).then(function(e){p.value=e,a(p)},function(e){return r("throw",e,a,s)})}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t(function(t,o){r(e,n,t,o)})}return o=o?o.then(i,i):i()}})}function D(t,r,o){var n=f;return function(i,a){if(n===h)throw new Error("Generator is already running");if(n===v){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var c=L(s,o);if(c){if(c===g)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(n===f)throw n=v,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);n=h;var p=d(t,r,o);if("normal"===p.type){if(n=o.done?v:"suspendedYield",p.arg===g)continue;return{value:p.arg,done:o.done}}"throw"===p.type&&(n=v,o.method="throw",o.arg=p.arg)}}}function L(t,r){var o=r.method,n=t.iterator[o];if(n===e)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var i=d(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=w,i(P,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:y,configurable:!0}),y.displayName=l(w,p,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,l(e,p,"GeneratorFunction")),e.prototype=Object.create(P),e},r.awrap=function(e){return{__await:e}},T(E.prototype),l(E.prototype,c,function(){return this}),r.AsyncIterator=E,r.async=function(e,t,o,n,i){void 0===i&&(i=Promise);var a=new E(u(e,t,o,n),i);return r.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},T(P),l(P,p,"Generator"),l(P,s,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),r.keys=function(e){var t=Object(e),r=[];for(var o in t)r.push(o);return r.reverse(),function e(){for(;r.length;){var o=r.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},r.values=O,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(o,n){return s.type="throw",s.arg=t,r.next=o,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),p=n.call(a,"finallyLoc");if(c&&p){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!p)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;I(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,o){return this.delegate={iterator:O(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=e),g}},r}function r(e,t,r,o,n,i,a){try{var s=e[i](a),c=s.value}catch(p){return void r(p)}s.done?t(c):Promise.resolve(c).then(o,n)}function o(e){return function(){var t=this,o=arguments;return new Promise(function(n,i){var a=e.apply(t,o);function s(e){r(a,n,i,s,c,"next",e)}function c(e){r(a,n,i,s,c,"throw",e)}s(void 0)})}}function n(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,i(o.key),o)}}function i(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(self.webpackChunkv2x_frontend=self.webpackChunkv2x_frontend||[]).push([[8082],{3397:function(e,t,r){"use strict";r.d(t,{a:function(){return i},b:function(){return n},p:function(){return o}});var o=function(e){for(var t,r=arguments.length,o=new Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];return(t=console).warn.apply(t,["[Ionic Warning]: ".concat(e)].concat(o))},n=function(e){for(var t,r=arguments.length,o=new Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];return(t=console).error.apply(t,["[Ionic Error]: ".concat(e)].concat(o))},i=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return console.error("<".concat(e.tagName.toLowerCase(),"> must be used inside ").concat(r.join(" or "),"."))}},8082:function(r,i,a){"use strict";a.r(i),a.d(i,{ion_popover:function(){return N}});var s=a(1429),c=a(8931),p=a(3409),l=a(1444),u=a(3397),d=a(4221),f=a(4881),h=a(3645),v=a(5296);a(1494);var g=function(e,t,r){var o=t.getBoundingClientRect(),n=o.height,i=o.width;return"cover"===e&&r&&(i=r.getBoundingClientRect().width),{contentWidth:i,contentHeight:n}},m=function(e,t){return t&&"ION-ITEM"===t.tagName?e.findIndex(function(e){return e===t}):-1},y=function(e){var t=(0,l.g)(e).querySelector("button");t&&(0,l.r)(function(){return t.focus()})},w=function(e,t,r,o,n,i,a,s,c,p,l){var u,d={top:0,left:0,width:0,height:0};switch(i){case"event":if(!l)return c;d={top:l.clientY,left:l.clientX,width:1,height:1};break;case"trigger":default:var f=l,h=p||(null===(u=null==f?void 0:f.detail)||void 0===u?void 0:u.ionShadowTarget)||(null==f?void 0:f.target);if(!h)return c;var v=h.getBoundingClientRect();d={top:v.top,left:v.left,width:v.width,height:v.height}}var g=T(a,d,t,r,o,n,e),m=E(s,a,d,t,r),y=g.top+m.top,w=g.left+m.left,x=P(a,o,n,y,w,t,r,e),k=x.arrowTop,D=x.arrowLeft,L=b(a,s,e);return{top:y,left:w,referenceCoordinates:d,arrowTop:k,arrowLeft:D,originX:L.originX,originY:L.originY}},b=function(e,t,r){switch(e){case"top":return{originX:x(t),originY:"bottom"};case"bottom":return{originX:x(t),originY:"top"};case"left":return{originX:"right",originY:k(t)};case"right":return{originX:"left",originY:k(t)};case"start":return{originX:r?"left":"right",originY:k(t)};case"end":return{originX:r?"right":"left",originY:k(t)}}},x=function(e){switch(e){case"start":return"left";case"center":return"center";case"end":return"right"}},k=function(e){switch(e){case"start":return"top";case"center":return"center";case"end":return"bottom"}},P=function(e,t,r,o,n,i,a,s){var c={arrowTop:o+a/2-t/2,arrowLeft:n+i-t/2},p={arrowTop:o+a/2-t/2,arrowLeft:n-1.5*t};switch(e){case"top":return{arrowTop:o+a,arrowLeft:n+i/2-t/2};case"bottom":return{arrowTop:o-r,arrowLeft:n+i/2-t/2};case"left":return c;case"right":return p;case"start":return s?p:c;case"end":return s?c:p;default:return{arrowTop:0,arrowLeft:0}}},T=function(e,t,r,o,n,i,a){var s={top:t.top,left:t.left-r-n},c={top:t.top,left:t.left+t.width+n};switch(e){case"top":return{top:t.top-o-i,left:t.left};case"right":return c;case"bottom":return{top:t.top+t.height+i,left:t.left};case"left":return s;case"start":return a?c:s;case"end":return a?s:c}},E=function(e,t,r,o,n){switch(e){case"center":return L(t,r,o,n);case"end":return D(t,r,o,n);case"start":default:return{top:0,left:0}}},D=function(e,t,r,o){switch(e){case"start":case"end":case"left":case"right":return{top:-(o-t.height),left:0};case"top":case"bottom":default:return{top:0,left:-(r-t.width)}}},L=function(e,t,r,o){switch(e){case"start":case"end":case"left":case"right":return{top:-(o/2-t.height/2),left:0};case"top":case"bottom":default:return{top:0,left:-(r/2-t.width/2)}}},S=function(e,t,r,o,n,i,a,s,c,p,l,u){var d,f=arguments.length>12&&void 0!==arguments[12]?arguments[12]:0,h=arguments.length>13&&void 0!==arguments[13]?arguments[13]:0,v=arguments.length>14&&void 0!==arguments[14]?arguments[14]:0,g=f,m=h,y=r,w=t,b=p,x=l,k=!1,P=!1,T=u?u.top+u.height:i/2-s/2,E=u?u.height:0,D=!1;return y<o+c?(y=o,k=!0,b="left"):a+o+y+c>n&&(P=!0,y=n-a-o,b="right"),T+E+s>i&&("top"===e||"bottom"===e)&&(T-s>0?(g=(w=Math.max(12,T-s-E-(v-1)))+s,x="bottom",D=!0):d=o),{top:w,left:y,bottom:d,originX:b,originY:x,checkSafeAreaLeft:k,checkSafeAreaRight:P,arrowTop:g,arrowLeft:m,addPopoverBottomClass:D}},I=function(e,t){var r,o=t.event,n=t.size,i=t.trigger,a=t.reference,s=t.side,c=t.align,p=e.ownerDocument,u="rtl"===p.dir,d=p.defaultView.innerWidth,f=p.defaultView.innerHeight,h=(0,l.g)(e),m=h.querySelector(".popover-content"),y=h.querySelector(".popover-arrow"),b=i||(null===(r=null==o?void 0:o.detail)||void 0===r?void 0:r.ionShadowTarget)||(null==o?void 0:o.target),x=g(n,m,b),k=x.contentWidth,P=x.contentHeight,T=function(e){if(!e)return{arrowWidth:0,arrowHeight:0};var t=e.getBoundingClientRect();return{arrowWidth:t.width,arrowHeight:t.height}}(y),E=T.arrowWidth,D=T.arrowHeight,L=w(u,k,P,E,D,a,s,c,{top:f/2-P/2,left:d/2-k/2,originX:u?"right":"left",originY:"top"},i,o),I="cover"===n?0:5,A="cover"===n?0:25,O=S(s,L.top,L.left,I,d,f,k,P,A,L.originX,L.originY,L.referenceCoordinates,L.arrowTop,L.arrowLeft,D),C=O.originX,N=O.originY,j=O.top,W=O.left,q=O.bottom,Y=O.checkSafeAreaLeft,_=O.checkSafeAreaRight,X=O.arrowTop,z=O.arrowLeft,B=O.addPopoverBottomClass,F=(0,v.c)(),H=(0,v.c)(),M=(0,v.c)();return H.addElement(h.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),M.addElement(h.querySelector(".popover-wrapper")).fromTo("opacity",.01,1),F.easing("ease").duration(100).beforeAddWrite(function(){"cover"===n&&e.style.setProperty("--width","".concat(k,"px")),B&&e.classList.add("popover-bottom"),void 0!==q&&m.style.setProperty("bottom","".concat(q,"px"));var t="".concat(W,"px");Y&&(t="".concat(W,"px + var(--ion-safe-area-left, 0)")),_&&(t="".concat(W,"px - var(--ion-safe-area-right, 0)")),m.style.setProperty("top","calc(".concat(j,"px + var(--offset-y, 0))")),m.style.setProperty("left","calc(".concat(t," + var(--offset-x, 0))")),m.style.setProperty("transform-origin","".concat(N," ").concat(C)),null!==y&&(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;return!(!r&&!o||"top"!==e&&"bottom"!==e&&t)}(s,L.top!==j||L.left!==W,o,i)?(y.style.setProperty("top","calc(".concat(X,"px + var(--offset-y, 0))")),y.style.setProperty("left","calc(".concat(z,"px + var(--offset-x, 0))"))):y.style.setProperty("display","none"))}).addAnimation([H,M])},A=function(e){var t=(0,l.g)(e),r=t.querySelector(".popover-content"),o=t.querySelector(".popover-arrow"),n=(0,v.c)(),i=(0,v.c)(),a=(0,v.c)();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),a.addElement(t.querySelector(".popover-wrapper")).fromTo("opacity",.99,0),n.easing("ease").afterAddWrite(function(){e.style.removeProperty("--width"),e.classList.remove("popover-bottom"),r.style.removeProperty("top"),r.style.removeProperty("left"),r.style.removeProperty("bottom"),r.style.removeProperty("transform-origin"),o&&(o.style.removeProperty("top"),o.style.removeProperty("left"),o.style.removeProperty("display"))}).duration(300).addAnimation([i,a])},O=function(e,t){var r,o=t.event,n=t.size,i=t.trigger,a=t.reference,s=t.side,c=t.align,p=e.ownerDocument,u="rtl"===p.dir,d=p.defaultView.innerWidth,f=p.defaultView.innerHeight,h=(0,l.g)(e),m=h.querySelector(".popover-content"),y=i||(null===(r=null==o?void 0:o.detail)||void 0===r?void 0:r.ionShadowTarget)||(null==o?void 0:o.target),b=g(n,m,y),x=b.contentWidth,k=b.contentHeight,P=w(u,x,k,0,0,a,s,c,{top:f/2-k/2,left:d/2-x/2,originX:u?"right":"left",originY:"top"},i,o),T="cover"===n?0:12,E=S(s,P.top,P.left,T,d,f,x,k,0,P.originX,P.originY,P.referenceCoordinates),D=E.originX,L=E.originY,I=E.top,A=E.left,O=E.bottom,C=(0,v.c)(),N=(0,v.c)(),j=(0,v.c)(),W=(0,v.c)(),q=(0,v.c)();return N.addElement(h.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),j.addElement(h.querySelector(".popover-wrapper")).duration(150).fromTo("opacity",.01,1),W.addElement(m).beforeStyles({top:"calc(".concat(I,"px + var(--offset-y, 0px))"),left:"calc(".concat(A,"px + var(--offset-x, 0px))"),"transform-origin":"".concat(L," ").concat(D)}).beforeAddWrite(function(){void 0!==O&&m.style.setProperty("bottom","".concat(O,"px"))}).fromTo("transform","scale(0.8)","scale(1)"),q.addElement(h.querySelector(".popover-viewport")).fromTo("opacity",.01,1),C.easing("cubic-bezier(0.36,0.66,0.04,1)").duration(300).beforeAddWrite(function(){"cover"===n&&e.style.setProperty("--width","".concat(x,"px")),"bottom"===L&&e.classList.add("popover-bottom")}).addAnimation([N,j,W,q])},C=function(e){var t=(0,l.g)(e),r=t.querySelector(".popover-content"),o=(0,v.c)(),n=(0,v.c)(),i=(0,v.c)();return n.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),i.addElement(t.querySelector(".popover-wrapper")).fromTo("opacity",.99,0),o.easing("ease").afterAddWrite(function(){e.style.removeProperty("--width"),e.classList.remove("popover-bottom"),r.style.removeProperty("top"),r.style.removeProperty("left"),r.style.removeProperty("bottom"),r.style.removeProperty("transform-origin")}).duration(150).addAnimation([n,i])},N=function(){function r(e){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(0,s.r)(this,e),this.didPresent=(0,s.e)(this,"ionPopoverDidPresent",7),this.willPresent=(0,s.e)(this,"ionPopoverWillPresent",7),this.willDismiss=(0,s.e)(this,"ionPopoverWillDismiss",7),this.didDismiss=(0,s.e)(this,"ionPopoverDidDismiss",7),this.didPresentShorthand=(0,s.e)(this,"didPresent",7),this.willPresentShorthand=(0,s.e)(this,"willPresent",7),this.willDismissShorthand=(0,s.e)(this,"willDismiss",7),this.didDismissShorthand=(0,s.e)(this,"didDismiss",7),this.ionMount=(0,s.e)(this,"ionMount",7),this.parentPopover=null,this.popoverIndex=W++,this.coreDelegate=(0,p.C)(),this.inline=!1,this.focusDescendantOnPresent=!1,this.presented=!1,this.hasController=!1,this.keyboardClose=!0,this.backdropDismiss=!0,this.showBackdrop=!0,this.translucent=!1,this.animated=!0,this.triggerAction="click",this.size="auto",this.dismissOnSelect=!1,this.reference="trigger",this.side="bottom",this.arrow=!0,this.isOpen=!1,this.keyboardEvents=!1,this.keepContentsMounted=!1,this.onBackdropTap=function(){n.dismiss(void 0,d.B)},this.onLifecycle=function(e){var t=n.usersElement,r=j[e.type];if(t&&r){var o=new CustomEvent(r,{bubbles:!1,cancelable:!1,detail:e.detail});t.dispatchEvent(o)}},this.configureTriggerInteraction=function(){var e=n.trigger,r=n.triggerAction,i=n.el,a=n.destroyTriggerInteraction;if(a&&a(),void 0!==e){var s=n.triggerEl=void 0!==e?document.getElementById(e):null;s?n.destroyTriggerInteraction=function(e,r,n){var i,a=[];switch(r){case"hover":var s;a=[{eventName:"mouseenter",callback:(i=o(t().mark(function e(r){return t().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.stopPropagation(),s&&clearTimeout(s),s=setTimeout(function(){(0,l.r)(function(){n.presentFromTrigger(r),s=void 0})},100);case 1:case"end":return e.stop()}},e)})),function(e){return i.apply(this,arguments)})},{eventName:"mouseleave",callback:function(e){s&&clearTimeout(s);var t=e.relatedTarget;t&&t.closest("ion-popover")!==n&&n.dismiss(void 0,void 0,!1)}},{eventName:"click",callback:function(e){return e.stopPropagation()}},{eventName:"ionPopoverActivateTrigger",callback:function(e){return n.presentFromTrigger(e,!0)}}];break;case"context-menu":a=[{eventName:"contextmenu",callback:function(e){e.preventDefault(),n.presentFromTrigger(e)}},{eventName:"click",callback:function(e){return e.stopPropagation()}},{eventName:"ionPopoverActivateTrigger",callback:function(e){return n.presentFromTrigger(e,!0)}}];break;case"click":default:a=[{eventName:"click",callback:function(e){return n.presentFromTrigger(e)}},{eventName:"ionPopoverActivateTrigger",callback:function(e){return n.presentFromTrigger(e,!0)}}]}return a.forEach(function(t){var r=t.eventName,o=t.callback;return e.addEventListener(r,o)}),e.setAttribute("data-ion-popover-trigger","true"),function(){a.forEach(function(t){var r=t.eventName,o=t.callback;return e.removeEventListener(r,o)}),e.removeAttribute("data-ion-popover-trigger")}}(s,r,i):(0,u.p)('A trigger element with the ID "'.concat(e,'" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on ion-popover.'),n.el)}},this.configureKeyboardInteraction=function(){var e,r,i=n.destroyKeyboardInteraction,a=n.el;i&&i(),n.destroyKeyboardInteraction=(e=a,r=function(){var r=o(t().mark(function r(o){var n,i,a,s,c,p,l,u,d;return t().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=document.activeElement,a=[],"ION-POPOVER"!==(s=null===(n=o.target)||void 0===n?void 0:n.tagName)&&"ION-ITEM"!==s){t.next=31;break}try{a=Array.from(e.querySelectorAll("ion-item:not(ion-popover ion-popover *):not([disabled])"))}catch(r){}t.t0=o.key,t.next="ArrowLeft"===t.t0?8:"ArrowDown"===t.t0?14:"ArrowUp"===t.t0?18:"Home"===t.t0?22:"End"===t.t0?26:"ArrowRight"===t.t0||" "===t.t0||"Enter"===t.t0?30:31;break;case 8:return t.next=10,e.getParentPopover();case 10:if(t.t1=t.sent,!t.t1){t.next=13;break}e.dismiss(void 0,void 0,!1);case 13:return t.abrupt("break",31);case 14:return o.preventDefault(),void 0!==(c=function(e,t){return e[m(e,t)+1]}(a,i))&&y(c),t.abrupt("break",31);case 18:return o.preventDefault(),void 0!==(p=function(e,t){return e[m(e,t)-1]}(a,i))&&y(p),t.abrupt("break",31);case 22:return o.preventDefault(),void 0!==(l=a[0])&&y(l),t.abrupt("break",31);case 26:return o.preventDefault(),void 0!==(u=a[a.length-1])&&y(u),t.abrupt("break",31);case 30:i&&i.hasAttribute("data-ion-popover-trigger")&&(d=new CustomEvent("ionPopoverActivateTrigger"),i.dispatchEvent(d));case 31:case"end":return t.stop()}},r)}));return function(e){return r.apply(this,arguments)}}(),e.addEventListener("keydown",r),function(){return e.removeEventListener("keydown",r)})},this.configureDismissInteraction=function(){var e=n.destroyDismissInteraction,t=n.parentPopover,r=n.triggerAction,o=n.triggerEl,i=n.el;t&&o&&(e&&e(),n.destroyDismissInteraction=function(e,t,r,o){var n=[],i=(0,l.g)(o).querySelector(".popover-content");switch(t){case"hover":n=[{eventName:"mouseenter",callback:function(t){document.elementFromPoint(t.clientX,t.clientY)!==e&&r.dismiss(void 0,void 0,!1)}}];break;case"context-menu":case"click":default:n=[{eventName:"click",callback:function(t){t.target.closest("[data-ion-popover-trigger]")!==e?r.dismiss(void 0,void 0,!1):t.stopPropagation()}}]}return n.forEach(function(e){var t=e.eventName,r=e.callback;return i.addEventListener(t,r)}),function(){n.forEach(function(e){var t=e.eventName,r=e.callback;return i.removeEventListener(t,r)})}}(o,r,i,t))}}var i,a,v,g,w,b,x;return i=r,a=[{key:"onTriggerChange",value:function(){this.configureTriggerInteraction()}},{key:"onIsOpenChange",value:function(e,t){!0===e&&!1===t?this.present():!1===e&&!0===t&&this.dismiss()}},{key:"connectedCallback",value:function(){var e=this.configureTriggerInteraction,t=this.el;(0,d.e)(t),e()}},{key:"disconnectedCallback",value:function(){var e=this.destroyTriggerInteraction;e&&e()}},{key:"componentWillLoad",value:function(){this.popoverId=this.el.hasAttribute("id")?this.el.getAttribute("id"):"ion-popover-".concat(this.popoverIndex),this.parentPopover=this.el.closest("ion-popover:not(#".concat(this.popoverId,")")),void 0===this.alignment&&(this.alignment="ios"===(0,c.b)(this)?"center":"start")}},{key:"componentDidLoad",value:function(){var e=this,t=this.parentPopover;!0===this.isOpen&&(0,l.r)(function(){return e.present()}),t&&(0,l.a)(t,"ionPopoverWillDismiss",function(){e.dismiss(void 0,void 0,!1)})}},{key:"presentFromTrigger",value:(x=o(t().mark(function e(r){var o,n=arguments;return t().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=n.length>1&&void 0!==n[1]&&n[1],this.focusDescendantOnPresent=o,e.next=4,this.present(r);case 4:this.focusDescendantOnPresent=!1;case 5:case"end":return e.stop()}},e,this)})),function(e){return x.apply(this,arguments)})},{key:"getDelegate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.workingDelegate&&!e)return{delegate:this.workingDelegate,inline:this.inline};var t=this.inline=null!==this.el.parentNode&&!this.hasController;return{inline:t,delegate:this.workingDelegate=t?this.delegate||this.coreDelegate:this.delegate}}},{key:"present",value:(b=o(t().mark(function e(r){var n,i,a,s=this;return t().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.presented){e.next=2;break}return e.abrupt("return");case 2:if(e.t0=void 0!==this.currentTransition,!e.t0){e.next=6;break}return e.next=6,this.currentTransition;case 6:return n=this.getDelegate(!0),i=n.inline,a=n.delegate,e.next=9,(0,p.a)(a,this.el,this.component,["popover-viewport"],this.componentProps,i);case 9:return this.usersElement=e.sent,e.next=12,(0,h.e)(this.usersElement);case 12:return this.keyboardEvents||this.configureKeyboardInteraction(),this.configureDismissInteraction(),this.ionMount.emit(),e.abrupt("return",new Promise(function(e){(0,l.r)(function(){(0,l.r)(o(t().mark(function o(){return t().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return s.currentTransition=(0,d.d)(s,"popoverEnter",I,O,{event:r||s.event,size:s.size,trigger:s.triggerEl,reference:s.reference,side:s.side,align:s.alignment}),t.next=3,s.currentTransition;case 3:s.currentTransition=void 0,s.focusDescendantOnPresent&&(0,d.j)(s.el,s.el),e();case 6:case"end":return t.stop()}},o)})))})}));case 16:case"end":return e.stop()}},e,this)})),function(e){return b.apply(this,arguments)})},{key:"dismiss",value:(w=o(t().mark(function e(r,o){var n,i,a,s,c,l,u=arguments;return t().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!(u.length>2&&void 0!==u[2])||u[2],e.t0=void 0!==this.currentTransition,!e.t0){e.next=5;break}return e.next=5,this.currentTransition;case 5:return i=this.destroyKeyboardInteraction,a=this.destroyDismissInteraction,n&&this.parentPopover&&this.parentPopover.dismiss(r,o,n),this.currentTransition=(0,d.f)(this,r,o,"popoverLeave",A,C,this.event),e.next=9,this.currentTransition;case 9:if(!(s=e.sent)){e.next=15;break}return i&&(i(),this.destroyKeyboardInteraction=void 0),a&&(a(),this.destroyDismissInteraction=void 0),c=this.getDelegate(),l=c.delegate,e.next=15,(0,p.d)(l,this.usersElement);case 15:return e.abrupt("return",(this.currentTransition=void 0,s));case 16:case"end":return e.stop()}},e,this)})),function(e,t){return w.apply(this,arguments)})},{key:"getParentPopover",value:(g=o(t().mark(function e(){return t().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.parentPopover);case 1:case"end":return e.stop()}},e,this)})),function(){return g.apply(this,arguments)})},{key:"onDidDismiss",value:function(){return(0,d.g)(this.el,"ionPopoverDidDismiss")}},{key:"onWillDismiss",value:function(){return(0,d.g)(this.el,"ionPopoverWillDismiss")}},{key:"render",value:function(){var t=this,r=(0,c.b)(this),o=this.onLifecycle,n=this.popoverId,i=this.parentPopover,a=this.dismissOnSelect,p=this.side,l=this.arrow,u=this.htmlAttributes,d=(0,c.a)("desktop"),h=l&&!i;return(0,s.h)(s.H,Object.assign({"aria-modal":"true","no-router":!0,tabindex:"-1"},u,{style:{zIndex:"".concat(2e4+this.overlayIndex)},id:n,class:Object.assign(Object.assign({},(0,f.g)(this.cssClass)),e(e(e(e(e(e({},r,!0),"popover-translucent",this.translucent),"overlay-hidden",!0),"popover-desktop",d),"popover-side-".concat(p),!0),"popover-nested",!!i)),onIonPopoverDidPresent:o,onIonPopoverWillPresent:o,onIonPopoverWillDismiss:o,onIonPopoverDidDismiss:o,onIonBackdropTap:this.onBackdropTap}),!i&&(0,s.h)("ion-backdrop",{tappable:this.backdropDismiss,visible:this.showBackdrop,part:"backdrop"}),(0,s.h)("div",{class:"popover-wrapper ion-overlay-wrapper",onClick:a?function(){return t.dismiss()}:void 0},h&&(0,s.h)("div",{class:"popover-arrow",part:"arrow"}),(0,s.h)("div",{class:"popover-content",part:"content"},(0,s.h)("slot",null))))}},{key:"el",get:function(){return(0,s.i)(this)}}],v=[{key:"watchers",get:function(){return{trigger:["onTriggerChange"],triggerAction:["onTriggerChange"],isOpen:["onIsOpenChange"]}}}],a&&n(i.prototype,a),v&&n(i,v),Object.defineProperty(i,"prototype",{writable:!1}),r}(),j={ionPopoverDidPresent:"ionViewDidEnter",ionPopoverWillPresent:"ionViewWillEnter",ionPopoverWillDismiss:"ionViewWillLeave",ionPopoverDidDismiss:"ionViewDidLeave"},W=0;N.style={ios:':host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{opacity:0;z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}:host{--width:200px;--max-height:90%;--box-shadow:none;--backdrop-opacity:var(--ion-backdrop-opacity, 0.08)}:host(.popover-desktop){--box-shadow:0px 4px 16px 0px rgba(0, 0, 0, 0.12)}.popover-content{border-radius:10px}:host(.popover-desktop) .popover-content{border:0.5px solid var(--ion-color-step-100, #e6e6e6)}.popover-arrow{display:block;position:absolute;width:20px;height:10px;overflow:hidden}.popover-arrow::after{left:3px;top:3px;border-radius:3px;position:absolute;width:14px;height:14px;-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--background);content:"";z-index:10}[dir=rtl] .popover-arrow::after,:host-context([dir=rtl]) .popover-arrow::after{left:unset;right:unset;right:3px}:host(.popover-bottom) .popover-arrow{top:auto;bottom:-10px}:host(.popover-bottom) .popover-arrow::after{top:-6px}:host(.popover-side-left) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host(.popover-side-right) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host(.popover-side-top) .popover-arrow{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host(.popover-side-start) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host-context([dir=rtl]):host(.popover-side-start) .popover-arrow,:host-context([dir=rtl]).popover-side-start .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host(.popover-side-end) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host-context([dir=rtl]):host(.popover-side-end) .popover-arrow,:host-context([dir=rtl]).popover-side-end .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.popover-translucent) .popover-content,:host(.popover-translucent) .popover-arrow::after{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}',md:":host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{opacity:0;z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}:host{--width:250px;--max-height:90%;--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}.popover-content{border-radius:4px;-webkit-transform-origin:left top;transform-origin:left top}[dir=rtl] .popover-content,:host-context([dir=rtl]) .popover-content{-webkit-transform-origin:right top;transform-origin:right top}.popover-viewport{-webkit-transition-delay:100ms;transition-delay:100ms}"}},4881:function(r,n,i){"use strict";i.d(n,{c:function(){return s},g:function(){return c},h:function(){return a},o:function(){return l}});var a=function(e,t){return null!==t.closest(e)},s=function(t,r){return"string"==typeof t&&t.length>0?Object.assign(e({"ion-color":!0},"ion-color-".concat(t),!0),r):r},c=function(e){var t={};return function(e){return void 0!==e?(Array.isArray(e)?e:e.split(" ")).filter(function(e){return null!=e}).map(function(e){return e.trim()}).filter(function(e){return""!==e}):[]}(e).forEach(function(e){return t[e]=!0}),t},p=/^[a-z][a-z0-9+\-.]*:/,l=function(){var e=o(t().mark(function e(r,o,n,i){var a;return t().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null==r||"#"===r[0]||p.test(r)){e.next=4;break}if(!(a=document.querySelector("ion-router"))){e.next=4;break}return e.abrupt("return",(null!=o&&o.preventDefault(),a.push(r,n,i)));case 4:return e.abrupt("return",!1);case 5:case"end":return e.stop()}},e)}));return function(t,r,o,n){return e.apply(this,arguments)}}()}}])}();