text: var __awaiter=this&&this.__awaiter||function(t,r,e,i){function n(t){return t instanceof e?t:new e((function(r){r(t)}))}return new(e||(e=Promise))((function(e,a){function o(t){try{d(i.next(t))}catch(t){a(t)}}function s(t){try{d(i["throw"](t))}catch(t){a(t)}}function d(t){t.done?e(t.value):n(t.value).then(o,s)}d((i=i.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(r){return d([t,r])}}function d(o){if(i)throw new TypeError("Generator is already executing.");while(e)try{if(i=1,n&&(a=o[0]&2?n["return"]:o[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;if(n=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;n=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(a=e.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){e.label=o[1];break}if(o[0]===6&&e.label<a[1]){e.label=a[1];a=o;break}if(a&&e.label<a[2]){e.label=a[2];e.ops.push(o);break}if(a[2])e.ops.pop();e.trys.pop();continue}o=r.call(t,e)}catch(t){o=[6,t];n=0}finally{i=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-ddd3d159.system.js","./p-5e4b8ffe.system.js","./p-c02911cd.system.js","./p-eabc78da.system.js","./p-344de14e.system.js","./p-749e6e2c.system.js","./p-7e283b4e.system.js","./p-0b5de7fa.system.js","./p-b0e05d5f.system.js","./p-d0c60236.system.js","./p-9fa1fcc4.system.js"],(function(t){"use strict";var r,e,i,n,a,o,s,d,c,l,u,h,f,b,p,m,w,v,g,k,y,x,D;return{setters:[function(t){r=t.r;e=t.c;i=t.e;n=t.h;a=t.H;o=t.g},function(t){s=t.g},function(t){d=t.B;c=t.b;l=t.c;u=t.g;h=t.e;f=t.f},function(t){b=t.C;p=t.a;m=t.d},function(t){w=t.d},function(t){v=t.c},function(t){g=t.g;k=t.h;y=t.r},function(t){x=t.g},function(t){D=t.createGesture},function(){},function(){}],execute:function(){var T=this;var E=function(t,r,e){if(e===void 0){e=400}var i=g(t);var n=v().addElement(i.querySelector("bkkr-backdrop")).fromTo("opacity",0,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]);var a=v().addElement(i.querySelectorAll(".drawer-wrapper, .drawer-shadow")).beforeStyles({opacity:1}).fromTo("transform","translateY(100vh)","translateY(0vh)");var o=v().addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(e).addAnimation(a);if(r){var s=g(r);var d=v().addElement(s).beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"});o.addAnimation(d)}o.addAnimation(n);return o};var S=function(t,r,e){if(e===void 0){e=400}var i=g(t);var n=v().addElement(i.querySelector("bkkr-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0);var a=v().addElement(i.querySelectorAll(".drawer-wrapper, .drawer-shadow")).beforeStyles({opacity:1}).fromTo("transform","translateY(0vh)","translateY(100vh)");var o=v().addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(e).addAnimation(a);if(r){var s=g(r);var d=v().addElement(s).beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish((function(t){if(t!==1){return}r.style.setProperty("overflow","")}));o.addAnimation(d)}o.addAnimation(n);return o};var C=function(t,r,e){var i=t.offsetHeight;var n=false;var a=function(t){return __awaiter(T,void 0,void 0,(function(){var r,e,i;return __generator(this,(function(n){switch(n.label){case 0:r=t.event.target;if(r===null||!r.closest){return[2,true]}if(r.classList.contains("choices-item")){return[2,false]}e=r.closest("bkkr-content");if(!e)return[3,2];return[4,e.getScrollElement()];case 1:i=n.sent();if(i.scrollTop<=0){return[2,true]}return[3,3];case 2:if(r){return[2,true]}n.label=3;case 3:return[2,false]}}))}))};var o=function(){r.progressStart(true,n?1:0)};var s=function(t){var e=k(1e-4,t.deltaY/i,.9999);r.progressStep(e)};var d=function(t){var a=t.velocityY;var o=k(1e-4,t.deltaY/i,.9999);var s=(t.deltaY+a*1e3)/i;var d=s>=.5;var l=d?-.001:.001;if(!d){r.easing("cubic-bezier(1, 0, 0.68, 0.28)");l+=x([0,0],[1,0],[.68,.28],[1,1],o)[0]}else{r.easing("cubic-bezier(0.32, 0.72, 0, 1)");l+=x([0,0],[.32,.72],[0,1],[1,1],o)[0]}var u=t.event.target;var h=u.closest("bkkr-content");if(h){h.scrollY=true}var f=d?_(o*i,a):_((1-o)*i,a);n=d;c.enable(false);r.onFinish((function(){if(!d){c.enable(true)}})).progressEnd(d?1:0,l,f);if(d){e()}};var c=D({el:t,gestureName:"drawerSwipeToClose",gesturePriority:40,direction:"y",threshold:10,canStart:a,onStart:o,onMove:s,onEnd:d});return c};var _=function(t,r){return k(400,t/Math.abs(r*1.1),500)};var j=":host{--min-width:auto;--min-height:auto;--overflow:hidden;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--bkkr-overlay-background, var(--bkkr-background-color, #fff));--box-shadow:0 15px 25px 0 rgba(var(--box-shadow-color, 0, 0, 0), 0.1), 0 6px 20px 0 rgba(var(--box-shadow-color, 0, 0, 0), 0.12), 0 13.2px 40px 0 rgba(var(--box-shadow-color, 0, 0, 0), 0.08);--height:100vw;--max-width:720px;--max-height:min(720px, calc(90vh - var(--safe-area-top)));--border-radius:1.5em;--backdrop-opacity:0;--width:100%;--margin-bottom:0px;--safe-area-top:0px;--safe-area-bottom:0px;--safe-area-right:0px;--safe-area-left:0px;top:0;right:0;bottom:0;left:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center;-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out;outline:none;contain:strict;pointer-events:none}:host(.drawer-interactive) .drawer-wrapper,:host(.drawer-interactive) bkkr-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}:host(:first-of-type){--backdrop-opacity:var(--bkkr-backdrop-opacity, 0.3)}.drawer-shadow,.drawer-wrapper{margin-bottom:var(--margin-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:calc(var(--height) - max(30px, var(--safe-area-top)) - 10px - var(--margin-bottom));min-height:var(--min-height);max-height:var(--max-height);-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);will-change:opacity, transform;z-index:10}.drawer-shadow{bottom:0;border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);position:absolute;pointer-events:none;background:transparent;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow)}.drawer-wrapper-inner{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%;height:100%;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:content;overflow:var(--overflow);z-index:10}bkkr-content:first-child{--padding-top:0;--padding-bottom:calc(var(--bkkr-spacer, 16px) + var(--safe-area-bottom))}:host(.drawer-card){--width:calc(100% - var(--bkkr-spacer, 16px));--height:calc(100vw - var(--bkkr-spacer, 16px));--margin-bottom:calc(var(--safe-area-bottom) + (var(--bkkr-spacer, 16px) / 2))}:host(.drawer-card) .drawer-shadow,:host(.drawer-card) .drawer-wrapper-inner{border-radius:var(--border-radius)}.drawer-indicator{--offset-top:34px}.drawer-indicator-wrapper{--indicator-height:6px;--indicator-width:64px;--indicator-color:var(--bkkr-text-color, #000);--indicator-transition:0.2s transform cubic-bezier(0.25, 1.11, 0.78, 1.59), 0.2s box-shadow cubic-bezier(0.25, 1.11, 0.78, 1.59);--indicator-transform:translate3d(0, -50%, 0);top:0;left:50%;position:absolute;width:var(--indicator-width);height:32px;-webkit-transform:translateX(-50%);transform:translateX(-50%);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:11}.drawer-indicator-wrapper .drawer-indicator-bar{top:50%;bottom:0;left:0;border-radius:var(--indicator-height);position:absolute;width:100%;height:var(--indicator-height);-webkit-transform:var(--indicator-transform);transform:var(--indicator-transform);-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition);background-color:rgba(var(--bkkr-text-color-rgb, 0, 0, 0), 0.2);overflow:hidden}.drawer-indicator-wrapper .drawer-indicator-bar-fill{top:0;position:absolute;width:100%;height:100%;background-color:var(--indicator-color)}.drawer-indicator-animated .drawer-indicator-bar-fill{-webkit-transform:scale(0, 1);transform:scale(0, 1);-webkit-transform-origin:left center;transform-origin:left center;-webkit-animation-name:countdown;animation-name:countdown;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-delay:400ms;animation-delay:400ms;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes countdown{100%{-webkit-transform:scale(1, 1);transform:scale(1, 1)}}@keyframes countdown{100%{-webkit-transform:scale(1, 1);transform:scale(1, 1)}}.drawer-indicator-button{--indicator-button-backround:var(--bkkr-background-color, #fff);--indicator-button-backround-hover:var(--indicator-button-backround);--indicator-button-backround-active:var(--indicator-button-backround);--indicator-button-color:var(--bkkr-text-color, #000);--indicator-button-radius:50%;--indicator-button-transform:scale(1.1);--indicator-button-transition:0.2s transform cubic-bezier(0.32, 0.72, 0, 1), 0.2s background cubic-bezier(0.32, 0.72, 0, 1);top:-48px;right:var(--bkkr-spacer);border-radius:var(--indicator-button-radius);display:none;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:36px;height:36px;-webkit-transition:var(--indicator-button-transition);transition:var(--indicator-button-transition);background:var(--indicator-button-backround);color:var(--indicator-button-color);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10}.indicator-icon{font-size:20px}@media screen and (min-width: 720px) and (min-height: 375px){:host{--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1)}.drawer-indicator:not(.drawer-indicator-animated){--offset-top:var(--bkkr-spacer)}.drawer-indicator:not(.drawer-indicator-animated) .drawer-indicator-wrapper{display:none}.drawer-indicator:not(.drawer-indicator-animated) .drawer-indicator-button{display:-ms-flexbox;display:flex}}@media (any-hover: hover){.drawer-indicator-wrapper:hover{--indicator-transform:translate3d(0, -100%, 0);--indicator-transition:0.2s transform ease-out, 0.2s box-shadow ease-out}.drawer-indicator-button:hover{-webkit-transform:var(--indicator-button-transform);transform:var(--indicator-button-transform);background:var(--indicator-button-backround-hover)}}.drawer-indicator-button.state-activated{-webkit-transform:var(--indicator-button-transform);transform:var(--indicator-button-transform);background:var(--indicator-button-backround-active)}@media (prefers-reduced-motion: reduce){.drawer-indicator-bar,.drawer-indicator-button{-webkit-transition:none;transition:none}}";var P=t("bkkr_drawer",function(){function t(t){var i=this;r(this,t);this.didPresent=e(this,"bkkrDrawerDidPresent",7);this.willPresent=e(this,"bkkrDrawerWillPresent",7);this.willDismiss=e(this,"bkkrDrawerWillDismiss",7);this.didDismiss=e(this,"bkkrDrawerDidDismiss",7);this.didPresentShorthand=e(this,"didPresent",7);this.willPresentShorthand=e(this,"willPresent",7);this.willDismissShorthand=e(this,"willDismiss",7);this.didDismissShorthand=e(this,"didDismiss",7);this.drawerIndex=z++;this.coreDelegate=b();this.inline=false;this.gestureAnimationDismissing=false;this.presented=false;this.keyboardClose=true;this.card=false;this.duration=0;this.backdropDismiss=true;this.showBackdrop=true;this.animated=true;this.indicator=true;this.closeButton=true;this.swipeToClose=true;this.presentingElement=document.querySelector("bkkr-root")||document.body;this.isOpen=false;this.configureTriggerInteraction=function(){var t=i,r=t.trigger,e=t.el,n=t.destroyTriggerInteraction;if(n){n()}var a=r!==undefined?document.getElementById(r):null;if(!a){return}var o=function(t,r){var e=function(){r.present()};t.addEventListener("click",e);return function(){t.removeEventListener("click",e)}};i.destroyTriggerInteraction=o(a,e)};this.onBackdropTap=function(){i.dismiss(undefined,d)};this.onDismiss=function(t){t.stopPropagation();t.preventDefault();i.dismiss()};this.onLifecycle=function(t){var r=i.usersElement;var e=B[t.type];if(r&&e){var n=new CustomEvent(e,{bubbles:false,cancelable:false,detail:t.detail});r.dispatchEvent(n)}}}t.prototype.swipeToCloseChanged=function(t){if(this.gesture){this.gesture.enable(t)}else if(t){this.initSwipeToClose()}};t.prototype.onIsOpenChange=function(t,r){if(t===true&&r===false){this.present()}else if(t===false&&r===true){this.dismiss()}};t.prototype.onTriggerChange=function(){this.configureTriggerInteraction()};t.prototype.connectedCallback=function(){c(this.el)};t.prototype.componentWillLoad=function(){this.drawerId=this.el.hasAttribute("id")?this.el.getAttribute("id"):"bkkr-drawer-"+this.drawerIndex};t.prototype.componentDidLoad=function(){var t=this;if(this.isOpen===true){y((function(){return t.present()}))}this.configureTriggerInteraction()};t.prototype.getDelegate=function(t){if(t===void 0){t=false}if(this.workingDelegate&&!t){return{delegate:this.workingDelegate,inline:this.inline}}var r=this.el.parentNode;var e=this.inline=r!==null&&r.tagName!=="BKKR-ROOT"&&r.tagName!=="BODY";var i=this.workingDelegate=e?this.delegate||this.coreDelegate:this.delegate;return{inline:e,delegate:i}};t.prototype.present=function(){return __awaiter(this,void 0,void 0,(function(){var t,r,e,n,a;var o=this;return __generator(this,(function(s){switch(s.label){case 0:if(this.presented){return[2]}if(!(this.currentTransition!==undefined))return[3,2];return[4,this.currentTransition];case 1:s.sent();s.label=2;case 2:t=Object.assign(Object.assign({},this.componentProps),{drawer:this.el});r=this.getDelegate(true),e=r.inline,n=r.delegate;a=this;return[4,p(n,this.el,this.component,["bkkr-page"],t,e)];case 3:a.usersElement=s.sent();return[4,w(this.usersElement)];case 4:s.sent();i((function(){return o.el.classList.add("show-drawer")}));this.currentTransition=l(this,"drawerEnter",E,this.presentingElement);return[4,this.currentTransition];case 5:s.sent();this.currentTransition=undefined;if(this.swipeToClose){this.initSwipeToClose()}if(this.duration>0){this.durationTimeout=setTimeout((function(){return o.dismiss(undefined,"timeout")}),this.duration)}return[2]}}))}))};t.prototype.initSwipeToClose=function(){var t=this;var r=this.leaveAnimation||S;var e=this.animation=r(this.el,this.presentingElement);this.gesture=C(this.el,e,(function(){t.gestureAnimationDismissing=true;t.animation.onFinish((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.dismiss(undefined,"gesture")];case 1:t.sent();this.gestureAnimationDismissing=false;return[2]}}))}))}))}));this.gesture.enable(true)};t.prototype.dismiss=function(t,r){return __awaiter(this,void 0,void 0,(function(){var e,i,n;var a=this;return __generator(this,(function(o){switch(o.label){case 0:if(this.gestureAnimationDismissing&&r!=="gesture"){return[2,false]}if(this.durationTimeout){clearTimeout(this.durationTimeout);if(this.gesture.running()){if(this.duration>0){this.durationTimeout=setTimeout((function(){return a.dismiss(undefined,"timeout")}),this.duration)}return[2,false]}}if(!(this.currentTransition!==undefined))return[3,2];return[4,this.currentTransition];case 1:o.sent();o.label=2;case 2:e=u.get(this)||[];this.currentTransition=h(this,t,r,"drawerLeave",S,this.presentingElement);return[4,this.currentTransition];case 3:i=o.sent();if(!i)return[3,5];this.currentTransition=h(this,t,r,"drawerLeave",S,this.presentingElement);n=this.getDelegate().delegate;return[4,m(n,this.usersElement)];case 4:o.sent();if(this.animation){this.animation.destroy()}e.forEach((function(t){return t.destroy()}));o.label=5;case 5:this.animation=undefined;this.currentTransition=undefined;return[2,i]}}))}))};t.prototype.onDidDismiss=function(){return f(this.el,"bkkrDrawerDidDismiss")};t.prototype.onWillDismiss=function(){return f(this.el,"bkkrDrawerWillDismiss")};t.prototype.render=function(){var t=this;var r=this,e=r.presented,i=r.drawerId,o=r.closeIcon;var d=this.duration>0;return n(a,{"aria-drawer":"true",tabindex:"-1",class:Object.assign(Object.assign({},s(this.cssClass)),{"drawer-card":this.card,"overlay-hidden":true,"drawer-interactive":e}),id:i,style:{zIndex:""+(2e4+this.overlayIndex)},onBkkrBackdropTap:this.onBackdropTap,onBkkrDismiss:this.onDismiss,onBkkrDrawerDidPresent:this.onLifecycle,onBkkrDrawerWillPresent:this.onLifecycle,onBkkrDrawerWillDismiss:this.onLifecycle,onBkkrDrawerDidDismiss:this.onLifecycle},n("bkkr-backdrop",{visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),n("div",{class:"drawer-shadow"}),n("div",{role:"dialog",class:{"drawer-indicator":this.indicator,"drawer-indicator-animated":d,"drawer-wrapper":true},part:"content"},(this.indicator||d)&&n("div",{class:"drawer-indicator-wrapper state-activatable",onClick:function(){return t.dismiss()}},n("span",{class:"drawer-indicator-bar"},n("span",{class:"drawer-indicator-bar-fill",style:{animationDuration:this.duration+"ms"}}))),this.closeButton&&!d&&n("div",{class:"drawer-indicator-button state-activatable",onClick:function(){return t.dismiss()}},n("bkkr-icon",{class:"indicator-icon",icon:o!==null&&o!==void 0?o:"times"})),n("div",{class:"drawer-wrapper-inner"},n("slot",null))))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{swipeToClose:["swipeToCloseChanged"],isOpen:["onIsOpenChange"],trigger:["onTriggerChange"]}},enumerable:false,configurable:true});return t}());var B={bkkrDrawerDidPresent:"bkkrViewDidEnter",bkkrDrawerWillPresent:"bkkrViewWillEnter",bkkrDrawerWillDismiss:"bkkrViewWillLeave",bkkrDrawerDidDismiss:"bkkrViewDidLeave"};var z=0;P.style=j}}}));