text: var __awaiter=this&&this.__awaiter||function(t,e,i,r){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function a(t){try{d(r.next(t))}catch(e){o(e)}}function s(t){try{d(r["throw"](t))}catch(e){o(e)}}function d(t){t.done?i(t.value):n(t.value).then(a,s)}d((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,n,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return d([t,e])}}function d(a){if(r)throw new TypeError("Generator is already executing.");while(i)try{if(r=1,n&&(o=a[0]&2?n["return"]:a[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;if(n=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;n=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(s){a=[6,s];n=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-14808d2e.system.js","./p-0b20bb44.system.js","./p-90f9da43.system.js","./p-75439a7f.system.js","./p-b6779b96.system.js","./p-8f802e77.system.js","./p-d9d848f2.system.js","./p-c65a4b58.system.js"],(function(t,e){"use strict";var i,r,n,o,a,s,d,l,c,p,h,u,f,m,g,v,b,k,y,x,w,M,D;return{setters:[function(t){i=t.r;r=t.e;n=t.h;o=t.H;a=t.i},function(t){s=t.b},function(t){d=t.c;l=t.f;c=t.a},function(t){p=t.c},function(){},function(t){h=t.p;u=t.B;f=t.i;m=t.e;g=t.d;v=t.f;b=t.g;k=t.s},function(t){y=t.b;x=t.h;w=t.a},function(t){M=t.h;D=t.g}],execute:function(){var S=function(t,e){var i=V(t,e);if(i!==undefined){return i}var r=E((new Date).toISOString());return V(r,e)};var C=function(t,e,i){if(e===undefined){return undefined}var r=[];var n=false;ft.forEach((function(o,a){if(t.indexOf(o.f)>-1){var s="{"+a+"}";var d=z(o.f,e[o.k],e,i);if(!n&&d!==undefined&&e[o.k]!=null){n=true}r.push(s,d||"");t=t.replace(o.f,s)}}));if(!n){return undefined}for(var o=0;o<r.length;o+=2){t=t.replace(r[o],r[o+1])}return t};var z=function(t,e,i,r){if(t===tt||t===et){try{e=new Date(i.year,i.month-1,i.day).getDay();if(t===tt){return(r.dayNames?r.dayNames:mt)[e]}return(r.dayShortNames?r.dayShortNames:gt)[e]}catch(n){}return undefined}if(t===ht){return i!==undefined&&i.hour!==undefined?i.hour<12?"AM":"PM":e?e.toUpperCase():""}if(t===ut){return i!==undefined&&i.hour!==undefined?i.hour<12?"am":"pm":e||""}if(e==null){return""}if(t===$||t===K||t===it||t===nt||t===dt||t===ct){return q(e)}if(t===G){return U(e)}if(t===R){return(r.monthNames?r.monthNames:vt)[e-1]}if(t===X){return(r.monthShortNames?r.monthShortNames:bt)[e-1]}if(t===at||t===st){if(e===0){return"12"}if(e>12){e-=12}if(t===at&&e<10){return"0"+e}}return e.toString()};var F=function(t,e,i){var r=[];if(t===G||t===$){if(i.year===undefined||e.year===undefined){throw new Error("min and max year is undefined")}for(var n=i.year;n>=e.year;n--){r.push(n)}}else if(t===R||t===X||t===K||t===Q||t===at||t===st){for(var n=1;n<13;n++){r.push(n)}}else if(t===tt||t===et||t===it||t===rt){for(var n=1;n<32;n++){r.push(n)}}else if(t===nt||t===ot){for(var n=0;n<24;n++){r.push(n)}}else if(t===dt||t===lt){for(var n=0;n<60;n++){r.push(n)}}else if(t===ct||t===pt){for(var n=0;n<60;n++){r.push(n)}}else if(t===ht||t===ut){r.push("am","pm")}return r};var Y=function(t,e,i,r,n){if(r===void 0){r=0}if(n===void 0){n=0}return parseInt("1"+U(t)+q(e)+q(i)+q(r)+q(n),10)};var N=function(t){return Y(t.year,t.month,t.day,t.hour,t.minute)};var I=function(t,e){return t===4||t===6||t===9||t===11?30:t===2?T(e)?29:28:31};var T=function(t){return t%4===0&&t%100!==0||t%400===0};var O=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var _=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var E=function(t){var e=null;if(t!=null&&t!==""){e=_.exec(t);if(e){e.unshift(undefined,undefined);e[2]=e[3]=undefined}else{e=O.exec(t)}}if(e===null){return undefined}for(var i=1;i<8;i++){e[i]=e[i]!==undefined?parseInt(e[i],10):undefined}var r=0;if(e[9]&&e[10]){r=parseInt(e[10],10)*60;if(e[11]){r+=parseInt(e[11],10)}if(e[9]==="-"){r*=-1}}return{year:e[1],month:e[2],day:e[3],hour:e[4],minute:e[5],second:e[6],millisecond:e[7],tzOffset:r,ampm:e[4]>=12?"pm":"am"}};var P=function(t,e){if(t===void 0){t=""}if(e===void 0){e=""}if(t===undefined||t===null){t=""}if(t.length===10||t.length===7||t.length===4){t+=" "}var i=typeof t==="string"&&t.length>0?new Date(t):new Date;var r=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));if(e&&e.length>0){return new Date(i.getTime()-j(r,e))}return r};var j=function(t,e){var i=new Date(t.toLocaleString("en-US",{timeZone:"utc"}));var r=new Date(t.toLocaleString("en-US",{timeZone:e}));return i.getTime()-r.getTime()};var H=function(t,e,i){if(!e||typeof e==="string"){var r=P(e,i);if(!Number.isNaN(r.getTime())){e=r.toISOString()}}if(e&&e!==""){if(typeof e==="string"){e=E(e);if(e){Object.assign(t,e);return true}}else if(e.year||e.hour||e.month||e.day||e.minute||e.second){if(e.ampm!==undefined&&e.hour!==undefined){if(t.ampm!==undefined&&t.hour!==undefined){if(t.ampm==="am"&&(t.hour===0||e.hour.value===12)){e.ampm.value="pm"}if(t.ampm==="pm"&&(t.hour===12||e.hour.value===12)){e.ampm.value="am"}}e.hour.value=e.ampm.value==="pm"?e.hour.value===12?12:e.hour.value+12:e.hour.value===12?0:e.hour.value}for(var n=0,o=Object.keys(e);n<o.length;n++){var a=o[n];t[a]=e[a].value}return true}else if(e.ampm){e.hour={value:e.hour?e.hour.value:e.ampm.value==="pm"?t.hour<12?t.hour+12:t.hour:t.hour>=12?t.hour-12:t.hour};t["hour"]=e["hour"].value;t["ampm"]=e["ampm"].value;return true}console.warn('Error parsing date: "'+e+'". Please provide a valid ISO 8601 datetime format: https://www.w3.org/TR/NOTE-datetime')}else{for(var s in t){if(t.hasOwnProperty(s)){delete t[s]}}}return false};var A=function(t){var e=[];t=t.replace(/[^\w\s]/gi," ");ft.forEach((function(e){if(e.f.length>1&&t.indexOf(e.f)>-1&&t.indexOf(e.f+e.f.charAt(0))<0){t=t.replace(e.f," "+e.f+" ")}}));var i=t.split(" ").filter((function(t){return t.length>0}));i.forEach((function(t,r){ft.forEach((function(n){if(t===n.f){if(t===ht||t===ut){if(e.indexOf(st)<0&&e.indexOf(at)<0||kt.indexOf(i[r-1])===-1){return}}e.push(t)}}))}));return e};var V=function(t,e){if(e===ht||e===ut){return t.hour<12?"am":"pm"}if(e===at||e===st){return t.hour>12?t.hour-12:t.hour===0?12:t.hour}return t[W(e)]};var W=function(t){for(var e in ft){if(ft[e].f===t){return ft[e].k}}return undefined};var B=function(t){var e="";if(t.year!==undefined){e=U(t.year);if(t.month!==undefined){e+="-"+q(t.month);if(t.day!==undefined){e+="-"+q(t.day);if(t.hour!==undefined){e+="T"+q(t.hour)+":"+q(t.minute)+":"+q(t.second);if(t.millisecond>0){e+="."+Z(t.millisecond)}if(t.tzOffset===undefined){e+="Z"}else{e+=(t.tzOffset>0?"+":"-")+q(Math.floor(Math.abs(t.tzOffset/60)))+":"+q(t.tzOffset%60)}}}}}else if(t.hour!==undefined){e=q(t.hour)+":"+q(t.minute);if(t.second!==undefined){e+=":"+q(t.second);if(t.millisecond!==undefined){e+="."+Z(t.millisecond)}}}return e};var L=function(t,e){if(t==null){return undefined}if(typeof t==="string"){t=t.replace(/\[|\]/g,"").split(",")}var i;if(Array.isArray(t)){i=t.map((function(t){return t.toString().trim()}))}if(i===undefined||i.length===0){console.warn('Invalid "'+e+'Names". Must be an array of strings, or a comma separated string.')}return i};var J=function(t,e){if(typeof t==="string"){t=t.replace(/\[|\]|\s/g,"").split(",")}var i;if(Array.isArray(t)){i=t.map((function(t){return parseInt(t,10)})).filter(isFinite)}else{i=[t]}if(i.length===0){console.warn('Invalid "'+e+'Values". Must be an array of numbers, or a comma separated string of numbers.')}return i};var q=function(t){return("0"+(t!==undefined?Math.abs(t):"0")).slice(-2)};var Z=function(t){return("00"+(t!==undefined?Math.abs(t):"0")).slice(-3)};var U=function(t){return("000"+(t!==undefined?Math.abs(t):"0")).slice(-4)};var G="YYYY";var $="YY";var R="MMMM";var X="MMM";var K="MM";var Q="M";var tt="DDDD";var et="DDD";var it="DD";var rt="D";var nt="HH";var ot="H";var at="hh";var st="h";var dt="mm";var lt="m";var ct="ss";var pt="s";var ht="A";var ut="a";var ft=[{f:G,k:"year"},{f:R,k:"month"},{f:tt,k:"day"},{f:X,k:"month"},{f:et,k:"day"},{f:$,k:"year"},{f:K,k:"month"},{f:it,k:"day"},{f:nt,k:"hour"},{f:at,k:"hour"},{f:dt,k:"minute"},{f:ct,k:"second"},{f:Q,k:"month"},{f:rt,k:"day"},{f:ot,k:"hour"},{f:st,k:"hour"},{f:lt,k:"minute"},{f:pt,k:"second"},{f:ht,k:"ampm"},{f:ut,k:"ampm"}];var mt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var gt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var vt=["January","February","March","April","May","June","July","August","September","October","November","December"];var bt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var kt=[at,st,dt,lt,ct,pt];var yt=":host{padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;min-width:16px;min-height:1.2em;font-family:var(--ion-font-family, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;z-index:2}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}:host(.in-item){position:static}:host(.datetime-placeholder){color:var(--placeholder-color)}:host(.datetime-disabled){opacity:0.3;pointer-events:none}:host(.datetime-readonly){pointer-events:none}button{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none}[dir=rtl] button,:host-context([dir=rtl]) button{left:unset;right:unset;right:0}button::-moz-focus-inner{border:0}.datetime-text{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-ms-flex:1;flex:1;min-height:inherit;direction:ltr;overflow:inherit}[dir=rtl] .datetime-text,:host-context([dir=rtl]) .datetime-text{direction:rtl}:host{--placeholder-color:var(--ion-color-step-400, #999999);--padding-top:10px;--padding-end:10px;--padding-bottom:10px;--padding-start:20px}";var xt=":host{padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;min-width:16px;min-height:1.2em;font-family:var(--ion-font-family, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;z-index:2}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}:host(.in-item){position:static}:host(.datetime-placeholder){color:var(--placeholder-color)}:host(.datetime-disabled){opacity:0.3;pointer-events:none}:host(.datetime-readonly){pointer-events:none}button{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none}[dir=rtl] button,:host-context([dir=rtl]) button{left:unset;right:unset;right:0}button::-moz-focus-inner{border:0}.datetime-text{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-ms-flex:1;flex:1;min-height:inherit;direction:ltr;overflow:inherit}[dir=rtl] .datetime-text,:host-context([dir=rtl]) .datetime-text{direction:rtl}:host{--placeholder-color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));--padding-top:10px;--padding-end:0;--padding-bottom:11px;--padding-start:16px}";var wt=t("ion_datetime",function(){function t(t){var e=this;i(this,t);this.ionCancel=r(this,"ionCancel",7);this.ionChange=r(this,"ionChange",7);this.ionFocus=r(this,"ionFocus",7);this.ionBlur=r(this,"ionBlur",7);this.ionStyle=r(this,"ionStyle",7);this.inputId="ion-dt-"+St++;this.locale={};this.datetimeMin={};this.datetimeMax={};this.datetimeValue={};this.isExpanded=false;this.name=this.inputId;this.disabled=false;this.readonly=false;this.displayFormat="MMM D, YYYY";this.cancelText="Cancel";this.doneText="Done";this.onClick=function(){e.setFocus();e.open()};this.onFocus=function(){e.ionFocus.emit()};this.onBlur=function(){e.ionBlur.emit()}}t.prototype.disabledChanged=function(){this.emitStyle()};t.prototype.valueChanged=function(){this.updateDatetimeValue(this.value);this.emitStyle();this.ionChange.emit({value:this.value})};t.prototype.componentWillLoad=function(){this.locale={monthNames:L(this.monthNames,"monthNames"),monthShortNames:L(this.monthShortNames,"monthShortNames"),dayNames:L(this.dayNames,"dayNames"),dayShortNames:L(this.dayShortNames,"dayShortNames")};this.updateDatetimeValue(this.value);this.emitStyle()};t.prototype.open=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;var i=this;return __generator(this,(function(r){switch(r.label){case 0:if(this.disabled||this.isExpanded){return[2]}t=this.generatePickerOptions();return[4,h.create(t)];case 1:e=r.sent();this.isExpanded=true;e.onDidDismiss().then((function(){i.isExpanded=false;i.setFocus()}));e.addEventListener("ionPickerColChange",(function(t){return __awaiter(i,void 0,void 0,(function(){var i,r,n,o;return __generator(this,(function(a){i=t.detail;r=i.selectedIndex;n=i.options;o={};o[i.name]={value:n[r].value};if(i.name!=="ampm"&&this.datetimeValue.ampm!==undefined){o["ampm"]={value:this.datetimeValue.ampm}}this.updateDatetimeValue(o);e.columns=this.generateColumns();return[2]}))}))}));return[4,e.present()];case 2:r.sent();return[2]}}))}))};t.prototype.emitStyle=function(){this.ionStyle.emit({interactive:true,datetime:true,"has-placeholder":this.placeholder!=null,"has-value":this.hasValue(),"interactive-disabled":this.disabled})};t.prototype.updateDatetimeValue=function(t){H(this.datetimeValue,t,this.displayTimezone)};t.prototype.generatePickerOptions=function(){var t=this;var e=s(this);this.locale={monthNames:L(this.monthNames,"monthNames"),monthShortNames:L(this.monthShortNames,"monthShortNames"),dayNames:L(this.dayNames,"dayNames"),dayShortNames:L(this.dayShortNames,"dayShortNames")};var i=Object.assign(Object.assign({mode:e},this.pickerOptions),{columns:this.generateColumns()});var r=i.buttons;if(!r||r.length===0){i.buttons=[{text:this.cancelText,role:"cancel",handler:function(){t.updateDatetimeValue(t.value);t.ionCancel.emit()}},{text:this.doneText,handler:function(e){t.updateDatetimeValue(e);var i=new Date(B(t.datetimeValue));t.datetimeValue.tzOffset=t.displayTimezone!==undefined&&t.displayTimezone.length>0?j(i,t.displayTimezone)/1e3/60*-1:i.getTimezoneOffset()*-1;t.value=B(t.datetimeValue)}}]}return i};t.prototype.generateColumns=function(){var t=this;var e=this.pickerFormat||this.displayFormat||Dt;if(e.length===0){return[]}this.calcMinMax();e=e.replace("DDDD","{~}").replace("DDD","{~}");if(e.indexOf("D")===-1){e=e.replace("{~}","D")}e=e.replace(/{~}/g,"");var i=A(e).map((function(e){var i=W(e);var r;var n=t;r=n[i+"Values"]?J(n[i+"Values"],i):F(e,t.datetimeMin,t.datetimeMax);var o=r.map((function(i){return{value:i,text:z(e,i,undefined,t.locale)}}));var a=S(t.datetimeValue,e);var s=o.findIndex((function(t){return t.value===a}));return{name:i,selectedIndex:s>=0?s:0,options:o}}));var r=this.datetimeMin;var n=this.datetimeMax;["month","day","hour","minute"].filter((function(t){return!i.find((function(e){return e.name===t}))})).forEach((function(t){r[t]=0;n[t]=0}));return this.validateColumns(Mt(i))};t.prototype.validateColumns=function(t){var e=new Date;var i=N(this.datetimeMin);var r=N(this.datetimeMax);var n=t.find((function(t){return t.name==="year"}));var o=e.getFullYear();if(n){if(!n.options.find((function(t){return t.value===e.getFullYear()}))){o=n.options[0].value}var a=n.selectedIndex;if(a!==undefined){var s=n.options[a];if(s){o=s.value}}}var d=this.validateColumn(t,"month",1,i,r,[o,0,0,0,0],[o,12,31,23,59]);var l=I(d,o);var c=this.validateColumn(t,"day",2,i,r,[o,d,0,0,0],[o,d,l,23,59]);var p=this.validateColumn(t,"hour",3,i,r,[o,d,c,0,0],[o,d,c,23,59]);this.validateColumn(t,"minute",4,i,r,[o,d,c,p,0],[o,d,c,p,59]);return t};t.prototype.calcMinMax=function(){var t=(new Date).getFullYear();if(this.yearValues!==undefined){var e=J(this.yearValues,"year");if(this.min===undefined){this.min=Math.min.apply(Math,e).toString()}if(this.max===undefined){this.max=Math.max.apply(Math,e).toString()}}else{if(this.min===undefined){this.min=(t-100).toString()}if(this.max===undefined){this.max=t.toString()}}var i=this.datetimeMin=E(this.min);var r=this.datetimeMax=E(this.max);i.year=i.year||t;r.year=r.year||t;i.month=i.month||1;r.month=r.month||12;i.day=i.day||1;r.day=r.day||31;i.hour=i.hour||0;r.hour=r.hour===undefined?23:r.hour;i.minute=i.minute||0;r.minute=r.minute===undefined?59:r.minute;i.second=i.second||0;r.second=r.second===undefined?59:r.second;if(i.year>r.year){console.error("min.year > max.year");i.year=r.year-100}if(i.year===r.year){if(i.month>r.month){console.error("min.month > max.month");i.month=1}else if(i.month===r.month&&i.day>r.day){console.error("min.day > max.day");i.day=1}}};t.prototype.validateColumn=function(t,e,i,r,n,o,a){var s=t.find((function(t){return t.name===e}));if(!s){return 0}var l=o.slice();var c=a.slice();var p=s.options;var h=p.length-1;var u=0;for(var f=0;f<p.length;f++){var m=p[f];var g=m.value;l[i]=m.value;c[i]=m.value;var v=m.disabled=g<o[i]||g>a[i]||Y(c[0],c[1],c[2],c[3],c[4])<r||Y(l[0],l[1],l[2],l[3],l[4])>n;if(!v){h=Math.min(h,f);u=Math.max(u,f)}}var b=s.selectedIndex=d(h,s.selectedIndex,u);var k=s.options[b];if(k){return k.value}return 0};Object.defineProperty(t.prototype,"text",{get:function(){var t=this.displayFormat||this.pickerFormat||Dt;if(this.value===undefined||this.value===null||this.value.length===0){return}return C(t,this.datetimeValue,this.locale)},enumerable:false,configurable:true});t.prototype.hasValue=function(){return this.text!==undefined};t.prototype.setFocus=function(){if(this.buttonEl){this.buttonEl.focus()}};t.prototype.render=function(){var t;var e=this;var i=this,r=i.inputId,a=i.text,d=i.disabled,p=i.readonly,h=i.isExpanded,u=i.el,f=i.placeholder;var m=s(this);var g=r+"-lbl";var v=l(u);var b=a===undefined&&f!=null?true:false;var k=a===undefined?f!=null?f:"":a;var y=a===undefined?f!=null?"placeholder":undefined:"text";if(v){v.id=g}c(true,u,this.name,this.value,this.disabled);return n(o,{onClick:this.onClick,"aria-disabled":d?"true":null,"aria-expanded":""+h,"aria-haspopup":"true","aria-labelledby":g,class:(t={},t[m]=true,t["datetime-disabled"]=d,t["datetime-readonly"]=p,t["datetime-placeholder"]=b,t["in-item"]=M("ion-item",u),t)},n("div",{class:"datetime-text",part:y},k),n("button",{type:"button",onFocus:this.onFocus,onBlur:this.onBlur,disabled:this.disabled,ref:function(t){return e.buttonEl=t}}))};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:["disabledChanged"],value:["valueChanged"]}},enumerable:false,configurable:true});return t}());var Mt=function(t){var e=[];var i;var r;for(var n=0;n<t.length;n++){i=t[n];e.push(0);for(var o=0,a=i.options;o<a.length;o++){var s=a[o];r=s.text.length;if(r>e[n]){e[n]=r}}}if(e.length===2){r=Math.max(e[0],e[1]);t[0].align="right";t[1].align="left";t[0].optionsWidth=t[1].optionsWidth=r*17+"px"}else if(e.length===3){r=Math.max(e[0],e[2]);t[0].align="right";t[1].columnWidth=e[1]*17+"px";t[0].optionsWidth=t[2].optionsWidth=r*17+"px";t[2].align="left"}return t};var Dt="MMM D, YYYY";var St=0;wt.style={ios:yt,md:xt};var Ct=function(t){var e=p();var i=p();var r=p();i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]);r.addElement(t.querySelector(".picker-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)");return e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([i,r])};var zt=function(t){var e=p();var i=p();var r=p();i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",.01);r.addElement(t.querySelector(".picker-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)");return e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([i,r])};var Ft=".sc-ion-picker-ios-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}[dir=rtl].sc-ion-picker-ios-h,[dir=rtl] .sc-ion-picker-ios-h{left:unset;right:unset;right:0}.overlay-hidden.sc-ion-picker-ios-h{display:none}.picker-wrapper.sc-ion-picker-ios{border-radius:var(--border-radius);left:0;right:0;bottom:0;margin-left:auto;margin-right:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0,  100%,  0);transform:translate3d(0,  100%,  0);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);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.picker-wrapper.sc-ion-picker-ios{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.picker-toolbar.sc-ion-picker-ios{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-ios{border:0;font-family:inherit}.picker-button.sc-ion-picker-ios:active,.picker-button.sc-ion-picker-ios:focus{outline:none}.picker-columns.sc-ion-picker-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;direction:ltr;overflow:hidden}.picker-above-highlight.sc-ion-picker-ios,.picker-below-highlight.sc-ion-picker-ios{display:none;pointer-events:none}.sc-ion-picker-ios-h{--background:var(--ion-background-color, #fff);--border-width:1px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-ios{display:-ms-flexbox;display:flex;height:44px;border-bottom:0.55px solid var(--border-color)}.picker-toolbar-button.sc-ion-picker-ios{-ms-flex:1;flex:1;text-align:end}.picker-toolbar-button.sc-ion-picker-ios:last-child .picker-button.sc-ion-picker-ios{font-weight:600}.picker-toolbar-button.sc-ion-picker-ios:first-child{font-weight:normal;text-align:start}.picker-button.sc-ion-picker-ios,.picker-button.ion-activated.sc-ion-picker-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:1em;padding-right:1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #3880ff);font-size:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.picker-button.sc-ion-picker-ios,.picker-button.ion-activated.sc-ion-picker-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:1em;padding-inline-start:1em;-webkit-padding-end:1em;padding-inline-end:1em}}.picker-columns.sc-ion-picker-ios{height:215px;-webkit-perspective:1000px;perspective:1000px}.picker-above-highlight.sc-ion-picker-ios{left:0;top:0;-webkit-transform:translate3d(0,  0,  90px);transform:translate3d(0,  0,  90px);display:block;position:absolute;width:100%;height:81px;border-bottom:1px solid var(--border-color);background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to bottom, var(--background, var(--ion-background-color, #fff)) 20%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:10}[dir=rtl].sc-ion-picker-ios .picker-above-highlight.sc-ion-picker-ios,[dir=rtl].sc-ion-picker-ios-h .picker-above-highlight.sc-ion-picker-ios,[dir=rtl] .sc-ion-picker-ios-h .picker-above-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}.picker-below-highlight.sc-ion-picker-ios{left:0;top:115px;-webkit-transform:translate3d(0,  0,  90px);transform:translate3d(0,  0,  90px);display:block;position:absolute;width:100%;height:119px;border-top:1px solid var(--border-color);background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to top, var(--background, var(--ion-background-color, #fff)) 30%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:11}[dir=rtl].sc-ion-picker-ios .picker-below-highlight.sc-ion-picker-ios,[dir=rtl].sc-ion-picker-ios-h .picker-below-highlight.sc-ion-picker-ios,[dir=rtl] .sc-ion-picker-ios-h .picker-below-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}";var Yt=".sc-ion-picker-md-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}[dir=rtl].sc-ion-picker-md-h,[dir=rtl] .sc-ion-picker-md-h{left:unset;right:unset;right:0}.overlay-hidden.sc-ion-picker-md-h{display:none}.picker-wrapper.sc-ion-picker-md{border-radius:var(--border-radius);left:0;right:0;bottom:0;margin-left:auto;margin-right:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0,  100%,  0);transform:translate3d(0,  100%,  0);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);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.picker-wrapper.sc-ion-picker-md{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.picker-toolbar.sc-ion-picker-md{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-md{border:0;font-family:inherit}.picker-button.sc-ion-picker-md:active,.picker-button.sc-ion-picker-md:focus{outline:none}.picker-columns.sc-ion-picker-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;direction:ltr;overflow:hidden}.picker-above-highlight.sc-ion-picker-md,.picker-below-highlight.sc-ion-picker-md{display:none;pointer-events:none}.sc-ion-picker-md-h{--background:var(--ion-background-color, #fff);--border-width:0.55px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-md{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;height:44px}.picker-button.sc-ion-picker-md,.picker-button.ion-activated.sc-ion-picker-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:1.1em;padding-right:1.1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #3880ff);font-size:14px;font-weight:500;text-transform:uppercase;-webkit-box-shadow:none;box-shadow:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.picker-button.sc-ion-picker-md,.picker-button.ion-activated.sc-ion-picker-md{padding-left:unset;padding-right:unset;-webkit-padding-start:1.1em;padding-inline-start:1.1em;-webkit-padding-end:1.1em;padding-inline-end:1.1em}}.picker-columns.sc-ion-picker-md{height:216px;-webkit-perspective:1800px;perspective:1800px}.picker-above-highlight.sc-ion-picker-md{left:0;top:0;-webkit-transform:translate3d(0,  0,  90px);transform:translate3d(0,  0,  90px);position:absolute;width:100%;height:81px;border-bottom:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to bottom, var(--ion-background-color, #fff) 20%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:10}[dir=rtl].sc-ion-picker-md .picker-above-highlight.sc-ion-picker-md,[dir=rtl].sc-ion-picker-md-h .picker-above-highlight.sc-ion-picker-md,[dir=rtl] .sc-ion-picker-md-h .picker-above-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}.picker-below-highlight.sc-ion-picker-md{left:0;top:115px;-webkit-transform:translate3d(0,  0,  90px);transform:translate3d(0,  0,  90px);position:absolute;width:100%;height:119px;border-top:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to top, var(--ion-background-color, #fff) 30%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:11}[dir=rtl].sc-ion-picker-md .picker-below-highlight.sc-ion-picker-md,[dir=rtl].sc-ion-picker-md-h .picker-below-highlight.sc-ion-picker-md,[dir=rtl] .sc-ion-picker-md-h .picker-below-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}";var Nt=t("ion_picker",function(){function t(t){var e=this;i(this,t);this.didPresent=r(this,"ionPickerDidPresent",7);this.willPresent=r(this,"ionPickerWillPresent",7);this.willDismiss=r(this,"ionPickerWillDismiss",7);this.didDismiss=r(this,"ionPickerDidDismiss",7);this.presented=false;this.keyboardClose=true;this.buttons=[];this.columns=[];this.duration=0;this.showBackdrop=true;this.backdropDismiss=true;this.animated=true;this.onBackdropTap=function(){e.dismiss(undefined,u)};this.dispatchCancelHandler=function(t){var i=t.detail.role;if(f(i)){var r=e.buttons.find((function(t){return t.role==="cancel"}));e.callButtonHandler(r)}}}t.prototype.connectedCallback=function(){m(this.el)};t.prototype.present=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){switch(e.label){case 0:return[4,g(this,"pickerEnter",Ct,Ct,undefined)];case 1:e.sent();if(this.duration>0){this.durationTimeout=setTimeout((function(){return t.dismiss()}),this.duration)}return[2]}}))}))};t.prototype.dismiss=function(t,e){if(this.durationTimeout){clearTimeout(this.durationTimeout)}return v(this,t,e,"pickerLeave",zt,zt)};t.prototype.onDidDismiss=function(){return b(this.el,"ionPickerDidDismiss")};t.prototype.onWillDismiss=function(){return b(this.el,"ionPickerWillDismiss")};t.prototype.getColumn=function(t){return Promise.resolve(this.columns.find((function(e){return e.name===t})))};t.prototype.buttonClick=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;return __generator(this,(function(r){switch(r.label){case 0:e=t.role;if(f(e)){return[2,this.dismiss(undefined,e)]}return[4,this.callButtonHandler(t)];case 1:i=r.sent();if(i){return[2,this.dismiss(this.getSelected(),t.role)]}return[2,Promise.resolve()]}}))}))};t.prototype.callButtonHandler=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:if(!t)return[3,2];return[4,k(t.handler,this.getSelected())];case 1:e=i.sent();if(e===false){return[2,false]}i.label=2;case 2:return[2,true]}}))}))};t.prototype.getSelected=function(){var t={};this.columns.forEach((function(e,i){var r=e.selectedIndex!==undefined?e.options[e.selectedIndex]:undefined;t[e.name]={text:r?r.text:undefined,value:r?r.value:undefined,columnIndex:i}}));return t};t.prototype.render=function(){var t;var e=this;var i=s(this);return n(o,{"aria-modal":"true",tabindex:"-1",class:Object.assign((t={},t[i]=true,t["picker-"+i]=true,t),D(this.cssClass)),style:{zIndex:""+(2e4+this.overlayIndex)},onIonBackdropTap:this.onBackdropTap,onIonPickerWillDismiss:this.dispatchCancelHandler},n("ion-backdrop",{visible:this.showBackdrop,tappable:this.backdropDismiss}),n("div",{tabindex:"0"}),n("div",{class:"picker-wrapper ion-overlay-wrapper",role:"dialog"},n("div",{class:"picker-toolbar"},this.buttons.map((function(t){return n("div",{class:It(t)},n("button",{type:"button",onClick:function(){return e.buttonClick(t)},class:Tt(t)},t.text))}))),n("div",{class:"picker-columns"},n("div",{class:"picker-above-highlight"}),this.presented&&this.columns.map((function(t){return n("ion-picker-column",{col:t})})),n("div",{class:"picker-below-highlight"}))),n("div",{tabindex:"0"}))};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());var It=function(t){var e;return e={},e["picker-toolbar-"+t.role]=t.role!==undefined,e["picker-toolbar-button"]=true,e};var Tt=function(t){return Object.assign({"picker-button":true,"ion-activatable":true},D(t.cssClass))};Nt.style={ios:Ft,md:Yt};var Ot=".picker-col{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-sizing:content-box;box-sizing:content-box;contain:content}.picker-opts{position:relative;-ms-flex:1;flex:1;max-width:100%}.picker-opt{left:0;top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}[dir=rtl] .picker-opt,:host-context([dir=rtl]) .picker-opt{left:unset;right:unset;right:0}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{-ms-flex-pack:start;justify-content:flex-start}.picker-opts-right{-ms-flex-pack:end;justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;-ms-flex:1;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;-ms-flex:1;flex:1;text-align:start;white-space:nowrap}.picker-col{padding-left:4px;padding-right:4px;padding-top:0;padding-bottom:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.picker-col{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px}}.picker-prefix,.picker-suffix,.picker-opts{top:77px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;color:inherit;font-size:20px;line-height:42px;pointer-events:none}.picker-opt{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:center center;transform-origin:center center;height:46px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:20px;line-height:42px;-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:auto}[dir=rtl] .picker-opt,:host-context([dir=rtl]) .picker-opt{-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}";var _t=".picker-col{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-sizing:content-box;box-sizing:content-box;contain:content}.picker-opts{position:relative;-ms-flex:1;flex:1;max-width:100%}.picker-opt{left:0;top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}[dir=rtl] .picker-opt,:host-context([dir=rtl]) .picker-opt{left:unset;right:unset;right:0}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{-ms-flex-pack:start;justify-content:flex-start}.picker-opts-right{-ms-flex-pack:end;justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;-ms-flex:1;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;-ms-flex:1;flex:1;text-align:start;white-space:nowrap}.picker-col{padding-left:8px;padding-right:8px;padding-top:0;padding-bottom:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.picker-col{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.picker-prefix,.picker-suffix,.picker-opts{top:77px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;color:inherit;font-size:22px;line-height:42px;pointer-events:none}.picker-opt{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;height:43px;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:22px;line-height:42px;-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:auto}.picker-prefix,.picker-suffix,.picker-opt.picker-opt-selected{color:var(--ion-color-primary, #3880ff)}";var Et=t("ion_picker_column",function(){function t(t){i(this,t);this.ionPickerColChange=r(this,"ionPickerColChange",7);this.optHeight=0;this.rotateFactor=0;this.scaleFactor=1;this.velocity=0;this.y=0;this.noAnimate=true}t.prototype.colChanged=function(){this.refresh()};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,r,n;var o=this;return __generator(this,(function(a){switch(a.label){case 0:t=0;i=.81;r=s(this);if(r==="ios"){t=-.46;i=1}this.rotateFactor=t;this.scaleFactor=i;n=this;return[4,e.import("./p-52eade03.system.js")];case 1:n.gesture=a.sent().createGesture({el:this.el,gestureName:"picker-swipe",gesturePriority:100,threshold:0,passive:false,onStart:function(t){return o.onStart(t)},onMove:function(t){return o.onMove(t)},onEnd:function(t){return o.onEnd(t)}});this.gesture.enable();this.tmrId=setTimeout((function(){o.noAnimate=false;o.refresh(true)}),250);return[2]}}))}))};t.prototype.componentDidLoad=function(){var t=this.optsEl;if(t){this.optHeight=t.firstElementChild?t.firstElementChild.clientHeight:0}this.refresh()};t.prototype.disconnectedCallback=function(){cancelAnimationFrame(this.rafId);clearTimeout(this.tmrId);if(this.gesture){this.gesture.destroy();this.gesture=undefined}};t.prototype.emitColChange=function(){this.ionPickerColChange.emit(this.col)};t.prototype.setSelected=function(t,e){var i=t>-1?-(t*this.optHeight):0;this.velocity=0;cancelAnimationFrame(this.rafId);this.update(i,e,true);this.emitColChange()};t.prototype.update=function(t,e,i){if(!this.optsEl){return}var r=0;var n=0;var o=this,a=o.col,s=o.rotateFactor;var d=a.selectedIndex=this.indexForY(-t);var l=e===0?"":e+"ms";var c="scale("+this.scaleFactor+")";var p=this.optsEl.children;for(var h=0;h<p.length;h++){var u=p[h];var f=a.options[h];var m=h*this.optHeight+t;var g="";if(s!==0){var v=m*s;if(Math.abs(v)<=90){r=0;n=90;g="rotateX("+v+"deg) "}else{r=-9999}}else{n=0;r=m}var b=d===h;g+="translate3d(0px,"+r+"px,"+n+"px) ";if(this.scaleFactor!==1&&!b){g+=c}if(this.noAnimate){f.duration=0;u.style.transitionDuration=""}else if(e!==f.duration){f.duration=e;u.style.transitionDuration=l}if(g!==f.transform){f.transform=g;u.style.transform=g}if(b!==f.selected){f.selected=b;if(b){u.classList.add(Pt)}else{u.classList.remove(Pt)}}}this.col.prevSelected=d;if(i){this.y=t}if(this.lastIndex!==d){y();this.lastIndex=d}};t.prototype.decelerate=function(){var t=this;if(this.velocity!==0){this.velocity*=jt;this.velocity=this.velocity>0?Math.max(this.velocity,1):Math.min(this.velocity,-1);var e=this.y+this.velocity;if(e>this.minY){e=this.minY;this.velocity=0}else if(e<this.maxY){e=this.maxY;this.velocity=0}this.update(e,0,true);var i=Math.round(e)%this.optHeight!==0||Math.abs(this.velocity)>1;if(i){this.rafId=requestAnimationFrame((function(){return t.decelerate()}))}else{this.velocity=0;this.emitColChange();x()}}else if(this.y%this.optHeight!==0){var r=Math.abs(this.y%this.optHeight);this.velocity=r>this.optHeight/2?1:-1;this.decelerate()}};t.prototype.indexForY=function(t){return Math.min(Math.max(Math.abs(Math.round(t/this.optHeight)),0),this.col.options.length-1)};t.prototype.onStart=function(t){if(t.event.cancelable){t.event.preventDefault()}t.event.stopPropagation();w();cancelAnimationFrame(this.rafId);var e=this.col.options;var i=e.length-1;var r=0;for(var n=0;n<e.length;n++){if(!e[n].disabled){i=Math.min(i,n);r=Math.max(r,n)}}this.minY=-(i*this.optHeight);this.maxY=-(r*this.optHeight)};t.prototype.onMove=function(t){if(t.event.cancelable){t.event.preventDefault()}t.event.stopPropagation();var e=this.y+t.deltaY;if(e>this.minY){e=Math.pow(e,.8);this.bounceFrom=e}else if(e<this.maxY){e+=Math.pow(this.maxY-e,.9);this.bounceFrom=e}else{this.bounceFrom=0}this.update(e,0,false)};t.prototype.onEnd=function(t){if(this.bounceFrom>0){this.update(this.minY,100,true);this.emitColChange();return}else if(this.bounceFrom<0){this.update(this.maxY,100,true);this.emitColChange();return}this.velocity=d(-Ht,t.velocityY*23,Ht);if(this.velocity===0&&t.deltaY===0){var e=t.event.target.closest(".picker-opt");if(e&&e.hasAttribute("opt-index")){this.setSelected(parseInt(e.getAttribute("opt-index"),10),At)}}else{this.y+=t.deltaY;if(Math.abs(t.velocityY)<.05){var i=t.deltaY>0;var r=Math.abs(this.y)%this.optHeight/this.optHeight;if(i&&r>.5){this.velocity=Math.abs(this.velocity)*-1}else if(!i&&r<=.5){this.velocity=Math.abs(this.velocity)}}this.decelerate()}};t.prototype.refresh=function(t){var e=this.col.options.length-1;var i=0;var r=this.col.options;for(var n=0;n<r.length;n++){if(!r[n].disabled){e=Math.min(e,n);i=Math.max(i,n)}}if(this.velocity!==0){return}var o=d(e,this.col.selectedIndex||0,i);if(this.col.prevSelected!==o||t){var a=o*this.optHeight*-1;this.velocity=0;this.update(a,At,true)}};t.prototype.render=function(){var t;var e=this;var i=this.col;var r="button";var a=s(this);return n(o,{class:(t={},t[a]=true,t["picker-col"]=true,t["picker-opts-left"]=this.col.align==="left",t["picker-opts-right"]=this.col.align==="right",t),style:{"max-width":this.col.columnWidth}},i.prefix&&n("div",{class:"picker-prefix",style:{width:i.prefixWidth}},i.prefix),n("div",{class:"picker-opts",style:{maxWidth:i.optionsWidth},ref:function(t){return e.optsEl=t}},i.options.map((function(t,e){return n(r,{type:"button",class:{"picker-opt":true,"picker-opt-disabled":!!t.disabled},"opt-index":e},t.text)}))),i.suffix&&n("div",{class:"picker-suffix",style:{width:i.suffixWidth}},i.suffix))};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{col:["colChanged"]}},enumerable:false,configurable:true});return t}());var Pt="picker-opt-selected";var jt=.97;var Ht=90;var At=150;Et.style={ios:Ot,md:_t}}}}));