1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 06:02:39 +01:00
invoiceninja/public/build/assets/app-01291e40.js

110 lines
163 KiB
JavaScript
Raw Normal View History

2024-01-14 02:00:51 +01:00
import{A as ll}from"./index-08e160a7.js";import{c as Ut,g as ul}from"./_commonjsHelpers-725317a4.js";var cl={visa:{niceType:"Visa",type:"visa",patterns:[4],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},mastercard:{niceType:"Mastercard",type:"mastercard",patterns:[[51,55],[2221,2229],[223,229],[23,26],[270,271],2720],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},"american-express":{niceType:"American Express",type:"american-express",patterns:[34,37],gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},"diners-club":{niceType:"Diners Club",type:"diners-club",patterns:[[300,305],36,38,39],gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},discover:{niceType:"Discover",type:"discover",patterns:[6011,[644,649],65],gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},jcb:{niceType:"JCB",type:"jcb",patterns:[2131,1800,[3528,3589]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",size:3}},unionpay:{niceType:"UnionPay",type:"unionpay",patterns:[620,[624,626],[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[622019,622999],[62207,62209],[622126,622925],[623,626],6270,6272,6276,[627700,627779],[627781,627799],[6282,6289],6291,6292,810,[8110,8131],[8132,8151],[8152,8163],[8164,8171]],gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",size:3}},maestro:{niceType:"Maestro",type:"maestro",patterns:[493698,[5e5,504174],[504176,506698],[506779,508999],[56,59],63,67,6],gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},elo:{niceType:"Elo",type:"elo",patterns:[401178,401179,438935,457631,457632,431274,451416,457393,504175,[506699,506778],[509e3,509999],627780,636297,636368,[650031,650033],[650035,650051],[650405,650439],[650485,650538],[650541,650598],[650700,650718],[650720,650727],[650901,650978],[651652,651679],[655e3,655019],[655021,655058]],gaps:[4,8,12],lengths:[16],code:{name:"CVE",size:3}},mir:{niceType:"Mir",type:"mir",patterns:[[2200,2204]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVP2",size:3}},hiper:{niceType:"Hiper",type:"hiper",patterns:[637095,63737423,63743358,637568,637599,637609,637612],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},hipercard:{niceType:"Hipercard",type:"hipercard",patterns:[606282],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}}},fl=cl,Qn={},mn={};Object.defineProperty(mn,"__esModule",{value:!0});mn.clone=void 0;function dl(e){return e?JSON.parse(JSON.stringify(e)):null}mn.clone=dl;var Zn={};Object.defineProperty(Zn,"__esModule",{value:!0});Zn.matches=void 0;function pl(e,r,n){var a=String(r).length,s=e.substr(0,a),u=parseInt(s,10);return r=parseInt(String(r).substr(0,s.length),10),n=parseInt(String(n).substr(0,s.length),10),u>=r&&u<=n}function hl(e,r){return r=String(r),r.substring(0,e.length)===e.substring(0,r.length)}function gl(e,r){return Array.isArray(r)?pl(e,r[0],r[1]):hl(e,r)}Zn.matches=gl;Object.defineProperty(Qn,"__esModule",{value:!0});Qn.addMatchingCardsToResults=void 0;var ml=mn,vl=Zn;function yl(e,r,n){var a,s;for(a=0;a<r.patterns.length;a++){var u=r.patterns[a];if(vl.matches(e,u)){var b=ml.clone(r);Array.isArray(u)?s=String(u[0]).length:s=String(u).length,e.length>=s&&(b.matchStrength=s),n.push(b);break}}}Qn.addMatchingCardsToResults=yl;var ei={};Object.defineProperty(ei,"__esModule",{value:!0});ei.isValidInputType=void 0;function bl(e){return typeof e=="string"||e instanceof String}ei.isValidInputType=bl;var ti={};Object.defineProperty(ti,"__esModule",{value:!0});ti.findBestMatch=void 0;function _l(e){var r=e.filter(function(n){return n.matchStrength}).length;return r>0&&r===e.length}function wl(e){return _l(e)?e.reduce(function(r,n){return!r||Number(r.matchStrength)<Number(n.matchStrength)?n:r}):null}ti.findBestMatch=wl;var Gn=Ut&&Ut.__assign||function(){return Gn=Object.assign||function(e){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},Gn.apply(this,arguments)},So=fl,xl=Qn,Sl=ei,El=ti,vn=mn,gn={},Tt={VISA:"visa",MASTERCARD:"mastercard",AMERICAN_EXPRESS:"american-express",DINERS_CLUB:"diners-
`)}var k="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Q=i(k),Ie=i(k+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),Ze=/[>/="'\u0009\u000a\u000c\u0020]/,$e={};function Ke(y){if($e.hasOwnProperty(y))return $e[y];const K=Ze.test(y);return K&&console.error(`unsafe attribute name: ${y}`),$e[y]=!K}var At={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},$t=i("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width"),Se=i("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap");function He(y){if(Rt(y)){const K={};for(let Z=0;Z<y.length;Z++){const ue=y[Z],Ue=He(cr(ue)?vt(ue):ue);if(Ue)for(const rt in Ue)K[rt]=Ue[rt]}return K}else if(Bt(y))return y}var Le=/;(?![^(]*\))/g,qe=/:(.+)/;function vt(y){const K={};return y.split(Le).forEach(Z=>{if(Z){const ue=Z.split(qe);ue.length>1&&(K[ue[0].trim()]=ue[1].trim())}}),K}function Pt(y){let K="";if(!y)return K;for(const Z in y){const ue=y[Z],Ue=Z.startsWith("--")?Z:qn(Z);(cr(ue)||typeof ue=="number"&&$t(Ue))&&(K+=`${Ue}:${ue};`)}return K}function Ft(y){let K="";if(cr(y))K=y;else if(Rt(y))for(let Z=0;Z<y.length;Z++){const ue=Ft(y[Z]);ue&&(K+=ue+" ")}else if(Bt(y))for(const Z in y)y[Z]&&(K+=Z+" ");return K.trim()}var wr="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",en="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",tn="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",xr=i(wr
${o?'Expression: "'+o+`"
`:""}`,i),setTimeout(()=>{throw t},0)}var h=!0;function w(t){let i=h;h=!1;let o=t();return h=i,o}function S(t,i,o={}){let c;return A(t,i)(p=>c=p,o),c}function A(...t){return $(...t)}var $=G;function B(t){$=t}function G(t,i){let o={};br(o,t);let c=[o,...qt(t)],p=typeof i=="function"?ae(c,i):Ne(c,i,t);return vi.bind(null,t,i,p)}function ae(t,i){return(o=()=>{},{scope:c={},params:p=[]}={})=>{let d=i.apply(Xt([c,...t]),p);je(o,d)}}var oe={};function Me(t,i){if(oe[t])return oe[t];let o=Object.getPrototypeOf(async function(){}).constructor,c=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(async()=>{ ${t} })()`:t,d=(()=>{try{let g=new o(["__self","scope"],`with (scope) { __self.result = ${c} }; __self.finished = true; return __self.result;`);return Object.defineProperty(g,"name",{value:`[Alpine] ${t}`}),g}catch(g){return f(g,i,t),Promise.resolve()}})();return oe[t]=d,d}function Ne(t,i,o){let c=Me(i,o);return(p=()=>{},{scope:d={},params:g=[]}={})=>{c.result=void 0,c.finished=!1;let x=Xt([d,...t]);if(typeof c=="function"){let k=c(c,x).catch(Q=>f(Q,o,i));c.finished?(je(p,c.result,x,g,o),c.result=void 0):k.then(Q=>{je(p,Q,x,g,o)}).catch(Q=>f(Q,o,i)).finally(()=>c.result=void 0)}}}function je(t,i,o,c,p){if(h&&typeof i=="function"){let d=i.apply(o,c);d instanceof Promise?d.then(g=>je(t,g,o,c)).catch(g=>f(g,p,i)):t(d)}else typeof i=="object"&&i instanceof Promise?i.then(d=>t(d)):t(i)}var xe="x-";function Ae(t=""){return xe+t}function De(t){xe=t}var Qe={};function ye(t,i){return Qe[t]=i,{before(o){if(!Qe[o]){console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");return}const c=sr.indexOf(o);sr.splice(c>=0?c:sr.indexOf("DEFAULT"),0,t)}}}function tt(t,i,o){if(i=Array.from(i),t._x_virtualDirectives){let d=Object.entries(t._x_virtualDirectives).map(([x,k])=>({name:x,value:k})),g=ut(d);d=d.map(x=>g.find(k=>k.name===x.name)?{name:`x-bind:${x.name}`,value:`"${x.value}"`}:x),i=i.concat(d)}let c={};return i.map(Dt((d,g)=>c[d]=g)).filter(Wt).map(or(c,o)).sort(os).map(d=>En(t,d))}function ut(t){return Array.from(t).map(Dt()).filter(i=>!Wt(i))}var St=!1,ot=new Map,It=Symbol();function _r(t){St=!0;let i=Symbol();It=i,ot.set(i,[]);let o=()=>{for(;ot.get(i).length;)ot.get(i).shift()();ot.delete(i)},c=()=>{St=!1,o()};t(o),c()}function Qt(t){let i=[],o=x=>i.push(x),[c,p]=xt(t);return i.push(p),[{Alpine:Zr,effect:c,cleanup:o,evaluateLater:A.bind(A,t),evaluate:S.bind(S,t)},()=>i.forEach(x=>x())]}function En(t,i){let o=()=>{},c=Qe[i.type]||o,[p,d]=Qt(t);he(t,i.original,d);let g=()=>{t._x_ignore||t._x_ignoreSelf||(c.inline&&c.inline(t,i,p),c=c.bind(c,t,i,p),St?ot.get(It).push(c):c())};return g.runCleanups=d,g}var Kr=(t,i)=>({name:o,value:c})=>(o.startsWith(t)&&(o=o.replace(t,i)),{name:o,value:c}),Jr=t=>t;function Dt(t=()=>{}){return({name:i,value:o})=>{let{name:c,value:p}=Gr.reduce((d,g)=>g(d),{name:i,value:o});return c!==i&&t(c,i),{name:c,value:p}}}var Gr=[];function zt(t){Gr.push(t)}function Wt({name:t}){return Kt().test(t)}var Kt=()=>new RegExp(`^${xe}([^:^.]+)\\b`);function or(t,i){return({name:o,value:c})=>{let p=o.match(Kt()),d=o.match(/:([a-zA-Z0-9\-_:]+)/),g=o.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],x=i||t[o]||o;return{type:p?p[1]:null,value:d?d[1]:null,modifiers:g.map(k=>k.replace(".","")),expression:c,original:x}}}var Yr="DEFAULT",sr=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",Yr,"teleport"];function os(t,i){let o=sr.indexOf(t.type)===-1?Yr:t.type,c=sr.indexOf(i.type)===-1?Yr:i.type;return sr.indexOf(o)-sr.indexOf(c)}var yi=[],bi=!1;function _i(t=()=>{}){return queueMicrotask(()=>{bi||setTimeout(()=>{wi()})}),new Promise(i=>{yi.push(()=>{t(),i()})})}function wi(){for(bi=!1;yi.length;)yi.shift()()}function ss(){bi=!0}function xi(t,i){return Array.isArray(i)?va(t,i.join(" ")):typeof i=="object"&&i!==null?ls(t,i):typeof i=="function"?xi(t,i()):va(t,i)}function va(t,i){let o=p=>p.split(" ").filter(d=>!t.classList.contains(d)).filter(Boolean),c=p=>(t.classList.add(...p),()=>{t.classList.remove(...p)});return i=i===!0?i="":i||""
Would you like to refresh the page?`)&&window.location.reload()}function Du(e){Io(e)}var Fo=Je(ft()),fa={},Bo;function dt(e,r,n=null){fa[e]=r}function $u(e){Bo=e}var Xa={on:"$on",el:"$el",id:"$id",get:"$get",set:"$set",call:"$call",commit:"$commit",watch:"$watch",entangle:"$entangle",dispatch:"$dispatch",dispatchTo:"$dispatchTo",dispatchSelf:"$dispatchSelf",upload:"$upload",uploadMultiple:"$uploadMultiple",removeUpload:"$removeUpload"};function Fu(e,r){return new Proxy({},{get(n,a){if(a==="__instance")return e;if(a in Xa)return Qa(e,Xa[a]);if(a in fa)return Qa(e,a);if(a in r)return r[a];if(!["then"].includes(a))return Bu(e)(a)},set(n,a,s){return a in r&&(r[a]=s),!0}})}function Qa(e,r){return fa[r](e)}function Bu(e){return Bo(e)}Fo.default.magic("wire",(e,{cleanup:r})=>{let n;return new Proxy({},{get(a,s){return n||(n=rr(e)),["$entangle","entangle"].includes(s)?jo(n,r):n.$wire[s]},set(a,s,u){return n||(n=rr(e)),n.$wire[s]=u,!0}})});dt("__instance",e=>e);dt("$get",e=>(r,n=!0)=>Jt(n?e.reactive:e.ephemeral,r));dt("$el",e=>e.el);dt("$id",e=>e.id);dt("$set",e=>async(r,n,a=!0)=>(ui(e.reactive,r,n),a?await $o(e):Promise.resolve()));dt("$call",e=>async(r,...n)=>await e.$wire[r](...n));dt("$entangle",e=>(r,n=!1)=>jo(e)(r,n));dt("$toggle",e=>(r,n=!0)=>e.$wire.set(r,!e.$wire.get(r),n));dt("$watch",e=>(r,n)=>{let a=!0,s;Fo.default.effect(()=>{let u=Jt(e.reactive,r);JSON.stringify(u),a?s=u:queueMicrotask(()=>{n(u,s),s=u}),a=!1})});dt("$refresh",e=>e.$wire.$commit);dt("$commit",e=>async()=>await $o(e));dt("$on",e=>(...r)=>Xu(e,...r));dt("$dispatch",e=>(...r)=>Uo(e,...r));dt("$dispatchSelf",e=>(...r)=>Br(e,...r));dt("$dispatchTo",e=>(...r)=>da(...r));dt("$upload",e=>(...r)=>Au(e,...r));dt("$uploadMultiple",e=>(...r)=>Tu(e,...r));dt("$removeUpload",e=>(...r)=>Pu(e,...r));var Ji=new WeakMap;dt("$parent",e=>{if(Ji.has(e))return Ji.get(e).$wire;let r=rr(e.el.parentElement);return Ji.set(e,r),r.$wire});var Fr=new WeakMap;function Hu(e,r,n){Fr.has(e)||Fr.set(e,{});let a=Fr.get(e);a[r]=n,Fr.set(e,a)}$u(e=>r=>async(...n)=>{if(n.length===1&&n[0]instanceof Event&&(n=[]),Fr.has(e)){let a=Fr.get(e);if(typeof a[r]=="function")return a[r](n)}return await Lu(e,r,n)});var Uu=class{constructor(e){if(e.__livewire)throw"Component already initialized";if(e.__livewire=this,this.el=e,this.id=e.getAttribute("wire:id"),this.__livewireId=this.id,this.snapshotEncoded=e.getAttribute("wire:snapshot"),this.snapshot=JSON.parse(this.snapshotEncoded),!this.snapshot)throw"Snapshot missing on Livewire component with id: "+this.id;this.name=this.snapshot.memo.name,this.effects=JSON.parse(e.getAttribute("wire:effects")),this.originalEffects=gr(this.effects),this.canonical=$r(gr(this.snapshot.data)),this.ephemeral=$r(gr(this.snapshot.data)),this.reactive=Alpine.reactive(this.ephemeral),this.$wire=Fu(this,this.reactive),this.cleanups=[],this.processEffects(this.effects)}mergeNewSnapshot(e,r,n={}){let a=JSON.parse(e),s=gr(this.canonical),u=this.applyUpdates(s,n),b=$r(gr(a.data)),m=ca(u,b);this.snapshotEncoded=e,this.snapshot=a,this.effects=r,this.canonical=$r(gr(a.data));let I=$r(gr(a.data));return Object.entries(m).forEach(([U,se])=>{let V=U.split(".")[0];this.reactive[V]=I[V]}),m}applyUpdates(e,r){for(let n in r)ui(e,n,r[n]);return e}replayUpdate(e,r){let n={...this.effects,html:r};this.mergeNewSnapshot(JSON.stringify(e),n),this.processEffects({html:r})}processEffects(e){lt("effects",this,e),lt("effect",{component:this,effects:e,cleanup:r=>this.addCleanup(r)})}get children(){let e=this.snapshot.memo;return Object.values(e.children).map(n=>n[1]).map(n=>zu(n))}inscribeSnapshotAndEffectsOnElement(){let e=this.el;e.setAttribute("wire:snapshot",this.snapshotEncoded);let r=this.originalEffects.listeners?{listeners:this.originalEffects.listeners}:{};this.originalEffects.url&&(r.url=this.originalEffects.url),e.setAttribute("wire:effects",JSON.stringify(r))}addCleanup(e){this.cleanups.push(e)}cleanup(){for(;this.cleanups.length>0;)this.cleanups.pop()()}},Gt={};function Vu(e){let r=new Uu(e);if(Gt[r.id])throw"Component already registered";return lt("component.init",{component:r,cle
for (var l=arguments.length, p=new Array(l), k=0; k<l; k++) {
p[k] = arguments[k];
}
return [].concat(p);
})(${a[2]})`)(this.eventContext)),{method:r,params:n}}},tc=Je(hu()),rc=Je(gu()),nc=Je(mu()),ic=Je(vu()),ac=Je(yu());function oc(){let e=new URL(window.location.href,document.baseURI);cc(e,document.documentElement.outerHTML)}function sc(e){window.addEventListener("popstate",r=>{let a=(r.state||{}).alpine||{};if(!a._html)return;let s=fc(a._html);e(s)})}function lc(e,r){uc(r,e)}function uc(e,r){Vo("pushState",e,r)}function cc(e,r){Vo("replaceState",e,r)}function Vo(e,r,n){let a=new Date().getTime();qo(a,n);let s=history.state||{};s.alpine||(s.alpine={}),s.alpine._html=a;try{history[e](s,document.title,r)}catch(u){u instanceof DOMException&&u.name==="SecurityError"&&console.error("Livewire: You can't use wire:navigate with a link to a different root domain: "+r),console.error(u)}}function fc(e){return JSON.parse(sessionStorage.getItem("alpine:"+e))}function qo(e,r){try{sessionStorage.setItem("alpine:"+e,JSON.stringify(r))}catch(n){if(![22,1,2,3,4,5,6,7,8,9,10,11,12,13,14].includes(n.code))return;let a=Object.keys(sessionStorage).map(s=>Number(s.replace("alpine:",""))).sort().shift();if(!a)return;sessionStorage.removeItem("alpine:"+a),qo(e,r)}}var Ht={};function Za(e,r){let n=e.pathname;Ht[n]||(Ht[n]={finished:!1,html:null,whenFinished:()=>{}},fetch(n).then(a=>a.text()).then(a=>{r(a)}))}function eo(e,r){let n=Ht[r.pathname];n.html=e,n.finished=!0,n.whenFinished()}function dc(e,r,n){let a=e.pathname+e.search;if(!Ht[a])return n();if(Ht[a].finished){let s=Ht[a].html;return delete Ht[a],r(s)}else Ht[a].whenFinished=()=>{let s=Ht[a].html;delete Ht[a],r(s)}}function pc(e,r){let n=s=>s.which>1||s.altKey||s.ctrlKey||s.metaKey||s.shiftKey,a=s=>s.which!==13||s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;e.addEventListener("click",s=>{n(s)||s.preventDefault()}),e.addEventListener("mousedown",s=>{n(s)||(s.preventDefault(),r(u=>{let b=m=>{m.preventDefault(),u(),e.removeEventListener("mouseup",b)};e.addEventListener("mouseup",b)}))}),e.addEventListener("keydown",s=>{a(s)||(s.preventDefault(),r(u=>{u()}))})}function hc(e,r=60,n){e.addEventListener("mouseenter",a=>{let s=setTimeout(()=>{n(a)},r),u=()=>{clearTimeout(s),e.removeEventListener("mouseleave",u)};e.addEventListener("mouseleave",u)})}function to(e){return zo(e.getAttribute("href"))}function zo(e){return new URL(e,document.baseURI)}var pa=Je(ft());function ro(e){pa.default.mutateDom(()=>{e.querySelectorAll("[data-teleport-template]").forEach(r=>r._x_teleport.remove())})}function no(e){pa.default.mutateDom(()=>{e.querySelectorAll("[data-teleport-target]").forEach(r=>r.remove())})}function io(e){pa.default.walk(e,(r,n)=>{r._x_teleport&&(r._x_teleportPutBack(),n())})}function ao(){document.body.setAttribute("data-scroll-x",document.body.scrollLeft),document.body.setAttribute("data-scroll-y",document.body.scrollTop),document.querySelectorAll(["[x-navigate\\:scroll]","[wire\\:scroll]"]).forEach(e=>{e.setAttribute("data-scroll-x",e.scrollLeft),e.setAttribute("data-scroll-y",e.scrollTop)})}function oo(){let e=r=>{r.hasAttribute("data-scroll-x")?(r.scrollTo({top:Number(r.getAttribute("data-scroll-y")),left:Number(r.getAttribute("data-scroll-x")),behavior:"instant"}),r.removeAttribute("data-scroll-x"),r.removeAttribute("data-scroll-y")):window.scrollTo({top:0,left:0,behavior:"instant"})};queueMicrotask(()=>{e(document.body),document.querySelectorAll(["[x-navigate\\:scroll]","[wire\\:scroll]"]).forEach(e)})}var ta=Je(ft()),hn={};function so(e){hn={},document.querySelectorAll("[x-persist]").forEach(r=>{hn[r.getAttribute("x-persist")]=r,e(r),ta.default.mutateDom(()=>{r.remove()})})}function lo(e){let r=[];document.querySelectorAll("[x-persist]").forEach(n=>{let a=hn[n.getAttribute("x-persist")];a&&(r.push(n.getAttribute("x-persist")),a._x_wasPersisted=!0,e(a,n),ta.default.mutateDom(()=>{n.replaceWith(a)}))}),Object.entries(hn).forEach(([n,a])=>{r.includes(n)||ta.default.destroyTree(a)}),hn={}}var Yn=Je(bu());Yn.default.configure({minimum:.1,trickleSpeed:200,showSpinner:!1});vc();var ra=!1;function gc(){ra=!0,setTimeout(()=>{ra&&Yn.default.start()},150)}function mc(){ra=!1,Yn.default.do
#nprogress {
pointer-events: none;
}
#nprogress .bar {
background: var(--livewire-progress-bar-color, #29d);
position: fixed;
z-index: 1031;
top: 0;
left: 0;
width: 100%;
height: 2px;
}
/* Fancy blur effect */
#nprogress .peg {
display: block;
position: absolute;
right: 0px;
width: 100px;
height: 100%;
box-shadow: 0 0 10px #29d, 0 0 5px #29d;
opacity: 1.0;
-webkit-transform: rotate(3deg) translate(0px, -4px);
-ms-transform: rotate(3deg) translate(0px, -4px);
transform: rotate(3deg) translate(0px, -4px);
}
/* Remove these to get rid of the spinner */
#nprogress .spinner {
display: block;
position: fixed;
z-index: 1031;
top: 15px;
right: 15px;
}
#nprogress .spinner-icon {
width: 18px;
height: 18px;
box-sizing: border-box;
border: solid 2px transparent;
border-top-color: var(--livewire-progress-bar-color, #29d);
border-left-color: var(--livewire-progress-bar-color, #29d);
border-radius: 50%;
-webkit-animation: nprogress-spinner 400ms linear infinite;
animation: nprogress-spinner 400ms linear infinite;
}
.nprogress-custom-parent {
overflow: hidden;
position: relative;
}
.nprogress-custom-parent #nprogress .spinner,
.nprogress-custom-parent #nprogress .bar {
position: absolute;
}
@-webkit-keyframes nprogress-spinner {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}
@keyframes nprogress-spinner {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
`,document.head.appendChild(e)}var Gi=[],Wo=["data-csrf"];function uo(e,r){let n=new DOMParser().parseFromString(e,"text/html"),a=document.adoptNode(n.body),s=document.adoptNode(n.head);Gi=Gi.concat(Array.from(document.body.querySelectorAll("script")).map(m=>Yo(Xo(m.outerHTML,Wo))));let u=()=>{};bc(s).finally(()=>{u()}),yc(a,Gi);let b=document.body;document.body.replaceWith(a),Alpine.destroyTree(b),r(m=>u=m)}function yc(e,r){e.querySelectorAll("script").forEach(n=>{if(n.hasAttribute("data-navigate-once")){let a=Yo(Xo(n.outerHTML,Wo));if(r.includes(a))return}n.replaceWith(Ko(n))})}function bc(e){let r=Array.from(document.head.children),n=r.map(u=>u.outerHTML),a=document.createDocumentFragment(),s=[];for(let u of Array.from(e.children))if(fo(u))if(n.includes(u.outerHTML))a.appendChild(u);else if(Jo(u)&&wc(u,r)&&setTimeout(()=>window.location.reload()),Go(u))try{s.push(_c(Ko(u)))}catch{}else document.head.appendChild(u);for(let u of Array.from(document.head.children))fo(u)||u.remove();for(let u of Array.from(e.children))document.head.appendChild(u);return Promise.all(s)}async function _c(e){return new Promise((r,n)=>{e.src?(e.onload=()=>r(),e.onerror=()=>n()):r(),document.head.appendChild(e)})}function Ko(e){let r=document.createElement("script");r.textContent=e.textContent,r.async=e.async;for(let n of e.attributes)r.setAttribute(n.name,n.value);return r}function Jo(e){return e.hasAttribute("data-navigate-track")}function wc(e,r){let[n,a]=co(e);return r.some(s=>{if(!Jo(s))return!1;let[u,b]=co(s);if(u===n&&a!==b)return!0})}function co(e){return(Go(e)?e.src:e.href).split("?")}function fo(e){return e.tagName.toLowerCase()==="link"&&e.getAttribute("rel").toLowerCase()==="stylesheet"||e.tagName.toLowerCase()==="style"||e.tagName.toLowerCase()==="script"}function Go(e){return e.tagName.toLowerCase()==="script"}function Yo(e){return e.split("").reduce((r,n)=>(r=(r<<5)-r+n.charCodeAt(0),r&r),0)}function Xo(e,r){let n=e;return r.forEach(a=>{const s=new RegExp(`${a}="[^"]*"|${a}='[^']*'`,"g");n=n.replace(s,"")}),n.trim()}function xc(e,r){let n=e.pathname+e.search,a={};lt("navigate.request",{url:n,options:a}),fetch(n,a).then(s=>s.text()).then(s=>{r(s)})}Je(ft());var Yi=!0;function Sc(e){e.navigate=n=>{r(zo(n))},e.navigate.disableProgressBar=()=>{Yi=!1},e.addInitSelector(()=>`[${e.prefixed("navigate")}]`),e.directive("navigate",(n,{value:a,expression:s,modifiers:u},{evaluateLater:b,cleanup:m})=>{u.includes("hover")&&hc(n,60,()=>{let U=to(n);Za(U,se=>{eo(se,U)})}),pc(n,U=>{let se=to(n);Za(se,V=>{eo(V,se)}),U(()=>{r(se)})})});function r(n){Yi&&gc(),Ec(n,a=>{Kn("alpine:navigating"),ao(),Yi&&mc(),oc(),po(e,s=>{so(u=>{ro(u)}),uo(a,u=>{no(document.body),lo((b,m)=>{io(b)}),oo(),Kn("alpine:navigated"),lc(a,n),u(()=>{s(()=>{setTimeout(()=>{}),ho(e)})})})})})}sc(n=>{ao(),po(e,a=>{so(s=>{ro(s)}),uo(n,()=>{no(document.body),lo((s,u)=>{io(s)}),oo(),Kn("alpine:navigated"),a(()=>{ho(e)})})})}),setTimeout(()=>{Kn("alpine:navigated")})}function Ec(e,r){dc(e,r,()=>{xc(e,r)})}function po(e,r){e.stopObservingMutations(),r(n=>{e.startObservingMutations(),queueMicrotask(()=>{n()})})}function Kn(e){document.dispatchEvent(new CustomEvent(e,{bubbles:!0}))}function ho(e){e.initTree(document.body,void 0,(r,n)=>{r._x_wasPersisted&&n()})}function Oc(e){e.magic("queryString",(r,{interceptor:n})=>{let a,s=!1,u=!1;return n((b,m,I,U,se)=>{let V=a||U,{initial:ce,replace:re,push:E,pop:v}=na(V,b,s);return I(ce),u?(e.effect(()=>E(m())),v(async _=>{I(_),await(()=>Promise.resolve())()})):e.effect(()=>re(m())),ce},b=>{b.alwaysShow=()=>(s=!0,b),b.usePush=()=>(u=!0,b),b.as=m=>(a=m,b)})}),e.history={track:na}}function na(e,r,n=!1){let{has:a,get:s,set:u,remove:b}=Ac(),m=new URL(window.location.href),I=a(m,e),U=I?s(m,e):r,se=JSON.stringify(U),V=E=>JSON.stringify(E)===se;n&&(m=u(m,e,U)),go(m,e,{value:U});let ce=!1,re=(E,v)=>{if(ce)return;let _=new URL(window.location.href);!n&&!I&&V(v)?_=b(_,e):_=u(_,e,v),E(_,e,{value:v})};return{initial:U,replace(E){re(go,E)},push(E){re(Cc,E)},pop(E){let v=_=>{!_.state||!_.state.alpine||Object.entries(_.state.alpine).forEach(([O,{value:M}])=
`),n===""&&(n="Are you sure?"),e.__livewire_confirm=s=>{if(a){let[u,b]=n.split("|");b?prompt(u)===b&&s():console.warn("Livewire: Must provide expectation with wire:confirm.prompt")}else confirm(n)&&s()}});function yr(e,r,n,a=null){if(n=r.modifiers.includes("remove")?!n:n,r.modifiers.includes("class")){let s=r.expression.split(" ");n?e.classList.add(...s):e.classList.remove(...s)}else if(r.modifiers.includes("attr"))n?e.setAttribute(r.expression,!0):e.removeAttribute(r.expression);else{let s=a??window.getComputedStyle(e,null).getPropertyValue("display"),u=["inline","block","table","flex","grid","inline-flex"].filter(b=>r.modifiers.includes(b))[0]||"inline-block";u=r.modifiers.includes("remove")?s:u,e.style.display=n?u:"none"}}var oa=new Set,sa=new Set;window.addEventListener("offline",()=>oa.forEach(e=>e()));window.addEventListener("online",()=>sa.forEach(e=>e()));kt("offline",({el:e,directive:r,cleanup:n})=>{let a=()=>yr(e,r,!0),s=()=>yr(e,r,!1);oa.add(a),sa.add(s),n(()=>{oa.delete(a),sa.delete(s)})});kt("loading",({el:e,directive:r,component:n})=>{let a=lf(e),[s,u]=nf(r);af(n,a,[()=>s(()=>yr(e,r,!0)),()=>u(()=>yr(e,r,!1))]),of(n,a,[()=>s(()=>yr(e,r,!0)),()=>u(()=>yr(e,r,!1))])});function nf(e){if(!e.modifiers.includes("delay")||e.modifiers.includes("none"))return[u=>u(),u=>u()];let r=200,n={shortest:50,shorter:100,short:150,default:200,long:300,longer:500,longest:1e3};Object.keys(n).some(u=>{if(e.modifiers.includes(u))return r=n[u],!0});let a,s=!1;return[u=>{a=setTimeout(()=>{u(),s=!0},r)},async u=>{s?(await u(),s=!1):clearTimeout(a)}]}function af(e,r,[n,a]){ze("commit",({component:s,commit:u,respond:b})=>{s===e&&(r.length>0&&!sf(u,r)||(n(),b(()=>{a()})))})}function of(e,r,[n,a]){let s=u=>{let{id:b,property:m}=u.detail;return b!==e.id||r.length>0&&!r.map(I=>I.target).includes(m)};window.addEventListener("livewire-upload-start",u=>{s(u)||n()}),window.addEventListener("livewire-upload-finish",u=>{s(u)||a()}),window.addEventListener("livewire-upload-error",u=>{s(u)||a()})}function sf(e,r){let{updates:n,calls:a}=e;return r.some(({target:s,params:u})=>{if(u)return a.some(({method:m,params:I})=>s===m&&u===rs(JSON.stringify(I)));if(Object.keys(n).some(m=>m.startsWith(s))||a.map(m=>m.method).includes(s))return!0})}function lf(e){let r=di(e),n=[];if(r.has("target")){let a=r.get("target"),s=a.expression;s.includes("(")&&s.includes(")")?n.push({target:a.method,params:rs(JSON.stringify(a.params))}):s.includes(",")?s.split(",").map(u=>u.trim()).forEach(u=>{n.push({target:u})}):n.push({target:s})}else{let a=["init","dirty","offline","target","loading","poll","ignore","key","id"];r.all().filter(s=>!a.includes(s.value)).map(s=>s.expression.split("(")[0]).forEach(s=>n.push({target:s}))}return n}function rs(e){return btoa(encodeURIComponent(e))}kt("stream",({el:e,directive:r,component:n,cleanup:a})=>{let{expression:s,modifiers:u}=r,b=ze("stream",({name:m,content:I,replace:U})=>{m===s&&(u.includes("replace")||U?e.innerHTML=I:e.innerHTML=e.innerHTML+I)});a(b)});ze("request",({respond:e})=>{e(r=>{let n=r.response;n.headers.has("X-Livewire-Stream")&&(r.response={ok:!0,redirected:!1,status:200,async text(){let a=await uf(n,s=>{lt("stream",s)});return ko(a)&&(this.ok=!1),a}})})});async function uf(e,r){let n=e.body.getReader(),a="";for(;;){let{done:s,value:u}=await n.read(),m=new TextDecoder().decode(u),[I,U]=cf(a+m);if(I.forEach(se=>{r(se)}),a=U,s)return a}}function cf(e){let r=/({"stream":true.*?"endStream":true})/g,n=e.match(r),a=[];if(n)for(let u=0;u<n.length;u++)a.push(JSON.parse(n[u]).body);let s=e.replace(r,"");return[a,s]}kt("ignore",({el:e,directive:r})=>{r.modifiers.includes("self")?e.__livewire_ignore_self=!0:e.__livewire_ignore=!0});var ns=new Po;ze("commit",({component:e,respond:r})=>{r(()=>{setTimeout(()=>{ns.each(e,n=>n(!1))})})});kt("dirty",({el:e,directive:r,component:n})=>{let a=ff(e);Alpine.reactive({state:!1});let s=!1,u=e.style.display,b=m=>{yr(e,r,m,u),s=m};ns.add(n,b),Alpine.effect(()=>{let m=!1;if(a.length===0)m=JSON.stringify(n.canonical)!==JSON.stringify(n.reactive);else for(let I=0;I<a.length&&!m;I++){let U=a[I];m=J
* @license MIT *//*! Bundled license information:
tabbable/dist/index.js:
(*!
* tabbable 5.3.3
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*)
focus-trap/dist/focus-trap.js:
(*!
* focus-trap 6.9.4
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*)
*//**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/ma.start();window.axios=ll;window.valid=lu;document.querySelectorAll(".disposable-alert").forEach(e=>{setTimeout(()=>{e.remove()},5e3)});