PageSourceSearch

https://beautifulphotos.app/_nuxt/BpyO50hl.js

js beautifulphotos.app collected 2026-09-24 14:30:44 UTC 184,020 bytes, 27 lines download raw bytes

1import{t as e}from"./DUMrNHg0.js";import{Dt as t,F as n,I as r,K as i,O as a,Ot as o,P as s,Q as c,U as l,V as u,_ as d,d as f,f as p,i as m,j as h,kt as g,m as _,p as v,q as y,rt as b,st as x,tt as S,u as C,v as w,x as T,y as E,z as D}from"./D-JgwusZ.js";import{ht as O,mt as k}from"./B49P8aFp.js";import{i as A,t as j}from"./CokcFJhG.js";import{a as M,d as N,l as P,n as F,o as I,s as L,t as ee}from"#entry";import{n as te,t as R}from"./D1SPPknn.js";import{t as z}from"./BDNMzG2s.js";import{a as ne,i as B,n as re,r as ie,t as ae}from"./CGHJ9unW.js";import{o as oe,t as se}from"./B8-3_daq.js";var ce=Object.assign(z(T({__name:`FlagIcon`,props:{language:{}},setup(e){let n=e;return(e,i)=>(r(),_(`span`,{class:t([`fib inline-block`,`fi-${n.language}`])},null,2))}}),[[`__scopeId`,`data-v-46fd95d5`]]),{__name:`FlagIcon`});function le(e){P(()=>import(`./2TXrBnhN.js`).then(t=>{e(t)}),[],import.meta.url)}var ue=function(){function e(e,t){t===void 0&&(t=[]),this._eventType=e,this._eventFunctions=t}return e.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(t){typeof window<`u`&&window.addEventListener(e._eventType,t)})},e}(),V=new(function(){function e(){this._instances={Accordion:{},Carousel:{},Collapse:{},Dial:{},Dismiss:{},Drawer:{},Dropdown:{},Modal:{},Popover:{},Tabs:{},Tooltip:{},InputCounter:{},CopyClipboard:{},Datepicker:{}}}return e.prototype.addInstance=function(e,t,n,r){if(r===void 0&&(r=!1),!this._instances[e])return console.warn(`Flowbite: Component ${e} does not exist.`),!1;if(this._instances[e][n]&&!r){console.warn(`Flowbite: Instance with ID ${n} already exists.`);return}r&&this._instances[e][n]&&this._instances[e][n].destroyAndRemoveInstance(),this._instances[e][n||this._generateRandomId()]=t},e.prototype.getAllInstances=function(){return this._instances},e.prototype.getInstances=function(e){return this._instances[e]?this._instances[e]:(console.warn(`Flowbite: Component ${e} does not exist.`),!1)},e.prototype.getInstance=function(e,t){if(this._componentAndInstanceCheck(e,t)){if(!this._instances[e][t]){console.warn(`Flowbite: Instance with ID ${t} does not exist.`);return}return this._instances[e][t]}},e.prototype.destroyAndRemoveInstance=function(e,t){this._componentAndInstanceCheck(e,t)&&(this.destroyInstanceObject(e,t),this.removeInstance(e,t))},e.prototype.removeInstance=function(e,t){this._componentAndInstanceCheck(e,t)&&delete this._instances[e][t]},e.prototype.destroyInstanceObject=function(e,t){this._componentAndInstanceCheck(e,t)&&this._instances[e][t].destroy()},e.prototype.instanceExists=function(e,t){return!(!this._instances[e]||!this._instances[e][t])},e.prototype._generateRandomId=function(){return Math.random().toString(36).substr(2,9)},e.prototype._componentAndInstanceCheck=function(e,t){return this._instances[e]?this._instances[e][t]?!0:(console.warn(`Flowbite: Instance with ID ${t} does not exist.`),!1):(console.warn(`Flowbite: Component ${e} does not exist.`),!1)},e}());typeof window<`u`&&(window.FlowbiteInstances=V);var de=function(){return de=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},de.apply(this,arguments)},H={alwaysOpen:!1,activeClasses:`bg-neutral-secondary-medium text-heading`,inactiveClasses:`bg-neutral-primary text-body`,onOpen:function(){},onClose:function(){},onToggle:function(){}},fe={id:null,override:!0},pe=function(){function e(e,t,n,r){e===void 0&&(e=null),t===void 0&&(t=[]),n===void 0&&(n=H),r===void 0&&(r=fe),this._instanceId=r.id?r.id:e.id,this._accordionEl=e,this._items=t,this._options=de(de({},H),n),this._initialized=!1,this.init(),V.addInstance(`Accordion`,this,this._instanceId,r.override)}return e.prototype.init=function(){var e=this;this._items.length&&!this._initialized&&(this._items.forEach(function(t){t.active&&e.open(t.id);var n=function(){e.toggle(t.id)};t.triggerEl.addEventListener(`click`,n),t.clickHandler=n}),this._initialized=!0)},e.prototype.destroy=function(){this._items.length&&this._initialized&&(this._items.forEach(function(e){e.triggerEl.removeEventListener(`click`,e.clickHandler),delete e.clickHandler}),this._initialized=!1)},e.prototype.removeInstance=function(){V.removeInstance(`Accordion`,this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getItem=function(e){return this._items.filter(function(t){return t.id===e})[0]},e.prototype.open=function(e){var t,n,r=this,i=this.getItem(e);this._options.alwaysOpen||this._items.map(function(e){var t,n;e!==i&&((t=e.triggerEl.classList).remove.apply(t,r._options.activeClasses.split(` `)),(n=e.triggerEl.classList).add.apply(n,r._options.inactiveClasses.split(` `)),e.targetEl.classList.add(`hidden`),e.triggerEl.setAttribute(`aria-expanded`,`false`),e.active=!1,e.iconEl&&e.iconEl.classList.add(`rotate-180`))}),(t=i.triggerEl.classList).add.apply(t,this._options.activeClasses.split(` `)),(n=i.triggerEl.classList).remove.apply(n,this._options.inactiveClasses.split(` `)),i.triggerEl.setAttribute(`aria-expanded`,`true`),i.targetEl.classList.remove(`hidden`),i.active=!0,i.iconEl&&i.iconEl.classList.remove(`rotate-180`),this._options.onOpen(this,i)},e.prototype.toggle=function(e){var t=this.getItem(e);t.active?this.close(e):this.open(e),this._options.onToggle(this,t)},e.prototype.close=function(e){var t,n,r=this.getItem(e);(t=r.triggerEl.classList).remove.apply(t,this._options.activeClasses.split(` `)),(n=r.triggerEl.classList).add.apply(n,this._options.inactiveClasses.split(` `)),r.targetEl.classList.add(`hidden`),r.triggerEl.setAttribute(`aria-expanded`,`false`),r.active=!1,r.iconEl&&r.iconEl.classList.add(`rotate-180`),this._options.onClose(this,r)},e.prototype.updateOnOpen=function(e){this._options.onOpen=e},e.prototype.updateOnClose=function(e){this._options.onClose=e},e.prototype.updateOnToggle=function(e){this._options.onToggle=e},e}();function me(){document.querySelectorAll(`[data-accordion]`).forEach(function(e){var t=e.getAttribute(`data-accordion`),n=e.getAttribute(`data-active-classes`),r=e.getAttribute(`data-inactive-classes`),i=[];e.querySelectorAll(`[data-accordion-target]`).forEach(function(t){if(t.closest(`[data-accordion]`)===e){var n={id:t.getAttribute(`data-accordion-target`),triggerEl:t,targetEl:document.querySelector(t.getAttribute(`data-accordion-target`)),iconEl:t.querySelector(`[data-accordion-icon]`),active:t.getAttribute(`aria-expanded`)===`true`};i.push(n)}}),new pe(e,i,{alwaysOpen:t===`open`,activeClasses:n||H.activeClasses,inactiveClasses:r||H.inactiveClasses})})}typeof window<`u`&&(window.Accordion=pe,window.initAccordions=me);var he=function(){return he=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},he.apply(this,arguments)},ge={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},_e={id:null,override:!0},ve=function(){function e(e,t,n,r){e===void 0&&(e=null),t===void 0&&(t=null),n===void 0&&(n=ge),r===void 0&&(r=_e),this._instanceId=r.id?r.id:e.id,this._targetEl=e,this._triggerEl=t,this._options=he(he({},ge),n),this._visible=!1,this._initialized=!1,this.init(),V.addInstance(`Collapse`,this,this._instanceId,r.override)}return e.prototype.init=function(){var e=this;this._triggerEl&&this._targetEl&&!this._initialized&&(this._visible=this._triggerEl.hasAttribute(`aria-expanded`)?this._triggerEl.getAttribute(`aria-expanded`)===`true`:!this._targetEl.classList.contains(`hidden`),this._clickHandler=function(){e.toggle(
1)},this._triggerEl.addEventListener(`click`,this._clickHandler),this._initialized=!0)},e.prototype.destroy=function(){this._triggerEl&&this._initialized&&(this._triggerEl.removeEventListener(`click`,this._clickHandler),this._initialized=!1)},e.prototype.removeInstance=function(){V.removeInstance(`Collapse`,this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.collapse=function(){this._targetEl.classList.add(`hidden`),this._triggerEl&&this._triggerEl.setAttribute(`aria-expanded`,`false`),this._visible=!1,this._options.onCollapse(this)},e.prototype.expand=function(){this._targetEl.classList.remove(`hidden`),this._triggerEl&&this._triggerEl.setAttribute(`aria-expanded`,`true`),this._visible=!0,this._options.onExpand(this)},e.prototype.toggle=function(){this._visible?this.collapse():this.expand(),this._options.onToggle(this)},e.prototype.updateOnCollapse=function(e){this._options.onCollapse=e},e.prototype.updateOnExpand=function(e){this._options.onExpand=e},e.prototype.updateOnToggle=function(e){this._options.onToggle=e},e}();function ye(){document.querySelectorAll(`[data-collapse-toggle]`).forEach(function(e){var t=e.getAttribute(`data-collapse-toggle`),n=document.getElementById(t);n?V.instanceExists(`Collapse`,n.getAttribute(`id`))?new ve(n,e,{},{id:n.getAttribute(`id`)+`_`+V._generateRandomId()}):new ve(n,e):console.error(`The target element with id "${t}" does not exist. Please check the data-collapse-toggle attribute.`)})}typeof window<`u`&&(window.Collapse=ve,window.initCollapses=ye);var be=function(){return be=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},be.apply(this,arguments)},xe={defaultPosition:0,indicators:{items:[],activeClasses:`bg-white dark:bg-gray-800`,inactiveClasses:`bg-white/50 dark:bg-gray-800/50 hover:bg-white dark:hover:bg-gray-800`},interval:3e3,onNext:function(){},onPrev:function(){},onChange:function(){}},Se={id:null,override:!0},Ce=function(){function e(e,t,n,r){e===void 0&&(e=null),t===void 0&&(t=[]),n===void 0&&(n=xe),r===void 0&&(r=Se),this._instanceId=r.id?r.id:e.id,this._carouselEl=e,this._items=t,this._options=be(be(be({},xe),n),{indicators:be(be({},xe.indicators),n.indicators)}),this._activeItem=this.getItem(this._options.defaultPosition),this._indicators=this._options.indicators.items,this._intervalDuration=this._options.interval,this._intervalInstance=null,this._initialized=!1,this.init(),V.addInstance(`Carousel`,this,this._instanceId,r.override)}return e.prototype.init=function(){var e=this;this._items.length&&!this._initialized&&(this._items.map(function(e){e.el.classList.add(`absolute`,`inset-0`,`transition-transform`,`transform`)}),this.getActiveItem()?this.slideTo(this.getActiveItem().position):this.slideTo(0),this._indicators.map(function(t,n){t.el.addEventListener(`click`,function(){e.slideTo(n)})}),this._initialized=!0)},e.prototype.destroy=function(){this._initialized&&=!1},e.prototype.removeInstance=function(){V.removeInstance(`Carousel`,this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getItem=function(e){return this._items[e]},e.prototype.slideTo=function(e){var t=this._items[e],n={left:t.position===0?this._items[this._items.length-1]:this._items[t.position-1],middle:t,right:t.position===this._items.length-1?this._items[0]:this._items[t.position+1]};this._rotate(n),this._setActiveItem(t),this._intervalInstance&&(this.pause(),this.cycle()),this._options.onChange(this)},e.prototype.next=function(){var e=this.getActiveItem(),t=null;t=e.position===this._items.length-1?this._items[0]:this._items[e.position+1],this.slideTo(t.position),this._options.onNext(this)},e.prototype.prev=function(){var e=this.getActiveItem(),t=null;t=e.position===0?this._items[this._items.length-1]:this._items[e.position-1],this.slideTo(t.position),this._options.onPrev(this)},e.prototype._rotate=function(e){if(this._items.map(function(e){e.el.classList.add(`hidden`)}),this._items.length===1){e.middle.el.classList.remove(`-translate-x-full`,`translate-x-full`,`translate-x-0`,`hidden`,`z-10`),e.middle.el.classList.add(`translate-x-0`,`z-20`);return}e.left.el.classList.remove(`-translate-x-full`,`translate-x-full`,`translate-x-0`,`hidden`,`z-20`),e.left.el.classList.add(`-translate-x-full`,`z-10`),e.middle.el.classList.remove(`-translate-x-full`,`translate-x-full`,`translate-x-0`,`hidden`,`z-10`),e.middle.el.classList.add(`translate-x-0`,`z-30`),e.right.el.classList.remove(`-translate-x-full`,`translate-x-full`,`translate-x-0`,`hidden`,`z-30`),e.right.el.classList.add(`translate-x-full`,`z-20`)},e.prototype.cycle=function(){var e=this;typeof window<`u`&&(this._intervalInstance=window.setInterval(function(){e.next()},this._intervalDuration))},e.prototype.pause=function(){clearInterval(this._intervalInstance)},e.prototype.getActiveItem=function(){return this._activeItem},e.prototype._setActiveItem=function(e){var t,n,r=this;this._activeItem=e;var i=e.position;this._indicators.length&&(this._indicators.map(function(e){var t,n;e.el.setAttribute(`aria-current`,`false`),(t=e.el.classList).remove.apply(t,r._options.indicators.activeClasses.split(` `)),(n=e.el.classList).add.apply(n,r._options.indicators.inactiveClasses.split(` `))}),(t=this._indicators[i].el.classList).add.apply(t,this._options.indicators.activeClasses.split(` `)),(n=this._indicators[i].el.classList).remove.apply(n,this._options.indicators.inactiveClasses.split(` `)),this._indicators[i].el.setAttribute(`aria-current`,`true`))},e.prototype.updateOnNext=function(e){this._options.onNext=e},e.prototype.updateOnPrev=function(e){this._options.onPrev=e},e.prototype.updateOnChange=function(e){this._options.onChange=e},e}();function we(){document.querySelectorAll(`[data-carousel]`).forEach(function(e){var t=e.getAttribute(`data-carousel-interval`),n=e.getAttribute(`data-carousel`)===`slide`,r=[],i=0;e.querySelectorAll(`[data-carousel-item]`).length&&Array.from(e.querySelectorAll(`[data-carousel-item]`)).map(function(e,t){r.push({position:t,el:e}),e.getAttribute(`data-carousel-item`)===`active`&&(i=t)});var a=[];e.querySelectorAll(`[data-carousel-slide-to]`).length&&Array.from(e.querySelectorAll(`[data-carousel-slide-to]`)).map(function(e){a.push({position:parseInt(e.getAttribute(`data-carousel-slide-to`)),el:e})});var o=new Ce(e,r,{defaultPosition:i,indicators:{items:a},interval:t||xe.interval});n&&o.cycle();var s=e.querySelector(`[data-carousel-next]`),c=e.querySelector(`[data-carousel-prev]`);s&&s.addEventListener(`click`,function(){o.next()}),c&&c.addEventListener(`click`,function(){o.prev()})})}typeof window<`u`&&(window.Carousel=Ce,window.initCarousels=we);var Te=function(){return Te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Te.apply(this,arguments)},Ee={transition:`transition-opacity`,duration:300,timing:`ease-out`,onHide:function(){}},De={id:null,override:!0},Oe=function(){function e(e,t,n,r){e===void 0&&(e=null),t===void 0&&(t=null),n===void 0&&(n=Ee),r===void 0&&(r=De),this._instanceId=r.id?r.id:e.id,this._targetEl=e,this._triggerEl=t,this._options=Te(Te({},Ee),n),this._initialized=!1,this.init(),V.addInstance(`Dismiss`,this,this._instanceId,r.override)}return e.prototype.init=function(){var e=this;this._triggerEl&&this._targetEl&&!this._initialized&&(this._clickHandler=function(){e.hide()},this._triggerEl.addEventListener(`click`,this._clickHandler),this._initialized=!0)},e.prototype.destroy=function(){this._triggerEl&&this._initialized&&(this._triggerEl.removeEventListener(`click`,this._clickHandler),this._initialized=!1)},e.prototype.removeInstance=function(){V.removeInstance(`Dismiss`,this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.hide=function(){var e=this;this._targetEl.classList.add(this._options.transition,`duration-${this._options.duration}`,this._options.timing,`opacity-0`),setTimeout(function(){e._targetEl.classList.add(`hidden`)},this._options.duration),this._options.onHide(this,this._targetEl)},e.prototype.updateOnHide=function(e){this._options.onHide=e},e}();function ke(){document.querySelectorAll(`[data-dismiss-target]`).forEach(function(e){var t=e.getAttribute(`data-dismiss-target`),n=document.querySelector(t);n?new Oe(n,e):console.error(`The dismiss element with id "${t}" does not exist. Please check the data-dismiss-target attribute.`)})}
vendor: 5,960 bytes, line 1
1typeof window<`u`&&(window.Dismiss=Oe,window.initDismisses=ke);var Ae=`bottom`,je=`right`,U=`left`,Me=`auto`,Ne=[`top`,Ae,je,U],Pe=`start`,Fe=`clippingParents`,Ie=`viewport`,Le=`popper`,Re=`reference`,ze=Ne.reduce(function(e,t){return e.concat([t+`-`+Pe,t+`-end`])},[]),Be=[].concat(Ne,[Me]).reduce(function(e,t){return e.concat([t,t+`-`+Pe,t+`-end`])},[]),Ve=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function W(e){return e?(e.nodeName||``).toLowerCase():null}function G(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function He(e){return e instanceof G(e).Element||e instanceof Element}function K(e){return e instanceof G(e).HTMLElement||e instanceof HTMLElement}function Ue(e){return typeof ShadowRoot>`u`?!1:e instanceof G(e).ShadowRoot||e instanceof ShadowRoot}function We(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!K(i)||!W(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function Ge(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!K(r)||!W(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var Ke={name:`applyStyles`,enabled:!0,phase:`write`,fn:We,effect:Ge,requires:[`computeStyles`]};function q(e){return e.split(`-`)[0]}var qe=Math.max,Je=Math.min,Ye=Math.round;function Xe(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function Ze(){return!/^((?!chrome|android).)*safari/i.test(Xe())}function Qe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&K(e)&&(i=e.offsetWidth>0&&Ye(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ye(r.height)/e.offsetHeight||1);var o=(He(e)?G(e):window).visualViewport,s=!Ze()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function $e(e){var t=Qe(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function et(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ue(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function J(e){return G(e).getComputedStyle(e)}function tt(e){return[`table`,`td`,`th`].indexOf(W(e))>=0}function nt(e){return((He(e)?e.ownerDocument:e.document)||window.document).documentElement}function rt(e){return W(e)===`html`?e:e.assignedSlot||e.parentNode||(Ue(e)?e.host:null)||nt(e)}function it(e){return!K(e)||J(e).position===`fixed`?null:e.offsetParent}function at(e){var t=/firefox/i.test(Xe());if(/Trident/i.test(Xe())&&K(e)&&J(e).position===`fixed`)return null;var n=rt(e);for(Ue(n)&&(n=n.host);K(n)&&[`html`,`body`].indexOf(W(n))<0;){var r=J(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function ot(e){for(var t=G(e),n=it(e);n&&tt(n)&&J(n).position===`static`;)n=it(n);return n&&(W(n)===`html`||W(n)===`body`&&J(n).position===`static`)?t:n||at(e)||t}function st(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function ct(e,t,n){return qe(e,Je(t,n))}function lt(e,t,n){var r=ct(e,t,n);return r>n?n:r}function ut(){return{top:0,right:0,bottom:0,left:0}}function dt(e){return Object.assign({},ut(),e)}function ft(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var pt=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,dt(typeof e==`number`?ft(e,Ne):e)};function mt(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=q(n.placement),c=st(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=pt(i.padding,n),d=$e(a),f=c===`y`?`top`:U,p=c===`y`?Ae:je,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=ot(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=ct(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function ht(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||et(t.elements.popper,r)&&(t.elements.arrow=r))}var gt={name:`arrow`,enabled:!0,phase:`main`,fn:mt,effect:ht,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function _t(e){return e.split(`-`)[1]}var vt={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function yt(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ye(n*i)/i||0,y:Ye(r*i)/i||0}}function bt(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=U,b=`top`,x=window;if(l){var S=ot(n),C=`clientHeight`,w=`clientWidth`;if(S===G(n)&&(S=nt(n),J(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=Ae;
vendor: 4,949 bytes, line 1
1var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=je;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&vt),O=u===!0?yt({x:p,y:h},G(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function xt(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:q(t.placement),variation:_t(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,bt(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,bt(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var St={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:xt,data:{}},Ct={passive:!0};function wt(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=G(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Ct)}),s&&c.addEventListener(`resize`,n.update,Ct),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Ct)}),s&&c.removeEventListener(`resize`,n.update,Ct)}}var Tt={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:wt,data:{}},Et={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Dt(e){return e.replace(/left|right|bottom|top/g,function(e){return Et[e]})}var Ot={start:`end`,end:`start`};function kt(e){return e.replace(/start|end/g,function(e){return Ot[e]})}function At(e){var t=G(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function jt(e){return Qe(nt(e)).left+At(e).scrollLeft}function Mt(e,t){var n=G(e),r=nt(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=Ze();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+jt(e),y:c}}function Nt(e){var t=nt(e),n=At(e),r=e.ownerDocument?.body,i=qe(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=qe(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+jt(e),s=-n.scrollTop;return J(r||t).direction===`rtl`&&(o+=qe(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function Pt(e){var t=J(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Ft(e){return[`html`,`body`,`#document`].indexOf(W(e))>=0?e.ownerDocument.body:K(e)&&Pt(e)?e:Ft(rt(e))}function It(e,t){t===void 0&&(t=[]);var n=Ft(e),r=n===e.ownerDocument?.body,i=G(n),a=r?[i].concat(i.visualViewport||[],Pt(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(It(rt(a)))}function Lt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Rt(e,t){var n=Qe(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function zt(e,t,n){return t===`viewport`?Lt(Mt(e,n)):He(t)?Rt(t,n):Lt(Nt(nt(e)))}function Bt(e){var t=It(rt(e)),n=[`absolute`,`fixed`].indexOf(J(e).position)>=0&&K(e)?ot(e):e;return He(n)?t.filter(function(e){return He(e)&&et(e,n)&&W(e)!==`body`}):[]}function Vt(e,t,n,r){var i=t===`clippingParents`?Bt(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=zt(e,n,r);return t.top=qe(i.top,t.top),t.right=Je(i.right,t.right),t.bottom=Je(i.bottom,t.bottom),t.left=qe(i.left,t.left),t},zt(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ht(e){var t=e.reference,n=e.element,r=e.placement,i=r?q(r):null,a=r?_t(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case Ae:c={x:o,y:t.y+t.height};break;case je:c={x:t.x+t.width,y:s};break;case U:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?st(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case Pe:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2)}}return c}function Ut(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?Fe:s,l=n.rootBoundary,u=l===void 0?Ie:l,d=n.elementContext,f
vendor: 4,267 bytes, line 1
1=d===void 0?Le:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=dt(typeof g==`number`?ft(g,Ne):g),v=f===`popper`?Re:Le,y=e.rects.popper,b=e.elements[m?v:f],x=Vt(He(b)?b:b.contextElement||nt(e.elements.popper),c,u,o),S=Qe(e.elements.reference),C=Ht({reference:S,element:y,strategy:`absolute`,placement:i}),w=Lt(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function Wt(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?Be:c,u=_t(r),d=u?s?ze:ze.filter(function(e){return _t(e)===u}):Ne,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=Ut(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[q(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function Gt(e){if(q(e)===`auto`)return[];var t=Dt(e);return[kt(e),t,kt(t)]}function Kt(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=q(g)===g,v=c||(_||!m?[Dt(g)]:Gt(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(q(n)===`auto`?Wt(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=q(E),O=_t(E)===Pe,k=[`top`,Ae].indexOf(D)>=0,A=k?`width`:`height`,j=Ut(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),M=k?O?je:U:O?Ae:`top`;b[A]>x[A]&&(M=Dt(M));var N=Dt(M),P=[];if(a&&P.push(j[D]<=0),s&&P.push(j[M]<=0,j[N]<=0),P.every(function(e){return e})){w=E,C=!1;break}S.set(E,P)}if(C)for(var F=m?3:1,I=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},L=F;L>0&&I(L)!==`break`;L--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var qt={name:`flip`,enabled:!0,phase:`main`,fn:Kt,requiresIfExists:[`offset`],data:{_skip:!1}};function Jt(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Yt(e){return[`top`,je,Ae,U].some(function(t){return e[t]>=0})}function Xt(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Ut(t,{elementContext:`reference`}),s=Ut(t,{altBoundary:!0}),c=Jt(o,r),l=Jt(s,i,a),u=Yt(c),d=Yt(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var Zt={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:Xt};function Qt(e,t,n){var r=q(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function $t(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Be.reduce(function(e,n){return e[n]=Qt(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var en={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:$t};function tn(e){var t=e.state,n=e.name;t.modifiersData[n]=Ht({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var nn={name:`popperOffsets`,enabled:!0,phase:`read`,fn:tn,data:{}};function rn(e){return e===`x`?`y`:`x`}function an(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f
vendor: 4,427 bytes, line 1
1=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=Ut(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=q(t.placement),v=_t(t.placement),y=!v,b=st(_),x=rn(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:U,A=b===`y`?Ae:je,j=b===`y`?`height`:`width`,M=S[b],N=M+g[k],P=M-g[A],F=p?-w[j]/2:0,I=v===`start`?C[j]:w[j],L=v===`start`?-w[j]:-C[j],ee=t.elements.arrow,te=p&&ee?$e(ee):{width:0,height:0},R=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:ut(),z=R[k],ne=R[A],B=ct(0,C[j],te[j]),re=y?C[j]/2-F-B-z-E.mainAxis:I-B-z-E.mainAxis,ie=y?-C[j]/2+F+B+ne+E.mainAxis:L+B+ne+E.mainAxis,ae=t.elements.arrow&&ot(t.elements.arrow),oe=ae?b===`y`?ae.clientTop||0:ae.clientLeft||0:0,se=D?.[b]??0,ce=M+re-se-oe,le=M+ie-se,ue=ct(p?Je(N,ce):N,M,p?qe(P,le):P);S[b]=ue,O[b]=ue-M}if(s){var V=b===`x`?`top`:U,de=b===`x`?Ae:je,H=S[x],fe=x===`y`?`height`:`width`,pe=H+g[V],me=H-g[de],he=[`top`,U].indexOf(_)!==-1,ge=D?.[x]??0,_e=he?pe:H-C[fe]-w[fe]-ge+E.altAxis,ve=he?H+C[fe]+w[fe]-ge-E.altAxis:me,ye=p&&he?lt(_e,H,ve):ct(p?_e:pe,H,p?ve:me);S[x]=ye,O[x]=ye-H}t.modifiersData[r]=O}}var on={name:`preventOverflow`,enabled:!0,phase:`main`,fn:an,requiresIfExists:[`offset`]};function sn(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function cn(e){return e===G(e)||!K(e)?At(e):sn(e)}function ln(e){var t=e.getBoundingClientRect(),n=Ye(t.width)/e.offsetWidth||1,r=Ye(t.height)/e.offsetHeight||1;return n!==1||r!==1}function un(e,t,n){n===void 0&&(n=!1);var r=K(t),i=K(t)&&ln(t),a=nt(t),o=Qe(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((W(t)!==`body`||Pt(a))&&(s=cn(t)),K(t)?(c=Qe(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=jt(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function dn(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function fn(e){var t=dn(e);return Ve.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function pn(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function mn(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var hn={placement:`bottom`,modifiers:[],strategy:`absolute`};function gn(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function _n(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?hn:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},hn,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:He(e)?It(e):e.contextElement?It(e.contextElement):[],popper:It(t)};var s=fn(mn([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(gn(t,n)){i.rects={reference:un(t,ot(n),i.options.strategy===`fixed`),popper:$e(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:pn(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!gn(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});
1function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var vn=_n({defaultModifiers:[Tt,nn,St,Ke,en,qt,on,gt,Zt]}),yn=function(){return yn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},yn.apply(this,arguments)},bn=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},xn={placement:`bottom`,triggerType:`click`,offsetSkidding:0,offsetDistance:10,delay:300,ignoreClickOutsideClass:!1,onShow:function(){},onHide:function(){},onToggle:function(){}},Sn={id:null,override:!0},Cn=function(){function e(e,t,n,r){e===void 0&&(e=null),t===void 0&&(t=null),n===void 0&&(n=xn),r===void 0&&(r=Sn),this._instanceId=r.id?r.id:e.id,this._targetEl=e,this._triggerEl=t,this._options=yn(yn({},xn),n),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),V.addInstance(`Dropdown`,this,this._instanceId,r.override)}return e.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._popperInstance=this._createPopperInstance(),this._setupEventListeners(),this._initialized=!0)},e.prototype.destroy=function(){var e=this,t=this._getTriggerEvents();this._options.triggerType===`click`&&t.showEvents.forEach(function(t){e._triggerEl.removeEventListener(t,e._clickHandler)}),this._options.triggerType===`hover`&&(t.showEvents.forEach(function(t){e._triggerEl.removeEventListener(t,e._hoverShowTriggerElHandler),e._targetEl.removeEventListener(t,e._hoverShowTargetElHandler)}),t.hideEvents.forEach(function(t){e._triggerEl.removeEventListener(t,e._hoverHideHandler),e._targetEl.removeEventListener(t,e._hoverHideHandler)})),this._popperInstance.destroy(),this._initialized=!1},e.prototype.removeInstance=function(){V.removeInstance(`Dropdown`,this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype._setupEventListeners=function(){var e=this,t=this._getTriggerEvents();this._clickHandler=function(){e.toggle()},this._options.triggerType===`click`&&t.showEvents.forEach(function(t){e._triggerEl.addEventListener(t,e._clickHandler)}),this._hoverShowTriggerElHandler=function(t){t.type===`click`?e.toggle():setTimeout(function(){e.show()},e._options.delay)},this._hoverShowTargetElHandler=function(){e.show()},this._hoverHideHandler=function(){setTimeout(function(){e._targetEl.matches(`:hover`)||e.hide()},e._options.delay)},this._options.triggerType===`hover`&&(t.showEvents.forEach(function(t){e._triggerEl.addEventListener(t,e._hoverShowTriggerElHandler),e._targetEl.addEventListener(t,e._hoverShowTargetElHandler)}),t.hideEvents.forEach(function(t){e._triggerEl.addEventListener(t,e._hoverHideHandler),e._targetEl.addEventListener(t,e._hoverHideHandler)}))},e.prototype._createPopperInstance=function(){return vn(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:`offset`,options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},e.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(t){e._handleClickOutside(t,e._targetEl)},document.body.addEventListener(`click`,this._clickOutsideEventListener,!0)},e.prototype._removeClickOutsideListener=function(){document.body.removeEventListener(`click`,this._clickOutsideEventListener,!0)},e.prototype._handleClickOutside=function(e,t){var n=e.target,r=this._options.ignoreClickOutsideClass,i=!1;r&&document.querySelectorAll(`.${r}`).forEach(function(e){if(e.contains(n)){i=!0;return}}),n!==t&&!t.contains(n)&&!this._triggerEl.contains(n)&&!i&&this.isVisible()&&this.hide()},e.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case`hover`:return{showEvents:[`mouseenter`,`click`],hideEvents:[`mouseleave`]};case`click`:return{showEvents:[`click`],hideEvents:[]};case`none`:return{showEvents:[],hideEvents:[]};default:return{showEvents:[`click`],hideEvents:[]}}},e.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},e.prototype.isVisible=function(){return this._visible},e.prototype.show=function(){this._targetEl.classList.remove(`hidden`),this._targetEl.classList.add(`block`),this._targetEl.removeAttribute(`aria-hidden`),this._popperInstance.setOptions(function(e){return yn(yn({},e),{modifiers:bn(bn([],e.modifiers,!0),[{name:`eventListeners`,enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._popperInstance.update(
1),this._visible=!0,this._options.onShow(this)},e.prototype.hide=function(){this._targetEl.classList.remove(`block`),this._targetEl.classList.add(`hidden`),this._targetEl.setAttribute(`aria-hidden`,`true`),this._popperInstance.setOptions(function(e){return yn(yn({},e),{modifiers:bn(bn([],e.modifiers,!0),[{name:`eventListeners`,enabled:!1}],!1)})}),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},e.prototype.updateOnShow=function(e){this._options.onShow=e},e.prototype.updateOnHide=function(e){this._options.onHide=e},e.prototype.updateOnToggle=function(e){this._options.onToggle=e},e}();function wn(){document.querySelectorAll(`[data-dropdown-toggle]`).forEach(function(e){var t=e.getAttribute(`data-dropdown-toggle`),n=document.getElementById(t);if(n){var r=e.getAttribute(`data-dropdown-placement`),i=e.getAttribute(`data-dropdown-offset-skidding`),a=e.getAttribute(`data-dropdown-offset-distance`),o=e.getAttribute(`data-dropdown-trigger`),s=e.getAttribute(`data-dropdown-delay`),c=e.getAttribute(`data-dropdown-ignore-click-outside-class`);new Cn(n,e,{placement:r||xn.placement,triggerType:o||xn.triggerType,offsetSkidding:i?parseInt(i):xn.offsetSkidding,offsetDistance:a?parseInt(a):xn.offsetDistance,delay:s?parseInt(s):xn.delay,ignoreClickOutsideClass:c||xn.ignoreClickOutsideClass})}else console.error(`The dropdown element with id "${t}" does not exist. Please check the data-dropdown-toggle attribute.`)})}typeof window<`u`&&(window.Dropdown=Cn,window.initDropdowns=wn);var Tn=function(){return Tn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Tn.apply(this,arguments)},En={placement:`center`,backdropClasses:`bg-dark-backdrop/70 fixed inset-0 z-40`,backdrop:`dynamic`,closable:!0,onHide:function(){},onShow:function(){},onToggle:function(){}},Dn={id:null,override:!0},On=function(){function e(e,t,n){e===void 0&&(e=null),t===void 0&&(t=En),n===void 0&&(n=Dn),this._eventListenerInstances=[],this._instanceId=n.id?n.id:e.id,this._targetEl=e,this._options=Tn(Tn({},En),t),this._isHidden=!0,this._backdropEl=null,this._initialized=!1,this.init(),V.addInstance(`Modal`,this,this._instanceId,n.override)}return e.prototype.init=function(){var e=this;this._targetEl&&!this._initialized&&(this._getPlacementClasses().map(function(t){e._targetEl.classList.add(t)}),this._initialized=!0)},e.prototype.destroy=function(){this._initialized&&=(this.removeAllEventListenerInstances(),this._destroyBackdropEl(),!1)},e.prototype.removeInstance=function(){V.removeInstance(`Modal`,this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype._createBackdrop=function(){var e;if(this._isHidden){var t=document.createElement(`div`);(e=t.classList).add.apply(e,this._options.backdropClasses.split(` `)),document.querySelector(`body`).append(t),this._backdropEl=t}},e.prototype._destroyBackdropEl=function(){!this._isHidden&&this._backdropEl&&(this._backdropEl.remove(),this._backdropEl=null)},e.prototype._setupModalCloseEventListeners=function(){var e=this;this._options.backdrop===`dynamic`&&(this._clickOutsideEventListener=function(t){e._handleOutsideClick(t.target)},this._targetEl.addEventListener(`click`,this._clickOutsideEventListener,!0)),this._keydownEventListener=function(t){t.key===`Escape`&&e.hide()},document.body.addEventListener(`keydown`,this._keydownEventListener,!0)},e.prototype._removeModalCloseEventListeners=function(){this._options.backdrop===`dynamic`&&this._targetEl.removeEventListener(`click`,this._clickOutsideEventListener,!0),document.body.removeEventListener(`keydown`,this._keydownEventListener,!0)},e.prototype._handleOutsideClick=function(e){(e===this._targetEl||e===this._backdropEl&&this.isVisible())&&this.hide()},e.prototype._getPlacementClasses=function(){switch(this._options.placement){case`top-left`:return[`justify-start`,`items-start`];case`top-center`:return[`justify-center`,`items-start`];case`top-right`:return[`justify-end`,`items-start`];case`center-left`:return[`justify-start`,`items-center`];case`center`:return[`justify-center`,`items-center`];case`center-right`:return[`justify-end`,`items-center`];case`bottom-left`:return[`justify-start`,`items-end`];case`bottom-center`:return[`justify-center`,`items-end`];case`bottom-right`:return[`justify-end`,`items-end`];default:return[`justify-center`,`items-center`]}},e.prototype.toggle=function(){this._isHidden?this.show():this.hide(),this._options.onToggle(this)},e.prototype.show=function(){this.isHidden()&&(this._targetEl.classList.add(`flex`),this._targetEl.classList.remove(`hidden`),this._targetEl.setAttribute(`aria-modal`,`true`),this._targetEl.setAttribute(`role`,`dialog`),this._targetEl.removeAttribute(`aria-hidden`),this._createBackdrop(),this._isHidden=!1,this._options.closable&&this._setupModalCloseEventListeners(),document.body.classList.add(`overflow-hidden`),this._options.onShow(this))},e.prototype.hide=function(){this.isVisible()&&(this._targetEl.classList.add(`hidden`),this._targetEl.classList.remove(`flex`),this._targetEl.setAttribute(`aria-hidden`,`true`),this._targetEl.removeAttribute(`aria-modal`),this._targetEl.removeAttribute(`role`),this._destroyBackdropEl(),this._isHidden=!0,document.body.classList.remove(`overflow-hidden`),this._options.closable&&this._removeModalCloseEventListeners(),this._options.onHide(this))},e.prototype.isVisible=function(){return!this._isHidden},e.prototype.isHidden=function(){return this._isHidden},e.prototype.addEventListenerInstance=function(e,t,n){this._eventListenerInstances.push({element:e,type:t,handler:n})},e.prototype.removeAllEventListenerInstances=function(){this._eventListenerInstances.map(function(e){e.element.removeEventListener(e.type,e.handler)}),this._eventListenerInstances=[]},e.prototype.getAllEventListenerInstances=function(){return this._eventListenerInstances},e.prototype.updateOnShow=function(e){this._options.onShow=e},e.prototype.updateOnHide=function(e){this._options.onHide=e},e.prototype.updateOnToggle=function(e){this._options.onToggle=e},e}();function kn(){document.querySelectorAll(`[data-modal-target]`).forEach(function(e){var t=e.getAttribute(`data-modal-target`),n=document.getElementById(t);if(n){var r=n.getAttribute(`data-modal-placement`),i=n.getAttribute(`data-modal-backdrop`);new On(n,{placement:r||En.placement,backdrop:i||En.backdrop})}
1else console.error(`Modal with id ${t} does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?.`)}),document.querySelectorAll(`[data-modal-toggle]`).forEach(function(e){var t=e.getAttribute(`data-modal-toggle`);if(document.getElementById(t)){var n=V.getInstance(`Modal`,t);if(n){var r=function(){n.toggle()};e.addEventListener(`click`,r),n.addEventListenerInstance(e,`click`,r)}else console.error(`Modal with id ${t} has not been initialized. Please initialize it using the data-modal-target attribute.`)}else console.error(`Modal with id ${t} does not exist. Are you sure that the data-modal-toggle attribute points to the correct modal id?`)}),document.querySelectorAll(`[data-modal-show]`).forEach(function(e){var t=e.getAttribute(`data-modal-show`);if(document.getElementById(t)){var n=V.getInstance(`Modal`,t);if(n){var r=function(){n.show()};e.addEventListener(`click`,r),n.addEventListenerInstance(e,`click`,r)}else console.error(`Modal with id ${t} has not been initialized. Please initialize it using the data-modal-target attribute.`)}
1else console.error(`Modal with id ${t} does not exist. Are you sure that the data-modal-show attribute points to the correct modal id?`)}),document.querySelectorAll(`[data-modal-hide]`).forEach(function(e){var t=e.getAttribute(`data-modal-hide`);if(document.getElementById(t)){var n=V.getInstance(`Modal`,t);if(n){var r=function(){n.hide()};e.addEventListener(`click`,r),n.addEventListenerInstance(e,`click`,r)}else console.error(`Modal with id ${t} has not been initialized. Please initialize it using the data-modal-target attribute.`)}else console.error(`Modal with id ${t} does not exist. Are you sure that the data-modal-hide attribute points to the correct modal id?`)})}typeof window<`u`&&(window.Modal=On,window.initModals=kn);var An=function(){return An=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},An.apply(this,arguments)},jn={placement:`left`,bodyScrolling:!1,backdrop:!0,edge:!1,edgeOffset:`bottom-[60px]`,backdropClasses:`bg-dark-backdrop/70 fixed inset-0 z-30`,onShow:function(){},onHide:function(){},onToggle:function(){}},Mn={id:null,override:!0},Nn=function(){function e(e,t,n){e===void 0&&(e=null),t===void 0&&(t=jn),n===void 0&&(n=Mn),this._eventListenerInstances=[],this._instanceId=n.id?n.id:e.id,this._targetEl=e,this._options=An(An({},jn),t),this._visible=!1,this._initialized=!1,this.init(),V.addInstance(`Drawer`,this,this._instanceId,n.override)}return e.prototype.init=function(){var e=this;this._targetEl&&!this._initialized&&(this._targetEl.setAttribute(`aria-hidden`,`true`),this._targetEl.classList.add(`transition-transform`),this._getPlacementClasses(this._options.placement).base.map(function(t){e._targetEl.classList.add(t)}),this._handleEscapeKey=function(t){t.key===`Escape`&&e.isVisible()&&e.hide()},document.addEventListener(`keydown`,this._handleEscapeKey),this._initialized=!0)},e.prototype.destroy=function(){this._initialized&&=(this.removeAllEventListenerInstances(),this._destroyBackdropEl(),document.removeEventListener(`keydown`,this._handleEscapeKey),!1)},e.prototype.removeInstance=function(){V.removeInstance(`Drawer`,this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.hide=function(){var e=this;this._options.edge?(this._getPlacementClasses(this._options.placement+`-edge`).active.map(function(t){e._targetEl.classList.remove(t)}),this._getPlacementClasses(this._options.placement+`-edge`).inactive.map(function(t){e._targetEl.classList.add(t)})):(this._getPlacementClasses(this._options.placement).active.map(function(t){e._targetEl.classList.remove(t)}),this._getPlacementClasses(this._options.placement).inactive.map(function(t){e._targetEl.classList.add(t)})),this._targetEl.setAttribute(`aria-hidden`,`true`),this._targetEl.removeAttribute(`aria-modal`),this._targetEl.removeAttribute(`role`),this._options.bodyScrolling||document.body.classList.remove(`overflow-hidden`),this._options.backdrop&&this._destroyBackdropEl(),this._visible=!1,this._options.onHide(this)},e.prototype.show=function(){var e=this;this._options.edge?(this._getPlacementClasses(this._options.placement+`-edge`).active.map(function(t){e._targetEl.classList.add(t)}),this._getPlacementClasses(this._options.placement+`-edge`).inactive.map(function(t){e._targetEl.classList.remove(t)})):(this._getPlacementClasses(this._options.placement).active.map(function(t){e._targetEl.classList.add(t)}),this._getPlacementClasses(this._options.placement).inactive.map(function(t){e._targetEl.classList.remove(t)})),this._targetEl.setAttribute(`aria-modal`,`true`),this._targetEl.setAttribute(`role`,`dialog`),this._targetEl.removeAttribute(`aria-hidden`),this._options.bodyScrolling||document.body.classList.add(`overflow-hidden`),this._options.backdrop&&this._createBackdrop(),this._visible=!0,this._options.onShow(this)},e.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},e.prototype._createBackdrop=function(){var e,t=this;if(!this._visible){var n=document.createElement(`div`);n.setAttribute(`drawer-backdrop`,``),(e=n.classList).add.apply(e,this._options.backdropClasses.split(` `)),document.querySelector(`body`).append(n),n.addEventListener(`click`,function(){t.hide()})}},e.prototype._destroyBackdropEl=function(){this._visible&&document.querySelector(`[drawer-backdrop]`)!==null&&document.querySelector(`[drawer-backdrop]`).remove()},e.prototype._getPlacementClasses=function(e){switch(e){case`top`:return{base:[`top-0`,`left-0`,`right-0`],active:[`transform-none`],inactive:[`-translate-y-full`]};case`right`:return{base:[`right-0`,`top-0`],active:[`transform-none`],inactive:[`translate-x-full`]};case`bottom`:return{base:[`bottom-0`,`left-0`,`right-0`],active:[`transform-none`],inactive:[`translate-y-full`]};case`left`:return{base:[`left-0`,`top-0`],active:[`transform-none`],inactive:[`-translate-x-full`]};case`bottom-edge`:return{base:[`left-0`,`top-0`],active:[`transform-none`],inactive:[`translate-y-full`,this._options.edgeOffset]};default:return{base:[`left-0`,`top-0`],active:[`transform-none`],inactive:[`-translate-x-full`]}}},e.prototype.isHidden=function(){return!this._visible},e.prototype.isVisible=function(){return this._visible},e.prototype.addEventListenerInstance=function(e,t,n){this._eventListenerInstances.push({element:e,type:t,handler:n})},e.prototype.removeAllEventListenerInstances=function(){this._eventListenerInstances.map(function(e){e.element.removeEventListener(e.type,e.handler)}),this._eventListenerInstances=[]},e.prototype.getAllEventListenerInstances=function(){return this._eventListenerInstances},e.prototype.updateOnShow=function(e){this._options.onShow=e},e.prototype.updateOnHide=function(e){this._options.onHide=e},e.prototype.updateOnToggle=function(e){this._options.onToggle=e},e}();function Pn(){document.querySelectorAll(`[data-drawer-target]`).forEach(function(e){var t=e.getAttribute(`data-drawer-target`),n=document.getElementById(t);if(n){var r=e.getAttribute(`data-drawer-placement`),i=e.getAttribute(`data-drawer-body-scrolling`),a=e.getAttribute(`data-drawer-backdrop`),o=e.getAttribute(`data-drawer-edge`),s=e.getAttribute(`data-drawer-edge-offset`);new Nn(n,{placement:r||jn.placement,bodyScrolling:i?i===`true`:jn.bodyScrolling,backdrop:a?a===`true`:jn.backdrop,edge:o?o===`true`:jn.edge,edgeOffset:s||jn.edgeOffset})}
1else console.error(`Drawer with id ${t} not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?`)}),document.querySelectorAll(`[data-drawer-toggle]`).forEach(function(e){var t=e.getAttribute(`data-drawer-toggle`);if(document.getElementById(t)){var n=V.getInstance(`Drawer`,t);if(n){var r=function(){n.toggle()};e.addEventListener(`click`,r),n.addEventListenerInstance(e,`click`,r)}else console.error(`Drawer with id ${t} has not been initialized. Please initialize it using the data-drawer-target attribute.`)}else console.error(`Drawer with id ${t} not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?`)}),document.querySelectorAll(`[data-drawer-dismiss], [data-drawer-hide]`).forEach(function(e){var t=e.getAttribute(`data-drawer-dismiss`)?e.getAttribute(`data-drawer-dismiss`):e.getAttribute(`data-drawer-hide`);if(document.getElementById(t)){var n=V.getInstance(`Drawer`,t);if(n){var r=function(){n.hide()};e.addEventListener(`click`,r),n.addEventListenerInstance(e,`click`,r)}else console.error(`Drawer with id ${t} has not been initialized. Please initialize it using the data-drawer-target attribute.`)}else console.error(`Drawer with id ${t} not found. Are you sure that the data-drawer-target attribute points to the correct drawer id`)}),document.querySelectorAll(`[data-drawer-show]`).forEach(function(e){var t=e.getAttribute(`data-drawer-show`);if(document.getElementById(t)){var n=V.getInstance(`Drawer`,t);if(n){var r=function(){n.show()};e.addEventListener(`click`,r),n.addEventListenerInstance(e,`click`,r)}else console.error(`Drawer with id ${t} has not been initialized. Please initialize it using the data-drawer-target attribute.`)}else console.error(`Drawer with id ${t} not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?`)})}typeof window<`u`&&(window.Drawer=Nn,window.initDrawers=Pn);var Fn=function(){return Fn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Fn.apply(this,arguments)},In={defaultTabId:null,activeClasses:`text-fg-brand hover:text-fg-brand border-brand`,inactiveClasses:`border-transparent text-body hover:text-heading border-soft hover:border-default`,onShow:function(){}},Ln={id:null,override:!0},Rn=function(){function e(e,t,n,r){e===void 0&&(e=null),t===void 0&&(t=[]),n===void 0&&(n=In),r===void 0&&(r=Ln),this._instanceId=r.id?r.id:e.id,this._tabsEl=e,this._items=t,this._activeTab=n?this.getTab(n.defaultTabId):null,this._options=Fn(Fn({},In),n),this._initialized=!1,this.init(),V.addInstance(`Tabs`,this,this._instanceId,r.override)}return e.prototype.init=function(){var e=this;this._items.length&&!this._initialized&&(this._activeTab||this.setActiveTab(this._items[0]),this.show(this._activeTab.id,!0),this._items.map(function(t){t.triggerEl.addEventListener(`click`,function(n){n.preventDefault(),e.show(t.id)})}))},e.prototype.destroy=function(){this._initialized&&=!1},e.prototype.removeInstance=function(){this.destroy(),V.removeInstance(`Tabs`,this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getActiveTab=function(){return this._activeTab},e.prototype.setActiveTab=function(e){this._activeTab=e},e.prototype.getTab=function(e){return this._items.filter(function(t){return t.id===e})[0]},e.prototype.show=function(e,t){var n,r,i=this;t===void 0&&(t=!1);var a=this.getTab(e);a===this._activeTab&&!t||(this._items.map(function(e){var t,n;e!==a&&((t=e.triggerEl.classList).remove.apply(t,i._options.activeClasses.split(` `)),(n=e.triggerEl.classList).add.apply(n,i._options.inactiveClasses.split(` `)),e.targetEl.classList.add(`hidden`),e.triggerEl.setAttribute(`aria-selected`,`false`))}),(n=a.triggerEl.classList).add.apply(n,this._options.activeClasses.split(` `)),(r=a.triggerEl.classList).remove.apply(r,this._options.inactiveClasses.split(` `)),a.triggerEl.setAttribute(`aria-selected`,`true`),a.targetEl.classList.remove(`hidden`),this.setActiveTab(a),this._options.onShow(this,a))},e.prototype.updateOnShow=function(e){this._options.onShow=e},e}();function zn(){document.querySelectorAll(`[data-tabs-toggle]`).forEach(function(e){var t=[],n=e.getAttribute(`data-tabs-active-classes`),r=e.getAttribute(`data-tabs-inactive-classes`),i=null;e.querySelectorAll(`[role="tab"]`).forEach(function(e){var n=e.getAttribute(`aria-selected`)===`true`,r={id:e.getAttribute(`data-tabs-target`),triggerEl:e,targetEl:document.querySelector(e.getAttribute(`data-tabs-target`))};t.push(r),n&&(i=r.id)}),new Rn(e,t,{defaultTabId:i,activeClasses:n||In.activeClasses,inactiveClasses:r||In.inactiveClasses})})}typeof window<`u`&&(window.Tabs=Rn,window.initTabs=zn);var Bn=function(){return Bn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Bn.apply(this,arguments)},Vn=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;
1r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},Hn={placement:`top`,triggerType:`hover`,onShow:function(){},onHide:function(){},onToggle:function(){}},Un={id:null,override:!0},Wn=function(){function e(e,t,n,r){e===void 0&&(e=null),t===void 0&&(t=null),n===void 0&&(n=Hn),r===void 0&&(r=Un),this._instanceId=r.id?r.id:e.id,this._targetEl=e,this._triggerEl=t,this._options=Bn(Bn({},Hn),n),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),V.addInstance(`Tooltip`,this,this._instanceId,r.override)}return e.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._setupEventListeners(),this._popperInstance=this._createPopperInstance(),this._initialized=!0)},e.prototype.destroy=function(){var e=this;if(this._initialized){var t=this._getTriggerEvents();t.showEvents.forEach(function(t){e._triggerEl.removeEventListener(t,e._showHandler)}),t.hideEvents.forEach(function(t){e._triggerEl.removeEventListener(t,e._hideHandler)}),this._removeKeydownListener(),this._removeClickOutsideListener(),this._popperInstance&&this._popperInstance.destroy(),this._initialized=!1}},e.prototype.removeInstance=function(){V.removeInstance(`Tooltip`,this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype._setupEventListeners=function(){var e=this,t=this._getTriggerEvents();this._showHandler=function(){e.show()},this._hideHandler=function(){e.hide()},t.showEvents.forEach(function(t){e._triggerEl.addEventListener(t,e._showHandler)}),t.hideEvents.forEach(function(t){e._triggerEl.addEventListener(t,e._hideHandler)})},e.prototype._createPopperInstance=function(){return vn(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:`offset`,options:{offset:[0,8]}}]})},e.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case`hover`:return{showEvents:[`mouseenter`,`focus`],hideEvents:[`mouseleave`,`blur`]};case`click`:return{showEvents:[`click`,`focus`],hideEvents:[`focusout`,`blur`]};case`none`:return{showEvents:[],hideEvents:[]};default:return{showEvents:[`mouseenter`,`focus`],hideEvents:[`mouseleave`,`blur`]}}},e.prototype._setupKeydownListener=function(){var e=this;this._keydownEventListener=function(t){t.key===`Escape`&&e.hide()},document.body.addEventListener(`keydown`,this._keydownEventListener,!0)},e.prototype._removeKeydownListener=function(){document.body.removeEventListener(`keydown`,this._keydownEventListener,!0)},e.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(t){e._handleClickOutside(t,e._targetEl)},document.body.addEventListener(`click`,this._clickOutsideEventListener,!0)},e.prototype._removeClickOutsideListener=function(){document.body.removeEventListener(`click`,this._clickOutsideEventListener,!0)},e.prototype._handleClickOutside=function(e,t){var n=e.target;n!==t&&!t.contains(n)&&!this._triggerEl.contains(n)&&this.isVisible()&&this.hide()},e.prototype.isVisible=function(){return this._visible},e.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},e.prototype.show=function(){this._targetEl.classList.remove(`opacity-0`,`invisible`),this._targetEl.classList.add(`opacity-100`,`visible`),this._popperInstance.setOptions(function(e){return Bn(Bn({},e),{modifiers:Vn(Vn([],e.modifiers,!0),[{name:`eventListeners`,enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},e.prototype.hide=function(){this._targetEl.classList.remove(`opacity-100`,`visible`),this._targetEl.classList.add(`opacity-0`,`invisible`),this._popperInstance.setOptions(function(e){return Bn(Bn({},e),{modifiers:Vn(Vn([],e.modifiers,!0),[{name:`eventListeners`,enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},e.prototype.updateOnShow=function(e){this._options.onShow=e},e.prototype.updateOnHide=function(e){this._options.onHide=e},e.prototype.updateOnToggle=function(e){this._options.onToggle=e},e}();function Gn(){document.querySelectorAll(`[data-tooltip-target]`).forEach(function(e){var t=e.getAttribute(`data-tooltip-target`),n=document.getElementById(t);if(n){var r=e.getAttribute(`data-tooltip-trigger`);new Wn(n,e,{placement:e.getAttribute(`data-tooltip-placement`)||Hn.placement,triggerType:r||Hn.triggerType})}else console.error(`The tooltip element with id "${t}" does not exist. Please check the data-tooltip-target attribute.`)})}typeof window<`u`&&(window.Tooltip=Wn,window.initTooltips=Gn);var Kn=function(){return Kn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Kn.apply(this,arguments)},qn=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;
1r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},Jn={placement:`top`,offset:10,triggerType:`hover`,onShow:function(){},onHide:function(){},onToggle:function(){}},Yn={id:null,override:!0},Xn=function(){function e(e,t,n,r){e===void 0&&(e=null),t===void 0&&(t=null),n===void 0&&(n=Jn),r===void 0&&(r=Yn),this._instanceId=r.id?r.id:e.id,this._targetEl=e,this._triggerEl=t,this._options=Kn(Kn({},Jn),n),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),V.addInstance(`Popover`,this,r.id?r.id:this._targetEl.id,r.override)}return e.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._setupEventListeners(),this._popperInstance=this._createPopperInstance(),this._initialized=!0)},e.prototype.destroy=function(){var e=this;if(this._initialized){var t=this._getTriggerEvents();t.showEvents.forEach(function(t){e._triggerEl.removeEventListener(t,e._showHandler),e._targetEl.removeEventListener(t,e._showHandler)}),t.hideEvents.forEach(function(t){e._triggerEl.removeEventListener(t,e._hideHandler),e._targetEl.removeEventListener(t,e._hideHandler)}),this._removeKeydownListener(),this._removeClickOutsideListener(),this._popperInstance&&this._popperInstance.destroy(),this._initialized=!1}},e.prototype.removeInstance=function(){V.removeInstance(`Popover`,this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype._setupEventListeners=function(){var e=this,t=this._getTriggerEvents();this._showHandler=function(){e.show()},this._hideHandler=function(){setTimeout(function(){e._targetEl.matches(`:hover`)||e.hide()},100)},t.showEvents.forEach(function(t){e._triggerEl.addEventListener(t,e._showHandler),e._targetEl.addEventListener(t,e._showHandler)}),t.hideEvents.forEach(function(t){e._triggerEl.addEventListener(t,e._hideHandler),e._targetEl.addEventListener(t,e._hideHandler)})},e.prototype._createPopperInstance=function(){return vn(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:`offset`,options:{offset:[0,this._options.offset]}}]})},e.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case`hover`:return{showEvents:[`mouseenter`,`focus`],hideEvents:[`mouseleave`,`blur`]};case`click`:return{showEvents:[`click`,`focus`],hideEvents:[`focusout`,`blur`]};case`none`:return{showEvents:[],hideEvents:[]};default:return{showEvents:[`mouseenter`,`focus`],hideEvents:[`mouseleave`,`blur`]}}},e.prototype._setupKeydownListener=function(){var e=this;this._keydownEventListener=function(t){t.key===`Escape`&&e.hide()},document.body.addEventListener(`keydown`,this._keydownEventListener,!0)},e.prototype._removeKeydownListener=function(){document.body.removeEventListener(`keydown`,this._keydownEventListener,!0)},e.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(t){e._handleClickOutside(t,e._targetEl)},document.body.addEventListener(`click`,this._clickOutsideEventListener,!0)},e.prototype._removeClickOutsideListener=function(){document.body.removeEventListener(`click`,this._clickOutsideEventListener,!0)},e.prototype._handleClickOutside=function(e,t){var n=e.target;n!==t&&!t.contains(n)&&!this._triggerEl.contains(n)&&this.isVisible()&&this.hide()},e.prototype.isVisible=function(){return this._visible},e.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},e.prototype.show=function(){this._targetEl.classList.remove(`opacity-0`,`invisible`),this._targetEl.classList.add(`opacity-100`,`visible`),this._popperInstance.setOptions(function(e){return Kn(Kn({},e),{modifiers:qn(qn([],e.modifiers,!0),[{name:`eventListeners`,enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},e.prototype.hide=function(){this._targetEl.classList.remove(`opacity-100`,`visible`),this._targetEl.classList.add(`opacity-0`,`invisible`),this._popperInstance.setOptions(function(e){return Kn(Kn({},e),{modifiers:qn(qn([],e.modifiers,!0),[{name:`eventListeners`,enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},e.prototype.updateOnShow=function(e){this._options.onShow=e},e.prototype.updateOnHide=function(e){this._options.onHide=e},e.prototype.updateOnToggle=function(e){this._options.onToggle=e},e}();
1function Zn(){document.querySelectorAll(`[data-popover-target]`).forEach(function(e){var t=e.getAttribute(`data-popover-target`),n=document.getElementById(t);if(n){var r=e.getAttribute(`data-popover-trigger`),i=e.getAttribute(`data-popover-placement`),a=e.getAttribute(`data-popover-offset`);new Xn(n,e,{placement:i||Jn.placement,offset:a?parseInt(a):Jn.offset,triggerType:r||Jn.triggerType})}else console.error(`The popover element with id "${t}" does not exist. Please check the data-popover-target attribute.`)})}typeof window<`u`&&(window.Popover=Xn,window.initPopovers=Zn);var Qn=function(){return Qn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Qn.apply(this,arguments)},$n={triggerType:`hover`,onShow:function(){},onHide:function(){},onToggle:function(){}},er={id:null,override:!0},tr=function(){function e(e,t,n,r,i){e===void 0&&(e=null),t===void 0&&(t=null),n===void 0&&(n=null),r===void 0&&(r=$n),i===void 0&&(i=er),this._instanceId=i.id?i.id:n.id,this._parentEl=e,this._triggerEl=t,this._targetEl=n,this._options=Qn(Qn({},$n),r),this._visible=!1,this._initialized=!1,this.init(),V.addInstance(`Dial`,this,this._instanceId,i.override)}return e.prototype.init=function(){var e=this;if(this._triggerEl&&this._targetEl&&!this._initialized){var t=this._getTriggerEventTypes(this._options.triggerType);this._showEventHandler=function(){e.show()},t.showEvents.forEach(function(t){e._triggerEl.addEventListener(t,e._showEventHandler),e._targetEl.addEventListener(t,e._showEventHandler)}),this._hideEventHandler=function(){e._parentEl.matches(`:hover`)||e.hide()},t.hideEvents.forEach(function(t){e._parentEl.addEventListener(t,e._hideEventHandler)}),this._initialized=!0}},e.prototype.destroy=function(){var e=this;if(this._initialized){var t=this._getTriggerEventTypes(this._options.triggerType);t.showEvents.forEach(function(t){e._triggerEl.removeEventListener(t,e._showEventHandler),e._targetEl.removeEventListener(t,e._showEventHandler)}),t.hideEvents.forEach(function(t){e._parentEl.removeEventListener(t,e._hideEventHandler)}),this._initialized=!1}},e.prototype.removeInstance=function(){V.removeInstance(`Dial`,this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.hide=function(){this._targetEl.classList.add(`hidden`),this._triggerEl&&this._triggerEl.setAttribute(`aria-expanded`,`false`),this._visible=!1,this._options.onHide(this)},e.prototype.show=function(){this._targetEl.classList.remove(`hidden`),this._triggerEl&&this._triggerEl.setAttribute(`aria-expanded`,`true`),this._visible=!0,this._options.onShow(this)},e.prototype.toggle=function(){this._visible?this.hide():this.show()},e.prototype.isHidden=function(){return!this._visible},e.prototype.isVisible=function(){return this._visible},e.prototype._getTriggerEventTypes=function(e){switch(e){case`hover`:return{showEvents:[`mouseenter`,`focus`],hideEvents:[`mouseleave`,`blur`]};case`click`:return{showEvents:[`click`,`focus`],hideEvents:[`focusout`,`blur`]};case`none`:return{showEvents:[],hideEvents:[]};default:return{showEvents:[`mouseenter`,`focus`],hideEvents:[`mouseleave`,`blur`]}}},e.prototype.updateOnShow=function(e){this._options.onShow=e},e.prototype.updateOnHide=function(e){this._options.onHide=e},e.prototype.updateOnToggle=function(e){this._options.onToggle=e},e}();function nr(){document.querySelectorAll(`[data-dial-init]`).forEach(function(e){var t=e.querySelector(`[data-dial-toggle]`);if(t){var n=t.getAttribute(`data-dial-toggle`),r=document.getElementById(n);r?new tr(e,t,r,{triggerType:t.getAttribute(`data-dial-trigger`)||$n.triggerType}):console.error(`Dial with id ${n} does not exist. Are you sure that the data-dial-toggle attribute points to the correct modal id?`)}else console.error(`Dial with id ${e.id} does not have a trigger element. Are you sure that the data-dial-toggle attribute exists?`)})}typeof window<`u`&&(window.Dial=tr,window.initDials=nr);var rr=function(){return rr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},rr.apply(this,arguments)},ir={minValue:null,maxValue:null,onIncrement:function(){},onDecrement:function(){}},ar={id:null,override:!0},or=function(){function e(e,t,n,r,i){e===void 0&&(e=null),t===void 0&&(t=null),n===void 0&&(n=null),r===void 0&&(r=ir),i===void 0&&(i=ar),this._instanceId=i.id?i.id:e.id,this._targetEl=e,this._incrementEl=t,this._decrementEl=n,this._options=rr(rr({},ir),r),this._initialized=!1,this.init(),V.addInstance(`InputCounter`,this,this._instanceId,i.override)}return e.prototype.init=function(){var e=this;this._targetEl&&!this._initialized&&(this._inputHandler=function(t){var n=t.target;/^\d*$/.test(n.value)||(n.value=n.value.replace(/[^\d]/g,``)),e._options.maxValue!==null&&parseInt(n.value)>e._options.maxValue&&(n.value=e._options.maxValue.toString()),e._options.minValue!==null&&parseInt(n.value)<e._options.minValue&&(n.value=e._options.minValue.toString())},this._incrementClickHandler=function(){e.increment()}
1,this._decrementClickHandler=function(){e.decrement()},this._targetEl.addEventListener(`input`,this._inputHandler),this._incrementEl&&this._incrementEl.addEventListener(`click`,this._incrementClickHandler),this._decrementEl&&this._decrementEl.addEventListener(`click`,this._decrementClickHandler),this._initialized=!0)},e.prototype.destroy=function(){this._targetEl&&this._initialized&&(this._targetEl.removeEventListener(`input`,this._inputHandler),this._incrementEl&&this._incrementEl.removeEventListener(`click`,this._incrementClickHandler),this._decrementEl&&this._decrementEl.removeEventListener(`click`,this._decrementClickHandler),this._initialized=!1)},e.prototype.removeInstance=function(){V.removeInstance(`InputCounter`,this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getCurrentValue=function(){return parseInt(this._targetEl.value)||0},e.prototype.increment=function(){this._options.maxValue!==null&&this.getCurrentValue()>=this._options.maxValue||(this._targetEl.value=(this.getCurrentValue()+1).toString(),this._options.onIncrement(this))},e.prototype.decrement=function(){this._options.minValue!==null&&this.getCurrentValue()<=this._options.minValue||(this._targetEl.value=(this.getCurrentValue()-1).toString(),this._options.onDecrement(this))},e.prototype.updateOnIncrement=function(e){this._options.onIncrement=e},e.prototype.updateOnDecrement=function(e){this._options.onDecrement=e},e}();function sr(){document.querySelectorAll(`[data-input-counter]`).forEach(function(e){var t=e.id,n=document.querySelector(`[data-input-counter-increment="`+t+`"]`),r=document.querySelector(`[data-input-counter-decrement="`+t+`"]`),i=e.getAttribute(`data-input-counter-min`),a=e.getAttribute(`data-input-counter-max`);e?V.instanceExists(`InputCounter`,e.getAttribute(`id`))||new or(e,n||null,r||null,{minValue:i?parseInt(i):null,maxValue:a?parseInt(a):null}):console.error(`The target element with id "${t}" does not exist. Please check the data-input-counter attribute.`)})}typeof window<`u`&&(window.InputCounter=or,window.initInputCounters=sr);var cr=function(){return cr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},cr.apply(this,arguments)},lr={htmlEntities:!1,contentType:`input`,onCopy:function(){}},ur={id:null,override:!0},dr=function(){function e(e,t,n,r){e===void 0&&(e=null),t===void 0&&(t=null),n===void 0&&(n=lr),r===void 0&&(r=ur),this._instanceId=r.id?r.id:t.id,this._triggerEl=e,this._targetEl=t,this._options=cr(cr({},lr),n),this._initialized=!1,this.init(),V.addInstance(`CopyClipboard`,this,this._instanceId,r.override)}return e.prototype.init=function(){var e=this;this._targetEl&&this._triggerEl&&!this._initialized&&(this._triggerElClickHandler=function(){e.copy()},this._triggerEl&&this._triggerEl.addEventListener(`click`,this._triggerElClickHandler),this._initialized=!0)},e.prototype.destroy=function(){this._triggerEl&&this._targetEl&&this._initialized&&(this._triggerEl&&this._triggerEl.removeEventListener(`click`,this._triggerElClickHandler),this._initialized=!1)},e.prototype.removeInstance=function(){V.removeInstance(`CopyClipboard`,this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getTargetValue=function(){if(this._options.contentType===`input`)return this._targetEl.value;if(this._options.contentType===`innerHTML`)return this._targetEl.innerHTML;if(this._options.contentType===`textContent`)return this._targetEl.textContent.replace(/\s+/g,` `).trim()},e.prototype.copy=function(){var e=this.getTargetValue();this._options.htmlEntities&&(e=this.decodeHTML(e));var t=document.createElement(`textarea`);return t.value=e,document.body.appendChild(t),t.select(),document.execCommand(`copy`),document.body.removeChild(t),this._options.onCopy(this),e},e.prototype.decodeHTML=function(e){var t=document.createElement(`textarea`);return t.innerHTML=e,t.textContent},e.prototype.updateOnCopyCallback=function(e){this._options.onCopy=e},e}();
1function fr(){document.querySelectorAll(`[data-copy-to-clipboard-target]`).forEach(function(e){var t=e.getAttribute(`data-copy-to-clipboard-target`),n=document.getElementById(t),r=e.getAttribute(`data-copy-to-clipboard-content-type`),i=e.getAttribute(`data-copy-to-clipboard-html-entities`);n?V.instanceExists(`CopyClipboard`,n.getAttribute(`id`))||new dr(e,n,{htmlEntities:i&&i===`true`?!0:lr.htmlEntities,contentType:r||lr.contentType}):console.error(`The target element with id "${t}" does not exist. Please check the data-copy-to-clipboard-target attribute.`)})}typeof window<`u`&&(window.CopyClipboard=dr,window.initClipboards=fr);function pr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mr(e){if(Array.isArray(e))return e}function hr(e){if(Array.isArray(e))return pr(e)}function gr(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function _r(e,t,n){return t=Sr(t),kr(e,wr()?Reflect.construct(t,n||[],Sr(e).constructor):t.apply(e,n))}function vr(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function yr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Pr(r.key),r)}}function br(e,t,n){return t&&yr(e.prototype,t),n&&yr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xr(){return xr=typeof Reflect<`u`&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=jr(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},xr.apply(null,arguments)}function Sr(e){return Sr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sr(e)}function Cr(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ar(e,t)}function wr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wr=function(){return!!e})()}function Tr(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Er(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Dr(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Or(){throw TypeError(`Invalid attempt to spread non-iterable instance.
3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kr(e,t){if(t&&(typeof t==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return gr(e)}function Ar(e,t){return Ar=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ar(e,t)}function Y(e,t){return mr(e)||Er(e,t)||Ir(e,t)||Dr()}function jr(e,t){for(;!{}.hasOwnProperty.call(e,t)&&(e=Sr(e))!==null;);return e}function Mr(e){return hr(e)||Tr(e)||Ir(e)||Or()}function Nr(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Pr(e){var t=Nr(e,`string`);return typeof t==`symbol`?t:t+``}function Fr(e){"@babel/helpers - typeof";return Fr=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Fr(e)}function Ir(e,t){if(e){if(typeof e==`string`)return pr(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pr(e,t):void 0}}function X(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Lr(e){return e[e.length-1]}
3function Rr(e){return[...arguments].slice(1).forEach(function(t){e.includes(t)||e.push(t)}),e}function zr(e,t){return e?e.split(t):[]}function Br(e,t,n){return(t===void 0||e>=t)&&(n===void 0||e<=n)}function Vr(e,t,n){return e<t?t:e>n?n:e}function Hr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:``,a=Object.keys(n).reduce(function(e,t){var i=n[t];return typeof i==`function`&&(i=i(r)),`${e} ${t}="${i}"`},e);i+=`<${a}></${e}>`;var o=r+1;return o<t?Hr(e,t,n,o,i):i}function Ur(e){return e.replace(/>\s+/g,`>`).replace(/\s+</,`<`)}function Wr(e){return new Date(e).setHours(0,0,0,0)}function Gr(){return new Date().setHours(0,0,0,0)}function Kr(){switch(arguments.length){case 0:return Gr();case 1:return Wr(arguments.length<=0?void 0:arguments[0])}var e=new Date(0);return e.setFullYear.apply(e,arguments),e.setHours(0,0,0,0)}function qr(e,t){var n=new Date(e);return n.setDate(n.getDate()+t)}function Jr(e,t){return qr(e,t*7)}function Yr(e,t){var n=new Date(e),r=n.getMonth()+t,i=r%12;i<0&&(i+=12);var a=n.setMonth(r);return n.getMonth()===i?a:n.setDate(0)}function Xr(e,t){var n=new Date(e),r=n.getMonth(),i=n.setFullYear(n.getFullYear()+t);return r===1&&n.getMonth()===2?n.setDate(0):i}function Zr(e,t){return(e-t+7)%7}function Qr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=new Date(e).getDay();return qr(e,Zr(t,n)-Zr(r,n))}function $r(e){var t=Qr(e,4,1),n=Qr(new Date(t).setMonth(0,4),4,1);return Math.round((t-n)/6048e5)+1}function ei(e,t){var n=new Date(e).getFullYear();return Math.floor(n/t)*t}var ti=/dd?|DD?|mm?|MM?|yy?(?:yy)?/,ni=/[\s!-/:-@[-`{-~年月日]+/,ri={},ii={y:function(e,t){return new Date(e).setFullYear(parseInt(t,10))},m:function(e,t,n){var r=new Date(e),i=parseInt(t,10)-1;if(isNaN(i)){if(!t)return NaN;var a=t.toLowerCase(),o=function(e){return e.toLowerCase().startsWith(a)};if(i=n.monthsShort.findIndex(o),i<0&&(i=n.months.findIndex(o)),i<0)return NaN}return r.setMonth(i),r.getMonth()===oi(i)?r.getTime():r.setDate(0)},d:function(e,t){return new Date(e).setDate(parseInt(t,10))}},ai={d:function(e){return e.getDate()},dd:function(e){return si(e.getDate(),2)},D:function(e,t){return t.daysShort[e.getDay()]},DD:function(e,t){return t.days[e.getDay()]},m:function(e){return e.getMonth()+1},mm:function(e){return si(e.getMonth()+1,2)},M:function(e,t){return t.monthsShort[e.getMonth()]},MM:function(e,t){return t.months[e.getMonth()]},y:function(e){return e.getFullYear()},yy:function(e){return si(e.getFullYear(),2).slice(-2)},yyyy:function(e){return si(e.getFullYear(),4)}};function oi(e){return e>-1?e%12:oi(e+12)}function si(e,t){return e.toString().padStart(t,`0`)}function ci(e){if(typeof e!=`string`)throw Error(`Invalid date format.`);if(e in ri)return ri[e];var t=e.split(ti),n=e.match(new RegExp(ti,`g`));if(t.length===0||!n)throw Error(`Invalid date format.`);var r=n.map(function(e){return ai[e]}),i=Object.keys(ii).reduce(function(e,t){return n.find(function(e){return e[0]!==`D`&&e[0].toLowerCase()===t})&&e.push(t),e},[]);return ri[e]={parser:function(e,t){var r=e.split(ni).reduce(function(e,t,r){if(t.length>0&&n[r]){var i=n[r][0];i===`M`?e.m=t:i!==`D`&&(e[i]=t)}return e},{});return i.reduce(function(e,n){var i=ii[n](e,r[n],t);return isNaN(i)?e:i},Gr())},formatter:function(e,n){var i=r.reduce(function(r,i,a){return r+=`${t[a]}${i(e,n)}`},``);return i+=Lr(t)}}}function li(e,t,n){if(e instanceof Date||typeof e==`number`){var r=Wr(e);return isNaN(r)?void 0:r}if(e){if(e===`today`)return Gr();if(t&&t.toValue){var i=t.toValue(e,t,n);return isNaN(i)?void 0:Wr(i)}return ci(t).parser(e,n)}}function ui(e,t,n){if(isNaN(e)||!e&&e!==0)return``;var r=typeof e==`number`?new Date(e):e;return t.toDisplay?t.toDisplay(r,t,n):ci(t).formatter(r,n)}var di=new WeakMap,fi=EventTarget.prototype,pi=fi.addEventListener,mi=fi.removeEventListener;function hi(e,t){var n=di.get(e);n||(n=[],di.set(e,n)),t.forEach(function(e){pi.call.apply(pi,Mr(e)),n.push(e)})}function gi(e){var t=di.get(e);t&&(t.forEach(function(e){mi.call.apply(mi,Mr(e))}),di.delete(e))}if(!Event.prototype.composedPath){var _i=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];n.push(t);var r;return t.parentNode?r=t.parentNode:t.host?r=t.host:t.defaultView&&(r=t.defaultView),r?e(r,n):n};Event.prototype.composedPath=function(){return _i(this.target)}}
3function vi(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=e[r];return t(i)?i:i===n||!i.parentElement?void 0:vi(e,t,n,r+1)}function yi(e,t){var n=typeof t==`function`?t:function(e){return e.matches(t)};return vi(e.composedPath(),n,e.currentTarget)}var bi={en:{days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],daysShort:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],daysMin:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsShort:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],today:`Today`,clear:`Clear`,titleFormat:`MM y`}},xi={autohide:!1,beforeShowDay:null,beforeShowDecade:null,beforeShowMonth:null,beforeShowYear:null,calendarWeeks:!1,clearBtn:!1,dateDelimiter:`,`,datesDisabled:[],daysOfWeekDisabled:[],daysOfWeekHighlighted:[],defaultViewDate:void 0,disableTouchKeyboard:!1,format:`mm/dd/yyyy`,language:`en`,maxDate:null,maxNumberOfDates:1,maxView:3,minDate:null,nextArrow:`<svg class="w-4 h-4 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 10"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M1 5h12m0 0L9 1m4 4L9 9"/></svg>`,orientation:`auto`,pickLevel:0,prevArrow:`<svg class="w-4 h-4 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 10"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 5H1m0 0 4 4M1 5l4-4"/></svg>`,showDaysOfWeek:!0,showOnClick:!0,showOnFocus:!0,startView:0,title:``,todayBtn:!1,todayBtnMode:0,todayHighlight:!1,updateOnBlur:!0,weekStart:0},Si=null;function Z(e){return Si??=document.createRange(),Si.createContextualFragment(e)}function Ci(e){e.style.display!==`none`&&(e.style.display&&(e.dataset.styleDisplay=e.style.display),e.style.display=`none`)}function wi(e){e.style.display===`none`&&(e.dataset.styleDisplay?(e.style.display=e.dataset.styleDisplay,delete e.dataset.styleDisplay):e.style.display=``)}function Ti(e){e.firstChild&&(e.removeChild(e.firstChild),Ti(e))}function Ei(e,t){Ti(e),t instanceof DocumentFragment?e.appendChild(t):typeof t==`string`?e.appendChild(Z(t)):typeof t.forEach==`function`&&t.forEach(function(t){e.appendChild(t)})}var Di=xi.language,Oi=xi.format,ki=xi.weekStart;function Ai(e,t){return e.length<6&&t>=0&&t<7?Rr(e,t):e}function ji(e){return(e+6)%7}function Mi(e,t,n,r){var i=li(e,t,n);return i===void 0?r:i}function Ni(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,r=parseInt(e,10);return r>=0&&r<=n?r:t}function Pi(e,t){var n=Object.assign({},e),r={},i=t.constructor.locales,a=t.config||{},o=a.format,s=a.language,c=a.locale,l=a.maxDate,u=a.maxView,d=a.minDate,f=a.pickLevel,p=a.startView,m=a.weekStart;if(n.language){var h;if(n.language!==s&&(i[n.language]?h=n.language:(h=n.language.split(`-`)[0],i[h]===void 0&&(h=!1))),delete n.language,h){s=r.language=h;var g=c||i[Di];c=Object.assign({format:Oi,weekStart:ki},i[Di]),s!==Di&&Object.assign(c,i[s]),r.locale=c,o===g.format&&(o=r.format=c.format),m===g.weekStart&&(m=r.weekStart=c.weekStart,r.weekEnd=ji(c.weekStart))}}if(n.format){var _=typeof n.format.toDisplay==`function`,v=typeof n.format.toValue==`function`,y=ti.test(n.format);(_&&v||y)&&(o=r.format=n.format),delete n.format}var b=d,x=l;if(n.minDate!==void 0&&(b=n.minDate===null?Kr(0,0,1):Mi(n.minDate,o,c,b),delete n.minDate),n.maxDate!==void 0&&(x=n.maxDate===null?void 0:Mi(n.maxDate,o,c,x),delete n.maxDate),x<b?(d=r.minDate=x,l=r.maxDate=b):(d!==b&&(d=r.minDate=b),l!==x&&(l=r.maxDate=x)),n.datesDisabled&&(r.datesDisabled=n.datesDisabled.reduce(function(e,t){var n=li(t,o,c);return n===void 0?e:Rr(e,n)},[]),delete n.datesDisabled),n.defaultViewDate!==void 0){var S=li(n.defaultViewDate,o,c);S!==void 0&&(r.defaultViewDate=S),delete n.defaultViewDate}if(n.weekStart!==void 0){var C=Number(n.weekStart)%7;isNaN(C)||(m=r.weekStart=C,r.weekEnd=ji(C)),delete n.weekStart}if(n.daysOfWeekDisabled&&(r.daysOfWeekDisabled=n.daysOfWeekDisabled.reduce(Ai,[]),delete n.daysOfWeekDisabled),n.daysOfWeekHighlighted&&(r.daysOfWeekHighlighted=n.daysOfWeekHighlighted.reduce(Ai,[]),delete n.daysOfWeekHighlighted),n.maxNumberOfDates!==void 0){var w=parseInt(n.maxNumberOfDates,10);w>=0&&(r.maxNumberOfDates=w,r.multidate=w!==1),delete n.maxNumberOfDates}n.dateDelimiter&&(r.dateDelimiter=String(n.dateDelimiter),delete n.dateDelimiter);var T=f;n.pickLevel!==void 0&&(T=Ni(n.pickLevel,2),delete n.pickLevel),T!==f&&(f=r.pickLevel=T);var E=u;n.maxView!==void 0&&(E=Ni(n.maxView,u),delete n.maxView),E=f>E?f:E,E!==u&&(u=r.maxView=E);var D=p;if(n.startView!==void 0&&(D=Ni(n.startView,D),delete n.startView),D<f?D=f:D>u&&(D=u),D!==p&&(r.startView=D),n.prevArrow){var O=Z(n.prevArrow);O.childNodes.length>0&&(r.prevArrow=O.childNodes),delete n.prevArrow}if(n.nextArrow){var k=Z(n.nextArrow);k.childNodes.length>0&&(r.nextArrow=k.childNodes),delete n.nextArrow}if(n.disableTouchKeyboard!==void 0&&(r.disableTouchKeyboard=`ontouchstart`in document&&!!n.disableTouchKeyboard,delete n.disableTouchKeyboard),n.orientation){var A=n.orientation.toLowerCase().split(/\s+/g);
3r.orientation={x:A.find(function(e){return e===`left`||e===`right`})||`auto`,y:A.find(function(e){return e===`top`||e===`bottom`})||`auto`},delete n.orientation}if(n.todayBtnMode!==void 0){switch(n.todayBtnMode){case 0:case 1:r.todayBtnMode=n.todayBtnMode}delete n.todayBtnMode}return Object.keys(n).forEach(function(e){n[e]!==void 0&&X(xi,e)&&(r[e]=n[e])}),r}var Fi=Ur(`<div class="datepicker hidden">
4  <div class="datepicker-picker inline-block rounded-base bg-neutral-primary-medium border border-default-medium p-4">
5    <div class="datepicker-header">
6      <div class="datepicker-title bg-neutral-primary-medium text-heading px-2 py-3 text-center font-medium"></div>
7      <div class="datepicker-controls flex justify-between mb-2">
8        <button type="button" class="bg-neutral-primary-medium rounded-base text-body hover:bg-neutral-tertiary-medium hover:text-heading text-lg p-2.5 focus:outline-none focus:ring-2 focus:ring-neutral-tertiary prev-btn"></button>
9        <button type="button" class="text-sm rounded-base text-heading bg-neutral-primary-medium font-medium py-2.5 px-5 hover:bg-neutral-tertiary-medium focus:outline-none focus:ring-2 focus:ring-neutral-tertiary view-switch"></button>
10        <button type="button" class="bg-neutral-primary-medium rounded-base text-body hover:bg-neutral-tertiary-medium hover:text-heading text-lg p-2.5 focus:outline-none focus:ring-2 focus:ring-neutral-tertiary next-btn"></button>
11      </div>
12    </div>
13    <div class="datepicker-main p-1"></div>
14    <div class="datepicker-footer">
15      <div class="datepicker-controls flex space-x-2 rtl:space-x-reverse mt-2">
16        <button type="button" class="%buttonClass% today-btn text-white bg-brand hover:bg-brand-strong focus:ring-4 focus:ring-brand-medium font-medium rounded-base text-sm px-5 py-2 text-center w-1/2"></button>
17        <button type="button" class="%buttonClass% clear-btn text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium focus:ring-4 focus:ring-neutral-tertiary font-medium rounded-base text-sm px-5 py-2 text-center w-1/2"></button>
18      </div>
19    </div>
20  </div>
21</div>`),Ii=Ur(`<div class="days">
22  <div class="days-of-week grid grid-cols-7 mb-1">${Hr(`span`,7,{class:`dow block flex-1 leading-9 border-0 rounded-base cursor-default text-center text-body font-medium text-sm`})}</div>
23  <div class="datepicker-grid w-64 grid grid-cols-7">${Hr(`span`,42,{class:`block flex-1 leading-9 border-0 rounded-base cursor-default text-center text-body font-medium text-sm h-6 leading-6 text-sm font-medium text-fg-disabled`})}</div>
24</div>`),Li=Ur(`<div class="calendar-weeks">
25  <div class="days-of-week flex"><span class="dow h-6 leading-6 text-sm font-medium text-fg-disabled"></span></div>
26  <div class="weeks">${Hr(`span`,6,{class:`week block flex-1 leading-9 border-0 rounded-base cursor-default text-center text-body font-medium text-sm`})}</div>
27</div>`),Ri=function(){function e(t,n){vr(this,e),Object.assign(this,n,{picker:t,element:Z(`<div class="datepicker-view flex"></div>`).firstChild,selected:[]}),this.init(this.picker.datepicker.config)}return br(e,[{key:`init`,value:function(e){e.pickLevel!==void 0&&(this.isMinView=this.id===e.pickLevel),this.setOptions(e),this.updateFocus(),this.updateSelection()}},{key:`performBeforeHook`,value:function(e,t,n){var r=this.beforeShow(new Date(n));switch(Fr(r)){case`boolean`:r={enabled:r};break;case`string`:r={classes:r}}if(r){if(r.enabled===!1&&(e.classList.add(`disabled`),Rr(this.disabled,t)),r.classes){var i,a=r.classes.split(/\s+/);(i=e.classList).add.apply(i,Mr(a)),a.includes(`disabled`)&&Rr(this.disabled,t)}r.content&&Ei(e,r.content)}}}])}(),zi=function(e){function t(e){return vr(this,t),_r(this,t,[e,{id:0,name:`days`,cellClass:`day`}])}return Cr(t,e),br(t,[{key:`init`,value:function(e){if(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1]){var n=Z(Ii).firstChild;this.dow=n.firstChild,this.grid=n.lastChild,this.element.appendChild(n)}xr(Sr(t.prototype),`init`,this).call(this,e)}},{key:`setOptions`,value:function(e){var t=this,n;if(X(e,`minDate`)&&(this.minDate=e.minDate),X(e,`maxDate`)&&(this.maxDate=e.maxDate),e.datesDisabled&&(this.datesDisabled=e.datesDisabled),e.daysOfWeekDisabled&&(this.daysOfWeekDisabled=e.daysOfWeekDisabled,n=!0),e.daysOfWeekHighlighted&&(this.daysOfWeekHighlighted=e.daysOfWeekHighlighted),e.todayHighlight!==void 0&&(this.todayHighlight=e.todayHighlight),e.weekStart!==void 0&&(this.weekStart=e.weekStart,this.weekEnd=e.weekEnd,n=!0),e.locale){var r=this.locale=e.locale;this.dayNames=r.daysMin,this.switchLabelFormat=r.titleFormat,n=!0}if(e.beforeShowDay!==void 0&&(this.beforeShow=typeof e.beforeShowDay==`function`?e.beforeShowDay:void 0),e.calendarWeeks!==void 0){if(e.calendarWeeks&&!this.calendarWeeks){var i=Z(Li).firstChild;this.calendarWeeks={element:i,dow:i.firstChild,weeks:i.lastChild},this.element.insertBefore(i,this.element.firstChild)}else this.calendarWeeks&&!e.calendarWeeks&&(this.element.removeChild(this.calendarWeeks.element),this.calendarWeeks=null)}e.showDaysOfWeek!==void 0&&(e.showDaysOfWeek?(wi(this.dow),this.calendarWeeks&&wi(this.calendarWeeks.dow)):(Ci(this.dow),this.calendarWeeks&&Ci(this.calendarWeeks.dow))),n&&Array.from(this.dow.children).forEac
27h(function(e,n){var r=(t.weekStart+n)%7;e.textContent=t.dayNames[r],e.className=t.daysOfWeekDisabled.includes(r)?`dow disabled text-center h-6 leading-6 text-sm font-medium text-fg-disabled cursor-not-allowed`:`dow text-center h-6 leading-6 text-sm font-medium text-body`})}},{key:`updateFocus`,value:function(){var e=new Date(this.picker.viewDate),t=e.getFullYear(),n=e.getMonth(),r=Kr(t,n,1),i=Qr(r,this.weekStart,this.weekStart);this.first=r,this.last=Kr(t,n+1,0),this.start=i,this.focused=this.picker.viewDate}},{key:`updateSelection`,value:function(){var e=this.picker.datepicker,t=e.dates,n=e.rangepicker;this.selected=t,n&&(this.range=n.dates)}},{key:`render`,value:function(){var e=this;this.today=this.todayHighlight?Gr():void 0,this.disabled=Mr(this.datesDisabled);var t=ui(this.focused,this.switchLabelFormat,this.locale);if(this.picker.setViewSwitchLabel(t),this.picker.setPrevBtnDisabled(this.first<=this.minDate),this.picker.setNextBtnDisabled(this.last>=this.maxDate),this.calendarWeeks){var n=Qr(this.first,1,1);Array.from(this.calendarWeeks.weeks.children).forEach(function(e,t){e.textContent=$r(Jr(n,t))})}Array.from(this.grid.children).forEach(function(t,n){var r=t.classList,i=qr(e.start,n),a=new Date(i),o=a.getDay();if(t.className=`datepicker-cell hover:bg-neutral-tertiary-medium block flex-1 leading-9 border-0 rounded-base cursor-pointer text-center text-body font-medium text-sm ${e.cellClass}`,t.dataset.date=i,t.textContent=a.getDate(),i<e.first?r.add(`prev`,`text-fg-disabled`):i>e.last&&r.add(`next`,`text-fg-disabled`),e.today===i&&r.add(`today`,`bg-gray-100`,`dark:bg-gray-600`),(i<e.minDate||i>e.maxDate||e.disabled.includes(i))&&(r.add(`disabled`,`cursor-not-allowed`,`text-fg-disabled`),r.remove(`hover:bg-neutral-tertiary-medium`,`text-body`,`cursor-pointer`)),e.daysOfWeekDisabled.includes(o)&&(r.add(`disabled`,`cursor-not-allowed`,`text-fg-disabled`),r.remove(`hover:bg-neutral-tertiary-medium`,`text-body`,`cursor-pointer`),Rr(e.disabled,i)),e.daysOfWeekHighlighted.includes(o)&&r.add(`highlighted`),e.range){var s=Y(e.range,2),c=s[0],l=s[1];i>c&&i<l&&(r.add(`range`,`bg-neutral-tertiary-medium`),r.remove(`rounded-base`,`rounded-s-base`,`rounded-e-base`)),i===c&&(r.add(`range-start`,`bg-brand`,`rounded-s-base`),r.remove(`rounded-base`,`rounded-e-base`)),i===l&&(r.add(`range-end`,`bg-neutral-tertiary-medium`,`rounded-e-base`),r.remove(`rounded-base`,`rounded-s-base`))}e.selected.includes(i)&&(r.add(`selected`,`bg-brand`,`text-white`),r.remove(`text-body`,`hover:bg-neutral-tertiary-medium`,`bg-neutral-tertiary-medium`)),i===e.focused&&r.add(`focused`),e.beforeShow&&e.performBeforeHook(t,i,i)})}},{key:`refresh`,value:function(){var e=this,t=Y(this.range||[],2),n=t[0],r=t[1];this.grid.querySelectorAll(`.range, .range-start, .range-end, .selected, .focused`).forEach(function(e){e.classList.remove(`range`,`range-start`,`range-end`,`selected`,`bg-brand`,`text-white`,`focused`),e.classList.add(`text-body`,`rounded-base`)}),Array.from(this.grid.children).forEach(function(t){var i=Number(t.dataset.date),a=t.classList;a.remove(`bg-neutral-tertiary-medium`,`rounded-s-base`,`rounded-e-base`),i>n&&i<r&&(a.add(`range`,`bg-neutral-tertiary-medium`),a.remove(`rounded-base`)),i===n&&(a.add(`range-start`,`bg-brand`,`text-white`,`rounded-s-base`),a.remove(`rounded-base`)),i===r&&(a.add(`range-end`,`bg-neutral-tertiary-medium`,`rounded-e-base`),a.remove(`rounded-base`)),e.selected.includes(i)&&(a.add(`selected`,`bg-brand`,`text-white`),a.remove(`text-body`,`hover:bg-neutral-tertiary-medium`,`bg-neutral-tertiary-medium`)),i===e.focused&&a.add(`focused`)})}},{key:`refreshFocus`,value:function(){var e=Math.round((this.focused-this.start)/864e5);this.grid.querySelectorAll(`.focused`).forEach(function(e){e.classList.remove(`focused`)}),this.grid.children[e].classList.add(`focused`)}}])}(Ri);function Bi(e,t){if(!(!e||!e[0]||!e[1])){var n=Y(e,2),r=Y(n[0],2),i=r[0],a=r[1],o=Y(n[1],2),s=o[0],c=o[1];if(!(i>t||s<t))return[i===t?a:-1,s===t?c:12]}}var Vi=function(e){function t(e){return vr(this,t),_r(this,t,[e,{id:1,name:`months`,cellClass:`month`}])}return Cr(t,e),br(t,[{key:`init`,value:function(e){(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&(this.grid=this.element,this.element.classList.add(`months`,`datepicker-grid`,`w-64`,`grid`,`grid-cols-4`),this.grid.appendChild(Z(Hr(`span`,12,{"data-month":function(e){return e}})))),xr(Sr(t.prototype),`init`,this).call(this,e)}},{key:`setOptions`,value:function(e){if(e.locale&&(this.monthNames=e.locale.monthsShort),X(e,`minDate`)){if(e.minDate===void 0)this.minYear=this.minMonth=this.minDate=void 0;else{var t=new Date(e.minDate);this.minYear=t.getFullYear(),this.minMonth=t.getMonth(),this.minDate=t.setDate(1)}}if(X(e,`maxDate`)){if(e.maxDate===void 0)this.maxYear=this.maxMonth=this.maxDate=void 0;else{var n=new Date(e.maxDate);this.maxYear=n.getFullYear(),this.maxMonth=n.getMonth(),this.maxDate=Kr(this.maxYear,this.maxMonth+1,0)}}e.beforeShowMonth!==void 0&&(this.beforeShow=typeof e.beforeShowMonth==`function`?e.beforeShowMonth:void 0)}},{key:`updateFocus`,value:function(){var e=new Date(this.picker.viewDate);this.year=e.getFullYear(),this.focused=e.getMonth()}},{key:`updateSelection`,value:function(){var e=this.picker.datepicker,t=e.dates,n=e.rangepicker;this.selected=t.reduce(function(e,t){var n=new Date(t),r=n.getFullYear(),i=n.getMonth();return e[r]===void 0?e[r]=[i]:Rr(e[r],i),e},{}),n&&n.dates&&(this.range=n.dates.map(function(e){var t=new Date(e);return isNaN(t)?void 0:[t.getFullYear(),t.getMonth()]}))}},{key:`render`,value:function(){var e=this;this.disabled=[],this.picker.setViewSwitchLabel(this.year),this.picker.setPrevBtnDisabled(this.year<=this.minYear),this.picker.setNextBtnDisabled(this.year>=this.maxYear);var t=this.selected[this.year]||[],n=this.year<this.minYear||this.year>this.maxYear,r=this.year===this.minYear,i=this.year===this.maxYear,a=Bi(this.range,this.year);
27Array.from(this.grid.children).forEach(function(o,s){var c=o.classList,l=Kr(e.year,s,1);if(o.className=`datepicker-cell hover:bg-neutral-tertiary-medium block flex-1 leading-9 border-0 rounded-base cursor-pointer text-center text-body font-medium text-sm ${e.cellClass}`,e.isMinView&&(o.dataset.date=l),o.textContent=e.monthNames[s],(n||r&&s<e.minMonth||i&&s>e.maxMonth)&&c.add(`disabled`),a){var u=Y(a,2),d=u[0],f=u[1];s>d&&s<f&&c.add(`range`),s===d&&c.add(`range-start`),s===f&&c.add(`range-end`)}t.includes(s)&&(c.add(`selected`,`bg-brand`,`text-white`,`dark:text-white`),c.remove(`text-body`,`hover:bg-neutral-tertiary-medium`,`dark:text-white`)),s===e.focused&&c.add(`focused`),e.beforeShow&&e.performBeforeHook(o,s,l)})}},{key:`refresh`,value:function(){var e=this,t=this.selected[this.year]||[],n=Y(Bi(this.range,this.year)||[],2),r=n[0],i=n[1];this.grid.querySelectorAll(`.range, .range-start, .range-end, .selected, .focused`).forEach(function(e){e.classList.remove(`range`,`range-start`,`range-end`,`selected`,`bg-brand`,`dark:text-white`,`text-white`,`focused`),e.classList.add(`text-body`,`hover:bg-neutral-tertiary-medium`,`dark:text-white`)}),Array.from(this.grid.children).forEach(function(n,a){var o=n.classList;a>r&&a<i&&o.add(`range`),a===r&&o.add(`range-start`),a===i&&o.add(`range-end`),t.includes(a)&&(o.add(`selected`,`bg-brand`,`text-white`,`dark:text-white`),o.remove(`text-body`,`hover:bg-neutral-tertiary-medium`,`dark:text-white`)),a===e.focused&&o.add(`focused`)})}},{key:`refreshFocus`,value:function(){this.grid.querySelectorAll(`.focused`).forEach(function(e){e.classList.remove(`focused`)}),this.grid.children[this.focused].classList.add(`focused`)}}])}(Ri);function Hi(e){return Mr(e).reduce(function(e,t,n){return e+=n?t:t.toUpperCase()},``)}var Ui=function(e){function t(e,n){return vr(this,t),_r(this,t,[e,n])}return Cr(t,e),br(t,[{key:`init`,value:function(e){(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&(this.navStep=this.step*10,this.beforeShowOption=`beforeShow${Hi(this.cellClass)}`,this.grid=this.element,this.element.classList.add(this.name,`datepicker-grid`,`w-64`,`grid`,`grid-cols-4`),this.grid.appendChild(Z(Hr(`span`,12)))),xr(Sr(t.prototype),`init`,this).call(this,e)}},{key:`setOptions`,value:function(e){if(X(e,`minDate`)&&(e.minDate===void 0?this.minYear=this.minDate=void 0:(this.minYear=ei(e.minDate,this.step),this.minDate=Kr(this.minYear,0,1))),X(e,`maxDate`)&&(e.maxDate===void 0?this.maxYear=this.maxDate=void 0:(this.maxYear=ei(e.maxDate,this.step),this.maxDate=Kr(this.maxYear,11,31))),e[this.beforeShowOption]!==void 0){var t=e[this.beforeShowOption];this.beforeShow=typeof t==`function`?t:void 0}}},{key:`updateFocus`,value:function(){var e=new Date(this.picker.viewDate),t=ei(e,this.navStep),n=t+9*this.step;this.first=t,this.last=n,this.start=t-this.step,this.focused=ei(e,this.step)}},{key:`updateSelection`,value:function(){var e=this,t=this.picker.datepicker,n=t.dates,r=t.rangepicker;this.selected=n.reduce(function(t,n){return Rr(t,ei(n,e.step))},[]),r&&r.dates&&(this.range=r.dates.map(function(t){if(t!==void 0)return ei(t,e.step)}))}},{key:`render`,value:function(){var e=this;this.disabled=[],this.picker.setViewSwitchLabel(`${this.first}-${this.last}`),this.picker.setPrevBtnDisabled(this.first<=this.minYear),this.picker.setNextBtnDisabled(this.last>=this.maxYear),Array.from(this.grid.children).forEach(function(t,n){var r=t.classList,i=e.start+n*e.step,a=Kr(i,0,1);if(t.className=`datepicker-cell hover:bg-neutral-tertiary-medium block flex-1 leading-9 border-0 rounded-base cursor-pointer text-center text-body font-medium text-sm ${e.cellClass}`,e.isMinView&&(t.dataset.date=a),t.textContent=t.dataset.year=i,n===0?r.add(`prev`):n===11&&r.add(`next`),(i<e.minYear||i>e.maxYear)&&r.add(`disabled`),e.range){var o=Y(e.range,2),s=o[0],c=o[1];i>s&&i<c&&r.add(`range`),i===s&&r.add(`range-start`),i===c&&r.add(`range-end`)}e.selected.includes(i)&&(r.add(`selected`,`bg-brand`,`text-white`,`dark:text-white`),r.remove(`text-body`,`hover:bg-neutral-tertiary-medium`,`dark:text-white`)),i===e.focused&&r.add(`focused`),e.beforeShow&&e.performBeforeHook(t,i,a)})}},{key:`refresh`,value:function(){var e=this,t=Y(this.range||[],2),n=t[0],r=t[1];this.grid.querySelectorAll(`.range, .range-start, .range-end, .selected, .focused`).forEach(function(e){e.classList.remove(`range`,`range-start`,`range-end`,`selected`,`bg-brand`,`text-white`,`dark:text-white`,`focused`)}
27),Array.from(this.grid.children).forEach(function(t){var i=Number(t.textContent),a=t.classList;i>n&&i<r&&a.add(`range`),i===n&&a.add(`range-start`),i===r&&a.add(`range-end`),e.selected.includes(i)&&(a.add(`selected`,`bg-brand`,`text-white`,`hover:text-heading`),a.remove(`text-body`,`hover:bg-neutral-tertiary-medium`,`hover:text-heading`)),i===e.focused&&a.add(`focused`)})}},{key:`refreshFocus`,value:function(){var e=Math.round((this.focused-this.start)/this.step);this.grid.querySelectorAll(`.focused`).forEach(function(e){e.classList.remove(`focused`)}),this.grid.children[e].classList.add(`focused`)}}])}(Ri);function Wi(e,t){var n={date:e.getDate(),viewDate:new Date(e.picker.viewDate),viewId:e.picker.currentView.id,datepicker:e};e.element.dispatchEvent(new CustomEvent(t,{detail:n}))}function Gi(e,t){var n=e.config,r=n.minDate,i=n.maxDate,a=e.picker,o=a.currentView,s=a.viewDate,c;switch(o.id){case 0:c=Yr(s,t);break;case 1:c=Xr(s,t);break;default:c=Xr(s,t*o.navStep)}c=Vr(c,r,i),e.picker.changeFocus(c).render()}function Ki(e){var t=e.picker.currentView.id;t!==e.config.maxView&&e.picker.changeView(t+1).render()}function qi(e){e.config.updateOnBlur?e.update({autohide:!0}):(e.refresh(`input`),e.hide())}function Ji(e,t){var n=e.picker,r=new Date(n.viewDate),i=n.currentView.id,a=i===1?Yr(r,t-r.getMonth()):Xr(r,t-r.getFullYear());n.changeFocus(a).changeView(i-1).render()}function Yi(e){var t=e.picker,n=Gr();if(e.config.todayBtnMode===1){if(e.config.autohide){e.setDate(n);return}e.setDate(n,{render:!1}),t.update()}t.viewDate!==n&&t.changeFocus(n),t.changeView(0).render()}function Xi(e){e.setDate({clear:!0})}function Zi(e){Ki(e)}function Qi(e){Gi(e,-1)}function $i(e){Gi(e,1)}function ea(e,t){var n=yi(t,`.datepicker-cell`);if(!(!n||n.classList.contains(`disabled`))){var r=e.picker.currentView,i=r.id;r.isMinView?e.setDate(Number(n.dataset.date)):i===1?Ji(e,Number(n.dataset.month)):Ji(e,Number(n.dataset.year))}}function ta(e){!e.inline&&!e.config.disableTouchKeyboard&&e.inputField.focus()}function na(e,t){if(t.title!==void 0&&(t.title?(e.controls.title.textContent=t.title,wi(e.controls.title)):(e.controls.title.textContent=``,Ci(e.controls.title))),t.prevArrow){var n=e.controls.prevBtn;Ti(n),t.prevArrow.forEach(function(e){n.appendChild(e.cloneNode(!0))})}if(t.nextArrow){var r=e.controls.nextBtn;Ti(r),t.nextArrow.forEach(function(e){r.appendChild(e.cloneNode(!0))})}if(t.locale&&(e.controls.todayBtn.textContent=t.locale.today,e.controls.clearBtn.textContent=t.locale.clear),t.todayBtn!==void 0&&(t.todayBtn?wi(e.controls.todayBtn):Ci(e.controls.todayBtn)),X(t,`minDate`)||X(t,`maxDate`)){var i=e.datepicker.config,a=i.minDate,o=i.maxDate;e.controls.todayBtn.disabled=!Br(Gr(),a,o)}t.clearBtn!==void 0&&(t.clearBtn?wi(e.controls.clearBtn):Ci(e.controls.clearBtn))}function ra(e){var t=e.dates,n=e.config;return Vr(t.length>0?Lr(t):n.defaultViewDate,n.minDate,n.maxDate)}function ia(e,t){var n=new Date(e.viewDate),r=new Date(t),i=e.currentView,a=i.id,o=i.year,s=i.first,c=i.last,l=r.getFullYear();switch(e.viewDate=t,l!==n.getFullYear()&&Wi(e.datepicker,`changeYear`),r.getMonth()!==n.getMonth()&&Wi(e.datepicker,`changeMonth`),a){case 0:return t<s||t>c;case 1:return l!==o;default:return l<s||l>c}}function aa(e){return window.getComputedStyle(e).direction}var oa=function(){function e(t){vr(this,e),this.datepicker=t;var n=Fi.replace(/%buttonClass%/g,t.config.buttonClass),r=this.element=Z(n).firstChild,i=Y(r.firstChild.children,3),a=i[0],o=i[1],s=i[2],c=a.firstElementChild,l=Y(a.lastElementChild.children,3),u=l[0],d=l[1],f=l[2],p=Y(s.firstChild.children,2),m={title:c,prevBtn:u,viewSwitch:d,nextBtn:f,todayBtn:p[0],clearBtn:p[1]};this.main=o,this.controls=m;var h=t.inline?`inline`:`dropdown`;r.classList.add(`datepicker-${h}`),h===`dropdown`&&r.classList.add(`dropdown`,`absolute`,`top-0`,`left-0`,`z-50`,`pt-2`),na(this,t.config),this.viewDate=ra(t),hi(t,[[r,`click`,ta.bind(null,t),{capture:!0}],[o,`click`,ea.bind(null,t)],[m.viewSwitch,`click`,Zi.bind(null,t)],[m.prevBtn,`click`,Qi.bind(null,t)],[m.nextBtn,`click`,$i.bind(null,t)],[m.todayBtn,`click`,Yi.bind(null,t)],[m.clearBtn,`click`,Xi.bind(null,t)]]),this.views=[new zi(this),new Vi(this),new Ui(this,{id:2,name:`years`,cellClass:`year`,step:1}
27),new Ui(this,{id:3,name:`decades`,cellClass:`decade`,step:10})],this.currentView=this.views[t.config.startView],this.currentView.render(),this.main.appendChild(this.currentView.element),t.config.container.appendChild(this.element)}return br(e,[{key:`setOptions`,value:function(e){na(this,e),this.views.forEach(function(t){t.init(e,!1)}),this.currentView.render()}},{key:`detach`,value:function(){this.datepicker.config.container.removeChild(this.element)}},{key:`show`,value:function(){if(!this.active){this.element.classList.add(`active`,`block`),this.element.classList.remove(`hidden`),this.active=!0;var e=this.datepicker;if(!e.inline){var t=aa(e.inputField);t===aa(e.config.container)?this.element.dir&&this.element.removeAttribute(`dir`):this.element.dir=t,this.place(),e.config.disableTouchKeyboard&&e.inputField.blur()}Wi(e,`show`)}}},{key:`hide`,value:function(){this.active&&(this.datepicker.exitEditMode(),this.element.classList.remove(`active`,`block`),this.element.classList.add(`active`,`block`,`hidden`),this.active=!1,Wi(this.datepicker,`hide`))}},{key:`place`,value:function(){var e=this.element,t=e.classList,n=e.style,r=this.datepicker,i=r.config,a=r.inputField,o=i.container,s=this.element.getBoundingClientRect(),c=s.width,l=s.height,u=o.getBoundingClientRect(),d=u.left,f=u.top,p=u.width,m=a.getBoundingClientRect(),h=m.left,g=m.top,_=m.width,v=m.height,y=i.orientation,b=y.x,x=y.y,S,C,w;o===document.body?(S=window.scrollY,C=h+window.scrollX,w=g+S):(S=o.scrollTop,C=h-d,w=g-f+S),b===`auto`&&(C<0?(b=`left`,C=10):b=C+c>p||aa(a)===`rtl`?`right`:`left`),b===`right`&&(C-=c-_),x===`auto`&&(x=w-l<S?`bottom`:`top`),x===`top`?w-=l:w+=v,t.remove(`datepicker-orient-top`,`datepicker-orient-bottom`,`datepicker-orient-right`,`datepicker-orient-left`),t.add(`datepicker-orient-${x}`,`datepicker-orient-${b}`),n.top=w&&`${w}px`,n.left=C&&`${C}px`}},{key:`setViewSwitchLabel`,value:function(e){this.controls.viewSwitch.textContent=e}},{key:`setPrevBtnDisabled`,value:function(e){this.controls.prevBtn.disabled=e}},{key:`setNextBtnDisabled`,value:function(e){this.controls.nextBtn.disabled=e}},{key:`changeView`,value:function(e){var t=this.currentView,n=this.views[e];return n.id!==t.id&&(this.currentView=n,this._renderMethod=`render`,Wi(this.datepicker,`changeView`),this.main.replaceChild(n.element,t.element)),this}},{key:`changeFocus`,value:function(e){return this._renderMethod=ia(this,e)?`render`:`refreshFocus`,this.views.forEach(function(e){e.updateFocus()}),this}},{key:`update`,value:function(){var e=ra(this.datepicker);return this._renderMethod=ia(this,e)?`render`:`refresh`,this.views.forEach(function(e){e.updateFocus(),e.updateSelection()}),this}},{key:`render`,value:function(){var e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)&&this._renderMethod||`render`;delete this._renderMethod,this.currentView[e]()}}])}();function sa(e,t,n,r,i,a){if(Br(e,i,a))return r(e)?sa(t(e,n),t,n,r,i,a):e}function ca(e,t,n,r){var i=e.picker,a=i.currentView,o=a.step||1,s=i.viewDate,c,l;switch(a.id){case 0:s=r?qr(s,n*7):t.ctrlKey||t.metaKey?Xr(s,n):qr(s,n),c=qr,l=function(e){return a.disabled.includes(e)};break;case 1:s=Yr(s,r?n*4:n),c=Yr,l=function(e){var t=new Date(e),n=a.year,r=a.disabled;return t.getFullYear()===n&&r.includes(t.getMonth())};break;default:s=Xr(s,n*(r?4:1)*o),c=Xr,l=function(e){return a.disabled.includes(ei(e,o))}}s=sa(s,c,n<0?-o:o,l,a.minDate,a.maxDate),s!==void 0&&i.changeFocus(s).render()}function la(e,t){if(t.key===`Tab`){qi(e);return}var n=e.picker,r=n.currentView,i=r.id,a=r.isMinView;if(!n.active)switch(t.key){case`ArrowDown`:case`Escape`:n.show();break;case`Enter`:e.update();break;default:return}else if(e.editMode)switch(t.key){case`Escape`:n.hide();break;case`Enter`:e.exitEditMode({update:!0,autohide:e.config.autohide});break;default:return}else switch(t.key){case`Escape`:n.hide();break;case`ArrowLeft`:if(t.ctrlKey||t.metaKey)Gi(e,-1);else if(t.shiftKey){e.enterEditMode();return}else ca(e,t,-1,!1);break;case`ArrowRight`:if(t.ctrlKey||t.metaKey)Gi(e,1);else if(t.shiftKey){e.enterEditMode();return}else ca(e,t,1,!1);break;case`ArrowUp`:if(t.ctrlKey||t.metaKey)Ki(e);else if(t.shiftKey){e.enterEditMode();return}else ca(e,t,-1,!0);break;case`ArrowDown`:if(t.shiftKey&&!t.ctrlKey&&!t.metaKey){e.enterEditMode();return}ca(e,t,1,!0);break;case`Enter`:a?e.setDate(n.viewDate):n.changeView(i-1).render();break;case`Backspace`:case`Delete`:e.enterEditMode();return;default:t.key.length===1&&!t.ctrlKey&&!t.metaKey&&e.enterEditMode();return}t.preventDefault(),t.stopPropagation()}function ua(e){e.config.showOnFocus&&!e._showing&&e.show()}function da(e,t){var n=t.target;(e.picker.active||e.config.showOnClick)&&(n._active=n===document.activeElement,n._clicking=setTimeout(function(){delete n._active,delete n._clicking},2e3))}function fa(e,t){var n=t.target;n._clicking&&(clearTimeout(n._clicking),delete n._clicking,n._active&&e.enterEditMode(),delete n._active,e.config.showOnClick&&e.show())}function pa(e,t){t.clipboardData.types.includes(`text/plain`)&&e.enterEditMode()}function ma(e,t){var n=e.element;if(n===document.activeElement){var r=e.picker.element;yi(t,function(e){return e===n||e===r})||qi(e)}}function ha(e,t){return e.map(function(e){return ui(e,t.format,t.locale)}).join(t.dateDelimiter)}function ga(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=e.config,i=e.dates,a=e.rangepicker;if(t.length===0)return n?[]:void 0;var o=a&&e===a.datepickers[1],s=t.reduce(function(e,t){var n=li(t,r.format,r.locale);if(n===void 0)return e;if(r.pickLevel>0){var i=new Date(n);n=r.pickLevel===1?o?i.setMonth(i.getMonth()+1,0):i.setDate(1):o?i.setFullYear(i.getFullYear()+1,0,0):i.setMonth(0,1)}return Br(n,r.minDate,r.maxDate)&&!e.includes(n)&&!r.datesDisabled.includes(n)&&!r.daysOfWeekDisabled.includes(new Date(n).getDay())&&e.push(n),e},[]);if(s.length!==0)return r.multidate&&!n&&(s=s.reduce(function(e,t){return i.includes(t)||e.push(t),e},i.filter(function(e){return!s.includes(e)}))),r.maxNumberOfDates&&s.length>r.maxNumberOfDates?s.slice(r.maxNumberOfDates*-1):s}function _a(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=e.config,i=e.picker,a=e.inputField;if(t&2){var o=i.active?r.pickLevel:r.startView;i.update().changeView(o).render(n)}t&1&&a&&(a.value=ha(e.dates,r))}function va(e,t,n){var r=n.clear,i=n.render,a=n.autohide;i===void 0&&(i=!0),i?a===void 0&&(a=e.config.autohide):a=!1;var o=ga(e,t,r);o&&(o.toString()===e.dates.toString()?_a(e,1):(e.dates=o,_a(e,i?3:1),Wi(e,`changeDate`)),a&&e.hide())}var ya=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;vr(this,e),t.datepicker=this,this.element=t;
27var i=this.config=Object.assign({buttonClass:n.buttonClass&&String(n.buttonClass)||`button`,container:document.body,defaultViewDate:Gr(),maxDate:void 0,minDate:void 0},Pi(xi,this));this._options=n,Object.assign(i,Pi(n,this));var a=this.inline=t.tagName!==`INPUT`,o,s;if(a)i.container=t,s=zr(t.dataset.date,i.dateDelimiter),delete t.dataset.date;else{var c=n.container?document.querySelector(n.container):null;c&&(i.container=c),o=this.inputField=t,o.classList.add(`datepicker-input`),s=zr(o.value,i.dateDelimiter)}if(r){var l=r.inputs.indexOf(o),u=r.datepickers;if(l<0||l>1||!Array.isArray(u))throw Error(`Invalid rangepicker object.`);u[l]=this,Object.defineProperty(this,"rangepicker",{get:function(){return r}})}this.dates=[];var d=ga(this,s);d&&d.length>0&&(this.dates=d),o&&(o.value=ha(this.dates,i));var f=this.picker=new oa(this);if(a)this.show();else{var p=ma.bind(null,this),m=[[o,`keydown`,la.bind(null,this)],[o,`focus`,ua.bind(null,this)],[o,`mousedown`,da.bind(null,this)],[o,`click`,fa.bind(null,this)],[o,`paste`,pa.bind(null,this)],[document,`mousedown`,p],[document,`touchstart`,p],[window,`resize`,f.place.bind(f)]];hi(this,m)}}return br(e,[{key:`active`,get:function(){return!!(this.picker&&this.picker.active)}},{key:`pickerElement`,get:function(){return this.picker?this.picker.element:void 0}},{key:`setOptions`,value:function(e){var t=this.picker,n=Pi(e,this);Object.assign(this._options,e),Object.assign(this.config,n),t.setOptions(n),_a(this,3)}},{key:`show`,value:function(){if(this.inputField){if(this.inputField.disabled)return;this.inputField!==document.activeElement&&(this._showing=!0,this.inputField.focus(),delete this._showing)}this.picker.show()}},{key:`hide`,value:function(){this.inline||(this.picker.hide(),this.picker.update().changeView(this.config.startView).render())}},{key:`destroy`,value:function(){return this.hide(),gi(this),this.picker.detach(),this.inline||this.inputField.classList.remove(`datepicker-input`),delete this.element.datepicker,this}},{key:`getDate`,value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,n=t?function(n){return ui(n,t,e.config.locale)}:function(e){return new Date(e)};if(this.config.multidate)return this.dates.map(n);if(this.dates.length>0)return n(this.dates[0])}},{key:`setDate`,value:function(){var e=[...arguments],t=[].concat(e),n={},r=Lr(e);Fr(r)===`object`&&!Array.isArray(r)&&!(r instanceof Date)&&r&&Object.assign(n,t.pop());var i=Array.isArray(t[0])?t[0]:t;va(this,i,n)}},{key:`update`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;if(!this.inline){var t={clear:!0,autohide:!!(e&&e.autohide)},n=zr(this.inputField.value,this.config.dateDelimiter);va(this,n,t)}}},{key:`refresh`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];e&&typeof e!=`string`&&(t=e,e=void 0);var n=e===`picker`?2:e===`input`?1:3;_a(this,n,!t)}},{key:`enterEditMode`,value:function(){this.inline||!this.picker.active||this.editMode||(this.editMode=!0,this.inputField.classList.add(`in-edit`,`border-brand`))}},{key:`exitEditMode`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;if(!(this.inline||!this.editMode)){var t=Object.assign({update:!1},e);delete this.editMode,this.inputField.classList.remove(`in-edit`,`border-brand`),t.update&&this.update(t)}}}],[{key:`formatDate`,value:function(e,t,n){return ui(e,t,n&&bi[n]||bi.en)}},{key:`parseDate`,value:function(e,t,n){return li(e,t,n&&bi[n]||bi.en)}},{key:`locales`,get:function(){return bi}}])}();function ba(e){var t=Object.assign({},e);return delete t.inputs,delete t.allowOneSidedRange,delete t.maxNumberOfDates,t}function xa(e,t,n,r){hi(e,[[n,`changeDate`,t]]),new ya(n,r,e)}function Sa(e,t){if(!e._updating){e._updating=!0;var n=t.target;if(n.datepicker!==void 0){var r=e.datepickers,i={render:!1},a=e.inputs.indexOf(n),o=+(a===0),s=r[a].dates[0],c=r[o].dates[0];s!==void 0&&c!==void 0?a===0&&s>c?(r[0].setDate(c,i),r[1].setDate(s,i)):a===1&&s<c&&(r[0].setDate(s,i),r[1].setDate(c,i)):e.allowOneSidedRange||(s!==void 0||c!==void 0)&&(i.clear=!0,r[o].setDate(r[a].dates,i)),r[0].picker.update(
27).render(),r[1].picker.update().render(),delete e._updating}}}var Ca=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};vr(this,e);var r=Array.isArray(n.inputs)?n.inputs:Array.from(t.querySelectorAll(`input`));if(!(r.length<2)){t.rangepicker=this,this.element=t,this.inputs=r.slice(0,2),this.allowOneSidedRange=!!n.allowOneSidedRange;var i=Sa.bind(null,this),a=ba(n),o=[];Object.defineProperty(this,"datepickers",{get:function(){return o}}),xa(this,i,this.inputs[0],a),xa(this,i,this.inputs[1],a),Object.freeze(o),o[0].dates.length>0?Sa(this,{target:this.inputs[0]}):o[1].dates.length>0&&Sa(this,{target:this.inputs[1]})}}return br(e,[{key:`dates`,get:function(){return this.datepickers.length===2?[this.datepickers[0].dates[0],this.datepickers[1].dates[0]]:void 0}},{key:`setOptions`,value:function(e){this.allowOneSidedRange=!!e.allowOneSidedRange;var t=ba(e);this.datepickers[0].setOptions(t),this.datepickers[1].setOptions(t)}},{key:`destroy`,value:function(){this.datepickers[0].destroy(),this.datepickers[1].destroy(),gi(this),delete this.element.rangepicker}},{key:`getDates`,value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,n=t?function(n){return ui(n,t,e.datepickers[0].config.locale)}:function(e){return new Date(e)};return this.dates.map(function(e){return e===void 0?e:n(e)})}},{key:`setDates`,value:function(e,t){var n=Y(this.datepickers,2),r=n[0],i=n[1],a=this.dates;this._updating=!0,r.setDate(e),i.setDate(t),delete this._updating,i.dates[0]===a[1]?r.dates[0]!==a[0]&&Sa(this,{target:this.inputs[0]}):Sa(this,{target:this.inputs[1]})}}])}(),wa=function(){return wa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},wa.apply(this,arguments)},Q={defaultDatepickerId:null,autohide:!1,format:`mm/dd/yyyy`,maxDate:null,minDate:null,orientation:`bottom`,buttons:!1,autoSelectToday:0,title:null,language:`en`,rangePicker:!1,onShow:function(){},onHide:function(){}},Ta={id:null,override:!0},Ea=function(){function e(e,t,n){e===void 0&&(e=null),t===void 0&&(t=Q),n===void 0&&(n=Ta),this._instanceId=n.id?n.id:e.id,this._datepickerEl=e,this._datepickerInstance=null,this._options=wa(wa({},Q),t),this._initialized=!1,this.init(),V.addInstance(`Datepicker`,this,this._instanceId,n.override)}return e.prototype.init=function(){this._datepickerEl&&!this._initialized&&(this._datepickerInstance=this._options.rangePicker?new Ca(this._datepickerEl,this._getDatepickerOptions(this._options)):new ya(this._datepickerEl,this._getDatepickerOptions(this._options)),this._initialized=!0)},e.prototype.destroy=function(){this._initialized&&(this._initialized=!1,this._datepickerInstance.destroy())},e.prototype.removeInstance=function(){this.destroy(),V.removeInstance(`Datepicker`,this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getDatepickerInstance=function(){return this._datepickerInstance},e.prototype.getDate=function(){if(this._options.rangePicker&&this._datepickerInstance instanceof Ca)return this._datepickerInstance.getDates();if(!this._options.rangePicker&&this._datepickerInstance instanceof ya)return this._datepickerInstance.getDate()},e.prototype.setDate=function(e){if(this._options.rangePicker&&this._datepickerInstance instanceof Ca)return this._datepickerInstance.setDates(e);if(!this._options.rangePicker&&this._datepickerInstance instanceof ya)return this._datepickerInstance.setDate(e)},e.prototype.show=function(){this._datepickerInstance.show(),this._options.onShow(this)},e.prototype.hide=function(){this._datepickerInstance.hide(),this._options.onHide(this)},e.prototype._getDatepickerOptions=function(e){var t={};return e.buttons&&(t.todayBtn=!0,t.clearBtn=!0,e.autoSelectToday&&(t.todayBtnMode=1)),e.autohide&&(t.autohide=!0),e.format&&(t.format=e.format),e.maxDate&&(t.maxDate=e.maxDate),e.minDate&&(t.minDate=e.minDate),e.orientation&&(t.orientation=e.orientation),e.title&&(t.title=e.title),e.language&&(t.language=e.language),t},e.prototype.updateOnShow=function(e){this._options.onShow=e},e.prototype.updateOnHide=function(e){this._options.onHide=e},e}();function Da(){document.querySelectorAll(`[datepicker], [inline-datepicker], [date-rangepicker]`).forEach(function(e){if(e){var t=e.hasAttribute(`datepicker-buttons`),n=e.hasAttribute(`datepicker-autoselect-today`),r=e.hasAttribute(`datepicker-autohide`),i=e.getAttribute(`datepicker-format`),a=e.getAttribute(`datepicker-max-date`),o=e.getAttribute(`datepicker-min-date`),s=e.getAttribute(`datepicker-orientation`),c=e.getAttribute(`datepicker-title`),l=e.getAttribute(`datepicker-language`),u=e.hasAttribute(`date-rangepicker`);new Ea(e,{buttons:t||Q.buttons,autoSelectToday:n||Q.autoSelectToday,autohide:r||Q.autohide,format:i||Q.format,maxDate:a||Q.maxDate,minDate:o||Q.minDate,orientation:s||Q.orientation,title:c||Q.title,language:l||Q.language,rangePicker:u||Q.rangePicker})}else console.error(`The datepicker element does not exist. Please check the datepicker attribute.`)})}typeof window<`u`&&(window.Datepicker=Ea,window.initDatepickers=Da);function Oa(){me(),ye(),we(),ke(),wn(),kn(),Pn(),zn(),Gn(),Zn(),nr(),sr(),fr(),Da()}typeof window<`u`&&(window.initFlowbite=Oa),new ue(`load`,[me,ye,we,ke,wn,kn,Pn,zn,Gn,Zn,nr,sr,fr,Da]).init();var ka=(e,t,n)=>{let r=t.lastIndexOf(`?`),i=e[r===-1||r<t.lastIndexOf(`/`)?t:t.slice(0,r)];return i?typeof i==`function`?i():Promise.resolve(i):new Promise((e,r)=>{(typeof queueMicrotask==`function`?queueMicrotask:setTimeout)(r.bind(null,Error(`Unknown variable dynamic import: `+t+(t.split(`/`).length===n?``:`. Note that variables only represent file names one level deep.`))))})},Aa={footer:{about:{t:0,b:{t:2,i:[{t:3}],s:`About`}},contact:{t:0,b:{t:2,i:[{t:3}],s:`Contact`}},terms:{t:0,b:{t:2,i:[{t:3}],s:`Terms of Use`}},privacy:{t:0,b:{t:2,i:[{t:3}],s:`Privacy Policy`}},navigation:{t:0,b:{t:2,i:[{t:3}],s:`Footer navigation`}}},meta:{title:{t:0,b:{t:2,i:[{t:3}],s:`Beautiful Photos — Turn Every New Tab Into a Moment of Beauty & Motivation`}},description:{t:0,b:{t:2,i:[{t:3}
27],s:`Beautiful Photos brings you stunning Unsplash backgrounds, a minimalist clock, and daily motivation — right in your browser. Add to Chrome for free.`}},keywords:{t:0,b:{t:2,i:[{t:3}],s:`beautiful photos, beautiful landscape photos, beautiful background photos, beautiful photos of nature, beautiful photo, wallpaper photos, wallpaper desktop photos, unsplash free images, unsplash wallpapers, unsplash photos, unsplash wallpaper, chrome extension, new tab, motivation`}},open_graph:{title:{t:0,b:{t:2,i:[{t:3}],s:`Beautiful Photos — Turn Every New Tab Into a Moment of Beauty & Motivation`}},description:{t:0,b:{t:2,i:[{t:3}],s:`Beautiful Photos brings you stunning Unsplash backgrounds, a minimalist clock, and daily motivation — right in your browser.`}}}},landing:{hero:{product_name:{t:0,b:{t:2,i:[{t:3}],s:`Beautiful Photos`}},demo:{newTab:{t:0,b:{t:2,i:[{t:3}],s:`New Tab`}},showClock:{t:0,b:{t:2,i:[{t:3}],s:`Show clock`}},showQuotes:{t:0,b:{t:2,i:[{t:3}],s:`Show quotes`}},personalReminder:{t:0,b:{t:2,i:[{t:3}],s:`Personal Reminder`}},personalReminderDescription:{t:0,b:{t:2,i:[{t:3}],s:`Quick notes, priorities, and gentle nudges.`}},rateUs:{t:0,b:{t:2,i:[{t:3}],s:`Rate Us`}},lockTooltip:{t:0,b:{t:2,i:[{t:3}],s:`Lock this photo to prevent it from changing`}},settingsTooltip:{t:0,b:{t:2,i:[{t:3}],s:`Settings`}},historyTooltip:{t:0,b:{t:2,i:[{t:3}],s:`History`}},availableInExtension:{t:0,b:{t:2,i:[{t:3}],s:`(available in Chrome extension)`}},features:{t:0,b:{t:2,i:[{t:3}],s:`Features`}},reviews:{t:0,b:{t:2,i:[{t:3}],s:`Reviews`}},photos:{t:0,b:{t:2,i:[{t:3}],s:`Photos`}},clock:{t:0,b:{t:2,i:[{t:3}],s:`Clock`}},quotes:{t:0,b:{t:2,i:[{t:3}],s:`Quotes`}},refresh:{t:0,b:{t:2,i:[{t:3}],s:`Show another photo`}},next:{t:0,b:{t:2,i:[{t:3}],s:`Another reminder`}},examples:[{t:0,b:{t:2,i:[{t:3}],s:`One thing at a time. You have this.`}},{t:0,b:{t:2,i:[{t:3}],s:`Pause. Breathe. Begin again.`}},{t:0,b:{t:2,i:[{t:3}],s:`Make room for something wonderful today.`}}]},heading:{t:0,b:{t:2,i:[{t:3,v:`Make Every Tab `},{t:4,k:`beautiful_and_inspiring`}]}},beautiful_and_inspiring:{t:0,b:{t:2,i:[{t:3}],s:`Beautiful & Inspiring`}},subheading:{t:0,b:{t:2,i:[{t:3}],s:`Make every tab beautiful & inspiring with stunning Unsplash backgrounds, a minimalist clock, and daily motivation.`}},cta_label:{t:0,b:{t:2,i:[{t:3}],s:`Add to Chrome`}},location_label:{t:0,b:{t:2,i:[{t:3}],s:`Location:`}},attribution:{t:0,b:{t:2,i:[{t:4,k:`photo`},{t:3,v:` by `},{t:4,k:`author`},{t:3,v:` on `},{t:4,k:`unsplash`}]}},photo_label:{t:0,b:{t:2,i:[{t:3}],s:`Photo`}}},features:{heading:{t:0,b:{t:2,i:[{t:3,v:`Simple. Beautiful. `},{t:4,k:`motivating`},{t:3,v:` Every Day.`}]}},motivating:{t:0,b:{t:2,i:[{t:3}],s:`Motivating.`}},soon:{t:0,b:{t:2,i:[{t:3}],s:`Coming soon`}},feature1_title:{t:0,b:{t:2,i:[{t:3}],s:`Fresh Unsplash Photos`}},feature1_description:{t:0,b:{t:2,i:[{t:3}],s:`Discover a new, breathtaking photo every time you open a tab.`}},feature2_title:{t:0,b:{t:2,i:[{t:3}],s:`Minimalist Clock`}},feature2_description:{t:0,b:{t:2,i:[{t:3}],s:`Stay on track with a clean, elegant time display.`}},feature3_title:{t:0,b:{t:2,i:[{t:3}],s:`Daily Motivation Quotes`}},feature3_description:{t:0,b:{t:2,i:[{t:3}],s:`Start fresh with uplifting words to boost your mood.`}},feature4_title:{t:0,b:{t:2,i:[{t:3}],s:`Personal Reminders`}},feature4_description:{t:0,b:{t:2,i:[{t:3}],s:`Add your own text: goals, deadlines, or mantras that keep you focused.`}}},block2:{intro:{heading:{t:0,b:{t:2,i:[{t:3}],s:`Your New Tab Deserves Better.`}},description:{t:0,b:{t:2,i:[{t:3}],s:`Most new tabs feel either empty or overloaded. Beautiful Photos replaces both with breathtaking photography, a minimalist clock, and a little daily inspiration.`}},accent:{t:0,b:{t:2,i:[{t:3}],s:`Everything you need to reset, refocus, and move forward.`}}},features:{heading:{t:0,b:{t:2,i:[{t:3,v:`More Than a `},{t:4,k:`beautiful_view`},{t:3,v:`.`}]}},beautiful_view:{t:0,b:{t:2,i:[{t:3}],s:`Beautiful View`}}},carousel:{unavailable:{t:0,b:{t:2,i:[{t:3}],s:`Photo unavailable`}},attribution:{t:0,b:{t:2,i:[{t:3,v:`Photo by `},{t:4,k:`photographer`},{t:3,v:` on Unsplash`}]}}},cards:{clock:{title:{t:0,b:{t:2,i:[{t:3}],s:`Minimalist Clock`}},description:{t:0,b:{t:2,i:[{t:3}],s:`A clean, elegant clock to keep you on track throughout your day.`}},example:{t:0,b:{t:2,i:[{t:3}],s:`10:09 AM`}}},quotes:{title:{t:0,b:{t:2,i:[{t:3}],s:`Daily Quotes`}},description:{t:0,b:{t:2,i:[{t:3}],s:`Thoughtful quotes to keep you inspired and see each day differently.`}},example:{t:0,b:{t:2,i:[{t:3}],s:`Make room for something wonderful today.`}}},reminder:{title:{t:0,b:{t:2,i:[{t:3}],s:`Personal Reminder`}},description:{t:0,b:{t:2,i:[{t:3}],s:`Add your own text: goals, deadlines, or mantras that keep you focused.`}},example:{t:0,b:{t:2,i:[{t:3}],s:`One thing at a time. You got this.`}}}},photos:{mybaeBtxOj8:{t:0,b:{t:2,i:[{t:3}],s:`A layered mountain silhouette beneath a peach-orange sky.`}},XD5oKCerKCQ:{t:0,b:{t:2,i:[{t:3}],s:`Dark teal ocean currents swirling from above.`}},L4VxDFJmaOM:{t:0,b:{t:2,i:[{t:3}],s:`Soft brown dunes beneath a hazy desert sky.`}},"9e4pCscLDyY":{t:0,b:{t:2,i:[{t:3}],s:`Snowy mountain peaks rising from low clouds.`}},"9Fa_wOPkS7c":{t:0,b:{t:2,i:[{t:3}],s:`A close-up portrait of a dark jackdaw with a bright blue eye.`}},"x8Oro9-tG64":{t:0,b:{t:2,i:[{t:3}],s:`A small island at sunset reflected in calm sea water.`}},"2WpkG7DzBRI":{t:0,b:{t:2,i:[{t:3}],s:`An aerial view of autumn forest meeting dark green water.`}},JNLm2EV8Yls:{t:0,b:{t:2,i:[{t:3}],s:`A star-filled night above a snowy mountain ridge.`}}}},social:{heading:{t:0,b:{t:2,i:[{t:3,v:`Loved by Focused, `},{t:4,k:`inspired_people`},{t:3,v:` Around the World`}]}},inspired_people:{t:0,b:{t:2,i:[{t:3}],s:`Inspired People`}},rating_accessible:{t:0,b:{t:2,i:[{t:3}],s:`5 out of 5 stars`}},subheading:{t:0,b:{t:2,i:[{t:3}],s:`Turn your browsing experience into a daily source of beauty and inspiration.`}},early_user:{t:0,b:{t:2,i:[{t:3}],s:`Early User`}},user1_testimonial:{t:0,b:{t:2,i:[{t:3}],s:`I used to use the Unsplash extention, and were looking for a replacement. I've tried many, but they were either to slow or repeated the same photos. This one is even better and faster. Great job!`}},user2_testimonial:{t:0,b:{t:2,i:[{t:3}],s:`Great photos! Can even change your mood sometimes.`}},user3_testimonial:{t:0,b:{t:2,i:[{t:3}],s:`This is what I was looking for. Nice pictures on my new tabs without a lot of clutter but just enough to download the picture or recognize the photographer. Nice!!!`}},translation_note:{t:0,b:{t:2,i:[{t:3}],s:`(translation)`}}},cta:{mid:{heading:{t:0,b:{t:2,i:[{t:3,v:`Ready to Make Every Tab `},{t:4,k:`source_of_inspiration`}]}},source_of_inspiration:{t:0,b:{t:2,i:[{t:3}],s:`a Source of Inspiration?`}},text:{t:0,b:{t:2,i:[{t:3}],s:`Install Beautiful Photos in seconds. No clutter. No tracking. Just beauty and motivation — every time you open a tab.`}},cta_label:{t:0,b:{t:2,i:[{t:3}],s:`Add to Chrome — It's Free`}}},final:{heading:{t:0,b:{t:2,i:[{t:3,v:`Your Digital Workspace `},{t:4,k:`should_inspire_you`}]}},should_inspire_you:{t:0,b:{t:2,i:[{t:3}],s:`Should Inspire You`}},text:{t:0,b:{t:2,i:[{t:3}],s:`You spend hours in your browser every day. Why not make it beautiful, uplifting, and productive? With Beautiful Photos, every new tab becomes a reminder of what matters most.`}},cta_label:{t:0,b:{t:2,i:[{t:3}],s:`Get Inspired with Every Tab`}}}}},errors:{status_codes:{400:{title:{t:0,b:{t:2,i:[{t:3}],s:`Bad Request`}},description:{t:0,b:{t:2,i:[{t:3}],s:`The request could not be understood by the server.`}}},401:{title:{t:0,b:{t:2,i:[{t:3}],s:`Unauthorized`}},description:{t:0,b:{t:2,i:[{t:3}],s:`You must be authenticated to access this resource.`}}},403:{title:{t:0,b:{t:2,i:[{t:3}],s:`Forbidden`}},description:{t:0,b:{t:2,i:[{t:3}],s:`You do not have permission to view this page.`}}},404:{title:{t:0,b:{t:2,i:[{t:3}],s:`Page Not Found`}},description:{t:0,b:{t:2,i:[{t:3}],s:`The page you're looking for doesn't exist or has been moved.`}}},408:{title:{t:0,b:{t:2,i:[{t:3}],s:`Request Timeout`}},description:{t:0,b:{t:2,i:[{t:3}],s:`The server timed out waiting for your request.`}}},429:{title:{t:0,b:{t:2,i:[{t:3}],s:`Too Many Requests`}},description:{t:0,b:{t:2,i:[{t:3}],s:`You have sent too many requests. Please slow down.`}}},500:{title:{t:0,b:{t:2,i:[{t:3}],s:`Internal Server Error`}},description:{t:0,b:{t:2,i:[{t:3}],s:`The server encountered an unexpected condition.`}}},502:{title:{t:0,b:{t:2,i:[{t:3}],s:`Bad Gateway`}},description:{t:0,b:{t:2,i:[{t:3}],s:`Invalid response from an upstream server.`}}},503:{title:{t:0,b:{t:2,i:[{t:3}],s:`Service Unavailable`}},description:{t:0,b:{t:2,i:[{t:3}],s:`The service is temporarily unavailable. Try again later.`}}},504:{title:{t:0,b:{t:2,i:[{t:3}],s:`Gateway Timeout`}},description:{t:0,b:{t:2,i:[{t:3}],s:`Upstream server failed to respond in time.`}}}},fallback:{title:{t:0,b:{t:2,i:[{t:3}],s:`Unexpected Error`}},description:{t:0,b:{t:2,i:[{t:3}],s:`An unexpected error occurred. Please try again later.`}}},go_back_home:{t:0,b:{t:2,i:[{t:3}],s:`Go back home`}}}};async function ja(e,t){localStorage[e]=JSON.stringify(t)}async function Ma(e){let t,n;B()&&console.log(`[DEV] get from localStorage[${e}
27]`),t=localStorage[e]||null;try{n=JSON.parse(t)}catch(e){console.log(`getLocalStorage - error parsing JSON: `,e),n=t}return n}var Na=M({legacy:!1,globalInjection:!0,locale:`en`,fallbackLocale:`en`});Na.global.setLocaleMessage(`en`,Aa);async function Pa(e){if(!Na.global.availableLocales.includes(e)){let t=await Ia(e);if(t===void 0)return;Na.global.setLocaleMessage(e,t)}}function Fa(e){Pa(e),document.querySelector(`html`)?.setAttribute(`lang`,e),La(e)?document.documentElement.setAttribute(`dir`,`rtl`):document.documentElement.removeAttribute(`dir`)}async function Ia(e){return(await ka(Object.assign({
27"../../i18n/locales/ar.ts":()=>P(()=>import(`./3ofDEIKr.js`),[],import.meta.url),
27"../../i18n/locales/bg.ts":()=>P(()=>import(`./CivGqPLz.js`),[],import.meta.url),
27"../../i18n/locales/bn.ts":()=>P(()=>import(`./9kweLrb0.js`),[],import.meta.url),
27"../../i18n/locales/cs.ts":()=>P(()=>import(`./Di40iSZa.js`),[],import.meta.url),
27"../../i18n/locales/de.ts":()=>P(()=>import(`./CjHaRksK.js`),[],import.meta.url),
27"../../i18n/locales/en.ts":()=>P(()=>import(`./xY1FMIco.js`),[],import.meta.url),
27"../../i18n/locales/es.ts":()=>P(()=>import(`./CQr5gWUq.js`),[],import.meta.url),
27"../../i18n/locales/fi.ts":()=>P(()=>import(`./BonL4hQa.js`),[],import.meta.url),
27"../../i18n/locales/fr.ts":()=>P(()=>import(`./DgVUm_jM.js`),[],import.meta.url),
27"../../i18n/locales/hi.ts":()=>P(()=>import(`./U5LJyTwf.js`),[],import.meta.url),
27"../../i18n/locales/hu.ts":()=>P(()=>import(`./DYba4_Ov.js`),[],import.meta.url),
27"../../i18n/locales/it.ts":()=>P(()=>import(`./C1P5KOHW.js`),[],import.meta.url),
27"../../i18n/locales/ja.ts":()=>P(()=>import(`./D20bv45n.js`),[],import.meta.url),
27"../../i18n/locales/jv.ts":()=>P(()=>import(`./B0NZmFFR.js`),[],import.meta.url),
27"../../i18n/locales/ko.ts":()=>P(()=>import(`./BY1xp0J6.js`),[],import.meta.url),
27"../../i18n/locales/ms.ts":()=>P(()=>import(`./B_MSEb8D.js`),[],import.meta.url),
27"../../i18n/locales/nl.ts":()=>P(()=>import(`./2TFzs9gI.js`),[],import.meta.url),
27"../../i18n/locales/no.ts":()=>P(()=>import(`./BRaDXfq9.js`),[],import.meta.url),
27"../../i18n/locales/pa.ts":()=>P(()=>import(`./Cz-wlwfe.js`),[],import.meta.url),
27"../../i18n/locales/pl.ts":()=>P(()=>import(`./Dg0torVI.js`),[],import.meta.url),
27"../../i18n/locales/pt-BR.ts":()=>P(()=>import(`./BrEb9gU4.js`),[],import.meta.url),
27"../../i18n/locales/pt.ts":()=>P(()=>import(`./CqgP2RBA.js`),[],import.meta.url),
27"../../i18n/locales/ru.ts":()=>P(()=>import(`./Cu7Cw4a-.js`),[],import.meta.url),
27"../../i18n/locales/sl.ts":()=>P(()=>import(`./BDWMnml4.js`),[],import.meta.url),
27"../../i18n/locales/sv.ts":()=>P(()=>import(`./C46Alb9A.js`),[],import.meta.url),
27"../../i18n/locales/sw.ts":()=>P(()=>import(`./DR5Et2HX.js`),[],import.meta.url),
27"../../i18n/locales/ta.ts":()=>P(()=>import(`./DqH5ggxu.js`),[],import.meta.url),
27"../../i18n/locales/th.ts":()=>P(()=>import(`./BwcQWNKv.js`),[],import.meta.url),
27"../../i18n/locales/tr.ts":()=>P(()=>import(`./D3awVkJy.js`),[],import.meta.url),
27"../../i18n/locales/uk.ts":()=>P(()=>import(`./I8KXMdVH.js`),[],import.meta.url),
27"../../i18n/locales/ur.ts":()=>P(()=>import(`./B0TNMzcu.js`),[],import.meta.url),
27"../../i18n/locales/vi.ts":()=>P(()=>import(`./BvSJRk3e.js`),[],import.meta.url),
27"../../i18n/locales/zh-CN.ts":()=>P(()=>import(`./DPsPJpkz.js`),[],import.meta.url),
27"../../i18n/locales/zh-TW.ts":()=>P(()=>import(`./rAuCsn88.js`),[],import.meta.url)}),`../../i18n/locales/${e}.ts`,5)).default}function La(e){return[`ar`,`he`,`fa`,`ur`,`dv`,`yi`,`ps`,`sd`,`ug`].includes(e)}var Ra={class:`py-3 px-5 text-sm rounded-t-lg relative`},za=[`onClick`,`id`],Ba={class:`ms-2 text-sm me-2 inline-flex gap-2 flex-start w-full`},Va={class:`break-all`},Ha=Object.assign(T({__name:`LanguageDropdown`,props:{lang:{default:`en`},showText:{type:Boolean,default:!0},size:{default:`lg`},dropdownClasses:{default:``}},emits:[`update`],setup(e,{emit:i}){let a=e,o=i,u=S(null),d=S(a.lang),h=S(!1),b=S(``),w=C(()=>{if(b.value===``)return R;let e=b.value.toLowerCase();return R.filter(t=>t.lang_en.toLowerCase().includes(e)||t.lang_native.toLowerCase().includes(e))}),T=async e=>{d.value=e,Fa(e),F?.hide(),o(`update`,e)},k=C(()=>R.find(e=>e.code===d.value)?.flag_code||``),A=C(()=>R.find(e=>e.code===d.value)?.lang_native||``),j=S(null),M=S(null),N={placement:`bottom`,triggerType:`click`,offsetSkidding:-60,offsetDistance:10,delay:300,onShow:()=>{h.value=!0,u.value?.focus();let e=document.getElementById(`lang-elm-${d.value}`);e&&e.scrollIntoView({behavior:`auto`,block:`center`,inline:`center`}),setTimeout(()=>{I()},1e3)},onHide:()=>{h.value=!1}},P={id:`localeDropdownMenu`,override:!0},F=null;l(()=>a.lang,e=>{d.value=e});let I=re(()=>{if(M.value){let e=M.value.getBoundingClientRect(),t=window.innerHeight;e.bottom>t?M.value.style.maxHeight=t-e.top-30+`px`:M.value.style.maxHeight=``}},100);return s(async()=>{window.addEventListener(`resize`,I,!1),le(()=>{F=new Cn(M.value,j.value,N,P)})}),n(()=>{window.removeEventListener(`resize`,I,!1)}),(e,n)=>{let i=ce,o=ee;return r(),_(`div`,null,[f(`button`,{ref_key:`localeDropdownButtonElm`,ref:j,class:`focus:outline-none focus:ring-none bg-card/80 backdrop-blur-sm border-border/50 rounded-md text-sm pl-3 pr-2 py-2 text-center inline-flex items-center text-muted-foreground cursor-pointer`,type:`button`},[E(i,{language:x(k),class:t([`drop-shadow`,{"w-4 h-4":a.size!==`lg`,"w-5 h-5":a.size===`lg`}])},null,8,[`language`,`class`]),a.showText?(r(),_(`span`,{key:0,class:t([`hidden lg:block ml-2 dark:text-gray-300`,{"text-sm":a.size===`sm`,"text-base":a.size===`base`,"text-lg":a.size===`lg`}])},g(x(A)),3)):v(``,!0),x(h)?(r(),p(o,{key:2,name:`tabler:chevron-up`,class:`w-5 h-5 ms-2`})):(r(),p(o,{key:1,name:`tabler:chevron-down`,class:`w-5 h-5 ms-2 icon-stroke-2`}))],512),f(`div`,{ref_key:`localeDropdownMenuElm`,ref:M,class:t([`z-10 hidden bg-white rounded-lg shadow-xl dark:bg-gray-700 max-h-[450px] flex flex-col`,{"w-[250px]":a.size===`base`,"w-[220px]":a.size===`sm`,"w-[270px]":a.size===`lg`}])},[f(`div`,Ra,[E(o,{name:`tabler:search`,class:`absolute top-5 left-7 pointer-events-none w-5 h-5 text-gray-400`}),y(f(`input`,{type:`text`,id:`lang-search`,ref_key:`langSearchElm`,ref:u,class:`block w-full px-2 py-1.5 ps-9 text-base text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-gray-500 focus:border-gray-500 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white dark:focus:ring-gray-500 dark:focus:border-gray-500`,"onUpdate:modelValue":n[0]||=e=>c(b)?b.value=e:null},null,512),[[O,x(b)]])]),f(`div`,{class:t([`space-y-1 text-sm text-gray-700 dark:text-gray-200 p-2 overflow-y-auto grid- grid-cols-2- gap-2- grid-rows-[auto-fill]-`,a.dropdownClasses])},[(r(!0),_(m,null,D(x(w),(e,n)=>(r(),_(`div`,{key:n,class:t([`p-2 rounded hover:bg-gray-100 dark:hover:bg-gray-600 cursor-pointer flex`,{"bg-[#e3e7ff] dark:bg-[#5967c1] text-gray-900 dark:text-gray-200":x(d)===e.code}]),onClick:t=>T(e.code),id:`lang-elm-${e.code}`},[f(`div`,Ba,[E(i,{language:e.flag_code.toLowerCase(),class:`w-6 h-6 drop-shadow shrink-0 mt-[2px]`},null,8,[`language`]),f(`div`,{class:t([`font-medium text-gray-700 dark:text-gray-200 cursor-pointer`,{"text-base":a.size===`base`,"text-sm":a.size===`sm`,"text-lg":a.size===`lg`}])},[f(`div`,Va,g(e.lang_native),1),e.lang_en===e.lang_native?v(``,!0):(r(),_(`div`,{key:0,class:t([`break-all text-gray-500 dark:text-gray-400 font-normal`,{"text-xs":a.size===`sm`,"text-sm":a.size===`base`,"text-base":a.size===`lg`}])}
27,g(e.lang_en),3))],2)])],10,za))),128))],2)],2)])}}}),{__name:`LanguageDropdown`}),Ua=globalThis.setInterval,Wa=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~`.split(``),Ga=e=>{let t=0;for(let n=0;n<e.length;n++){let r=e[n],i=Wa.indexOf(r);t=t*83+i}return t},Ka=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},qa=e=>{let t=Math.max(0,Math.min(1,e));return Math.trunc(t<=.0031308?t*12.92*255+.5:(1.055*t**.4166666666666667-.055)*255+.5)},Ja=e=>e<0?-1:1,Ya=(e,t)=>Ja(e)*Math.abs(e)**+t,Xa=class extends Error{constructor(e){super(e),this.name=`ValidationError`,this.message=e}},Za=e=>{if(!e||e.length<6)throw new Xa(`The blurhash string must be at least 6 characters`);let t=Ga(e[0]),n=Math.floor(t/9)+1,r=t%9+1;if(e.length!==4+2*r*n)throw new Xa(`blurhash length mismatch: length is ${e.length} but it should be ${4+2*r*n}`)},Qa=e=>{let t=e>>16,n=e>>8&255,r=e&255;return[Ka(t),Ka(n),Ka(r)]},$a=(e,t)=>{let n=Math.floor(e/361),r=Math.floor(e/19)%19,i=e%19;return[Ya((n-9)/9,2)*t,Ya((r-9)/9,2)*t,Ya((i-9)/9,2)*t]},eo=(e,t,n,r)=>{Za(e),r|=1;let i=Ga(e[0]),a=Math.floor(i/9)+1,o=i%9+1,s=(Ga(e[1])+1)/166,c=Array(o*a);for(let t=0;t<c.length;t++)if(t===0){let n=Ga(e.substring(2,6));c[t]=Qa(n)}else{let n=Ga(e.substring(4+t*2,6+t*2));c[t]=$a(n,s*r)}let l=t*4,u=new Uint8ClampedArray(l*n);for(let e=0;e<n;e++)for(let r=0;r<t;r++){let i=0,s=0,d=0;for(let l=0;l<a;l++)for(let a=0;a<o;a++){let u=Math.cos(Math.PI*r*a/t)*Math.cos(Math.PI*e*l/n),f=c[a+l*o];i+=f[0]*u,s+=f[1]*u,d+=f[2]*u}let f=qa(i),p=qa(s),m=qa(d);u[4*r+0+e*l]=f,u[4*r+1+e*l]=p,u[4*r+2+e*l]=m,u[4*r+3+e*l]=255}return u};function to(e){return e.toLocaleTimeString(`en-US`,{hour12:!0,hour:`numeric`,minute:`2-digit`})}function no(e,t){return e.length?e[Math.floor((t.getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5)%e.length]??null:null}function ro(e,t=``,n=Math.random){let r=e.filter(e=>e!==t),i=r.length?r:e;return i[Math.floor(n()*i.length)]??``}var io=[{photo_id:`rQEn0yzfyx8`,raw_path:`/images/starter-photos/rQEn0yzfyx8.jpg`,small_path:`/images/starter-photos/rQEn0yzfyx8.jpg?w=400`,full_path:`/images/starter-photos/rQEn0yzfyx8.jpg`,photo_url:`https://unsplash.com/photos/bubbly-wave-at-the-bottom-of-a-mountain-rQEn0yzfyx8`,user_fullname:`ameenfahmy`,user_profile:`https://unsplash.com/@ameenfahmy`,user_profile_image:`https://images.unsplash.com/profile-1624372065948-6abd8c75786fimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32`,photo_location:`Maldives`,exif:{make:`NIKON CORPORATION`,model:`NIKON D810`,name:`NIKON CORPORATION, NIKON D810`,exposure_time:`1/2500`,aperture:`2.8`,focal_length:`200.0`,iso:160},photo_width:5520,photo_height:3680,blur_hash:`LXCab+nPRPkD1HaLofbH%yV[j]a{`,created_at:`2016-09-22T12:36:09Z`},{photo_id:`uwbajDCODj4`,raw_path:`/images/starter-photos/uwbajDCODj4.jpg`,small_path:`/images/starter-photos/uwbajDCODj4.jpg?w=400`,full_path:`/images/starter-photos/uwbajDCODj4.jpg`,photo_url:`https://unsplash.com/photos/golden-hour-photography-of-docking-pier-on-body-of-water-uwbajDCODj4`,user_fullname:`Anders Jildén`,user_profile:`https://unsplash.com/@andersjilden`,user_profile_image:`https://images.unsplash.com/profile-1634124902409-cb278afd3d62image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32`,photo_location:`Sweden`,exif:{make:null,model:null,name:null,exposure_time:null,aperture:null,focal_length:null,iso:null},photo_width:2400,photo_height:1600,blur_hash:`LTBWW1=ED%EMx_r=WAW=0zEL%1%2`,created_at:`2017-06-27T08:10:32Z`},{photo_id:`WEQbe2jBg40`,raw_path:`/images/starter-photos/WEQbe2jBg40.jpg`,small_path:`/images/starter-photos/WEQbe2jBg40.jpg?w=400`,full_path:`/images/starter-photos/WEQbe2jBg40.jpg`,photo_url:`https://unsplash.com/photos/aerial-photography-of-mountain-under-clear-blue-sky-WEQbe2jBg40`,user_fullname:`Brady Bellini`,user_profile:`https://unsplash.com/@brady_bellini`,user_profile_image:`https://images.unsplash.com/profile-1705715572702-c7545893872cimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32`,photo_location:`Switzerland`,exif:{make:`NIKON CORPORATION`,model:`NIKON D3300`,name:`NIKON CORPORATION, NIKON D3300`,exp
27osure_time:`1/4000`,aperture:`6.3`,focal_length:`50.0`,iso:100},photo_width:6e3,photo_height:4e3,blur_hash:`LtBr7$M{WXa|?^NJWBfj-.RkWBfk`,created_at:`2016-07-27T04:38:42Z`}],ao=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,oo=(e=21)=>{let t=``,n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=ao[n[e]&63];return t},so=class{apiUrl;userId=``;constructor(){this.apiUrl=B()?`http://127.0.0.1:8787/api`:`https://api.beautifulphotos.app/api`}async loadUserId(){if(this.userId)return this.userId;let e=await Ma(`user_id`);return e?this.userId=e:(this.userId=oo(),await ja(`user_id`,this.userId)),this.userId}async getRandomPhoto(){B()&&console.log(`[DEV] getRandomPhoto()`),await this.loadUserId();try{let e=new Headers;e.append(`X-User-ID`,this.userId);let t=`${this.apiUrl}/photos/random?tags=no_people`;B()&&(t=`${t}&userId=${this.userId}`);let n=new Request(t,{method:`GET`,mode:`cors`,headers:e});try{let e=await fetch(n);if(!e.ok)throw B()&&console.log(`[DEV] getRandomPhoto failed`,e),Error(`Failed to fetch photo`);return await e.json()}catch(e){console.log(`Fetch error:`,e)}}catch(e){console.log(`getRandomPhoto error`,e)}return null}async getRandomPhotoWithToken(){let e=0;do{e++,B()&&console.log(`[DEV] getRandomPhotoWithToken() attempts`,e);try{let e=await Ma(`photo_token`);e||(e=await this.getNewToken(),await ja(`photo_token`,e));let t=new Headers;t.append(`X-Access-Token`,e);let n=`${this.apiUrl}/photos/random?tags=no_people`;B()&&(n=`${n}&token=${e}`);let r=new Request(n,{method:`GET`,mode:`cors`,headers:t});try{let e=await fetch(r);if(!e.ok){B()&&console.log(`[DEV] getRandomPhoto failed`,e),await ja(`photo_token`,await this.getNewToken());continue}return await e.json()}catch(e){console.log(`Fetch error:`,e)}}catch(e){console.log(`getRandomPhoto error`,e)}}while(e<1);return null}async getNewToken(){let e=`${this.apiUrl}/token`,t=new Request(e,{method:`GET`,mode:`cors`});try{let e=await fetch(t);if(!e.ok)return B()&&console.log(`[DEV] Failed to fetch token`),``;let n=await e.json();return B()&&console.log(`[DEV] new token`,n.token),n.token||``}catch(e){console.log(`Token fetch error:`,e)}return``}};function co(e,t,n=0,r=1,i=`compress,format`){return`${e}?dpr=${r}&auto=${i}&fit=max&w=${t}${n>0?`&h=`+n:``}&q=80&cs=tinysrgb`}function lo(){let e=io[Math.floor(Math.random()*io.length)];return{photo_id:e.photo_id,raw_path:e.raw_path,small_path:e.small_path,full_path:e.full_path,photo_url:e.photo_url,user_fullname:e.user_fullname,user_profile:e.user_profile,user_profile_image:e.user_profile_image,photo_location:e.photo_location,download_tracking_url:``,exif:e.exif,photo_width:e.photo_width,photo_height:e.photo_height,blur_hash:e.blur_hash,created_at:e.created_at}}var uo=Object.assign({
27"../../../extension/src/i18n/quotes/quotes_ar.ts":()=>P(()=>import(`./DU8WdKTr.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_bg.ts":()=>P(()=>import(`./-Ji3KMl6.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_bn.ts":()=>P(()=>import(`./Co3slWB4.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_cs.ts":()=>P(()=>import(`./DBZsA1Dz.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_de.ts":()=>P(()=>import(`./Dal5D-Yc.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_en.ts":()=>P(()=>import(`./DXjoJLsJ.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_es.ts":()=>P(()=>import(`./CEVwsTA4.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_fi.ts":()=>P(()=>import(`./Bc7OqwAx.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_fr.ts":()=>P(()=>import(`./DQwLl_Qe.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_hi.ts":()=>P(()=>import(`./v3ig1WXx.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_it.ts":()=>P(()=>import(`./CdwtgNyA.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_ja.ts":()=>P(()=>import(`./DCQkqmYN.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_jv.ts":()=>P(()=>import(`./ByFFTOyx.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_ko.ts":()=>P(()=>import(`./C0Spjoey.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_ms.ts":()=>P(()=>import(`./CEfQjeGm.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_nl.ts":()=>P(()=>import(`./Nxk_jfyp.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_no.ts":()=>P(()=>import(`./DcwqkqaF.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_pa.ts":()=>P(()=>import(`./CmQgwBio.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_pl.ts":()=>P(()=>import(`./CgAPt6-z.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_pt-BR.ts":()=>P(()=>import(`./IIMTVOTB.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_pt.ts":()=>P(()=>import(`./CXnVfY21.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_ru.ts":()=>P(()=>import(`./CB59FuRp.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_sl.ts":()=>P(()=>import(`./DmxnFBoe.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_sv.ts":()=>P(()=>import(`./CEnjdS61.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_sw.ts":()=>P(()=>import(`./Csf0DHSn.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_ta.ts":()=>P(()=>import(`./CALxl-UZ.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_th.ts":()=>P(()=>import(`./B5nOiZZ3.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_tr.ts":()=>P(()=>import(`./Dwnda4Jn.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_uk.ts":()=>P(()=>import(`./ZTcPMB2v.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_ur.ts":()=>P(()=>import(`./uTtlkpMB.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_vi.ts":()=>P(()=>import(`./BW0zMwbC.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_zh-CN.ts":()=>P(()=>import(`./D1Q7H4PO.js`),[],import.meta.url),
27"../../../extension/src/i18n/quotes/quotes_zh-TW.ts":()=>P(()=>import(`./MbXhLlOV.js`),[],import.meta.url)});function fo(){let{locale:e,tm:t,rt:n}=I(),r=S(!0),i=S(!1),o=S(!1),c=S(``),u=S(new Date),d=b([]),f=b(null),p=S(``),m=S(!1),g=S(!1),_=S(!0),v=S(null),y=C(()=>to(u.value)),x=C(()=>!!f.value&&g.value&&!m.value),w=C(()=>o.value?{quote:c.value,author:``}:no(d.value,u.value)),T=!0,E=0,D,O,k,A=!1;function j(){let e=t(`landing.hero.demo.examples`),r=Array.isArray(e)?e.map(e=>n(e)):[];c.value=ro(r,c.value)}async function M(){let t=++E;d.value=[],j();let n=`../../../extension/src/i18n/quotes/quotes_`,r=uo[`${n}en.ts`];try{let i=await(uo[`${n}${e.value}.ts`]??r)().catch(()=>r());T&&t===E&&(d.value=i.default)}catch{}}function N(e){let t=new URL(e);return t.searchParams.set(`utm_source`,ae),t.searchParams.set(`utm_medium`,`referral`),t.href}function P(e){let t=v.value;if(t&&(t.width=32,t.height=32,e))try{let n=eo(e,32,32),r=t.getContext(`2d`);if(!r)return;let i=r.createImageData(32,32);i.data.set(n),r.putImageData(i,0,0)}catch{}}async function F(e,t=!1){A=t,_.value=!1,f.value=e,m.value=!1,P(e.blur_hash),p.value=``,await a(),T&&(k=setTimeout(()=>void R(),1e4),p.value=t?e.raw_path:co(e.raw_path,1024,576,Math.min(window.devicePixelRatio||1,2)))}async function L(){g.value=!0;try{let e=await Promise.race([new so().getRandomPhoto().catch(()=>null),new Promise(e=>{O=setTimeout(()=>e(null),8e3)})]);if(clearTimeout(O),!T)return;await F(e??lo(),!e)}catch{T&&await F(lo(),!0)}finally{clearTimeout(O)}}function ee(){g.value||L()}function te(){clearTimeout(k),m.value=!0,g.value=!1}function R(){if(clearTimeout(k),!T||A){g.value=!1;return}F(lo(),!0)}return l(e,M),l(i,e=>{e&&(o.value=!1)}),l(o,e=>{e&&(i.value=!1,j())}),s(()=>{M(),L(),D=Ua(()=>{u.value=new Date},500)}),h(()=>{T=!1,clearInterval(D),clearTimeout(O),clearTimeout(k)}),{showClock:r,showQuotes:i,personalMode:o,clock:y,quote:w,photo:f,imageUrl:p,imageLoaded:m,loading:g,initialLoading:_,showPhotoPlaceholder:x,canvas:v,refreshPhoto:ee,onImageLoad:te,onImageError:R,attributionUrl:N}}var po=N(`/images/google-g-logo.png`),mo={class:`hero-demo`},ho={class:`browser-tabs`,"aria-hidden":`true`,dir:`ltr`},go={class:`browser-tab`},_o={class:`browser-tab-title`},vo={class:`browser-toolbar`,dir:`ltr`},yo=[`disabled`,`aria-label`,`title`],bo=[`aria-busy`],xo=[`src`],So={class:`demo-center`},Co={key:0,class:`demo-clock`,dir:`ltr`},wo={key:1,class:`demo-quote`},To={key:0},Eo={key:1,class:`demo-photo-credits`},Do={key:0,class:`demo-location`},Oo={class:`demo-attribution`},ko=[`href`],Ao=[`href`],jo=[`href`],Mo={class:`demo-bottom-actions`,dir:`ltr`},No=[`aria-label`],Po={class:`demo-action-tooltip`,role:`tooltip`},Fo=[`aria-label`],Io={class:`demo-action-tooltip`,role:`tooltip`},Lo=[`aria-label`],Ro={class:`demo-action-tooltip`,role:`tooltip`},zo=[`href`],Bo={class:`demo-features`},Vo={class:`demo-feature`},Ho=[`disabled`],Uo={class:`feature-description`},Wo={class:`demo-feature`},Go={class:`feature-action`},Ko={class:`feature-description`},qo={class:`demo-feature`},Jo={class:`feature-action`},Yo={class:`feature-description`},Xo={class:`demo-feature`},Zo={class:`feature-action personal-toggle`},Qo={class:`feature-description`},$o=Object.assign(z(T({__name:`LandingHeroDemo`,setup(e){let{t:n}=I(),{showClock:a,showQuotes:o,personalMode:s,clock:l,quote:d,photo:p,imageUrl:m,imageLoaded:h,loading:b,initialLoading:S,showPhotoPlaceholder:C,canvas:w,refreshPhoto:T,onImageLoad:D,onImageError:O,attributionUrl:A}=fo(),j=e=>`${n(`landing.hero.demo.${e}`)} ${n(`landing.hero.demo.availableInExtension`)}`;return(e,n)=>{let M=ee,N=u(`i18n-t`);return r(),_(`div`,mo,[f(`div`,{class:t([`demo-browser`,{"demo-browser-hidden":x(S)}])},[f(`div`,ho,[n[9]||=f(`div`,{class:`window-dots`},[f(`i`),f(`i`),f(`i`)],-1),f(`div`,go,[n[7]||=f(`img`,{src:te,alt:``},null,-1),f(`span`,_o,g(e.$t(`landing.hero.demo.newTab`)),1),n[8]||=f(`span`,{class:`browser-tab-close`},`×`,-1)]),n[10]||=f(`span`,{class:`tab-plus`},`+`,-1)]),f(`div`,vo,[n[11]||=f(`span`,{class:`browser-arrows`,"aria-hidden":`true`},`← \xA0 →`,-1),f(`button`,{type:`button`,disabled:x(b),"aria-label":e.$t(`landing.hero.demo.refresh`),title:e.$t(`landing.hero.demo.refresh`),onClick:n[0]||=(...e)=>x(T)&&x(T)(...e)}
27,[E(M,{name:`tabler:reload`,class:t({spinning:x(b)})},null,8,[`class`])],8,yo),n[12]||=f(`div`,{class:`browser-address`,"aria-hidden":`true`},[f(`img`,{src:po,alt:``})],-1),E(M,{name:`tabler:dots-vertical`,"aria-hidden":`true`})]),f(`div`,{class:`demo-screen`,"aria-busy":x(b)},[x(m)?(r(),_(`img`,{key:0,class:t([`demo-photo`,{loaded:x(h)}]),src:x(m),alt:``,fetchpriority:`high`,onLoad:n[1]||=(...e)=>x(D)&&x(D)(...e),onError:n[2]||=(...e)=>x(O)&&x(O)(...e)},null,42,xo)):v(``,!0),f(`canvas`,{ref_key:`canvas`,ref:w,class:t([`demo-placeholder`,{visible:x(C)}]),"aria-hidden":`true`},null,2),n[13]||=f(`div`,{class:`demo-shade`,"aria-hidden":`true`},null,-1),f(`div`,So,[!x(S)&&x(a)?(r(),_(`time`,Co,g(x(l)),1)):v(``,!0),(x(o)||x(s))&&x(d)?.quote?(r(),_(`blockquote`,wo,[f(`p`,null,g(x(d).quote),1),x(d).author?(r(),_(`cite`,To,[f(`span`,null,`— `+g(x(d).author),1)])):v(``,!0)])):v(``,!0)]),x(p)?(r(),_(`div`,Eo,[x(p).photo_location?(r(),_(`p`,Do,g(e.$t(`landing.hero.location_label`))+` `+g(x(p).photo_location),1)):v(``,!0),f(`p`,Oo,[E(N,{keypath:`landing.hero.attribution`,scope:`global`},{photo:i(()=>[f(`a`,{href:x(A)(x(p).photo_url),target:`_blank`,rel:`noopener noreferrer`},g(e.$t(`landing.hero.photo_label`)),9,ko)]),author:i(()=>[f(`a`,{href:x(A)(x(p).user_profile),target:`_blank`,rel:`noopener noreferrer`},g(x(p).user_fullname),9,Ao)]),unsplash:i(()=>[f(`a`,{href:x(A)(`https://unsplash.com/`),target:`_blank`,rel:`noopener noreferrer`},`Unsplash`,8,jo)]),_:1})])])):v(``,!0),f(`div`,Mo,[f(`button`,{type:`button`,class:`demo-extension-action`,"data-demo-action":`lock`,"aria-label":j(`lockTooltip`),"aria-disabled":`true`},[E(M,{name:`tabler:lock-open`,"aria-hidden":`true`}),f(`span`,Po,g(j(`lockTooltip`)),1)],8,No),f(`button`,{type:`button`,class:`demo-extension-action`,"data-demo-action":`settings`,"aria-label":j(`settingsTooltip`),"aria-disabled":`true`},[E(M,{name:`tabler:settings`,"aria-hidden":`true`}),f(`span`,Io,g(j(`settingsTooltip`)),1)],8,Fo),f(`button`,{type:`button`,class:`demo-extension-action`,"data-demo-action":`history`,"aria-label":j(`historyTooltip`),"aria-disabled":`true`},[E(M,{name:`tabler:history`,"aria-hidden":`true`}),f(`span`,Ro,g(j(`historyTooltip`)),1)],8,Lo),f(`a`,{href:x(ie),class:`demo-rate-us`,target:`_blank`,rel:`noopener noreferrer`},[E(M,{name:`tabler:star`,"aria-hidden":`true`}),f(`span`,null,g(e.$t(`landing.hero.demo.rateUs`)),1)],8,zo)])],8,bo)],2),f(`div`,Bo,[f(`div`,Vo,[f(`button`,{type:`button`,class:`feature-action photo-control`,disabled:x(b),onClick:n[3]||=(...e)=>x(T)&&x(T)(...e)},[E(M,{name:`tabler:reload`,class:t([`refresh-icon`,{spinning:x(b)}]),"aria-hidden":`true`},null,8,[`class`]),f(`span`,null,g(e.$t(`landing.hero.demo.refresh`)),1)],8,Ho),f(`p`,Uo,g(e.$t(`landing.features.feature1_description`)),1)]),f(`div`,Wo,[f(`label`,Go,[y(f(`input`,{"onUpdate:modelValue":n[4]||=e=>c(a)?a.value=e:null,type:`checkbox`,role:`switch`,class:`demo-switch`},null,512),[[k,x(a)]]),f(`span`,null,g(e.$t(`landing.hero.demo.showClock`)),1)]),f(`p`,Ko,g(e.$t(`landing.features.feature2_description`)),1)]),f(`div`,qo,[f(`label`,Jo,[y(f(`input`,{"onUpdate:modelValue":n[5]||=e=>c(o)?o.value=e:null,type:`checkbox`,role:`switch`,class:`demo-switch`},null,512),[[k,x(o)]]),f(`span`,null,g(e.$t(`landing.hero.demo.showQuotes`)),1)]),f(`p`,Yo,g(e.$t(`landing.features.feature3_description`)),1)]),f(`div`,Xo,[f(`label`,Zo,[y(f(`input`,{"onUpdate:modelValue":n[6]||=e=>c(s)?s.value=e:null,type:`checkbox`,role:`switch`,class:`demo-switch`},null,512),[[k,x(s)]]),f(`span`,null,g(e.$t(`landing.hero.demo.personalReminder`)),1)]),f(`p`,Qo,g(e.$t(`landing.hero.demo.personalReminderDescription`)),1)])])])}}}),[[`__scopeId`,`data-v-50e45889`]]),{__name:`LandingHeroDemo`}),es=[`dir`],ts={class:`hero-layout`},ns={class:`hero-copy`},rs={class:`hero-header`},is=[`aria-label`],as={class:`hero-nav`},os={href:`#features`},ss={href:`#reviews`},cs=[`href`],ls=Object.assign(z(T({__name:`LandingHero`,setup(e){let{locale:t,setLocale:n}=I(),a=F(),o=C(()=>{let e=R.find(e=>e.code===t.value);return e&&`rtl`in e&&e.rtl?`rtl`:`ltr`}),s=e=>n(e);return(e,n)=>{let c=L,l=Ha,u=A,d=ne,p=$o;return r(),_(`section`,{id:`hero`,class:`landing-hero`,dir:x(o)},[f(`div`,ts,[f(`div`,ns,[f(`header`,rs,[f(`a`,{class:`hero-mark`,href:`#hero`,"aria-label":e.$t(`landing.hero.product_name`)},[...n[0]||=[f(`img`,{src:te,alt:``},null,-1)]],8,is),f(`nav`,as,[f(`a`,os,g(e.$t(`landing.hero.demo.features`)),1),f(`a`,ss,g(e.$t(`landing.hero.demo.reviews`)),1),E(c,{to:x(a)(`/company/about`)},{default:i(()=>[w(g(e.$t(`footer.about`)),1)]),_:1},8,[`to`]),E(c,{to:x(a)(`/company/contact`)},{default:i(()=>[w(g(e.$t(`footer.contact`)),1)]),_:1},8,[`to`])]),E(u,null,{default:i(()=>[E(l,{"show-text":!1,size:`sm`,lang:x(t),onUpdate:s},null,8,[`lang`])]),_:1})]),f(`h1`,null,g(e.$t(`landing.hero.product_name`)),1),f(`p`,null,g(e.$t(`landing.hero.subheading`)),1),f(`a`,{href:x(ie),class:`hero-install hero-install-main`},[E(d),f(`span`,null,g(e.$t(`landing.hero.cta_label`)),1)],8,cs)]),E(u,null,{fallback:i(()=>[...n[1]||=[f(`div`,{class:`hero-demo-placeholder`,"aria-hidden":`true`},null,-1)]]),default:i(()=>[E(p)]),_:1})])],8,es)}}}),[[`__scopeId`,`data-v-f3fdc6a0`]]),{__name:`LandingHero`}),us={},ds={class:`block-intro`},fs={class:`block-intro-content`},ps={class:`block-intro-description`},ms={class:`block-intro-accent`};function hs(e,t){return r(),_(`section`,ds,[f(`div`,fs,[f(`h2`,null,g(e.$t(`landing.block2.intro.heading`)),1),f(`p`,ps,g(e.$t(`landing.block2.intro.description`)),1),f(`p`,ms,g(e.$t(`landing.block2.intro.accent`)),1)])])}var gs=Object.assign(z(us,[[`render`,hs],[`__scopeId`,`data-v-80f06ec3`]]),{__name:`LandingProblem`}),_s=`utm_source=beautifulphotos&utm_medium=referral`,$=(e,t)=>`/images/landing-block2/${e}-${t}.jpg`,vs=e=>`https://unsplash.com/photos/${e}?${_s}`,ys=e=>`https://unsplash.com/@${e}?${_s}`,bs=[{id:`mybaeBtxOj8`,src:$(`mybaeBtxOj8`,600),srcSet:`${$(`mybaeBtxOj8`,600)} 600w, ${$(`mybaeBtxOj8`,1200)} 1200w`,width:1200,height:800,objectPosition:`50% 50%`,altKey:`landing.block2.photos.mybaeBtxOj8`,photographer:`Ahmet Yüksek ✪`,photoUrl:vs(`mybaeBtxOj8`),photographerUrl:ys(`ahmetyuksek`)},{id:`XD5oKCerKCQ`,src:$(`XD5oKCerKCQ`,600),srcSet:`${$(`XD5oKCerKCQ`,600)} 600w, ${$(`XD5oKCerKCQ`,1200)} 1200w`,width:1200,height:800,objectPosition:`50% 50%`,altKey:`landing.block2.photos.XD5oKCerKCQ`,ph
27otographer:`Kristaps Ungurs`,photoUrl:vs(`XD5oKCerKCQ`),photographerUrl:ys(`kristapsungurs`)},{id:`L4VxDFJmaOM`,src:$(`L4VxDFJmaOM`,600),srcSet:`${$(`L4VxDFJmaOM`,600)} 600w, ${$(`L4VxDFJmaOM`,1200)} 1200w`,width:1200,height:800,objectPosition:`50% 50%`,altKey:`landing.block2.photos.L4VxDFJmaOM`,photographer:`Wolfgang Hasselmann`,photoUrl:vs(`L4VxDFJmaOM`),photographerUrl:ys(`wolfgang_hasselmann`)},{id:`9e4pCscLDyY`,src:$(`9e4pCscLDyY`,600),srcSet:`${$(`9e4pCscLDyY`,600)} 600w, ${$(`9e4pCscLDyY`,1200)} 1200w`,width:1200,height:800,objectPosition:`50% 52%`,altKey:`landing.block2.photos.9e4pCscLDyY`,photographer:`Matthias Kinsella`,photoUrl:vs(`9e4pCscLDyY`),photographerUrl:ys(`matthiaskinsella`)},{id:`9Fa_wOPkS7c`,src:$(`9Fa_wOPkS7c`,600),srcSet:`${$(`9Fa_wOPkS7c`,600)} 600w, ${$(`9Fa_wOPkS7c`,1200)} 1200w`,width:1200,height:800,objectPosition:`48% 48%`,altKey:`landing.block2.photos.9Fa_wOPkS7c`,photographer:`Christoph Nolte`,photoUrl:vs(`9Fa_wOPkS7c`),photographerUrl:ys(`pic_nolte`)},{id:`x8Oro9-tG64`,src:$(`x8Oro9
27-tG64`,600),srcSet:`${$(`x8Oro9-tG64`,600)} 600w, ${$(`x8Oro9-tG64`,1200)} 1200w`,width:1200,height:800,objectPosition:`50% 54%`,altKey:`landing.block2.photos.x8Oro9-tG64`,photographer:`Kristaps Ungurs`,photoUrl:vs(`x8Oro9-tG64`),photographerUrl:ys(`kristapsungurs`)},{id:`2WpkG7DzBRI`,src:$(`2WpkG7DzBRI`,600),srcSet:`${$(`2WpkG7DzBRI`,600)} 600w, ${$(`2WpkG7DzBRI`,1200)} 1200w`,width:1200,height:800,objectPosition:`50% 50%`,altKey:`landing.block2.photos.2WpkG7DzBRI`,photographer:`BENCE BOROS`,photoUrl:vs(`2WpkG7DzBRI`),photographerUrl:ys(`benceboros`)},{id:`JNLm2EV8Yls`,src:$(`JNLm2EV8Yls`,600),srcSet:`${$(`JNLm2EV8Yls`,600)} 600w, ${$(`JNLm2EV8Yls`,1200)} 1200w`,width:1200,height:800,objectPosition:`50% 54%`,altKey:`landing.block2.photos.JNLm2EV8Yls`,photographer:`Slava Auchynnikau`,photoUrl:vs(`JNLm2EV8Yls`),photographerUrl:ys(`auchynnikau`)}],xs=[`data-carousel-duplicate`,`aria-hidden`,`inert`],Ss=[`aria-label`],Cs=[`src`,`srcset`,`width`,`height`,`alt`,`onError`],ws={class:`photo-credit`},Ts=[`href`,`tabindex`],Es=[`href`,`tabindex`],Ds=.035,Os=Object.assign(z(T({__name:`LandingPhotoCarousel`,setup(e){let{t}=I({useScope:`global`}),n=S(),i=S(),c=S(),l=S(!1),u=S(!1),d=S(!0),p=S(!1),v=S(!1),y=S(!1),b=S(0),w=S(new Set),T=[...bs,...bs],E=0,O=0,k=0,A,j,M,N,P=C(()=>!l.value&&!u.value&&d.value&&!p.value&&!v.value&&!y.value);function F(e){w.value=new Set([...w.value,e])}function L(){let e=c.value?.querySelectorAll(`.photo-card`);if(!e||e.length<bs.length*2)return;let t=e[bs.length].offsetLeft-e[0].offsetLeft;t>0&&(b.value=t)}function ee(){requestAnimationFrame(()=>{u.value=!!n.value?.contains(document.activeElement),!u.value&&i.value&&(E=i.value.scrollLeft)})}function te(){l.value=!1,i.value&&(E=i.value.scrollLeft)}function R(){if(i.value){let e=i.value.scrollLeft;Math.abs(e-E)>2&&(E=e)}}function z(e){let t=k?Math.min(e-k,64):0;k=e;let n=i.value;n&&P.value&&b.value>0&&(E+=t*Ds,E>=b.value&&(E-=b.value),n.scrollLeft=E),O=requestAnimationFrame(z)}function ne(){p.value=document.hidden,!document.hidden&&i.value&&(E=i.value.scrollLeft)}function B(){v.value=M?.matches??!1,!v.value&&i.value&&(E=i.value.scrollLeft)}function re(){y.value=N?.matches??!1}return s(async()=>{M=window.matchMedia(`(max-width: 600px)`),N=window.matchMedia(`(prefers-reduced-motion: reduce)`),B(),re(),ne(),M.addEventListener(`change`,B),N.addEventListener(`change`,re),document.addEventListener(`visibilitychange`,ne),await a(),L(),i.value&&(E=i.value.scrollLeft),A=new ResizeObserver(L),c.value&&A.observe(c.value),j=new IntersectionObserver(([e])=>{d.value=e.isIntersecting,e.isIntersecting&&i.value&&(E=i.value.scrollLeft)},{threshold:0}),n.value&&j.observe(n.value),O=requestAnimationFrame(z)}),h(()=>{cancelAnimationFrame(O),A?.disconnect(),j?.disconnect(),M?.removeEventListener(`change`,B),N?.removeEventListener(`change`,re),document.removeEventListener(`visibilitychange`,ne)}),(e,a)=>(r(),_(`section`,{ref_key:`carousel`,ref:n,class:`block-carousel`,onFocusin:a[1]||=e=>u.value=!0,onFocusout:ee},[f(`div`,{ref_key:`viewport`,ref:i,class:`block-carousel-viewport`,onMouseenter:a[0]||=e=>l.value=!0,onMouseleave:te,onScrollPassive:R},[f(`div`,{ref_key:`track`,ref:c,class:`photo-track`},[(r(),_(m,null,D(T,(n,i)=>f(`article`,{key:`${n.id}-${i}`,class:`photo-card`,"data-carousel-duplicate":i>=x(bs).length?`true`:void 0,"aria-hidden":i>=x(bs).length?`true`:void 0,inert:i>=x(bs).length?``:void 0},[x(w).has(n.id)?(r(),_(`div`,{key:0,class:`photo-fallback`,role:`img`,"aria-label":x(t)(n.altKey)},[f(`span`,null,g(x(t)(`landing.block2.carousel.unavailable`)),1)],8,Ss)):(r(),_(`img`,{key:1,src:n.src,srcset:n.srcSet,sizes:`(max-width: 600px) 85vw, 400px`,width:n.width,height:n.height,alt:x(t)(n.altKey),style:o({objectPosition:n.objectPosition}),loading:`lazy`,decoding:`async`,onError:e=>F(n.id)},null,44,Cs)),a[3]||=f(`div`,{class:`photo-shade`,"aria-hidden":`true`},null,-1),f(`p`,ws,[f(`a`,{href:n.photoUrl,target:`_blank`,rel:`noopener noreferrer`,tabindex:i>=x(bs).length?-1:void 0},g(e.$t(`landing.hero.photo_label`)),9,Ts),a[2]||=f(`span`,{"aria-hidden":`true`},` · `,-1),f(`a`,{href:n.photographerUrl,target:`_blank`,rel:`noopener noreferrer`,tabindex:i>=x(bs).length?-1:void 0}
27,g(n.photographer),9,Es)])],8,xs)),64))],512)],544)],544))}}),[[`__scopeId`,`data-v-83005273`]]),{__name:`LandingPhotoCarousel`}),ks={class:`block-features`},As={class:`block-features-content`},js={class:`block-features-heading`},Ms={class:`feature-grid`},Ns={key:0,class:`feature-example feature-clock`,dir:`ltr`},Ps={key:1,class:`feature-example feature-quote`},Fs={class:`feature-quote-text`},Is={key:0,class:`feature-quote-author`},Ls={key:2,class:`feature-example feature-reminder`},Rs={class:`feature-copy`},zs=Object.assign(z(T({__name:`LandingFeatures`,setup(e){let t=Object.assign({
27"../../../../extension/src/i18n/quotes/quotes_ar.ts":()=>P(()=>import(`./DU8WdKTr.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_bg.ts":()=>P(()=>import(`./-Ji3KMl6.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_bn.ts":()=>P(()=>import(`./Co3slWB4.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_cs.ts":()=>P(()=>import(`./DBZsA1Dz.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_de.ts":()=>P(()=>import(`./Dal5D-Yc.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_en.ts":()=>P(()=>import(`./DXjoJLsJ.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_es.ts":()=>P(()=>import(`./CEVwsTA4.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_fi.ts":()=>P(()=>import(`./Bc7OqwAx.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_fr.ts":()=>P(()=>import(`./DQwLl_Qe.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_hi.ts":()=>P(()=>import(`./v3ig1WXx.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_it.ts":()=>P(()=>import(`./CdwtgNyA.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_ja.ts":()=>P(()=>import(`./DCQkqmYN.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_jv.ts":()=>P(()=>import(`./ByFFTOyx.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_ko.ts":()=>P(()=>import(`./C0Spjoey.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_ms.ts":()=>P(()=>import(`./CEfQjeGm.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_nl.ts":()=>P(()=>import(`./Nxk_jfyp.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_no.ts":()=>P(()=>import(`./DcwqkqaF.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_pa.ts":()=>P(()=>import(`./CmQgwBio.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_pl.ts":()=>P(()=>import(`./CgAPt6-z.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_pt-BR.ts":()=>P(()=>import(`./IIMTVOTB.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_pt.ts":()=>P(()=>import(`./CXnVfY21.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_ru.ts":()=>P(()=>import(`./CB59FuRp.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_sl.ts":()=>P(()=>import(`./DmxnFBoe.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_sv.ts":()=>P(()=>import(`./CEnjdS61.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_sw.ts":()=>P(()=>import(`./Csf0DHSn.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_ta.ts":()=>P(()=>import(`./CALxl-UZ.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_th.ts":()=>P(()=>import(`./B5nOiZZ3.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_tr.ts":()=>P(()=>import(`./Dwnda4Jn.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_uk.ts":()=>P(()=>import(`./ZTcPMB2v.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_ur.ts":()=>P(()=>import(`./uTtlkpMB.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_vi.ts":()=>P(()=>import(`./BW0zMwbC.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_zh-CN.ts":()=>P(()=>import(`./D1Q7H4PO.js`),[],import.meta.url),
27"../../../../extension/src/i18n/quotes/quotes_zh-TW.ts":()=>P(()=>import(`./MbXhLlOV.js`),[],import.meta.url)
27}),{locale:n,t:a}=I(),c=b([]),d=b(null),p=0;function h(e){if(!e.length)return null;let t=e.filter(e=>e.quote&&e.quote.length<=120),n=t.length?t:e;return n[Math.floor(Math.random()*n.length)]??null}async function y(){let e=++p,r=`../../../../extension/src/i18n/quotes/quotes_`,i=t[`${r}en.ts`];try{let a=await(t[`${r}${n.value}.ts`]??i)().catch(()=>i());e===p&&(c.value=a.default,d.value=h(a.default))}catch{}}let S=C(()=>d.value?d.value:{quote:a(`landing.block2.cards.quotes.example`),author:``});l(n,y),s(()=>{y()});let w=[{kind:`clock`,image:`/images/landing-block2/L4VxDFJmaOM-600.jpg`,titleKey:`landing.block2.cards.clock.title`,descriptionKey:`landing.block2.cards.clock.description`,exampleKey:`landing.block2.cards.clock.example`},{kind:`quotes`,image:`/images/landing-block2/JNLm2EV8Yls-600.jpg`,titleKey:`landing.block2.cards.quotes.title`,descriptionKey:`landing.block2.cards.quotes.description`,exampleKey:`landing.block2.cards.quotes.example`},{kind:`reminder`,image:`/images/landing-block2/mybaeBtxOj8-600.jpg`,titleKey:`landing.block2.cards.reminder.title`,descriptionKey:`landing.block2.cards.reminder.description`,exampleKey:`landing.block2.cards.reminder.example`}];return(e,t)=>{let n=u(`i18n-t`);return r(),_(`section`,ks,[f(`div`,As,[f(`header`,js,[f(`h2`,null,[E(n,{keypath:`landing.block2.features.heading`,scope:`global`},{beautiful_view:i(()=>[f(`span`,null,g(e.$t(`landing.block2.features.beautiful_view`)),1)]),_:1})])]),f(`div`,Ms,[(r(),_(m,null,D(w,t=>f(`article`,{key:t.titleKey,class:`feature-item`},[f(`div`,{class:`feature-card`,style:o({"--feature-image":`url(${t.image})`})},[t.kind===`clock`?(r(),_(`time`,Ns,g(e.$t(t.exampleKey)),1)):t.kind===`quotes`?(r(),_(`blockquote`,Ps,[f(`p`,Fs,`“`+g(x(S).quote)+`”`,1),x(S).author?(r(),_(`cite`,Is,`— `+g(x(S).author),1)):v(``,!0)])):(r(),_(`p`,Ls,g(e.$t(t.exampleKey)),1))],4),f(`div`,Rs,[f(`h3`,null,g(e.$t(t.titleKey)),1),f(`p`,null,g(e.$t(t.descriptionKey)),1)])])),64))])])])}}}),[[`__scopeId`,`data-v-340b540f`]]),{__name:`LandingFeatures`}),Bs=[`dir`],Vs={class:`landing-block3-content`},Hs={class:`block3-header`},Us={class:`heading-frame`},Ws={class:`accent-phrase`},Gs={class:`accent-text`},Ks={class:`reviews-grid`},qs={class:`rating-row`},Js={class:`sr-only`},Ys={class:`stars-list`,"aria-hidden":`true`},Xs={class:`review-quote`},Zs={class:`quote-text`},Qs={key:0,class:`translation-note`},$s={class:`author-row`},ec=[`src`,`alt`],tc={class:`author-meta`},nc={class:`author-name`},rc={class:`author-role`},ic=Object.assign(z(T({__name:`LandingSocialProof`,props:{dir:{}},setup(n){let a=n,{locale:o}=I({useScope:`global`}),s=[{name:`Terje Skuggen`,avatar:`/images/testimonials/user1.jpg`,quoteKey:`landing.social.user1_testimonial`},{name:`Felix Yuan`,avatar:`/images/testimonials/user2.jpg`,quoteKey:`landing.social.user2_testimonial`},{name:`Jeffrey Synk`,avatar:`/images/testimonials/user3.jpg`,quoteKey:`landing.social.user3_testimonial`}];return(n,c)=>{let l=u(`i18n-t`),p=e;return r(),_(`section`,{class:`landing-block3`,dir:a.dir},[c[5]||=d(`<div class="paper-grain" aria-hidden="true" data-v-7603c726></div><div class="sparkle sparkle-left" aria-hidden="true" data-v-7603c726><svg viewBox="0 0 24 24" width="22" height="22" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-7603c726><path d="M12 0C12 6.627 6.627 12 0 12C6.627 12 12 17.373 12 24C12 17.373 17.373 12 24 12C17.373 12 12 6.627 12 0Z" fill="#C8944A" data-v-7603c726></path></svg><span class="sparkle-dot sparkle-dot-sm" data-v-7603c726></span></div><div class="sparkle sparkle-right" aria-hidden="true" data-v-7603c726><svg viewBox="0 0 24 24" width="16" height="16" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-7603c726><path d="M12 0C12 6.627 6.627 12 0 12C6.627 12 12 17.373 12 24C12 17.373 17.373 12 24 12C17.373 12 12 6.627 12 0Z" fill="#C8944A" data-v-7603c726></path></svg><span class="sparkle-dot sparkle-dot-xs" data-v-7603c726></span></div><div class="sparkle sparkle-bottom-right" aria-hidden="true" data-v-7603c726><svg viewBox="0 0 24 24" width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-7603c726><path d="M12 0C12 6.627 6.627 12 0 12C6.627 12 12 17.373 12 24C12 17.373 17.373 12 24 12C17.373 12 12 6.627 12 0Z" fill="#C8944A" data-v-7603c726></path></svg><span class="sparkle-dot sparkle-dot-sm" data-v-7603c726></span></div>`,4),f(`div`,Vs,[f(`header`,Hs,[f(`div`,Us,[c[1]||=f(`span`,{class:`corner-bracket corner-tl`,"aria-hidden":`true`},null,-1),c[2]||=f(`span`,{class:`corner-bracket corner-tr`,"aria-hidden":`true`},null,-1),c[3]||=f(`span`,{class:`corner-bracket corner-bl`,"aria-hidden":`true`},null,-1),c[4]||=f(`span`,{class:`corner-bracket corner-br`,"aria-hidden":`true`},null,-1),f(`h2`,null,[E(l,{keypath:`landing.social.heading`,scope:`global`},{inspired_people:i(()=>[f(`span`,Ws,[f(`span`,Gs,g(n.$t(`landing.social.inspired_people`)),1),c[0]||=f(`svg`,{class:`accent-underline`,viewBox:`0 0 260 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,preserveAspectRatio:`none`,"aria-hidden":`true`},[f(`path`,{d:`M3 11.5C65 5 185 4.2 257 9.8C195 6.5 85 7.5 3 13`,stroke:`#E26D5C`,"stroke-width":`4.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1)])]),_:1})])])]),f(`div`,Ks,[(r(),_(m,null,D(s,(e,i)=>f(`article`,{key:e.name,class:t([`review-card`,{"card-elevated":i===1}])},[f(`div`,qs,[f(`span`,Js,g(n.$t(`landing.social.rating_accessible`)),1),f(`div`,Ys,[(r(),_(m,null,D(5,e=>E(p,{key:e,name:`tabler:star-filled`,class:`star-icon`})),64))])]),f(`blockquote`,Xs,[f(`p`,Zs,g(n.$t(e.quoteKey)),1),x(o)===`en`?v(``,!0):(r(),_(`p`,Qs,g(n.$t(`landing.social.translation_note`)),1
27))]),f(`footer`,$s,[f(`img`,{src:e.avatar,alt:e.name,width:`44`,height:`44`,class:`author-avatar`,loading:`lazy`,decoding:`async`},null,8,ec),f(`div`,tc,[f(`div`,nc,g(e.name),1),f(`div`,rc,g(n.$t(`landing.social.early_user`)),1)])])],2)),64))])])],8,Bs)}}}),[[`__scopeId`,`data-v-7603c726`]]),{__name:`LandingSocialProof`}),ac=[`dir`],oc={class:`landing-seo-container`},sc={class:`prose prose-lg max-w-none`},cc=Object.assign(z(T({__name:`LandingSeoContent`,props:{dir:{}},setup(e){let t=e,{locale:n}=I({useScope:`global`}),{data:i,refresh:a}=j(()=>`landing-seo-content-${n.value}`,()=>se(`landing_seo`).path(`/landing-seo/${n.value}`).first(),`$XBLrjAKMxF`);return l(n,()=>{a()}),(e,n)=>{let a=oe;return r(),_(`section`,{class:`landing-seo-block`,dir:t.dir},[n[1]||=f(`div`,{class:`paper-grain`,"aria-hidden":`true`},null,-1),f(`div`,oc,[n[0]||=f(`div`,{class:`article-separator`,"aria-hidden":`true`},null,-1),f(`article`,sc,[x(i)?(r(),p(a,{key:0,value:x(i)},null,8,[`value`])):v(``,!0)])])],8,ac)}}}),[[`__scopeId`,`data-v-39b32ba3`]]),{__name:`LandingSeoContent`}),lc={class:`min-h-screen`},uc=[`dir`],dc=z(T({__name:`index`,setup(e){let{locale:t}=I(),n=C(()=>{let e=R.find(e=>e.code===t.value);return e&&`rtl`in e&&e.rtl?`rtl`:`ltr`});return(e,t)=>{let i=ls,a=gs,o=Os,s=zs,c=ic,l=cc;return r(),_(`main`,lc,[E(i),f(`div`,{class:`landing-block2`,dir:x(n)},[E(a),E(o),E(s,{id:`features`})],8,uc),E(c,{id:`reviews`,dir:x(n)},null,8,[`dir`]),E(l,{dir:x(n)},null,8,[`dir`])])}}}),[[`__scopeId`,`data-v-af72e726`]]);export{ke as C,ye as D,ve as E,pe as O,Oe as S,we as T,Pn as _,fr as a,Cn as b,tr as c,Zn as d,dc as default,Wn as f,Nn as g,zn as h,dr as i,me as k,nr as l,Rn as m,Ea as n,or as o,Gn as p,Da as r,sr as s,Oa as t,Xn as u,On as v,Ce as w,wn as x,kn as y};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.