1/*! For license information please see app.js.LICENSE.txt */ 2(()=>{var e,t={33:(e,t,n)=>{"use strict";function r(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}n.d(t,{$3:()=>h,$H:()=>j,BH:()=>q,BU:()=>ae,BX:()=>ge,Bm:()=>w,C4:()=>te,CE:()=>m,CP:()=>c,DY:()=>R,Gv:()=>k,Gx:()=>Q,J$:()=>le,Kg:()=>x,MZ:()=>o,Mp:()=>l,NO:()=>s,OC:()=>re,Oj:()=>i,PT:()=>B,Qd:()=>S,Ro:()=>F,SU:()=>A,Sf:()=>ie,TF:()=>d,Tg:()=>P,Tn:()=>b,Tr:()=>K,Vp:()=>he,W0:()=>ce,We:()=>U,X$:()=>u,XW:()=>me,Y2:()=>ue,ZH:()=>L,Zf:()=>N,_B:()=>ne,bB:()=>z,cy:()=>f,eW:()=>W,gX:()=>G,gd:()=>y,lk:()=>D,nC:()=>oe,pD:()=>r,rU:()=>I,tE:()=>a,tl:()=>ee,u3:()=>ve,vM:()=>g,v_:()=>be,wQ:()=>de,yI:()=>V,yL:()=>_,yQ:()=>$,z3:()=>pe});const o={},i=[],a=()=>{},s=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),u=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},p=Object.prototype.hasOwnProperty,h=(e,t)=>p.call(e,t),f=Array.isArray,m=e=>"[object Map]"===C(e),g=e=>"[object Set]"===C(e),v=e=>"[object Date]"===C(e),y=e=>"[object RegExp]"===C(e),b=e=>"function"==typeof e,x=e=>"string"==typeof e,w=e=>"symbol"==typeof e,k=e=>null!==e&&"object"==typeof e,_=e=>(k(e)||b(e))&&b(e.then)&&b(e.catch),E=Object.prototype.toString,C=e=>E.call(e),N=e=>C(e).slice(8,-1),S=e=>"[object Object]"===C(e),V=e=>x(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,A=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),D=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),M=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},T=/-(\w)/g,B=M((e=>e.replace(T,((e,t)=>t?t.toUpperCase():"")))),O=/\B([A-Z])/g,P=M((e=>e.replace(O,"-$1").toLowerCase())),L=M((e=>e.charAt(0).toUpperCase()+e.slice(1))),I=M((e=>e?`on${L(e)}`:"")),j=(e,t)=>!Object.is(e,t),R=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},$=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},z=e=>{const t=parseFloat(e);return isNaN(t)?e:t},F=e=>{const t=x(e)?Number(e):NaN;return isNaN(t)?e:t};let H;const U=()=>H||(H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});function W(e,t){return e+JSON.stringify(t,((e,t)=>"function"==typeof t?t.toString():t))}const q=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol"),Y=2;function G(e,t=0,n=e.length){if((t=Math.max(0,Math.min(t,e.length)))>(n=Math.max(0,Math.min(n,e.length))))return"";let r=e.split(/(\r?\n)/);const o=r.filter(((e,t)=>t%2==1));r=r.filter(((e,t)=>t%2==0));let i=0;const a=[];for(let e=0;e<r.length;e++)if(i+=r[e].length+(o[e]&&o[e].length||0),i>=t){for(let s=e-Y;s<=e+Y||n>i;s++){if(s<0||s>=r.length)continue;const l=s+1;a.push(`${l}${" ".repeat(Math.max(3-String(l).length,0))}| ${r[s]}`);const c=r[s].length,u=o[s]&&o[s].length||0;if(s===e){const e=t-(i-(c+u)),r=Math.max(1,n>i?c-e:n-t);a.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(s>e){if(n>i){const e=Math.max(Math.min(n-i,c),1);a.push(" | "+"^".repeat(e))}i+=c+u}}break}return a.join("\n")}function K(e){if(f(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=x(r)?Q(r):K(r);if(o)for(const e in o)t[e]=o[e]}return t}if(x(e)||k(e))return e}const J=/;(?![^(]*\))/g,X=/:([^]+)/,Z=/\/\*[^]*?\*\//g;function Q(e){const t={};return e.replace(Z,"").split(J).forEach((e=>{if(e){const n=e.split(X);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function ee(e){if(!e)return"";if(x(e))return e;let t="";for(const n in e){const r=e[n];if(x(r)||"number"==typeof r){t+=`${n.startsWith("--")?n:P(n)}:${r};`}}return t}function te(e){let t="";if(x(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){const r=te(e[n]);r&&(t+=r+" ")}else if(k(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ne(e){if(!e)return null;let{class:t,style:n}=e;return t&&!x(t)&&(e.class=te(t)),n&&(e.style=K(n)),e}const re=r("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,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,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"),oe=r("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,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"),ie=r("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),ae=r("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),se="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",le=r(se),ce=r(se+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,
2checked,muted,multiple,selected");function ue(e){return!!e||""===e}const de=r("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,inert,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"),pe=r("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode
2-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function he(e){if(null==e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t}const fe=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function me(e,t){return e.replace(fe,(e=>t?'"'===e?'\\\\\\"':`\\\\${e}`:`\\${e}`))}function ge(e,t){if(e===t)return!0;let n=v(e),r=v(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=w(e),r=w(t),n||r)return e===t;if(n=f(e),r=f(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=ge(e[r],t[r]);return n}(e,t);if(n=k(e),r=k(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!ge(e[n],t[n]))return!1}}return String(e)===String(t)}function ve(e,t){return e.findIndex((e=>ge(e,t)))}const ye=e=>!(!e||!0!==e.__v_isRef),be=e=>x(e)?e:null==e?"":f(e)||k(e)&&(e.toString===E||!b(e.toString))?ye(e)?be(e.value):JSON.stringify(e,xe,2):String(e),xe=(e,t)=>ye(t)?xe(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],r)=>(e[we(t,r)+" =>"]=n,e)),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>we(e)))}:w(t)?we(t):!k(t)||f(t)||S(t)?t:String(t),we=(e,t="")=>{var n;return w(e)?`Symbol(${null!=(n=e.description)?n:t})`:e}},36:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r=n(6301),o={class:"px-4 py-6 xl:container xl:mx-auto"},i={class:"lg:flex lg:gap-x-6 lg:h-full"},a={class:"hidden lg:block sticky top-24"},s={class:"mb-8 lg:hidden"},l={key:0},c={key:1},u={key:2};var d=n(641),p=n(8367),h=n(6153),f=n(8351),m=n(5560),g=n(1507),v=n(633),y=n(435),b=n(1021),x=n(6581);const w=(0,d.pM)({layout:p.A,props:["sessions"],components:{DeleteUserForm:f.default,JetSectionBorder:m.A,LogoutOtherBrowserSessionsForm:g.default,TwoFactorAuthenticationForm:v.default,UpdatePasswordForm:y.default,UpdateProfileInformationForm:b.default,LmProfileMenu:h.A,LmAccordion:x.A},computed:{currentPage:function(){switch(this.route().current()){case"profile.show":return'<i class="bi bi-person-lines-fill mr-2"></i>'+this.__("Mein Profil");case"profile.notifications":return'<i class="bi bi-bell mr-2"></i>'+this.__("Benachrichtigungen");case"profile.messages":return'<i class="bi bi-chat-dots mr-2"></i>'+this.__("Nachrichten");case"profile.events":return'<i class="bi bi-calendar2-event mr-2"></i>'+this.__("Meine Events");case"profile.announcements":return'<i class="bi bi-megaphone mr-2"></i>'+this.__("Meine Anzeigen");case"profile.company":return'<i class="bi bi-house mr-2"></i>'+this.__("Mein Unternehmen")}}}});const k=(0,n(6262).A)(w,[["render",function(e,t,n,d,p,h){var f=(0,r.resolveComponent)("lm-profile-menu"),m=(0,r.resolveComponent)("lm-accordion"),g=(0,r.resolveComponent)("update-profile-information-form"),v=(0,r.resolveComponent)("jet-section-border"),y=(0,r.resolveComponent)("update-password-form"),b=(0,r.resolveComponent)("two-factor-authentication-form"),x=(0,r.resolveComponent)("logout-other-browser-sessions-form"),w=(0,r.resolveComponent)("delete-user-form");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",a,[(0,r.createVNode)(f)]),(0,r.createElementVNode)("div",s,[(0,r.createVNode)(m,{title:e.currentPage},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(f)]})),_:1},8,["title"])])]),(0,r.createElementVNode)("div",null,[e.$page.props.jetstream.canUpdateProfileInformation?((0,r.openBlock)(),(0,r.createElementBlock)("div",l,[(0,r.createVNode)(g,{user:e.$page.props.user},null,8,["user"]),(0,r.createVNode)(v)])):(0,r.createCommentVNode)("",!0),e.$page.props.jetstream.canUpdatePassword?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[(0,r.createVNode)(y,{class:"mt-10 sm:mt-0"}),(0,r.createVNode)(v)])):(0,r.createCommentVNode)("",!0),e.$page.props.jetstream.canManageTwoFactorAuthentication?((0,r.openBlock)(),(0,r.createElementBlock)("div",u,[(0,r.createVNode)(b,{class:"mt-10 sm:mt-0"}),(0,r.createVNode)(v)])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(x,{sessions:e.sessions,class:"mt-10 sm:mt-0"}
2,null,8,["sessions"]),e.$page.props.jetstream.hasAccountDeletionFeatures?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:3},[(0,r.createVNode)(v),(0,r.createVNode)(w,{class:"mt-10 sm:mt-0"})],64)):(0,r.createCommentVNode)("",!0)])])])])}]])},38:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},76:e=>{"use strict";e.exports=Function.prototype.call},95:(e,t,n)=>{"use strict";n.d(t,{A:()=>H});var r=n(6301),o={class:"min-h-screen bg-slate-100"},i={class:"bg-white border-b border-gray-100"},a={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},s={class:"flex justify-between h-16"},l={class:"flex"},c={class:"flex-shrink-0 flex items-center"},u={class:"hidden space-x-8 sm:-my-px sm:ml-10 sm:flex"},d={class:"hidden sm:flex sm:items-center sm:ml-6"},p={class:"ml-3 relative"},h={class:"flex items-center rounded-full text-sm border-2 border-transparent focus:outline-none focus:border-gray-300 transition"},f=["src","alt"],m={class:"block px-4 py-2 text-xs text-gray-400"},g={class:"p-2 block"},v={class:"-mr-2 flex items-center sm:hidden"},y={class:"h-6 w-6",stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"},b={class:"pt-2 pb-3 space-y-1"},x={class:"pt-4 pb-1 border-t border-gray-200"},w={class:"flex items-center px-4"},k={key:0,class:"flex-shrink-0 mr-3"},_=["src","alt"],E={class:"font-medium text-base text-gray-800"},C={class:"font-medium text-sm text-gray-500"},N={class:"mt-3 space-y-1"},S={key:0,class:"bg-white shadow"},V={class:"max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8"};var A=n(641),D={viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var M=n(6262);const T={},B=(0,M.A)(T,[["render",function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",D,t[0]||(t[0]=[(0,r.createElementVNode)("path",{d:"M11.395 44.428C4.557 40.198 0 32.632 0 24 0 10.745 10.745 0 24 0a23.891 23.891 0 0113.997 4.502c-.2 17.907-11.097 33.245-26.602 39.926z",fill:"#6875F5"},null,-1),(0,r.createElementVNode)("path",{d:"M14.134 45.885A23.914 23.914 0 0024 48c13.255 0 24-10.745 24-24 0-3.516-.756-6.856-2.115-9.866-4.659 15.143-16.608 27.092-31.75 31.751z",fill:"#6875F5"},null,-1)]))}]]);var O=n(9220),P=n(1857),L=n(1015);const I=(0,A.pM)({props:["href","active"],computed:{classes:function(){return this.active?"inline-flex items-center px-1 pt-1 border-b-2 border-indigo-400 text-sm font-medium leading-5 text-gray-900 focus:outline-none focus:border-indigo-700 transition":"inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition"}}}),j=(0,M.A)(I,[["render",function(e,t,n,o,i,a){var s=(0,r.resolveComponent)("Link");return(0,r.openBlock)(),(0,r.createBlock)(s,{href:e.href,class:(0,r.normalizeClass)(e.classes)},{default:(0,r.withCtx)((function(){return[(0,r.renderSlot)(e.$slots,"default")]})),_:3},8,["href","class"])}]]);const R=(0,A.pM)({props:["active","href","as"],computed:{classes:function(){return this.active?"block pl-3 pr-4 py-2 border-l-4 border-indigo-400 text-base font-medium text-indigo-700 bg-indigo-50 focus:outline-none focus:text-indigo-800 focus:bg-indigo-100 focus:border-indigo-700 transition":"block pl-3 pr-4 py-2 border-l-4 border-transparent text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-slate-50 hover:border-gray-300 focus:outline-none focus:text-gray-800 focus:bg-slate-50 focus:border-gray-300 transition"}}}),$=(0,M.A)(R,[["render",function(e,t,n,o,i,a){var s=(0,r.resolveComponent)("Link");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,["button"==e.as?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,class:(0,r.normalizeClass)([e.classes,"w-full text-left"])},[(0,r.renderSlot)(e.$slots,"default")],2)):((0,r.openBlock)(),(0,r.createBlock)(s,{key:1,href:e.href,class:(0,r.normalizeClass)(e.classes)},{default:(0,r.withCtx)((function(){return[(0,r.renderSlot)(e.$slots,"default")]})),_:3},8,["href","class"]))])}]]);var z=n(9234);const F=(0,A.pM)({props:{title:String},components:{Head:z.p3,JetApplicationMark:B,JetBanner:O.A,JetDropdown:P.A,JetDropdownLink:L.A,JetNavLink:j,JetResponsiveNavLink:$,Link:z.N_},mounted:function(){document.documentElement.style.setProperty("--cm-primary",this.$page.props.primary_color),document.documentElement.style.setProperty("--cm-secondary",this.$page.props.secondary_color)},data:function(){return{showingNavigationDropdown:!1}},methods:{logout:function(){this.$inertia.post(route("logout"))}}}),H=(0,M.A)(F,[["render",function(e,t,n,A,D,M){var T=(0,r.resolve
2Component)("Head"),B=(0,r.resolveComponent)("jet-banner"),O=(0,r.resolveComponent)("jet-application-mark"),P=(0,r.resolveComponent)("Link"),L=(0,r.resolveComponent)("jet-nav-link"),I=(0,r.resolveComponent)("jet-dropdown-link"),j=(0,r.resolveComponent)("jet-dropdown"),R=(0,r.resolveComponent)("jet-responsive-nav-link");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(T,{title:e.title},null,8,["title"]),(0,r.createVNode)(B),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("nav",i,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",c,[(0,r.createVNode)(P,{href:e.route("dashboard")},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(O,{class:"block h-9 w-auto"})]})),_:1},8,["href"])]),(0,r.createElementVNode)("div",u,[(0,r.createVNode)(L,{href:e.route("dashboard"),active:e.route().current("dashboard")},{default:(0,r.withCtx)((function(){return t[3]||(t[3]=[(0,r.createTextVNode)(" Dashboard ")])})),_:1},8,["href","active"])])]),(0,r.createElementVNode)("div",d,[t[9]||(t[9]=(0,r.createElementVNode)("div",{class:"ml-3 relative"},null,-1)),(0,r.createElementVNode)("div",p,[(0,r.createVNode)(j,{align:"right",width:"48"},{trigger:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",h,[(0,r.createElementVNode)("img",{class:"h-8 w-8 rounded-full object-cover",src:e.$page.props.user.profile_photo_url||"https://eu.ui-avatars.com/api/?name=".concat(e.$page.props.user.first_name,"&background=random"),alt:e.$page.props.user.first_name+" "+e.$page.props.user.first_name},null,8,f)])]})),content:(0,r.withCtx)((function(){return[t[7]||(t[7]=(0,r.createElementVNode)("div",{class:"block px-4 py-2 text-xs text-gray-400"}," Manage Account ",-1)),(0,r.createElementVNode)("div",m,[(0,r.createElementVNode)("form",{onSubmit:t[0]||(t[0]=(0,r.withModifiers)((function(){return e.logout&&e.logout.apply(e,arguments)}),["prevent"])),class:"hover:bg-slate-100"},[(0,r.createElementVNode)("button",g,[t[4]||(t[4]=(0,r.createElementVNode)("i",{class:"bi bi-box-arrow-left text-lm-blue"},null,-1)),(0,r.createTextVNode)("Â "+(0,r.toDisplayString)(e.__("Abmelden")),1)])],32)]),(0,r.createVNode)(I,{href:e.route("profile.show")},{default:(0,r.withCtx)((function(){return t[5]||(t[5]=[(0,r.createTextVNode)(" Profil ")])})),_:1},8,["href"]),e.$page.props.jetstream.hasApiFeatures?((0,r.openBlock)(),(0,r.createBlock)(I,{key:0,href:e.route("api-tokens.index")},{default:(0,r.withCtx)((function(){return t[6]||(t[6]=[(0,r.createTextVNode)(" API Tokens ")])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),t[8]||(t[8]=(0,r.createElementVNode)("div",{class:"border-t border-gray-100"},null,-1))]})),_:1})])]),(0,r.createElementVNode)("div",v,[(0,r.createElementVNode)("button",{onClick:t[1]||(t[1]=function(t){return e.showingNavigationDropdown=!e.showingNavigationDropdown}),class:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-slate-100 focus:outline-none focus:bg-slate-100 focus:text-gray-500 transition"},[((0,r.openBlock)(),(0,r.createElementBlock)("svg",y,[(0,r.createElementVNode)("path",{class:(0,r.normalizeClass)({hidden:e.showingNavigationDropdown,"inline-flex":!e.showingNavigationDropdown}),"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"},null,2),(0,r.createElementVNode)("path",{class:(0,r.normalizeClass)({hidden:!e.showingNavigationDropdown,"inline-flex":e.showingNavigationDropdown}),"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,2)]))])])])]),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)([{block:e.showingNavigationDropdown,hidden:!e.showingNavigationDropdown},"sm:hidden"])},[(0,r.createElementVNode)("div",b,[(0,r.createVNode)(R,{href:e.route("dashboard"),active:e.route().current("dashboard")},{default:(0,r.withCtx)((function(){return t[10]||(t[10]=[(0,r.createTextVNode)(" Dashboard ")])})),_:1},8,["href","active"])]),(0,r.createElementVNode)("div",x,[(0,r.createElementVNode)("div",w,[e.$page.props.jetstream.managesProfilePhotos?((0,r.openBlock)(),(0,r.createElementBlock)("div",k,[(0,r.createElementVNode)("img",{class:"h-10 w-10 rounded-full object-cover",src:e.$page.props.user.profile_photo_url,alt:e.$page.props.user.n
2ame},null,8,_)])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",E,(0,r.toDisplayString)(e.$page.props.user.name),1),(0,r.createElementVNode)("div",C,(0,r.toDisplayString)(e.$page.props.user.email),1)])]),(0,r.createElementVNode)("div",N,[(0,r.createVNode)(R,{href:e.route("profile.show"),active:e.route().current("profile.show")},{default:(0,r.withCtx)((function(){return t[11]||(t[11]=[(0,r.createTextVNode)(" Profile ")])})),_:1},8,["href","active"]),e.$page.props.jetstream.hasApiFeatures?((0,r.openBlock)(),(0,r.createBlock)(R,{key:0,href:e.route("api-tokens.index"),active:e.route().current("api-tokens.index")},{default:(0,r.withCtx)((function(){return t[12]||(t[12]=[(0,r.createTextVNode)(" API Tokens ")])})),_:1},8,["href","active"])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("form",{method:"POST",onSubmit:t[2]||(t[2]=(0,r.withModifiers)((function(){return e.logout&&e.logout.apply(e,arguments)}),["prevent"]))},[(0,r.createVNode)(R,{as:"button"},{default:(0,r.withCtx)((function(){return t[13]||(t[13]=[(0,r.createTextVNode)(" Log Out ")])})),_:1})],32)])])],2)]),e.$slots.header?((0,r.openBlock)(),(0,r.createElementBlock)("header",S,[(0,r.createElementVNode)("div",V,[(0,r.renderSlot)(e.$slots,"header")])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("main",null,[(0,r.renderSlot)(e.$slots,"default")])])])}]])},116:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".comments[data-v-4ed5f21c]{background-repeat:no-repeat;background-size:clamp(300px,50vw,32rem)}.bubble[data-v-4ed5f21c]:after{border-bottom:0 solid transparent;border-left:25px solid transparent;border-right:25px solid transparent;border-top-style:solid;border-top-width:60px;height:0;width:0}.bubble-left[data-v-4ed5f21c]:after{bottom:-30px;right:-25px;transform:rotate(-45deg)}.bubble-right[data-v-4ed5f21c]:after{bottom:-30px;left:-25px;transform:rotate(45deg)}",""]);const i=o},145:(e,t,n)=>{"use strict";let r,o,i=n(7793);class a extends i{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new r(new o,this,e).stringify()}}a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{o=e},e.exports=a,a.default=a},160:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>L});var r=n(6301),o={class:"mt-8 sm:flex sm:items-center"},i={class:"sm:flex-auto"},a={class:"mt-4 sm:mt-0 sm:ml-16 sm:flex-none"},s={class:"mt-8 flex flex-col"},l={class:"-my-2 -mx-4 overflow-x-auto sm:-mx-6 lg:-mx-8"},c={class:"inline-block min-w-full py-2 align-middle md:px-6 lg:px-8"},u={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},d={class:"min-w-full divide-y divide-gray-300"},p={class:"divide-y divide-gray-200"},h={class:"whitespace-nowrap py-4 pl-4 pr-3 font-medium text-gray-900 sm:pl-6"},f=["src"],m={class:"whitespace-nowrap py-4 pl-4 pr-3 font-medium text-gray-900 sm:pl-6"},g={class:"whitespace-nowrap px-3 py-4 text-gray-500"},v=["href"],y={class:"whitespace-nowrap px-3 py-4 text-gray-500"},b={class:"whitespace-nowrap px-3 py-4 text-gray-500"},x={class:"relative whitespace-nowrap py-4 pl-3 pr-4 text-right font-medium sm:pr-6 flex space-x-2"},w=["href"],k={class:"sr-only"},_=["href"],E={class:"sr-only"},C={class:"mt-8 max-w-2xl"},N={class:"col-span-12 sm:col-span-6"},S={class:"col-span-12 sm:col-span-6"},V={class:"col-span-12 sm:col-span-12"};var A=n(5720),D=n(4296),M=n(6786),T=n(1816),B=n(5393),O=n(9234);const P={props:{communes:Object},data:function(){return{form:this.$inertia.form({name:null,slug:null})}},components:{JetButton:T.A,JetInput:D.A,JetInputError:M.A,JetLabel:B.A,Head:O.p3},layout:A.A,methods:{createCommune:function(){this.form.post(route("manager.communes.store"),this.form)}}};const L=(0,n(6262).A)(P,[["render",function(e,t,n,A,D,M){var T=(0,r.resolveComponent)("Head"),B=(0,r.resolveComponent)("Text"),O=(0,r.resolveComponent)("jet-button"),P=(0,r.resolveComponent)("jet-label"),L=(0,r.resolveComponent)("jet-input"),I=(0,r.resolveComponent)("jet-input-error");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(T,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("title",null,(0,r.toDisplayString)(e.__("Gemeinden")),1)]})),_:1}),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createVNode)(B,{type:"h1",text:"Gemeinden"}),(0,r.createVNode)(B,{type:"p",text:"Gestion des communes."})]),(0,r.createElementVNode)("div",a,[(0,r.createVNode)(O,{type:"button"},{default:(0,r.withCtx)((function(){return t[3]||(t[3]=[(0,r.createTextVNode)(" Ajouter une commune ")])})),_:1})])]),(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("table",d,[t[6]||(t[6]=(0,r.createElementVNode)("thead",{class:"bg-gray-50"},[(0,r.createElementVNode)("tr",null,[(0,r.createElementVNode)("th",{scope:"col",class:"py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900"}),(0,r.createElementVNode)("th",{scope:"col",class:"py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900 sm:pl-6"},"Commune"),(0,r.createElementVNode)("th",{scope:"col",class:"px-3 py-3.5 text-left font-semibold text-gray-900"},"Slug"),(0,r.createElementVNode)("th",{scope:"col",class:"px-3 py-3.5 text-left font-semibold text-gray-900"},"Utilisateurs"),(0,r.createElementVNode)("th",{scope:"col",class:"px-3 py-3.5 text-left font-semibold text-gray-900"},"Annonces"),(0,r.createElementVNode)("th",{scope:"col",class:"relative py-3.5 pl-3 pr-4 sm:pr-6"},[(0,r.createElementVNode)("span",{class:"sr-only"},"Edit")])])],-1)),(0,r.createElementVNode)("tbody",p,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.communes,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("tr",{key:o},[(0,r.createElementVNode)("td",h,[n.communal_logo_url?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,src:n.communal_logo_url,class:"h-auto w-32"},null,8,f)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("td",m,(0,r.toDisplayString)(n.name),1),(0,r.createElementVNode)("td",g,[(0,r.createElementVNode)("a",{target:"_blank",href:e.route("communalhome",{commune:n.slug})},(0,r.toDisplayString)(n.slug),9,v)]),(0,r.createElementVNode)("td",y,(0,r.toDisplayString)(n.users_count),1),(0,r.createElementVNode)("td",b,(0,r.toDisplayString)(n.annonces_count),1),(0,r.createElementVNode)("td",x,[(0,r.createElementVNode)("a",{href:e.route("manager.commune.edit",{commune:n.slug}),class:"text-lm-blue hover:text-lm-light-blue"},[t[4]||(t[4]=(0,r.createTextVNode)("Modifier")),(0,r.createElementVNode)("span",k,", "+(0,r.toDisplayString)(n.name),1)],8,w),(0,r.createElementVNode)("a",{href:e.route("admin.index",{commune:n.slug}),class:"text-lm-blue hover:text-lm-light-blue"},[t[5]||(t[5]=(0,r.createTextVNode)("Préférences")),(0,r.createElementVNode)("span",E,", "+(0,r.toDisplayString)(n.name),1)],8,_)])])})),128))])])])])])]),(0,r.createElementVNode)("div",C,[(0,r.createElementVNode)("form",{onSubmit:t[2]||(t[2]=(0,r.withModifiers)((function(){return M.createCommune&&M.createCommune.apply(M,arguments)}),["prevent"])),class:"grid grid-cols-12 gap-4"},[(0,r.createElementVNode)("div",N,[(0,r.createVNode)(P,{for:"name",value:"Name"}),(0,r.createVNode)(L,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:D.form.name,"onUpdate:modelValue":t[0]||(t[0]=function(e){return D.form.name=e})},null,8,["modelValue"]),(0,r.createVNode)(I,{message:D.form.errors.name,class:"mt-2"},null,8,["message"])]),(0,r.createElementVNode)("div",S,[(0,r.createVNode)(P,{for:"slug",value:"Slug"}),(0,r.createVNode)(L,{id:"slug",type:"text",class:"mt-1 block w-full",modelValue:D.form.slug,"onUpdate:modelValue":t[1]||(t[1]=function(e){return D.form.slug=e})},null,8,["modelValue"]),(0,r.createVNode)(I,{message:D.form.errors.slug,class:"mt-2"},null,8,["message"])]),(0,r.createElementVNode)("div",V,[(0,r.createVNode)(O,{class:(0,r.normalizeClass)({"opacity-25":D.form.processing}),disabled:D.form.processing},{default:(0,r.withCtx)((function(){return t[7]||(t[7]=[(0,r.createTextVNode)(" Ajouter ")])})),_:1},8,["class","disabled"])])],32)])])}]])},166:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(6301),o={class:"py-2 px-1"},i={key:0,class:"bi bi-check-circle"},a={key:1,class:"bi bi-exclamation-triangle"},s={key:2,class:"bi bi-exclamation-circle"},l={class:"py-2 px-1"},c={class:"py-2 px-1"};var u=n(641),d=n(8646);const p=(0,u.pM)({mounted:function(){var e=this;this.emitter.on("lm-notification",(function(t){e.category=t.category,e.text=e.__(t.text),e.showNotification()})),this.emitter.on("lm-notification-error",(function(){e.category="error",e.text=e.__("Une erreur s'est produite."),e.showNotification()})),this.emitter.on("lm-notification-close",(function(){e.close()})),d.Inertia.on("before",(function(){e.category="",e.text="",e.show=!1,clearTimeout(e.timeoutVar)}))},data:function(){return{category:"",text:"",show:!1,timeoutVar:null}},methods:{showNotification:function(){var e=this;this.show=!0,clearTimeout(this.timeoutVar),this.timeoutVar=setTimeout((function(){e.close()}),1e4)},close:function(){this.show=!1,this.$page.props.flash.success=!1,this.$page.props.flash.error=!1,this.category="",this.text="",clearTimeout(this.timeoutVar)}},watch:{"$page.props.flash.success":{handler:function(){this.$page.props.flash.success&&(this.category="success",this.text=this.__(this.$page.props.flash.success),this.showNotification())},deep:!0},"$page.props.flash.error":{handler:function(){this.$page.props.flash.error&&(this.category="error",this.text=this.__(this.$page.props.flash.error),this.showNotification())},deep:!0}}});const h=(0,n(6262).A)(p,[["render",function(e,t,n,u,d,p){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["fixed bottom-4 right-4 items-stretch rounded-md select-none drop-shadow-md px-2 text-white",{flex:e.show,hidden:!e.show,"bg-emerald-800":"success"===e.category,"bg-red-800":"error"===e.category,"bg-yellow-500":"warning"===e.category}]),style:{"z-index":"9999"}},[(0,r.createElementVNode)("div",o,["success"===e.category?((0,r.openBlock)(),(0,r.createElementBlock)("i",i)):(0,r.createCommentVNode)("",!0),"error"===e.category?((0,r.openBlock)(),(0,r.createElementBlock)("i",a)):(0,r.createCommentVNode)("",!0),"warning"===e.category?((0,r.openBlock)(),(0,r.createElementBlock)("i",s)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.text),1)]),(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(){return e.close&&e.close.apply(e,arguments)})},t[1]||(t[1]=[(0,r.createElementVNode)("i",{class:"bi bi-x"},null,-1)]))])],2)}]])},197:()=>{},221:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);
vendor: 6,520 bytes, line 2
2o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var a=i(n(357)),s=n(9878),l=new Set(["input","option","optgroup","select","button","datalist","textarea"]),c=new Set(["p"]),u=new Set(["thead","tbody"]),d=new Set(["dd","dt"]),p=new Set(["rt","rp"]),h=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",c],["h1",c],["h2",c],["h3",c],["h4",c],["h5",c],["h6",c],["select",l],["input",l],["output",l],["button",l],["datalist",l],["textarea",l],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",d],["dt",d],["address",c],["article",c],["aside",c],["blockquote",c],["details",c],["div",c],["dl",c],["fieldset",c],["figcaption",c],["figure",c],["footer",c],["form",c],["header",c],["hr",c],["main",c],["nav",c],["ol",c],["pre",c],["section",c],["table",c],["ul",c],["rt",p],["rp",p],["tbody",u],["tfoot",u]]),f=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),m=new Set(["math","svg"]),g=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),v=/\s|\//,y=function(){function e(e,t){var n,r,o,i,s;void 0===t&&(t={}),this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!==(r=t.lowerCaseAttributeNames)&&void 0!==r?r:!t.xmlMode,this.tokenizer=new(null!==(o=t.Tokenizer)&&void 0!==o?o:a.default)(this.options,this),null===(s=(i=this.cbs).onparserinit)||void 0===s||s.call(i,this)}return e.prototype.ontext=function(e,t){var n,r,o=this.getSlice(e,t);this.endIndex=t-1,null===(r=(n=this.cbs).ontext)||void 0===r||r.call(n,o),this.startIndex=t},e.prototype.ontextentity=function(e){var t,n,r=this.tokenizer.getSectionStart();this.endIndex=r-1,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,(0,s.fromCodePoint)(e)),this.startIndex=r},e.prototype.isVoidElement=function(e){return!this.options.xmlMode&&f.has(e)},e.prototype.onopentagname=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},e.prototype.emitOpenTag=function(e){var t,n,r,o;this.openTagStart=this.startIndex,this.tagname=e;var i=!this.options.xmlMode&&h.get(e);if(i)for(;this.stack.length>0&&i.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,a,!0)}this.isVoidElement(e)||(this.stack.push(e),m.has(e)?this.foreignContext.push(!0):g.has(e)&&this.foreignContext.push(!1)),null===(o=(r=this.cbs).onopentagname)||void 0===o||o.call(r,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(t=this.cbs).onopentag)||void 0===n||n.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},e.prototype.onclosetag=function(e,t){var n,r,o,i,a,s;this.endIndex=t;var l=this.getSlice(e,t);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(m.has(l)||g.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))this.options.xmlMode||"br"!==l||(null===(r=(n=this.cbs).onopentagname)||void 0===r||r.call(n,"br"),null===(i=(o=this.cbs).onopentag)||void 0===i||i.call(o,"br",{},!0),null===(s=(a=this.cbs).onclosetag)||void 0===s||s.call(a,"br",!1));else{var c=this.stack.lastIndexOf(l);if(-1!==c)if(this.cbs.onclosetag)for(var u=this.stack.length-c;u--;)this.cbs.onclosetag(this.stack.pop(),0!==u);else this.stack.length=c;else this.options.xmlMode||"p"!==l||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},e.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},e.prototype.closeCurrentTag=function(e){var t,n,r=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===r&&(null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,r,!e),this.stack.pop())},e.prototype.onattribname=function(e,t){this.startIndex=e;var n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)},e.prototype.onattribentity=function(e){this.attribvalue+=(0,s.fromCodePoint)(e)},e.prototype.onattribend=function(e,t){var n,r;this.endIndex=t,null===(r=(n=this.cbs).onattribute)||void 0===r||r.call(n,this.attribname,this.attribvalue,e===a.QuoteType.Double?'"':e===a.QuoteType.Single?"'":e===a.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(v),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var r=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(r),"!".concat(n))}this.startIndex=t+1},e.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var r=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(r),"?".concat(n))}this.startIndex=t+1},e.prototype.oncomment=function(e,t,n){var r,o,i,a;this.endIndex=t,null===(o=(r=this.cbs).oncomment)||void 0===o||o.call(r,this.get
2Slice(e,t-n)),null===(a=(i=this.cbs).oncommentend)||void 0===a||a.call(i),this.startIndex=t+1},e.prototype.oncdata=function(e,t,n){var r,o,i,a,s,l,c,u,d,p;this.endIndex=t;var h=this.getSlice(e,t-n);this.options.xmlMode||this.options.recognizeCDATA?(null===(o=(r=this.cbs).oncdatastart)||void 0===o||o.call(r),null===(a=(i=this.cbs).ontext)||void 0===a||a.call(i,h),null===(l=(s=this.cbs).oncdataend)||void 0===l||l.call(s)):(null===(u=(c=this.cbs).oncomment)||void 0===u||u.call(c,"[CDATA[".concat(h,"]]")),null===(p=(d=this.cbs).oncommentend)||void 0===p||p.call(d)),this.startIndex=t+1},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.getSlice=function(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))},e.prototype.end=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();t.Parser=y},249:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>de});var r=n(6301),o={class:"2xl:container"},i={class:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-6 pt-5 xl:container mb-8"},a={key:0},s={class:"sm:flex items-center justify-between"},l={class:"flex items-center justify-center w-full"},c=["for"],u={class:"relative"},d=["id","onUpdate:modelValue","onChange"],p={class:"flex flex-col gap-4"},h=["onClick"],f=["onClick"],m=["onClick"],g=["onClick"],v={class:"flex flex-col gap-4"},y={key:0,class:"text-red-500"},b={key:1,class:"text-red-500"},x={key:2,class:"text-red-500"},w={key:3,class:"text-red-500"},k={class:"flex flex-col gap-4"},_={key:0,class:"text-red-500"},E={key:1,class:"text-red-500"},C={key:2,class:"text-red-500"},N={key:3,class:"text-red-500"},S={class:"flex flex-col gap-4"},V={key:0,class:"text-red-500"},A={key:1,class:"text-red-500"},D={key:2,class:"text-red-500"},M={key:3,class:"text-red-500"},T={class:"flex flex-col gap-4"},B={key:0,class:"text-red-500"},O={key:1,class:"text-red-500"},P={key:2,class:"text-red-500"},L={key:3,class:"text-red-500"},I={class:"flex items-center pt-4"},j=["onUpdate:modelValue"],R={class:"ml-2 whitespace-nowrap"},$={class:"flex items-end justify-between flex-grow gap-4"},z={class:"block"},F=["onUpdate:modelValue"],H={value:"success"},U={value:"warning"},W={value:"error"},q={value:"neutral"},Y={key:0,class:"text-red-500"},G={class:"flex items-end justify-between flex-grow gap-4"},K={class:"block"},J={class:"flex items-end"},X=["onClick"];var Z=n(641),Q=n(5720),ee=n(9234),te=n(9506),ne=n(2521),re=n(6581),oe=n(1678),ie=n(5846);const ae=(0,Z.pM)({props:{allNews:Object},data:function(){return{dataNews:[],drag:!1}},mounted:function(){var e=this;this.dataNews=this.allNews,this.allNews.forEach((function(t){t.lang=e.$page.props.locale,t.active=!!t.active,t.external=!!t.external,t.range={start:t.start,end:t.end}}))},computed:{activeCount:function(){var e=0;return this.dataNews.forEach((function(t){t.active&&e++})),e},dragOptions:function(){return{animation:200,group:"description",disabled:!1,ghostClass:"ghost"}}},components:{Head:ee.p3,LmInputText:te.zX,LmInputColor:te.Pt,LmNews:ne.A,LmAccordion:re.A,draggable:oe.H,LmTextarea:te.EZ,LmDatePicker:ie.A},layout:Q.A,methods:{save:function(){var e=this;this.dataNews.forEach((function(e){e.range?(e.start=e.range.start,e.end=e.range.end):(e.start=null,e.end=null)})),(0,ee.mN)(this.dataNews).post(route("admin.news.update",{commune:this.$page.props.commune.slug}),{onSuccess:function(){e.$inertia.reload({only:["allNews"]}),e.dataNews=e.allNews,e.allNews.forEach((function(t){t.lang=e.$page.props.locale,t.active=!!t.active,t.external=!!t.external,t.range={start:t.start,end:t.end}}))}})},deleteNews:function(e){var t=this;confirm(this.__("Diesen Beitrag löschen?"))&&(0,ee.mN)({id:e}).post(route("admin.news.delete",{commune:this.$page.props.commune.slug}),{onSuccess:function(){t.$inertia.get("")}})},updateOrder:function(){for(var e=0;e<this.dataNews.length;e++)this.dataNews[e].order=e+1},checkCount:function(e){this.activeCount>2?(e.active=!1,this.emitter.emit("lm-notification",{category:"error",text:"Max. 2 Meldungen können aktiv sein."})):this.emitter.emit("lm-notification-close")},addNew:function(){this.dataNews.unshift({active:!1,lang:this.$page.props.locale,title:{de:"Text der Meldung",fr:"Texte de l'actualité",it:"Testo del messaggio",en:"Message text"},body:{de:"Text der Meldung",fr:"Texte de l'actualité",it:"Testo del messaggio",en:"Message text"},category:"neutral",range:{start:null,end:null},linkname:{de:"Linkname",fr:"Nom du lien",it:"Nome del link",en:"Link name"},url:{de:"",fr:"",it:"",en:""},order:1,external:!1}),this.updateOrder()}}});var se=n(5072),le=n.n(se),ce=n(8980),ue={insert:"head",singleton:!1};le()(ce.A,ue);ce.A.locals;const de=(0,n(6262).A)(ae,[["render",function(e,t,n,Z,Q,ee){var te=(0,r.resolve
2Component)("Head"),ne=(0,r.resolveComponent)("Text"),re=(0,r.resolveComponent)("lm-news"),oe=(0,r.resolveComponent)("lm-input-text"),ie=(0,r.resolveComponent)("lm-textarea"),ae=(0,r.resolveComponent)("lm-date-picker"),se=(0,r.resolveComponent)("lm-accordion"),le=(0,r.resolveComponent)("draggable");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createVNode)(te,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("title",null,(0,r.toDisplayString)(e.__("Aktuelles")),1)]})),_:1}),(0,r.createVNode)(ne,{type:"h1",text:e.__("Aktuelles")},null,8,["text"]),t[7]||(t[7]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createVNode)(ne,{class:"pt-5",type:"h2",text:e.__("Vorschau")},null,8,["text"]),t[8]||(t[8]=(0,r.createElementVNode)("br",null,null,-1)),t[9]||(t[9]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.withDirectives)((0,r.createElementVNode)("span",{class:"pt-5"},(0,r.toDisplayString)(e.__("Keine Meldungen aktiv.")),513),[[r.vShow,e.activeCount<1]]),(0,r.createElementVNode)("div",i,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.dataNews,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:t},[e.active?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[(0,r.createVNode)(re,{category:e.category,title:e.title[e.lang],body:e.body[e.lang],url:e.url[e.lang],linkname:e.linkname[e.lang],newTab:e.external,range:e.range},null,8,["category","title","body","url","linkname","newTab","range"])])):(0,r.createCommentVNode)("",!0)],64)})),128))]),(0,r.createElementVNode)("div",s,[(0,r.createVNode)(ne,{type:"h2",text:e.__("Alle News")},null,8,["text"]),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("button",{class:"btn-secondary mb-6 mr-4",onClick:t[0]||(t[0]=function(){return e.addNew&&e.addNew.apply(e,arguments)})},(0,r.toDisplayString)(e.__("Neue Meldung")),1),(0,r.createElementVNode)("button",{class:"btn-primary mb-6",onClick:t[1]||(t[1]=function(){return e.save&&e.save.apply(e,arguments)})},(0,r.toDisplayString)(e.__("Speichern")),1)])]),(0,r.createVNode)(le,(0,r.mergeProps)({list:e.dataNews,onChange:e.updateOrder,handle:".drag-trigger"},e.dragOptions,{tag:"transition-group","component-data":{tag:"div",type:"transition-group",name:e.drag?null:"flip-list"}}),{default:(0,r.withCtx)((function(){return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.dataNews,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n,class:"text-left"},[(0,r.createVNode)(se,{title:"<i class='hidden md:inline-block bi bi-pencil-square text-sm'></i> ".concat(n.title[e.$page.props.locale]||"Keine Ãbersetzung gefunden"),chevron:!1},{header:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("label",{for:"toogle"+o,class:"flex items-center cursor-pointer py-1 md:py-2 mr-2 md:mr-4"},[(0,r.createElementVNode)("div",u,[(0,r.withDirectives)((0,r.createElementVNode)("input",{id:"toogle"+o,type:"checkbox",class:"sr-only","onUpdate:modelValue":function(e){return n.active=e},onChange:function(t){return e.checkCount(n)}},null,40,d),[[r.vModelCheckbox,n.active]]),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)([[n.active?"bg-lm-light-blue":"bg-slate-400"],"w-10 h-4 rounded-full shadow-inner"])},null,2),t[3]||(t[3]=(0,r.createElementVNode)("div",{class:"dot absolute w-6 h-6 bg-white rounded-full shadow -left-1 -top-1 transition"},null,-1))])],8,c),(0,r.createElementVNode)("div",{class:"drag-trigger px-2 cursor-move",onMousedown:t[2]||(t[2]=function(){return e.closeAcc&&e.closeAcc.apply(e,arguments)})},t[4]||(t[4]=[(0,r.createElementVNode)("i",{class:"bi bi-arrows-move"},null,-1)]),32)])]})),default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",p,[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("button",{onClick:function(e){return n.lang="de"},class:(0,r.normalizeClass)(["pr-2 pt-1 border-transparent",{"border-lm-light-blue text-lm-light-blue":"de"==n.lang}])}," Deutsch ",10,h),(0,r.createElementVNode)("button",{onClick:function(e){return n.lang="fr"},class:(0,r.normalizeClass)(["p-2 pt-1 border-transparent",{"border-lm-light-blue text-lm-light-blue":"fr"==n.lang}])}," Français ",10,f),(0,r.createElementVNode)("button",{onClick:function(e){return n.lang="it"},class:(0,r.normalizeClass)(["p-2 pt-1 border-transparent",{"border-lm-light-blue text-lm-light-blue":"it"==n.lang}])}," Italiano ",10,m),(0,r.createElementVNode)("button",{onClick:function(e){return n.lang="en"},class:(0,r.normalizeClass)(["pl-2 pt-1 border-transparent",{"border-lm-light-blue text-lm-light-blue":"en"==n.lang}])}," English ",10,g)]),(0,r.withDirectives)((0,r.createElementVNode)("div",v,[(0,r.createVNode)(oe,{maxlength:"60",label:e.__("Titel"),modelValue:n.title.de,"onUpdate:modelValue":function(e){return n.title.de=e}},null,8,["label","modelValue","onUpdate:modelValue"]),e.$page.props.errors[o+".title.de"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",y,(0,r.toDisplayString)(e.$page.props.errors[o+".title.de"]),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(ie,{maxlength:"300",label:e.__("Inhalt"),modelValue:n.body.de,"onUpdate:modelValue":function(e){return n.body.de=e}},null,8,["label","modelValue","onUpdate:modelValue"]),e.$page.props.errors[o+".body.de"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",b,(0,r.toDisplayString)(e.$page.props.errors[o+".body.de"]),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(oe,{maxlength:"40",label:e.__("Linkname"),modelValue:n.linkname.de,"onUpdate:modelValue":function(e){return n.linkname.de=e}},null,8,["label","modelValue","onUpdate:modelValue"]),e.$page.props.errors[o+".linkname.de"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",x,(0,r.toDisplayString)(e.$page.props.errors[o+".linkname.de"]),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(oe,{label:e.__("Link"),modelValue:n.url.de,"onUpdate:modelValue":function(e){return n.url.de=e}},null,8,["label","modelValue","onUpdate:modelValue"]),e.$page.props.errors[o+".url.de"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",w,(0,r.toDisplayString)(e.$page.props.errors[o+".url.de"]),1)):(0,r.createCommentVNode)("",!0)],512),[[r.vShow,"de"==n.lang]]),(0,r.withDirectives)((0,r.createElementVNode)("div",k,[(0,r.createVNode)(oe,{maxlength:"60",label:e.__("Titel"),modelValue:n.title.fr,"onUpdate:modelValue":function(e){return n.title.fr=e}},null,8,["label","modelValue","onUpdate:modelValue"]),e.$page.props.errors[o+".title.fr"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",_,(0,r.toDisplayString)(e.$page.props.errors[o+".title.fr"]),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(ie,{maxlength:"300",label:e.__("Inhalt"),modelValue:n.body.fr,"onUpdate:modelValue":function(e){return n.body.fr=e}}
2,null,8,["label","modelValue","onUpdate:modelValue"]),e.$page.props.errors[o+".body.fr"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",E,(0,r.toDisplayString)(e.$page.props.errors[o+".body.fr"]),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(oe,{maxlength:"40",label:e.__("Linkname"),modelValue:n.linkname.fr,"onUpdate:modelValue":function(e){return n.linkname.fr=e}},null,8,["label","modelValue","onUpdate:modelValue"]),e.$page.props.errors[o+".linkname.fr"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",C,(0,r.toDisplayString)(e.$page.props.errors[o+".linkname.fr"]),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(oe,{label:e.__("Link"),modelValue:n.url.fr,"onUpdate:modelValue":function(e){return n.url.fr=e}},null,8,["label","modelValue","onUpdate:modelValue"]),e.$page.props.errors[o+".url.fr"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",N,(0,r.toDisplayString)(e.$page.props.errors[o+".url.fr"]),1)):(0,r.createCommentVNode)("",!0)],512),[[r.vShow,"fr"==n.lang]]),(0,r.withDirectives)((0,r.createElementVNode)("div",S,[(0,r.createVNode)(oe,{maxlength:"60",label:e.__("Titel"),modelValue:n.title.it,"onUpdate:modelValue":function(e){return n.title.it=e}},null,8,["label","modelValue","onUpdate:modelValue"]),e.$page.props.errors[o+".title.it"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",V,(0,r.toDisplayString)(e.$page.props.errors[o+".title.it"]),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(ie,{maxlength:"300",label:e.__("Inhalt"),modelValue:n.body.it,"onUpdate:modelValue":function(e){return n.body.it=e}},null,8,["label","modelValue","onUpdate:modelValue"]),e.$page.props.errors[o+".body.it"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",A,(0,r.toDisplayString)(e.$page.props.errors[o+".body.it"]),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(oe,{maxlength:"40",label:e.__("Linkname"),modelValue:n.linkname.it,"onUpdate:modelValue":function(e){return n.linkname.it=e}},null,8,["label","modelValue","onUpdate:modelValue"]),e.$page.props.errors[o+".linkname.it"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",D,(0,r.toDisplayString)(e.$page.props.errors[o+".linkname.it"]),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(oe,{label:e.__("Link"),modelValue:n.url.it,"onUpdate:modelValue":function(e){return n.url.it=e}},null,8,["label","modelValue","onUpdate:modelValue"]),e.$page.props.errors[o+".url.it"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",M,(0,r.toDisplayString)(e.$page.props.errors[o+".url.it"]),1)):(0,r.createCommentVNode)("",!0)],512),[[r.vShow,"it"==n.lang]]),(0,r.withDirectives)((0,r.createElementVNode)("div",T,[(0,r.createVNode)(oe,{maxlength:"60",label:e.__("Titel"),modelValue:n.title.en,"onUpdate:modelValue":function(e){return n.title.en=e}},null,8,["label","modelValue","onUpdate:modelValue"]),e.$page.props.errors[o+".title.en"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",B,(0,r.toDisplayString)(e.$page.props.errors[o+".title.en"]),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(ie,{maxlength:"300",label:e.__("Inhalt"),modelValue:n.body.en,"onUpdate:modelValue":function(e){return n.body.en=e}},null,8,["label","modelValue","onUpdate:modelValue"]),e.$page.props.errors[o+".body.en"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",O,(0,r.toDisplayString)(e.$page.props.errors[o+".body.en"]),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(oe,{maxlength:"40",label:"Linkname",modelValue:n.linkname.en,"onUpdate:modelValue":function(e){return n.linkname.en=e}},null,8,["modelValue","onUpdate:modelValue"]),e.$page.props.errors[o+".linkname.en"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",P,(0,r.toDisplayString)(e.$page.props.errors[o+".linkname.en"]),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(oe,{label:e.__("Link"),modelValue:n.url.en,"onUpdate:modelValue":function(e){return n.url.en=e}},null,8,["label","modelValue","onUpdate:modelValue"]),e.$page.props.errors[o+".url.en"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",L,(0,r.toDisplayString)(e.$page.props.errors[o+".url.en"]),1)):(0,r.createCommentVNode)("",!0)],512),[[r.vShow,"en"==n.lang]]),(0,r.createElementVNode)("label",I,[(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"checkbox","onUpdate:modelValue":function(e){return n.external=e}},null,8,j),[[r.vModelCheckbox,n.external]]),(0,r.createElementVNode)("span",R,(0,r.toDisplayString)(e.__("In neuem Tab öffnen")),1)]),(0,r.createElementVNode)("div",$,[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("label",null,[(0,r.createElementVNode)("span",z,(0,r.toDisplayString)(e.__("Kategorie")),1),(0,r.withDirectives)((0,r.createElementVNode)("select",{"onUpdate:modelValue":function(e){return n.category=e}},[(0,r.createElementVNode)("option",H,(0,r.toDisplayString)(e.__("Erfolg")),1),(0,r.createElementVNode)("option",U,(0,r.toDisplayString)(e.__("Warnung")),1),(0,r.createElementVNode)("option",W,(0,r.toDisplayString)(e.__("Fehler")),1),(0,r.createElementVNode)("option",q,(0,r.toDisplayString)(e.__("Information")),1)],8,F),[[r.vModelSelect,n.c
2ategory]])]),e.$page.props.errors[o+".category"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",Y,(0,r.toDisplayString)(e.$page.props.errors[o+".category"]),1)):(0,r.createCommentVNode)("",!0),t[5]||(t[5]=(0,r.createElementVNode)("br",null,null,-1)),t[6]||(t[6]=(0,r.createElementVNode)("br",null,null,-1))])]),(0,r.createElementVNode)("div",G,[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("label",null,[(0,r.createElementVNode)("span",K,(0,r.toDisplayString)(e.__("Date d'activité de l'actualité")),1),(0,r.createVNode)(ae,{value:n.range,range:n.range,"onUpdate:range":function(e){return n.range=e},"show-time":!1},null,8,["value","range","onUpdate:range"])])])]),(0,r.createElementVNode)("div",J,[(0,r.createElementVNode)("button",{class:"text-red-500 self-end",onClick:function(t){return e.deleteNews(n.id)}},(0,r.toDisplayString)(e.__("Löschen")),9,X)])])]})),_:2},1032,["title"])])})),128))]})),_:1},16,["list","onChange","component-data"])])}]])},251:(e,t)=>{t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?o-1:0,p=n?-1:1,h=e[t+d];for(d+=p,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=p,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=c}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=f,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+h]=255&a,h+=f,a/=256,c-=8);e[n+h-f]|=128*m}},271:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(6301),o={class:"max-w-7xl mx-auto py-10 sm:px-6 lg:px-8"};var i=n(641),a=n(2264),s=n(95);const l=(0,i.pM)({props:["tokens","availablePermissions","defaultPermissions"],components:{ApiTokenManager:a.default,AppLayout:s.A}});const c=(0,n(6262).A)(l,[["render",function(e,t,n,i,a,s){var l=(0,r.resolveComponent)("Text"),c=(0,r.resolveComponent)("api-token-manager"),u=(0,r.resolveComponent)("app-layout");return(0,r.openBlock)(),(0,r.createBlock)(u,{title:"API Tokens"},{header:(0,r.withCtx)((function(){return[(0,r.createVNode)(l,{type:"h2",text:"API Tokens"})]})),default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",o,[(0,r.createVNode)(c,{tokens:e.tokens,"available-permissions":e.availablePermissions,"default-permissions":e.defaultPermissions},null,8,["tokens","available-permissions","default-permissions"])])])]})),_:1})}]])},306:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(6301),o={class:"mobilenavgradient w-full px-12 pt-12"},i={class:"py-2"},a={class:"py-2"};const s=(0,n(641).pM)({});const l=(0,n(6262).A)(s,[["render",function(e,t,n,s,l,c){var u=(0,r.resolveComponent)("Link");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createVNode)(u,{class:(0,r.normalizeClass)([{activeroutemobile:e.route().current("manager.index")},"p-2 text-white hover:underline text-lg"]),href:e.route("manager.index")},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Home")),1)]})),_:1},8,["class","href"])]),(0,r.createElementVNode)("div",a,[(0,r.createVNode)(u,{class:(0,r.normalizeClass)([{activeroutemobile:e.route().current("manager.communes")},"p-2 text-white hover:underline text-lg"]),href:e.route("manager.communes")},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Gemeinden")),1)]})),_:1},8,["class","href"])])])}]])},312:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ds});var r=n(6301),o={class:"mt-5"},i={class:"bg-white p-6 rounded-lg shadow-sm border border-gray-200 mb-8"},a={class:"font-bold text-lg mb-4 text-lm-blue"},s={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},l={class:"font-semibold mb-2 text-sm text-gray-600"},c={class:"flex flex-wrap gap-3"},u=["value"],d={class:"text-sm"},p={class:"font-semibold mb-2 text-sm text-gray-600"},h={class:"flex flex-wrap gap-3"},f=["value"],m={class:"text-sm"},g={class:"mt-6 border-t pt-4"},v=["href"],y={class:"btn-primary bg-lm-blue cursor-pointer hover:bg-lm-light-blue text-white px-6 py-2 rounded shadow transition-colors"},b={class:"mt-5 text-2xl font-bold mb-4"},x={class:"grid grid-cols-1 lg:grid-cols-2 gap-6"},w={class:"grid grid-cols-1 lg:grid-cols-1"};var k=n(641),_=n(5720),E=(n(8646),n(9234)),C={ref:"canvas",height:"400px"};function N(e){return e+.5|0}const S=(e,t,n)=>Math.max(Math.min(e,n),t);
vendor: 16,329 bytes, line 2
2function V(e){return S(N(2.55*e),0,255)}function A(e){return S(N(255*e),0,255)}function D(e){return S(N(e/2.55)/100,0,1)}function M(e){return S(N(100*e),0,100)}const T={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},B=[..."0123456789ABCDEF"],O=e=>B[15&e],P=e=>B[(240&e)>>4]+B[15&e],L=e=>(240&e)>>4==(15&e);function I(e){var t=(e=>L(e.r)&&L(e.g)&&L(e.b)&&L(e.a))(e)?O:P;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const j=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function R(e,t,n){const r=t*Math.min(n,1-n),o=(t,o=(t+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function $(e,t,n){const r=(r,o=(r+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function z(e,t,n){const r=R(e,1,.5);let o;for(t+n>1&&(o=1/(t+n),t*=o,n*=o),o=0;o<3;o++)r[o]*=1-t-n,r[o]+=t;return r}function F(e){const t=e.r/255,n=e.g/255,r=e.b/255,o=Math.max(t,n,r),i=Math.min(t,n,r),a=(o+i)/2;let s,l,c;return o!==i&&(c=o-i,l=a>.5?c/(2-o-i):c/(o+i),s=function(e,t,n,r,o){return e===o?(t-n)/r+(t<n?6:0):t===o?(n-e)/r+2:(e-t)/r+4}(t,n,r,c,o),s=60*s+.5),[0|s,l||0,a]}function H(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(A)}function U(e,t,n){return H(R,e,t,n)}function W(e){return(e%360+360)%360}function q(e){const t=j.exec(e);let n,r=255;if(!t)return;t[5]!==n&&(r=t[6]?V(+t[5]):A(+t[5]));const o=W(+t[2]),i=+t[3]/100,a=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return H(z,e,t,n)}(o,i,a):"hsv"===t[1]?function(e,t,n){return H($,e,t,n)}(o,i,a):U(o,i,a),{r:n[0],g:n[1],b:n[2],a:r}}const Y={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},G={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let K;function J(e){K||(K=function(){const e={},t=Object.keys(G),n=Object.keys(Y);let r,o,i,a,s;for(r=0;r<t.length;r++){for(a=s=t[r],o=0;o<n.length;o++)i=n[o],s=s.replace(i,Y[i]);i=parseInt(G[a],16),e[s]=[i>>16&255,i>>8&255,255&i]}return e}(),K.transparent=[0,0,0,0]);const t=K[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const X=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Z=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,Q=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function ee(e,t,n){if(e){let r=F(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=U(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function te(e,t){return e?Object.assign(t||{},e):e}function ne(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=A(e[3]))):(t=te(e,{r:0,g:0,b:0,a:1})).a=A(t.a),t}function re(e){return"r"===e.charAt(0)?function(e){const t=X.exec(e);let n,r,o,i=255;if(t){if(t[7]!==n){const e=+t[7];i=t[8]?V(e):S(255*e,0,255)}return n=+t[1],r=+t[3],o=+t[5],n=255&(t[2]?V(n):S(n,0,255)),r=255&(t[4]?V(r):S(r,0,255)),o=255&(t[6]?V(o):S(o,0,255)),{r:n,g:r,b:o,a:i}}}(e):q(e)}class oe{constructor(e){if(e instanceof oe)return e;const t=typeof e;let n;var r,o,i;"object"===t?n=ne(e):"string"===t&&(i=(r=e).length,"#"===r[0]&&(4===i||5===i?o={r:255&17*T[r[1]],g:255&17*T[r[2]],b:255&17*T[r[3]],a:5===i?17*T[r[4]]:255}:7!==i&&9!==i||(o={r:T[r[1]]<<4|T[r[2]],g:T[r[3]]<<4|T[r[4]],b:T[r[5]]<<4|T[r[6]],a:9===i?T[r[7]]<<4|T[r[8]]:255})),n=o||J(e)||re(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=te(this._rgb);return e&&(e.a=D(e.a)),e}set rgb(e){this._rgb=ne(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${D(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?I(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=F(e),n=t[0],r=M(t[1]),o=M(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${o}%, ${D(e.a)})`:`hsl(${n}, ${r}%, ${o}%)`}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,r=e.rgb;let o;const i=t===o?.5:t,a=2*i-1,s=n.a-r.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;o=1-l,n.r=255&l*n.r+o*r.r+.5,n.g=255&l*n.g+o*r.g+.5,n.b=255&l*n.b+o*r.b+.5,n.a=i*n.a+(1-i)*r.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const r=Q(D(e.r)),o=Q(D(e.g)),i=Q(D(e.b));return{r:A(Z(r+n*(Q(D(t.r))-r))),g:A(Z(o+n*(Q(D(t.g))-o))),b:A(Z(i+n*(Q(D(t.b))-i))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new oe(this.rgb)}alpha(e){return this._rgb.a=A(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=N(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return ee(this._rgb,2,e),this}darken(e){return ee(this._rgb,2,-e),this}saturate(e){return ee(this._rgb,1,e),this}desaturate(e){return ee(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=F(e);n[0]=W(n[0]+t),n=U(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}function ie(){}const ae=(()=>{let e=0;return()=>e++})();function se(e){return null==e}function le(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function ce(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function ue(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function de(e,t){return ue(e)?e:t}function pe(e,t){return void 0===e?t:e}const he=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function fe(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function me(e,t,n,r){let o,i,a;if(le(e))if(i=e.length,r)for(o=i-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;o<i;o++)t.call(n,e[o],o);else if(ce(e))for(a=Object.keys(e),i=a.length,o=0;o<i;o++)t.call(n,e[a[o]],a[o])}function ge(e,t){let n,r,o,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(o=e[n],i=t[n],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function ve(e){if(le(e))return e.map(ve);if(ce(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let o=0;for(;o<r;++o)t[n[o]]=ve(e[n[o]]);return t}return e}function ye(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function be(e,t,n,r){if(!ye(e))return;const o=t[e],i=n[e];ce(o)&&ce(i)?xe(o,i,r):t[e]=ve(i)}function xe(e,t,n){const r=le(t)?t:[t],o=r.length;if(!ce(e))return e;const i=(n=n||{}).merger||be;let a;for(let t=0;t<o;++t){if(a=r[t],!ce(a))continue;const o=Object.keys(a);for(let t=0,r=o.length;t<r;++t)i(o[t],e,a,n)}return e}function we(e,t){return xe(e,t,{merger:ke})}function ke(e,t,n){if(!ye(e))return;const r=t[e],o=n[e];ce(r)&&ce(o)?we(r,o):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=ve(o))}const _e={"":e=>e,x:e=>e.x,y:e=>e.y};function Ee(e,t){const n=_e[t]||(_e[t]=function(e){const t=function(e){const t=e.split("."),n=[];let r="";for(const e of t)r+=e,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function Ce(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Ne=e=>void 0!==e,Se=e=>"function"==typeof e,Ve=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};const Ae=Math.PI,De=2*Ae,Me=De+Ae,Te=Number.POSITIVE_INFINITY,Be=Ae/180,Oe=Ae/2,Pe=Ae/4,Le=2*Ae/3,Ie=Math.log10,je=Math.sign;function Re(e,t,n){return Math.abs(e-t)<n}function $e(e){const t=Math.round(e);e=Re(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Ie(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function ze(e){return!function(e){return"symbol"==typeof e||"object"==typeof e&&null!==e&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function Fe(e,t,n){let r,o,i;for(r=0,o=e.length;r<o;r++)i=e[r][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}function He(e){return e*(Ae/180)}function Ue(e){return e*(180/Ae)}function We(e){if(!ue(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function qe(e,t){const n=t.x-e.x,r=t.y-e.y,o=Math.sqrt(n*n+r*r);let i=Math.atan2(r,n);return i<-.5*Ae&&(i+=De),{angle:i,distance:o}}function Ye(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Ge(e,t){return(e-t+Me)%De-Ae}function Ke(e){return(e%De+De)%De}function Je(e,t,n,r){const o=Ke(e),i=Ke(t),a=Ke(n),s=Ke(i-o),l=Ke(a-o),c=Ke(o-i),u=Ke(o-a);return o===i||o===a||r&&i===a||s>l&&c<u}function Xe(e,t,n){return Math.max(t,Math.min(n,e))}function Ze(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Qe(e,t,n){n=n||(n=>e[n]<t);let r,o=e.length-1,i=0;for(;o-i>1;)r=i+o>>1,n(r)?i=r:o=r;return{lo:i,hi:o}}const et=(e,t,n,r)=>Qe(e,n,r?r=>{const o=e[r][t];return o<n||o===n&&e[r+1][t]===n}:r=>e[r][t]<n),tt=(e,t,n)=>Qe(e,n,(r=>e[r][t]>=n));const nt=["push","pop","shift","splice","unshift"];function rt(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(t);-1!==o&&r.splice(o,1),r.length>0||(nt.forEach((t=>{delete e[t]})),delete e._chartjs)}function ot(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const it="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function at(e,t){let n=[],r=!1;return function(...o){n=o,r||(r=!0,it.call(window,(()=>{r=!1,e.apply(t,n)})))}}const st=e=>"start"===e?"left":"end"===e?"right":"center",lt=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;function ct(e,t,n){const r=t.length;let o=0,i=r;if(e._sorted){const{iScale:a,vScale:s,_parsed:l}=e,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=a.axis,{min:d,max:p,minDefined:h,maxDefined:f}=a.getUserBounds();if(h){if(o=Math.min(et(l,u,d).lo,n?r:et(t,u,a.getPixelForValue(d)).lo),c){const e=l.slice(0,o+1).reverse().findIndex((e=>!se(e[s.axis])));o-=Math.max(0,e)}o=Xe(o,0,r-1)}if(f){let e=Math.max(et(l,a.axis,p,!0).hi+1,n?0:et(t,u,a.getPixelForValue(p),!0).hi+1);if(c){const t=l.slice(e-1).findIndex((e=>!se(e[s.axis])));e+=Math.max(0,t)}i=Xe(e,o,r)-o}else i=r-o}return{start:o,count:i}}function ut(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,o={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=o,!0;const i=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,o),i}const dt=e=>0===e||1===e,pt=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*De/n),ht=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*De/n)+1,ft={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*Oe),easeOutSine:e=>Math.sin(e*Oe),easeInOutSine:e=>-.5*(Math.cos(Ae*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>dt(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>dt(e)?e:pt(e,.075,.3),easeOutElastic:e=>dt(e)?e:ht(e,.075,.3),easeInOutElastic(e){const t=.1125;return dt(e)?e:e<.5?.5*pt(2*e,t,.45):.5+.5*ht(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-ft.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*ft.easeInBounce(2*e):.5*ft.easeOutBounce(2*e-1)+.5};function mt(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function gt(e){return mt(e)?e:new oe(e)}function vt(e){return mt(e)?e:new oe(e).saturate(.5).darken(.1).hexString()}const yt=["x","y","borderWidth","radius","tension"],bt=["color","borderColor","backgroundColor"];const xt=new Map;function wt(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let r=xt.get(n);return r||(r=new Intl.NumberFormat(e,t),xt.set(n,r)),r}(t,n).format(e)}const kt={values:e=>le(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const r=this.chart.options.locale;let o,i=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(o="scientific"),i=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}const a=Ie(Math.abs(i)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),wt(e,r,l)},logarithmic(e,t,n){if(0===e)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(Ie(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?kt.numeric.call(this,e,t,n):""}};var _t={formatters:kt};const Et=Object.create(null),Ct=Object.create(null);function Nt(e,t){if(!t)return e;const n=t.split(".");for(let t=0,r=n.length;t<r;++t){const r=n[t];e=e[r]||(e[r]=Object.create(null))}return e}function St(e,t,n){return"string"==typeof t?xe(Nt(e,t),n):xe(Nt(e,""),t)}class Vt{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={}
vendor: 4,381 bytes, line 2
2,this.hoverBackgroundColor=(e,t)=>vt(t.backgroundColor),this.hoverBorderColor=(e,t)=>vt(t.borderColor),this.hoverColor=(e,t)=>vt(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return St(this,e,t)}get(e){return Nt(this,e)}describe(e,t){return St(Ct,e,t)}override(e,t){return St(Et,e,t)}route(e,t,n,r){const o=Nt(this,e),i=Nt(this,n),a="_"+t;Object.defineProperties(o,{[a]:{value:o[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[a],t=i[r];return ce(e)?Object.assign({},t,e):pe(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach((e=>e(this)))}}var At=new Vt({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:bt},numbers:{type:"number",properties:yt}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:_t.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function Dt(e,t,n,r,o){let i=t[o];return i||(i=t[o]=e.measureText(o).width,n.push(o)),i>r&&(r=i),r}function Mt(e,t,n,r){let o=(r=r||{}).data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(o=r.data={},i=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let a=0;const s=n.length;let l,c,u,d,p;for(l=0;l<s;l++)if(d=n[l],null==d||le(d)){if(le(d))for(c=0,u=d.length;c<u;c++)p=d[c],null==p||le(p)||(a=Dt(e,o,i,a,p))}else a=Dt(e,o,i,a,d);e.restore();const h=i.length/2;if(h>n.length){for(l=0;l<h;l++)delete o[i[l]];i.splice(0,h)}return a}function Tt(e,t,n){const r=e.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((t-o)*r)/r+o}function Bt(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Ot(e,t,n,r){Pt(e,t,n,r,null)}function Pt(e,t,n,r,o){let i,a,s,l,c,u,d,p;const h=t.pointStyle,f=t.rotation,m=t.radius;let g=(f||0)*Be;if(h&&"object"==typeof h&&(i=h.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,r),e.rotate(g),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void e.restore();if(!(isNaN(m)||m<=0)){switch(e.beginPath(),h){default:o?e.ellipse(n,r,o/2,m,0,0,De):e.arc(n,r,m,0,De),e.closePath();break;case"triangle":u=o?o/2:m,e.moveTo(n+Math.sin(g)*u,r-Math.cos(g)*m),g+=Le,e.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*m),g+=Le,e.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*m),e.closePath();break;
vendor: 4,907 bytes, line 2
2case"rectRounded":c=.516*m,l=m-c,a=Math.cos(g+Pe)*l,d=Math.cos(g+Pe)*(o?o/2-c:l),s=Math.sin(g+Pe)*l,p=Math.sin(g+Pe)*(o?o/2-c:l),e.arc(n-d,r-s,c,g-Ae,g-Oe),e.arc(n+p,r-a,c,g-Oe,g),e.arc(n+d,r+s,c,g,g+Oe),e.arc(n-p,r+a,c,g+Oe,g+Ae),e.closePath();break;case"rect":if(!f){l=Math.SQRT1_2*m,u=o?o/2:l,e.rect(n-u,r-l,2*u,2*l);break}g+=Pe;case"rectRot":d=Math.cos(g)*(o?o/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(o?o/2:m),e.moveTo(n-d,r-s),e.lineTo(n+p,r-a),e.lineTo(n+d,r+s),e.lineTo(n-p,r+a),e.closePath();break;case"crossRot":g+=Pe;case"cross":d=Math.cos(g)*(o?o/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(o?o/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"star":d=Math.cos(g)*(o?o/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(o?o/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a),g+=Pe,d=Math.cos(g)*(o?o/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(o?o/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"line":a=o?o/2:Math.cos(g)*m,s=Math.sin(g)*m,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(g)*(o?o/2:m),r+Math.sin(g)*m);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function Lt(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function It(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function jt(e){e.restore()}function Rt(e,t,n,r,o){if(!t)return e.lineTo(n.x,n.y);if("middle"===o){const r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else"after"===o!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function $t(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function zt(e,t,n,r,o){if(o.strikethrough||o.underline){const i=e.measureText(r),a=t-i.actualBoundingBoxLeft,s=t+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,c=n+i.actualBoundingBoxDescent,u=o.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=o.decorationWidth||2,e.moveTo(a,u),e.lineTo(s,u),e.stroke()}}function Ft(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Ht(e,t,n,r,o,i={}){const a=le(t)?t:[t],s=i.strokeWidth>0&&""!==i.strokeColor;let l,c;for(e.save(),e.font=o.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),se(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,i),l=0;l<a.length;++l)c=a[l],i.backdrop&&Ft(e,i.backdrop),s&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),se(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(c,n,r,i.maxWidth)),e.fillText(c,n,r,i.maxWidth),zt(e,n,r,c,i),r+=Number(o.lineHeight);e.restore()}function Ut(e,t){const{x:n,y:r,w:o,h:i,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*Ae,Ae,!0),e.lineTo(n,r+i-a.bottomLeft),e.arc(n+a.bottomLeft,r+i-a.bottomLeft,a.bottomLeft,Ae,Oe,!0),e.lineTo(n+o-a.bottomRight,r+i),e.arc(n+o-a.bottomRight,r+i-a.bottomRight,a.bottomRight,Oe,0,!0),e.lineTo(n+o,r+a.topRight),e.arc(n+o-a.topRight,r+a.topRight,a.topRight,0,-Oe,!0),e.lineTo(n+a.topLeft,r)}const Wt=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,qt=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Yt(e,t){const n=(""+e).match(Wt);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}function Gt(e,t){const n={},r=ce(t),o=r?Object.keys(t):t,i=ce(e)?r?n=>pe(e[n],e[t[n]]):t=>e[t]:()=>e;for(const e of o)n[e]=+i(e)||0;return n}function Kt(e){return Gt(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Jt(e){return Gt(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Xt(e){const t=Kt(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Zt(e,t){e=e||{},t=t||At.font;let n=pe(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let r=pe(e.style,t.style);r&&!(""+r).match(qt)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const o={family:pe(e.family,t.family),lineHeight:Yt(pe(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:pe(e.weight,t.weight),string:""};return o.string=function(e){return!e||se(e.size)||se(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(o),o}function Qt(e,t,n,r){let o,i,a,s=!0;for(o=0,i=e.length;o<i;++o)if(a=e[o],void 0!==a&&(void 0!==t&&"function"==typeof a&&(a=a(t),s=!1),void 0!==n&&le(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function en(e,t){return Object.assign(Object.create(e),t)}function tn(e,t=[""],n,r,o=()=>e[0]){const i=n||e;void 0===r&&(r=hn("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:r,_getTarget:
vendor: 6,663 bytes, line 2
2o,override:n=>tn([n,...e],t,i,r)};return new Proxy(a,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>sn(n,r,(()=>function(e,t,n,r){let o;for(const i of t)if(o=hn(on(i,e),n),void 0!==o)return an(e,o)?dn(n,r,e,o):o}(r,t,e,n))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>fn(e).includes(t),ownKeys:e=>fn(e),set(e,t,n){const r=e._storage||(e._storage=o());return e[t]=r[t]=n,delete e._keys,!0}})}function nn(e,t,n,r){const o={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:rn(e,r),setContext:t=>nn(e,t,n,r),override:o=>nn(e.override(o),t,n,r)};return new Proxy(o,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>sn(e,t,(()=>function(e,t,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:a}=e;let s=r[t];Se(s)&&a.isScriptable(t)&&(s=function(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(i,a||r);s.delete(e),an(e,l)&&(l=dn(o._scopes,o,e,l));return l}(t,s,e,n));le(s)&&s.length&&(s=function(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:s}=n;if(void 0!==i.index&&r(e))return t[i.index%t.length];if(ce(t[0])){const n=t,r=o._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=dn(r,o,e,l);t.push(nn(n,i,a&&a[e],s))}}return t}(t,s,e,a.isIndexable));an(t,s)&&(s=nn(s,o,i&&i[t],a));return s}(e,t,n))),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,r)=>(e[n]=r,delete t[n],!0)})}function rn(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:o=t.allKeys}=e;return{allKeys:o,scriptable:n,indexable:r,isScriptable:Se(n)?n:()=>n,isIndexable:Se(r)?r:()=>r}}const on=(e,t)=>e?e+Ce(t):t,an=(e,t)=>ce(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function sn(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];const r=n();return e[t]=r,r}function ln(e,t,n){return Se(e)?e(t,n):e}const cn=(e,t)=>!0===e?t:"string"==typeof e?Ee(t,e):void 0;function un(e,t,n,r,o){for(const i of t){const t=cn(n,i);if(t){e.add(t);const i=ln(t._fallback,n,o);if(void 0!==i&&i!==n&&i!==r)return i}else if(!1===t&&void 0!==r&&n!==r)return null}return!1}function dn(e,t,n,r){const o=t._rootScopes,i=ln(t._fallback,n,r),a=[...e,...o],s=new Set;s.add(r);let l=pn(s,a,n,i||n,r);return null!==l&&((void 0===i||i===n||(l=pn(s,a,i,l,r),null!==l))&&tn(Array.from(s),[""],o,i,(()=>function(e,t,n){const r=e._getTarget();t in r||(r[t]={});const o=r[t];if(le(o)&&ce(n))return n;return o||{}}(t,n,r))))}function pn(e,t,n,r,o){for(;n;)n=un(e,t,n,r,o);return n}function hn(e,t){for(const n of t){if(!n)continue;const t=n[e];if(void 0!==t)return t}}function fn(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}function mn(e,t,n,r){const{iScale:o}=e,{key:i="r"}=this._parsing,a=new Array(r);let s,l,c,u;for(s=0,l=r;s<l;++s)c=s+n,u=t[c],a[s]={r:o.parse(Ee(u,i),c)};return a}const gn=Number.EPSILON||1e-14,vn=(e,t)=>t<e.length&&!e[t].skip&&e[t],yn=e=>"x"===e?"y":"x";function bn(e,t,n,r){const o=e.skip?t:e,i=t,a=n.skip?t:n,s=Ye(i,o),l=Ye(a,i);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,p=r*u;return{previous:{x:i.x-d*(a.x-o.x),y:i.y-d*(a.y-o.y)},next:{x:i.x+p*(a.x-o.x),y:i.y+p*(a.y-o.y)}}}function xn(e,t="x"){const n=yn(t),r=e.length,o=Array(r).fill(0),i=Array(r);let a,s,l,c=vn(e,0);for(a=0;a<r;++a)if(s=l,l=c,c=vn(e,a+1),l){if(c){const e=c[t]-l[t];o[a]=0!==e?(c[n]-l[n])/e:0}i[a]=s?c?je(o[a-1])!==je(o[a])?0:(o[a-1]+o[a])/2:o[a-1]:o[a]}!function(e,t,n){const r=e.length;let o,i,a,s,l,c=vn(e,0);for(let u=0;u<r-1;++u)l=c,c=vn(e,u+1),l&&c&&(Re(t[u],0,gn)?n[u]=n[u+1]=0:(o=n[u]/t[u],i=n[u+1]/t[u],s=Math.pow(o,2)+Math.pow(i,2),s<=9||(a=3/Math.sqrt(s),n[u]=o*a*t[u],n[u+1]=i*a*t[u])))}(e,o,i),function(e,t,n="x"){const r=yn(n),o=e.length;let i,a,s,l=vn(e,0);for(let c=0;c<o;++c){if(a=s,s=l,l=vn(e,c+1),!s)continue;const o=s[n],u=s[r];a&&(i=(o-a[n])/3,s[`cp1${n}`]=o-i,s[`cp1${r}`]=u-i*t[c]),l&&(i=(l[n]-o)/3,s[`cp2${n}`]=o+i,s[`cp2${r}`]=u+i*t[c])}}(e,i,t)}function wn(e,t,n){return Math.max(Math.min(e,n),t)}function kn(e,t,n,r,o){let i,a,s,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)xn(e,o);else{let n=r?e[e.length-1]:e[0];for(i=0,a=e.length;i<a;++i)s=e[i],l=bn(n,s,e[Math.min(i+1,a-(r?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}t.capBezierPoints&&function(e,t){let n,r,o,i,a,s=Lt(e[0],t);for(n=0,r=e.length;n<r;++n)a=i,i=s,s=n<r-1&&Lt(e[n+1],t),i&&(o=e[n],a&&(o.cp1x=wn(o.cp1x,t.left,t.right),o.cp1y=wn(o.cp1y,t.top,t.bottom)),s&&(o.cp2x=wn(o.cp2x,t.left,t.right),o.cp2y=wn(o.cp2y,t.top,t.bottom)))}(e,n)}function _n(){return"undefined"!=typeof window&&"undefined"!=typeof document}function En(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function Cn(e,t,n){let r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}const Nn=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);const Sn=["top","right","bottom","left"];function Vn(e,t,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=Sn[o];r[i]=parseFloat(e[t+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function An(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,o=Nn(n),i="border-box"===o.boxSizing,a=Vn(o,"padding"),s=Vn(o,"border","width"),{x:l,y:c,box:u}=function(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:o,offsetY:i}=r;let a,s,l=!1;if(((e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot))(o,i,e.target))a=o,s=i;else{const e=t.getBoundingClientRect();a=r.clientX-e.left,s=r.clientY-e.top,l=!0}return{x:a,y:s,box:l}}(e,n),d=a.left+(u&&s.left),p=a.top+(u&&s.top);let{width:h,height:f}=t;return i&&(h-=a.width+s.width,f-=a.height+s.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((c-p)/f*n.height/r)}}const Dn=e=>Math.round(10*e)/10;function Mn(e,t,n,r){const o=Nn(e),i=Vn(o,"margin"),a=Cn(o.maxWidth,e,"clientWidth")||Te,s=Cn(o.maxHeight,e,"clientHeight")||Te,l=function(e,t,n){let r,o;if(void 0===t||void 0===n){const i=e&&En(e);if(i){const e=i.getBoundingClientRect(),a=Nn(i),s=Vn(a,"border","width"),l=Vn(a,"padding");
vendor: 4,812 bytes, line 2
2t=e.width-l.width-s.width,n=e.height-l.height-s.height,r=Cn(a.maxWidth,i,"clientWidth"),o=Cn(a.maxHeight,i,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||Te,maxHeight:o||Te}}(e,t,n);let{width:c,height:u}=l;if("content-box"===o.boxSizing){const e=Vn(o,"border","width"),t=Vn(o,"padding");c-=t.width+e.width,u-=t.height+e.height}c=Math.max(0,c-i.width),u=Math.max(0,r?c/r:u-i.height),c=Dn(Math.min(c,a,l.maxWidth)),u=Dn(Math.min(u,s,l.maxHeight)),c&&!u&&(u=Dn(c/2));return(void 0!==t||void 0!==n)&&r&&l.height&&u>l.height&&(u=l.height,c=Dn(Math.floor(u*r))),{width:c,height:u}}function Tn(e,t,n){const r=t||1,o=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||a.height!==o||a.width!==i)&&(e.currentDevicePixelRatio=r,a.height=o,a.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0)}const Bn=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};_n()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function On(e,t){const n=function(e,t){return Nn(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Pn(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Ln(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function In(e,t,n,r){const o={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},a=Pn(e,o,n),s=Pn(o,i,n),l=Pn(i,t,n),c=Pn(a,s,n),u=Pn(s,l,n);return Pn(c,u,n)}function jn(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function Rn(e,t){let n,r;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function $n(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function zn(e){return"angle"===e?{between:Je,compare:Ge,normalize:Ke}:{between:Ze,compare:(e,t)=>e-t,normalize:e=>e}}function Fn({start:e,end:t,count:n,loop:r,style:o}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n==0,style:o}}function Hn(e,t,n){if(!n)return[e];const{property:r,start:o,end:i}=n,a=t.length,{compare:s,between:l,normalize:c}=zn(r),{start:u,end:d,loop:p,style:h}=function(e,t,n){const{property:r,start:o,end:i}=n,{between:a,normalize:s}=zn(r),l=t.length;let c,u,{start:d,end:p,loop:h}=e;if(h){for(d+=l,p+=l,c=0,u=l;c<u&&a(s(t[d%l][r]),o,i);++c)d--,p--;d%=l,p%=l}return p<d&&(p+=l),{start:d,end:p,loop:h,style:e.style}}(e,t,n),f=[];let m,g,v,y=!1,b=null;const x=()=>y||l(o,v,m)&&0!==s(o,v),w=()=>!y||0===s(i,m)||l(i,v,m);for(let e=u,n=u;e<=d;++e)g=t[e%a],g.skip||(m=c(g[r]),m!==v&&(y=l(m,o,i),null===b&&x()&&(b=0===s(m,o)?e:n),null!==b&&w()&&(f.push(Fn({start:b,end:e,loop:p,count:a,style:h})),b=null),n=e,v=m));return null!==b&&f.push(Fn({start:b,end:d,loop:p,count:a,style:h})),f}function Un(e,t){const n=[],r=e.segments;for(let o=0;o<r.length;o++){const i=Hn(r[o],e.points,t);i.length&&n.push(...i)}return n}function Wn(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){const o=e._chart.getContext(),i=qn(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,c=[];let u=i,d=t[0].start,p=d;function h(e,t,r,o){const i=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=i;for(;n[t%l].skip;)t+=i;e%l!=t%l&&(c.push({start:e%l,end:t%l,loop:r,style:o}),u=o,d=t%l)}}for(const e of t){d=s?d:e.start;let t,i=n[d%l];for(p=d+1;p<=e.end;p++){const s=n[p%l];t=qn(r.setContext(en(o,{type:"segment",p0:i,p1:s,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:a}))),Yn(t,u)&&h(d,p-1,e.loop,u),i=s,u=t}d<p-1&&h(d,p-1,e.loop,u)}return c}(e,t,n,r):t}function qn(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Yn(e,t){if(!t)return!1;const n=[],r=function(e,t){return mt(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,r)!==JSON.stringify(t,r)}class Gn{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,r){const o=t.listeners[r],i=t.duration;o.forEach((r=>r({chart:e,initial:t.initial,numSteps:i,currentStep:Math.min(n-t.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=it.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(e=Date.now()){let t=0;
vendor: 14,618 bytes, line 2
2this._charts.forEach(((n,r)=>{if(!n.running||!n.items.length)return;const o=n.items;let i,a=o.length-1,s=!1;for(;a>=0;--a)i=o[a],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(e),s=!0):(o[a]=o[o.length-1],o.pop());s&&(r.draw(),this._notify(r,n,e,"progress")),o.length||(n.running=!1,this._notify(r,n,e,"complete"),n.initial=!1),t+=o.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Kn=new Gn;const Jn="transparent",Xn={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const r=gt(e||Jn),o=r.valid&>(t||Jn);return o&&o.valid?o.mix(r,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class Zn{constructor(e,t,n,r){const o=t[n];r=Qt([e.to,r,o,e.from]);const i=Qt([e.from,o,r]);this._active=!0,this._fn=e.fn||Xn[e.type||typeof i],this._easing=ft[e.easing]||ft.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=i,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const r=this._target[this._prop],o=n-this._start,i=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(i,e.duration)),this._total+=o,this._loop=!!e.loop,this._to=Qt([e.to,t,r,e.from]),this._from=Qt([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,r=this._prop,o=this._from,i=this._loop,a=this._to;let s;if(this._active=o!==a&&(i||t<n),!this._active)return this._target[r]=a,void this._notify(!0);t<0?this._target[r]=o:(s=t/n%2,s=i&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(o,a,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}}class Qn{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!ce(e))return;const t=Object.keys(At.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((r=>{const o=e[r];if(!ce(o))return;const i={};for(const e of t)i[e]=o[e];(le(o.properties)&&o.properties||[r]).forEach((e=>{e!==r&&n.has(e)||n.set(e,i)}))}))}_animateOptions(e,t){const n=t.options,r=function(e,t){if(!t)return;let n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!r)return[];const o=this._createAnimations(r,n);return n.$shared&&function(e,t){const n=[],r=Object.keys(t);for(let t=0;t<r.length;t++){const o=e[r[t]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),o}_createAnimations(e,t){const n=this._properties,r=[],o=e.$animations||(e.$animations={}),i=Object.keys(t),a=Date.now();let s;for(s=i.length-1;s>=0;--s){const l=i[s];if("$"===l.charAt(0))continue;if("options"===l){r.push(...this._animateOptions(e,t));continue}const c=t[l];let u=o[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,a);continue}u.cancel()}d&&d.duration?(o[l]=u=new Zn(d,e,l,c),r.push(u)):e[l]=c}return r}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(Kn.add(this._chart,n),!0):void 0}}function er(e,t){const n=e&&e.options||{},r=n.reverse,o=void 0===n.min?t:0,i=void 0===n.max?t:0;return{start:r?i:o,end:r?o:i}}function tr(e,t){const n=[],r=e._getSortedDatasetMetas(t);let o,i;for(o=0,i=r.length;o<i;++o)n.push(r[o].index);return n}function nr(e,t,n,r={}){const o=e.keys,i="single"===r.mode;let a,s,l,c;if(null===t)return;let u=!1;for(a=0,s=o.length;a<s;++a){if(l=+o[a],l===n){if(u=!0,r.all)continue;break}c=e.values[l],ue(c)&&(i||0===t||je(t)===je(c))&&(t+=c)}return u||r.all?t:0}function rr(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function or(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function ir(e,t,n,r){for(const o of t.getMatchingVisibleMetas(r).reverse()){const t=e[o.index];if(n&&t>0||!n&&t<0)return o.index}return null}function ar(e,t){const{chart:n,_cachedMeta:r}=e,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:s}=r,l=i.axis,c=a.axis,u=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(i,a,r),d=t.length;let p;for(let e=0;e<d;++e){const n=t[e],{[l]:i,[c]:d}=n;p=(n._stacks||(n._stacks={}))[c]=or(o,u,i),p[s]=d,p._top=ir(p,a,!0,r.type),p._bottom=ir(p,a,!1,r.type);(p._visualValues||(p._visualValues={}))[s]=d}}function sr(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function lr(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[r]||void 0===t[r][n])return;delete t[r][n],void 0!==t[r]._visualValues&&void 0!==t[r]._visualValues[n]&&delete t[r]._visualValues[n]}}}const cr=e=>"reset"===e||"none"===e,ur=(e,t)=>t?e:Object.assign({},e);class dr{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=rr(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&lr(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>"x"===e?t:"r"===e?r:n,o=t.xAxisID=pe(n.xAxisID,sr(e,"x")),i=t.yAxisID=pe(n.yAxisID,sr(e,"y")),a=t.rAxisID=pe(n.rAxisID,sr(e,"r")),s=t.indexAxis,l=t.iAxisID=r(s,o,i,a),c=t.vAxisID=r(s,i,o,a);t.xScale=this.getScaleForId(o),t.yScale=this.getScaleForId(i),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&rt(this._data,this),e._stacked&&lr(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(ce(t)){const e=this._cachedMeta;this._data=function(e,t){const{iScale:n,vScale:r}=t,o="x"===n.axis?"x":"y",i="x"===r.axis?"x":"y",a=Object.keys(e),s=new Array(a.length);let l,c,u;for(l=0,c=a.length;l<c;++l)u=a[l],s[l]={[o]:u,[i]:e[u]};return s}(t,e)}else if(n!==t){if(n){rt(n,this);const e=this._cachedMeta;lr(e),e._parsed=[]}t&&Object.isExtensible(t)&&(o=this,(r=t)._chartjs?r._chartjs.listeners.push(o):(Object.defineProperty(r,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[o]}}),nt.forEach((e=>{const t="_onData"+Ce(e),n=r[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,value(...e){const o=n.apply(this,e);return r._chartjs.listeners.forEach((n=>{"function"==typeof n[t]&&n[t](...e)})),o}})})))),this._syncList=[],this._data=t}var r,o}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const o=t._stacked;t._stacked=rr(t.vScale,t),t.stack!==n.stack&&(r=!0,lr(t),t.stack=n.stack),this._resyncElements(e),(r||o!==t._stacked)&&(ar(this,t._parsed),t._stacked=rr(t.vScale,t))}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:r}=this,{iScale:o,_stacked:i}=n,a=o.axis;let s,l,c,u=0===e&&t===r.length||n._sorted,d=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=r,n._sorted=!0,c=r;else{c=le(r[e])?this.parseArrayData(n,r,e,t):ce(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);const o=()=>null===l[a]||d&&l[a]<d[a];for(s=0;s<t;++s)n._parsed[s+e]=l=c[s],u&&(o()&&(u=!1),d=l);n._sorted=u}i&&ar(this,c)}parsePrimitiveData(e,t,n,r){const{iScale:o,vScale:i}=e,a=o.axis,s=i.axis,l=o.getLabels(),c=o===i,u=new Array(r);let d,p,h;for(d=0,p=r;d<p;++d)h=d+n,u[d]={[a]:c||o.parse(l[h],h),[s]:i.parse(t[h],h)};return u}parseArrayData(e,t,n,r){const{xScale:o,yScale:i}=e,a=new Array(r);let s,l,c,u;for(s=0,l=r;s<l;++s)c=s+n,u=t[c],a[s]={x:o.parse(u[0],c),y:i.parse(u[1],c)};return a}parseObjectData(e,t,n,r){const{xScale:o,yScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(r);let c,u,d,p;for(c=0,u=r;c<u;++c)d=c+n,p=t[d],l[c]={x:o.parse(Ee(p,a),d),y:i.parse(Ee(p,s),d)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const r=this.chart,o=this._cachedMeta,i=t[e.axis];return nr({keys:tr(r,!0),values:t._stacks[e.axis]._visualValues},i,o.index,{mode:n})}updateRangeFromParsed(e,t,n,r){const o=n[t.axis];let i=null===o?NaN:o;const a=r&&n._stacks[t.axis];r&&a&&(r.values=a,i=nr(r,o,this._cachedMeta.index)),e.min=Math.min(e.min,i),e.max=Math.max(e.max,i)}getMinMax(e,t){const n=this._cachedMeta,r=n._parsed,o=n._sorted&&e===n.iScale,i=r.length,a=this._getOtherScale(e),s=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:tr(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(e){const{min:t,max:n,minDefined:r,maxDefined:o}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}(a);let d,p;function h(){p=r[d];const t=p[a.axis];return!ue(p[e.axis])||c>t||u<t}for(d=0;d<i&&(h()||(this.updateRangeFromParsed(l,e,p,s),!o));++d);if(o)for(d=i-1;d>=0;--d)if(!h()){this.updateRangeFromParsed(l,e,p,s);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let r,o,i;for(r=0,o=t.length;r<o;++r)i=t[r][e.axis],ue(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,r=t.vScale,o=this.getParsed(e);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:r?""+r.getLabelForValue(o[r.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,r,o;return ce(e)?(t=e.top,n=e.right,r=e.bottom,o=e.left):t=n=r=o=e,{top:t,right:n,bottom:r,left:o,disabled:!1===e}}(pe(this.options.clip,function(e,t,n){if(!1===n)return!1;const r=er(e,n),o=er(t,n);return{top:o.end,right:r.end,bottom:o.start,left:r.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,r=n.data||[],o=t.chartArea,i=[],a=this._drawStart||0,s=this._drawCount||r.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(e,o,a,s),c=a;c<a+s;++c){const t=r[c];t.hidden||(t.active&&l?i.push(t):t.draw(e,o))}for(c=0;c<i.length;++c)i[c].draw(e,o)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const r=this.getDataset();let o;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];o=t.$context||(t.$context=function(e,t,n){return en(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),o.parsed=this.getParsed(e),o.raw=r.data[e],o.index=o.dataIndex=e}else o=this.$context||(this.$context=function(e,t){return en(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=r,o.index=o.datasetIndex=this.index;return o.active=!!t,o.mode=n,o}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",n){const r="active"===t,o=this._cachedDataOpts,i=e+"-"+t,a=o[i],s=this.enableOptionSharing&&Ne(n);if(a)return ur(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),u=r?[`${e}Hover`,"hover",e,""]:[e,""],d=l.getOptionScopes(this.getDataset(),c),p=Object.keys(At.elements[e]),h=l.resolveNamedOptions(d,p,(()=>this.getContext(n,r,t)),u);return h.$shared&&(h.$shared=s,o[i]=Object.freeze(ur(h,s))),h}_resolveAnimations(e,t,n){const r=this.chart,o=this._cachedDataOpts,i=`animation-${t}`,a=o[i];if(a)return a;let s;if(!1!==r.options.animation){const r=this.chart.config,o=r.datasetAnimationScopeKeys(this._type,t),i=r.getOptionScopes(this.getDataset(),o);s=r.createResolver(i,this.getContext(e,n,t))}const l=new Qn(r,s&&s.animations);return s&&s._cacheable&&(o[i]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||cr(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,o=this.getSharedOptions(n),i=this.includeOptions(t,o)||o!==r;return this.updateSharedOptions(o,t,n),{sharedOptions:o,includeOptions:i}}updateElement(e,t,n,r){cr(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!cr(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;const o=this.getStyle(t,r);
vendor: 4,477 bytes, line 2
2this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(o)||o})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];const r=n.length,o=t.length,i=Math.min(o,r);i&&this.parse(0,i),o>r?this._insertElements(r,o-r,e):o<r&&this._removeElements(o,r-o)}_insertElements(e,t,n=!0){const r=this._cachedMeta,o=r.data,i=e+t;let a;const s=e=>{for(e.length+=t,a=e.length-1;a>=i;a--)e[a]=e[a-t]};for(s(o),a=e;a<i;++a)o[a]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(e,t),n&&this.updateElements(o,e,t,"reset")}updateElements(e,t,n,r){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const r=n._parsed.splice(e,t);n._stacked&&lr(n,r)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,r]=e;this[t](n,r)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function pr(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let t=0,o=n.length;t<o;t++)r=r.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=ot(r.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let r,o,i,a,s=t._length;const l=()=>{32767!==i&&-32768!==i&&(Ne(a)&&(s=Math.min(s,Math.abs(i-a)||s)),a=i)};for(r=0,o=n.length;r<o;++r)i=t.getPixelForValue(n[r]),l();for(a=void 0,r=0,o=t.ticks.length;r<o;++r)i=t.getPixelForTick(r),l();return s}function hr(e,t,n,r){return le(e)?function(e,t,n,r){const o=n.parse(e[0],r),i=n.parse(e[1],r),a=Math.min(o,i),s=Math.max(o,i);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:o,end:i,min:a,max:s}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function fr(e,t,n,r){const o=e.iScale,i=e.vScale,a=o.getLabels(),s=o===i,l=[];let c,u,d,p;for(c=n,u=n+r;c<u;++c)p=t[c],d={},d[o.axis]=s||o.parse(a[c],c),l.push(hr(p,d,i,c));return l}function mr(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function gr(e,t,n,r){let o=t.borderSkipped;const i={};if(!o)return void(e.borderSkipped=i);if(!0===o)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:c,bottom:u}=function(e){let t,n,r,o,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(o="end",i="start"):(o="start",i="end"),{start:n,end:r,reverse:t,top:o,bottom:i}}(e);"middle"===o&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?o=c:(n._bottom||0)===r?o=u:(i[vr(u,a,s,l)]=!0,o=c)),i[vr(o,a,s,l)]=!0,e.borderSkipped=i}function vr(e,t,n,r){var o,i,a;return r?(a=n,e=yr(e=(o=e)===(i=t)?a:o===a?i:o,n,t)):e=yr(e,t,n),e}function yr(e,t,n){return"start"===e?t:"end"===e?n:e}function br(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}class xr extends dr{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map(((t,o)=>{const i=e.getDatasetMeta(0).controller.getStyle(o);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:r,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(o),index:o}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update(
vendor: 8,329 bytes, line 2
2)}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{let o,i,a=e=>+n[e];if(ce(n[e])){const{key:e="value"}=this._parsing;a=t=>+Ee(n[t],e)}for(o=e,i=e+t;o<i;++o)r._parsed[o]=a(o)}}_getRotation(){return He(this.options.rotation-90)}_getCircumference(){return He(this.options.circumference)}_getRotationExtents(){let e=De,t=-De;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const r=this.chart.getDatasetMeta(n).controller,o=r._getRotation(),i=r._getCircumference();e=Math.min(e,o),t=Math.max(t,o+i)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:n}=t,r=this._cachedMeta,o=r.data,i=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-i)/2,0),s=Math.min(((e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/t)(this.options.cutout,a),1),l=this._getRingWeight(this.index),{circumference:c,rotation:u}=this._getRotationExtents(),{ratioX:d,ratioY:p,offsetX:h,offsetY:f}=function(e,t,n){let r=1,o=1,i=0,a=0;if(t<De){const s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),d=Math.cos(l),p=Math.sin(l),h=(e,t,r)=>Je(e,s,l,!0)?1:Math.max(t,t*n,r,r*n),f=(e,t,r)=>Je(e,s,l,!0)?-1:Math.min(t,t*n,r,r*n),m=h(0,c,d),g=h(Oe,u,p),v=f(Ae,c,d),y=f(Ae+Oe,u,p);r=(m-v)/2,o=(g-y)/2,i=-(m+v)/2,a=-(g+y)/2}return{ratioX:r,ratioY:o,offsetX:i,offsetY:a}}(u,c,s),m=(n.width-i)/d,g=(n.height-i)/p,v=Math.max(Math.min(m,g)/2,0),y=he(this.options.radius,v),b=(y-Math.max(y*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=h*y,this.offsetY=f*y,r.total=this.calculateTotal(),this.outerRadius=y-b*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-b*l,0),this.updateElements(o,0,o.length,e)}_circumference(e,t){const n=this.options,r=this._cachedMeta,o=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===r._parsed[e]||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*o/De)}updateElements(e,t,n,r){const o="reset"===r,i=this.chart,a=i.chartArea,s=i.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=o&&s.animateScale,d=u?0:this.innerRadius,p=u?0:this.outerRadius,{sharedOptions:h,includeOptions:f}=this._getSharedOptions(t,r);let m,g=this._getRotation();for(m=0;m<t;++m)g+=this._circumference(m,o);for(m=t;m<t+n;++m){const t=this._circumference(m,o),n=e[m],i={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+t,circumference:t,outerRadius:p,innerRadius:d};f&&(i.options=h||this.resolveDataElementOptions(m,n.active?"active":r)),g+=t,this.updateElement(n,m,i,r)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let n,r=0;for(n=0;n<t.length;n++){const o=e._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||t[n].hidden||(r+=Math.abs(o))}return r}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?De*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=wt(t._parsed[e],n.options.locale);return{label:r[e]||"",value:o}}getMaxBorderWidth(e){let t=0;const n=this.chart;let r,o,i,a,s;if(!e)for(r=0,o=n.data.datasets.length;r<o;++r)if(n.isDatasetVisible(r)){i=n.getDatasetMeta(r),e=i.data,a=i.controller;break}if(!e)return 0;for(r=0,o=e.length;r<o;++r)s=a.resolveDataElementOptions(r),"inner"!==s.borderAlign&&(t=Math.max(t,s.borderWidth||0,s.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,r=e.length;n<r;++n){const e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(pe(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class wr extends dr{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map(((t,o)=>{const i=e.getDatasetMeta(0).controller.getStyle(o);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:r,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(o),index:o}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=wt(t._parsed[e].r,n.options.locale);return{label:r[e]||"",value:o}}parseObjectData(e,t,n,r){return mn.bind(this)(e,t,n,r)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach(((e,n)=>{const r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(r<t.min&&(t.min=r),r>t.max&&(t.max=r))})),t}_updateRadius(){const e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),o=Math.max(r/2,0),i=(o-Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=o-i*this.index,this.innerRadius=this.outerRadius-i}updateElements(e,t,n,r){const o="reset"===r,i=this.chart,a=i.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,u=s.getIndexAngle(0)-.5*Ae;let d,p=u;const h=360/this.countVisibleElements();for(d=0;d<t;++d)p+=this._computeAngle(d,r,h);for(d=t;d<t+n;d++){const t=e[d];let n=p,f=p+this._computeAngle(d,r,h),m=i.getDataVisibility(d)?s.getDistanceFromCenterForValue(this.getParsed(d).r):0;p=f,o&&(a.animateScale&&(m=0),a.animateRotate&&(n=f=u));const g={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:f,options:this.resolveDataElementOptions(d,t.active?"active":r)};this.updateElement(t,d,g,r)}}countVisibleElements(){const e=this._cachedMeta;let t=0;return e.data.forEach(((e,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++})),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?He(this.resolveDataElementOptions(e,t).angle||n):0}}var kr=Object.freeze({__proto__:null,BarController:class extends dr{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,t,n,r){return fr(e,t,n,r)}parseArrayData(e,t,n,r){return fr(e,t,n,r)}parseObjectData(e,t,n,r){const{iScale:o,vScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===o.axis?a:s,c="x"===i.axis?a:s,u=[];let d,p,h,f;for(d=n,p=n+r;d<p;++d)f=t[d],h={},h[o.axis]=o.parse(Ee(f,l),d),u.push(hr(Ee(f,c),h,i,d));return u}updateRangeFromParsed(e,t,n,r){super.updateRangeFromParsed(e,t,n,r);const o=n._custom;o&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,o.min),e.max=Math.max(e.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:r}=t,o=this.getParsed(e),i=o._custom,a=mr(i)?"["+i.start+", "+i.end+"]":""+r.getLabelForValue(o[r.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,r){const o="reset"===r,{index:i,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),l=a.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,r);for(let p=t;
vendor: 7,572 bytes, line 2
2p<t+n;p++){const t=this.getParsed(p),n=o||se(t[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(p),h=this._calculateBarIndexPixels(p,c),f=(t._stacks||{})[a.axis],m={horizontal:l,base:n.base,enableBorderRadius:!f||mr(t._custom)||i===f._top||i===f._bottom,x:l?n.head:h.center,y:l?h.center:n.head,height:l?h.size:Math.abs(n.size),width:l?Math.abs(n.size):h.size};d&&(m.options=u||this.resolveDataElementOptions(p,e[p].active?"active":r));const g=m.options||e[p].options;gr(m,g,f,i),br(m,g,c.ratio),this.updateElement(e[p],p,m,r)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),o=n.options.stacked,i=[],a=this._cachedMeta.controller.getParsed(t),s=a&&a[n.axis],l=e=>{const t=e._parsed.find((e=>e[n.axis]===s)),r=t&&t[e.vScale.axis];if(se(r)||isNaN(r))return!0};for(const n of r)if((void 0===t||!l(n))&&((!1===o||-1===i.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&i.push(n.stack),n.index===e))break;return i.length||i.push(void 0),i}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const r=this._getStacks(e,n),o=void 0!==t?r.indexOf(t):-1;return-1===o?r.length-1:o}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,r=[];let o,i;for(o=0,i=t.data.length;o<i;++o)r.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const a=e.barThickness;return{min:a||pr(t),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n,index:r},options:{base:o,minBarLength:i}}=this,a=o||0,s=this.getParsed(e),l=s._custom,c=mr(l);let u,d,p=s[t.axis],h=0,f=n?this.applyStack(t,s,n):p;f!==p&&(h=f-p,f=p),c&&(p=l.barStart,f=l.barEnd-l.barStart,0!==p&&je(p)!==je(l.barEnd)&&(h=0),h+=p);const m=se(o)||c?h:o;let g=t.getPixelForValue(m);if(u=this.chart.getDataVisibility(e)?t.getPixelForValue(h+f):g,d=u-g,Math.abs(d)<i){d=function(e,t,n){return 0!==e?je(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(d,t,a)*i,p===a&&(g-=d/2);const e=t.getPixelForDecimal(0),o=t.getPixelForDecimal(1),l=Math.min(e,o),h=Math.max(e,o);g=Math.max(Math.min(g,h),l),u=g+d,n&&!c&&(s._stacks[t.axis]._visualValues[r]=t.getValueForPixel(u)-t.getValueForPixel(g))}if(g===t.getPixelForValue(a)){const e=je(d)*t.getLineWidthForValue(a)/2;g+=e,d-=e}return{size:d,base:g,head:u,center:u+d/2}}_calculateBarIndexPixels(e,t){const n=t.scale,r=this.options,o=r.skipNull,i=pe(r.maxBarThickness,1/0);let a,s;if(t.grouped){const n=o?this._getStackCount(e):t.stackCount,l="flex"===r.barThickness?function(e,t,n,r){const o=t.pixels,i=o[e];let a=e>0?o[e-1]:null,s=e<o.length-1?o[e+1]:null;const l=n.categoryPercentage;null===a&&(a=i-(null===s?t.end-t.start:s-i)),null===s&&(s=i+i-a);const c=i-(i-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:c}}(e,t,r,n):function(e,t,n,r){const o=n.barThickness;let i,a;return se(o)?(i=t.min*n.categoryPercentage,a=n.barPercentage):(i=o*r,a=1),{chunk:i/r,ratio:a,start:t.pixels[e]-i/2}}(e,t,r,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?e:void 0);a=l.start+l.chunk*c+l.chunk/2,s=Math.min(i,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(e)[n.axis],e),s=Math.min(i,t.min*t.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,r=n.length;let o=0;for(;o<r;++o)null===this.getParsed(o)[t.axis]||n[o].hidden||n[o].draw(this._ctx)}},BubbleController:class extends dr{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,n,r){const o=super.parsePrimitiveData(e,t,n,r);for(let e=0;e<o.length;e++)o[e]._custom=this.resolveDataElementOptions(e+n).radius;return o}parseArrayData(e,t,n,r){const o=super.parseArrayData(e,t,n,r);for(let e=0;e<o.length;e++){const r=t[n+e];o[e]._custom=pe(r[2],this.resolveDataElementOptions(e+n).radius)}return o}parseObjectData(e,t,n,r){const o=super.parseObjectData(e,t,n,r);for(let e=0;e<o.length;e++){const r=t[n+e];o[e]._custom=pe(r&&r.r&&+r.r,this.resolveDataElementOptions(e+n).radius)}return o}getMaxOverflow(){const e=this._cachedMeta.data;let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:o}=t,i=this.getParsed(e),a=r.getLabelForValue(i.x),s=o.getLabelForValue(i.y),l=i._custom;return{label:n[e]||"",value:"("+a+", "+s+(l?", "+l:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,r){const o="reset"===r,{iScale:i,vScale:a}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(t,r),c=i.axis,u=a.axis;for(let d=t;d<t+n;d++){const t=e[d],n=!o&&this.getParsed(d),p={},h=p[c]=o?i.getPixelForDecimal(.5):i.getPixelForValue(n[c]),f=p[u]=o?a.getBasePixel():a.getPixelForValue(n[u]);p.skip=isNaN(h)||isNaN(f),l&&(p.options=s||this.resolveDataElementOptions(d,t.active?"active":r),o&&(p.options.radius=0)),this.updateElement(t,d,p,r)}}resolveDataElementOptions(e,t){const n=this.getParsed(e);let r=super.resolveDataElementOptions(e,t);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const o=r.radius;return"active"!==t&&(r.radius=0),r.radius+=pe(n&&n._custom,o),r}},DoughnutController:xr,LineController:class extends dr{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:r=[],_dataset:o}=t,i=this.chart._animationsDisabled;let{start:a,count:s}=ct(t,r,i);this._drawStart=a,this._drawCount=s,ut(t)&&(a=0,s=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=r;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!i,options:l},e),this.updateElements(r,a,s,e)}updateElements(e,t,n,r){const o="reset"===r,{iScale:i,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(t,r),d=i.axis,p=a.axis,{spanGaps:h,segment:f}=this.options,m=ze(h)?h:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||o||"none"===r,v=t+n,y=e.length;let b=t>0&&this.getParsed(t-1);for(let n=0;n<y;++n){const h=e[n],y=g?h:{};if(n<t||n>=v){y.skip=!0;continue}const x=this.getParsed(n),w=se(x[p]),k=y[d]=i.getPixelForValue(x[d],n),_=y[p]=o||w?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,x,s):x[p],n);y.skip=isNaN(k)||isNaN(_)||w,y.stop=n>0&&Math.abs(x[d]-b[d])>m,f&&(y.parsed=x,y.raw=l.data[n]),u&&(y.options=c||this.resolveDataElementOptions(n,h.active?"active":r)),g||this.updateElement(h,n,y,r),b=x}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;const o=r[0].size(this.resolveDataElementOptions(0)),i=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,o,i)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}},PieController:class extends xr{static id="pie";
vendor: 15,963 bytes, line 2
2static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},PolarAreaController:wr,RadarController:class extends dr{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){const t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,r){return mn.bind(this)(e,t,n,r)}update(e){const t=this._cachedMeta,n=t.dataset,r=t.data||[],o=t.iScale.getLabels();if(n.points=r,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const i={_loop:!0,_fullLoop:o.length===r.length,options:t};this.updateElement(n,void 0,i,e)}this.updateElements(r,0,r.length,e)}updateElements(e,t,n,r){const o=this._cachedMeta.rScale,i="reset"===r;for(let a=t;a<t+n;a++){const t=e[a],n=this.resolveDataElementOptions(a,t.active?"active":r),s=o.getPointPositionForValue(a,this.getParsed(a).r),l=i?o.xCenter:s.x,c=i?o.yCenter:s.y,u={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(t,a,u,r)}}},ScatterController:class extends dr{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:o}=t,i=this.getParsed(e),a=r.getLabelForValue(i.x),s=o.getLabelForValue(i.y);return{label:n[e]||"",value:"("+a+", "+s+")"}}update(e){const t=this._cachedMeta,{data:n=[]}=t,r=this.chart._animationsDisabled;let{start:o,count:i}=ct(t,n,r);if(this._drawStart=o,this._drawCount=i,ut(t)&&(o=0,i=n.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:o,_dataset:i}=t;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!i._decimated,o.points=n;const a=this.resolveDatasetElementOptions(e);a.segment=this.options.segment,this.updateElement(o,void 0,{animated:!r,options:a},e)}else this.datasetElementType&&(delete t.dataset,this.datasetElementType=!1);this.updateElements(n,o,i,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,t,n,r){const o="reset"===r,{iScale:i,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(t,r),u=this.getSharedOptions(c),d=this.includeOptions(r,u),p=i.axis,h=a.axis,{spanGaps:f,segment:m}=this.options,g=ze(f)?f:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||o||"none"===r;let y=t>0&&this.getParsed(t-1);for(let c=t;c<t+n;++c){const t=e[c],n=this.getParsed(c),f=v?t:{},b=se(n[h]),x=f[p]=i.getPixelForValue(n[p],c),w=f[h]=o||b?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,n,s):n[h],c);f.skip=isNaN(x)||isNaN(w)||b,f.stop=c>0&&Math.abs(n[p]-y[p])>g,m&&(f.parsed=n,f.raw=l.data[c]),d&&(f.options=u||this.resolveDataElementOptions(c,t.active?"active":r)),v||this.updateElement(t,c,f,r),y=n}this.updateSharedOptions(u,r,c)}getMaxOverflow(){const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}const n=e.dataset,r=n.options&&n.options.borderWidth||0;if(!t.length)return r;const o=t[0].size(this.resolveDataElementOptions(0)),i=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(r,o,i)/2}}});function _r(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Er{static override(e){Object.assign(Er.prototype,e)}options;constructor(e){this.options=e||{}}init(){}formats(){return _r()}parse(){return _r()}format(){return _r()}add(){return _r()}diff(){return _r()}startOf(){return _r()}endOf(){return _r()}}var Cr=Er;function Nr(e,t,n,r){const{controller:o,data:i,_sorted:a}=e,s=o._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&"r"!==t&&a&&i.length){const a=s._reversePixels?tt:et;if(!r){const r=a(i,t,n);if(l){const{vScale:t}=o._cachedMeta,{_parsed:n}=e,i=n.slice(0,r.lo+1).reverse().findIndex((e=>!se(e[t.axis])));r.lo-=Math.max(0,i);const a=n.slice(r.hi).findIndex((e=>!se(e[t.axis])));r.hi+=Math.max(0,a)}return r}if(o._sharedOptions){const e=i[0],r="function"==typeof e.getRange&&e.getRange(t);if(r){const e=a(i,t,n-r),o=a(i,t,n+r);return{lo:e.lo,hi:o.hi}}}}return{lo:0,hi:i.length-1}}function Sr(e,t,n,r,o){const i=e.getSortedVisibleDatasetMetas(),a=n[t];for(let e=0,n=i.length;e<n;++e){const{index:n,data:s}=i[e],{lo:l,hi:c}=Nr(i[e],t,a,o);for(let e=l;e<=c;++e){const t=s[e];t.skip||r(t,n,e)}}}function Vr(e,t,n,r,o){const i=[];if(!o&&!e.isPointInArea(t))return i;return Sr(e,n,t,(function(n,a,s){(o||Lt(n,e.chartArea,0))&&n.inRange(t.x,t.y,r)&&i.push({element:n,datasetIndex:a,index:s})}),!0),i}function Ar(e,t,n,r,o,i){let a=[];const s=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){const o=t?Math.abs(e.x-r.x):0,i=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(i,2))}}(n);let l=Number.POSITIVE_INFINITY;return Sr(e,n,t,(function(n,c,u){const d=n.inRange(t.x,t.y,o);if(r&&!d)return;const p=n.getCenterPoint(o);if(!(!!i||e.isPointInArea(p))&&!d)return;const h=s(t,p);h<l?(a=[{element:n,datasetIndex:c,index:u}],l=h):h===l&&a.push({element:n,datasetIndex:c,index:u})})),a}function Dr(e,t,n,r,o,i){return i||e.isPointInArea(t)?"r"!==n||r?Ar(e,t,n,r,o,i):function(e,t,n,r){let o=[];return Sr(e,n,t,(function(e,n,i){const{startAngle:a,endAngle:s}=e.getProps(["startAngle","endAngle"],r),{angle:l}=qe(e,{x:t.x,y:t.y});Je(l,a,s)&&o.push({element:e,datasetIndex:n,index:i})})),o}(e,t,n,o):[]}function Mr(e,t,n,r,o){const i=[],a="x"===n?"inXRange":"inYRange";let s=!1;return Sr(e,n,t,((e,r,l)=>{e[a]&&e[a](t[n],o)&&(i.push({element:e,datasetIndex:r,index:l}),s=s||e.inRange(t.x,t.y,o))})),r&&!s?[]:i}var Tr={evaluateInteractionItems:Sr,modes:{index(e,t,n,r){const o=An(t,e),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?Vr(e,o,i,r,a):Dr(e,o,i,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=s[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,n,r){const o=An(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?Vr(e,o,i,r,a):Dr(e,o,i,!1,r,a);if(s.length>0){const t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;e<n.length;++e)s.push({element:n[e],datasetIndex:t,index:e})}return s},point:(e,t,n,r)=>Vr(e,An(t,e),n.axis||"xy",r,n.includeInvisible||!1),nearest(e,t,n,r){const o=An(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;return Dr(e,o,i,n.intersect,r,a)},x:(e,t,n,r)=>Mr(e,An(t,e),"x",n.intersect,r),y:(e,t,n,r)=>Mr(e,An(t,e),"y",n.intersect,r)}};const Br=["left","top","right","bottom"];function Or(e,t){return e.filter((e=>e.pos===t))}function Pr(e,t){return e.filter((e=>-1===Br.indexOf(e.pos)&&e.box.axis===t))}function Lr(e,t){return e.sort(((e,n)=>{const r=t?n:e,o=t?e:n;return r.weight===o.weight?r.index-o.index:r.weight-o.weight}))}function Ir(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:r,stackWeight:o}=n;if(!e||!Br.includes(r))continue;const i=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=o}return t}(e),{vBoxMaxWidth:r,hBoxMaxHeight:o}=t;let i,a,s;for(i=0,a=e.length;i<a;++i){s=e[i];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*r:a&&t.availableWidth,s.height=o):(s.width=r,s.height=c?c*o:a&&t.availableHeight)}return n}function jr(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Rr(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function $r(e,t,n,r){const{pos:o,box:i}=n,a=e.maxPadding;if(!ce(o)){n.size&&(e[o]-=n.size);const t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?i.height:i.width),n.size=t.size/t.count,e[o]+=n.size}i.getPadding&&Rr(a,i.getPadding());const s=Math.max(0,t.outerWidth-jr(a,e,"left","right")),l=Math.max(0,t.outerHeight-jr(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function zr(e,t){const n=t.maxPadding;function r(e){const r={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function Fr(e,t,n,r){const o=[];let i,a,s,l,c,u;for(i=0,a=e.length,c=0;i<a;++i){s=e[i],l=s.box,l.update(s.width||t.w,s.height||t.h,zr(s.horizontal,t));const{same:a,other:d}=$r(t,n,s,r);c|=a&&o.length,u=u||d,l.fullSize||o.push(s)}return c&&Fr(o,t,n,r)||u}function Hr(e,t,n,r,o){e.top=n,e.left=t,e.right=t+r,e.bottom=n+o,e.width=r,e.height=o}function Ur(e,t,n,r){const o=n.padding;let{x:i,y:a}=t;for(const s of e){const e=s.box,l=r[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const r=t.w*c,i=l.size||e.height;Ne(l.start)&&(a=l.start),e.fullSize?Hr(e,o.left,a,n.outerWidth-o.right-o.left,i):Hr(e,t.left+l.placed,a,r,i),l.start=a,l.placed+=r,a=e.bottom}else{const r=t.h*c,a=l.size||e.width;Ne(l.start)&&(i=l.start),e.fullSize?Hr(e,i,o.top,a,n.outerHeight-o.bottom-o.top):Hr(e,i,t.top+l.placed,a,r),l.start=i,l.placed+=r,i=e.right}}t.x=i,t.y=a}var Wr={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const o=Xt(e.options.layout.padding),i=Math.max(t-o.width,0),a=Math.max(n-o.height,0),s=function(e){const t=function(e){const t=[];let n,r,o,i,a,s;for(n=0,r=(e||[]).length;n<r;++n)o=e[n],({position:i,options:{stack:a,stackWeight:s=1}}=o),t.push({index:n,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&i+a,stackWeight:s});return t}(e),n=Lr(t.filter((e=>e.box.fullSize)),!0),r=Lr(Or(t,"left"),!0),o=Lr(Or(t,"right")),i=Lr(Or(t,"top"),!0),a=Lr(Or(t,"bottom")),s=Pr(t,"x"),l=Pr(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(l).concat(a).concat(s),chartArea:Or(t,"chartArea"),vertical:r.concat(o).concat(l),horizontal:i.concat(a).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;me(e.boxes,(e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()}));const u=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/u,hBoxMaxHeight:a/2}),p=Object.assign({},o);Rr(p,Xt(r));const h=Object.assign({maxPadding:p,w:i,h:a,x:o.left,y:o.top},o),f=Ir(l.concat(c),d);Fr(s.fullSize,h,d,f),Fr(l,h,d,f),Fr(c,h,d,f)&&Fr(l,h,d,f),function(e){const t=e.maxPadding;function n(n){const r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(h),Ur(s.leftAndTop,h,d,f),h.x+=h.w,h.y+=h.h,Ur(s.rightAndBottom,h,d,f),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},me(s.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})}))}};class qr{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}}class Yr extends qr{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Gr="$chartjs",Kr={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Jr=e=>null===e||""===e;const Xr=!!Bn&&{passive:!0};function Zr(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,Xr)}function Qr(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function eo(e,t,n){const r=e.canvas,o=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||Qr(n.addedNodes,r),t=t&&!Qr(n.removedNodes,r);t&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}function to(e,t,n){const r=e.canvas,o=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||Qr(n.removedNodes,r),t=t&&!Qr(n.addedNodes,r);t&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}const no=new Map;let ro=0;function oo(){const e=window.devicePixelRatio;e!==ro&&(ro=e,no.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function io(e,t,n){const r=e.canvas,o=r&&En(r);if(!o)return;const i=at(((e,t)=>{const r=o.clientWidth;n(e,t),r<o.clientWidth&&n()}),window),a=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||i(n,r)}));return a.observe(o),function(e,t){no.size||window.addEventListener("resize",oo),no.set(e,t)}(e,i),a}function ao(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){no.delete(e),no.size||window.removeEventListener("resize",oo)}(e)}function so(e,t,n){const r=e.canvas,o=at((t=>{null!==e.ctx&&n(function(e,t){const n=Kr[e.type]||e.type,{x:r,y:o}=An(e,t);return{type:n,chart:t,native:e,x:void 0!==r?r:null,y:void 0!==o?o:null}}(t,e))}),e);return function(e,t,n){e&&e.addEventListener(t,n,Xr)}(r,t,o),o}class lo extends qr{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[Gr]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Jr(o)){const t=On(e,"width");void 0!==t&&(e.width=t)}if(Jr(r))if(""===e.style.height)e.height=e.width/(t||2);else{const t=On(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[Gr])return!1;const n=t[Gr].initial;["height","width"].forEach((e=>{const r=n[e];se(r)?t.removeAttribute(e):t.setAttribute(e,r)}));const r=n.style||{};return Object.keys(r).forEach((e=>{t.style[e]=r[e]})),t.width=t.width,delete t[Gr],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const r=e.$proxies||(e.$proxies={}),o={attach:eo,detach:to,resize:io}[t]||so;r[t]=o(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),r=n[t];if(!r)return;({attach:ao,detach:ao,resize:ao}[t]||Zr)(e,t,r),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return Mn(e,t,n,r)}isAttached(e){const t=e&&En(e);return!(!t||!t.isConnected)}}class co{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return ze(this.x)&&ze(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const r={};return e.forEach((e=>{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),r}}function uo(e,t){const n=e.options.ticks,r=function(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),o=e._maxLength/n;return Math.floor(Math.min(r,o))}(e),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?function(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}(t):[],a=i.length,s=i[0],l=i[a-1],c=[];if(a>o)return function(e,t,n,r){let o,i=0,a=n[0];for(r=Math.ceil(r),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=n[i*r])}(t,c,i,a/o),c;const u=function(e,t,n){const r=function(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}(e),o=t.length/n;if(!r)return Math.max(o,1);const i=function(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r==0&&(t.push(r),t.push(e/r));
vendor: 5,078 bytes, line 2
2return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}(r);for(let e=0,t=i.length-1;e<t;e++){const t=i[e];if(t>o)return t}return Math.max(o,1)}(i,t,o);if(a>0){let e,n;const r=a>1?Math.round((l-s)/(a-1)):null;for(po(t,c,u,se(r)?0:s-r,s),e=0,n=a-1;e<n;e++)po(t,c,u,i[e],i[e+1]);return po(t,c,u,l,se(r)?t.length:l+r),c}return po(t,c,u),c}function po(e,t,n,r,o){const i=pe(r,0),a=Math.min(pe(o,e.length),e.length);let s,l,c,u=0;for(n=Math.ceil(n),o&&(s=o-r,n=s/Math.floor(s/n)),c=i;c<0;)u++,c=Math.round(i+u*n);for(l=Math.max(i,0);l<a;l++)l===c&&(t.push(e[l]),u++,c=Math.round(i+u*n))}const ho=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,fo=(e,t)=>Math.min(t||e,e);function mo(e,t){const n=[],r=e.length/t,o=e.length;let i=0;for(;i<o;i+=r)n.push(e[Math.floor(i)]);return n}function go(e,t,n){const r=e.ticks.length,o=Math.min(t,r-1),i=e._startPixel,a=e._endPixel,s=1e-6;let l,c=e.getPixelForTick(o);if(!(n&&(l=1===r?Math.max(c-i,a-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(o-1))/2,c+=o<t?l:-l,c<i-s||c>a+s)))return c}function vo(e){return e.drawTicks?e.tickLength:0}function yo(e,t){if(!e.display)return 0;const n=Zt(e.font,t),r=Xt(e.padding);return(le(e.text)?e.text.length:1)*n.lineHeight+r.height}function bo(e,t,n){let r=st(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=(e=>"left"===e?"right":"right"===e?"left":e)(r)),r}class xo extends co{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:r}=this;return e=de(e,Number.POSITIVE_INFINITY),t=de(t,Number.NEGATIVE_INFINITY),n=de(n,Number.POSITIVE_INFINITY),r=de(r,Number.NEGATIVE_INFINITY),{min:de(e,n),max:de(t,r),minDefined:ue(e),maxDefined:ue(t)}}getMinMax(e){let t,{min:n,max:r,minDefined:o,maxDefined:i}=this.getUserBounds();if(o&&i)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)t=a[s].controller.getMinMax(this,e),o||(n=Math.min(n,t.min)),i||(r=Math.max(r,t.max));return n=i&&n>r?r:n,r=o&&n>r?n:r,{min:de(n,de(r,n)),max:de(r,de(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){fe(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:r,grace:o,ticks:i}=this.options,a=i.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:r,max:o}=e,i=he(t,(o-r)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(r,-Math.abs(i)),max:a(o,i)}}(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?mo(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=uo(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}
vendor: 16,349 bytes, line 2
2afterUpdate(){fe(this.options.afterUpdate,[this])}beforeSetDimensions(){fe(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){fe(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),fe(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){fe(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,r,o;for(n=0,r=e.length;n<r;n++)o=e[n],o.label=fe(t.callback,[o.value,n,e],this)}afterTickToLabelConversion(){fe(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){fe(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=fo(this.ticks.length,e.ticks.maxTicksLimit),r=t.minRotation||0,o=t.maxRotation;let i,a,s,l=r;if(!this._isVisible()||!t.display||r>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=r);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,p=Xe(this.chart.width-u,0,this.maxWidth);i=e.offset?this.maxWidth/n:p/(n-1),u+6>i&&(i=p/(n-(e.offset?.5:1)),a=this.maxHeight-vo(e.grid)-t.padding-yo(e.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=Ue(Math.min(Math.asin(Xe((c.highest.height+6)/i,-1,1)),Math.asin(Xe(a/s,-1,1))-Math.asin(Xe(d/s,-1,1)))),l=Math.max(r,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){fe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){fe(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:o}}=this,i=this._isVisible(),a=this.isHorizontal();if(i){const i=yo(r,t.options.font);if(a?(e.width=this.maxWidth,e.height=vo(o)+i):(e.height=this.maxHeight,e.width=vo(o)+i),n.display&&this.ticks.length){const{first:t,last:r,widest:o,highest:i}=this._getLabelSizes(),s=2*n.padding,l=He(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const t=n.mirror?0:u*o.width+c*i.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{const t=n.mirror?0:c*o.width+u*i.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,r,u,c)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){const{ticks:{align:o,padding:i},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?l?(u=r*e.width,d=n*t.height):(u=n*e.height,d=r*t.width):"start"===o?d=t.width:"end"===o?u=e.width:"inner"!==o&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-a+i)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-c+i)*this.width/(this.width-c),0)}else{let n=t.height/2,r=e.height/2;"start"===o?(n=0,r=e.height):"end"===o&&(n=t.height,r=0),this.paddingTop=n+i,this.paddingBottom=r+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){fe(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)se(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=mo(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){const{ctx:r,_longestTextCache:o}=this,i=[],a=[],s=Math.floor(t/fo(t,n));let l,c,u,d,p,h,f,m,g,v,y,b=0,x=0;for(l=0;l<t;l+=s){if(d=e[l].label,p=this._resolveTickFontOptions(l),r.font=h=p.string,f=o[h]=o[h]||{data:{},gc:[]},m=p.lineHeight,g=v=0,se(d)||le(d)){if(le(d))for(c=0,u=d.length;c<u;++c)y=d[c],se(y)||le(y)||(g=Dt(r,f.data,f.gc,g,y),v+=m)}else g=Dt(r,f.data,f.gc,g,d),v=m;i.push(g),a.push(v),b=Math.max(g,b),x=Math.max(v,x)}!function(e,t){me(e,(e=>{const n=e.gc,r=n.length/2;let o;if(r>t){for(o=0;o<r;++o)delete e.data[n[o]];n.splice(0,r)}}))}(o,t);const w=i.indexOf(b),k=a.indexOf(x),_=e=>({width:i[e]||0,height:a[e]||0});return{first:_(0),last:_(t-1),widest:_(w),highest:_(k),widths:i,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return function(e){return Xe(e,-32768,32767)}(this._alignToPixels?Tt(this.chart,t,0):t)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return en(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=en(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=He(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),o=this._getLabelSizes(),i=e.autoSkipPadding||0,a=o?o.widest.width+i:0,s=o?o.highest.height+i:0;return this.isHorizontal()?s*n>a*r?a/n:s/r:s*r<a*n?s/n:a/r}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,r=this.options,{grid:o,position:i,border:a}=r,s=o.offset,l=this.isHorizontal(),c=this.ticks.length+(s?1:0),u=vo(o),d=[],p=a.setContext(this.getContext()),h=p.display?p.width:0,f=h/2,m=function(e){return Tt(n,e,h)};let g,v,y,b,x,w,k,_,E,C,N,S;if("top"===i)g=m(this.bottom),w=this.bottom-u,_=g-f,C=m(e.top)+f,S=e.bottom;else if("bottom"===i)g=m(this.top),C=e.top,S=m(e.bottom)-f,w=g+f,_=this.top+u;else if("left"===i)g=m(this.right),x=this.right-u,k=g-f,E=m(e.left)+f,N=e.right;else if("right"===i)g=m(this.left),E=e.left,N=m(e.right)-f,x=g+f,k=this.left+u;else if("x"===t){if("center"===i)g=m((e.top+e.bottom)/2+.5);else if(ce(i)){const e=Object.keys(i)[0],t=i[e];g=m(this.chart.scales[e].getPixelForValue(t))}C=e.top,S=e.bottom,w=g+f,_=w+u}else if("y"===t){if("center"===i)g=m((e.left+e.right)/2);else if(ce(i)){const e=Object.keys(i)[0],t=i[e];g=m(this.chart.scales[e].getPixelForValue(t))}x=g-f,k=x-u,E=e.left,N=e.right}const V=pe(r.ticks.maxTicksLimit,c),A=Math.max(1,Math.ceil(c/V));for(v=0;v<c;v+=A){const e=this.getContext(v),t=o.setContext(e),r=a.setContext(e),i=t.lineWidth,c=t.color,u=r.dash||[],p=r.dashOffset,h=t.tickWidth,f=t.tickColor,m=t.tickBorderDash||[],g=t.tickBorderDashOffset;y=go(this,v,s),void 0!==y&&(b=Tt(n,y,i),l?x=k=E=N=b:w=_=C=S=b,d.push({tx1:x,ty1:w,tx2:k,ty2:_,x1:E,y1:C,x2:N,y2:S,width:i,color:c,borderDash:u,borderDashOffset:p,tickWidth:h,tickColor:f,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=c,this._borderValue=g,d}_computeLabelItems(e){const t=this.axis,n=this.options,{position:r,ticks:o}=n,i=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:c,mirror:u}=o,d=vo(n.grid),p=d+c,h=u?-c:p,f=-He(this.labelRotation),m=[];let g,v,y,b,x,w,k,_,E,C,N,S,V="middle";if("top"===r)w=this.bottom-h,k=this._getXAxisLabelAlignment();else if("bottom"===r)w=this.top+h,k=this._getXAxisLabelAlignment();else if("left"===r){const e=this._getYAxisLabelAlignment(d);k=e.textAlign,x=e.x}else if("right"===r){const e=this._getYAxisLabelAlignment(d);k=e.textAlign,x=e.x}else if("x"===t){if("center"===r)w=(e.top+e.bottom)/2+p;else if(ce(r)){const e=Object.keys(r)[0],t=r[e];w=this.chart.scales[e].getPixelForValue(t)+p}k=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===r)x=(e.left+e.right)/2-p;else if(ce(r)){const e=Object.keys(r)[0],t=r[e];x=this.chart.scales[e].getPixelForValue(t)}k=this._getYAxisLabelAlignment(d).textAlign}"y"===t&&("start"===s?V="top":"end"===s&&(V="bottom"));const A=this._getLabelSizes();for(g=0,v=a.length;g<v;++g){y=a[g],b=y.label;const e=o.setContext(this.getContext(g));_=this.getPixelForTick(g)+o.labelOffset,E=this._resolveTickFontOptions(g),C=E.lineHeight,N=le(b)?b.length:1;const t=N/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let d,p=k;if(i?(x=_,"inner"===k&&(p=g===v-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),S="top"===r?"near"===l||0!==f?-N*C+C/2:"center"===l?-A.highest.height/2-t*C+C:-A.highest.height+C/2:"near"===l||0!==f?C/2:"center"===l?A.highest.height/2-t*C:A.highest.height-N*C,u&&(S*=-1),0===f||e.showLabelBackdrop||(x+=C/2*Math.sin(f))):(w=_,S=(1-N)*C/2),e.showLabelBackdrop){const t=Xt(e.backdropPadding),n=A.heights[g],r=A.widths[g];let o=S-t.top,i=0-t.left;switch(V){case"middle":o-=n/2;break;case"bottom":o-=n}switch(k){case"center":i-=r/2;break;case"right":i-=r;break;case"inner":g===v-1?i-=r:g>0&&(i-=r/2)}d={left:i,top:o,width:r+t.width,height:n+t.height,color:e.backdropColor}}m.push({label:b,font:E,textOffset:S,options:{rotation:f,color:n,strokeColor:s,strokeWidth:c,textAlign:p,textBaseline:V,translation:[x,w],backdrop:d}})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-He(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:r,padding:o}}=this.options,i=e+o,a=this._getLabelSizes().widest.width;let s,l;return"left"===t?r?(l=this.right+o,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-i,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===t?r?(l=this.left+o,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+i,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:r,width:o,height:i}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,o,i),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));if(n>=0){return t.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let o,i;const a=(e,t,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(o=0,i=r.length;o<i;++o){const e=r[o];t.drawOnChartArea&&a({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&a({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:r}}=this,o=n.setContext(this.getContext()),i=n.display?o.width:0;if(!i)return;const a=r.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=Tt(e,this.left,i)-i/2,c=Tt(e,this.right,a)+a/2,u=d=s):(u=Tt(e,this.top,i)-i/2,d=Tt(e,this.bottom,a)+a/2,l=c=s),t.save(),t.lineWidth=o.width,t.strokeStyle=o.color,t.beginPath(),t.moveTo(l,u),t.lineTo(c,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&It(t,n);const r=this.getLabelItems(e);for(const e of r){const n=e.options,r=e.font;Ht(t,e.label,0,e.textOffset,r,n)}n&&jt(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:r}}=this;if(!n.display)return;const o=Zt(n.font),i=Xt(n.padding),a=n.align;let s=o.lineHeight/2;"bottom"===t||"center"===t||ce(t)?(s+=i.bottom,le(n.text)&&(s+=o.lineHeight*(n.text.length-1))):s+=i.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(e,t,n,r){const{top:o,left:i,bottom:a,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let d,p,h,f=0;const m=a-o,g=s-i;if(e.isHorizontal()){if(p=lt(r,i,s),ce(n)){const e=Object.keys(n)[0],r=n[e];h=u[e].getPixelForValue(r)+m-t}else h="center"===n?(c.bottom+c.top)/2+m-t:ho(e,n,t);d=s-i}else{if(ce(n)){const e=Object.keys(n)[0],r=n[e];p=u[e].getPixelForValue(r)-g+t}else p="center"===n?(c.left+c.right)/2-g+t:ho(e,n,t);h=lt(r,a,o),f="left"===n?-Oe:Oe}return{titleX:p,titleY:h,maxWidth:d,rotation:f}}(this,s,t,a);Ht(e,n.text,0,0,o,{color:n.color,maxWidth:u,rotation:d,textAlign:bo(a,t,r),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=pe(e.grid&&e.grid.z,-1),r=pe(e.border&&e.border.z,0);return this._isVisible()&&this.draw===xo.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let o,i;for(o=0,i=t.length;o<i;++o){const i=t[o];i[n]!==this.id||e&&i.type!==e||r.push(i)}return r}_resolveTickFontOptions(e){return Zt(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class wo{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const r=this.items,o=e.id,i=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+e);return o in r||(r[o]=e,function(e,t,n){const r=xe(Object.create(null),[n?At.get(n):{},At.get(t),e.defaults]);At.set(t,r),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const r=n.split("."),o=r.pop(),i=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");At.route(i,o,l,s)}))}(t,e.defaultRoutes);e.descriptors&&At.describe(t,e.descriptors)}(e,i,n),this.override&&At.override(e.id,e.overrides)),i}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in At[r]&&(delete At[r][n],this.override&&delete Et[n])}}class ko{constructor(){this.controllers=new wo(dr,"datasets",!0),this.elements=new wo(co,"elements"),this.plugins=new wo(Object,"plugins"),this.scales=new wo(xo,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}
vendor: 10,352 bytes, line 2
2removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){[...t].forEach((t=>{const r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):me(t,(t=>{const r=n||this._getRegistryForType(t);this._exec(e,r,t)}))}))}_exec(e,t,n){const r=Ce(e);fe(n["before"+r],[],n),t[e](n),fe(n["after"+r],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const r=t.get(e);if(void 0===r)throw new Error('"'+e+'" is not a registered '+n+".");return r}}var _o=new ko;class Eo{constructor(){this._init=[]}notify(e,t,n,r){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const o=r?this._descriptors(e).filter(r):this._descriptors(e),i=this._notify(o,e,t,n);return"afterDestroy"===t&&(this._notify(o,e,"stop"),this._notify(this._init,e,"uninstall")),i}_notify(e,t,n,r){r=r||{};for(const o of e){const e=o.plugin;if(!1===fe(e[n],[t,r,o.options],e)&&r.cancelable)return!1}return!0}invalidate(){se(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,r=pe(n.options&&n.options.plugins,{}),o=function(e){const t={},n=[],r=Object.keys(_o.plugins.items);for(let e=0;e<r.length;e++)n.push(_o.getPlugin(r[e]));const o=e.plugins||[];for(let e=0;e<o.length;e++){const r=o[e];-1===n.indexOf(r)&&(n.push(r),t[r.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==r||t?function(e,{plugins:t,localIds:n},r,o){const i=[],a=e.getContext();for(const s of t){const t=s.id,l=Co(r[t],o);null!==l&&i.push({plugin:s,options:No(e.config,{plugin:s,local:n[t]},l,a)})}return i}(e,o,r,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,r=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(r(t,n),e,"stop"),this._notify(r(n,t),e,"start")}}function Co(e,t){return t||!1!==e?!0===e?{}:e:null}function No(e,{plugin:t,local:n},r,o){const i=e.pluginScopeKeys(t),a=e.getOptionScopes(r,i);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function So(e,t){const n=At.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function Vo(e){if("x"===e||"y"===e||"r"===e)return e}function Ao(e,...t){if(Vo(e))return e;for(const r of t){const t=r.axis||("top"===(n=r.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||e.length>1&&Vo(e[0].toLowerCase());if(t)return t}var n;throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Do(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function Mo(e,t){const n=Et[e.type]||{scales:{}},r=t.scales||{},o=So(e.type,t),i=Object.create(null);return Object.keys(r).forEach((t=>{const a=r[t];if(!ce(a))return console.error(`Invalid scale configuration for scale: ${t}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=Ao(t,a,function(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter((t=>t.xAxisID===e||t.yAxisID===e));if(n.length)return Do(e,"x",n[0])||Do(e,"y",n[0])}return{}}(t,e),At.scales[a.type]),l=function(e,t){return e===t?"_index_":"_value_"}(s,o),c=n.scales||{};i[t]=we(Object.create(null),[{axis:s},a,c[s],c[l]])})),e.data.datasets.forEach((n=>{const o=n.type||e.type,a=n.indexAxis||So(o,t),s=(Et[o]||{}).scales||{};Object.keys(s).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,a),o=n[t+"AxisID"]||t;i[o]=i[o]||Object.create(null),we(i[o],[{axis:t},r[o],s[e]])}))})),Object.keys(i).forEach((e=>{const t=i[e];we(t,[At.scales[t.type],At.scale])})),i}function To(e){const t=e.options||(e.options={});t.plugins=pe(t.plugins,{}),t.scales=Mo(e,t)}function Bo(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const Oo=new Map,Po=new Set;function Lo(e,t){let n=Oo.get(e);return n||(n=t(),Oo.set(e,n),Po.add(n)),n}const Io=(e,t,n)=>{const r=Ee(t,n);void 0!==r&&e.add(r)};class jo{constructor(e){this._config=function(e){return(e=e||{}).data=Bo(e.data),To(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=Bo(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),To(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Lo(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return Lo(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return Lo(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return Lo(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){const{options:r,type:o}=this,i=this._cachedScopes(e,n),a=i.get(t);if(a)return a;const s=new Set;t.forEach((t=>{e&&(s.add(e),t.forEach((t=>Io(s,e,t)))),t.forEach((e=>Io(s,r,e))),t.forEach((e=>Io(s,Et[o]||{},e))),t.forEach((e=>Io(s,At,e))),t.forEach((e=>Io(s,Ct,e)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),Po.has(t)&&i.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,Et[t]||{},At.datasets[t]||{},{type:t},At,Ct]}resolveNamedOptions(e,t,n,r=[""]){const o={$shared:!0},{resolver:i,subPrefixes:a}=Ro(this._resolverCache,e,r);let s=i;if(function(e,t){const{isScriptable:n,isIndexable:r}=rn(e);for(const o of t){const t=n(o),i=r(o),a=(i||t)&&e[o];if(t&&(Se(a)||$o(a))||i&&le(a))return!0}return!1}(i,t)){o.$shared=!1;s=nn(i,n=Se(n)?n():n,this.createResolver(e,n,a))}for(const e of t)o[e]=s[e];return o}createResolver(e,t,n=[""],r){const{resolver:o}=Ro(this._resolverCache,e,n);return ce(t)?nn(o,t,void 0,r):o}}function Ro(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let i=r.get(o);if(!i){i={resolver:tn(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},r.set(o,i)}return i}const $o=e=>ce(e)&&Object.getOwnPropertyNames(e).some((t=>Se(e[t])));const zo=["top","bottom","left","right","chartArea"];function Fo(e,t){return"top"===e||"bottom"===e||-1===zo.indexOf(e)&&"x"===t}function Ho(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Uo(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),fe(n&&n.onComplete,[e],t)}function Wo(e){const t=e.chart,n=t.options.animation;fe(n&&n.onProgress,[e],t)}function qo(e){return _n()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Yo={},Go=e=>{const t=qo(e);return Object.values(Yo).filter((e=>e.canvas===t)).pop()};function Ko(e,t,n){const r=Object.keys(e);for(const o of r){const r=+o;if(r>=t){const i=e[o];delete e[o],(n>0||r>t)&&(e[r+n]=i)}}}function Jo(e,t,n){return e.options.clip?e[n]:t[n]}class Xo{static defaults=At;static instances=Yo;static overrides=Et;static registry=_o;static version="4.4.8";static getChart=Go;static register(...e){_o.add(...e),Zo()}static unregister(...e){_o.remove(...e),Zo()}constructor(e,t){const n=this.config=new jo(t),r=qo(e),o=Go(r);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const i=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!_n()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?Yr:lo}(r)),this.platform.updateConfig(n);const a=this.platform.acquireContext(r,i.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;this.id=ae(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Eo,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}((e=>this.update(e)),i.resizeDelay||0),this._dataChanges=[],Yo[this.id]=this,a&&s?(Kn.listen(this,"complete",Uo),Kn.listen(this,"progress",Wo),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:o}=this;return se(e)?t&&o?o:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return _o}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Tn(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Bt(this.canvas,this.ctx),this}stop(){return Kn.stop(this),this}resize(e,t){Kn.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,r=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(r,e,t,o),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,Tn(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),fe(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){me(this.options.scales||{},((e,t)=>
vendor: 4,106 bytes, line 2
2{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let o=[];t&&(o=o.concat(Object.keys(t).map((e=>{const n=t[e],r=Ao(e,n),o="r"===r,i="x"===r;return{options:n,dposition:o?"chartArea":i?"bottom":"left",dtype:o?"radialLinear":i?"category":"linear"}})))),me(o,(t=>{const o=t.options,i=o.id,a=Ao(i,o),s=pe(o.type,t.dtype);void 0!==o.position&&Fo(o.position,a)===Fo(t.dposition)||(o.position=t.dposition),r[i]=!0;let l=null;if(i in n&&n[i].type===s)l=n[i];else{l=new(_o.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,e)})),me(r,((e,t)=>{e||delete n[t]})),me(n,(e=>{Wr.configure(this,e,e.options),Wr.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(Ho("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n<r;n++){const r=t[n];let o=this.getDatasetMeta(n);const i=r.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=i,o.indexAxis=r.indexAxis||So(i,this.options),o.order=r.order||0,o.index=n,o.label=""+r.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const t=_o.getController(i),{datasetElementType:r,dataElementType:a}=At.datasets[i];Object.assign(t,{dataElementType:_o.getElement(a),datasetElementType:r&&_o.getElement(r)}),o.controller=new t(this,n),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){me(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),n=!r&&-1===o.indexOf(t);t.buildOrUpdateElements(n),i=Math.max(+t.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),r||me(o,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Ho("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){me(this.scales,(e=>{Wr.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);Ve(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:o}of t){Ko(e,r,"_removeElements"===n?-o:o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),r=n(0);for(let e=1;e<t;e++)if(!Ve(r,n(e)))return;return Array.from(r).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Wr.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],me(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}
vendor: 1,847 bytes, line 2
2),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,Se(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Kn.has(this)?this.attached&&!Kn.running(this)&&Kn.start(this):(this.draw(),Uo({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(e,t)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let r,o;for(r=0,o=t.length;r<o;++r){const o=t[r];e&&!o.visible||n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,r=!n.disabled,o=function(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Jo(n,t,"left"),right:Jo(n,t,"right"),top:Jo(r,t,"to
2p"),bottom:Jo(r,t,"bottom")}:t}(e,this.chartArea),i={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(r&&It(t,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),e.controller.draw(),r&&jt(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return Lt(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){const o=Tr.modes[t];return"function"==typeof o?o(this,e,n,r):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let r=n.filter((e=>e&&e._dataset===t)).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=en(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"==typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const r=n?"show":"hide",o=this.getDatasetMeta(e),i=o.controller._resolveAnimations(void 0,r);Ne(t)?(o.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),i.update(o,{visible:n}),this.update((t=>t.datasetIndex===e?r:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),Kn.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Bt(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete Yo[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};me(this.options.events,(e=>n(e,r)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},o=(e,t)=>{this.canvas&&this.resize(e,t)};let i;const a=()=>{r("attach",a),this.attached=!0,this.resize(),n("resize",o),n("detach",i)};i=()=>{this.attached=!1,r("resize",o),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():i()}unbindEvents(){me(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},me(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const r=n?"set":"remove";let o,i,a,s;for("dataset"===t&&(o=this.getDatasetMeta(e[0].datasetIndex),o.controller["_"+r+"DatasetHoverStyle"]()),a=0,s=e.length;a<s;++a){i=e[a];const t=i&&this.getDatasetMeta(i.datasetIndex).controller;t&&t[r+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((({datasetIndex:e,index:t})=>{const n=this.getDatasetMeta(e);if(!n)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:n.data[t],index:t}}));!ge(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t,n){const r=this.options.hover,o=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),i=o(t,e),a=n?e:o(e,t);i.length&&this.updateHoverStyle(i,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,r))return;const o=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(o||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:r=[],options:o}=this,i=t,a=this._getActiveElements(e,r,n,i),s=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,r){return n&&"mouseout"!==e.type?r?t:e:null}(e,this._lastEvent,n,s);n&&(this._lastEvent=null,fe(o.onHover,[e,a,this],this),s&&fe(o.onClick,[e,a,this],this));const c=!ge(a,r);return(c||t)&&(this._active=a,this._updateHoverStyles(a,r,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,r){if("mouseout"===e.type)return[];if(!n)return t;const o=this.options.hover;return this.getElementsAtEventForMode(e,o.mode,o,r)}}function Zo(){return me(Xo.instances,(e=>e._plugins.invalidate()))}function Qo(e,t,n,r){const o=function(e){return Gt(e,["outerStart","outerEnd","innerStart","innerEnd"])}(e.options.borderRadius),i=(n-t)/2,a=Math.min(i,r*t/2),s=e=>{const t=(n-Math.min(i,e))*r/2;return Xe(e,0,Math.min(i,t))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:Xe(o.innerStart,0,a),innerEnd:Xe(o.innerEnd,0,a)}}function ei(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function ti(e,t,n,r,o,i){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-c,0),p=u>0?u+r+n+c:0;let h=0;const f=o-l;if(r){const e=((u>0?u-r:0)+(d>0?d-r:0))/2;h=(f-(0!==e?f*e/(e+r):f))/2}const m=(f-Math.max(.001,f*d-n/Ae)/d)/2,g=l+m+h,v=o-m-h,{outerStart:y,outerEnd:b,innerStart:x,innerEnd:w}=Qo(t,p,d,v-g),k=d-y,_=d-b,E=g+y/k,C=v-b/_,N=p+x,S=p+w,V=g+x/N,A=v-w/S;if(e.beginPath(),i){const t=(E+C)/2;if(e.arc(a,s,d,E,t),e.arc(a,s,d,t,C),b>0){const t=ei(_,C,a,s);e.arc(t.x,t.y,b,C,v+Oe)}const n=ei(S,v,a,s);if(e.lineTo(n.x,n.y),w>0){const t=ei(S,A,a,s);e.arc(t.x,t.y,w,v+Oe,A+Math.PI)}const r=(v-w/p+(g+x/p))/2;if(e.arc(a,s,p,v-w/p,r,!0),e.arc(a,s,p,r,g+x/p,!0),x>0){const t=ei(N,V,a,s);e.arc(t.x,t.y,x,V+Math.PI,g-Oe)}const o=ei(k,g,a,s);if(e.lineTo(o.x,o.y),y>0){const t=ei(k,E,a,s);e.arc(t.x,t.y,y,g-Oe,E)}}else{e.moveTo(a,s);const t=Math.cos(E)*d+a,n=Math.sin(E)*d+s;e.lineTo(t,n);const r=Math.cos(C)*d+a,o=Math.sin(C)*d+s;e.lineTo(r,o)}e.closePath()}function ni(e,t,n,r,o){const{fullCircles:i,startAngle:a,circumference:s,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:p}=l,h="inner"===l.borderAlign;if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=p,h?(e.lineWidth=2*c,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let f=t.endAngle;if(i){ti(e,t,n,r,f,o);for(let t=0;t<i;++t)e.stroke();isNaN(s)||(f=a+(s%De||De))}h&&function(e,t,n){const{startAngle:r,pixelMargin:o,x:i,y:a,outerRadius:s,innerRadius:l}=t;
vendor: 4,677 bytes, line 2
2let c=o/s;e.beginPath(),e.arc(i,a,s,r-c,n+c),l>o?(c=o/l,e.arc(i,a,l,n+c,r-c,!0)):e.arc(i,a,o,n+Oe,r-Oe),e.closePath(),e.clip()}(e,t,f),i||(ti(e,t,n,r,f,o),e.stroke())}function ri(e,t,n=t){e.lineCap=pe(n.borderCapStyle,t.borderCapStyle),e.setLineDash(pe(n.borderDash,t.borderDash)),e.lineDashOffset=pe(n.borderDashOffset,t.borderDashOffset),e.lineJoin=pe(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=pe(n.borderWidth,t.borderWidth),e.strokeStyle=pe(n.borderColor,t.borderColor)}function oi(e,t,n){e.lineTo(n.x,n.y)}function ii(e,t,n={}){const r=e.length,{start:o=0,end:i=r-1}=n,{start:a,end:s}=t,l=Math.max(o,a),c=Math.min(i,s),u=o<a&&i<a||o>s&&i>s;return{count:r,start:l,loop:t.loop,ilen:c<l&&!u?r+c-l:c-l}}function ai(e,t,n,r){const{points:o,options:i}=t,{count:a,start:s,loop:l,ilen:c}=ii(o,n,r),u=function(e){return e.stepped?Rt:e.tension||"monotone"===e.cubicInterpolationMode?$t:oi}(i);let d,p,h,{move:f=!0,reverse:m}=r||{};for(d=0;d<=c;++d)p=o[(s+(m?c-d:d))%a],p.skip||(f?(e.moveTo(p.x,p.y),f=!1):u(e,h,p,m,i.stepped),h=p);return l&&(p=o[(s+(m?c:0))%a],u(e,h,p,m,i.stepped)),!!l}function si(e,t,n,r){const o=t.points,{count:i,start:a,ilen:s}=ii(o,n,r),{move:l=!0,reverse:c}=r||{};let u,d,p,h,f,m,g=0,v=0;const y=e=>(a+(c?s-e:e))%i,b=()=>{h!==f&&(e.lineTo(g,f),e.lineTo(g,h),e.lineTo(g,m))};for(l&&(d=o[y(0)],e.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=o[y(u)],d.skip)continue;const t=d.x,n=d.y,r=0|t;r===p?(n<h?h=n:n>f&&(f=n),g=(v*g+t)/++v):(b(),e.lineTo(t,n),p=r,v=0,h=f=n),m=n}b()}function li(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n)?si:ai}const ci="function"==typeof Path2D;function ui(e,t,n,r){ci&&!t.options.segment?function(e,t,n,r){let o=t._path;o||(o=t._path=new Path2D,t.path(o,n,r)&&o.closePath()),ri(e,t.options),e.stroke(o)}(e,t,n,r):function(e,t,n,r){const{segments:o,options:i}=t,a=li(t);for(const s of o)ri(e,i,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}(e,t,n,r)}class di extends co{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const r=n.spanGaps?this._loop:this._fullLoop;kn(this._points,n,e,r,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,r=e.options.spanGaps,o=n.length;if(!o)return[];const i=!!e._loop,{start:a,end:s}=function(e,t,n,r){let o=0,i=t-1;if(n&&!r)for(;o<t&&!e[o].skip;)o++;for(;o<t&&e[o].skip;)o++;for(o%=t,n&&(i+=o);i>o&&e[i%t].skip;)i--;return i%=t,{start:o,end:i}}(n,o,i,r);return Wn(e,!0===r?[{start:a,end:s,loop:i}]:function(e,t,n,r){const o=e.length,i=[];let a,s=t,l=e[t];for(a=t+1;a<=n;++a){const n=e[a%o];n.skip||n.stop?l.skip||(r=!1,i.push({start:t%o,end:(a-1)%o,loop:r}),t=s=n.stop?a:null):(s=a,l.skip&&(t=a)),l=n}return null!==s&&i.push({start:t%o,end:s%o,loop:r}),i}(n,a,s<a?s+o:s,!!e._fullLoop&&0===a&&s===o-1),n,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,r=e[t],o=this.points,i=Un(this,{property:t,start:r,end:r});if(!i.length)return;const a=[],s=function(e){return e.stepped?Ln:e.tension||"monotone"===e.cubicInterpolationMode?In:Pn}(n);let l,c;for(l=0,c=i.length;l<c;++l){const{start:c,end:u}=i[l],d=o[c],p=o[u];if(d===p){a.push(d);continue}const h=s(d,p,Math.abs((r-d[t])/(p[t]-d[t])),n.stepped);h[t]=e[t],a.push(h)}return 1===a.length?a[0]:a}pathSegment(e,t,n){return li(this)(e,this,t,n)}path(e,t,n){const r=this.segments,o=li(this);let i=this._loop;t=t||0,n=n||this.points.length-t;for(const a of r)i&=o(e,this,a,{start:t,end:t+n-1});return!!i}draw(e,t,n,r){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(e.save(),ui(e,this,n,r),e.restore(
vendor: 4,214 bytes, line 2
2)),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function pi(e,t,n,r){const o=e.options,{[n]:i}=e.getProps([n],r);return Math.abs(t-i)<o.radius+o.hitRadius}function hi(e,t){const{x:n,y:r,base:o,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let s,l,c,u,d;return e.horizontal?(d=a/2,s=Math.min(n,o),l=Math.max(n,o),c=r-d,u=r+d):(d=i/2,s=n-d,l=n+d,c=Math.min(r,o),u=Math.max(r,o)),{left:s,top:c,right:l,bottom:u}}function fi(e,t,n,r){return e?0:Xe(t,n,r)}function mi(e){const t=hi(e),n=t.right-t.left,r=t.bottom-t.top,o=function(e,t,n){const r=e.options.borderWidth,o=e.borderSkipped,i=Kt(r);return{t:fi(o.top,i.top,0,n),r:fi(o.right,i.right,0,t),b:fi(o.bottom,i.bottom,0,n),l:fi(o.left,i.left,0,t)}}(e,n/2,r/2),i=function(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,i=Jt(o),a=Math.min(t,n),s=e.borderSkipped,l=r||ce(o);return{topLeft:fi(!l||s.top||s.left,i.topLeft,0,a),topRight:fi(!l||s.top||s.right,i.topRight,0,a),bottomLeft:fi(!l||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:fi(!l||s.bottom||s.right,i.bottomRight,0,a)}}(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function gi(e,t,n,r){const o=null===t,i=null===n,a=e&&!(o&&i)&&hi(e,r);return a&&(o||Ze(t,a.left,a.right))&&(i||Ze(n,a.top,a.bottom))}function vi(e,t){e.rect(t.x,t.y,t.w,t.h)}function yi(e,t,n={}){const r=e.x!==n.x?-t:0,o=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-o;return{x:e.x+r,y:e.y+o,w:e.w+i,h:e.h+a,radius:e.radius}}var bi=Object.freeze({__proto__:null,ArcElement:class extends co{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.getProps(["x","y"],n),{angle:o,distance:i}=qe(r,{x:e,y:t}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,p=pe(u,s-a),h=Je(o,a,s)&&a!==s,f=p>=De||h,m=Ze(i,l+d,c+d);return f&&m}getCenterPoint(e){const{x:t,y:n,startAngle:r,endAngle:o,innerRadius:i,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:s,spacing:l}=this.options,c=(r+o)/2,u=(i+a+l+s)/2;return{x:t+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,r=(t.offset||0)/4,o=(t.spacing||0)/2,i=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>De?Math.floor(n/De):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();const a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*r,Math.sin(a)*r);const s=r*(1-Math.sin(Math.min(Ae,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,r,o){const{fullCircles:i,startAngle:a,circumference:s}=t;let l=t.endAngle;if(i){ti(e,t,n,r,l,o);for(let t=0;t<i;++t)e.fill();isNaN(s)||(l=a+(s%De||De))}ti(e,t,n,r,l,o),e.fill()}(e,this,s,o,i),ni(e,this,s,o,i),e.restore()}},BarElement:class extends co{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmou
vendor: 4,897 bytes, line 2
2nt=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:r}}=this,{inner:o,outer:i}=mi(this),a=(s=i.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?Ut:vi;var s;e.save(),i.w===o.w&&i.h===o.h||(e.beginPath(),a(e,yi(i,t,o)),e.clip(),a(e,yi(o,-t,i)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),a(e,yi(o,t)),e.fillStyle=r,e.fill(),e.restore()}inRange(e,t,n){return gi(this,e,t,n)}inXRange(e,t){return gi(this,e,null,t)}inYRange(e,t){return gi(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:r,horizontal:o}=this.getProps(["x","y","base","horizontal"],e);return{x:o?(t+r)/2:t,y:o?n:(n+r)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}},LineElement:di,PointElement:class extends co{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.options,{x:o,y:i}=this.getProps(["x","y"],n);return Math.pow(e-o,2)+Math.pow(t-i,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(e,t){return pi(this,e,"x",t)}inYRange(e,t){return pi(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;t=Math.max(t,t&&e.hoverRadius||0);return 2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!Lt(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,Ot(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}});const xi=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],wi=xi.map((e=>e.replace("rgb(","rgba(").replace(")",", 0.5)")));function ki(e){return xi[e%xi.length]}function _i(e){return wi[e%wi.length]}function Ei(e){let t=0;return(n,r)=>{const o=e.getDatasetMeta(r).controller;o instanceof xr?t=function(e,t){return e.backgroundColor=e.data.map((()=>ki(t++))),t}(n,t):o instanceof wr?t=function(e,t){return e.backgroundColor=e.data.map((()=>_i(t++))),t}(n,t):o&&(t=function(e,t){return e.borderColor=ki(t),e.backgroundColor=_i(t),++t}(n,t))}}function Ci(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}var Ni={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:o}=e.config,{elements:i}=o,a=Ci(r)||(s=o)&&(s.borderColor||s.backgroundColor)||i&&Ci(i)||"rgba(0,0,0,0.1)"!==At.borderColor||"rgba(0,0,0,0.1)"!==At.backgroundColor;var s;if(!n.forceOverride&&a)return;const l=Ei(e);r.forEach(l)}};function Si(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function Vi(e){e.data.datasets.forEach((e=>{Si(e)}))}var Ai={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled)return void Vi(e);const r=e.width;e.data.datasets.forEach(((t,o)=>{const{_data:i,indexAxis:a}=t,s=e.getDatasetMeta(o),l=i||t.data;if("y"===Qt([a,e.options.indexAxis]))return;if(!s.controller.supportsDecimation)return;const c=e.scales[s.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(e.options.parsing)return;let{start:u,count:d}=function(e,t){const n=t.length;let r,o=0;const{iScale:i}=e,{min:a,max:s,minDefined:l,maxDefined:c}=i.getUserBounds();return l&&(o=Xe(et(t,i.axis,a).lo,0,n-1)),r=c?Xe(et(t,i.axis,s).hi+1,o,n)-o:n-o,{start:o,count:r}}(s,l);if(d<=(n.threshold||4*r))return void Si(t);let p;switch(se(i)&&(t._data=l,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":p=function(e,t,n,r,o){const i=o.samples||r;if(i>=n)return e.slice(t,t+n);const a=[],s=(n-2)/(i-2);let l=0;const c=t+n-1;let u,d,p,h,f,m=t;for(a[l++]=e[m],u=0;u<i-2;u++){let r,o=0,i=0;const c=Math.floor((u+1)*s)+1+t,g=Math.min(Math.floor((u+2)*s)+1,n)+t,v=g-c;for(r=c;r<g;r++)o+=e[r].x,i+=e[r].y;o/=v,i/=v;const y=Math.floor(u*s)+1+t,b=Math.min(Math.floor((u+1)*s)+1,n)+t,{x,y:w}=e[m];for(p=h=-1,r=y;r<b;r++)h=.5*Math.abs((x-o)*(e[r].y-w)-(x-e[r].x)*(i-w)),h>p&&(p=h,d=e[r],f=r);a[l++]=d,m=f}return a[l++]=e[c],a}(l,u,d,r,n);break;case"min-max":p=function(e,t,n,r){let o,i,a,s,l,c,u,d,p,h,f=0,m=0;const g=[],v=t+n-1,y=e[t].x,b=e[v].x-y;for(o=t;o<t+n;++o){i=e[o],a=(i.x-y)/b*r,s=i.y;const t=0|a;if(t===l)s<p?(p=s,c=o):s>h&&(h=s,u=o),f=(m*f+i.x)/++m;else{const n=o-1;if(!se(c)&&!se(u)){const t=Math.min(c,u),r=Math.max(c,u);t!==d&&t!==n&&g.push({...e[t],x:f}),r!==d&&r!==n&&g.push({...e[r],x:f})}o>
vendor: 8,414 bytes, line 2
20&&n!==d&&g.push(e[n]),g.push(i),l=t,m=0,p=h=s,c=u=d=o}}return g}(l,u,d,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}t._decimated=p}))},destroy(e){Vi(e)}};function Di(e,t,n,r){if(r)return;let o=t[e],i=n[e];return"angle"===e&&(o=Ke(o),i=Ke(i)),{property:e,start:o,end:i}}function Mi(e,t,n){for(;t>e;t--){const e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function Ti(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function Bi(e,t){let n=[],r=!1;return le(e)?(r=!0,n=e):n=function(e,t){const{x:n=null,y:r=null}=e||{},o=t.points,i=[];return t.segments.forEach((({start:e,end:t})=>{t=Mi(e,t,o);const a=o[e],s=o[t];null!==r?(i.push({x:a.x,y:r}),i.push({x:s.x,y:r})):null!==n&&(i.push({x:n,y:a.y}),i.push({x:n,y:s.y}))})),i}(e,t),n.length?new di({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function Oi(e){return e&&!1!==e.fill}function Pi(e,t,n){let r=e[t].fill;const o=[t];let i;if(!n)return r;for(;!1!==r&&-1===o.indexOf(r);){if(!ue(r))return r;if(i=e[r],!i)return!1;if(i.visible)return r;o.push(r),r=i.fill}return!1}function Li(e,t,n){const r=function(e){const t=e.options,n=t.fill;let r=pe(n&&n.target,n);void 0===r&&(r=!!t.backgroundColor);if(!1===r||null===r)return!1;if(!0===r)return"origin";return r}(e);if(ce(r))return!isNaN(r.value)&&r;let o=parseFloat(r);return ue(o)&&Math.floor(o)===o?function(e,t,n,r){"-"!==e&&"+"!==e||(n=t+n);if(n===t||n<0||n>=r)return!1;return n}(r[0],t,o,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function Ii(e,t,n){const r=[];for(let o=0;o<n.length;o++){const i=n[o],{first:a,last:s,point:l}=ji(i,t,"x");if(!(!l||a&&s))if(a)r.unshift(l);else if(e.push(l),!s)break}e.push(...r)}function ji(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const o=r[n],i=e.segments,a=e.points;let s=!1,l=!1;for(let e=0;e<i.length;e++){const t=i[e],r=a[t.start][n],c=a[t.end][n];if(Ze(o,r,c)){s=o===r,l=o===c;break}}return{first:s,last:l,point:r}}class Ri{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,n){const{x:r,y:o,radius:i}=this;return t=t||{start:0,end:De},e.arc(r,o,i,t.end,t.start,!0),!n.bounds}interpolate(e){const{x:t,y:n,radius:r}=this,o=e.angle;return{x:t+Math.cos(o)*r,y:n+Math.sin(o)*r,angle:o}}}function $i(e){const{chart:t,fill:n,line:r}=e;if(ue(n))return function(e,t){const n=e.getDatasetMeta(t),r=n&&e.isDatasetVisible(t);return r?n.dataset:null}(t,n);if("stack"===n)return function(e){const{scale:t,index:n,line:r}=e,o=[],i=r.segments,a=r.points,s=function(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let e=0;e<r.length;e++){const o=r[e];if(o.index===t)break;o.hidden||n.unshift(o.dataset)}return n}(t,n);s.push(Bi({x:null,y:t.bottom},r));for(let e=0;e<i.length;e++){const t=i[e];for(let e=t.start;e<=t.end;e++)Ii(o,a[e],s)}return new di({points:o,options:{}})}(e);if("shape"===n)return!0;const o=function(e){const t=e.scale||{};if(t.getPointPositionForValue)return function(e){const{scale:t,fill:n}=e,r=t.options,o=t.getLabels().length,i=r.reverse?t.max:t.min,a=function(e,t,n){let r;return r="start"===e?n:"end"===e?t.options.reverse?t.min:t.max:ce(e)?e.value:t.getBaseValue(),r}(n,t,i),s=[];if(r.grid.circular){const e=t.getPointPositionForValue(0,i);return new Ri({x:e.x,y:e.y,radius:t.getDistanceFromCenterForValue(a)})}for(let e=0;e<o;++e)s.push(t.getPointPositionForValue(e,a));return s}(e);return function(e){const{scale:t={},fill:n}=e,r=function(e,t){let n=null;return"start"===e?n=t.bottom:"end"===e?n=t.top:ce(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}(n,t);if(ue(r)){const e=t.isHorizontal();return{x:e?r:null,y:e?null:r}}return null}(e)}(e);return o instanceof Ri?o:Bi(o,r)}function zi(e,t,n){const r=$i(t),{line:o,scale:i,axis:a}=t,s=o.options,l=s.fill,c=s.backgroundColor,{above:u=c,below:d=c}=l||{};r&&o.points.length&&(It(e,n),function(e,t){const{line:n,target:r,above:o,below:i,area:a,scale:s}=t,l=n._loop?"angle":t.axis;e.save(),"x"===l&&i!==o&&(Fi(e,r,a.top),Hi(e,{line:n,target:r,color:o,scale:s,property:l}),e.restore(),e.save(),Fi(e,r,a.bottom));Hi(e,{line:n,target:r,color:i,scale:s,property:l}),e.restore()}(e,{line:o,target:r,above:u,below:d,area:n,scale:i,axis:a}),jt(e))}function Fi(e,t,n){const{segments:r,points:o}=t;let i=!0,a=!1;e.beginPath();for(const s of r){const{start:r,end:l}=s,c=o[r],u=o[Mi(r,l,o)];i?(e.moveTo(c.x,c.y),i=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),a=!!t.pathSegment(e,s,{move:a}),a?e.closePath():e.lineTo(u.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function Hi(e,t){const{line:n,target:r,property:o,color:i,scale:a}=t,s=function(e,t,n){const r=e.segments,o=e.points,i=t.points,a=[];for(const e of r){let{start:r,end:s}=e;s=Mi(r,s,o);const l=Di(n,o[r],o[s],e.loop);if(!t.segments){a.push({source:e,target:l,start:o[r],end:o[s]});continue}const c=Un(t,l);for(const t of c){const r=Di(n,i[t.start],i[t.end],t.loop),s=Hn(e,o,r);for(const e of s)a.push({source:e,target:t,start:{[n]:Ti(l,r,"start",Math.max)},end:{[n]:Ti(l,r,"end",Math.min)}})}}return a}(n,r,o);for(const{source:t,target:l,start:c,end:u}of s){const{style:{backgroundColor:s=i}={}}=t,d=!0!==r;e.save(),e.fillStyle=s,Ui(e,a,d&&Di(o,c,u)),e.beginPath();const p=!!n.pathSegment(e,t);let h;if(d){p?e.closePath():Wi(e,r,u,o);const t=!!r.pathSegment(e,l,{move:p,reverse:!0});h=p&&t,h||Wi(e,r,c,o)}e.closePath(),e.fill(h?"evenodd":"nonzero"),e.restore()}}function Ui(e,t,n){const{top:r,bottom:o}=t.chart.chartArea,{property:i,start:a,end:s}=n||{};"x"===i&&(e.beginPath(),e.rect(a,r,s-a,o-r),e.clip())}function Wi(e,t,n,r){const o=t.interpolate(n,r);o&&e.lineTo(o.x,o.y)}var qi={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,o=[];let i,a,s,l;for(a=0;a<r;++a)i=e.getDatasetMeta(a),s=i.dataset,l=null,s&&s.options&&s instanceof di&&(l={visible:e.isDatasetVisible(a),index:a,fill:Li(s,a,r),chart:e,axis:i.controller.options.indexAxis,scale:i.vScale,line:s}),i.$filler=l,o.push(l);for(a=0;a<r;++a)l=o[a],l&&!1!==l.fill&&(l.fill=Pi(o,a,n.propagate))},beforeDraw(e,t,n){const r="beforeDraw"===n.drawTime,o=e.getSortedVisibleDatasetMetas(),i=e.chartArea;for(let t=o.length-1;t>=0;--t){const n=o[t].$filler;n&&(n.line.updateControlPoints(i,n.axis),r&&n.fill&&zi(e.ctx,n,i))}},beforeDatasetsDraw(e,t,n){if("beforeDatasetsDraw"!==n.drawTime)return;const r=e.getSortedVisibleDatasetMetas();for(let t=r.length-1;t>=0;--t){const n=r[t].$filler;Oi(n)&&zi(e.ctx,n,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;Oi(r)&&"beforeDatasetDraw"===n.drawTime&&zi(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Yi=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}};class Gi extends co{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=fe(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,r=Zt(n.font),o=r.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=Yi(n,o);let l,c;t.font=r.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(i,o,a,s)+10):(c=this.maxHeight,l=this._fitCols(i,r,a,s)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){const{ctx:o,maxWidth:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=r+a;let u=e;o.textAlign="left",o.textBaseline="middle";let d=-1,p=-c;
vendor: 51,844 bytes, line 2
2return this.legendItems.forEach(((e,h)=>{const f=n+t/2+o.measureText(e.text).width;(0===h||l[l.length-1]+f+2*a>i)&&(u+=c,l[l.length-(h>0?0:1)]=0,p+=c,d++),s[h]={left:0,top:p,row:d,width:f,height:r},l[l.length-1]+=f+a})),u}_fitCols(e,t,n,r){const{ctx:o,maxHeight:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=i-e;let u=a,d=0,p=0,h=0,f=0;return this.legendItems.forEach(((e,i)=>{const{itemWidth:m,itemHeight:g}=function(e,t,n,r,o){const i=function(e,t,n,r){let o=e.text;o&&"string"!=typeof o&&(o=o.reduce(((e,t)=>e.length>t.length?e:t)));return t+n.size/2+r.measureText(o).width}(r,e,t,n),a=function(e,t,n){let r=e;"string"!=typeof t.text&&(r=Ki(t,n));return r}(o,r,t.lineHeight);return{itemWidth:i,itemHeight:a}}(n,t,o,e,r);i>0&&p+g+2*a>c&&(u+=d+a,l.push({width:d,height:p}),h+=d+a,f++,d=p=0),s[i]={left:h,top:p,col:f,width:m,height:g},d=Math.max(d,m),p+=g+a})),u+=d,l.push({width:d,height:p}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:o}}=this,i=jn(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=lt(n,this.left+r,this.right-this.lineWidths[o]);for(const s of t)o!==s.row&&(o=s.row,a=lt(n,this.left+r,this.right-this.lineWidths[o])),s.top+=this.top+e+r,s.left=i.leftForLtr(i.x(a),s.width),a+=s.width+r}else{let o=0,a=lt(n,this.top+e+r,this.bottom-this.columnSizes[o].height);for(const s of t)s.col!==o&&(o=s.col,a=lt(n,this.top+e+r,this.bottom-this.columnSizes[o].height)),s.top=a,s.left+=this.left+r,s.left=i.leftForLtr(i.x(s.left),s.width),a+=s.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;It(e,this),this._draw(),jt(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:o,labels:i}=e,a=At.color,s=jn(e.rtl,this.left,this.width),l=Zt(i.font),{padding:c}=i,u=l.size,d=u/2;let p;this.drawTitle(),r.textAlign=s.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:h,boxHeight:f,itemHeight:m}=Yi(i,u),g=this.isHorizontal(),v=this._computeTitleHeight();p=g?{x:lt(o,this.left+c,this.right-n[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:lt(o,this.top+v+c,this.bottom-t[0].height),line:0},Rn(this.ctx,e.textDirection);const y=m+c;this.legendItems.forEach(((b,x)=>{r.strokeStyle=b.fontColor,r.fillStyle=b.fontColor;const w=r.measureText(b.text).width,k=s.textAlign(b.textAlign||(b.textAlign=i.textAlign)),_=h+d+w;let E=p.x,C=p.y;s.setWidth(this.width),g?x>0&&E+_+c>this.right&&(C=p.y+=y,p.line++,E=p.x=lt(o,this.left+c,this.right-n[p.line])):x>0&&C+y>this.bottom&&(E=p.x=E+t[p.line].width+c,p.line++,C=p.y=lt(o,this.top+v+c,this.bottom-t[p.line].height));if(function(e,t,n){if(isNaN(h)||h<=0||isNaN(f)||f<0)return;r.save();const o=pe(n.lineWidth,1);if(r.fillStyle=pe(n.fillStyle,a),r.lineCap=pe(n.lineCap,"butt"),r.lineDashOffset=pe(n.lineDashOffset,0),r.lineJoin=pe(n.lineJoin,"miter"),r.lineWidth=o,r.strokeStyle=pe(n.strokeStyle,a),r.setLineDash(pe(n.lineDash,[])),i.usePointStyle){const a={radius:f*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=s.xPlus(e,h/2);Pt(r,a,l,t+d,i.pointStyleWidth&&h)}else{const i=t+Math.max((u-f)/2,0),a=s.leftForLtr(e,h),l=Jt(n.borderRadius);r.beginPath(),Object.values(l).some((e=>0!==e))?Ut(r,{x:a,y:i,w:h,h:f,radius:l}):r.rect(a,i,h,f),r.fill(),0!==o&&r.stroke()}r.restore()}(s.x(E),C,b),E=((e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t)(k,E+h+d,g?E+_:this.right,e.rtl),function(e,t,n){Ht(r,n.text,e,t+m/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(E),C,b),g)p.x+=_+c;else if("string"!=typeof b.text){const e=l.lineHeight;p.y+=Ki(b,e)+c}else p.y+=y})),$n(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=Zt(t.font),r=Xt(t.padding);if(!t.display)return;const o=jn(e.rtl,this.left,this.width),i=this.ctx,a=t.position,s=n.size/2,l=r.top+s;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=lt(e.align,u,this.right-d);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+lt(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const p=lt(a,u,u+d);i.textAlign=o.textAlign(st(a)),i.textBaseline="middle",i.strokeStyle=t.color,i.fillStyle=t.color,i.font=n.string,Ht(i,t.text,p,c,n)}_computeTitleHeight(){const e=this.options.title,t=Zt(e.font),n=Xt(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,o;if(Ze(e,this.left,this.right)&&Ze(t,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(r=o[n],Ze(e,r.left,r.left+r.width)&&Ze(t,r.top,r.top+r.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const i=this._hoveredItem,a=(o=n,null!==(r=i)&&null!==o&&r.datasetIndex===o.datasetIndex&&r.index===o.index);i&&!a&&fe(t.onLeave,[e,i,this],this),this._hoveredItem=n,n&&!a&&fe(t.onHover,[e,n,this],this)}else n&&fe(t.onClick,[e,n,this],this);var r,o}}function Ki(e,t){return t*(e.text?e.text.length:0)}var Ji={id:"legend",_element:Gi,start(e,t,n){const r=e.legend=new Gi({ctx:e.ctx,options:n,chart:e});Wr.configure(e,r,n),Wr.addBox(e,r)},stop(e){Wr.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Wr.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),t.hidden=!0):(o.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const l=e.controller.getStyle(n?0:void 0),c=Xt(l.borderWidth);return{text:t[e.index].label,fillStyle:l.backgroundColor,fontColor:i,hidden:!e.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:r||l.pointStyle,rotation:l.rotation,textAlign:o||l.textAlign,borderRadius:a&&(s||l.borderRadius),datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Xi extends co{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const r=le(n.text)?n.text.length:1;this._padding=Xt(n.padding);const o=r*Zt(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:r,right:o,options:i}=this,a=i.align;let s,l,c,u=0;return this.isHorizontal()?(l=lt(a,n,o),c=t+e,s=o-n):("left"===i.position?(l=n+e,c=lt(a,r,t),u=-.5*Ae):(l=o-e,c=lt(a,t,r),u=.5*Ae),s=r-t),{titleX:l,titleY:c,maxWidth:s,rotation:u}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=Zt(t.font),r=n.lineHeight/2+this._padding.top,{titleX:o,titleY:i,maxWidth:a,rotation:s}=this._drawArgs(r);Ht(e,t.text,0,0,n,{color:t.color,maxWidth:a,rotation:s,textAlign:st(t.align),textBaseline:"middle",translation:[o,i]})}}var Zi={id:"title",_element:Xi,start(e,t,n){!function(e,t){const n=new Xi({ctx:e.ctx,options:t,chart:e});Wr.configure(e,n,t),Wr.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;Wr.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Wr.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Qi=new WeakMap;var ea={id:"subtitle",start(e,t,n){const r=new Xi({ctx:e.ctx,options:n,chart:e});Wr.configure(e,r,n),Wr.addBox(e,r),Qi.set(e,r)},stop(e){Wr.removeBox(e,Qi.get(e)),Qi.delete(e)},beforeUpdate(e,t,n){const r=Qi.get(e);Wr.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ta={average(e){if(!e.length)return!1;let t,n,r=new Set,o=0,i=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();r.add(e.x),o+=e.y,++i}}if(0===i||0===r.size)return!1;return{x:[...r].reduce(((e,t)=>e+t))/r.size,y:o/i}},nearest(e,t){if(!e.length)return!1;let n,r,o,i=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){const r=e[n].element;if(r&&r.hasValue()){const e=Ye(t,r.getCenterPoint());e<s&&(s=e,o=r)}}if(o){const e=o.tooltipPosition();i=e.x,a=e.y}return{x:i,y:a}}};function na(e,t){return t&&(le(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function ra(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function oa(e,t){const{element:n,datasetIndex:r,index:o}=t,i=e.getDatasetMeta(r).controller,{label:a,value:s}=i.getLabelAndValue(o);return{chart:e,label:a,parsed:i.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:s,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function ia(e,t){const n=e.chart.ctx,{body:r,footer:o,title:i}=e,{boxWidth:a,boxHeight:s}=t,l=Zt(t.bodyFont),c=Zt(t.titleFont),u=Zt(t.footerFont),d=i.length,p=o.length,h=r.length,f=Xt(t.padding);let m=f.height,g=0,v=r.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){m+=h*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-h)*l.lineHeight+(v-1)*t.bodySpacing}p&&(m+=t.footerMarginTop+p*u.lineHeight+(p-1)*t.footerSpacing);let y=0;const b=function(e){g=Math.max(g,n.measureText(e).width+y)};return n.save(),n.font=c.string,me(e.title,b),n.font=l.string,me(e.beforeBody.concat(e.afterBody),b),y=t.displayColors?a+2+t.boxPadding:0,me(r,(e=>{me(e.before,b),me(e.lines,b),me(e.after,b)})),y=0,n.font=u.string,me(e.footer,b),n.restore(),g+=f.width,{width:g,height:m}}function aa(e,t,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return"center"===r?c=o<=(s+l)/2?"left":"right":o<=i/2?c="left":o>=a-i/2&&(c="right"),function(e,t,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;return"left"===e&&o+i+a>t.width||"right"===e&&o-i-a<0||void 0}(c,e,t,n)&&(c="center"),c}function sa(e,t,n){const r=n.yAlign||t.yAlign||function(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||aa(e,t,n,r),yAlign:r}}function la(e,t,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=o+i,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:h}=Jt(a);let f=function(e,t){let{x:n,width:r}=e;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}(t,s);const m=function(e,t,n){let{y:r,height:o}=e;return"top"===t?r+=n:r-="bottom"===t?o+n:o/2,r}(t,l,c);return"center"===l?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=Math.max(u,p)+o:"right"===s&&(f+=Math.max(d,h)+o),{x:Xe(f,0,r.width-t.width),y:Xe(m,0,r.height-t.height)}}function ca(e,t,n){const r=Xt(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function ua(e){return na([],ra(e))}function da(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const pa={beforeTitle:ie,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:ie,beforeBody:ie,beforeLabel:ie,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return se(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:ie,afterBody:ie,beforeFooter:ie,footer:ie,afterFooter:ie};function ha(e,t,n,r){const o=e[t].call(n,r);return void 0===o?pa[t].call(n,r):o}class fa extends co{static positioners=ta;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,o=new Qn(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,en(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,r=ha(n,"beforeTitle",this,e),o=ha(n,"title",this,e),i=ha(n,"afterTitle",this,e);let a=[];return a=na(a,ra(r)),a=na(a,ra(o)),a=na(a,ra(i)),a}getBeforeBody(e,t){return ua(ha(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,r=[];return me(e,(e=>{const t={before:[],lines:[],after:[]},o=da(n,e);na(t.before,ra(ha(o,"beforeLabel",this,e))),na(t.lines,ha(o,"label",this,e)),na(t.after,ra(ha(o,"afterLabel",this,e))),r.push(t)})),r}getAfterBody(e,t){return ua(ha(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,r=ha(n,"beforeFooter",this,e),o=ha(n,"footer",this,e),i=ha(n,"afterFooter",this,e);let a=[];return a=na(a,ra(r)),a=na(a,ra(o)),a=na(a,ra(i)),a}_createItems(e){const t=this._active,n=this.chart.data,r=[],o=[],i=[];let a,s,l=[];for(a=0,s=t.length;a<s;++a)l.push(oa(this.chart,t[a]));return e.filter&&(l=l.filter(((t,r,o)=>e.filter(t,r,o,n)))),e.itemSort&&(l=l.sort(((t,r)=>e.itemSort(t,r,n)))),me(l,(t=>{const n=da(e.callbacks,t);r.push(ha(n,"labelColor",this,t)),o.push(ha(n,"labelPointStyle",this,t)),i.push(ha(n,"labelTextColor",this,t))})),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=i,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),r=this._active;let o,i=[];if(r.length){const e=ta[n.position].call(this,r,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const t=this._size=ia(this,n),a=Object.assign({},e,t),s=sa(this.chart,n,a),l=la(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=i,this.$context=void 0,o&&this._resolveAnimations().update(this,o),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){const o=this.getCaretPosition(e,n,r);t.lineTo(o.x1,o.y1),t.lineTo(o.x2,o.y2),t.lineTo(o.x3,o.y3)}getCaretPosition(e,t,n){const{xAlign:r,yAlign:o}=this,{caretSize:i,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=Jt(a),{x:d,y:p}=e,{width:h,height:f}=t;let m,g,v,y,b,x;return"center"===o?(b=p+f/2,"left"===r?(m=d,g=m-i,y=b+i,x=b-i):(m=d+h,g=m+i,y=b-i,x=b+i),v=m):(g="left"===r?d+Math.max(s,c)+i:"right"===r?d+h-Math.max(l,u)-i:this.caretX,"top"===o?(y=p,b=y-i,m=g-i,v=g+i):(y=p+f,b=y+i,m=g+i,v=g-i),x=y),{x1:m,x2:g,x3:v,y1:y,y2:b,y3:x}}drawTitle(e,t,n){const r=this.title,o=r.length;let i,a,s;if(o){const l=jn(n.rtl,this.x,this.width);for(e.x=ca(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",i=Zt(n.titleFont),a=n.titleSpacing,t.fillStyle=n.titleColor,t.font=i.string,s=0;s<o;++s)t.fillText(r[s],l.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+a,s+1===o&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,t,n,r,o){const i=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l}=o,c=Zt(o.bodyFont),u=ca(this,"left",o),d=r.x(u),p=s<c.lineHeight?(c.lineHeight-s)/2:0,h=t.y+p;if(o.usePointStyle){const t={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=r.leftForLtr(d,l)+l/2,c=h+s/2;e.strokeStyle=o.multiKeyBackground,e.fillStyle=o.multiKeyBackground,Ot(e,t,n,c),e.strokeStyle=i.borderColor,e.fillStyle=i.backgroundColor,Ot(e,t,n,c)}else{e.lineWidth=ce(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,e.strokeStyle=i.borderColor,e.setLineDash(i.borderDash||[]),e.lineDashOffset=i.borderDashOffset||0;const t=r.leftForLtr(d,l),n=r.leftForLtr(r.xPlus(d,1),l-2),a=Jt(i.borderRadius);Object.values(a).some((e=>0!==e))?(e.beginPath(),e.fillStyle=o.multiKeyBackground,Ut(e,{x:t,y:h,w:l,h:s,radius:a}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),Ut(e,{x:n,y:h+1,w:l-2,h:s-2,radius:a}),e.fill()):(e.fillStyle=o.multiKeyBackground,e.fillRect(t,h,l,s),e.strokeRect(t,h,l,s),e.fillStyle=i.backgroundColor,e.fillRect(n,h+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:r}=this,{bodySpacing:o,bodyAlign:i,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=Zt(n.bodyFont);let d=u.lineHeight,p=0;const h=jn(n.rtl,this.x,this.width),f=function(n){t.fillText(n,h.x(e.x+p),e.y+d/2),e.y+=d+o},m=h.textAlign(i);let g,v,y,b,x,w,k;for(t.textAlign=i,t.textBaseline="middle",t.font=u.string,e.x=ca(this,m,n),t.fillStyle=n.bodyColor,me(this.beforeBody,f),p=a&&"right"!==m?"center"===i?l/2+c:l+2+c:0,b=0,w=r.length;b<w;++b){for(g=r[b],v=this.labelTextColors[b],t.fillStyle=v,me(g.before,f),y=g.lines,a&&y.length&&(this._drawColorBox(t,e,b,h,n),d=Math.max(u.lineHeight,s)),x=0,k=y.length;x<k;++x)f(y[x]),d=u.lineHeight;me(g.after,f)}p=0,d=u.lineHeight,me(this.afterBody,f),e.y-=o}drawFooter(e,t,n){const r=this.footer,o=r.length;let i,a;if(o){const s=jn(n.rtl,this.x,this.width);for(e.x=ca(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",i=Zt(n.footerFont),t.fillStyle=n.footerColor,t.font=i.string,a=0;a<o;++a)t.fillText(r[a],s.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+n.footerSpacing}}drawBackground(e,t,n,r){const{xAlign:o,yAlign:i}=this,{x:a,y:s}=e,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:h}=Jt(r.cornerRadius);t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(a+u,s),"top"===i&&this.drawCaret(e,t,n,r),t.lineTo(a+l-d,s),t.quadraticCurveTo(a+l,s,a+l,s+d),"center"===i&&"right"===o&&this.drawCaret(e,t,n,r),t.lineTo(a+l,s+c-h),t.quadraticCurveTo(a+l,s+c,a+l-h,s+c),"bottom"===i&&this.drawCaret(e,t,n,r),t.lineTo(a+p,s+c),t.quadraticCurveTo(a,s+c,a,s+c-p),"center"===i&&"left"===o&&this.drawCaret(e,t,n,r),t.lineTo(a,s+u),t.quadraticCurveTo(a,s,a+u,s),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,r=n&&n.x,o=n&&n.y;if(r||o){const n=ta[e.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=ia(this,e),a=Object.assign({},n,this._size),s=sa(t,e,a),l=la(e,a,s,t);r._to===l.x&&o._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const r={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=Xt(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(o,e,r,t),Rn(e,t.textDirection),o.y+=i.top,this.drawTitle(o,e,t),this.drawBody(o,e,t),this.drawFooter(o,e,t),$n(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,r=e.map((({datasetIndex:e,index:t})=>{const n=this.chart.getDatasetMeta(e);if(!n)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:n.data[t],index:t}})),o=!ge(n,r),i=this._positionChanged(r,t);(o||i)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,o=this._active||[],i=this._getActiveElements(e,o,t,n),a=this._positionChanged(i,e),s=t||!ge(i,o)||a;return s&&(this._active=i,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,r){const o=this.options;if("mouseout"===e.type)return[];if(!r)return t.filter((e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)));const i=this.chart.getElementsAtEventForMode(e,o.mode,o,n);return o.reverse&&i.reverse(),i}_positionChanged(e,t){const{caretX:n,caretY:r,options:o}=this,i=ta[o.position].call(this,e,t);return!1!==i&&(n!==i.x||r!==i.y)}}var ma={id:"tooltip",_element:fa,positioners:ta,afterInit(e,t,n){n&&(e.tooltip=new fa({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:pa},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},ga=Object.freeze({__proto__:null,Colors:Ni,Decimation:Ai,Filler:qi,Legend:Ji,SubTitle:ea,Title:Zi,Tooltip:ma});function va(e,t,n,r){const o=e.indexOf(t);if(-1===o)return((e,t,n,r)=>("string"==typeof t?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,r);return o!==e.lastIndexOf(t)?n:o}function ya(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}function ba(e,t){const n=[],{bounds:r,step:o,min:i,max:a,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,p=o||1,h=c-1,{min:f,max:m}=t,g=!se(i),v=!se(a),y=!se(l),b=(m-f)/(u+1);let x,w,k,_,E=$e((m-f)/h/p)*p;if(E<1e-14&&!g&&!v)return[{value:f},{value:m}];_=Math.ceil(m/E)-Math.floor(f/E),_>h&&(E=$e(_*E/h/p)*p),se(s)||(x=Math.pow(10,s),E=Math.ceil(E*x)/x),"ticks"===r?(w=Math.floor(f/E)*E,k=Math.ceil(m/E)*E):(w=f,k=m),g&&v&&o&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((a-i)/o,E/1e3)?(_=Math.round(Math.min((a-i)/E,c)),E=(a-i)/_,w=i,k=a):y?(w=g?i:w,k=v?a:k,_=l-1,E=(k-w)/_):(_=(k-w)/E,_=Re(_,Math.round(_),E/1e3)?Math.round(_):Math.ceil(_));const C=Math.max(We(E),We(w));x=Math.pow(10,se(s)?C:s),w=Math.round(w*x)/x,k=Math.round(k*x)/x;let N=0;for(g&&(d&&w!==i?(n.push({value:i}),w<i&&N++,Re(Math.round((w+N*E)*x)/x,i,xa(i,b,e))&&N++):w<i&&N++);N<_;++N){const e=Math.round((w+N*E)*x)/x;if(v&&e>a)break;n.push({value:e})}return v&&d&&k!==a?n.length&&Re(n[n.length-1].value,a,xa(a,b,e))?n[n.length-1].value=a:n.push({value:a}):v&&k!==a||n.push({value:k}),n}function xa(e,t,{horizontal:n,minRotation:r}){const o=He(r),i=(n?Math.sin(o):Math.cos(o))||.001,a=.75*t*(""+e).length;return Math.min(t/i,a)}class wa extends xo{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return se(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:o}=this;const i=e=>r=t?r:e,a=e=>o=n?o:e;if(e){const e=je(r),t=je(o);e<0&&t<0?a(0):e>0&&t>0&&i(0)}if(r===o){let t=0===o?1:Math.abs(.05*o);a(o+t),e||i(r-t)}this.min=r,this.max=o}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:r}=e;return r?(t=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=ba({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&Fe(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return wt(e,this.chart.options.locale,this.options.ticks.format)}}class ka extends wa{static id="linear";static defaults={ticks:{callback:_t.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=ue(e)?e:0,this.max=ue(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=He(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,o.lineHeight/r))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}const _a=e=>Math.floor(Ie(e)),Ea=(e,t)=>Math.pow(10,_a(e)+t);function Ca(e){return 1===e/Math.pow(10,_a(e))}function Na(e,t,n){const r=Math.pow(10,n),o=Math.floor(e/r);return Math.ceil(t/r)-o}function Sa(e,{min:t,max:n}){t=de(e.min,t);const r=[],o=_a(t);let i=function(e,t){let n=_a(t-e);for(;Na(e,t,n)>10;)n++;for(;Na(e,t,n)<10;)n--;return Math.min(n,_a(e))}(t,n),a=i<0?Math.pow(10,Math.abs(i)):1;const s=Math.pow(10,i),l=o>i?Math.pow(10,o):0,c=Math.round((t-l)*a)/a,u=Math.floor((t-l)/s/10)*s*10;let d=Math.floor((c-u)/Math.pow(10,i)),p=de(e.min,Math.round((l+u+d*Math.pow(10,i))*a)/a);for(;p<n;)r.push({value:p,major:Ca(p),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(i++,d=2,a=i>=0?1:a),p=Math.round((l+u+d*Math.pow(10,i))*a)/a;const h=de(e.max,p);return r.push({value:h,major:Ca(h),significand:d}),r}class Va extends xo{static id="logarithmic";static defaults={ticks:{callback:_t.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const n=wa.prototype.parse.apply(this,[e,t]);if(0!==n)return ue(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=ue(e)?Math.max(0,e):null,this.max=ue(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!ue(this._userMin)&&(this.min=e===Ea(this.min,0)?Ea(this.min,-1):Ea(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let n=this.min,r=this.max;const o=t=>n=e?n:t,i=e=>r=t?r:e;n===r&&(n<=0?(o(1),i(10)):(o(Ea(n,-1)),i(Ea(r,1)))),n<=0&&o(Ea(r,-1)),r<=0&&i(Ea(n,1)),this.min=n,this.max=r}buildTicks(){const e=this.options,t=Sa({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&Fe(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return void 0===e?"0":wt(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=Ie(e),this._valueRange=Ie(this.max)-Ie(e)}getPixelForValue(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Ie(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}function Aa(e){const t=e.ticks;if(t.display&&e.display){const e=Xt(t.backdropPadding);return pe(t.font&&t.font.size,At.font.size)+e.height}return 0}function Da(e,t,n,r,o){return e===r||e===o?{start:t-n/2,end:t+n/2}:e<r||e>o?{start:t-n,end:t}:{start:t,end:t+n}}function Ma(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],o=[],i=e._pointLabels.length,a=e.options.pointLabels,s=a.centerPointLabels?Ae/i:0;for(let d=0;d<i;d++){const i=a.setContext(e.getPointLabelContext(d));o[d]=i.padding;const p=e.getPointPosition(d,e.drawingArea+o[d],s),h=Zt(i.font),f=(l=e.ctx,c=h,u=le(u=e._pointLabels[d])?u:[u],{w:Mt(l,c.string,u),h:u.length*c.lineHeight});r[d]=f;const m=Ke(e.getIndexAngle(d)+s),g=Math.round(Ue(m));Ta(n,t,m,Da(g,p.x,f.w,0,180),Da(g,p.y,f.h,90,270))}var l,c,u;e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=function(e,t,n){const r=[],o=e._pointLabels.length,i=e.options,{centerPointLabels:a,display:s}=i.pointLabels,l={extra:Aa(i)/2,additionalAngle:a?Ae/o:0};let c;for(let i=0;i<o;i++){l.padding=n[i],l.size=t[i];const o=Ba(e,i,l);r.push(o),"auto"===s&&(o.visible=Oa(o,c),o.visible&&(c=o))}return r}(e,r,o)}function Ta(e,t,n,r,o){const i=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let s=0,l=0;r.start<t.l?(s=(t.l-r.start)/i,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+s)),o.start<t.t?(l=(t.t-o.start)/a,e.t=Math.min(e.t,t.t-l)):o.end>t.b&&(l=(o.end-t.b)/a,e.b=Math.max(e.b,t.b+l))}function Ba(e,t,n){const r=e.drawingArea,{extra:o,additionalAngle:i,padding:a,size:s}=n,l=e.getPointPosition(t,r+o+a,i),c=Math.round(Ue(Ke(l.angle+Oe))),u=function(e,t,n){90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t);return e}(l.y,s.h,c),d=function(e){if(0===e||180===e)return"center";if(e<180)return"left";return"right"}(c),p=function(e,t,n){"right"===n?e-=t:"center"===n&&(e-=t/2);return e}(l.x,s.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:p,top:u,right:p+s.w,bottom:u+s.h}}function Oa(e,t){if(!t)return!0;const{left:n,top:r,right:o,bottom:i}=e;return!(Lt({x:n,y:r},t)||Lt({x:n,y:i},t)||Lt({x:o,y:r},t)||Lt({x:o,y:i},t))}function Pa(e,t,n){const{left:r,top:o,right:i,bottom:a}=n,{backdropColor:s}=t;if(!se(s)){const n=Jt(t.borderRadius),l=Xt(t.backdropPadding);e.fillStyle=s;const c=r-l.left,u=o-l.top,d=i-r+l.width,p=a-o+l.height;Object.values(n).some((e=>0!==e))?(e.beginPath(),Ut(e,{x:c,y:u,w:d,h:p,radius:n}),e.fill()):e.fillRect(c,u,d,p)}}function La(e,t,n,r){const{ctx:o}=e;if(n)o.arc(e.xCenter,e.yCenter,t,0,De);else{let n=e.getPointPosition(0,t);o.moveTo(n.x,n.y);for(let i=1;i<r;i++)n=e.getPointPosition(i,t),o.lineTo(n.x,n.y)}}class Ia extends wa{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:_t.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=Xt(Aa(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=ue(e)&&!isNaN(e)?e:0,this.max=ue(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Aa(this.options))}generateTickLabels(e){wa.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map(((e,t)=>{const n=fe(this.options.pointLabels.callback,[e,t],this);return n||0===n?n:""})).filter(((e,t)=>this.chart.getDataVisibility(t)))}fit(){const e=this.options;e.display&&e.pointLabels.display?Ma(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}getIndexAngle(e){return Ke(e*(De/(this._pointLabels.length||1))+He(this.options.startAngle||0))}getDistanceFromCenterForValue(e){if(se(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(se(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const n=t[e];return function(e,t,n){return en(e,{label:n,index:t,type:"pointLabel"})}(this.getContext(),e,n)}}getPointPosition(e,t,n=0){const r=this.getIndexAngle(e)-Oe+n;return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter,angle:r}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:n,right:r,bottom:o}=this._pointLabelItems[e];return{left:t,top:n,right:r,bottom:o}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const n=this.ctx;n.save(),n.beginPath(),La(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:n,grid:r,border:o}=t,i=this._pointLabels.length;let a,s,l;if(t.pointLabels.display&&function(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let o=t-1;o>=0;o--){const t=e._pointLabelItems[o];if(!t.visible)continue;const i=r.setContext(e.getPointLabelContext(o));Pa(n,i,t);const a=Zt(i.font),{x:s,y:l,textAlign:c}=t;Ht(n,e._pointLabels[o],s,l+a.lineHeight/2,a,{color:i.color,textAlign:c,textBaseline:"middle"})}}(this,i),r.display&&this.ticks.forEach(((e,t)=>{if(0!==t||0===t&&this.min<0){s=this.getDistanceFromCenterForValue(e.value);const n=this.getContext(t),a=r.setContext(n),l=o.setContext(n);!function(e,t,n,r,o){const i=e.ctx,a=t.circular,{color:s,lineWidth:l}=t;!a&&!r||!s||!l||n<0||(i.save(),i.strokeStyle=s,i.lineWidth=l,i.setLineDash(o.dash||[]),i.lineDashOffset=o.dashOffset,i.beginPath(),La(e,n,a,r),i.closePath(),i.stroke(),i.restore())}(this,a,s,i,l)}})),n.display){for(e.save(),a=i-1;a>=0;a--){const r=n.setContext(this.getPointLabelContext(a)),{color:o,lineWidth:i}=r;i&&o&&(e.lineWidth=i,e.strokeStyle=o,e.setLineDash(r.borderDash),e.lineDashOffset=r.borderDashOffset,s=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),l=this.getPointPosition(a,s),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(l.x,l.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;const r=this.getIndexAngle(0);let o,i;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach(((r,a)=>{if(0===a&&this.min>=0&&!t.reverse)return;const s=n.setContext(this.getContext(a)),l=Zt(s.font);if(o=this.getDistanceFromCenterForValue(this.ticks[a].value),s.showLabelBackdrop){e.font=l.string,i=e.measureText(r.label).width,e.fillStyle=s.backdropColor;const t=Xt(s.backdropPadding);e.fillRect(-i/2-t.left,-o-l.size/2-t.top,i+t.width,l.size+t.height)}Ht(e,r.label,0,-o,l,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})})),e.restore()}drawTitle(){}}const ja={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Ra=Object.keys(ja);function $a(e,t){return e-t}function za(e,t){if(se(t))return null;const n=e._adapter,{parser:r,round:o,isoWeekday:i}=e._parseOpts;let a=t;return"function"==typeof r&&(a=r(a)),ue(a)||(a="string"==typeof r?n.parse(a,r):n.parse(a)),null===a?null:(o&&(a="week"!==o||!ze(i)&&!0!==i?n.startOf(a,o):n.startOf(a,"isoWeek",i)),+a)}function Fa(e,t,n,r){const o=Ra.length;for(let i=Ra.indexOf(e);i<o-1;++i){const e=ja[Ra[i]],o=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((n-t)/(o*e.size))<=r)return Ra[i]}return Ra[o-1]}function Ha(e,t,n){if(n){if(n.length){const{lo:r,hi:o}=Qe(n,t);e[n[r]>=t?n[r]:n[o]]=!0}}else e[t]=!0}function Ua(e,t,n){const r=[],o={},i=t.length;let a,s;for(a=0;a<i;++a)s=t[a],o[s]=a,r.push({value:s,major:!1});return 0!==i&&n?function(e,t,n,r){const o=e._adapter,i=+o.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=i;s<=a;s=+o.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}(e,r,o,n):r}class Wa extends xo{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t={}){const n=e.time||(e.time={}),r=this._adapter=new Cr(e.adapters.date);r.init(t),we(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:za(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,n=e.time.unit||"day";let{min:r,max:o,minDefined:i,maxDefined:a}=this.getUserBounds();function s(e){i||isNaN(e.min)||(r=Math.min(r,e.min)),a||isNaN(e.max)||(o=Math.max(o,e.max))}i&&a||(s(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||s(this.getMinMax(!1))),r=ue(r)&&!isNaN(r)?r:+t.startOf(Date.now(),n),o=ue(o)&&!isNaN(o)?o:+t.endOf(Date.now(),n)+1,this.min=Math.min(r,o-1),this.max=Math.max(r+1,o)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){const e=this.options,t=e.time,n=e.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const o=this.min,i=function(e,t,n){let r=0,o=e.length;for(;r<o&&e[r]<t;)r++;for(;o>r&&e[o-1]>n;)o--;return r>0||o<e.length?e.slice(r,o):e}(r,o,this.max);return this._unit=t.unit||(n.autoSkip?Fa(t.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(e,t,n,r,o){for(let i=Ra.length-1;i>=Ra.indexOf(n);i--){const n=Ra[i];if(ja[n].common&&e._adapter.diff(o,r,n)>=t-1)return n}return Ra[n?Ra.indexOf(n):0]}(this,i.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(let t=Ra.indexOf(e)+1,n=Ra.length;t<n;++t)if(ja[Ra[t]].common)return Ra[t]}(this._unit):void 0,this.initOffsets(r),e.reverse&&i.reverse(),Ua(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((e=>+e.value)))}initOffsets(e=[]){let t,n,r=0,o=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),r=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,n=this.getDecimalForValue(e[e.length-1]),o=1===e.length?n:(n-this.getDecimalForValue(e[e.length-2]))/2);const i=e.length<3?.5:.25;r=Xe(r,0,i),o=Xe(o,0,i),this._offsets={start:r,end:o,factor:1/(r+1+o)}}_generate(){const e=this._adapter,t=this.min,n=this.max,r=this.options,o=r.time,i=o.unit||Fa(o.minUnit,t,n,this._getLabelCapacity(t)),a=pe(r.ticks.stepSize,1),s="week"===i&&o.isoWeekday,l=ze(s)||!0===s,c={};let u,d,p=t;if(l&&(p=+e.startOf(p,"isoWeek",s)),p=+e.startOf(p,l?"day":i),e.diff(n,t,i)>1e5*a)throw new Error(t+" and "+n+" are too far apart with stepSize of "+a+" "+i);const h="data"===r.ticks.source&&this.getDataTimestamps();for(u=p,d=0;u<n;u=+e.add(u,a,i),d++)Ha(c,u,h);return u!==n&&"ticks"!==r.bounds&&1!==d||Ha(c,u,h),Object.keys(c).sort($a).map((e=>+e))}getLabelForValue(e){const t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){const n=this.options.time.displayFormats,r=this._unit,o=t||n[r];return this._adapter.format(e,o)}_tickFormatFunction(e,t,n,r){const o=this.options,i=o.ticks.callback;if(i)return fe(i,[e,t,n],this);const a=o.time.displayFormats,s=this._unit,l=this._majorUnit,c=s&&a[s],u=l&&a[l],d=n[t],p=l&&u&&d&&d.major;return this._adapter.format(e,r||(p?u:c))}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t<n;++t)r=e[t],r.label=this._tickFormatFunction(r.value,t,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,n=this.ctx.measureText(e).width,r=He(this.isHorizontal()?t.maxRotation:t.minRotation),o=Math.cos(r),i=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:n*o+a*i,h:n*i+a*o}}_getLabelCapacity(e){const t=this.options.time,n=t.displayFormats,r=n[t.unit]||n.millisecond,o=this._tickFormatFunction(e,0,Ua(this,[e],this._majorUnit),r),i=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/i.w:this.height/i.h)-1;return a>0?a:1}getDataTimestamps(){let e,t,n=this._cache.data||[];if(n.length)return n;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,t=r.length;e<t;++e)n=n.concat(r[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const e=this._cache.labels||[];let t,n;if(e.length)return e;const r=this.getLabels();for(t=0,n=r.length;t<n;++t)e.push(za(this,r[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return ot(e.sort($a))}}function qa(e,t,n){let r,o,i,a,s=0,l=e.length-1;n?(t>=e[s].pos&&t<=e[l].pos&&({lo:s,hi:l}=et(e,"pos",t)),({pos:r,time:i}=e[s]),({pos:o,time:a}=e[l])):(t>=e[s].time&&t<=e[l].time&&({lo:s,hi:l}=et(e,"time",t)),({time:r,pos:i}=e[s]),({time:o,pos:a}=e[l]));const c=o-r;return c?i+(a-i)*(t-r)/c:i}var Ya=Object.freeze({__proto__:null,CategoryScale:class extends xo{static id="category";static defaults={ticks:{callback:ya}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:r}of t)e[n]===r&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(se(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:Xe(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:va(n,e,pe(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,r=[];let o=this.getLabels();o=0===e&&t===o.length-1?o:o.slice(e,t+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)r.push({value:n});return r}getLabelForValue(e){return ya.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}},LinearScale:ka,LogarithmicScale:Va,RadialLinearScale:Ia,TimeScale:Wa,TimeSeriesScale:class extends Wa{static id="timeseries";static defaults=Wa.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=qa(t,this.min),this._tableRange=qa(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:n}=this,r=[],o=[];let i,a,s,l,c;for(i=0,a=e.length;i<a;++i)l=e[i],l>=t&&l<=n&&r.push(l);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(i=0,a=r.length;i<a;++i)c=r[i+1],s=r[i-1],l=r[i],Math.round((c+s)/2)!==l&&o.push({time:l,pos:i/(a-1)});return o}_generate(){const e=this.min,t=this.max;let n=super.getDataTimestamps();return n.includes(e)&&n.length||n.splice(0,0,e),n.includes(t)&&1!==n.length||n.push(t),n.sort(((e,t)=>e-t))}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(qa(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return qa(this._table,n*this._tableRange+this._minPos,!0)}}});const Ga=[kr,bi,ga,Ya];function Ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ja;Xo.register.apply(Xo,function(e){if(Array.isArray(e))return Ka(e)}(Ja=Ga)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(Ja)||function(e,t){if(e){if("string"==typeof e)return Ka(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ka(e,t):void 0}}(Ja)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());const Xa={props:["chartData","options"],mounted:function(){var e=this.$refs.canvas.getContext("2d");new Xo(e,{type:"bar",data:this.chartData,options:this.options})}};var Za=n(6262);const Qa=(0,Za.A)(Xa,[["render",function(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("canvas",C,null,512)])}]]);var es={ref:"canvas",height:"40vh"};function ts(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Xo.register.apply(Xo,function(e){return function(e){if(Array.isArray(e))return ts(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ts(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ts(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Ga));const ns={props:["chartData","options"],mounted:function(){var e=this.$refs.canvas.getContext("2d");new Xo(e,{type:"pie",data:this.chartData,options:this.options})}},rs=(0,Za.A)(ns,[["render",function(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("canvas",es,null,512)])}]]);var os={ref:"canvas",height:"400px"};function is(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Xo.register.apply(Xo,function(e){return function(e){if(Array.isArray(e))return is(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return is(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?is(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Ga));const as={props:["chartData","options"],mounted:function(){var e=this.$refs.canvas.getContext("2d");new Xo(e,{type:"line",data:this.chartData,options:this.options})}},ss=(0,Za.A)(as,[["render",function(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("canvas",os,null,512)])}]]);function ls(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}
2finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return cs(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cs(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const us=(0,k.pM)({props:["statistics","availableYears","communeSlug"],data:function(){return{loaded:!1,selectedAnnonceYears:this.availableYears,selectedViewYears:this.availableYears,categoryData:{labels:[],datasets:[{data:[],label:"",backgroundColor:[],barPercentage:.5,barThickness:10,maxBarThickness:20,hoverOffset:4}]},annoncesData:{labels:[],datasets:[{data:[],label:this.__("Anzeigen"),borderColor:"#003471",minBarLength:2,fill:!1},{data:[],label:this.__("Events"),minBarLength:2,borderColor:"#1080b5",fill:!1}]},annonceViewsData:{labels:[],datasets:[{data:[],label:this.__("Vues"),minBarLength:2,borderColor:"#1080b5",fill:!1}]},chartAnnoncesOptions:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"top"},title:{display:!0,text:this.__("Toutes les annonces")}}},chartAnnoncesViewsOptions:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"top"},title:{display:!0,text:this.__("Vues sur les annonces")}}},chartOptionsCategories:{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{legend:{position:"null"},title:{display:!0,text:this.__("Kategorien")}}}}},layout:_.A,components:{Head:E.p3,LmBarChart:Qa,LmPieChart:rs,LmLineChart:ss},mounted:function(){this.fillAnnoncesData(),this.fillCategoryData(),this.loaded=!0},computed:{exportUrl:function(){var e=route("admin.statistics.export",{commune:this.communeSlug||this.$page.props.commune.slug}),t=new URLSearchParams;return this.selectedAnnonceYears.length>0&&t.append("annonce_years",this.selectedAnnonceYears.sort().join(",")),this.selectedViewYears.length>0&&t.append("view_years",this.selectedViewYears.sort().join(",")),t.toString()&&(e+="?"+t.toString()),e}},methods:{fillAnnoncesData:function(){var e=this;this.statistics.forEach((function(t){e.annoncesData.labels.unshift(e.$dayjs(t.month).locale(e.$page.props.locale).format("MMMM YYYY")),e.annoncesData.datasets[0].data.unshift(t.annonceCount),e.annoncesData.datasets[1].data.unshift(t.eventCount),e.annonceViewsData.labels.unshift(e.$dayjs(t.month).locale(e.$page.props.locale).format("MMMM YYYY")),e.annonceViewsData.datasets[0].data.unshift(t.annonceViews)}))},fillCategoryData:function(){var e=this,t={};this.statistics.forEach((function(n){n.annonces.forEach((function(n){if(n.category_name&&"annonce"==n.type){var r=n.category_name,o=n.category_color;r.includes("Archives")&&(r=e.__("Archives")),t[r]||(t[r]={count:0,color:o}),t[r].count++}}))})),Object.entries(t).map((function(e){var t=ls(e,2),n=t[0],r=t[1];return{category:n,color:r.color,count:r.count}})).sort((function(e,t){return t.count-e.count})).forEach((function(t){var n=t.category,r=t.color,o=t.count;e.categoryData.labels.push(n),e.categoryData.datasets[0].data.push(o),e.categoryData.datasets[0].backgroundColor.push(r)}))}}}),ds=(0,Za.A)(us,[["render",function(e,t,n,k,_,E){var C=(0,r.resolveComponent)("Head"),N=(0,r.resolveComponent)("Text"),S=(0,r.resolveComponent)("lm-line-chart"),V=(0,r.resolveComponent)("lm-bar-chart");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(C,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("title",null,(0,r.toDisplayString)(e.__("Statistics")),1)]})),_:1}),(0,r.createElementVNode)("div",o,[(0,r.createVNode)(N,{type:"h1",text:e.__("Statistics"),class:"mb-4"},null,8,["text"]),(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("h2",a,(0,r.toDisplayString)(e.__("Configuration de l'export")),1),(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("h3",l,(0,r.toDisplayString)(e.__("Années de publication des annonces")),1),(0,r.createElementVNode)("div",c,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.availableYears,(function(n){return(0,r.openBlock)(),(0,r.createElementBlock)("label",{key:"pub"+n,class:"flex items-center cursor-pointer"},[(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"checkbox",checked:"",value:n,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.selectedAnnonceYears=t}),class:"rounded text-lm-blue focus:ring-lm-blue"},null,8,u),[[r.vModelCheckbox,e.selectedAnnonceYears]]),(0,r.createElementVNode)("span",d,(0,r.toDisplayString)(n),1)])})),128))])]),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("h3",p,(0,r.toDisplayString)(e.__("Années des statistiques (Vues)")),1),(0,r.createElementVNode)("div",h,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.availableYears,(function(n){return(0,r.openBlock)(),(0,r.createElementBlock)("label",{key:"view"+n,class:"flex items-center space-x-2 cursor-pointer"},[(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"checkbox",value:n,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.selectedViewYears=t}),class:"rounded text-lm-blue focus:ring-lm-blue"},null,8,f),[[r.vModelCheckbox,e.selectedViewYears]]),(0,r.createElementVNode)("span",m,(0,r.toDisplayString)(n),1)])})),128))])])]),(0,r.createElementVNode)("div",g,[(0,r.createElementVNode)("a",{href:e.exportUrl},[(0,r.createElementVNode)("button",y,(0,r.toDisplayString)(e.__("Télécharger l'export Excel")),1)],8,v)])])]),(0,r.createElementVNode)("h2",b,(0,r.toDisplayString)(e.__("Statistiques des 12 derniers mois")),1
vendor: 16,384 bytes, line 2
2),(0,r.createElementVNode)("div",x,[(0,r.createElementVNode)("div",null,[e.loaded?((0,r.openBlock)(),(0,r.createBlock)(S,{key:0,"chart-data":e.annoncesData,options:e.chartAnnoncesOptions},null,8,["chart-data","options"])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",null,[e.loaded?((0,r.openBlock)(),(0,r.createBlock)(S,{key:0,"chart-data":e.annonceViewsData,options:e.chartAnnoncesViewsOptions},null,8,["chart-data","options"])):(0,r.createCommentVNode)("",!0)])]),(0,r.createElementVNode)("div",w,[(0,r.createElementVNode)("div",null,[e.loaded?((0,r.openBlock)(),(0,r.createBlock)(V,{key:0,"chart-data":e.categoryData,options:e.chartOptionsCategories},null,8,["chart-data","options"])):(0,r.createCommentVNode)("",!0)])])])}]])},332:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(6301),o={class:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},i={class:"sm:flex sm:items-start"},a={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},s={class:"mt-2"},l={class:"px-6 py-4 bg-slate-100 text-right"};var c=n(641),u=n(5269);const d=(0,c.pM)({emits:["close"],components:{Modal:u.A},props:{show:{default:!1},maxWidth:{default:"2xl"},closeable:{default:!0}},methods:{close:function(){this.$emit("close")}}});const p=(0,n(6262).A)(d,[["render",function(e,t,n,c,u,d){var p=(0,r.resolveComponent)("Text"),h=(0,r.resolveComponent)("modal");return(0,r.openBlock)(),(0,r.createBlock)(h,{show:e.show,"max-width":e.maxWidth,closeable:e.closeable,onClose:e.close},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",i,[t[0]||(t[0]=(0,r.createElementVNode)("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},[(0,r.createElementVNode)("svg",{class:"h-6 w-6 text-red-600",stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})])],-1)),(0,r.createElementVNode)("div",a,[(0,r.createVNode)(p,{type:"h3"},{default:(0,r.withCtx)((function(){return[(0,r.renderSlot)(e.$slots,"title")]})),_:3}),(0,r.createElementVNode)("div",s,[(0,r.renderSlot)(e.$slots,"content")])])])]),(0,r.createElementVNode)("div",l,[(0,r.renderSlot)(e.$slots,"footer")])]})),_:3},8,["show","max-width","closeable","onClose"])}]])},357:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var r,o,i,a=n(9878);function s(e){return e===r.Space||e===r.NewLine||e===r.Tab||e===r.FormFeed||e===r.CarriageReturn}function l(e){return e===r.Slash||e===r.Gt||s(e)}function c(e){return e>=r.Zero&&e<=r.Nine}!function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"}(r||(r={})),function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"}(o||(o={})),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(i=t.QuoteType||(t.QuoteType={}));var u={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},d=function(){function e(e,t){var n=e.xmlMode,r=void 0!==n&&n,i=e.decodeEntities,s=void 0===i||i;this.cbs=t,this.state=o.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=o.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=r,this.decodeEntities=s,this.entityTrie=r?a.xmlDecodeTree:a.htmlDecodeTree}return e.prototype.reset=function(){this.state=o.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=o.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},e.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},e.prototype.end=function(){this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},e.prototype.getIndex=function(){return this.index},e.prototype.getSectionStart=function(){return this.sectionStart},e.prototype.stateText=function(e){e===r.Lt||!this.decodeEntities&&this.fastForwardTo(r.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=o.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===r.Amp&&(this.state=o.BeforeEntity)},e.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length;if(t?l(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=o.InTagName,this.stateInTagName(e)},e.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===r.Gt||s(e)){var t=this.index-this.currentSequence.length;if(this.sectionStart<t){var n=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=n}return this.isSpecial=!1,this.sectionStart=t+2,void this.stateInClosingTagName(e)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===u.TitleEnd?this.decodeEntities&&e===r.Amp&&(this.state=o.BeforeEntity):this.fastForwardTo(r.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===r.Lt)},e.prototype.stateCDATASequence=function(e){e===u.Cdata[this.sequenceIndex]?++this.sequenceIndex===u.Cdata.length&&(this.state=o.InCommentLike,this.currentSequence=u.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=o.InDeclaration,this.stateInDeclaration(e))},e.prototype.fastForwardTo=function(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1},e.prototype.stateInCommentLike=function(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===u.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=o.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},e.prototype.isTagStartChar=function(e){return this.xmlMode?!l(e):function(e){return e>=r.LowerA&&e<=r.LowerZ||e>=r.UpperA&&e<=r.UpperZ}(e)},e.prototype.startSpecial=function(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=o.SpecialStartSequence},e.prototype.stateBeforeTagName=function(e){if(e===r.ExclamationMark)this.state=o.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===r.Questionmark)this.state=o.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){var t=32|e;this.sectionStart=this.index,this.xmlMode||t!==u.TitleEnd[2]?this.state=this.xmlMode||t!==u.ScriptEnd[2]?o.InTagName:o.BeforeSpecialS:this.startSpecial(u.TitleEnd,3)}else e===r.Slash?this.state=o.BeforeClosingTagName:(this.state=o.Text,this.stateText(e))},e.prototype.stateInTagName=function(e){l(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=o.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateBeforeClosingTagName=function(e){s(e)||(e===r.Gt?this.state=o.Text:(this.state=this.isTagStartChar(e)?o.InClosingTagName:o.InSpecialComment,this.sectionStart=this.index))},e.prototype.stateInClosingTagName=function(e){(e===r.Gt||s(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=o.AfterClosingTagName,this.stateAfterClosingTagName(e))},e.prototype.stateAfterClosingTagName=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=o.Text,this.baseState=o.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeAttributeName=function(e){e===r.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=o.InSpecialTag,this.sequenceIndex=0):this.state=o.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===r.Slash?this.state=o.InSelfClosingTag:s(e)||(this.state=o.InAttributeName,this.sectionStart=this.index)},e.prototype.stateInSelfClosingTag=function(e){e===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=o.Text,this.baseState=o.Text,this.sectionStart=this.index+1,this.isSpecial=!1):s(e)||(this.state=o.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateInAttributeName=function(e){(e===r.Eq||l(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=o.AfterAttributeName,this.stateAfterAttributeName(e))},e.prototype.stateAfterAttributeName=function(e){e===r.Eq?this.state=o.BeforeAttributeValue:e===r.Slash||e===r.Gt?(this.cbs.onattribend(i.NoValue,this.index),this.state=o.BeforeAttributeName,this.stateBeforeAttributeName(e)):s(e)||(this.cbs.onattribend(i.NoValue,this.index),this.state=o.InAttributeName,this.sectionStart=this.index)},e.prototype.stateBeforeAttributeValue=function(e){e===r.DoubleQuote?(this.state=o.InAttributeValueDq,this.sectionStart=this.index+1):e===r.SingleQuote?(this.state=o.InAttributeValueSq,this.sectionStart=this.index+1):s(e)||(this.sectionStart=this.index,this.state=o.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))},e.prototype.handleInAttributeValue=function(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===r.DoubleQuote?i.Double:i.Single,this.index),this.state=o.BeforeAttributeName):this.decodeEntities&&e===r.Amp&&(this.baseState=this.state,this.state=o.BeforeEntity)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,r.DoubleQuote)},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,r.SingleQuote)},e.prototype.stateInAttributeValueNoQuotes=function(e){s(e)||e===r.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(i.Unquoted,this.index),this.state=o.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===r.Amp&&(this.baseState=this.state,this.state=o.BeforeEntity)},e.prototype.stateBeforeDeclaration=function(e){e===r.OpeningSquareBracket?(this.state=o.CDATASequence,this.sequenceIndex=0):this.state=e===r.Dash?o.BeforeComment:o.InDeclaration},e.prototype.stateInDeclaration=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=o.Text,this.sectionStart=this.index+1)},e.prototype.stateInProcessingInstruction=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=o.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeComment=function(e){e===r.Dash?(this.state=o.InCommentLike,this.currentSequence=u.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=o.InDeclaration},e.prototype.stateInSpecialComment=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=o.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeSpecialS=function(e){var t=32|e;t===u.ScriptEnd[3]?this.startSpecial(u.ScriptEnd,4):t===u.StyleEnd[3]?this.startSpecial(u.StyleEnd,4):(this.state=o.InTagName,this.stateInTagName(e))},e.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===r.Number?this.state=o.BeforeNumericEntity:e===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=o.InNamedEntity,this.stateInNamedEntity(e))},e.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,a.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];var t=this.trieCurrent&a.BinTrieFlags.VALUE_LENGTH;if(t){var n=(t>>14)-1;if(this.allowLegacyEntity()||e===r.Semi){var o=this.index-this.entityExcess+1;o>this.sectionStart&&this.emitPartial(this.sectionStart,o),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,0===n&&this.emitNamedEntity()}else this.trieIndex+=n}},e.prototype.emitNamedEntity=function(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&a.BinTrieFlags.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~a.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}},e.prototype.stateBeforeNumericEntity=function(e){(32|e)===r.LowerX?(this.entityExcess++,this.state=o.InHexEntity):(this.state=o.InNumericEntity,this.stateInNumericEntity(e))},e.prototype.emitNumericEntity=function(e){var t=this.index-this.entityExcess-1;t+2+Number(this.state===o.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint((0,a.replaceCodePoint)(this.entityResult))),this.state=this.baseState},e.prototype.stateInNumericEntity=function(e){e===r.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=10*this.entityResult+(e-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.stateInHexEntity=function(e){e===r.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=16*this.entityResult+(e-r.Zero),this.entityExcess++):!function(e){return e>=r.UpperA&&e<=r.UpperF||e>=r.LowerA&&e<=r.LowerF}(e)?(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--):(this.entityResult=16*this.entityResult+((32|e)-r.LowerA+10),this.entityExcess++)},e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===o.Text||this.baseState===o.InSpecialTag)},e.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===o.Text||this.state===o.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.s
vendor: 4,437 bytes, line 2
2ectionStart=this.index):this.state!==o.InAttributeValueDq&&this.state!==o.InAttributeValueSq&&this.state!==o.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},e.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},e.prototype.parse=function(){for(;this.shouldContinue();){var e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case o.Text:this.stateText(e);break;case o.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case o.InSpecialTag:this.stateInSpecialTag(e);break;case o.CDATASequence:this.stateCDATASequence(e);break;case o.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case o.InAttributeName:this.stateInAttributeName(e);break;case o.InCommentLike:this.stateInCommentLike(e);break;case o.InSpecialComment:this.stateInSpecialComment(e);break;case o.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case o.InTagName:this.stateInTagName(e);break;case o.InClosingTagName:this.stateInClosingTagName(e);break;case o.BeforeTagName:this.stateBeforeTagName(e);break;case o.AfterAttributeName:this.stateAfterAttributeName(e);break;case o.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case o.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case o.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case o.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case o.BeforeSpecialS:this.stateBeforeSpecialS(e);break;case o.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case o.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case o.InDeclaration:this.stateInDeclaration(e);break;case o.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case o.BeforeComment:this.stateBeforeComment(e);break;case o.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case o.InNamedEntity:this.stateInNamedEntity(e);break;case o.BeforeEntity:this.stateBeforeEntity(e);break;case o.InHexEntity:this.stateInHexEntity(e);break;case o.InNumericEntity:this.stateInNumericEntity(e);break;default:this.stateBeforeNumericEntity(e)}this.index++}this.cleanup()},e.prototype.finish=function(){this.state===o.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var e=this.buffer.length+this.offset;this.state===o.InCommentLike?this.currentSequence===u.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===o.InNumericEntity&&this.allowLegacyEntity()||this.state===o.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===o.InTagName||this.state===o.BeforeAttributeName||this.state===o.BeforeAttributeValue||this.state===o.AfterAttributeName||this.state===o.InAttributeName||this.state===o.InAttributeValueSq||this.state===o.InAttributeValueDq||this.state===o.InAttributeValueNq||this.state===o.InClosingTagName||this.cbs.ontext(this.sectionStart,e)},e.prototype.emitPartial=function(e,t){this.baseState!==o.Text&&this.baseState!==o.InSpecialTag?this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)},e.prototype.emitCodePoint=function(e){this.baseState!==o.Text&&this.baseState!==o.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)},e}();t.default=d},396:(e,t,n)=>{"use strict";let r=n(7793);class o extends r{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=o,o.default=o,r.registerAtRule(o)},414:e=>{"use strict";e.exports=Math.round},430:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};
vendor: 6,396 bytes, line 2
2Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=n(5413),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),k(this,e)},e}();t.Node=s;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=l;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=u;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=a.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var p=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=h;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=f;var m=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function y(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function x(e){return e.type===a.ElementType.Directive}function w(e){return e.type===a.ElementType.Root}function k(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(g(e)){var r=t?_(e.children):[],o=new m(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(v(e)){r=t?_(e.children):[];var a=new h(r);r.forEach((function(e){return e.parent=a})),n=a}else if(w(e)){r=t?_(e.children):[];var s=new f(r);r.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!x(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function _(e){for(var t=e.map((function(e){return k(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=v,t.isText=y,t.isComment=b,t.isDirective=x,t.isDocument=w,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=k},435:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(6301),o={class:"col-span-6 sm:col-span-4"},i={class:"col-span-6 sm:col-span-4"},a={class:"col-span-6 sm:col-span-4"},s=["disabled"];var l=n(641),c=n(3257),u=n(1816),d=n(1154),p=n(4296),h=n(6786),f=n(5393);const m=(0,l.pM)({components:{JetActionMessage:c.A,JetButton:u.A,JetFormSection:d.A,JetInput:p.A,JetInputError:h.A,JetLabel:f.A},data:function(){return{form:this.$inertia.form({current_password:"",password:"",password_confirmation:""})}},methods:{updatePassword:function(){var e=this;this.form.put(route("user-password.update"),{errorBag:"updatePassword",preserveScroll:!0,onSuccess:function(){return e.form.reset()},onError:function(){e.form.errors.password&&(e.form.reset("password","password_confirmation"),e.$refs.password.focus()),e.form.errors.current_password&&(e.form.reset("current_password"),e.$refs.current_password.focus())}})}}});const g=(0,n(6262).A)(m,[["render",function(e,t,n,l,c,u){var d=(0,r.resolve
2Component)("jet-label"),p=(0,r.resolveComponent)("jet-input"),h=(0,r.resolveComponent)("jet-input-error"),f=(0,r.resolveComponent)("jet-action-message"),m=(0,r.resolveComponent)("jet-form-section");return(0,r.openBlock)(),(0,r.createBlock)(m,{onSubmitted:e.updatePassword},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Passwort aktualisieren")),1)]})),description:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("passwordText")),1)]})),form:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",o,[(0,r.createVNode)(d,{for:"current_password",value:e.__("Aktuelles Passwort")},null,8,["value"]),(0,r.createVNode)(p,{id:"current_password",type:"password",class:"mt-1 block w-full",modelValue:e.form.current_password,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.form.current_password=t}),ref:"current_password",autocomplete:"current-password"},null,8,["modelValue"]),(0,r.createVNode)(h,{message:e.form.errors.current_password,class:"mt-2"},null,8,["message"])]),(0,r.createElementVNode)("div",i,[(0,r.createVNode)(d,{for:"password",value:e.__("Neues Passwort")},null,8,["value"]),(0,r.createVNode)(p,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:e.form.password,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.form.password=t}),ref:"password",autocomplete:"new-password"},null,8,["modelValue"]),(0,r.createVNode)(h,{message:e.form.errors.password,class:"mt-2"},null,8,["message"])]),(0,r.createElementVNode)("div",a,[(0,r.createVNode)(d,{for:"password_confirmation",value:e.__("Passwort bestätigen")},null,8,["value"]),(0,r.createVNode)(p,{id:"password_confirmation",type:"password",class:"mt-1 block w-full",modelValue:e.form.password_confirmation,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.form.password_confirmation=t}),autocomplete:"new-password"},null,8,["modelValue"]),(0,r.createVNode)(h,{message:e.form.errors.password_confirmation,class:"mt-2"},null,8,["message"])])]})),actions:(0,r.withCtx)((function(){return[(0,r.createVNode)(f,{on:e.form.recentlySuccessful,class:"mr-3"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Gespeichert")),1)]})),_:1},8,["on"]),(0,r.createElementVNode)("button",{class:(0,r.normalizeClass)(["btn-primary",{"opacity-25":e.form.processing}]),disabled:e.form.processing},(0,r.toDisplayString)(e.__("Speichern")),11,s)]})),_:1},8,["onSubmitted"])}]])},445:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=a.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,l("seconds")],ss:[o,l("seconds")],m:[o,l("minutes")],mm:[o,l("minutes")],H:[o,l("hours")],h:[o,l("hours")],HH:[o,l("hours")],hh:[o,l("hours")],D:[o,l("day")],DD:[r,l("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,l("week")],ww:[r,l("week")],M:[o,l("month")],MM:[r,l("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function h(n){var r,o;r=n,o=a&&a.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=i.length,l=0;l<s;l+=1){var c=i[l],u=p[c],d=u&&u[0],h=u&&u[1];i[l]=h?{regex:d,parser:h}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;
vendor: 3,355 bytes, line 2
2n+=1){var o=i[n];if("string"==typeof o)r+=o.length;else{var a=o.regex,l=o.parser,c=e.slice(r),u=a.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,i=e.args;this.$u=r;var s=i[1];if("string"==typeof s){var l=!0===i[2],c=!0===i[3],u=l||c,d=i[2];c&&(d=i[2]),a=this.$locale(),!l&&d&&(a=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=h(t)(e),i=o.year,a=o.month,s=o.day,l=o.hours,c=o.minutes,u=o.seconds,d=o.milliseconds,p=o.zone,f=o.week,m=new Date,g=s||(i||a?1:m.getDate()),v=i||m.getFullYear(),y=0;i&&!a||(y=a>0?a-1:m.getMonth());var b,x=l||0,w=c||0,k=u||0,_=d||0;return p?new Date(Date.UTC(v,y,g,x,w,k,_+60*p.offset*1e3)):n?new Date(Date.UTC(v,y,g,x,w,k,_)):(b=new Date(v,y,g,x,w,k,_),f&&(b=r(b).week(f).toDate()),b)}catch(e){return new Date("")}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var p=s.length,f=1;f<=p;f+=1){i[1]=s[f-1];var m=n.apply(this,i);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}f===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},453:(e,t,n)=>{"use strict";var r,o=n(9612),i=n(9383),a=n(1237),s=n(9290),l=n(9538),c=n(8068),u=n(9675),d=n(5345),p=n(1514),h=n(8968),f=n(6188),m=n(8002),g=n(5880),v=n(414),y=n(3093),b=Function,x=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},w=n(5795),k=n(655),_=function(){throw new u},E=w?function(){try{return _}catch(e){try{return w(arguments,"callee").get}catch(e){return _}}}():_,C=n(4039)(),N=n(3628),S=n(1064),V=n(8648),A=n(1002),D=n(76),M={},T="undefined"!=typeof Uint8Array&&N?N(Uint8Array):r,B={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":C&&N?N([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":M,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
2IteratorPrototype%":C&&N?N(N([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&C&&N?N((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&C&&N?N((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&N?N(""[Symbol.iterator]()):r,"%Symbol%":C?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":E,"%TypedArray%":T,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":A,"%Object.defineProperty%":k,"%Object.getPrototypeOf%":S,"%Math.abs%":p,"%Math.floor%":h,"%Math.max%":f,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":y,"%Reflect.getPrototypeOf%":V};if(N)try{null.error}catch(e){var O=N(N(e));B["%Error.prototype%"]=O}var P=function e(t){var n;if("%AsyncFunction%"===t)n=x("async function () {}");else if("%GeneratorFunction%"===t)n=x("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=x("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&N&&(n=N(o.prototype))}return B[t]=n,n},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},I=n(6743),j=n(9957),R=I.call(D,Array.prototype.concat),$=I.call(A,Array.prototype.splice),z=I.call(D,String.prototype.replace),F=I.call(D,String.prototype.slice),H=I.call(D,RegExp.prototype.exec),U=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,q=function(e,t){var n,r=e;if(j(L,r)&&(r="%"+(n=L[r])[0]+"%"),j(B,r)){var o=B[r];if(o===M&&(o=P(r)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===H(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=F(e,0,1),n=F(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return z(e,U,(function(e,t,n,o){r[r.length]=n?z(o,W,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=q("%"+r+"%",t),i=o.name,a=o.value,s=!1,l=o.alias;l&&(r=l[0],$(n,R([0,1],l)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],f=F(h,0,1),m=F(h,-1);if(('"'===f||"'"===f||"`"===f||'"'===m||"'"===m||"`"===m)&&f!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&p||(s=!0),j(B,i="%"+(r+="."+h)+"%"))a=B[i];
2else if(null!=a){if(!(h in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&d+1>=n.length){var g=w(a,h);a=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[h]}else p=j(a,h),a=a[h];p&&!s&&(B[i]=a)}}return a}},494:function(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function o(e,t,n){var o=r[n];return Array.isArray(o)&&(o=o[t?0:1]),o.replace("%d",e)}var i={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o}};return n.default.locale(i,null,!0),i}(n(4353))},507:(e,t,n)=>{"use strict";var r=n(453),o=n(6556),i=n(8859),a=n(9675),s=r("%Map%",!0),l=o("Map.prototype.get",!0),c=o("Map.prototype.set",!0),u=o("Map.prototype.has",!0),d=o("Map.prototype.delete",!0),p=o("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var n=d(e,t);return 0===p(e)&&(e=void 0),n}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,n){e||(e=new s),c(e,t,n)}};return t}},568:(e,t)=>{"use strict";function n(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}Object.defineProperty(t,"__esModule",{value:!0}),t.removeElement=n,t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var o=t.parent=e.parent;if(o){var i=o.children;i[i.lastIndexOf(e)]=t,e.parent=null}},t.appendChild=function(e,t){if(n(t),t.next=null,t.parent=e,e.children.push(t)>1){var r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null},t.append=function(e,t){n(t);var r=e.parent,o=e.next;if(t.next=o,t.prev=e,e.next=t,t.parent=r,o){if(o.prev=t,r){var i=r.children;i.splice(i.lastIndexOf(o),0,t)}}else r&&r.children.push(t)},t.prependChild=function(e,t){if(n(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var r=e.children[1];r.prev=t,t.next=r}else t.next=null},t.prepend=function(e,t){n(t);var r=e.parent;if(r){var o=r.children;o.splice(o.indexOf(e),0,t)}e.prev&&(e.prev.next=t);t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}},633:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var r=n(6301),o={key:2},i={key:0},a=["innerHTML"],s={key:1},l={class:"grid gap-1 max-w-xl mt-4 px-4 py-4 font-mono text-sm bg-slate-100 rounded-lg"},c={class:"mt-5"},u={key:0},d={key:1};var p=n(641),h=n(7827),f=n(1816),m={class:"mt-4"};var g=n(756),v=n(4296),y=n(6786),b=n(4312);const x=(0,p.pM)({emits:["confirmed"],props:{title:{default:"Confirm Password"},content:{default:"For your security, please confirm your password to continue."},button:{default:"Confirm"}},components:{JetButton:f.A,JetDialogModal:g.A,JetInput:v.A,JetInputError:y.A,JetSecondaryButton:b.A},data:function(){return{confirmingPassword:!1,form:{password:"",error:""}}},methods:{startConfirmingPassword:function(){var e=this;axios.get(route("password.confirmation")).then((function(t){t.data.confirmed?e.$emit("confirmed"):(e.confirmingPassword=!0,setTimeout((function(){return e.$refs.password.focus()}),250))}))},confirmPassword:function(){var e=this;this.form.processing=!0,axios.post(route("password.confirm"),{password:this.form.password}).then((function(){e.form.processing=!1,e.closeModal(),e.$nextTick((function(){return e.$emit("confirmed")}))})).catch((function(t){e.form.processing=!1,e.form.error=t.response.data.errors.password[0],e.$refs.password.focus()}))},closeModal:function(){this.confirmingPassword=!1,this.form.password="",this.form.error=""}}});var w=n(6262);const k=(0,w.A)(x,[["render",function(e,t,n,o,i,a){var s=(0,r.resolve
2Component)("jet-input"),l=(0,r.resolveComponent)("jet-input-error"),c=(0,r.resolveComponent)("jet-secondary-button"),u=(0,r.resolveComponent)("jet-button"),d=(0,r.resolveComponent)("jet-dialog-modal");return(0,r.openBlock)(),(0,r.createElementBlock)("span",null,[(0,r.createElementVNode)("span",{onClick:t[0]||(t[0]=function(){return e.startConfirmingPassword&&e.startConfirmingPassword.apply(e,arguments)})},[(0,r.renderSlot)(e.$slots,"default")]),(0,r.createVNode)(d,{show:e.confirmingPassword,onClose:e.closeModal},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.title),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.content)+" ",1),(0,r.createElementVNode)("div",m,[(0,r.createVNode)(s,{type:"password",class:"mt-1 block w-3/4",placeholder:"Password",ref:"password",modelValue:e.form.password,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.form.password=t}),onKeyup:(0,r.withKeys)(e.confirmPassword,["enter"])},null,8,["modelValue","onKeyup"]),(0,r.createVNode)(l,{message:e.form.error,class:"mt-2"},null,8,["message"])])]})),footer:(0,r.withCtx)((function(){return[(0,r.createVNode)(c,{onClick:e.closeModal},{default:(0,r.withCtx)((function(){return t[2]||(t[2]=[(0,r.createTextVNode)(" Cancel ")])})),_:1},8,["onClick"]),(0,r.createVNode)(u,{class:(0,r.normalizeClass)(["ml-2",{"opacity-25":e.form.processing}]),onClick:e.confirmPassword,disabled:e.form.processing},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.button),1)]})),_:1},8,["onClick","class","disabled"])]})),_:1},8,["show","onClose"])])}]]);var _=n(4736);const E=(0,p.pM)({components:{JetActionSection:h.A,JetButton:f.A,JetConfirmsPassword:k,JetDangerButton:_.A,JetSecondaryButton:b.A},data:function(){return{enabling:!1,disabling:!1,qrCode:null,recoveryCodes:[]}},methods:{enableTwoFactorAuthentication:function(){var e=this;this.enabling=!0,this.$inertia.post("/user/two-factor-authentication",{},{preserveScroll:!0,onSuccess:function(){return Promise.all([e.showQrCode(),e.showRecoveryCodes()])},onFinish:function(){return e.enabling=!1}})},showQrCode:function(){var e=this;return axios.get("/user/two-factor-qr-code").then((function(t){e.qrCode=t.data.svg}))},showRecoveryCodes:function(){var e=this;return axios.get("/user/two-factor-recovery-codes").then((function(t){e.recoveryCodes=t.data}))},regenerateRecoveryCodes:function(){var e=this;axios.post("/user/two-factor-recovery-codes").then((function(t){e.showRecoveryCodes()}))},disableTwoFactorAuthentication:function(){var e=this;this.disabling=!0,this.$inertia.delete("/user/two-factor-authentication",{preserveScroll:!0,onSuccess:function(){return e.disabling=!1}})}},computed:{twoFactorEnabled:function(){return!this.enabling&&this.$page.props.user.two_factor_enabled}}}),C=(0,w.A)(E,[["render",function(e,t,n,p,h,f){var m=(0,r.resolveComponent)("Text"),g=(0,r.resolveComponent)("jet-button"),v=(0,r.resolveComponent)("jet-confirms-password"),y=(0,r.resolveComponent)("jet-secondary-button"),b=(0,r.resolveComponent)("jet-danger-button"),x=(0,r.resolveComponent)("jet-action-section");return(0,r.openBlock)(),(0,r.createBlock)(x,null,{title:(0,r.withCtx)((function(){return t[0]||(t[0]=[(0,r.createTextVNode)(" Two Factor Authentication ")])})),description:(0,r.withCtx)((function(){return t[1]||(t[1]=[(0,r.createTextVNode)(" Add additional security to your account using two factor authentication. ")])})),content:(0,r.withCtx)((function(){return[e.twoFactorEnabled?((0,r.openBlock)(),(0,r.createBlock)(m,{key:0,type:"h3",text:"You have enabled two factor authentication."})):((0,r.openBlock)(),(0,r.createBlock)(m,{key:1,type:"h3",text:"You have not enabled two factor authentication."})),t[8]||(t[8]=(0,r.createElementVNode)("div",{class:"mt-3 max-w-xl text-sm text-gray-600"},[(0,r.createElementVNode)("p",null," When two factor authentication is enabled, you will be prompted for a secure, random token during authentication. You may retrieve this token from your phone's Google Authenticator application. ")],-1)),e.twoFactorEnabled?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[e.qrCode?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[t[2]||(t[2]=(0,r.createElementVNode)("div",{class:"mt-4 max-w-xl text-sm text-gray-600"},[(0,r.createElementVNode)("p",{class:"font-semibold"}," Two factor authentication is now enabled. Scan the following QR code using your phone's authenticator application. ")],-1)),(0,r.createElementVNode)("div",{class:"mt-4",innerHTML:e.qrCode},null,8,a)])):(0,r.createCommentVNode)("",!0),e.recoveryCodes.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[t[3]||(t[3]=(0,r.createElementVNode)("div",{class:"mt-4 max-w-xl text-sm text-gray-600"},[(0,r.createElementVNode)("p",{class:"font-semibold"}," Store these recovery codes in a secure password manager. They can be used to recover access to your account if your two factor authentication device is lost. ")],-1)),(0,r.createElementVNode)("div",l,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.recoveryCodes,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e},(0,r.toDisplayString)(e),1)})),128))])])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",c,[e.twoFactorEnabled?((0,r.openBlock)(),(0,r.createElementBlock)("div",d,[(0,r.createVNode)(v,{onConfirmed:e.regenerateRecoveryCodes},{default:(0,r.withCtx)((function(){return[e.recoveryCodes.length>0?((0,r.openBlock)(),(0,r.createBlock)(y,{key:0,class:"mr-3"},{default:(0,r.withCtx)((function(){return t[5]||(t[5]=[(0,r.createTextVNode)(" Regenerate Recovery Codes ")])})),_:1})):(0,r.createCommentVNode)("",!0)]})),_:1},8,["onConfirmed"]),(0,r.createVNode)(v,{onConfirmed:e.showRecoveryCodes},{default:(0,r.withCtx)((function(){return[0===e.recoveryCodes.length?((0,r.openBlock)(),(0,r.createBlock)(y,{key:0,class:"mr-3"},{default:(0,r.withCtx)((function(){return t[6]||(t[6]=[(0,r.createTextVNode)(" Show Recovery Codes ")])})),_:1})):(0,r.createCommentVNode)("",!0)]})),_:1},8,["onConfirmed"]),(0,r.createVNode)(v,{onConfirmed:e.disableTwoFactorAuthentication},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(b,{class:(0,r.normalizeClass)({"opacity-25":e.disabling}),disabled:e.disabling},{default:(0,r.withCtx)((function(){return t[7]||(t[7]=[(0,r.createTextVNode)(" Disable ")])})),_:1},8,["class","disabled"])]})),_:1},8,["onConfirmed"])])):((0,r.openBlock)(),(0,r.createElementBlock)("div",u,[(0,r.createVNode)(v,{onConfirmed:e.enableTwoFactorAuthentication},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(g,{type:"button",class:(0,r.normalizeClass)({"opacity-25":e.enabling}),disabled:e.enabling},{default:(0,r.withCtx)((function(){return t[4]||(t[4]=[(0,r.createTextVNode)(" Enable ")])})),_:1},8,["class","disabled"])]})),_:1},8,["onConfirmed"])]))])]})),_:1})}]])},641:(e,t,n)=>{"use strict";n.d(t,{$V:()=>Re,$u:()=>tt,$y:()=>pt,BA:()=>r.BA,Bi:()=>ge,Bs:()=>go,C4:()=>o.C4,CE:()=>br,Df:()=>fe,Dl:()=>N,E:()=>$t,E3:()=>Dr,EW:()=>po,EY:()=>lr,FK:()=>sr,Fv:()=>Tr,Fw:()=>Bn,GM:()=>At,Gc:()=>r.Gc,Gt:()=>rn,Gw:()=>ko,Gy:()=>re,H4:()=>m,HF:()=>It,Ht:()=>Bt,IG:()=>r.IG,IJ:()=>r.IJ,Ic:()=>et,Im:()=>Z,K9:()=>En,KC:()=>Ze,KR:()=>r.KR,Kf:()=>o.rU,Kh:()=>r.Kh,LJ:()=>_o,LM:()=>On,Lk:()=>Nr,Lu:()=>Dt,MZ:()=>he,Mw:()=>cr,NP:()=>Mt,Ng:()=>Ar,OA:()=>Ot,OW:()=>ue,PP:()=>r.PP,PR:()=>Fe,PS:()=>an,PT:()=>o.PT,Pn:()=>Pe,Pr:()=>r.Pr,Q3:()=>Br,QP:()=>ie,QW:()=>r.QW,QZ:()=>r.QZ,Qi:()=>I,R1:()=>r.R1,R8:()=>yo,RG:()=>yt,SS:()=>ot,Tb:()=>xt,Tm:()=>r.Tm,Tq:()=>Ie,Tr:()=>o.Tr,U4:()=>u,U_:()=>In,Ul:()=>r.Ul,Vq:()=>vr,WQ:()=>on,Wv:()=>xr,X2:()=>r.X2,Y4:()=>We,Y5:()=>Eo,YY:()=>R,Yj:()=>Nt,Yv:()=>r.Yv,ZH:()=>o.ZH,ZQ:()=>bo,_B:()=>o._B,aT:()=>Co,bF:()=>Sr,bU:()=>mo,bj:()=>it,bn:()=>Rt,bo:()=>z,ch:()=>r.ch,ci:()=>Cn,dA:()=>Le,dY:()=>_,ds:()=>r.ds,eW:()=>Mr,eX:()=>vt,fE:()=>r.fE,fn:()=>Fn,g2:()=>ut,g8:()=>r.g8,gN:()=>ht,gW:()=>_r,gh:()=>h,h:()=>ho,hi:()=>rt,i9:()=>r.i9,iD:()=>wo,jC:()=>ur,jr:()=>r.jr,jt:()=>j,ju:()=>r.ju,k6:()=>$,lW:()=>r.lW,lt:()=>xo,mu:()=>r.mu,n:()=>Ue,nD:()=>r.nD,nI:()=>Hr,nT:()=>Pn,o5:()=>r.o5,p9:()=>Ln,pI:()=>gt,pM:()=>me,pR:()=>le,qG:()=>st,qL:()=>f,qP:()=>St,qR:()=>at,rE:()=>vo,rO:()=>Tt,rU:()=>Oe,rY:()=>r.rY,rk:()=>ye,sV:()=>Qe,tB:()=>r.tB,tC:()=>eo,tG:()=>d,tY:()=>tr,uX:()=>hr,uY:()=>r.uY,ux:()=>r.ux,v6:()=>Ir,v_:()=>
2o.v_,vv:()=>wr,wB:()=>jn,wX:()=>to,wk:()=>Vt,xo:()=>nt,y$:()=>fo,yC:()=>r.yC,zz:()=>jt});var r=n(953),o=n(33);const i=[];let a=!1;function s(e,...t){if(a)return;a=!0,(0,r.C4)();const n=i.length?i[i.length-1].component:null,o=n&&n.appContext.config.warnHandler,s=function(){let e=i[i.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(o)h(o,n,11,[e+t.map((e=>{var t,n;return null!=(n=null==(t=e.toString)?void 0:t.call(e))?n:JSON.stringify(e)})).join(""),n&&n.proxy,s.map((({vnode:e})=>`at <${co(n,e.type)}>`)).join("\n"),s]);else{const n=[`[Vue warn]: ${e}`,...t];s.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=` at <${co(e.component,e.type,r)}`,i=">"+n;return e.props?[o,...l(e.props),i]:[o+i]}(e))})),t}(s)),console.warn(...n)}(0,r.bl)(),a=!1}function l(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...c(n,e[n]))})),n.length>3&&t.push(" ..."),t}function c(e,t,n){return(0,o.Kg)(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:(0,r.i9)(t)?(t=c(e,(0,r.ux)(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):(0,o.Tn)(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=(0,r.ux)(t),n?t:[`${e}=`,t])}function u(e,t){}const d={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},p={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function h(e,t,n,r){try{return r?e(...r):e()}catch(e){m(e,t,n)}}function f(e,t,n,r){if((0,o.Tn)(e)){const i=h(e,t,n,r);return i&&(0,o.yL)(i)&&i.catch((e=>{m(e,t,n)})),i}if((0,o.cy)(e)){const o=[];for(let i=0;i<e.length;i++)o.push(f(e[i],t,n,r));return o}}function m(e,t,n,i=!0){t&&t.vnode;const{errorHandler:a,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||o.MZ;if(t){let o=t.parent;const i=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,i,s))return;o=o.parent}if(a)return(0,r.C4)(),h(a,null,10,[e,i,s]),void(0,r.bl)()}!function(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}(e,0,0,i,s)}const g=[];let v=-1;const y=[];let b=null,x=0;const w=Promise.resolve();let k=null;function _(e){const t=k||w;return e?t.then(this?e.bind(this):e):t}function E(e){if(!(1&e.flags)){const t=A(e),n=g[g.length-1];!n||!(2&e.flags)&&t>=A(n)?g.push(e):g.splice(function(e){let t=v+1,n=g.length;for(;t<n;){const r=t+n>>>1,o=g[r],i=A(o);i<e||i===e&&2&o.flags?t=r+1:n=r}return t}(t),0,e),e.flags|=1,C()}}function C(){k||(k=w.then(D))}function N(e){(0,o.cy)(e)?y.push(...e):b&&-1===e.id?b.splice(x+1,0,e):1&e.flags||(y.push(e),e.flags|=1),C()}function S(e,t,n=v+1){for(0;n<g.length;n++){const t=g[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;0,g.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function V(e){if(y.length){const e=[...new Set(y)].sort(((e,t)=>A(e)-A(t)));if(y.length=0,b)return void b.push(...e);for(b=e,x=0;x<b.length;x++){const e=b[x];0,4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}b=null,x=0}}const A=e=>null==e.id?2&e.flags?-1:1/0:e.id;function D(e){o.tE;try{for(v=0;v<g.length;v++){const e=g[v];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),h(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;v<g.length;v++){const e=g[v];e&&(e.flags&=-2)}v=-1,g.length=0,V(),k=null,(g.length||y.length)&&D(e)}}let M,T=[],B=!1;let O=null,P=null;function L(e){const t=O;return O=e,P=e&&e.type.__scopeId||null,t}function I(e){P=e}function j(){P=null}const R=e=>$;function $(e,t=O,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&vr(-1);const o=L(t);let i;try{i=e(...n)}finally{L(o),r._d&&vr(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function z(e,t){if(null===O)return e;const n=io(O),i=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[a,s,l,c=o.MZ]=t[e];a&&((0,o.Tn)(a)&&(a={mounted:a,updated:a}),a.deep&&(0,r.hV)(s),i.push({dir:a,instance:n,value:s,oldValue:void 0,arg:l,modifiers:c}))}return e}function F(e,t,n,o){const i=e.dirs,a=t&&t.dirs;for(let s=0;s<i.length;s++){const l=i[s];a&&(l.oldValue=a[s].value);let c=l.dir[o];c&&((0,r.C4)(),f(c,n,8,[e.el,l,e,t]),(0,r.bl)())}}const H=Symbol("_vte"),U=e=>e.__isTeleport,W=e=>e&&(e.disabled||""===e.disabled),q=e=>e&&(e.defer||""===e.defer),Y=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,G=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,K=(e,t)=>{const n=e&&e.to;if((0,o.Kg)(n)){if(t){return t(n)}return null}return n},J={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,a,s,l,c){const{mc:u,pc:d,pbc:p,o:{insert:h,querySelector:f,createText:m,createComment:g}}=c,v=W(t.props);let{shapeFlag:y,children:b,dynamicChildren:x}=t;if(null==e){const e=t.el=m(""),c=t.anchor=m("");h(e,n,r),h(c,n,r);const d=(e,t)=>{16&y&&(o&&o.isCE&&(o.ce._teleportTarget=e),u(b,e,t,o,i,a,s,l))},p=()=>{const e=t.target=K(t.props,f),n=ee(e,t,m,h);e&&("svg"!==a&&Y(e)?a="svg":"mathml"!==a&&G(e)&&(a="mathml"),v||(d(e,n),Q(t,!1)))};v&&(d(n,c),Q(t,!0)),q(t.props)?_n((()=>{p(),t.el.__isMounted=!0}),i):p()}else{if(q(t.props)&&!e.el.__isMounted)return void _n((()=>{J.process(e,t,n,r,o,i,a,s,l,c),delete e.el.__isMounted}),i);t.el=e.el,t.targetStart=e.targetStart;const u=t.anchor=e.anchor,h=t.target=e.target,m=t.targetAnchor=e.targetAnchor,g=W(e.props),y=g?n:h,b=g?u:m;if("svg"===a||Y(h)?a="svg":("mathml"===a||G(h))&&(a="mathml"),x?(p(e.dynamicChildren,x,y,o,i,a,s),Dn(e,t,!0)):l||d(e,t,y,b,o,i,a,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):X(t,n,u,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=K(t.props,f);e&&X(t,e,null,c,0)}else g&&X(t,h,m,c,1);Q(t,v)}},remove(e,t,n,{um:r,o:{remove:o}},i){const{shapeFlag:a,children:s,anchor:l,targetStart:c,targetAnchor:u,target:d,props:p}=e;if(d&&(o(c),o(u)),i&&o(l),16&a){const e=i||!W(p);for(let o=0;o<s.length;o++){const i=s[o];r(i,t,n,e,!!i.dynamicChildren)}}},move:X,hydrate:function(e,t,n,r,o,i,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:c,createText:u}},d){const p=t.target=K(t.props,l);if(p){const l=W(t.props),h=p._lpa||p.firstChild;if(16&t.shapeFlag)if(l)t.anchor=d(a(e),t,s(e),n,r,o,i),t.targetStart=h,t.targetAnchor=h&&a(h);else{t.anchor=a(e);let s=h;for(;s;){if(s&&8===s.nodeType)if("teleport start anchor"===s.data)t.targetStart=s;else if("teleport anchor"===s.data){t.targetAnchor=s,p._lpa=t.targetAnchor&&a(t.targetAnchor);break}s=a(s)}t.targetAnchor||ee(p,t,u,c),d(h&&a(h),t,p,n,r,o,i)}Q(t,l)}return t.anchor&&a(t.anchor)}};function X(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=e,d=2===i;if(d&&r(a,t,n),(!d||W(u))&&16&l)for(let e=0;e<c.length;e++)o(c[e],t,n,2);d&&r(s,t,n)}const Z=J;function Q(e,t){const n=e.ctx;if(n&&n.ut){let r,o;for(t?(r=e.el,o=e.anchor):(r=e.targetStart,o=e.targetAnchor);r&&r!==o;)1===r.nodeType&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function ee(e,t,n,r){const o=t.targetStart=n(""),i=t.targetAnchor=n("");return o[H]=i,e&&(r(o,e),r(i,e)),i}const te=Symbol("_leaveCb"),ne=Symbol("_enterCb");function re(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leav
2ingVNodes:new Map};return Qe((()=>{e.isMounted=!0})),nt((()=>{e.isUnmounting=!0})),e}const oe=[Function,Array],ie={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:oe,onEnter:oe,onAfterEnter:oe,onEnterCancelled:oe,onBeforeLeave:oe,onLeave:oe,onAfterLeave:oe,onLeaveCancelled:oe,onBeforeAppear:oe,onAppear:oe,onAfterAppear:oe,onAppearCancelled:oe},ae=e=>{const t=e.subTree;return t.component?ae(t.component):t};function se(e){let t=e[0];if(e.length>1){let n=!1;for(const r of e)if(r.type!==cr){0,t=r,n=!0;break}}return t}const le={name:"BaseTransition",props:ie,setup(e,{slots:t}){const n=Hr(),o=re();return()=>{const i=t.default&&fe(t.default(),!0);if(!i||!i.length)return;const a=se(i),s=(0,r.ux)(e),{mode:l}=s;if(o.isLeaving)return de(a);const c=pe(a);if(!c)return de(a);let u=ue(c,s,o,n,(e=>u=e));c.type!==cr&&he(c,u);let d=n.subTree&&pe(n.subTree);if(d&&d.type!==cr&&!kr(c,d)&&ae(n).type!==cr){let e=ue(d,s,o,n);if(he(d,e),"out-in"===l&&c.type!==cr)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,d=void 0},de(a);"in-out"===l&&c.type!==cr?e.delayLeave=(e,t,n)=>{ce(o,d)[String(d.key)]=d,e[te]=()=>{t(),e[te]=void 0,delete u.delayedLeave,d=void 0},u.delayedLeave=()=>{n(),delete u.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return a}}};function ce(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ue(e,t,n,r,i){const{appear:a,mode:s,persisted:l=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:h,onLeave:m,onAfterLeave:g,onLeaveCancelled:v,onBeforeAppear:y,onAppear:b,onAfterAppear:x,onAppearCancelled:w}=t,k=String(e.key),_=ce(n,e),E=(e,t)=>{e&&f(e,r,9,t)},C=(e,t)=>{const n=t[1];E(e,t),(0,o.cy)(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},N={mode:s,persisted:l,beforeEnter(t){let r=c;if(!n.isMounted){if(!a)return;r=y||c}t[te]&&t[te](!0);const o=_[k];o&&kr(e,o)&&o.el[te]&&o.el[te](),E(r,[t])},enter(e){let t=u,r=d,o=p;if(!n.isMounted){if(!a)return;t=b||u,r=x||d,o=w||p}let i=!1;const s=e[ne]=t=>{i||(i=!0,E(t?o:r,[e]),N.delayedLeave&&N.delayedLeave(),e[ne]=void 0)};t?C(t,[e,s]):s()},leave(t,r){const o=String(e.key);if(t[ne]&&t[ne](!0),n.isUnmounting)return r();E(h,[t]);let i=!1;const a=t[te]=n=>{i||(i=!0,r(),E(n?v:g,[t]),t[te]=void 0,_[o]===e&&delete _[o])};_[o]=e,m?C(m,[t,a]):a()},clone(e){const o=ue(e,t,n,r,i);return i&&i(o),o}};return N}function de(e){if(ze(e))return(e=Dr(e)).children=null,e}function pe(e){if(!ze(e))return U(e.type)&&e.children?se(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&(0,o.Tn)(n.default))return n.default()}}function he(e,t){6&e.shapeFlag&&e.component?(e.transition=t,he(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function fe(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let a=e[i];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:i);a.type===sr?(128&a.patchFlag&&o++,r=r.concat(fe(a.children,t,s))):(t||a.type!==cr)&&r.push(null!=s?Dr(a,{key:s}):a)}if(o>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function me(e,t){return(0,o.Tn)(e)?(()=>(0,o.X$)({name:e.name},t,{setup:e}))():e}function ge(){const e=Hr();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function ve(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ye(e){const t=Hr(),n=(0,r.IJ)(null);if(t){const r=t.refs===o.MZ?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}else 0;return n}function be(e,t,n,i,a=!1){if((0,o.cy)(e))return void e.forEach(((e,r)=>be(e,t&&((0,o.cy)(t)?t[r]:t),n,i,a)));if(je(i)&&!a)return void(512&i.shapeFlag&&i.type.__asyncResolved&&i.component.subTree.component&&be(e,t,n,i.component.subTree));const s=4&i.shapeFlag?io(i.component):i.el,l=a?null:s,{i:c,r:u}=e;const d=t&&t.r,p=c.refs===o.MZ?c.refs={}:c.refs,f=c.setupState,m=(0,r.ux)(f),g=f===o.MZ?()=>!1:e=>(0,o.$3)(m,e);if(null!=d&&d!==u&&((0,o.Kg)(d)?(p[d]=null,g(d)&&(f[d]=null)):(0,r.i9)(d)&&(d.value=null)),(0,o.Tn)(u))h(u,c,12,[l,p]);else{const t=(0,o.Kg)(u),i=(0,r.i9)(u);if(t||i){const r=()=>{if(e.f){const n=t?g(u)?f[u]:p[u]:u.value;a?(0,o.cy)(n)&&(0,o.TF)(n,s):(0,o.cy)(n)?n.includes(s)||n.push(s):t?(p[u]=[s],g(u)&&(f[u]=p[u])):(u.value=[s],e.k&&(p[e.k]=u.value))}else t?(p[u]=l,g(u)&&(f[u]=l)):i&&(u.value=l,e.k&&(p[e.k]=l))};l?(r.id=-1,_n(r,n)):r()}else 0}}let xe=!1;const we=()=>{xe||(console.error("Hydration completed but contains mismatches."),xe=!0)},ke=e=>{if(1===e.nodeType)return(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0},_e=e=>8===e.nodeType;function Ee(e){const{mt:t,p:n,o:{patchProp:i,createText:a,nextSibling:l,parentNode:c,remove:u,insert:d,createComment:p}}=e,h=(n,r,o,i,u,p=!1)=>{p=p||!!r.dynamicChildren;const w=_e(n)&&"["===n.data,k=()=>v(n,r,o,i,u,w),{type:_,ref:E,shapeFlag:C,patchFlag:N}=r;let S=n.nodeType;r.el=n,-2===N&&(p=!1,r.dynamicChildren=null);let V=null;switch(_){case lr:3!==S?""===r.children?(d(r.el=a(""),c(n),n),V=n):V=k():(n.data!==r.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&s("Hydration text mismatch in",n.parentNode,`\n - rendered on server: ${JSON.stringify(n.data)}\n - expected on client: ${JSON.stringify(r.children)}`),we(),n.data=r.children),V=l(n));break;case cr:x(n)?(V=l(n),b(r.el=n.content.firstChild,n,o)):V=8!==S||w?k():l(n);break;case ur:if(w&&(S=(n=l(n)).nodeType),1===S||3===S){V=n;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=1===V.nodeType?V.outerHTML:V.data),t===r.staticCount-1&&(r.anchor=V),V=l(V);return w?l(V):V}k();break;case sr:V=w?g(n,r,o,i,u,p):k();break;default:if(1&C)V=1===S&&r.type.toLowerCase()===n.tagName.toLowerCase()||x(n)?f(n,r,o,i,u,p):k();else if(6&C){r.slotScopeIds=u;const e=c(n);if(V=w?y(n):_e(n)&&"teleport start"===n.data?y(n,n.data,"teleport end"):l(n),t(r,e,null,o,i,ke(e),p),je(r)&&!r.type.__asyncResolved){let t;w?(t=Sr(sr),t.anchor=V?V.previousSibling:e.lastChild):t=3===n.nodeType?Mr(""):Sr("div"),t.el=n,r.component.subTree=t}}else 64&C?V=8!==S?k():r.type.hydrate(n,r,o,i,u,p,e,m):128&C?V=r.type.hydrate(n,r,o,i,ke(c(n)),u,p,e,h):__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&s("Invalid HostVNode type:",_,`(${typeof _})`)}return null!=E&&be(E,null,i,r),V},f=(e,t,n,a,l,c)=>{c=c||!!t.dynamicChildren;const{type:d,props:p,patchFlag:h,shapeFlag:f,dirs:g,transition:v}=t,y="input"===d||"option"===d;if(y||-1!==h){g&&F(t,null,n,"created");let d,w=!1;if(x(e)){w=An(null,v)&&n&&n.vnode.props&&n.vnode.props.appear;const r=e.content.firstChild;w&&v.beforeEnter(r),b(r,e,n),t.el=e=r}if(16&f&&(!p||!p.innerHTML&&!p.textContent)){let r=m(e.firstChild,t,e,n,a,l,c),o=!1;for(;r;){Me(e,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!o&&(s("Hydration children mismatch on",e,"\nServer rendered element contains more child nodes than client vdom."),o=!0),we());const t=r;r=r.nextSibling,u(t)}}else if(8&f){let n=t.children;"\n"!==n[0]||"PRE"!==e.tagName&&"TEXTAREA"!==e.tagName||(n=n.slice(1)),e.textContent!==n&&(Me(e,0)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&s("Hydration text content mismatch on",e,`\n - rendered on server: ${e.textContent}\n - expected on client: ${t.children}`),we()),e.textContent=t.children)}if(p)if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||y||!c||48&h){const r=e.tagName.includes("-");for(const a in p)!__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||g&&g.some((e=>e.dir.created))||!Ce(e,a,p[a],t,n)||we(),(y&&(a.endsWith("value")||"indeterminate"===a)||(0,o.Mp)(a)&&!(0,o.SU)(a)||"."===a[0]||r)&&i(e,a,null,p[a],void 0,n)}else if(p.onClick)i(e,"onClick",null,p.onClick,void 0,n);else if(4&h&&(0,r.g8)(p.style))for(const e in p.style)p.style[e];(d=p&&p.onVnodeBeforeMount)&&jr(d,n,t),g&&F(t,null,n,"beforeMount"),((d=p&&p.onVnodeMounted)||g||w)&&ir((()=>{d&&jr(d,n,t),w&&v.enter(e),g&&F(t,null,n,"mounted")}),a)}return e.nextSibling},m=(e,t,r,o,i,c,u)=>{u=u||!!t.dynamicChildren;const p=t.children,f=p.length;let m=!1;for(let t=0;t<f;t++){const g=u?p[t]:p[t]=Or(p[t]),v=g.type===lr;e?(v&&!u&&t+1<f&&Or(p[t+1]).type===lr&&(d(a(e.data.slice(g.children.length)),r,l(e)),e.data=g.children),e=h(e,g,o,i,c,u)):v&&!g.children?d(g.el=a(""),r):(Me(r,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!m&&(s("Hydration children mismatch on",r,"\nServer rendered element contains fewer child nodes than client vdom."),m=!0),we()),n(null,g,r,null,o,i,ke(r),c))}return e},g=(e,t,n,r,o,i)=>{const{slotScopeIds:a}=t;a&&(o=o?o.concat(a):a);const s=c(e),u=m(l(e),t,s,n,r,o,i);return u&&_e(u)&&"]"===u.data?l(t.anchor=u):(we(),d(t.anchor=p("]"),s,u),u)},v=(e,t,r,o,i,a)=>
2{if(Me(e.parentElement,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&s("Hydration node mismatch:\n- rendered on server:",e,3===e.nodeType?"(text)":_e(e)&&"["===e.data?"(start of fragment)":"","\n- expected on client:",t.type),we()),t.el=null,a){const t=y(e);for(;;){const n=l(e);if(!n||n===t)break;u(n)}}const d=l(e),p=c(e);return u(e),n(null,t,p,d,r,o,ke(p),i),r&&(r.vnode.el=t.el,Zn(r,t.el)),d},y=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=l(e))&&_e(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return l(e);r--}return e},b=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let o=n;for(;o;)o.vnode.el===t&&(o.vnode.el=o.subTree.el=e),o=o.parent},x=e=>1===e.nodeType&&"TEMPLATE"===e.tagName;return[(e,t)=>{if(!t.hasChildNodes())return __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&s("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,e,t),V(),void(t._vnode=e);h(t.firstChild,e,null,null,null),V(),t._vnode=e},h]}function Ce(e,t,n,r,i){let a,l,c,u;if("class"===t)c=e.getAttribute("class"),u=(0,o.C4)(n),function(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(Ne(c||""),Ne(u))||(a=2,l="class");else if("style"===t){c=e.getAttribute("style")||"",u=(0,o.Kg)(n)?n:(0,o.tl)((0,o.Tr)(n));const t=Se(c),s=Se(u);if(r.dirs)for(const{dir:e,value:t}of r.dirs)"show"!==e.name||t||s.set("display","none");i&&Ve(i,r,s),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e)if(r!==t.get(n))return!1;return!0}(t,s)||(a=3,l="style")}else(e instanceof SVGElement&&(0,o.z3)(t)||e instanceof HTMLElement&&((0,o.W0)(t)||(0,o.wQ)(t)))&&((0,o.W0)(t)?(c=e.hasAttribute(t),u=(0,o.Y2)(n)):null==n?(c=e.hasAttribute(t),u=!1):(c=e.hasAttribute(t)?e.getAttribute(t):"value"===t&&"TEXTAREA"===e.tagName&&e.value,u=!!(0,o.Vp)(n)&&String(n)),c!==u&&(a=4,l=t));if(null!=a&&!Me(e,a)){const t=e=>!1===e?"(not rendered)":`${l}="${e}"`;return s(`Hydration ${De[a]} mismatch on`,e,`\n - rendered on server: ${t(c)}\n - expected on client: ${t(u)}\n Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.\n You should fix the source of the mismatch.`),!0}return!1}function Ne(e){return new Set(e.trim().split(/\s+/))}function Se(e){const t=new Map;for(const n of e.split(";")){let[e,r]=n.split(":");
2e=e.trim(),r=r&&r.trim(),e&&r&&t.set(e,r)}return t}function Ve(e,t,n){const r=e.subTree;if(e.getCssVars&&(t===r||r&&r.type===sr&&r.children.includes(t))){const t=e.getCssVars();for(const e in t)n.set(`--${(0,o.XW)(e,!1)}`,String(t[e]))}t===r&&e.parent&&Ve(e.parent,e.vnode,n)}const Ae="data-allow-mismatch",De={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Me(e,t){if(0===t||1===t)for(;e&&!e.hasAttribute(Ae);)e=e.parentElement;const n=e&&e.getAttribute(Ae);if(null==n)return!1;if(""===n)return!0;{const e=n.split(",");return!(0!==t||!e.includes("children"))||n.split(",").includes(De[t])}}const Te=(0,o.We)().requestIdleCallback||(e=>setTimeout(e,1)),Be=(0,o.We)().cancelIdleCallback||(e=>clearTimeout(e)),Oe=(e=1e4)=>t=>{const n=Te(t,{timeout:e});return()=>Be(n)};const Pe=e=>(t,n)=>{const r=new IntersectionObserver((e=>{for(const n of e)if(n.isIntersecting){r.disconnect(),t();break}}),e);return n((e=>{if(e instanceof Element)return function(e){const{top:t,left:n,bottom:r,right:o}=e.getBoundingClientRect(),{innerHeight:i,innerWidth:a}=window;return(t>0&&t<i||r>0&&r<i)&&(n>0&&n<a||o>0&&o<a)}(e)?(t(),r.disconnect(),!1):void r.observe(e)})),()=>r.disconnect()},Le=e=>t=>{if(e){const n=matchMedia(e);if(!n.matches)return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t);t()}},Ie=(e=[])=>(t,n)=>{(0,o.Kg)(e)&&(e=[e]);let r=!1;const i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n((t=>{for(const n of e)t.removeEventListener(n,i)}))};return n((t=>{for(const n of e)t.addEventListener(n,i,{once:!0})})),a};const je=e=>!!e.type.__asyncLoader;function Re(e){(0,o.Tn)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:a=200,hydrate:s,timeout:l,suspensible:c=!0,onError:u}=e;let d,p=null,h=0;const f=()=>{let e;return p||(e=p=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),u)return new Promise(((t,n)=>{u(e,(()=>t((h++,p=null,f()))),(()=>n(e)),h+1)}));throw e})).then((t=>e!==p&&p?p:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),d=t,t))))};return me({name:"AsyncComponentWrapper",__asyncLoader:f,__asyncHydrate(e,t,n){const r=s?()=>{const r=s(n,(t=>function(e,t){if(_e(e)&&"["===e.data){let n=1,r=e.nextSibling;for(;r;){if(1===r.nodeType){if(!1===t(r))break}else if(_e(r))if("]"===r.data){if(0==--n)break}else"["===r.data&&n++;r=r.nextSibling}}else t(e)}(e,t)));r&&(t.bum||(t.bum=[])).push(r)}:n;d?r():f().then((()=>!t.isUnmounted&&r()))},get __asyncResolved(){return d},setup(){const e=Fr;if(ve(e),d)return()=>$e(d,e);const t=t=>{p=null,m(t,e,13,!i)};if(c&&e.suspense||Xr)return f().then((t=>()=>$e(t,e))).catch((e=>(t(e),()=>i?Sr(i,{error:e}):null)));const o=(0,r.KR)(!1),s=(0,r.KR)(),u=(0,r.KR)(!!a);return a&&setTimeout((()=>{u.value=!1}),a),null!=l&&setTimeout((()=>{if(!o.value&&!s.value){const e=new Error(`Async component timed out after ${l}ms.`);t(e),s.value=e}}),l),f().then((()=>{o.value=!0,e.parent&&ze(e.parent.vnode)&&e.parent.update()})).catch((e=>{t(e),s.value=e})),()=>o.value&&d?$e(d,e):s.value&&i?Sr(i,{error:s.value}):n&&!u.value?Sr(n):void 0}})}function $e(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,a=Sr(e,r,o);return a.ref=n,a.ce=i,delete t.vnode.ce,a}const ze=e=>e.type.__isKeepAlive,Fe={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Hr(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,a=new Set;let s=null;const l=n.suspense,{renderer:{p:c,m:u,um:d,o:{createElement:p}}}=r,h=p("div");function f(e){Ge(e),d(e,n,l,!0)}function m(e){i.forEach(((t,n)=>{const r=lo(t.type);r&&!e(r)&&g(n)}))}function g(e){const t=i.get(e);!t||s&&kr(t,s)?s&&Ge(s):f(t),i.delete(e),a.delete(e)}r.activate=(e,t,n,r,i)=>{const a=e.component;u(e,t,n,0,l),c(a.vnode,e,t,n,a,l,r,e.slotScopeIds,i),_n((()=>{a.isDeactivated=!1,a.a&&(0,o.DY)(a.a);const t=e.props&&e.props.onVnodeMounted;t&&jr(t,a.parent,e)}),l)},r.deactivate=e=>{const t=e.component;Tn(t.m),Tn(t.a),u(e,h,null,1,l),_n((()=>{t.da&&(0,o.DY)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&jr(n,t.parent,e),t.isDeactivated=!0}),l)},jn((()=>[e.include,e.exclude]),(([e,t])=>{e&&m((t=>He(e,t))),t&&m((e=>!He(t,e)))}),{flush:"post",deep:!0});let v=null;const y=()=>{null!=v&&(Qn(n.subTree.type)?_n((()=>{i.set(v,Ke(n.subTree))}),n.subTree.suspense):i.set(v,Ke(n.subTree)))};return Qe(y),tt(y),nt((()=>
2{i.forEach((e=>{const{subTree:t,suspense:r}=n,o=Ke(t);if(e.type!==o.type||e.key!==o.key)f(e);else{Ge(o);const e=o.component.da;e&&_n(e,r)}}))})),()=>{if(v=null,!t.default)return s=null;const n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!(wr(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return s=null,r;let o=Ke(r);if(o.type===cr)return s=null,o;const l=o.type,c=lo(je(o)?o.type.__asyncResolved||{}:l),{include:u,exclude:d,max:p}=e;if(u&&(!c||!He(u,c))||d&&c&&He(d,c))return o.shapeFlag&=-257,s=o,r;const h=null==o.key?l:o.key,f=i.get(h);return o.el&&(o=Dr(o),128&r.shapeFlag&&(r.ssContent=o)),v=h,f?(o.el=f.el,o.component=f.component,o.transition&&he(o,o.transition),o.shapeFlag|=512,a.delete(h),a.add(h)):(a.add(h),p&&a.size>parseInt(p,10)&&g(a.values().next().value)),o.shapeFlag|=256,s=o,Qn(r.type)?r:o}}};function He(e,t){return(0,o.cy)(e)?e.some((e=>He(e,t))):(0,o.Kg)(e)?e.split(",").includes(t):!!(0,o.gd)(e)&&(e.lastIndex=0,e.test(t))}function Ue(e,t){qe(e,"a",t)}function We(e,t){qe(e,"da",t)}function qe(e,t,n=Fr){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Je(t,r,n),n){let e=n.parent;for(;e&&e.parent;)ze(e.parent.vnode)&&Ye(r,t,n,e),e=e.parent}}function Ye(e,t,n,r){const i=Je(t,e,r,!0);rt((()=>{(0,o.TF)(r[t],i)}),n)}function Ge(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ke(e){return 128&e.shapeFlag?e.ssContent:e}function Je(e,t,n=Fr,o=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...o)=>{(0,r.C4)();const i=qr(n),a=f(t,n,e,o);return i(),(0,r.bl)(),a});return o?i.unshift(a):i.push(a),a}}const Xe=e=>(t,n=Fr)=>{Xr&&"sp"!==e||Je(e,((...e)=>t(...e)),n)},Ze=Xe("bm"),Qe=Xe("m"),et=Xe("bu"),tt=Xe("u"),nt=Xe("bum"),rt=Xe("um"),ot=Xe("sp"),it=Xe("rtg"),at=Xe("rtc");function st(e,t=Fr){Je("ec",e,t)}const lt="components",ct="directives";function ut(e,t){return ft(lt,e,!0,t)||e}const dt=Symbol.for("v-ndc");function pt(e){return(0,o.Kg)(e)?ft(lt,e,!1)||e:e||dt}function ht(e){return ft(ct,e)}function ft(e,t,n=!0,r=!1){const i=O||Fr;if(i){const n=i.type;if(e===lt){const e=lo(n,!1);if(e&&(e===t||e===(0,o.PT)(t)||e===(0,o.ZH)((0,o.PT)(t))))return n}const a=mt(i[e]||n[e],t)||mt(i.appContext[e],t);return!a&&r?n:a}}function mt(e,t){return e&&(e[t]||e[(0,o.PT)(t)]||e[(0,o.ZH)((0,o.PT)(t))])}function gt(e,t,n,i){let a;const s=n&&n[i],l=(0,o.cy)(e);if(l||(0,o.Kg)(e)){let n=!1;l&&(0,r.g8)(e)&&(n=!(0,r.fE)(e),e=(0,r.qA)(e)),a=new Array(e.length);for(let o=0,i=e.length;o<i;o++)a[o]=t(n?(0,r.lJ)(e[o]):e[o],o,void 0,s&&s[o])}else if("number"==typeof e){0,a=new Array(e);for(let n=0;n<e;n++)a[n]=t(n+1,n,void 0,s&&s[n])}else if((0,o.Gv)(e))if(e[Symbol.iterator])a=Array.from(e,((e,n)=>t(e,n,void 0,s&&s[n])));else{const n=Object.keys(e);a=new Array(n.length);for(let r=0,o=n.length;r<o;r++){const o=n[r];a[r]=t(e[o],o,r,s&&s[r])}}else a=[];return n&&(n[i]=a),a}function vt(e,t){for(let n=0;n<t.length;n++){const r=t[n];if((0,o.cy)(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function yt(e,t,n={},r,i){if(O.ce||O.parent&&je(O.parent)&&O.parent.ce)return"default"!==t&&(n.name=t),hr(),xr(sr,null,[Sr("slot",n,r&&r())],64);let a=e[t];a&&a._c&&(a._d=!1),hr();const s=a&&bt(a(n)),l=n.key||s&&s.key,c=xr(sr,{key:(l&&!(0,o.Bm)(l)?l:`_${t}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&1===e._?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),a&&a._c&&(a._d=!0),c}function bt(e){return e.some((e=>!wr(e)||e.type!==cr&&!(e.type===sr&&!bt(e.children))))?e:null}function xt(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:(0,o.rU)(r)]=e[r];return n}const wt=e=>e?Gr(e)?io(e):wt(e.parent):null,kt=(0,o.X$)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>wt(e.parent),$root:e=>wt(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Wt(e),$forceUpdate:e=>e.f||(e.f=()=>{E(e.update)}),$nextTick:e=>e.n||(e.n=_.bind(e.proxy)),$watch:e=>$n.bind(e)}),_t=(e,t)=>e!==o.MZ&&!e.__isScriptSetup&&(0,o.$3)(e,t),Et={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:i,data:a,props:s,accessCache:l,type:c,appContext:u}=e;let d;if("$"!==t[0]){const r=l[t];if(void 0!==r)switch(r){case 1:return i[t];case 2:return a[t];case 4:return n[t];case 3:return s[t]}else{if(_t(i,t))return l[t]=1,i[t];if(a!==o.MZ&&(0,o.$3)(a,t))return l[t]=2,a[t];if((d=e.propsOptions[0])&&(0,o.$3)(d,t))return l[t]=3,s[t];
2if(n!==o.MZ&&(0,o.$3)(n,t))return l[t]=4,n[t];zt&&(l[t]=0)}}const p=kt[t];let h,f;return p?("$attrs"===t&&(0,r.u4)(e.attrs,"get",""),p(e)):(h=c.__cssModules)&&(h=h[t])?h:n!==o.MZ&&(0,o.$3)(n,t)?(l[t]=4,n[t]):(f=u.config.globalProperties,(0,o.$3)(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return _t(i,t)?(i[t]=n,!0):r!==o.MZ&&(0,o.$3)(r,t)?(r[t]=n,!0):!(0,o.$3)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a}},s){let l;return!!n[s]||e!==o.MZ&&(0,o.$3)(e,s)||_t(t,s)||(l=a[0])&&(0,o.$3)(l,s)||(0,o.$3)(r,s)||(0,o.$3)(kt,s)||(0,o.$3)(i.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,o.$3)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const Ct=(0,o.X$)({},Et,{get(e,t){if(t!==Symbol.unscopables)return Et.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!(0,o.BH)(t)});function Nt(){return null}function St(){return null}function Vt(e){0}function At(e){0}function Dt(){return null}function Mt(){0}function Tt(e,t){return null}function Bt(){return Pt().slots}function Ot(){return Pt().attrs}function Pt(){const e=Hr();return e.setupContext||(e.setupContext=oo(e))}function Lt(e){return(0,o.cy)(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function It(e,t){const n=Lt(e);for(const e in t){if(e.startsWith("__skip"))continue;let r=n[e];r?(0,o.cy)(r)||(0,o.Tn)(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function jt(e,t){return e&&t?(0,o.cy)(e)&&(0,o.cy)(t)?e.concat(t):(0,o.X$)({},Lt(e),Lt(t)):e||t}function Rt(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function $t(e){const t=Hr();let n=e();return Yr(),(0,o.yL)(n)&&(n=n.catch((e=>{throw qr(t),e}))),[n,()=>qr(t)]}let zt=!0;function Ft(e){const t=Wt(e),n=e.proxy,i=e.ctx;zt=!1,t.beforeCreate&&Ht(t.beforeCreate,e,"bc");const{data:a,computed:s,methods:l,watch:c,provide:u,inject:d,created:p,beforeMount:h,mounted:f,beforeUpdate:m,updated:g,activated:v,deactivated:y,beforeDestroy:b,beforeUnmount:x,destroyed:w,unmounted:k,render:_,renderTracked:E,renderTriggered:C,errorCaptured:N,serverPrefetch:S,expose:V,inheritAttrs:A,components:D,directives:M,filters:T}=t;if(d&&function(e,t){(0,o.cy)(e)&&(e=Kt(e));for(const n in e){const i=e[n];let a;a=(0,o.Gv)(i)?"default"in i?on(i.from||n,i.default,!0):on(i.from||n):on(i),(0,r.i9)(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e}):t[n]=a}}(d,i,null),l)for(const e in l){const t=l[e];(0,o.Tn)(t)&&(i[e]=t.bind(n))}if(a){0;const t=a.call(n,n);0,(0,o.Gv)(t)&&(e.data=(0,r.Kh)(t))}if(zt=!0,s)for(const e in s){const t=s[e],r=(0,o.Tn)(t)?t.bind(n,n):(0,o.Tn)(t.get)?t.get.bind(n,n):o.tE;0;const a=!(0,o.Tn)(t)&&(0,o.Tn)(t.set)?t.set.bind(n):o.tE,l=po({get:r,set:a});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(c)for(const e in c)Ut(c[e],i,n,e);if(u){const e=(0,o.Tn)(u)?u.call(n):u;Reflect.ownKeys(e).forEach((t=>{rn(t,e[t])}))}function B(e,t){(0,o.cy)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(p&&Ht(p,e,"c"),B(Ze,h),B(Qe,f),B(et,m),B(tt,g),B(Ue,v),B(We,y),B(st,N),B(at,E),B(it,C),B(nt,x),B(rt,k),B(ot,S),(0,o.cy)(V))if(V.length){const t=e.exposed||(e.exposed={});V.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});_&&e.render===o.tE&&(e.render=_),null!=A&&(e.inheritAttrs=A),D&&(e.components=D),M&&(e.directives=M),S&&ve(e)}function Ht(e,t,n){f((0,o.cy)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Ut(e,t,n,r){let i=r.includes(".")?zn(n,r):()=>n[r];if((0,o.Kg)(e)){const n=t[e];(0,o.Tn)(n)&&jn(i,n)}else if((0,o.Tn)(e))jn(i,e.bind(n));else if((0,o.Gv)(e))if((0,o.cy)(e))e.forEach((e=>Ut(e,t,n,r)));else{const r=(0,o.Tn)(e.handler)?e.handler.bind(n):t[e.handler];(0,o.Tn)(r)&&jn(i,r,e)}else 0}function Wt(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,l=a.get(t);let c;return l?c=l:i.length||n||r?(c={}
2,i.length&&i.forEach((e=>qt(c,e,s,!0))),qt(c,t,s)):c=t,(0,o.Gv)(t)&&a.set(t,c),c}function qt(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&qt(e,i,n,!0),o&&o.forEach((t=>qt(e,t,n,!0)));for(const o in t)if(r&&"expose"===o);else{const r=Yt[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const Yt={data:Gt,props:Zt,emits:Zt,methods:Xt,computed:Xt,beforeCreate:Jt,created:Jt,beforeMount:Jt,mounted:Jt,beforeUpdate:Jt,updated:Jt,beforeDestroy:Jt,beforeUnmount:Jt,destroyed:Jt,unmounted:Jt,activated:Jt,deactivated:Jt,errorCaptured:Jt,serverPrefetch:Jt,components:Xt,directives:Xt,watch:function(e,t){if(!e)return t;if(!t)return e;const n=(0,o.X$)(Object.create(null),e);for(const r in t)n[r]=Jt(e[r],t[r]);return n},provide:Gt,inject:function(e,t){return Xt(Kt(e),Kt(t))}};function Gt(e,t){return t?e?function(){return(0,o.X$)((0,o.Tn)(e)?e.call(this,this):e,(0,o.Tn)(t)?t.call(this,this):t)}:t:e}function Kt(e){if((0,o.cy)(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Jt(e,t){return e?[...new Set([].concat(e,t))]:t}function Xt(e,t){return e?(0,o.X$)(Object.create(null),e,t):t}function Zt(e,t){return e?(0,o.cy)(e)&&(0,o.cy)(t)?[...new Set([...e,...t])]:(0,o.X$)(Object.create(null),Lt(e),Lt(null!=t?t:{})):t}function Qt(){return{app:null,config:{isNativeTag:o.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let en=0;function tn(e,t){return function(n,r=null){(0,o.Tn)(n)||(n=(0,o.X$)({},n)),null==r||(0,o.Gv)(r)||(r=null);const i=Qt(),a=new WeakSet,s=[];let l=!1;const c=i.app={_uid:en++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:vo,get config(){return i.config},set config(e){0},use:(e,...t)=>(a.has(e)||(e&&(0,o.Tn)(e.install)?(a.add(e),e.install(c,...t)):(0,o.Tn)(e)&&(a.add(e),e(c,...t))),c),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),c),component:(e,t)=>t?(i.components[e]=t,c):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,c):i.directives[e],mount(o,a,s){if(!l){0;const u=c._ceVNode||Sr(n,r);return u.appContext=i,!0===s?s="svg":!1===s&&(s=void 0),a&&t?t(u,o):e(u,o,s),l=!0,c._container=o,o.__vue_app__=c,io(u.component)}},onUnmount(e){s.push(e)},unmount(){l&&(f(s,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,c),runWithContext(e){const t=nn;nn=c;try{return e()}finally{nn=t}}};return c}}let nn=null;function rn(e,t){if(Fr){let n=Fr.provides;const r=Fr.parent&&Fr.parent.provides;r===n&&(n=Fr.provides=Object.create(r)),n[e]=t}else 0}function on(e,t,n=!1){const r=Fr||O;if(r||nn){const i=nn?nn._context.provides:r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&(0,o.Tn)(t)?t.call(r&&r.proxy):t}else 0}function an(){return!!(Fr||O||nn)}const sn={},ln=()=>Object.create(sn),cn=e=>Object.getPrototypeOf(e)===sn;function un(e,t,n,i){const[a,s]=e.propsOptions;let l,c=!1;if(t)for(let r in t){if((0,o.SU)(r))continue;const u=t[r];let d;a&&(0,o.$3)(a,d=(0,o.PT)(r))?s&&s.includes(d)?(l||(l={}))[d]=u:n[d]=u:qn(e.emitsOptions,r)||r in i&&u===i[r]||(i[r]=u,c=!0)}if(s){const t=(0,r.ux)(n),i=l||o.MZ;for(let r=0;r<s.length;r++){const l=s[r];n[l]=dn(a,t,l,i[l],e,!(0,o.$3)(i,l))}}return c}function dn(e,t,n,r,i,a){const s=e[n];if(null!=s){const e=(0,o.$3)(s,"default");if(e&&void 0===r){const e=s.default;if(s.type!==Function&&!s.skipFactory&&(0,o.Tn)(e)){const{propsDefaults:o}=i;if(n in o)r=o[n];else{const a=qr(i);r=o[n]=e.call(null,t),a()}}else r=e;i.ce&&i.ce._setProp(n,r)}s[0]&&(a&&!e?r=!1:!s[1]||""!==r&&r!==(0,o.Tg)(n)||(r=!0))}return r}const pn=new WeakMap;function hn(e,t,n=!1){const r=n?pn:t.propsCache,i=r.get(e);if(i)return i;const a=e.props,s={},l=[];let c=!1;if(!(0,o.Tn)(e)){const r=e=>{c=!0;const[n,r]=hn(e,t,!0);(0,o.X$)(s,n),r&&l.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return(0,o.Gv)(e)&&r.set(e,o.Oj),o.Oj;if((0,o.cy)(a))for(let e=0;e<a.length;e++){0;const t=(0,o.PT)(a[e]);fn(t)&&(s[t]=o.MZ)}else if(a){0;for(const e in a){const t=(0,o.PT)(e);if(fn(t)){const n=a[e],r=s[t]=(0,o.cy)(n)||(0,o.Tn)(n)?{type:n}:(0,o.X$)({},n),i=r.type;let c=!1,u=!0;if((0,o.cy)(i))for(let e=0;e<i.length;++e){const t=i[e],n=(0,o.Tn)(t)&&t.name;if("Boolean"===n){c=!0;break}"String"===n&&(u=!1)}else c=(0,o.Tn)(i)&&"Boolean"===i.name;r[0]=c,r[1]=u,(c||(0,o.$3)(r,"default"))&&l.push(t)}}}const u=[s,l];return(0,o.Gv)(e)&&r.set(e,u),u}function fn(e){return"$"!==e[0]&&!(0,o.SU)(e)}const mn=e=>"_"===e[0]||"$stable"===e,gn=e=>(0,o.cy)(e)?e.map(Or):[Or(e)],vn=(e,t,n)=>{if(t._n)return t;const r=$(((...e)=>gn(t(...e))),n);return r._c=!1,r},yn=(e,t,n)=>{const r=e._ctx;for(const n in e){if(mn(n))continue;const i=e[n];if((0,o.Tn)(i))t[n]=vn(0,i,r);else if(null!=i){0;const e=gn(i);t[n]=()=>e}}},bn=(e,t)=>{const n=gn(t);
vendor: 12,540 bytes, line 2
2e.slots.default=()=>n},xn=(e,t,n)=>{for(const r in t)(n||"_"!==r)&&(e[r]=t[r])},wn=(e,t,n)=>{const r=e.slots=ln();if(32&e.vnode.shapeFlag){const e=t._;e?(xn(r,t,n),n&&(0,o.yQ)(r,"_",e,!0)):yn(t,r)}else t&&bn(e,t)},kn=(e,t,n)=>{const{vnode:r,slots:i}=e;let a=!0,s=o.MZ;if(32&r.shapeFlag){const e=t._;e?n&&1===e?a=!1:xn(i,t,n):(a=!t.$stable,yn(t,i)),s=t}else t&&(bn(e,t),s={default:1});if(a)for(const e in i)mn(e)||null!=s[e]||delete i[e]};const _n=ir;function En(e){return Nn(e)}function Cn(e){return Nn(e,Ee)}function Nn(e,t){"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&((0,o.We)().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1);(0,o.We)().__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:s,createText:l,createComment:c,setText:u,setElementText:d,parentNode:p,nextSibling:h,setScopeId:f=o.tE,insertStaticContent:m}=e,g=(e,t,n,r=null,o=null,i=null,a=void 0,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!kr(e,t)&&(r=G(e),z(e,o,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case lr:v(e,t,n,r);break;case cr:y(e,t,n,r);break;case ur:null==e&&b(t,n,r,a);break;case sr:M(e,t,n,r,o,i,a,s,l);break;default:1&d?w(e,t,n,r,o,i,a,s,l):6&d?T(e,t,n,r,o,i,a,s,l):(64&d||128&d)&&c.process(e,t,n,r,o,i,a,s,l,X)}null!=u&&o&&be(u,e&&e.ref,i,t||e,!t)},v=(e,t,r,o)=>{if(null==e)n(t.el=l(t.children),r,o);else{const n=t.el=e.el;t.children!==e.children&&u(n,t.children)}},y=(e,t,r,o)=>{null==e?n(t.el=c(t.children||""),r,o):t.el=e.el},b=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},x=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),i(e),e=n;i(t)},w=(e,t,n,r,o,i,a,s,l)=>{"svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e?k(t,n,r,o,i,a,s,l):N(e,t,o,i,a,s,l)},k=(e,t,r,i,l,c,u,p)=>{let h,f;const{props:m,shapeFlag:g,transition:v,dirs:y}=e;if(h=e.el=s(e.type,c,m&&m.is,m),8&g?d(h,e.children):16&g&&C(e.children,h,null,i,l,Sn(e,c),u,p),y&&F(e,null,i,"created"),_(h,e,e.scopeId,u,i),m){for(const e in m)"value"===e||(0,o.SU)(e)||a(h,e,null,m[e],c,i);"value"in m&&a(h,"value",null,m.value,c),(f=m.onVnodeBeforeMount)&&jr(f,i,e)}y&&F(e,null,i,"beforeMount");const b=An(l,v);b&&v.beforeEnter(h),n(h,t,r),((f=m&&m.onVnodeMounted)||b||y)&&_n((()=>{f&&jr(f,i,e),b&&v.enter(h),y&&F(e,null,i,"mounted")}),l)},_=(e,t,n,r,o)=>{if(n&&f(e,n),r)for(let t=0;t<r.length;t++)f(e,r[t]);if(o){let n=o.subTree;if(t===n||Qn(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=o.vnode;_(e,t,t.scopeId,t.slotScopeIds,o.parent)}}},C=(e,t,n,r,o,i,a,s,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=s?Pr(e[c]):Or(e[c]);g(null,l,t,n,r,o,i,a,s)}},N=(e,t,n,r,i,s,l)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:h}=t;u|=16&e.patchFlag;const f=e.props||o.MZ,m=t.props||o.MZ;let g;if(n&&Vn(n,!1),(g=m.onVnodeBeforeUpdate)&&jr(g,n,t,e),h&&F(t,e,n,"beforeUpdate"),n&&Vn(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&d(c,""),p?A(e.dynamicChildren,p,c,n,r,Sn(t,i),s):l||I(e,t,c,null,n,r,Sn(t,i),s,!1),u>0){if(16&u)D(c,f,m,n,i);else if(2&u&&f.class!==m.class&&a(c,"class",null,m.class,i),4&u&&a(c,"style",f.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const r=e[t],o=f[r],s=m[r];s===o&&"value"!==r||a(c,r,o,s,i,n)}}1&u&&e.children!==t.children&&d(c,t.children)}else l||null!=p||D(c,f,m,n,i);((g=m.onVnodeUpdated)||h)&&_n((()=>{g&&jr(g,n,t,e),h&&F(t,e,n,"updated")}),r)},A=(e,t,n,r,o,i,a)=>{for(let s=0;s<t.length;s++){const l=e[s],c=t[s],u=l.el&&(l.type===sr||!kr(l,c)||70&l.shapeFlag)?p(l.el):n;g(l,c,u,null,r,o,i,a,!0)}},D=(e,t,n,r,i)=>{if(t!==n){if(t!==o.MZ)for(const s in t)(0,o.SU)(s)||s in n||a(e,s,t[s],null,i,r);for(const s in n){if((0,o.SU)(s))continue;const l=n[s],c=t[s];l!==c&&"value"!==s&&a(e,s,c,l,i,r)}"value"in n&&a(e,"value",t.value,n.value,i)}},M=(e,t,r,o,i,a,s,c,u)=>{const d=t.el=e?e.el:l(""),p=t.anchor=e?e.anchor:l("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(d,r,o),n(p,r,o),C(t.children||[],r,p,i,a,s,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(A(e.dynamicChildren,f,r,i,a,s,c),(null!=t.key||i&&t===i.subTree)&&Dn(e,t,!0)):I(e,t,r,p,i,a,s,c,u)},T=(e,t,n,r,o,i,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,a,l):B(t,n,r,o,i,a,l):O(e,t,l)},B=(e,t,n,r,o,i,a)=>{const s=e.component=zr(e,r,o);if(ze(e)&&(s.ctx.renderer=X),Zr(s,!1,a),s.asyncDep){if(o&&o.registerDep(s,P,a),!e.el){const e=s.subTree=Sr(cr);y(null,e,t,n)}}else P(s,e,t,n,o,i,a)},O=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:s,patchFlag:l}=t,c=i.emitsOptions;0;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!o&&!s||s&&s.$stable)||r!==a&&(r?!a||Xn(r,a,c):!!a);if(1024&l)return!0;if(16&l)return r?Xn(r,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==r[n]&&!qn(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void L(r,t,n);r.next=t,r.update()}else t.el=e.el,r.vnode=t},P=(e,t,n,i,a,s,l)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:i,vnode:u}=e;{const n=Mn(e);if(n)return t&&(t.el=u.el,L(e,t,l)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let d,h=t;0,Vn(e,!1),t?(t.el=u.el,L(e,t,l)):t=u,n&&(0,o.DY)(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&jr(d,i,t,u),Vn(e,!0);const f=Yn(e);0;const m=e.subTree;e.subTree=f,g(m,f,p(m.el),G(m),e,a,s),t.el=f.el,null===h&&Zn(e,f.el),r&&_n(r,a),(d=t.props&&t.props.onVnodeUpdated)&&_n((()=>jr(d,i,t,u)),a)}else{let r;const{el:l,props:c}=t,{bm:u,m:d,parent:p,root:h,type:f}=e,m=je(t);if(Vn(e,!1),u&&(0,o.DY)(u),!m&&(r=c&&c.onVnodeBeforeMount)&&jr(r,p,t),Vn(e,!0),l&&Q){const t=()=>{e.subTree=Yn(e),Q(l,e.subTree,e,a,null)};m&&f.__asyncHydrate?f.__asyncHydrate(l,e,t):t()}else{h.ce&&h.ce._injectChildStyle(f);const r=e.subTree=Yn(e);0,g(null,r,n,i,e,a,s),t.el=r.el}if(d&&_n(d,a),!m&&(r=c&&c.onVnodeMounted)){const e=t;_n((()=>jr(r,p,e)),a)}(256&t.shapeFlag||p&&je(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&_n(e.a,a),e.isMounted=!0,t=n=i=null}};e.scope.on();const u=e.effect=new r.X2(c);e.scope.off();const d=e.update=u.run.bind(u),h=e.job=u.runIfDirty.bind(u);h.i=e,h.id=e.uid,u.scheduler=()=>E(h),Vn(e,!0),d()},L=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:a,attrs:s,vnode:{patchFlag:l}}=e,c=(0,r.ux)(a),[u]=e.propsOptions;let d=!1;if(!(i||l>0)||16&l){let r;un(e,t,a,s)&&(d=!0);for(const i in c)t&&((0,o.$3)(t,i)||(r=(0,o.Tg)(i))!==i&&(0,o.$3)(t,r))||(u?!n||void 0===n[i]&&void 0===n[r]||(a[i]=dn(u,c,i,void 0,e,!0)):delete a[i]);if(s!==c)for(const e in s)t&&(0,o.$3)(t,e)||(delete s[e],d=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let i=n[r];if(qn(e.emitsOptions,i))continue;const l=t[i];if(u)if((0,o.$3)(s,i))l!==s[i]&&(s[i]=l,d=!0);else{const t=(0,o.PT)(i);a[t]=dn(u,c,t,l,e,!1)}else l!==s[i]&&(s[i]=l,d=!0)}}d&&(0,r.hZ)(e.attrs,"set","")}(e,t.props,i,n),kn(e,t.children,n),(0,r.C4)(),S(e),(0,r.bl)()},I=(e,t,n,r,o,i,a,s,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void R(c,p,n,r,o,i,a,s,l);if(256&h)return void j(c,p,n,r,o,i,a,s,l)}8&f?(16&u&&Y(c,o,i),p!==c&&d(n,p)):16&u?16&f?R(c,p,n,r,o,i,a,s,l):Y(c,o,i,!0):(8&u&&d(n,""),16&f&&C(p,n,r,o,i,a,s,l))},j=(e,t,n,r,i,a,s,l,c)=>{e=e||o.Oj,t=t||o.Oj;const u=e.length,d=t.length,p=Math.min(u,d);let h;for(h=0;h<p;h++){const r=t[h]=c?Pr(t[h]):Or(t[h]);g(e[h],r,n,null,i,a,s,l,c)}u>d?Y(e,i,a,!0,!1,p):C(t,n,r,i,a,s,l,c,p)},R=(e,t,n,r,i,a,s,l,c)=>{let u=0;const d=t.length;let p=e.length-1,h=d-1;for(;u<=p&&u<=h;){const r=e[u],o=t[u]=c?Pr(t[u]):Or(t[u]);if(!kr(r,o))break;g(r,o,n,null,i,a,s,l,c),u++}for(;u<=p&&u<=h;){const r=e[p],o=t[h]=c?Pr(t[h]):Or(t[h]);if(!kr(r,o))break;g(r,o,n,null,i,a,s,l,c),p--,h--}if(u>p){if(u<=h){const e=h+1,o=e<d?t[e].el:r;for(;u<=h;)g(null,t[u]=c?Pr(t[u]):Or(t[u]),n,o,i,a,s,l,c),u++}}else if(u>h)for(;u<=p;)z(e[u],i,a,!0),u++;else{const f=u,m=u,v=new Map;for(u=m;u<=h;u++){const e=t[u]=c?Pr(t[u]):Or(t[u]);null!=e.key&&v.set(e.key,u)}let y,b=0;const x=h-m+1;let w=!1,k=0;const _=new Array(x);for(u=0;u<x;u++)_[u]=0;for(u=f;u<=p;u++){const r=e[u];if(b>=x){z(r,i,a,!0);continue}let o;if(null!=r.key)o=v.get(r.key);else for(y=m;y<=h;y++)if(0===_[y-m]&&kr(r,t[y])){o=y;break}void 0===o?z(r,i,a,!0):(_[o-m]=u+1,o>=k?k=o:w=!0,g(r,t[o],n,null,i,a,s,l,c),b++)}const E=w?function(e){const t=e.slice(),n=[0];let r,o,i,a,s;const l=e.length;for(r=0;r<l;r++){const l=e[r];if(0!==l){if(o=n[n.length-1],e[o]<l){t[r]=o,n.push(r);continue}for(i=0,a=n.length-1;i<a;)s=i+a>>1,e[n[s]]<l?i=s+1:a=s;l<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,a=n[i-1];for(;i-- >0;)n[i]=a,a=t[a];return n}(_):o.Oj;for(y=E.length-1,u=x-1;u>=0;u--){const e=m+u,o=t[e],p=e+1<d?t[e+1].el:r;0===_[u]?g(null,o,n,p,i,a,s,l,c):w&&(y<0||u!==E[y]?$(o,n,p,2):y--)}}},$=(e,t,r,o,i=null)=>{const{el:a,type:s,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void $(e.component.subTree,t,r,o);if(128&u)return void e.suspense.move(t,r,o);if(64&u)return void s.move(e,t,r,X);if(s===sr){n(a,t,r);for(let e=0;e<c.length;e++)$(c[e],t,r,o);return void n(e.anchor,t,r)}if(s===ur)return void(({el:e,anchor:t},r,o)=>{let i;for(;e&&e!==t;)i=h(e),n(e,r,o),e=i;n(t,r,o)})(e,t,r);if(2!==o&&1&u&&l)if(0===o)l.beforeEnter(a),n(a,t,r),_n((()=>l.enter(a)),i);else{const{leave:e,delayLeave:o,afterLeave:i}=l,s=()=>n(a,t,r),c=()=>{e(a,(()=>{s(),i&&i()}))};o?o(a,s,c):c()}else n(a,t,r)},z=(e,t,n,r=!1,o=!1)=>{const{type:i,props:a,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:h}=e;if(-2===d&&(o=!1),null!=s&&be(s,null,n,e,!0),null!=h&&(t.renderCache[h]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&p,m=!je(e);let g;if(m&&(g=a&&a.onVnodeBeforeUnmount)&&jr(g,t,e),6&u)q(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);f&&F(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,X,r):c&&!c.hasOnce&&(i!==sr||d>0&&64&d)?Y(c,t,n,!1,!0):(i===sr&&384&d||!o&&16&u)&&Y(l,t,n),r&&U(e)}(m&&(g=a&&a.onVnodeUnmounted)||f)&&_n((()=>{g&&jr(g,t,e),f&&F(e,null,t,"unmounted")}),n)},U=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===sr)return void W(n,r);if(t===ur)return void x(e);const a=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,a);r?r(e.el,a,i):i()}else a()},W=(e,t)=>{let n;for(;e!==t;)n=h(e),i(e),e=n;i(t)},q=(e,t,n)=>{const{bum:r,scope:i,job:a,subTree:s,um:l,m:c,a:u}=e;Tn(c),Tn(u),r&&(0,o.DY)(r),i.stop(),a&&(a.flags|=8,z(s,e,t,n)),l&&_n(l,t),_n((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Y=(e,t,n,r=!1,o=!1,i=0)=>{for(let a=i;a<e.length;a++)z(e[a],t,n,r,o)},G=e=>{if(6&e.shapeFlag)return G(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=h(e.anchor||e.el),n=t&&t[H];return n?h(n):t};let K=!1;const J=(e,t,n)=>{null==e?t._vnode&&z(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),t._vnode=e,K||(K=!0,S(),V(),K=!1)},X={p:g,um:z,m:$,r:U,mt:B,mc:C,pc:I,pbc:A,n:G,o:e};let Z,Q;return t&&([Z,Q]=t(X)),{render:J,hydrate:Z,createApp:tn(J,Z)}}function Sn({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Vn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function An(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Dn(e,t,n=!1){const r=e.children,i=t.children;if((0,o.cy)(r)&&(0,o.cy)(i))for(let e=0;e<r.length;e++){const t=r[e];let o=i[e];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&(o=i[e]=Pr(i[e]),o.el=t.el),n||-2===o.patchFlag||Dn(t,o)),o.type===lr&&(o.el=t.el)}}function Mn(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Mn(t)}function Tn(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Bn=Symbol.for("v-scx"),On=()=>{{const e=on(Bn);return e}};function Pn(e,t){return Rn(e,null,t)}function Ln(e,t){return Rn(e,null,{flush:"post"})}function In(e,t){return Rn(e,null,{flush:"sync"})}function jn(e,t,n){return Rn(e,t,n)}function Rn(e,t,n=o.MZ){const{immediate:i,deep:a,flush:s,once:l}=n;const c=(0,o.X$)({},n);const u=t&&i||!t&&"post"!==s;let d;if(Xr)if("sync"===s){const e=On();d=e.__watcherHandles||(e.__watcherHandles=[])}else if(!u){const e=()=>{};return e.stop=o.tE,e.resume=o.tE,e.pause=o.tE,e}const p=Fr;c.call=(e,t,n)=>f(e,p,t,n);let h=!1;"post"===s?c.scheduler=e=>{_n(e,p&&p.suspense)}
2:"sync"!==s&&(h=!0,c.scheduler=(e,t)=>{t?e():E(e)}),c.augmentJob=e=>{t&&(e.flags|=4),h&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};const m=(0,r.wB)(e,t,c);return Xr&&(d?d.push(m):u&&m()),m}function $n(e,t,n){const r=this.proxy,i=(0,o.Kg)(e)?e.includes(".")?zn(r,e):()=>r[e]:e.bind(r,r);let a;(0,o.Tn)(t)?a=t:(a=t.handler,n=t);const s=qr(this),l=Rn(i,a.bind(r),n);return s(),l}function zn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Fn(e,t,n=o.MZ){const i=Hr();const a=(0,o.PT)(t);const s=(0,o.Tg)(t),l=Hn(e,a),c=(0,r.rY)(((r,l)=>{let c,u,d=o.MZ;return In((()=>{const t=e[a];(0,o.$H)(c,t)&&(c=t,l())})),{get:()=>(r(),n.get?n.get(c):c),set(e){const r=n.set?n.set(e):e;if(!((0,o.$H)(r,c)||d!==o.MZ&&(0,o.$H)(e,d)))return;const p=i.vnode.props;p&&(t in p||a in p||s in p)&&(`onUpdate:${t}`in p||`onUpdate:${a}`in p||`onUpdate:${s}`in p)||(c=e,l()),i.emit(`update:${t}`,r),(0,o.$H)(e,r)&&(0,o.$H)(e,d)&&!(0,o.$H)(r,u)&&l(),d=e,u=r}}}));return c[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?l||o.MZ:c,done:!1}:{done:!0}}},c}const Hn=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${(0,o.PT)(t)}Modifiers`]||e[`${(0,o.Tg)(t)}Modifiers`];function Un(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o.MZ;let i=n;const a=t.startsWith("update:"),s=a&&Hn(r,t.slice(7));let l;s&&(s.trim&&(i=n.map((e=>(0,o.Kg)(e)?e.trim():e))),s.number&&(i=n.map(o.bB)));let c=r[l=(0,o.rU)(t)]||r[l=(0,o.rU)((0,o.PT)(t))];!c&&a&&(c=r[l=(0,o.rU)((0,o.Tg)(t))]),c&&f(c,e,6,i);const u=r[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,f(u,e,6,i)}}function Wn(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const a=e.emits;let s={},l=!1;if(!(0,o.Tn)(e)){const r=e=>{const n=Wn(e,t,!0);n&&(l=!0,(0,o.X$)(s,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return a||l?((0,o.cy)(a)?a.forEach((e=>s[e]=null)):(0,o.X$)(s,a),(0,o.Gv)(e)&&r.set(e,s),s):((0,o.Gv)(e)&&r.set(e,null),null)}function qn(e,t){return!(!e||!(0,o.Mp)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,o.$3)(e,t[0].toLowerCase()+t.slice(1))||(0,o.$3)(e,(0,o.Tg)(t))||(0,o.$3)(e,t))}function Yn(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:l,emit:c,render:u,renderCache:d,props:p,data:h,setupState:f,ctx:g,inheritAttrs:v}=e,y=L(e);let b,x;try{if(4&n.shapeFlag){const e=i||r,t=e;b=Or(u.call(t,e,d,p,f,h,g)),x=l}else{const e=t;0,b=Or(e.length>1?e(p,{attrs:l,slots:s,emit:c}):e(p,null)),x=t.props?l:Kn(l)}}catch(t){dr.length=0,m(t,e,1),b=Sr(cr)}let w=b;if(x&&!1!==v){const e=Object.keys(x),{shapeFlag:t}=w;e.length&&7&t&&(a&&e.some(o.CP)&&(x=Jn(x,a)),w=Dr(w,x,!1,!0))}return n.dirs&&(w=Dr(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&he(w,n.transition),b=w,L(y),b}function Gn(e,t=!0){let n;for(let t=0;t<e.length;t++){const r=e[t];if(!wr(r))return;if(r.type!==cr||"v-if"===r.children){if(n)return;n=r}}return n}const Kn=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,o.Mp)(n))&&((t||(t={}))[n]=e[n]);return t},Jn=(e,t)=>{const n={};for(const r in e)(0,o.CP)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Xn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!qn(n,i))return!0}return!1}function Zn({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r!==e)break;(e=t.vnode).el=n,t=t.parent}}const Qn=e=>e.__isSuspense;let er=0;const tr={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,a,s,l,c){if(null==e)!function(e,t,n,r,o,i,a,s,l){const{p:c,o:{createElement:u}}=l,d=u("div"),p=e.suspense=rr(e,o,r,t,d,n,i,a,s,l);c(null,p.pendingBranch=e.ssContent,d,null,r,p,i,a),p.deps>0?(nr(e,"onPending"),nr(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,i,a),ar(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,r,o,i,a,s,l,c);else{if(i&&i.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,r,o,i,a,s,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:v}=d;
2if(m)d.pendingBranch=p,kr(p,m)?(l(m,p,d.hiddenContainer,null,o,d,i,a,s),d.deps<=0?d.resolve():g&&(v||(l(f,h,n,r,o,null,i,a,s),ar(d,h)))):(d.pendingId=er++,v?(d.isHydrating=!1,d.activeBranch=m):c(m,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(l(null,p,d.hiddenContainer,null,o,d,i,a,s),d.deps<=0?d.resolve():(l(f,h,n,r,o,null,i,a,s),ar(d,h))):f&&kr(p,f)?(l(f,p,n,r,o,d,i,a,s),d.resolve(!0)):(l(null,p,d.hiddenContainer,null,o,d,i,a,s),d.deps<=0&&d.resolve()));else if(f&&kr(p,f))l(f,p,n,r,o,d,i,a,s),ar(d,p);else if(nr(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=er++,l(null,p,d.hiddenContainer,null,o,d,i,a,s),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(h)}),e):0===e&&d.fallback(h)}}(e,t,n,r,o,a,s,l,c)}},hydrate:function(e,t,n,r,o,i,a,s,l){const c=t.suspense=rr(t,r,n,e.parentNode,document.createElement("div"),null,o,i,a,s,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,i,a);0===c.deps&&c.resolve(!1,!0);return u},normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=or(r?n.default:n),e.ssFallback=r?or(n.fallback):Sr(cr)}};function nr(e,t){const n=e.props&&e.props[t];(0,o.Tn)(n)&&n()}function rr(e,t,n,r,i,a,s,l,c,u,d=!1){const{p,m:h,um:f,n:g,o:{parentNode:v,remove:y}}=u;let b;const x=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);x&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const w=e.props?(0,o.Ro)(e.props.timeout):void 0;const k=a,_={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:er++,timeout:"number"==typeof w?w:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:o,pendingBranch:i,pendingId:s,effects:l,parentComponent:c,container:u}=_;let d=!1;_.isHydrating?_.isHydrating=!1:e||(d=o&&i.transition&&"out-in"===i.transition.mode,d&&(o.transition.afterLeave=()=>{s===_.pendingId&&(h(i,u,a===k?g(o):a,0),N(l))}),o&&(v(o.el)===u&&(a=g(o)),f(o,c,_,!0)),d||h(i,u,a,0)),ar(_,i),_.pendingBranch=null,_.isInFallback=!1;let p=_.parent,m=!1;for(;p;){if(p.pendingBranch){p.effects.push(...l),m=!0;break}p=p.parent}m||d||N(l),_.effects=[],x&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),nr(r,"onResolve")},fallback(e){if(!_.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,namespace:i}=_;nr(t,"onFallback");const a=g(n),s=()=>{_.isInFallback&&(p(null,e,o,a,r,null,i,l,c),ar(_,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=s),_.isInFallback=!0,f(n,r,null,!0),u||s()},move(e,t,n){_.activeBranch&&h(_.activeBranch,e,t,n),_.container=e},next:()=>_.activeBranch&&g(_.activeBranch),registerDep(e,t,n){const r=!!_.pendingBranch;r&&_.deps++;const o=e.vnode.el;e.asyncDep.catch((t=>{m(t,e,0)})).then((i=>{if(e.isUnmounted||_.isUnmounted||_.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:a}=e;Qr(e,i,!1),o&&(a.el=o);const l=!o&&e.subTree.el;t(e,a,v(o||e.subTree.el),o?null:g(e.subTree),_,s,n),l&&y(l),Zn(e,a.el),r&&0==--_.deps&&_.resolve()}))},unmount(e,t){_.isUnmounted=!0,_.activeBranch&&f(_.activeBranch,n,e,t),_.pendingBranch&&f(_.pendingBranch,n,e,t)}};return _}function or(e){let t;if((0,o.Tn)(e)){const n=gr&&e._c;n&&(e._d=!1,hr()),e=e(),n&&(e._d=!0,t=pr,fr())}if((0,o.cy)(e)){const t=Gn(e);0,e=t}return e=Or(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function ir(e,t){t&&t.pendingBranch?(0,o.cy)(e)?t.effects.push(...e):t.effects.push(e):N(e)}function ar(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)o=(t=t.component.subTree).el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,Zn(r,o))}const sr=Symbol.for("v-fgt"),lr=Symbol.for("v-txt"),cr=Symbol.for("v-cmt"),ur=Symbol.for("v-stc"),dr=[];let pr=null;function hr(e=!1){dr.push(pr=e?null:[])}function fr(){dr.pop(),pr=dr[dr.length-1]||null}let mr,gr=1;function vr(e,t=!1){gr+=e,e<0&&pr&&t&&(pr.hasOnce=!0)}function yr(e){return e.dynamicChildren=gr>0?pr||o.Oj:null,fr(),gr>0&&pr&&pr.push(e),e}function br(e,t,n,r,o,i){return yr(Nr(e,t,n,r,o,i,!0))}function xr(e,t,n,r,o){return yr(Sr(e,t,n,r,o,!0))}function wr(e){return!!e&&!0===e.__v_isVNode}function kr(e,t){return e.type===t.type&&e.key===t.key}function _r(e){mr=e}const Er=({key:e})=>null!=e?e:null,Cr=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?(0,o.Kg)(e)||(0,r.i9)(e)||(0,o.Tn)(e)?{i:O,r:e,k:t,f:!!n}:e:null);function Nr(e,t=null,n=null,r=0,i=null,a=(e===sr?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,t
2ype:e,props:t,key:t&&Er(t),ref:t&&Cr(t),scopeId:P,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:O};return l?(Lr(c,n),128&a&&e.normalize(c)):n&&(c.shapeFlag|=(0,o.Kg)(n)?8:16),gr>0&&!s&&pr&&(c.patchFlag>0||6&a)&&32!==c.patchFlag&&pr.push(c),c}const Sr=Vr;function Vr(e,t=null,n=null,i=0,a=null,s=!1){if(e&&e!==dt||(e=cr),wr(e)){const r=Dr(e,t,!0);return n&&Lr(r,n),gr>0&&!s&&pr&&(6&r.shapeFlag?pr[pr.indexOf(e)]=r:pr.push(r)),r.patchFlag=-2,r}if(uo(e)&&(e=e.__vccOpts),t){t=Ar(t);let{class:e,style:n}=t;e&&!(0,o.Kg)(e)&&(t.class=(0,o.C4)(e)),(0,o.Gv)(n)&&((0,r.ju)(n)&&!(0,o.cy)(n)&&(n=(0,o.X$)({},n)),t.style=(0,o.Tr)(n))}return Nr(e,t,n,i,a,(0,o.Kg)(e)?1:Qn(e)?128:U(e)?64:(0,o.Gv)(e)?4:(0,o.Tn)(e)?2:0,s,!0)}function Ar(e){return e?(0,r.ju)(e)||cn(e)?(0,o.X$)({},e):e:null}function Dr(e,t,n=!1,r=!1){const{props:i,ref:a,patchFlag:s,children:l,transition:c}=e,u=t?Ir(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Er(u),ref:t&&t.ref?n&&a?(0,o.cy)(a)?a.concat(Cr(t)):[a,Cr(t)]:Cr(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==sr?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Dr(e.ssContent),ssFallback:e.ssFallback&&Dr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&he(d,c.clone(d)),d}function Mr(e=" ",t=0){return Sr(lr,null,e,t)}function Tr(e,t){const n=Sr(ur,null,e);return n.staticCount=t,n}function Br(e="",t=!1){return t?(hr(),xr(cr,null,e)):Sr(cr,null,e)}function Or(e){return null==e||"boolean"==typeof e?Sr(cr):(0,o.cy)(e)?Sr(sr,null,e.slice()):wr(e)?Pr(e):Sr(lr,null,String(e))}function Pr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Dr(e)}function Lr(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if((0,o.cy)(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Lr(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||cn(t)?3===r&&O&&(1===O.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=O}}else(0,o.Tn)(t)?(t={default:t,_ctx:O},n=32):(t=String(t),64&r?(n=16,t=[Mr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ir(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=(0,o.C4)([t.class,r.class]));else if("style"===e)t.style=(0,o.Tr)([t.style,r.style]);else if((0,o.Mp)(e)){const n=t[e],i=r[e];!i||n===i||(0,o.cy)(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=r[e])}return t}function jr(e,t,n,r=null){f(e,t,7,[n,r])}const Rr=Qt();let $r=0;function zr(e,t,n){const i=e.type,a=(t?t.appContext:e.appContext)||Rr,s={uid:$r++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new r.yC(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:hn(i,a),emitsOptions:Wn(i,a),emit:null,emitted:null,propsDefaults:o.MZ,inheritAttrs:i.inheritAttrs,ctx:o.MZ,data:o.MZ,props:o.MZ,attrs:o.MZ,slots:o.MZ,refs:o.MZ,setupState:o.MZ,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=Un.bind(null,s),e.ce&&e.ce(s),s}let Fr=null;const Hr=()=>Fr||O;let Ur,Wr;{const e=(0,o.We)(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach((t=>t(e))):r[0](e)}};Ur=t("__VUE_INSTANCE_SETTERS__",(e=>Fr=e)),Wr=t("__VUE_SSR_SETTERS__",(e=>Xr=e))}const qr=e=>{const t=Fr;return Ur(e),e.scope.on(),()=>{e.scope.off(),Ur(t)}},Yr=()=>{Fr&&Fr.scope.off(),Ur(null)};function Gr(e){return 4&e.vnode.shapeFlag}let Kr,Jr,Xr=!1;function Zr(e,t=!1,n=!1){t&&Wr(t);const{props:i,children:a}=e.vnode,s=Gr(e);!function(e,t,n,o=!1){const i={},a=ln();e.propsDefaults=Object.create(null),un(e,t,i,a);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=o?i:(0,r.Gc)(i):e.type.props?e.props=i:e.props=a,e.attrs=a}(e,i,s,t),wn(e,a,n);const l=s?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Et),!1;const{setup:i}=n;if(i){(0,r.C4)();const n=e.setupContext=i.length>1?oo(e):null,a=qr(e),s=h(i,e,0,[e.props,n]),l=(0,o.yL)(s);if((0,r.bl)(),a(),!l&&!e.sp||je(e)||ve(e),l){if(s.then(Yr,Yr),t)return s.then((n=>{Qr(e,n,t)})).catch((t=>{m(t,e,0)}));e.asyncDep=s}else Qr(e,s,t)}else no(e,t)}(e,t):void 0;return t&&Wr(!1),l}
2function Qr(e,t,n){(0,o.Tn)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,o.Gv)(t)&&(e.setupState=(0,r.Pr)(t)),no(e,n)}function eo(e){Kr=e,Jr=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Ct))}}const to=()=>!Kr;function no(e,t,n){const i=e.type;if(!e.render){if(!t&&Kr&&!i.render){const t=i.template||Wt(e).template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:s}=i,l=(0,o.X$)((0,o.X$)({isCustomElement:n,delimiters:a},r),s);i.render=Kr(t,l)}}e.render=i.render||o.tE,Jr&&Jr(e)}{const t=qr(e);(0,r.C4)();try{Ft(e)}finally{(0,r.bl)(),t()}}}const ro={get:(e,t)=>((0,r.u4)(e,"get",""),e[t])};function oo(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,ro),slots:e.slots,emit:e.emit,expose:t}}function io(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy((0,r.Pr)((0,r.IG)(e.exposed)),{get:(t,n)=>n in t?t[n]:n in kt?kt[n](e):void 0,has:(e,t)=>t in e||t in kt})):e.proxy}const ao=/(?:^|[-_])(\w)/g,so=e=>e.replace(ao,(e=>e.toUpperCase())).replace(/[-_]/g,"");function lo(e,t=!0){return(0,o.Tn)(e)?e.displayName||e.name:e.name||t&&e.__name}function co(e,t,n=!1){let r=lo(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?so(r):n?"App":"Anonymous"}function uo(e){return(0,o.Tn)(e)&&"__vccOpts"in e}const po=(e,t)=>(0,r.EW)(e,t,Xr);function ho(e,t,n){const r=arguments.length;return 2===r?(0,o.Gv)(t)&&!(0,o.cy)(t)?wr(t)?Sr(e,null,[t]):Sr(e,t):Sr(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&wr(n)&&(n=[n]),Sr(e,t,n))}function fo(){return void 0}function mo(e,t,n,r){const o=n[r];if(o&&go(o,e))return o;const i=t();return i.memo=e.slice(),i.cacheIndex=r,n[r]=i}function go(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if((0,o.$H)(n[e],t[e]))return!1;return gr>0&&pr&&pr.push(e),!0}const vo="3.5.13",yo=o.tE,bo=p,xo=M,wo=function e(t,n){var r,o;if(M=t,M)M.enabled=!0,T.forEach((({event:e,args:t})=>M.emit(e,...t))),T=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(o=null==(r=window.navigator)?void 0:r.userAgent)?void 0:o.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{M||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,B=!0,T=[])}),3e3)}else B=!0,T=[]},ko={createComponentInstance:zr,setupComponent:Zr,renderComponentRoot:Yn,setCurrentRenderingInstance:L,isVNode:wr,normalizeVNode:Or,getComponentPublicInstance:io,ensureValidVNode:bt,pushWarningContext:function(e){i.push(e)},popWarningContext:function(){i.pop()}},_o=null,Eo=null,Co=null},655:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},706:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>q});var r=n(6301),o={key:0},i={class:"col-span-6 sm:col-span-4"},a={key:0,class:"col-span-6 lg:col-span-4"},s={class:"relative z-0 mt-1 border border-gray-200 rounded-lg cursor-pointer"},l=["onClick"],c={class:"flex items-center"},u={key:0,class:"ml-2 h-5 w-5 text-green-400",fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24"},d={class:"mt-2 text-xs text-gray-600 text-left"},p={key:1},h={class:"space-y-6"},f={class:"text-gray-600"},m={class:"flex items-center"},g=["onClick"],v={key:2},y={class:"space-y-6"},b={class:"flex items-center"},x=["src","alt"],w={class:"ml-4"},k={class:"flex items-center"},_=["onClick"],E={key:1,class:"ml-2 text-sm text-gray-400"},C=["onClick"],N={key:0},S={class:"relative z-0 mt-1 border border-gray-200 rounded-lg cursor-pointer"},V=["onClick"],A={class:"flex items-center"},D={key:0,class:"ml-2 h-5 w-5 text-green-400",fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24"},M={class:"mt-2 text-xs text-gray-600"};var T=n(641),B=n(3257),O=n(7827),P=n(1816),L=n(332),I=n(4736),j=n(756),R=n(1154),$=n(4296),z=n(6786),F=n(5393),H=n(4312),U=n(5560);const W=(0,T.pM)({components:{JetActionMessage:B.A,JetActionSection:O.A,JetButton:P.A,JetConfirmationModal:L.A,JetDangerButton:I.A,JetDialogModal:j.A,JetFormSection:R.A,JetInput:$.A,JetInputError:z.A,JetLabel:F.A,JetSecondaryButton:H.A,JetSectionBorder:U.A},props:["team","availableRoles","userPermissions"],data:function(){return{addTeamMemberForm:this.$inertia.form({email:"",role:null}),updateRoleForm:this.$inertia.form({role:null}),leaveTeamForm:this.$inertia.form(),removeTeamMemberForm:this.$inertia.form(),currentlyManagingRole:!1,managingRoleFor:null,confirmingLeavingTeam:!1,teamMemberBeingRemoved:null}},methods:{addTeamMember:function(){var e=this;this.addTeamMemberForm.post(route("team-members.store",this.team),{errorBag:"addTeamMember",preserveScroll:!0,onSuccess:function(){return e.addTeamMemberForm.reset()}})},cancelTeamInvitation:function(e){this.$inertia.delete(route("team-invitations.destroy",e),{preserveScroll:!0})},manageRole:function(e){this.managingRoleFor=e,this.updateRoleForm.role=e.membership.role,this.currentlyManagingRole=!0},updateRole:function(){var e=this;this.updateRoleForm.put(route("team-members.update",[this.team,this.managingRoleFor]),{preserveScroll:!0,onSuccess:function(){return e.currentlyManagingRole=!1}})},confirmLeavingTeam:function(){this.confirmingLeavingTeam=!0},leaveTeam:function(){this.leaveTeamForm.delete(route("team-members.destroy",[this.team,this.$page.props.user]))},confirmTeamMemberRemoval:function(e){this.teamMemberBeingRemoved=e},removeTeamMember:function(){var e=this;this.removeTeamMemberForm.delete(route("team-members.destroy",[this.team,this.teamMemberBeingRemoved]),{errorBag:"removeTeamMember",preserveScroll:!0,preserveState:!0,onSuccess:function(){return e.teamMemberBeingRemoved=null}})},displayableRole:function(e){return this.availableRoles.find((function(t){return t.key===e})).name}}});const q=(0,n(6262).A)(W,[["render",function(e,t,n,T,B,O){var P=(0,r.resolve
2Component)("jet-section-border"),L=(0,r.resolveComponent)("jet-label"),I=(0,r.resolveComponent)("jet-input"),j=(0,r.resolveComponent)("jet-input-error"),R=(0,r.resolveComponent)("jet-action-message"),$=(0,r.resolveComponent)("jet-button"),z=(0,r.resolveComponent)("jet-form-section"),F=(0,r.resolveComponent)("jet-action-section"),H=(0,r.resolveComponent)("jet-secondary-button"),U=(0,r.resolveComponent)("jet-dialog-modal"),W=(0,r.resolveComponent)("jet-danger-button"),q=(0,r.resolveComponent)("jet-confirmation-modal");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[e.userPermissions.canAddTeamMembers?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createVNode)(P),(0,r.createVNode)(z,{onSubmitted:e.addTeamMember},{title:(0,r.withCtx)((function(){return t[8]||(t[8]=[(0,r.createTextVNode)(" Add Team Member ")])})),description:(0,r.withCtx)((function(){return t[9]||(t[9]=[(0,r.createTextVNode)(" Add a new team member to your team, allowing them to collaborate with you. ")])})),form:(0,r.withCtx)((function(){return[t[11]||(t[11]=(0,r.createElementVNode)("div",{class:"col-span-6"},[(0,r.createElementVNode)("div",{class:"max-w-xl text-sm text-gray-600"}," Please provide the email address of the person you would like to add to this team. ")],-1)),(0,r.createElementVNode)("div",i,[(0,r.createVNode)(L,{for:"email",value:"Email"}),(0,r.createVNode)(I,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e.addTeamMemberForm.email,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.addTeamMemberForm.email=t})},null,8,["modelValue"]),(0,r.createVNode)(j,{message:e.addTeamMemberForm.errors.email,class:"mt-2"},null,8,["message"])]),e.availableRoles.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[(0,r.createVNode)(L,{for:"roles",value:"Role"}),(0,r.createVNode)(j,{message:e.addTeamMemberForm.errors.role,class:"mt-2"},null,8,["message"]),(0,r.createElementVNode)("div",s,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.availableRoles,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("button",{type:"button",class:(0,r.normalizeClass)(["relative px-4 py-3 inline-flex w-full rounded-lg focus:z-10 focus:outline-none focus:border-blue-300 focus:ring focus:ring-blue-200",{"border-t border-gray-200 rounded-t-none":o>0,"rounded-b-none":o!=Object.keys(e.availableRoles).length-1}]),onClick:function(t){return e.addTeamMemberForm.role=n.key},key:n.key},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)({"opacity-50":e.addTeamMemberForm.role&&e.addTeamMemberForm.role!=n.key})},[(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["text-sm text-gray-600",{"font-semibold":e.addTeamMemberForm.role==n.key}])},(0,r.toDisplayString)(n.name),3),e.addTeamMemberForm.role==n.key?((0,r.openBlock)(),(0,r.createElementBlock)("svg",u,t[10]||(t[10]=[(0,r.createElementVNode)("path",{d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)]))):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",d,(0,r.toDisplayString)(n.description),1)],2)],10,l)})),128))])])):(0,r.createCommentVNode)("",!0)]})),actions:(0,r.withCtx)((function(){return[(0,r.createVNode)(R,{on:e.addTeamMemberForm.recentlySuccessful,class:"mr-3"},{default:(0,r.withCtx)((function(){return t[12]||(t[12]=[(0,r.createTextVNode)(" Added. ")])})),_:1},8,["on"]),(0,r.createVNode)($,{class:(0,r.normalizeClass)({"opacity-25":e.addTeamMemberForm.processing}),disabled:e.addTeamMemberForm.processing},{default:(0,r.withCtx)((function(){return t[13]||(t[13]=[(0,r.createTextVNode)(" Add ")])})),_:1},8,["class","disabled"])]})),_:1},8,["onSubmitted"])])):(0,r.createCommentVNode)("",!0),e.team.team_invitations.length>0&&e.userPermissions.canAddTeamMembers?((0,r.openBlock)(),(0,r.createElementBlock)("div",p,[(0,r.createVNode)(P),(0,r.createVNode)(F,{class:"mt-10 sm:mt-0"},{title:(0,r.withCtx)((function(){return t[14]||(t[14]=[(0,r.createTextVNode)(" Pending Team Invitations ")])})),description:(0,r.withCtx)((function(){return t[15]||(t[15]=[(0,r.createTextVNode)(" These people have been invited to your team and have been sent an invitation email. They may join the team by accepting the email invitation. ")])})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",h,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.team.team_invitations,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"flex items-center justify-between",key:t.
2id},[(0,r.createElementVNode)("div",f,(0,r.toDisplayString)(t.email),1),(0,r.createElementVNode)("div",m,[e.userPermissions.canRemoveTeamMembers?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,class:"cursor-pointer ml-6 text-sm text-red-500 focus:outline-none",onClick:function(n){return e.cancelTeamInvitation(t)}}," Cancel ",8,g)):(0,r.createCommentVNode)("",!0)])])})),128))])]})),_:1})])):(0,r.createCommentVNode)("",!0),e.team.users.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",v,[(0,r.createVNode)(P),(0,r.createVNode)(F,{class:"mt-10 sm:mt-0"},{title:(0,r.withCtx)((function(){return t[16]||(t[16]=[(0,r.createTextVNode)(" Team Members ")])})),description:(0,r.withCtx)((function(){return t[17]||(t[17]=[(0,r.createTextVNode)(" All of the people that are part of this team. ")])})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",y,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.team.users,(function(n){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"flex items-center justify-between",key:n.id},[(0,r.createElementVNode)("div",b,[(0,r.createElementVNode)("img",{class:"w-8 h-8 rounded-full",src:n.profile_photo_url,alt:n.name},null,8,x),(0,r.createElementVNode)("div",w,(0,r.toDisplayString)(n.name),1)]),(0,r.createElementVNode)("div",k,[e.userPermissions.canAddTeamMembers&&e.availableRoles.length?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,class:"ml-2 text-sm text-gray-400 underline",onClick:function(t){return e.manageRole(n)}},(0,r.toDisplayString)(e.displayableRole(n.membership.role)),9,_)):e.availableRoles.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",E,(0,r.toDisplayString)(e.displayableRole(n.membership.role)),1)):(0,r.createCommentVNode)("",!0),e.$page.props.user.id===n.id?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:2,class:"cursor-pointer ml-6 text-sm text-red-500",onClick:t[1]||(t[1]=function(){return e.confirmLeavingTeam&&e.confirmLeavingTeam.apply(e,arguments)})}," Leave ")):(0,r.createCommentVNode)("",!0),e.userPermissions.canRemoveTeamMembers?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:3,class:"cursor-pointer ml-6 text-sm text-red-500",onClick:function(t){return e.confirmTeamMemberRemoval(n)}}," Remove ",8,C)):(0,r.createCommentVNode)("",!0)])])})),128))])]})),_:1})])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(U,{show:e.currentlyManagingRole,onClose:t[3]||(t[3]=function(t){return e.currentlyManagingRole=!1})},{title:(0,r.withCtx)((function(){return t[18]||(t[18]=[(0,r.createTextVNode)(" Manage Role ")])})),content:(0,r.withCtx)((function(){return[e.managingRoleFor?((0,r.openBlock)(),(0,r.createElementBlock)("div",N,[(0,r.createElementVNode)("div",S,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.availableRoles,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("button",{type:"button",class:(0,r.normalizeClass)(["relative px-4 py-3 inline-flex w-full rounded-lg focus:z-10 focus:outline-none focus:border-blue-300 focus:ring focus:ring-blue-200",{"border-t border-gray-200 rounded-t-none":o>0,"rounded-b-none":o!==Object.keys(e.availableRoles).length-1}]),onClick:function(t){return e.updateRoleForm.role=n.key},key:n.key},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)({"opacity-50":e.updateRoleForm.role&&e.updateRoleForm.role!==n.key})},[(0,r.createElementVNode)("div",A,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["text-sm text-gray-600",{"font-semibold":e.updateRoleForm.role===n.key}])},(0,r.toDisplayString)(n.name),3),e.updateRoleForm.role===n.key?((0,r.openBlock)(),(0,r.createElementBlock)("svg",D,t[19]||(t[19]=[(0,r.createElementVNode)("path",{d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)]))):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",M,(0,r.toDisplayString)(n.description),1)],2)],10,V)})),128))])])):(0,r.createCommentVNode)("",!0)]})),footer:(0,r.withCtx)((function(){return[(0,r.createVNode)(H,{onClick:t[2]||(t[2]=function(t){return e.currentlyManagingRole=!1})},{default:(0,r.withCtx)((function(){return t[20]||(t[20]=[(0,r.createTextVNode)(" Cancel ")])})),_:1}),(0,r.createVNode)($,{class:(0,r.normalizeClass)(["ml-2",{"opacity-25":e.updateRoleForm.processing}]),onClick:e.updateRole,disabled:e.updateRoleForm.processing},{default:(0,r.withCtx)((function(){return t[21]||(t[21]=[(0,r.createTextVNode)(" Save ")])})),_:1},8,["onClick","class","disabled"])]})),_:1},8,["show"]),(0,r.createVNode)(q,{show:e.confirmingLeavingTeam,onClose:t[5]||(t[5]=function(t){return e.confirmingLeavingTeam=!1})},{title:(0,r.withCtx)((function(){return t[22]||(t[22]=[(0,r.createTextVNode)(" Leave Team ")])})),content:(0,r.withCtx)((function(){return t[23]||(t[23]=[(0,r.createTextVNode)(" Are you sure you would like to leave this team? ")])})),footer:(0,r.withCtx)((function(){return[(0,r.createVNode)(H,{onClick:t[4]||(t[4]=function(t){return e.confirmingLeavingTeam=!1})},{default:(0,r.withCtx)((function(){return t[24]||(t[24]=[(0,r.createTextVNode)(" Cancel ")])})),_:1}),(0,r.createVNode)(W,{class:(0,r.normalizeClass)(["ml-2",{"opacity-25":e.leaveTeamForm.processing}]),onClick:e.leaveTeam,disabled:e.leaveTeamForm.processing},{default:(0,r.withCtx)((function(){return t[25]||(t[25]=[(0,r.createTextVNode)(" Leave ")])})),_:1},8,["onClick","class","disabled"])]})),_:1},8,["show"]),(0,r.createVNode)(q,{show:e.teamMemberBeingRemoved,onClose:t[7]||(t[7]=function(t){return e.teamMemberBeingRemoved=null})},{title:(0,r.withCtx)((function(){return t[26]||(t[26]=[(0,r.createTextVNode)(" Remove Team Member ")])})),content:(0,r.withCtx)((function(){return t[27]||(t[27]=[(0,r.createTextVNode)(" Are you sure you would like to remove this person from the team? ")])})),footer:(0,r.withCtx)((function(){return[(0,r.createVNode)(H,{onClick:t[6]||(t[6]=function(t){return e.teamMemberBeingRemoved=null})},{default:(0,r.withCtx)((function(){return t[28]||(t[28]=[(0,r.createTextVNode)(" Cancel ")])})),_:1}),(0,r.createVNode)(W,{class:(0,r.normalizeClass)(["ml-2",{"opacity-25":e.removeTeamMemberForm.processing}]),onClick:e.removeTeamMember,disabled:e.removeTeamMemberForm.processing},{default:(0,r.withCtx)((function(){return t[29]||(t[29]=[(0,r.createTextVNode)(" Remove ")])})),_:1},8,["onClick","class","disabled"])]})),_:1},8,["show"])])}]])},710:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));
2o.push([e.id,'.tooltip[data-v-8050cc2e]:after{border-color:var(--cm-primary) transparent transparent transparent;border-style:solid;border-width:8px 10px 0;bottom:-8px;content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0}',""]);const i=o},756:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(6301),o={class:"px-6 py-4"},i={class:"text-lg"},a={class:"mt-4"},s={class:"px-6 py-4 bg-slate-100 text-right"};var l=n(641),c=n(5269);const u=(0,l.pM)({emits:["close"],components:{Modal:c.A},props:{show:{default:!1},maxWidth:{default:"2xl"},closeable:{default:!0}},methods:{close:function(){this.$emit("close")}}});const d=(0,n(6262).A)(u,[["render",function(e,t,n,l,c,u){var d=(0,r.resolveComponent)("modal");return(0,r.openBlock)(),(0,r.createBlock)(d,{show:e.show,"max-width":e.maxWidth,closeable:e.closeable,onClose:e.close},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.renderSlot)(e.$slots,"title")]),(0,r.createElementVNode)("div",a,[(0,r.renderSlot)(e.$slots,"content")])]),(0,r.createElementVNode)("div",s,[(0,r.renderSlot)(e.$slots,"footer")])]})),_:3},8,["show","max-width","closeable","onClose"])}]])},813:function(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){return e+(1===e?"er":"")}};return n.default.locale(r,null,!0),r}(n(4353))},847:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".fadein[data-v-a2422ee8]{animation:fade-a2422ee8 .3s ease-in-out forwards}@keyframes fade-a2422ee8{0%{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}",""]);const i=o},920:(e,t,n)=>{"use strict";var r=n(9675),o=n(8859),i=n(4803),a=n(507),s=n(2271)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=s()),e.set(t,n)}};return t}},948:(e,t,n)=>{"use strict";n.d(t,{$T:()=>D,v2:()=>B});var r=n(6301),o=Object.defineProperty,i=(e,t,n)=>(((e,t,n)=>{t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);const a={debug:!1,masked:!1,prefix:"",suffix:"",thousands:",",decimal:".",precision:2,disableNegative:!1,disabled:!1,min:null,max:null,allowBlank:!1,minimumNumberOfCharacters:0,modelModifiers:{number:!1},shouldRound:!0,focusOnRight:!1},s=["+","-"],l=["decimal","thousands","prefix","suffix"];function c(e){return Math.max(0,Math.min(e,1e3))}function u(e,t){return e=e.padStart(t+1,"0"),0===t?e:`${e.slice(0,-t)}.${e.slice(-t)}`}function d(e){return(e=e?e.toString():"").replace(/\D+/g,"")||"0"}function p(e,t){return s.includes(e)?(console.warn(`v-money3 "${t}" property don't accept "${e}" as a value.`),!1):!/\d/g.test(e)||(console.warn(`v-money3 "${t}" property don't accept "${e}" (any number) as a value.`),!1)}function h(e){for(const t of l){e[t]=e[t].replace(/\d+/g,"");for(const n of s)e[t]=e[t].replaceAll(n,"")}return e}function f(e){return e.length-(e.indexOf(".")+1)}function m(e){return e.replace(/^(-?)0+(?!\.)(.+)/,"$1$2")}function g(e){return/^-?[\d]+$/g.test(e)}function v(e){return/^-?[\d]+(\.[\d]+)$/g.test(e)}function y(e,t,n){return t>e.length-1?e:e.substring(0,t)+n+e.substring(t+1)}function b(e,t){const n=t-f(e);
2if(n>=0)return e;let r=e.slice(0,n);const o=e.slice(n);if("."===r.charAt(r.length-1)&&(r=r.slice(0,-1)),parseInt(o.charAt(0),10)>=5){for(let e=r.length-1;e>=0;e-=1){const t=r.charAt(e);if("."!==t&&"-"!==t){const n=parseInt(t,10)+1;if(n<10)return y(r,e,n);r=y(r,e,"0")}}return`1${r}`}return r}function x(e,t){const n=()=>{e.setSelectionRange(t,t)};e===document.activeElement&&(n(),setTimeout(n,1))}function w(e){return new Event(e,{bubbles:!0,cancelable:!1})}function k({debug:e=!1},...t){e&&console.log(...t)}class _{constructor(e){i(this,"number",0n),i(this,"decimal",0),this.setNumber(e)}getNumber(){return this.number}getDecimalPrecision(){return this.decimal}setNumber(e){this.decimal=0,"bigint"==typeof e?this.number=e:"number"==typeof e?this.setupString(e.toString()):this.setupString(e)}toFixed(e=0,t=!0){let n=this.toString();const r=e-this.getDecimalPrecision();return r>0?(n.includes(".")||(n+="."),n.padEnd(n.length+r,"0")):r<0?t?b(n,e):n.slice(0,r):n}toString(){let e=this.number.toString();if(this.decimal){let t=!1;return"-"===e.charAt(0)&&(e=e.substring(1),t=!0),e=e.padStart(e.length+this.decimal,"0"),e=`${e.slice(0,-this.decimal)}.${e.slice(-this.decimal)}`,e=m(e),(t?"-":"")+e}return e}lessThan(e){const[t,n]=this.adjustComparisonNumbers(e);return t<n}biggerThan(e){const[t,n]=this.adjustComparisonNumbers(e);return t>n}isEqual(e){const[t,n]=this.adjustComparisonNumbers(e);return t===n}setupString(e){if(g(e=m(e)))this.number=BigInt(e);else{if(!v(e))throw new Error(`BigNumber has received and invalid format for the constructor: ${e}`);this.decimal=f(e),this.number=BigInt(e.replace(".",""))}}adjustComparisonNumbers(e){let t;t="BigNumber"!==e.constructor.name?new _(e):e;const n=this.getDecimalPrecision()-t.getDecimalPrecision();let r=this.getNumber(),o=t.getNumber();return n>0?o=t.getNumber()*10n**BigInt(n):n<0&&(r=this.getNumber()*10n**BigInt(-1*n)),[r,o]}}function E(e,t=a,n=""){if(k(t,"utils format() - caller",n),k(t,"utils format() - input1",e),null==e)e="";else if("number"==typeof e)e=t.shouldRound?e.toFixed(c(t.precision)):e.toFixed(c(t.precision)+1).slice(0,-1);else if(t.modelModifiers&&t.modelModifiers.number&&g(e))e=Number(e).toFixed(c(t.precision));else if(!t.disableNegative&&"-"===e)return e;k(t,"utils format() - input2",e);const r=t.disableNegative?"":e.indexOf("-")>=0?"-":"";let o=e.replace(t.prefix,"").replace(t.suffix,"");k(t,"utils format() - filtered",o),!t.precision&&"."!==t.thousands&&v(o)&&(o=b(o,0),k(t,"utils format() - !opt.precision && isValidFloat()",o));const i=d(o);k(t,"utils format() - numbers",i),k(t,"utils format() - numbersToCurrency",r+u(i,t.precision));const s=new _(r+u(i,t.precision));k(t,"utils format() - bigNumber1",s.toString()),t.max&&s.biggerThan(t.max)&&s.setNumber(t.max),t.min&&s.lessThan(t.min)&&s.setNumber(t.min);const l=s.toFixed(c(t.precision),t.shouldRound);if(k(t,"utils format() - bigNumber2",s.toFixed(c(t.precision))),/^0(\.0+)?$/g.test(l)&&t.allowBlank)return"";let[p,h]=l.split(".");const f=void 0!==h?h.length:0;p=p.padStart(t.minimumNumberOfCharacters-f,"0"),p=function(e,t){return e.replace(/(\d)(?=(?:\d{3})+\b)/gm,`$1${t}`)}(p,t.thousands);const m=t.prefix+function(e,t,n){return t?e+n+t:e}(p,h,t.decimal)+t.suffix;return k(t,"utils format() - output",m),m}function C(e,t=a,n=""){if(k(t,"utils unformat() - caller",n),k(t,"utils unformat() - input",e),!t.disableNegative&&"-"===e)return k(t,"utils unformat() - return netagive symbol",e),e;const r=t.disableNegative?"":e.indexOf("-")>=0?"-":"",o=e.replace(t.prefix,"").replace(t.suffix,"");k(t,"utils unformat() - filtered",o);const i=d(o);k(t,"utils unformat() - numbers",i);const s=new _(r+u(i,t.precision));k(t,"utils unformat() - bigNumber1",i.toString()),t.max&&s.biggerThan(t.max)&&s.setNumber(t.max),t.min&&s.lessThan(t.min)&&s.setNumber(t.min);let l=s.toFixed(c(t.precision),t.shouldRound);return t.modelModifiers&&t.modelModifiers.number&&(l=parseFloat(l)),k(t,"utils unformat() - output",l),l}const N=(e,t,n)=>{if(k(t,"directive setValue() - caller",n),!function(e){for(const t of l)if(!p(e[t],t))return!1;return!0}(t))return void k(t,"directive setValue() - validateRestrictedOptions() return false. Stopping here...",e.value);let r=e.value.length-(e.selectionEnd||0);e.value=E(e.value,t,n),r=Math.max(r,t.suffix.length),r=e.value.length-r,r=Math.max(r,t.prefix.length),x(e,r),e.dispatchEvent(w("change"))},S=(e,t)=>{const n=e.currentTarget,r="Backspace"===e.code||"Delete"===e.code,o=n.value.length-(n.selectionEnd||0)==0;if(k(t,"directive onkeydown() - el.value",n.value),k(t,"directive onkeydown() - backspacePressed",r),k(t,"directive onkeydown() - isAtEndPosition",o),t.allowBlank&&r&&o&&0===C(n.value,t,"directive onkeydown allowBlank")&&(k(t,'directive onkeydown() - set el.value = ""',n.value),n.value="",n.dispatchEvent(w("change"))),k(t,"directive onkeydown() - e.key",e.key),"+"===e.key){k(t,"directive onkeydown() - unformat el.value",n.value);let e=C(n.value,t,"directive onkeydown +");"string"==typeof e&&(e=parseFloat(e)),e<0&&(n.value=String(-1*e))}},V=(e,t)=>{const n=e.currentTarget;k(t,"directive oninput()",n.value),/^[1-9]$/.test(n.value)&&(n.value=u(n.value,c(t.precision)),k(t,"directive oninput() - is 1-9",n.value)),N(n,t,"directive oninput")},A=(e,t)=>
2{const n=e.currentTarget;k(t,"directive onFocus()",n.value),t.focusOnRight&&x(n,n.value.length-t.suffix.length)},D={mounted(e,t){if(!t.value)return;const n=h({...a,...t.value});if(k(n,"directive mounted() - opt",n),"INPUT"!==e.tagName.toLocaleUpperCase()){const t=e.getElementsByTagName("input");1!==t.length||(e=t[0])}e.onkeydown=e=>{S(e,n)},e.oninput=e=>{V(e,n)},e.onfocus=e=>{A(e,n)},k(n,"directive mounted() - el.value",e.value),N(e,n,"directive mounted")},updated(e,t){if(!t.value)return;const n=h({...a,...t.value});e.onkeydown=e=>{S(e,n)},e.oninput=e=>{V(e,n)},e.onfocus=e=>{A(e,n)},k(n,"directive updated() - el.value",e.value),k(n,"directive updated() - opt",n),N(e,n,"directive updated")},beforeUnmount(e){e.onkeydown=null,e.oninput=null,e.onfocus=null}},M=["id","value","disabled"],T={inheritAttrs:!1,name:"Money3",directives:{money3:D}},B=(0,r.defineComponent)({...T,props:{debug:{required:!1,type:Boolean,default:!1},id:{required:!1,type:[Number,String],default:()=>{const e=(0,r.getCurrentInstance)();return e?e.uid:null}},modelValue:{required:!0,type:[Number,String]},modelModifiers:{required:!1,type:Object,default:()=>({number:!1})},masked:{type:Boolean,default:!1},precision:{type:Number,default:()=>a.precision},decimal:{type:String,default:()=>a.decimal,validator:e=>p(e,"decimal")},thousands:{type:String,default:()=>a.thousands,validator:e=>p(e,"thousands")},prefix:{type:String,default:()=>a.prefix,validator:e=>p(e,"prefix")},suffix:{type:String,default:()=>a.suffix,validator:e=>p(e,"suffix")},disableNegative:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},max:{type:[Number,String],default:()=>a.max},min:{type:[Number,String],default:()=>a.min},allowBlank:{type:Boolean,default:()=>a.allowBlank},minimumNumberOfCharacters:{type:Number,default:()=>a.minimumNumberOfCharacters},shouldRound:{type:Boolean,default:()=>a.shouldRound},focusOnRight:{type:Boolean,default:()=>a.focusOnRight}},emits:["update:model-value"],setup(e,{emit:t}){const n=e,{modelValue:o,modelModifiers:i,masked:a,precision:s,shouldRound:l,focusOnRight:u}=(0,r.toRefs)(n);k(n,"component setup()",n);let d=o.value;(n.disableNegative||"-"!==d)&&i.value&&i.value.number&&(d=l.value?Number(o.value).toFixed(c(s.value)):Number(o.value).toFixed(c(s.value)+1).slice(0,-1));const p=(0,r.ref)(E(d,n,"component setup"));k(n,"component setup() - data.formattedValue",p.value),(0,r.watch)(o,(function(e){k(n,"component watch() -> value",e);const t=E(e,h({...n}),"component watch");t!==p.value&&(k(n,"component watch() changed -> formatted",t),p.value=t)}));let f=null;function m(e){let r=e.target.value;k(n,"component change() -> evt.target.value",r),a.value&&!i.value.number||(r=C(r,h({...n}),"component change")),r!==f&&(f=r,k(n,"component change() -> update:model-value",r),t("update:model-value",r))}const g=(0,r.useAttrs)(),v=(0,r.computed)((()=>{const e={...g};return delete e["onUpdate:modelValue"],e}));return(t,o)=>{const a=(0,r.resolveDirective)("money3");return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("input",(0,r.mergeProps)({id:`${e.id}`},(0,r.unref)(v),{type:"tel",class:"v-money3",value:p.value,disabled:n.disabled,onChange:m}),null,16,M)),[[a,{precision:(0,r.unref)(s),decimal:n.decimal,thousands:n.thousands,prefix:n.prefix,suffix:n.suffix,disableNegative:n.disableNegative,min:n.min,max:n.max,allowBlank:n.allowBlank,minimumNumberOfCharacters:n.minimumNumberOfCharacters,debug:n.debug,modelModifiers:(0,r.unref)(i),shouldRound:(0,r.unref)(l),focusOnRight:(0,r.unref)(u)}]])}}})},953:(e,t,n)=>{"use strict";n.d(t,{BA:()=>Re,C4:()=>V,EW:()=>Je,Gc:()=>xe,IG:()=>Ae,IJ:()=>Oe,KR:()=>Be,Kh:()=>be,PP:()=>Ze,Pr:()=>ze,QW:()=>Ue,QZ:()=>E,R1:()=>je,Tm:()=>Ce,Ul:()=>Xe,X2:()=>d,Yv:()=>nt,bl:()=>A,ch:()=>rt,ds:()=>C,fE:()=>Ne,g8:()=>Ee,hV:()=>it,hZ:()=>$,i9:()=>Te,jr:()=>c,ju:()=>Se,lJ:()=>De,lW:()=>Ye,mu:()=>Ie,nD:()=>ke,o5:()=>l,qA:()=>F,rY:()=>He,tB:()=>we,u4:()=>R,uY:()=>s,ux:()=>Ve,wB:()=>ot,yC:()=>a});var r=n(33);let o,i;class a{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=o,!e&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=o;try{return o=this,e()}finally{o=t}}else 0}on(){o=this}off(){o=this.parent}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function s(e){return new a(e)}function l(){return o}function c(e,t=!1){o&&o.cleanups.push(e)}const u=new WeakSet;class d{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler
vendor: 8,939 bytes, line 2
2=void 0,o&&o.active&&o.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,u.has(this)&&(u.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||m(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,D(this),y(this);const e=i,t=N;i=this,N=!0;try{return this.fn()}finally{0,b(this),i=e,N=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)k(e);this.deps=this.depsTail=void 0,D(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?u.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){x(this)&&this.run()}get dirty(){return x(this)}}let p,h,f=0;function m(e,t=!1){if(e.flags|=8,t)return e.next=h,void(h=e);e.next=p,p=e}function g(){f++}function v(){if(--f>0)return;if(h){let e=h;for(h=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;p;){let t=p;for(p=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function y(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function b(e){let t,n=e.depsTail,r=n;for(;r;){const e=r.prevDep;-1===r.version?(r===n&&(n=e),k(r),_(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function x(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(w(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function w(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===M)return;e.globalVersion=M;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!x(e))return void(e.flags&=-3);const n=i,o=N;i=e,N=!0;try{y(e);const n=e.fn(e._value);(0===t.version||(0,r.$H)(n,e._value))&&(e._value=n,t.version++)}catch(e){throw t.version++,e}finally{i=n,N=o,b(e),e.flags&=-3}}function k(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)k(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function _(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function E(e,t){e.effect instanceof d&&(e=e.effect.fn);const n=new d(e);t&&(0,r.X$)(n,t);try{n.run()}catch(e){throw n.stop(),e}const o=n.run.bind(n);return o.effect=n,o}function C(e){e.effect.stop()}let N=!0;const S=[];function V(){S.push(N),N=!1}function A(){const e=S.pop();N=void 0===e||e}function D(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=i;i=void 0;try{t()}finally{i=e}}}let M=0;class T{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class B{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!i||!N||i===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==i)t=this.activeLink=new T(i,this),i.deps?(t.prevDep=i.depsTail,i.depsTail.nextDep=t,i.depsTail=t):i.deps=i.depsTail=t,O(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=i.depsTail,t.nextDep=void 0,i.depsTail.nextDep=t,i.depsTail=t,i.deps===t&&(i.deps=e)}return t}trigger(e){this.version++,M++,this.notify(e)}notify(e){g();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{v()}}}function O(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)O(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const P=new WeakMap,L=Symbol(""),I=Symbol(""),j=Symbol("");function R(e,t,n){if(N&&i){let t=P.get(e);t||P.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new B),r.map=t,r.key=n),r.track()}}function $(e,t,n,o,i,a){const s=P.get(e);if(!s)return void M++;const l=e=>{e&&e.trigger()};if(g(),"clear"===t)s.forEach(l);else{const i=(0,r.cy)(e),a=i&&(0,r.yI)(n);if(i&&"length"===n){const e=Number(o);s.forEach(((t,n)=>{("length"===n||n===j||!(0,r.Bm)(n)&&n>=e)&&l(t)}))}else switch((void 0!==n||s.has(void 0))&&l(s.get(n)),a&&l(s.get(j)),t){case"add":i?a&&l(s.get("length")):(l(s.get(L)),(0,r.CE)(e)&&l(s.get(I)));break;case"delete":i||(l(s.get(L)),(0,r.CE)(e)&&l(s.get(I)));break;case"set":(0,r.CE)(e)&&l(s.get(L))}}v()}function z(e){const t=Ve(e);return t===e?t:(R(t,0,j),Ne(e)?t:t.map(De))}function F(e){return R(e=Ve(e),0,j),e}const H={__proto__:null,[Symbol.iterator](){return U(this,Symbol.iterator,De)},concat(...e){return z(this).concat(...e.map((e=>(0,r.cy)(e)?z(e):e)))},entries(){return U(this,"entries",(e=>(e[1]=De(e[1]),e)))},every(e,t){return q(this,"every",e,t,void 0,arguments)},filter(e,t){return q(this,"filter",e,t,(e=>e.map(De)),arguments)},find(e,t){return q(this,"find",e,t,De,arguments)},findIndex(e,t){return q(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return q(this,"findLast",e,t,De,arguments)},findLastIndex(e,t){return q(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return q(this,"forEach",e,t,void 0,arguments)},includes(...e){return G(this,"includes",e)},indexOf(...e){return G(this,"indexOf",e)},join(e){return z(this).join(e)},lastIndexOf(...e){return G(this,"lastIndexOf",e)},map(e,t){return q(this,"map",e,t,void 0,arguments)},pop(){return K(this,"pop")},push(...e){return K(this,"push",e)},reduce(e,...t){return Y(this,"reduce",e,t)},reduceRight(e,...t){return Y(this,"reduceRight",e,t)},shift(){return K(this,"shift")},some(e,t){return q(this,"some",e,t,void 0,arguments)},splice(...e){return K(this,"splice",e)},toReversed(){return z(this).toReversed()},toSorted(e){return z(this).toSorted(e)},toSpliced(...e){return z(this).toSpliced(...e)},unshift(...e){return K(this,"unshift",e)},values(){return U(this,"values",De)}};function U(e,t,n){const r=F(e),o=r[t]();return r===e||Ne(e)||(o._next=o.next,o.next=()=>{const e=o._next();return e.value&&(e.value=n(e.value)),e}),o}const W=Array.prototype;function q(e,t,n,r,o,i){const a=F(e),s=a!==e&&!Ne(e),l=a[t];if(l!==W[t]){const t=l.apply(e,i);return s?De(t):t}let c=n;a!==e&&(s?c=function(t,r){return n.call(this,De(t),r,e)}:n.length>2&&(c=function(t,r){return n.call(this,t,r,e)}));const u=l.call(a,c,r);return s&&o?o(u):u}function Y(e,t,n,r){const o=F(e);let i=n;return o!==e&&(Ne(e)?n.length>3&&(i=function(t,r,o){return n.call(this,t,r,o,e)}):i=function(t,r,o){return n.call(this,t,De(r),o,e)}),o[t](i,...r)}function G(e,t,n){const r=Ve(e);R(r,0,j);const o=r[t](...n);return-1!==o&&!1!==o||!Se(n[0])?o:(n[0]=Ve(n[0]),r[t](...n))}function K(e,t,n=[]){V(),g();const r=Ve(e)[t].apply(e,n);return v(),A(),r}const J=(0,r.pD)("__proto__,__v_isRef,__isVue"),X=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(r.Bm));function Z(e){(0,r.Bm)(e)||(e=String(e));const t=Ve(this);return R(t,0,e),t.hasOwnProperty(e)}class Q{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const o=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(o?i?ye:ve:i?ge:me).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const a=(0,r.cy)(e);if(!o){let e;if(a&&(e=H[t]))return e;if("hasOwnProperty"===t)return Z}const s=Reflect.get(e,t,Te(e)?e:n);return((0,r.Bm)(t)?X.has(t):J(t))?s:(o||R(e,0,t),i?s:Te(s)?a&&(0,r.yI)(t)?s:s.value:(0,r.Gv)(s)?o?we(s):be(s):s)}}class ee extends Q{constructor(e=!1){super(!1,e)}set(e,t,n,o){let i=e[t];if(!this._isShallow){const t=Ce(i);if(Ne(n)||Ce(n)||(i=Ve(i),n=Ve(n)),!(0,r.cy)(e)&&Te(i)&&!Te(n))return!t&&(i.value=n,!0)}const a=(0,r.cy)(e)&&(0,r.yI)(t)?Number(t)<e.length:(0,r.$3)(e,t),s=Reflect.set(e,t,n,Te(e)?e:o);return e===Ve(o)&&(a?(0,r.$H)(n,i)&&$(e,"set",t,n):$(e,"add",t,n)),s}deleteProperty(e,t){const n=(0,r.$3)(e,t),o=(e[t],Reflect.deleteProperty(e,t));return o&&n&&$(e,"delete",t,void 0),o}has(e,t){const n=Reflect.has(e,t);return(0,r.Bm)(t)&&X.has(t)||R(e,0,t),n}ownKeys(e){return R(e,0,(0,r.cy)(e)?"length":L),Reflect.ownKeys(e)}}class te extends Q{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const ne=new ee,re=new te,oe=new ee(!0),ie=new te(!0),ae=e=>e,se=e=>Reflect.getPrototypeOf(e);function le(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function ce(e,t){const n={get(n){const o=this.__v_raw,i=Ve(o),a=Ve(n);e||((0,r.$H)(n,a)&&R(i,0,n),R(i,0,a));const{has:s}=se(i),l=t?ae:e?Me:De;return s.call(i,n)?l(o.get(n)):s.call(i,a)?l(o.get(a)):void(o!==i&&o.get(n))},get size(){const t=this.__v_raw;return!e&&R(Ve(t),0,L),Reflect.get(t,"size",t)},has(t){const n=this.__v_raw,o=Ve(n),i=Ve(t);return e||((0,r.$H)(t,i)&&R(o,0,t),R(o,0,i)),t===i?n.has(t):n.has(t)||n.has(i)}
2,forEach(n,r){const o=this,i=o.__v_raw,a=Ve(i),s=t?ae:e?Me:De;return!e&&R(a,0,L),i.forEach(((e,t)=>n.call(r,s(e),s(t),o)))}};(0,r.X$)(n,e?{add:le("add"),set:le("set"),delete:le("delete"),clear:le("clear")}:{add(e){t||Ne(e)||Ce(e)||(e=Ve(e));const n=Ve(this);return se(n).has.call(n,e)||(n.add(e),$(n,"add",e,e)),this},set(e,n){t||Ne(n)||Ce(n)||(n=Ve(n));const o=Ve(this),{has:i,get:a}=se(o);let s=i.call(o,e);s||(e=Ve(e),s=i.call(o,e));const l=a.call(o,e);return o.set(e,n),s?(0,r.$H)(n,l)&&$(o,"set",e,n):$(o,"add",e,n),this},delete(e){const t=Ve(this),{has:n,get:r}=se(t);let o=n.call(t,e);o||(e=Ve(e),o=n.call(t,e));r&&r.call(t,e);const i=t.delete(e);return o&&$(t,"delete",e,void 0),i},clear(){const e=Ve(this),t=0!==e.size,n=e.clear();return t&&$(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach((o=>{n[o]=function(e,t,n){return function(...o){const i=this.__v_raw,a=Ve(i),s=(0,r.CE)(a),l="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=i[e](...o),d=n?ae:t?Me:De;return!t&&R(a,0,c?I:L),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}(o,e,t)})),n}function ue(e,t){const n=ce(e,t);return(t,o,i)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get((0,r.$3)(n,o)&&o in t?n:t,o,i)}const de={get:ue(!1,!1)},pe={get:ue(!1,!0)},he={get:ue(!0,!1)},fe={get:ue(!0,!0)};const me=new WeakMap,ge=new WeakMap,ve=new WeakMap,ye=new WeakMap;function be(e){return Ce(e)?e:_e(e,!1,ne,de,me)}function xe(e){return _e(e,!1,oe,pe,ge)}function we(e){return _e(e,!0,re,he,ve)}function ke(e){return _e(e,!0,ie,fe,ye)}function _e(e,t,n,o,i){if(!(0,r.Gv)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const s=function(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((0,r.Zf)(e))}(e);if(0===s)return e;const l=new Proxy(e,2===s?o:n);return i.set(e,l),l}function Ee(e){return Ce(e)?Ee(e.__v_raw):!(!e||!e.__v_isReactive)}function Ce(e){return!(!e||!e.__v_isReadonly)}function Ne(e){return!(!e||!e.__v_isShallow)}function Se(e){return!!e&&!!e.__v_raw}function Ve(e){const t=e&&e.__v_raw;return t?Ve(t):e}function Ae(e){return!(0,r.$3)(e,"__v_skip")&&Object.isExtensible(e)&&(0,r.yQ)(e,"__v_skip",!0),e}const De=e=>(0,r.Gv)(e)?be(e):e,Me=e=>(0,r.Gv)(e)?we(e):e;function Te(e){return!!e&&!0===e.__v_isRef}function Be(e){return Pe(e,!1)}function Oe(e){return Pe(e,!0)}function Pe(e,t){return Te(e)?e:new Le(e,t)}class Le{constructor(e,t){this.dep=new B,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Ve(e),this._value=t?e:De(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||Ne(e)||Ce(e);e=n?e:Ve(e),(0,r.$H)(e,t)&&(this._rawValue=e,this._value=n?e:De(e),this.dep.trigger())}}function Ie(e){e.dep&&e.dep.trigger()}function je(e){return Te(e)?e.value:e}function Re(e){return(0,r.Tn)(e)?e():je(e)}const $e={get:(e,t,n)=>"__v_raw"===t?e:je(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Te(o)&&!Te(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function ze(e){return Ee(e)?e:new Proxy(e,$e)}class Fe{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new B,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}function He(e){return new Fe(e)}function Ue(e){const t=(0,r.cy)(e)?new Array(e.length):{};for(const n in e)t[n]=Ge(e,n);return t}class We{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=P.get(e);return n&&n.get(t)}(Ve(this._object),this._key)}}class qe{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ye(e,t,n){return Te(e)?e:(0,r.Tn)(e)?new qe(e):(0,r.Gv)(e)&&arguments.length>1?Ge(e,t,n):Be(e)}function Ge(e,t,n){const r=e[t];return Te(r)?r:new We(e,t,n)}class Ke{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new B(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=M-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags||i===this))return m(this,!0),!0}get value(){const e=this.dep.track();return w(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Je(e,t,n=!1){let o,i;(0,r.Tn)(e)?o=e:(o=e.get,i=e.set);return new Ke(o,i,n)}const Xe={GET:"get",HAS:"has",ITERATE:"iterate"},Ze={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Qe={},et=new WeakMap;let tt;function nt(){return tt}function rt(e,t=!1,n=tt){if(n){let t=et.get(n);t||et.set(n,t=[]),t.push(e)}else 0}function ot(e,t,n=r.MZ){const{immediate:o,deep:i,once:a,scheduler:s,augmentJob:c,call:u}=n,p=e=>i?e:Ne(e)||!1===i||0===i?it(e,1):it(e);let h,f,m,g,v=!1,y=!1;if(Te(e)?(f=()=>e.value,v=Ne(e)):Ee(e)?(f=()=>p(e),v=!0):(0,r.cy)(e)?(y=!0,v=e.some((e=>Ee(e)||Ne(e))),f=()=>e.map((e=>Te(e)?e.value:Ee(e)?p(e):(0,r.Tn)(e)?u?u(e,2):e():void 0))):f=(0,r.Tn)(e)?t?u?()=>u(e,2):e:()=>{if(m){V();try{m()}finally{A()}}const t=tt;tt=h;try{return u?u(e,3,[g]):e(g)}finally{tt=t}}:r.tE,t&&i){const e=f,t=!0===i?1/0:i;f=()=>it(e(),t)}const b=l(),x=()=>{h.stop(),b&&b.active&&(0,r.TF)(b.effects,h)};if(a&&t){const e=t;t=(...t)=>{e(...t),x()}}let w=y?new Array(e.length).fill(Qe):Qe;const k=e=>{if(1&h.flags&&(h.dirty||e))if(t){const e=h.run();if(i||v||(y?e.some(((e,t)=>(0,r.$H)(e,w[t]))):(0,r.$H)(e,w))){m&&m();const n=tt;tt=h;try{const n=[e,w===Qe?void 0:y&&w[0]===Qe?[]:w,g];u?u(t,3,n):t(...n),w=e}finally{tt=n}}}else h.run()};
2return c&&c(k),h=new d(f),h.scheduler=s?()=>s(k,!1):k,g=e=>rt(e,!1,h),m=h.onStop=()=>{const e=et.get(h);if(e){if(u)u(e,4);else for(const t of e)t();et.delete(h)}},t?o?k(!0):w=h.run():s?s(k.bind(null,!0),!0):h.run(),x.pause=h.pause.bind(h),x.resume=h.resume.bind(h),x.stop=x,x}function it(e,t=1/0,n){if(t<=0||!(0,r.Gv)(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,Te(e))it(e.value,t,n);else if((0,r.cy)(e))for(let r=0;r<e.length;r++)it(e[r],t,n);else if((0,r.vM)(e)||(0,r.CE)(e))e.forEach((e=>{it(e,t,n)}));else if((0,r.Qd)(e)){for(const r in e)it(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&it(e[r],t,n)}return e}},1002:e=>{"use strict";e.exports=Function.prototype.apply},1015:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(6301),o={key:0,type:"submit",class:"block w-full px-4 py-2 text-sm leading-5 text-gray-700 text-left focus:outline-none focus:text-cm-primary transition hover:text-cm-primary inline-flex whitespace-nowrap flex-nowrap items-center"},i=["href"];const a=(0,n(641).pM)({props:["href","as"]});const s=(0,n(6262).A)(a,[["render",function(e,t,n,a,s,l){var c=(0,r.resolveComponent)("Link");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,["button"==e.as?((0,r.openBlock)(),(0,r.createElementBlock)("button",o,[(0,r.renderSlot)(e.$slots,"default")])):"a"==e.as?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:1,href:e.href,class:"block px-4 py-2 text-sm leading-5 text-gray-700 focus:outline-none focus:text-cm-primary transition hover:text-cm-primary inline-flex whitespace-nowrap flex-nowrap items-center"},[(0,r.renderSlot)(e.$slots,"default")],8,i)):((0,r.openBlock)(),(0,r.createBlock)(c,{key:2,href:e.href,class:"block px-4 py-2 text-sm leading-5 text-gray-700 focus:outline-none focus:text-cm-primary transition hover:text-cm-primary inline-flex whitespace-nowrap flex-nowrap items-center"},{default:(0,r.withCtx)((function(){return[(0,r.renderSlot)(e.$slots,"default")]})),_:3},8,["href"]))])}]])},1016:()=>{},1019:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(e){return[e.toLowerCase(),e]}))),t.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(e){return[e.toLowerCase(),e]})))},1021:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var r=n(6301),o={key:0,class:"col-span-12 sm:col-span-6"},i={key:1,class:"col-span-12 sm:col-span-6"},a={key:2,class:"col-span-12 sm:col-span-4"},s={class:"mt-2"},l=["src","alt"],c={class:"mt-2"},u={class:"col-span-12 sm:col-span-4"},d={class:"col-span-12 sm:col-span-4"},p={class:"col-span-12 sm:col-span-4"},h={class:"col-span-12 sm:col-span-4"},f={class:"col-span-12 sm:col-span-4"},m=["disabled"];var g=n(641),v=n(1816),y=n(1154),b=n(4296),x=n(6786),w=n(5393),k=n(3257),_=n(4312),E=n(2521),C=n(9506);const N=(0,g.pM)({components:{JetActionMessage:k.A,JetButton:v.A,JetFormSection:y.A,JetInput:b.A,JetInputError:x.A,JetLabel:w.A,JetSecondaryButton:_.A,LmInputText:C.zX,LmInputMail:C.f$,LmInputNumber:C.$_,LmNews:E.A},props:["user"],data:function(){return{form:this.$inertia.form({_method:"PUT",name:this.user.n
2ame,first_name:this.user.first_name,email:this.user.email,photo:null,phone:this.user.phone,street:this.user.street,zip_code:this.user.zip_code,city:this.user.city}),clearError:!1,photoPreview:null,show_completed_profile:!1,successMessage:"Votre profil est complet."}},methods:{updateProfileInformation:function(){var e=this;this.$refs.photo&&(this.form.photo=this.$refs.photo.files[0]),this.form.post(route("user-profile-information.update"),{errorBag:"updateProfileInformation",preserveScroll:!0,onSuccess:function(){if(e.clearPhotoFileInput(),e.clearError=!0,e.user.completed_profile=!0,e.show_completed_profile=!0,window.history.pushState){var t=window.location.origin+window.location.pathname;window.history.pushState({path:t},"",t)}}})},selectNewPhoto:function(){this.$refs.photo.click()},updatePhotoPreview:function(){var e=this,t=this.$refs.photo.files[0];if(t){var n=new FileReader;n.onload=function(t){e.photoPreview=t.target.result},n.readAsDataURL(t)}},deletePhoto:function(){var e=this;this.$inertia.delete(route("current-user-photo.destroy"),{preserveScroll:!0,onSuccess:function(){e.photoPreview=null,e.clearPhotoFileInput()}})},clearPhotoFileInput:function(){var e;null!==(e=this.$refs.photo)&&void 0!==e&&e.value&&(this.$refs.photo.value=null)}},computed:{errorMessage:function(){if(this.clearError)return null;var e=new URLSearchParams(window.location.search);return e.has("error_profile")?decodeURIComponent(e.get("error_profile")):null}}});const S=(0,n(6262).A)(N,[["render",function(e,t,n,g,v,y){var b=(0,r.resolveComponent)("lm-news"),x=(0,r.resolveComponent)("jet-label"),w=(0,r.resolveComponent)("jet-secondary-button"),k=(0,r.resolveComponent)("jet-input-error"),_=(0,r.resolveComponent)("lm-input-text"),E=(0,r.resolveComponent)("lm-input-mail"),C=(0,r.resolveComponent)("lm-input-number"),N=(0,r.resolveComponent)("jet-action-message"),S=(0,r.resolveComponent)("jet-form-section");return(0,r.openBlock)(),(0,r.createBlock)(S,{onSubmitted:e.updateProfileInformation},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Profil Informationen")),1)]})),description:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("profileText")),1)]})),form:(0,r.withCtx)((function(){return[e.user.completed_profile?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createVNode)(b,{category:"error",title:e.errorMessage},null,8,["title"])])),e.show_completed_profile?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createVNode)(b,{category:"success",title:e.successMessage},null,8,["title"])])):(0,r.createCommentVNode)("",!0),e.$page.props.jetstream.managesProfilePhotos?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[(0,r.createElementVNode)("input",{type:"file",class:"hidden",ref:"photo",onChange:t[0]||(t[0]=function(){return e.updatePhotoPreview&&e.updatePhotoPreview.apply(e,arguments)})},null,544),(0,r.createVNode)(x,{for:"photo",value:"Photo"}),(0,r.withDirectives)((0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("img",{src:e.user.profile_photo_url,alt:e.user.name,class:"rounded-full h-20 w-20 object-cover"},null,8,l)],512),[[r.vShow,!e.photoPreview]]),(0,r.withDirectives)((0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("span",{class:"block rounded-full w-20 h-20 bg-cover bg-no-repeat bg-center",style:(0,r.normalizeStyle)("background-image: url('"+e.photoPreview+"');")},null,4)],512),[[r.vShow,e.photoPreview]]),(0,r.createVNode)(w,{class:"mt-2 mr-2",type:"button",onClick:(0,r.withModifiers)(e.selectNewPhoto,["prevent"])},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Ein neues Foto auswählen")),1)]})),_:1},8,["onClick"]),e.user.profile_photo_path?((0,r.openBlock)(),(0,r.createBlock)(w,{key:0,type:"button",class:"mt-2",onClick:(0,r.withModifiers)(e.deletePhoto,["prevent"])},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Foto löschen")),1)]})),_:1},8,["onClick"])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(k,{message:e.form.errors.photo,class:"mt-2"},null,8,["message"])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",u,[(0,r.createVNode)(_,{label:e.__("Vorname"),placeholder:e.__("Vorname"),modelValue:e.form.first_name,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.form.first_name=t})},null,8,["label","placeholder","modelValue"]),(0,r.createVNode)(k,{message:e.form.errors.first_name,class:"mt-2"},null,8,["message"])]),(0,r.createElementVNode)("div",d,[(0,r.createVNode)(_,{label:e.__("Nachname"),placeholder:e.__("Nachname"),modelValue:e.form.name,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.form.name=t})},null,8,["label","placeholder","modelValue"]),(0,r.createVNode)(k,{message:e.form.errors.name,class:"mt-2"},null,8,["message"])]),(0,r.createElementVNode)("div",p,[(0,r.createVNode)(E,{label:e.__("E-Mail"),placeholder:e.__("E-Mail"),modelValue:e.form.email,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.form.email=t})},null,8,["label","placeholder","modelValue"]),(0,r.createVNode)(k,{message:e.form.errors.email,class:"mt-2"},null,8,["message"])]),(0,r.createElementVNode)("div",h,[(0,r.createVNode)(_,{label:e.__("Telefon")+" "+e.__("(facultatif)"),placeholder:e.__("Telefon"),modelValue:e.form.phone,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.form.phone=t})},null,8,["label","placeholder","modelValue"]),(0,r.createVNode)(k,{message:e.form.errors.phone,class:"mt-2"},null,8,["message"])]),(0,r.createElementVNode)("div",f,[(0,r.createVNode)(_,{label:e.__("Strasse")+" "+e.__("(facultatif)"),placeholder:e.__("Strasse"),modelValue:e.form.street,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.form.street=t})},null,8,["label","placeholder","modelValue"]),(0,r.createVNode)(k,{message:e.form.errors.street,class:"mt-2"},null,8,["message"])]),(0,r.createElementVNode)("div",{class:"col-span-12 sm:col-span-4",style:(0,r.normalizeStyle)(e.form.zip_code?null:"border-bottom:1px solid red")},[(0,r.createVNode)(C,{min:"1000",label:e.__("PLZ"),placeholder:e.__("PLZ"),modelValue:e.form.zip_code,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.form.zip_code=t})},null,8,["label","placeholder","modelValue"]),(0,r.createVNode)(k,{message:e.form.errors.zip_code,class:"mt-2"},null,8,["message"])],4),(0,r.createElementVNode)("div",{class:"col-span-12 sm:col-span-4",style:(0,r.normalizeStyle)(e.form.city?null:"border-bottom:1px solid red")},[(0,r.createVNode)(_,{label:e.__("Ort"),placeholder:e.__("Ort"),modelValue:e.form.city,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.form.city=t})},null,8,["label","placeholder","modelValue"]),(0,r.createVNode)(k,{message:e.form.errors.city,class:"mt-2"},null,8,["message"])],4)]}
2)),actions:(0,r.withCtx)((function(){return[(0,r.createVNode)(N,{on:e.form.recentlySuccessful,class:"mr-3"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Gespeichert"))+". ",1)]})),_:1},8,["on"]),(0,r.createElementVNode)("button",{class:(0,r.normalizeClass)(["btn-primary",{"opacity-25":e.form.processing}]),disabled:e.form.processing},(0,r.toDisplayString)(e.__("Speichern")),11,m)]})),_:1},8,["onSubmitted"])}]])},1049:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6301),o=["width","height"];const i=(0,n(641).pM)({props:["width","height"]});const a=(0,n(6262).A)(i,[["render",function(e,t,n,i,a,s){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{margin:"auto",background:"#fff",display:"block"},width:e.width,height:e.height,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},t[0]||(t[0]=[(0,r.createElementVNode)("circle",{cx:"50",cy:"50",r:"30",stroke:"#003471","stroke-width":"10",fill:"none"},null,-1),(0,r.createElementVNode)("circle",{cx:"50",cy:"50",r:"30",stroke:"#007ab3","stroke-width":"8","stroke-linecap":"round",fill:"none"},[(0,r.createElementVNode)("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1.2048192771084336s",values:"0 50 50;180 50 50;720 50 50",keyTimes:"0;0.5;1"}),(0,r.createElementVNode)("animate",{attributeName:"stroke-dasharray",repeatCount:"indefinite",dur:"1.2048192771084336s",values:"18.84955592153876 169.64600329384882;94.2477796076938 94.24777960769377;18.84955592153876 169.64600329384882",keyTimes:"0;0.5;1"})],-1)]),8,o)}]])},1064:(e,t,n)=>{"use strict";var r=n(9612);e.exports=r.getPrototypeOf||null},1075:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6301);const o=(0,n(641).pM)({props:{quantity:{type:Number,default:3},showLink:{type:Boolean,default:!1},tags:{required:!0}}});const i=(0,n(6262).A)(o,[["render",function(e,t,n,o,i,a){var s=this,l=(0,r.resolveComponent)("Link"),c=(0,r.resolveComponent)("Text");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[this.showLink?((0,r.openBlock)(),(0,r.createBlock)(c,{key:0,type:"sm",as:"span",class:"inline-flex gap-2 flex-wrap"},{default:(0,r.withCtx)((function(){return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(s.tags.slice(0,s.quantity),(function(n,o){return(0,r.openBlock)(),(0,r.createBlock)(l,{class:"px-2 py-1 bg-slate-100 hover:bg-slate-200 rounded-md text-sm transition-colors inline-flex items-center",href:e.route("annonces.index",{commune:e.$page.props.commune.slug,tag:n.name.nl}),key:o},{default:(0,r.withCtx)((function(){return[t[0]||(t[0]=(0,r.createElementVNode)("svg",{viewBox:"0 0 20 20",fill:"currentColor",class:"w-3 h-3"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M9.493 2.853a.75.75 0 00-1.486-.205L7.545 6H4.198a.75.75 0 000 1.5h3.14l-.69 5H3.302a.75.75 0 000 1.5h3.14l-.435 3.148a.75.75 0 001.486.205L7.955 14h2.986l-.434 3.148a.75.75 0 001.486.205L12.456 14h3.346a.75.75 0 000-1.5h-3.14l.69-5h3.346a.75.75 0 000-1.5h-3.14l.435-3.147a.75.75 0 00-1.486-.205L12.045 6H9.059l.434-3.147zM8.852 7.5l-.69 5h2.986l.69-5H8.852z","clip-rule":"evenodd"})],-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(n.name.nl),1)]})),_:2},1032,["href"])})),128))]})),_:1})):(0,r.createCommentVNode)("",!0),this.showLink?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(c,{key:1,type:"sm",as:"span",class:"inline-flex items-center whitespace-nowrap gap-2 flex-wrap"},{default:(0,r.withCtx)((function(){return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(s.tags.slice(0,s.quantity),(function(e,n){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{class:"px-2 py-1 bg-slate-100 rounded-md text-sm inline-flex items-center",key:n},[t[1]||(t[1]=(0,r.createElementVNode)("svg",{viewBox:"0 0 20 20",fill:"currentColor",class:"w-3 h-3"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M9.493 2.853a.75.75 0 00-1.486-.205L7.545 6H4.198a.75.75 0 000 1.5h3.14l-.69 5H3.302a.75.75 0 000 1.5h3.14l-.435 3.148a.75.75 0 001.486.205L7.955 14h2.986l-.434 3.148a.75.75 0 001.486.205L12.456 14h3.346a.75.75 0 000-1.5h-3.14l.69-5h3.346a.75.75 0 000-1.5h-3.14l.435-3.147a.75.75 0 00-1.486-.205L12.045 6H9.059l.434-3.147zM8.852 7.5l-.69 5h2.986l.69-5H8.852z","clip-rule":"evenodd"})],-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.name.nl),1)])})),128))]})),_:1}))],64)}]])},1106:(e,t,n)=>{"use strict";let{nanoid:r}=n(5042),{isAbsolute:o,resolve:i}=n(197),{SourceMapConsumer:a,SourceMapGenerator:s}=n(1866),{fileURLToPath:l,pathToFileURL:c}
2=n(2739),u=n(3614),d=n(3878),p=n(9746),h=Symbol("fromOffsetCache"),f=Boolean(a&&s),m=Boolean(i&&o);class g{get from(){return this.file||this.id}constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!m||/^\w+:\/\//.test(t.from)||o(t.from)?this.file=t.from:this.file=i(t.from)),m&&f){let e=new d(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+r(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let o,i,a;if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);i=e.line,o=e.col}else i=r.line,o=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let s=this.origin(t,n,i,o);return a=s?new u(e,void 0===s.endLine?s.line:{column:s.column,line:s.line},void 0===s.endLine?s.column:{column:s.endColumn,line:s.endLine},s.source,s.file,r.plugin):new u(e,void 0===i?t:{column:n,line:t},void 0===i?n:{column:o,line:i},this.css,this.file,r.plugin),a.input={column:n,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(c&&(a.input.url=c(this.file).toString()),a.input.file=this.file),a}fromOffset(e){let t,n;if(this[h])n=this[h];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,o=e.length;r<o;r++)n[r]=t,t+=e[r].length+1;this[h]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,o=n.length-2;for(;r<o;)if(t=r+(o-r>>1),e<n[t])o=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let i,a,s=this.map.consumer(),u=s.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof n&&(i=s.originalPositionFor({column:r,line:n})),a=o(u.source)?c(u.source):new URL(u.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let d={column:u.column,endColumn:i&&i.column,endLine:i&&i.line,line:u.line,url:a.toString()};if("file:"===a.protocol){if(!l)throw new Error("file: protocol is not available in this PostCSS build");d.file=l(a)}let p=s.sourceContentFor(u.source);return p&&(d.source=p),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=g,g.default=g,p&&p.registerInput&&p.registerInput(g)},1111:e=>{e.exports={methods:{__:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.$page.props.language[e]?this.$page.props.language[e]:e;return Object.keys(t).forEach((function(e){n=n.replace(":"+e,t[e])})),n}}}},1154:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(6301),o={class:"md:grid md:grid-cols-3 md:gap-6"},i={class:"mt-5 md:mt-0 md:col-span-2"},a={class:"grid grid-cols-6 gap-6"},s={key:0,class:"flex items-center justify-end px-4 py-3 bg-slate-50 text-right sm:px-6 shadow sm:rounded-bl-md sm:rounded-br-md"};var l=n(641),c=n(4131);const u=(0,l.pM)({emits:["submitted"],components:{JetSectionTitle:c.A},computed:{hasActions:function(){return!!this.$slots.actions}}});const d=(0,n(6262).A)(u,[["render",function(e,t,n,l,c,u){var d=(0,r.resolveComponent)("jet-section-title");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createVNode)(d,null,{title:(0,r.withCtx)((function(){return[(0,r.renderSlot)(e.$slots,"title")]})),description:(0,r.withCtx)((function(){return[(0,r.renderSlot)(e.$slots,"description")]})),_:3}),(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("form",{onSubmit:t[0]||(t[0]=(0,r.withModifiers)((function(t){return e.$emit("submitted")}),["prevent"]))},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["px-4 py-5 bg-white sm:p-6 shadow",e.hasActions?"sm:rounded-tl-md sm:rounded-tr-md":"sm:rounded-md"])},[(0,r.createElementVNode)("div",a,[(0,r.renderSlot)(e.$slots,"form")])],2),e.hasActions?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.renderSlot)(e.$slots,"actions")])):(0,r.createCommentVNode)("",!0)],32)])])}]])},1161:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.filter=function(e,t,n,r){void 0===n&&(n=!0);void 0===r&&(r=1/0);return o(e,Array.isArray(t)?t:[t],n,r)},t.find=o,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,n,o){void 0===o&&(o=!0);for(var i=Array.isArray(n)?n:[n],a=0;a<i.length;a++){var s=i[a];if((0,r.isTag)(s)&&t(s))return s;if(o&&(0,r.hasChildren)(s)&&s.children.length>0){var l=e(t,s.children,!0);if(l)return l}}return null},t.existsOne=function e(t,n){return(Array.isArray(n)?n:[n]).some((function(n){return(0,r.isTag)(n)&&t(n)||(0,r.hasChildren)(n)&&e(t,n.children)}))},t.findAll=function(e,t){for(var n=[],o=[Array.isArray(t)?t:[t]],i=[0];;)if(i[0]>=o[0].length){if(1===o.length)return n;o.shift(),i.shift()}else{var a=o[0][i[0]++];(0,r.isTag)(a)&&e(a)&&n.push(a),(0,r.hasChildren)(a)&&a.children.length>0&&(i.unshift(0),o.unshift(a.children))}};var r=n(4128);function o(e,t,n,o){for(var i=[],a=[Array.isArray(t)?t:[t]],s=[0];;)if(s[0]>=a[0].length){if(1===s.length)return i;a.shift(),s.shift()}else{var l=a[0][s[0]++];if(e(l)&&(i.push(l),--o<=0))return i;n&&(0,r.hasChildren)(l)&&l.children.length>0&&(s.unshift(0),a.unshift(l.children))}}},1237:e=>{"use strict";e.exports=EvalError},1333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},1437:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var r=n(6301),o={class:"space-y-4 pt-5"},i={class:"space-y-4 pt-5"},a={class:"space-y-4 pt-5"},s={class:"flex flex-wrap"},l={class:"mr-4"},c={class:"space-y-4 pt-5"},u={class:"flex flex-wrap mb-4"},d={class:"mr-4"},p={class:"space-y-4 pt-5"},h={class:"mb-2"},f={class:"space-y-4 pt-5"},m={class:"mb-2"},g={class:"mb-2"},v={class:"mt-2"},y={class:"btn-primary",type:"submit"};var b=n(641),x=n(5720),w=n(9506),k=n(5384),_=n(9234);const E=(0,b.pM)({layout:x.A,components:{LmRadioGroup:w.ug,LmCheckBox:k.A,Head:_.p3},props:{commune:Object},data:function(){return{communeData:null,registrationValues:[],moderationPostValues:[],moderationEventValues:[],commentsPostsValues:[],commentsEventsValues:[],commentsModerationValues:[],tagCreationValues:[],enableTagsValues:[],showInDirectoryValues:[],form:this.$inertia.form({show_in_directory:this.commune.show_in_directory,verify_new_user:this.commune.verify_new_user,moderation_posts:this.commune.moderation_posts,moderation_events:this.commune.moderation_events,enable_comments_posts:this.commune.enable_comments_posts,enable_comments_events:this.commune.enable_comments_events,moderation_comments:this.commune.moderation_comments,tag_creation:this.tag_creation,enable_tags:this.enable_tags})}},mounted:function(){this.communeData=this.commune,this.setRadios()},methods:{setRadios:function(){this.showInDirectoryValues=[{name:"show_in_directory",value:!0,label:this.__("Aktivieren")},{name:"show_in_directory",value:!1,label:this.__("Deaktivieren")}],this.registrationValues=[{name:"verification",value:!0,label:this.__("Neue Benutzer verifizieren")},{name:"verification",value:!1,label:this.__("Neue Benutzer nicht verifizieren")}],this.moderationPostValues=[{name:"moderation_posts",value:!0,label:this.__("Moderation aktivieren")},{name:"moderation_posts",value:!1,label:this.__("Moderation deaktivieren")}],this.moderationEventValues=[{name:"moderation_events",value:!0,label:this.__("Moderation aktivieren")},{name:"moderation_events",value:!1,label:this.__("Moderation deaktivieren")}],this.commentsPostsValues=[{name:"comments_posts",value:1,label:this.__("Nur registrierte Benutzer")},{name:"comments_posts",value:2,label:this.__("Auch Benutzer ohne Login")},{name:"comments_posts",value:0,label:this.__("Kommentare deaktivieren")}],this.commentsEventsValues=[{name:"comments_events",value:1,label:this.__("Nur registrierte Benutzer")},{name:"comments_events",value:2,label:this.__("Auch Benutzer ohne Login")},{name:"comments_events",value:0,label:this.__("Kommentare deaktivieren")}],this.commentsModerationValues=[{name:"comments_moderation",value:2,label:this.__("Ja (Kommentare von Benutzern mit und ohne Login)")},{name:"comments_moderation",value:1,label:this.__("Nur Kommentare von Benutzern ohne Login")},{name:"comments_moderation",value:0,label:this.__("Nein")}],this.tagCreationValues=[{name:"tag_creation",value:!0,label:this.__("Aktivieren")},{name:"tag_creation",value:!1,label:this.__("Deaktivieren")}],this.enableTagsValues=[{name:"enable_tags",value:!0,label:this.__("Aktivieren")},{name:"enable_tags",value:!1,label:this.__("Deaktivieren")}]}}});const C=(0,n(6262).A)(E,[["render",function(e,t,n,b,x,w){var k=this,_=(0,r.resolve
2Component)("Head"),E=(0,r.resolveComponent)("Text"),C=(0,r.resolveComponent)("lm-radio-group");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(_,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("title",null,(0,r.toDisplayString)(e.__("Sicherheit"))+" - "+(0,r.toDisplayString)(e.__("Einstellungen")),1)]})),_:1}),(0,r.createVNode)(E,{type:"h1",text:e.__("Sicherheit")},null,8,["text"]),t[10]||(t[10]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createVNode)(E,{type:"h2",text:e.__("Einstellungen")},null,8,["text"]),(0,r.createElementVNode)("form",{onSubmit:t[9]||(t[9]=(0,r.withModifiers)((function(t){return e.form.post(e.route("admin.security.settings.update",{commune:k.commune.slug}))}),["prevent"])),class:"space-y-8"},[(0,r.createElementVNode)("div",o,[(0,r.createVNode)(E,{type:"h3",text:e.__("Général")},null,8,["text"]),(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(e.__("Montrer la commune dans le répertoire des communes sur le site principal de Lememento.ch")),1),(0,r.createVNode)(C,{disabled:!1,modelValue:e.form.show_in_directory,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.form.show_in_directory=t}),type:"bordered",value:!!e.commune.show_in_directory,values:e.showInDirectoryValues},null,8,["modelValue","value","values"])]),(0,r.createElementVNode)("div",i,[(0,r.createVNode)(E,{type:"h3",text:e.__("Registrierung")},null,8,["text"]),(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(e.__("Registrierung-text")),1),(0,r.createVNode)(C,{disabled:!1,modelValue:e.form.verify_new_user,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.form.verify_new_user=t}),type:"bordered",value:!!e.commune.verify_new_user,values:e.registrationValues},null,8,["modelValue","value","values"])]),(0,r.createElementVNode)("div",a,[(0,r.createVNode)(E,{type:"h3",text:e.__("Moderation (Events & Anzeigen)")},null,8,["text"]),(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(e.__("Einstellungen-Moderation-Text")),1),(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",l,[(0,r.createVNode)(E,{type:"p",style:{"font-weight":"bold"},text:e.__("Anzeigen")},null,8,["text"]),(0,r.createVNode)(C,{modelValue:e.form.moderation_posts,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.form.moderation_posts=t}),type:"bordered",value:!!e.commune.moderation_posts,values:e.moderationPostValues},null,8,["modelValue","value","values"])]),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(E,{type:"p",style:{"font-weight":"bold"},text:e.__("Events")},null,8,["text"]),(0,r.createVNode)(C,{modelValue:e.form.moderation_events,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.form.moderation_events=t}),type:"bordered",value:!!e.commune.moderation_events,values:e.moderationEventValues},null,8,["modelValue","value","values"])])])]),(0,r.createElementVNode)("div",c,[(0,r.createVNode)(E,{type:"h3",text:e.__("Kommentare")},null,8,["text"]),(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(e.__("Stellen Sie ein, wer bei Events und Anzeigen kommentieren darf.")),1),(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("div",d,[(0,r.createVNode)(E,{type:"p",style:{"font-weight":"bold"},text:e.__("Anzeigen")},null,8,["text"]),(0,r.createVNode)(C,{modelValue:e.form.enable_comments_posts,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.form.enable_comments_posts=t}),type:"bordered",class:"gap-4",value:e.commune.enable_comments_posts,values:e.commentsPostsValues},null,8,["modelValue","value","values"])]),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(E,{type:"p",style:{"font-weight":"bold"},text:e.__("Events")},null,8,["text"]),(0,r.createVNode)(C,{modelValue:e.form.enable_comments_events,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.form.enable_comments_events=t}),type:"bordered",value:e.commune.enable_comments_events,values:e.commentsEventsValues},null,8,["modelValue","value","values"])])])]),(0,r.createElementVNode)("div",p,[(0,r.createVNode)(E,{type:"h3",text:e.__("Kommentare")},null,8,["text"]),(0,r.createElementVNode)("p",h,(0,r.toDisplayString)(e.__("Möchten Sie Kommentare vor der Veröffentlichung überprüfen?")),1),(0,r.createVNode)(C,{modelValue:e.form.moderation_comments,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.form.moderation_comments=t}),type:"bordered",value:e.commune.moderation_comments,values:e.commentsModerationValues},null,8,["modelValue","value","values"])]),(0,r.createElementVNode)("div",f,[(0,r.createVNode)(E,{type:"h3",text:e.__("Tags")},null,8,["text"]),(0,r.createElementVNode)("p",m,(0,r.toDisplayString)(e.__("Geben Sie an, ob das Tagging-System für Ihre Gemeinde aktiviert ist"))+". ",1),(0,r.createVNode)(C,{modelValue:e.form.enable_tags,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.form.enable_tags=t}),type:"bordered",value:!!e.commune.enable_tags,values:e.enableTagsValues},null,8,["modelValue","value","values"]),(0,r.createElementVNode)("p",g,(0,r.toDisplayString)(e.__("Legen Sie fest, ob Nutzer bei der Erstellung einer Anzeige Tags erstellen können"))+". ",1),(0,r.createVNode)(C,{modelValue:e.form.tag_creation,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.form.tag_creation=t}),type:"bordered",value:!!e.commune.tag_creation,values:e.tagCreationValues},null,8,["modelValue","value","values"])]),(0,r.createElementVNode)("div",v,[(0,r.createElementVNode)("button",y,(0,r.toDisplayString)(e.__("Speichern")),1)])],32)])}]])},1476:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));
2o.push([e.id,".drag-trigger[data-v-6455f8ec]{cursor:move}",""]);const i=o},1482:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(6301);var o=n(641),i=n(5720),a=n(9506),s=n(9234);const l=(0,o.pM)({layout:i.A,components:{LmInputText:a.zX,LmInputNumber:a.$_,Head:s.p3},data:function(){return{testtext:"",testnumber:null}},methods:{}});const c=(0,n(6262).A)(l,[["render",function(e,t,n,o,i,a){var s=(0,r.resolveComponent)("Head"),l=(0,r.resolveComponent)("Text"),c=(0,r.resolveComponent)("lm-input-text"),u=(0,r.resolveComponent)("lm-input-number");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(s,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("title",null,(0,r.toDisplayString)(e.__("Profil")),1)]})),_:1}),(0,r.createVNode)(l,{type:"h1",text:e.__("Profil")},null,8,["text"]),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Name"))+": "+(0,r.toDisplayString)(e.$page.props.user.name)+" ",1),(0,r.createVNode)(c,{onIconClick:e.testfunc,iconClickable:!0,label:"Text component",placeholder:"Platzhalter",modelValue:e.testtext,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.testtext=t}),icon:"<i class='bi bi-person-check-fill'></i>"},null,8,["onIconClick","modelValue"]),(0,r.createTextVNode)(" Inputtext value: "+(0,r.toDisplayString)(e.testtext)+" ",1),(0,r.createVNode)(u,{min:"1000",max:"9999",onIconClick:e.testfunc2,iconClickable:!0,label:"Number component",placeholder:"3523",modelValue:e.testnumber,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.testnumber=t}),icon:"<i class='bi bi-person-check-fill'></i>"},null,8,["onIconClick","modelValue"]),(0,r.createTextVNode)(" Input number value: "+(0,r.toDisplayString)(e.testnumber),1)])}]])},1507:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E});var r=n(6301),o={class:"max-w-xl text-sm text-gray-600"},i={key:0,class:"mt-5 space-y-6"},a={key:0,fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24",stroke:"currentColor",class:"w-8 h-8 text-gray-500"},s={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:"w-8 h-8 text-gray-500"},l={class:"ml-3"},c={class:"text-sm text-gray-600"},u={class:"text-xs text-gray-500"},d={key:0,class:"text-green-500 font-semibold"},p={key:1},h={class:"flex items-center mt-5"},f={class:"mt-4"};var m=n(641),g=n(3257),v=n(7827),y=n(1816),b=n(756),x=n(4296),w=n(6786),k=n(4312);const _=(0,m.pM)({props:["sessions"],components:{JetActionMessage:g.A,JetActionSection:v.A,JetButton:y.A,JetDialogModal:b.A,JetInput:x.A,JetInputError:w.A,JetSecondaryButton:k.A},data:function(){return{confirmingLogout:!1,form:this.$inertia.form({password:""})}},methods:{confirmLogout:function(){var e=this;this.confirmingLogout=!0,setTimeout((function(){return e.$refs.password.focus()}),250)},logoutOtherBrowserSessions:function(){var e=this;this.form.delete(route("other-browser-sessions.destroy"),{preserveScroll:!0,onSuccess:function(){return e.closeModal()},onError:function(){return e.$refs.password.focus()},onFinish:function(){return e.form.reset()}})},closeModal:function(){this.confirmingLogout=!1,this.form.reset()}}});const E=(0,n(6262).A)(_,[["render",function(e,t,n,m,g,v){var y=(0,r.resolveComponent)("jet-action-message"),b=(0,r.resolveComponent)("jet-input"),x=(0,r.resolveComponent)("jet-input-error"),w=(0,r.resolveComponent)("jet-secondary-button"),k=(0,r.resolveComponent)("jet-button"),_=(0,r.resolveComponent)("jet-dialog-modal"),E=(0,r.resolveComponent)("jet-action-section");return(0,r.openBlock)(),(0,r.createBlock)(E,null,{title:(0,r.withCtx)((function(){return t[2]||(t[2]=[(0,r.createTextVNode)(" Browser Sessions ")])})),description:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("sessionText")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",o,(0,r.toDisplayString)(e.__("sessionDesc")),1),e.sessions.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.sessions,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"flex items-center",key:o},[(0,r.createElementVNode)("div",null,[n.agent.is_desktop?((0,r.openBlock)(),(0,r.createElementBlock)("svg",a,t[3]||(t[3]=[(0,r.createElementVNode)("path",{d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"},null,-1)]))):((0,r.openBlock)(),(0,r.createElementBlock)("svg",s,t[4]||(t[4]=[(0,r.createElementVNode)("path",{d:"M0 0h24v24H0z",stroke:"none"},null,-1),(0,r.createElementVNode)("rect",{x:"7",y:"4",width:"10",height:"16",rx:"1"},null,-1),(0,r.createElementVNode)("path",{d:"M11 5h2M12 17v.01"},null,-1)])))]),(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",c,(0,r.toDisplayString)(n.agent.platform)+" - "+(0,r.toDisplayString)(n.agent.browser),1),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",u,[(0,r.createTextVNode)((0,r.toDisplayString)(n.ip_address)+", ",1),n.is_current_device?((0,r.openBlock)(),(0,r.createElementBlock)("span",d,(0,r.toDisplayString)(e.__("Dieses Gerät")),1)):((0,r.openBlock)(),(0,r.createElementBlock)("span",p,(0,r.toDisplayString)(e.__("Zuletzt aktiv"))+" "+(0,r.toDisplayString)(n.last_active),1))])])])])})),128))])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",h,[(0,r.createElementVNode)("button",{class:"btn-primary",onClick:t[0]||(t[0]=function(){return e.confirmLogout&&e.confirmLogout.apply(e,arguments)})},(0,r.toDisplayString)(e.__("Andere Browser-Sitzungen abmelden")),1),(0,r.createVNode)(y,{on:e.form.recentlySuccessful,class:"ml-3"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Erledigt")),1)]})),_:1},8,["on"])]),(0,r.createVNode)(_,{show:e.confirmingLogout,onClose:e.closeModal},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Andere Browser-Sitzungen abmelden")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("confirmPassword"))+" ",1),(0,r.createElementVNode)("div",f,[(0,r.createVNode)(b,{type:"password",class:"mt-1 block w-3/4",placeholder:"Password",ref:"password",modelValue:e.form.password,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.form.password=t}),onKeyup:(0,r.withKeys)(e.logoutOtherBrowserSessions,["enter"])},null,8,["modelValue","onKeyup"]),(0,r.createVNode)(x,{message:e.form.errors.password,class:"mt-2"},null,8,["message"])])]})),footer:(0,r.withCtx)((function(){return[(0,r.createVNode)(w,{onClick:e.closeModal},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Abbrechen")),1)]})),_:1},8,["onClick"]),(0,r.createVNode)(k,{class:(0,r.normalizeClass)(["ml-2",{"opacity-25":e.form.processing}]),onClick:e.logoutOtherBrowserSessions,disabled:e.form.processing},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Andere Browser-Sitzungen abmelden")),1)]})),_:1},8,["onClick","class","disabled"])]})),_:1},8,["show","onClose"])]})),_:1})}]])},1508:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(6301),o={class:"px-4 py-6 xl:container xl:mx-auto"},i={class:"lg:flex lg:gap-x-6 lg:h-full"},a={class:"hidden lg:block sticky top-24"},s={class:"mb-8 lg:hidden"},l={key:0};var c=n(641),u=n(8367),d=n(6153),p=n(5560),h=n(9575),f=n(6581);const m=(0,c.pM)({layout:u.A,props:["sessions"],components:{JetSectionBorder:p.A,UpdateCompanyInformationForm:h.default,LmProfileMenu:d.A,LmAccordion:f.A},computed:{currentPage:function(){switch(this.route().current()){case"profile.show":return'<i class="bi bi-pers
2on-lines-fill mr-2"></i>'+this.__("Mein Profil");case"profile.notifications":return'<i class="bi bi-bell mr-2"></i>'+this.__("Benachrichtigungen");case"profile.messages":return'<i class="bi bi-chat-dots mr-2"></i>'+this.__("Nachrichten");case"profile.events":return'<i class="bi bi-calendar2-event mr-2"></i>'+this.__("Meine Events");case"profile.announcements":return'<i class="bi bi-megaphone mr-2"></i>'+this.__("Meine Anzeigen");case"profile.company":return'<i class="bi bi-house mr-2"></i>'+this.__("Mein Unternehmen")}}}});const g=(0,n(6262).A)(m,[["render",function(e,t,n,c,u,d){var p=(0,r.resolveComponent)("lm-profile-menu"),h=(0,r.resolveComponent)("lm-accordion"),f=(0,r.resolveComponent)("update-company-information-form"),m=(0,r.resolveComponent)("jet-section-border");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",a,[(0,r.createVNode)(p)]),(0,r.createElementVNode)("div",s,[(0,r.createVNode)(h,{title:e.currentPage},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(p)]})),_:1},8,["title"])])]),(0,r.createElementVNode)("div",null,[e.$page.props.jetstream.canUpdateProfileInformation?((0,r.openBlock)(),(0,r.createElementBlock)("div",l,[(0,r.createVNode)(f,{user:e.$page.props.user,annonceCopy:e.$page.props.userCompany[0]||[],categories:e.$page.props.categories},null,8,["user","annonceCopy","categories"]),(0,r.createVNode)(m)])):(0,r.createCommentVNode)("",!0)])])])])}]])},1514:e=>{"use strict";e.exports=Math.abs},1534:(e,t,n)=>{"use strict";let r=n(7793),o=n(1752);class i extends r{get selectors(){return o.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}}e.exports=i,i.default=i,r.registerRule(i)},1546:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var r=n(6301),o={class:"absolute w-full bottom-0 h-auto bg-cm-primary/80 backdrop-blur-sm rounded-b-lg",style:{}},i={class:"max-w-[1920px] mx-auto xl:container xl:mx-auto flex justify-between gap-x-8 items-center px-6 py-2 md:py-4 text-cm-secondary"},a={class:"gap-x-4 items-center hidden md:flex"},s={key:0,class:"text-default text-xs"},l={key:1,class:"text-default"},c={key:1,class:"relative"},u={class:"w-full h-auto bg-cm-primary rounded-b-lg",style:{}},d={class:"max-w-[1920px] mx-auto xl:container xl:mx-auto flex justify-between gap-x-8 items-center px-6 py-2 md:py-4 text-cm-secondary"},p={class:"gap-x-4 items-center hidden md:flex"},h={key:0,class:"text-default text-xs"},f={key:1,class:"text-default"};var m=n(641),g=n(9506),v=n(1857),y=n(1015);const b=(0,m.pM)({methods:{search:function(){this.$inertia.get(route("annonces.search",{commune:this.$page.props.commune.slug,q:this.searchVal}))}},props:{compact:{default:!1,type:Boolean},searchWidget:{default:!0,type:Boolean},title:{default:_("Willkommen in"),type:String},subtitle:{default:null,type:String}},data:function(){return{searchVal:"",titleData:"",subtitleData:""}},mounted:function(){var e;this.subtitleData=null!==(e=this.subtitle)&&void 0!==e?e:this.$page.props.commune.name,this.titleData=this.title},components:{LmInputText:g.zX,JetDropdownLink:y.A,JetDropdown:v.A}});const x=(0,n(6262).A)(b,[["render",function(e,t,n,m,g,v){var y=(0,r.resolveComponent)("Text"),b=(0,r.resolveComponent)("lm-input-text"),x=(0,r.resolveComponent)("jet-dropdown-link"),w=(0,r.resolveComponent)("jet-dropdown");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[e.$page.props.commune.header_image_url&&!e.compact?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,style:(0,r.normalizeStyle)("background-image: url(".concat(e.$page.props.storagePath+e.$page.props.commune.header_image_url,")")),class:"relative rounded-lg h-[220px] sm:h-[270px] md:h-[320px] lg:h-[380px] xl:h-[440px] bg-center bg-no-repeat flex flex-col justify-end xl:mx-auto max-w-[1920px]"},[(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(y,{type:"sm",color:"text-white",text:e.titleData},null,8,["text"]),t[2]||(t[2]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createVNode)(y,{as:"span",color:"text-white",type:"h2",class:"-mt-2",text:e.subtitleData},null,8,["text"])]),(0,r.createElementVNode)("div",a,[e.searchWidget?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.createVNode)(b,{onEnter:e.search,onIconClick:e.search,iconCl
2ickable:!0,placeholder:e.__("Suchen"),modelValue:e.searchVal,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.searchVal=t}),icon:"<svg viewBox='0 0 20 20' fill='currentColor' class='w-5 h-5'>\n <path fill-rule='evenodd' d='M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z' clip-rule='evenodd' /></svg>"},null,8,["onEnter","onIconClick","placeholder","modelValue"])])):(0,r.createCommentVNode)("",!0),e.$page.props.loggedin&&e.$page.props.userRole&&4!==e.$page.props.userRole&&0!==e.$page.props.userRole?((0,r.openBlock)(),(0,r.createElementBlock)("div",l,[(0,r.createVNode)(w,{width:"auto"},{trigger:(0,r.withCtx)((function(){return t[3]||(t[3]=[(0,r.createElementVNode)("svg",{fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-10 h-10 text-white hover:cursor-pointer"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v6m3-3H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)])})),content:(0,r.withCtx)((function(){return[(0,r.createVNode)(x,{href:e.route("annonces.create",{commune:e.$page.props.commune.slug,type:"annonce"})},{default:(0,r.withCtx)((function(){return[t[4]||(t[4]=(0,r.createElementVNode)("svg",{viewBox:"0 0 20 20",fill:"currentColor",class:"w-5 h-5 mr-2"},[(0,r.createElementVNode)("path",{d:"M13.92 3.845a19.361 19.361 0 01-6.3 1.98C6.765 5.942 5.89 6 5 6a4 4 0 00-.504 7.969 15.974 15.974 0 001.271 3.341c.397.77 1.342 1 2.05.59l.867-.5c.726-.42.94-1.321.588-2.021-.166-.33-.315-.666-.448-1.004 1.8.358 3.511.964 5.096 1.78A17.964 17.964 0 0015 10c0-2.161-.381-4.234-1.08-6.155zM15.243 3.097A19.456 19.456 0 0116.5 10c0 2.431-.445 4.758-1.257 6.904l-.03.077a.75.75 0 001.401.537 20.902 20.902 0 001.312-5.745 1.999 1.999 0 000-3.545 20.902 20.902 0 00-1.312-5.745.75.75 0 00-1.4.537l.029.077z"})],-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Neue Anzeige")),1)]})),_:1},8,["href"]),(0,r.createVNode)(x,{href:e.route("annonces.create",{commune:e.$page.props.commune.slug,type:"event"})},{default:(0,r.withCtx)((function(){return[t[5]||(t[5]=(0,r.createElementVNode)("svg",{viewBox:"0 0 20 20",fill:"currentColor",class:"w-5 h-5 mr-2"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M5.75 2a.75.75 0 01.75.75V4h7V2.75a.75.75 0 011.5 0V4h.25A2.75 2.75 0 0118 6.75v8.5A2.75 2.75 0 0115.25 18H4.75A2.75 2.75 0 012 15.25v-8.5A2.75 2.75 0 014.75 4H5V2.75A.75.75 0 015.75 2zm-1 5.5c-.69 0-1.25.56-1.25 1.25v6.5c0 .69.56 1.25 1.25 1.25h10.5c.69 0 1.25-.56 1.25-1.25v-6.5c0-.69-.56-1.25-1.25-1.25H4.75z","clip-rule":"evenodd"})],-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Neuer Event")),1)]})),_:1},8,["href"])]})),_:1})])):(0,r.createCommentVNode)("",!0)])])])],4)):(0,r.createCommentVNode)("",!0),!e.$page.props.commune.header_image_url||e.compact?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("div",d,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(y,{type:"sm",color:"text-white",text:e.titleData},null,8,["text"]),t[6]||(t[6]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createVNode)(y,{as:"span",color:"text-white",type:"h2",class:"",text:e.subtitleData},null,8,["text"])]),(0,r.createElementVNode)("div",p,[e.searchWidget?((0,r.openBlock)(),(0,r.createElementBlock)("div",h,[(0,r.createVNode)(b,{onEnter:e.search,onIconClick:e.search,iconClickable:!0,placeholder:e.__("Suchen"),modelValue:e.searchVal,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.searchVal=t}),icon:"<svg viewBox='0 0 20 20' fill='currentColor' class='w-5 h-5'>\n <path fill-rule='evenodd' d='M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z' clip-rule='evenodd' /></svg>"},null,8,["onEnter","onIconClick","placeholder","modelValue"])])):(0,r.createCommentVNode)("",!0),e.$page.props.loggedin&&e.$page.props.userRole&&4!==e.$page.props.userRole&&0!==e.$page.props.userRole?((0,r.openBlock)(),(0,r.createElementBlock)("div",f,[(0,r.createVNode)(w,{width:"auto"},{trigger:(0,r.withCtx)((function(){return t[7]||(t[7]=[(0,r.createElementVNode)("svg",{fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-10 h-10 text-white hover:cursor-pointer"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v6m3-3H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)])})),content:(0,r.withCtx)((function(){return[(0,r.createVNode)(x,{href:e.route("annonces.create",{commune:e.$page.props.commune.slug,type:"annonce"})},{default:(0,r.withCtx)((function(){return[t[8]||(t[8]=(0,r.createElementVNode)("svg",{viewBox:"0 0 20 20",fill:"currentColor",class:"w-5 h-5 mr-2"},[(0,r.createElementVNode)("path",{d:"M13.92 3.845a19.361 19.361 0 01-6.3 1.98C6.765 5.942 5.89 6 5 6a4 4 0 00-.504 7.969 15.974 15.974 0 001.271 3.341c.397.77 1.342 1 2.05.59l.867-.5c.726-.42.94-1.321.588-2.021-.166-.33-.315-.666-.448-1.004 1.8.358 3.511.964 5.096 1.78A17.964 17.964 0 0015 10c0-2.161-.381-4.234-1.08-6.155zM15.243 3.097A19.456 19.456 0 0116.5 10c0 2.431-.445 4.758-1.257 6.904l-.03.077a.75.75 0 001.401.537 20.902 20.902 0 001.312-5.745 1.999 1.999 0 000-3.545 20.902 20.902 0 00-1.312-5.745.75.75 0 00-1.4.537l.029.077z"})],-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Neue Anzeige")),1)]})),_:1},8,["href"]),(0,r.createVNode)(x,{href:e.route("annonces.create",{commune:e.$page.props.commune.slug,type:"event"})},{default:(0,r.withCtx)((function(){return[t[9]||(t[9]=(0,r.createElementVNode)("svg",{viewBox:"0 0 20 20",fill:"currentColor",class:"w-5 h-5 mr-2"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M5.75 2a.75.75 0 01.75.75V4h7V2.75a.75.75 0 011.5 0V4h.25A2.75 2.75 0 0118 6.75v8.5A2.75 2.75 0 0115.25 18H4.75A2.75 2.75 0 012 15.25v-8.5A2.75 2.75 0 014.75 4H5V2.75A.75.75 0 015.75 2zm-1 5.5c-.69 0-1.25.56-1.25 1.25v6.5c0 .69.56 1.25 1.25 1.25h10.5c.69 0 1.25-.56 1.25-1.25v-6.5c0-.69-.56-1.25-1.25-1.25H4.75z","clip-rule":"evenodd"})],-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Neuer Event")),1)]})),_:1},8,["href"])]})),_:1})])):(0,r.createCommentVNode)("",!0)])])])])):(0,r.createCommentVNode)("",!0)],64)}]])}
2,1549:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(6301),o={class:"bg-white max-w-7xl mx-auto py-8 lg:py-16 px-4"},i={class:"mb-8 text-center"},a={class:"mt-4 text-gray-500 text-lg"},s={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mt-12"},l=["href"],c={key:0,class:"h-48 w-full overflow-hidden"},u=["src","alt"],d={key:1,class:"h-48 w-full bg-gray-200 flex items-center justify-center"},p={class:"text-gray-500 text-lg font-semibold"},h={class:"p-6"},f={class:"text-gray-600 line-clamp-3 text-base"},m={key:0,class:"text-center py-12"};var g=n(1049),v=n(6523),y=n(9234),b=n(2812);const x=(0,r.defineComponent)({components:{Head:y.p3,TopBar:v.A,LmSpinner:g.A},props:{communes:{type:Array,default:function(){return[]}}},layout:b.A});const w=(0,n(6262).A)(x,[["render",function(e,t,n,g,v,y){var b=(0,r.resolveComponent)("TopBar"),x=(0,r.resolveComponent)("Head"),w=(0,r.resolveComponent)("Text");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(b),(0,r.createVNode)(x,{title:e.__("Répertoire des communes")},null,8,["title"]),(0,r.createElementVNode)("section",o,[(0,r.createElementVNode)("div",i,[(0,r.createVNode)(w,{type:"h1",text:e.__("Gemeinde wechseln")},null,8,["text"]),(0,r.createElementVNode)("p",a,(0,r.toDisplayString)(e.__("Découvrez les communes partenaires et accédez à leurs plateformes locales.")),1)]),(0,r.createElementVNode)("div",s,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.communes,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t.slug,class:"bg-white rounded-xl shadow-lg hover:shadow-xl transition-shadow duration-300 overflow-hidden group border border-gray-100"},[(0,r.createElementVNode)("a",{href:e.route("communalhome",{commune:t.slug}),class:"block"},[t.header_image_url?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[(0,r.createElementVNode)("img",{class:"object-cover w-full h-full transform group-hover:scale-105 transition-transform duration-300",src:"/storage/"+t.header_image_url,alt:t.name},null,8,u)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",d,[(0,r.createElementVNode)("span",p,(0,r.toDisplayString)(t.name),1)])),(0,r.createElementVNode)("div",h,[(0,r.createVNode)(w,{type:"h3",text:t.name,class:"mb-2 text-xl font-semibold text-lm-blue group-hover:text-lm-light-blue transition-colors duration-300"},null,8,["text"]),(0,r.createElementVNode)("p",f,(0,r.toDisplayString)(t.description),1)])],8,l)])})),128))]),0===e.communes.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",m,[(0,r.createVNode)(w,{type:"p",text:e.__("Aucune commune disponible pour le moment."),class:"text-gray-500"},null,8,["text"])])):(0,r.createCommentVNode)("",!0)])],64)}]])},1607:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E});var r=n(6301),o={class:"p-6 xl:container xl:mx-auto"},i={key:0,class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 mt-4"},a={key:0,class:"border rounded-md shadow-md p-4"},s=["href","target"],l={key:1},c={class:"divide-y divide-gray-200"},u=["innerHTML"],d={key:2},p={class:"col-span-12 mt-2 md:col-span-8 space-y-8 flex flex-col"},h={value:null},f=["value"];var m=n(641),g=n(8367),v=n(1546),y=n(2521),b=n(3463),x=n(1049),w=n(6581),k=n(5512);const _=(0,m.pM)({layout:g.A,components:{LmStage:v.default,LmNews:y.A,AnnonceTeaser:b.A,LmSpinner:x.A,LmAccordion:w.A,AnnonceGrid:k.A},data:function(){return{q:"",display:null,category:null,orderby:null,searchUrl:"",page:1,tags:[]}},props:{commune:Object,companies:Object,categories:Object},mounted:function(){var e,t=new URLSearchParams(window.location.search);this.category=null!==(e=t.get("category"))&&void 0!==e?e:null},methods:{search:function(e){var t=this.generateUrlParams();this.$inertia.visit(e,{method:"get",data:t})},generateUrlParams:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={};if(this.q.length>2&&(t.q=this.q),this.category&&(t.category=this.category),this.orderby&&(t.orderby=this.orderby),e&&(t.page=this.page),this.tags.length>0){var n=this.tags.join(",");t.tag=n}return t}}});const E=(0,n(6262).A)(_,[["render",function(e,t,n,m,g,v){var y=(0,r.resolve
2Component)("Head"),b=(0,r.resolveComponent)("lm-stage"),x=(0,r.resolveComponent)("Text"),w=(0,r.resolveComponent)("lm-accordion"),k=(0,r.resolveComponent)("AnnonceGrid");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(y,{title:e.__("Ãber")+" "+e.commune.name},null,8,["title"]),(0,r.createVNode)(b),(0,r.createElementVNode)("div",o,[(0,r.createVNode)(x,{class:"mb-4",type:"h1",text:e.__("Ãber")+" "+e.commune.name},null,8,["text"]),(0,r.createVNode)(x,{type:"p",class:"mb-8 prose max-w-prose",text:e.commune.description},null,8,["text"]),e.commune.linklists?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.commune.linklists,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:e.name},[e.active?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[(0,r.createVNode)(x,{type:"h4",class:"mb-4",text:e.name},null,8,["text"]),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.links,(function(e,n){return(0,r.openBlock)(),(0,r.createElementBlock)("a",{key:n,href:e.url,target:[e.new_window?"_blank":""],class:"font-medium text-cm-primary hover:opacity-80 block mb-2"},[t[2]||(t[2]=(0,r.createElementVNode)("i",{class:"bi bi-chevron-right"},null,-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.name),1)],8,s)})),128))])):(0,r.createCommentVNode)("",!0)],64)})),128))])):(0,r.createCommentVNode)("",!0),e.commune.faqs.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",l,[t[3]||(t[3]=(0,r.createElementVNode)("hr",{class:"border-t border-gray-200 my-8"},null,-1)),(0,r.createVNode)(x,{type:"h2",class:"mb-2",text:e.__("Häufig gestellte Fragen")},null,8,["text"]),(0,r.createElementVNode)("div",c,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.commune.faqs,(function(t,n){return(0,r.openBlock)(),(0,r.createBlock)(w,{key:n,title:t.title},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",{class:"about_faqs_html",innerHTML:e.$sanitize(t.content)},null,8,u)]})),_:2},1032,["title"])})),128))])])):(0,r.createCommentVNode)("",!0),0!==this.companies.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",d,[t[4]||(t[4]=(0,r.createElementVNode)("hr",{class:"border-t border-gray-200 my-8"},null,-1)),(0,r.createVNode)(x,{type:"h2",class:"mb-2",text:e.__("Répertoire des entreprises")},null,8,["text"]),(0,r.createElementVNode)("div",p,[(0,r.createElementVNode)("div",null,[(0,r.withDirectives)((0,r.createElementVNode)("select",{disabled:"","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.category=t}),onChange:t[1]||(t[1]=function(t){return e.search(e.route("annonces.companies",{commune:e.$page.props.commune.slug,category:e.category}))}),id:"category",class:"block mb-2 rounded w-full bg-slate-100/80 border-none focus:ring-gray-200"},[(0,r.createElementVNode)("option",h,(0,r.toDisplayString)(e.__("Alle Kategorien")),1),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.categories,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("option",{key:t.name,value:t.id},(0,r.toDisplayString)(t.name[e.$page.props.locale]),9,f)})),128))],544),[[r.vModelSelect,e.category]])]),(0,r.createVNode)(k,{columns:3,isCompaniesDisplay:"",items:this.companies},null,8,["items"])])])):(0,r.createCommentVNode)("",!0)])],64)}]])},1670:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>L});var r=n(6301),o={class:"divide-y divide-gray-200 m-5"},i={class:"flex items-center gap-2"},a=["src"],s={class:"flex-grow"},l={class:"flex items-center flex-wrap"},c={class:"flex gap-2 flex-wrap"},u={class:"flex flex-col lg:hidden"},d=["onClick","title"],p=["onClick","title"],h={class:"hidden lg:flex gap-2 items-center"},f={class:"flex"},m=["onClick","title"],g={class:"flex"},v=["onClick","title"],y={key:0,class:"flex justify-center mt-4"},b={key:0,class:"rounded-full bg-slate-100 flex items-center mb-4"},x={key:1,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},w={key:3,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},k={class:"py-2 h-full flex items-center first:rounded-l-full last:rounded-r-full px-3"},_={key:5,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},E={key:7,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},C={class:"font-semibold"},N={class:"font-semibold"};var S=n(641),V=n(9234),A=n(5720),D=n(6581),M=n(1963),T=n(1857),B=n(756),O=n(1049);const P=(0,S.pM)({layout:A.A,components:{LmAccordion:D.A,categoryBadge:M.A,JetDropdown:T.A,DialogModal:B.A,LmSpinner:O.A,Head:V.p3},props:{annonces:Object},data:function(){return{deleteAnnonceData:{title:null,id:null},deleteModal:!1,restoreAnnonceData:{title:null,id:null},restoreModal:!1}},methods:{updateDeleteInfo:function(e,t){this.deleteAnnonceData.title=e,this.deleteAnnonceData.id=t,this.deleteModal=!0},updateRestoreInfo:function(e,t){this.restoreAnnonceData.title=e,this.restoreAnnonceData.id=t,this.restoreModal=!0},confirmDeleteAnnonce:function(){this.$inertia.post(route("admin.archives.destroy",{commune:this.$page.props.commune.slug}),{annonce_id:this.deleteAnnonceData.id},{preserveState:!1})},confirmRestoreAnnonce:function(){this.$inertia.post(route("admin.archives.restore",{commune:this.$page.props.commune.slug}),{annonce_id:this.restoreAnnonceData.id},{preserveState:!1})},statusClass:function(e){switch(e.status){case 0:return"text-gray-600";case 1:return"text-lm-blue";case 2:return"text-emerald-700"}}},computed:{}});const L=(0,n(6262).A)(P,[["render",function(e,t,n,S,V,A){var D=(0,r.resolve
2Component)("Head"),M=(0,r.resolveComponent)("Text"),T=(0,r.resolveComponent)("Link"),B=(0,r.resolveComponent)("category-badge"),O=(0,r.resolveComponent)("dialog-modal");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(D,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("title",null,(0,r.toDisplayString)(e.__("Corbeille")),1)]})),_:1}),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(M,{type:"h1",text:e.__("Corbeille")},null,8,["text"]),(0,r.createElementVNode)("div",o,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.annonces.data,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"flex lg:items-center lg:justify-between w-full p-2 flex-col lg:flex-row",key:o},[(0,r.createElementVNode)("div",i,[n.header_image_url?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,src:n.header_image_url,class:"block h-12 sm:h-20 w-12 sm:w-20 rounded-sm object-cover mr-2"},null,8,a)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",l,[(0,r.createVNode)(T,{class:"text-xl mr-2",href:e.route("annonces.show",{commune:e.$page.props.commune.slug,annonce:n.id,slug:n.slug}),title:e.__("Titel")},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(n.title),1)]})),_:2},1032,["href","title"]),(0,r.createVNode)(B,{category:n.category},null,8,["category"])]),(0,r.createElementVNode)("div",c,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.tags,(function(n,o){return(0,r.openBlock)(),(0,r.createBlock)(T,{href:e.route("annonces.index",{commune:e.$page.props.commune.slug,tag:n.name.nl}),class:"px-2 py-1 bg-slate-100 hover:bg-slate-200 rounded-md text-sm transition-colors",key:o},{default:(0,r.withCtx)((function(){return[t[6]||(t[6]=(0,r.createElementVNode)("i",{class:"bi bi-hash"},null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(n.name.nl),1)]})),_:2},1032,["href"])})),128))])]),(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("button",{onClick:function(t){return e.updateDeleteInfo(n.title,n.id)},class:"transition-colors bg-slate-100 hover:bg-red-800 hover:text-white px-3 py-2 rounded-b-md",href:"#",title:e.__("Löschen")}
2,t[7]||(t[7]=[(0,r.createElementVNode)("i",{class:"bi bi-trash"},null,-1)]),8,d),(0,r.createElementVNode)("button",{onClick:function(t){return e.updateRestoreInfo(n.title,n.id)},class:"transition-green bg-slate-100 hover:bg-green-800 hover:text-white px-3 py-2 rounded-r-md",href:"#",title:e.__("Rétablir")},t[8]||(t[8]=[(0,r.createElementVNode)("i",{class:"bi bi-folder-symlink"},null,-1)]),8,p)])]),(0,r.createElementVNode)("div",h,[t[11]||(t[11]=(0,r.createElementVNode)("div",{class:"flex items-center"},null,-1)),(0,r.createElementVNode)("div",f,[(0,r.createElementVNode)("button",{onClick:function(t){return e.updateDeleteInfo(n.title,n.id)},class:"transition-colors bg-slate-100 hover:bg-red-800 hover:text-white px-3 py-2 rounded-r-md",href:"#",title:e.__("Supprimer définitivement")},t[9]||(t[9]=[(0,r.createElementVNode)("i",{class:"bi bi-trash"},null,-1)]),8,m)]),(0,r.createElementVNode)("div",g,[(0,r.createElementVNode)("button",{onClick:function(t){return e.updateRestoreInfo(n.title,n.id)},class:"transition-green bg-slate-100 hover:bg-green-800 hover:text-white px-3 py-2 rounded-r-md",href:"#",title:e.__("Wiederherstellen")},t[10]||(t[10]=[(0,r.createElementVNode)("i",{class:"bi bi-folder-symlink"},null,-1)]),8,v)])])])})),128))]),e.annonces.last_page>1?((0,r.openBlock)(),(0,r.createElementBlock)("div",y,[e.annonces.data.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",b,[e.annonces.current_page>1?((0,r.openBlock)(),(0,r.createBlock)(T,{key:0,href:e.annonces.first_page_url,class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[12]||(t[12]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-left"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),1===e.annonces.current_page?((0,r.openBlock)(),(0,r.createElementBlock)("div",x,t[13]||(t[13]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-left"},null,-1)]))):(0,r.createCommentVNode)("",!0),e.annonces.prev_page_url?((0,r.openBlock)(),(0,r.createBlock)(T,{key:2,href:e.annonces.prev_page_url,class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[14]||(t[14]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-left"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),1===e.annonces.current_page?((0,r.openBlock)(),(0,r.createElementBlock)("div",w,t[15]||(t[15]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-left"},null,-1)]))):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",k,(0,r.toDisplayString)(e.annonces.current_page+" / "+e.annonces.last_page),1),e.annonces.next_page_url?((0,r.openBlock)(),(0,r.createBlock)(T,{key:4,href:e.annonces.next_page_url,class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[16]||(t[16]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-right"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),e.annonces.next_page_url?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",_,t[17]||(t[17]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-right"},null,-1)]))),e.annonces.current_page<e.annonces.last_page?((0,r.openBlock)(),(0,r.createBlock)(T,{key:6,href:e.annonces.last_page_url,class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[18]||(t[18]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-right"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),e.annonces.current_page===e.annonces.last_page?((0,r.openBlock)(),(0,r.createElementBlock)("div",E,t[19]||(t[19]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-right"},null,-1)]))):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(O,{show:e.deleteModal,onClose:t[2]||(t[2]=function(t){return e.deleteModal=!1})},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Anzeige löschen")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("p",C,(0,r.toDisplayString)(e.__("Sind Sie sicher?")),1),(0,r.createElementVNode)("p",null," «"+(0,r.toDisplayString)(e.deleteAnnonceData.title)+"» "+(0,r.toDisplayString)(e.__("delete annonce text")),1)]})),footer:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(t){return e.deleteModal=!1}),class:"mr-4"},(0,r.toDisplayString)(e.__("Abbrechen")),1),(0,r.createElementVNode)("button",{onClick:t[1]||(t[1]=function(){return e.confirmDeleteAnnonce&&e.confirmDeleteAnnonce.apply(e,arguments)}),class:"bg-red-700 hover:bg-red-800 px-3 py-2 rounded-md text-white"},(0,r.toDisplayString)(e.__("Löschen")),1)]})),_:1},8,["show"]),(0,r.createVNode)(O,{show:e.restoreModal,onClose:t[5]||(t[5]=function(t){return e.restoreModal=!1})},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Wiederherstellen")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("p",N,(0,r.toDisplayString)(e.__("Sind Sie sicher?")),1),(0,r.createElementVNode)("p",null," «"+(0,r.toDisplayString)(e.restoreAnnonceData.title)+"» "+(0,r.toDisplayString)(e.__("restore annonce text")),1)]})),footer:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",{onClick:t[3]||(t[3]=function(t){return e.restoreModal=!1}),class:"mr-4"},(0,r.toDisplayString)(e.__("Abbrechen")),1),(0,r.createElementVNode)("button",{onClick:t[4]||(t[4]=function(){return e.confirmRestoreAnnonce&&e.confirmRestoreAnnonce.apply(e,arguments)}),class:"bg-green-700 hover:bg-green-800 px-3 py-2 rounded-md text-white"},(0,r.toDisplayString)(e.__("Wiederherstellen")),1)]})),_:1},8,["show"])])],64)}]])},1678:(e,t,n)=>{"use strict";n.d(t,{H:()=>yt});var r=n(6301);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 4,183 bytes, line 2
2t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var d=u(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),p=u(/Edge/i),h=u(/firefox/i),f=u(/safari/i)&&!u(/chrome/i)&&!u(/android/i),m=u(/iP(ad|od|hone)/i),g=u(/chrome/i)&&u(/android/i),v={capture:!1,passive:!1};function y(e,t,n){e.addEventListener(t,n,!d&&v)}function b(e,t,n){e.removeEventListener(t,n,!d&&v)}function x(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function w(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function k(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&x(e,t):x(e,t))||r&&e===n)return e;if(e===n)break}while(e=w(e))}return null}var _,E=/\s+/g;function C(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(E," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(E," ")}}function N(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function S(e,t){var n="";if("string"==typeof e)n=e;else do{var r=N(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function V(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function A(){var e=document.scrollingElement;return e||document.documentElement}function D(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var i,a,s,l,c,u,p;if(e!==window&&e.parentNode&&e!==A()?(a=(i=e.getBoundingClientRect()).top,s=i.left,l=i.bottom,c=i.right,u=i.height,p=i.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,p=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!d))do{if(o&&o.getBoundingClientRect&&("none"!==N(o,"transform")||n&&"static"!==N(o,"position"))){var h=o.getBoundingClientRect();a-=h.top+parseInt(N(o,"border-top-width")),s-=h.left+parseInt(N(o,"border-left-width")),l=a+i.height,c=s+i.width;break}}while(o=o.parentNode);if(r&&e!==window){var f=S(o||e),m=f&&f.a,g=f&&f.d;f&&(l=(a/=g)+(u/=g),c=(s/=m)+(p/=m))}return{top:a,left:s,bottom:l,right:c,width:p,height:u}}}function M(e,t,n){for(var r=L(e,!0),o=D(e)[t];r;){var i=D(r)[n];if(!("top"===n||"left"===n?o>=i:o<=i))return r;if(r===A())break;r=L(r,!1)}return!1}function T(e,t,n,r){for(var o=0,i=0,a=e.children;i<a.length;){if("none"!==a[i].style.display&&a[i]!==Re.ghost&&(r||a[i]!==Re.dragged)&&k(a[i],n.draggable,e,!1)){if(o===t)return a[i];o++}i++}return null}function B(e,t){for(var n=e.lastElementChild;
vendor: 6,617 bytes, line 2
2n&&(n===Re.ghost||"none"===N(n,"display")||t&&!x(n,t));)n=n.previousElementSibling;return n||null}function O(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Re.clone||t&&!x(e,t)||n++;return n}function P(e){var t=0,n=0,r=A();if(e)do{var o=S(e),i=o.a,a=o.d;t+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function L(e,t){if(!e||!e.getBoundingClientRect)return A();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=N(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return A();if(r||t)return n;r=!0}}}while(n=n.parentNode);return A()}function I(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function j(e,t){return function(){if(!_){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),_=setTimeout((function(){_=void 0}),t)}}}function R(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function $(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var z="Sortable"+(new Date).getTime();function F(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==N(e,"display")&&e!==Re.ghost){t.push({target:e,rect:D(e)});var n=i({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=S(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var o=!1,i=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,s=D(n),l=n.prevFromRect,c=n.prevToRect,u=e.rect,d=S(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&I(l,s)&&!I(a,s)&&(u.top-s.top)/(u.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(t=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,l,c,r.options)),I(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,u,s,t)),t&&(o=!0,i=Math.max(i,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),o?e=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){N(e,"transition",""),N(e,"transform","");var o=S(this.el),i=o&&o.a,a=o&&o.d,s=(t.left-n.left)/(i||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,N(e,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),N(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),N(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){N(e,"transition",""),N(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}var H=[],U={initializeByDefault:!0},W={mount:function(e){for(var t in U)U.hasOwnProperty(t)&&!(t in e)&&(e[t]=U[t]);H.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),H.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=e+"Global";H.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][o]&&t[r.pluginName][o](i({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](i({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var o in H.forEach((function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var i=new r(e,t,e.options);i.sortable=e,i.options=e.options,e[o]=i,l(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var i=this.modifyOption(e,o,e.options[o]);void 0!==i&&(e.options[o]=i)}},getEventProperties:function(e,t){var n={};return H.forEach((function(r){"function"==typeof r.eventProperties&&l(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return H.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};var q=["evt"],Y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=c(n,q);W.pluginEvent.bind(Re)(e,t,i({dragEl:K,parentEl:J,ghostEl:X,rootEl:Z,nextEl:Q,lastDownEl:ee,cloneEl:te,cloneHidden:ne,dragStarted:me,putSortable:le,activeSortable:Re.active,originalEvent:r,oldIndex:re,oldDraggableIndex:ie,newIndex:oe,newDraggableIndex:ae,hideGhostForTarget:Pe,unhideGhostForTarget:Le,cloneNowHidden:function(){ne=!0},cloneNowShown:function(){ne=!1},dispatchSortableEvent:function(e){G({sortable:t,name:e,originalEvent:r})}},o))};function G(e){!function(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,a=e.cloneEl,s=e.toEl,l=e.fromEl,c=e.oldIndex,u=e.newIndex,h=e.oldDraggableIndex,f=e.newDraggableIndex,m=e.originalEvent,g=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[z]){var y,b=t.options,x="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||d||p?(y=document.createEvent("Event")).initEvent(r,!0,!0):y=new CustomEvent(r,{bubbles:!0,cancelable:!0}),y.to=s||n,y.from=l||n,y.item=o||n,y.clone=a,y.oldIndex=c,y.newIndex=u,y.oldDraggableIndex=h,y.newDraggableIndex=f,y.originalEvent=m,y.pullMode=g?g.lastPutMode:void 0;var w=i(i({},v),W.getEventProperties(r,t));for(var k in w)y[k]=w[k];n&&n.dispatchEvent(y),b[x]&&b[x].call(t,y)}}(i({putSortable:le,cloneEl:te,targetEl:K,rootEl:Z,oldIndex:re,oldDraggableIndex:ie,newIndex:oe,newDraggableIndex:ae},e))}var K,J,X,Z,Q,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,de,pe,he,fe,me,ge,ve,ye,be,xe=!1,we=!1,ke=[],_e=!1,Ee=!1,Ce=[],Ne=!1,Se=[],Ve="undefined"!=typeof document,Ae=m,De=p||d?"cssFloat":"float",Me=Ve&&!g&&!m&&"draggable"in document.createElement("div"),Te=function(){if(Ve){if(d)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}
vendor: 4,832 bytes, line 2
2(),Be=function(e,t){var n=N(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=T(e,0,t),i=T(e,1,t),a=o&&N(o),s=i&&N(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+D(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+D(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[De]||i&&"none"===n[De]&&l+c>r)?"vertical":"horizontal"},Oe=function(e){function t(e,n){return function(r,o,i,a){var s=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,i,a),n)(r,o,i,a);var l=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==a(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Pe=function(){!Te&&X&&N(X,"display","none")},Le=function(){!Te&&X&&N(X,"display","")};Ve&&document.addEventListener("click",(function(e){if(we)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),we=!1,!1}),!0);var Ie=function(e){if(K){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,i=e.clientY,ke.some((function(e){var t=e[z].options.emptyInsertThreshold;if(t&&!B(e)){var n=D(e),r=o>=n.left-t&&o<=n.right+t,s=i>=n.top-t&&i<=n.bottom+t;return r&&s?a=e:void 0}})),a);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[z]._onDragOver(n)}}var o,i,a},je=function(e){K&&K.parentNode[z]._isOutsideThisEl(e.target)};function Re(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=l({},t),e[z]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Be(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Re.supportPointer&&"PointerEvent"in window&&!f,emptyInsertThreshold:5};for(var r in W.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in Oe(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&Me,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?y(e,"pointerdown",this._onTapStart):(y(e,"mousedown",this._onTapStart),y(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(y(e,"dragover",this),y(e,"dragenter",this)),ke.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),l(this,F())}function $e(e,t,n,r,o,i,a,s){var l,c,u=e[z],h=u.options.onMove;return!window.CustomEvent||d||p?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=o||t,l.relatedRect=i||D(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),h&&(c=h.call(u,l,a)),c}function ze(e){e.draggable=!1}function Fe(){Ne=!1}function He(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Ue(e){return setTimeout(e,0)}function We(e){return clearTimeout(e)}Re.prototype={constructor:Re,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ge=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,K):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=r.filter;
vendor: 6,587 bytes, line 2
2if(function(e){Se.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&Se.push(r)}}(n),!K&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!f||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=k(s,r.draggable,n,!1))&&s.animated||ee===s)){if(re=O(s),ie=O(s,r.draggable),"function"==typeof c){if(c.call(this,e,s,this))return G({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),Y("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=k(l,r.trim(),n,!1))return G({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),Y("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!k(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,o=this,i=o.el,a=o.options,s=i.ownerDocument;if(n&&!K&&n.parentNode===i){var l=D(n);if(Z=i,J=(K=n).parentNode,Q=K.nextSibling,ee=n,se=a.group,Re.dragged=K,ce={target:K,clientX:(t||e).clientX,clientY:(t||e).clientY},he=ce.clientX-l.left,fe=ce.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,K.style["will-change"]="all",r=function(){Y("delayEnded",o,{evt:e}),Re.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!h&&o.nativeDraggable&&(K.draggable=!0),o._triggerDragStart(e,t),G({sortable:o,name:"choose",originalEvent:e}),C(K,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){V(K,e.trim(),ze)})),y(s,"dragover",Ie),y(s,"mousemove",Ie),y(s,"touchmove",Ie),y(s,"mouseup",o._onDrop),y(s,"touchend",o._onDrop),y(s,"touchcancel",o._onDrop),h&&this.nativeDraggable&&(this.options.touchStartThreshold=4,K.draggable=!0),Y("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(p||d))r();else{if(Re.eventCanceled)return void this._onDrop();y(s,"mouseup",o._disableDelayedDrag),y(s,"touchend",o._disableDelayedDrag),y(s,"touchcancel",o._disableDelayedDrag),y(s,"mousemove",o._delayedDragTouchMoveHandler),y(s,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&y(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){K&&ze(K),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._disableDelayedDrag),b(e,"touchend",this._disableDelayedDrag),b(e,"touchcancel",this._disableDelayedDrag),b(e,"mousemove",this._delayedDragTouchMoveHandler),b(e,"touchmove",this._delayedDragTouchMoveHandler),b(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?y(document,"pointermove",this._onTouchMove):y(document,t?"touchmove":"mousemove",this._onTouchMove):(y(K,"dragend",this),y(Z,"dragstart",this._onDragStart));try{document.selection?Ue((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(xe=!1,Z&&K){Y("dragStarted",this,{evt:t}),this.nativeDraggable&&y(document,"dragover",je);var n=this.options;!e&&C(K,n.dragClass,!1),C(K,n.ghostClass,!0),Re.active=this,e&&this._appendGhost(),G({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ue){this._lastX=ue.clientX,this._lastY=ue.clientY,Pe();for(var e=document.elementFromPoint(ue.clientX,ue.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ue.clientX,ue.clientY))!==t;)t=e;if(K.parentNode[z]._isOutsideThisEl(e),t)do{if(t[z]){if(t[z]._onDragOver({clientX:ue.clientX,clientY:ue.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Le()}},_onTouchMove:function(e){if(ce){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=X&&S(X,!0),a=X&&i&&i.a,s=X&&i&&i.d,l=Ae&&be&&P(be),c=(o.clientX-ce.clientX+r.x)/(a||1)+(l?l[0]-Ce[0]:0)/(a||1),u=(o.clientY-ce.clientY+r.y)/(s||1)+(l?l[1]-Ce[1]:0)/(s||1);if(!Re.active&&!xe){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(X){i?(i.e+=c-(de||0),i.f+=u-(pe||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");N(X,"webkitTransform",d),N(X,"mozTransform",d),N(X,"msTransform",d),N(X,"transform",d),de=c,pe=u,ue=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!X){var e=this.options.fallbackOnBody?document.body:Z,t=D(K,!0,Ae,!0,e),n=this.options;if(Ae){for(be=e;"static"===N(be,"position")&&"none"===N(be,"transform")&&be!==document;)be=be.parentNode;be!==document.body&&be!==document.documentElement?(be===document&&(be=A()),t.top+=be.scrollTop,t.left+=be.scrollLeft):be=A(),Ce=P(be)}C(X=K.cloneNode(!0),n.ghostClass,!1),C(X,n.fallbackClass,!0),C(X,n.dragClass,!0),N(X,"transition",""),N(X,"transform",""),N(X,"box-sizing","border-box"),N(X,"margin",0),N(X,"top",t.top),N(X,"left",t.left),N(X,"width",t.width),N(X,"height",t.height),N(X,"opacity","0.8"),N(X,"position",Ae?"absolute":"fixed"),N(X,"zIndex","100000"),N(X,"pointerEvents","none"),Re.ghost=X,e.appendChild(X),N(X,"transform-origin",he/parseInt(X.style.width)*100+"% "+fe/parseInt(X.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;Y("dragStart",this,{evt:e}),Re.eventCanceled?this._onDrop():(Y("setupClone",this),Re.eventCanceled||((te=$(K)).draggable=!1,te.style["will-change"]="",this._hideClone(),C(te,this.options.chosenClass,!1),Re.clone=te),n.cloneId=Ue((function(){Y("clone",n),Re.eventCanceled||(n.options.removeCloneOnHide||Z.insertBefore(te,K),n._hideClone(),G({sortable:n,name:"clone"}))})),!t&&C(K,o.dragClass,!0),t?(we=!0,n._loopId=setInterval(n._emulateDragOver,50)):(b(document,"mouseup",n._onDrop),b(document,"touchend",n._onDrop),b(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,K)),y(document,"drop",n),N(K,"transform","translateZ(0)")),xe=!0,n._dragStartId=Ue(n._dragStarted.bind(n,t,e)),y(document,"selectstart",n),me=!0,f&&N(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,o,a=this.el,s=e.target,l=this.options,c=l.group,u=Re.active,d=se===c,p=l.s
vendor: 5,227 bytes, line 2
2ort,h=le||u,f=this,m=!1;if(!Ne){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=k(s,l.draggable,a,!0),j("dragOver"),Re.eventCanceled)return m;if(K.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||f._ignoreWhileAnimating===s)return F(!1);if(we=!1,u&&!l.disabled&&(d?p||(r=J!==Z):le===this||(this.lastPutMode=se.checkPull(this,u,K,e))&&c.checkPut(this,u,K,e))){if(o="vertical"===this._getDirection(e,s),t=D(K),j("dragOverValid"),Re.eventCanceled)return m;if(r)return J=Z,$(),this._hideClone(),j("revert"),Re.eventCanceled||(Q?Z.insertBefore(K,Q):Z.appendChild(K)),F(!0);var g=B(a,l.draggable);if(!g||function(e,t,n){var r=D(B(n.el,n.options.draggable)),o=10;return t?e.clientX>r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}(e,o,this)&&!g.animated){if(g===K)return F(!1);if(g&&a===e.target&&(s=g),s&&(n=D(s)),!1!==$e(Z,a,K,t,s,n,e,!!s))return $(),a.appendChild(K),J=a,H(),F(!0)}else if(g&&function(e,t,n){var r=D(T(n.el,0,n.options,!0)),o=10;return t?e.clientX<r.left-o||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-o||e.clientY<r.bottom&&e.clientX<r.left}(e,o,this)){var v=T(a,0,l,!0);if(v===K)return F(!1);if(n=D(s=v),!1!==$e(Z,a,K,t,s,n,e,!1))return $(),a.insertBefore(K,v),J=a,H(),F(!0)}else if(s.parentNode===a){n=D(s);var y,b,x,w=K.parentNode!==a,_=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===a||o===s||r+i/2===a+l/2}(K.animated&&K.toRect||t,s.animated&&s.toRect||n,o),E=o?"top":"left",S=M(s,"top","top")||M(K,"top","top"),V=S?S.scrollTop:void 0;if(ge!==s&&(b=n[E],_e=!1,Ee=!_&&l.invertSwap||w),y=function(e,t,n,r,o,i,a,s){var l=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,p=!1;if(!a)if(s&&ye<c*o){if(!_e&&(1===ve?l>u+c*i/2:l<d-c*i/2)&&(_e=!0),_e)p=!0;else if(1===ve?l<u+ye:l>d-ye)return-ve}else if(l>u+c*(1-o)/2&&l<d-c*(1-o)/2)return function(e){return O(K)<O(e)?1:-1}(t);if((p=p||a)&&(l<u+c*i/2||l>d-c*i/2))return l>u+c/2?1:-1;return 0}(e,s,n,o,_?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Ee,ge===s),0!==y){var A=O(K);do{A-=y,x=J.children[A]}while(x&&("none"===N(x,"display")||x===X))}if(0===y||x===s)return F(!1);ge=s,ve=y;var P=s.nextElementSibling,L=!1,I=$e(Z,a,K,t,s,n,e,L=1===y);if(!1!==I)return 1!==I&&-1!==I||(L=1===I),Ne=!0,setTimeout(Fe,30),$(),L&&!P?a.appendChild(K):s.parentNode.insertBefore(K,L?P:s),S&&R(S,0,V-S.scrollTop),J=K.parentNode,void 0===b||Ee||(ye=Math.abs(b-D(s)[E])),H(),F(!0)}if(a.contains(K))return F(!1)}return!1}function j(l,c){Y(l,f,i({evt:e,isOwner:d,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:p,fromSortable:h,target:s,completed:F,onMove:function(n,r){return $e(Z,a,K,t,n,D(n),e,r)},changed:H},c))}function $(){j("dragOverAnimationCapture"),f.captureAnimationState(),f!==h&&h.captureAnimationState()}function F(t){return j("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(f),f!==h&&(C(K,le?le.options.ghostClass:u.options.ghostClass,!1),C(K,l.ghostClass,!0)),le!==f&&f!==Re.active?le=f:f===Re.active&&le&&(le=null),h===f&&(f._ignoreWhileAnimating=s),f.animateAll((function(){j("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(s===K&&!K.animated||s===a&&!s.animated)&&(ge=null),l.dragoverBubble||e.rootEl||s===document||(K.parentNode[z]._isOutsideThisEl(e.target),!t&&Ie(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function H(){oe=O(K),ae=O(K,l.draggable),G({sortable:f,name:"change",toEl:a,newIndex:oe,newDraggableIndex:ae,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",Ie),b(document,"mousemove",Ie),b(document,"touchmove",Ie)},_offUpEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._onDrop),b(e,"touchend",this._onDrop),b(e,"pointerup",this._onDrop),b(e,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;oe=O(K),ae=O(K,n.draggable),Y("drop",this,{evt:e}),J=K&&K.parentNode,oe=O(K),ae=O(K,n.draggable),Re.eventCanceled||(xe=!1,Ee=!1,_e=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),We(this.cloneId),We(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),f&&N(document.body,"user-select",""),N(K,"transform",""),e&&(me&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),X&&X.parentNode&&X.parentNode.removeChild(X),(Z===J||le&&"clone"!==le.lastPutMode)&&te&&te.parentNode&&te.parentNode.removeChild(te),K&&(this.nativeDraggable&&b(K,"dragend",this),ze(K),K.style["will-change"]="",me&&!xe&&C(K,le?le.options.ghostClass:this.options.ghostClass,!1),C(K,this.options.chosenClass,!1),G({sortable:this,name:"unchoose",toEl:J,newIndex:null,newDraggableIndex:null,originalEvent:e}),Z!==J?(oe>=0&&(G({rootEl:J,name:"add",toEl:J,fromEl:Z,originalEvent:e}
vendor: 7,814 bytes, line 2
2),G({sortable:this,name:"remove",toEl:J,originalEvent:e}),G({rootEl:J,name:"sort",toEl:J,fromEl:Z,originalEvent:e}),G({sortable:this,name:"sort",toEl:J,originalEvent:e})),le&&le.save()):oe!==re&&oe>=0&&(G({sortable:this,name:"update",toEl:J,originalEvent:e}),G({sortable:this,name:"sort",toEl:J,originalEvent:e})),Re.active&&(null!=oe&&-1!==oe||(oe=re,ae=ie),G({sortable:this,name:"end",toEl:J,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Y("nulling",this),Z=K=J=X=Q=te=ee=ne=ce=ue=me=oe=ae=re=ie=ge=ve=le=se=Re.dragged=Re.ghost=Re.clone=Re.active=null,Se.forEach((function(e){e.checked=!0})),Se.length=de=pe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":K&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r<o;r++)k(e=n[r],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||He(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var o=r.children[t];k(o,this.options.draggable,r,!1)&&(n[e]=o)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return k(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=W.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&Oe(n)},destroy:function(){Y("destroy",this);var e=this.el;e[z]=null,b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart),b(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),ke.splice(ke.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ne){if(Y("hideClone",this),Re.eventCanceled)return;N(te,"display","none"),this.options.removeCloneOnHide&&te.parentNode&&te.parentNode.removeChild(te),ne=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(ne){if(Y("showClone",this),Re.eventCanceled)return;K.parentNode!=Z||this.options.group.revertClone?Q?Z.insertBefore(te,Q):Z.appendChild(te):Z.insertBefore(te,K),this.options.group.revertClone&&this.animate(K,te),N(te,"display",""),ne=!1}}else this._hideClone()}},Ve&&y(document,"touchmove",(function(e){(Re.active||xe)&&e.cancelable&&e.preventDefault()})),Re.utils={on:y,off:b,css:N,find:V,is:function(e,t){return!!k(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:j,closest:k,toggleClass:C,clone:$,index:O,nextTick:Ue,cancelNextTick:We,detectDirection:Be,getChild:T},Re.get=function(e){return e[z]},Re.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Re.utils=i(i({},Re.utils),e.utils)),W.mount(e)}))},Re.create=function(e,t){return new Re(e,t)},Re.version="1.14.0";var qe,Ye,Ge,Ke,Je,Xe,Ze=[],Qe=!1;function et(){Ze.forEach((function(e){clearInterval(e.pid)})),Ze=[]}function tt(){clearInterval(Xe)}var nt=j((function(e,t,n,r){if(t.scroll){var o,i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=A(),u=!1;Ye!==n&&(Ye=n,et(),qe=t.scroll,o=t.scrollFn,!0===qe&&(qe=L(n,!0)));var d=0,p=qe;do{var h=p,f=D(h),m=f.top,g=f.bottom,v=f.left,y=f.right,b=f.width,x=f.height,w=void 0,k=void 0,_=h.scrollWidth,E=h.scrollHeight,C=N(h),S=h.scrollLeft,V=h.scrollTop;h===c?(w=b<_&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),k=x<E&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(w=b<_&&("auto"===C.overflowX||"scroll"===C.overflowX),k=x<E&&("auto"===C.overflowY||"scroll"===C.overflowY));var M=w&&(Math.abs(y-i)<=s&&S+b<_)-(Math.abs(v-i)<=s&&!!S),T=k&&(Math.abs(g-a)<=s&&V+x<E)-(Math.abs(m-a)<=s&&!!V);if(!Ze[d])for(var B=0;B<=d;B++)Ze[B]||(Ze[B]={});Ze[d].vx==M&&Ze[d].vy==T&&Ze[d].el===h||(Ze[d].el=h,Ze[d].vx=M,Ze[d].vy=T,clearInterval(Ze[d].pid),0==M&&0==T||(u=!0,Ze[d].pid=setInterval(function(){r&&0===this.layer&&Re.active._onTouchMove(Je);var t=Ze[this.layer].vy?Ze[this.layer].vy*l:0,n=Ze[this.layer].vx?Ze[this.layer].vx*l:0;"function"==typeof o&&"continue"!==o.call(Re.dragged.parentNode[z],n,t,e,Je,Ze[this.layer].el)||R(Ze[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&p!==c&&(p=L(p,!1)));Qe=u}}),30),rt=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||o;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(i("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function ot(){}function it(){}ot.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=T(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:rt},l(ot,{pluginName:"revertOnSpill"}),it.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:rt},l(it,{pluginName:"removeOnSpill"}),Re.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):this.options.supportPointer?y(document,"pointermove",this._handleFallbackAutoScroll):t.touches?y(document,"touchmove",this._handleFallbackAutoScroll):y(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):(b(document,"pointermove",this._handleFallbackAutoScroll),b(document,"touchmove",this._handleFallbackAutoScroll),b(document,"mousemove",this._handleFallbackAutoScroll)),tt(),et(),clearTimeout(_),_=void 0},nulling:function(){Je=Ye=qe=Qe=Xe=Ge=Ke=null,Ze.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(r,o);if(Je=e,t||this.options.forceAutoScrollFallback||p||d||f){nt(e,this.options,i,t);var a=L(i,!0);!Qe||Xe&&r===Ge&&o===Ke||(Xe&&tt(),Xe=setInterval((function(){var i=L(document.elementFromPoint(r,o),!0);i!==a&&(a=i,et()),nt(e,n.options,i,t)}),10),Ge=r,Ke=o)}else{if(!this.options.bubbleScroll||L(i,!0)===A())return void et();nt(e,this.options,L(i,!1),!1)}}},l(e,{pluginName:"scroll",initializeByDefault:!0})}),Re.mount(it,ot);const at="undefined"!=typeof window?window.console:n.g.console;const st=/-(\w)/g,lt=function(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}((e=>e.replace(st,((e,t)=>
2t?t.toUpperCase():""))));function ct(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function ut(e,t,n){const r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}function dt(e,t){this.$nextTick((()=>this.$emit(e.toLowerCase(),t)))}function pt(e){return t=>{null!==this.realList&&this["onDrag"+e](t),dt.call(this,e,t)}}const ht=["Start","Add","Remove","Update","End"],ft=["Choose","Unchoose","Sort","Filter","Clone"],mt=["Move",...ht,...ft].map((e=>"on"+e));let gt=null;const vt={options:Object,list:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:e=>e},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null},component:{type:String,default:null},modelValue:{type:Array,required:!1,default:null}},yt=(0,r.defineComponent)({name:"VueDraggableNext",inheritAttrs:!1,emits:["update:modelValue","move","change",...ht.map((e=>e.toLowerCase())),...ft.map((e=>e.toLowerCase()))],props:vt,data:()=>({transitionMode:!1,noneFunctionalComponentMode:!1,headerOffset:0,footerOffset:0,_sortable:{},visibleIndexes:[],context:{}}),render(){const e=this.$slots.default?this.$slots.default():null,t=(n=this.$attrs,(o=this.componentData)?{...o.props,...o.attrs}:n);var n,o;return e?(this.transitionMode=function(e){if(!e||1!==e.length)return!1;const[{type:t}]=e;return!!t&&(n=t.name,["transition-group","TransitionGroup"].includes(n));var n}(e),(0,r.h)(this.getTag(),t,e)):(0,r.h)(this.getTag(),t,[])},created(){null!==this.list&&null!==this.modelValue&&at.error("list props are mutually exclusive! Please set one.")},mounted(){const e={};ht.forEach((t=>{e["on"+t]=pt.call(this,t)})),ft.forEach((t=>{e["on"+t]=dt.bind(this,t)}));const t=Object.keys(this.$attrs).reduce(((e,t)=>(e[lt(t)]=this.$attrs[t],e)),{}),n=Object.assign({},t,e,{onMove:(e,t)=>this.onDragMove(e,t)});!("draggable"in n)&&(n.draggable=">*");const r=1===this.$el.nodeType?this.$el:this.$el.parentElement;this._sortable=new Re(r,n),r.__draggable_component__=this,this.computeIndexes()},beforeUnmount(){try{void 0!==this._sortable&&this._sortable.destroy()}catch(e){}},computed:{realList(){return this.list?this.list:this.modelValue}},watch:{$attrs:{handler(e){this.updateOptions(e)},deep:!0},realList(){this.computeIndexes()}},methods:{getTag(){return this.component?(0,r.resolveComponent)(this.component):this.tag},updateOptions(e){for(var t in e){const n=lt(t);-1===mt.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes(){return this.$el.children},computeIndexes(){this.$nextTick((()=>{this.visibleIndexes=function(e,t,n,r){if(!e)return[];const o=Object.values(e),i=t.length-r;return[...t].map(((e,t)=>t>=i?o.length:o.indexOf(e)))}(this.getChildrenNodes(),this.$el.children,this.transitionMode,this.footerOffset)}))},getUnderlyingVm(e){const t=function(e,t){return Object.values(e).indexOf(t)}(this.getChildrenNodes()||[],e);if(-1===t)return null;return{index:t,element:this.realList[t]}},emitChanges(e){this.$nextTick((()=>{this.$emit("change",e)}))},alterList(e){if(this.list)return void e(this.list);const t=[...this.modelValue];e(t),this.$emit("update:modelValue",t)},spliceList(){this.alterList((e=>e.splice(...arguments)))},updatePosition(e,t){this.alterList((n=>n.splice(t,0,n.splice(e,1)[0])))},getVmIndex(e){const t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent(){return this.$slots.default?this.$slots.default()[0].componentInstance:null},resetTransitionData(e){if(!this.noTransitionOnDrag||!this.transitionMode)return;this.getChildrenNodes()[e].data=null;const t=this.getComponent();t.children=[],t.kept=void 0},onDragStart(e){this.computeIndexes(),this.context=this.getUnderlyingVm(e.item),this.context&&(e.item._underlying_vm_=this.clone(this.context.element),gt=e.item)},onDragAdd(e){const t=e.item._underlying_vm_;if(void 0===t)return;ct(e.item);const n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();const r={element:t,newIndex:n};this.emitChanges({added:r})},onDragRemove(e){if(ut(this.$el,e.item,e.oldIndex),"clone"===e.pullMode)return void ct(e.clone);if(!this.context)return;
2const t=this.context.index;this.spliceList(t,1);const n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})},onDragUpdate(e){ct(e.item),ut(e.from,e.item,e.oldIndex);const t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);const r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},onDragMove(e,t){const n=this.move;if(!n||!this.realList)return!0;const r=this.getRelatedContextFromMoveEvent(e),o=this.context,i=this.computeFutureIndex(r,e);Object.assign(o,{futureIndex:i});return n(Object.assign({},e,{relatedContext:r,draggedContext:o}),t)},onDragEnd(){this.computeIndexes(),gt=null},getTrargetedComponent:e=>e.__draggable_component__,getRelatedContextFromMoveEvent({to:e,related:t}){const n=this.getTrargetedComponent(e);if(!n)return{component:n};const r=n.realList,o={list:r,component:n};if(e!==t&&r&&n.getUnderlyingVm){const e=n.getUnderlyingVm(t);if(e)return Object.assign(e,o)}return o},computeFutureIndex(e,t){const n=[...t.to.children].filter((e=>"none"!==e.style.display));if(0===n.length)return 0;const r=n.indexOf(t.related),o=e.component.getVmIndex(r);return-1!==n.indexOf(gt)||!t.willInsertAfter?o:o+1}}})},1690:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".fadein[data-v-1705fe46]{animation:fade-1705fe46 .3s ease-in-out forwards}@keyframes fade-1705fe46{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}",""]);const i=o},1742:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>A});var r=n(6301),o={class:"mt-4"},i={class:"mt-4"},a={class:"mt-4"},s={class:"mt-4"},l={class:"mt-4"},c={class:"mt-4"},u={class:"mt-4"},d={class:"mt-4"},p={key:0,class:"mt-4"},h={class:"flex items-center"},f={class:"ml-2"},m=["href"],g=["href"],v={class:"flex items-center justify-end mt-4"},y=["disabled","value"];var b=n(641),x=n(4046),w=n(8045),k=n(1816),_=n(4296),E=n(7977),C=n(5393),N=n(5860),S=n(9234);const V=(0,b.pM)({components:{Head:S.p3,JetAuthenticationCard:x.A,JetAuthenticationCardLogo:w.A,JetButton:k.A,JetInput:_.A,JetCheckbox:E.A,JetLabel:C.A,JetValidationErrors:N.A,Link:S.N_},data:function(){return{form:this.$inertia.form({first_name:"",name:"",email:"",phone:"",street:"",zip_code:"",city:"",password:"",password_confirmation:"",terms:!1})}},methods:{submit:function(){var e=this;this.form.post(this.route("register"),{onFinish:function(){return e.form.reset("password","password_confirmation")}})}}});const A=(0,n(6262).A)(V,[["render",function(e,t,n,b,x,w){var k=(0,r.resolveComponent)("Head"),_=(0,r.resolveComponent)("Link"),E=(0,r.resolveComponent)("jet-validation-errors"),C=(0,r.resolveComponent)("Text"),N=(0,r.resolveComponent)("jet-label"),S=(0,r.resolveComponent)("jet-input"),V=(0,r.resolveComponent)("jet-checkbox"),A=(0,r.resolveComponent)("jet-authentication-card");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(k,{title:e.__("Registrierung")},null,8,["title"]),(0,r.createVNode)(A,null,{logo:(0,r.withCtx)((function(){return[(0,r.createVNode)(_,{href:"/"},{default:(0,r.withCtx)((function(){return t[11]||(t[11]=[(0,r.createElementVNode)("img",{src:"/img/admin/[email protected]",alt:"Logo LeMemento"},null,-1)])})),_:1})]})),default:(0,r.withCtx)((function(){return[(0,r.createVNode)(E,{class:"mb-4"}),(0,r.createVNode)(C,{type:"h2",text:e.__("Registrierung"),class:"mb-5 font-medium"},null,8,["text"]),(0,r.createElementVNode)("form",{onSubmit:t[10]||(t[10]=(0,r.withModifiers)((function(){return e.submit&&e.submit.apply(e,arguments)}),["prevent"]))},[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(N,{for:"first_name",value:e.__("Vorname")},null,8,["value"]),(0,r.createVNode)(S,{id:"first_name",type:"text",class:"mt-1 block w-full",modelValue:e.form.first_name,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.form.first_name=t}),required:"",autofocus:"",autocomplete:"given-name"},null,8,["modelValue"])]),(0,r.createElementVNode)("div",o,[(0,r.createVNode)(N,{for:"name",value:e.__("Nachname")},null,8,["value"]),(0,r.createVNode)(S,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:e.form.name,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.form.name=t}),required:"",autofocus:"",autocomplete:"family-name"},null,8,["modelValue"])]),(0,r.createElementVNode)("div",i,[(0,r.createVNode)(N,{for:"email",value:e.__("E-mail")},null,8,["value"]),(0,r.createVNode)(S,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e.form.email,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.form.email=t}),required:""},null,8,["modelValue"])]),(0,r.createElementVNode)("div",a,[(0,r.createVNode)(N,{for:"phone",value:e.__("Telefon")},null,8,["value"]),(0,r.createVNode)(S,{id:"phone",type:"tel",class:"mt-1 block w-full",modelValue:e.form.phone,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.form.phone=t})},null,8,["modelValue"])]),(0,r.createElementVNode)("div",s,[(0,r.createVNode)(N,{for:"street",value:e.__("Strasse")},null,8,["value"]),(0,r.createVNode)(S,{id:"street",type:"text",class:"mt-1 block w-full",modelValue:e.form.street,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.form.street=t})},null,8,["modelValue"])]),(0,r.createElementVNode)("div",l,[(0,r.createVNode)(N,{for:"zip_code",value:e.__("PLZ")},null,8,["value"]),(0,r.createVNode)(S,{id:"zip_code",type:"number",min:"1000",max:"9999",class:"mt-1 block w-full",modelValue:e.form.zip_code,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.form.zip_code=t}),required:""},null,8,["modelValue"])]),(0,r.createElementVNode)("div",c,[(0,r.createVNode)(N,{for:"city",value:e.__("Ort")},null,8,["value"]),(0,r.createVNode)(S,{id:"city",type:"text",class:"mt-1 block w-full",modelValue:e.form.city,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.form.city=t}),required:""},null,8,["modelValue"])]),(0,r.createElementVNode)("div",u,[(0,r.createVNode)(N,{for:"password",value:e.__("Passwort")},null,8,["value"]),(0,r.createVNode)(S,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:e.form.password,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.form.password=t}),required:"",autocomplete:"new-password"},null,8,["modelValue"])]),(0,r.createElementVNode)("div",d,[(0,r.createVNode)(N,{for:"password_confirmation",value:e.__("Passwort bestätigen")},null,8,["value"]),(0,r.createVNode)(S,{id:"password_confirmation",type:"password",class:"mt-1 block w-full",modelValue:e.form.password_confirmation,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.form.password_confirmation=t}),required:"",autocomplete:"new-password"},null,8,["modelValue"])]),e.$page.props.jetstream.hasTermsAndPrivacyPolicyFeature?((0,r.openBlock)(),(0,r.createElementBlock)("div",p,[(0,r.createVNode)(N,{for:"terms"},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",h,[(0,r.createVNode)(V,{name:"terms",id:"terms",checked:e.form.terms,"onUpdate:checked":t[9]||(t[9]=function(t){return e.form.terms=t})},null,8,["checked"]),(0,r.createElementVNode)("div",f,[t[12]||(t[12]=(0,r.createTextVNode)(" I agree to the ")),(0,r.createElementVNode)("a",{target:"_blank",href:e.route("terms.show"),class:"underline text-sm text-gray-600 hover:text-gray-900"},"Terms of Service",8,m),t[13]||(t[13]=(0,r.createTextVNode)(" and ")),(0,r.createElementVNode)("a",{target:"_blank",href:e.route("policy.show"),class:"underline text-sm text-gray-600 hover:text-gray-900"},"Privacy Policy",8,g)])])]})),_:1})])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",v,[(0,r.createVNode)(_,{href:e.route("login",{commune:e.$page.props.commune.slug}),class:"underline text-sm text-gray-600 hover:text-gray-900"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Schon registriert?")),1)]})),_:1},8,["href"]),(0,r.createElementVNode)("input",{type:"submit",class:(0,r.normalizeClass)(["btn-primary bg-lm-blue cursor-pointer hover:bg-lm-light-blue ml-4 text-white",{"opacity-25":e.form.processing}]),disabled:e.form.processing,value:e.__("Registrieren")},null,10,y)])],32)]})),_:1})],64)}]])},1752:e=>{"use strict";let t={comma:e=>t.split(e,[","],!0),space:e=>
2t.split(e,[" ","\n","\t"]),split(e,t,n){let r=[],o="",i=!1,a=0,s=!1,l="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:s?n===l&&(s=!1):'"'===n||"'"===n?(s=!0,l=n):"("===n?a+=1:")"===n?a>0&&(a-=1):0===a&&t.includes(n)&&(i=!0),i?(""!==o&&r.push(o.trim()),o="",i=!1):o+=n;return(n||""!==o)&&r.push(o.trim()),r}};e.exports=t,t.default=t},1798:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(6301),o=["href"],i=["src"];const a=(0,r.defineComponent)({name:"LmAdImage",data:function(){return{tempLink:""}},props:{image:{type:String,required:!0},link:{type:String,required:!0}},mounted:function(){this.tempLink=this.link,!this.tempLink.includes("https://")&&(this.tempLink="https://"+this.tempLink)}});var s=n(5072),l=n.n(s),c=n(3054),u={insert:"head",singleton:!1};l()(c.A,u);c.A.locals;const d=(0,n(6262).A)(a,[["render",function(e,t,n,a,s,l){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("a",{href:e.tempLink,target:"_blank",rel:"noopener noreferrer"},[e.image?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,src:e.$page.props.storagePath+e.image,class:"ad-img"},null,8,i)):(0,r.createCommentVNode)("",!0)],8,o)])}],["__scopeId","data-v-49803b64"]])},1816:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6301),o=["type"];const i=(0,n(641).pM)({props:{type:{type:String,default:"submit"}}});const a=(0,n(6262).A)(i,[["render",function(e,t,n,i,a,s){return(0,r.openBlock)(),(0,r.createElementBlock)("button",{type:e.type,class:"inline-flex items-center px-4 py-2 border border-transparent rounded-md font-semibold text-xs uppercase tracking-widest hover:bg-slate-700 active:bg-slate-900 focus:outline-none focus:border-gray-900 focus:ring focus:ring-gray-300 disabled:opacity-25 transition"},[(0,r.renderSlot)(e.$slots,"default")],8,o)}]])},1818:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.encodeNonAsciiHTML=t.encodeHTML=void 0;var o=r(n(5504)),i=n(5987),a=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function s(e,t){for(var n,r="",a=0;null!==(n=e.exec(t));){var s=n.index;r+=t.substring(a,s);var l=t.charCodeAt(s),c=o.default.get(l);if("object"==typeof c){if(s+1<t.length){var u=t.charCodeAt(s+1),d="number"==typeof c.n?c.n===u?c.o:void 0:c.n.get(u);if(void 0!==d){r+=d,a=e.lastIndex+=1;continue}}c=c.v}if(void 0!==c)r+=c,a=s+1;else{var p=(0,i.getCodePoint)(t,s);r+="&#x".concat(p.toString(16),";"),a=e.lastIndex+=Number(p!==l)}}return r+t.substr(a)}t.encodeHTML=function(e){return s(a,e)},t.encodeNonAsciiHTML=function(e){return s(i.xmlReplacer,e)}},1857:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6301),o={class:"relative"};var i=n(641),a=n(953);const s=(0,i.pM)({props:{align:{default:"right"},width:{default:"48"},contentClasses:{default:function(){return["py-1","bg-white"]}}},setup:function(){var e=(0,a.KR)(!1),t=function(t){e.value&&27===t.keyCode&&(e.value=!1)};return(0,i.sV)((function(){return document.addEventListener("keydown",t)})),(0,i.hi)((function(){return document.removeEventListener("keydown",t)})),{open:e}},computed:{widthClass:function(){return{48:"w-48",64:"w-64",80:"w-80",auto:"w-auto"}[this.width.toString()]},alignmentClasses:function(){return"left"===this.align?"origin-top-left left-0":"right"===this.align?"origin-top-right right-0":"origin-top"}}});const l=(0,n(6262).A)(s,[["render",function(e,t,n,i,a,s){return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("div",{onClick:t[0]||(t[0]=function(t){return e.open=!e.open})},[(0,r.renderSlot)(e.$slots,"trigger")]),(0,r.withDirectives)((0,r.createElementVNode)("div",{class:"fixed inset-0 z-40",onClick:t[1]||(t[1]=function(t){return e.open=!1})},null,512),[[r.vShow,e.open]]),(0,r.createVNode)(r.Transition,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:(0,r.withCtx)((function(){return[(0,r.withDirectives)((0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["fixed sm:absolute z-50 mt-2 rounded-md shadow-lg mr-1 sm:mr-0",[e.widthClass,e.alignmentClasses]]),style:{display:"none"},onClick:t[2]||(t[2]=function(t){return e.open=!1})},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["rounded-md ring-1 ring-black ring-opacity-5",e.contentClasses])}
2,[(0,r.renderSlot)(e.$slots,"content")],2)],2),[[r.vShow,e.open]])]})),_:3})])}]])},1866:()=>{},1928:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},1939:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(6301),o={class:"px-2"},i={class:"mb-6 relative ml-12 before:absolute before:w-6 before:h-[3px] before:bg-lm-blue before:top-1/2 before:-left-8"},a={class:"py-2 px-4 text-lg"},s={class:"py-2 px-4 text-lg"},l={class:"py-2 px-4 text-lg"},c={class:"py-2 px-4 text-lg"};var u=n(641),d=n(2112),p=n(7588);const h=(0,u.pM)({props:{securityOpen:{type:Boolean,default:!1},taxonomyOpen:{type:Boolean,default:!1}},components:{LmNavLink:d.A,LmNavAccordion:p.A}});const f=(0,n(6262).A)(h,[["render",function(e,t,n,u,d,p){var h=(0,r.resolveComponent)("Link"),f=(0,r.resolveComponent)("lm-nav-link"),m=(0,r.resolveComponent)("Text"),g=(0,r.resolveComponent)("lm-nav-accordion");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",o,[(0,r.createVNode)(h,{href:e.route("admin.index",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return t[0]||(t[0]=[(0,r.createElementVNode)("img",{src:"/img/admin/[email protected]",alt:"LeMemento Logo"},null,-1)])})),_:1},8,["href"])]),(0,r.createVNode)(h,{href:e.route("communalhome",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("h3",i,(0,r.toDisplayString)(e.$page.props.commune.name),1)]})),_:1},8,["href"]),t[3]||(t[3]=(0,r.createElementVNode)("div",{class:"border-b-2 border-gray-200"},null,-1)),(0,r.createVNode)(f,{linkroute:"admin.index",icon:"<svg fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor' class='w-6 h-6'>\n <path stroke-linecap='round' stroke-linejoin='round' d='M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25' />\n </svg>\n ",title:"Home",class:"mt-3"}),e.$page.props.user.superadmin||1===e.$page.props.userRole?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,linkroute:"admin.design",icon:"<svg fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor' class='w-6 h-6'>\n <path stroke-linecap='round' stroke-linejoin='round' d='M9.53 16.122a3 3 0 00-5.78 1.128 2.25 2.25 0 01-2.4 2.245 4.5 4.5 0 008.4-2.245c0-.399-.078-.78-.22-1.128zm0 0a15.998 15.998 0 003.388-1.62m-5.043-.025a15.994 15.994 0 011.622-3.395m3.42 3.42a15.995 15.995 0 004.764-4.648l3.876-5.814a1.151 1.151 0 00-1.597-1.597L14.146 6.32a15.996 15.996 0 00-4.649 4.763m3.42 3.42a6.776 6.776 0 00-3.42-3.42' />\n </svg>",title:"Design"})):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(f,{linkroute:"admin.about",icon:"<svg fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor' class='w-6 h-6'>\n <path stroke-linecap='round' stroke-linejoin='round' d='M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z' />\n </svg>",title:e.__("Ãber")},null,8,["title"]),(0,r.createVNode)(f,{linkroute:"admin.news",icon:"<svg fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor' class='w-6 h-6'>\n <path stroke-linecap='round' stroke-linejoin='round' d='M12 7.5h1.5m-1.5 3h1.5m-7.5 3h7.5m-7.5 3h7.5m3-9h3.375c.621 0 1.125.504 1.125 1.125V18a2.25 2.25 0 01-2.25 2.25M16.5 7.5V18a2.25 2.25 0 002.25 2.25M16.5 7.5V4.875c0-.621-.504-1.125-1.125-1.125H4.125C3.504 3.75 3 4.254 3 4.875V18a2.25 2.25 0 002.25 2.25h13.5M6 7.5h3v3H6v-3z' />\n </svg>",title:"Aktuelles"}),(0,r.createVNode)(f,{linkroute:"admin.documents",icon:'<svg style="transform:scale(1.4) translate(3px,3.5px);" width="16" height="16" fill="currentColor" class="bi bi-files" viewBox="0 0 16 16">\n <path d="M13 0H6a2 2 0 0 0-2 2 2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2 2 2 0 0 0 2-2V2a2 2 0 0 0-2-2m0 13V4a2 2 0 0 0-2-2H5a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1M3 4a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z"/>\n</svg>',title:"Documents"}),(0,r.createVNode)(f,{linkroute:"admin.moderation",icon:"<svg fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor' class='w-6 h-6'>\n <path stroke-linecap='round' stroke-linejoin='round' d='M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z' />\n <path stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z' />\n </svg>",title:"Moderation"}),(0,r.createVNode)(f,{linkroute:"admin.archives",icon:"<svg fill='none' stroke-width='1.5' stroke='currentColor' viewBox='0 0 24 20'>\n <path d='M18.38,21.63a3.34,3.34,0,0,0,3.24-3.44V7.87H2.37V18.19a3.35,3.35,0,0,0,3.24,3.44Zm-9.82-11h6.88a.69.69,0,0,1,0,1.38H8.56a.69.69,0,0,1,0-1.38ZM2.1,2.37A1.1,1.1,0,0,0,1,3.47V5.12a1.1,1.1,0,0,0,1.1,1.1H21.9A1.1,1.1,0,0,0,23,5.12h0V3.47a1.
21,1.1,0,0,0-1.1-1.1H2.1Z'\n transform='translate(0 -2.37)' /></svg>",title:"Corbeille"}),(0,r.createVNode)(f,{linkroute:"admin.ads",icon:"<svg class='w-6 h-6' style='transform: scale(0.8);' fill='currentColor' viewBox='0 0 24 24' viewBox='0 0 24 21.15'><path d='M19.5,2.25a2.25,2.25,0,0,1,4.5,0v16.5a2.25,2.25,0,0,1-4.5,0v-.32A25.5,25.5,0,0,0,9.13,15.3l.61,4.07a1.49,1.49,0,0,1-1.2,1.75,1.24,1.24,0,0,1-.27,0H7.44a1.5,1.5,0,0,1-1.37-.9L3.29,15H3a3,3,0,0,1-3-3V9A3,3,0,0,1,3,6c1.24,0,2.48-.05,3.72-.11A29.67,29.67,0,0,0,19.5,2.57Zm1.5,0v16.5a.75.75,0,0,0,1.5,0V2.25a.75.75,0,0,0-1.5,0Zm-1.5,2a31.31,31.31,0,0,1-12,3.05v6.35l.81.06a27.85,27.85,0,0,1,11.19,3ZM6,13.6V7.4c-1,0-2,.06-3,.08A1.54,1.54,0,0,0,1.5,9v3A1.52,1.52,0,0,0,3,13.51C4,13.53,5,13.55,6,13.6ZM5,15.06l2.42,4.56v0h.82v0L7.6,15.18c-.86,0-1.72-.09-2.59-.12Z'/></svg>",title:"Ads"}),(0,r.createVNode)(f,{linkroute:"admin.partners",icon:"<svg class='w-6 h-6' style='transform: scale(1.2);' fill='currentColor' viewBox='0 0 24 24' viewBox='0 0 24 21.15'><path transform='translate(2.5 4)' d='M6.5 1A1.5 1.5 0 0 0 5 2.5V3H1.5A1.5 1.5 0 0 0 0 4.5v8A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-8A1.5 1.5 0 0 0 14.5 3H11v-.5A1.5 1.5 0 0 0 9.5 1h-3zm0 1h3a.5.5 0 0 1 .5.5V3H6v-.5a.5.5 0 0 1 .5-.5zm1.886 6.914L15 7.151V12.5a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5V7.15l6.614 1.764a1.5 1.5 0 0 0 .772 0zM1.5 4h13a.5.5 0 0 1 .5.5v1.616L8.129 7.948a.5.5 0 0 1-.258 0L1 6.116V4.5a.5.5 0 0 1 .5-.5z'/></svg>",title:"Partners"}),(0,r.createVNode)(f,{linkroute:"admin.statistics",icon:"<svg class='w-6 h-6' style='transform: scale(1.2);' fill='currentColor' viewBox='0 0 24 24' viewBox='0 0 24 21.15'><path transform='translate(2.5 4)' d='M7.5 1.018a7 7 0 0 0-4.79 11.566L7.5 7.793V1.018zm1 0V7.5h6.482A7.001 7.001 0 0 0 8.5 1.018zM14.982 8.5H8.207l-4.79 4.79A7 7 0 0 0 14.982 8.5zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z'/></svg>",title:"Statistics"}),(0,r.createVNode)(g,{startOpen:e.taxonomyOpen},{trigger:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["text-lm-blue flex py-2 px-4",{"bg-slate-200":e.route().current("admin.tags")||e.route().current("admin.categories")}])},[t[1]||(t[1]=(0,r.createElementVNode)("svg",{fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6 mr-3"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.568 3H5.25A2.25 2.25 0 003 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 005.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 009.568 3z"}),(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 6h.008v.008H6V6z"})],-1)),(0,r.createVNode)(m,{type:"h4",as:"span",color:"text-lm-blue",text:e.__("Taxonomie")},null,8,["text"])],2)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["border-r-4 border-transparent bg-slate-200 hover:border-white hover:bg-white",{"border-lm-blue":e.route().current("admin.categories")}])},[(0,r.createVNode)(h,{href:e.route("admin.categories",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",a,(0,r.toDisplayString)(e.__("Kategorien")),1)]})),_:1},8,["href"])],2),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["border-r-4 border-transparent bg-slate-200 hover:border-white hover:bg-white",{"border-lm-blue":e.route().current("admin.tags")}])},[(0,r.createVNode)(h,{href:e.route("admin.tags",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",s,(0,r.toDisplayString)(e.__("Tags")),1)]})),_:1},8,["href"])],2)]})),_:1},8,["startOpen"]),e.$page.props.user.superadmin||1===e.$page.props.userRole?((0,r.openBlock)(),(0,r.createBlock)(g,{key:1,startOpen:e.securityOpen},{trigger:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["text-lm-blue flex py-2 px-4",{"bg-slate-200":e.route().current("admin.security.*")}])},[t[2]||(t[2]=(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6 mr-3"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"})],-1)),(0,r.createVNode)(m,{type:"h4",as:"span",color:"text-lm-blue",text:e.__("Sicherheit")},null,8,["text"])],2)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["border-r-4 border-transparent bg-slate-200 hover:border-white hover:bg-white",{"border-lm-blue":e.route().current("admin.security.settings")}])},[(0,r.createVNode)(h,{href:e.route("admin.security.settings",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",l,(0,r.toDisplayString)(e.__("Einstellungen")),1)]})),_:1},8,["href"])],2),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["border-r-4 border-transparent bg-slate-200 hover:border-white hover:bg-white",{"border-lm-blue":e.route().current("admin.security.users")}])},[(0,r.createVNode)(h,{href:e.route("admin.security.users",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",c,(0,r.toDisplayString)(e.__("Benutzerverwaltung")),1)]})),_:1},8,["href"])],2)]})),_:1},8,["startOpen"])):(0,r.createCommentVNode)("",!0)],64)}]])},1941:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);
2o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,o(n(9124),t),o(n(2851),t),o(n(568),t),o(n(1161),t),o(n(1974),t),o(n(5936),t),o(n(2772),t);var i=n(4128);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return i.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return i.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return i.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return i.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return i.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return i.hasChildren}})},1963:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6301),o={key:0};const i=(0,n(641).pM)({props:{colorPosition:{type:String,default:"left"},showColor:{type:Boolean,default:!0},showLink:{type:Boolean,default:!1},category:{required:!0}}});const a=(0,n(6262).A)(i,[["render",function(e,t,n,i,a,s){var l=this,c=(0,r.resolveComponent)("Text"),u=(0,r.resolveComponent)("Link");return this.category&&"Uncategorized"!==this.category.name.en?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[this.showLink?((0,r.openBlock)(),(0,r.createBlock)(u,{key:0,href:e.route("annonces.index",{commune:e.$page.props.commune.slug,category:this.category.id})},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(c,{color:"text-slate-400",type:"sm",as:"span",class:(0,r.normalizeClass)(["inline-flex items-center whitespace-nowrap",{"border-b-4 pl-4":"bottom"===l.colorPosition}]),style:(0,r.normalizeStyle)(["bottom"===l.colorPosition&&l.category.color?{borderColor:l.category.color}:{}])},{default:(0,r.withCtx)((function(){return[l.showColor&&"left"===l.colorPosition?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,class:"w-6 h-1 mr-2 rounded-full",style:(0,r.normalizeStyle)({backgroundColor:l.category.color})},null,4)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(l.category.name[e.$page.props.locale]),1)]})),_:1},8,["class","style"])]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),this.showLink?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(c,{key:1,color:"text-slate-400",type:"sm",as:"span",class:(0,r.normalizeClass)(["inline-flex items-center whitespace-nowrap",{"border-b-4 pl-4":"bottom"===this.colorPosition}]),style:(0,r.normalizeStyle)(["bottom"===this.colorPosition&&this.category.color?{borderColor:this.category.color}:{}])},{default:(0,r.withCtx)((function(){return[l.showColor&&"left"===l.colorPosition?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,class:"w-6 h-1 mr-2 rounded-full",style:(0,r.normalizeStyle)({backgroundColor:l.category.color})},null,4)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(l.category.name[e.$page.props.locale]),1)]})),_:1},8,["class","style"]))])):(0,r.createCommentVNode)("",!0)}]])}
2,1974:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testElement=function(e,t){var n=l(e);return!n||n(t)},t.getElements=function(e,t,n,r){void 0===r&&(r=1/0);var i=l(e);return i?(0,o.filter)(i,t,n,r):[]},t.getElementById=function(e,t,n){void 0===n&&(n=!0);Array.isArray(t)||(t=[t]);return(0,o.findOne)(a("id",e),t,n)},t.getElementsByTagName=function(e,t,n,r){void 0===n&&(n=!0);void 0===r&&(r=1/0);return(0,o.filter)(i.tag_name(e),t,n,r)},t.getElementsByClassName=function(e,t,n,r){void 0===n&&(n=!0);void 0===r&&(r=1/0);return(0,o.filter)(a("class",e),t,n,r)},t.getElementsByTagType=function(e,t,n,r){void 0===n&&(n=!0);void 0===r&&(r=1/0);return(0,o.filter)(i.tag_type(e),t,n,r)};var r=n(4128),o=n(1161),i={tag_name:function(e){return"function"==typeof e?function(t){return(0,r.isTag)(t)&&e(t.name)}:"*"===e?r.isTag:function(t){return(0,r.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,r.isText)(t)&&e(t.data)}:function(t){return(0,r.isText)(t)&&t.data===e}}};function a(e,t){return"function"==typeof t?function(n){return(0,r.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,r.isTag)(n)&&n.attribs[e]===t}}function s(e,t){return function(n){return e(n)||t(n)}}function l(e){var t=Object.keys(e).map((function(t){var n=e[t];return Object.prototype.hasOwnProperty.call(i,t)?i[t](n):a(t,n)}));return 0===t.length?null:t.reduce(s)}},1982:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>R});var r=n(6301),o={class:"mx-auto p-4 max-w-7xl xl:container"},i={class:"flex justify-between"},a={class:"flex gap-4 flex-wrap"},s={key:0},l={value:null},c=["value"],u={class:""},d={value:null},p={value:"createdAtAsc"},h={value:"createdAtDesc"},f={value:"nameAsc"},m={value:"nameDesc"},g={key:0,class:"border-t border-gray-200 px-4 sm:px-0 mt-8"},v={class:"flex items-center justify-center"},y={class:"-mt-px flex sm:hidden w-0 flex-1"},b=["innerHTML"],x={class:"-mt-px hidden sm:flex"},w={class:"inline-flex items-center border-t-2 border-transparent px-4 pt-4 text-sm font-medium text-gray-500",textContent:"..."},k={class:"-mt-px flex sm:hidden w-0 flex-1 justify-end"},_=["innerHTML"],E={class:"flex items-center justify-center mt-2"},C=["textContent"],N=["textContent"],S=["textContent"];var V=n(641),A=n(8367),D=n(1546),M=n(9506),T=n(1049),B=n(5512);const O=(0,V.pM)({layout:A.A,components:{LmStage:D.default,LmRadioGroup:M.ug,AnnonceGrid:B.A,LmInputText:M.zX,LmSpinner:T.A,TagSelector:M.Cx},data:function(){return{q:"",category:null,searchUrl:"",orderby:null,page:1,tags:[]}},props:{annonces:{type:Object},categories:{type:Object}},mounted:function(){var e,t,n=new URLSearchParams(window.location.search);this.q=n.get("q")?n.get("q"):"",this.category=null!==(e=n.get("category"))&&void 0!==e?e:null,this.orderby=null!==(t=n.get("orderby"))&&void 0!==t?t:null,n.get("tag")&&(this.tags=n.get("tag").split(","))},methods:{updateTags:function(e){this.tags=e},calcAnimationDelay:function(e){return e/10+"s"},search:function(e){var t=this.generateUrlParams();this.$inertia.visit(e,{method:"get",data:t})},generateUrlParams:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={};if(this.q.length>2&&(t.q=this.q),this.category&&(t.category=this.category),this.orderby&&(t.orderby=this.orderby),e&&(t.page=this.page),this.tags.length>0){var n=this.tags.join(",");t.tag=n}return t}}});var P=n(5072),L=n.n(P),I=n(4826),j={insert:"head",singleton:!1};L()(I.A,j);I.A.locals;const R=(0,n(6262).A)(O,[["render",function(e,t,n,V,A,D){var M=(0,r.resolveComponent)("Head"),T=(0,r.resolveComponent)("lm-stage"),B=(0,r.resolveComponent)("lm-input-text"),O=(0,r.resolveComponent)("tag-selector"),P=(0,r.resolveComponent)("AnnonceGrid"),L=(0,r.resolveComponent)("Link");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(M,{title:e.__("Archives")},null,8,["title"]),(0,r.createVNode)(T,{compact:!0,title:e.__("Archives"),subtitle:"Anzeigen","search-widget":!1},null,8,["title"]),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(B,{placeholder:e.__("Suchen"),modelValue:e.q,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.q=t}),icon:"<svg viewBox='0 0 20 20' fill='currentColor' class='w-3 h-3'>\n <path fill-rule='evenodd' d='M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z' clip-rule='evenodd' />\n </svg>",onEnter:t[1]||(t[1]=function(t){return e.search(e.route("annonces.archives",{commune:e.$page.props.commune.slug}))}
2),iconClickable:!0,onIconClick:t[2]||(t[2]=function(t){return e.search(e.route("annonces.archives",{commune:e.$page.props.commune.slug}))})},null,8,["placeholder","modelValue"])]),e.$page.props.commune.enable_tags?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.createVNode)(O,{placeholder:e.__("Chercher par tag"),showLabel:!1,onUpdate:e.updateTags,readonly:!0,inputTags:e.tags},null,8,["placeholder","onUpdate","inputTags"])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",null,[(0,r.withDirectives)((0,r.createElementVNode)("select",{"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.category=t}),onChange:t[4]||(t[4]=function(t){return e.search(e.route("annonces.archives",{commune:e.$page.props.commune.slug}))}),id:"category",class:"block mb-2 rounded w-full bg-slate-100/80 border-none focus:ring-gray-200"},[(0,r.createElementVNode)("option",l,(0,r.toDisplayString)(e.__("Alle Kategorien")),1),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.categories,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("option",{key:t.name,value:t.id},(0,r.toDisplayString)(t.name[e.$page.props.locale]),9,c)})),128))],544),[[r.vModelSelect,e.category]])]),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("button",{class:"btn-primary",onClick:t[5]||(t[5]=function(t){return e.search(e.route("annonces.archives",{commune:e.$page.props.commune.slug}))})},(0,r.toDisplayString)(e.__("Suchen")),1)])]),(0,r.createElementVNode)("div",u,[(0,r.withDirectives)((0,r.createElementVNode)("select",{"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.orderby=t}),onChange:t[7]||(t[7]=function(t){return e.search(e.route("annonces.archives",{commune:e.$page.props.commune.slug}))}),id:"orderby",class:"block mb-2 rounded w-full bg-slate-100/80 border-none focus:ring-gray-200"},[(0,r.createElementVNode)("option",d,(0,r.toDisplayString)(e.__("Trier par")),1),(0,r.createElementVNode)("option",p,(0,r.toDisplayString)(e.__("Date de publication (plus anciens)")),1),(0,r.createElementVNode)("option",h,(0,r.toDisplayString)(e.__("Date de publication (plus récents)")),1),(0,r.createElementVNode)("option",f,(0,r.toDisplayString)(e.__("Nom (A à Z)")),1),(0,r.createElementVNode)("option",m,(0,r.toDisplayString)(e.__("Nom (Z à A)")),1)],544),[[r.vModelSelect,e.orderby]])])]),(0,r.createVNode)(P,{items:this.annonces},null,8,["items"]),e.annonces.last_page>1?((0,r.openBlock)(),(0,r.createElementBlock)("div",g,[(0,r.createElementVNode)("nav",v,[(0,r.createElementVNode)("div",y,[e.annonces.prev_page_url?((0,r.openBlock)(),(0,r.createBlock)(L,{key:0,href:e.annonces.prev_page_url,class:"inline-flex items-center border-t-2 border-transparent pt-4 pr-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700"},{default:(0,r.withCtx)((function(){return[t[8]||(t[8]=(0,r.createElementVNode)("svg",{class:"mr-3 h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M18 10a.75.75 0 01-.75.75H4.66l2.1 1.95a.75.75 0 11-1.02 1.1l-3.5-3.25a.75.75 0 010-1.1l3.5-3.25a.75.75 0 111.02 1.1l-2.1 1.95h12.59A.75.75 0 0118 10z","clip-rule":"evenodd"})],-1)),(0,r.createElementVNode)("span",{innerHTML:e.__("previous")},null,8,b)]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",x,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.annonces.links,(function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.withDirectives)((0,r.createVNode)(L,{class:(0,r.normalizeClass)(["inline-flex items-center border-t-2 border-transparent px-4 pt-4 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700",{"border-cm-primary text-cm-primary":t.active}]),href:t.url,innerHTML:t.label},null,8,["class","href","innerHTML"]),[[r.vShow,n<4||n>e.annonces.links.length-5]]),(0,r.withDirectives)((0,r.createElementVNode)("div",w,null,512),[[r.vShow,4===n]])],64)})),256))]),(0,r.createElementVNode)("div",k,[e.annonces.next_page_url?((0,r.openBlock)(),(0,r.createBlock)(L,{key:0,href:e.annonces.next_page_url,class:"inline-flex items-center border-t-2 border-transparent pt-4 pl-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700"},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("span",{innerHTML:e.__("next")},null,8,_),t[9]||(t[9]=(0,r.createElementVNode)("svg",{class:"ml-3 h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M2 10a.75.75 0 01.75-.75h12.59l-2.1-1.95a.75.75 0 111.02-1.1l3.5 3.25a.75.75 0 010 1.1l-3.5 3.25a.75.75 0 11-1.02-1.1l2.1-1.95H2.75A.75.75 0 012 10z","clip-rule":"evenodd"})],-1))]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)])]),(0,r.createElementVNode)("div",E,[t[10]||(t[10]=(0,r.createTextVNode)(" page ")),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(e.annonces.current_page)},null,8,C),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("of"))+" ",1),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(e.annonces.last_page)},null,8,N),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__(" sur un total "))+" ",1),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(e.annonces.total)},null,8,S),t[11]||(t[11]=(0,r.createTextVNode)(" résultats "))])])):(0,r.createCommentVNode)("",!0)])],64)}],["__scopeId","data-v-33329ce3"]])}
2,2012:(e,t,n)=>{"use strict";var r=n(9516),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},2112:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6301),o=["innerHTML"];var i=n(641),a=n(8646);const s=(0,i.pM)({props:["linkroute","icon","title"],data:function(){return{activeRoute:route().current(),linkrouteurl:this.$page.props.commune?this.linkrouteurl=route(this.linkroute,{commune:this.$page.props.commune}):this.linkrouteurl=route(this.linkroute)}},mounted:function(){var e=this;a.Inertia.on("success",(function(){e.activeRoute=route().current(),e.$page.props.commune?e.linkrouteurl=route(e.linkroute,{commune:e.$page.props.commune}):e.linkrouteurl=route(e.linkroute)}))}});const l=(0,n(6262).A)(s,[["render",function(e,t,n,i,a,s){var l=(0,r.resolveComponent)("Text"),c=(0,r.resolveComponent)("Link");return(0,r.openBlock)(),(0,r.createBlock)(c,{href:e.linkrouteurl,class:(0,r.normalizeClass)([{activeroute:e.linkroute===e.activeRoute},"mb-3 py-1 px-4 flex text-lg items-center hover:bg-white group border-r-4 border-transparent text-lm-blue"])},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("span",{innerHTML:e.icon,class:"w-6 h-6 mr-3"},null,8,o),(0,r.createVNode)(l,{type:"h4",as:"span",color:"text-lm-blue",text:e.title},null,8,["text"])]})),_:1},8,["href","class"])}]])},2168:(e,t,n)=>{"use strict";n.d(t,{n4:()=>ye});var r=n(5581),o=Math.max,i=Math.min,a=Math.round,s=n(8979);function l(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function c(){return!/^((?!chrome|android).)*safari/i.test(l())}function u(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),i=1,l=1;t&&(0,r.sb)(e)&&(i=e.offsetWidth>0&&a(o.width)/e.offsetWidth||1,l=e.offsetHeight>0&&a(o.height)/e.offsetHeight||1);var u=((0,r.vq)(e)?(0,s.A)(e):window).visualViewport,d=!c()&&n,p=(o.left+(d&&u?u.offsetLeft:0))/i,h=(o.top+(d&&u?u.offsetTop:0))/l,f=o.width/i,m=o.height/l;return{width:f,height:m,top:h,right:p+f,bottom:h+m,left:p,x:p,y:h}}function d(e){var t=(0,s.A)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}var p=n(7604);function h(e){return(((0,r.vq)(e)?e.ownerDocument:e.document)||window.document).documentElement}function f(e){return u(h(e)).left+d(e).scrollLeft}function m(e){return(0,s.A)(e).getComputedStyle(e)}function g(e){var t=m(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function v(e,t,n){void 0===n&&(n=!1);var o,i,l=(0,r.sb)(t),c=(0,r.sb)(t)&&function(e){var t=e.getBoundingClientRect(),n=a(t.width)/e.offsetWidth||1,r=a(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),m=h(t),v=u(e,c,n),y={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(l||!l&&!n)&&(("body"!==(0,p.A)(t)||g(m))&&(y=(o=t)!==(0,s.A)(o)&&(0,r.sb)(o)?{scrollLeft:(i=o).scrollLeft,scrollTop:i.scrollTop}:d(o)),(0,r.sb)(t)?((b=u(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):m&&(b.x=f(m))),{x:v.left+y.scrollLeft-b.x,y:v.top+y.scrollTop-b.y,width:v.width,height:v.height}}function y(e){var t=u(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 b(e){return"html"===(0,p.A)(e)?e:e.assignedSlot||e.parentNode||((0,r.Ng)(e)?e.host:null)||h(e)}function x(e){return["html","body","#document"].indexOf((0,p.A)(e))>=0?e.ownerDocument.body:(0,r.sb)(e)&&g(e)?e:x(b(e))}function w(e,t){var n;void 0===t&&(t=[]);var r=x(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=(0,s.A)(r),a=o?[i].concat(i.visualViewport||[],g(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(w(b(a)))}function k(e){return["table","td","th"].indexOf((0,p.A)(e))>=0}function _(e){return(0,r.sb)(e)&&"fixed"!==m(e).position?e.offsetParent:null}function E(e){for(var t=(0,s.A)(e),n=_(e);n&&k(n)&&"static"===m(n).position;)n=_(n);return n&&("html"===(0,p.A)(n)||"body"===(0,p.A)(n)&&"static"===m(n).position)?t:n||function(e){var t=/firefox/i.test(l());if(/Trident/i.test(l())&&(0,r.sb)(e)&&"fixed"===m(e).position)return null;var n=b(e);for((0,r.Ng)(n)&&(n=n.host);(0,r.sb)(n)&&["html","body"].indexOf((0,p.A)(n))<0;){var o=m(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}var C="top",N="bottom",S="right",V="left",A="auto",D=[C,N,S,V],M="start",T="end",B="viewport",O="popper",P=D.reduce((function(e,t){return e.concat([t+"-"+M,t+"-"+T])}),[]),L=[].concat(D,[A]).reduce((function(e,t){return e.concat([t,t+"-"+M,t+"-"+T])}),[]),I=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function j(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEac
vendor: 4,489 bytes, line 2
2h((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var R={placement:"bottom",modifiers:[],strategy:"absolute"};function $(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function z(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,i=t.defaultOptions,a=void 0===i?R:i;return function(e,t,n){void 0===n&&(n=a);var i,s,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},R,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,d={state:l,setOptions:function(n){var i="function"==typeof n?n(l.options):n;p(),l.options=Object.assign({},a,l.options,i),l.scrollParents={reference:(0,r.vq)(e)?w(e):e.contextElement?w(e.contextElement):[],popper:w(t)};var s,u,h=function(e){var t=j(e);return I.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(o,l.options.modifiers),u=s.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}),{}),Object.keys(u).map((function(e){return u[e]}))));return l.orderedModifiers=h.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:l,name:t,instance:d,options:r}),a=function(){};c.push(i||a)}})),d.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if($(t,n)){l.rects={reference:v(t,E(n),"fixed"===l.options.strategy),popper:y(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,c=o.name;"function"==typeof i&&(l=i({state:l,options:s,name:c,instance:d})||l)}else l.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){d.forceUpdate(),e(l)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(i())}))}))),s}),destroy:function(){p(),u=!0}};if(!$(e,t))return d;function p(){c.forEach((function(e){return e()})),c=[]}return d.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var F={passive:!0};const H={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,c=(0,s.A)(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,F)})),l&&c.addEventListener("resize",n.update,F),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,F)})),l&&c.removeEventListener("resize",n.update,F)}},data:{}};function U(e){return e.split("-")[0]}function W(e){return e.split("-")[1]}function q(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Y(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?U(o):null,a=o?W(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case C:t={x:s,y:n.y-r.height};break;case N:t={x:s,y:n.y+n.height};break;case S:t={x:n.x+n.width,y:l};break;case V:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?q(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case M:t[c]=t[c]-(n[u]/2-r[u]/2);break;case T:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}const G={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Y({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var K={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,l=e.offsets,c=e.position,u=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,f=e.isFixed,g=l.x,v=void 0===g?0:g,y=l.y,b=void 0===y?0:y,x="function"==typeof p?p({x:v,y:b}):{x:v,y:b};v=x.x,b=x.y;var w=l.hasOwnProperty("x"),k=l.hasOwnProperty("y"),_=V,A=C,D=window;if(d){var M=E(n),B="clientHeight",O="clientWidth";if(M===(0,s.A)(n)&&"static"!==m(M=h(n)).position&&"absolute"===c&&(B="scrollHeight",O="scrollWidth"),o===C||(o===V||o===S)&&i===T)A=N,b-=(f&&M===D&&D.visualVie
vendor: 11,150 bytes, line 2
2wport?D.visualViewport.height:M[B])-r.height,b*=u?1:-1;if(o===V||(o===C||o===N)&&i===T)_=S,v-=(f&&M===D&&D.visualViewport?D.visualViewport.width:M[O])-r.width,v*=u?1:-1}var P,L=Object.assign({position:c},d&&K),I=!0===p?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:a(n*o)/o||0,y:a(r*o)/o||0}}({x:v,y:b},(0,s.A)(n)):{x:v,y:b};return v=I.x,b=I.y,u?Object.assign({},L,((P={})[A]=k?"0":"",P[_]=w?"0":"",P.transform=(D.devicePixelRatio||1)<=1?"translate("+v+"px, "+b+"px)":"translate3d("+v+"px, "+b+"px, 0)",P)):Object.assign({},L,((t={})[A]=k?b+"px":"",t[_]=w?v+"px":"",t.transform="",t))}const X={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:U(t.placement),variation:W(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,J(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,J(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Z=n(6607);const Q={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=L.reduce((function(e,n){return e[n]=function(e,t,n){var r=U(e),o=[V,C].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[V,S].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var ee={left:"right",right:"left",bottom:"top",top:"bottom"};function te(e){return e.replace(/left|right|bottom|top/g,(function(e){return ee[e]}))}var ne={start:"end",end:"start"};function re(e){return e.replace(/start|end/g,(function(e){return ne[e]}))}function oe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,r.Ng)(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function ie(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ae(e,t,n){return t===B?ie(function(e,t){var n=(0,s.A)(e),r=h(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){i=o.width,a=o.height;var d=c();(d||!d&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:l+f(e),y:u}}(e,n)):(0,r.vq)(t)?function(e,t){var n=u(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=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}(t,n):ie(function(e){var t,n=h(e),r=d(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=o(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=o(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+f(e),c=-r.scrollTop;return"rtl"===m(i||n).direction&&(l+=o(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:l,y:c}}(h(e)))}function se(e,t,n,a){var s="clippingParents"===t?function(e){var t=w(b(e)),n=["absolute","fixed"].indexOf(m(e).position)>=0&&(0,r.sb)(e)?E(e):e;return(0,r.vq)(n)?t.filter((function(e){return(0,r.vq)(e)&&oe(e,n)&&"body"!==(0,p.A)(e)})):[]}(e):[].concat(t),l=[].concat(s,[n]),c=l[0],u=l.reduce((function(t,n){var r=ae(e,n,a);return t.top=o(r.top,t.top),t.right=i(r.right,t.right),t.bottom=i(r.bottom,t.bottom),t.left=o(r.left,t.left),t}),ae(e,c,a));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function le(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ce(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ue(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=void 0===o?e.placement:o,a=n.strategy,s=void 0===a?e.strategy:a,l=n.boundary,c=void 0===l?"clippingParents":l,d=n.rootBoundary,p=void 0===d?B:d,f=n.elementContext,m=void 0===f?O:f,g=n.altBoundary,v=void 0!==g&&g,y=n.padding,b=void 0===y?0:y,x=le("number"!=typeof b?b:ce(b,D)),w=m===O?"reference":O,k=e.rects.popper,_=e.elements[v?w:m],E=se((0,r.vq)(_)?_:_.contextElement||h(e.elements.popper),c,p,s),V=u(e.elements.reference),A=Y({reference:V,element:k,strategy:"absolute",placement:i}),M=ie(Object.assign({},k,A)),T=m===O?M:V,P={top:E.top-T.top+x.top,bottom:T.bottom-E.bottom+x.bottom,left:E.left-T.left+x.left,right:T.right-E.right+x.right},L=e.modifiersData.offset;if(m===O&&L){var I=L[i];Object.keys(P).forEach((function(e){var t=[S,N].indexOf(e)>=0?1:-1,n=[C,N].indexOf(e)>=0?"y":"x";P[e]+=I[n]*t}))}return P}const de={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,v=U(g),y=l||(v===g||!f?[te(g)]:function(e){if(U(e)===A)return[];var t=te(e);return[re(e),t,re(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(U(n)===A?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?L:l,u=W(r),d=u?s?P:P.filter((function(e){return W(e)===u})):D,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,n){return t[n]=ue(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[U(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,k=new Map,_=!0,E=b[0],T=0;T<b.length;T++){var B=b[T],O=U(B),I=W(B)===M,j=[C,N].indexOf(O)>=0,R=j?"width":"height",$=ue(t,{placement:B,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),z=j?I?S:V:I?N:C;x[R]>w[R]&&(z=te(z));var F=te(z),H=[];if(i&&H.push($[O]<=0),s&&H.push($[z]<=0,$[F]<=0),H.every((function(e){return e}))){E=B,_=!1;break}k.set(B,H)}if(_)for(var q=function(e){var t=b.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},Y=f?3:1;Y>0;Y--){if("break"===q(Y))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function pe(e,t,n){return o(e,i(t,n))}const he={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,s=void 0===a||a,l=n.altAxis,c=void 0!==l&&l,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.padding,f=n.tether,m=void 0===f||f,g=n.tetherOffset,v=void 0===g?0:g,b=ue(t,{boundary:u,rootBoundary:d,padding:h,altBoundary:p}),x=U(t.placement),w=W(t.placement),k=!w,_=q(x),A="x"===_?"y":"x",D=t.modifiersData.popperOffsets,T=t.rects.reference,B=t.rects.popper,O="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,P="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(D){if(s){var j,R="y"===_?C:V,$="y"===_?N:S,z="y"===_?"height":"width",F=D[_],H=F+b[R],Y=F-b[$],G=m?-B[z]/2:0,K=w===M?T[z]:B[z],J=w===M?-B[z]:-T[z],X=t.elements.arrow,Z=m&&X?y(X):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Q[R],te=Q[$],ne=pe(0,T[z],Z[z]),re=k?T[z]/2-G-ne-ee-P.mainAxis:K-ne-ee-P.mainAxis,oe=k?-T[z]/2+G+ne+te+P.mainAxis:J+ne+te+P.mainAxis,ie=t.elements.arrow&&E(t.elements.arrow),ae=ie?"y"===_?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(j=null==L?void 0:L[_])?j:0,le=F+oe-se,ce=pe(m?i(H,F+re-se-ae):H,F,m?o(Y,le):Y);D[_]=ce,I[_]=ce-F}if(c){var de,he="x"===_?C:V,fe="x"===_?N:S,me=D[A],ge="y"===A?"height":"width",ve=me+b[he],ye=me-b[fe],be=-1!==[C,V].indexOf(x),xe=null!=(de=null==L?void 0:L[A])?de:0,we=be?ve:me-T[ge]-B[ge]-xe+P.altAxis,ke=be?me+T[ge]+B[ge]-xe-P.altAxis:ye,_e=m&&be?function(e,t,n){var r=pe(e,t,n);return r>n?n:r}(we,me,ke):pe(m?we:ve,me,m?ke:ye);D[A]=_e,I[A]=_e-me}t.modifiersData[r]=I}},requiresIfExists:["offset"]};const fe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=U(n.placement),l=q(s),c=[V,S].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return le("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ce(e,D))}(o.padding,n),d=y(i),p="y"===l?C:V,h="y"===l?N:S,f=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=E(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=f/2-m/2,x=u[p],w=v-d[c]-u[h],k=v/2-d[c]/2+b,_=pe(x,k,w),A=l;n.modifiersData[r]=((t={})[A]=_,t.centerOffset=_-k,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&oe(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function me(e,t,n){return void 0===n&&(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 ge(e){return[C,S,N,V].some((function(t){return e[t]>=0}))}const ve={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ue(t,{elementContext:"reference"}),s=ue(t,{altBoundary:!0}),l=me(a,r),c=me(s,o,i),u=ge(l),d=ge(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var ye=z({defaultModifiers:[H,G,X,Z.A,Q,de,he,fe,ve]})},2197:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(6301),o={class:"mt-4"},i={class:"mt-4"},a={class:"flex items-center justify-end mt-4"},s=["disabled","value"];var l=n(641),c=n(9234),u=n(4046),d=n(8045),p=n(1816),h=n(4296),f=n(5393),m=n(5860);const g=(0,l.pM)({components:{Head:c.p3,JetAuthenticationCard:u.A,JetAuthenticationCardLogo:d.A,JetButton:p.A,JetInput:h.A,JetLabel:f.A,JetValidationErrors:m.A},props:{email:String,token:String},data:function(){return{form:this.$inertia.form({token:this.token,email:this.email,password:"",password_confirmation:""})}},methods:{submit:function(){var e=this;this.form.post(this.route("password.update"),{onFinish:function(){return e.form.reset("password","password_confirmation")}})}}});const v=(0,n(6262).A)(g,[["render",function(e,t,n,l,c,u){var d=(0,r.resolve
2Component)("Head"),p=(0,r.resolveComponent)("Link"),h=(0,r.resolveComponent)("jet-validation-errors"),f=(0,r.resolveComponent)("jet-label"),m=(0,r.resolveComponent)("jet-input"),g=(0,r.resolveComponent)("jet-authentication-card");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(d,{title:"Reset Password"}),(0,r.createVNode)(g,null,{logo:(0,r.withCtx)((function(){return[(0,r.createVNode)(p,{href:"/"},{default:(0,r.withCtx)((function(){return t[4]||(t[4]=[(0,r.createElementVNode)("img",{src:"/img/admin/[email protected]",alt:"Logo LeMemento"},null,-1)])})),_:1})]})),default:(0,r.withCtx)((function(){return[(0,r.createVNode)(h,{class:"mb-4"}),(0,r.createElementVNode)("form",{onSubmit:t[3]||(t[3]=(0,r.withModifiers)((function(){return e.submit&&e.submit.apply(e,arguments)}),["prevent"]))},[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(f,{for:"email",value:e.__("E-Mail")},null,8,["value"]),(0,r.createVNode)(m,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e.form.email,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.form.email=t}),required:"",autofocus:""},null,8,["modelValue"])]),(0,r.createElementVNode)("div",o,[(0,r.createVNode)(f,{for:"password",value:e.__("Passwort")},null,8,["value"]),(0,r.createVNode)(m,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:e.form.password,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.form.password=t}),required:"",autocomplete:"new-password"},null,8,["modelValue"])]),(0,r.createElementVNode)("div",i,[(0,r.createVNode)(f,{for:"password_confirmation",value:e.__("Passwort bestätigen")},null,8,["value"]),(0,r.createVNode)(m,{id:"password_confirmation",type:"password",class:"mt-1 block w-full",modelValue:e.form.password_confirmation,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.form.password_confirmation=t}),required:"",autocomplete:"new-password"},null,8,["modelValue"])]),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("input",{type:"submit",class:(0,r.normalizeClass)(["btn-primary bg-lm-blue cursor-pointer hover:bg-lm-light-blue ml-4 text-white",{"opacity-25":e.form.processing}]),disabled:e.form.processing,value:e.__("Passwort zurücksetzen")},null,10,s)])],32)]})),_:1})],64)}]])},2264:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P});var r=n(6301),o={class:"col-span-6 sm:col-span-4"},i={key:0,class:"col-span-6"},a={class:"mt-2 grid grid-cols-1 md:grid-cols-2 gap-4"},s={class:"flex items-center"},l={class:"ml-2 text-sm text-gray-600"},c={key:0},u={class:"mt-10 sm:mt-0"},d={class:"space-y-6"},p={class:"flex items-center"},h={key:0,class:"text-sm text-gray-400"},f=["onClick"],m=["onClick"],g={key:0,class:"mt-4 bg-slate-100 px-4 py-2 rounded font-mono text-sm text-gray-500"},v={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},y={class:"flex items-center"},b={class:"ml-2 text-sm text-gray-600"};var x=n(641),w=n(3257),k=n(7827),_=n(1816),E=n(332),C=n(4736),N=n(756),S=n(1154),V=n(4296),A=n(7977),D=n(6786),M=n(5393),T=n(4312),B=n(5560);const O=(0,x.pM)({components:{JetActionMessage:w.A,JetActionSection:k.A,JetButton:_.A,JetConfirmationModal:E.A,JetDangerButton:C.A,JetDialogModal:N.A,JetFormSection:S.A,JetInput:V.A,JetCheckbox:A.A,JetInputError:D.A,JetLabel:M.A,JetSecondaryButton:T.A,JetSectionBorder:B.A},props:["tokens","availablePermissions","defaultPermissions"],data:function(){return{createApiTokenForm:this.$inertia.form({name:"",permissions:this.defaultPermissions}),updateApiTokenForm:this.$inertia.form({permissions:[]}),deleteApiTokenForm:this.$inertia.form(),displayingToken:!1,managingPermissionsFor:null,apiTokenBeingDeleted:null}},methods:{createApiToken:function(){var e=this;this.createApiTokenForm.post(route("api-tokens.store"),{preserveScroll:!0,onSuccess:function(){e.displayingToken=!0,e.createApiTokenForm.reset()}})},manageApiTokenPermissions:function(e){this.updateApiTokenForm.permissions=e.abilities,this.managingPermissionsFor=e},updateApiToken:function(){var e=this;this.updateApiTokenForm.put(route("api-tokens.update",this.managingPermissionsFor),{preserveScroll:!0,preserveState:!0,onSuccess:function(){return e.managingPermissionsFor=null}})},confirmApiTokenDeletion:function(e){this.apiTokenBeingDeleted=e},deleteApiToken:function(){var e=this;this.deleteApiTokenForm.delete(route("api-tokens.destroy",this.apiTokenBeingDeleted),{preserveScroll:!0,preserveState:!0,onSuccess:function(){return e.apiTokenBeingDeleted=null}})}}});const P=(0,n(6262).A)(O,[["render",function(e,t,n,x,w,k){var _=(0,r.resolve
2Component)("jet-label"),E=(0,r.resolveComponent)("jet-input"),C=(0,r.resolveComponent)("jet-input-error"),N=(0,r.resolveComponent)("jet-checkbox"),S=(0,r.resolveComponent)("jet-action-message"),V=(0,r.resolveComponent)("jet-button"),A=(0,r.resolveComponent)("jet-form-section"),D=(0,r.resolveComponent)("jet-section-border"),M=(0,r.resolveComponent)("jet-action-section"),T=(0,r.resolveComponent)("jet-secondary-button"),B=(0,r.resolveComponent)("jet-dialog-modal"),O=(0,r.resolveComponent)("jet-danger-button"),P=(0,r.resolveComponent)("jet-confirmation-modal");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(A,{onSubmitted:e.createApiToken},{title:(0,r.withCtx)((function(){return t[9]||(t[9]=[(0,r.createTextVNode)(" Create API Token ")])})),description:(0,r.withCtx)((function(){return t[10]||(t[10]=[(0,r.createTextVNode)(" API tokens allow third-party services to authenticate with our application on your behalf. ")])})),form:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",o,[(0,r.createVNode)(_,{for:"name",value:"Name"}),(0,r.createVNode)(E,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:e.createApiTokenForm.name,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.createApiTokenForm.name=t}),autofocus:""},null,8,["modelValue"]),(0,r.createVNode)(C,{message:e.createApiTokenForm.errors.name,class:"mt-2"},null,8,["message"])]),e.availablePermissions.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createVNode)(_,{for:"permissions",value:"Permissions"}),(0,r.createElementVNode)("div",a,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.availablePermissions,(function(n){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n},[(0,r.createElementVNode)("label",s,[(0,r.createVNode)(N,{value:n,checked:e.createApiTokenForm.permissions,"onUpdate:checked":t[1]||(t[1]=function(t){return e.createApiTokenForm.permissions=t})},null,8,["value","checked"]),(0,r.createElementVNode)("span",l,(0,r.toDisplayString)(n),1)])])})),128))])])):(0,r.createCommentVNode)("",!0)]})),actions:(0,r.withCtx)((function(){return[(0,r.createVNode)(S,{on:e.createApiTokenForm.recentlySuccessful,class:"mr-3"},{default:(0,r.withCtx)((function(){return t[11]||(t[11]=[(0,r.createTextVNode)(" Created. ")])})),_:1},8,["on"]),(0,r.createVNode)(V,{class:(0,r.normalizeClass)({"opacity-25":e.createApiTokenForm.processing}),disabled:e.createApiTokenForm.processing},{default:(0,r.withCtx)((function(){return t[12]||(t[12]=[(0,r.createTextVNode)(" Create ")])})),_:1},8,["class","disabled"])]})),_:1},8,["onSubmitted"]),e.tokens.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[(0,r.createVNode)(D),(0,r.createElementVNode)("div",u,[(0,r.createVNode)(M,null,{title:(0,r.withCtx)((function(){return t[13]||(t[13]=[(0,r.createTextVNode)(" Manage API Tokens ")])})),description:(0,r.withCtx)((function(){return t[14]||(t[14]=[(0,r.createTextVNode)(" You may delete any of your existing tokens if they are no longer needed. ")])})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",d,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.tokens,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"flex items-center justify-between",key:t.id},[(0,r.createElementVNode)("div",null,(0,r.toDisplayString)(t.name),1),(0,r.createElementVNode)("div",p,[t.last_used_ago?((0,r.openBlock)(),(0,r.createElementBlock)("div",h," Last used "+(0,r.toDisplayString)(t.last_used_ago),1)):(0,r.createCommentVNode)("",!0),e.availablePermissions.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,class:"cursor-pointer ml-6 text-sm text-gray-400 underline",onClick:function(n){return e.manageApiTokenPermissions(t)}}," Permissions ",8,f)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("button",{class:"cursor-pointer ml-6 text-sm text-red-500",onClick:function(n){return e.confirmApiTokenDeletion(t)}}," Delete ",8,m)])])})),128))])]})),_:1})])])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(B,{show:e.displayingToken,onClose:t[3]||(t[3]=function(t){return e.displayingToken=!1})},{title:(0,r.withCtx)((function(){return t[15]||(t[15]=[(0,r.createTextVNode)(" API Token ")])})),content:(0,r.withCtx)((function(){return[t[16]||(t[16]=(0,r.createElementVNode)("div",null," Please copy your new API token. For your security, it won't be shown again. ",-1)),e.$page.props.jetstream.flash.token?((0,r.openBlock)(),(0,r.createElementBlock)("div",g,(0,r.toDisplayString)(e.$page.props.jetstream.flash.token),1)):(0,r.createCommentVNode)("",!0)]})),footer:(0,r.withCtx)((function(){return[(0,r.createVNode)(T,{onClick:t[2]||(t[2]=function(t){return e.displayingToken=!1})},{default:(0,r.withCtx)((function(){return t[17]||(t[17]=[(0,r.createTextVNode)(" Close ")
2])})),_:1})]})),_:1},8,["show"]),(0,r.createVNode)(B,{show:e.managingPermissionsFor,onClose:t[6]||(t[6]=function(t){return e.managingPermissionsFor=null})},{title:(0,r.withCtx)((function(){return t[18]||(t[18]=[(0,r.createTextVNode)(" API Token Permissions ")])})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",v,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.availablePermissions,(function(n){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n},[(0,r.createElementVNode)("label",y,[(0,r.createVNode)(N,{value:n,checked:e.updateApiTokenForm.permissions,"onUpdate:checked":t[4]||(t[4]=function(t){return e.updateApiTokenForm.permissions=t})},null,8,["value","checked"]),(0,r.createElementVNode)("span",b,(0,r.toDisplayString)(n),1)])])})),128))])]})),footer:(0,r.withCtx)((function(){return[(0,r.createVNode)(T,{onClick:t[5]||(t[5]=function(t){return e.managingPermissionsFor=null})},{default:(0,r.withCtx)((function(){return t[19]||(t[19]=[(0,r.createTextVNode)(" Cancel ")])})),_:1}),(0,r.createVNode)(V,{class:(0,r.normalizeClass)(["ml-2",{"opacity-25":e.updateApiTokenForm.processing}]),onClick:e.updateApiToken,disabled:e.updateApiTokenForm.processing},{default:(0,r.withCtx)((function(){return t[20]||(t[20]=[(0,r.createTextVNode)(" Save ")])})),_:1},8,["onClick","class","disabled"])]})),_:1},8,["show"]),(0,r.createVNode)(P,{show:e.apiTokenBeingDeleted,onClose:t[8]||(t[8]=function(t){return e.apiTokenBeingDeleted=null})},{title:(0,r.withCtx)((function(){return t[21]||(t[21]=[(0,r.createTextVNode)(" Delete API Token ")])})),content:(0,r.withCtx)((function(){return t[22]||(t[22]=[(0,r.createTextVNode)(" Are you sure you would like to delete this API token? ")])})),footer:(0,r.withCtx)((function(){return[(0,r.createVNode)(T,{onClick:t[7]||(t[7]=function(t){return e.apiTokenBeingDeleted=null})},{default:(0,r.withCtx)((function(){return t[23]||(t[23]=[(0,r.createTextVNode)(" Cancel ")])})),_:1}),(0,r.createVNode)(O,{class:(0,r.normalizeClass)(["ml-2",{"opacity-25":e.deleteApiTokenForm.processing}]),onClick:e.deleteApiToken,disabled:e.deleteApiTokenForm.processing},{default:(0,r.withCtx)((function(){return t[24]||(t[24]=[(0,r.createTextVNode)(" Delete ")])})),_:1},8,["onClick","class","disabled"])]})),_:1},8,["show"])])}]])},2270:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,"::-webkit-scrollbar{width:0}::-webkit-scrollbar-track{display:none}.custom-calendar.vc-container{--day-border:1px solid #b8c2cc;--day-border-highlight:1px solid #b8c2cc;--day-height:90px;--weekday-bg:#f8fafc;--weekday-border:1px solid #eaeaea;border-radius:0;width:100%}.custom-calendar.vc-container .vc-header{background-color:#f1f5f8;margin-top:0;min-height:3rem;padding:10px 0}.custom-calendar.vc-container .vc-title{position:relative}.custom-calendar.vc-container .vc-weeks{padding:0}.custom-calendar.vc-container .vc-weekday{background-color:var(--weekday-bg);border-bottom:var(--weekday-border);border-top:var(--weekday-border);padding:5px 0}.custom-calendar.vc-container .vc-day.in-next-month.is-not-in-month{display:none}.custom-calendar.vc-container .vc-day{background-color:#fff;height:var(--day-height);min-width:100%;padding:0 5px 3px;text-align:left}.custom-calendar.vc-container .vc-day.weekday-1,.custom-calendar.vc-container .vc-day.weekday-7{background-color:#eff8ff}.custom-calendar.vc-container .vc-day:not(.on-bottom){border-bottom:var(--day-border)}.custom-calendar.vc-container .vc-day:not(.on-bottom).weekday-1{border-bottom:var(--day-border-highlight)}.custom-calendar.vc-container .vc-day:not(.on-right){border-right:var(--day-border)}.custom-calendar.vc-container .vc-day-dots{margin-bottom:5px}@media (min-width:1024px){.custom-calendar.vc-container{--day-width:90px}.custom-calendar.vc-container .vc-day{min-width:var(--day-width)}}",""]);const i=o},2271:(e,t,n)=>{"use strict";var r=n(453),o=n(6556),i=n(8859),a=n(507),s=n(9675),l=r("%WeakMap%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),p=o("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+i(e))},delete:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return l&&n&&("object"==typeof n||"function"==typeof n)&&e?c(e,n):t&&t.get(n)},has:function(n){return l&&n&&("object"==typeof n||"function"==typeof n)&&e?d(e,n):!!t&&t.has(n)},set:function(n,r){l&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new l),u(e,n,r)):a&&(t||(t=a()),t.set(n,r))}};return n}:a},2285:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(6301),o={class:"col-span-6"},i={class:"flex items-center mt-2"},a=["src","alt"],s={class:"ml-4 leading-tight"},l={class:"text-sm text-gray-700"},c={class:"col-span-6 sm:col-span-4"};var u=n(641),d=n(1816),p=n(1154),h=n(4296),f=n(6786),m=n(5393);const g=(0,u.pM)({components:{JetButton:d.A,JetFormSection:p.A,JetInput:h.A,JetInputError:f.A,JetLabel:m.A},data:function(){return{form:this.$inertia.form({name:""})}},methods:{createTeam:function(){this.form.post(route("teams.store"),{errorBag:"createTeam",preserveScroll:!0})}}});const v=(0,n(6262).A)(g,[["render",function(e,t,n,u,d,p){var h=(0,r.resolve
2Component)("jet-label"),f=(0,r.resolveComponent)("jet-input"),m=(0,r.resolveComponent)("jet-input-error"),g=(0,r.resolveComponent)("jet-button"),v=(0,r.resolveComponent)("jet-form-section");return(0,r.openBlock)(),(0,r.createBlock)(v,{onSubmitted:e.createTeam},{title:(0,r.withCtx)((function(){return t[1]||(t[1]=[(0,r.createTextVNode)(" Team Details ")])})),description:(0,r.withCtx)((function(){return t[2]||(t[2]=[(0,r.createTextVNode)(" Create a new team to collaborate with others on projects. ")])})),form:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",o,[(0,r.createVNode)(h,{value:"Team Owner"}),(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("img",{class:"object-cover w-12 h-12 rounded-full",src:e.$page.props.user.profile_photo_url,alt:e.$page.props.user.name},null,8,a),(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",null,(0,r.toDisplayString)(e.$page.props.user.name),1),(0,r.createElementVNode)("div",l,(0,r.toDisplayString)(e.$page.props.user.email),1)])])]),(0,r.createElementVNode)("div",c,[(0,r.createVNode)(h,{for:"name",value:"Team Name"}),(0,r.createVNode)(f,{id:"name",type:"text",class:"block w-full mt-1",modelValue:e.form.name,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.form.name=t}),autofocus:""},null,8,["modelValue"]),(0,r.createVNode)(m,{message:e.form.errors.name,class:"mt-2"},null,8,["message"])])]})),actions:(0,r.withCtx)((function(){return[(0,r.createVNode)(g,{class:(0,r.normalizeClass)({"opacity-25":e.form.processing}),disabled:e.form.processing},{default:(0,r.withCtx)((function(){return t[3]||(t[3]=[(0,r.createTextVNode)(" Create ")])})),_:1},8,["class","disabled"])]})),_:1},8,["onSubmitted"])}]])},2368:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6301),o={viewBox:"0 0 136 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const i={},a=(0,n(6262).A)(i,[["render",function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",o,t[0]||(t[0]=[(0,r.createStaticVNode)('<path fill-rule="evenodd" clip-rule="evenodd" d="M13.3826 1C20.1838 1 25.6972 6.57146 25.6972 13.3602C25.6972 20.1489 20.1838 25.5842 13.3826 25.5842C6.58152 25.5842 1 20.1489 1 13.3602C1 6.57146 6.58152 1 13.3826 1Z" fill="#003471" stroke="#007AB3" stroke-width="0.756437"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M13.3838 6.68512C17.2482 6.68512 20.3808 9.81253 20.3808 13.6704C20.3808 17.5282 17.2482 20.6556 13.3838 20.6556C9.51943 20.6556 6.38672 17.5282 6.38672 13.6704C6.38672 9.81253 9.51943 6.68512 13.3838 6.68512Z" fill="#004A80" stroke="white" stroke-width="0.756437"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M13.3827 10.7368C15.0061 10.7368 16.3221 12.0502 16.3221 13.6703C16.3221 15.2904 15.0061 16.6038 13.3827 16.6038C11.7592 16.6038 10.4432 15.2904 10.4432 13.6703C10.4432 12.0502 11.7592 10.7368 13.3827 10.7368Z" fill="#007AB3" stroke="white" stroke-width="0.756437"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M10.4431 18.0695C11.216 18.0695 11.8425 18.695 11.8425 19.4665C11.8425 20.2381 11.216 20.8636 10.4431 20.8636C9.67026 20.8636 9.0437 20.2381 9.0437 19.4665C9.0437 18.695 9.67026 18.0695 10.4431 18.0695Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M24.8581 9.33972C25.6309 9.33972 26.1894 9.96522 26.1894 10.7368C26.1894 11.5083 25.6309 12.1338 24.8581 12.1338C24.0852 12.1338 23.3906 11.5083 23.3906 10.7368C23.3906 9.96522 24.0852 9.33972 24.8581 9.33972Z" fill="white"></path><path d="M35.6 19C35.144 19 34.736 18.874 34.376 18.622C34.028 18.37 33.752 18.022 33.548 17.578C33.356 17.134 33.26 16.618 33.26 16.03V5.482C33.26 5.314 33.308 5.182 33.404 5.086C33.512 4.99 33.644 4.942 33.8 4.942C33.968 4.942 34.1 4.99 34.196 5.086C34.292 5.182 34.34 5.314 34.34 5.482V16.03C34.34 16.582 34.454 17.038 34.682 17.398C34.922 17.746 35.228 17.92 35.6 17.92H36.05C36.182 17.92 36.29 17.968 36.374 18.064C36.458 18.16 36.5 18.292 36.5 18.46C36.5 18.616 36.452 18.748 36.356 18.856C36.26 18.952 36.128 19 35.96 19H35.6ZM42.2826 19.09C41.3346 19.09 40.4886 18.88 39.7446 18.46C39.0126 18.028 38.4366 17.434 38.0166 16.678C37.5966 15.922 37.3866 15.058 37.3866 14.086C37.3866 13.102 37.5846 12.238 37.9806 11.494C38.3766 10.738 38.9226 10.144 39.6186 9.712C40.3146 9.28 41.1126 9.064 42.0126 9.064C42.9006 9.064 43.6866 9.274 44.3706 9.694C45.0546 10.102 45.5886 10.672 45.9726 11.404C46.3566 12.124 46.5486 12.958 46.5486 13.906C46.5486 14.062 46.5006 14.188 46.4046 14.284C46.3086 14.368 46.1826 14.41 46.0266 14.41H38.1066V13.474H46.3146L45.5226 14.068C45.5466 13.288 45.4146 12.598 45.1266 11.998C44.8386 11.398 44.4246 10.93 43.8846 10.594C43.3566 10.246 42.7326 10.072 42.0126 10.072C41.3286 10.072 40.7166 10.246 40.1766 10.594C39.6486 10.93 39.2286 11.398 38.9166 11.998C38.6166 12.598 38.4666 13.294 38.4666 14.086C38.4666 14.866 38.6286 15.556 38.9526 16.156C39.2766 16.756 39.7266 17.23 40.3026 17.578C40.8786 17.914 41.5386 18.082 42.2826 18.082C42.7506 18.082 43.2186 18.004 43.6866 17.848C44.1666 17.68 44.5446 17.464 44.8206 17.2C44.9166 17.104 45.0306 17.056 45.1626 17.056C45.3066 17.044 45.4266 17.08 45.5226 17.164C45.6546 17.272 45.7206 17.392 45.7206 17.524C45.7326 17.656 45.6786 17.776 45.5586 17.884C45.
21746 18.232 44.6706 18.52 44.0466 18.748C43.4346 18.976 42.8466 19.09 42.2826 19.09Z" fill="#007AB3"></path><path d="M61.8194 19.018C61.5554 19.018 61.3334 18.934 61.1534 18.766C60.9854 18.586 60.9014 18.364 60.9014 18.1V12.952C60.9014 12.196 60.7154 11.638 60.3434 11.278C59.9714 10.906 59.4854 10.72 58.8854 10.72C58.2614 10.72 57.7454 10.936 57.3374 11.368C56.9414 11.8 56.7434 12.352 56.7434 13.024H55.2494C55.2494 12.244 55.4174 11.56 55.7534 10.972C56.0894 10.372 56.5574 9.904 57.1574 9.568C57.7694 9.232 58.4654 9.064 59.2454 9.064C59.9294 9.064 60.5354 9.214 61.0634 9.514C61.5914 9.814 61.9994 10.258 62.2874 10.846C62.5874 11.422 62.7374 12.124 62.7374 12.952V18.1C62.7374 18.364 62.6534 18.586 62.4854 18.766C62.3174 18.934 62.0954 19.018 61.8194 19.018ZM49.8134 19.018C49.5494 19.018 49.3274 18.934 49.1474 18.766C48.9794 18.586 48.8954 18.364 48.8954 18.1V10.09C48.8954 9.814 48.9794 9.592 49.1474 9.424C49.3274 9.256 49.5494 9.172 49.8134 9.172C50.0894 9.172 50.3114 9.256 50.4794 9.424C50.6474 9.592 50.7314 9.814 50.7314 10.09V18.1C50.7314 18.364 50.6474 18.586 50.4794 18.766C50.3114 18.934 50.0894 19.018 49.8134 19.018ZM55.8254 19.018C55.5614 19.018 55.3394 18.934 55.1594 18.766C54.9914 18.586 54.9074 18.364 54.9074 18.1V12.952C54.9074 12.196 54.7214 11.638 54.3494 11.278C53.9774 10.906 53.4914 10.72 52.8914 10.72C52.2674 10.72 51.7514 10.936 51.3434 11.368C50.9354 11.8 50.7314 12.352 50.7314 13.024H49.5974C49.5974 12.244 49.7534 11.56 50.0654 10.972C50.3774 10.372 50.8094 9.904 51.3614 9.568C51.9134 9.232 52.5434 9.064 53.2514 9.064C53.9354 9.064 54.5414 9.214 55.0694 9.514C55.5974 9.814 56.0054 10.258 56.2934 10.846C56.5934 11.422 56.7434 12.124 56.7434 12.952V18.1C56.7434 18.364 56.6594 18.586 56.4914 18.766C56.3234 18.934 56.1014 19.018 55.8254 19.018ZM70.414 19.072C69.418 19.072 68.53 18.862 67.75 18.442C66.982 18.01 66.376 17.422 65.932 16.678C65.5 15.922 65.284 15.058 65.284 14.086C65.284 13.102 65.488 12.238 65.896 11.494C66.316 10.738 66.892 10.15 67.624 9.73C68.356 9.298 69.196 9.082 70.144 9.082C71.08 9.082 71.884 9.292 72.556 9.712C73.228 10.12 73.738 10.69 74.086 11.422C74.446 12.142 74.626 12.976 74.626 13.924C74.626 14.152 74.548 14.344 74.392 14.5C74.236 14.644 74.038 14.716 73.798 14.716H66.544V13.276H73.744L73.006 13.78C72.994 13.18 72.874 12.646 72.646 12.178C72.418 11.698 72.094 11.32 71.674 11.044C71.254 10.768 70.744 10.63 70.144 10.63C69.46 10.63 68.872 10.78 68.38 11.08C67.9 11.38 67.534 11.794 67.282 12.322C67.03 12.838 66.904 13.426 66.904 14.086C66.904 14.746 67.054 15.334 67.354 15.85C67.654 16.366 68.068 16.774 68.596 17.074C69.124 17.374 69.73 17.524 70.414 17.524C70.786 17.524 71.164 17.458 71.548 17.326C71.944 17.182 72.262 17.02 72.502 16.84C72.682 16.708 72.874 16.642 73.078 16.642C73.294 16.63 73.48 16.69 73.636 16.822C73.84 17.002 73.948 17.2 73.96 17.416C73.972 17.632 73.876 17.818 73.672 17.974C73.264 18.298 72.754 18.562 72.142 18.766C71.542 18.97 70.966 19.072 70.414 19.072ZM89.8917 19.018C89.6277 19.018 89.4057 18.934 89.2257 18.766C89.0577 18.586 88.9737 18.364 88.9737 18.1V12.952C88.9737 12.196 88.7877 11.638 88.4157 11.278C88.0437 10.906 87.5577 10.72 86.9577 10.72C86.3337 10.72 85.8177 10.936 85.4097 11.368C85.0137 11.8 84.8157 12.352 84.8157 13.024H83.3217C83.3217 12.244 83.4897 11.56 83.8257 10.972C84.1617 10.372 84.6297 9.904 85.2297 9.568C85.8417 9.232 86.5377 9.064 87.3177 9.064C88.0017 9.064 88.6077 9.214 89.1357 9.514C89.6637 9.814 90.0717 10.258 90.3597 10.846C90.6597 11.422 90.8097 12.124 90.8097 12.952V18.1C90.8097 18.364 90.7257 18.586 90.5577 18.766C90.3897 18.934 90.1677 19.018 89.8917 19.018ZM77.8857 19.018C77.6217 19.018 77.3997 18.934 77.2197 18.766C77.0517 18.586 76.9677 18.364 76.9677 18.1V10.09C76.9677 9.814 77.0517 9.592 77.2197 9.424C77.3997 9.256 77.6217 9.172 77.8857 9.172C78.1617 9.172 78.3837 9.256 78.5517 9.424C78.7197 9.592 78.8037 9.814 78.8037 10.09V18.1C78.8037 18.364 78.7197 18.586 78.5517 18.766C78.3837 18.934 78.1617 19.018 77.8857 19.018ZM83.8977 19.018C83.6337 19.018 83.4117 18.934 83.2317 18.766C83.0637 18.586 82.9797 18.364 82.9797 18.1V12.952C82.9797 12.196 82.7937 11.638 82.4217 11.278C82.0497 10.906 81.5637 10.72 80.9637 10.72C80.3397 10.72 79.8237 10.936 79.4157 11.368C79.0077 11.8 78.8037 12.352 78.8037 13.024H77.6697C77.6697 12.244 77.8257 11.56 78.1377 10.972C78.4497 10.372 78.8817 9.904 79.4337 9.568C79.9857 9.232 80.6157 9.064 81.3237 9.064C82.0077 9.064 82.6137 9.214 83.1417 9.514C83.6697 9.814 84.0777 10.258 84.3657 10.846C84.6657 11.422 84.8157 12.124 84.8157 12.952V18.1C84.8157 18.364 84.7317 18.586 84.5637 18.766C84.3957 18.934 84.1737 19.018 83.8977 19.018ZM98.4862 19.072C97.4902 19.072 96.6022 18.862 95.8222 18.442C95.0542 18.01 94.4482 17.422 94.0042 16.678C93.5722 15.922 93.3562 15.058 93.3562 14.086C93.3562 13.102 93.5602 12.238 93.9682 11.494C94.3882 10.738 94.9642 10.15 95.6962 9.73C96.4282 9.298 97.2682 9.082 98.2162 9.082C99.1522 9.082 99.9562 9.292 100.628 9.712C101.3 10.12 101.81 10.69 102.158 11.422C102.518 12.142 102.698 12.976 102.698 13.924C102.698 14.152 102.62 14.344 102.464 14.5C102.308 14.644 102.11 14.716 101.87 14.716H94.6162V13.276H101.816L101.078 13.78C101.066 13.18 100.946 12.646 100.718 12.178C100.49 11.698 100.166 11.32 99.7462 11.
2044C99.3262 10.768 98.8162 10.63 98.2162 10.63C97.5322 10.63 96.9442 10.78 96.4522 11.08C95.9722 11.38 95.6062 11.794 95.3542 12.322C95.1022 12.838 94.9762 13.426 94.9762 14.086C94.9762 14.746 95.1262 15.334 95.4262 15.85C95.7262 16.366 96.1402 16.774 96.6682 17.074C97.1962 17.374 97.8022 17.524 98.4862 17.524C98.8582 17.524 99.2362 17.458 99.6202 17.326C100.016 17.182 100.334 17.02 100.574 16.84C100.754 16.708 100.946 16.642 101.15 16.642C101.366 16.63 101.552 16.69 101.708 16.822C101.912 17.002 102.02 17.2 102.032 17.416C102.044 17.632 101.948 17.818 101.744 17.974C101.336 18.298 100.826 18.562 100.214 18.766C99.6142 18.97 99.0382 19.072 98.4862 19.072ZM113.356 19.018C113.092 19.018 112.87 18.934 112.69 18.766C112.522 18.586 112.438 18.364 112.438 18.1V13.672C112.438 12.988 112.312 12.43 112.06 11.998C111.808 11.566 111.466 11.248 111.034 11.044C110.614 10.828 110.128 10.72 109.576 10.72C109.072 10.72 108.616 10.822 108.208 11.026C107.8 11.23 107.476 11.506 107.236 11.854C106.996 12.19 106.876 12.58 106.876 13.024H105.742C105.742 12.268 105.922 11.596 106.282 11.008C106.654 10.408 107.158 9.934 107.794 9.586C108.43 9.238 109.144 9.064 109.936 9.064C110.764 9.064 111.502 9.244 112.15 9.604C112.81 9.952 113.326 10.468 113.698 11.152C114.082 11.836 114.274 12.676 114.274 13.672V18.1C114.274 18.364 114.184 18.586 114.004 18.766C113.836 18.934 113.62 19.018 113.356 19.018ZM105.958 19.018C105.694 19.018 105.472 18.934 105.292 18.766C105.124 18.586 105.04 18.364 105.04 18.1V10.072C105.04 9.796 105.124 9.574 105.292 9.406C105.472 9.238 105.694 9.154 105.958 9.154C106.234 9.154 106.456 9.238 106.624 9.406C106.792 9.574 106.876 9.796 106.876 10.072V18.1C106.876 18.364 106.792 18.586 106.624 18.766C106.456 18.934 106.234 19.018 105.958 19.018ZM120.891 19C120.291 19 119.751 18.85 119.271 18.55C118.791 18.238 118.413 17.818 118.137 17.29C117.861 16.762 117.723 16.168 117.723 15.508V6.922C117.723 6.658 117.807 6.442 117.975 6.274C118.143 6.106 118.359 6.022 118.623 6.022C118.887 6.022 119.103 6.106 119.271 6.274C119.439 6.442 119.523 6.658 119.523 6.922V15.508C119.523 15.988 119.655 16.39 119.919 16.714C120.183 17.038 120.507 17.2 120.891 17.2H121.503C121.719 17.2 121.899 17.284 122.043 17.452C122.199 17.62 122.277 17.836 122.277 18.1C122.277 18.364 122.175 18.58 121.971 18.748C121.779 18.916 121.527 19 121.215 19H120.891ZM116.895 11.062C116.643 11.062 116.439 10.99 116.283 10.846C116.127 10.702 116.049 10.522 116.049 10.306C116.049 10.066 116.127 9.874 116.283 9.73C116.439 9.586 116.643 9.514 116.895 9.514H121.053C121.305 9.514 121.509 9.586 121.665 9.73C121.821 9.874 121.899 10.066 121.899 10.306C121.899 10.522 121.821 10.702 121.665 10.846C121.509 10.99 121.305 11.062 121.053 11.062H116.895ZM128.998 19.072C128.026 19.072 127.168 18.862 126.424 18.442C125.68 18.01 125.092 17.422 124.66 16.678C124.24 15.922 124.03 15.058 124.03 14.086C124.03 13.102 124.24 12.238 124.66 11.494C125.092 10.738 125.68 10.15 126.424 9.73C127.168 9.298 128.026 9.082 128.998 9.082C129.958 9.082 130.81 9.298 131.554 9.73C132.298 10.15 132.88 10.738 133.3 11.494C133.732 12.238 133.948 13.102 133.948 14.086C133.948 15.058 133.738 15.922 133.318 16.678C132.898 17.422 132.316 18.01 131.572 18.442C130.828 18.862 129.97 19.072 128.998 19.072ZM128.998 17.452C129.622 17.452 130.174 17.308 130.654 17.02C131.134 16.732 131.506 16.336 131.77 15.832C132.046 15.328 132.184 14.746 132.184 14.086C132.184 13.426 132.046 12.844 131.77 12.34C131.506 11.824 131.134 11.422 130.654 11.134C130.174 10.846 129.622 10.702 128.998 10.702C128.374 10.702 127.822 10.846 127.342 11.134C126.862 11.422 126.484 11.824 126.208 12.34C125.932 12.844 125.794 13.426 125.794 14.086C125.794 14.746 125.932 15.328 126.208 15.832C126.484 16.336 126.862 16.732 127.342 17.02C127.822 17.308 128.374 17.452 128.998 17.452Z" fill="#003471"></path>',7)]))}]])},2505:(e,t,n)=>{e.exports=n(8015)},2517:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array("Èaglq\t���É�\0\0�p;ä¦os;ä§t;ä¾t;ä¼uot;ä¢".split("").map((function(e){return e.charCodeAt(0)})))},2521:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(6301),o={key:0},i={class:"flex items-center"},a=["innerHTML"],s={class:"px-4 flex flex-col justify-between"},l=["href","target"];const c=(0,n(641).pM)({props:{category:String,title:String,body:String,url:String,linkname:String,range:Object,start:String,end:String},mounted:function(){},computed:{isActive:function(){var e=this.$dayjs(),t=this.$dayjs(this.start),n=this.$dayjs(this.end);return!this.start||!this.end||t.isBefore(e)&&n.isAfter(e)},categoryIcon:function(){switch(this.category){case"success":return'<svg viewBox="0 0 24 24" fill="currentColor" class="text-emerald-500 w-8 h-8"> <path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>';case"warning":return'<svg viewBox="0 0 24 24" fill="currentColor" class="text-yellow-500 w-8 h-8"> <path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>';case"error":return'<svg viewBox="0 0 24 24" fill="currentColor" class="text-red-600 w-8 h-8"> <path fill-rule="evenodd" d="M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-1.72 6.97a.75.75 0 10-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 101.06 1.06L12 13.06l1.72 1.72a.75.75 0 101.06-1.06L13.06 12l1.72-1.72a.75.75 0 10-1.06-1.06L12 10.94l-1.72-1.72z" clip-rule="evenodd" /></svg>';case"neutral":return'<svg viewBox="0 0 24 24" fill="currentColor" class="text-black w-8 h-8"> <path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 01.67 1.34l-.04.022c-1.147.5
273-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 11-.671-1.34l.041-.022zM12 9a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>'}},categoryClass:function(){switch(this.category){case"success":return"border-emerald-500";case"warning":return"border-yellow-500";case"error":return"border-red-600";case"neutral":return"border-black"}}}});const u=(0,n(6262).A)(c,[["render",function(e,t,n,c,u,d){var p,h=(0,r.resolveComponent)("Text");return e.isActive?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["border-t-4 flex flex-grow",e.categoryClass])},null,2),(0,r.createElementVNode)("div",{class:"pl-2 text-4xl",innerHTML:e.categoryIcon},null,8,a)]),(0,r.createElementVNode)("div",s,[(0,r.createVNode)(h,{type:"h3",text:e.title},null,8,["text"]),(0,r.createVNode)(h,{type:"p",class:"mt-2"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.body),1)]})),_:1}),e.url?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,href:e.url,target:e.newTab?"_blank":"",class:"font-medium text-cm-primary hover:opacity-80 inline-flex items-center py-2 transition-colors"},[t[0]||(t[0]=(0,r.createElementVNode)("svg",{viewBox:"0 0 20 20",fill:"currentColor",class:"w-5 h-5 mr-1"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z","clip-rule":"evenodd"})],-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(null!==(p=e.linkname)&&void 0!==p?p:e.__("En savoir plus")),1)],8,l)):(0,r.createCommentVNode)("",!0)])])):(0,r.createCommentVNode)("",!0)}]])},2543:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,c=32,u=64,d=128,p=256,h=1/0,f=9007199254740991,m=NaN,g=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",p]],y="[object Arguments]",b="[object Array]",x="[object Boolean]",w="[object Date]",k="[object Error]",_="[object Function]",E="[object GeneratorFunction]",C="[object Map]",N="[object Number]",S="[object Object]",V="[object Promise]",A="[object RegExp]",D="[object Set]",M="[object String]",T="[object Symbol]",B="[object WeakMap]",O="[object ArrayBuffer]",P="[object DataView]",L="[object Float32Array]",I="[object Float64Array]",j="[object Int8Array]",R="[object Int16Array]",$="[object Int32Array]",z="[object Uint8Array]",F="[object Uint8ClampedArray]",H="[object Uint16Array]",U="[object Uint32Array]",W=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,J=RegExp(G.source),X=RegExp(K.source),Z=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,xe=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 7,655 bytes, line 2
27f]/g,ke=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",Ce="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ne="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Ve="A-Z\\xc0-\\xd6\\xd8-\\xde",Ae="\\ufe0e\\ufe0f",De="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Me="['â]",Te="["+Ee+"]",Be="["+De+"]",Oe="["+Ce+"]",Pe="\\d+",Le="["+Ne+"]",Ie="["+Se+"]",je="[^"+Ee+De+Pe+Ne+Se+Ve+"]",Re="\\ud83c[\\udffb-\\udfff]",$e="[^"+Ee+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Ve+"]",Ue="\\u200d",We="(?:"+Ie+"|"+je+")",qe="(?:"+He+"|"+je+")",Ye="(?:['â](?:d|ll|m|re|s|t|ve))?",Ge="(?:['â](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Oe+"|"+Re+")"+"?",Je="["+Ae+"]?",Xe=Je+Ke+("(?:"+Ue+"(?:"+[$e,ze,Fe].join("|")+")"+Je+Ke+")*"),Ze="(?:"+[Le,ze,Fe].join("|")+")"+Xe,Qe="(?:"+[$e+Oe+"?",Oe,ze,Fe,Te].join("|")+")",et=RegExp(Me,"g"),tt=RegExp(Oe,"g"),nt=RegExp(Re+"(?="+Re+")|"+Qe+Xe,"g"),rt=RegExp([He+"?"+Ie+"+"+Ye+"(?="+[Be,He,"$"].join("|")+")",qe+"+"+Ge+"(?="+[Be,He+We,"$"].join("|")+")",He+"?"+We+"+"+Ye,He+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Ze].join("|"),"g"),ot=RegExp("["+Ue+Ee+Ce+Ae+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,lt={};lt[L]=lt[I]=lt[j]=lt[R]=lt[$]=lt[z]=lt[F]=lt[H]=lt[U]=!0,lt[y]=lt[b]=lt[O]=lt[x]=lt[P]=lt[w]=lt[k]=lt[_]=lt[C]=lt[N]=lt[S]=lt[A]=lt[D]=lt[M]=lt[B]=!1;var ct={};ct[y]=ct[b]=ct[O]=ct[P]=ct[x]=ct[w]=ct[L]=ct[I]=ct[j]=ct[R]=ct[$]=ct[C]=ct[N]=ct[S]=ct[A]=ct[D]=ct[M]=ct[T]=ct[z]=ct[F]=ct[H]=ct[U]=!0,ct[k]=ct[_]=ct[B]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,pt=parseInt,ht="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ft="object"==typeof self&&self&&self.Object===Object&&self,mt=ht||ft||Function("return this")(),gt=t&&!t.nodeType&&t,vt=gt&&e&&!e.nodeType&&e,yt=vt&&vt.exports===gt,bt=yt&&ht.process,xt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(e){}}(),wt=xt&&xt.isArrayBuffer,kt=xt&&xt.isDate,_t=xt&&xt.isMap,Et=xt&&xt.isRegExp,Ct=xt&&xt.isSet,Nt=xt&&xt.isTypedArray;function St(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Vt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Dt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Mt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Bt(e,t){return!!(null==e?0:e.length)&&Ht(e,t,0)>-1}function Ot(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Lt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function It(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function jt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Rt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var $t=Yt("length");function zt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Ft(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ht(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Ft(e,Wt,n)}function Ut(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Wt(e){return e!=e}function qt(e,t){var n=null==e?0:e.length;return n?Jt(e,t)/n:m}function Yt(e){return function(t){return null==t?o:t[e]}}function Gt(e){return function(t){return null==e?o:e[t]}}function Kt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Jt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Xt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e?e.slice(0,gn(e)+1).replace(ae,""):e}function Qt(e){return function(t){return e(t)}}function en(e,t){return Pt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Ht(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}var on=Gt({Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"}),an=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+ut[e]}function ln(e){return ot.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function un(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function fn(e){return ln(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):$t(e)}function mn(e){return ln(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function gn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var vn=Gt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var yn=function e(t){var n,r=(t=null==t?mt:yn.defaults(mt.Object(),t,yn.pick(mt,at))).Array,se=t.Date,Ee=t.Error,Ce=t.Function,Ne=t.Math,Se=t.Object,Ve=t.RegExp,Ae=t.String,De=t.TypeError,Me=r.prototype,Te=Ce.prototype,Be
vendor: 9,963 bytes, line 2
2=Se.prototype,Oe=t["__core-js_shared__"],Pe=Te.toString,Le=Be.hasOwnProperty,Ie=0,je=(n=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Re=Be.toString,$e=Pe.call(Se),ze=mt._,Fe=Ve("^"+Pe.call(Le).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=yt?t.Buffer:o,Ue=t.Symbol,We=t.Uint8Array,qe=He?He.allocUnsafe:o,Ye=un(Se.getPrototypeOf,Se),Ge=Se.create,Ke=Be.propertyIsEnumerable,Je=Me.splice,Xe=Ue?Ue.isConcatSpreadable:o,Ze=Ue?Ue.iterator:o,Qe=Ue?Ue.toStringTag:o,nt=function(){try{var e=hi(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),ot=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,ut=se&&se.now!==mt.Date.now&&se.now,ht=t.setTimeout!==mt.setTimeout&&t.setTimeout,ft=Ne.ceil,gt=Ne.floor,vt=Se.getOwnPropertySymbols,bt=He?He.isBuffer:o,xt=t.isFinite,$t=Me.join,Gt=un(Se.keys,Se),bn=Ne.max,xn=Ne.min,wn=se.now,kn=t.parseInt,_n=Ne.random,En=Me.reverse,Cn=hi(t,"DataView"),Nn=hi(t,"Map"),Sn=hi(t,"Promise"),Vn=hi(t,"Set"),An=hi(t,"WeakMap"),Dn=hi(Se,"create"),Mn=An&&new An,Tn={},Bn=Ri(Cn),On=Ri(Nn),Pn=Ri(Sn),Ln=Ri(Vn),In=Ri(An),jn=Ue?Ue.prototype:o,Rn=jn?jn.valueOf:o,$n=jn?jn.toString:o;function zn(e){if(ns(e)&&!Wa(e)&&!(e instanceof Wn)){if(e instanceof Un)return e;if(Le.call(e,"__wrapped__"))return $i(e)}return new Un(e)}var Fn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Hn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Gn;++t<n;)this.add(e[t])}function Jn(e){var t=this.__data__=new Yn(e);this.size=t.size}function Xn(e,t){var n=Wa(e),r=!n&&Ua(e),o=!n&&!r&&Ka(e),i=!n&&!r&&!o&&us(e),a=n||r||o||i,s=a?Xt(e.length,Ae):[],l=s.length;for(var c in e)!t&&!Le.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xi(c,l))||s.push(c);return s}function Zn(e){var t=e.length;return t?e[Kr(0,t-1)]:o}function Qn(e,t){return Li(Mo(e),lr(t,0,e.length))}function er(e){return Li(Mo(e))}function tr(e,t,n){(n!==o&&!za(e[t],n)||n===o&&!(t in e))&&ar(e,t,n)}function nr(e,t,n){var r=e[t];Le.call(e,t)&&za(r,n)&&(n!==o||t in e)||ar(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(za(e[n][0],t))return n;return-1}function or(e,t,n,r){return hr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ir(e,t){return e&&To(t,Ts(t),e)}function ar(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:Ss(e,t[n]);return a}function lr(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function cr(e,t,n,r,i,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!ts(e))return e;var d=Wa(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Mo(e,s)}else{var p=gi(e),h=p==_||p==E;if(Ka(e))return Co(e,l);if(p==S||p==y||h&&!i){if(s=c||h?{}:yi(e),!l)return c?function(e,t){return To(e,mi(e),t)}(e,function(e,t){return e&&To(t,Bs(t),e)}(s,e)):function(e,t){return To(e,fi(e),t)}(e,ir(s,e))}else{if(!ct[p])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case O:return No(e);case x:case w:return new r(+e);case P:return function(e,t){var n=t?No(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case I:case j:case R:case $:case z:case F:case H:case U:return So(e,n);case C:return new r;case N:case M:return new r(e);case A:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case D:return new r;case T:return o=e,Rn?Se(Rn.call(o)):{}}var o}(e,p,l)}}a||(a=new Jn);var f=a.get(e);if(f)return f;a.set(e,s),ss(e)?e.forEach((function(r){s.add(cr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,o){s.set(o,cr(r,t,n,o,e,a))}));var m=d?o:(u?c?ai:ii:c?Bs:Ts)(e);return At(m||e,(function(r,o){m&&(r=e[o=r]),nr(s,o,cr(r,t,n,o,e,a))})),s}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Se(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function dr(e,t,n){if("function"!=typeof e)throw new De(i);return Ti((function(){e.apply(o,n)}),t)}function pr(e,t,n,r){var o=-1,i=Bt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Pt(t,Qt(n))),r?(i=Ot,a=!1):t.length>=200&&(i=tn,a=!1,t=new Kn(t));e:for(;++o<s;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}zn.templateSettings={escape:Z,evaluate:Q,interpolate:ee,variable:"",imports:{_:zn}},zn.prototype=Hn.prototype,zn.prototype.constructor=zn,Un.prototype=Fn(Hn.prototype),Un.prototype.constructor=Un,Wn.prototype=Fn(Hn.prototype),Wn.prototype.constructor=Wn,qn.prototype.clear=function(){this.__data__=Dn?Dn(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(Dn){var n=t[e];return n===a?o:n}return Le.call(t,e)?t[e]:o},qn.prototype.has=function(e){var t=this.__data__;return Dn?t[e]!==o:Le.call(t,e)},qn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Dn&&t===o?a:t,this},Yn.prototype.clear=function(){this.__data__=[],this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Je.call(t,n,1),--this.size,!0)},Yn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?o:t[n][1]},Yn.prototype.has=function(e){return rr(this.__data__,e)>-1},Yn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(Nn||Yn),string:new qn}},Gn.prototype.delete=function(e){var t=di(this,e).delete(e);return this.size-=t?1:0,t},Gn.prototype.get=function(e){return di(this,e).get(e)},Gn.prototype.has=function(e){return di(this,e).has(e)},Gn.prototype.set=function(e,t){var n=di(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,a),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new Yn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Yn){var r=n.__data__;if(!Nn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(e,t),this.size=n.size,this};var hr=Po(wr),fr=Po(kr,!0);function mr(e,t){var n=!0;return hr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function gr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(l===o?s==s&&!cs(s):n(s,l)))var l=s,c=a}return c}function vr(e,t){var n=[];return hr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function yr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=bi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?yr(s,t-1,n,r,o):Lt(o,s):r||(o[o.length]=s)}return o}var br=Lo(),xr=Lo(!0);function wr(e,t){return e&&br(e,t,Ts)}function kr(e,t){return e&&xr(e,t,Ts)}function _r(e,t){return Tt(t,(function(t){return Za(e[t])}))}function Er(e,t){for(var n=0,r=(t=wo(t,e)).length;null!=e&&n<r;)e=e[ji(t[n++])];return n&&n==r?e:o}function Cr(e,t,n){var r=t(e);return Wa(e)?r:Lt(r,n(e))}function Nr(e){return null==e?e===o?"[object Undefined]":"[object Null]":Qe&&Qe in Se(e)?function(e){var t=Le.call(e,Qe),n=e[Qe];try{e[Qe]=o;var r=!0}catch(e){}var i=Re.call(e);r&&(t?e[Qe]=n:delete e[Qe]);return i}(e):function(e){return Re.call(e)}(e)}function Sr(e,t){return e>t}function Vr(e,t){return null!=e&&Le.call(e,t)}function Ar(e,t){return null!=e&&t in Se(e)}function Dr(e,t,n){for(var i=n?Ot:Bt,a=e[0].length,s=e.length,l=s,c=r(s),u=1/0,d=[];l--;){var p=e[l];l&&t&&(p=Pt(p,Qt(t))),u=xn(p.length,u),c[l]=!n&&(t||a>=120&&p.length>=120)?new Kn(l&&p):o}p=e[0];var h=-1,f=c[0];e:for(;++h<a&&d.length<u;){var m=p[h],g=t?t(m):m;if(m=n||0!==m?m:0,!(f?tn(f,g):i(d,g,n))){for(l=s;--l;){var v=c[l];if(!(v?tn(v,g):i(e[l],g,n)))continue e}f&&f.push(g),d.push(m)}}return d}function Mr(e,t,n){var r=null==(e=Ai(e,t=wo(t,e)))?e:e[ji(Xi(t))];return null==r?o:St(r,e,n)}function Tr(e){return ns(e)&&Nr(e)==y}function Br(e,t,n,r,i){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=Wa(e),l=Wa(t),c=s?b:gi(e),u=l?b:gi(t),d=(c=c==y?S:c)==S,p=(u=u==y?S:u)==S,h=c==u;if(h&&Ka(e)){if(!Ka(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new Jn),s||us(e)?ri(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case O:return!(e.byteLength!=t.byteLength||!i(new We(e),new We(t)));case x:case w:case N:return za(+e,+t);case k:return e.name==t.name&&e.message==t.message;case A:case M:return e==t+"";case C:var s=cn;case D:var l=1&r;if(s||(s=pn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=ri(s(e),s(t),r,o,i,a);return a.delete(e),u;case T:if(Rn)return Rn.call(e)==Rn.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var f=d&&Le.call(e,"__wrapped__"),m=p&&Le.call(t,"__wrapped__");
vendor: 4,236 bytes, line 2
2if(f||m){var g=f?e.value():e,v=m?t.value():t;return a||(a=new Jn),i(g,v,n,r,a)}}if(!h)return!1;return a||(a=new Jn),function(e,t,n,r,i,a){var s=1&n,l=ii(e),c=l.length,u=ii(t),d=u.length;if(c!=d&&!s)return!1;var p=c;for(;p--;){var h=l[p];if(!(s?h in t:Le.call(t,h)))return!1}var f=a.get(e),m=a.get(t);if(f&&m)return f==t&&m==e;var g=!0;a.set(e,t),a.set(t,e);var v=s;for(;++p<c;){var y=e[h=l[p]],b=t[h];if(r)var x=s?r(b,y,h,t,e,a):r(y,b,h,e,t,a);if(!(x===o?y===b||i(y,b,n,r,a):x)){g=!1;break}v||(v="constructor"==h)}if(g&&!v){var w=e.constructor,k=t.constructor;w==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof k&&k instanceof k||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,n,r,i,a)}(e,t,n,r,Br,i))}function Or(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Se(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var c=(l=n[i])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===o&&!(c in e))return!1}else{var p=new Jn;if(r)var h=r(u,d,c,e,t,p);if(!(h===o?Br(d,u,3,r,p):h))return!1}}return!0}function Pr(e){return!(!ts(e)||(t=e,je&&je in t))&&(Za(e)?Fe:ye).test(Ri(e));var t}function Lr(e){return"function"==typeof e?e:null==e?ol:"object"==typeof e?Wa(e)?Fr(e[0],e[1]):zr(e):hl(e)}function Ir(e){if(!Ci(e))return Gt(e);var t=[];for(var n in Se(e))Le.call(e,n)&&"constructor"!=n&&t.push(n);return t}function jr(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Se(e))t.push(n);return t}(e);var t=Ci(e),n=[];for(var r in e)("constructor"!=r||!t&&Le.call(e,r))&&n.push(r);return n}function Rr(e,t){return e<t}function $r(e,t){var n=-1,o=Ya(e)?r(e.length):[];return hr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function zr(e){var t=pi(e);return 1==t.length&&t[0][2]?Si(t[0][0],t[0][1]):function(n){return n===e||Or(n,e,t)}}function Fr(e,t){return ki(e)&&Ni(t)?Si(ji(e),t):function(n){var r=Ss(n,e);return r===o&&r===t?Vs(n,e):Br(t,r,3)}}function Hr(e,t,n,r,i){e!==t&&br(t,(function(a,s){if(i||(i=new Jn),ts(a))!function(e,t,n,r,i,a,s){var l=Di(e,n),c=Di(t,n),u=s.get(c);if(u)return void tr(e,n,u);var d=a?a(l,c,n+"",e,t,s):o,p=d===o;if(p){var h=Wa(c),f=!h&&Ka(c),m=!h&&!f&&us(c);d=c,h||f||m?Wa(l)?d=l:Ga(l)?d=Mo(l):f?(p=!1,d=Co(c,!0)):m?(p=!1,d=So(c,!0)):d=[]:is(c)||Ua(c)?(d=l,Ua(l)?d=ys(l):ts(l)&&!Za(l)||(d=yi(c))):p=!1}p&&(s.set(c,d),i(d,c,r,a,s),s.delete(c));tr(e,n,d)}(e,t,s,n,Hr,r,i);else{var l=r?r(Di(e,s),a,s+"",e,t,i):o;l===o&&(l=a),tr(e,s,l)}}),Bs)}function Ur(e,t){var n=e.length;if(n)return xi(t+=t<0?n:0,n)?e[t]:o}function Wr(e,t,n){t=t.length?Pt(t,(function(e){return Wa(e)?function(t){return Er(t,1===e.length?e[0]:e)}:e})):[ol];var r=-1;t=Pt(t,Qt(ui()));var o=$r(e,(function(e,n,o){var i=Pt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;for(;++r<a;){var l=Vo(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function qr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Er(e,a);n(s,a)&&eo(i,wo(a,e),s)}return i}function Yr(e,t,n,r){var o=r?Ut:Ht,i=-1,a=t.length,s=e;for(e===t&&(t=Mo(t)),n&&(s=Pt(e,Qt(n)));++i<a;)for(var l=0,c=t[i],u=n?n(c):c;(l=o(s,u,l,r))>-1;)s!==e&&Je.call(s,l,1),Je.call(e,l,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;xi(o)?Je.call(e,o,1):ho(e,o)}}return e}function Kr(e,t){return e+gt(_n()*(t-e+1))}function Jr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Bi(Vi(e,t,ol),e+"")}function Zr(e){return Zn(zs(e))}function Qr(e,t){var n=zs(e);return Li(n,lr(t,0,n.length))}function eo(e,t,n,r){if(!ts(e))return e;for(var i=-1,a=(t=wo(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var c=ji(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=l[c];(u=r?r(d,c,l):o)===o&&(u=ts(d)?d:xi(t[i+1])?[]:{})}nr(l,c,u),l=l[c]}return e}var to=Mn?function(e,t){return Mn.set(e,t),e}:ol,no=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:ol;function ro(e){return Li(zs(e))}
vendor: 5,009 bytes, line 2
2function oo(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function io(e,t){var n;return hr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ao(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return so(e,t,ol,n)}function so(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,c=cs(t),u=t===o;i<a;){var d=gt((i+a)/2),p=n(e[d]),h=p!==o,f=null===p,m=p==p,g=cs(p);if(s)var v=r||m;else v=u?m&&(r||h):l?m&&h&&(r||!f):c?m&&h&&!f&&(r||!g):!f&&!g&&(r?p<=t:p<t);v?i=d+1:a=d}return xn(a,4294967294)}function lo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!za(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:cs(e)?m:+e}function uo(e){if("string"==typeof e)return e;if(Wa(e))return Pt(e,uo)+"";if(cs(e))return $n?$n.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function po(e,t,n){var r=-1,o=Bt,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=Ot;else if(i>=200){var c=t?null:Xo(e);if(c)return pn(c);a=!1,o=tn,l=new Kn}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function ho(e,t){return null==(e=Ai(e,t=wo(t,e)))||delete e[ji(Xi(t))]}function fo(e,t,n,r){return eo(e,t,n(Er(e,t)),r)}function mo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?oo(e,r?0:i,r?i+1:o):oo(e,r?i+1:0,r?o:i)}function go(e,t){var n=e;return n instanceof Wn&&(n=n.value()),It(t,(function(e,t){return t.func.apply(t.thisArg,Lt([e],t.args))}),n)}function vo(e,t,n){var o=e.length;if(o<2)return o?po(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],l=-1;++l<o;)l!=i&&(a[i]=pr(a[i]||s,e[l],t,n));return po(yr(a,1),t,n)}function yo(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var l=r<a?t[r]:o;n(s,e[r],l)}return s}function bo(e){return Ga(e)?e:[]}function xo(e){return"function"==typeof e?e:ol}function wo(e,t){return Wa(e)?e:ki(e,t)?[e]:Ii(bs(e))}var ko=Xr;function _o(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:oo(e,t,n)}var Eo=ot||function(e){return mt.clearTimeout(e)};function Co(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function No(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function So(e,t){var n=t?No(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Vo(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=cs(e),s=t!==o,l=null===t,c=t==t,u=cs(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}function Ao(e,t,n,o){for(var i=-1,a=e.length,s=n.length,l=-1,c=t.length,u=bn(a-s,0),d=r(c+u),p=!o;++l<c;)d[l]=t[l];for(;++i<s;)(p||i<a)&&(d[n[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}function Do(e,t,n,o){for(var i=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=bn(a-l,0),p=r(d+u),h=!o;++i<d;)p[i]=e[i];for(var f=i;++c<u;)p[f+c]=t[c];for(;++s<l;)(h||i<a)&&(p[f+n[s]]=e[i++]);return p}function Mo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function To(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):o;c===o&&(c=e[l]),i?ar(n,l,c):nr(n,l,c)}return n}function Bo(e,t){return function(n,r){var o=Wa(n)?Vt:or,i=t?t():{};return o(n,e,ui(r,2),i)}}function Oo(e){return Xr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&wi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Se(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}function Po(e,t){return function(n,r){if(null==n)return n;if(!Ya(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Se(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Lo(e){return function(t,n,r){for(var o=-1,i=Se(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function Io(e){return function(t){var n=ln(t=bs(t))?mn(t):o,r=n?n[0]:t.charAt(0),i=n?_o(n,1).join(""):t.slice(1);return r[e]()+i}}function jo(e){return function(t){return It(Zs(Us(t).replace(et,"")),e,"")}}function Ro(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Fn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function $o(e){return function(t,n,r){var i=Se(t);if(!Ya(t)){var a=ui(n,3);t=Ts(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function zo(e){return oi((function(t){var n=t.length,r=n,a=Un.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];
vendor: 4,105 bytes, line 2
2if("function"!=typeof s)throw new De(i);if(a&&!l&&"wrapper"==li(s))var l=new Un([],!0)}for(r=l?r:n;++r<n;){var c=li(s=t[r]),u="wrapper"==c?si(s):o;l=u&&_i(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[li(u[0])].apply(l,u[3]):1==s.length&&_i(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Wa(r))return l.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Fo(e,t,n,i,a,s,l,c,u,p){var h=t&d,f=1&t,m=2&t,g=24&t,v=512&t,y=m?o:Ro(e);return function d(){for(var b=arguments.length,x=r(b),w=b;w--;)x[w]=arguments[w];if(g)var k=ci(d),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(x,k);if(i&&(x=Ao(x,i,a,g)),s&&(x=Do(x,s,l,g)),b-=_,g&&b<p){var E=dn(x,k);return Ko(e,t,Fo,d.placeholder,n,x,E,c,u,p-b)}var C=f?n:this,N=m?C[e]:e;return b=x.length,c?x=function(e,t){var n=e.length,r=xn(t.length,n),i=Mo(e);for(;r--;){var a=t[r];e[r]=xi(a,n)?i[a]:o}return e}(x,c):v&&b>1&&x.reverse(),h&&u<b&&(x.length=u),this&&this!==mt&&this instanceof d&&(N=y||Ro(N)),N.apply(C,x)}}function Ho(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Uo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=uo(n),r=uo(r)):(n=co(n),r=co(r)),i=e(n,r)}return i}}function Wo(e){return oi((function(t){return t=Pt(t,Qt(ui())),Xr((function(n){var r=this;return e(t,(function(e){return St(e,r,n)}))}))}))}function qo(e,t){var n=(t=t===o?" ":uo(t)).length;if(n<2)return n?Jr(t,e):t;var r=Jr(t,ft(e/fn(t)));return ln(t)?_o(mn(r),0,e).join(""):r.slice(0,e)}function Yo(e){return function(t,n,i){return i&&"number"!=typeof i&&wi(t,n,i)&&(n=i=o),t=fs(t),n===o?(n=t,t=0):n=fs(n),function(e,t,n,o){for(var i=-1,a=bn(ft((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:fs(i),e)}}function Go(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function Ko(e,t,n,r,i,a,s,l,d,p){var h=8&t;t|=h?c:u,4&(t&=~(h?u:c))||(t&=-4);var f=[e,t,i,h?a:o,h?s:o,h?o:a,h?o:s,l,d,p],m=n.apply(o,f);return _i(e)&&Mi(m,f),m.placeholder=r,Oi(m,e,t)}function Jo(e){var t=Ne[e];return function(e,n){if(e=vs(e),(n=null==n?0:xn(ms(n),292))&&xt(e)){var r=(bs(e)+"e").split("e");return+((r=(bs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Xo=Vn&&1/pn(new Vn([,-0]))[1]==h?function(e){return new Vn(e)}:cl;function Zo(e){return function(t){var n=gi(t);return n==C?cn(t):n==D?hn(t):function(e,t){return Pt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qo(e,t,n,a,h,f,m,g){var v=2&t;if(!v&&"function"!=typeof e)throw new De(i);var y=a?a.length:0;if(y||(t&=-97,a=h=o),m=m===o?m:bn(ms(m),0),g=g===o?g:ms(g),y-=h?h.length:0,t&u){var b=a,x=h;a=h=o}var w=v?o:si(e),k=[e,t,n,a,h,b,x,f,m,g];if(w&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==d&&8==n||r==d&&n==p&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Ao(c,l,t[4]):l,e[4]=c?dn(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Do(c,l,t[6]):l,e[6]=c?dn(e[5],s):t[6]);(l=t[7])&&(e[7]=l);r&d&&(e[8]=null==e[8]?t[8]:xn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(k,w),e=k[0],t=k[1],n=k[2],a=k[3],h=k[4],!(g=k[9]=k[9]===o?v?0:e.length:bn(k[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==l?function(e,t,n){var i=Ro(e);return function a(){for(var s=arguments.length,l=r(s),c=s,u=ci(a);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:dn(l,u);return(s-=d.length)<n?Ko(e,t,Fo,a.placeholder,o,l,d,o,o,n-s):St(this&&this!==mt&&this instanceof a?i:e,this,l)}}(e,t,g):t!=c&&33!=t||h.length?Fo.apply(o,k):function(e,t,n,o){var i=1&t,a=Ro(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=o.length,d=r(u+l),p=this&&this!==mt&&this instanceof t?a:e;++c<u;)d[c]=o[c];for(;l--;)d[c++]=arguments[++s];return St(p,i?n:this,d)}}(e,t,n,a);else var _=function(e,t,n){var r=1&t,o=Ro(e);return function t(){return(this&&this!==mt&&this instanceof t?o:e).apply(r?n:this,arguments)}}
vendor: 1,031 bytes, line 2
2(e,t,n);return Oi((w?to:Mi)(_,k),e,t)}function ei(e,t,n,r){return e===o||za(e,Be[n])&&!Le.call(r,n)?t:e}function ti(e,t,n,r,i,a){return ts(e)&&ts(t)&&(a.set(t,e),Hr(e,t,o,ti,a),a.delete(t)),e}function ni(e){return is(e)?o:e}function ri(e,t,n,r,i,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,f=2&n?new Kn:o;for(a.set(e,t),a.set(t,e);++p<l;){var m=e[p],g=t[p];if(r)var v=s?r(g,m,p,t,e,a):r(m,g,p,e,t,a);if(v!==o){if(v)continue;h=!1;break}if(f){if(!Rt(t,(function(e,t){if(!tn(f,t)&&(m===e||i(m,e,n,r,a)))return f.push(t)}))){h=!1;break}}else if(m!==g&&!i(m,g,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function oi(e){return Bi(Vi(e,o,qi),e+"")}function ii(e){return Cr(e,Ts,fi)}function ai(e){return Cr(e,Bs,mi)}var si=Mn?function(e){return Mn.get(e)}:cl;function li(e){for(var t=e.name+"",n=Tn[t],r=Le.call(Tn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(Le.call(zn,"placeholder")?z
vendor: 14,968 bytes, line 2
2n:e).placeholder}function ui(){var e=zn.iteratee||il;return e=e===il?Lr:e,arguments.length?e(arguments[0],arguments[1]):e}function di(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function pi(e){for(var t=Ts(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ni(o)]}return t}function hi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Pr(n)?n:o}var fi=vt?function(e){return null==e?[]:(e=Se(e),Tt(vt(e),(function(t){return Ke.call(e,t)})))}:gl,mi=vt?function(e){for(var t=[];e;)Lt(t,fi(e)),e=Ye(e);return t}:gl,gi=Nr;function vi(e,t,n){for(var r=-1,o=(t=wo(t,e)).length,i=!1;++r<o;){var a=ji(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&es(o)&&xi(a,o)&&(Wa(e)||Ua(e))}function yi(e){return"function"!=typeof e.constructor||Ci(e)?{}:Fn(Ye(e))}function bi(e){return Wa(e)||Ua(e)||!!(Xe&&e&&e[Xe])}function xi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&xe.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?Ya(n)&&xi(t,n.length):"string"==r&&t in n)&&za(n[t],e)}function ki(e,t){if(Wa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Se(t))}function _i(e){var t=li(e),n=zn[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=si(n);return!!r&&e===r[0]}(Cn&&gi(new Cn(new ArrayBuffer(1)))!=P||Nn&&gi(new Nn)!=C||Sn&&gi(Sn.resolve())!=V||Vn&&gi(new Vn)!=D||An&&gi(new An)!=B)&&(gi=function(e){var t=Nr(e),n=t==S?e.constructor:o,r=n?Ri(n):"";if(r)switch(r){case Bn:return P;case On:return C;case Pn:return V;case Ln:return D;case In:return B}return t});var Ei=Oe?Za:vl;function Ci(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Be)}function Ni(e){return e==e&&!ts(e)}function Si(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in Se(n)))}}function Vi(e,t,n){return t=bn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=bn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=o[i];return l[t]=n(s),St(e,this,l)}}function Ai(e,t){return t.length<2?e:Er(e,oo(t,0,-1))}function Di(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Mi=Pi(to),Ti=ht||function(e,t){return mt.setTimeout(e,t)},Bi=Pi(no);function Oi(e,t,n){var r=t+"";return Bi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return At(v,(function(n){var r="_."+n[0];t&n[1]&&!Bt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(r),n)))}function Pi(e){var t=0,n=0;return function(){var r=wn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Li(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Kr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Ii=function(e){var t=Pa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(he,"$1"):n||e)})),t}));function ji(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ri(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $i(e){if(e instanceof Wn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Mo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zi=Xr((function(e,t){return Ga(e)?pr(e,yr(t,1,Ga,!0)):[]})),Fi=Xr((function(e,t){var n=Xi(t);return Ga(n)&&(n=o),Ga(e)?pr(e,yr(t,1,Ga,!0),ui(n,2)):[]})),Hi=Xr((function(e,t){var n=Xi(t);return Ga(n)&&(n=o),Ga(e)?pr(e,yr(t,1,Ga,!0),o,n):[]}));function Ui(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ms(n);return o<0&&(o=bn(r+o,0)),Ft(e,ui(t,3),o)}function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ms(n),i=n<0?bn(r+i,0):xn(i,r-1)),Ft(e,ui(t,3),i,!0)}function qi(e){return(null==e?0:e.length)?yr(e,1):[]}function Yi(e){return e&&e.length?e[0]:o}var Gi=Xr((function(e){var t=Pt(e,bo);return t.length&&t[0]===e[0]?Dr(t):[]})),Ki=Xr((function(e){var t=Xi(e),n=Pt(e,bo);return t===Xi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Dr(n,ui(t,2)):[]})),Ji=Xr((function(e){var t=Xi(e),n=Pt(e,bo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Dr(n,o,t):[]}));function Xi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Zi=Xr(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?Yr(e,t):e}var ea=oi((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Gr(e,Pt(t,(function(e){return xi(e,n)?+e:e})).sort(Vo)),r}));function ta(e){return null==e?e:En.call(e)}var na=Xr((function(e){return po(yr(e,1,Ga,!0))})),ra=Xr((function(e){var t=Xi(e);return Ga(t)&&(t=o),po(yr(e,1,Ga,!0),ui(t,2))})),oa=Xr((function(e){var t=Xi(e);return t="function"==typeof t?t:o,po(yr(e,1,Ga,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,(function(e){if(Ga(e))return t=bn(e.length,t),!0})),Xt(t,(function(t){return Pt(e,Yt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:Pt(n,(function(e){return St(t,o,e)}))}var sa=Xr((function(e,t){return Ga(e)?pr(e,t):[]})),la=Xr((function(e){return vo(Tt(e,Ga))})),ca=Xr((function(e){var t=Xi(e);return Ga(t)&&(t=o),vo(Tt(e,Ga),ui(t,2))})),ua=Xr((function(e){var t=Xi(e);return t="function"==typeof t?t:o,vo(Tt(e,Ga),o,t)})),da=Xr(ia);var pa=Xr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function ha(e){var t=zn(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var ma=oi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&xi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:fa,args:[i],thisArg:o}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ga=Bo((function(e,t,n){Le.call(e,n)?++e[n]:ar(e,n,1)}));var va=$o(Ui),ya=$o(Wi);function ba(e,t){return(Wa(e)?At:hr)(e,ui(t,3))}function xa(e,t){return(Wa(e)?Dt:fr)(e,ui(t,3))}var wa=Bo((function(e,t,n){Le.call(e,n)?e[n].push(t):ar(e,n,[t])}));var ka=Xr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ya(e)?r(e.length):[];return hr(e,(function(e){a[++o]=i?St(t,e,n):Mr(e,t,n)})),a})),_a=Bo((function(e,t,n){ar(e,n,t)}));function Ea(e,t){return(Wa(e)?Pt:$r)(e,ui(t,3))}var Ca=Bo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Na=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&wi(e,t[0],t[1])?t=[]:n>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,yr(t,1),[])})),Sa=ut||function(){return mt.Date.now()};function Va(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Qo(e,d,o,o,o,o,t)}function Aa(e,t){var n;if("function"!=typeof t)throw new De(i);return e=ms(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Da=Xr((function(e,t,n){var r=1;if(n.length){var o=dn(n,ci(Da));r|=c}return Qo(e,r,t,n,o)})),Ma=Xr((function(e,t,n){var r=3;if(n.length){var o=dn(n,ci(Ma));r|=c}return Qo(t,r,e,n,o)}));function Ta(e,t,n){var r,a,s,l,c,u,d=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new De(i);function m(t){var n=r,i=a;return r=a=o,d=t,l=e.apply(i,n)}function g(e){var n=e-u;return u===o||n>=t||n<0||h&&e-d>=s}function v(){var e=Sa();if(g(e))return y(e);c=Ti(v,function(e){var n=t-(e-u);return h?xn(n,s-(e-d)):n}(e))}function y(e){return c=o,f&&r?m(e):(r=a=o,l)}function b(){var e=Sa(),n=g(e);if(r=arguments,a=this,u=e,n){if(c===o)return function(e){return d=e,c=Ti(v,t),p?m(e):l}(u);if(h)return Eo(c),c=Ti(v,t),m(u)}return c===o&&(c=Ti(v,t)),l}return t=vs(t)||0,ts(n)&&(p=!!n.leading,s=(h="maxWait"in n)?bn(vs(n.maxWait)||0,t):s,f="trailing"in n?!!n.trailing:f),b.cancel=function(){c!==o&&Eo(c),d=0,r=u=a=c=o},b.flush=function(){return c===o?l:y(Sa())},b}var Ba=Xr((function(e,t){return dr(e,1,t)})),Oa=Xr((function(e,t,n){return dr(e,vs(t)||0,n)}));function Pa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new De(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Pa.Cache||Gn),n}function La(e){if("function"!=typeof e)throw new De(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Pa.Cache=Gn;var Ia=ko((function(e,t){var n=(t=1==t.length&&Wa(t[0])?Pt(t[0],Qt(ui())):Pt(yr(t,1),Qt(ui()))).length;return Xr((function(r){for(var o=-1,i=xn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return St(e,this,r)}))})),ja=Xr((function(e,t){var n=dn(t,ci(ja));return Qo(e,c,o,t,n)})),Ra=Xr((function(e,t){var n=dn(t,ci(Ra));return Qo(e,u,o,t,n)})),$a=oi((function(e,t){return Qo(e,p,o,o,o,t)}));function za(e,t){return e===t||e!=e&&t!=t}var Fa=Go(Sr),Ha=Go((function(e,t){return e>=t})),Ua=Tr(function(){return arguments}())?Tr:function(e){return ns(e)&&Le.call(e,"callee")&&!Ke.call(e,"callee")},Wa=r.isArray,qa=wt?Qt(wt):function(e){return ns(e)&&Nr(e)==O};function Ya(e){return null!=e&&es(e.length)&&!Za(e)}function Ga(e){return ns(e)&&Ya(e)}var Ka=bt||vl,Ja=kt?Qt(kt):function(e){return ns(e)&&Nr(e)==w};function Xa(e){if(!ns(e))return!1;var t=Nr(e);return t==k||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Za(e){if(!ts(e))return!1;var t=Nr(e);return t==_||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qa(e){return"number"==typeof e&&e==ms(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=_t?Qt(_t):function(e){return ns(e)&&gi(e)==C};function os(e){return"number"==typeof e||ns(e)&&Nr(e)==N}function is(e){if(!ns(e)||Nr(e)!=S)return!1;var t=Ye(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==$e}var as=Et?Qt(Et):function(e){return ns(e)&&Nr(e)==A};var ss=Ct?Qt(Ct):function(e){return ns(e)&&gi(e)==D};function ls(e){return"string"==typeof e||!Wa(e)&&ns(e)&&Nr(e)==M}function cs(e){return"symbol"==typeof e||ns(e)&&Nr(e)==T}var us=Nt?Qt(Nt):function(e){return ns(e)&&es(e.length)&&!!lt[Nr(e)]};var ds=Go(Rr),ps=Go((function(e,t){return e<=t}));function hs(e){if(!e)return[];if(Ya(e))return ls(e)?mn(e):Mo(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=gi(e);return(t==C?cn:t==D?pn:zs)(e)}function fs(e){return e?(e=vs(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ms(e){var t=fs(e),n=t%1;return t==t?n?t-n:t:0}function gs(e){return e?lr(ms(e),0,g):0}function vs(e){if("number"==typeof e)return e;if(cs(e))return m;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ve.test(e);return n||be.test(e)?pt(e.slice(2),n?2:8):ge.test(e)?m:+e}function ys(e){return To(e,Bs(e))}function bs(e){return null==e?"":uo(e)}var xs=Oo((function(e,t){if(Ci(t)||Ya(t))To(t,Ts(t),e);else for(var n in t)Le.call(t,n)&&nr(e,n,t[n])})),ws=Oo((function(e,t){To(t,Bs(t),e)})),ks=Oo((function(e,t,n,r){To(t,Bs(t),e,r)})),_s=Oo((function(e,t,n,r){To(t,Ts(t),e,r)})),Es=oi(sr);var Cs=Xr((function(e,t){e=Se(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&wi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Bs(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===o||za(d,Be[u])&&!Le.call(e,u))&&(e[u]=a[u])}return e})),Ns=Xr((function(e){return e.push(o,ti),St(Ps,o,e)}));function Ss(e,t,n){var r=null==e?o:Er(e,t);return r===o?n:r}function Vs(e,t){return null!=e&&vi(e,t,Ar)}var As=Ho((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Re.call(t)),e[t]=n}),tl(ol)),Ds=Ho((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Re.call(t)),Le.call(e,t)?e[t].push(n):e[t]=[n]}),ui),Ms=Xr(Mr);function Ts(e){return Ya(e)?Xn(e):Ir(e)}function Bs(e){return Ya(e)?Xn(e,!0):jr(e)}var Os=Oo((function(e,t,n){Hr(e,t,n)})),Ps=Oo((function(e,t,n,r){Hr(e,t,n,r)})),Ls=oi((function(e,t){var n={};if(null==e)return n;var r=!1;t=Pt(t,(function(t){return t=wo(t,e),r||(r=t.length>1),t})),To(e,ai(e),n),r&&(n=cr(n,7,ni));for(var o=t.length;o--;)ho(n,t[o]);return n}));var Is=oi((function(e,t){return null==e?{}:function(e,t){return qr(e,t,(function(t,n){return Vs(e,n)}))}(e,t)}));function js(e,t){if(null==e)return{};var n=Pt(ai(e),(function(e){return[e]}));return t=ui(t),qr(e,n,(function(e,n){return t(e,n[0])}))}var Rs=Zo(Ts),$s=Zo(Bs);function zs(e){return null==e?[]:en(e,Ts(e))}var Fs=jo((function(e,t,n){return t=t.toLowerCase(),e+(n?Hs(t):t)}));function Hs(e){return Xs(bs(e).toLowerCase())}function Us(e){return(e=bs(e))&&e.replace(we,on).replace(tt,"")}var Ws=jo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),qs=jo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ys=Io("toLowerCase");var Gs=jo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ks=jo((function(e,t,n){return e+(n?" ":"")+Xs(t)}));var Js=jo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xs=Io("toUpperCase");function Zs(e,t,n){return e=bs(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Qs=Xr((function(e,t){try{return St(e,o,t)}catch(e){return Xa(e)?e:new Ee(e)}})),el=oi((function(e,t){return At(t,(function(t){t=ji(t),ar(e,t,Da(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=zo(),rl=zo(!0);function ol(e){return e}function il(e){return Lr("function"==typeof e?e:cr(e,1))}var al=Xr((function(e,t){return function(n){return Mr(n,e,t)}})),sl=Xr((function(e,t){return function(n){return Mr(e,n,t)}}));function ll(e,t,n){var r=Ts(t),o=_r(t,r);null!=n||ts(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,Ts(t)));var i=!(ts(n)&&"chain"in n&&!n.chain),a=Za(e);return At(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Mo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Lt([this.value()],arguments))})})),e}function cl(){}var ul=Wo(Pt),dl=Wo(Mt),pl=Wo(Rt);function hl(e){return ki(e)?Yt(ji(e)):function(e){return function(t){return Er(t,e)}}(e)}var fl=Yo(),ml=Yo(!0);function gl(){return[]}function vl(){return!1}var yl=Uo((function(e,t){return e+t}),0),bl=Jo("ceil"),xl=Uo((function(e,t){return e/t}),1),wl=Jo("floor");var kl,_l=Uo((function(e,t){return e*t}),1),El=Jo("round"),Cl=Uo((function(e,t){return e-t}
vendor: 4,985 bytes, line 2
2),0);return zn.after=function(e,t){if("function"!=typeof t)throw new De(i);return e=ms(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Va,zn.assign=xs,zn.assignIn=ws,zn.assignInWith=ks,zn.assignWith=_s,zn.at=Es,zn.before=Aa,zn.bind=Da,zn.bindAll=el,zn.bindKey=Ma,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wa(e)?e:[e]},zn.chain=ha,zn.chunk=function(e,t,n){t=(n?wi(e,t,n):t===o)?1:bn(ms(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,l=r(ft(i/t));a<i;)l[s++]=oo(e,a,a+=t);return l},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Lt(Wa(n)?Mo(n):[n],yr(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=ui();return e=t?Pt(e,(function(e){if("function"!=typeof e[1])throw new De(i);return[n(e[0]),e[1]]})):[],Xr((function(n){for(var r=-1;++r<t;){var o=e[r];if(St(o[0],this,n))return St(o[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Ts(e);return function(n){return ur(n,e,t)}}(cr(e,1))},zn.constant=tl,zn.countBy=ga,zn.create=function(e,t){var n=Fn(e);return null==t?n:ir(n,t)},zn.curry=function e(t,n,r){var i=Qo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},zn.curryRight=function e(t,n,r){var i=Qo(t,l,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},zn.debounce=Ta,zn.defaults=Cs,zn.defaultsDeep=Ns,zn.defer=Ba,zn.delay=Oa,zn.difference=zi,zn.differenceBy=Fi,zn.differenceWith=Hi,zn.drop=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=n||t===o?1:ms(t))<0?0:t,r):[]},zn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,0,(t=r-(t=n||t===o?1:ms(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?mo(e,ui(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?mo(e,ui(t,3),!0):[]},zn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&wi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ms(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ms(r))<0&&(r+=i),r=n>r?0:gs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},zn.filter=function(e,t){return(Wa(e)?Tt:vr)(e,ui(t,3))},zn.flatMap=function(e,t){return yr(Ea(e,t),1)},zn.flatMapDeep=function(e,t){return yr(Ea(e,t),h)},zn.flatMapDepth=function(e,t,n){return n=n===o?1:ms(n),yr(Ea(e,t),n)},zn.flatten=qi,zn.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,h):[]},zn.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===o?1:ms(t)):[]},zn.flip=function(e){return Qo(e,512)},zn.flow=nl,zn.flowRight=rl,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},zn.functions=function(e){return null==e?[]:_r(e,Ts(e))},zn.functionsIn=function(e){return null==e?[]:_r(e,Bs(e))},zn.groupBy=wa,zn.initial=function(e){return(null==e?0:e.length)?oo(e,0,-1):[]},zn.intersection=Gi,zn.intersectionBy=Ki,zn.intersectionWith=Ji,zn.invert=As,zn.invertBy=Ds,zn.invokeMap=ka,zn.iteratee=il,zn.keyBy=_a,zn.keys=Ts,zn.keysIn=Bs,zn.map=Ea,zn.mapKeys=function(e,t){var n={};return t=ui(t,3),wr(e,(function(e,r,o){ar(n,t(e,r,o),e)})),n},zn.mapValues=function(e,t){var n={};return t=ui(t,3),wr(e,(function(e,r,o){ar(n,r,t(e,r,o))})),n},zn.matches=function(e){return zr(cr(e,1))},zn.matchesProperty=function(e,t){return Fr(e,cr(t,1))},zn.memoize=Pa,zn.merge=Os,zn.mergeWith=Ps,zn.method=al,zn.methodOf=sl,zn.mixin=ll,zn.negate=La,zn.nthArg=function(e){return e=ms(e),Xr((function(t){return Ur(t,e)}))},zn.omit=Ls,zn.omitBy=function(e,t){return js(e,La(ui(t)))},zn.once=function(e){return Aa(2,e)},zn.orderBy=function(e,t,n,r){return null==e?[]:(Wa(t)||(t=null==t?[]:[t]),Wa(n=r?o:n)||(n=null==n?[]:[n]),Wr(e,t,n))},zn.over=ul,zn.overArgs=Ia,zn.overEvery=dl,zn.overSome=pl,zn.partial=ja,zn.partialRight=Ra,zn.partition=Ca,zn.pick=Is,zn.pickBy=js,zn.property=hl,zn.propertyOf=function(e){return function(t){return null==e?o:Er(e,t)}},zn.pull=Zi,zn.pullAll=Qi,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,ui(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,o,n):e},zn.pullAt=ea,zn.range=fl,zn.rangeRight=ml,zn.rearg=$a,zn.reject=function(e,t){return(Wa(e)?Tt:vr)(e,La(ui(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ui(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Gr(e,o),n},zn.rest=function(e,t){if("function"!=typeof e)throw new De(i);return Xr(e,t=t===o?t:ms(t))},zn.reverse=ta,zn.sampleSize=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:ms(t),(Wa(e)?Qn:Qr)(e,t)},zn.set=function(e,t,n){return null==e?e:eo(e,t,n)},zn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:eo(e,t,n,r)},zn.shuffle=function(e){return(Wa(e)?er:ro)(e)},zn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wi(e,t,n)?(t=0,n=r):(t=null==t?0:ms(t),n=n===o?r:ms(n)),oo(e,t,n
vendor: 4,540 bytes, line 2
2)):[]},zn.sortBy=Na,zn.sortedUniq=function(e){return e&&e.length?lo(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,ui(t,2)):[]},zn.split=function(e,t,n){return n&&"number"!=typeof n&&wi(e,t,n)&&(t=n=o),(n=n===o?g:n>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=uo(t))&&ln(e)?_o(mn(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new De(i);return t=null==t?0:bn(ms(t),0),Xr((function(n){var r=n[t],o=_o(n,0,t);return r&&Lt(o,r),St(e,this,o)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?oo(e,0,(t=n||t===o?1:ms(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=r-(t=n||t===o?1:ms(t)))<0?0:t,r):[]},zn.takeRightWhile=function(e,t){return e&&e.length?mo(e,ui(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?mo(e,ui(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new De(i);return ts(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ta(e,t,{leading:r,maxWait:t,trailing:o})},zn.thru=fa,zn.toArray=hs,zn.toPairs=Rs,zn.toPairsIn=$s,zn.toPath=function(e){return Wa(e)?Pt(e,ji):cs(e)?[e]:Mo(Ii(bs(e)))},zn.toPlainObject=ys,zn.transform=function(e,t,n){var r=Wa(e),o=r||Ka(e)||us(e);if(t=ui(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ts(e)&&Za(i)?Fn(Ye(e)):{}}return(o?At:wr)(e,(function(e,r,o){return t(n,e,r,o)})),n},zn.unary=function(e){return Va(e,1)},zn.union=na,zn.unionBy=ra,zn.unionWith=oa,zn.uniq=function(e){return e&&e.length?po(e):[]},zn.uniqBy=function(e,t){return e&&e.length?po(e,ui(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?po(e,o,t):[]},zn.unset=function(e,t){return null==e||ho(e,t)},zn.unzip=ia,zn.unzipWith=aa,zn.update=function(e,t,n){return null==e?e:fo(e,t,xo(n))},zn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:fo(e,t,xo(n),r)},zn.values=zs,zn.valuesIn=function(e){return null==e?[]:en(e,Bs(e))},zn.without=sa,zn.words=Zs,zn.wrap=function(e,t){return ja(xo(t),e)},zn.xor=la,zn.xorBy=ca,zn.xorWith=ua,zn.zip=da,zn.zipObject=function(e,t){return yo(e||[],t||[],nr)},zn.zipObjectDeep=function(e,t){return yo(e||[],t||[],eo)},zn.zipWith=pa,zn.entries=Rs,zn.entriesIn=$s,zn.extend=ws,zn.extendWith=ks,ll(zn,zn),zn.add=yl,zn.attempt=Qs,zn.camelCase=Fs,zn.capitalize=Hs,zn.ceil=bl,zn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=vs(n))==n?n:0),t!==o&&(t=(t=vs(t))==t?t:0),lr(vs(e),t,n)},zn.clone=function(e){return cr(e,4)},zn.cloneDeep=function(e){return cr(e,5)},zn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:o)},zn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:o)},zn.conformsTo=function(e,t){return null==t||ur(e,t,Ts(t))},zn.deburr=Us,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=xl,zn.endsWith=function(e,t,n){e=bs(e),t=uo(t);var r=e.length,i=n=n===o?r:lr(ms(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},zn.eq=za,zn.escape=function(e){return(e=bs(e))&&X.test(e)?e.replace(K,an):e},zn.escapeRegExp=function(e){return(e=bs(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},zn.every=function(e,t,n){var r=Wa(e)?Mt:mr;return n&&wi(e,t,n)&&(t=o),r(e,ui(t,3))},zn.find=va,zn.findIndex=Ui,zn.findKey=function(e,t){return zt(e,ui(t,3),wr)},zn.findLast=ya,zn.findLastIndex=Wi,zn.findLastKey=function(e,t){return zt(e,ui(t,3),kr)},zn.floor=wl,zn.forEach=ba,zn.forEachRight=xa,zn.forIn=function(e,t){return null==e?e:br(e,ui(t,3),Bs)},zn.forInRight=function(e,t){return null==e?e:xr(e,ui(t,3),Bs)},zn.forOwn=function(e,t){return e&&wr(e,ui(t,3))},zn.forOwnRight=function(e,t){return e&&kr(e,ui(t,3))},zn.get=Ss,zn.gt=Fa,zn.gte=Ha,zn.has=function(e,t){return null!=e&&vi(e,t,Vr)},zn.hasIn=Vs,zn.head=Yi,zn.identity=ol,zn.includes=function(e,t,n,r){e=Ya(e)?e:zs(e),n=n&&!r?ms(n):0;var o=e.length;return n<0&&(n=bn(o+n,0)),ls(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ht(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ms(n);return o<0&&(o=bn(r+o,0)),Ht(e,t,o)},zn.inRange=function(e,t,n){return t=fs(t),n===o?(n=t,t=0):n=fs(n),function(e,t,n){return e>=xn(t,n)&&e<bn(t,n)}(e=vs(e),t,n)},zn.invoke=Ms,zn.isArguments=Ua,zn.isArray=Wa,zn.isArrayBuffer=qa,zn.isArrayLike=Ya,zn.isArrayLikeObject=Ga,zn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Nr(e)==x},zn.isBuffer=Ka,zn.isDate=Ja,zn.isElement=function(e){return ns(e)&&1===e.nodeType&&!is(e)},zn.isEmpty=function(e){if(null==e)return!0;
vendor: 4,633 bytes, line 2
2if(Ya(e)&&(Wa(e)||"string"==typeof e||"function"==typeof e.splice||Ka(e)||us(e)||Ua(e)))return!e.length;var t=gi(e);if(t==C||t==D)return!e.size;if(Ci(e))return!Ir(e).length;for(var n in e)if(Le.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Br(e,t)},zn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Br(e,t,o,n):!!r},zn.isError=Xa,zn.isFinite=function(e){return"number"==typeof e&&xt(e)},zn.isFunction=Za,zn.isInteger=Qa,zn.isLength=es,zn.isMap=rs,zn.isMatch=function(e,t){return e===t||Or(e,t,pi(t))},zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Or(e,t,pi(t),n)},zn.isNaN=function(e){return os(e)&&e!=+e},zn.isNative=function(e){if(Ei(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=os,zn.isObject=ts,zn.isObjectLike=ns,zn.isPlainObject=is,zn.isRegExp=as,zn.isSafeInteger=function(e){return Qa(e)&&e>=-9007199254740991&&e<=f},zn.isSet=ss,zn.isString=ls,zn.isSymbol=cs,zn.isTypedArray=us,zn.isUndefined=function(e){return e===o},zn.isWeakMap=function(e){return ns(e)&&gi(e)==B},zn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Nr(e)},zn.join=function(e,t){return null==e?"":$t.call(e,t)},zn.kebabCase=Ws,zn.last=Xi,zn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ms(n))<0?bn(r+i,0):xn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ft(e,Wt,i,!0)},zn.lowerCase=qs,zn.lowerFirst=Ys,zn.lt=ds,zn.lte=ps,zn.max=function(e){return e&&e.length?gr(e,ol,Sr):o},zn.maxBy=function(e,t){return e&&e.length?gr(e,ui(t,2),Sr):o},zn.mean=function(e){return qt(e,ol)},zn.meanBy=function(e,t){return qt(e,ui(t,2))},zn.min=function(e){return e&&e.length?gr(e,ol,Rr):o},zn.minBy=function(e,t){return e&&e.length?gr(e,ui(t,2),Rr):o},zn.stubArray=gl,zn.stubFalse=vl,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=_l,zn.nth=function(e,t){return e&&e.length?Ur(e,ms(t)):o},zn.noConflict=function(){return mt._===this&&(mt._=ze),this},zn.noop=cl,zn.now=Sa,zn.pad=function(e,t,n){e=bs(e);var r=(t=ms(t))?fn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return qo(gt(o),n)+e+qo(ft(o),n)},zn.padEnd=function(e,t,n){e=bs(e);var r=(t=ms(t))?fn(e):0;return t&&r<t?e+qo(t-r,n):e},zn.padStart=function(e,t,n){e=bs(e);var r=(t=ms(t))?fn(e):0;return t&&r<t?qo(t-r,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),kn(bs(e).replace(ae,""),t||0)},zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&wi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=fs(e),t===o?(t=e,e=0):t=fs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=_n();return xn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Kr(e,t)},zn.reduce=function(e,t,n){var r=Wa(e)?It:Kt,o=arguments.length<3;return r(e,ui(t,4),n,o,hr)},zn.reduceRight=function(e,t,n){var r=Wa(e)?jt:Kt,o=arguments.length<3;return r(e,ui(t,4),n,o,fr)},zn.repeat=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:ms(t),Jr(bs(e),t)},zn.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var r=-1,i=(t=wo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[ji(t[r])];a===o&&(r=i,a=n),e=Za(a)?a.call(e):a}return e},zn.round=El,zn.runInContext=e,zn.sample=function(e){return(Wa(e)?Zn:Zr)(e)},zn.size=function(e){if(null==e)return 0;if(Ya(e))return ls(e)?fn(e):e.length;var t=gi(e);return t==C||t==D?e.size:Ir(e).length},zn.snakeCase=Gs,zn.some=function(e,t,n){var r=Wa(e)?Rt:io;return n&&wi(e,t,n)&&(t=o),r(e,ui(t,3))},zn.sortedIndex=function(e,t){return ao(e,t)},zn.sortedIndexBy=function(e,t,n){return so(e,t,ui(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ao(e,t);if(r<n&&za(e[r],t))return r}return-1},zn.sortedLastIndex=function(e,t){return ao(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return so(e,t,ui(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ao(e,t,!0)-1;if(za(e[n],t))return n}return-1},zn.startCase=Ks,zn.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:lr(ms(n),0,e.length),t=uo(t),e.slice(n,n+t.length)==t},zn.subtract=Cl,zn.sum=function(e){return e&&e.length?Jt(e,ol):0},zn.sumBy=function(e,t){return e&&e.length?Jt(e,ui(t,2)):0},zn.template=function(e,t,n){var r=zn.templateSettings;n&&wi(e,t,n)&&(t=o),e=bs(e),t=ks({},t,r,ei);var i,a,s=ks({},t.imports,r.imports,ei),l=Ts(s),c=en(s,l),u=0,d=t.interpolate||ke,p="__p += '",h=Ve((t.escape||
vendor: 4,989 bytes, line 2
2ke).source+"|"+d.source+"|"+(d===ee?fe:ke).source+"|"+(t.evaluate||ke).source+"|$","g"),f="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(h,(function(t,n,r,o,s,l){return r||(r=o),p+=e.slice(u,l).replace(_e,sn),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),p+="';\n";var m=Le.call(t,"variable")&&t.variable;if(m){if(pe.test(m))throw new Ee("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(W,""):p).replace(q,"$1").replace(Y,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Qs((function(){return Ce(l,f+"return "+p).apply(o,c)}));if(g.source=p,Xa(g))throw g;return g},zn.times=function(e,t){if((e=ms(e))<1||e>f)return[];var n=g,r=xn(e,g);t=ui(t),e-=g;for(var o=Xt(r,t);++n<e;)t(n);return o},zn.toFinite=fs,zn.toInteger=ms,zn.toLength=gs,zn.toLower=function(e){return bs(e).toLowerCase()},zn.toNumber=vs,zn.toSafeInteger=function(e){return e?lr(ms(e),-9007199254740991,f):0===e?e:0},zn.toString=bs,zn.toUpper=function(e){return bs(e).toUpperCase()},zn.trim=function(e,t,n){if((e=bs(e))&&(n||t===o))return Zt(e);if(!e||!(t=uo(t)))return e;var r=mn(e),i=mn(t);return _o(r,nn(r,i),rn(r,i)+1).join("")},zn.trimEnd=function(e,t,n){if((e=bs(e))&&(n||t===o))return e.slice(0,gn(e)+1);if(!e||!(t=uo(t)))return e;var r=mn(e);return _o(r,0,rn(r,mn(t))+1).join("")},zn.trimStart=function(e,t,n){if((e=bs(e))&&(n||t===o))return e.replace(ae,"");if(!e||!(t=uo(t)))return e;var r=mn(e);return _o(r,nn(r,mn(t))).join("")},zn.truncate=function(e,t){var n=30,r="...";if(ts(t)){var i="separator"in t?t.separator:i;n="length"in t?ms(t.length):n,r="omission"in t?uo(t.omission):r}var a=(e=bs(e)).length;if(ln(e)){var s=mn(e);a=s.length}if(n>=a)return e;var l=n-fn(r);if(l<1)return r;var c=s?_o(s,0,l).join(""):e.slice(0,l);if(i===o)return c+r;if(s&&(l+=c.length-l),as(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=Ve(i.source,bs(me.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var p=u.index;c=c.slice(0,p===o?l:p)}}else if(e.indexOf(uo(i),l)!=l){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r},zn.unescape=function(e){return(e=bs(e))&&J.test(e)?e.replace(G,vn):e},zn.uniqueId=function(e){var t=++Ie;return bs(e)+t},zn.upperCase=Js,zn.upperFirst=Xs,zn.each=ba,zn.eachRight=xa,zn.first=Yi,ll(zn,(kl={},wr(zn,(function(e,t){Le.call(zn.prototype,t)||(kl[t]=e)})),kl),{chain:!1}),zn.VERSION="4.17.21",At(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),At(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===o?1:bn(ms(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=xn(n,r.__takeCount__):r.__views__.push({size:xn(n,g),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),At(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),At(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),At(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(ol)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Mr(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(La(ui(e)))},Wn.prototype.slice=function(e,t){e=ms(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ms(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(g)},wr(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=zn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(zn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Wn,c=s[0],u=l||Wa(t),d=function(e){var t=i.apply(zn,Lt([e],s));return r&&p?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,h=!!this.__actions__.length,f=a&&!p,m=l&&!h;if(!a&&u){t=m?t:new Wn(this);var g=e.apply(t,s);return g.__actions__.push({func:fa,args:[d],thisArg:o}),new Un(g,p)}return f&&m?e.apply(this,s):(g=this.thru(d),f?r?g.value()[0]:g.value():g)})}
vendor: 4,936 bytes, line 2
2)),At(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Me[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Wa(o)?o:[],e)}return this[n]((function(n){return t.apply(Wa(n)?n:[],e)}))}})),wr(Wn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Le.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}})),Tn[Fo(o,2).name]=[{name:"wrapper",func:o}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Mo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Mo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Mo(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=xn(t,e+a);break;case"takeRight":e=bn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,p=0,h=xn(l,this.__takeCount__);if(!n||!r&&o==l&&h==l)return go(e,this.__actions__);var f=[];e:for(;l--&&p<h;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],y=v.iteratee,b=v.type,x=y(g);if(2==b)g=x;else if(!x){if(1==b)continue e;break e}}f[p++]=g}return f},zn.prototype.at=ma,zn.prototype.chain=function(){return ha(this)},zn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===o&&(this.__values__=hs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var r=$i(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:fa,args:[ta],thisArg:o}),new Un(t,this.__chain__)}return this.thru(ta)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Ze&&(zn.prototype[Ze]=function(){return this}),zn}();mt._=yn,(r=function(){return yn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},2629:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".flip-list-move{transition:transform .5s}.no-move{transition:transform 0s}",""]);const i=o},2634:()=>{},2642:(e,t,n)=>{"use strict";var r=n(7720),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(a),u=c?a.slice(0,c.index):a,d=[];if(u){if(!n.plainObjects&&o.call(Object.prototype,u)&&!n.allowPrototypes)return;d.push(u)}for(var p=0;n.depth>0&&null!==(c=s.exec(a))&&p<n.depth;){if(p+=1,!n.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(c[1])}if(c){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");d.push("["+a.slice(c.index)+"]")}return function(e,t,n,o){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var s=o?t:l(t,n,i),c=e.length-1;c>=0;--c){var u,d=e[c];if("[]"===d&&n.parseArrays)u=n.allowEmptyArrays&&(""===s||n.strictNullHandling&&null===s)?[]:r.combine([],s);else{u=n.plainObjects?{__proto__:null}:{};var p="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,h=n.decodeDotInKeys?p.replace(/%2E/g,"."):p,f=parseInt(h,10);n.parseArrays||""!==h?!isNaN(f)&&d!==h&&String(f)===h&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(u=[])[f]=s:"__proto__"!==h&&(u[h]=s):u={0:s}}s=u}return s}(d,t,n,i)}};e.exports=function(e,t){var n=function(e){if(!e)return a;
vendor: 4,705 bytes, line 2
2if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,n=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var u="string"==typeof e?function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,t.throwOnLimitExceeded?u+1:u);if(t.throwOnLimitExceeded&&d.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var p,h=-1,f=t.charset;if(t.charsetSentinel)for(p=0;p<d.length;++p)0===d[p].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[p]?f="utf-8":"utf8=%26%2310003%3B"===d[p]&&(f="iso-8859-1"),h=p,p=d.length);for(p=0;p<d.length;++p)if(p!==h){var m,g,v=d[p],y=v.indexOf("]="),b=-1===y?v.indexOf("="):y+1;-1===b?(m=t.decoder(v,a.decoder,f,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(v.slice(0,b),a.decoder,f,"key"),g=r.maybeMap(l(v.slice(b+1),t,i(n[m])?n[m].length:0),(function(e){return t.decoder(e,a.decoder,f,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===f&&(g=s(String(g))),v.indexOf("[]=")>-1&&(g=i(g)?[g]:g);var x=o.call(n,m);x&&"combine"===t.duplicates?n[m]=r.combine(n[m],g):x&&"last"!==t.duplicates||(n[m]=g)}return n}(e,n):e,d=n.plainObjects?{__proto__:null}:{},p=Object.keys(u),h=0;h<p.length;++h){var f=p[h],m=c(f,u[f],n,"string"==typeof e);d=r.merge(d,m,n)}return!0===n.allowSparse?d:r.compact(d)}},2688:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var r=n(6301),o={class:"pt-5 text-lm-blue text-xl"},i={class:"flex flex-wrap gap-2 mt-8"},a={class:"btn-primary flex items-center gap-x-2"},s={class:"btn-primary flex items-center gap-x-2"},l={class:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-6 xl:container boxed-children"},c={class:"relative"},u={class:"text-4xl mb-2"},d={class:"relative"},p={class:"text-4xl mb-2"},h={class:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-6 xl:container mb-4"},f={class:"btn-primary flex items-center gap-x-2"};var m=n(641),g=n(5720),v=n(9234),y=n(2521);const b=(0,m.pM)({props:{newUserCount:Number,currentNews:Object,annonceCount:Number},data:function(){return{testData:"Hallo Welt"}},layout:g.A,components:{Head:v.p3,Link:v.N_,LmNews:y.A}});const x=(0,n(6262).A)(b,[["render",function(e,t,n,m,g,v){var y=(0,r.resolve
2Component)("Head"),b=(0,r.resolveComponent)("Text"),x=(0,r.resolveComponent)("Link"),w=(0,r.resolveComponent)("lm-news");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(y,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("title",null,(0,r.toDisplayString)(e.__("Home")),1)]})),_:1}),(0,r.createVNode)(b,{type:"h1",text:"Home"}),(0,r.createElementVNode)("p",o,(0,r.toDisplayString)(e.__("Willkommen"))+" "+(0,r.toDisplayString)(e.$page.props.user.fullName),1),(0,r.createElementVNode)("div",i,[(0,r.createVNode)(x,{href:e.route("annonces.create",{commune:e.$page.props.commune.slug,type:"event"})},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",a,[t[0]||(t[0]=(0,r.createElementVNode)("i",{class:"bi bi-calendar-event-fill text-xs"},null,-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.__("Neuer Event")),1)])]})),_:1},8,["href"]),(0,r.createVNode)(x,{href:e.route("annonces.create",{commune:e.$page.props.commune.slug,type:"annonce"})},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",s,[t[1]||(t[1]=(0,r.createElementVNode)("i",{class:"bi bi-megaphone-fill"},null,-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.__("Neue Anzeige")),1)])]})),_:1},8,["href"])]),t[7]||(t[7]=(0,r.createElementVNode)("div",{class:"border-t-2 border-gray-100 my-8 xl:container"},null,-1)),(0,r.createVNode)(b,{type:"h2",text:e.__("Moderation")},null,8,["text"]),(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",c,[t[3]||(t[3]=(0,r.createElementVNode)("i",{class:"bi bi-person-plus-fill absolute top-3 right-4 text-3xl text-gray-600"},null,-1)),(0,r.createVNode)(b,{type:"h3",text:e.__("Neue Benutzer")},null,8,["text"]),(0,r.createElementVNode)("p",u,(0,r.toDisplayString)(e.newUserCount),1),e.newUserCount>0?((0,r.openBlock)(),(0,r.createBlock)(x,{key:0,class:"text-lm-light-blue",href:e.route("admin.moderation",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[t[2]||(t[2]=(0,r.createElementVNode)("i",{class:"bi bi-chevron-right"},null,-1)),(0,r.createTextVNode)("Â "+(0,r.toDisplayString)(e.__("Benutzer freigeben")),1)]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",d,[t[5]||(t[5]=(0,r.createElementVNode)("i",{class:"bi bi-megaphone-fill absolute top-3 right-4 text-2xl text-gray-600"},null,-1)),(0,r.createVNode)(b,{type:"h3",text:e.__("Neue Anzeigen")},null,8,["text"]),(0,r.createElementVNode)("p",p,(0,r.toDisplayString)(e.annonceCount),1),(0,r.createVNode)(x,{class:"text-lm-light-blue",href:e.route("admin.moderation",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[t[4]||(t[4]=(0,r.createElementVNode)("i",{class:"bi bi-chevron-right"},null,-1)),(0,r.createTextVNode)("Â "+(0,r.toDisplayString)(e.__("Anzeigen freigeben")),1)]})),_:1},8,["href"])])]),t[8]||(t[8]=(0,r.createElementVNode)("div",{class:"border-t-2 border-gray-100 my-8 xl:container"},null,-1)),(0,r.createVNode)(b,{type:"h2",text:e.__("Aktuelles")},null,8,["text"]),(0,r.createElementVNode)("div",h,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.currentNews,(function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n},[(0,r.createVNode)(w,{category:t.category,title:t.title[e.$page.props.locale],body:t.body[e.$page.props.locale],url:t.url[e.$page.props.locale],linkname:t.linkname[e.$page.props.locale],newTab:t.external,start:t.start,end:t.end},null,8,["category","title","body","url","linkname","newTab","start","end"])])})),128))]),(0,r.createVNode)(x,{class:"inline-block",href:e.route("admin.news",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",f,[t[6]||(t[6]=(0,r.createElementVNode)("i",{class:"bi bi-pencil-fill text-xs"},null,-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.__("Bearbeiten")),1)])]})),_:1},8,["href"]),t[9]||(t[9]=(0,r.createElementVNode)("div",{class:"border-t-2 border-gray-100 my-8 xl:container"},null,-1))])}]])},2730:(e,t,n)=>{"use strict";
vendor: 5,158 bytes, line 2
2Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var r,o,i=n(9878),a=n(1818),s=n(5987);function l(e,t){if(void 0===t&&(t=r.XML),("number"==typeof t?t:t.level)===r.HTML){var n="object"==typeof t?t.mode:void 0;return(0,i.decodeHTML)(e,n)}return(0,i.decodeXML)(e)}!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(r=t.EntityLevel||(t.EntityLevel={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(o=t.EncodingMode||(t.EncodingMode={})),t.decode=l,t.decodeStrict=function(e,t){var n;void 0===t&&(t=r.XML);var o="number"==typeof t?{level:t}:t;return null!==(n=o.mode)&&void 0!==n||(o.mode=i.DecodingMode.Strict),l(e,o)},t.encode=function(e,t){void 0===t&&(t=r.XML);var n="number"==typeof t?{level:t}:t;return n.mode===o.UTF8?(0,s.escapeUTF8)(e):n.mode===o.Attribute?(0,s.escapeAttribute)(e):n.mode===o.Text?(0,s.escapeText)(e):n.level===r.HTML?n.mode===o.ASCII?(0,a.encodeNonAsciiHTML)(e):(0,a.encodeHTML)(e):(0,s.encodeXML)(e)};var c=n(5987);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return c.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return c.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return c.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return c.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return c.escapeText}});var u=n(1818);Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return u.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return u.encodeHTML}});var d=n(9878);Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return d.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return d.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return d.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})},2739:()=>{},2772:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=function(e){var t=l(d,e);return t?"feed"===t.name?function(e){var t,n=e.children,r={type:"atom",items:(0,o.getElementsByTagName)("entry",n).map((function(e){var t,n=e.children,r={media:s(n)};u(r,"id","id",n),u(r,"title","title",n);var o=null===(t=l("link",n))||void 0===t?void 0:t.attribs.href;o&&(r.link=o);var i=c("summary",n)||c("content",n);i&&(r.description=i);var a=c("updated",n);return a&&(r.pubDate=new Date(a)),r}))};u(r,"id","id",n),u(r,"title","title",n);var i=null===(t=l("link",n))||void 0===t?void 0:t.attribs.href;i&&(r.link=i);u(r,"description","subtitle",n);var a=c("updated",n);a&&(r.updated=new Date(a));return u(r,"author","email",n,!0),r}(t):function(e){var t,n,r=null!==(n=null===(t=l("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==n?n:[],i={type:e.name.substr(0,3),id:"",items:(0,o.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,n={media:s(t)};u(n,"id","guid",t),u(n,"title","title",t),u(n,"link","link",t),u(n,"description","description",t);var r=c("pubDate",t)||c("dc:date",t);return r&&(n.pubDate=new Date(r)),n}))};u(i,"title","title",r),u(i,"link","link",r),u(i,"description","description",r);var a=c("lastBuildDate",r);a&&(i.updated=new Date(a));return u(i,"author","managingEditor",r,!0),i}(t):null};var r=n(9124),o=n(1974);var i=["url","type","lang"],a=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function s(e){return(0,o.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},r=0,o=i;r<o.length;r++){t[c=o[r]]&&(n[c]=t[c])}for(var s=0,l=a;s<l.length;s++){var c;t[c=l[s]]&&(n[c]=parseInt(t[c],10))}return t.expression&&(n.expression=t.expression),n}))}
2function l(e,t){return(0,o.getElementsByTagName)(e,t,!0,1)[0]}function c(e,t,n){return void 0===n&&(n=!1),(0,r.textContent)((0,o.getElementsByTagName)(e,t,n,1)).trim()}function u(e,t,n,r,o){void 0===o&&(o=!1);var i=c(n,r,o);i&&(e[t]=i)}function d(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}},2812:(e,t,n)=>{"use strict";n.d(t,{A:()=>T});var r=n(6301),o={key:0,class:"bg-white shadow"},i={class:"max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8"},a={class:"p-4 bg-gray-50 sm:p-6 mt-8"},s={class:"mx-auto max-w-screen-xl"},l={class:"xl:container xl:mx-auto flex justify-between text-sm font-medium flex-col md:flex-row"},c={class:"w-full md:w-1/3"},u={class:"w-full md:w-1/3"},d={class:"mb-2"},p=["href"],h={class:"mb-2"},f={target:"_blank",class:"lg:block hover:text-cm-primary transition-colors",href:"docs/LeMemento_CGV.pdf"},m={class:"mb-2"},g={target:"_blank",class:"lg:block hover:text-cm-primary transition-colors",href:"docs/LeMemento_CGU.pdf"},v={class:"mb-2"},y={target:"_blank",class:"lg:block hover:text-cm-primary transition-colors",href:"docs/LeMemento_Confidentialite.pdf"},b={class:"sm:flex sm:items-center sm:justify-between"},x={class:"text-sm text-gray-500 sm:text-center"},w=["textContent"];var k=n(641),_=n(1857),E=n(8766),C=n(6523),N=n(4793),S=n(8646),V=n(166),A=n(4633),D=n(2368);const M=(0,k.pM)({components:{ApplicationLogo:D.A,CommuneHeader:N.A,TopBar:C.A,JetDropdown:_.A,LmLangSwitcher:E.A,LmNotification:V.A,LmProfileDropdown:A.A},data:function(){return{mobileNavOpen:!1,newMenuOpen:!1}},mounted:function(){var e=this;document.documentElement.style.setProperty("--cm-primary",this.$page.props.primary_color),document.documentElement.style.setProperty("--cm-secondary",this.$page.props.secondary_color),S.Inertia.on("success",(function(){e.closeMobileNav()}))},methods:{logout:function(){this.$inertia.post(route("logout"))},toggleMobileNav:function(){this.mobileNavOpen=!this.mobileNavOpen,this.newMenuOpen=!1},toggleNewMenu:function(){this.newMenuOpen=!this.newMenuOpen},closeMobileNav:function(){this.mobileNavOpen=!1,this.newMenuOpen=!1}}});const T=(0,n(6262).A)(M,[["render",function(e,t,n,k,_,E){var C=(0,r.resolveComponent)("Head"),N=(0,r.resolveComponent)("jet-banner"),S=(0,r.resolveComponent)("ApplicationLogo"),V=(0,r.resolveComponent)("Link"),A=(0,r.resolveComponent)("Text");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(C,{title:e.title},null,8,["title"]),(0,r.createVNode)(N),e.$slots.header?((0,r.openBlock)(),(0,r.createElementBlock)("header",o,[(0,r.createElementVNode)("div",i,[(0,r.renderSlot)(e.$slots,"header")])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("main",null,[(0,r.renderSlot)(e.$slots,"default")]),(0,r.createElementVNode)("footer",a,[(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",c,[(0,r.createVNode)(V,{href:e.route("landingpage.home"),class:"flex items-center"},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(S,{class:"h-8"})]})),_:1},8,["href"]),t[0]||(t[0]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(e.__("LeMemento se veut un espace de rencontre pour les personnes de votre région. Partagez des moments, des activités et des événements, partez à la rencontre de vos voisinsâ¯!")),1),t[1]||(t[1]=(0,r.createElementVNode)("br",null,null,-1))]),(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(A,{type:"h3",as:"h2",text:e.__("Schneller Zugriff"),class:"mb-4"},null,8,["text"])]),(0,r.createElementVNode)("ul",null,[(0,r.createElementVNode)("li",d,[(0,r.createElementVNode)("a",{class:"lg:block hover:text-cm-primary transition-colors",href:e.route("landingpage.versions")},(0,r.toDisplayString)(e.__("Notes de version")),9,p)]),(0,r.createElementVNode)("li",h,[(0,r.createElementVNode)("a",f,(0,r.toDisplayString)(e.__("Conditions générales de vente (CGV
2)")),1)]),(0,r.createElementVNode)("li",m,[(0,r.createElementVNode)("a",g,(0,r.toDisplayString)(e.__("Conditions générales d'utilisation (CGU)")),1)]),(0,r.createElementVNode)("li",v,[(0,r.createElementVNode)("a",y,(0,r.toDisplayString)(e.__("Politique de confidentialité")),1)])])])]),t[5]||(t[5]=(0,r.createElementVNode)("hr",{class:"my-6 border-gray-200 sm:mx-auto lg:my-8"},null,-1)),(0,r.createElementVNode)("div",b,[(0,r.createElementVNode)("span",x,[t[2]||(t[2]=(0,r.createTextVNode)("© ")),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)((new Date).getFullYear())},null,8,w),t[3]||(t[3]=(0,r.createElementVNode)("a",{href:"https://seekers.ch",class:"ml-1 hover:underline"}," Seekers Sà rl",-1)),(0,r.createTextVNode)(". "+(0,r.toDisplayString)(e.__("Tous droits réservés.")),1)]),t[4]||(t[4]=(0,r.createStaticVNode)('<div class="flex mt-4 space-x-6 sm:justify-center sm:mt-0"><a href="https://www.swissmadesoftware.org/" target="_blank" style="height:auto;width:100px;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 267.21 33.22"><path d="M71.61,25.4h-.15A4.82,4.82,0,0,1,67.35,23a1.17,1.17,0,0,1-.12-.46.91.91,0,0,1,.94-.89,1,1,0,0,1,.81.41,3.64,3.64,0,0,0,2.53,1.5h.12c1.46,0,2.3-.82,2.3-1.61,0-3.19-6.25-.78-6.26-5.34,0-2.3,2.42-3.08,3.93-3.08h.1a5.18,5.18,0,0,1,3.14,1,.85.85,0,0,1,.34.7.87.87,0,0,1-.86.86,1.11,1.11,0,0,1-.53-.14,4,4,0,0,0-2.11-.64h-.1c-1.34,0-2.06.6-2.08,1.3,0,2.62,6.24.49,6.25,5.26V22c0,2.21-2.13,3.39-4.14,3.4" style="fill:#e30613;"></path><path d="M92,14.64l-2.8,10a.92.92,0,0,1-.89.67h-.19a1,1,0,0,1-.91-.69c-.59-2.06-2.14-7.82-2.28-8.18-.12.39-1.64,6.15-2.19,8.19a1,1,0,0,1-.88.7h-.22a.92.92,0,0,1-.89-.67l-2.84-10a1.26,1.26,0,0,1,0-.27.92.92,0,0,1,1.8-.22l2.08,7.29,2.14-7.32a1,1,0,0,1,1-.66h0c.72,0,.94.29,1,.65l2.2,7.34,2.07-7.33a.85.85,0,0,1,.84-.67.88.88,0,0,1,.94.88.83.83,0,0,1,0,.27" style="fill:#e30613;"></path><path d="M95.9,10.81A.88.88,0,0,1,95,9.9V9.37a.88.88,0,0,1,.91-.91.89.89,0,0,1,.92.91V9.9a.88.88,0,0,1-.91.91m0,14.52a.88.88,0,0,1-.91-.91l0-10a.87.87,0,0,1,.9-.91.88.88,0,0,1,.92.91l0,10a.87.87,0,0,1-.91.91" style="fill:#e30613;"></path><path d="M104.18,25.31H104a4.77,4.77,0,0,1-4.11-2.39,1.08,1.08,0,0,1-.12-.45.91.91,0,0,1,.93-.89,1,1,0,0,1,.82.4,3.65,3.65,0,0,0,2.52,1.51h.12c1.47,0,2.3-.82,2.3-1.62,0-3.19-6.24-.77-6.25-5.33,0-2.31,2.41-3.08,3.93-3.08h.09a5.12,5.12,0,0,1,3.15,1,.85.85,0,0,1,.34.69.87.87,0,0,1-.86.87,1.23,1.23,0,0,1-.53-.14,4.1,4.1,0,0,0-2.12-.65h-.09c-1.35,0-2.06.61-2.09,1.31,0,2.61,6.25.48,6.26,5.26v.1c0,2.21-2.13,3.39-4.15,3.39" style="fill:#e30613;"></path><path d="M115.21,25.28h-.14A4.78,4.78,0,0,1,111,22.9a1.17,1.17,0,0,1-.12-.46.91.91,0,0,1,.93-.89,1,1,0,0,1,.82.4,3.63,3.63,0,0,0,2.52,1.51h.12c1.47,0,2.3-.82,2.3-1.61,0-3.2-6.24-.78-6.25-5.34,0-2.31,2.41-3.08,3.93-3.08h.09a5.12,5.12,0,0,1,3.15,1,.85.85,0,0,1,.34.7.87.87,0,0,1-.86.86,1.11,1.11,0,0,1-.53-.14,4,4,0,0,0-2.12-.64h-.09c-1.35,0-2.07.6-2.09,1.3,0,2.61,6.24.49,6.26,5.26v.1c0,2.21-2.13,3.39-4.15,3.39" style="fill:#e30613;"></path><path d="M141.68,25.22a.88.88,0,0,1-.91-.91l0-7.11a1.87,1.87,0,0,0-2.05-2h-.21a2,2,0,0,0-2.06,2.07l0,7a.92.92,0,1,1-1.83,0l0-7a2,2,0,0,0-2.07-2.06h-.21a1.94,1.94,0,0,0-2.06,1.85l0,7.27a.92.92,0,1,1-1.83,0l0-10a.92.92,0,0,1,1.82-.2,3.07,3.07,0,0,1,2.06-.73h.22a3.93,3.93,0,0,1,3,1.36,3.88,3.88,0,0,1,3-1.37h.22a3.59,3.59,0,0,1,3.87,3.83l0,7.1a.89.89,0,0,1-.91.92" style="fill:#e30613;"></path><path d="M153.89,25.19l-.17,0a2.27,2.27,0,0,1-1.63-.93,4,4,0,0,1-2.59,1h-.21a3.59,3.59,0,0,1-3.88-3.45v-.29c.16-3.79,5.49-3.13,6.06-3.95a.81.81,0,0,0,.07-.41,1.77,1.77,0,0,0-1.95-1.94h-.16a2,2,0,0,0-1.94,1.21.91.91,0,0,1-.82.48.88.88,0,0,1-.91-.84,1,1,0,0,1,.09-.43,3.72,3.72,0,0,1,3.57-2.24h.17A3.68,3.68,0,0,1,153.37,17v5.56a.71.71,0,0,0,.63.79.87.87,0,0,1,.77.87.89.89,0,0,1-.89.94m-2.34-5.76c-1.77.48-4.25.4-4.31,2.08v.19c0,1,.82,1.68,2,1.67h.22a2,2,0,0,0,2.05-2v-1.9Z" style="fill:#e30613;"></path><path d="M164.11,25.16a.84.84,0,0,1-.89-.72,2.93,2.93,0,0,1-2.06.73h-.22a3.88,3.88,0,0,1-3.9-3.86V17.18a3.88,3.88,0,0,1,3.88-3.87h.17a2.75,2.75,0,0,1,2.09.79V9.2a.91.91,0,1,1,1.82,0l0,15.09a.85.85,0,0,1-.91.87M163.18,17a1.94,1.94,0,0,0-2.05-1.85h-.21a2,2,0,0,0-2.06,2v4.13a2,2,0,0,0,2,2h.24a1.92,1.92,0,0,0,2-1.9V17Z" style="fill:#e30613;"></path><path d="M175.44,20l-5.24,0v1.22a2,2,0,0,0,2,2h.24a2,2,0,0,0,1.87-1.23.85.85,0,0,1,.79-.57.94.94,0,0,1,.85,1.34,3.79,3.79,0,0,1-3.5,2.29h-.24a3.87,3.87,0,0,1-3.88-3.86V17.16a3.87,3.87,0,0,1,3.86-3.88h.24a3.82,3.82,0,0,1,3.87,3.88v2a.93.93,0,0,1-.91.91m-.92-2.88a2.07,2.07,0,0,0-2-2.06h-.24a2.06,2.06,0,0,0-2.06,2v1.2h4.32V17.16Z" style="fill:#e30613;"></path><path d="M189.34,25.09h-.14a4.79,4.79,0,0,1-4.12-2.38,1.17,1.17,0,0,1-.12-.46,1,1,0,0,1,1.75-.48,3.66,3.66,0,0,0,2.53,1.5h.12
2c1.46,0,2.3-.82,2.3-1.61,0-3.2-6.24-.78-6.26-5.34,0-2.3,2.42-3.08,3.93-3.08h.1a5.15,5.15,0,0,1,3.15,1,.84.84,0,0,1,.33.7.87.87,0,0,1-.86.86,1.11,1.11,0,0,1-.53-.14,4,4,0,0,0-2.11-.64h-.1c-1.34,0-2.06.6-2.08,1.3,0,2.61,6.24.49,6.25,5.26v.1c0,2.21-2.12,3.39-4.14,3.39" style="fill:#e30613;"></path><path d="M200.33,25.07h-.24a3.87,3.87,0,0,1-3.88-3.86V17.08a3.86,3.86,0,0,1,3.86-3.87h.24a3.86,3.86,0,0,1,3.87,3.85v4.13a3.86,3.86,0,0,1-3.85,3.88m2-8a2,2,0,0,0-2-2h-.24a2,2,0,0,0-2,2v4.13a2,2,0,0,0,2.07,2h.21a2,2,0,0,0,2-2V17.07Z" style="fill:#e30613;"></path><path d="M211.1,10a1.26,1.26,0,0,0-1.26,1.35v1.92H211a.87.87,0,0,1,.91.91.88.88,0,0,1-.91.92h-1.12l0,9A.88.88,0,0,1,209,25a.89.89,0,0,1-.92-.9l0-9h-.53a.92.92,0,0,1,0-1.83H208V11.34a3,3,0,0,1,3.09-3.17.87.87,0,0,1,.91.9.88.88,0,0,1-.91.92" style="fill:#e30613;"></path><path d="M219.08,25a3.15,3.15,0,0,1-3.15-3.16l0-6.79h-.84a.92.92,0,1,1,0-1.83h.83V9.06a.92.92,0,0,1,1.83,0v4.18H219a.92.92,0,1,1,0,1.83h-1.3l0,6.77a1.36,1.36,0,0,0,1.4,1.36.92.92,0,0,1-.07,1.83" style="fill:#e30613;"></path><path d="M236.47,14.27l-2.81,10a.91.91,0,0,1-.88.67h-.2a1.06,1.06,0,0,1-.91-.69c-.58-2.06-2.13-7.82-2.28-8.18-.12.39-1.64,6.15-2.18,8.19a1,1,0,0,1-.89.7h-.22a.93.93,0,0,1-.89-.67l-2.83-10a1.28,1.28,0,0,1,0-.27.88.88,0,0,1,.93-.89.87.87,0,0,1,.87.67l2.08,7.29,2.14-7.32a1,1,0,0,1,1-.65h0c.72,0,.94.28,1,.64l2.21,7.34,2.06-7.33a.85.85,0,0,1,.84-.67.88.88,0,0,1,.94.88,1.23,1.23,0,0,1,0,.27" style="fill:#e30613;"></path><path d="M247.21,25l-.17,0a2.19,2.19,0,0,1-1.63-.93,4,4,0,0,1-2.59,1h-.22a3.59,3.59,0,0,1-3.87-3.45v-.29c.15-3.79,5.48-3.13,6.06-3.95a.81.81,0,0,0,.07-.41,1.77,1.77,0,0,0-2-1.94h-.17a2,2,0,0,0-1.94,1.21.9.9,0,0,1-.81.48.88.88,0,0,1-.92-.84.87.87,0,0,1,.1-.43,3.71,3.71,0,0,1,3.57-2.24h.17a3.67,3.67,0,0,1,3.77,3.69l0,5.56a.71.71,0,0,0,.62.8.85.85,0,0,1,.77.86.89.89,0,0,1-.88.94m-2.34-5.76c-1.78.49-4.25.4-4.32,2.08v.19c0,1,.82,1.68,2,1.67h.22a2.05,2.05,0,0,0,2.06-2v-1.9Z" style="fill:#e30613;"></path><path d="M256.05,15.73a1,1,0,0,1-.74-.33,1.45,1.45,0,0,0-1.11-.5c-1.41,0-1.61.81-1.6,1.61l0,7.46a.89.89,0,0,1-.91,1,.88.88,0,0,1-.92-.95l0-10a.9.9,0,0,1,.93-.91.85.85,0,0,1,.79.47,2.5,2.5,0,0,1,1.73-.48,3,3,0,0,1,2.5,1.17,1,1,0,0,1,.22.62.87.87,0,0,1-.89.87" style="fill:#e30613;"></path><path d="M266.3,19.81h-5.23v1.23a2,2,0,0,0,2.05,2h.24a2,2,0,0,0,1.87-1.23.84.84,0,0,1,.79-.58,1,1,0,0,1,.93.94.83.83,0,0,1-.09.41,3.76,3.76,0,0,1-3.5,2.28h-.24a3.84,3.84,0,0,1-3.87-3.85V16.92a3.85,3.85,0,0,1,3.85-3.87h.24a3.82,3.82,0,0,1,3.88,3.88v2a.93.93,0,0,1-.91.91m-.92-2.88a2.06,2.06,0,0,0-2-2.06h-.24a2.06,2.06,0,0,0-2.06,2.05v1.2h4.32V16.93Z" style="fill:#e30613;"></path><path d="M38.73,4.43H23.27L22.28,2a3.14,3.14,0,0,0-2.92-2H6.17A3.15,3.15,0,0,0,3.29,1.9l-3,7A3.1,3.1,0,0,0,0,10.19V30.08a3.15,3.15,0,0,0,3.14,3.14H38.73a3.15,3.15,0,0,0,3.14-3.14V7.57a3.15,3.15,0,0,0-3.14-3.14" style="fill:#e30613;"></path><path d="M26.83,20H22.56v4.28a1.55,1.55,0,0,1-3.1,0V20H15.18a1.55,1.55,0,1,1,0-3.09h4.28V12.62a1.55,1.55,0,1,1,3.1,0V16.9h4.27a1.55,1.55,0,1,1,0,3.09" style="fill:#fff;"></path></svg></a><a href="#" class="hidden text-gray-500 hover:text-gray-900"><svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path fill-rule="evenodd" d="M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058
21.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.466.399.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.858-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.858a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 100 6.666 3.333 3.333 0 000-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z" clip-rule="evenodd"></path></svg></a><a href="#" class="hidden text-gray-500 hover:text-gray-900"><svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path d="M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84"></path></svg></a></div>',1))])])])])}]])},2834:e=>{"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},2851:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChildren=o,t.getParent=i,t.getSiblings=function(e){var t=i(e);if(null!=t)return o(t);var n=[e],r=e.prev,a=e.next;for(;null!=r;)n.unshift(r),r=r.prev;for(;null!=a;)n.push(a),a=a.next;return n},t.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){var t=e.next;for(;null!==t&&!(0,r.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){var t=e.prev;for(;null!==t&&!(0,r.isTag)(t);)t=t.prev;return t};var r=n(4128);function o(e){return(0,r.hasChildren)(e)?e.children:[]}function i(e){return e.parent||null}},2881:(e,t,n)=>{"use strict";var r=n(9516),o=n(6987);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},2895:(e,t,n)=>{"use strict";var r=n(5606);let o=n(396),i=n(9371),a=n(7793),s=n(3614),l=n(5238),c=n(145),u=n(3438),d=n(1106),p=n(6966),h=n(1752),f=n(3152),m=n(9577),g=n(6846),v=n(3717),y=n(5644),b=n(1534),x=n(3303),w=n(38);function k(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new g(e)}k.plugin=function(e,t){let n,o=!1;function i(...n){console&&console.warn&&!o&&(o=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),r.env.LANG&&r.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...n);return i.postcssPlugin=e,i.postcssVersion=(new g).version,i}return Object.defineProperty(i,"postcss",{get:()=>(n||(n=i()),n)}),i.process=function(e,t,n){return k([i(n)]).process(e,t)},i},k.stringify=x,k.parse=m,k.fromJSON=u,k.list=h,k.comment=e=>new i(e),k.atRule=e=>new o(e),k.decl=e=>new l(e),k.rule=e=>new b(e),k.root=e=>new y(e),k.document=e=>new c(e),k.CssSyntaxError=s,k.Declaration=l,k.Container=a,k.Processor=g,k.Document=c,k.Comment=i,k.Warning=w,k.AtRule=o,k.Result=v,k.Input=d,k.Rule=b,k.Root=y,k.Node=f,p.registerPostcss(k),e.exports=k,k.default=k},3054:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".ad-img[data-v-49803b64]{height:auto;max-width:100%}",""]);const i=o},3093:(e,t,n)=>{"use strict";var r=n(4459);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},3126:(e,t,n)=>{"use strict";var r=n(6743),o=n(9675),i=n(76),a=n(3144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(r,i,e)}},3144:(e,t,n)=>{"use strict";var r=n(6743),o=n(1002),i=n(76),a=n(7119);e.exports=a||r.call(i,o)}
vendor: 1,909 bytes, line 2
2,3152:(e,t,n)=>{"use strict";let r=n(3614),o=n(7668),i=n(3303),{isClean:a,my:s}=n(4151);function l(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let o=e[r],i=typeof o;"parent"===r&&"object"===i?t&&(n[r]=t):"source"===r?n[r]=o:Array.isArray(o)?n[r]=o.map((e=>l(e,n))):("object"===i&&null!==o&&(o=l(o)),n[r]=o)}return n}function c(e,t){if(t&&void 0!==t.offset)return t.offset;let n=1,r=1,o=0;for(let i=0;i<e.length;i++){if(r===t.line&&n===t.column){o=i;break}"\n"===e[i]?(n=1,r+=1):n+=1}return o}class u{get proxyOf(){return this}constructor(e={}){this.raws={},this[a]=!1,this[s]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=l(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new r(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markClean(){this[a]=!0}
2markDirty(){if(this[a]){this[a]=!1;let e=this;for(;e=e.parent;)e[a]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,r=n.slice(c(n,this.source.start),c(n,this.source.end)).indexOf(e.word);-1!==r&&(t=this.positionInside(r))}return t}positionInside(e){let t=this.source.start.column,n=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,o=c(r,this.source.start),i=o+e;for(let e=o;e<i;e++)"\n"===r[e]?(t=1,n+=1):t+=1;return{column:t,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,o=r.slice(c(r,this.source.start),c(r,this.source.end)).indexOf(e.word);-1!==o&&(t=this.positionInside(o),n=this.positionInside(o+e.word.length))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new o).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},r=null==t;t=t||new Map;let o=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let i=t.get(r.input);null==i&&(i=o,t.set(r.input,o),o++),n[e]={end:r.end,inputId:i,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}}e.exports=u,u.default=u},3191:(e,t,n)=>{"use strict";var r=n(1928);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},3257:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6301),o={class:"text-sm text-gray-600"};const i=(0,n(641).pM)({props:["on"]});const a=(0,n(6262).A)(i,[["render",function(e,t,n,i,a,s){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(r.Transition,{"leave-active-class":"transition ease-in duration-1000","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:(0,r.withCtx)((function(){return[(0,r.withDirectives)((0,r.createElementVNode)("div",o,[(0,r.renderSlot)(e.$slots,"default")],512),[[r.vShow,e.on]])]})),_:3})])}]])},3303:(e,t,n)=>{"use strict";let r=n(7668);function o(e,t){new r(t).stringify(e)}e.exports=o,o.default=o},3438:(e,t,n)=>{"use strict";let r=n(396),o=n(9371),i=n(5238),a=n(1106),s=n(3878),l=n(5644),c=n(1534);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:n,...d}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:a.prototype};n.map&&(n.map={...n.map,__proto__:s.prototype}),t.push(n)}}if(d.nodes&&(d.nodes=e.nodes.map((e=>u(e,t)))),d.source){let{inputId:e,...n}=d.source;d.source=n,null!=e&&(d.source.input=t[e])}if("root"===d.type)return new l(d);if("decl"===d.type)return new i(d);if("rule"===d.type)return new c(d);if("comment"===d.type)return new o(d);if("atrule"===d.type)return new r(d);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},3441:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(6301),o={class:"max-w-7xl mx-auto py-10 sm:px-6 lg:px-8"};var i=n(641),a=n(95),s=n(8655),l=n(5560),c=n(706),u=n(9238);const d=(0,i.pM)({props:["team","availableRoles","permissions"],components:{AppLayout:a.A,DeleteTeamForm:s.default,JetSectionBorder:l.A,TeamMemberManager:c.default,UpdateTeamNameForm:u.default}});const p=(0,n(6262).A)(d,[["render",function(e,t,n,i,a,s){var l=(0,r.resolve
2Component)("Text"),c=(0,r.resolveComponent)("update-team-name-form"),u=(0,r.resolveComponent)("team-member-manager"),d=(0,r.resolveComponent)("jet-section-border"),p=(0,r.resolveComponent)("delete-team-form"),h=(0,r.resolveComponent)("app-layout");return(0,r.openBlock)(),(0,r.createBlock)(h,{title:"Team Settings"},{header:(0,r.withCtx)((function(){return[(0,r.createVNode)(l,{type:"h2",text:"Team Settings"})]})),default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",o,[(0,r.createVNode)(c,{team:e.team,permissions:e.permissions},null,8,["team","permissions"]),(0,r.createVNode)(u,{class:"mt-10 sm:mt-0",team:e.team,"available-roles":e.availableRoles,"user-permissions":e.permissions},null,8,["team","available-roles","user-permissions"]),e.permissions.canDeleteTeam&&!e.team.personal_team?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createVNode)(d),(0,r.createVNode)(p,{class:"mt-10 sm:mt-0",team:e.team},null,8,["team"])],64)):(0,r.createCommentVNode)("",!0)])])]})),_:1})}]])},3463:(e,t,n)=>{"use strict";n.d(t,{A:()=>X});var r=n(6301),o={key:0,class:"absolute top-4 left-4 bg-gradient-to-b from-cm-primary to-cm-primary text-white px-2 py-2 rounded shadow"},i={class:"w-full text-center"},a={key:1,class:"absolute top-4 right-4 text-white grid grid-cols-1 gap-2"},s={class:"col-span-1 bg-gradient-to-b from-cm-primary to-cm-primary px-2 py-2 rounded shadow"},l={class:"w-full text-center"},c={class:"w-full text-center -mt-2"},u={key:0,class:"col-span-1 bg-gradient-to-b from-cm-primary to-cm-primary px-2 py-2 rounded shadow"},d={class:"w-full text-center"},p=["src"],h={class:"flex justify-start"},f={class:"mt-2"},m={class:"mt-1 mb-4 flex-1"},g={class:"flex justify-between items-center text-sm"},v={key:0,class:"absolute top-4 left-4 text-white grid grid-cols-1 gap-2"},y={class:"col-span-1 bg-gradient-to-b from-cm-primary to-cm-primary px-2 py-2 rounded shadow"},b={class:"w-full text-center"},x={class:"w-full text-center -mt-2"},w={key:0,class:"col-span-1 bg-gradient-to-b from-cm-primary to-cm-primary px-2 py-2 rounded shadow"},k={class:"w-full text-center"},_=["src"],E={class:"flex justify-between"},C={class:"flex justify-start space-x-4"},N={key:0},S={class:"bg-gradient-to-b from-cm-primary to-cm-primary text-white px-2 py-2 rounded shadow"},V={class:"mt-2"},A={class:"mt-1 mb-4 flex justify-start"},D={class:"flex flex-col md:flex-row justify-between md:items-center text-sm"},M={key:0,class:"flex overflow-hidden rounded-lg shadow-none hover:shadow-xl transition-all group border border-gray-200"},T={class:"h-full relative w-24 md:w-32 lg:w-48 flex-shrink-0"},B={class:"flex flex-col md:flex-row justify-between md:items-center text-sm"},O={class:"p-4 grid grid-cols-1 h-full w-full"},P={class:"mt-2"},L={class:"mt-1 mb-4 flex justify-start"},I={class:"mt-1 mb-1 flex justify-start"},j={key:0,class:"flex items-center px-2 pt-2"},R=["href"],$={class:"mt-1 mb-1 flex justify-start"},z={key:0,class:"flex items-center px-2 pt-2"},F=["href"],H={class:"mt-1 mb-1 flex justify-start"},U={key:0,class:"flex items-center px-2 pt-2"},W={class:"ml-3"};var q=n(4799),Y=n(1963),G=n(1075),K=n(3963);const J=(0,r.defineComponent)({emits:["loaded"],components:{CategoryBadge:Y.A,DateBadge:K.A,TagsBadge:G.A,LmProfilPictureWithName:q.A},props:{annonce:{type:Object,required:!0},display:{type:String,required:!0}}});const X=(0,n(6262).A)(J,[["render",function(e,t,n,q,Y,G){var K=(0,r.resolveComponent)("Text"),J=(0,r.resolveComponent)("category-badge"),X=(0,r.resolveComponent)("tags-badge"),Z=(0,r.resolveComponent)("date-badge"),Q=(0,r.resolveComponent)("LmProfilPictureWithName"),ee=(0,r.resolveComponent)("Link");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(ee,{href:e.route("annonces.show",{commune:e.$page.props.commune.slug,annonce:e.annonce.id,slug:e.annonce.slug}),class:(0,r.normalizeClass)([[{"flex-col":"cards"===e.display},{"flex-row-reverse":"list"===e.display&&e.$page.props.commune.invert_title_image}],"flex overflow-hidden rounded-lg shadow-none hover:shadow-xl transition-all group border border-gray-200"])},{default:(0,r.withCtx)((function(){return["cards"===e.display?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["h-48 relative",{"order-2":e.$page.props.commune.invert_title_image}])},[e.annonce.price?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createVNode)(K,{type:"md",as:"span"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.annonce.price.amount>0?e.annonce.price.formatted:e.__("Gratuit")),1)]})),_:1})])])):(0,r.createCommentVNode)("",!0),"event"===e.annonce.type?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",l,[(0,r.createVNode)(K,{type:"h2",as:"span"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$dayjs(e.annonce.start_date).locale(e.$page.props.locale).format("D"))+(0,r.toDisplayString)(e.$dayjs(e.annonce.start_date).isSame(e.$dayjs(e.annonce.end_date),"day")?null:"-"+e.$dayjs(e.annonce.end_date).locale(e.$page.props.locale).format("D")),1)]})),_:1})]),(0,r.createElementVNode)("div",c,[(0,r.createVNode)(K,{type:"h4",as:"span"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$dayjs(e.annonce.start_date).locale(e.$page.props.locale).format("MMM"))+" "+(0,r.toDisplayString)(e.$dayjs(e.annonce.start_date).isSame(e.$dayjs(),"year")?null:e.$dayjs(e.annonce.start_date).locale(e.$page.props.locale).format("YY")),1)]})),_:1})])]),e.annonce.all_day_event?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",u,[(0,r.createElementVNode)("div",d,[(0,r.createVNode)(K,{type:"h4",as:"span"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$dayjs(e.annonce.start_date).locale(e.$page.props.locale).format("HH:mm")),1)]})),_:1})])]))])):(0,r.createCommentVNode)("",!0),e.annonce.header_image_url?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:2,src:e.annonce.header_image_url,ref:"image",class:"w-full h-48 object-scale-down transition-all"},null,8,p)):(0,r.createCommentVNode)("",!0),t[0]||(t[0]=(0,r.createElementVNode)("div",{class:"absolute inset-x-0 bottom-0 top-1/2 bg-gradient-to-b from-transparent to-slate-500 opacity-25"},null,-1))],2),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["p-4 flex flex-col h-full",{"order-1":e.$page.props.commune.invert_title_image}])},[(0,r.createElementVNode)("div",h,[(0,r.createVNode)(J,{category:e.annonce.category,"color-position":"left",showLink:!1},null,8,["category"])]),(0,r.createElementVNode)("div",f,[(0,r.createVNode)(K,{type:"h3",text:e.annonce.title},null,8,["text"])]),(0,r.createElementVNode)("div",m,[(0,r.createVNode)(K,{type:"p",class:"line-clamp-3",textContent:(0,r.toDisplayString)(e.annonce.description?e.annonce.description.substring(0,240):"")},null,8,["textContent"])]),(0,r.createVNode)(X,{tags:e.annonce.tags,quantity:3,showLink:!1},null,8,["tags"]),(0,r.createElementVNode)("div",g,[e.annonce.published_at?((0,r.openBlock)(),(0,r.createBlock)(Z,{key:0,date:e.$dayjs(e.annonce.published_at).locale(e.$page.props.locale).format()},null,8,["date"])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(Q,{text:e.annonce.author.fullName,"image-url":e.annonce.author.profile_photo_url},null,8,["text","image-url"])])],2)],64)):(0,r.createCommentVNode)("",!0),"list"===e.display?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createElementVNode)("div",{class:"w-full relative w-24 md:w-32 lg:w-48 flex-shrink-0",style:(0,r.normalizeStyle)({"order-1":e.$page.props.commune.invert_title_image,"order-0":!e.$page.props.commune.invert_title_image})},["event"===e.annonce.type?((0,r.openBlock)(),(0,r.createElementBlock)("div",v,[(0,r.createElementVNode)("div",y,[(0,r.createElementVNode)("div",b,[(0,r.createVNode)(K,{type:"h2",as:"span"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$dayjs(e.annonce.start_date).locale(e.$page.props.locale).format("D"))+(0,r.toDisplayString)(e.$dayjs(e.annonce.start_date).isSame(e.$dayjs(e.annonce.end_date),"day")?null:"-"+e.$dayjs(e.annonce.end_date).locale(e.$page.props.locale).format("D")),1)]})),_:1})]),(0,r.createElementVNode)("div",x,[(0,r.createVNode)(K,{type:"h4",as:"span"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$dayjs(e.annonce.start_date).locale(e.$page.props.locale).format("MMM"))+" "+(0,r.toDisplayString)(e.$dayjs(e.annonce.start_date).isSame(e.$dayjs(),"year")?null:e.$dayjs(e.annonce.start_date).locale(e.$page.props.locale).format("YY")),1)]})),_:1})])]),e.annonce.all_day_event?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",w,[(0,r.createElementVNode)("div",k,[(0,r.createVNode)(K,{type:"h4",as:"span"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$dayjs(e.annonce.start_date).locale(e.$page.props.locale).format("HH:mm")),1)]})),_:1})])]))])):(0,r.createCommentVNode)("",!0),e.annonce.header_image_url?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:1,src:e.annonce.header_image_url,ref:"image",class:"h-full object-cover object-top"},null,8,_)):(0,r.createCommentVNode)("",!0),t[1]||(t[1]=(0,r.createElementVNode)("div",{class:"absolute inset-x-0 bottom-0 top-1/2 bg-gradient-to-b from-transparent to-slate-500 opacity-25"},null,-1))],4),(0,r.createElementVNode)("div",{class:"p-4 grid grid-cols-1 h-full w-full",style:(0,r.normalizeStyle)({"order-0":e.$page.props.commune.invert_title_image,"order-1":!e.$page.props.commune.invert_title_image})},[(0,r.createElementVNode)("div",E,[(0,r.createElementVNode)("div",C,[(0,r.createVNode)(J,{category:e.annonce.category,"color-position":"left",showLink:!1},null,8,["category"]),(0,r.createVNode)(X,{tags:e.annonce.tags,quantity:3,showLink:!1},null,8,["tags"])]),e.annonce.price?((0,r.openBlock)(),(0,r.createElementBlock)("div",N,[(0,r.createElementVNode)("div",S,[(0,r.createVNode)(K,{type:"md",as:"span",class:"text-center"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.annonce.price.amount>0?e.annonce.price.formatted:e.__("Gratuit")),1)]})),_:1})])])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",V,[(0,r.createVNode)(K,{type:"h3",text:e.annonce.title},null,8,["text"])]),(0,r.createElementVNode)("div",A,[(0,r.createVNode)(K,{type:"p",class:"line-clamp-3",textContent:(0,r.toDisplayString)(e.annonce.description?e.annonce.description.substring(0,240):"")},null,8,["textContent"])]),(0,r.createElementVNode)("div",D,[e.annonce.published_at?((0,r.openBlock)(),(0,r.createBlock)(Z,{key:0,date:e.$dayjs(e.annonce.published_at).locale(e.$page.props.locale).format()},null,8,["date"])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(Q,{text:e.annonce.author.fullName,"image-url":e.annonce.author.profile_photo_url},null,8,["text","image-url"])])],4)],64)):(0,r.createCommentVNode)("",!0)]})),_:1},8,["href","class"]),"company"==e.display?((0,r.openBlock)(),(0,r.createElementBlock)("div",M,[(0,r.createElementVNode)("div",T,[(0,r.createElementVNode)("div",B,[(0,r.createVNode)(Q,{"image-url":e.annonce.author.profile_photo_url,size:"full","no-avatar":""},null,8,["image-url"])])]),(0,r.createElementVNode)("div",O,[(0,r.createElementVNode)("div",P,[(0,r.createVNode)(K,{type:"h3",text:e.annonce.title},null,8,["text"])]),(0,r.createElementVNode)("div",L,[(0,r.createVNode)(K,{type:"p",class:"line-clamp-3",textContent:(0,r.toDisplayString)(e.annonce.description?e.annonce.description.substring(0,240):"")},null,8,["textContent"])]),(0,r.createElementVNode)("div",I,[e.annonce.email?((0,r.openBlock)(),(0,r.createElementBlock)("p",j,[(0,r.createElementVNode)("a",{href:"mailto:"+e.annonce.email},[t[2]||(t[2]=(0,r.createElementVNode)("i",{class:"bi bi-envelope px-2 mr-1"},null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(e.annonce.email),1)],8,R)])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",$,[e.annonce.phone?((0,r.openBlock)(),(0,r.createElementBlock)("p",z,[(0,r.createElementVNode)("a",{href:"tel:"+e.annonce.phone},[t[3]||(t[3]=(0,r.createElementVNode)("i",{class:"bi bi-telephone px-2 mr-1"},null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(e.annonce.phone),1)],8,F)])
2):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",H,[e.annonce.street?((0,r.openBlock)(),(0,r.createElementBlock)("p",U,[t[5]||(t[5]=(0,r.createElementVNode)("svg",{viewBox:"0 0 20 20",fill:"currentColor",class:"w-4 h-4 ml-2 text-cm-primary"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M9.69 18.933l.003.001C9.89 19.02 10 19 10 19s.11.02.308-.066l.002-.001.006-.003.018-.008a5.741 5.741 0 00.281-.14c.186-.096.446-.24.757-.433.62-.384 1.445-.966 2.274-1.765C15.302 14.988 17 12.493 17 9A7 7 0 103 9c0 3.492 1.698 5.988 3.355 7.584a13.731 13.731 0 002.273 1.765 11.842 11.842 0 00.976.544l.062.029.018.008.006.003zM10 11.25a2.25 2.25 0 100-4.5 2.25 2.25 0 000 4.5z","clip-rule":"evenodd"})],-1)),(0,r.createElementVNode)("span",W,[(0,r.createTextVNode)((0,r.toDisplayString)(e.annonce.street),1),t[4]||(t[4]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(e.annonce.zip+" "+e.annonce.city),1)])])):(0,r.createCommentVNode)("",!0)])])])):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"default")])}]])},3471:(e,t,n)=>{"use strict";var r=n(9516);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},3492:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r=n(6301),o={class:"grid 2xl:grid-cols-2 grid-cols-1 gap-x-4 gap-y-8"},i={class:"space-y-4 pt-5 pb-5"},a={key:0,class:"text-red-500"},s={key:0,class:"text-red-500"},l={class:"mb-4"},c={key:0,class:"text-red-500"},u={class:"mb-4"},d={key:0,class:"text-red-500"},p={class:"flex flex-wrap gap-2"},h=["disabled","value"],f={class:"lg:mt-0"},m=["src"],g=["src"];var v=n(641),y=n(5720),b=n(9506),x=(n(8646),n(9234));const w=(0,v.pM)({data:function(){return{primaryColor:"",secondaryColor:"",saveButtonSuccess:!1,invertTitleImageValues:[{name:"invert_title_image",value:!0,label:this.__("Aktivieren")},{name:"invert_title_image",value:!1,label:this.__("Deaktivieren")}],form:{primaryColor:null,secondaryColor:null,invertTitleImage:null}}},layout:y.A,components:{LmInputText:b.zX,LmInputFile:b.M3,LmInputColor:b.Pt,Head:x.p3,LmRadioGroup:b.ug},mounted:function(){this.form.primaryColor=this.$page.props.commune.primary_color,this.form.secondaryColor=this.$page.props.commune.secondary_color,this.form.invertTitleImage=Boolean(this.$page.props.commune.invert_title_image)},methods:{updateDesign:function(){this.$inertia.post(route("admin.design.update",{commune:this.$page.props.commune.slug}),this.form)},bgUploaded:function(e){this.form.headerImage=e},logoUploaded:function(e){this.form.logo=e}},computed:{changedData:function(){return!(this.form.primaryColor===this.$page.props.commune.primary_color&&this.form.secondaryColor===this.$page.props.commune.secondary_color&&!this.form.headerImage&&!this.form.logo)||this.form.invertTitleImage!==this.$page.props.commune.invert_title_image}}});const k=(0,n(6262).A)(w,[["render",function(e,t,n,v,y,b){var x=(0,r.resolveComponent)("Head"),w=(0,r.resolveComponent)("Text"),k=(0,r.resolveComponent)("lm-radio-group"),_=(0,r.resolveComponent)("lm-input-color"),E=(0,r.resolveComponent)("lm-input-file");return(0,r.resolveComponent)("Link"),(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(x,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("title",null,(0,r.toDisplayString)(e.__("Design")),1)]})),_:1}),(0,r.createVNode)(w,{type:"h1",text:e.__("Design"),class:"mb-4"},null,8,["text"]),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(w,{type:"h3",text:e.__("Einstellungen")},null,8,["text"]),(0,r.createElementVNode)("form",{onSubmit:t[3]||(t[3]=(0,r.withModifiers)((function(){return e.updateDesign&&e.updateDesign.apply(e,arguments)}),["prevent"]))},[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(e.__("Inverser la présentation des annonces et événements, en mettant le titre avant l'image")),1),(0,r.createVNode)(k,{disabled:!1,modelValue:e.form.invertTitleImage,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.form.invertTitleImage=t}),type:"bordered",value:!!e.$page.props.commune.invert_title_image,values:e.invertTitleImageValues},null,8,["modelValue","value","values"])]),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(_,{label:e.__("Primärfarbe"),placeholder:e.__("Farbe auswählen"),modelValue:e.form.primaryColor,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.form.primaryColor=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors.primaryColor?((0,r.openBlock)(),(0,r.createElementBlock)("span",a,(0,r.toDisplayString)(e.$page.props.errors.primaryColor),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(_,{label:e.__("Sekundärfarbe"),placeholder:e.__("Farbe auswählen"),modelValue:e.form.secondaryColor,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.form.secondaryColor=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors.secondaryColor?((0,r.openBlock)(),(0,r.createElementBlock)("span",s,(0,r.toDisplayString)(e.$page.props.errors.secondaryColor),1)):(0,r.createCommentVNode)("",!0)])]),(0,r.createElementVNode)("div",l,[(0,r.createVNode)(E,{fileTypes:"image/*",label:e.__("Hintergrundbild"),icon:"<i class='bi bi-upload'></i>",onOnfilechange:e.bgUploaded,placeholder:e.__("Bild hochladen")},null,8,["label","onOnfilechange","placeholder"]),e.$page.props.errors.headerImage?((0,r.openBlock)(),(0,r.createElementBlock)("span",c,(0,r.toDisplayString)(e.$page.props.errors.headerImage),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",u,[(0,r.createVNode)(E,{fileTypes:"image/*",label:e.__("Logo"),icon:"<i class='bi bi-upload'></i>",onOnfilechange:e.logoUploaded,placeholder:e.__("Bild hochladen")},null,8,["label","onOnfilechange","placeholder"]),e.$page.props.errors.logo?((0,r.openBlock)(),(0,r.createElementBlock)("span",d,(0,r.toDisplayString)(e.$page.props.errors.logo),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",p,[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("input",{disabled:!e.changedData,class:"btn-primary curs
2or-pointer",type:"submit",value:e.__("Speichern")},null,8,h)]),(0,r.createCommentVNode)("",!0)])],32)]),(0,r.createElementVNode)("div",f,[(0,r.createVNode)(w,{type:"h3",text:e.__("Vorschau")},null,8,["text"]),e.$page.props.commune.header_image_url?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,src:e.$page.props.storagePath+e.$page.props.commune.header_image_url},null,8,m)):(0,r.createCommentVNode)("",!0),e.$page.props.commune.communal_logo_url?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:1,src:e.$page.props.storagePath+e.$page.props.commune.communal_logo_url},null,8,g)):(0,r.createCommentVNode)("",!0)])])])}]])},3603:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array('
vendor: 16,129 bytes, line 2
2áµ<ÃıÊÒÕ»×ÙµÛÞ¢ßà à©àªà¶¡à¹à¼à¼¦áá¨á¡ááááá¥\0\0\0\0\0\0á«áá¦á°á·á½¾â â°âââ»ââ ¤â¤â´â¹â¿ããºã¹ã¬ã£¾ã¨¨ã©±ã« 㬮à EMabcfglmnoprstu\\bfms�¦³¹ÃÃligè»ÃäPè»&ä¦cuteè»Ãäreve;äÄiyx}rcè»Ãä;är;ìðraveè»Ãäpha;äacr;äd;æ©Ägp¡on;äf;ìð¸plyFunction;æ¡ingè»Ã
ä
Äcs¾Ãr;ìðign;æildeè»Ãämlè»ÃäÐaceforsuåûþÄÄĢħĪÄcrêòkslash;æÅ¶Ã¶Ã¸;æ«§ed;æy;äÆcrtÄ
ÄÄause;æµnoullis;æ¬a;är;ìð
pf;ìð¹eve;äcòÄmpeq;æÜHOacdefhilorsuÅÅÅÆÆÆ¢ÆµÆ·ÆºÇÈɳɸɾcy;ä§PYè»Â©ä©ÆcpyÅŢźute;äÄ;iŧŨætalDifferentialD;æ
leys;æÈaeioÆÆÆÆron;ädilè»Ãärc;änint;æ°ot;äÄdnƧÆilla;ä¸terDot;ä·Ã²Å¿i;ä§rcleÈDMPTÇÇÇÇot;æinus;ælus;æimes;æoÄcsǢǸkwiseContourIntegral;æ²eCurlyÄDQÈÈoubleQuote;æuote;æÈlnpuÈȨÉÉonÄ;eȥȦæ·;æ©´ÆgitȯȶȺruent;æ¡nt;æ¯ourIntegral;æ®ÄfrÉÉ;æoduct;ænterClockwiseContourIntegral;æ³oss;樯cr;ìðpÄ;CÊÊ
æap;æÖDJSZacefiosÊ Ê¬Ê°Ê´Ê¸ËËˡ˦̳ÒÄ;oŹʥtrahd;æ¤cy;äcy;ä
cy;äÆgrsÊ¿ËËger;æ¡r;æ¡hv;櫤ÄayËËron;ä;älÄ;tËËæa;är;ìðÄaf˫̧Äcm˰̢riticalÈADGTÌÌÌÌcute;ä´oÅ´ÌÌ;äbleAcute;ärave;ä ilde;äond;æferentialD;æ
Ѱ̽\0\0\0ÍÍ\0Ð
f;ìð»Æ;DEÍÍÍä¨ot;æqual;æbleÌCDLRUVͣͲÎÏϢϸontourIntegraìȹoɴ͹\0\0ͻ»ÍnArrow;æÄeoÎΤftÆARTÎÎΡrrow;æightArrow;æeÃ¥ËngÄLRΫÏeftÄARγιrrow;æ¸ightArrow;æºightArrow;æ¹ightÄATÏÏrrow;æee;æ¨pÉÏ©\0\0ϯrrow;æownArrow;æerticalBar;æ¥nÌABLRTaÐЪаÑѿͼrrowÆ;BUÐÐТæar;æ¤pArrow;æµreve;äeftËк\0Ñ\0ÑightVector;æ¥eeVector;æ¥ectorÄ;BÑÑæ½ar;æ¥ightÇѧ\0ѱeeVector;æ¥ectorÄ;BѺѻæar;æ¥eeÄ;AÒÒæ¤rrow;æ§ÄctÒÒr;ìðrok;äà NTacdfglmopqstuxÒ½ÓÓÓÓÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶ÕÕÕ Õ¥G;ä
Hè»Ãäcuteè»ÃäÆaiyÓÓÓron;ärcè»Ãä;äot;är;ìðraveè»Ãäement;æÄapÓºÓ¾cr;ätyÉÔ\0\0ÔmallSquare;æ»erySmallSquare;æ«ÄgpÔ¦Ôªon;äf;ìð¼silon;äuÄaiÔ¼ÕlÄ;TÕÕæ©µilde;ælibrium;æÄciÕÕr;æ°m;橳a;ämlè»ÃäÄipÕªÕ¯sts;æonentialE;æ
ÊcfiosÖ
ÖÖÖ²×y;ä¤r;ìðlledÉÖ\0\0Ö£mallSquare;æ¼erySmallSquare;æªÍ°Öº\0Ö¿\0\0×f;ìð½All;æriertrf;æ±cÃ²×ØJTabcdfgorst×¨×¬×¯×ºØØØØØØ£Ù¬Ù²cy;äè»>ä¾mmaÄ;d׷׸ä;äreve;äÆeiyØØØdil;ä¢rc;ä;äot;ä r;ìð;æpf;ìð¾eaterÌEFGLSTصÙÙÙÙÙ¦qualÄ;Lؾؿæ¥ess;æullEqual;æ§reater;檢ess;æ·lantEqual;橾ilde;æ³cr;ìð¢;æ«ÐAacfiosuÚ
ÚÚÚÚÚªÚ¾ÛRDcy;äªÄctÚÚek;ä;äirc;ä¤r;ælbertSpace;æÇ°Ú¯\0Ú²f;æizontalLine;æÄctÛÛ
òکrok;ä¦mpÅÛÛownHumðįqual;æÜEJOacdfgmnostuÛºÛ¾ÜÜÜÜÜܡܨÝݸÞÞÞcy;älig;ä²cy;äcuteè»ÃäÄiyÜÜrcè»Ãä;äot;ä°r;æraveè»ÃäÆ;apÜ Ü¯Ü¿ÄcgÜ´Ü·r;äªinaryI;æ
lieóÏÇ´Ý\0Ý¢Ä;eÝÝæ¬ÄgrÝÝral;æ«section;æisibleÄCTݬݲomma;æ£imes;æ¢ÆgptÝ¿ÞÞon;ä®f;ìða;äcr;æilde;ä¨Ç«Þ\0Þcy;älè»ÃäÊcfosuÞ¬Þ·Þ¼ßßÄiyÞ±Þµrc;ä´;är;ìðpf;ìðÇ£ß\0ßr;ìð¥rcy;äkcy;äÎHJacfosߤߨ߽߬߱à à cy;ä¥cy;äppa;äÄeyß¶ß»dil;ä¶;är;ìðpf;ìðcr;ìð¦ÖJTaceflmostà ¥à ©à ¬à¡à¡£à¦³à¦¸à§à§à¨·à©cy;äè»<ä¼Êcmnprà ·à ¼à¡à¡à¡ute;ä¹bda;äg;æªlacetrf;ær;æÆaeyà¡à¡à¡¡ron;ä½dil;ä»;äÄfsࡨ॰tÔACDFRTUVarࡾࢩࢱࣦ࣠ࣼयà¥Î४Änrà¢à¢gleBracket;æ¨rowÆ;BRà¢à¢à¢æar;æ¤ightArrow;æeiling;æoǵࢷ\0à£bleBracket;æ¦nÇà£\0à£eeVector;楡ectorÄ;Bà£à£æar;æ¥loor;æightÄAV࣯ࣵrrow;æector;æ¥Äerà¤à¤eÆ;AVà¤à¤à¤æ£rrow;æ¤ector;æ¥iangleÆ;BEतथऩæ²ar;æ§qual;æ´pÆDTVषà¥à¥ownVector;æ¥eeVector;æ¥ ectorÄ;Bà¥à¥æ¿ar;æ¥ectorÄ;B॥०æ¼ar;æ¥ightáÎsÌEFGLSTॾà¦à¦à¦à¦¢à¦qualGreater;æullEqual;æ¦reater;æ¶ess;檡lantEqual;橽ilde;æ²r;ìðÄ;eঽাæftarrow;æidot;ä¿Ænpwà§à¨à¨gÈLRlrà§à§·à¨à¨eftÄAR০৬rrow;æµightArrow;æ·ightArrow;æ¶eftÄarγà¨ightáοightáÏf;ìðerÄLRਢਬeftArrow;æightArrow;æÆchtਾà©à©Ã²à¡;æ°rok;ä
;æªÐacefiosuà©à©à© ੷੼àª
àªàªp;æ¤
y;äÄdl੥੯iumSpace;ælintrf;æ³r;ìðnusPlus;æpf;ìðcò੶;äÒJacefostuણધàªà«à¬à¬à¶à¶à¶cy;äcute;ä
Æaey઴હાron;ä
dil;ä
;äÆgswà«à«°à¬ativeÆMTVà«à«à«¨ediumSpace;æhiÄcn૦à«Ã«à«eryThiîà«tedÄGL૸à¬reaterGreateòٳessLesóà©Line;är;ìðÈBnptଢନଷ଺reak;æ BreakingSpace;ä f;æÚ;CDEGHLNPRSTVàààªà¼à®¡à¯«à°à±à²à²¦à³àµ¡à¶
櫬Äouàà¤ngruent;æ¢pCap;æoubleVerticalBar;æ¦Ælqxà®à®à®ement;æualÄ;Tà®à®æ ilde;ìâ̸ists;æreaterÎ;EFGLSTஶஷ஽à¯à¯à¯à¯¥æ¯qual;æ±ullEqual;ìâ§Ì¸reater;ìâ«Ì¸ess;æ¹lantEqual;ì⩾̸ilde;æµumpÅ௲௽ownHump;ìâ̸qual;ìâ̸eÄfsà°à°§tTriangleÆ;BEà°à°à°¡æªar;ìâ§Ì¸qual;æ¬sÌ;EGLSTవశ఼à±à±à±æ®qual;æ°reater;æ¸ess;ìâªÌ¸lantEqual;ì⩽̸ilde;æ´estedÄGL౨౹reaterGreater;ì⪢̸essLess;ì⪡̸recedesÆ;ESà²à²à²æqual;ì⪯̸lantEqual;æ ÄeiಫಹverseElement;æghtTriangleÆ;BEà³à³à³æ«ar;ìâ§Ì¸qual;æÄquà³à´uareSuÄbp೨೹setÄ;Eà³°à³³ìâ̸qual;æ¢ersetÄ;Eà´à´ìâ̸qual;æ£Æbcpà´à´¤àµsetÄ;Eà´à´ìââqual;æceedsÈ;ESTà´²à´³à´»àµæqual;ì⪰̸lantEqual;æ¡ilde;ìâ¿Ì¸ersetÄ;Eàµàµìââqual;æildeÈ;EFT൮൯൵ൿæqual;æullEqual;æilde;æerticalBar;æ¤cr;ìð©ildeè»Ãä;äÜEacdfgmoprstuvà¶½à·à·à·à·à· à·§à·¼à¸à¸ ยา฿à¹lig;ä
cuteè»ÃäÄiyà·à·rcè»Ãä;äblac;ä
r;ìðraveè»ÃäÆaei෮ෲ෶cr;ä
ga;ä©cron;äpf;ìðenCurlyÄDQà¸à¸oubleQuote;æuote;æ;æ©Äclวฬr;ìðªashè»ÃäiŬื฼deè»Ãäes;樷mlè»ÃäerÄBPà¹à¹ Äarà¹à¹r;æ¾acÄekà¹à¹;æet;æ´arenthesis;æÒacfhilors๿àºàºàºàºàºàºàº°à»¼rtialD;æy;är;ìði;ä¦;ä usMinus;ä±ÄipຢàºncareplanÃ¥Úf;æÈ;eio຺ູ໠໤檻cedesÈ;ESTà»à»à»à»æºqual;檯lantEqual;æ¼ilde;æ¾me;æ³Ädp໩໮uct;æortionÄ;aȥ໹l;æÄcià¼à¼r;ìð«;ä¨ÈUfosà¼à¼à¼à¼OTè»"ä¢r;ìðpf;æcr;ìð¬ØBEacefhiorsu༾à½à½à½ ཱིྦྷྪà¾áá©á´á¾arr;æ¤Gè»Â®ä®Æcnrà½à½à½ute;ä
g;æ«rÄ;tà½à½æ l;æ¤Æaeyཧཬཱron;ä
dil;ä
;ä Ä;vླྀཹæerseÄEUà¾à¾Älqà¾à¾ement;æuilibrium;æpEquilibrium;楯r»ཹo;ä¡ghtÐACDFTUVaà¿à¿«à¿³á¢á¨ááÏÄnrà¿à¿gleBracket;æ©rowÆ;BLà¿à¿à¿¡æar;æ¥eftArrow;æeiling;æoǵ࿹\0á
bleBracket;æ§nÇá\0áeeVector;æ¥ectorÄ;Bááæar;æ¥loor;æÄerááeÆ;AVáµá¶á¼æ¢rrow;æ¦ector;æ¥iangleÆ;BEáááæ³ar;æ§qual;æµpÆDTVá£á®á¸ownVector;æ¥eeVector;æ¥ectorÄ;Bááæ¾ar;æ¥ectorÄ;Bááæar;æ¥Äpuááf;ændImplies;楰ightarrow;æÄchá¹á¼r;æ;æ±leDelayed;æ§´ÚHOacfhimoqstuá¤á±á·á½ááá
á
á
¡á
§áµá»á¿ÄCcá©á®Hcy;ä©y;ä¨FTcy;ä¬cute;ä
Ê;aeiyáááááæª¼ron;ä
dil;ä
rc;ä
;ä¡r;ìðortÈDLRUáªá´á¾á
ownArrow»ÐeftArrow»à¢ightArrow»à¿pArrow;ægma;ä£allCircle;æpf;ìðɲá
\0\0á
°t;æareÈ;ISUá
ȇ
¼áá¯æ¡ntersection;æuÄbpáásetÄ;Eááæqual;æersetÄ;Eá¨á©æqual;ænion;æcr;ìð®ar;æÈbcmpááááÄ;sááæetÄ;Eááqual;æÄchá á
eedsÈ;ESTáá®á´á¿æ»qual;檰lantEqual;æ½ilde;æ¿Tháà¾;æÆ;esááá£ærsetÄ;Eááæqual;æet»áÖHRSacfhiorsá¾ááááá±á¶ááááORNè»ÃäADE;æ¢ÄHcáácy;äy;ä¦Äbuáá;ä;䤯aeyá¥áªá¯ron;ä
¤dil;ä
¢;ä¢r;ìðÄeiá»áDzá\0áefore;æ´a;äÄcnáákSpace;ìââSpace;ældeÈ;EFTá«á¬á²á¼æ¼qual;æullEqual;æ
ilde;æpf;ìðipleDot;æÄctáár;ìð¯rok;ä
¦à«¡á·ááá¦\0á¬á±\0\0\0\0\0á¸á½á·á
\0á¿áááÄcrá»áuteè»ÃärÄ;oááæcir;æ¥rÇ£á\0áy;äve;ä
¬Äiyáá£rcè»Ãä;ä£blac;ä
°r;ìðraveè»Ãäacr;ä
ªÄdiáá©erÄBPááÄaráár;äacÄekáá;æet;æµarenthesis;æonÄ;Pá°á±ælus;æÄgpá»á¿on;ä
²f;ìðÐADETadpsáá®á¸áϨááá³rrowÆ;BDá
á á¤ar;æ¤ownArrow;æ
ownArrow;æquilibrium;楮eeÄ;Aááæ¥rrow;æ¥ownáϳerÄLRáá¨eftArrow;æightArrow;æiÄ;lá¹áºäon;ä¥ing;ä
®cr;ìð°ilde;ä
¨mlè»ÃäÒDbcdefosvá§á¬á°á³á¾á
áááash;æ«ar;æ««y;äashÄ;lá»á¼æ©;櫦Äeráá
;æÆbtyáááºar;æÄ;iáácalÈBLSTá¡á¥áªá´ar;æ£ine;ä¼eparator;æilde;æThinSpace;ær;ìðpf;ìðcr;ìð±dash;æªÊcefosá§á¬á±á¶á¼irc;ä
´dge;ær;ìðpf;ìðcr;ìð²Èfiosáááár;ìð;äpf;ìðcr;ìð³ÒAIUacfosuá±áµá¹á½ááááá cy;ä¯cy;äcy;ä®cuteè»ÃäÄiyáárc;ä
¶;ä«r;ìðpf;ìðcr;ìð´ml;ä
¸ÐHacdefosáµá¹á¿áááá á¤cy;äcute;ä
¹Äayááron;ä
½;äot;ä
»Ç²á\0áoWidtèà«a;är;æ¨pf;æ¤cr;ìðµà¯¡ááá\0á°á¶á¿\0\0\0\0ááá«áá\0ááá²á¹\0á¾cuteè»Ã¡ä¡reve;äÌ;Ediuyááá¡á£á¨áæ¾;ìâ¾Ì³;æ¿rcè»Ã¢ä¢teè»Â´Ì;ä°ligè»Ã¦ä¦Ä;r²áº;ìðraveè»Ã ä ÄepááÄfpáásym;æµÃ¨áha;ä±ÄapácÄclá¤á§r;äg;樿ɤá°\0\0áÊ;adsváºá»á¿ááæ§nd;æ©;æ©lope;æ©;æ©Î;elmrszááááá¿ááæ ;榤e»ásdÄ;aá¥á¦æ¡Ñ¡á°á²á´á¶á¸áºá¼á¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ;vá
áæbÄ;dááæ¾;æ¦Äptááh;æ¢Â»Â¹arr;æ¼Ägpá£á§on;ä
f;ìðÎ;Eaeiopáá»á½áááá;æ©°cir;橯;æd;æs;ä§roxÄ;eááñáingè»Ã¥ä¥Æctyá¡á¦á¨r;ìð¶;äªmpÄ;eáá¯Ã±Êildeè»Ã£ä£mlè»Ã¤ä¤Äciááoninôɲnt;æ¨à Nabcdefiklnoprsuáá±á°á¼ááá¸á½á á¦á ¹á¡á᤽á¥á¥°ot;æ«Äcrá¶ákÈcepsáá
ááong;æpsilon;ä¶rime;æµimÄ;eááæ½q;æÅ¶á¢á¦ee;æ½edÄ;gá¬áæ
e»árkÄ;táá·brk;æ¶Äoyáá;ä±quo;æÊcmprtááá¡á¤á¨ausÄ;eÄÄptyv;榰séánoÃµÄÆahwá¯á±á³;ä²;æ¶een;æ¬r;ìðgÎcostuvwááá³ááááÆaiuáááÃ°Ý rc;æ¯pÂ»á±Ædptá¤á¨áot;æ¨lus;æ¨imes;æ¨É±á¹\0\0á¾cup;æ¨ar;æ
riangleÄduááown;æ½p;æ³plus;æ¨eÃ¥áÃ¥áarow;æ¤Æakoáá ¦á µÄcná²á £kÆlstáºÖ«á ozenge;æ§«riangleÈ;dlrá á á á æ´own;æ¾eft;æight;æ¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ;æ4;æck;æÄeoá ¾á¡Ä;qá¡á¡ì=â¥uiv;ìâ¡â¥t;æÈptwxá¡á¡á¡§á¡¬f;ìðÄ;táá¡£om»átie;æØDHUVbdhmptuvá¢
á¢á¢ªá¢»á£á£á£¬á£¿á¤
á¤á¤á¤¡ÈLRlrá¢á¢á¢á¢;æ;æ;æ;æÊ;DUduᢡᢢᢤᢦᢨæ;æ¦;æ©;æ¤;æ§ÈLRlrᢳᢵᢷᢹ;æ;æ;æ;æÎ;HLRhlrá£á£á£á£á£á£á£æ;æ¬;æ£;æ ;æ«;æ¢;æox;æ§ÈLRlrᣤᣦᣨᣪ;æ;æ;æ;æÊ;DUduڽ᣷᣹᣻᣽;æ¥;æ¨;æ¬;æ´inus;ælus;æimes;æ ÈLRlrá¤á¤á¤á¤;æ;æ;æ;æÎ;HLRhlrᤰᤱᤳᤵᤷ᤻᤹æ;æª;æ¡;æ;æ¼;æ¤;æÄevÄ£á¥barè»Â¦ä¦Èceioá¥á¥á¥á¥ r;ìð·mi;æmÄ;eáálÆ;bhᥨᥩᥫä;æ§
sub;æÅ¬á¥´á¥¾lÄ;e᥹᥺æ¢t»᥺pÆ;Eeįá¦
á¦;檮Ä;qÛÛೡᦧ\0᧨á¨á¨á¨²\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá\0᯽\0á°Æcprá¦á¦²á§ute;äÌ;abcdsᦿá§á§á§á§á§æ©nd;æ©rcup;æ©Äauá§á§p;æ©p;æ©ot;æ©;ìâ©ï¸Äeo᧢᧥t;æÃ®ÚÈaeiuá§°á§»á¨á¨
ǰ᧵\0᧸s;æ©on;ädilè»Ã§ä§rc;äpsÄ;sá¨á¨æ©m;æ©ot;äÆdmná¨á¨ ᨦilè»Â¸Æptyv;榲tè¢;eá¨á¨®ä¢räƲr;ìð Æceiᨽá©á©y;äckÄ;má©á©æark»á©;ärÎ;Ecefmsá©á© ᩢᩫ᪤᪪᪮æ;æ§Æ;elᩩᩪá©äq;æeɡᩴ\0\0áªrrowÄlr᩼áªeft;æºight;æ»ÊRSacdáªáªáªáªáªÂ»à½;æst;æirc;æash;ænint;æ¨id;櫯cir;æ§ubsÄ;u᪻᪼æ£it»᪼ˬá«á«á«º\0á¬onÄ;eá«á«äºÄ;qÃÃÉá«\0\0á«¢aÄ;tá«á«ä¬;äÆ;fl᫨᫩᫫æÃ®á
eÄmx᫱᫶ent»᫩eóÉǧ᫾\0á¬Ä;dá»á¬ot;æ©nÃ´ÉÆfryá¬á¬á¬;ìðoäÉè©;sÅá¬r;æÄaoᬥᬩrr;æµss;æÄcuᬲᬷr;ìð¸ÄbpᬼáÄ;eááæ«;æ«Ä;eááæ«;æ«dot;æ¯Îdelprvwá á¬á·á®á®¬á¯á¯¹arrÄlrá¨áª;椸;椵ɰá²\0\0áµr;æc;æarrÄ;pá¿á®æ¶;椽Ì;bcdosá®á®á®á®¡á®¥á®¨æªrcap;æ©Äauá®á®p;æ©p;æ©ot;ær;æ©
;ìâªï¸Èalrv᮵ᮿá¯á¯£rrÄ;mᮼᮽæ·;椼yÆevwá¯á¯á¯qɰá¯\0\0á¯reãá³uãáµee;æedge;æenè»Â¤ä¤earrowÄlrᯮ᯳eft»á®ight»ᮽeäá¯Äciá°á°oninôǷnt;æ±lcty;æà¦AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²á²á²¬á²·á³»á³¿á´áµ»á¶á¶«á¶»á·á·ròÎar;楥Èglrsá±á±á±á±ger;æ eth;æ¸Ã²á³hÄ;vá±á±æÂ»à¤Å«á±¡á±§arow;æ¤aãÌÄayᱮᱳron;ä;ä´Æ;ao̲ᱼá²ÄgrÊ¿á²r;ætseq;æ©·Æglmá²á²á²è»Â°ä°ta;ä´ptyv;榱ÄirᲣᲨsht;楿;ìð¡arÄlrᲳᲵ»à£Â»áÊaegsvá³Í¸á³á³á³ mÆ;oșá³á³ndÄ;șá³uit;æ¦amma;äin;æ²Æ;io᳧᳨᳸ä·deè÷;oá³§á³°ntimes;ænø᳷cy;äcɯá´\0\0á´rn;æop;æÊlptuwá´á´á´¢áµáµlar;ä¤f;ìðÊ;empsÌá´á´·á´½áµqÄ;dÍá´³ot;æinus;æ¸lus;æquare;æ¡blebarwedgåúnÆadhá®áµáµ§ownarrowóá²arpoonÄlrᵲᵶefôᲴighôᲶŢᵿá¶
karo÷à½É¯á¶\0\0á¶rn;æop;æÆcotá¶á¶£á¶¦Äryá¶á¶¡;ìð¹;äl;æ§¶rok;äÄdrá¶°á¶´ot;æ±iÄ;fá¶ºá æ¿Äahá·á·ròЩaòྦangle;榦Äciá·á·y;ägrarr;æ¿à¤Dacdefglmnopqrstuxá¸á¸á¸á¸¸Õ¸á¸¼á¹á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½á½á½ÄDoá¸á´´oôá²Äcsá¸á¸uteè»Ã©ä©ter;æ©®ÈaioyḢḧḱḶron;ärÄ;cá¸á¸®æè»Ãªäªlon;æ;äot;äÄDrá¹á¹
ot;æ;ìð¢Æ;rsá¹á¹á¹æªaveè»Ã¨ä¨Ä;dá¹á¹æªot;æªÈ;ilsṪṫṲṴæªnters;æ§;æÄ;dṹṺæªot;æªÆapsáº
áºáºcr;ätyÆ;sváºáºáºæ
et»áºpÄ1;áºáº¤Ä³áº¡áº£;æ;æ
æÄgsẪẬ;ä
p;æÄgpẴẸon;äf;ìðÆalsá»á»á»rÄ;sá»á»æl;æ§£us;橱iÆ;lvá»á»á»äµon»á»;äµÈcsuvỪỳá¼á¼£Äioữḱrc»Ḯɩỹ\0\0á»»ÃÕantÄglá¼á¼tr»á¹ess»ṺÆaeiá¼á¼á¼ls;ä½st;ævÄ;DȵἠD;橸parsl;æ§¥ÄDaἯἳot;ærr;楱Æcdiá¼¾á½á»¸r;æ¯oôÍÄahá½á½;ä·è»Ã°ä°Ämrá½á½lè»Ã«ä«o;æ¬Æcipὡὤὧl;ä¡sôծÄeoὬὴctatioîÕnentialåչৡá¾\0á¾\0ᾡᾧ\0\0á¿á¿\0á¿\0ῦῪâ\0ââllingdotseñá¹y;ämale;æÆilrá¾á¾³á¿lig;èï¬É©á¾¹\0\0á¾½g;èï¬ig;èï¬;ìð£lig;èï¬lig;ìfjÆaltá¿á¿á¿¡t;æig;èï¬ns;æ±of;äǰ΅\0ῳf;ìðÄakÖ¿á¿·Ä;vῼ´æ;æ«artint;æ¨ÄaoââÄcsââαââ°â¸â
â\0âβâ¢â¥â§âªâ¬\0â®è»Â½ä½;æ
è»Â¼ä¼;æ
;æ
;æ
Ƴâ´\0â¶;æ
;æ
Ê´â¾â\0\0âè»Â¾ä¾;æ
;æ
5;æ
ƶâ\0â;æ
;æ
8;æ
l;æwn;æ¢cr;ìð»à¢Eabcdefgijlnorstvââââ¥â°â´â°âµâºâ¿âââ¸Ìâ¾â
âÄ;lÙâ;æªÆcmpâââute;äµmaÄ;dâá³ä³;æªreve;äÄiyâªâ®rc;ä;ä³ot;ä¡È;lqsؾÙâ½âÆ;qsؾÙâlanô٥È;cdlÙ¥âââ¥c;檩otÄ;oââæªÄ;lâ¢â£æª;æªÄ;eâªâìâï¸s;æªr;ìð¤Ä;gÙ³Ømel;æ·cy;äÈ;EajÙâââ;æª;檥;檤ÈEaesâââ©â´;æ©pÄ;pâ£â¤æªrox»â¤Ä;qâ®â¯æªÄ;qâ®âim;æ§pf;ìðÄciâ
â
r;æmÆ;elÙ«â
â
;æª;æªè>;cdlqr×®â
â
ªâ
®â
³â
¹Äciâ
¥â
§;檧r;橺ot;æPar;æ¦uest;橼Êadelsââ
ªâÙâǰâ\0âproøâr;楸qÄlqØ¿âlesóâiÃÙ«Äenâ£ârtneqq;ìâ©ï¸Ã
âªÔAabcefkosyâââ±âµâºâââ¯â¨â½ròΠÈilmrâââârsðáf»â¤ilôکÄdrâ â¤cy;äÆ;cwࣴâ«â¯ir;æ¥;æar;æirc;䥯alrââârtsÄ;uââæ¥it»âlip;æ¦con;æ¹r;ìð¥sÄewâ£â©arow;椥arow;椦Êamoprâºâ¾âââ£rr;æ¿tht;æ»kÄlrââeftarrow;æ©ightarrow;æªf;ìðbar;æÆcltâ¯â´â¸r;ìð½asèâ´rok;ä§Äbpââull;æhen»á±à«¡â£\0âª\0â¸â
â\0ââ³\0\0â¸â¢â§â¢â¿\0ââªâ´cuteè»ÃäÆ;iyݱâ°âµrcè»Ã®ä®;ä¸Äcxâ¼â¿y;äµclè»Â¡ä¡ÄfrÎâ;ìð¦raveè»Ã¬ä¬È;inoܾââ©â®Äinâ¢â¦nt;æ¨t;æfin;æ§ta;æ©lig;䳯aopâ¾ââÆcgtâ
ââr;䫯elpÜââinÃ¥ÞarÃ´Ü h;ä±f;æ·ed;äµÊ;cfotÓ´â¬â±â½âare;æ
inÄ;tâ¸â¹æie;æ§doôâÊ;celpÝââââ¡al;æºÄgrââeróá£Ã£âarhk;æ¨rod;樼Ècgptâ¯â²â¶â»y;äon;ä¯f;ìða;ä¹uestè»Â¿ä¿Äciââr;ìð¾nÊ;EdsvÓ´âââ¡Ó³;æ¹ot;æµÄ;vâ¦â§æ´;æ³Ä;iÝ·â®lde;ä©Ç«â¸\0â¼cy;älè»Ã¯ä¯Ìcfmosuââââ¡â§âµÄiyâârc;äµ;ä¹r;ìð§ath;ä·pf;ìðÇ£â¬\0â±r;ìð¿rcy;äkcy;äÐacfghjosâââ¢â§ââ±âµâ»ppaÄ;vââäº;ä°Äeyââ dil;ä·;äºr;ìð¨reen;ä¸cy;ä
cy;äpf;ìðcr;ìðà®ABEHabcdefghjlmnoprstuvâ°ââââââ½âââââ¥â¹â½ââ²âââ¨âââ â Æartâ·âºâ¼ròà§Ã²Îail;æ¤arr;æ¤Ä;gà¦â;æªar;楢ॣâ¥\0âª\0â±\0\0\0\0\0âµâº\0âââ\0â¹ute;äºmptyv;榴raîà¡bda;ä»gÆ;dlà¢ââ;æ¦Ã¥à¢;æª
uoè»Â«ä«rÐ;bfhlpstà¢ââ¦â©â«â®â±âµÄ;fà¢â£s;æ¤s;æ¤Ã«âp;æ«l;椹im;楳l;æ¢Æ;aeâ¿ââæª«il;æ¤Ä;sââæª;ìâªï¸Æabrââârr;æ¤rk;æ²Äakâ¢â¬cÄekâ¨âª;ä»;äÄesâ±â³;æ¦lÄduâ¹â»;æ¦;æ¦Èaeuyââââron;ä¾Ädiââil;ä¼Ã¬à¢°Ã¢â©;
vendor: 4,294 bytes, line 2
2ä»Ècqrsâ£â¦ââ½a;椶uoÄ;rà¸áÄduâ²â·har;楧shar;æ¥h;æ²Ê;fgqsââà¦â³â¿æ¤tÊahlrtââ¤â·ââ¨rrowÄ;tà¢â¡aéâ¶arpoonÄduâ¯â´own»Ñp»०eftarrows;æightÆahsââârrowÄ;sࣴࢧarpoonóà¾quigarro÷â°hreetimes;æÆ;qsâà¦âºlanôবÊ;cdgsবââââ¨c;檨otÄ;oââæ©¿Ä;rââæª;æªÄ;eâ¢â¥ìâï¸s;æªÊadegsâ³â¹â½ââpproøâot;æqÄgqââ
ôà¦gtòâôà¦iÃলÆilrâ࣡âsht;楼;ìð©Ä;Eà¦â£;æªÅ¡â©â¶rÄduâ²â®Ä;l॥â³;楪lk;æcy;äÊ;achtà©ââââròâorneòá´ard;楫ri;æºÄioââ¤dot;ä
ustÄ;aâ¬âæ°che»âÈEaesâ»â½ââ;æ¨pÄ;pââæªrox»âÄ;qââæªÄ;qââ»im;æ¦Ðabnoptwzâ©â´â·ââ¯âââÄnrâ®â±g;æ¬r;æ½rëà£gÆlmrâ¿ââeftÄar০âightá৲apsto;æ¼ightá৽parrowÄlrâ¥â©efôâight;æ¬Æaflâ¶â¹â½r;æ¦
;ìðus;æ¨imes;樴šââst;æÃ¡áÆ;efââá ænge»âarÄ;lâ¤â¥ä¨t;æ¦Êachmtâ³â¶â¼â
âròࢨorneòá¶arÄ;dà¾â;æ¥;æri;æ¿Ìachiqtââà©â¢â®â»quo;æ¹r;ìðmÆ;egলâªâ¬;æª;æªÄbuâªâ³oÄ;rà¸â¹;ærok;ä
è<;cdhilqrà «ââ¹ââ â¥âªâ°Äciââ;檦r;橹reÃ¥â²mes;æarr;楶uest;æ©»ÄPiâµâ¹ar;æ¦Æ;efâ à¤á ærÄduâ â shar;æ¥har;楦Äenâ â ¡rtneqq;ìâ¨ï¸Ã
â ÜDacdefhilnopsuâ¡â¡
â¢â¢â¢â¢ ⢥⢨â£â£¢â£¤àªâ£³â¤Dot;æºÈclprâ¡â¡â¡£â¡½rè»Â¯ä¯Äetâ¡â¡;æÄ;eâ¡â¡æ se»â¡Ä;sá»â¡¨toÈ;dluá»â¡³â¡·â¡»owîÒefôà¤Ã°áker;æ®Äoyâ¢â¢mma;権;ä¼ash;æasuredangle»á¦r;ìðªo;æ§Æcdn⢯⢴â£roè»ÂµäµÈ;acdá¤â¢½â£â£sôá§ir;æ«°otè»Â·ÆµusÆ;bdâ£á¤â£æÄ;uá´¼â£;横ţâ£â£¡p;æ«Ã²âðàªÄdp⣩⣮els;æ§f;ìðÄct⣸⣽r;ìðpos»áÆ;lmâ¤â¤â¤ä¼timap;æ¸à°GLRVabcdefghijlmoprstuvwâ¥â¥â¥¾â¦â¦â§â§©â¨â¨â©â©âªâªâª¤âª¨â¬â¬ââ¿â®®â°´â±§â±¼â³©Ägtâ¥â¥;ìâ̸Ä;vâ¥à¯ìâ«âÆeltâ¥â¥²â¥¶ftÄar⥡⥧rrow;æightarrow;æ;ìâ̸Ä;v⥻à±ìâªâightarrow;æÄDdâ¦â¦ash;æ¯ash;æ®Êbcnpt⦣⦧⦬⦱â§la»Ëute;ä
g;ìâ âÊ;Eiopà¶â¦¼â§â§
â§;ì⩰̸d;ìâ̸s;ä
roøà¶urÄ;aâ§â§æ®lÄ;sâ§à¬¸Ç³â§\0â§£pè»Â ଷmpÄ;e௹à°Êaeouyâ§´â§¾â¨â¨â¨Ç°â§¹\0â§»;æ©on;ä
dil;ä
ngÄ;dൾâ¨ot;ìâ©Ì¸p;æ©;ä½ash;æÎ;Aadqsxà®â¨©â¨â¨»â©â©
â©rr;ærÄhr⨳⨶k;椤Ä;oá²á°ot;ìâ̸uiöà£Äeiâ©â©ar;椨Ãà®istÄ;sà® à®r;ìð«ÈEestà¯
⩦⩹⩼Æ;qs஼â©à¯¡Æ;qs஼à¯
â©´lanô௢iÃ௪Ä;rà®¶âªÂ»à®·ÆAapâªâªâªrò⥱rr;æ®ar;櫲Æ;svà¾âªà¾Ä;d⪡⪢æ¼;æºcy;äÎAEadest⪷⪺⪾â«â«
⫶⫹rò⥦;ìâ¦Ì¸rr;ær;æ¥È;fqsà°»â«â«£â«¯tÄarâ«â«rro÷â«ightarroÃ·âªÆ;qs఻⪺⫪lanôà±Ä;sà±â«´Â»à°¶iÃà±Ä;rవ⫾iÄ;eà°à°¥iäà¶Äptâ¬â¬f;ìðè¬;inâ¬â¬â¬¶ä¬nÈ;Edvà®â¬¤â¬¨â¬®;ìâ¹Ì¸ot;ìâµÌ¸Ç¡à®â¬³â¬µ;æ·;æ¶iÄ;vಸ⬼ǡಸââ;æ¾;æ½Æaorââ£â©rÈ;astà»âââlleìà»l;ì⫽â¥;ìâ̸lint;æ¨Æ;ceà²â°â³uåಥÄ;cà²â¸Ä;eà²â½Ã±à²ÈAaitâ®â®â®â®§ròâ¦rrÆ;cwâ®â®â®æ;ì⤳̸;ìâ̸ghtarrow»â®riÄ;eà³à³Îchimpqu⮽â¯â¯â¬à¸â¯¤â¯¯È;cerà´²â¯à´·â¯uÃ¥àµ
;ìðortÉâ¬
\0\0â¯aráâmÄ;e൮â¯Ä;q൴൳suÄbp⯫â¯Ã¥à³¸Ã¥à´Æbcp⯶â°â°È;Ees⯿â°à´¢â°æ;ìâ«
̸etÄ;eà´â°qÄ;qà´£â°cÄ;eà´²â°Ã±à´¸È;EesⰢⰣàµâ°§æ
;ìâ«Ì¸etÄ;eàµâ°®qÄ;qൠⰣÈgilrⰽⰿâ±
â±Ã¬à¯ldeè»Ã±ä±Ã§à±iangleÄlrâ±â±eftÄ;eà°â±Ã±à°¦ightÄ;eà³â±¥Ã±à³Ä;mⱬâ±ä½Æ;esⱴⱵⱹä£ro;æp;æÒDHadgilrsâ²â²â²â²â²£â²°â²¶â³â³£ash;æarr;æ¤p;ìââash;æ¬ÄetⲨⲬ;ìâ¥â;ì>ânfin;æ§ÆAetâ²½â³â³
rr;æ¤;ìâ¤âÄ;râ³â³ì<âie;ìâ´âÄAtâ³â³rr;æ¤rie;ìâµâim;ìâ¼âÆAanâ³°â³´â´rr;ærÄhr⳺⳽k;椣Ä;oá§á¥ear;椧ááª\0\0\0\0\0\0\0\0\0\0\0\0\0â´\0â´¸âµâµ ⵥ⵲â¶á¬\0\0â¶â¶«\0â·â·\0â·â¸â¸«â¸¾â¹Äcsâ´±áªuteè»Ã³ä³Äiyâ´¼âµ
rÄ;cáªâµè»Ã´ä´;ä¾Êabios᪠âµâµÇâµlac;ä
v;樸old;榼lig;ä
Äcr⵩âµir;榿;ìð¬Í¯âµ¹\0\0âµ¼\0â¶n;äaveè»Ã²ä²;æ§Äbmâ¶à·´ar;榵Èacitâ¶â¶â¶¥â¶¨ròáªÄirâ¶â¶ r;榾oss;榻nÃ¥à¹;æ§Æaeiⶱⶵⶹcr;ä
ga;äÆcdnâ·â·
Çron;ä¿;榶pf;ìð Æaelâ·â·Çr;榷rp;榹Î;adiosvⷪⷫⷮâ¸â¸â¸â¸æ¨ròáªÈ;efmâ··â·¸â¸â¸
æ©rÄ;oⷾⷿæ´f»ⷿè»Âªäªè»Âºäºgof;æ¶r;æ©lope;æ©;æ©Æcloâ¸â¸¡â¸§Ã²â¸ashè»Ã¸ä¸l;æiŬⸯ⸴deè»ÃµäµesÄ;aÇ⸺s;樶mlè»Ã¶ä¶bar;æ½à«¡â¹\0â¹½\0âºâº\0⺢⺹\0\0â»àº\0â¼\0\0⼫⾼\0â¿rÈ;
vendor: 6,210 bytes, line 2
2astÐâ¹§â¹²àº
è¶;lâ¹â¹®ä¶leìÐɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊcimptâºâºâºá¡¥âºnt;ä¥od;ä®il;æ°enk;æ±r;ìðÆimo⺨⺰⺴Ä;vâºâº®ä;ämaô੶ne;æÆ;tv⺿â»â»ächfork»´;äÄauâ»â»nÄckâ»â»kÄ;hâ´â»;æÃ¶â´sÒ;abcdemst⻳⻴á¤â»¹â»½â¼â¼â¼â¼ä«cir;樣ir;樢Äouáµâ¼;樥;橲nè»Â±àºim;樦wo;樧Æipuâ¼â¼ â¼¥ntint;æ¨f;ìð¡ndè»Â£ä£Ô;Eaceinosuà»â¼¿â½â½â½â¾â¾â¾â½¾â¾¶;檳p;檷uÃ¥à»Ä;cà»â½Ì;acensà»â½â½â½¦â½¨â½¾pproøâ½urlyeñà»Ã±à»Æaes⽯⽶⽺pprox;檹qq;檵im;æ¨iÃà»meÄ;sâ¾àº®æ²ÆEas⽸â¾â½ºÃ°â½µÆdfp໬â¾â¾¯Æals⾠⾥⾪lar;æ®ine;æurf;æÄ;t໻⾴ï໻rel;æ°Äciâ¿â¿
r;ìð
;äncsp;æÌfiopsuâ¿â¢â¿â¿¥â¿«â¿±r;ìð®pf;ìð¢rime;æcr;ìðÆaeo⿸ããtÄei⿾ã
rnionóڰnt;æ¨stÄ;eããä¿Ã±á¼Ã´à¼àªABHabcdefhilmnoprstuxããããã ãã«ã
ã
¢ã
²ãããã¤ã©ãã®ã²ãã°ã·Æartãããròá³Ã²Ïail;æ¤aròᱥar;楤Îcdenqrtã¨ãµã¸ã¿ãããÄeuãã±;ìâ½Ì±te;ä
iãá
®mptyv;榳gÈ;delà¿ããã;æ¦;榥åà¿uoè»Â»ä»rÖ;abcfhlpstwà¿ã¬ã¯ã·ã¹ã¼ã¾ããããp;極Ä;fà¿ ã´s;æ¤ ;椳s;æ¤Ã«âðâ®l;æ¥
im;楴l;æ£;æÄaiããil;æ¤oÄ;nããæ¶alÃ³à¼Æabrã§ãªã®ròá¥rk;æ³Äakã³ã½cÄekã¹ã»;ä½;äÄesãã;æ¦lÄduãã;æ¦;æ¦Èaeuyããã§ã©ron;ä
Ädiã¡ã¥il;ä
ì࿲âãº;äÈclqsã´ã·ã½ã
a;椷dhar;楩uoÄ;rÈÈh;æ³Æacgã
ã
à½lÈ;ipsླྀã
ã
ánÃ¥á»arôྩt;æÆilrã
©á£ã
®sht;楽;ìð¯Äaoã
·ãrÄduã
½ã
¿Â»Ñ»Ä;láã;楬Ä;vããä;䱯gnsãã¹ã¼htÌahlrstã¤ã°ããã¤ã®rrowÄ;tà¿ãaéãarpoonÄduã»ã¿owîã
¾p»áeftÄahããrrowó࿪arpoonóÕightarrows;æquigarro÷ãhreetimes;æg;äingdotseñἲÆahmãããrò࿪aòÕ;æoustÄ;aããæ±che»ãmid;æ«®Èabptã²ã½ããÄnrã·ãºg;ær;æ¾rëáÆaflãããr;æ¦;ìð£us;樮imes;樵Äapãã§rÄ;gã£ã¤ä©t;æ¦olint;æ¨aròã£Èachqã»ãá¼ã
quo;æºr;ìðÄbuã»ãoÄ;rÈÈÆhirããã reÃ¥ã¸mes;æiÈ;eflãªáá ¡ã«æ¹tri;æ§luhar;楨;æàµ¡ãããã¬ã¸ã±\0ãºã¤\0\0ã¬ã°\0ã¨ãããã±ãã±\0ã\0\0ã³cute;ä
quïâºÔ;Eaceinpsyáã³ãµã¿ããããã¦ã©;檴ǰãº\0ã¼;檸on;ä
¡uÃ¥á¾Ä;dá³ãil;ä
rc;ä
ÆEasããã;檶p;檺im;æ©olint;æ¨iÃá;äotÆ;beã´áµãµæ
;橦ÎAacmstxãããããã£ãrr;ærÄhrããëâ¨Ä;oਸ਼਴tè»Â§ä§i;ä»war;椩mÄinã©Ã°nuóñt;æ¶rÄ;oã¶âìð°Èacoyãããã rp;æ¯Ähyããcy;ä;ärtÉã\0\0ãiäá¤araì⹯è»ÂäÄgmã¨ã´maÆ;fvã±ã²ã²ä;äÐ;deglnprá«ã
ããããã¡ã¦ot;橪Ä;qá±á°Ä;Eããæª;æª Ä;Eããæª;æªe;ælus;樤arr;楲aròá½Èaeitã¸ãããÄlsã½ãlsetméãªhp;樳parsl;槤Ädlá£ãe;æ£Ä;eããæªªÄ;sã¢ã£æª¬;ìâª¬ï¸Æflpã®ã³ãtcy;äÄ;bã¸ã¹ä¯Ä;aã¾ã¿æ§r;æ¿f;ìð¤aÄdrãÐesÄ;uããæ it»ãÆcsuã ã¹ãÄauã¥ã¯pÄ;sáã«;ìâï¸pÄ;sá´ãµ;ìâï¸uÄbpã¿ãÆ;esááãetÄ;eáãñáÆ;esá¨áãetÄ;eá¨ãÃ±á®Æ;afá
»ã¦Ö°rÅ¥ã«Ö±Â»á
¼aròá
Ècemtã¹ã¾ãã
r;ìðtmîñiìãaræá¾ÄarããrÄ;fãá¿æÄanããightÄepã£ãªpsiloîỠhé⺯s»â¡Êbcmnpã»ãáããÒ;Edemnprsãããããã£ã¬ã±ã¶æ;æ«
ot;檽Ä;dáãot;æ«ult;æ«ÄEeã¨ãª;æ«;ælus;檿arr;楹Æeiuã½ããtÆ;enãã
ãqÄ;qáãeqÄ;qã«ã¨m;æ«Äbpãã;æ«;æ«cÌ;acensáã¬ã²ã¹ã»ã¦pproøãºurlyeñá¾Ã±á³Æaesãããpproøãqñãg;æªÚ123;Edehlmnpsã©ã¬ã¯áã²ã´ãããããã¨ãè»Â¹ä¹è»Â²ä²è»Â³ä³;æ«Äosã¹ã¼t;檾ub;æ«Ä;dá¢ã
ot;æ«sÄouããl;æb;æ«arr;楻ult;æ«ÄEeã¤ã¦;æ«;ælus;æ«Æeiuã´ããtÆ;enáã¼ãqÄ;qá¢ã²eqÄ;qã§ã¤m;æ«Äbpãã;æ«;æ«ÆAanãã ãrr;ærÄhrã¦ã¨Ã«â®Ä;oਫ਩war;椪ligè»Ãä௡ããã áã³ã¹\0ã¾ã\0\0\0\0\0ãã\0ãã¬\0\0\0ãɲã\0\0ãget;æ;ärÃ«à¹Æaeyã¦ã«ã°ron;ä
¥dil;ä
£;älrec;ær;ìð±Èeikoãããµã¼Ç²ã\0ãeÄ4fááaÆ;svãããä¸ym;äÄcnã¢ã²kÄasã¨ã®pproøáim»á¬sðáÄasãºã®Ã°árnè»Ã¾ä¾Ç¬Ìãâ§esèÃ;bdãããäÄ;aá¤ãr;樱;樰Æepsã¡ã£ãáâ©È;bcfÒã¬ã°ã´ot;æ¶ir;櫱Ä;oã¹ã¼ìð¥rk;æ«Ã¡ã¢rime;æ´Æaipããã¤dÃ¥áÎadempstã¡ããããããngleÊ;dlqrã°ã±ã¶ããæµown»ᶻeftÄ;eâ ã¾Ã±à¤®;æightÄ;eãªãñáot;æ¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æchtã²ã½ãÄryã·ã»;ìð;äcy;ärok;ä
§Äioããxôá·headÄlrãã eftarro÷à¡ightarrow»à½à¤AHabcdfghlmoprstuwãããã¤ã°ã¼ã ã 㠣㠴ã¡ã¡ã¡«ã¢©ã£ã£ã£ªã£¶ròÏar;楣Äcrãã¢uteè»ÃºäºÃ²á
rÇ£ãª\0ãy;äve;ä
Äiyãµãºrcè»Ã»ä»;äÆabhã ã ã ròálac;ä
±aòáÄirã ã sht;楾;ìð²raveè»Ã¹ä¹Å¡ã §ã ±rÄlr㠬㠮»à¥Â»álk;æÄctã ¹ã¡É¯ã ¿\0\0ã¡rnÄ;eã¡
ã¡ær»ã¡op;æri;æ¸Äalã¡ã¡cr;ä
«è»Â¨ÍÄgp㡢㡦on;ä
³f;ìð¦Ìadhlsuá
㡸㡽á²ã¢ã¢ ownáá³arpoonÄlrã¢ã¢efôã ighô㠯iÆ;hlã¢ã¢ã¢ä
»áºon»ã¢parrows;æÆcit㢰ã£ã£É¯ã¢¶\0\0ã£rnÄ;e㢼㢽ær»㢽op;æng;ä
¯ri;æ¹cr;ìðÆdirã£ã£ã£¢ot;æ°lde;ä
©iÄ;fã°ã£¨Â»á Äam㣯㣲rò㢨lè»Ã¼ä¼angle;榧ÞABDacdeflnoprszã¤ã¤ã¤©ã¤ã¦µã¦¸ã¦½ã§ã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ ròϷarÄ;v㤦㤧櫨;æ«©asèϡÄnr㤲㤷grt;æ¦Îeknprstã£ã¥ã¥ã¥ã¥ã¥¤ã¦appáâothinÃ§áºÆhirã«â»ã¥opô⾵Ä;há·ã¥¢Ã¯ãÄiu㥩ã¥gmáã³Äbp㥲ã¦setneqÄ;q㥽ã¦ìâï¸;ìâ«ï¸setneqÄ;qã¦ã¦ìâï¸;ìâ«ï¸Ährã¦ã¦etáãiangleÄlr㦪㦯eft»थight»áy;ä²ashÂ»á¶Æelrã§ã§ã§Æ;beâ·ªã§ã§ar;æ»q;ælip;æ®Äbtã§á¨aòá©r;ìð³tré㦮suÄbp㧯㧱»à´Â»àµpf;ìð§roð໻tré㦴Äcuã¨ã¨r;ìðÄbpã¨ã¨nÄEeã¦ã¨Â»ã¥¾nÄEeã¦ã¨Â»ã¦igzag;æ¦Îcefoprs㨶㨻ã©ã©ã©ã©¡ã©ªirc;ä
µÄdiã©ã©Äbgã©
ã©ar;æ©eÄ;qáºã©;æerp;ær;ìð´pf;ìð¨Ä;eá¹ã©¦atèá¹cr;ìðà«£áãª\0ãª\0ãªãª\0\0ãªãª¨ãª«ãª¯\0\0ã«ã«\0ã«áátréár;ìðµÄAaãªãªròÏrò৶;ä¾ÄAa㪡㪤ròθrò৫aðâis;æ»Ædptá¤ãªµãª¾Äfl㪺á©;ìð©imÃ¥á²ÄAaã«ã«ròÏròà¨Äcqã«á¸r;ìðÄptáã«réáÐacefiosu㫰㫽ã¬ã¬ã¬ã¬ã¬ã¬¡cÄuyã«¶ã«»teè»Ã½ä½;äÄiyã¬ã¬rc;ä
·;änè»Â¥ä¥r;ìð¶cy;äpf;ìðªcr;ìðÄcm㬦㬩y;älè»Ã¿ä¿Ôacdefhioswããããã¤ã©ãã´ãºã®cute;ä
ºÄayããron;ä
¾;ä·ot;ä
¼Äetãã¡træáa;ä¶r;ìð·cy;ä¶grarr;æpf;ìð«cr;ìðÄjnã®
ã®;æj;æ
2'.split("").map((function(e){return e.charCodeAt(0)})))},3604:(e,t,n)=>{"use strict";var r=n(8287).hp;let{dirname:o,relative:i,resolve:a,sep:s}=n(197),{SourceMapConsumer:l,SourceMapGenerator:c}=n(1866),{pathToFileURL:u}=n(2739),d=n(1106),p=Boolean(l&&c),h=Boolean(o&&a&&i&&s);e.exports=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),r=e.root||o(e.file);!1===this.mapOpts.sourcesContent?(t=new l(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&p&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=c.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new c({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new c({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,n=1,r=1,o="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((a,s,l)=>{if(this.css+=a,s&&"end"!==l&&(i.generated.line=n,i.generated.column=r-1,s.source&&s.source.start?(i.source=this.sourcePath(s),i.original.line=s.source.start.line,i.original.column=s.source.start.column-1,this.map.addMapping(i)):(i.source=o,i.original.line=1,i.original.column=0,this.map.addMapping(i))),t=a.match(/\n/g),t?(n+=t.length,e=a.lastIndexOf("\n"),r=a.length-e):r+=a.length,s&&"start"!==l){let e=s.parent||{raws:{}};("decl"===s.type||"atrule"===s.type&&!s.nodes)&&s===e.last&&!e.raws.semicolon||(s.source&&s.source.end?(i.source=this.sourcePath(s),i.original.line=s.source.end.line,i.original.column=s.source.end.column-1,i.generated.line=n,i.generated.column=r-2,this.map.addMapping(i)):(i.source=o,i.original.line=1,i.original.column=0,i.generated.line=n,i.generated.column=r-1,this.map.addMapping(i)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?o(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=o(a(n,this.mapOpts.annotation)));let r=i(n,e);return this.memoizedPaths.set(e,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new d(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return r?r.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(u){let t=u(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===s&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}}
vendor: 4,651 bytes, line 2
2,3614:(e,t,n)=>{"use strict";let r=n(8633),o=n(9746);class i extends Error{constructor(e,t,n,r,o,a){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),r&&(this.source=r),a&&(this.plugin=a),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=r.isColorSupported);let n=e=>e,i=e=>e,a=e=>e;if(e){let{bold:e,gray:t,red:s}=r.createColors(!0);i=t=>e(s(t)),n=e=>t(e),o&&(a=e=>o(e))}let s=t.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,s.length),u=String(c).length;return s.slice(l,c).map(((e,t)=>{let r=l+1+t,o=" "+(" "+r).slice(-u)+" | ";if(r===this.line){if(e.length>160){let t=20,r=Math.max(0,this.column-t),s=Math.max(this.column+t,this.endColumn+t),l=e.slice(r,s),c=n(o.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g," ");return i(">")+n(o)+a(l)+"\n "+c+i("^")}let t=n(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+n(o)+a(e)+"\n "+t+i("^")}return" "+n(o)+a(e)})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=i,i.default=i},3628:(e,t,n)=>{"use strict";var r=n(8648),o=n(1064),i=n(7176);e.exports=r?function(e){return r(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:i?function(e){return i(e)}:null},3717:(e,t,n)=>{"use strict";let r=n(38);class o{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new r(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}}e.exports=o,o.default=o},3767:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".mobile-b-links{margin-bottom:env(safe-area-inset-bottom)}.slide-fade-enter-active{transition:all .3s ease-out}.slide-fade-leave-active{transition:all .3s cubic-bezier(1,.5,.8,1)}.slide-fade-enter-from,.slide-fade-leave-to{opacity:0;transform:translateY(-100px)}",""]);const i=o},3864:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},3878:(e,t,n)=>{"use strict";var r=n(8287).hp;let{existsSync:o,readFileSync:i}=n(9977),{dirname:a,join:s}=n(197),{SourceMapConsumer:l,SourceMapGenerator:c}=n(1866);class u{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=a(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new l(this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let n=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(n)return o=e.substr(n[0].length),r?r.from(o,"base64").toString():window.atob(o);var o;let i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=a(e),o(e))return this.mapFile=e,i(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof l)return c.fromSourceMap(t).toString();if(t instanceof c)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}
2else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=s(a(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=u,u.default=u},3900:function(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(e){return e+"º"}};return n.default.locale(r,null,!0),r}(n(4353))},3930:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(6301),o={class:"px-2"},i={class:"mt-6"};var a=n(641),s=n(2112);const l=(0,a.pM)({components:{LmNavLink:s.A}});const c=(0,n(6262).A)(l,[["render",function(e,t,n,a,s,l){var c=(0,r.resolveComponent)("Link"),u=(0,r.resolveComponent)("lm-nav-link");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",o,[(0,r.createVNode)(c,{href:e.route("manager.index")},{default:(0,r.withCtx)((function(){return t[0]||(t[0]=[(0,r.createElementVNode)("img",{src:"/img/admin/[email protected]",alt:"LeMemento Logo"},null,-1)])})),_:1},8,["href"])]),(0,r.createElementVNode)("div",i,[(0,r.createVNode)(u,{linkroute:"manager.communes",icon:"<i class='bi bi-geo-fill'></i>",title:e.__("Gemeinden")},null,8,["title"])])],64)}]])},3948:(e,t,n)=>{"use strict";var r=n(9516);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},3963:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(6301),o={class:"text-cm-primary xxxxx"},i={key:0,viewBox:"0 0 20 20",fill:"currentColor",class:"inline-flex w-5 h-5 mr-2"},a={key:0,class:"inline-flex items-center mr-2"},s={key:1},l={key:2},c={key:3};const u=(0,n(641).pM)({props:{recurringParent:{type:Number,default:null},format:{type:String,default:"relative"},date:{type:[String,Date]},showIcon:{type:Boolean,default:!0}}});const d=(0,n(6262).A)(u,[["render",function(e,t,n,u,d,p){var h=this,f=(0,r.resolveComponent)("Text");return(0,r.openBlock)(),(0,r.createBlock)(f,{color:"text-slate-400",type:"sm",as:"span",class:"inline-flex items-center whitespace-nowrap",title:e.$dayjs(this.date).locale(e.$page.props.locale).format("DD.MM.YYYY, HH:mm")},{default:(0,r.withCtx)((function(){var n,u,d;return[(0,r.createElementVNode)("span",o,[h.showIcon?((0,r.openBlock)(),(0,r.createElementBlock)("svg",i,t[0]||(t[0]=[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm.75-13a.75.75 0 00-1.5 0v5c0 .414.336.75.75.75h4a.75.75 0 000-1.5h-3.25V5z","clip-rule":"evenodd"},null,-1)]))):(0,r.createCommentVNode)("",!0)]),e.recurringParent?((0,r.openBlock)(),(0,r.createElementBlock)("span",a,t[1]||(t[1]=[(0,r.createElementVNode)("svg",{fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"inline-flex w-5 h-5 mr-2"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 12c0-1.232-.046-2.453-.138-3.662a4.006 4.006 0 00-3.7-3.7 48.678 48.678 0 00-7.324 0 4.006 4.006 0 00-3.7 3.7c-.017.22-.032.441-.046.662M19.5 12l3-3m-3 3l-3-3m-12 3c0 1.232.046 2.453.138 3.662a4.006 4.006 0 003.7 3.7 48.656 48.656 0 007.324 0 4.006 4.006 0 003.7-3.7c.017-.22.032-.441.046-.662M4.5 12l3 3m-3-3l-3 3"})],-1)]))):(0,r.createCommentVNode)("",!0),"relative"===e.format?((0,r.openBlock)(),(0,r.createElementBlock)("span",s,(0,r.toDisplayString)(e.$dayjs(null!==(n=h.date)&&void 0!==n?n:e.$dayjs().format("YYYY-MM-DD HH:mm:ss")).locale(e.$page.props.locale).fromNow()),1)):(0,r.createCommentVNode)("",!0),"nice"===e.format?((0,r.openBlock)(),(0,r.createElementBlock)("span",l,(0,r.toDisplayString)(e.$dayjs(null!==(u=h.date)&&void 0!==u?u:e.$dayjs()).locale(e.$page.props.locale).format("dddd, DD MMMM YYYY ["+e.__("à ")+"] HH:mm:ss")),1)):(0,r.createCommentVNode)("",!0),"absolute"===e.format?((0,r.openBlock)(),(0,r.createElementBlock)("span",c,(0,r.toDisplayString)(e.$dayjs(null!==(d=h.date)&&void 0!==d?d:e.$dayjs()).locale(e.$page.props.locale).format("YYYY-MM-DD HH:mm:ss")),1)):(0,r.createCommentVNode)("",!0)]})),_:1},8,["title"])}]])}
2,4039:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(1333);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},4046:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(6301),o={class:"min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-slate-100"},i={class:"w-full sm:max-w-md mt-6 px-6 py-4 bg-white shadow-md overflow-hidden sm:rounded-lg"};const a={},s=(0,n(6262).A)(a,[["render",function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("div",null,[(0,r.renderSlot)(e.$slots,"logo")]),(0,r.createElementVNode)("div",i,[(0,r.renderSlot)(e.$slots,"default")])])}]])},4128:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),a=n(430);o(n(430),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},4131:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(6301),o={class:"md:col-span-1 flex justify-between"},i={class:"px-4 sm:px-0"},a={class:"mt-1 text-sm text-gray-600"},s={class:"px-4 sm:px-0"};const l={},c=(0,n(6262).A)(l,[["render",function(e,t){var n=(0,r.resolveComponent)("Text");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createVNode)(n,{type:"h3"},{default:(0,r.withCtx)((function(){return[(0,r.renderSlot)(e.$slots,"title")]})),_:3}),(0,r.createElementVNode)("p",a,[(0,r.renderSlot)(e.$slots,"description")])]),(0,r.createElementVNode)("div",s,[(0,r.renderSlot)(e.$slots,"aside")])])}]])},4151:e=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},4181:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));
2o.push([e.id,'.mark:hover .popover[data-v-9b961684]{opacity:1;transform:translateY(calc(-100% - 5px));transition-timing-function:cubic-bezier(.165,.84,.44,1)}.popover[data-v-9b961684]{background-color:#fff;border-radius:4px;box-shadow:0 13px 27px -5px rgba(50,50,93,.25),0 8px 16px -8px rgba(0,0,0,.3),0 -6px 16px -6px rgb(0 0 0/3%);color:#32325d;font-size:13px;font-weight:500;left:-16px;line-height:1.5em;opacity:0;padding:15px 20px;pointer-events:none;position:absolute;right:-10px;top:0;transform:translateY(-100%) scale(.75);transform:translateY(calc(-100% + 10px)) scale(.75);transform-origin:20px calc(100% + 12px);transition-duration:.15s;transition-property:transform,opacity;transition-timing-function:ease-in-out;width:250px;z-index:9999}.popover[data-v-9b961684]:before{background-color:inherit;border-radius:0 0 4px 0;bottom:-6px;box-shadow:3px 3px 5px rgb(82 95 127/4%);content:"";height:12px;left:15px;position:absolute;transform:rotate(45deg);width:12px}',""]);const i=o},4198:e=>{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}
vendor: 7,457 bytes, line 2
2,4202:(e,t,n)=>{"use strict";var r=n(9516);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},4209:(e,t,n)=>{"use strict";n.d(t,{Vv:()=>md,lr:()=>Rd});var r=n(6301),o=n(2168),i=Object.defineProperty,a=(e,t,n)=>(((e,t,n)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var c=Object.prototype.hasOwnProperty;var u=function(e,t){return null!=e&&c.call(e,t)},d=Array.isArray,p="object"==typeof s&&s&&s.Object===Object&&s,h=p,f="object"==typeof self&&self&&self.Object===Object&&self,m=h||f||Function("return this")(),g=m.Symbol,v=g,y=Object.prototype,b=y.hasOwnProperty,x=y.toString,w=v?v.toStringTag:void 0;var k=function(e){var t=b.call(e,w),n=e[w];try{e[w]=void 0;var r=!0}catch(e){}var o=x.call(e);return r&&(t?e[w]=n:delete e[w]),o},_=Object.prototype.toString;var E=k,C=function(e){return _.call(e)},N=g?g.toStringTag:void 0;var S=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":N&&N in Object(e)?E(e):C(e)};var V=function(e){return null!=e&&"object"==typeof e},A=S,D=V;var M=function(e){return"symbol"==typeof e||D(e)&&"[object Symbol]"==A(e)},T=d,B=M,O=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P=/^\w*$/;var L=function(e,t){if(T(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!B(e))||(P.test(e)||!O.test(e)||null!=t&&e in Object(t))};var I=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},j=S,R=I;var $,z=function(e){if(!R(e))return!1;var t=j(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},F=m["__core-js_shared__"],H=($=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+$:"";var U=function(e){return!!H&&H in e},W=Function.prototype.toString;var q=function(e){if(null!=e){try{return W.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Y=z,G=U,K=I,J=q,X=/^\[object .+?Constructor\]$/,Z=Function.prototype,Q=Object.prototype,ee=Z.toString,te=Q.hasOwnProperty,ne=RegExp("^"+ee.call(te).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var re=function(e){return!(!K(e)||G(e))&&(Y(e)?ne:X).test(J(e))},oe=function(e,t){return null==e?void 0:e[t]};var ie=function(e,t){var n=oe(e,t);return re(n)?n:void 0},ae=ie(Object,"create"),se=ae;var le=function(){this.__data__=se?se(null):{},this.size=0};var ce=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ue=ae,de=Object.prototype.hasOwnProperty;var pe=function(e){var t=this.__data__;if(ue){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return de.call(t,e)?t[e]:void 0},he=ae,fe=Object.prototype.hasOwnProperty;var me=ae;var ge=le,ve=ce,ye=pe,be=function(e){var t=this.__data__;return he?void 0!==t[e]:fe.call(t,e)},xe=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=me&&void 0===t?"__lodash_hash_undefined__":t,this};function we(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}we.prototype.clear=ge,we.prototype.delete=ve,we.prototype.get=ye,we.prototype.has=be,we.prototype.set=xe;var ke=we;var _e=function(){this.__data__=[],this.size=0};var Ee=function(e,t){return e===t||e!=e&&t!=t},Ce=Ee;var Ne=function(e,t){for(var n=e.length;n--;)if(Ce(e[n][0],t))return n;return-1},Se=Ne,Ve=Array.prototype.splice;var Ae=Ne;var De=Ne;var Me=Ne;var Te=_e,Be=function(e){var t=this.__data__,n=Se(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ve.call(t,n,1),--this.size,!0)},Oe=function(e){var t=this.__data__,n=Ae(t,e);return n<0?void 0:t[n][1]},Pe=function(e){return De(this.__data__,e)>-1},Le=function(e,t){var n=this.__data__,r=Me(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Ie(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ie.prototype.clear=Te,Ie.prototype.delete=Be,Ie.prototype.get=Oe,Ie.prototype.has=Pe,Ie.prototype.set=Le;var je=Ie,Re=ie(m,"Map"),$e=ke,ze=je,Fe=Re;var He=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ue=function(e,t){var n=e.__data__;return He(t)?n["string"==typeof t?"string":"hash"]:n.map},We=Ue;var qe=Ue;var Ye=Ue;var Ge=Ue;var Ke=function(){this.size=0,this.__data__={hash:new $e,map:new(Fe||ze),string:new $e}},Je=function(e){var t=We(this,e).delete(e);return this.size-=t?1:0,t},Xe=function(e){return qe(this,e).get(e)},Ze=function(e){return Ye(this,e).has(e)},Qe=function(e,t){var n=Ge(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function et(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}et.prototype.clear=Ke,et.prototype.delete=Je,et.prototype.get=Xe,et.prototype.has=Ze,et.prototype.set=Qe;var tt=et,nt=tt;function rt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(rt.Cache||nt),n}rt.Cache=nt;var ot=rt;var it=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,at=/\\(\\)?/g,st=function(e){var t=ot(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(it,(function(e,n,r,o){t.push(r?o.replace(at,"$1"):n||e)})),t}));var lt=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},ct=d,ut=M,dt=g?g.prototype:void 0,pt=dt?dt.toString:void 0;var ht=function e(t){if("string"==typeof t)return t;if(ct(t))return lt(t,e)+"";if(ut(t))return pt?pt.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},ft=ht;var mt=d,gt=L,vt=st,yt=function(e){return null==e?"":ft(e)};var bt=function(e,t){return mt(e)?e:gt(e,t)?[e]:vt(yt(e))},xt=S,wt=V;var kt=function(e){return wt(e)&&"[object Arguments]"==xt(e)},_t=V,Et=Object.prototype,Ct=Et.hasOwnProperty,Nt=Et.propertyIsEnumerable,St=kt(function(){return arguments}())?kt:function(e){return _t(e)&&Ct.call(e,"callee")&&!Nt.call(e,"callee")},Vt=/^(?:0|[1-9]\d*)$/;var At=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Vt.test(e))&&e>-1&&e%1==0&&e<t};var Dt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Mt=M;var Tt=function(e){if("string"==typeof e||Mt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Bt=bt,Ot=St,Pt=d,Lt=At,It=Dt,jt=Tt;var Rt=function(e,t,n){for(var r=-1,o=(t=Bt(t,e)).length,i=!1;++r<o;){var a=jt(t[r]);
2if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&It(o)&&Lt(a,o)&&(Pt(e)||Ot(e))},$t=u,zt=Rt;var Ft=function(e,t){return null!=e&&zt(e,t,$t)},Ht=S,Ut=V;var Wt=function(e){return Ut(e)&&"[object Date]"==Ht(e)};var qt,Yt,Gt,Kt,Jt,Xt,Zt,Qt=function(e){return function(t){return e(t)}},en={};qt={get exports(){return en},set exports(e){en=e}},Gt=p,Kt=(Yt=en)&&!Yt.nodeType&&Yt,Jt=Kt&&qt&&!qt.nodeType&&qt,Xt=Jt&&Jt.exports===Kt&&Gt.process,Zt=function(){try{var e=Jt&&Jt.require&&Jt.require("util").types;return e||Xt&&Xt.binding&&Xt.binding("util")}catch(e){}}(),qt.exports=Zt;var tn=Wt,nn=Qt,rn=en&&en.isDate,on=rn?nn(rn):tn,an=S,sn=d,ln=V;var cn=function(e){return"string"==typeof e||!sn(e)&&ln(e)&&"[object String]"==an(e)};var un=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},dn=je;var pn=je,hn=Re,fn=tt;var mn=je,gn=function(){this.__data__=new dn,this.size=0},vn=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},yn=function(e){return this.__data__.get(e)},bn=function(e){return this.__data__.has(e)},xn=function(e,t){var n=this.__data__;if(n instanceof pn){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new fn(r)}return n.set(e,t),this.size=n.size,this};function wn(e){var t=this.__data__=new mn(e);this.size=t.size}wn.prototype.clear=gn,wn.prototype.delete=vn,wn.prototype.get=yn,wn.prototype.has=bn,wn.prototype.set=xn;var kn=wn;var _n=tt,En=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Cn=function(e){return this.__data__.has(e)};function Nn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new _n;++t<n;)this.add(e[t])}Nn.prototype.add=Nn.prototype.push=En,Nn.prototype.has=Cn;var Sn=Nn,Vn=un,An=function(e,t){return e.has(t)};var Dn=function(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,h=2&n?new Sn:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var f=e[d],m=t[d];if(r)var g=a?r(m,f,d,t,e,i):r(f,m,d,e,t,i);if(void 0!==g){if(g)continue;p=!1;break}if(h){if(!Vn(t,(function(e,t){if(!An(h,t)&&(f===e||o(f,e,n,r,i)))return h.push(t)}))){p=!1;break}}else if(f!==m&&!o(f,m,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p},Mn=m.Uint8Array;var Tn=Mn,Bn=Ee,On=Dn,Pn=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},Ln=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},In=g?g.prototype:void 0,jn=In?In.valueOf:void 0;var Rn=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Tn(e),new Tn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Bn(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Pn;case"[object Set]":var l=1&r;if(s||(s=Ln),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=On(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(jn)return jn.call(e)==jn.call(t)}return!1};var $n=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},zn=d;var Fn=function(e,t,n){var r=t(e);return zn(e)?r:$n(r,n(e))};var Hn=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i},Un=function(){return[]},Wn=Object.prototype.propertyIsEnumerable,qn=Object.getOwnPropertySymbols,Yn=qn?function(e){return null==e?[]:(e=Object(e),Hn(qn(e),(function(t){return Wn.call(e,t)})))}:Un;var Gn=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},Kn={};var Jn=function(){return!1};!function(e,t){var n=m,r=Jn,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}({get exports(){return Kn},set exports(e){Kn=e}},Kn);var Xn=S,Zn=Dt,Qn=V,er={};
vendor: 3,299 bytes, line 2
2er["[object Float32Array]"]=er["[object Float64Array]"]=er["[object Int8Array]"]=er["[object Int16Array]"]=er["[object Int32Array]"]=er["[object Uint8Array]"]=er["[object Uint8ClampedArray]"]=er["[object Uint16Array]"]=er["[object Uint32Array]"]=!0,er["[object Arguments]"]=er["[object Array]"]=er["[object ArrayBuffer]"]=er["[object Boolean]"]=er["[object DataView]"]=er["[object Date]"]=er["[object Error]"]=er["[object Function]"]=er["[object Map]"]=er["[object Number]"]=er["[object Object]"]=er["[object RegExp]"]=er["[object Set]"]=er["[object String]"]=er["[object WeakMap]"]=!1;var tr=function(e){return Qn(e)&&Zn(e.length)&&!!er[Xn(e)]},nr=Qt,rr=en&&en.isTypedArray,or=rr?nr(rr):tr,ir=Gn,ar=St,sr=d,lr=Kn,cr=At,ur=or,dr=Object.prototype.hasOwnProperty;var pr=function(e,t){var n=sr(e),r=!n&&ar(e),o=!n&&!r&&lr(e),i=!n&&!r&&!o&&ur(e),a=n||r||o||i,s=a?ir(e.length,String):[],l=s.length;for(var c in e)!t&&!dr.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||cr(c,l))||s.push(c);return s},hr=Object.prototype;var fr=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||hr)};var mr=function(e,t){return function(n){return e(t(n))}},gr=mr(Object.keys,Object),vr=fr,yr=gr,br=Object.prototype.hasOwnProperty;var xr=z,wr=Dt;var kr=function(e){return null!=e&&wr(e.length)&&!xr(e)},_r=pr,Er=function(e){if(!vr(e))return yr(e);var t=[];for(var n in Object(e))br.call(e,n)&&"constructor"!=n&&t.push(n);return t},Cr=kr;var Nr=function(e){return Cr(e)?_r(e):Er(e)},Sr=Fn,Vr=Yn,Ar=Nr;var Dr=function(e){return Sr(e,Ar,Vr)},Mr=Object.prototype.hasOwnProperty;var Tr=function(e,t,n,r,o,i){var a=1&n,s=Dr(e),l=s.length;if(l!=Dr(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Mr.call(t,u)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var h=!0;i.set(e,t),i.set(t,e);for(var f=a;++c<l;){var m=e[u=s[c]],g=t[u];if(r)var v=a?r(g,m,u,t,e,i):r(m,g,u,e,t,i);if(!(void 0===v?m===g||o(m,g,n,r,i):v)){h=!1;break}f||(f="constructor"==u)}if(h&&!f){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(h=!1)}return i.delete(e),i.delete(t),h},Br=ie(m,"DataView"),Or=Re,Pr=ie(m,"Promise"),Lr=ie(m,"Set"),Ir=ie(m,"WeakMap"),jr=S,Rr=q,$r="[object Map]",zr="[object Promise]",Fr="[object Set]",Hr="[object WeakMap]",Ur="[object DataView]",Wr=Rr(Br),qr=Rr(Or),Yr=Rr(Pr),Gr=Rr(Lr),Kr=Rr(Ir),Jr=jr;(Br&&Jr(new Br(new ArrayBuffer(1)))!=Ur||Or&&Jr(new Or)!=$r||Pr&&Jr(Pr.resolve())!=zr||Lr&&Jr(new Lr)!=Fr||Ir&&Jr(new Ir)!=Hr)&&(Jr=function(e){var t=jr(e),n="[object Object]"==t?e.constructor:void 0,r=n?Rr(n):"";if(r)switch(r){case Wr:return Ur;case qr:return $r;case Yr:return zr;case Gr:return Fr;case Kr:return Hr}return t});var Xr=kn,Zr=Dn,Qr=Rn,eo=Tr,to=Jr,no=d,ro=Kn,oo=or,io="[object Arguments]",ao="[object Array]",so="[object Object]",lo=Object.prototype.hasOwnProperty;var co=function(e,t,n,r,o,i){var a=no(e),s=no(t),l=a?ao:to(e),c=s?ao:to(t),u=(l=l==io?so:l)==so,d=(c=c==io?so:c)==so,p=l==c;if(p&&ro(e)){if(!ro(t))return!1;a=!0,u=!1}if(p&&!u)return i||(i=new Xr),a||oo(e)?Zr(e,t,n,r,o,i):Qr(e,t,l,n,r,o,i);if(!(1&n)){var h=u&&lo.call(e,"__wrapped__"),f=d&&lo.call(t,"__wrapped__");
vendor: 4,139 bytes, line 2
2if(h||f){var m=h?e.value():e,g=f?t.value():t;return i||(i=new Xr),o(m,g,n,r,i)}}return!!p&&(i||(i=new Xr),eo(e,t,n,r,o,i))},uo=V;var po=function e(t,n,r,o,i){return t===n||(null==t||null==n||!uo(t)&&!uo(n)?t!=t&&n!=n:co(t,n,r,o,e,i))},ho=kn,fo=po;var mo=I;var go=function(e){return e==e&&!mo(e)},vo=go,yo=Nr;var bo=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},xo=function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var l=(s=n[o])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new ho;if(r)var p=r(c,u,l,e,t,d);if(!(void 0===p?fo(u,c,3,r,d):p))return!1}}return!0},wo=function(e){for(var t=yo(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,vo(o)]}return t},ko=bo;var _o=bt,Eo=Tt;var Co=function(e,t){for(var n=0,r=(t=_o(t,e)).length;null!=e&&n<r;)e=e[Eo(t[n++])];return n&&n==r?e:void 0},No=Co;var So=function(e,t,n){var r=null==e?void 0:No(e,t);return void 0===r?n:r};var Vo=function(e,t){return null!=e&&t in Object(e)},Ao=Rt;var Do=po,Mo=So,To=function(e,t){return null!=e&&Ao(e,t,Vo)},Bo=L,Oo=go,Po=bo,Lo=Tt;var Io=function(e){return e};var jo=Co;var Ro=function(e){return function(t){return null==t?void 0:t[e]}},$o=function(e){return function(t){return jo(t,e)}},zo=L,Fo=Tt;var Ho=function(e){var t=wo(e);return 1==t.length&&t[0][2]?ko(t[0][0],t[0][1]):function(n){return n===e||xo(n,e,t)}},Uo=function(e,t){return Bo(e)&&Oo(t)?Po(Lo(e),t):function(n){var r=Mo(n,e);return void 0===r&&r===t?To(n,e):Do(t,r,3)}},Wo=Io,qo=d,Yo=function(e){return zo(e)?Ro(Fo(e)):$o(e)};var Go=function(e){return"function"==typeof e?e:null==e?Wo:"object"==typeof e?qo(e)?Uo(e[0],e[1]):Ho(e):Yo(e)};var Ko=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}(),Jo=Ko,Xo=Nr;var Zo=function(e,t){return e&&Jo(e,t,Xo)},Qo=kr;var ei=function(e,t){return function(n,r){if(null==n)return n;if(!Qo(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}(Zo);var ti=Ee,ni=kr,ri=At,oi=I;var ii=function(e,t,n){if(!oi(n))return!1;var r=typeof t;return!!("number"==r?ni(n)&&ri(t,n.length):"string"==r&&t in n)&&ti(n[t],e)},ai=un,si=Go,li=function(e,t){var n;return ei(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},ci=d,ui=ii;var di=function(e,t,n){var r=ci(e)?ai:li;return n&&ui(e,t,n)&&(t=void 0),r(e,si(t))},pi=S,hi=V;var fi=function(e){return!0===e||!1===e||hi(e)&&"[object Boolean]"==pi(e)},mi=S,gi=V;var vi=function(e){return"number"==typeof e||gi(e)&&"[object Number]"==mi(e)},yi=ie,bi=function(){try{var e=yi(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),xi=bi;var wi=function(e,t,n){"__proto__"==t&&xi?xi(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},ki=wi,_i=Ee,Ei=Object.prototype.hasOwnProperty;var Ci=function(e,t,n){var r=e[t];Ei.call(e,t)&&_i(r,n)&&(void 0!==n||t in e)||ki(e,t,n)},Ni=wi,Si=Zo,Vi=Go;var Ai=function(e,t){var n={};return t=Vi(t),Si(e,(function(e,r,o){Ni(n,r,t(e,r,o))})),n};var Di=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Mi=Di,Ti=Math.max;var Bi=function(e,t,n){return t=Ti(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Ti(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),Mi(e,this,s)}};var Oi=function(e){return function(){return e}},Pi=bi,Li=Pi?function(e,t){return Pi(e,"toString",{configurable:!0,enumerable:!1,value:Oi(t),writable:!0})}:Io,Ii=Date.now;var ji=function(e){var t=0,n=0;return function(){var r=Ii(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Li),Ri=Io,$i=Bi,zi=ji;var Fi=function(e,t){return zi($i(e,t,Ri),e+"")};var Hi=I,Ui=fr,Wi=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},qi=Object.prototype.hasOwnProperty;var Yi=pr,Gi=function(e){if(!Hi(e))return Wi(e);var t=Ui(e),n=[];
2for(var r in e)("constructor"!=r||!t&&qi.call(e,r))&&n.push(r);return n},Ki=kr;var Ji=function(e){return Ki(e)?Yi(e,!0):Gi(e)},Xi=Fi,Zi=Ee,Qi=ii,ea=Ji,ta=Object.prototype,na=ta.hasOwnProperty,ra=Xi((function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&Qi(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=ea(i),s=-1,l=a.length;++s<l;){var c=a[s],u=e[c];(void 0===u||Zi(u,ta[c])&&!na.call(e,c))&&(e[c]=i[c])}return e})),oa=wi,ia=Ee;var aa=function(e,t,n){(void 0!==n&&!ia(e[t],n)||void 0===n&&!(t in e))&&oa(e,t,n)},sa={};!function(e,t){var n=m,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}({get exports(){return sa},set exports(e){sa=e}},sa);var la=Mn;var ca=function(e){var t=new e.constructor(e.byteLength);return new la(t).set(new la(e)),t};var ua=function(e,t){var n=t?ca(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var da=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},pa=I,ha=Object.create,fa=function(){function e(){}return function(t){if(!pa(t))return{};if(ha)return ha(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),ma=mr(Object.getPrototypeOf,Object),ga=fa,va=ma,ya=fr;var ba=function(e){return"function"!=typeof e.constructor||ya(e)?{}:ga(va(e))},xa=kr,wa=V;var ka=function(e){return wa(e)&&xa(e)},_a=S,Ea=ma,Ca=V,Na=Function.prototype,Sa=Object.prototype,Va=Na.toString,Aa=Sa.hasOwnProperty,Da=Va.call(Object);var Ma=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Ta=Ci,Ba=wi;var Oa=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?Ba(n,s,l):Ta(n,s,l)}return n},Pa=Ji;var La=aa,Ia=sa,ja=ua,Ra=da,$a=ba,za=St,Fa=d,Ha=ka,Ua=Kn,Wa=z,qa=I,Ya=function(e){if(!Ca(e)||"[object Object]"!=_a(e))return!1;var t=Ea(e);if(null===t)return!0;var n=Aa.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Va.call(n)==Da},Ga=or,Ka=Ma,Ja=function(e){return Oa(e,Pa(e))};var Xa=kn,Za=aa,Qa=Ko,es=function(e,t,n,r,o,i,a){var s=Ka(e,n),l=Ka(t,n),c=a.get(l);if(c)La(e,n,c);else{var u=i?i(s,l,n+"",e,t,a):void 0,d=void 0===u;if(d){var p=Fa(l),h=!p&&Ua(l),f=!p&&!h&&Ga(l);u=l,p||h||f?Fa(s)?u=s:Ha(s)?u=Ra(s):h?(d=!1,u=Ia(l,!0)):f?(d=!1,u=ja(l,!0)):u=[]:Ya(l)||za(l)?(u=s,za(s)?u=Ja(s):qa(s)&&!Wa(s)||(u=$a(l))):d=!1}d&&(a.set(l,u),o(u,l,r,i,a),a.delete(l)),La(e,n,u)}},ts=I,ns=Ji,rs=Ma;var os=function e(t,n,r,o,i){t!==n&&Qa(n,(function(a,s){if(i||(i=new Xa),ts(a))es(t,n,s,r,e,o,i);else{var l=o?o(rs(t,s),a,s+"",t,n,i):void 0;void 0===l&&(l=a),Za(t,s,l)}}),ns)},is=os,as=I;var ss=function e(t,n,r,o,i,a){return as(t)&&as(n)&&(a.set(n,t),is(t,n,void 0,e,a),a.delete(n)),t},ls=Fi,cs=ii;var us=os,ds=function(e){return ls((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&cs(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t}))}((function(e,t,n,r){us(e,t,n,r)})),ps=Di,hs=ss,fs=ds,ms=Fi((function(e){return e.push(void 0,hs),ps(fs,void 0,e)}));var gs=function(e){return e&&e.length?e[0]:void 0};var vs=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};const ys=e=>on(e)&&!isNaN(e.getTime()),bs=e=>"Object"===(e=>Object.prototype.toString.call(e).slice(8,-1))(e),xs=Ft,ws=(e,t)=>di(t,(t=>Ft(e,t))),ks=(e,t,n="0")=>{for(e=null!=e?String(e):"",t=t||2;e.length<t;)e=`${n}${e}`;return e},_s=e=>Array.isArray(e),Es=e=>_s(e)&&e.length>0,Cs=e=>null==e?null:document&&cn(e)?document.querySelector(e):e.$el??e,Ns=(e,t,n,r=void 0)=>{e.removeEventListener(t,n,r)},Ss=(e,t,n,r=void 0)=>(e.addEventListener(t,n,r),()=>Ns(e,t,n,r)),Vs=(e,t)=>!!e&&!!t&&(e===t||e.contains(t)),As=(e,t)=>{" "!==e.key&&"Enter"!==e.key||(t(e),e.preventDefault())},Ds=(e,...t)=>{const n={};let r;for(r in e)t.includes(r)||(n[r]=e[r]);return n},Ms=(e,t)=>{const n={};return t.forEach((t=>{t in e&&(n[t]=e[t])})),n};var Ts={};
2!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);if(isNaN(t))return t;return t<0?Math.ceil(t):Math.floor(t)},e.exports=t.default}({get exports(){return Ts},set exports(e){Ts=e}},Ts);const Bs=l(Ts);var Os={};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()},e.exports=t.default}({get exports(){return Os},set exports(e){Os=e}},Os);const Ps=l(Os);function Ls(e,t){var n=function(e){if(!js[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"â06â/â25â/â2014â â00â:â00â:â00"===t;js[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return js[e]}(t);return n.formatToParts?function(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o<n.length;o++){var i=Is[n[o].type];i>=0&&(r[i]=parseInt(n[o].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(n,e):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}(n,e)}var Is={year:0,month:1,day:2,hour:3,minute:4,second:5};var js={};function Rs(e,t,n,r,o,i,a){var s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,o,i,a),s}var $s=36e5,zs={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function Fs(e,t,n){var r,o,i;if(!e)return 0;if(r=zs.timezoneZ.exec(e))return 0;if(r=zs.timezoneHH.exec(e))return Us(i=parseInt(r[1],10))?-i*$s:NaN;if(r=zs.timezoneHHMM.exec(e)){i=parseInt(r[1],10);var a=parseInt(r[2],10);return Us(i,a)?(o=Math.abs(i)*$s+6e4*a,i>0?-o:o):NaN}if(function(e){if(Ws[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),Ws[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var s=n?t:function(e){return Rs(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),l=Hs(s,e),c=n?l:function(e,t,n){var r=e.getTime(),o=r-t,i=Hs(new Date(o),n);if(t===i)return t;o-=i-t;var a=Hs(new Date(o),n);if(i===a)return i;return Math.max(i,a)}(t,l,e);return-c}return NaN}function Hs(e,t){var n=Ls(e,t),r=Rs(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),i=o%1e3;return r-(o-=i>=0?i:1e3+i)}function Us(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var Ws={};var qs=36e5,Ys=6e4,Gs={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function Ks(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},r=null==n.additionalDigits?2:Bs(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o=function(e){var t,n={},r=Gs.dateTimePattern.exec(e);r?(n.date=r[1],t=r[3]):(r=Gs.datePattern.exec(e))?(n.date=r[1],t=r[2]):(n.date=null,t=e);
2if(t){var o=Gs.timeZone.exec(t);o?(n.time=t.replace(o[1],""),n.timeZone=o[1].trim()):n.time=t}return n}(e),i=function(e,t){var n,r=Gs.YYY[t],o=Gs.YYYYY[t];if(n=Gs.YYYY.exec(e)||o.exec(e)){var i=n[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(n=Gs.YY.exec(e)||r.exec(e)){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}(o.date,r),a=i.year,s=function(e,t){if(null===t)return null;var n,r,o,i;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=Gs.MM.exec(e))return r=new Date(0),el(t,o=parseInt(n[1],10)-1)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=Gs.DDD.exec(e)){r=new Date(0);var a=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=Qs(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=Gs.MMDD.exec(e)){r=new Date(0),o=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return el(t,o,s)?(r.setUTCFullYear(t,o,s),r):new Date(NaN)}if(n=Gs.Www.exec(e))return tl(t,i=parseInt(n[1],10)-1)?Js(t,i):new Date(NaN);if(n=Gs.WwwD.exec(e)){i=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return tl(t,i,l)?Js(t,i,l):new Date(NaN)}return null}(i.restDateString,a);if(isNaN(s))return new Date(NaN);if(s){var l,c=s.getTime(),u=0;if(o.time&&(u=function(e){var t,n,r;if(t=Gs.HH.exec(e))return nl(n=parseFloat(t[1].replace(",",".")))?n%24*qs:NaN;if(t=Gs.HHMM.exec(e))return nl(n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")))?n%24*qs+r*Ys:NaN;if(t=Gs.HHMMSS.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return nl(n,r,o)?n%24*qs+r*Ys+1e3*o:NaN}return null}(o.time),isNaN(u)))return new Date(NaN);if(o.timeZone||n.timeZone){if(l=Fs(o.timeZone||n.timeZone,new Date(c+u)),isNaN(l))return new Date(NaN)}else l=Ps(new Date(c+u)),l=Ps(new Date(c+u+l));return new Date(c+u+l)}return new Date(NaN)}function Js(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}var Xs=[31,28,31,30,31,30,31,31,30,31,30,31],Zs=[31,29,31,30,31,30,31,31,30,31,30,31];function Qs(e){return e%400==0||e%4==0&&e%100!=0}function el(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var r=Qs(e);if(r&&n>Zs[t])return!1;if(!r&&n>Xs[t])return!1}return!0}function tl(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function nl(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}function rl(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function ol(e){return(ol="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function il(e){rl(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===ol(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function al(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var sl={};function ll(){return sl}function cl(e,t){var n,r,o,i,a,s,l,c;rl(1,arguments);var u=ll(),d=al(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=il(e),h=p.getDay(),f=(h<d?7:0)+h-d;return p.setDate(p.getDate()-f),p.setHours(0,0,0,0),p}function ul(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function dl(e,t){return rl(1,arguments),function(e,t,n){rl(2,arguments);var r=cl(e,n),o=cl(t,n),i=r.getTime()-ul(r),a=o.getTime()-ul(o);return Math.round((i-a)/6048e5)}(function(e){rl(1,arguments);var t=il(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}(e),function(e){rl(1,arguments);var t=il(e);return t.setDate(1),t.setHours(0,0,0,0),t}(e),t)+1}function pl(e,t){var n,r,o,i,a,s,l,c;rl(1,arguments);var u=ll(),d=al(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),p=function(e,t){var n,r,o,i,a,s,l,c;rl(1,arguments);var u=il(e),d=u.getFullYear(),p=ll(),h=al(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==r?r:null===(l=p.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setFullYear(d+1,0,h),f.setHours(0,0,0,0);var m=cl(f,t),g=new Date(0);g.setFullYear(d,0,h),g.setHours(0,0,0,0);var v=cl(g,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}(e,t),h=new Date(0);return h.setFullYear(p,0,d),h.setHours(0,0,0,0),cl(h,t)}function hl(e,t){rl(1,arguments);var n=il(e),r=cl(n,t).getTime()-pl(n,t).getTime();return Math.round(r/6048e5)+1}function fl(e){return rl(1,arguments),cl(e,{weekStartsOn:1}
2)}function ml(e){rl(1,arguments);var t=function(e){rl(1,arguments);var t=il(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var o=fl(r),i=new Date(0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);var a=fl(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),fl(n)}function gl(e){rl(1,arguments);var t=il(e),n=fl(t).getTime()-ml(t).getTime();return Math.round(n/6048e5)+1}function vl(e,t){rl(2,arguments);var n=il(e),r=al(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function yl(e,t){rl(2,arguments);var n=il(e),r=al(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function bl(e,t){return rl(2,arguments),yl(e,12*al(t))}const xl={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function wl(e,t){return`${t}.${ks(e,2)}`}function kl(e,t,n){return Ms(n.getDateParts(n.toDate(e)),xl[t])}function _l({day:e,week:t,month:n,year:r},o,i,a){if("daily"===i&&e){const t=vl(new Date(r,n-1,e),o);return{day:t.getDate(),month:t.getMonth()+1,year:t.getFullYear()}}if("weekly"===i&&t){const e=vl(a.getMonthParts(n,r).firstDayOfMonth,7*(t-1+o)),i=a.getDateParts(e);return{week:i.week,month:i.month,year:i.year}}{const e=yl(new Date(r,n-1,1),o);return{month:e.getMonth()+1,year:e.getFullYear()}}}function El(e){return null!=e&&null!=e.month&&null!=e.year}function Cl(e,t){return!(!El(e)||!El(t))&&(e.year!==t.year?e.year<t.year:e.month&&t.month&&e.month!==t.month?e.month<t.month:e.week&&t.week&&e.week!==t.week?e.week<t.week:!(!e.day||!t.day||e.day===t.day)&&e.day<t.day)}function Nl(e,t){return!(!El(e)||!El(t))&&(e.year!==t.year?e.year>t.year:e.month&&t.month&&e.month!==t.month?e.month>t.month:e.week&&t.week&&e.week!==t.week?e.week>t.week:!(!e.day||!t.day||e.day===t.day)&&e.day>t.day)}function Sl(e){const{day:t,week:n,month:r,year:o}=e;let i=`${o}-${ks(r,2)}`;return n&&(i=`${i}-w${n}`),t&&(i=`${i}-${ks(t,2)}`),i}function Vl(e,t){const{month:n,year:r,showWeeknumbers:o,showIsoWeeknumbers:i}=e,a=new Date(r,n-1,15),s=t.getMonthParts(n,r),l=t.getPrevMonthParts(n,r),c=t.getNextMonthParts(n,r),u=function({monthComps:e,prevMonthComps:t,nextMonthComps:n},r){const o=[],{firstDayOfWeek:i,firstWeekday:a,isoWeeknumbers:s,weeknumbers:l,numDays:c,numWeeks:u}=e,d=a+(a<i?oc:0)-i;let p=!0,h=!1,f=!1,m=0;const g=new Intl.DateTimeFormat(r.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let v=t.numDays-d+1,y=t.numDays-v+1,b=Math.floor((v-1)/oc+1),x=1,w=t.numWeeks,k=1,_=t.month,E=t.year;const C=new Date,N=C.getDate(),S=C.getMonth()+1,V=C.getFullYear();for(let t=1;t<=ic;t++){for(let d=1,C=i;d<=oc;d++,C+=C===oc?1-oc:1){p&&C===a&&(v=1,y=e.numDays,b=Math.floor((v-1)/oc+1),x=Math.floor((c-v)/oc+1),w=1,k=u,_=e.month,E=e.year,p=!1,h=!0);const i=r.getDateFromParams(E,_,v,0,0,0,0),A=r.getDateFromParams(E,_,v,12,0,0,0),D=r.getDateFromParams(E,_,v,23,59,59,999),M=i,T=`${ks(E,4)}-${ks(_,2)}-${ks(v,2)}`,B=d,O=oc-d,P=l[t-1],L=s[t-1],I=v===N&&_===S&&E===V,j=h&&1===v,R=h&&v===c,$=1===t,z=t===u,F=1===d,H=d===oc,U=Ec(E,_,v);o.push({locale:r,id:T,position:++m,label:v.toString(),ariaLabel:g.format(new Date(E,_-1,v)),day:v,dayFromEnd:y,weekday:C,weekdayPosition:B,weekdayPositionFromEnd:O,weekdayOrdinal:b,weekdayOrdinalFromEnd:x,week:w,weekFromEnd:k,weekPosition:t,weeknumber:P,isoWeeknumber:L,month:_,year:E,date:M,startDate:i,endDate:D,noonDate:A,dayIndex:U,isToday:I,isFirstDay:j,isLastDay:R,isDisabled:!h,isFocusable:!h,isFocused:!1,inMonth:h,inPrevMonth:p,inNextMonth:f,onTop:$,onBottom:z,onLeft:F,onRight:H,classes:[`id-${T}`,`day-${v}`,`day-from-end-${y}`,`weekday-${C}`,`weekday-position-${B}`,`weekday-ordinal-${b}`,`weekday-ordinal-from-end-${x}`,`week-${w}`,`week-from-end-${k}`,{"is-today":I,"is-first-day":j,"is-last-day":R,"in-month":h,"in-prev-month":p,"in-next-month":f,"on-top":$,"on-bottom":z,"on-left":F,"on-right":H}]}),h&&R?(h=!1,f=!0,v=1,y=c,b=1,x=Math.floor((c-v)/oc+1),w=1,k=n.numWeeks,_=n.month,E=n.year):(v++,y--,b=Math.floor((v-1)/oc+1),x=Math.floor((c-v)/oc+1))}w++,k--}return o}({monthComps:s,prevMonthComps:l,nextMonthComps:c},t),d=function(e,t,n,r){const o=e.reduce(((e,r,o)=>{const i=Math.floor(o/7);let a=e[i];return a||(a={id:`week-${i+1}`,title:"",week:r.week,weekPosition:r.weekPosition,weeknumber:r.weeknumber,isoWeeknumber:r.isoWeeknumber,weeknumberDis
2play:t?r.weeknumber:n?r.isoWeeknumber:void 0,days:[]},e[i]=a),a.days.push(r),e}),Array(e.length/oc));return o.forEach((e=>{const t=e.days[0],n=e.days[e.days.length-1];t.month===n.month?e.title=`${r.formatDate(t.date,"MMMM YYYY")}`:t.year===n.year?e.title=`${r.formatDate(t.date,"MMM")} - ${r.formatDate(n.date,"MMM YYYY")}`:e.title=`${r.formatDate(t.date,"MMM YYYY")} - ${r.formatDate(n.date,"MMM YYYY")}`})),o}(u,o,i,t),p=function(e,t){return e.days.map((e=>({label:t.formatDate(e.date,t.masks.weekdays),weekday:e.weekday})))}(d[0],t);return{id:Sl(e),month:n,year:r,monthTitle:t.formatDate(a,t.masks.title),shortMonthLabel:t.formatDate(a,"MMM"),monthLabel:t.formatDate(a,"MMMM"),shortYearLabel:r.toString().substring(2),yearLabel:r.toString(),monthComps:s,prevMonthComps:l,nextMonthComps:c,days:u,weeks:d,weekdays:p}}class Al{constructor(e,t,n){a(this,"keys",[]),a(this,"store",{}),this.size=e,this.createKey=t,this.createItem=n}get(...e){const t=this.createKey(...e);return this.store[t]}getOrSet(...e){const t=this.createKey(...e);if(this.store[t])return this.store[t];const n=this.createItem(...e);if(this.keys.length>=this.size){const e=this.keys.shift();null!=e&&delete this.store[e]}return this.keys.push(t),this.store[t]=n,n}}class Dl{constructor(e,t=new Il){var n;a(this,"order"),a(this,"locale"),a(this,"start",null),a(this,"end",null),a(this,"repeat",null),this.locale=t;const{start:r,end:o,span:i,order:s,repeat:l}=e;ys(r)&&(this.start=t.getDateParts(r)),ys(o)?this.end=t.getDateParts(o):null!=this.start&&i&&(this.end=t.getDateParts(vl(this.start.date,i-1))),this.order=s??0,l&&(this.repeat=new Xl({from:null==(n=this.start)?void 0:n.date,...l},{locale:this.locale}))}static fromMany(e,t){return(_s(e)?e:[e]).filter((e=>e)).map((e=>Dl.from(e,t)))}static from(e,t){if(e instanceof Dl)return e;const n={start:null,end:null};return null!=e&&(_s(e)?(n.start=e[0]??null,n.end=e[1]??null):bs(e)?Object.assign(n,e):(n.start=e,n.end=e)),null!=n.start&&(n.start=new Date(n.start)),null!=n.end&&(n.end=new Date(n.end)),new Dl(n,t)}get opts(){const{order:e,locale:t}=this;return{order:e,locale:t}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:e,end:t}=this;return e&&t&&e.year===t.year&&e.month===t.month&&e.day===t.day}get isMultiDay(){return!this.isSingleDay}get daySpan(){return null==this.start||null==this.end?this.hasRepeat?1:1/0:this.end.dayIndex-this.start.dayIndex}startsOnDay(e){var t,n;return(null==(t=this.start)?void 0:t.dayIndex)===e.dayIndex||!!(null==(n=this.repeat)?void 0:n.passes(e))}intersectsDay(e){return this.intersectsDayRange(e,e)}intersectsRange(e){var t,n;return this.intersectsDayRange((null==(t=e.start)?void 0:t.dayIndex)??-1/0,(null==(n=e.end)?void 0:n.dayIndex)??1/0)}intersectsDayRange(e,t){return!(this.start&&this.start.dayIndex>t)&&!(this.end&&this.end.dayIndex<e)}}class Ml{constructor(){a(this,"records",{})}render(e,t,n){var r,o,i,a;let s=null;const l=n[0].dayIndex,c=n[n.length-1].dayIndex;
2return t.hasRepeat?n.forEach((n=>{var r,o;if(t.startsOnDay(n)){const i=t.daySpan<1/0?t.daySpan:1;s={startDay:n.dayIndex,startTime:(null==(r=t.start)?void 0:r.time)??0,endDay:n.dayIndex+i-1,endTime:(null==(o=t.end)?void 0:o.time)??cc},this.getRangeRecords(e).push(s)}})):t.intersectsDayRange(l,c)&&(s={startDay:(null==(r=t.start)?void 0:r.dayIndex)??-1/0,startTime:(null==(o=t.start)?void 0:o.time)??-1/0,endDay:(null==(i=t.end)?void 0:i.dayIndex)??1/0,endTime:(null==(a=t.end)?void 0:a.time)??1/0},this.getRangeRecords(e).push(s)),s}getRangeRecords(e){let t=this.records[e.key];return t||(t={ranges:[],data:e},this.records[e.key]=t),t.ranges}getCell(e,t){return this.getCells(t).find((t=>t.data.key===e))}cellExists(e,t){const n=this.records[e];return null!=n&&n.ranges.some((e=>e.startDay<=t&&e.endDay>=t))}getCells(e){const t=Object.values(this.records),n=[],{dayIndex:r}=e;return t.forEach((({data:t,ranges:o})=>{o.filter((e=>e.startDay<=r&&e.endDay>=r)).forEach((o=>{const i=r===o.startDay,a=r===o.endDay,s=i?o.startTime:0,l=new Date(e.startDate.getTime()+s),c=a?o.endTime:cc,u=new Date(e.endDate.getTime()+c),d=0===s&&c===cc,p=t.order||0;n.push({...o,data:t,onStart:i,onEnd:a,startTime:s,startDate:l,endTime:c,endDate:u,allDay:d,order:p})}))})),n.sort(((e,t)=>e.order-t.order)),n}}const Tl={ar:{dow:7,L:"D/âM/âYYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYYå¹´MæDæ¥"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"}
2,pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};Tl.en=Tl["en-US"],Tl.es=Tl["es-ES"],Tl.no=Tl.nb,Tl.zh=Tl["zh-CN"];const Bl={componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:{maxSwipeTime:300,minHorizontalSwipeDistance:60,maxVerticalSwipeDistance:80},masks:{title:"MMMM YYYY",weekdays:"W",navMonths:"MMM",hours:"h A",input:["L","YYYY-MM-DD","YYYY/MM/DD"],inputDateTime:["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],inputDateTime24hr:["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],inputTime:["h:mm A"],inputTime24hr:["HH:mm"],dayPopover:"WWW, MMM D, YYYY",data:["L","YYYY-MM-DD","YYYY/MM/DD"],model:"iso",iso:"YYYY-MM-DDTHH:mm:ss.SSSZ"},locales:Object.entries(Tl).reduce(((e,[t,{dow:n,L:r}])=>(e[t]={id:t,firstDayOfWeek:n,masks:{L:r}},e)),{}),datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},Ol=(0,r.reactive)(Bl),Pl=(0,r.computed)((()=>Ai(Ol.locales,(e=>(e.masks=ms(e.masks,Ol.masks),e))))),Ll=e=>"undefined"!=typeof window&&xs(window.__vcalendar__,e)?So(window.__vcalendar__,e):So(Ol,e);class Il{constructor(e=void 0,t){a(this,"id"),a(this,"daysInWeek"),a(this,"firstDayOfWeek"),a(this,"masks"),a(this,"timezone"),a(this,"hourLabels"),a(this,"dayNames"),a(this,"dayNamesShort"),a(this,"dayNamesShorter"),a(this,"dayNamesNarrow"),a(this,"monthNames"),a(this,"monthNamesShort"),a(this,"relativeTimeNames"),a(this,"amPm",["am","pm"]),a(this,"monthCache"),a(this,"pageCache");const{id:n,firstDayOfWeek:r,masks:o,monthCacheSize:i,pageCacheSize:s}=function(e,t){const n=(new Intl.DateTimeFormat).resolvedOptions().locale;let r;cn(e)?r=e:xs(e,"id")&&(r=e.id),r=(r||n).toLowerCase();const o=Object.keys(t),i=e=>o.find((t=>t.toLowerCase()===e));r=i(r)||i(r.substring(0,2))||n;const a={...t["en-IE"],...t[r],id:r,monthCacheSize:12,pageCacheSize:5};return bs(e)?ms(e,a):a}(e,Pl.value);var l,c,u;this.monthCache=new Al(i,Vc,Ac),this.pageCache=new Al(s,Sl,Vl),this.id=n,this.daysInWeek=oc,this.firstDayOfWeek=(l=r,c=1,u=oc,Math.min(Math.max(l,c),u)),this.masks=o,this.timezone=t||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=Dc("long",this.id),this.dayNamesShort=Dc("short",this.id),this.dayNamesShorter=this.dayNamesShort.map((e=>e.substring(0,2))),this.dayNamesNarrow=Dc("narrow",this.id),this.monthNames=Tc("long",this.id),this.monthNamesShort=Tc("short",this.id),this.relativeTimeNames=function(e){const t=["second","minute","hour","day","week","month","quarter","year"],n=new Intl.RelativeTimeFormat(e);return t.reduce(((e,t)=>{const r=n.formatToParts(100,t);return e[t]=r[1].unit,e}),{})}(this.id)}formatDate(e,t){return function(e,t,n){if(null==e)return"";let r=wc(t,n)[0];/Z$/.test(r)&&(n.timezone="utc");const o=[];r=r.replace(fc,((e,t)=>(o.push(t),"??")));const i=n.getDateParts(e);return r=r.replace(hc,(e=>e in mc?mc[e](i,n):e.slice(1,e.length-1))),r.replace(/\?\?/g,(()=>o.shift()))}(e,t,this)}parseDate(e,t){return Pc(e,t,this)}toDate(e,t={}){const n=new Date(NaN);let r=n;const{fillDate:o,mask:i,patch:a,rules:s}=t;if(vi(e)?(t.type="number",r=new Date(+e)):cn(e)?(t.type="string",r=e?Pc(e,i||"iso",this):n):ys(e)?(t.type="date",r=new Date(e.getTime())):kc(e)&&(t.type="object",r=this.getDateFromParts(e)),r&&(a||s)){let e=this.getDateParts(r);if(a&&null!=o){const t=this.getDateParts(this.toDate(o));e=this.getDateParts(this.toDate({...t,...Ms(e,rc[a])}))}s&&(e=function(e,t){const n={...e};return Object.entries(t).forEach((([t,r])=>{const o=pc[t],i=e[t];n[t]=function(e,t,n,r){const o=Oc(e,t,r),i=o.reduce(((e,t)=>{if(t.disabled)return e;if(isNaN(e))return t.value;const r=Math.abs(e-n);return Math.abs(t.value-n)<r?t.value:e}),NaN);return isNaN(i)?n:i}(e,o,i,r)})),n}(e,s)),r=this.getDateFromParts(e)}return r||n}toDateOrNull(e,t={}){const n=this.toDate(e,t);return isNaN(n.getTime())?null:n}fromDate(e,{type:t,mask:n}={}){switch(t){case"number":return e?e.getTime():NaN;case"string":return e?this.formatDate(e,n||"iso"):"";case"object":return e?this.getDateParts(e):null;default:return e?new Date(e):null}}range(e){return Dl.from(e,this)}ranges(e){return Dl.fromMany(e,this)}getDateParts(e){return function(e,t){let n=new Date(e.getTime());
2t.timezone&&(n=new Date(e.toLocaleString("en-US",{timeZone:t.timezone})),n.setMilliseconds(e.getMilliseconds()));const r=n.getMilliseconds(),o=n.getSeconds(),i=n.getMinutes(),a=n.getHours(),s=r+o*ac+i*sc+a*lc,l=n.getMonth()+1,c=n.getFullYear(),u=t.getMonthParts(l,c),d=n.getDate(),p=u.numDays-d+1,h=n.getDay()+1,f=Math.floor((d-1)/7+1),m=Math.floor((u.numDays-d)/7+1),g=Math.ceil((d+Math.abs(u.firstWeekday-u.firstDayOfWeek))/7),v=u.numWeeks-g+1,y=u.weeknumbers[g],b=Ec(c,l,d);return{milliseconds:r,seconds:o,minutes:i,hours:a,time:s,day:d,dayFromEnd:p,weekday:h,weekdayOrdinal:f,weekdayOrdinalFromEnd:m,week:g,weekFromEnd:v,weeknumber:y,month:l,year:c,date:n,dateTime:n.getTime(),dayIndex:b,timezoneOffset:0,isValid:!0}}(e,this)}getDateFromParts(e){return Sc(e,this.timezone)}getDateFromParams(e,t,n,r,o,i,a){return this.getDateFromParts({year:e,month:t,day:n,hours:r,minutes:o,seconds:i,milliseconds:a})}getPage(e){return function(e,t){const{day:n,week:r,view:o,trimWeeks:i}=e,a={...t,...e,title:"",viewDays:[],viewWeeks:[]};switch(o){case"daily":{let e=a.days.find((e=>e.inMonth));n?e=a.days.find((e=>e.day===n&&e.inMonth))||e:r&&(e=a.days.find((e=>e.week===r&&e.inMonth)));const t=a.weeks[e.week-1];a.viewWeeks=[t],a.viewDays=[e],a.week=e.week,a.weekTitle=t.title,a.day=e.day,a.dayTitle=e.ariaLabel,a.title=a.dayTitle;break}case"weekly":{a.week=r||1;const e=a.weeks[a.week-1];a.viewWeeks=[e],a.viewDays=e.days,a.weekTitle=e.title,a.title=a.weekTitle;break}default:a.title=a.monthTitle,a.viewWeeks=a.weeks.slice(0,i?a.monthComps.numWeeks:void 0),a.viewDays=a.days}return a}(e,this.pageCache.getOrSet(e,this))}getMonthParts(e,t){const{firstDayOfWeek:n}=this;return this.monthCache.getOrSet(e,t,n)}getThisMonthParts(){const e=new Date;return this.getMonthParts(e.getMonth()+1,e.getFullYear())}getPrevMonthParts(e,t){return 1===e?this.getMonthParts(12,t-1):this.getMonthParts(e-1,t)}getNextMonthParts(e,t){return 12===e?this.getMonthParts(1,t+1):this.getMonthParts(e+1,t)}getHourLabels(){return function(){const e=[];for(let t=0;t<=24;t++)e.push(new Date(2e3,0,1,t));return e}().map((e=>this.formatDate(e,this.masks.hours)))}getDayId(e){return this.formatDate(e,"YYYY-MM-DD")}}var jl=(e=>(e.Any="any",e.All="all",e))(jl||{}),Rl=(e=>(e.Days="days",e.Weeks="weeks",e.Months="months",e.Years="years",e))(Rl||{}),$l=(e=>(e.Days="days",e.Weekdays="weekdays",e.Weeks="weeks",e.Months="months",e.Years="years",e))($l||{}),zl=(e=>(e.OrdinalWeekdays="ordinalWeekdays",e))(zl||{});class Fl{constructor(e,t,n){a(this,"validated",!0),this.type=e,this.interval=t,this.from=n,this.from||(console.error('A valid "from" date is required for date interval rule. This rule will be skipped.'),this.validated=!1)}passes(e){if(!this.validated)return!0;const{date:t}=e;switch(this.type){case"days":return Cc(this.from.date,t)%this.interval==0;case"weeks":return 0==(n=this.from.date,r=t,Math.ceil(Cc(_c(n),_c(r))/7)%this.interval);case"months":return function(e,t){return 12*Nc(e,t)+(t.getMonth()-e.getMonth())}(this.from.date,t)%this.interval==0;case"years":return Nc(this.from.date,t)%this.interval==0;default:return!1}var n,r}}class Hl{constructor(e,t,n,r){a(this,"components",[]),this.type=e,this.validator=n,this.getter=r,this.components=this.normalizeComponents(t)}static create(e,t){switch(e){case"days":return new Ul(t);case"weekdays":return new Wl(t);case"weeks":return new ql(t);case"months":return new Yl(t);case"years":return new Gl(t)}}normalizeComponents(e){if(this.validator(e))return[e];if(!_s(e))return[];const t=[];return e.forEach((e=>{this.validator(e)?t.push(e):console.error(`Component value ${e} in invalid for "${this.type}" rule. This rule will be skipped.`)})),t}passes(e){return this.getter(e).some((e=>this.components.includes(e)))}}class Ul extends Hl{constructor(e){super("days",e,Zl,(({day:e,dayFromEnd:t})=>[e,-t]))}}class Wl extends Hl{constructor(e){super("weekdays",e,Ql,(({weekday:e})=>[e]))}}class ql extends Hl{constructor(e){super("weeks",e,ec,(({week:e,weekFromEnd:t})=>[e,-t]))}}class Yl extends Hl{constructor(e){super("months",e,tc,(({month:e})=>[e]))}}
2class Gl extends Hl{constructor(e){super("years",e,vi,(({year:e})=>[e]))}}class Kl{constructor(e,t){a(this,"components"),this.type=e,this.components=this.normalizeComponents(t)}normalizeArrayConfig(e){const t=[];return e.forEach(((n,r)=>{if(vi(n)){if(0===r)return;if(!nc(e[0]))return void console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);if(!Ql(n))return void console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);t.push([e[0],n])}else _s(n)&&t.push(...this.normalizeArrayConfig(n))})),t}normalizeComponents(e){const t=[];return e.forEach(((n,r)=>{if(vi(n)){if(0===r)return;if(!nc(e[0]))return void console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);if(!Ql(n))return void console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);t.push([e[0],n])}else _s(n)&&t.push(...this.normalizeArrayConfig(n))})),t}passes(e){const{weekday:t,weekdayOrdinal:n,weekdayOrdinalFromEnd:r}=e;return this.components.some((([e,o])=>(e===n||e===-r)&&t===o))}}class Jl{constructor(e){a(this,"type","function"),a(this,"validated",!0),this.fn=e,z(e)||(console.error("The function rule requires a valid function. This rule will be skipped."),this.validated=!1)}passes(e){return!this.validated||this.fn(e)}}class Xl{constructor(e,t={},n){a(this,"validated",!0),a(this,"config"),a(this,"type",jl.Any),a(this,"from"),a(this,"until"),a(this,"rules",[]),a(this,"locale",new Il),this.parent=n,t.locale&&(this.locale=t.locale),this.config=e,z(e)?(this.type=jl.All,this.rules=[new Jl(e)]):_s(e)?(this.type=jl.Any,this.rules=e.map((e=>new Xl(e,t,this)))):bs(e)?(this.type=jl.All,this.from=e.from?this.locale.getDateParts(e.from):null==n?void 0:n.from,this.until=e.until?this.locale.getDateParts(e.until):null==n?void 0:n.until,this.rules=this.getObjectRules(e)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(e){const t=[];if(e.every&&(cn(e.every)&&(e.every=[1,`${e.every}s`]),_s(e.every))){const[n=1,r=Rl.Days]=e.every;t.push(new Fl(r,n,this.from))}return Object.values($l).forEach((n=>{n in e&&t.push(Hl.create(n,e[n]))})),Object.values(zl).forEach((n=>{n in e&&t.push(new Kl(n,e[n]))})),null!=e.on&&(_s(e.on)||(e.on=[e.on]),t.push(new Xl(e.on,{locale:this.locale},this.parent))),t}passes(e){return!this.validated||!(this.from&&e.dayIndex<=this.from.dayIndex)&&(!(this.until&&e.dayIndex>=this.until.dayIndex)&&(this.type===jl.Any?this.rules.some((t=>t.passes(e))):this.rules.every((t=>t.passes(e)))))}}function Zl(e){return!!vi(e)&&(e>=1&&e<=31)}function Ql(e){return!!vi(e)&&(e>=1&&e<=7)}function ec(e){return!!vi(e)&&(e>=-6&&e<=-1||e>=1&&e<=6)}function tc(e){return!!vi(e)&&(e>=1&&e<=12)}function nc(e){return!!vi(e)&&!(e<-5||e>5||0===e)}const rc={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},oc=7,ic=6,ac=1e3,sc=60*ac,lc=60*sc,cc=24*lc,uc=[31,28,31,30,31,30,31,31,30,31,30,31],dc=["L","iso"],pc={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},hc=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,fc=/\[([^]*?)\]/gm,mc={D:e=>e.day,DD:e=>ks(e.day,2),d:e=>e.weekday-1,dd:e=>ks(e.weekday-1,2),W:(e,t)=>t.dayNamesNarrow[e.weekday-1],WW:(e,t)=>t.dayNamesShorter[e.weekday-1],WWW:(e,t)=>t.dayNamesShort[e.weekday-1],WWWW:(e,t)=>t.dayNames[e.weekday-1],M:e=>e.month,MM:e=>ks(e.month,2),MMM:(e,t)=>t.monthNamesShort[e.month-1],MMMM:(e,t)=>t.monthNames[e.month-1],YY:e=>String(e.year).substr(2),YYYY:e=>ks(e.year,4),h:e=>e.hours%12||12,hh:e=>ks(e.hours%12||12,2),H:e=>e.hours,HH:e=>ks(e.hours,2),m:e=>e.minutes,mm:e=>ks(e.minutes,2),s:e=>e.seconds,ss:e=>ks(e.seconds,2),S:e=>Math.round(e.milliseconds/100),SS:e=>ks(Math.round(e.milliseconds/10),2),SSS:e=>ks(e.milliseconds,3),a:(e,t)=>e.hours<12?t.amPm[0]:t.amPm[1],A:(e,t)=>e.hours<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase(),Z:()=>"Z",ZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${ks(Math.floor(Math.abs(t)/60),2)}`},ZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${ks(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}`},ZZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${ks(Math.floor(Math.abs(t)/60),2)}:${ks(Math.abs(t)%60,2)}`}},gc=/\d\d?/,vc=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,yc=()=>{},bc=e=>(t,n,r)=>{const o=r[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~o&&(t.month=o)},xc={D:[gc,(e,t)=>{e.day=t}],Do:[new RegExp(gc.source+vc.source),(e,t)=>{e.day=parseInt(t,10)}
2],d:[gc,yc],W:[vc,yc],M:[gc,(e,t)=>{e.month=t-1}],MMM:[vc,bc("monthNamesShort")],MMMM:[vc,bc("monthNames")],YY:[gc,(e,t)=>{const n=+(new Date).getFullYear().toString().substr(0,2);e.year=+`${t>68?n-1:n}${t}`}],YYYY:[/\d{4}/,(e,t)=>{e.year=t}],S:[/\d/,(e,t)=>{e.milliseconds=100*t}],SS:[/\d{2}/,(e,t)=>{e.milliseconds=10*t}],SSS:[/\d{3}/,(e,t)=>{e.milliseconds=t}],h:[gc,(e,t)=>{e.hours=t}],m:[gc,(e,t)=>{e.minutes=t}],s:[gc,(e,t)=>{e.seconds=t}],a:[vc,(e,t,n)=>{const r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(e,t)=>{"Z"===t&&(t="+00:00");const n=`${t}`.match(/([+-]|\d\d)/gi);if(n){const t=60*+n[1]+parseInt(n[2],10);e.timezoneOffset="+"===n[0]?t:-t}}]};function wc(e,t){return(Es(e)&&e||[cn(e)&&e||"YYYY-MM-DD"]).map((e=>dc.reduce(((e,n)=>e.replace(n,t.masks[n]||"")),e)))}function kc(e){return bs(e)&&"year"in e&&"month"in e&&"day"in e}function _c(e,t=1){const n=e.getDay()+1;return vl(e,n>=t?t-n:-(7-(t-n)))}function Ec(e,t,n){const r=Date.UTC(e,t-1,n);return Cc(new Date(0),new Date(r))}function Cc(e,t){return Math.round((t.getTime()-e.getTime())/cc)}function Nc(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}function Sc(e,t=""){const n=new Date,{year:r=n.getFullYear(),month:o=n.getMonth()+1,day:i=n.getDate(),hours:a=0,minutes:s=0,seconds:l=0,milliseconds:c=0}=e;if(t){return Ks(`${ks(r,4)}-${ks(o,2)}-${ks(i,2)}T${ks(a,2)}:${ks(s,2)}:${ks(l,2)}.${ks(c,3)}`,{timeZone:t})}return new Date(r,o-1,i,a,s,l,c)}function Vc(e,t,n){return`${t}-${e}-${n}`}function Ac(e,t,n){const r=t%4==0&&t%100!=0||t%400==0,o=new Date(t,e-1,1),i=o.getDay()+1,a=2===e&&r?29:uc[e-1],s=n-1,l=dl(o,{weekStartsOn:s}),c=[],u=[];for(let e=0;e<l;e++){const t=vl(o,7*e);c.push(hl(t,{weekStartsOn:s})),u.push(gl(t))}return{firstDayOfWeek:n,firstDayOfMonth:o,inLeapYear:r,firstWeekday:i,numDays:a,numWeeks:l,month:e,year:t,weeknumbers:c,isoWeeknumbers:u}}function Dc(e,t=void 0){const n=new Intl.DateTimeFormat(t,{weekday:e});return function(){const e=[];for(let t=0;t<oc;t++)e.push(Sc({year:2020,month:1,day:5+t,hours:12}));return e}().map((e=>n.format(e)))}function Mc(){const e=[];for(let t=0;t<12;t++)e.push(new Date(2e3,t,15));return e}function Tc(e,t=void 0){const n=new Intl.DateTimeFormat(t,{month:e,timeZone:"UTC"});return Mc().map((e=>n.format(e)))}function Bc(e,t,n){return vi(t)?t===e:_s(t)?t.includes(e):z(t)?t(e,n):!(null!=t.min&&t.min>e)&&(!(null!=t.max&&t.max<e)&&(null==t.interval||e%t.interval==0))}function Oc(e,t,n){const r=[],[o,i,a]=t;for(let t=o;t<=i;t++)(null==n||Bc(t,n,e))&&r.push({value:t,label:ks(t,a)});return r}function Pc(e,t,n){return wc(t,n).map((t=>{if("string"!=typeof t)throw new Error("Invalid mask");let r=e;if(r.length>1e3)return!1;let o=!0;const i={};if(t.replace(hc,(e=>{if(xc[e]){const t=xc[e],a=r.search(t[0]);~a?r.replace(t[0],(e=>(t[1](i,e,n),r=r.substr(a+e.length),e))):o=!1}return xc[e]?"":e.slice(1,e.length-1)})),!o)return!1;const a=new Date;let s;return null!=i.hours&&(!0===i.isPm&&12!=+i.hours?i.hours=+i.hours+12:!1===i.isPm&&12==+i.hours&&(i.hours=0)),null!=i.timezoneOffset?(i.minutes=+(i.minutes||0)-+i.timezoneOffset,s=new Date(Date.UTC(i.year||a.getFullYear(),i.month||0,i.day||1,i.hours||0,i.minutes||0,i.seconds||0,i.milliseconds||0))):s=n.getDateFromParts({year:i.year||a.getFullYear(),month:(i.month||0)+1,day:i.day||1,hours:i.hours||0,minutes:i.minutes||0,seconds:i.seconds||0,milliseconds:i.milliseconds||0}),s})).find((e=>e))||new Date(e)}xc.DD=xc.D,xc.dd=xc.d,xc.WWWW=xc.WWW=xc.WW=xc.W,xc.MM=xc.M,xc.mm=xc.m,xc.hh=xc.H=xc.HH=xc.h,xc.ss=xc.s,xc.A=xc.a,xc.ZZZZ=xc.ZZZ=xc.ZZ=xc.Z;let Lc=0;class Ic{constructor(e,t,n){a(this,"key",""),a(this,"hashcode",""),a(this,"highlight",null),a(this,"content",null),a(this,"dot",null),a(this,"bar",null),a(this,"event",null),a(this,"popover",null),a(this,"customData",null),a(this,"ranges"),a(this,"hasRanges",!1),a(this,"order",0),a(this,"pinPage",!1),a(this,"maxRepeatSpan",0),a(this,"locale");const{dates:r}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},e);this.key||(this.key=++Lc),this.locale=n,t.normalizeGlyphs(this),this.ranges=n.ranges(r??[]),this.hasRanges=!!Es(this.ranges),this.maxRepeatSpan=this.ranges.filter((e=>e.hasRepeat)).map((e=>e.daySpan)).reduce(((e,t)=>Math.max(e,t)),0)}intersectsRange({start:e,end:t}){if(null==e||null==t)return!1;const n=this.ranges.filter((e=>!e.hasRepeat));for(const r of n)if(r.intersectsDayRange(e.dayIndex,t.dayIndex))return!0;const r=this.ranges.filter((e=>e.hasRepeat));if(!r.length)return!1;let o=e;for(this.maxRepeatSpan>1&&(o=this.locale.getDateParts(vl(o.date,-this.maxRepeatSpan)));o.dayIndex<=t.dayIndex;){for(const e of r)if(e.startsOnDay(o))return!0;o=this.locale.getDateParts(vl(o.date,1))}return!1}}function jc(e){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:e}))}function Rc(e){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:e}))}function $c(e){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:e}))}function zc(e){const{visibility:t}=e,n="click"===t,r="hover"===t,o="hover-focus"===t,i="focus"===t;e.autoHide=!n;let a=!1,s=!1;const l=t=>
2{n&&($c({...e,target:e.target||t.currentTarget}),t.stopPropagation())},c=t=>{a||(a=!0,(r||o)&&jc({...e,target:e.target||t.currentTarget}))},u=()=>{a&&(a=!1,(r||o&&!s)&&Rc(e))},d=t=>{s||(s=!0,(i||o)&&jc({...e,target:e.target||t.currentTarget}))},p=t=>{s&&!Vs(t.currentTarget,t.relatedTarget)&&(s=!1,(i||o&&!a)&&Rc(e))},h={};switch(e.visibility){case"click":h.click=l;break;case"hover":h.mousemove=c,h.mouseleave=u;break;case"focus":h.focusin=d,h.focusout=p;break;case"hover-focus":h.mousemove=c,h.mouseleave=u,h.focusin=d,h.focusout=p}return h}const Fc=e=>{const t=Cs(e);if(null==t)return;const n=t.popoverHandlers;n&&n.length&&(n.forEach((e=>e())),delete t.popoverHandlers)},Hc=(e,t)=>{const n=Cs(e);if(null==n)return;const r=[],o=zc(t);Object.entries(o).forEach((([e,t])=>{r.push(Ss(n,e,t))})),n.popoverHandlers=r},Uc={mounted(e,t){const{value:n}=t;n&&Hc(e,n)},updated(e,t){const{oldValue:n,value:r}=t,o=null==n?void 0:n.visibility,i=null==r?void 0:r.visibility;o!==i&&(o&&(Fc(e),i||Rc(n)),i&&Hc(e,r))},unmounted(e){Fc(e)}},Wc={};function qc(){return"undefined"!=typeof window}function Yc(e){const t=(0,r.ref)(!1),n=(0,r.computed)((()=>t.value?"dark":"light"));let o,i;function a(e){t.value=e.matches}function s(){var e;e="matchMedia",qc()&&e in window&&(o=window.matchMedia("(prefers-color-scheme: dark)"),o.addEventListener("change",a),t.value=o.matches)}function l(){const{selector:n=":root",darkClass:r="dark"}=e.value,o=document.querySelector(n);t.value=o.classList.contains(r)}function c(){d();const n=typeof e.value;"string"===n&&"system"===e.value.toLowerCase()?s():"object"===n?function(e){const{selector:n=":root",darkClass:r="dark"}=e;if(qc()&&n&&r){const e=document.querySelector(n);e&&(i=new MutationObserver(l),i.observe(e,{attributes:!0,attributeFilter:["class"]}),t.value=e.classList.contains(r))}}(e.value):t.value=!!e.value}const u=(0,r.watch)((()=>e.value),(()=>c()),{immediate:!0});function d(){o&&(o.removeEventListener("change",a),o=void 0),i&&(i.disconnect(),i=void 0)}function p(){d(),u()}return(0,r.onUnmounted)((()=>p())),{isDark:t,displayMode:n,cleanup:p}}const Gc=["base","start","end","startEnd"],Kc=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],Jc={base:{},start:{},end:{}};function Xc(e,t,n=Jc){let r=e,o={};!0===t||cn(t)?(r=cn(t)?t:r,o={...n}):bs(t)&&(o=ws(t,Gc)?{...t}:{base:{...t},start:{...t},end:{...t}});const i=ms(o,{start:o.startEnd,end:o.startEnd},n);return Object.entries(i).forEach((([e,t])=>{let n=r;!0===t||cn(t)?(n=cn(t)?t:n,i[e]={color:n}):bs(t)&&(ws(t,Kc)?i[e]={...t}:i[e]={}),ms(i[e],{color:n})})),i}class Zc{constructor(){a(this,"type","highlight")}normalizeConfig(e,t){return Xc(e,t,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(e){e.highlights=[],e.content||(e.content=[])}render({data:e,onStart:t,onEnd:n},r){const{key:o,highlight:i}=e;if(!i)return;const{highlights:a}=r,{base:s,start:l,end:c}=i;t&&n?a.push({...l,key:o,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-bg-${l.fillMode}`,l.class],contentClass:[`vc-attr vc-highlight-content-${l.fillMode} vc-${l.color}`,l.contentClass]}):t?(a.push({...s,key:`${o}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${s.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${s.fillMode}`,s.class]}),a.push({...l,key:o,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-bg-${l.fillMode}`,l.class],contentClass:[`vc-attr vc-highlight-content-${l.fillMode} vc-${l.color}`,l.contentClass]})):n?(a.push({...s,key:`${o}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${s.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${s.fillMode}`,s.class]}),a.push({...c,key:o,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${c.color}`,class:[`vc-highlight vc-highlight-bg-${c.fillMode}`,c.class],contentClass:[`vc-attr vc-highlight-content-${c.fillMode} vc-${c.color}`,c.contentClass]})):a.push({...s,key:`${o}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${s.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${s.fillMode}`,s.class],contentClass:[`vc-attr vc-highlight-content-${s.fillMode} vc-${s.color}`,s.contentClass]})}}class Qc{constructor(e,t){a(this,"type",""),a(this,"collectionType",""),this.type=e,this.collectionType=t}normalizeConfig(e,t){return Xc(e,t)}prepareRender(e){e[this.collectionType]=[]}render({data:e,onStart:t,onEnd:n},r){const{key:o}=e,i=e[this.type];if(!o||!i)return;const a=r[this.collectionType],{base:s,start:l,end:c}=i;t?a.push({...l,key:o,class:[`vc-${this.type} vc-${this.type}-start vc-${l.color} vc-attr`,l.class]}):n?a.push({...c,key:o,class:[`vc-${this.type} vc-${this.type}-end vc-${c.color} vc-attr`,c.class]}):a.push({...s,key:o,class:[`vc-${this.type} vc-${this.type}-base vc-${s.color} vc-attr`,s.class]})}}class eu extends Qc{constructor(){super("content","content")}normalizeConfig(e,t){return Xc("base",t)}}class tu extends Qc{constructor(){super("dot","dots")}}class nu extends Qc{constructor(){super("bar","bars")}}class ru{constructor(e){a(this,"color"),a(this,"renderers",[new eu,new Zc,new tu,new nu]),this.color=e}
2normalizeGlyphs(e){this.renderers.forEach((t=>{const n=t.type;null!=e[n]&&(e[n]=t.normalizeConfig(this.color,e[n]))}))}prepareRender(e={}){return this.renderers.forEach((t=>{t.prepareRender(e)})),e}render(e,t){this.renderers.forEach((n=>{n.render(e,t)}))}}const ou=Symbol("__vc_base_context__"),iu={color:{type:String,default:()=>Ll("color")},isDark:{type:[Boolean,String,Object],default:()=>Ll("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function au(e){const t=(0,r.computed)((()=>e.color??"")),n=(0,r.computed)((()=>e.isDark??!1)),{displayMode:o}=Yc(n),i=(0,r.computed)((()=>new ru(t.value))),a=(0,r.computed)((()=>{if(e.locale instanceof Il)return e.locale;const t=bs(e.locale)?e.locale:{id:e.locale,firstDayOfWeek:e.firstDayOfWeek,masks:e.masks};return new Il(t,e.timezone)})),s=(0,r.computed)((()=>a.value.masks)),l=(0,r.computed)((()=>e.minDate)),c=(0,r.computed)((()=>e.maxDate)),u=(0,r.computed)((()=>{const t=e.disabledDates?[...e.disabledDates]:[];return null!=l.value&&t.push({start:null,end:vl(a.value.toDate(l.value),-1)}),null!=c.value&&t.push({start:vl(a.value.toDate(c.value),1),end:null}),a.value.ranges(t)})),d=(0,r.computed)((()=>new Ic({key:"disabled",dates:u.value,order:100},i.value,a.value))),p={color:t,isDark:n,displayMode:o,theme:i,locale:a,masks:s,minDate:l,maxDate:c,disabledDates:u,disabledAttribute:d};return(0,r.provide)(ou,p),p}function su(e){return`__vc_slot_${e}__`}function lu(e,t={}){Object.keys(e).forEach((n=>{(0,r.provide)(su(t[n]??n),e[n])}))}function cu(e){return(0,r.inject)(su(e),null)}const uu={...iu,view:{type:String,default:"monthly",validator:e=>["daily","weekly","monthly"].includes(e)},rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>Ll("titlePosition")},navVisibility:{type:String,default:()=>Ll("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String],expanded:Boolean,borderless:Boolean,transparent:Boolean,initialPage:Object,initialPagePosition:{type:Number,default:1},minPage:Object,maxPage:Object,transition:String,attributes:Array,trimWeeks:Boolean,disablePageSwipe:Boolean},du=Symbol("__vc_calendar_context__");function pu(e,{slots:t,emit:n}){const o=(0,r.ref)(null),i=(0,r.ref)(null),a=(0,r.ref)((new Date).getDate()),s=(0,r.ref)(!1),l=(0,r.ref)(Symbol()),c=(0,r.ref)(Symbol()),u=(0,r.ref)(e.view),d=(0,r.ref)([]),p=(0,r.ref)("");let h=null,f=null;lu(t);const{theme:m,color:g,displayMode:v,locale:y,masks:b,minDate:x,maxDate:w,disabledAttribute:k,disabledDates:_}=function(e){return(0,r.inject)(ou,(()=>au(e)),!0)}(e),E=(0,r.computed)((()=>e.rows*e.columns)),C=(0,r.computed)((()=>e.step||E.value)),N=(0,r.computed)((()=>gs(d.value)??null)),S=(0,r.computed)((()=>vs(d.value)??null)),V=(0,r.computed)((()=>e.minPage||(x.value?I(x.value):null))),A=(0,r.computed)((()=>e.maxPage||(w.value?I(w.value):null))),D=(0,r.computed)((()=>e.navVisibility)),M=(0,r.computed)((()=>!!e.showWeeknumbers)),T=(0,r.computed)((()=>!!e.showIsoWeeknumbers)),B=(0,r.computed)((()=>"monthly"===u.value)),O=(0,r.computed)((()=>"weekly"===u.value)),P=(0,r.computed)((()=>"daily"===u.value)),L=(e,t,n=u.value)=>_l(e,t,n,y.value),I=e=>kl(e,u.value,y.value),j=e=>{e.isFocusable=e.inMonth&&e.day===a.value},R=(e,t)=>{for(const n of e)for(const e of n.days)if(!1===t(e))return},$=(0,r.computed)((()=>d.value.reduce(((e,t)=>(e.push(...t.viewDays),e)),[]))),F=(0,r.computed)((()=>{const t=[];return(e.attributes||[]).forEach(((e,n)=>{e&&e.dates&&t.push(new Ic({...e,order:e.order||0},m.value,y.value))})),k.value&&t.push(k.value),t})),H=(0,r.computed)((()=>Es(F.value))),U=(0,r.computed)((()=>{const e=new Ml;return F.value.forEach((t=>{t.ranges.forEach((n=>{e.render(t,n,$.value)}))})),e})),W=(0,r.computed)((()=>$.value.reduce(((e,t)=>(e[t.dayIndex]={day:t,cells:[]},e[t.dayIndex].cells.push(...U.value.getCells(t)),e)),{}))),q=(t,n)=>{const r=e.showWeeknumbers||e.showIsoWeeknumbers;return null==r?"":fi(r)?r?"left":"":r.startsWith("right")?n>1?"right":r:t>1?"left":r},Y=()=>{if(El(N.value))return N.value;const e=(()=>{var e,t;if(!H.value)return null;const n=F.value.find((e=>e.pinPage))||F.value[0];if(!n||!n.hasRanges)return null;const[r]=n.ranges,o=(null==(e=r.start)?void 0:e.date)||(null==(t=r.end)?void 0:t.date);return o?I(o):null})();return El(e)?e:I(new Date)},G=(e,t={})=>{const{view:n=u.value,position:r=1,force:o}=t,i=r>0?1-r:-(E.value+r);let a=L(e,i,n),s=L(a,E.value-1,n);return o||(Cl(a,V.value)?a=V.value:Nl(s,A.value)&&(a=L(A.value,1-E.value)),s=L(a,E.value-1)),{fromPage:a,toPage:s}},K=(t={})=>new Promise(((n,r)=>{const{position:o=1,force:i=!1,transition:a}=t,s=El(t.page)?t.page:Y(),{fromPage:l}=G(s,{position:o,force:i}),c=[];for(let t=0;t<E.value;t++){const n=L(l,t),r=t+1,o=Math.ceil(r/e.columns),i=e.rows-o+1,a=r%e.columns||e.columns,s=e.columns-a+1,d=q(a,s);c.push(y.value.getPage({...n,view:u.value,titlePosition:e.titlePosition,trimWeeks:e.trimWeeks,position:r,row:o,rowFromEnd:i,column:a,columnFromEnd:s,showWeeknumbers:M.value,showIsoWeeknumbers:T.value,weeknumberPosition:d}))}p.value=((e,t,n="")=>{if("none"===n||"fade"===n)return n;
2if((null==e?void 0:e.view)!==(null==t?void 0:t.view))return"fade";const r=Nl(t,e),o=Cl(t,e);return r||o?"slide-v"===n?o?"slide-down":"slide-up":o?"slide-right":"slide-left":"fade"})(d.value[0],c[0],a),d.value=c,p.value&&"none"!==p.value?h={resolve:n,reject:r}:n(!0)})),J=e=>{const t=N.value??I(new Date);return L(t,e)},X=(e,t={})=>{const n=El(e)?e:I(e);Object.assign(t,G(n,{...t,force:!0}));const r=function(e,t,n,r){if(!El(e)||!El(t))return[];const o=[];for(;!Nl(e,t);)o.push(e),e=_l(e,1,n,r);return o}(t.fromPage,t.toPage,u.value,y.value).map((e=>function(e,t,n){return!!e&&!Cl(e,t)&&!Nl(e,n)}(e,V.value,A.value)));return r.some((e=>e))},Z=(e,t={})=>X(J(e),t),Q=(0,r.computed)((()=>Z(-C.value))),ee=(0,r.computed)((()=>Z(C.value))),te=async(e,t={})=>{return!(!t.force&&!X(e,t))&&(t.fromPage&&(r=t.fromPage,o=N.value,!r&&o||r&&!o||(r||o)&&(r.year!==o.year||r.month!==o.month||r.week!==o.week||r.day!==o.day))&&(Rc({id:l.value,hideDelay:0}),t.view&&(((e,t=10)=>{Wc[e]=Date.now()+t})("view",10),u.value=t.view),await K({...t,page:t.fromPage,position:1,force:!0}),n("did-move",d.value)),!0);var r,o},ne=(e,t={})=>te(J(e),t),re=()=>ne(-C.value),oe=()=>ne(C.value),ie=e=>{const t=B.value?".in-month":"",n=`.id-${y.value.getDayId(e)}${t}`,r=`${n}.vc-focusable, ${n} .vc-focusable`,i=o.value;if(i){const e=i.querySelector(r);if(e)return e.focus(),!0}return!1},ae=async(e,t={})=>!!ie(e)||(await te(e,t),ie(e)),se=(e,t)=>{n("daykeydown",e,t);const r=e.noonDate;let o=null;switch(t.key){case"ArrowLeft":o=vl(r,-1);break;case"ArrowRight":o=vl(r,1);break;case"ArrowUp":o=vl(r,-7);break;case"ArrowDown":o=vl(r,7);break;case"Home":o=vl(r,1-e.weekdayPosition);break;case"End":o=vl(r,e.weekdayPositionFromEnd);break;case"PageUp":o=t.altKey?bl(r,-1):yl(r,-1);break;case"PageDown":o=t.altKey?bl(r,1):yl(r,1)}o&&(t.preventDefault(),ae(o).catch())};K({page:e.initialPage,position:e.initialPagePosition}),(0,r.onMounted)((()=>{!e.disablePageSwipe&&o.value&&(f=((e,t,{maxSwipeTime:n,minHorizontalSwipeDistance:r,maxVerticalSwipeDistance:o})=>{if(!e||!e.addEventListener||!z(t))return null;let i=0,a=0,s=null,l=!1;function c(e){const t=e.changedTouches[0];i=t.screenX,a=t.screenY,s=(new Date).getTime(),l=!0}function u(e){if(!l||!s)return;l=!1;const c=e.changedTouches[0],u=c.screenX-i,d=c.screenY-a;if((new Date).getTime()-s<n&&Math.abs(u)>=r&&Math.abs(d)<=o){const e={toLeft:!1,toRight:!1};u<0?e.toLeft=!0:e.toRight=!0,t(e)}}return Ss(e,"touchstart",c,{passive:!0}),Ss(e,"touchend",u,{passive:!0}),()=>{Ns(e,"touchstart",c),Ns(e,"touchend",u)}})(o.value,(({toLeft:e=!1,toRight:t=!1})=>{e?oe():t&&re()}),Ll("touch")))})),(0,r.onUnmounted)((()=>{d.value=[],f&&f()})),(0,r.watch)((()=>y.value),(()=>{K()})),(0,r.watch)((()=>E.value),(()=>K())),(0,r.watch)((()=>e.view),(()=>u.value=e.view)),(0,r.watch)((()=>u.value),(()=>{((e,t)=>
2{if(e in Wc){const t=Wc[e];if(Date.now()<t)return;delete Wc[e]}t()})("view",(()=>{K()})),n("update:view",u.value)})),(0,r.watch)((()=>a.value),(()=>{R(d.value,(e=>j(e)))})),(0,r.watchEffect)((()=>{n("update:pages",d.value),R(d.value,(e=>{(e=>{k.value&&U.value&&(e.isDisabled=U.value.cellExists(k.value.key,e.dayIndex))})(e),j(e)}))}));const le={emit:n,containerRef:o,focusedDay:i,inTransition:s,navPopoverId:l,dayPopoverId:c,view:u,pages:d,transitionName:p,theme:m,color:g,displayMode:v,locale:y,masks:b,attributes:F,disabledAttribute:k,disabledDates:_,attributeContext:U,days:$,dayCells:W,count:E,step:C,firstPage:N,lastPage:S,canMovePrev:Q,canMoveNext:ee,minPage:V,maxPage:A,isMonthly:B,isWeekly:O,isDaily:P,navVisibility:D,showWeeknumbers:M,showIsoWeeknumbers:T,getDateAddress:I,canMove:X,canMoveBy:Z,move:te,moveBy:ne,movePrev:re,moveNext:oe,onTransitionBeforeEnter:()=>{s.value=!0,n("transition-start")},onTransitionAfterEnter:()=>{s.value=!1,n("transition-end"),h&&(h.resolve(!0),h=null)},tryFocusDate:ie,focusDate:ae,onKeydown:e=>{const t=i.value;null!=t&&se(t,e)},onDayKeydown:se,onDayClick:(e,t)=>{a.value=e.day,n("dayclick",e,t)},onDayMouseenter:(e,t)=>{n("daymouseenter",e,t)},onDayMouseleave:(e,t)=>{n("daymouseleave",e,t)},onDayFocusin:(e,t)=>{a.value=e.day,i.value=e,e.isFocused=!0,n("dayfocusin",e,t)},onDayFocusout:(e,t)=>{i.value=null,e.isFocused=!1,n("dayfocusout",e,t)},onWeeknumberClick:(e,t)=>{n("weeknumberclick",e,t)}};return(0,r.provide)(du,le),le}function hu(){const e=(0,r.inject)(du);if(e)return e;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const fu=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n};const mu=fu((0,r.defineComponent)({inheritAttrs:!1,emits:["before-show","after-show","before-hide","after-hide"],props:{id:{type:[Number,String,Symbol],required:!0},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:110},boundarySelector:{type:String}},setup(e,{emit:t}){let n;const i=(0,r.ref)();let a=null,s=null;const l=(0,r.reactive)({isVisible:!1,target:null,data:null,transition:"slide-fade",placement:"bottom",direction:"",positionFixed:!1,modifiers:[],isInteractive:!0,visibility:"click",isHovered:!1,isFocused:!1,autoHide:!1,force:!1});function c(e){e&&(l.direction=e.split("-")[0])}function u({placement:e,options:t}){c(e||(null==t?void 0:t.placement))}const d=(0,r.computed)((()=>({placement:l.placement,strategy:l.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:u},...l.modifiers||[]],onFirstUpdate:u}))),p=(0,r.computed)((()=>
2{const e="left"===l.direction||"right"===l.direction;let t="";if(l.placement){const e=l.placement.split("-");e.length>1&&(t=e[1])}return["start","top","left"].includes(t)?e?"top":"left":["end","bottom","right"].includes(t)?e?"bottom":"right":e?"middle":"center"}));function h(){s&&(s.destroy(),s=null)}function f(){(0,r.nextTick)((()=>{const e=Cs(l.target);e&&i.value&&(s&&s.state.elements.reference!==e&&h(),s?s.update():s=(0,o.n4)(e,i.value,d.value))}))}function m(e,t){clearTimeout(n),e>0?n=setTimeout(t,e):t()}function g(e){if(!e||!s)return!1;return Cs(e)===s.state.elements.reference}async function v(t={}){l.force||(t.force&&(l.force=!0),m(t.showDelay??e.showDelay,(()=>{var e;l.isVisible&&(l.force=!1),e={...t,isVisible:!0},Object.assign(l,Ds(e,"force")),f()})))}function y(t={}){s&&(t.target&&!g(t.target)||l.force||(t.force&&(l.force=!0),m(t.hideDelay??e.hideDelay,(()=>{l.isVisible||(l.force=!1),l.isVisible=!1}))))}function b(e){if(!s)return;const t=s.state.elements.reference;if(!i.value||!t)return;const n=e.target;Vs(i.value,n)||Vs(t,n)||y({force:!0})}function x(e){"Esc"!==e.key&&"Escape"!==e.key||y()}function w({detail:t}){t.id&&t.id===e.id&&v(t)}function k({detail:t}){t.id&&t.id===e.id&&y(t)}function _({detail:t}){t.id&&t.id===e.id&&function(e={}){null!=e.target&&(l.isVisible&&g(e.target)?y(e):v(e))}(t)}function E(){null!=a&&(a.disconnect(),a=null)}return(0,r.watch)((()=>i.value),(e=>{E(),e&&(a=new ResizeObserver((()=>{s&&s.update()})),a.observe(e))})),(0,r.watch)((()=>l.placement),c,{immediate:!0}),(0,r.onMounted)((()=>{Ss(document,"keydown",x),Ss(document,"click",b),Ss(document,"show-popover",w),Ss(document,"hide-popover",k),Ss(document,"toggle-popover",_)})),(0,r.onUnmounted)((()=>{h(),E(),Ns(document,"keydown",x),Ns(document,"click",b),Ns(document,"show-popover",w),Ns(document,"hide-popover",k),Ns(document,"toggle-popover",_)})),{...(0,r.toRefs)(l),popoverRef:i,alignment:p,hide:y,setupPopper:f,beforeEnter:function(e){t("before-show",e)},afterEnter:function(e){l.force=!1,t("after-show",e)},beforeLeave:function(e){t("before-hide",e)},afterLeave:function(e){l.force=!1,h(),t("after-hide",e)},onClick:function(e){e.stopPropagation()},onMouseOver:function(){l.isHovered=!0,l.isInteractive&&["hover","hover-focus"].includes(l.visibility)&&v()},onMouseLeave:function(){if(l.isHovered=!1,!s)return;const e=s.state.elements.reference;!l.autoHide||l.isFocused||e&&e===document.activeElement||!["hover","hover-focus"].includes(l.visibility)||y()},onFocusIn:function(){l.isFocused=!0,l.isInteractive&&["focus","hover-focus"].includes(l.visibility)&&v()},onFocusOut:function(e){!["focus","hover-focus"].includes(l.visibility)||e.relatedTarget&&Vs(i.value,e.relatedTarget)||(l.isFocused=!1,!l.isHovered&&l.autoHide&&y())}}}}),[["render",function(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["vc-popover-content-wrapper",{"is-interactive":e.isInteractive}]),ref:"popoverRef",onClick:t[0]||(t[0]=(...t)=>e.onClick&&e.onClick(...t)),onMouseover:t[1]||(t[1]=(...t)=>e.onMouseOver&&e.onMouseOver(...t)),onMouseleave:t[2]||(t[2]=(...t)=>e.onMouseLeave&&e.onMouseLeave(...t)),onFocusin:t[3]||(t[3]=(...t)=>e.onFocusIn&&e.onFocusIn(...t)),onFocusout:t[4]||(t[4]=(...t)=>e.onFocusOut&&e.onFocusOut(...t))},[(0,r.createVNode)(r.Transition,{name:`vc-${e.transition}`,appear:"",onBeforeEnter:e.beforeEnter,onAfterEnter:e.afterEnter,onBeforeLeave:e.beforeLeave,onAfterLeave:e.afterLeave},{default:(0,r.withCtx)((()=>[e.isVisible?((0,r.openBlock)(),(0,r.createElementBlock)("div",(0,r.mergeProps)({key:0,tabindex:"-1",class:`vc-popover-content direction-${e.direction}`},e.$attrs),[(0,r.renderSlot)(e.$slots,"default",{direction:e.direction,alignment:e.alignment,data:e.data,hide:e.hide},(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.data),1)])),(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["vc-popover-caret",`direction-${e.direction}`,`align-${e.alignment}`])},null,2)],16)):(0,r.createCommentVNode)("",!0)])),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}]]),gu={class:"vc-day-popover-row"},vu={key:0,class:"vc-day-popover-row-indicator"},yu={class:"vc-day-popover-row-label"},bu=(0,r.defineComponent)({__name:"PopoverRow",props:{attribute:null},setup(e){const t=e,n=(0,r.computed)((()=>{const{content:e,highlight:n,dot:r,bar:o,popover:i}=t.attribute;return i&&i.hideIndicator?null:e?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${e.base.color}`}
2:n?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${n.base.color}`}:r?{class:`vc-dot vc-attr vc-${r.base.color}`}:o?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${o.base.color}`}:null}));return(t,o)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",gu,[(0,r.unref)(n)?((0,r.openBlock)(),(0,r.createElementBlock)("div",vu,[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)((0,r.unref)(n).class)},null,2)])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",yu,[(0,r.renderSlot)(t.$slots,"default",{},(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.attribute.popover?e.attribute.popover.label:"No content provided"),1)]))])]))}}),xu=(0,r.defineComponent)({inheritAttrs:!1,__name:"CalendarSlot",props:{name:null},setup(e){const t=cu(e.name);return(e,n)=>(0,r.unref)(t)?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(t)),(0,r.normalizeProps)((0,r.mergeProps)({key:0},e.$attrs)),null,16)):(0,r.renderSlot)(e.$slots,"default",{key:1})}}),wu={class:"vc-day-popover-container"},ku={key:0,class:"vc-day-popover-header"},_u=(0,r.defineComponent)({__name:"CalendarDayPopover",setup(e){const{dayPopoverId:t,displayMode:n,color:o,masks:i,locale:a}=hu();function s(e,t){return a.value.formatDate(e,t)}function l(e){return a.value.formatDate(e.date,i.value.dayPopover)}return(e,a)=>((0,r.openBlock)(),(0,r.createBlock)(mu,{id:(0,r.unref)(t),class:(0,r.normalizeClass)([`vc-${(0,r.unref)(o)}`,`vc-${(0,r.unref)(n)}`])},{default:(0,r.withCtx)((({data:{day:e,attributes:t},hide:n})=>[(0,r.createVNode)(xu,{name:"day-popover",day:e,"day-title":l(e),attributes:t,format:s,masks:(0,r.unref)(i),hide:n},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",wu,[(0,r.unref)(i).dayPopover?((0,r.openBlock)(),(0,r.createElementBlock)("div",ku,(0,r.toDisplayString)(l(e)),1)):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(t,(e=>((0,r.openBlock)(),(0,r.createBlock)(bu,{key:e.key,attribute:e},null,8,["attribute"])))),128))])])),_:2},1032,["day","day-title","attributes","masks","hide"])])),_:1},8,["id","class"]))}}),Eu={},Cu={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},Nu=[(0,r.createElementVNode)("polyline",{points:"9 18 15 12 9 6"},null,-1)];const Su=fu(Eu,[["render",function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",Cu,Nu)}]]),Vu={},Au={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},Du=[(0,r.createElementVNode)("polyline",{points:"15 18 9 12 15 6"},null,-1)];const Mu=fu(Vu,[["render",function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",Au,Du)}]]),Tu={},Bu={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},Ou=[(0,r.createElementVNode)("polyline",{points:"6 9 12 15 18 9"},null,-1)];const Pu=fu(Tu,[["render",function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",Bu,Ou)}]]),Lu={},Iu={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},ju=[(0,r.createElementVNode)("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];const Ru=fu(Lu,[["render",function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",Iu,ju)}]]),$u=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:Pu,IconChevronLeft:Mu,IconChevronRight:Su,IconClock:Ru},Symbol.toStringTag,{value:"Module"})),zu=(0,r.defineComponent)({__name:"BaseIcon",props:{name:{type:String,required:!0},width:{type:String},height:{type:String},size:{type:String,default:"26"},viewBox:{type:String}},setup(e){const t=e,n=(0,r.computed)((()=>t.width||t.size)),o=(0,r.computed)((()=>t.height||t.size)),i=(0,r.computed)((()=>$u[`Icon${t.name}`]));return(e,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(i)),{width:(0,r.unref)(n),height:(0,r.unref)(o),class:"vc-base-icon"},null,8,["width","height"]))}}),Fu=["disabled"],Hu={key:1,class:"vc-title-wrapper"},Uu={type:"button",class:"vc-title"},Wu=["disabled"],qu=(0,r.defineComponent)({__name:"CalendarHeader",props:{page:null,layout:null,isLg:{type:Boolean},isXl:{type:Boolean},is2xl:{type:Boolean},hideTitle:{type:Boolean},hideArrows:{type:Boolean}},setup(e){const t=e,{navPopoverId:n,navVisibility:o,canMovePrev:i,movePrev:a,canMoveNext:s,moveNext:l}=hu(),c=(0,r.computed)((()=>{switch(t.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}})),u=(0,r.computed)((()=>{const{page:e}=t;return{id:n.value,visibility:o.value,placement:c.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:e},isInteractive:!0}})),d=(0,r.computed)((()=>t.page.titlePosition.includes("left"))),p=(0,r.computed)((()=>t.page.titlePosition.includes("right"))),h=(0,r.computed)((()=>t.layout?t.layout:d.value?"tu-pn":p.value?"pn-tu":"p-tu-n;")),f=(0,r.computed)((()=>({prev:h.value.includes("p")&&!t.hideArrows,title:h.value.includes("t")&&!t.hideTitle,next:h.value.includes("n")&&!t.hideArrows}))),m=(0,r.computed)((()=>({gridTemplateColumns:h.value.split("").map((e=>{switch(e){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}})).join(" ")})));return(t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["vc-header",{"is-lg":e.isLg,"is-xl":e.isXl,"is-2xl":e.is2xl}]),style:(0,r.normalizeStyle)((0,r.unref)(m))},[(0,r.unref)(f).prev?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,t
2ype:"button",class:"vc-arrow vc-prev vc-focus",disabled:!(0,r.unref)(i),onClick:n[0]||(n[0]=(...e)=>(0,r.unref)(a)&&(0,r.unref)(a)(...e)),onKeydown:n[1]||(n[1]=(0,r.withKeys)(((...e)=>(0,r.unref)(a)&&(0,r.unref)(a)(...e)),["space","enter"]))},[(0,r.createVNode)(xu,{name:"header-prev-button",disabled:!(0,r.unref)(i)},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(zu,{name:"ChevronLeft",size:"24"})])),_:1},8,["disabled"])],40,Fu)):(0,r.createCommentVNode)("",!0),(0,r.unref)(f).title?((0,r.openBlock)(),(0,r.createElementBlock)("div",Hu,[(0,r.createVNode)(xu,{name:"header-title-wrapper"},{default:(0,r.withCtx)((()=>[(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",Uu,[(0,r.createVNode)(xu,{name:"header-title",title:e.page.title},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.page.title),1)])),_:1},8,["title"])])),[[(0,r.unref)(Uc),(0,r.unref)(u)]])])),_:1})])):(0,r.createCommentVNode)("",!0),(0,r.unref)(f).next?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!(0,r.unref)(s),onClick:n[2]||(n[2]=(...e)=>(0,r.unref)(l)&&(0,r.unref)(l)(...e)),onKeydown:n[3]||(n[3]=(0,r.withKeys)(((...e)=>(0,r.unref)(l)&&(0,r.unref)(l)(...e)),["space","enter"]))},[(0,r.createVNode)(xu,{name:"header-next-button",disabled:!(0,r.unref)(s)},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(zu,{name:"ChevronRight",size:"24"})])),_:1},8,["disabled"])],40,Wu)):(0,r.createCommentVNode)("",!0)],6))}}),Yu=Symbol("__vc_page_context__");function Gu(){const e=(0,r.inject)(Yu);if(e)return e;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const Ku={class:"vc-nav-header"},Ju=["disabled"],Xu=["disabled"],Zu={class:"vc-nav-items"},Qu=["data-id","aria-label","disabled","onClick","onKeydown"],ed=(0,r.defineComponent)({__name:"CalendarNav",setup(e){const{masks:t,move:n}=hu(),{page:o,getMonthItems:i,getYearItems:a}=Gu(),s=(0,r.ref)(!0),l=(0,r.ref)(o.value.year),c=(0,r.ref)(p(o.value.year)),u=(0,r.ref)(null);function d(){setTimeout((()=>{if(null==u.value)return;const e=u.value.querySelector(".vc-nav-item:not(:disabled)");e&&e.focus()}),10)}function p(e){return Math.floor(e/12)}function h(){s.value=!s.value}function f(e){return 12*e}function m(e){return 12*(e+1)-1}function g(){A.value&&(s.value&&l.value--,c.value--)}function v(){D.value&&(s.value&&l.value++,c.value++)}const y=(0,r.computed)((()=>i(l.value,t.value.navMonths).map((e=>({...e,click:()=>n({month:e.month,year:e.year},{position:o.value.position})}))))),b=(0,r.computed)((()=>i(l.value-1,t.value.navMonths))),x=(0,r.computed)((()=>b.value.some((e=>!e.isDisabled)))),w=(0,r.computed)((()=>i(l.value+1,t.value.navMonths))),k=(0,r.computed)((()=>w.value.some((e=>!e.isDisabled)))),_=(0,r.computed)((()=>a(f(c.value),m(c.value)).map((e=>({...e,click:()=>{l.value=e.year,s.value=!0,d()}}))))),E=(0,r.computed)((()=>a(f(c.value-1),m(c.value-1)))),C=(0,r.computed)((()=>E.value.some((e=>!e.isDisabled)))),N=(0,r.computed)((()=>a(f(c.value+1),m(c.value+1)))),S=(0,r.computed)((()=>N.value.some((e=>!e.isDisabled)))),V=(0,r.computed)((()=>s.value?y.value:_.value)),A=(0,r.computed)((()=>s.value?x.value:C.value)),D=(0,r.computed)((()=>s.value?k.value:S.value)),M=(0,r.computed)((()=>gs(_.value.map((e=>e.year))))),T=(0,r.computed)((()=>vs(_.value.map((e=>e.year))))),B=(0,r.computed)((()=>s.value?l.value:`${M.value} - ${T.value}`));return(0,r.watchEffect)((()=>{l.value=o.value.year,d()})),(0,r.watch)((()=>l.value),(e=>c.value=p(e))),(0,r.onMounted)((()=>d())),(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"vc-nav-container",ref_key:"navContainer",ref:u},[(0,r.createElementVNode)("div",Ku,[(0,r.createElementVNode)("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!(0,r.unref)(A),onClick:g,onKeydown:t[0]||(t[0]=e=>(0,r.unref)(As)(e,g))},[(0,r.createVNode)(xu,{name:"nav-prev-button",move:g,disabled:!(0,r.unref)(A)},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(zu,{name:"ChevronLeft",width:"22px",height:"24px"})])),_:1},8,["disabled"])],40,Ju),(0,r.createElementVNode)("button",{type:"button",class:"vc-nav-title vc-focus",onClick:h,onKeydown:t[1]||(t[1]=e=>(0,r.unref)(As)(e,h))},(0,r.toDisplayString)((0,r.unref)(B)),33),(0,r.createElementVNode)("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!(0,r.unref)(D),onClick:v,onKeydown:t[2]||(t[2]=e=>(0,r.unref)(As)(e,v))},[(0,r.createVNode)(xu,{name:"nav-next-button",move:v,disabled:!(0,r.unref)(D)},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(zu,{name:"ChevronRight",width:"22px",height:"24px"})])),_:1},8,["disabled"])],40,Xu)]),(0,r.createElementVNode)("div",Zu,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(V),(e=>((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:e.label,type:"button","data-id":e.id,"aria-label":e.ariaLabel,class:(0,r.normalizeClass)(["vc-nav-item vc-focus",[e.isActive?"is-active":e.isCurrent?"is-current":""]]),disabled:e.isDisabled,onClick:e.click,onKeydown:t=>(0,r.unref)(As)(t,e.click)},(0,r.toDisplayString)(e.label),43,Qu)))),128))])],512))}}),td=(0,r.defineComponent)({__name:"CalendarPageProvider",props:{page:null},setup(e){const t=e;return function(e){const{locale:t,getDateAddress:n,canMove:o}=hu(),i={page:e,getMonthItems:function(r,i){const{month:a,year:s}=n(new Date);return Mc().map(((n,l)=>{const c=l+1;return{month:c,year:r,id:wl(c,r),label:t.value.formatDate(n,i),ariaLabel:t.value.formatDate(n,"MMMM"),isActive:c===e.value.month&&r===e.value.year,isCurrent:c===a&&r===s,isDisabled:!o({month:c,year:r},{position:e.value.position})}}))},getYearItems:function(t,r){const{year:i}=n(new Date),{position:a}=e.value,s=[];for(let n=t;n<=r;n+=1){const t=[...Array(12).keys()].some((e=>o({month:e+1,year:n},{position:a})));s.push({year:n,id:n.toString(),label:n.toString(),ariaLabel:n.toString(),isActive:n===e.value.year,isCurrent:n===i,isDisabled:!t})}return s}};(0,r.provide)(Yu,i)}((0,r.toRef)(t,"page")),(e,t)=>(0,r.renderSlot)(e.$slots,"default")}}),nd=(0,r.defineComponent)({__name:"CalendarNavPopover",setup(e){const{navPopoverId:t,color:n,displayMode:o}=hu();return(e,i)=>((0,r.openBlock)(),(0,r.createBlock)(mu,{id:(0,r.unref)(t),class:(0,r.normalizeClass)(["vc-nav-popover-container",`vc-${(0,r.unref)(n)}`,`vc-${(0,r.unref)(o)}`])},{default:(0,r.withCtx)((({data:e})=>[(0,r.createVNode)(td,{page:e.page},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(xu,{name:"nav"},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(ed)])),_:1})])),_:2},1032,["page"])])),_:1},8,["id","class"]))}}),rd=(0,r.defineComponent)({directives:{popover:Uc},components:{CalendarSlot:xu},props:{day:{type:Object,required:!0}},setup(e){const{locale:t,theme:n,attributeContext:o,dayPopoverId:i,onDayCl
2ick:a,onDayMouseenter:s,onDayMouseleave:l,onDayFocusin:c,onDayFocusout:u,onDayKeydown:d}=hu(),p=(0,r.computed)((()=>e.day)),h=(0,r.computed)((()=>o.value.getCells(p.value))),f=(0,r.computed)((()=>h.value.map((e=>e.data)))),m=(0,r.computed)((()=>({...p.value,attributes:f.value,attributeCells:h.value})));const g=(0,r.computed)((()=>{const e={...n.value.prepareRender({}),popovers:[]};return h.value.forEach((t=>{n.value.render(t,e),function({data:e},{popovers:t}){const{key:n,customData:r,popover:o}=e;if(!o)return;const i=ra({key:n,customData:r,attribute:e},{...o},{visibility:o.label?"hover":"click",placement:"bottom",isInteractive:!o.label});t.splice(0,0,i)}(t,e)})),e})),v=(0,r.computed)((()=>g.value.highlights)),y=(0,r.computed)((()=>!!Es(v.value))),b=(0,r.computed)((()=>g.value.content)),x=(0,r.computed)((()=>g.value.dots)),w=(0,r.computed)((()=>!!Es(x.value))),k=(0,r.computed)((()=>g.value.bars)),_=(0,r.computed)((()=>!!Es(k.value))),E=(0,r.computed)((()=>g.value.popovers)),C=(0,r.computed)((()=>E.value.map((e=>e.attribute)))),N=cu("day-content"),S=(0,r.computed)((()=>["vc-day",...p.value.classes,{"vc-day-box-center-center":!N},{"is-not-in-month":!e.day.inMonth}])),V=(0,r.computed)((()=>{let e;e=p.value.isFocusable?"0":"-1";return{class:["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":p.value.isDisabled},So(vs(v.value),"contentClass"),So(vs(b.value),"class")||""],style:{...So(vs(v.value),"contentStyle"),...So(vs(b.value),"style")},tabindex:e,"aria-label":p.value.ariaLabel,"aria-disabled":!!p.value.isDisabled,role:"button"}})),A=(0,r.computed)((()=>({click(e){a(m.value,e)},mouseenter(e){s(m.value,e)},mouseleave(e){l(m.value,e)},focusin(e){c(m.value,e)},focusout(e){u(m.value,e)},keydown(e){d(m.value,e)}}))),D=(0,r.computed)((()=>Es(E.value)?ra({id:i.value,data:{day:p,attributes:C.value}},...E.value):null));return{attributes:f,attributeCells:h,bars:k,dayClasses:S,dayContentProps:V,dayContentEvents:A,dayPopover:D,glyphs:g,dots:x,hasDots:w,hasBars:_,highlights:v,hasHighlights:y,locale:t,popovers:E}}}),od={key:0,class:"vc-highlights vc-day-layer"},id={key:1,class:"vc-day-layer vc-day-box-center-bottom"},ad={class:"vc-dots"},sd={key:2,class:"vc-day-layer vc-day-box-center-bottom"},ld={class:"vc-bars"};const cd=fu(rd,[["render",function(e,t,n,o,i,a){const s=(0,r.resolveComponent)("CalendarSlot"),l=(0,r.resolveDirective)("popover");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.dayClasses)},[e.hasHighlights?((0,r.openBlock)(),(0,r.createElementBlock)("div",od,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.highlights,(({key:e,wrapperClass:t,class:n,style:o})=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e,class:(0,r.normalizeClass)(t)},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(n),style:(0,r.normalizeStyle)(o)},null,6)],2)))),128))])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(s,{name:"day-content",day:e.day,attributes:e.attributes,"attribute-cells":e.attributeCells,dayProps:e.dayContentProps,dayEvents:e.dayContentEvents,locale:e.locale},{default:(0,r.withCtx)((()=>[(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",(0,r.mergeProps)(e.dayContentProps,(0,r.toHandlers)(e.dayContentEvents,!0)),[(0,r.createTextVNode)((0,r.toDisplayString)(e.day.label),1)],16)),[[l,e.dayPopover]])])),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),e.hasDots?((0,r.openBlock)(),(0,r.createElementBlock)("div",id,[(0,r.createElementVNode)("div",ad,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.dots,(({key:e,class:t,style:n})=>((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:e,class:(0,r.normalizeClass)(t),style:(0,r.normalizeStyle)(n)},null,6)))),128))])])):(0,r.createCommentVNode)("",!0),e.hasBars?((0,r.openBlock)(),(0,r.createElementBlock)("div",sd,[(0,r.createElementVNode)("div",ld,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.bars,(({key:e,class:t,style:n})=>((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:e,class:(0,r.normalizeClass)(t),style:(0,r.normalizeStyle)(n)},null,6)))),128))])])):(0,r.createCommentVNode)("",!0)],2)}]]),ud={class:"vc-weekdays"},dd=["onClick"],pd=(0,r.defineComponent)({inheritAttrs:!1,__name:"CalendarPage",setup(e){const{page:t}
2=Gu(),{onWeeknumberClick:n}=hu();return(e,o)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["vc-pane",`row-${(0,r.unref)(t).row}`,`row-from-end-${(0,r.unref)(t).rowFromEnd}`,`column-${(0,r.unref)(t).column}`,`column-from-end-${(0,r.unref)(t).columnFromEnd}`]),ref:"pane"},[(0,r.createVNode)(qu,{page:(0,r.unref)(t),"is-lg":"","hide-arrows":""},null,8,["page"]),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["vc-weeks",{[`vc-show-weeknumbers-${(0,r.unref)(t).weeknumberPosition}`]:(0,r.unref)(t).weeknumberPosition}])},[(0,r.createElementVNode)("div",ud,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(t).weekdays,(({weekday:e,label:t},n)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n,class:(0,r.normalizeClass)(`vc-weekday vc-weekday-${e}`)},(0,r.toDisplayString)(t),3)))),128))]),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(t).viewWeeks,(e=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:`weeknumber-${e.weeknumber}`,class:"vc-week"},[(0,r.unref)(t).weeknumberPosition?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["vc-weeknumber",`is-${(0,r.unref)(t).weeknumberPosition}`])},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["vc-weeknumber-content"]),onClick:t=>(0,r.unref)(n)(e,t)}
2,(0,r.toDisplayString)(e.weeknumberDisplay),9,dd)],2)):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.days,(e=>((0,r.openBlock)(),(0,r.createBlock)(cd,{key:e.id,day:e},null,8,["day"])))),128))])))),128))],2)],2))}}),hd=(0,r.defineComponent)({components:{CalendarHeader:qu,CalendarPage:pd,CalendarNavPopover:nd,CalendarDayPopover:_u,CalendarPageProvider:td,CalendarSlot:xu},props:uu,emit:["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],setup:(e,{emit:t,slots:n})=>pu(e,{emit:t,slots:n})}),fd={class:"vc-pane-header-wrapper"};const md=fu(hd,[["render",function(e,t,n,o,i,a){const s=(0,r.resolveComponent)("CalendarHeader"),l=(0,r.resolveComponent)("CalendarPage"),c=(0,r.resolveComponent)("CalendarSlot"),u=(0,r.resolveComponent)("CalendarPageProvider"),d=(0,r.resolveComponent)("CalendarDayPopover"),p=(0,r.resolveComponent)("CalendarNavPopover");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",(0,r.mergeProps)({"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},e.$attrs,{class:["vc-container",`vc-${e.view}`,`vc-${e.color}`,`vc-${e.displayMode}`,{"vc-expanded":e.expanded,"vc-bordered":!e.borderless,"vc-transparent":e.transparent}],onMouseup:t[0]||(t[0]=(0,r.withModifiers)((()=>{}),["prevent"])),ref:"containerRef"}),[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["vc-pane-container",{"in-transition":e.inTransition}])},[(0,r.createElementVNode)("div",fd,[e.firstPage?((0,r.openBlock)(),(0,r.createBlock)(s,{key:0,page:e.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):(0,r.createCommentVNode)("",!0)]),(0,r.createVNode)(r.Transition,{name:`vc-${e.transitionName}`,onBeforeEnter:e.onTransitionBeforeEnter,onAfterEnter:e.onTransitionAfterEnter},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.pages[0].id,class:"vc-pane-layout",style:(0,r.normalizeStyle)({gridTemplateColumns:`repeat(${e.columns}, 1fr)`})},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.pages,(e=>((0,r.openBlock)(),(0,r.createBlock)(u,{key:e.id,page:e},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(c,{name:"page",page:e},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(l)])),_:2},1032,["page"])])),_:2},1032,["page"])))),128))],4))])),_:1},8,["name","onBeforeEnter","onAfterEnter"]),(0,r.createVNode)(c,{name:"footer"})],2)],16),(0,r.createVNode)(d),(0,r.createVNode)(p)],64)}]]),gd=Symbol("__vc_date_picker_context__"),vd={...iu,mode:{type:String,default:"date"},modelValue:{type:[Number,String,Date,Object]},modelModifiers:{type:Object,default:()=>({})},rules:[String,Object],is24hr:Boolean,hideTimeHeader:Boolean,timeAccuracy:{type:Number,default:2},isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>Ll("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>Ll("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]};function yd(e,{emit:t,slots:n}){lu(n,{footer:"dp-footer"});const o=au(e),{locale:i,masks:a,disabledAttribute:s}=o,l=(0,r.ref)(!1),c=(0,r.ref)(Symbol()),u=(0,r.ref)(null),d=(0,r.ref)(null),p=(0,r.ref)(["",""]),h=(0,r.ref)(null),f=(0,r.ref)(null);let m,g,v=!0;const y=(0,r.computed)((()=>e.isRange||!0===e.modelModifiers.range)),b=(0,r.computed)((()=>y.value&&null!=u.value?u.value.start:null)),x=(0,r.computed)((()=>y.value&&null!=u.value?u.value.end:null)),w=(0,r.computed)((()=>"date"===e.mode.toLowerCase())),k=(0,r.computed)((()=>"datetime"===e.mode.toLowerCase())),_=(0,r.computed)((()=>"time"===e.mode.toLowerCase())),E=(0,r.computed)((()=>!!d.value)),C=(0,r.computed)((()=>{let t="date";e.modelModifiers.number&&(t="number"),e.modelModifiers.string&&(t="string");return R({type:t,mask:a.value.modelValue||"iso"})})),N=(0,r.computed)((()=>function(e){if(y.value)return[e&&e.start?i.value.getDateParts(e.start):null,e&&e.end?i.value.getDateParts(e.end):null];return[e?i.value.getDateParts(e):null]}(d.value??u.value))),S=(0,r.computed)((()=>_.value?e.is24hr?a.value.inputTime24hr:a.value.inputTime:k.value?e.is24hr?a.value.inputDateTime24hr:a.value.inputDateTime:a.value.input)),V=(0,r.computed)((()=>/[Hh]/g.test(S.value))),A=(0,r.computed)((()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(S.value))),D=(0,r.computed)((()=>V.value&&A.value?"dateTime":A.value?"date":V.value?"time":void 0)),M=(0,r.computed)((()=>{var t;const n=(null==(t=h.value)?void 0:t.$el.previousElementSibling)??void 0;return ms({},e.popover,Ll("datePicker.popover"),{target:n})})),T=(0,r.computed)((()=>zc({...M.value,id:c.value}))),B=(0,r.computed)((()=>y.value?{start:p.value[0],end:p.value[1]}:p.value[0])),O=(0,r.computed)((()=>{const t=["start","end"].map((t=>({input:X(t),change:Z(t),keyup:Q,...e.popover&&T.value})));return y.value?{start:t[0],end:t[1]}:t[0]})),P=(0,r.computed)((()=>
2{if(!H(u.value))return null;const t={key:"select-drag",...e.selectAttribute,dates:u.value,pinPage:!0},{dot:n,bar:r,highlight:o,content:i}=t;return n||r||o||i||(t.highlight=!0),t})),L=(0,r.computed)((()=>{if(!y.value||!H(d.value))return null;const t={key:"select-drag",...e.dragAttribute,dates:d.value},{dot:n,bar:r,highlight:o,content:i}=t;return n||r||o||i||(t.highlight={startEnd:{fillMode:"outline"}}),t})),I=(0,r.computed)((()=>{const t=_s(e.attributes)?[...e.attributes]:[];return L.value?t.unshift(L.value):P.value&&t.unshift(P.value),t})),j=(0,r.computed)((()=>R("auto"===e.rules?function(){const t={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},n=w.value?0:e.timeAccuracy;return[0,1].map((e=>{switch(n){case 0:return{hours:t.hr[e],minutes:t.min[e],seconds:t.sec[e],milliseconds:t.ms[e]};case 1:return{minutes:t.min[e],seconds:t.sec[e],milliseconds:t.ms[e]};case 3:return{milliseconds:t.ms[e]};case 4:return{};default:return{seconds:t.sec[e],milliseconds:t.ms[e]}}}))}():e.rules??{})));function R(e){return _s(e)?1===e.length?[e[0],e[0]]:e:[e,e]}function $(e){return R(e).map(((e,t)=>({...e,rules:j.value[t]})))}function z(e){return null!=e&&(vi(e)?!isNaN(e):ys(e)?!isNaN(e.getTime()):cn(e)?""!==e:kc(e))}function F(e){return bs(e)&&"start"in e&&"end"in e&&z(e.start??null)&&z(e.end??null)}function H(e){return F(e)||z(e)}function U(e,t){if(null==e&&null==t)return!0;if(null==e||null==t)return!1;const n=ys(e),r=ys(t);return n&&r?e.getTime()===t.getTime():!n&&!r&&(U(e.start,t.start)&&U(e.end,t.end))}function W(e,t,n,r){if(!H(e))return null;if(F(e)){return ne({start:i.value.toDate(e.start,{...t[0],fillDate:b.value??void 0,patch:n}),end:i.value.toDate(e.end,{...t[1],fillDate:x.value??void 0,patch:n})},r)}return i.value.toDateOrNull(e,{...t[0],fillDate:u.value,patch:n})}function q(e,t){return F(e)?{start:i.value.fromDate(e.start,t[0]),end:i.value.fromDate(e.end,t[1])}:y.value?null:i.value.fromDate(e,t[0])}function Y(e,t={}){return clearTimeout(m),new Promise((n=>{const{debounce:r=0,...o}=t;r>0?m=window.setTimeout((()=>{n(G(e,o))}),r):n(G(e,o))}))}function G(n,{config:o=C.value,patch:a="dateTime",clearIfEqual:l=!1,formatInput:c=!0,hidePopover:p=!1,dragging:h=E.value,targetPriority:f,moveToValue:m=!1}={}){let g=W(n,$(o),a,f);const y=function(e){return!(!H(e)||!s.value)&&s.value.intersectsRange(i.value.range(e))}(g);if(y){if(h)return null;g=u.value,p=!1}else null==g&&e.isRequired?g=u.value:null!=g&&U(u.value,g)&&l&&(g=null);const b=h?d:u,x=!U(b.value,g);b.value=g,h||(d.value=null);const w=q(g,C.value);return x&&(v=!1,t(h?"drag":"update:modelValue",w),(0,r.nextTick)((()=>v=!0))),p&&!h&&te(),c&&K(),m&&(0,r.nextTick)((()=>re(f??"start"))),w}function K(){(0,r.nextTick)((()=>{const e=$({type:"string",mask:S.value}),t=q(d.value??u.value,e);y.value?p.value=[t&&t.start,t&&t.end]:p.value=[t,""]}))}function J(e,t,n){p.value.splice("start"===t?0:1,1,e);Y(y.value?{start:p.value[0],end:p.value[1]||p.value[0]}:e,{...n,config:{type:"string",mask:S.value},patch:D.value,targetPriority:t,moveToValue:!0})}function X(t){return n=>{e.updateOnInput&&J(n.currentTarget.value,t,{formatInput:!1,hidePopover:!1,debounce:e.inputDebounce})}}function Z(e){return t=>{J(t.currentTarget.value,e,{formatInput:!0,hidePopover:!1})}}function Q(e){"Escape"===e.key&&Y(u.value,{formatInput:!0,hidePopover:!0})}function ee(t){const n={patch:"date",formatInput:!0,hidePopover:!0};if(y.value){const e=!E.value;e?g={start:t.startDate,end:t.endDate}:null!=g&&(g.end=t.date),Y(g,{...n,dragging:e})}else Y(t.date,{...n,clearIfEqual:!e.isRequired})}function te(e={}){Rc({hideDelay:10,force:!0,...M.value,...e,id:c.value})}function ne(e,t){const{start:n,end:r}=e;if(n>r)switch(t){case"start":return{start:n,end:n};case"end":return{start:r,end:r};default:return{start:r,end:n}}return{start:n,end:r}}async function re(e,t={}){const n=u.value;if(null==f.value||!H(n))return!1;const r="end"!==e,o=r?1:-1,a=kl(F(n)?r?n.start:n.end:n,"monthly",i.value);return f.value.move(a,{position:o,...t})}(0,r.watch)((()=>e.isRange),(e=>
2{e&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")}),{immediate:!0}),(0,r.watch)((()=>y.value),(()=>{G(null,{formatInput:!0})})),(0,r.watch)((()=>S.value),(()=>K())),(0,r.watch)((()=>e.modelValue),(e=>{v&&G(e,{formatInput:!0,hidePopover:!1})})),(0,r.watch)((()=>j.value),(()=>{bs(e.rules)&&G(e.modelValue,{formatInput:!0,hidePopover:!1})})),(0,r.watch)((()=>e.timezone),(()=>{G(u.value,{formatInput:!0})}));const oe=R(C.value);u.value=W(e.modelValue??null,oe,"dateTime"),(0,r.onMounted)((()=>{G(e.modelValue,{formatInput:!0,hidePopover:!1})})),(0,r.nextTick)((()=>l.value=!0));const ie={...o,showCalendar:l,datePickerPopoverId:c,popoverRef:h,popoverEvents:T,calendarRef:f,isRange:y,isTimeMode:_,isDateTimeMode:k,is24hr:(0,r.toRef)(e,"is24hr"),hideTimeHeader:(0,r.toRef)(e,"hideTimeHeader"),timeAccuracy:(0,r.toRef)(e,"timeAccuracy"),isDragging:E,inputValue:B,inputEvents:O,dateParts:N,attributes:I,rules:j,move:async function(e,t={}){return null!=f.value&&f.value.move(e,t)},moveBy:async function(e,t={}){return null!=f.value&&f.value.moveBy(e,t)},moveToValue:re,updateValue:Y,showPopover:function(e={}){jc({...M.value,...e,isInteractive:!0,id:c.value})},hidePopover:te,togglePopover:function(e){$c({...M.value,...e,isInteractive:!0,id:c.value})},onDayClick:function(e,n){ee(e),t("dayclick",e,n)},onDayKeydown:function(e,n){switch(n.key){case" ":case"Enter":ee(e),n.preventDefault();break;case"Escape":te()}t("daykeydown",e,n)},onDayMouseEnter:function(e,t){E.value&&null!=g&&(g.end=e.date,Y(ne(g),{patch:"date",formatInput:!0}))},onPopoverBeforeShow:function(e){t("popover-will-show",e)},onPopoverAfterShow:function(e){t("popover-did-show",e)},onPopoverBeforeHide:function(e){d.value=null,K(),t("popover-will-hide",e)},onPopoverAfterHide:function(e){t("popover-did-hide",e)}};return(0,r.provide)(gd,ie),ie}function bd(){const e=(0,r.inject)(gd);if(e)return e;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const xd=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],wd=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}];function kd(e){const t=bd(),{locale:n,isRange:o,isTimeMode:i,dateParts:a,rules:s,is24hr:l,hideTimeHeader:c,timeAccuracy:u,updateValue:d}=t;function p(e){e=Object.assign(f.value,e);let t=null;if(o.value){t={start:h.value?e:a.value[0],end:h.value?a.value[1]:e}}else t=e;d(t,{patch:"time",targetPriority:h.value?"start":"end",moveToValue:!0})}const h=(0,r.computed)((()=>0===e.position)),f=(0,r.computed)((()=>a.value[e.position]||{isValid:!1})),m=(0,r.computed)((()=>kc(f.value))),g=(0,r.computed)((()=>!!f.value.isValid)),v=(0,r.computed)((()=>!c.value&&g.value)),y=(0,r.computed)((()=>{if(!m.value)return null;let e=n.value.toDate(f.value);return 24===f.value.hours&&(e=new Date(e.getTime()-1)),e})),b=(0,r.computed)({get:()=>f.value.hours,set(e){p({hours:e})}}),x=(0,r.computed)({get:()=>f.value.minutes,set(e){p({minutes:e})}}),w=(0,r.computed)({get:()=>f.value.seconds,set(e){p({seconds:e})}}),k=(0,r.computed)({get:()=>f.value.milliseconds,set(e){p({milliseconds:e})}}),_=(0,r.computed)({get:()=>f.value.hours<12,set(e){e="true"==String(e).toLowerCase();let t=b.value;e&&t>=12?t-=12:!e&&t<12&&(t+=12),p({hours:t})}}),E=(0,r.computed)((()=>function(e,t){return{milliseconds:Oc(e,pc.milliseconds,t.milliseconds),seconds:Oc(e,pc.seconds,t.seconds),minutes:Oc(e,pc.minutes,t.minutes),hours:Oc(e,pc.hours,t.hours)}}(f.value,s.value[e.position]))),C=(0,r.computed)((()=>xd.filter((e=>E.value.hours.some((t=>t.value===e.value)))))),N=(0,r.computed)((()=>wd.filter((e=>E.value.hours.some((t=>t.value===e.value)))))),S=(0,r.computed)((()=>l.value?E.value.hours:_.value?C.value:N.value)),V=(0,r.computed)((()=>{const e=[];return Es(C.value)&&e.push({value:!0,label:"AM"}),Es(N.value)&&e.push({value:!1,label:"PM"}),e}));return{...t,showHeader:v,timeAccuracy:u,parts:f,isValid:g,date:y,hours:b,minutes:x,seconds:w,milliseconds:k,options:E,hourOptions:S,isAM:_,isAMOptions:V,is24hr:l}}const _d=["value"],Ed=["value","disabled"],Cd={key:1,class:"vc-base-sizer","aria-hidden":"true"},Nd=(0,r.defineComponent)({inheritAttrs:!1,__name:"BaseSelect",props:{options:null,modelValue:null,alignRight:{type:Boolean},alignLeft:{type:Boolean},showIcon:{type:Boolean},fitContent:{type:Boolean}},emits:["update:modelValue"],setup(e){const t=e,n=(0,r.computed)((()=>{const e=t.options.find((e=>e.value===t.modelValue));return null==e?void 0:e.label}));return(t,o)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["vc-base-select",{"vc-fit-content":e.fitContent,"vc-has-icon":e.showIcon}])},[(0,r.createElementVNode)("select",(0,r.mergeProps)(t.$attrs,{value:e.modelValue,class:["vc-focus",{"vc-align-right":e.alignRight,"vc-align-left":e.alignLeft}],onChange:o[0]||(o[0]=e=>t.$emit("update:modelValue",e.target.value))}),[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.options,
2(e=>((0,r.openBlock)(),(0,r.createElementBlock)("option",{key:e.value,value:e.value,disabled:e.disabled},(0,r.toDisplayString)(e.label),9,Ed)))),128))],16,_d),e.showIcon?((0,r.openBlock)(),(0,r.createBlock)(zu,{key:0,name:"ChevronDown",size:"18"})):(0,r.createCommentVNode)("",!0),e.fitContent?((0,r.openBlock)(),(0,r.createElementBlock)("div",Cd,(0,r.toDisplayString)((0,r.unref)(n)),1)):(0,r.createCommentVNode)("",!0)],2))}}),Sd={key:0,class:"vc-time-header"},Vd={class:"vc-time-weekday"},Ad={class:"vc-time-month"},Dd={class:"vc-time-day"},Md={class:"vc-time-year"},Td={class:"vc-time-select-group"},Bd=(0,r.createElementVNode)("span",{class:"vc-time-colon"},":",-1),Od=(0,r.createElementVNode)("span",{class:"vc-time-colon"},":",-1),Pd=(0,r.createElementVNode)("span",{class:"vc-time-decimal"},".",-1),Ld=(0,r.defineComponent)({__name:"TimePicker",props:{position:null},setup(e,{expose:t}){const n=kd(e);t(n);const{locale:o,isValid:i,date:a,hours:s,minutes:l,seconds:c,milliseconds:u,options:d,hourOptions:p,isTimeMode:h,isAM:f,isAMOptions:m,is24hr:g,showHeader:v,timeAccuracy:y}=n;return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["vc-time-picker",[{"vc-invalid":!(0,r.unref)(i),"vc-attached":!(0,r.unref)(h)}]])},[(0,r.createVNode)(xu,{name:"time-header"},{default:(0,r.withCtx)((()=>[(0,r.unref)(v)&&(0,r.unref)(a)?((0,r.openBlock)(),(0,r.createElementBlock)("div",Sd,[(0,r.createElementVNode)("span",Vd,(0,r.toDisplayString)((0,r.unref)(o).formatDate((0,r.unref)(a),"WWW")),1),(0,r.createElementVNode)("span",Ad,(0,r.toDisplayString)((0,r.unref)(o).formatDate((0,r.unref)(a),"MMM")),1),(0,r.createElementVNode)("span",Dd,(0,r.toDisplayString)((0,r.unref)(o).formatDate((0,r.unref)(a),"D")),1),(0,r.createElementVNode)("span",Md,(0,r.toDisplayString)((0,r.unref)(o).formatDate((0,r.unref)(a),"YYYY")),1)])):(0,r.createCommentVNode)("",!0)])),_:1}),(0,r.createElementVNode)("div",Td,[(0,r.createVNode)(zu,{name:"Clock",size:"17"}),(0,r.createVNode)(Nd,{modelValue:(0,r.unref)(s),"onUpdate:modelValue":t[0]||(t[0]=e=>(0,r.isRef)(s)?s.value=e:null),modelModifiers:{number:!0},options:(0,r.unref)(p),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),(0,r.unref)(y)>1?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[Bd,(0,r.createVNode)(Nd,{modelValue:(0,r.unref)(l),"onUpdate:modelValue":t[1]||(t[1]=e=>(0,r.isRef)(l)?l.value=e:null),modelModifiers:{number:!0},options:(0,r.unref)(d).minutes,class:"vc-time-select-minutes","align-left":2===(0,r.unref)(y)},null,8,["modelValue","options","align-left"])],64)):(0,r.createCommentVNode)("",!0),(0,r.unref)(y)>2?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[Od,(0,r.createVNode)(Nd,{modelValue:(0,r.unref)(c),"onUpdate:modelValue":t[2]||(t[2]=e=>(0,r.isRef)(c)?c.value=e:null),modelModifiers:{number:!0},options:(0,r.unref)(d).seconds,class:"vc-time-select-seconds","align-left":3===(0,r.unref)(y)},null,8,["modelValue","options","align-left"])],64)):(0,r.createCommentVNode)("",!0),(0,r.unref)(y)>3?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},[Pd,(0,r.createVNode)(Nd,{modelValue:(0,r.unref)(u),"onUpdate:modelValue":t[3]||(t[3]=e=>(0,r.isRef)(u)?u.value=e:null),modelModifiers:{number:!0},options:(0,r.unref)(d).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):(0,r.createCommentVNode)("",!0),(0,r.unref)(g)?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(Nd,{key:3,modelValue:(0,r.unref)(f),"onUpdate:modelValue":t[4]||(t[4]=e=>(0,r.isRef)(f)?f.value=e:null),options:(0,r.unref)(m)},null,8,["modelValue","options"]))])],2))}}),Id=(0,r.defineComponent)({__name:"DatePickerBase",setup(e){const{attributes:t,calendarRef:n,color:o,displayMode:i,isDateTimeMode:a,isTimeMode:s,isRange:l,onDayClick:c,onDayMouseEnter:u,onDayKeydown:d}=bd(),p=l.value?[0,1]:[0];return(e,l)=>(0,r.unref)(s)?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(`vc-container vc-bordered vc-${(0,r.unref)(o)} vc-${(0,r.unref)(i)}`)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(p),(e=>((0,r.openBlock)(),(0,r.createBlock)(Ld,{key:e,position:e},null,8,["position"])))),128))],2)):((0,r.openBlock)(),(0,r.createBlock)(md,{key:1,attributes:(0,r.unref)(t),ref_key:"calendarRef",ref:n,onDayclick:(0,r.unref)(c),onDaymouseenter:(0,r.unref)(u),onDaykeydown:(0,r.unref)(d)},{footer:(0,r.withCtx)((()=>[(0,r.unref)(a)?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)((0,r.unref)(p),(e=>((0,r.openBlock)(),(0,r.createBlock)(Ld,{key:e,position:e},null,8,["position"])))),128)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(xu,{name:"dp-footer"}
2)])),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),jd=(0,r.defineComponent)({inheritAttrs:!1,__name:"DatePickerPopover",setup(e){const{datePickerPopoverId:t,color:n,displayMode:o,popoverRef:i,onPopoverBeforeShow:a,onPopoverAfterShow:s,onPopoverBeforeHide:l,onPopoverAfterHide:c}=bd();return(e,u)=>((0,r.openBlock)(),(0,r.createBlock)(mu,{id:(0,r.unref)(t),placement:"bottom-start",class:(0,r.normalizeClass)(`vc-date-picker-content vc-${(0,r.unref)(n)} vc-${(0,r.unref)(o)}`),ref_key:"popoverRef",ref:i,onBeforeShow:(0,r.unref)(a),onAfterShow:(0,r.unref)(s),onBeforeHide:(0,r.unref)(l),onAfterHide:(0,r.unref)(c)},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(Id,(0,r.normalizeProps)((0,r.guardReactiveProps)(e.$attrs)),null,16)])),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}});const Rd=fu((0,r.defineComponent)({inheritAttrs:!1,emits:["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"],props:vd,components:{DatePickerBase:Id,DatePickerPopover:jd},setup(e,t){const n=yd(e,t),o=(0,r.reactive)(Ds(n,"calendarRef","popoverRef"));return{...n,slotCtx:o}}}),[["render",function(e,t,n,o,i,a){const s=(0,r.resolveComponent)("DatePickerPopover"),l=(0,r.resolveComponent)("DatePickerBase");return e.$slots.default?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.renderSlot)(e.$slots,"default",(0,r.normalizeProps)((0,r.guardReactiveProps)(e.slotCtx))),(0,r.createVNode)(s,(0,r.normalizeProps)((0,r.guardReactiveProps)(e.$attrs)),null,16)],64)):((0,r.openBlock)(),(0,r.createBlock)(l,(0,r.normalizeProps)((0,r.mergeProps)({key:1},e.$attrs)),null,16))}]]);Symbol.toStringTag},4211:(e,t,n)=>{"use strict";let r=n(3604),o=n(9577);const i=n(3717);let a=n(3303);n(6156);class s{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=o;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,n){let o;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let s=a;this.result=new i(this._processor,o,this._opts),this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let c=new r(s,o,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}}e.exports=s,s.default=s},4260:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,"[contenteditable]:focus-visible{outline:0 solid transparent!important}",""]);const i=o},4281:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".text-input-wrapper[data-v-64aac95f]{min-width:75px}",""]);const i=o},4296:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6301),o=["value"];const i=(0,n(641).pM)({props:["modelValue"],emits:["update:modelValue"],methods:{focus:function(){this.$refs.input.focus()}}});const a=(0,n(6262).A)(i,[["render",function(e,t,n,i,a,s){return(0,r.openBlock)(),(0,r.createElementBlock)("input",{class:"border-gray-300 focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 rounded-md shadow-sm",value:e.modelValue,onInput:t[0]||(t[0]=function(t){return e.$emit("update:modelValue",t.target.value)}),ref:"input"},null,40,o)}]])},4312:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6301),o=["type"];const i=(0,n(641).pM)({props:{type:{type:String,default:"button"}}});const a=(0,n(6262).A)(i,[["render",function(e,t,n,i,a,s){return(0,r.openBlock)(),(0,r.createElementBlock)("button",{type:e.type,class:"inline-flex items-center px-4 py-2 bg-white border border-gray-300 rounded-md font-semibold text-xs text-gray-700 uppercase tracking-widest shadow-sm hover:text-gray-500 focus:outline-none focus:border-blue-300 focus:ring focus:ring-blue-200 active:text-gray-800 active:bg-slate-50 disabled:opacity-25 transition"},[(0,r.renderSlot)(e.$slots,"default")],8,o)}]])},4347:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));
vendor: 4,463 bytes, line 2
2o.push([e.id,"ul[data-v-6f8392b1]{list-style-type:none;margin:0;max-width:inherit;max-width:500px;padding:0;width:auto}li[data-v-6f8392b1]{padding:10px 15px}li[data-v-6f8392b1]:hover{background-color:#f3f4f6}ul[data-v-6f8392b1]::-webkit-scrollbar{width:10px}ul[data-v-6f8392b1]::-webkit-scrollbar-track{background:#f1f1f1}ul[data-v-6f8392b1]::-webkit-scrollbar-thumb{background:#888}ul[data-v-6f8392b1]::-webkit-scrollbar-thumb:hover{background:#555}",""]);const i=o},4353:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",p="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:p,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",x={};x[b]=g;var w="$isDayjsObject",k=function(e){return e instanceof N||!(!e||!e[w])},_=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();x[i]&&(o=i),n&&(x[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;x[s]=t,o=s}return!r&&o&&(b=o),o||!r&&b},E=function(e,t){if(k(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new N(n)},C=y;C.l=_,C.i=k,C.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var N=function(){function g(e){this.$L=_(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(e,t){var n=E(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return E(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<E(e)},v.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!C.u(t)||t,u=C.p(e),h=function(e,t){var o=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},f=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?h(1,0):h(31,11);case c:return r?h(1,g):h(0,g+1);case l:var b=this.$locale().weekStart||0,x=(m<b?m+7:m)-b;return h(r?v-x:v+(6-x),g);case s:case p:return f(y+"Hours",0);case a:return f(y+"Minutes",1);case i:return f(y+"Seconds",2);case o:return f(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=C.p(e),u="set"+(this.$u?"UTC":""),h=(n={},n[s]=u+"Date",n[p]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],f=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(p,1);
2m.$d[h](f),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[C.p(e)]()},v.add=function(r,u){var p,h=this;r=Number(r);var f=C.p(u),m=function(e){var t=E(h);return C.w(t.date(t.date()+Math.round(e*r)),h)};if(f===c)return this.set(c,this.$M+r);if(f===d)return this.set(d,this.$y+r);if(f===s)return m(1);if(f===l)return m(7);var g=(p={},p[i]=t,p[a]=n,p[o]=e,p)[f]||1,v=this.$d.getTime()+r*g;return C.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=C.z(this),i=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},p=function(e){return C.s(i%12||12,e,"0")},f=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return C.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return f(i,a,!0);case"A":return f(i,a,!1);case"m":return String(a);case"mm":return C.s(a,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,p,h){var f,m=this,g=C.p(p),v=E(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,x=function(){return C.m(m,v)};switch(g){case d:f=x()/12;break;case c:f=x();break;case u:f=x()/3;break;case l:f=(b-y)/6048e5;break;case s:f=(b-y)/864e5;break;case a:f=b/n;break;case i:f=b/t;break;case o:f=b/e;break;default:f=b}return h?f:C.a(f)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return x[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=_(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),S=N.prototype;return E.prototype=S,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",s],["$M",c],["$y",d],["$D",p]].forEach((function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),E.extend=function(e,t){return e.$i||(e(t,N,E),e.$i=!0),E},E.locale=_,E.isDayjs=k,E.unix=function(e){return E(1e3*e)},E.en=x[b],E.Ls=x,E.p={},E}()},4443:(e,t,n)=>{var r,o=(r=n(5947))&&"object"==typeof r&&"default"in r?r.default:r,i=null;function a(e){document.addEventListener("inertia:start",s.bind(null,e)),document.addEventListener("inertia:progress",l),document.addEventListener("inertia:finish",c)}function s(e){i=setTimeout((function(){return o.start()}),e)}function l(e){o.isStarted()&&e.detail.progress.percentage&&o.set(Math.max(o.status,e.detail.progress.percentage/100*.9))}function c(e){clearTimeout(i),o.isStarted()&&(e.detail.visit.completed?o.done():e.detail.visit.interrupted?o.set(0):e.detail.visit.cancelled&&(o.done(),o.remove()))}t.y={init:function(e){var t=void 0===e?{}:e,n=t.delay,r=t.color,i=void 0===r?"#29d":r,s=t.includeCSS,l=void 0===s||s,c=t.showSpinner,u=void 0!==c&&c;a(void 0===n?250:n),o.configure({showSpinner:u}),l&&function(e){var t=document.createElement("style");t.type="text/css",t.textContent="\n #nprogress {\n pointer-events: none;\n }\n\n #nprogress .bar {\n background: "+e+";\n\n position: fixed;\n z-index: 1031;\n top: 0;\n left: 0;\n\n width: 100%;\n height: 2px;\n }\n\n #nprogress .peg {\n display: block;\n position: absolute;\n right: 0px;\n width: 100px;\n height: 100%;\n box-shadow: 0 0 10px "+e+", 0 0 5px "+e+";\n opacity: 1.0;\n\n -webkit-transform: rotate(3deg) translate(0px, -4px);\n -ms-transform: rotate(3deg) translate(0px, -4px);\n transform: rotate(3deg) translate(0px, -4px);\n }\n\n #nprogress .spinner {\n display: block;\n position: fixed;\n z-index: 1031;\n top: 15px;\n right: 15px;\n }\n\n #nprogress .spinner-icon {\n width: 18px;\n height: 18px;\n box-sizing: border-box;\n\n border: solid 2px transparent;\n border-top-color: "+e+";\n border-left-color: "+e+";\n border-radius: 50%;\n\n -webkit-animation: nprogress-spinner 400ms linear infinite;\n animation: nprogress-spinner 400ms linear infinite;\n }\n\n .nprogress-custom-parent {\n overflow: hidden;\n position: relative;\n }\n\n .nprogress-custom-parent #nprogress .spinner,\n .nprogress-custom-parent #nprogress .bar {\n position: absolute;\n }\n\n @-webkit-keyframes nprogress-spinner {\n 0% { -webkit-transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); }\n }\n @keyframes nprogress-spinner {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n ",document.head.appendChild(t)}(i)}}},4459:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},4490:(e,t,n)=>{"use strict";var r=n(9516),o=n(2881),i=n(3864),a=n(6987);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4551:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6301),o={class:"py-2 w-full font-medium text-gray-900"},i=["disabled","name","value","checked"],a=["disabled","name","value","checked"];const s=(0,n(641).pM)({data:function(){return{localValue:""}},emits:["update:modelValue"],props:{type:{type:String,default:"default"},value:[String,Number,Boolean],values:{type:Array},classesList:{type:String},disabled:{type:Boolean,default:!1}},created:function(){var e=this;this.localValue=this.value,this.$watch("localValue",(function(t){e.$emit("update:modelValue",t)}))}});const l=(0,n(6262).A)(s,[["render",function(e,t,n,s,l,c){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.classesList)},["bordered"===this.type?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)(e.values,(function(n,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:a,class:"flex items-center px-4 roun
2ded border border-gray-200"},[(0,r.createElementVNode)("label",o,[(0,r.withDirectives)((0,r.createElementVNode)("input",{style:(0,r.normalizeStyle)([1==e.disabled?"opacity:0.5":null]),type:"radio",disabled:e.disabled,name:n.name,value:n.value,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.localValue=t}),checked:n.value===e.value,class:"w-4 h-4 mr-2 text-cm-primary bg-gray-100 border-gray-300 ring-gray-200 focus:ring-gray-500 focus:ring-2"},null,12,i),[[r.vModelRadio,e.localValue]]),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(n.label),1)])])})),128)):(0,r.createCommentVNode)("",!0),"default"===this.type?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(e.values,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("label",{key:o},[(0,r.withDirectives)((0,r.createElementVNode)("input",{style:(0,r.normalizeStyle)([1==e.disabled?"opacity:0.5":null]),type:"radio",disabled:e.disabled,name:n.name,value:n.value,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.localValue=t}),checked:n.value===e.value,class:"w-4 h-4 mr-2 text-cm-primary bg-gray-100 border-gray-300 ring-gray-200 focus:ring-gray-500 focus:ring-2"},null,12,a),[[r.vModelRadio,e.localValue]]),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(n.label),1)])})),128)):(0,r.createCommentVNode)("",!0)],2)}]])},4633:(e,t,n)=>{"use strict";n.d(t,{A:()=>M});var r=n(6301),o={class:"flex items-center rounded-full text-lg text-gray-600 font-medium hover:text-cm-primary transition-colors"},i={key:1,fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-7 h-7"},a={key:2,class:"pl-2"},s={key:3,class:"absolute -top-1 -right-1 bg-red-700 rounded-full text-xs text-white p-1 h-4 w-4 min-w-min",style:{"line-height":"7px"}},l={class:"text-md"},c={class:"border-b p-4 flex items-center bg-slate-50 rounded-t-md"},u={class:"ml-2"},d={key:1,class:"bi bi-dot text-slate-600"},p={class:"py-4"},h={key:0,class:"text-sm px-3 pb-2"},f={class:"hover:bg-slate-50 flex gap-x-4 items-center p-3"},m=["src"],g=["src"],v={class:"text-sm"},y={key:0,class:"font-bold"},b={key:1,class:"font-bold"},x={key:2},w={key:3},k={class:"text-sm"},_={key:0,class:"bi bi-heart-fill"},E={key:1,class:"bi bi-chat-right-dots"},C={class:"text-left mt-2 px-3"};var N=n(641),S=n(1857),V=n(9506),A=n(4799);const D=(0,N.pM)({components:{JetDropdown:S.A,LmProfilPictureWithName:A.A,LmInputText:V.zX},methods:{logout:function(){this.$inertia.post(route("logout"))},readNotification:function(e){var t=this;this.$inertia.post(route("notification.markread",{commune:this.$page.props.commune.slug}),{notification_id:e.notification_id,target_url:e.target_url},{onError:function(){return t.emitter.emit("lm-notification",{category:"error",text:t.__("Une erreur s'est produite.")})},preserveScroll:!0,preserveState:!1})}},data:function(){return{form:{email:"",password:"",remember:!1}}}});const M=(0,n(6262).A)(D,[["render",function(e,t,n,N,S,V){var A=(0,r.resolveComponent)("LmProfilPictureWithName"),D=(0,r.resolveComponent)("Link"),M=(0,r.resolveComponent)("jet-dropdown");return(0,r.openBlock)(),(0,r.createBlock)(M,{width:e.$page.props.user?"80":"auto",contentClasses:"bg-white"},{trigger:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",o,[e.$page.props.user?((0,r.openBlock)(),(0,r.createBlock)(A,{key:0,size:"md","image-url":e.$page.props.user.profile_photo_url,alt:e.$page.props.user.fullName},null,8,["image-url","alt"])):((0,r.openBlock)(),(0,r.createElementBlock)("svg",i,t[1]||(t[1]=[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0012 15.75a7.488 7.488 0 00-5.982 2.975m11.963 0a9 9 0 10-11.963 0m11.963 0A8.966 8.966 0 0112 21a8.966 8.966 0 01-5.982-2.275M15 9.75a3 3 0 11-6 0 3 3 0 016 0z"},null,-1)]))),e.$page.props.user?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("span",a,"Se connecter")),e.$page.props.user&&e.$page.props.unreadnotifications&&0!==e.$page.props.unreadnotifications.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,(0,r.toDisplayString)(e.$page.props.unreadnotifications.length),1)):(0,r.createCommentVNode)("",!0)])]})),content:(0,r.withCtx)((function(){var n,o,i,a,s;return[(0,r.createElementVNode)("div",l,[e.$page.props.user?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createElementVNode)("div",c,[(0,r.createVNode)(D,{href:e.route("profile.show",{commune:null===(n=e.$page.props.commune)||void 0===n?void 0:n.slug})},{default:(0,r.withCtx)((function(){return[e.$page.props.user?((0,r.openBlock)(),(0,r.createBlock)(A,{key:0,size:"lg","image-url":e.$page.props.user.profile_photo_url,alt:e.$page.props.user.fullName},null,8,["image-url","alt"])):(0,r.createCommentVNode)("",!0)]})),_:1},8,["href"]),(0,r.createElementVNode)("div",u,[(0,r.createVNode)(D,{href:e.route("profile.show",{commune:null===(o=e.$page.props.commune)||void 0===o?void 0:o.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(e.$page.props.user.fullName),1)]})),_:1},8,["href"]),e.route().current("manager.*")?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(D,{key:0,class:"text-sm text-gray-500 hover:text-cm-primary transition-colors",href:e.route("profile.show",{commune:null===(i=e.$page.props.commune)||void 0===i?void 0:i.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Mein Profil")),1)]})),_:1},8,["href"])),!e.$page.props.user||1!=e.$page.props.role&&2!=e.$page.props.role&&!e.$page.props.user.superadmin||e.route().current("admin.*")||e.route().current("manager.*")?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("i",d)),!e.$page.props.user||1!=e.$page.props.role&&2!=e.$page.props.role&&!e.$page.props.user.superadmin||e.route().current("admin.*")||e.route().current("manager.*")?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(D,{key:2,class:"text-sm text-gray-500 hover:text-cm-primary transition-colors mr-3",href:e.route("admin.index",{commune:null===(a=e.$page.props.commune)||void 0===a?void 0:a.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Admin-Bereich")),1)]})),_:1},8,["href"]))])]),(0,r.createElementVNode)("div",p,[e.$page.props.user&&e.$page.props.unreadnotifications?((0,r.openBlock)(),(0,r.createElementBlock)("p",h,(0,r.toDisplayString)(e.$page.props.unreadnotifications.length)+" "+(0,r.toDisplayString)(e.__("neue Benachrichtigungen")),1)):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.$page.props.unreadnotifications,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n.id},[o<3?((0,r.openBlock)(),(0,r.createBlock)(D,{key:0,onClick:function(t){return e.readNotification({commune:e.$page.props.commune.slug,notification_id:n.id,target_url:n.data.url})},href:n.data.url},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",f,[(0,r.createElementVNode)("div",null,[n.data.user_from?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,class:"h-8 w-8 rounded-full object-cover mr-4",src:n.data.user_from.profile_photo_url,alt:"User avatar"},null,8,m)):((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:1,class:"h-8 w-8 rounded-full mr-4",alt:"User avatar",src:"https://eu.ui-avatars.c
2om/api/?name=".concat(e.$page.props.user.first_name,"&background=random")},null,8,g))]),(0,r.createElementVNode)("div",v,[n.data.user_from?((0,r.openBlock)(),(0,r.createElementBlock)("span",y,(0,r.toDisplayString)(n.data.user_from.fullName),1)):((0,r.openBlock)(),(0,r.createElementBlock)("span",b,(0,r.toDisplayString)(e.__("Anonyme")),1)),t[2]||(t[2]=(0,r.createElementVNode)("div",{class:"inline-block mr-1"},null,-1)),"App\\Notifications\\AnnonceLikedNotification"===n.type?((0,r.openBlock)(),(0,r.createElementBlock)("span",x,(0,r.toDisplayString)(e.__("hat deine Anzeige geliked.")),1)):(0,r.createCommentVNode)("",!0),"App\\Notifications\\AnnonceCommentedNotification"===n.type?((0,r.openBlock)(),(0,r.createElementBlock)("span",w,(0,r.toDisplayString)(e.__("hat deine Anzeige kommentiert.")),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",k,["App\\Notifications\\AnnonceLikedNotification"===n.type?((0,r.openBlock)(),(0,r.createElementBlock)("i",_)):(0,r.createCommentVNode)("",!0),"App\\Notifications\\AnnonceCommentedNotification"===n.type?((0,r.openBlock)(),(0,r.createElementBlock)("i",E)):(0,r.createCommentVNode)("",!0)])])]})),_:2},1032,["onClick","href"])):(0,r.createCommentVNode)("",!0)])})),128)),(0,r.createElementVNode)("div",C,[e.route().current("manager.*")?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(D,{key:0,class:"text-sm text-gray-500 hover:text-cm-primary transition-colors",href:e.route("profile.notifications",{commune:null===(s=e.$page.props.commune)||void 0===s?void 0:s.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Alle ansehen")),1)]})),_:1},8,["href"]))])]),(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(){return e.logout&&e.logout.apply(e,arguments)}),class:"border-t w-full py-2 flex justify-center items-center bg-slate-50 text-slate-600 rounded-b-md text-sm"},[(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(e.__("Abmelden")),1)])],64)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createVNode)(D,{class:"block hover:text-cm-primary transition-colors border-b px-8 py-2 last:border-none",href:e.route("login")},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Anmelden")),1)]})),_:1},8,["href"]),(0,r.createVNode)(D,{class:"block hover:text-cm-primary transition-colors border-b px-8 py-2 last:border-none",href:e.route("register")},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Registrieren")),1)]})),_:1},8,["href"])],64))])]})),_:1},8,["width"])}]])},4634:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},4680:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4702:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".drag-trigger[data-v-648c647f]{cursor:move}",""]);const i=o},4728:(e,t,n)=>{const r=n(6808),o=n(2834),{isPlainObject:i}=n(8682),a=n(4744),s=n(9466),{parse:l}=n(2895),c=["img","audio","video","picture","svg","object","map","iframe","embed"],u=["script","style"];function d(e,t){e&&Object.keys(e).forEach((function(n){t(e[n],n)}))}function p(e,t){return{}.hasOwnProperty.call(e,t)}function h(e,t){const n=[];return d(e,(function(e){t(e)&&n.push(e)})),n}e.exports=m;const f=/^[^\0\t\n\f\r /<=>]+$/;function m(e,t,n){if(null==e)return"";"number"==typeof e&&(e=e.toString());let v="",y="";function b(e,t){const n=this;this.tag=e,this.attribs=t||{},this.tagPosition=v.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(D.length){D[D.length-1].text+=n.text}},this.updateParentNodeMediaChildren=function(){if(D.length&&c.includes(this.tag)){D[D.length-1].mediaChildren.push(this.tag)}}}(t=Object.assign({},m.defaults,t)).parser=Object.assign({},g,t.parser);const x=function(e){return!1===t.allowedTags||(t.allowedTags||[]).indexOf(e)>-1};u.forEach((function(e){x(e)&&!t.allowVulnerableTags&&console.warn(`\n\nâ ï¸ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const w=t.nonTextTags||["script","style","textarea","option"];let k,_;t.allowedAttributes&&(k={},_={},d(t.allowedAttributes,(function(e,t){k[t]=[];const n=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(o(e).replace(/\\\*/g,".*")):k[t].push(e)})),n.length&&(_[t]=new RegExp("^("+n.join("|")+")$"))})));const E={},C={},N={};
vendor: 2,464 bytes, line 2
2d(t.allowedClasses,(function(e,t){if(k&&(p(k,t)||(k[t]=[]),k[t].push("class")),E[t]=e,Array.isArray(e)){const n=[];E[t]=[],N[t]=[],e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(o(e).replace(/\\\*/g,".*")):e instanceof RegExp?N[t].push(e):E[t].push(e)})),n.length&&(C[t]=new RegExp("^("+n.join("|")+")$"))}}));const S={};let V,A,D,M,T,B,O;d(t.transformTags,(function(e,t){let n;"function"==typeof e?n=e:"string"==typeof e&&(n=m.simpleTransform(e)),"*"===t?V=n:S[t]=n}));let P=!1;I();const L=new r.Parser({onopentag:function(e,n){if(t.enforceHtmlBoundary&&"html"===e&&I(),B)return void O++;const r=new b(e,n);D.push(r);let o=!1;const c=!!r.text;let u;if(p(S,e)&&(u=S[e](e,n),r.attribs=n=u.attribs,void 0!==u.text&&(r.innerText=u.text),e!==u.tagName&&(r.name=e=u.tagName,T[A]=u.tagName)),V&&(u=V(e,n),r.attribs=n=u.attribs,e!==u.tagName&&(r.name=e=u.tagName,T[A]=u.tagName)),(!x(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(p(e,t))return!1;return!0}(M)||null!=t.nestingLimit&&A>=t.nestingLimit)&&(o=!0,M[A]=!0,"discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||-1!==w.indexOf(e)&&(B=!0,O=1)),A++,o){if("discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode){if(r.innerText&&!c){const n=j(r.innerText);t.textFilter?v+=t.textFilter(n,e):v+=n,P=!0}return}y=v,v=""}v+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(r.innerText=""),(!k||p(k,e)||k["*"])&&d(n,(function(n,o){if(!f.test(o))return void delete r.attribs[o];if(""===n&&!t.allowedEmptyAttributes.includes(o)&&(t.nonBooleanAttributes.includes(o)||t.nonBooleanAttributes.includes("*")))return void delete r.attribs[o];let c=!1;if(!k||p(k,e)&&-1!==k[e].indexOf(o)||k["*"]&&-1!==k["*"].indexOf(o)||p(_,e)&&_[e].test(o)||_["*"]&&_["*"].test(o))c=!0;else if(k&&k[e])for(const t of k[e])if(i(t)&&t.name&&t.name===o){c=!0;let e="";if(!0===t.multiple){const r=n.split(" ");for(const n of r)-1!==t.values.indexOf(n)&&(""===e?e=n:e+=" "+n)}else t.values.indexOf(n)>=0&&(e=n);n=e}if(c){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(o)&&R(e,n))return void delete r.attribs[o];if("script"===e&&"src"===o){let e=!0;try{const r=$(n);if(t.allowedScriptHostnames||t.allowedScriptDomains){const n=(t.allowedScriptHostnames||[]).find((function(e){return e===r.url.hostname})),o=(t.allowedScriptDomains||[]).find((function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)}));e=n||o}
2}catch(t){e=!1}if(!e)return void delete r.attribs[o]}if("iframe"===e&&"src"===o){let e=!0;try{const r=$(n);if(r.isRelativeUrl)e=p(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const n=(t.allowedIframeHostnames||[]).find((function(e){return e===r.url.hostname})),o=(t.allowedIframeDomains||[]).find((function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)}));e=n||o}}catch(t){e=!1}if(!e)return void delete r.attribs[o]}if("srcset"===o)try{let e=s(n);if(e.forEach((function(e){R("srcset",e.url)&&(e.evil=!0)})),e=h(e,(function(e){return!e.evil})),!e.length)return void delete r.attribs[o];n=h(e,(function(e){return!e.evil})).map((function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")})).join(", "),r.attribs[o]=n}catch(e){return void delete r.attribs[o]}if("class"===o){const t=E[e],i=E["*"],s=C[e],l=N[e],c=N["*"],u=[s,C["*"]].concat(l,c).filter((function(e){return e}));if(!(n=z(n,t&&i?a(t,i):t||i,u)).length)return void delete r.attribs[o]}if("style"===o)if(t.parseStyleAttributes)try{const i=function(e,t){if(!t)return e;const n=e.nodes[0];let r;r=t[n.selector]&&t["*"]?a(t[n.selector],t["*"]):t[n.selector]||t["*"];r&&(e.nodes[0].nodes=n.nodes.reduce(function(e){return function(t,n){if(p(e,n.prop)){e[n.prop].some((function(e){return e.test(n.value)}))&&t.push(n)}return t}}(r),[]));return e}(l(e+" {"+n+"}",{map:!1}),t.allowedStyles);if(n=function(e){return e.nodes[0].nodes.reduce((function(e,t){return e.push(`${t.prop}:${t.value}${t.important?" !important":""}`),e}),[]).join(";")}(i),0===n.length)return void delete r.attribs[o]}catch(t){return"undefined"!=typeof window&&console.warn('Failed to parse "'+e+" {"+n+"}\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547"),void delete r.attribs[o]}else if(t.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");v+=" "+o,n&&n.length?v+='="'+j(n,!0)+'"':t.allowedEmptyAttributes.includes(o)&&(v+='=""')}else delete r.attribs[o]})),-1!==t.selfClosing.indexOf(e)?v+=" />":(v+=">",!r.innerText||c||t.textFilter||(v+=j(r.innerText),P=!0)),o&&(v=y+j(v),y=""),r.openingTagLength=v.length-r.tagPosition},ontext:function(e){if(B)return;const n=D[D.length-1];let r;if(n&&(r=n.tag,e=void 0!==n.innerText?n.innerText:e),"completelyDiscard"!==t.disallowedTagsMode||x(r))if("discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||"script"!==r&&"style"!==r){if(!P){const n=j(e,!1);t.textFilter?v+=t.textFilter(n,r):v+=n}}else v+=e;else e="";if(D.length){D[D.length-1].text+=e}},onclosetag:function(e,n){if(B){if(O--,O)return;B=!1}const r=D.pop();if(!r)return;if(r.tag!==e)return void D.push(r);B=!!t.enforceHtmlBoundary&&"html"===e,A--;const o=M[A];if(o){if(delete M[A],"discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode)return void r.updateParentNodeText();y=v,v=""}if(T[A]&&(e=T[A],delete T[A]),t.exclusiveFilter){const e=t.exclusiveFilter(r);if("excludeTag"===e)return o&&(v=y,y=""),void(v=v.substring(0,r.tagPosition)+v.substring(r.tagPosition+r.openingTagLength));if(e)return void(v=v.substring(0,r.tagPosition))}r.updateParentNodeMediaChildren(),r.updateParentNodeText(),-1!==t.selfClosing.indexOf(e)||n&&!x(e)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0?o&&(v=y,y=""):(v+="</"+e+">",o&&(v=y+j(v),y=""),P=!1)}},t.parser);return L.write(e),L.end(),v;function I(){v="",A=0,D=[],M={},T={},B=!1,O=0}function j(e,n){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,"""))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,""")),e}function R(e,n){for(n=n.replace(/[\x00-\x20]+/g,"");;){const e=n.indexOf("\x3c!--");
vendor: 4,471 bytes, line 2
2if(-1===e)break;const t=n.indexOf("--\x3e",e+4);if(-1===t)break;n=n.substring(0,e)+n.substring(t+3)}const r=n.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!r)return!!n.match(/^[/\\]{2}/)&&!t.allowProtocolRelative;const o=r[1].toLowerCase();return p(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(o):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(o)}function $(e){if((e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let t="relative://relative-site";for(let e=0;e<100;e++)t+=`/${e}`;const n=new URL(e,t);return{isRelativeUrl:n&&"relative-site"===n.hostname&&"relative:"===n.protocol,url:n}}function z(e,t,n){return t?(e=e.split(/\s+/)).filter((function(e){return-1!==t.indexOf(e)||n.some((function(t){return t.test(e)}))})).join(" "):e}}const g={decodeEntities:!0};m.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},m.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(r,o){let i;if(n)for(i in t)o[i]=t[i];else o=t;return{tagName:e,attribs:o}}}},4736:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6301),o=["type"];const i=(0,n(641).pM)({props:{type:{type:String,default:"button"}}});const a=(0,n(6262).A)(i,[["render",function(e,t,n,i,a,s){return(0,r.openBlock)(),(0,r.createElementBlock)("button",{type:e.type,class:"inline-flex items-center justify-center px-4 py-2 bg-red-600 border border-transparent roun
2ded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-red-500 focus:outline-none focus:border-red-700 focus:ring focus:ring-red-200 active:bg-red-600 disabled:opacity-25 transition"},[(0,r.renderSlot)(e.$slots,"default")],8,o)}]])},4744:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}function l(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?i.arrayMerge(e,n,i):s(e,n,i):r(n,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},4751:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(6301),o={class:"max-w-7xl mx-auto py-10 sm:px-6 lg:px-8"};var i=n(641),a=n(95),s=n(2285);const l=(0,i.pM)({components:{AppLayout:a.A,CreateTeamForm:s.default}});const c=(0,n(6262).A)(l,[["render",function(e,t,n,i,a,s){var l=(0,r.resolveComponent)("Text"),c=(0,r.resolveComponent)("create-team-form"),u=(0,r.resolveComponent)("app-layout");return(0,r.openBlock)(),(0,r.createBlock)(u,{title:"Create Team"},{header:(0,r.withCtx)((function(){return[(0,r.createVNode)(l,{type:"h2",text:"Create Team"})]})),default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",o,[(0,r.createVNode)(c)])])]})),_:1})}]])},4765:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:o}},4793:(e,t,n)=>{"use strict";n.d(t,{A:()=>D});var r=n(6301),o={class:"xl:container xl:mx-auto flex justify-between items-center sticky top-40"},i={class:"flex gap-x-4 items-center hidden md:block"},a=["src"],s={key:1,class:"text-xl lg:text-4xl"},l={class:"flex items-center gap-x-4 md:gap-x-8 text-lg font-medium"},c={class:"text-slate-600 hidden cursor-pointer lg:block hover:text-cm-primary transition-colors"},u={class:"text-slate-600 hidden cursor-pointer lg:block hover:text-cm-primary transition-colors"},d=["href"],p={class:"z-30 relative"},h={class:"bi bi-list"},f={class:"bi bi-x"},m={key:0,class:"absolute w-full left-0 mt-3 text-cm-secondary drop-shadow-lg z-30 lg:hidden"},g={class:"bg-gradient-to-b from-cm-primary to-cm-primary/75 flex flex-col -translate-y-100"},v={key:0,class:"fixed bottom-0 bg-slate-100 shadow-inner lg:hidden w-full z-30 flex justify-between sm:justify-center text-lg"},y=["disabled"],b={key:0,class:"absolute -top-24 right-3 sm:translate-x-1/2 sm:right-1/2 bg-white rounded-md shadow-md text-base transition-opacity"};var x=n(641),w=n(8646),k=n(4633),_=n(1857),E=n(1015);const C=(0,x.pM)({mounted:function(){var e=this;w.Inertia.on("success",(function(){e.closeMobileNav()}))},data:function(){return{mobileNavOpen:!1,newMenuOpen:!1}},components:{LmProfileDropdown:k.A,JetDropdown:_.A,JetDropdownLink:E.A},methods:{logout:function(){this.$inertia.post(route("logout"))},toggleMobileNav:function(){this.mobileNavOpen=!this.mobileNavOpen,this.newMenuOpen=!1},toggleNewMenu:function(){this.newMenuOpen=!this.newMenuOpen},closeMobileNav:function(){this.mobileNavOpen=!1,this.newMenuOpen=!1}}});
2var N=n(5072),S=n.n(N),V=n(3767),A={insert:"head",singleton:!1};S()(V.A,A);V.A.locals;const D=(0,n(6262).A)(C,[["render",function(e,t,n,x,w,k){var _=(0,r.resolveComponent)("Link"),E=(0,r.resolveComponent)("jet-dropdown-link"),C=(0,r.resolveComponent)("jet-dropdown"),N=(0,r.resolveComponent)("lm-profile-dropdown");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["w-full border-t-2 border-gray-200 lg:sticky lg:top-0 bg-white/90 backdrop-blur px-4 z-30 relative",e.$page.props.commune.communal_logo_url?"py-3":"py-6"])},[(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(_,{href:e.route("communalhome",{commune:e.$page.props.commune.slug}),class:(0,r.normalizeClass)(e.route().current("communalhome")?"text-cm-primary":"text-gray-600")},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",i,[e.$page.props.commune.communal_logo_url?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,src:e.$page.props.storagePath+e.$page.props.commune.communal_logo_url,class:"h-22 max-w-[200px]"},null,8,a)):((0,r.openBlock)(),(0,r.createElementBlock)("p",s,(0,r.toDisplayString)(e.$page.props.commune.name),1))]),t[4]||(t[4]=(0,r.createElementVNode)("div",{class:"flex gap-x-4 items-center md:hidden sm:block"},[(0,r.createElementVNode)("svg",{viewBox:"0 0 24 24",fill:"currentColor",class:"w-6 h-6"},[(0,r.createElementVNode)("path",{d:"M11.47 3.84a.75.75 0 011.06 0l8.69 8.69a.75.75 0 101.06-1.06l-8.689-8.69a2.25 2.25 0 00-3.182 0l-8.69 8.69a.75.75 0 001.061 1.06l8.69-8.69z"}),(0,r.createElementVNode)("path",{d:"M12 5.432l8.159 8.159c.03.03.06.058.091.086v6.198c0 1.035-.84 1.875-1.875 1.875H15a.75.75 0 01-.75-.75v-4.5a.75.75 0 00-.75-.75h-3a.75.75 0 00-.75.75V21a.75.75 0 01-.75.75H5.625a1.875 1.875 0 01-1.875-1.875v-6.198a2.29 2.29 0 00.091-.086L12 5.43z"})])],-1))]})),_:1},8,["href","class"])]),(0,r.createElementVNode)("nav",l,[(0,r.createVNode)(_,{class:(0,r.normalizeClass)([e.route().current("communalhome")?"text-cm-primary":"text-gray-600","hidden lg:block hover:text-cm-primary transition-colors"]),href:e.route("communalhome",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return t[5]||(t[5]=[(0,r.createElementVNode)("svg",{viewBox:"0 0 24 24",fill:"currentColor",class:"w-6 h-6"},[(0,r.createElementVNode)("path",{d:"M11.47 3.84a.75.75 0 011.06 0l8.69 8.69a.75.75 0 101.06-1.06l-8.689-8.69a2.25 2.25 0 00-3.182 0l-8.69 8.69a.75.75 0 001.061 1.06l8.69-8.69z"}),(0,r.createElementVNode)("path",{d:"M12 5.432l8.159 8.159c.03.03.06.058.091.086v6.198c0 1.035-.84 1.875-1.875 1.875H15a.75.75 0 01-.75-.75v-4.5a.75.75 0 00-.75-.75h-3a.75.75 0 00-.75.75V21a.75.75 0 01-.75.75H5.625a1.875 1.875 0 01-1.875-1.875v-6.198a2.29 2.29 0 00.091-.086L12 5.43z"})],-1)])})),_:1},8,["class","href"]),(0,r.createVNode)(C,{align:"left",width:"48"},{trigger:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("a",c,(0,r.toDisplayString)(e.__("Anzeigen")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createVNode)(E,{href:e.route("annonces.index",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Toutes les annonces")),1)]})),_:1},8,["href"]),e.$page.props.loggedin&&e.$page.props.userRole&&4!==e.$page.props.userRole&&0!==e.$page.props.userRole?((0,r.openBlock)(),(0,r.createBlock)(E,{key:0,href:e.route("annonces.create",{commune:e.$page.props.commune.slug,type:"annonce"})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Neue Anzeige")),1)]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(E,{hidden:"",href:e.route("annonces.archives",{commune:e.$page.props.commune.slug,type:"annonce"})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Archives")),1)]})),_:1},8,["href"]),t[6]||(t[6]=(0,r.createElementVNode)("div",{class:"border-t border-gray-100"},null,-1))]})),_:1}),(0,r.createVNode)(C,{align:"left",width:"48"},{trigger:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("a",u,(0,r.toDisplayString)(e.__("Events")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createVNode)(E,{href:e.route("annonces.events",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Tous les événements")),1)]})),_:1},8,["href"]),e.$page.props.loggedin&&e.$page.props.userRole&&4!==e.$page.props.userRole&&0!==e.$page.props.userRole?((0,r.openBlock)(),(0,r.createBlock)(E,{key:0,href:e.route("annonces.create",{commune:e.$page.props.commune.slug,type:"event"})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Neuer Event")),1)]})),_:1}
2,8,["href"])):(0,r.createCommentVNode)("",!0),t[7]||(t[7]=(0,r.createElementVNode)("div",{class:"border-t border-gray-100"},null,-1))]})),_:1}),e.$page.props.commune.activate_about_page?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,class:(0,r.normalizeClass)([e.route().current("about.*")?"text-cm-primary":"text-gray-600","hidden lg:block hover:text-cm-primary transition-colors"]),href:e.$page.props.commune.about_page_link,target:"_blank"},(0,r.toDisplayString)(e.__("Ãber")+" "+e.$page.props.commune.name),11,d)):((0,r.openBlock)(),(0,r.createBlock)(_,{key:1,class:(0,r.normalizeClass)([e.route().current("about.*")?"text-cm-primary":"text-gray-600","hidden lg:block hover:text-cm-primary transition-colors"]),href:e.route("about",{commune:e.$page.props.commune.slug,commune_name:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Ãber"))+" "+(0,r.toDisplayString)(e.$page.props.commune.name),1)]})),_:1},8,["class","href"])),(0,r.createVNode)(_,{class:(0,r.normalizeClass)([e.route().current("annonces.search")?"text-cm-primary":"text-gray-600","hover:text-cm-primary transition-colors"]),title:e.__("Suchen"),href:e.route("annonces.search",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return t[8]||(t[8]=[(0,r.createElementVNode)("svg",{viewBox:"0 0 24 24",fill:"currentColor",class:"w-6 h-6"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M10.5 3.75a6.75 6.75 0 100 13.5 6.75 6.75 0 000-13.5zM2.25 10.5a8.25 8.25 0 1114.59 5.28l4.69 4.69a.75.75 0 11-1.06 1.06l-4.69-4.69A8.25 8.25 0 012.25 10.5z","clip-rule":"evenodd"})],-1)])})),_:1},8,["class","title","href"]),(0,r.createElementVNode)("div",{class:"z-50 relative",onClick:t[0]||(t[0]=function(){return e.closeMobileNav&&e.closeMobileNav.apply(e,arguments)})},[(0,r.createVNode)(N)]),(0,r.createElementVNode)("div",p,[(0,r.createElementVNode)("button",{class:"lg:hidden bg-cm-primary text-cm-secondary text-iconmenulg lg:text-iconmenu rounded-full p-2 relative",title:"Menu",onClick:t[1]||(t[1]=function(){return e.toggleMobileNav&&e.toggleMobileNav.apply(e,arguments)})},[(0,r.withDirectives)((0,r.createElementVNode)("i",h,null,512),[[r.vShow,!e.mobileNavOpen]]),(0,r.withDirectives)((0,r.createElementVNode)("i",f,null,512),[[r.vShow,e.mobileNavOpen]])])])])]),(0,r.createVNode)(r.Transition,{name:"slide-fade"},{default:(0,r.withCtx)((function(){return[e.mobileNavOpen?((0,r.openBlock)(),(0,r.createElementBlock)("div",m,[(0,r.createElementVNode)("nav",g,[(0,r.createVNode)(_,{class:(0,r.normalizeClass)([{underline:e.route().current("communalhome")},"leading-4 text-xl pt-8 pb-4 px-8"]),href:e.route("communalhome",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[t[9]||(t[9]=(0,r.createElementVNode)("i",{class:"bi bi-house-door mr-3"},null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Home")),1)]})),_:1},8,["class","href"]),(0,r.createVNode)(_,{class:(0,r.normalizeClass)([{underline:e.route().current("annonces.index")},"leading-4 text-xl py-4 px-8"]),href:e.route("annonces.index",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[t[10]||(t[10]=(0,r.createElementVNode)("i",{class:"bi bi-megaphone mr-3"},null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Anzeigen")),1)]})),_:1},8,["class","href"]),(0,r.createVNode)(_,{class:(0,r.normalizeClass)([{underline:e.route().current("annonces.events")},"leading-4 text-xl py-4 px-8"]),href:e.route("annonces.events",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[t[11]||(t[11]=(0,r.createElementVNode)("i",{class:"bi bi-calendar-event mr-3"},null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Events")),1)]})),_:1},8,["class","href"]),(0,r.createVNode)(_,{class:(0,r.normalizeClass)([{underline:e.route().current("annonces.archives")},"hidden leading-4 text-xl py-4 px-8 flex"]),href:e.route("annonces.archives",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[t[12]||(t[12]=(0,r.createElementVNode)("i",{class:"bi mr-3"},[(0,r.createElementVNode)("svg",{width:"20px",fill:"none","stroke-width":"1.5",stroke:"currentColor",viewBox:"0 0 24 20"},[(0,r.createElementVNode)("path",{d:"M18.38,21.63a3.34,3.34,0,0,0,3.24-3.44V7.87H2.37V18.19a3.35,3.35,0,0,0,3.24,3.44Zm-9.82-11h6.88a.69.69,0,0,1,0,1.38H8.56a.69.69,0,0,1,0-1.38ZM2.1,2.37A1.1,1.1,0,0,0,1,3.47V5.12a1.1,1.1,0,0,0,1.1,1.1H21.9A1.1,1.1,0,0,0,23,5.12h0V3.47a1.
21,1.1,0,0,0-1.1-1.1H2.1Z",transform:"translate(0 -2.37)"})])],-1)),(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Archives")),1)]})),_:1},8,["class","href"]),(0,r.createVNode)(_,{class:(0,r.normalizeClass)([{underline:e.route().current("about.*")},"leading-4 text-xl py-4 px-8"]),href:e.route("about",{commune:e.$page.props.commune.slug,commune_name:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[t[13]||(t[13]=(0,r.createElementVNode)("i",{class:"bi bi-info-circle mr-3"},null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Ãber"))+" "+(0,r.toDisplayString)(e.$page.props.commune.name),1)]})),_:1},8,["class","href"]),(0,r.createVNode)(_,{class:"leading-4 text-xl py-4 px-8",href:"#"},{default:(0,r.withCtx)((function(){return[t[14]||(t[14]=(0,r.createElementVNode)("i",{class:"bi bi-envelope mr-3"},null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Kontakt")),1)]})),_:1})])])):(0,r.createCommentVNode)("",!0)]})),_:1})],2),e.route().current("profile.*")?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",v,[(0,r.createVNode)(_,{class:(0,r.normalizeClass)(["transition-colors mobile-b-links border-b-2 border-transparent flex flex-grow sm:flex-grow-0 sm:px-8 py-2 justify-center",{"text-cm-primary border-cm-primary":e.route().current("communalhome")}]),href:e.route("communalhome",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return t[15]||(t[15]=[(0,r.createElementVNode)("i",{class:"bi bi-house-door"},null,-1)])})),_:1},8,["class","href"]),(0,r.createVNode)(_,{class:(0,r.normalizeClass)(["transition-colors mobile-b-links border-b-2 border-transparent flex flex-grow sm:flex-grow-0 sm:px-8 py-2 justify-center",{"text-cm-primary border-cm-primary":e.route().current("annonces.index")}]),href:e.route("annonces.index",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return t[16]||(t[16]=[(0,r.createElementVNode)("i",{class:"bi bi-megaphone"},null,-1)])})),_:1},8,["class","href"]),(0,r.createVNode)(_,{class:(0,r.normalizeClass)(["transition-colors mobile-b-links border-b-2 border-transparent flex flex-grow sm:flex-grow-0 sm:px-8 py-2 justify-center",{"text-cm-primary border-cm-primary":e.route().current("annonces.events")}]),href:e.route("annonces.events",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return t[17]||(t[17]=[(0,r.createElementVNode)("i",{class:"bi bi-calendar-event"},null,-1)])})),_:1},8,["class","href"]),(0,r.createElementVNode)("button",{class:"text-left no-tap-highlight mobile-b-links border-b-2 border-transparent flex flex-grow sm:flex-grow-0 sm:px-8 py-2 justify-center relative",onClick:t[2]||(t[2]=function(){return e.toggleNewMenu&&e.toggleNewMenu.apply(e,arguments)}),disabled:e.mobileNavOpen},[t[20]||(t[20]=(0,r.createElementVNode)("i",{class:"bi bi-plus-circle"},null,-1)),(0,r.createVNode)(r.Transition,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:(0,r.withCtx)((function(){return[e.newMenuOpen?((0,r.openBlock)(),(0,r.createElementBlock)("div",b,[e.$page.props.loggedin&&e.$page.props.userRole&&4!==e.$page.props.userRole&&0!==e.$page.props.userRole?((0,r.openBlock)(),(0,r.createBlock)(_,{key:0,href:e.route("annonces.create",{commune:e.$page.props.commune.slug,type:"annonce"}),class:"block py-2 px-4 rounded-t-md whitespace-nowrap hover:text-cm-primary border-b"},{default:(0,r.withCtx)((function(){return[t[18]||(t[18]=(0,r.createElementVNode)("i",{class:"bi bi-megaphone mr-2"},null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Neue Anzeige")),1)]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),e.$page.props.loggedin&&e.$page.props.userRole&&4!==e.$page.props.userRole&&0!==e.$page.props.userRole?((0,r.openBlock)(),(0,r.createBlock)(_,{key:1,href:e.route("annonces.create",{commune:e.$page.props.commune.slug,type:"event"}
2),class:"block py-2 px-4 rounded-b-md whitespace-nowrap hover:text-cm-primary"},{default:(0,r.withCtx)((function(){return[t[19]||(t[19]=(0,r.createElementVNode)("i",{class:"bi bi-calendar-event mr-2"},null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Neuer Event")),1)]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)]})),_:1})],8,y)])),(0,r.withDirectives)((0,r.createElementVNode)("div",{class:"fixed z-20 w-screen h-full top-0 bg-slate-900 opacity-20 transition-colors",onClick:t[3]||(t[3]=function(){return e.closeMobileNav&&e.closeMobileNav.apply(e,arguments)})},null,512),[[r.vShow,e.mobileNavOpen||e.newMenuOpen]])],64)}]])},4799:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6301),o=["alt","src"];const i={props:{rightImage:{type:Boolean,default:!1},size:{type:String,default:"sm"},rounded:{type:Boolean,default:!0},text:{type:String},imageUrl:{type:String},alt:{type:String},noAvatar:{type:Boolean,default:!1}},data:function(){return{textSize:"sm",imgSize:"sm"}},mounted:function(){switch(this.size){case"xs":this.imgSize="w-4 h-4",this.textSize="xs";break;case"sm":this.imgSize="w-6 h-6",this.textSize="sm";break;case"md":default:this.imgSize="w-8 h-8",this.textSize="md";break;case"lg":this.imgSize="w-12 h-12",this.textSize="lg";break;case"full":this.imgSize="w-13 h-13",this.textSize="lg"}},methods:{checkValidity:function(e){return!this.noAvatar||!e.includes("ui-avatars")}}};const a=(0,n(6262).A)(i,[["render",function(e,t,n,i,a,s){var l=(0,r.resolveComponent)("Text");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["inline-flex items-center",{"flex-row-reverse":n.rightImage}])},[this.text?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,color:"text-slate-400",type:this.textSize,as:"span",textContent:(0,r.toDisplayString)(this.text)},null,8,["type","textContent"])):(0,r.createCommentVNode)("",!0),s.checkValidity(this.imageUrl)?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:1,alt:this.alt,class:(0,r.normalizeClass)(["object-cover",[this.imgSize,{"rounded-full":this.rounded,"ml-2":this.text&&!1===n.rightImage,"mr-2":this.text&&!0===n.rightImage}]]),src:this.imageUrl},null,10,o)):(0,r.createCommentVNode)("",!0)],2)}]])},4803:(e,t,n)=>{"use strict";var r=n(8859),o=n(9675),i=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return i(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=i(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!i(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},4826:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".fadein[data-v-33329ce3]{animation:fade-33329ce3 .3s ease-in-out forwards}@keyframes fade-33329ce3{0%{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}",""]);const i=o},4832:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(6301),o={class:"font-sans text-gray-900 antialiased"},i={class:"pt-4 bg-slate-100"},a={class:"min-h-screen flex flex-col items-center pt-6 sm:pt-0"},s=["innerHTML"];var l=n(641),c=n(9234),u=n(8045);const d=(0,l.pM)({props:["terms"],components:{Head:c.p3,JetAuthenticationCardLogo:u.A}});const p=(0,n(6262).A)(d,[["render",function(e,t,n,l,c,u){var d=(0,r.resolveComponent)("Head"),p=(0,r.resolveComponent)("jet-authentication-card-logo");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(d,{title:"Terms of Service"}),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(p)]),(0,r.createElementVNode)("div",{innerHTML:e.terms,class:"w-full sm:max-w-2xl mt-6 p-6 bg-white shadow-md overflow-hidden sm:rou
2nded-lg prose"},null,8,s)])])])],64)}]])},4841:(e,t,n)=>{"use strict";var r=n(4198),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},a=r.version.split(".");function s(e,t){for(var n=t?t.split("."):a,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}o.transitional=function(e,t,n){var o=t&&s(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(a(r," has been removed in "+t));return o&&!i[r]&&(i[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={isOlderVersion:s,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],l=void 0===s||a(s,i,e);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},5019:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},5042:e=>{e.exports={nanoid:(e=21)=>{let t="",n=0|e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",o=0|n;for(;o--;)r+=e[Math.random()*e.length|0];return r}}},5069:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Ne});var r=n(6301),o={class:"mt-4"},i={class:"mt-4"},a={class:"mt-4"},s={class:"mt-4"},l={class:"mt-4"},c={class:"flex items-center justify-end mt-4"},u=["disabled","value"],d={class:"flex"},p={class:"mt-12 flex md:w-1/2 xl:w-1/3"},h={class:"mt-12 flex md:w-1/2 xl:w-1/3"},f=["href"],m={style:{"max-width":"250px","max-height":"45px"},class:"btn-primary bg-lm-blue cursor-pointer hover:bg-lm-light-blue ml-4 text-white"},g={class:"my-4"},v={key:0},y={key:1,class:"mb-4"},b={class:"flex sm:grid sm:grid-cols-12 gap-x-4 p-2"},x={class:"flex-grow sm:col-start-1 sm:col-end-4 lg:col-start-1 lg:col-end-4"},w={class:"flex justify-between"},k={class:"flex justify-between"},_={class:"flex-grow sm:col-start-5 sm:col-end-9 lg:col-start-5 lg:col-end-9"},E={class:"flex justify-between"},C={class:"flex justify-between"},N={class:"flex-grow sm:col-start-9 sm:col-end-11 lg:col-start-9 lg:col-end-12"},S={class:"flex justify-between"},V={class:"flex justify-between"},A=["title"],D=["title"],M={class:"hidden sm:block sm:col-start-9 sm:col-end-11 lg:col-start-9 lg:col-end-12"},T={class:"flex flex-col gap-y-4 sm:hidden"},B={class:"flex gap-x-4"},O=["onClick","title"],P=["onClick","title"],L={class:"hidden sm:block sm:col-start-11 sm:col-end-13 lg:col-start-12 lg:col-end-13"},I={class:"flex gap-x-4"},j=["onClick","title"],R=["onClick","title"],$={key:2,class:"text-sm text-gray-500"},z={class:"flex justify-between flex-wrap-reverse"},F={key:0,class:"rounded-full bg-slate-100 flex items-center mb-4"},H={key:1,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},U={key:3,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},W={class:"py-2 h-full flex items-center first:rounded-l-full last:rounded-r-full flex items-center px-3"},q={key:5,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},Y={key:7,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},G={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},K={class:"bg-white p-8 rounded-lg shadow-xl w-full max-w-md"},J={class:"text-2xl font-bold mb-4"},X={class:"mt-4"},Z={class:"mt-4"},Q={class:"mt-4"},ee={class:"mt-4"},te={value:"1"},ne={value:"2"},re={value:"3"},oe={value:"4"},ie={value:"5"},ae={class:"flex items-center justify-end mt-6"},se=["disabled","value"],le={key:1,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},ce={class:"bg-white p-8 rounded-lg shadow-xl w-full max-w-md"},ue={class:"text-2xl font-bold mb-4"},de={class:"flex items-center justify-end mt-6"},pe=["disabled"];var he=n(641),fe=n(5720),me=n(4296),ge=n(5393),ve=n(1857),ye=n(9506);const be=(0,he.pM)({data:function(){return{open:!0}}});var xe=n(6262);const we=(0,xe.A)(be,[["render",function(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.withDirectives)((0,r.createElementVNode)("div",{onClick:t[0]||(t[0]=function(t){return e.open=!e.open})},[(0,r.renderSlot)(e.$slots,"one")],512),[[r.vShow,e.open]]),(0,r.withDirectives)((0,r.createElementVNode)("div",{onClick:t[1]||(t[1]=function(t){return e.open=!e.open})},[(0,r.renderSlot)(e.$slots,"two")],512),[[r.vShow,!e.open]])],64)}]]);var ke=n(9234),_e=n(8646),Ee=(n(1816),n(5860),n(6581));const Ce=(0,he.pM)({props:["users"],data:function(){return{usersValues:[],searchVal:"",isEditModalVisible:!1,isDeleteModalVisible:!1,editForm:this.$inertia.form({id:null,first_name:"",name:"",email:"",role:null}),deleteForm:this.$inertia.form({id:null}),form:this.$inertia.form({email:"",first_name:"",name:"",zip_code:null,city:""})}},components:{JetInput:me.A,JetLabel:ge.A,JetDropdown:ve.A,LmInputText:ye.zX,LmToggleable:we,Link:ke.N_,Head:ke.p3,LmAccordion:Ee.A},layout:fe.A,mounted:function(){this.usersValues=this.users,this.usersValues.data.forEach((function(e){e.updated=!1})),this.getUrlParam("q")&&(this.searchVal=this.getUrlParam("q"))},methods:{openEditModal:function(e){this.editForm.id=e.id,this.editForm.first_name=e.first_name,this.editForm.name=e.name,this.editForm.email=e.email,this.editForm.role=e.pivot.role,this.isEditModalVisible=!0},openDeleteModal:function(e){this.deleteForm.id=e.id,this.deleteForm.email=e.email,this.isDeleteModalVisible=!0},updateUser:function(){var e=this;this.editForm.put(route("admin.security.users.update",{commune:this.$page.props.commune.slug,user:this.editForm.id}),{preserveState:!1,onSuccess:function(){e.isEditModalVisible=!1}})}
2,getOrderParam:function(){var e=window.location.href,t=new URL(e);return t.searchParams.get("orderby")?"&orderby="+t.searchParams.get("orderby"):""},getSearchParam:function(){var e=window.location.href,t=new URL(e);return t.searchParams.get("q")?"&q="+t.searchParams.get("q"):""},getUrlParam:function(e){var t=window.location.href,n=new URL(t);return!!n.searchParams.get(e)&&n.searchParams.get(e)},searchTable:function(){_e.Inertia.visit(this.usersValues.first_page_url+this.getOrderParam()+"&q="+this.searchVal)},deleteUser:function(){var e=this;this.deleteForm.delete(route("admin.security.users.delete",{commune:this.$page.props.commune.slug,user:{id:this.deleteForm.id,email:this.deleteForm.email}}),{preserveState:!1,onSuccess:function(){e.isDeleteModalVisible=!1}})},getRole:function(e){return{1:this.__("Admin"),2:this.__("Moderator"),3:this.__("Mitglied"),4:this.__("Neuer Benutzer"),5:this.__("Unternehmenskonto")}[e]},inviteUser:function(){_e.Inertia.post(route("admin.security.users.inviteuser",{commune:this.$page.props.commune.slug}),this.form,{preserveState:!1})}}}),Ne=(0,xe.A)(Ce,[["render",function(e,t,n,he,fe,me){var ge=(0,r.resolveComponent)("Head"),ve=(0,r.resolveComponent)("Text"),ye=(0,r.resolveComponent)("jet-label"),be=(0,r.resolveComponent)("jet-input"),xe=(0,r.resolveComponent)("lm-accordion"),we=(0,r.resolveComponent)("lm-input-text"),ke=(0,r.resolveComponent)("Link");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(ge,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("title",null,"\n "+(0,r.toDisplayString)(e.__("Sicherheit"))+" - "+(0,r.toDisplayString)(e.__("Benutzerverwaltung"))+"\n ",1)]})),_:1}),(0,r.createVNode)(ve,{type:"h1",text:e.__("Sicherheit")},null,8,["text"]),t[33]||(t[33]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createVNode)(ve,{type:"h2",text:e.__("Inviter des utilisateurs")},null,8,["text"]),(0,r.createVNode)(xe,{title:e.__("Formulaire d'invitation des utilisateurs")},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("form",{onSubmit:t[5]||(t[5]=(0,r.withModifiers)((function(){return e.inviteUser&&e.inviteUser.apply(e,arguments)}),["prevent"]))},[(0,r.createElementVNode)("div",o,[(0,r.createVNode)(ye,{for:"first_name",value:e.__("Vorname")},null,8,["value"]),(0,r.createVNode)(be,{id:"first_name",type:"text",class:"mt-1 block w-full bordered",modelValue:e.form.first_name,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.form.first_name=t}),required:""},null,8,["modelValue"])]),(0,r.createElementVNode)("div",i,[(0,r.createVNode)(ye,{for:"name",value:e.__("Nachname")},null,8,["value"]),(0,r.createVNode)(be,{id:"name",type:"text",class:"mt-1 block w-full bordered",modelValue:e.form.name,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.form.name=t}),required:""},null,8,["modelValue"])]),(0,r.createElementVNode)("div",a,[(0,r.createVNode)(ye,{for:"email",value:e.__("E-mail")},null,8,["value"]),(0,r.createVNode)(be,{id:"email",type:"email",class:"mt-1 block w-full bordered",modelValue:e.form.email,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.form.email=t}),required:""},null,8,["modelValue"])]),(0,r.createElementVNode)("div",s,[(0,r.createVNode)(ye,{for:"zip_code",value:e.__("PLZ")},null,8,["value"]),(0,r.createVNode)(be,{id:"zip_code",type:"number",min:"1000",max:"9999",class:"mt-1 block w-full bordered",modelValue:e.form.zip_code,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.form.zip_code=t}),required:""},null,8,["modelValue"])]),(0,r.createElementVNode)("div",l,[(0,r.createVNode)(ye,{for:"city",value:e.__("Ort")},null,8,["value"]),(0,r.createVNode)(be,{id:"city",type:"text",class:"mt-1 block w-full bordered",modelValue:e.form.city,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.form.city=t}),required:""},null,8,["modelValue"])]),(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("input",{type:"submit",class:(0,r.normalizeClass)(["btn-primary bg-lm-blue cursor-pointer hover:bg-lm-light-blue ml-4 text-white",{"opacity-25":e.form.processing}]),disabled:e.form.processing,value:e.__("Inviter un utilisateur")},null,10,u)])],32)]})),_:1},8,["title"]),t[34]||(t[34]=(0,r.createElementVNode)("br",null,null,-1)),t[35]||(t[35]=(0,r.createElementVNode)("hr",null,null,-1)),(0,r.createVNode)(ve,{type:"h2",text:e.__("Benutzerverwaltung")},null,8,["text"]),(0,r.createElementVNode)("div",d,[(0,r.createElementVNode)("div",p,[(0,r.createVNode)(we,{style:{width:"80%"},iconClickable:!0,onEnter:e.searchTable,onIconClick:e.searchTable,placeholder:e.__("Suchen"),modelValue:e.searchVal,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.searchVal=t}),icon:"<i class='bi bi-search'></i>"},null,8,["onEnter","onIconClick","placeholder","modelValue"])]),(0,r.createElementVNode)("div",h,[(0,r.createElementVNode)("a",{href:e.route("admin.security.users.export",{commune:e.$page.props.commune.slug})},[(0,r.createElementVNode)("button",m,(0,r.toDisplayString)(e.__("Export data")),1)],8,f)])]),(0,r.createElementVNode)("div",g,[0===e.users.data.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",v,[(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(e.__("Keine Einträge gefunden")),1)])):(0,r.createCommentVNode)("",!0),e.users.data.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",y,[(0,r.createElementVNode)("div",b,[(0,r.createElementVNode)("div",x,["name-asc"===e.getUrlParam("orderby")?((0,r.openBlock)(),(0,r.createBlock)(ke,{key:0,href:e.usersValues.path+"?orderby=name-desc"+e.getSearchParam(),class:(0,r.normalizeClass)(["block w-full",{"text-lm-blue font-bold":"name-asc"===e.getUrlParam("orderby")}])},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",w,[(0,r.createElementVNode)("div",null,(0,r.toDisplayString)(e.__("Name")),1),t[15]||(t[15]=(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("i",{class:"bi bi-sort-down"})],-1))])]})),_:1},8,["href","class"])):((0,r.openBlock)(),(0,r.createBlock)(ke,{key:1,href:e.usersValues.path+"?orderby=name-asc"+e.getSearchParam(),class:(0,r.normalizeClass)(["block w-full",{"text-lm-blue font-bold":"name-desc"===e.getUrlParam("orderby")}])},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",k,[(0,r.createElementVNode)("div",null,(0,r.toDisplayString)(e.__("Name")),1),t[16]||(t[16]=(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("i",{class:"bi bi-sort-up-alt"})],-1))])]})),_:1},8,["href","class"]))]),(0,r.createElementVNode)("div",_,["email-asc"===e.getUrlParam("orderby")?((0,r.openBlock)(),(0,r.createBlock)(ke,{key:0,href:e.usersValues.path+"?orderby=email-desc"+e.getSearchParam(),class:(0,r.normalizeClass)(["block w-full",{"text-lm-blue font-bold":"email-asc"===e.getUrlParam("orderby")}])},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",E,[(0,r.createElementVNode)("div",null,(0,r.toDisplayString)(e.__("E-Mail")),1),t[17]||(t[17]=(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("i",{class:"bi bi-sort-down"})],-1))])]})),_:1},8,["href","class"])):((0,r.openBlock)(),(0,r.createBlock)(ke,{key:1,href:e.usersValues.path+"?orderby=email-asc"+e.getSearchParam(),class:(0,r.normalizeClass)(["block w-full",{"text-lm-blue font-bold":"email-desc"===e.getUrlParam("orderby")}])},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",C,[(0,r.createElementVNode)("div",null,(0,r.toDisplayString)(e.__("E-Mail")),1),t[18]||(t[18]=(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("i",{class:"bi bi-sort-up-alt"})],-1))])]})),_:1},8,["href","class"]))]),(0,r.createElementVNode)("div",N,["role-asc"===e.getUrlParam("orderby")?((0,r.openBlock)(),(0,r.createBlock)(ke,{key:0,href:e.usersValues.path+"?orderby=role-desc"+e.getSearchParam(),class:(0,r.normalizeClass)(["block w-full",{"text-lm-blue font-bold":"role-asc"===e.getUrlParam("orderby")}])},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",S,[(0,r.createElementVNode)("div",null,(0,r.toDisplayString)(e.__("Rolle")),1),t[19]||(t[19]=(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("i",{class:"bi bi-sort-down"})],-1))])]})),_:1},8,["href","class"])):((0,r.openBlock)(),(0,r.createBlock)(ke,{key:1,href:e.usersValues.path+"?orderby=role-asc"+e.getSearchParam(),class:(0,r.normalizeClass)(["block w-full",{"text-lm-blue font-bold":"role-desc"===e.getUrlParam("orderby")}])},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",V,[(0,r.createElementVNode)("div",null,(0,r.toDisplayString)(e.__("Rolle")),1),t[20]||(t[20]=(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("i",{class:"bi bi-sort-up-alt"})],-1))])]})),_:1},8,["href","class"]))])]),(0,r.createElementVNode)("div",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.usersValues.data,(function(n){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"sm:grid sm:gap-x-4 items-center sm:grid-cols-12 first:border-t-2 border-gray-200 border-b-2 py-2 hover:bg-slate-50 p-2",key:n.id},[(0,r.createElementVNode)("div",{class:"hidden sm:block sm:col-start-1 sm:col-end-4 lg:col-start-1 lg:col-end-4 truncate",title:n.fullName},(0,r.toDisplayString)(n.fullName),9,A),(0,r.createElementVNode)("div",{class:"hidden sm:block sm:col-start-5 sm:col-end-9 lg:col-start-5 lg:col-end-9 truncate",title:n.email},(0,r.toDisplayString)(n.email),9,D),(0,r.createElementVNode)("div",M,(0,r.toDisplayString)(e.getRole(n.pivot.role)),1),(0,r.createElementVNode)("div",T,[(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(n.fullName),1),(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(n.email),1),(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(e.getRole(n.pivot.role)),1),(0,r.createElementVNode)("div",B,[(0,r.createElementVNode)("button",{class:"transition-colors hover:bg-lm-light-blue hover:text-white px-3 py-2 rounded-md",onClick:function(t){return e.openEditModal(n)},title:e.__("Bearbeiten")},t[21]||(t[21]=[(0,r.createElementVNode)("i",{class:"bi bi-pencil"},null,-1)]),8,O),(0,r.createElementVNode)("button",{class:"transition-colors hover:bg-red-800 hover:text-white px-3 py-2 rounded-md",onClick:function(t){return e.openDeleteModal(n)},title:e.__("Löschen")},t[22]||(t[22]=[(0,r.createElementVNode)("i",{class:"bi bi-trash"},null,-1)]),8,P)])]),(0,r.createElementVNode)("div",L,[(0,r.createElementVNode)("div",I,[(0,r.createElementVNode)("button",{class:"transition-colors hover:bg-lm-light-blue hover:text-white px-3 py-2 rounded-md",onClick:function(t){return e.openEditModal(n)},title:e.__("Bearbeiten")},t[23]||(t[23]=[(0,r.createElementVNode)("i",{class:"bi bi-pencil"},null,-1)]),8,j),(0,r.createElementVNode)("button",{class:"transition-colors hover:bg-red-800 hover:text-white px-3 py-2 rounded-md",onClick:function(t){return e.openDeleteModal(n)},title:e.__("Löschen")},t[24]||(t[24]=[(0,r.createElementVNode)("i",{class:"bi bi-trash"},null,-1)]),8,R)])])])})),128))])])):(0,r.createCommentVNode)("",!0),e.users.data.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("p",$,(0,r.toDisplayString)(e.users.total)+" "+(0,r.toDisplayString)(e.__("Einträge")),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",z,[e.users.data.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",F,[e.usersValues.current_page>1?((0,r.openBlock)(),(0,r.createBlock)(ke,{key:0,href:e.usersValues.first_page_url+e.getOrderParam()+e.getSearchParam(),class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[25]||(t[25]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-left"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),1===e.usersValues.current_page?((0,r.openBlock)(),(0,r.createElementBlock)("div",H,t[26]||(t[26]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-left"},null,-1)]))):(0,r.createCommentVNode)("",!0),e.usersValues.prev_page_url?((0,r.openBlock)(),(0,r.createBlock)(ke,{key:2,href:e.usersValues.prev_page_url+e.getOrderParam()+e.getSearchParam(),class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[27]||(t[27]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-left"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),1===e.usersValues.current_page?((0,r.openBlock)(),(0,r.createElementBlock)("div",U,t[28]||(t[28]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-left"},null,-1)]))):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",W,(0,r.toDisplayString)(e.usersValues.current_page+" / "+e.usersValues.last_page),1),e.usersValues.next_page_url?((0,r.openBlock)(),(0,r.createBlock)(ke,{key:4,href:e.usersValues.next_page_url+e.getOrderParam()+e.getSearchParam(),class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[29]||(t[29]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-right"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),e.usersValues.next_page_url?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",q,t[30]||(t[30]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-right"},null,-1)]))),e.usersValues.current_page<e.usersValues.last_page?((0,r.openBlock)(),(0,r.createBlock)(ke,{key:6,href:e.usersValues.last_page_url+e.getOrderParam()+e.getSearchParam(),class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[31]||(t[31]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-right"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),e.usersValues.current_page===e.usersValues.last_page?((0,r.openBlock)(),(0,r.createElementBlock)("div",Y,t[32]||(t[32]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-right"},null,-1)]))):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)]),e.isEditModalVisible?((0,r.openBlock)(),(0,r.createElementBlock)("div",G,[(0,r.createElementVNode)("div",K,[(0,r.createElementVNode)("h2",J,(0,r.toDisplayString)(e.__("Benutzer bearbeiten")),1),(0,r.createElementVNode)("form",{onSubmit:t[12]||(t[12]=(0,r.withModifiers)((function(){return e.updateUser&&e.updateUser.apply(e,arguments)}),["prevent"]))},[(0,r.createElementVNode)("div",X,[(0,r.createVNode)(ye,{for:"edit_first_name",value:e.__("Vorname")},null,8,["value"]),(0,r.createVNode)(be,{id:"edit_first_name",type:"text",class:"mt-1 block w-full bordered",modelValue:e.editForm.first_name,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.editForm.first_name=t}),required:""},null,8,["modelValue"])]),(0,r.createElementVNode)("div",Z,[(0,r.createVNode)(ye,{for:"edit_name",value:e.__("Nachname")},null,8,["value"]),(0,r.createVNode)(be,{id:"edit_name",type:"text",class:"mt-1 block w-full bordered",modelValue:e.editForm.name,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.editForm.name=t}),required:""},null,8,["modelValue"])]),(0,r.createElementVNode)("div",Q,[(0,r.createVNode)(ye,{for:"edit_email",value:e.__("E-mail")},null,8,["value"]),(0,r.createVNode)(be,{id:"edit_email",type:"email",class:"mt-1 block w-full bordered",modelValue:e.editForm.email,"onUpdate:modelValue":t[9]||(t[9]=function(t){return e.editForm.email=t}),required:""},null,8,["modelValue"])]),(0,r.createElementVNode)("div",ee,[(0,r.createVNode)(ye,{for:"edit_role",value:e.__("Rolle")},null,8,["value"]),(0,r.withDirectives)((0,r.createElementVNode)("select",{"onUpdate:modelValue":t[10]||(t[10]=function(t){return e.editForm.role=t}),id:"edit_role",class:"mt-1 block w-full bordered"},[(0,r.createElementVNode)("option",te,(0,r.toDisplayString)(e.__("Admin")),1),(0,r.createElementVNode)("option",ne,(0,r.toDisplayString)(e.__("Moderator")),1),(0,r.createElementVNode)("option",re,(0,r.toDisplayString)(e.__("Mitglied")),1),(0,r.createElementVNode)("option",oe,(0,r.toDisplayString)(e.__("Neuer Benutzer")),1),(0,r.createElementVNode)("option",ie,(0,r.toDisplayString)(e.__("Unternehmenskonto")),1)],512),[[r.vModelSelect,e.editForm.role]])]),(0,r.createElementVNode)("div",ae,[(0,r.createElementVNode)("button",{type:"button",onClick:t[11]||(t[11]=function(t){return e.isEd
2itModalVisible=!1}),class:"btn-secondary mr-4"},(0,r.toDisplayString)(e.__("Abbrechen")),1),(0,r.createElementVNode)("input",{type:"submit",class:(0,r.normalizeClass)(["btn-primary bg-lm-blue cursor-pointer hover:bg-lm-light-blue text-white",{"opacity-25":e.editForm.processing}]),disabled:e.editForm.processing,value:e.__("Speichern")},null,10,se)])],32)])])):(0,r.createCommentVNode)("",!0),e.isDeleteModalVisible?((0,r.openBlock)(),(0,r.createElementBlock)("div",le,[(0,r.createElementVNode)("div",ce,[(0,r.createElementVNode)("h2",ue,(0,r.toDisplayString)(e.__("Benutzer löschen")),1),(0,r.createVNode)(ve,null,{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Sind Sie sicher, dass Sie diesen Benutzer löschen möchten?")),1)]})),_:1}),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("b",null,(0,r.toDisplayString)(e.deleteForm.email),1)]),(0,r.createElementVNode)("div",de,[(0,r.createElementVNode)("button",{type:"button",onClick:t[13]||(t[13]=function(t){return e.isDeleteModalVisible=!1}),class:"btn-secondary mr-4"},(0,r.toDisplayString)(e.__("Abbrechen")),1),(0,r.createElementVNode)("button",{onClick:t[14]||(t[14]=function(t){return e.deleteUser()}),class:(0,r.normalizeClass)(["btn-secondary bg-red-600 cursor-pointer hover:bg-red-800 text-white",{"opacity-25":e.deleteForm.processing}]),disabled:e.deleteForm.processing},(0,r.toDisplayString)(e.__("Löschen")),11,pe)])])])):(0,r.createCommentVNode)("",!0)])}]])},5072:(e,t,n)=>{"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],l=t.base?i[0]+t.base:i[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=s(u),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(p)):a.push({identifier:u,updater:g(p,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function p(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function h(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var f=null,m=0;function g(e,t){var n,r,o;if(t.singleton){var i=m++;n=f||(f=c(t)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=c(t),r=h.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=s(n[r]);a[o].references--}for(var i=l(e,t),c=0;c<n.length;c++){var u=s(n[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=i}}}},5096:(e,t)=>{"use strict";var n;
2Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function o(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=r.get(e))&&void 0!==t?t:e}t.fromCodePoint=null!==(n=String.fromCodePoint)&&void 0!==n?n:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)},t.replaceCodePoint=o,t.default=function(e){return(0,t.fromCodePoint)(o(e))}},5155:(e,t,n)=>{"use strict";var r=n(9516),o=n(9106),i=n(3471),a=n(4490),s=n(5343),l=n(4841),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var u=[a,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(i),o=Promise.resolve(e);u.length;)o=o.then(u.shift(),u.shift());return o}for(var d=e;n.length;){var p=n.shift(),h=n.shift();try{d=p(d)}catch(e){h(e);break}}try{o=a(d)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},u.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},5169:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>W});var r=n(6301),o={class:"mt-28 mb-28 gap-16 items-center mx-auto max-w-screen-xl rounded-lg",style:{"text-align":"center","background-image":"url('/img/home/bg-1.webp')","background-size":"1280px","background-repeat":"no-repeat","background-position":"center center"}},i={class:"max-w-screen-xl p-7 pt-28 pb-28 rounded-lg",style:{background:"rgba(0, 0, 0, 0.3)"}},a={class:"mb-5 text-gray-500 md:text-lg text-white font-bold lg:text-xl mt-4"},s={target:"_blank",href:"https://demo.lememento.ch",class:"inline-flex justify-center items-center py-3 px-5 text-base font-medium text-center text-gray-900 rounded-lg border bg-white border-gray-300 hover:bg-gray-100 focus:ring-4 focus:ring-gray-100 m-2"},l={class:"bg-white",id:"infos"},c={class:"gap-16 items-center py-8 px-4 mx-auto max-w-screen-xl lg:grid lg:grid-cols-2 lg:py-16 lg:px-6"},u={class:"text-gray-500 sm:text-lg"},d={class:"prose prose-lg mt-4"},p={class:"bg-white"},h={class:"gap-16 items-center py-8 px-4 mx-auto max-w-screen-xl lg:grid lg:grid-cols-2 lg:py-16 lg:px-6"},f={class:"text-gray-500 sm:text-lg"},m={class:"prose prose-lg mt-4"},g={class:"bg-white"},v={class:"gap-16 items-center py-8 px-4 mx-auto max-w-screen-xl lg:grid lg:grid-cols-2 lg:py-16 lg:px-6"},y={class:"text-gray-500 sm:text-lg"},b={class:"prose prose-lg mt-4"},x={class:"bg-gray-50",style:{}},w={class:"bg-white pt-16 lg:py-24"},k={class:"bg-lm-blue pb-16 lg:relative lg:z-10 lg:pb-0"},_={class:"lg:mx-auto lg:grid lg:max-w-7xl lg:grid-cols-3 lg:gap-8 lg:px-8"},E={class:"mt-12 lg:col-span-2 lg:m-0 lg:pl-8"},C={class:"mx-auto max-w-md px-4 sm:max-w-2xl sm:px-6 lg:max-w-none lg:px-0 lg:py-20"},N={class:"mt-6 text-2xl font-medium text-white"},S={class:"mt-6"},V={class:"text-base font-medium text-lm-light-blue"}
2,A={target:"_blank",href:"https://hauterive.lememento.ch",style:{color:"white"},class:"inline-flex justify-center text-white items-center py-3 px-5 text-base font-medium text-center text-gray-900 rounded-lg border border-white-300 hover:bg-white-300 focus:ring-4 focus:ring-gray-100 mt-4"},D={class:"bg-white"},M={class:"mx-auto max-w-7xl py-12 px-4 text-center sm:px-6 lg:py-16 lg:px-8"},T={class:"mb-2"},B={class:"mt-8 flex justify-center"},O={class:"inline-flex rounded-md shadow"},P=["href"],L={class:"ml-3 inline-flex"},I={target:"_blank",href:"https://demo.lememento.ch",class:"inline-flex items-center justify-center rounded-md border border-transparent bg-indigo-100 px-5 py-3 text-base font-medium text-lm-blue hover:bg-indigo-200"};var j=n(641),R=n(1049),$=n(6523),z=n(9234),F=n(2812),H=n(2368);n(8646);const U=(0,j.pM)({components:{ApplicationLogo:H.A,Head:z.p3,LandingPageLayout:F.A,TopBar:$.A,LmSpinner:R.A},layout:F.A,methods:{handleAnchorLink:function(e){console.log(e);var t=document.getElementById(e);console.log(t),t&&t.scrollIntoView({behavior:"smooth"})}}});const W=(0,n(6262).A)(U,[["render",function(e,t,n,j,R,$){var z=(0,r.resolveComponent)("TopBar"),F=(0,r.resolveComponent)("Head"),H=(0,r.resolveComponent)("Text");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(z),(0,r.createVNode)(F,{title:"Le Memento"}),(0,r.createElementVNode)("section",null,[(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createVNode)(H,{type:"h1",color:"text-white",text:e.__("Connectez-vous avec votre commune")},null,8,["text"]),(0,r.createElementVNode)("p",a,(0,r.toDisplayString)(e.__("Votre plateforme locale pour rester informé, partager et collaborer.")),1),(0,r.createElementVNode)("a",{class:"inline-flex justify-center items-center py-3 px-5 mr-3 text-base font-medium text-center text-white rounded-lg bg-lm-blue hover:bg-lm-light-blue focus:ring-4 focus:ring-lm-blue-300 m-2",onClick:t[0]||(t[0]=function(t){return e.handleAnchorLink("infos")}),href:"#infos"},[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("En savoir plus"))+" ",1),t[1]||(t[1]=(0,r.createElementVNode)("svg",{class:"ml-2 -mr-1 w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1))]),(0,r.createElementVNode)("a",s,(0,r.toDisplayString)(e.__("Découvrez la démo")),1)])])]),(0,r.createElementVNode)("section",l,[(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("div",u,[(0,r.createVNode)(H,{color:"text-lm-blue",type:"h2",text:"à propos"}),(0,r.createElementVNode)("div",d,[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("LeMemento est bien plus qu'une simple plateforme internet; c'est une révolution numérique conçue pour rapprocher les citoyens."))+" ",1),t[2]||(t[2]=(0,r.createElementVNode)("br",null,null,-1)),t[3]||(t[3]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Nous offrons un espace innovant où chaque membre de la communauté - citoyens, associations, et commerces locaux - peut contribuer activement au bien-être et au dynamisme de sa commune."))+" ",1),t[4]||(t[4]=(0,r.createElementVNode)("br",null,null,-1)),t[5]||(t[5]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Ensemble, créons une synergie locale forte et durable.")),1)])]),t[6]||(t[6]=(0,r.createElementVNode)("div",{class:"grid grid-cols-1 gap-4 mt-8 right"},[(0,r.createElementVNode)("img",{class:"w-full rounded-lg",src:"https://images.unsplash.com/photo-1503346359167-984a891788fd?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2944&q=80",alt:"photo de commune"})],-1))])]),(0,r.createElementVNode)("section",p,[(0,r.createElementVNode)("div",h,[t[7]||(t[7]=(0,r.createElementVNode)("div",{class:"grid grid-cols-1 gap-4 mb-4"},[(0,r.createElementVNode)("img",{class:"w-full rounded-lg",src:"/img/home/mockup-1.webp",alt:"aperçu de lememento"})],-1)),(0,r.createElementVNode)("div",f,[(0,r.createVNode)(H,{color:"text-lm-blue",type:"h2",text:e.__("Comment ça fonctionne ?")},null,8,["text"]),(0,r.createElementVNode)("div",m,[(0,r.createElementVNode)("p",null,[(0,r.createVNode)(H,{text:e.__("Inscription simple et ra
2pide"),color:"text-lm-blue",type:"h3"},null,8,["text"]),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Rejoignez la communauté en quelques étapes faciles. Notre processus d'inscription est conçu pour être accessible à tous, assurant une entrée sans encombre.")),1)]),(0,r.createElementVNode)("p",null,[(0,r.createVNode)(H,{text:e.__("Navigation intuitive"),color:"text-lm-blue",type:"h3"},null,8,["text"]),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Naviguez aisément à travers une interface claire et conviviale. Que vous soyez jeune ou sénior, notre plateforme est pensée pour offrir une expérience utilisateur agréable et sans obstacle.")),1)]),(0,r.createElementVNode)("p",null,[(0,r.createVNode)(H,{text:e.__("Communication et interactions"),color:"text-lm-blue",type:"h3"},null,8,["text"]),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Engagez-vous dans des discussions constructives, partagez des événements et annonces, et créez des liens forts au sein de votre communauté. LeMemento est votre espace pour une interaction locale enrichissante.")),1)])])])])]),(0,r.createElementVNode)("section",g,[(0,r.createElementVNode)("div",v,[(0,r.createElementVNode)("div",y,[(0,r.createVNode)(H,{color:"text-lm-blue",type:"h2",text:e.__("Explorez les facettes de votre communauté")},null,8,["text"]),(0,r.createElementVNode)("div",b,[(0,r.createElementVNode)("p",null,[(0,r.createVNode)(H,{text:e.__("Culture et loisirs:"),color:"text-lm-blue",type:"h3"},null,8,["text"]),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Plongez dans la richesse culturelle et les activités de loisir de votre région. Découvrez des expositions, des spectacles, des ateliers, et bien plus encore. Un espace où la créativité et le divertissement local prennent vie.")),1)]),(0,r.createElementVNode)("p",null,[(0,r.createVNode)(H,{text:e.__("Commerce et artisanat Local:"),color:"text-lm-blue",type:"h3"},null,8,["text"]),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Soutenez l'économie locale en découvrant et en faisant vos achats auprès des commerces et artisans de votre commune. LeMemento met en valeur le savoir-faire local et encourage les échanges de proximité.")),1)]),(0,r.createElementVNode)("p",null,[(0,r.createVNode)(H,{text:e.__("Vie associative et engagement citoyen:"),color:"text-lm-blue",type:"h3"},null,8,["text"]),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Participez à la vie associative de votre région et engagez-vous dans des causes qui vous tiennent à cÅur. Rejoignez ou créez des initiatives citoyennes et contribuez activement au dynamisme de votre communauté.")),1)]),(0,r.createElementVNode)("p",null,[(0,r.createVNode)(H,{text:e.__("Informations et actualités locales:"),color:"text-lm-blue",type:"h3"},null,8,["text"]),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Restez toujours informé des dernières nouvelles et des sujets d'actualité de votre région. Avec LeMemento, l'information locale est toujours à portée de main, vous permettant de rester connecté avec les événements et développements de votre communauté.")),1)]),(0,r.createElementVNode)("p",null,[(0,r.createElementVNode)("b",null,(0,r.toDisplayString)(e.__("Et bien plus encore")),1)])])]),t[8]||(t[8]=(0,r.createElementVNode)("div",{class:"grid grid-cols-1 gap-4 mt-8"},[(0,r.createElementVNode)("img",{class:"w-full rounded-lg",src:"/img/home/austin-kehmeier-lyiKExA4zQA-unsplash1_50.webp",alt:"main tendue"})],-1))])]),(0,r.createElementVNode)("section",x,[(0,r.createElementVNode)("div",w,[(0,r.createElementVNode)("div",k,[(0,r.createElementVNode)("div",_,[t[11]||(t[11]=(0,r.createStaticVNode)('<div class="relative lg:-my-8"><div aria-hidden="true" class="absolute inset-x-0 top-0 h-1/2 lg:hidden"></div><div class="mx-auto pt-5 max-w-md px-4 sm:max-w-3xl sm:px-6 lg:h-full lg:p-0"><div class="aspect-w-10 flex aspect-h-6 overflow-hidden sm:aspect-w-16 sm:aspect-h-7 lg:aspect-none lg:h-full"><img class="object-cover" style="max-height:400px;height:auto;margin:auto;" src="/img/home/hauterive-fr.png" alt="armoirie hauterive fr"></div></div></div>',1)),(0,r.createElementVNode)("div",E,[(0,r.createElementVNode)("div",C,[(0,r.createVNode)(H,{color:"text-white",type:"h2",text:"Témoignage"}),(0,r.createElementVNode)("blockquote",null,[(0,r.createElementVNode)("div",null,[t[9]||(t[9]=(0,r.createElementVNode)("svg",{class:"h-12 w-12 text-white opacity-25",fill:"currentColor",viewBox:"0 0 32 32","aria-hidden":"true"},[(0,r.createElementVNode)("path",{d:"M9.352 4C4.456 7.456 1 13.12 1 19.36c0 5.088 3.072 8.064 6.624 8.064 3.36 0 5.856-2.688 5.856-5.856 0-3.168-2.208-5.472-5.088-5.472-.576 0-1.344.096-1.536.192.48-3.264 3.552-7.104 6.624-9.024L9.352 4zm16.512 0c-4.8 3.456-8.256 9.12-8.256 15.36 0 5.088 3.072 8.064 6.624 8.064 3.264 0 5.856-2.688 5.856-5.856 0-3.168-2.304-5.472-5.184-5.472-.576 0-1.248.096-1.44.192.48-3.264 3.456-7.104 6.528-9.024L25.864 4z"})],-1)),(0,r.createElementVNode)("p",N,(0,r.toDisplayString)(e.__("LeMemento a été un moteur social important pour notre c
2ommunauté. Il est le trait dâunion entre les personnes, les commerces et groupement locaux et a apporté un nouvel élan dans les relations entre les personnes en consolidant lâesprit de collaboration, de communication et dâaide. Le nouveau site a donc contribué à renforcer la devise « à Hauterive il fait bon vivre »"))+". ",1)]),(0,r.createElementVNode)("footer",S,[t[10]||(t[10]=(0,r.createElementVNode)("p",{class:"text-base font-medium text-white"}," Claudio Berta ",-1)),(0,r.createElementVNode)("p",V,(0,r.toDisplayString)(e.__("Ambassadeur du projet, Hauterive (FR)")),1),(0,r.createElementVNode)("a",A,(0,r.toDisplayString)(e.__("Découvrez la commune d'Hauterive sur LeMemento")),1)])])])])])])])]),(0,r.createElementVNode)("section",D,[(0,r.createElementVNode)("div",M,[(0,r.createElementVNode)("div",T,[(0,r.createVNode)(H,{type:"h1",as:"h2",text:e.__("Accéder à la version de démonstration.")},null,8,["text"])]),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(H,{type:"h3",as:"span",text:e.__("Découvrez l'application en détail, sans engagement.")},null,8,["text"])]),(0,r.createElementVNode)("div",B,[(0,r.createElementVNode)("div",O,[(0,r.createElementVNode)("a",{href:e.route("landingpage.contact"),class:"inline-flex items-center justify-center rounded-md border border-transparent bg-lm-blue px-5 py-3 text-base font-medium text-white hover:bg-lm-light-blue"},(0,r.toDisplayString)(e.__("Nous contacter")),9,P)]),(0,r.createElementVNode)("div",L,[(0,r.createElementVNode)("a",I,(0,r.toDisplayString)(e.__("Découvrez la démo")),1)])])])])],64)}]])},5199:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(6301),o={class:"2xl:container"},i={class:"sm:flex flex justify-between"},a={class:"flex items-center justify-center w-full"},s={class:"flex flex-col gap-4"},l={class:"flex items-end justify-between flex-grow gap-4"},c=["onClick"],u={style:{width:"100%","max-width":"500px"}};var d=n(641),p=n(5720),h=n(9234),f=n(9506),m=n(6581),g=n(1678),v=n(1798);const y=(0,d.pM)({props:{partners:Object},data:function(){return{partnersData:[],drag:!1}},layout:p.A,components:{Head:h.p3,LmInputText:f.zX,LmInputFile:f.M3,LmAccordion:m.A,draggable:g.H,LmAdImage:v.A},mounted:function(){this.partnersData=this.partners||[]},computed:{dragOptions:function(){return{animation:200,group:"description",disabled:!1,ghostClass:"ghost"}}},methods:{addNew:function(){this.partnersData.unshift({id:null,title:"Exemple",link:"www.example.com",image:"",order:1}),this.updateOrder()},updateOrder:function(){for(var e=0;e<this.partnersData.length;e++)this.partnersData[e].order=e+1},deletePartner:function(e){confirm(this.__("Diese Partner löschen?"))&&this.$inertia.post(route("admin.partners.delete",{commune:this.$page.props.commune.slug}),{id:e},{preserveState:!1})},uploadedPartnerImage:function(e,t){var n=t,r=new FileReader;r.onloadend=function(){e.image=r.result}
2,r.readAsDataURL(n)},save:function(){var e=this;(0,h.mN)(this.partnersData).post(route("admin.partners.update",{commune:this.$page.props.commune.slug}),{onSuccess:function(){e.$inertia.reload({only:["partnersData"]}),e.partnersData=e.partners}})}}});var b=n(5072),x=n.n(b),w=n(9174),k={insert:"head",singleton:!1};x()(w.A,k);w.A.locals;const _=(0,n(6262).A)(y,[["render",function(e,t,n,d,p,h){var f=(0,r.resolveComponent)("Head"),m=(0,r.resolveComponent)("Text"),g=(0,r.resolveComponent)("lm-input-text"),v=(0,r.resolveComponent)("lm-input-file"),y=(0,r.resolveComponent)("lm-accordion"),b=(0,r.resolveComponent)("draggable"),x=(0,r.resolveComponent)("lm-partner-image");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createVNode)(f,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("title",null,(0,r.toDisplayString)(e.__("Partners")),1)]})),_:1}),(0,r.createVNode)(m,{type:"h1",text:e.__("Partners")},null,8,["text"]),t[6]||(t[6]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createElementVNode)("div",i,[(0,r.createVNode)(m,{type:"h2",text:e.__("All partners")},null,8,["text"]),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("button",{class:"btn-secondary mb-6 mr-4",onClick:t[0]||(t[0]=function(){return e.addNew&&e.addNew.apply(e,arguments)})},(0,r.toDisplayString)(e.__("New partner")),1),(0,r.createElementVNode)("button",{class:"btn-primary mb-6",onClick:t[1]||(t[1]=function(){return e.save&&e.save.apply(e,arguments)})},(0,r.toDisplayString)(e.__("Speichern")),1)])]),(0,r.createVNode)(b,(0,r.mergeProps)({list:e.partnersData,onChange:e.updateOrder,handle:".drag-trigger"},e.dragOptions),{default:(0,r.withCtx)((function(){return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.partnersData,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n.id,class:"text-left"},[(0,r.createVNode)(y,{title:"".concat(n.title),chevron:!1},{header:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",{class:"drag-trigger px-2 cursor-move",onMousedown:t[2]||(t[2]=function(t){return e.drag=!e.drag})},t[3]||(t[3]=[(0,r.createElementVNode)("i",{class:"bi bi-arrows-move"},null,-1)]),32)])]})),default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(g,{maxlength:"60",label:e.__("Partner title"),modelValue:n.title,"onUpdate:modelValue":function(e){return n.title=e}},null,8,["label","modelValue","onUpdate:modelValue"]),(0,r.createVNode)(g,{maxlength:"100",label:e.__("Partner link"),modelValue:n.link,"onUpdate:modelValue":function(e){return n.link=e}},null,8,["label","modelValue","onUpdate:modelValue"])]),(0,r.createElementVNode)("div",l,[n.image?((0,r.openBlock)(),(0,r.createBlock)(v,{key:1,fileTypes:"image/*",label:e.__("Partner image"),onOnfilechange:function(t){return e.uploadedPartnerImage(n,t)},placeholder:e.__("Change image")},null,8,["label","onOnfilechange","placeholder"])):((0,r.openBlock)(),(0,r.createBlock)(v,{key:0,fileTypes:"image/*",label:e.__("Partner image"),onOnfilechange:function(t){return e.uploadedPartnerImage(n,t)},placeholder:e.__("Upload image")},null,8,["label","onOnfilechange","placeholder"])),(0,r.createElementVNode)("button",{class:"text-red-500 self-end",onClick:function(t){return e.deletePartner(n)}},(0,r.toDisplayString)(e.__("Löschen")),9,c)])])]})),_:2},1032,["title"])])})),128))]})),_:1},16,["list","onChange"]),t[7]||(t[7]=(0,r.createElementVNode)("br",null,null,-1)),t[8]||(t[8]=(0,r.createElementVNode)("hr",null,null,-1)),t[9]||(t[9]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createVNode)(m,{type:"h2",text:e.__("Partners overview")},null,8,["text"]),t[10]||(t[10]=(0,r.createElementVNode)("br",null,null,-1)),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.partnersData,(function(e,n){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,class:"justify-between text-left"},[t[4]||(t[4]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createVNode)(m,{type:"h3",text:e.title},null,8,["text"]),t[5]||(t[5]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createElementVNode)("div",u,[(0,r.createVNode)(x,{image:e.image,link:e.link},null,8,["image","link"])])])})),128))])}],["__scopeId","data-v-c3c59c12"]])}
2,5238:(e,t,n)=>{"use strict";let r=n(3152);class o extends r{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}}e.exports=o,o.default=o},5269:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(6301),o={class:"fixed inset-0 overflow-y-auto px-4 py-6 sm:px-0 z-50","scroll-region":""};var i=n(641);const a=(0,i.pM)({emits:["close"],props:{show:{default:!1},maxWidth:{default:"2xl"},closeable:{default:!0}},watch:{show:{immediate:!0,handler:function(e){document.body.style.overflow=e?"hidden":null}}},setup:function(e,t){var n=t.emit,r=function(){e.closeable&&n("close")},o=function(t){"Escape"===t.key&&e.show&&r()};return(0,i.sV)((function(){return document.addEventListener("keydown",o)})),(0,i.hi)((function(){document.removeEventListener("keydown",o),document.body.style.overflow=null})),{close:r}},computed:{maxWidthClass:function(){return{sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl"}[this.maxWidth]}}});const s=(0,n(6262).A)(a,[["render",function(e,t,n,i,a,s){return(0,r.openBlock)(),(0,r.createBlock)(r.Teleport,{to:"body"},[(0,r.createVNode)(r.Transition,{"leave-active-class":"duration-200"},{default:(0,r.withCtx)((function(){return[(0,r.withDirectives)((0,r.createElementVNode)("div",o,[(0,r.createVNode)(r.Transition,{"enter-active-class":"ease-out duration-300","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-200","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:(0,r.withCtx)((function(){return[(0,r.withDirectives)((0,r.createElementVNode)("div",{class:"fixed inset-0 transform transition-all",onClick:t[0]||(t[0]=function(){return e.close&&e.close.apply(e,arguments)})},t[1]||(t[1]=[(0,r.createElementVNode)("div",{class:"absolute inset-0 bg-slate-500 opacity-75"},null,-1)]),512),[[r.vShow,e.show]])]})),_:1}),(0,r.createVNode)(r.Transition,{"enter-active-class":"ease-out duration-300","enter-from-class":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to-class":"opacity-100 translate-y-0 sm:scale-100","leave-active-class":"ease-in duration-200","leave-from-class":"opacity-100 translate-y-0 sm:scale-100","leave-to-class":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:(0,r.withCtx)((function(){return[(0,r.withDirectives)((0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["mb-6 bg-white rounded-lg overflow-hidden shadow-xl transform transition-all sm:w-full sm:mx-auto",e.maxWidthClass])},[e.show?(0,r.renderSlot)(e.$slots,"default",{key:0}):(0,r.createCommentVNode)("",!0)],2),[[r.vShow,e.show]])]})),_:3})],512),[[r.vShow,e.show]])]})),_:3})])}]])},5343:(e,t,n)=>{"use strict";var r=n(9516);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=l(void 0,e[o])):n[o]=l(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),r.forEach(i,c),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=l(void 0,e[o])):n[o]=l(void 0,t[o])})),r.forEach(s,(function(r){r in t?n[r]=l(e[r],t[r]):r in e&&(n[r]=l(void 0,e[r]))}));var u=o.concat(i).concat(a).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(d,c),n}},5345:e=>{"use strict";e.exports=URIError},5373:(e,t,n)=>{"use strict";var r=n(8636),o=n(2642),i=n(4765);e.exports={formats:i,parse:o,stringify:r}},5384:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6301),o={class:"py-2 w-full font-medium text-gray-900"},i=["name","checked","onInput"],a=["name","checked","onInput"];const s=(0,n(641).pM)({data:function(){return{localValue:""}},emits:["update:modelValue"],props:{type:{type:String,default:"default"},value:[Number,String,Boolean],values:{type:Array},classesList:{type:String}},methods:{updateLocalValue:function(e,t){this.$emit("update:modelValue",e?1:0)}},created:function(){this.value?this.localValue=this.value:this.localValue=this.values[0].value}});const l=(0,n(6262).A)(s,[["render",function(e,t,n,s,l,c){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.classesList)},["bordered"===this.type?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)(e.values,(function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n,class:"flex items-center px-4 roun
2ded border border-gray-200"},[(0,r.createElementVNode)("label",o,[(0,r.createElementVNode)("input",{type:"checkbox",name:t.name,checked:t.value,onInput:function(t){return e.updateLocalValue(t.target.checked,n)},class:"rounded w-4 h-4 mr-2 text-cm-primary bg-gray-100 border-gray-300 focus:ring-gray-500 focus:ring-2"},null,40,i),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(t.label),1)])])})),128)):(0,r.createCommentVNode)("",!0),"default"===this.type?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(e.values,(function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)("label",{key:n},[(0,r.createElementVNode)("input",{type:"checkbox",name:t.name,checked:t.value,onInput:function(t){return e.updateLocalValue(t.target.checked,n)},class:"rounded w-4 h-4 mr-2 text-cm-primary bg-gray-100 border-gray-300 focus:ring-gray-500 focus:ring-2"},null,40,a),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(t.label),1)])})),128)):(0,r.createCommentVNode)("",!0)],2)}]])},5393:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6301),o={class:"block font-medium text-sm text-gray-700"},i={key:0},a={key:1};const s=(0,n(641).pM)({props:["value"]});const l=(0,n(6262).A)(s,[["render",function(e,t,n,s,l,c){return(0,r.openBlock)(),(0,r.createElementBlock)("label",o,[e.value?((0,r.openBlock)(),(0,r.createElementBlock)("span",i,(0,r.toDisplayString)(e.value),1)):((0,r.openBlock)(),(0,r.createElementBlock)("span",a,[(0,r.renderSlot)(e.$slots,"default")]))])}]])},5413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},5449:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},5452:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(6301),o={class:"mb-4 text-sm text-gray-600"},i={key:0},a={key:1},s={class:"flex items-center justify-end mt-4"},l=["disabled","value"];var c=n(641),u=n(9234),d=n(4046),p=n(8045),h=n(1816),f=n(4296),m=n(5393),g=n(5860);const v=(0,c.pM)({components:{Head:u.p3,JetAuthenticationCard:d.A,JetAuthenticationCardLogo:p.A,JetButton:h.A,JetInput:f.A,JetLabel:m.A,JetValidationErrors:g.A},data:function(){return{recovery:!1,form:this.$inertia.form({code:"",recovery_code:""})}},methods:{toggleRecovery:function(){var e=this;this.recovery^=!0,this.$nextTick((function(){e.recovery?(e.$refs.recovery_code.focus(),e.form.code=""):(e.$refs.code.focus(),e.form.recovery_code="")}))},submit:function(){this.form.post(this.route("two-factor.login"))}}});const y=(0,n(6262).A)(v,[["render",function(e,t,n,c,u,d){var p=(0,r.resolveComponent)("Head"),h=(0,r.resolveComponent)("Link"),f=(0,r.resolveComponent)("jet-validation-errors"),m=(0,r.resolveComponent)("jet-label"),g=(0,r.resolveComponent)("jet-input"),v=(0,r.resolveComponent)("jet-authentication-card");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(p,{title:"Two-factor Confirmation"}),(0,r.createVNode)(v,null,{logo:(0,r.withCtx)((function(){return[(0,r.createVNode)(h,{href:"/"},{default:(0,r.withCtx)((function(){return t[4]||(t[4]=[(0,r.createElementVNode)("img",{src:"/img/admin/[email protected]",alt:"Logo LeMemento"},null,-1)])})),_:1})]})),default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",o,[e.recovery?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("2faRecovery")),1)],64)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("2faText")),1)],64))]),(0,r.createVNode)(f,{class:"mb-4"}),(0,r.createElementVNode)("form",{onSubmit:t[3]||(t[3]=(0,r.withModifiers)((function(){return e.submit&&e.submit.apply(e,arguments)}),["prevent"]))},[e.recovery?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[(0,r.createVNode)(m,{for:"recovery_code",value:e.__("Wiederherstellungscode")},null,8,["value"]),(0,r.createVNode)(g,{ref:"recovery_code",id:"recovery_code",type:"text",class:"mt-1 block w-full",modelValue:e.form.recovery_code,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.form.recovery_code=t}),autocomplete:"one-time-code"},null,8,["modelValue"])])):((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createVNode)(m,{for:"code",value:"Code"}
2),(0,r.createVNode)(g,{ref:"code",id:"code",type:"text",inputmode:"numeric",class:"mt-1 block w-full",modelValue:e.form.code,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.form.code=t}),autofocus:"",autocomplete:"one-time-code"},null,8,["modelValue"])])),(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("button",{type:"button",class:"text-sm text-gray-600 hover:text-gray-900 underline cursor-pointer",onClick:t[2]||(t[2]=(0,r.withModifiers)((function(){return e.toggleRecovery&&e.toggleRecovery.apply(e,arguments)}),["prevent"]))},[e.recovery?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("authcode")),1)],64)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("recoverycode")),1)],64))]),(0,r.createElementVNode)("input",{type:"submit",class:(0,r.normalizeClass)(["btn-primary bg-lm-blue cursor-pointer hover:bg-lm-light-blue ml-4 text-white",{"opacity-25":e.form.processing}]),disabled:e.form.processing,value:e.__("Anmelden")},null,10,l)])],32)]})),_:1})],64)}]])},5504:(e,t)=>{"use strict";function n(e){for(var t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Map(n
vendor: 7,341 bytes, line 2
2([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙
vendor: 15,992 bytes, line 2
2"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(n([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(n([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(n([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]))},
25512:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(6301),o={class:"mt-4 space-y-8"},i={key:0,class:"flex justify-between items-center"},a={key:1},s={key:2},l={key:2,class:"mt-12 mb-4"};var c=n(641),u=n(3463),d=n(1049);const p=(0,c.pM)({emits:["loaded"],components:{AnnonceTeaser:u.A,LmSpinner:d.A},props:{isCompaniesDisplay:{type:Boolean,default:!1},items:{type:Object,required:!0},columns:{type:Number,default:3},displayTitle:{type:Boolean,default:!1},titleText:{type:String,default:null},disableDisplayButtons:{type:Boolean,default:!1}},data:function(){return{display:"cards",gridClass:null}},mounted:function(){var e=localStorage.getItem("displayType");e&&(this.display=e),this.isCompaniesDisplay&&(this.display="company"),this.switchGridClass()},methods:{switchGridClass:function(){if("cards"===this.display||"company"===this.display)switch(this.columns){case 1:this.gridClass="gap-8 grid-cols-1";break;case 2:this.gridClass="gap-8 grid-cols-1 lg:grid-cols-2";break;case 3:default:this.gridClass="gap-8 grid-cols-1 lg:grid-cols-2 xl:grid-cols-3";break;case 4:this.gridClass="gap-8 grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"}else this.gridClass="gap-4 grid-cols-1"},displayType:function(e){this.display=e,localStorage.setItem("displayType",e),this.switchGridClass()}}});var h=n(5072),f=n.n(h),m=n(1690),g={insert:"head",singleton:!1};f()(m.A,g);m.A.locals;const v=(0,n(6262).A)(p,[["render",function(e,t,n,c,u,d){var p=(0,r.resolveComponent)("Text"),h=(0,r.resolveComponent)("Link"),f=(0,r.resolveComponent)("annonce-teaser");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[e.isCompaniesDisplay?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[e.displayTitle?((0,r.openBlock)(),(0,r.createBlock)(h,{key:0,href:e.route("annonces.index",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(p,{type:"h2",text:e.titleText},null,8,["text"])]})),_:1},8,["href"])):((0,r.openBlock)(),(0,r.createElementBlock)("div",a," ")),e.disableDisplayButtons?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.createElementVNode)("button",{class:(0,r.normalizeClass)({"text-cm-primary":"list"===e.display}),onClick:t[0]||(t[0]=function(t){return e.displayType("list")})},t[2]||(t[2]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zM3.75 12h.007v.008H3.75V12zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm-.375 5.25h.007v.008H3.75v-.008zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"})],-1)]),2),(0,r.createElementVNode)("button",{class:(0,r.normalizeClass)({"text-cm-primary":"cards"===e.display}),onClick:t[1]||(t[1]=function(t){return e.displayType("cards")})},t[3]||(t[3]=[(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25A2.25 2.25 0 0113.5 18v-2.25z"})],-1)]),2)]))])),e.items&&e.items.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,class:(0,r.normalizeClass)(["grid mt-4",e.gridClass])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.items,(function(t,n){return(0,r.openBlock)(),(0,r.createBlock)(f,{key:n+1,class:"opacity-0 transition-opacity fadein",annonce:t,display:e.display},null,8,["annonce","display"])})),128))],2)):((0,r.openBlock)(),(0,r.createElementBlock)("div",l,[(0,r.createVNode)(p,{type:"h3",text:e.__("Aucun résultat")},null,8,["text"]),(0,r.createVNode)(p,{type:"p",text:"Essayez de réinitialiser les filtres ou de changer votre recherche."})]))])}],["__scopeId","data-v-1705fe46"]])},5560:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6301),o={class:"hidden sm:block"};const i={},a=(0,n(6262).A)(i,[["render",function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,t[0]||(t[0]=[(0,r.createElementVNode)("div",{class:"py-8"},[(0,r.createElementVNode)("div",{class:"border-t border-gray-200"})],-1)]))}]])},5581:(e,t,n)=>{"use strict";n.d(t,{Ng:()=>a,sb:()=>i,vq:()=>o});var r=n(8979);function o(e){return e instanceof(0,r.A)(e).Element||e instanceof Element}function i(e){return e instanceof(0,r.A)(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,r.A)(e).ShadowRoot||e instanceof ShadowRoot)}},5592:(e,t,n)=>{"use strict";var r=n(9516),o=n(7522),i=n(3948),a=n(9106),s=n(9615),l=n(2012),c=n(4202),u=n(7763);e.exports=function(e){return new Promise((function(t,n){var d=e.data,p=e.headers,h=e.responseType;r.isFormData(d)&&delete p["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(m+":"+g)}var v=s(e.baseURL,e.url);function y(){if(f){var r="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null,i={data:h&&"text"!==h&&"json"!==h?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:e,request:f};o(t,n,i),f=null}}if(f.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,"onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(y)},f.onabort=function(){f&&(n(u("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(u("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||c(v))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;b&&(p[e.xsrfHeaderName]=b)}"setRequestHeader"in f&&r.forEach(p,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:f.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),h&&"json"!==h&&(f.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),n(e),f=null)})),d||(d=null),f.send(d)}))}},5606:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&p())}function p(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||c||a(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},5644:(e,t,n)=>{"use strict";let r,o,i=n(7793);class a extends i{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new r(new o,this,e).stringify()}}a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{o=e},e.exports=a,a.default=a,i.registerRoot(a)}
2,5649:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Q});var r=n(6301),o={class:"mx-auto p-4 max-w-7xl xl:container"},i={class:"flex justify-between"},a={class:"flex gap-4 flex-wrap"},s={key:0},l={value:null},c=["value"],u={class:""},d={value:null},p={value:"createdAtAsc"},h={value:"createdAtDesc"},f={value:"nameAsc"},m={value:"nameDesc"},g={key:0,class:"border-t border-gray-200 px-4 sm:px-0 mt-8"},v={class:"flex items-center justify-center"},y={class:"-mt-px flex sm:hidden w-0 flex-1"},b=["innerHTML"],x={class:"-mt-px hidden sm:flex"},w=["innerHTML"],k=["innerHTML"],_={class:"-mt-px flex sm:hidden w-0 flex-1 justify-end"},E=["innerHTML"],C={class:"flex items-center justify-center mt-2"},N=["textContent"],S=["textContent"],V=["textContent"],A={key:1,class:"border-t border-gray-200 px-4 sm:px-0 mt-8"},D={class:"flex items-center justify-center"},M={class:"-mt-px flex sm:hidden w-0 flex-1"},T=["innerHTML"],B={class:"-mt-px hidden sm:flex"},O=["innerHTML"],P=["innerHTML"],L={class:"-mt-px flex sm:hidden w-0 flex-1 justify-end"},I=["innerHTML"],j={class:"flex items-center justify-center mt-2"},R=["textContent"],$=["textContent"],z=["textContent"];var F=n(641),H=n(8367),U=n(1546),W=n(9506),q=n(1049),Y=n(5512);const G=(0,F.pM)({layout:H.A,components:{LmStage:U.default,LmRadioGroup:W.ug,AnnonceGrid:Y.A,LmInputText:W.zX,LmSpinner:q.A,TagSelector:W.Cx},data:function(){return{q:"",category:null,searchUrl:"",orderby:null,page:1,tags:[]}},props:{annonces:{type:Object},categories:{type:Object}},mounted:function(){var e,t,n=new URLSearchParams(window.location.search);this.q=n.get("q")?n.get("q"):"",this.category=null!==(e=n.get("category"))&&void 0!==e?e:null,this.orderby=null!==(t=n.get("orderby"))&&void 0!==t?t:null,n.get("tag")&&(this.tags=n.get("tag").split(","))},methods:{updateTags:function(e){this.tags=e},calcAnimationDelay:function(e){return e/10+"s"},search:function(e){var t=this.generateUrlParams();this.$inertia.visit(e,{method:"get",data:t})},generateUrlParams:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={};if(this.q.length>2&&(t.q=this.q),this.category&&(t.category=this.category),this.orderby&&(t.orderby=this.orderby),e&&(t.page=this.page),this.tags.length>0){var n=this.tags.join(",");t.tag=n}return t}}});var K=n(5072),J=n.n(K),X=n(847),Z={insert:"head",singleton:!1};J()(X.A,Z);X.A.locals;const Q=(0,n(6262).A)(G,[["render",function(e,t,n,F,H,U){var W=(0,r.resolveComponent)("Head"),q=(0,r.resolveComponent)("lm-stage"),Y=(0,r.resolveComponent)("lm-input-text"),G=(0,r.resolveComponent)("tag-selector"),K=(0,r.resolveComponent)("Link"),J=(0,r.resolveComponent)("AnnonceGrid");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(W,{title:e.__("Toutes les annonces")},null,8,["title"]),(0,r.createVNode)(q,{compact:!0,title:e.__("Toutes les annonces"),subtitle:"Anzeigen","search-widget":!1},null,8,["title"]),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(Y,{placeholder:e.__("Suchen"),modelValue:e.q,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.q=t}),icon:"<svg viewBox='0 0 20 20' fill='currentColor' class='w-3 h-3'>\n <path fill-rule='evenodd' d='M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z' clip-rule='evenodd' />\n </svg>",onEnter:t[1]||(t[1]=function(t){return e.search(e.route("annonces.index",{commune:e.$page.props.commune.slug}))}),iconClickable:!0,onIconClick:t[2]||(t[2]=function(t){return e.search(e.route("annonces.index",{commune:e.$page.props.commune.slug}))})},null,8,["placeholder","modelValue"])]),e.$page.props.commune.enable_tags?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.createVNode)(G,{placeholder:e.__("Chercher par tag"),showLabel:!1,onUpdate:e.updateTags,readonly:!0,inputTags:e.tags},null,8,["placeholder","onUpdate","inputTags"])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",null,[(0,r.withDirectives)((0,r.createElementVNode)("select",{"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.category=t}),onChange:t[4]||(t[4]=function(t){return e.search(e.route("annonces.index",{commune:e.$page.props.commune.slug}))}),id:"category",class:"block mb-2 rounded w-full bg-slate-100/80 border-none focus:ring-gray-200"},[(0,r.createElementVNode)("option",l,(0,r.toDisplayString)(e.__("Alle Kategorien")),1),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.categories,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("option",{key:t.name,value:t.id},(0,r.toDisplayString)(t.name[e.$page.props.locale]),9,c)})),128))],544),[[r.vModelSelect,e.category]])]),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("button",{class:"btn-primary",onClick:t[5]||(t[5]=function(t){return e.search(e.route("annonces.index",{commune:e.$page.props.commune.slug}))})},(0,r.toDisplayString)(e.__("Suchen")),1)])]),(0,r.createElementVNode)("div",u,[(0,r.withDirectives)((0,r.createElementVNode)("select",{"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.orderby=t}),onChange:t[7]||(t[7]=function(t){return e.search(e.route("annonces.index",{commune:e.$page.props.commune.slug}))}),id:"orderby",class:"block mb-2 rounded w-full bg-slate-100/80 border-none focus:ring-gray-200"},[(0,r.createElementVNode)("option",d,(0,r.toDisplayString)(e.__("Trier par")),1),(0,r.createElementVNode)("option",p,(0,r.toDisplayString)(e.__("Date de publication (plus anciens)")),1),(0,r.createElementVNode)("option",h,(0,r.toDisplayString)(e.__("Date de publication (plus récents)")),1),(0,r.createElementVNode)("option",f,(0,r.toDisplayString)(e.__("Nom (A à Z)")),1),(0,r.createElementVNode)("option",m,(0,r.toDisplayString)(e.__("Nom (Z à A)")),1)],544),[[r.vModelSelect,e.orderby]])])]),e.annonces.last_page>1?((0,r.openBlock)(),(0,r.createElementBlock)("div",g,[(0,r.createElementVNode)("nav",v,[(0,r.createElementVNode)("div",y,[(0,r.createVNode)(K,{href:e.annonces.prev_page_url,class:"inline-flex items-center border-t-2 border-transparent pt-4 pr-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700"},{default:(0,r.withCtx)((function(){return[t[8]||(t[8]=(0,r.createElementVNode)("svg",{class:"mr-3 h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M18 10a.75.75 0 01-.75.75H4.66l2.1 1.95a.75.75 0 11-1.02 1.1l-3.5-3.25a.75.75 0 010-1.1l3.5-3.25a.75.75 0 111.02 1.1l-2.1 1.95h12.59A.75.75 0 0118 10z","clip-rule":"evenodd"})],-1)),(0,r.createElementVNode)("span",{innerHTML:e.__("previous")},null,8,b)]})),_:1},8,["href"])]),(0,r.createElementVNode)("div",x,[e.annonces.prev_page_url?((0,r.openBlock)(),(0,r.createBlock)(K,{key:0,href:e.annonces.prev_page_url,class:"inline-flex items-center border-t-2 border-transparent px-4 pt-4 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700"},{default:(0,r.withCtx)((function(){return[t[9]||(t[9]=(0,r.createElementVNode)("svg",{class:"mr-3 h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M18 10a.75.75 0 01-.75.75H4.66l2.1 1.95a.75.75 0 11-1.02 1.1l-3.5-3.25a.75.75 0 010-1.1l3.5-3.25a.75.75 0 111.02 1.1l-2.1 1.95h12.59A.75.75 0 0118 10z","clip-rule":"evenodd"})],-1)),(0,r.createElementVNode)("span",{innerHTML:e.__("previous")},null,8,w)]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.annonces.links,(function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[t.active||Math.abs(e.annonces.current_page-t.label)<=2?((0,r.openBlock)(),(0,r.createBlock)(K,{key:0,class:(0,r.normalizeClass)(["inline-flex items-center border-t-2 border-transparent px-4 pt-4 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700",{"border-cm-primary text-cm-primary":t.active}]),href:t.url,innerHTML:t.label},null,8,["class","href","innerHTML"])):(0,r.createCommentVNode)("",!0)],64)})),256)),e.annonces.next_page_url?((0,r.openBlock)(),(0,r.createBlock)(K,{key:1,href:e.annonces.next_page_url,class:"inline-flex items-center border-t-2 border-transparent px-4 pt-4 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700"},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("span",{innerHTML:e.__("next")},null,8,k),t[10]||(t[10]=(0,r.createElementVNode)("svg",{class:"ml-3 h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M2 10a.75.75 0 01.75-.75h12.59l-2.1-1.95a.75.75 0 111.02-1.1l3.5 3.25a.75.75 0 010 1.1l-3.5 3.25a.75.75 0 11-1.02-1.1l2.1-1.95H2.75A.75.75 0 012 10z","clip-rule":"evenodd"})],-1))]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",_,[e.annonces.next_page_url?((0,r.openBlock)(),(0,r.createBlock)(K,{key:0,href:e.annonces.next_page_url,class:"inline-flex items-center border-t-2 border-transparent pt-4 pl-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700"},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("span",{innerHTML:e.__("next")},null,8,E),t[11]||(t[11]=(0,r.createElementVNode)("svg",{class:"ml-3 h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M2 10a.75.75 0 01.75-.75h12.59l-2.1-1.95a.75.75 0 111.02-1.1l3.5 3.25a.75.75 0 010 1.1l-3.5 3.25a.75.75 0 11-1.02-1.1l2.1-1.95H2.75A.75.75 0 012 10z","clip-rule":"evenodd"})],-1))]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)])]),(0,r.createElementVNode)("div",C,[t[12]||(t[12]=(0,r.createTextVNode)(" page ")),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(e.annonces.current_page)},null,8,N),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("of"))+" ",1),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(e.annonces.last_page)},null,8,S),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__(" sur un total "))+" ",1),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(e.annonces.total)},null,8,V),t[13]||(t[13]=(0,r.createTextVNode)(" résultats "))])])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(J,{items:this.annonces.data},null,8,["items"]),e.annonces.last_page>1?((0,r.openBlock)(),(0,r.createElementBlock)("div",A,[(0,r.createElementVNode)("nav",D,[(0,r.createElementVNode)("div",M,[(0,r.createVNode)(K,{href:e.annonces.prev_page_url,class:"inline-flex items-center border-t-2 border-transparent pt-4 pr-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700"},{default:(0,r.withCtx)((function(){return[t[14]||(t[14]=(0,r.createElementVNode)("svg",{class:"mr-3 h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M18 10a.75.75 0 01-.75.75H4.66l2.1 1.95a.75.75 0 11-1.02 1.1l-3.5-3.25a.75.75 0 010-1.1l3.5-3.25a.75.75 0 111.02 1.1l-2.1 1.95h12.59A.75.75 0 0118 10z","clip-rule":"evenodd"})],-1)),(0,r.createElementVNode)("span",{innerHTML:e.__("previous")},null,8,T)]})),_:1},8,["href"])]),(0,r.createElementVNode)("div",B,[e.annonces.prev_page_url?((0,r.openBlock)(),(0,r.createBlock)(K,{key:0,href:e.annonces.prev_page_url,class:"inline-flex items-center border-t-2 border-transparent px-4 pt-4 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700"},{default:(0,r.withCtx)((function(){return[t[15]||(t[15]=(0,r.createElementVNode)("svg",{class:"mr-3 h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M18 10a.75.75 0 01-.75.75H4.66l2.1 1.95a.75.75 0 11-1.02 1.1l-3.5-3.25a.75.75 0 010-1.1l3.5-3.25a.75.75 0 111.02 1.1l-2.1 1.95h12.59A.75.75 0 0118 10z","clip-rule":"evenodd"})],-1)),(0,r.createElementVNode)("span",{innerHTML:e.__("previous")},null,8,O)]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.annonces.links,(function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[t.active||Math.abs(e.annonces.current_page-t.label)<=2?((0,r.openBlock)(),(0,r.createBlock)(K,{key:0,class:(0,r.normalizeClass)(["inline-flex items-center border-t-2 border-transparent px-4 pt-4 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700",{"border-cm-primary text-cm-primary":t.active}]),href:t.url,innerHTML:t.label},null,8,["class","href","innerHTML"])):(0,r.createCommentVNode)("",!0)],64)})),256)),e.annonces.next_page_url?((0,r.openBlock)(),(0,r.createBlock)(K,{key:1,href:e.annonces.next_page_url,class:"inline-flex items-center border-t-2 border-transparent px-4 pt-4 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700"},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("span",{innerHTML:e.__("next")},null,8,P),t[16]||(t[16]=(0,r.createElementVNode)("svg",{class:"ml-3 h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M2 10a.75.75 0 01.75-.75h12.59l-2.1-1.95a.75.75 0 111.02-1.1l3.5 3.25a.75.75 0 010 1.1l-3.5 3.25a.75.75 0 11-1.02-1.1l2.1-1.95H2.75A.75.75 0 012 10z","clip-rule":"evenodd"})],-1))]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",L,[e.annonces.next_page_url?((0,r.openBlock)(),(0,r.createBlock)(K,{key:0,href:e.annonces.next_page_url,class:"inline-flex items-center border-t-2 border-transparent pt-4 pl-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700"},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("span",{innerHTML:e.__("next")},null,8,I),t[17]||(t[17]=(0,r.createElementVNode)("svg",{class:"ml-3 h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M2 10a.75.75 0 01.75-.75h12.59l-2.1-1.95a.75.75 0 111.02-1.1l3.5 3.25a.75.75 0 010 1.1l-3.5 3.25a.75.75 0 11-1.02-1.1l2.1-1.95H2.75A.75.75 0 012 10z","clip-rule":"evenodd"})],-1))]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)])]),(0,r.createElementVNode)("div",j,[t[18]||(t[18]=(0,r.createTextVNode)(" page ")),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(e.annonces.current_page)},null,8,R),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("of"))+" ",1),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(e.annonces.last_page)},null,8,$),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__(" sur un total "))+" ",1),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(e.annonces.total)},null,8,z),t[19]||(t[19]=(0,r.createTextVNode)(" résultats "))])])):(0,r.createCommentVNode)("",!0)])],64)}
2],["__scopeId","data-v-a2422ee8"]])},5715:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(6301),o=["src"],i=["src"],a=["data"];const s=(0,n(641).pM)({props:{file:{type:Object,required:!0}},computed:{isImage:function(){var e,t;return(null===(e=this.file.mime_type)||void 0===e?void 0:e.startsWith("image/"))||(null===(t=this.file.type)||void 0===t?void 0:t.startsWith("image/"))},isVideo:function(){var e,t;return(null===(e=this.file.mime_type)||void 0===e?void 0:e.startsWith("video/"))||(null===(t=this.file.type)||void 0===t?void 0:t.startsWith("video/"))},getSrc:function(){return this.file instanceof Blob||this.file instanceof File?URL.createObjectURL(this.file):this.file.original_url?this.file.original_url:""}}});var l=n(5072),c=n.n(l),u=n(6085),d={insert:"head",singleton:!1};c()(u.A,d);u.A.locals;const p=(0,n(6262).A)(s,[["render",function(e,t,n,s,l,c){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[e.isImage?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,src:e.getSrc,onTouchstart:t[0]||(t[0]=function(t){return e.$emit("touchstart",t)}),onTouchend:t[1]||(t[1]=function(t){return e.$emit("touchend",t)})},null,40,o)):e.isVideo?((0,r.openBlock)(),(0,r.createElementBlock)("video",{key:1,src:e.getSrc,controls:"",onTouchstart:t[2]||(t[2]=function(t){return e.$emit("touchstart",t)}),onTouchend:t[3]||(t[3]=function(t){return e.$emit("touchend",t)})},null,40,i)):this.file.link?((0,r.openBlock)(),(0,r.createElementBlock)("object",{key:2,data:this.file.link,width:"100%",height:"200",type:"application/pdf"},null,8,a)):(0,r.createCommentVNode)("",!0)])}]])},5720:(e,t,n)=>{"use strict";n.d(t,{A:()=>N});
2var r=n(6301),o={class:"admin-page lg:flex"},i={class:"hidden lg:block lg:w-[250px] lg:h-screen flex-shrink-0"},a={class:"fixed h-screen py-4 bg-slate-100 w-[250px] overflow-auto"},s={class:"lg:hidden relative"},l={class:"fixed w-screen h-screen top-0 text-white z-30"},c={class:"flex justify-between"},u={class:"lg:hidden w-36"},d={class:"flex items-center gap-x-2"},p={class:"relative z-40"};var h=n(641),f=n(7588),m=n(2112),g=n(1857),v=n(8766),y=n(8646),b=n(1939),x=n(7537),w=n(3930),k=n(306),_=n(166),E=n(4633);const C=(0,h.pM)({setup:function(){return{securityOpen:route().current("admin.security.*"),taxonomyOpen:!(!route().current("admin.tags")&&!route().current("admin.categories"))}},data:function(){return{mobileNavOpen:!1}},mounted:function(){var e=this;y.Inertia.on("success",(function(){e.mobileNavOpen=!1}))},props:{title:String},components:{LmNavLink:m.A,JetDropdown:g.A,LmLangSwitcher:v.A,LmNavAccordion:f.A,AdminNavLinksDesktop:b.default,AdminNavLinksMobile:x.default,ManagerNavLinksDesktop:w.default,ManagerNavLinksMobile:k.default,LmNotification:_.A,LmProfileDropdown:E.A},methods:{toggleMobileNav:function(){this.mobileNavOpen=!this.mobileNavOpen},closeMobileNav:function(){this.mobileNavOpen=!1}}});const N=(0,n(6262).A)(C,[["render",function(e,t,n,h,f,m){var g=(0,r.resolveComponent)("admin-nav-links-desktop"),v=(0,r.resolveComponent)("manager-nav-links-desktop"),y=(0,r.resolveComponent)("admin-nav-links-mobile"),b=(0,r.resolveComponent)("manager-nav-links-mobile"),x=(0,r.resolveComponent)("Link"),w=(0,r.resolveComponent)("lm-lang-switcher"),k=(0,r.resolveComponent)("lm-profile-dropdown"),_=(0,r.resolveComponent)("lm-notification");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("header",a,[e.route().current("admin.*")?((0,r.openBlock)(),(0,r.createBlock)(g,{key:0,securityOpen:e.securityOpen,taxonomyOpen:e.taxonomyOpen},null,8,["securityOpen","taxonomyOpen"])):(0,r.createCommentVNode)("",!0),e.route().current("manager.*")?((0,r.openBlock)(),(0,r.createBlock)(v,{key:1})):(0,r.createCommentVNode)("",!0)])]),(0,r.createElementVNode)("div",s,[(0,r.withDirectives)((0,r.createElementVNode)("div",l,[e.route().current("admin.*")?((0,r.openBlock)(),(0,r.createBlock)(y,{key:0,securityOpen:e.securityOpen,taxonomyOpen:e.taxonomyOpen},null,8,["securityOpen","taxonomyOpen"])):(0,r.createCommentVNode)("",!0),e.route().current("manager.*")?((0,r.openBlock)(),(0,r.createBlock)(b,{key:1})):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{class:"h-full",onClick:t[0]||(t[0]=function(){return e.closeMobileNav&&e.closeMobileNav.apply(e,arguments)})})],512),[[r.vShow,e.mobileNavOpen]])]),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["relative p-3 lg:p-0 lg:fixed lg:top-3 lg:right-3 z-50 lg:border-none",{"border-b-2 border-gray-200":!e.mobileNavOpen,"border-b-2 border-transparent":e.mobileNavOpen}])},[(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("div",u,[e.route().current("admin.*")?((0,r.openBlock)(),(0,r.createBlock)(x,{key:0,href:e.route("admin.index",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return t[2]||(t[2]=[(0,r.createElementVNode)("img",{src:"/img/admin/[email protected]",alt:"LeMemento Logo"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),e.route().current("manager.*")?((0,r.openBlock)(),(0,r.createBlock)(x,{key:1,href:e.route("manager.index")},{default:(0,r.withCtx)((function(){return t[3]||(t[3]=[(0,r.createElementVNode)("img",{src:"/img/admin/[email protected]",alt:"LeMemento Logo"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",d,[(0,r.createVNode)(w,{whiteText:e.mobileNavOpen},null,8,["whiteText"]),(0,r.createVNode)(k),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["lg:hidden",{"text-lm-blue":e.mobileNavOpen,"text-white":!e.mobileNavOpen}])},[(0,r.createElementVNode)("button",{onClick:t[1]||(t[1]=function(){return e.toggleMobileNav&&e.toggleMobileNav.apply(e,arguments)}),class:(0,r.normalizeClass)(["p-2 text-iconmenu rounded-full",{"bg-white":e.mobileNavOpen,"bg-lm-blue":!e.mobileNavOpen}])},t[4]||(t[4]=[(0,r.createElementVNode)("i",{class:"bi bi-list"}
2,null,-1)]),2)],2)])])],2),(0,r.createElementVNode)("div",p,[(0,r.createVNode)(_)]),(0,r.createElementVNode)("main",{class:(0,r.normalizeClass)(["p-4 lg:p-8 flex-grow relative z-10",{mobileNoScroll:e.mobileNavOpen}])},[(0,r.renderSlot)(e.$slots,"default")],2)])}]])},5736:(e,t,n)=>{"use strict";var r=n(948),o=n(6301),i={key:0};const a={props:{type:{type:String,default:"p"},color:{type:String},as:{type:String,default:null},text:{type:String,default:null}},data:function(){return{classList:"font-normal text-base text-gray-500"}},computed:{translatedText:function(){return this.text?this.__(this.text):null}},mounted:function(){switch(this.type){case"xs":this.classList="font-semibold text-xs";break;case"sm":this.classList="font-normal text-sm";break;case"md":this.classList="font-normal text-md";break;case"lg":this.classList="font-normal text-lg";break;case"p":default:this.classList="font-normal text-base";break;case"h1":this.classList="text-3xl lg:text-5xl inline-block tracking-tight font-bold";break;case"h2":this.classList="text-2xl lg:text-4xl inline-block tracking-tight font-bold";break;case"h3":this.classList="text-lg lg:text-xl font-bold tracking-tight";break;case"h4":this.classList="text-md lg:text-lg font-bold tracking-tight"}}};const s=(0,n(6262).A)(a,[["render",function(e,t,n,r,a,s){var l,c,u=this;return(0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(null!==(l=this.as)&&void 0!==l?l:this.type),{class:(0,o.normalizeClass)([a.classList,null!==(c=n.color)&&void 0!==c?c:null])},{default:(0,o.withCtx)((function(){return[u.translatedText?((0,o.openBlock)(),(0,o.createElementBlock)("span",i,(0,o.toDisplayString)(u.translatedText),1)):(0,o.renderSlot)(e.$slots,"default",{key:1})]})),_:3},8,["class"])}]]);var l=n(9234),c=n(4353),u=n.n(c),d=n(7375),p=n.n(d);const{entries:h,setPrototypeOf:f,isFrozen:m,getPrototypeOf:g,getOwnPropertyDescriptor:v}=Object;let{freeze:y,seal:b,create:x}=Object,{apply:w,construct:k}="undefined"!=typeof Reflect&&Reflect;y||(y=function(e){return e}),b||(b=function(e){return e}),w||(w=function(e,t,n){return e.apply(t,n)}),k||(k=function(e,t){return new e(...t)});const _=j(Array.prototype.forEach),E=j(Array.prototype.lastIndexOf),C=j(Array.prototype.pop),N=j(Array.prototype.push),S=j(Array.prototype.splice),V=j(String.prototype.toLowerCase),A=j(String.prototype.toString),D=j(String.prototype.match),M=j(String.prototype.replace),T=j(String.prototype.indexOf),B=j(String.prototype.trim),O=j(Object.prototype.hasOwnProperty),P=j(RegExp.prototype.test),L=(I=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return k(I,t)});var I;function j(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return w(e,t,r)}}function R(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V;f&&f(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(m(t)||(t[r]=e),o=e)}e[o]=!0}return e}function $(e){for(let t=0;t<e.length;t++){O(e,t)||(e[t]=null)}return e}function z(e){const t=x(null);for(const[n,r]of h(e)){O(e,n)&&(Array.isArray(r)?t[n]=$(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=z(r):t[n]=r)}return t}function F(e,t){for(;null!==e;){const n=v(e,t);if(n){if(n.get)return j(n.get);if("function"==typeof n.value)return j(n.value)}e=g(e)}return function(){return null}}const H=y(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),U=y(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),W=y(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),q=y(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Y=y(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),G=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),K=y(["#text"]),J=y(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
2spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),X=y(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Z=y(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Q=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ee=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),te=b(/<%[\w\W]*|[\w\W]*%>/gm),ne=b(/\$\{[\w\W]*/gm),re=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),oe=b(/^aria-[\-\w]+$/),ie=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ae=b(/^(?:\w+script|data):/i),se=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),le=b(/^html$/i),ce=b(/^[a-z][.\w]*(-[.\w]+)+$/i);var ue=Object.freeze({__proto__:null,ARIA_ATTR:oe,ATTR_WHITESPACE:se,CUSTOM_ELEMENT:ce,DATA_ATTR:re,DOCTYPE_NAME:le,ERB_EXPR:te,IS_ALLOWED_URI:ie,IS_SCRIPT_OR_DATA:ae,MUSTACHE_EXPR:ee,TMPLIT_EXPR:ne});const de=1,pe=3,he=7,fe=8,me=9,ge=function(){return"undefined"==typeof window?null:window};var ve=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ge();const n=t=>e(t);if(n.version="3.2.4",n.removed=[],!t||!t.document||t.document.nodeType!==me||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:m}
vendor: 4,128 bytes, line 2
2=t,g=c.prototype,v=F(g,"cloneNode"),b=F(g,"remove"),w=F(g,"nextSibling"),k=F(g,"childNodes"),I=F(g,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let j,$="";const{implementation:ee,createNodeIterator:te,createDocumentFragment:ne,getElementsByTagName:re}=r,{importNode:oe}=o;let ae={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof h&&"function"==typeof I&&ee&&void 0!==ee.createHTMLDocument;const{MUSTACHE_EXPR:se,ERB_EXPR:ce,TMPLIT_EXPR:ve,DATA_ATTR:ye,ARIA_ATTR:be,IS_SCRIPT_OR_DATA:xe,ATTR_WHITESPACE:we,CUSTOM_ELEMENT:ke}=ue;let{IS_ALLOWED_URI:_e}=ue,Ee=null;const Ce=R({},[...H,...U,...W,...Y,...K]);let Ne=null;const Se=R({},[...J,...X,...Z,...Q]);let Ve=Object.seal(x(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ae=null,De=null,Me=!0,Te=!0,Be=!1,Oe=!0,Pe=!1,Le=!0,Ie=!1,je=!1,Re=!1,$e=!1,ze=!1,Fe=!1,He=!0,Ue=!1,We=!0,qe=!1,Ye={},Ge=null;const Ke=R({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Je=null;const Xe=R({},["audio","video","img","source","image","track"]);let Ze=null;const Qe=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let rt=nt,ot=!1,it=null;const at=R({},[et,tt,nt],A);let st=R({},["mi","mo","mn","ms","mtext"]),lt=R({},["annotation-xml"]);const ct=R({},["title","style","font","a","script"]);let ut=null;const dt=["application/xhtml+xml","text/html"];let pt=null,ht=null;const ft=r.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ht||ht!==e){if(e&&"object"==typeof e||(e={}),e=z(e),ut=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,pt="application/xhtml+xml"===ut?A:V,Ee=O(e,"ALLOWED_TAGS")?R({},e.ALLOWED_TAGS,pt):Ce,Ne=O(e,"ALLOWED_ATTR")?R({},e.ALLOWED_ATTR,pt):Se,it=O(e,"ALLOWED_NAMESPACES")?R({},e.ALLOWED_NAMESPACES,A):at,Ze=O(e,"ADD_URI_SAFE_ATTR")?R(z(Qe),e.ADD_URI_SAFE_ATTR,pt):Qe,Je=O(e,"ADD_DATA_URI_TAGS")?R(z(Xe),e.ADD_DATA_URI_TAGS,pt):Xe,Ge=O(e,"FORBID_CONTENTS")?R({},e.FORBID_CONTENTS,pt):Ke,Ae=O(e,"FORBID_TAGS")?R({},e.FORBID_TAGS,pt):{},De=O(e,"FORBID_ATTR")?R({},e.FORBID_ATTR,pt):{},Ye=!!O(e,"USE_PROFILES")&&e.USE_PROFILES,Me=!1!==e.ALLOW_ARIA_ATTR,Te=!1!==e.ALLOW_DATA_ATTR,Be=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Pe=e.SAFE_FOR_TEMPLATES||!1,Le=!1!==e.SAFE_FOR_XML,Ie=e.WHOLE_DOCUMENT||!1,$e=e.RETURN_DOM||!1,ze=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,He=!1!==e.SANITIZE_DOM,Ue=e.SANITIZE_NAMED_PROPS||!1,We=!1!==e.KEEP_CONTENT,qe=e.IN_PLACE||!1,_e=e.ALLOWED_URI_REGEXP||ie,rt=e.NAMESPACE||nt,st=e.MATHML_TEXT_INTEGRATION_POINTS||st,lt=e.HTML_INTEGRATION_POINTS||lt,Ve=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ve.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ve.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ve.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Te=!1),ze&&($e=!0),Ye&&(Ee=R({},K),Ne=[],!0===Ye.html&&(R(Ee,H),R(Ne,J)),!0===Ye.svg&&(R(Ee,U),R(Ne,X),R(Ne,Q)),!0===Ye.svgFilters&&
vendor: 5,014 bytes, line 2
2(R(Ee,W),R(Ne,X),R(Ne,Q)),!0===Ye.mathMl&&(R(Ee,Y),R(Ne,Z),R(Ne,Q))),e.ADD_TAGS&&(Ee===Ce&&(Ee=z(Ee)),R(Ee,e.ADD_TAGS,pt)),e.ADD_ATTR&&(Ne===Se&&(Ne=z(Ne)),R(Ne,e.ADD_ATTR,pt)),e.ADD_URI_SAFE_ATTR&&R(Ze,e.ADD_URI_SAFE_ATTR,pt),e.FORBID_CONTENTS&&(Ge===Ke&&(Ge=z(Ge)),R(Ge,e.FORBID_CONTENTS,pt)),We&&(Ee["#text"]=!0),Ie&&R(Ee,["html","head","body"]),Ee.table&&(R(Ee,["tbody"]),delete Ae.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');j=e.TRUSTED_TYPES_POLICY,$=j.createHTML("")}else void 0===j&&(j=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(m,i)),null!==j&&"string"==typeof $&&($=j.createHTML(""));y&&y(e),ht=e}},vt=R({},[...U,...W,...q]),yt=R({},[...Y,...G]),bt=function(e){N(n.removed,{element:e});try{I(e).removeChild(e)}catch(t){b(e)}},xt=function(e,t){try{N(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){N(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if($e||ze)try{bt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},wt=function(e){let t=null,n=null;if(Re)e="<remove></remove>"+e;else{const t=D(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ut&&rt===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=j?j.createHTML(e):e;if(rt===nt)try{t=(new f).parseFromString(o,ut)}catch(e){}if(!t||!t.documentElement){t=ee.createDocument(rt,"template",null);try{t.documentElement.innerHTML=ot?$:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),rt===nt?re.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:i},kt=function(e){return te.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},_t=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Et=function(e){return"function"==typeof l&&e instanceof l};function Ct(e,t,r){_(e,(e=>{e.call(n,t,r,ht)}))}const Nt=function(e){let t=null;if(Ct(ae.beforeSanitizeElements,e,null),_t(e))return bt(e),!0;const r=pt(e.nodeName);if(Ct(ae.uponSanitizeElement,e,{tagName:r,allowedTags:Ee}),e.hasChildNodes()&&!Et(e.firstElementChild)&&P(/<[/\w]/g,e.innerHTML)&&P(/<[/\w]/g,e.textContent))return bt(e),!0;if(e.nodeType===he)return bt(e),!0;if(Le&&e.nodeType===fe&&P(/<[/\w]/g,e.data))return bt(e),!0;if(!Ee[r]||Ae[r]){if(!Ae[r]&&Vt(r)){if(Ve.tagNameCheck instanceof RegExp&&P(Ve.tagNameCheck,r))return!1;if(Ve.tagNameCheck instanceof Function&&Ve.tagNameCheck(r))return!1}if(We&&!Ge[r]){const t=I(e)||e.parentNode,n=k(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=v(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,w(e))}}}return bt(e),!0}return e instanceof c&&!function(e){let t=I(e);t&&t.tagName||(t={namespaceURI:rt,tagName:"template"});const n=V(e.tagName),r=V(t.tagName);return!!it[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===r||st[r]):Boolean(vt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&<[r]:Boolean(yt[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!lt[r])&&!(t.namespaceURI===et&&!st[r])&&!yt[n]&&(ct[n]||!vt[n]):!("application/xhtml+xml"!==ut||!it[e.namespaceURI]))}(e)?(bt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!P(/<\/no(script|embed|frames)/i,e.innerHTML)?(Pe&&e.nodeType===pe&&(t=e.textContent,_([se,ce,ve],(e=>{t=M(t,e," ")})),e.textContent!==t&&(N(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ct(ae.afterSanitizeElements,e,null),!1):(bt(e),!0)},St=function(e,t,n){if(He&&("id"===t||"name"===t)&&(n in r||n in ft))return!1;if(Te&&!De[t]&&P(ye,t));else if(Me&&P(be,t));else if(!Ne[t]||De[t]){if(!(Vt(e)&&(Ve.tagNameCheck instanceof RegExp&&P(Ve.tagNameCheck,e)||Ve.tagNameCheck instanceof Function&&Ve.tagNameCheck(e))&&(Ve.attributeNameCheck instanceof RegExp&&P(Ve.attributeNameCheck,t)||Ve.attributeNameCheck instanceof Function&&Ve.attributeNameCheck(t))||"is"===t&&Ve.allowCustomizedBuiltInElements&&(Ve.tagNameCheck instanceof RegExp&&P(Ve.tagNameCheck,n)||Ve.tagNameCheck instanceof Function&&Ve.tagNameCheck(n))))return!1}else if(Ze[t]);else if(P(_e,M(n,we,"")));
2else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==T(n,"data:")||!Je[e]){if(Be&&!P(xe,M(n,we,"")));else if(n)return!1}else;return!0},Vt=function(e){return"annotation-xml"!==e&&D(e,ke)},At=function(e){Ct(ae.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||_t(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ne,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:s,value:l}=i,c=pt(a);let u="value"===a?l:B(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,Ct(ae.uponSanitizeAttribute,e,r),u=r.attrValue,!Ue||"id"!==c&&"name"!==c||(xt(a,e),u="user-content-"+u),Le&&P(/((--!?|])>)|<\/(style|title)/i,u)){xt(a,e);continue}if(r.forceKeepAttr)continue;if(xt(a,e),!r.keepAttr)continue;if(!Oe&&P(/\/>/i,u)){xt(a,e);continue}Pe&&_([se,ce,ve],(e=>{u=M(u,e," ")}));const d=pt(e.nodeName);if(St(d,c,u)){if(j&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(s);else switch(m.getAttributeType(d,c)){case"TrustedHTML":u=j.createHTML(u);break;case"TrustedScriptURL":u=j.createScriptURL(u)}try{s?e.setAttributeNS(s,a,u):e.setAttribute(a,u),_t(e)?bt(e):C(n.removed)}catch(e){}}}Ct(ae.afterSanitizeAttributes,e,null)},Dt=function e(t){let n=null;const r=kt(t);for(Ct(ae.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Ct(ae.uponSanitizeShadowNode,n,null),Nt(n),At(n),n.content instanceof a&&e(n.content);Ct(ae.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,c=null;if(ot=!e,ot&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Et(e)){if("function"!=typeof e.toString)throw L("toString is not a function");if("string"!=typeof(e=e.toString()))throw L("dirty is not a string, aborting")}if(!n.isSupported)return e;if(je||gt(t),n.removed=[],"string"==typeof e&&(qe=!1),qe){if(e.nodeName){const t=pt(e.nodeName);if(!Ee[t]||Ae[t])throw L("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=wt("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===de&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!$e&&!Pe&&!Ie&&-1===e.indexOf("<"))return j&&Fe?j.createHTML(e):e;if(r=wt(e),!r)return $e?null:Fe?$:""}r&&Re&&bt(r.firstChild);const u=kt(qe?e:r);for(;s=u.nextNode();)Nt(s),At(s),s.content instanceof a&&Dt(s.content);if(qe)return e;if($e){if(ze)for(c=ne.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(Ne.shadowroot||Ne.shadowrootmode)&&(c=oe.call(o,c,!0)),c}let d=Ie?r.outerHTML:r.innerHTML;return Ie&&Ee["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&P(le,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Pe&&_([se,ce,ve],(e=>{d=M(d,e," ")})),j&&Fe?j.createHTML(d):d},n.setConfig=function(){gt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),je=!0},n.clearConfig=function(){ht=null,je=!1},n.isValidAttribute=function(e,t,n){ht||gt({});const r=pt(e),o=pt(t);return St(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&N(ae[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=E(ae[e],t);return-1===n?void 0:S(ae[e],n,1)[0]}return C(ae[e])},n.removeHooks=function(e){ae[e]=[]},n.removeAllHooks=function(){ae={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function ye(){return ve()}const be={install(e,t={},n=ye){e.directive("dompurify-html",function(e={},t=ye){const n=t();!function(e,t){const n=e.hooks??{};let r;for(r in n){const e=n[r];void 0!==e&&t.addHook(r,e)}}(e,n);const r=function(t,r){const o=r.value;if(r.oldValue===o)return;const i=`${o}`,a=r.arg,s=e.namedConfigurations,l=e.default??{};t.innerHTML=s&&void 0!==a?n.sanitize(i,s[a]??l):n.sanitize(i,l)};return{mounted:r,updated:r}}(t,n))}};n(6312);var xe=n(4443);var we,ke=n(9464),_e=n.n(ke),Ee=n(6120),Ce=n.n(Ee);n(8290),u().extend(p());var Ne=n(6279),Se=n(445);u().extend(Se),u().extend(Ne),n(494),n(813),n(3900),n(5826);var Ve=n(7872);u().extend(Ve);var Ae,De={all:Ae=Ae||new Map,on:function(e,t){var n=Ae.get(e);n?n.push(t):Ae.set(e,[t])},off:function(e,t){var n=Ae.get(e);n&&(t?n.splice(n.indexOf(t)>>>0,1):Ae.set(e,[]))},emit:function(e,t){var n=Ae.get(e);n&&n.slice().map((function(e){e(t)})),(n=Ae.get("*"))&&n.slice().map((function(n){n(e,t)}))}};window.debounce=n(7334);var Me=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e.sort((function(e,r){if(n)var o=e[t][n],i=r[t][n];else o=e[t],i=r[t];return o<i?-1:o>i?1:0}))},Te=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e.sort((function(e,r){if(n)var o=r[t][n],i=e[t][n];else o=r[t],i=e[t];return o<i?-1:o>i?1:0}))},Be=(null===(we=window.document.getElementsByTagName("title")[0])||void 0===we?void 0:we.innerText)||"Lememento",Oe={hooks:{afterSanitizeAttributes:function(e){"href"in e&&(e.href.includes("lememento.")||(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer")))}}};(0,l.sj)({title:function(e){return"".concat(e," - ").concat(Be)},resolve:function(e){return n(6634)("./".concat(e,".vue"))},setup:function(e){var t=e.el,i=e.app,a=e.props,c=e.plugin,d=(0,o.createApp)({render:function(){return(0,o.h)(i,a)}});d.config.globalProperties.emitter=De,d.config.globalProperties.$dayjs=u(),d.config.globalProperties.$url=window.location.origin,d.use(c).use(_e()).use(Ce()).use(be,Oe).mixin({methods:{route,sortArrByKey:Me,sortArrByKeyReversed:Te}}).mixin(n(1111)).component("Link",l.N_).component("Text",s).component("Head",l.p3).mount(t),d.directive("money3",r.$T)}}),xe.y.init({color:"var(--color-lm-blue)",delay:1})},5750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(6301),o={class:"font-sans text-gray-900 antialiased"},i={class:"pt-4 bg-slate-100"},a={class:"min-h-screen flex flex-col items-center pt-6 sm:pt-0"},s=["innerHTML"];var l=n(641),c=n(9234),u=n(8045);const d=(0,l.pM)({props:["policy"],components:{Head:c.p3,JetAuthenticationCardLogo:u.A}});const p=(0,n(6262).A)(d,[["render",function(e,t,n,l,c,u){var d=(0,r.resolve
2Component)("Head"),p=(0,r.resolveComponent)("jet-authentication-card-logo");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(d,{title:"Privacy Policy"}),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(p)]),(0,r.createElementVNode)("div",{innerHTML:e.policy,class:"w-full sm:max-w-2xl mt-6 p-6 bg-white shadow-md overflow-hidden sm:rounded-lg prose"},null,8,s)])])])],64)}]])},5781:e=>{"use strict";const t="'".charCodeAt(0),n='"'.charCodeAt(0),r="\\".charCodeAt(0),o="/".charCodeAt(0),i="\n".charCodeAt(0),a=" ".charCodeAt(0),s="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),u="[".charCodeAt(0),d="]".charCodeAt(0),p="(".charCodeAt(0),h=")".charCodeAt(0),f="{".charCodeAt(0),m="}".charCodeAt(0),g=";".charCodeAt(0),v="*".charCodeAt(0),y=":".charCodeAt(0),b="@".charCodeAt(0),x=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,k=/.[\r\n"'(/\\]/,_=/[\da-f]/i;e.exports=function(e,E={}){let C,N,S,V,A,D,M,T,B,O,P=e.css.valueOf(),L=E.ignoreErrors,I=P.length,j=0,R=[],$=[];function z(t){throw e.error("Unclosed "+t,j)}return{back:function(e){$.push(e)},endOfFile:function(){return 0===$.length&&j>=I},nextToken:function(e){if($.length)return $.pop();if(j>=I)return;let E=!!e&&e.ignoreUnclosed;switch(C=P.charCodeAt(j),C){case i:case a:case l:case c:case s:V=j;do{V+=1,C=P.charCodeAt(V)}while(C===a||C===i||C===l||C===c||C===s);D=["space",P.slice(j,V)],j=V-1;break;case u:case d:case f:case m:case y:case g:case h:{let e=String.fromCharCode(C);D=[e,e,j];break}case p:if(O=R.length?R.pop()[1]:"",B=P.charCodeAt(j+1),"url"===O&&B!==t&&B!==n&&B!==a&&B!==i&&B!==l&&B!==s&&B!==c){V=j;do{if(M=!1,V=P.indexOf(")",V+1),-1===V){if(L||E){V=j;break}z("bracket")}for(T=V;P.charCodeAt(T-1)===r;)T-=1,M=!M}while(M);D=["brackets",P.slice(j,V+1),j,V],j=V}else V=P.indexOf(")",j+1),N=P.slice(j,V+1),-1===V||k.test(N)?D=["(","(",j]:(D=["brackets",N,j,V],j=V);break;case t:case n:A=C===t?"'":'"',V=j;do{if(M=!1,V=P.indexOf(A,V+1),-1===V){if(L||E){V=j+1;break}z("string")}for(T=V;P.charCodeAt(T-1)===r;)T-=1,M=!M}while(M);D=["string",P.slice(j,V+1),j,V],j=V;break;case b:x.lastIndex=j+1,x.test(P),V=0===x.lastIndex?P.length-1:x.lastIndex-2,D=["at-word",P.slice(j,V+1),j,V],j=V;break;case r:for(V=j,S=!0;P.charCodeAt(V+1)===r;)V+=1,S=!S;if(C=P.charCodeAt(V+1),S&&C!==o&&C!==a&&C!==i&&C!==l&&C!==c&&C!==s&&(V+=1,_.test(P.charAt(V)))){for(;_.test(P.charAt(V+1));)V+=1;P.charCodeAt(V+1)===a&&(V+=1)}D=["word",P.slice(j,V+1),j,V],j=V;break;default:C===o&&P.charCodeAt(j+1)===v?(V=P.indexOf("*/",j+2)+1,0===V&&(L||E?V=P.length:z("comment")),D=["comment",P.slice(j,V+1),j,V],j=V):(w.lastIndex=j+1,w.test(P),V=0===w.lastIndex?P.length-1:w.lastIndex-2,D=["word",P.slice(j,V+1),j,V],R.push(D),j=V)}return j++,D},position:function(){return j}}}},5795:(e,t,n)=>{"use strict";var r=n(6549);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},5819:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(6301),o={class:"bg-white"},i={class:"py-8 lg:py-16 px-4 mx-auto max-w-screen-md"},a={class:"mb-8"},s={class:"mt-5 mb-4 text-gray-500 text-justify"},l={class:"mt-12"},c={class:"mt-5 mb-4 text-gray-500 text-justify"},u={class:"bg-primary mb-8"},d={value:""},p=["href"];var h=n(641),f=n(1049),m=n(6523),g=n(9234),v=n(2812);const y=(0,h.pM)({data:function(){return{selectedCommune:""}},computed:{emailCommune:function(){return this.selectedCommune?"".concat(this.selectedCommune,"@lememento.ch"):""}},components:{Head:g.p3,LandingPageLayout:v.A,TopBar:m.A,LmSpinner:f.A},layout:v.A});const b=(0,n(6262).A)(y,[["render",function(e,t,n,h,f,m){var g=(0,r.resolveComponent)("TopBar"),v=(0,r.resolveComponent)("Head"),y=(0,r.resolveComponent)("Text");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(g),(0,r.createVNode)(v,{title:"Le Memento"}),(0,r.createElementVNode)("section",o,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createVNode)(y,{type:"h2",text:e.__("Contactez LeMemento")},null,8,["text"]),(0,r.createElementVNode)("p",s,[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Vous voulez ajouter votre commune sur LeMemento ? Vous avez des questions, des suggestions ou besoin d'assistance concernant notre plateforme ? Notre équipe est à votre disposition pour vous fournir toutes les informations nécessaires et vous aider à profiter pleinement de nos services.")),1),t[1]||(t[1]=(0,r.createElementVNode)("br",null,null,-1)),t[2]||(t[2]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("N'hé
2sitez pas à nous écrire, nous sommes à l'écoute de vos besoins et commentaires.")),1)]),t[3]||(t[3]=(0,r.createElementVNode)("p",{class:"font-bold text-primary"},[(0,r.createElementVNode)("a",{href:"mailto:[email protected]",class:"underline"},"[email protected]")],-1))]),(0,r.createElementVNode)("div",l,[(0,r.createVNode)(y,{type:"h2",text:e.__("Contactez votre administrateur communal")},null,8,["text"]),(0,r.createElementVNode)("p",c,(0,r.toDisplayString)(e.__("Pour toute question spécifique à votre commune, ou pour des informations détaillées sur les événements locaux, n'hésitez pas à contacter directement l'administrateur du Memento de votre commune. Sélectionnez votre commune dans le menu déroulant ci-dessous et l'adresse e-mail de l'administrateur s'affichera. Ils se feront un plaisir de répondre à vos interrogations et de vous guider.")),1),(0,r.createElementVNode)("div",u,[(0,r.withDirectives)((0,r.createElementVNode)("select",{"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.selectedCommune=t}),class:"mb-4 rounded"},[(0,r.createElementVNode)("option",d,(0,r.toDisplayString)(e.__("Choisir une commune")),1),t[4]||(t[4]=(0,r.createElementVNode)("option",{value:"hauterive"},"Hauterive (FR)",-1))],512),[[r.vModelSelect,e.selectedCommune]]),(0,r.createElementVNode)("p",null,[e.emailCommune?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,href:"mailto:".concat(e.emailCommune),class:"underline font-bold text-primary"},(0,r.toDisplayString)(e.emailCommune),9,p)):(0,r.createCommentVNode)("",!0)])])])])])],64)}]])},5826:function(e){e.exports=function(){"use strict";return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}}}()},5846:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(6301),o={key:0,class:"flex flex-col sm:flex-row justify-start items-center supertest"},i={class:"relative flex-grow"},a=["value"],s={class:"relative flex-grow"},l=["value"],c={key:1,class:"relative flex-grow"},u=["value"];var d=n(641),p=n(4209);const h=(0,d.pM)({emits:["update:modelValue"],components:{Calendar:p.Vv,DatePicker:p.lr},props:{modelValue:{type:[Object,Date],default:null},showTime:{type:Boolean,default:!0},isRange:{type:Boolean,default:!1},minDate:{type:Date,default:null}},setup:function(e,t){var n=t.emit;return{model:(0,r.computed)({get:function(){return e.modelValue},set:function(e){n("update:modelValue",e)}})}}});const f=(0,n(6262).A)(h,[["render",function(e,t,n,d,p,h){var f=(0,r.resolveComponent)("DatePicker");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(f,{class:"w-full h-full",modelValue:e.model,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.model=t}),mode:e.showTime?"dateTime":"date","is-range":e.isRange,is24hr:e.showTime,locale:{id:e.$page.props.locale,firstDayOfWeek:2,masks:{input:e.showTime?"DD.MM.YYYY HH:mm":"DD.MM.YYYY"}},timezone:"Europe/Zurich"},{default:(0,r.withCtx)((function(n){var d=n.inputValue,p=n.inputEvents,h=n.isDragging;return[e.isRange?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("div",i,[t[1]||(t[1]=(0,r.createElementVNode)("svg",{class:"text-gray-500 w-4 h-full mx-2 absolute pointer-events-none",fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24",stroke:"currentColor"},[(0,r.createElementVNode)("path",{d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})],-1)),(0,r.createElementVNode)("input",(0,r.mergeProps)({class:["flex-grow pl-8 pr-2 py-1 bg-gray-50 border rounded w-full",h?"text-gray-600":"text-gray-900"],value:d.start},(0,r.toHandlers)(p.start,!0)),null,16,a)]),t[3]||(t[3]=(0,r.createElementVNode)("span",{class:"flex-shrink-0 m-2"},[(0,r.createElementVNode)("svg",{class:"w-4 h-4 stroke-current text-gray-500",viewBox:"0 0 24 24"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})])],-1)),(0,r.createElementVNode)("div",s,[t[2]||(t[2]=(0,r.createElementVNode)("svg",{class:"text-gray-500 w-4 h-full mx-2 absolute pointer-events-none",fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24",stroke:"currentColor"},[(0,r.createElementVNode)("path",{d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})],-1)),(0,r.createElementVNode)("input",(0,r.mergeProps)({class:["flex-grow pl-8 pr-2 py-1 bg-gray-50 border rounded w-full",h?"text-gray-600":"text-gray-900"],value:d.end},(0,r.toHandlers)(p.end,!0)),null,16,l)])])):((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[t[4]||(t[4]=(0,r.createElementVNode)("svg",{class:"text-gray-500 w-4 h-full mx-2 absolute pointer-events-none",fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24",stroke:"currentColor"},[(0,r.createElementVNode)("path",{d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})],-1)),(0,r.createElementVNode)("input",(0,r.mergeProps)({class:["flex-grow pl-8 pr-2 py-1 bg-gray-50 border rounded w-full",h?"text-gray-600":"text-gray-900"],value:d},(0,r.toHandlers)(p,!0)),null,16,u)]))]})),_:1},8,["modelValue","mode","is-range","is24hr","locale"])])}]])},5860:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6301),o={key:0},i={class:"font-medium text-red-600"},a={class:"mt-3 list-disc list-inside text-sm text-red-600"};const s=(0,n(641).pM)({computed:{errors:function(){return this.$page.props.errors},hasErrors:function(){return Object.keys(this.errors).length>0}}});const l=(0,n(6262).A)(s,[["render",function(e,t,n,s,l,c){return e.hasErrors?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("div",i,(0,r.toDisplayString)(e.__("Ups! Es ist ein Fehler aufgetreten.")),1),(0,r.createElementVNode)("ul",a,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.errors,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:t},(0,r.toDisplayString)(e),1)})),128))])])):(0,r.createCommentVNode)("",!0)}]])},5880:e=>{"use strict";e.exports=Math.pow},5936:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentPosition=void 0,t.removeSubsets=function(e){var t=e.length;for(;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(var r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e},t.compareDocumentPosition=i,t.uniqueSort=function(e){return(e=e.filter((function(e,t,n){return!n.includes(e,t+1)}))).sort((function(e,t){var n=i(e,t);return n&r.PRECEDING?-1:n&r.FOLLOWING?1:0})),e};var r,o=n(4128);function i(e,t){var n=[],i=[];if(e===t)return 0;for(var a=(0,o.hasChildren)(e)?e:e.parent;a;)n.unshift(a),a=a.parent;for(a=(0,o.hasChildren)(t)?t:t.parent;a;)i.unshift(a),a=a.parent;for(var s=Math.min(n.length,i.length),l=0;l<s&&n[l]===i[l];)l++;if(0===l)return r.DISCONNECTED;var c=n[l-1],u=c.children,d=n[l],p=i[l];return u.indexOf(d)>u.indexOf(p)?c===t?r.FOLLOWING|r.CONTAINED_BY:r.FOLLOWING:c===e?r.PRECEDING|r.CONTAINS:r.PRECEDING}!function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"}(r||(t.DocumentPosition=r={}))},5947:function(e,t,n){var r,o;r=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,t,n){return e<t?t:e>n?n:e}function i(e){return 100*(-1+e)}function a(e,t,n){var o;return(o="translate3d"===r.positionUsing?{transform:"translate3d("+i(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+i(e)+"%,0)"}:{"margin-left":i(e)+"%"}).transition="all "+t+"ms "+n,o}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=o(e,r.minimum,1),n.status=1===e?null:e;var i=n.render(!t),c=i.querySelector(r.barSelector),u=r.speed,d=r.easing;return i.offsetWidth,s((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),l(c,a(e,u,d)),1===e?(l(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout((function(){l(i,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),u)}),u)):setTimeout(t,u)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*o(Math.random()*t,.1,.95)),t=o(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var o,a=t.querySelector(r.barSelector),s=e?"-100":i(n.status||0),c=document.querySelector(r.parent);return l(a,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),r.showSpinner||(o=t.querySelector(r.spinnerSelector))&&h(o),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&h(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var s=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+i)in n)return r;return t}function o(e){return e=n(e),t[e]||(t[e]=r(e))}function i(e,t,n){t=o(t),e.style[t]=n}return function(e,t){var n,r,o=arguments;if(2==o.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&i(e,n,r);else i(e,o[1],o[2])}}();function c(e,t){return("string"==typeof e?e:p(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=p(e),r=n+t;c(n,t)||(e.className=r.substring(1))}function d(e,t){var n,r=p(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function p(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function h(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},void 0===(o="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=o)}
2,5962:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P});var r=n(6301),o={class:"space-y-4 pt-5"},i={key:0,class:"text-red-500"},a={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 my-4"},s={key:0,class:"border rounded-md shadow-md p-4"},l={class:"mb-4"},c=["href","target"],u={key:0,class:"text-red-500"},d={class:"absolute top-0 right-0 bg-slate-100 px-1 hover:bg-red-800 hover:text-white transition-colors"},p=["title","onClick"],h={class:"mb-2"},f={key:0,class:"text-red-500"},m={class:"flex mt-2 items-center gap-4 flex-wrap"},g={class:"flex-grow"},v={key:0,class:"text-red-500"},y={class:"mt-[19px]"},b=["onUpdate:modelValue","id"],x=["for"],w={class:"flex justify-center"},k=["onClick"],_={class:"flex justify-end mt-8"},E=["onClick"],C={class:"flex justify-center mt-4"};var N=n(641),S=n(5720),V=n(9234),A=n(9506),D=n(7400),M=n(6581),T=n(6753),B=n(1678);const O=(0,N.pM)({props:{commune:Object},methods:{addLink:function(e){this.communeData.linklists[e].links.push({linklist_id:this.communeData.linklists[e].id,name:this.__("Neuer Link"),url:"",new_window:!1})},addFaq:function(){this.communeData.faqs.push({commune_id:this.commune.id,title:this.__("Neue Frage"),content:"<p>"+this.__("Inhalt der neuen Frage")+"</p>",order:this.communeData.faqs.length+1,key:"key"+Math.random()})},removeLink:function(e,t,n){null!==e&&this.communeData.removedLinksIds.push(e),this.communeData.linklists[n].links.splice(t,1)},deleteFaq:function(e,t){null!==t&&this.communeData.removedFaqIds.push(t),this.communeData.faqs.splice(e,1),this.updateOrder()},save:function(){var e=this;this.$inertia.post(route("admin.about.update",{commune:this.$page.props.commune.slug}),this.communeData,{onSuccess:function(){e.removedFaqIds=[],e.removedLinksIds=[],e.$inertia.reload({only:["commune"]})}})},updateOrder:function(){for(var e=0;e<this.communeData.faqs.length;e++)this.communeData.faqs[e].order=e+1}},data:function(){return{communeData:{description:"",linklists:[],removedLinksIds:[],removedFaqIds:[],faqs:[],activate_about_page:null,about_page_link:""},ActivateAboutPageValues:[{name:"activate_about_page",value:!0,label:this.__("Aktivieren")},{name:"activate_about_page",value:!1,label:this.__("Deaktivieren")}],drag:!1}},computed:{dragOptions:function(){return{animation:200,group:"description",disabled:!1,ghostClass:"ghost"}}},mounted:function(){this.communeData.description=this.commune.description,this.communeData.linklists=this.commune.linklists,this.communeData.linklists.forEac
2h((function(e){e.active=!!e.active,e.links.forEach((function(e){e.new_window=!!e.new_window}))})),this.communeData.faqs=this.commune.faqs,this.communeData.faqs.forEach((function(e){e.key="key"+Math.random()})),this.communeData.activate_about_page=this.commune.activate_about_page,this.communeData.about_page_link=this.commune.about_page_link},layout:S.A,components:{Head:V.p3,Link:V.N_,LmTextarea:A.EZ,toggle:D.A,LmAccordion:M.A,LmInputText:A.zX,LmTexteditor:T.A,draggable:B.H,LmRadioGroup:A.ug}});const P=(0,n(6262).A)(O,[["render",function(e,t,n,N,S,V){var A=(0,r.resolveComponent)("Head"),D=(0,r.resolveComponent)("Text"),M=(0,r.resolveComponent)("lm-radio-group"),T=(0,r.resolveComponent)("lm-input-text"),B=(0,r.resolveComponent)("lm-textarea"),O=(0,r.resolveComponent)("toggle"),P=(0,r.resolveComponent)("lm-accordion"),L=(0,r.resolveComponent)("lm-texteditor"),I=(0,r.resolveComponent)("draggable");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(A,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("title",null,(0,r.toDisplayString)(e.__("Ãber")+" "+e.$page.props.commune.name),1)]})),_:1}),(0,r.createVNode)(D,{type:"h1"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Ãber")+" "+e.$page.props.commune.name),1)]})),_:1}),t[13]||(t[13]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(e.__("Remplacement de la page à propos par un lien vers le site de votre choix.")),1),(0,r.createVNode)(M,{disabled:!1,modelValue:e.communeData.activate_about_page,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.communeData.activate_about_page=t}),type:"bordered",value:!!e.commune.activate_about_page,values:e.ActivateAboutPageValues},null,8,["modelValue","value","values"]),(0,r.createVNode)(T,{label:"Lien vers la commune",class:"pt-5",placeholder:"https://example.ch",modelValue:e.communeData.about_page_link,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.communeData.about_page_link=t})},null,8,["modelValue"])]),(0,r.createVNode)(D,{class:"pt-5",type:"h2",text:e.__("Beschreibung")},null,8,["text"]),(0,r.createVNode)(B,{class:"pt-5",modelValue:e.communeData.description,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.communeData.description=t}),maxlength:"500"},null,8,["modelValue"]),e.$page.props.errors.description?((0,r.openBlock)(),(0,r.createElementBlock)("span",i,(0,r.toDisplayString)(e.$page.props.errors.description),1)):(0,r.createCommentVNode)("",!0),t[14]||(t[14]=(0,r.createElementVNode)("hr",{class:"border-t-2 border-gray-100 my-8"},null,-1)),(0,r.createVNode)(D,{type:"h2",text:e.__("Linklisten")},null,8,["text"]),(0,r.createElementVNode)("div",a,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.communeData.linklists,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:e.name},[e.active?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.createElementVNode)("h4",l,(0,r.toDisplayString)(e.name),1),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.links,(function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("a",{key:e.name,href:e.url,target:[e.new_window?"_blank":""],class:"text-lm-light-blue hover:text-lm-blue block mb-2"},[t[6]||(t[6]=(0,r.createElementVNode)("i",{class:"bi bi-chevron-right"},null,-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.name),1)],8,c)})),128))])):(0,r.createCommentVNode)("",!0)],64)})),128))]),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.communeData.linklists,(function(n,o){return(0,r.openBlock)(),(0,r.createBlock)(P,{title:n.name,key:o},{header:(0,r.withCtx)((function(){return[(0,r.createVNode)(O,{modelValue:n.active,"onUpdate:modelValue":function(e){return n.active=e},onChange:function(e){return n.active=e}},null,8,["modelValue","onUpdate:modelValue","onChange"])]})),default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(T,{modelValue:n.name,"onUpdate:modelValue":function(e){return n.name=e},label:e.__("Titel"),placeholder:e.__("Titel")},null,8,["modelValue","onUpdate:modelValue","label","placeholder"]),e.$page.props.errors["linklists.".concat(o,".n
2ame")]?((0,r.openBlock)(),(0,r.createElementBlock)("span",u,(0,r.toDisplayString)(e.$page.props.errors["linklists.".concat(o,".name")]),1)):(0,r.createCommentVNode)("",!0),t[10]||(t[10]=(0,r.createElementVNode)("hr",{class:"border-t-2 border-gray-100 my-8"},null,-1)),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.links,(function(n,i){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:i,class:"px-4 relative"},[(0,r.createElementVNode)("div",d,[(0,r.createElementVNode)("button",{title:e.__("Link entfernen"),onClick:function(t){return e.removeLink(n.id||null,i,o)}},t[7]||(t[7]=[(0,r.createElementVNode)("i",{class:"bi bi-x"},null,-1)]),8,p)]),(0,r.createElementVNode)("h4",h,"Link "+(0,r.toDisplayString)(i+1),1),(0,r.createVNode)(T,{modelValue:n.name,"onUpdate:modelValue":function(e){return n.name=e},label:e.__("Linkname"),placeholder:e.__("Linkname")},null,8,["modelValue","onUpdate:modelValue","label","placeholder"]),e.$page.props.errors["linklists.".concat(o,".links.").concat(i,".name")]?((0,r.openBlock)(),(0,r.createElementBlock)("span",f,(0,r.toDisplayString)(e.$page.props.errors["linklists.".concat(o,".links.").concat(i,".name")]),1)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",m,[(0,r.createElementVNode)("div",g,[(0,r.createVNode)(T,{modelValue:n.url,"onUpdate:modelValue":function(e){return n.url=e},label:"Url",placeholder:"Url"},null,8,["modelValue","onUpdate:modelValue"]),e.$page.props.errors["linklists.".concat(o,".links.").concat(i,".url")]?((0,r.openBlock)(),(0,r.createElementBlock)("span",v,(0,r.toDisplayString)(e.$page.props.errors["linklists.".concat(o,".links.").concat(i,".url")]),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",y,[(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"checkbox","onUpdate:modelValue":function(e){return n.new_window=e},class:"checked:bg-lm-blue",id:"newtab"+o+i},null,8,b),[[r.vModelCheckbox,n.new_window]]),(0,r.createElementVNode)("label",{for:"newtab"+o+i},(0,r.toDisplayString)(e.__("In neuem Tab öffnen")),9,x)])]),t[8]||(t[8]=(0,r.createElementVNode)("hr",{class:"border-t-2 border-gray-100 my-8"},null,-1))])})),128)),(0,r.createElementVNode)("div",w,[(0,r.createElementVNode)("button",{class:"btn-secondary",onClick:function(t){return e.addLink(o)}},[t[9]||(t[9]=(0,r.createElementVNode)("i",{class:"bi bi-plus-circle"},null,-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Link hinzufügen")),1)],8,k)])])]})),_:2},1032,["title"])})),128)),t[15]||(t[15]=(0,r.createElementVNode)("hr",{class:"border-t-2 border-gray-100 my-8"},null,-1)),(0,r.createVNode)(D,{type:"h2",text:e.__("Häufig gestellte Fragen")},null,8,["text"]),(0,r.createVNode)(I,(0,r.mergeProps)({list:e.communeData.faqs,onChange:e.updateOrder,handle:".drag-trigger"},e.dragOptions,{tag:"transition-group","component-data":{tag:"div",type:"transition-group",name:e.drag?null:"flip-list"}}),{default:(0,r.withCtx)((function(){return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.communeData.faqs,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n.key},[(0,r.createVNode)(P,{title:n.title},{header:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",{class:"drag-trigger px-2 cursor-move",onMousedown:t[3]||(t[3]=function(){return e.closeAcc&&e.closeAcc.apply(e,arguments)})},t[11]||(t[11]=[(0,r.createElementVNode)("i",{class:"bi bi-arrows-move"},null,-1)]),32)]})),default:(0,r.withCtx)((function(){return[(0,r.createVNode)(T,{modelValue:n.title,"onUpdate:modelValue":function(e){return n.title=e},maxlength:"100",placeholder:e.__("Titel"),label:e.__("Titel")},null,8,["modelValue","onUpdate:modelValue","placeholder","label"]),(0,r.createVNode)(L,{modelValue:n.content,"onUpdate:modelValue":function(e){return n.content=e}},null,8,["modelValue","onUpdate:modelValue"]),(0,r.createElementVNode)("div",_,[(0,r.createElementVNode)("button",{class:"text-red-700",onClick:function(t){return e.deleteFaq(o,n.id||null)}},(0,r.toDisplayString)(e.__("Löschen")),9,E)])]})),_:2},1032,["title"])])})),128))]})),_:1},16,["list","onChange","component-data"]),(0,r.createElementVNode)("div",C,[(0,r.createElementVNode)("button",{class:"btn-secondary",onClick:t[4]||(t[4]=function(){return e.addFaq&&e.addFaq.apply(e,arguments)})},[t[12]||(t[12]=(0,r.createElementVNode)("i",{class:"bi bi-plus-circle"},null,-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Frage hinzufügen")),1)])]),t[16
2]||(t[16]=(0,r.createElementVNode)("hr",{class:"border-t-2 border-gray-100 my-8"},null,-1)),(0,r.createVNode)(P,{megatitle:!0,title:e.__("Répertoire des entreprises")},null,8,["title"]),t[17]||(t[17]=(0,r.createElementVNode)("br",null,null,-1)),t[18]||(t[18]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createElementVNode)("button",{class:"btn-primary",onClick:t[5]||(t[5]=function(){return e.save&&e.save.apply(e,arguments)})},(0,r.toDisplayString)(e.__("Speichern")),1)])}]])},5987:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var n=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function r(e){for(var r,o="",i=0;null!==(r=t.xmlReplacer.exec(e));){var a=r.index,s=e.charCodeAt(a),l=n.get(s);void 0!==l?(o+=e.substring(i,a)+l,i=a+1):(o+="".concat(e.substring(i,a),"&#x").concat((0,t.getCodePoint)(e,a).toString(16),";"),i=t.xmlReplacer.lastIndex+=Number(55296==(64512&s)))}return o+e.substr(i)}function o(e,t){return function(n){for(var r,o=0,i="";r=e.exec(n);)o!==r.index&&(i+=n.substring(o,r.index)),i+=t.get(r[0].charCodeAt(0)),o=r.index+1;return i+n.substring(o)}}t.getCodePoint=null!=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)},t.encodeXML=r,t.escape=r,t.escapeUTF8=o(/[&<>'"]/g,n),t.escapeAttribute=o(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=o(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))},6085:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".file-view-single img,.file-view-single video{max-height:450px;max-width:100%;-o-object-fit:contain;object-fit:contain}
2.file-view-single video{height:auto;width:100%}",""]);const i=o},6104:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var r=n(6301),o={class:"mt-8 sm:flex sm:items-center"},i={class:"sm:flex-auto"},a={class:"mt-2 text-gray-700"},s=["textContent"],l={class:"mt-4 sm:mt-0 sm:ml-16 sm:flex-none"},c={class:"mt-8 max-w-2xl"},u={class:"col-span-12 sm:col-span-6"},d={class:"col-span-12 sm:col-span-6"},p={class:"col-span-12 sm:col-span-12"};var h=n(5720),f=n(4296),m=n(6786),g=n(1816),v=n(5393),y=n(9234);const b={props:{commune:Object},data:function(){return{form:this.$inertia.form({id:this.commune.id,name:this.commune.name,slug:this.commune.slug})}},components:{JetButton:g.A,JetInput:f.A,JetInputError:m.A,JetLabel:v.A,Head:y.p3},layout:h.A,methods:{editCommune:function(){this.form.post(route("manager.communes.update"),this.form)}}};const x=(0,n(6262).A)(b,[["render",function(e,t,n,h,f,m){var g=(0,r.resolveComponent)("Head"),v=(0,r.resolveComponent)("Link"),y=(0,r.resolveComponent)("Text"),b=(0,r.resolveComponent)("jet-button"),x=(0,r.resolveComponent)("jet-label"),w=(0,r.resolveComponent)("jet-input"),k=(0,r.resolveComponent)("jet-input-error");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(g,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("title",null,(0,r.toDisplayString)(e.__("Modifier une commune")),1)]})),_:1}),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createVNode)(v,{class:"text-gray-400 text-xs inline-flex items-center uppercase",href:e.route("manager.communes")},{default:(0,r.withCtx)((function(){return t[3]||(t[3]=[(0,r.createElementVNode)("svg",{fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-4 h-4 mr-1"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1),(0,r.createTextVNode)(" retour aux communes ")])})),_:1},8,["href"]),(0,r.createVNode)(y,{type:"h1",text:n.commune.name},null,8,["text"]),(0,r.createElementVNode)("p",a,[t[4]||(t[4]=(0,r.createTextVNode)("Gestion de ")),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(n.commune.name)},null,8,s),t[5]||(t[5]=(0,r.createTextVNode)("."))])]),(0,r.createElementVNode)("div",l,[(0,r.createVNode)(b,{type:"button"},{default:(0,r.withCtx)((function(){return t[6]||(t[6]=[(0,r.createTextVNode)(" Supprimer ")])})),_:1})])]),(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("form",{onSubmit:t[2]||(t[2]=(0,r.withModifiers)((function(){return m.editCommune&&m.editCommune.apply(m,arguments)}),["prevent"])),class:"grid grid-cols-12 gap-4"},[(0,r.createElementVNode)("div",u,[(0,r.createVNode)(x,{for:"name",value:"Name"}),(0,r.createVNode)(w,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:f.form.name,"onUpdate:modelValue":t[0]||(t[0]=function(e){return f.form.name=e})},null,8,["modelValue"]),(0,r.createVNode)(k,{message:f.form.errors.name,class:"mt-2"},null,8,["message"])]),(0,r.createElementVNode)("div",d,[(0,r.createVNode)(x,{for:"slug",value:"Slug"}),(0,r.createVNode)(w,{id:"slug",type:"text",class:"mt-1 block w-full",modelValue:f.form.slug,"onUpdate:modelValue":t[1]||(t[1]=function(e){return f.form.slug=e})},null,8,["modelValue"]),(0,r.createVNode)(k,{message:f.form.errors.slug,class:"mt-2"},null,8,["message"])]),(0,r.createElementVNode)("div",p,[(0,r.createVNode)(b,{class:(0,r.normalizeClass)({"opacity-25":f.form.processing}),disabled:f.form.processing},{default:(0,r.withCtx)((function(){return t[7]||(t[7]=[(0,r.createTextVNode)(" Envoyer ")])})),_:1},8,["class","disabled"])])],32)])])}]])},6119:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".info-button-wrapper[data-v-d9f7e9b8]{display:inline-block;position:relative}.info-button[data-v-d9f7e9b8]{border:none;cursor:pointer}.tooltip[data-v-d9f7e9b8]{font-size:15px;max-width:300px;opacity:0;right:100%;transition:visibility 0s linear .3s,opacity .3s;visibility:hidden;width:-moz-max-content;width:max-content;z-index:20}",""]);const i=o},6120:function(e){"undefined"!=typeof self&&self,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
2),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";(function(e){function r(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return v})),n.d(t,"e",(function(){return F})),n.d(t,"f",(function(){return W})),n.d(t,"g",(function(){return K})),n.d(t,"h",(function(){return k})),n.d(t,"i",(function(){return Z})),n.d(t,"j",(function(){return Y})),n.d(t,"k",(function(){return C})),n.d(t,"l",(function(){return U})),n.d(t,"m",(function(){return G})),n.d(t,"n",(function(){return N})),n.d(t,"o",(function(){return D})),n.d(t,"p",(function(){return o})),n.d(t,"q",(function(){return d})),n.d(t,"r",(function(){return j})),n.d(t,"s",(function(){return S})),n.d(t,"t",(function(){return w})),n.d(t,"u",(function(){return B})),n.d(t,"v",(function(){return x})),n.d(t,"w",(function(){return O})),n.d(t,"x",(function(){return R})),n.d(t,"y",(function(){return p})),n.d(t,"z",(function(){return V})),n.d(t,"A",(function(){return i})),n.d(t,"B",(function(){return M})),n.d(t,"C",(function(){return T})),n.d(t,"D",(function(){return h})),n.d(t,"E",(function(){return f})),n.d(t,"F",(function(){return r})),n.d(t,"G",(function(){return u})),n.d(t,"H",(function(){return a})),n.d(t,"I",(function(){return _})),n.d(t,"J",(function(){return q})),n.d(t,"K",(function(){return J})),n.d(t,"L",(function(){return I}));const o=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt"),i=r("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function a(e){if(N(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=a(M(r)?c(r):r);if(o)for(const e in o)t[e]=o[e]}return t}if(B(e))return e}const s=/;(?![^(]*\))/g,l=/:(.+)/;function c(e){const t={};return e.split(s).forEach((e=>{if(e){const n=e.split(l);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function u(e){let t="";if(M(e))t=e;else if(N(e))for(let n=0;n<e.length;n++){const r=u(e[n]);r&&(t+=r+" ")}else if(B(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const d=r("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"),p=r("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");function h(e,t){if(e===t)return!0;let n=A(e),r=A(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=N(e),r=N(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=h(e[r],t[r]);return n}(e,t);if(n=B(e),r=B(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!h(e[n],t[n]))return!1}}return String(e)===String(t)}function f(e,t){return e.findIndex((e=>h(e,t)))}const m={},g=[],v=()=>{},y=()=>!1,b=/^on[^a-z]/,x=e=>b.test(e),w=e=>e.startsWith("onUpdate:"),k=Object.assign,_=(e,t)=>
2{const n=e.indexOf(t);n>-1&&e.splice(n,1)},E=Object.prototype.hasOwnProperty,C=(e,t)=>E.call(e,t),N=Array.isArray,S=e=>"[object Map]"===L(e),V=e=>"[object Set]"===L(e),A=e=>e instanceof Date,D=e=>"function"==typeof e,M=e=>"string"==typeof e,T=e=>"symbol"==typeof e,B=e=>null!==e&&"object"==typeof e,O=e=>B(e)&&D(e.then)&&D(e.catch),P=Object.prototype.toString,L=e=>P.call(e),I=e=>L(e).slice(8,-1),j=e=>M(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,R=r(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},z=/-(\w)/g,F=$((e=>e.replace(z,((e,t)=>t?t.toUpperCase():"")))),H=/\B([A-Z])/g,U=$((e=>e.replace(H,"-$1").toLowerCase())),W=$((e=>e.charAt(0).toUpperCase()+e.slice(1))),q=$((e=>e?"on"+W(e):"")),Y=(e,t)=>e!==t&&(e==e||t==t),G=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},K=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},J=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let X;const Z=()=>X||(X="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{})}).call(this,n(2))},function(e,t,n){e.exports=n(3)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t),n.d(t,"ShareNetwork",(function(){return xn}));var r=n(0);const o=new WeakMap,i=[];let a;const s=Symbol(""),l=Symbol("");function c(e,t=r.b){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const n=function(e,t){const n=function(){if(!n.active)return t.scheduler?void 0:e();if(!i.includes(n)){p(n);try{return f.push(h),h=!0,i.push(n),a=n,e()}finally{i.pop(),g(),a=i[i.length-1]}}};return n.id=d++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||n(),n}function u(e){e.active&&(p(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let d=0;function p(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let h=!0;const f=[];function m(){f.push(h),h=!1}function g(){const e=f.pop();h=void 0===e||e}function v(e,t,n){if(!h||void 0===a)return;let r=o.get(e);r||o.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=new Set),i.has(a)||(i.add(a),a.deps.push(i))}function y(e,t,n,i,c,u){const d=o.get(e);if(!d)return;const p=new Set,h=e=>{e&&e.forEach((e=>{(e!==a||e.allowRecurse)&&p.add(e)}))};if("clear"===t)d.forEach(h);else if("length"===n&&Object(r.n)(e))d.forEach(((e,t)=>{("length"===t||t>=i)&&h(e)}));else switch(void 0!==n&&h(d.get(n)),t){case"add":Object(r.n)(e)?Object(r.r)(n)&&h(d.get("length")):(h(d.get(s)),Object(r.s)(e)&&h(d.get(l)));break;case"delete":Object(r.n)(e)||(h(d.get(s)),Object(r.s)(e)&&h(d.get(l)));break;case"set":Object(r.s)(e)&&h(d.get(s))}
2p.forEach((e=>{e.options.scheduler?e.options.scheduler(e):e()}))}const b=Object(r.F)("__proto__,__v_isRef,__isVue"),x=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(r.C)),w=N(),k=N(!1,!0),_=N(!0),E=N(!0,!0),C={};function N(e=!1,t=!1){return function(n,o,i){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_raw"===o&&i===(e?t?ne:te:t?ee:Q).get(n))return n;const a=Object(r.n)(n);if(!e&&a&&Object(r.k)(C,o))return Reflect.get(C,o,i);const s=Reflect.get(n,o,i);return(Object(r.C)(o)?x.has(o):b(o))?s:(e||v(n,0,o),t?s:ue(s)?a&&Object(r.r)(o)?s:s.value:Object(r.u)(s)?e?oe(s):re(s):s)}}["includes","indexOf","lastIndexOf"].forEach((e=>{const t=Array.prototype[e];C[e]=function(...e){const n=ce(this);for(let e=0,t=this.length;e<t;e++)v(n,0,e+"");const r=t.apply(n,e);return-1===r||!1===r?t.apply(n,e.map(ce)):r}})),["push","pop","shift","unshift","splice"].forEach((e=>{const t=Array.prototype[e];C[e]=function(...e){m();const n=t.apply(this,e);return g(),n}}));const S=A(),V=A(!0);function A(e=!1){return function(t,n,o,i){let a=t[n];if(!e&&(o=ce(o),a=ce(a),!Object(r.n)(t)&&ue(a)&&!ue(o)))return a.value=o,!0;const s=Object(r.n)(t)&&Object(r.r)(n)?Number(n)<t.length:Object(r.k)(t,n),l=Reflect.set(t,n,o,i);return t===ce(i)&&(s?Object(r.j)(o,a)&&y(t,"set",n,o):y(t,"add",n,o)),l}}const D={get:w,set:S,deleteProperty:function(e,t){const n=Object(r.k)(e,t),o=(e[t],Reflect.deleteProperty(e,t));return o&&n&&y(e,"delete",t,void 0),o},has:function(e,t){const n=Reflect.has(e,t);return Object(r.C)(t)&&x.has(t)||v(e,0,t),n},ownKeys:function(e){return v(e,0,Object(r.n)(e)?"length":s),Reflect.ownKeys(e)}},M={get:_,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},T=(Object(r.h)({},D,{get:k,set:V}),Object(r.h)({},M,{get:E}),e=>Object(r.u)(e)?re(e):e),B=e=>Object(r.u)(e)?oe(e):e,O=e=>e,P=e=>Reflect.getPrototypeOf(e);function L(e,t,n=!1,r=!1){const o=ce(e=e.__v_raw),i=ce(t);t!==i&&!n&&v(o,0,t),!n&&v(o,0,i);const{has:a}=P(o),s=r?O:n?B:T;return a.call(o,t)?s(e.get(t)):a.call(o,i)?s(e.get(i)):void 0}function I(e,t=!1){const n=this.__v_raw,r=ce(n),o=ce(e);return e!==o&&!t&&v(r,0,e),!t&&v(r,0,o),e===o?n.has(e):n.has(e)||n.has(o)}function j(e,t=!1){return e=e.__v_raw,!t&&v(ce(e),0,s),Reflect.get(e,"size",e)}function R(e){e=ce(e);const t=ce(this);return P(t).has.call(t,e)||(t.add(e),y(t,"add",e,e)),this}function $(e,t){t=ce(t);const n=ce(this),{has:o,get:i}=P(n);let a=o.call(n,e);a||(e=ce(e),a=o.call(n,e));const s=i.call(n,e);return n.set(e,t),a?Object(r.j)(t,s)&&y(n,"set",e,t):y(n,"add",e,t),this}function z(e){const t=ce(this),{has:n,get:r}=P(t);let o=n.call(t,e);o||(e=ce(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&y(t,"delete",e,void 0),i}function F(){const e=ce(this),t=0!==e.size,n=e.clear();return t&&y(e,"clear",void 0,void 0),n}function H(e,t){return function(n,r){const o=this,i=o.__v_raw,a=ce(i),l=t?O:e?B:T;
2return!e&&v(a,0,s),i.forEach(((e,t)=>n.call(r,l(e),l(t),o)))}}function U(e,t,n){return function(...o){const i=this.__v_raw,a=ce(i),c=Object(r.s)(a),u="entries"===e||e===Symbol.iterator&&c,d="keys"===e&&c,p=i[e](...o),h=n?O:t?B:T;return!t&&v(a,0,d?l:s),{next(){const{value:e,done:t}=p.next();return t?{value:e,done:t}:{value:u?[h(e[0]),h(e[1])]:h(e),done:t}},[Symbol.iterator](){return this}}}}function W(e){return function(...t){return"delete"!==e&&this}}const q={get(e){return L(this,e)},get size(){return j(this)},has:I,add:R,set:$,delete:z,clear:F,forEach:H(!1,!1)},Y={get(e){return L(this,e,!1,!0)},get size(){return j(this)},has:I,add:R,set:$,delete:z,clear:F,forEach:H(!1,!0)},G={get(e){return L(this,e,!0)},get size(){return j(this,!0)},has(e){return I.call(this,e,!0)},add:W("add"),set:W("set"),delete:W("delete"),clear:W("clear"),forEach:H(!0,!1)},K={get(e){return L(this,e,!0,!0)},get size(){return j(this,!0)},has(e){return I.call(this,e,!0)},add:W("add"),set:W("set"),delete:W("delete"),clear:W("clear"),forEach:H(!0,!0)};function J(e,t){const n=t?e?K:Y:e?G:q;return(t,o,i)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(Object(r.k)(n,o)&&o in t?n:t,o,i)}["keys","values","entries",Symbol.iterator].forEach((e=>{q[e]=U(e,!1,!1),G[e]=U(e,!0,!1),Y[e]=U(e,!1,!0),K[e]=U(e,!0,!0)}));const X={get:J(!1,!1)},Z=(J(!1,!0),{get:J(!0,!1)});J(!0,!0);const Q=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap;function re(e){return e&&e.__v_isReadonly?e:ie(e,!1,D,X,Q)}function oe(e){return ie(e,!0,M,Z,te)}function ie(e,t,n,o,i){if(!Object(r.u)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const s=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(Object(r.L)(l));var l;if(0===s)return e;const c=new Proxy(e,2===s?o:n);return i.set(e,c),c}function ae(e){return se(e)?ae(e.__v_raw):!(!e||!e.__v_isReactive)}function se(e){return!(!e||!e.__v_isReadonly)}function le(e){return ae(e)||se(e)}function ce(e){return e&&ce(e.__v_raw)||e}function ue(e){return Boolean(e&&!0===e.__v_isRef)}function de(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){he(e,t,n)}return o}function pe(e,t,n,o){if(Object(r.o)(e)){const i=de(e,t,n,o);return i&&Object(r.w)(i)&&i.catch((e=>{he(e,t,n)})),i}const i=[];for(let r=0;r<e.length;r++)i.push(pe(e[r],t,n,o));return i}function he(e,t,n,r=!0){if(t&&t.vnode,t){let r=t.parent;const o=t.proxy,i=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,i))return;r=r.parent}const a=t.appContext.config.errorHandler;if(a)return void de(a,null,10,[e,o,i])}!function(e){console.error(e)}(e)}let fe=!1,me=!1;const ge=[];let ve=0;const ye=[];let be=null,xe=0;const we=[];let ke=null,_e=0;const Ee=Promise.resolve();let Ce=null,Ne=null;function Se(e){const t=Ce||Ee;return e?t.then(this?e.bind(this):e):t}function Ve(e){if(!(ge.length&&ge.includes(e,fe&&e.allowRecurse?ve+1:ve)||e===Ne)){const t=function(e){let t=ve+1,n=ge.length;const r=Oe(e);for(;t<n;){const e=t+n>>>1;Oe(ge[e])<r?t=e+1:n=e}return t}(e);t>-1?ge.splice(t,0,e):ge.push(e),Ae()}}function Ae(){fe||me||(me=!0,Ce=Ee.then(Pe))}function De(e,t,n,o){Object(r.n)(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?o+1:o)||n.push(e),Ae()}function Me(e){De(e,ke,we,_e)}function Te(e,t=null){if(ye.length){for(Ne=t,be=[...new Set(ye)],ye.length=0,xe=0;xe<be.length;xe++)be[xe]();be=null,xe=0,Ne=null,Te(e,t)}}function Be(e){if(we.length){const e=[...new Set(we)];if(we.length=0,ke)return void ke.push(...e);for(ke=e,ke.sort(((e,t)=>Oe(e)-Oe(t))),_e=0;_e<ke.length;_e++)ke[_e]();ke=null,_e=0}}const Oe=e=>null==e.id?1/0:e.id;function Pe(e){me=!1,fe=!0,Te(e),ge.sort(((e,t)=>Oe(e)-Oe(t)));try{for(ve=0;ve<ge.length;ve++){const e=ge[ve];e&&de(e,null,14)}}finally{ve=0,ge.length=0,Be(),fe=!1,Ce=null,(ge.length||we.length)&&Pe(e)}}new Set,new Map;let Le=0;const Ie=e=>Le+=e;let je=null,Re=null;function $e(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(!mt(r))return;if(r.type!==pt||"v-if"===r.children){if(t)return;t=r}}return t}function ze(e){return Object(r.o)(e)&&(e=e()),Object(r.n)(e)&&(e=$e(e)),Et(e)}function Fe(e,t){t&&t.pendingBranch?Object(r.n)(e)?t.effects.push(...e):t.effects.push(e):Me(e)}function He(e,t,n=Mt,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;m(),Bt(n);const o=pe(t,n,e,r);return Bt(null),g(),o});return r?o.unshift(i):o.push(i),i}}const Ue=e=>(t,n=Mt)=>!Pt&&He(e,t,n),We=(Ue("bm"),Ue("m")),qe=(Ue("bu"),Ue("u"),Ue("bum"));Ue("um"),Ue("rtg"),Ue("rtc");const Ye={};function Ge(e,t,{immediate:n,deep:o,flush:i,onTrack:a,onTrigger:s}=r.b,l=Mt){let d,p,h=!1;if(ue(e)?(d=()=>e.value,h=!!e._shallow):ae(e)?(d=()=>e,o=!0):d=Object(r.n)(e)?()=>e.map((e=>ue(e)?e.value:ae(e)?Je(e):Object(r.o)(e)?de(e,l,2,[l&&l.proxy]):void 0)):Object(r.o)(e)?t?()=>de(e,l,2,[l&&l.proxy]):()=>
2{if(!l||!l.isUnmounted)return p&&p(),pe(e,l,3,[f])}:r.d,t&&o){const e=d;d=()=>Je(e())}let f=e=>{p=y.options.onStop=()=>{de(e,l,4)}},m=Object(r.n)(e)?[]:Ye;const g=()=>{if(y.active)if(t){const e=y();(o||h||Object(r.j)(e,m))&&(p&&p(),pe(t,l,3,[e,m===Ye?void 0:m,f]),m=e)}else y()};let v;g.allowRecurse=!!t,v="sync"===i?g:"post"===i?()=>lt(g,l&&l.suspense):()=>{!l||l.isMounted?function(e){De(e,be,ye,xe)}(g):g()};const y=c(d,{lazy:!0,onTrack:a,onTrigger:s,scheduler:v});return Lt(y,l),t?n?g():m=y():"post"===i?lt(y,l&&l.suspense):y(),()=>{u(y),l&&Object(r.I)(l.effects,y)}}function Ke(e,t,n){const o=this.proxy;return Ge(Object(r.B)(e)?()=>o[e]:e.bind(o),t.bind(o),n,this)}function Je(e,t=new Set){if(!Object(r.u)(e)||t.has(e))return e;if(t.add(e),ue(e))Je(e.value,t);else if(Object(r.n)(e))for(let n=0;n<e.length;n++)Je(e[n],t);else if(Object(r.z)(e)||Object(r.s)(e))e.forEach((e=>{Je(e,t)}));else for(const n in e)Je(e[n],t);return e}function Xe(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return We((()=>{e.isMounted=!0})),qe((()=>{e.isUnmounting=!0})),e}const Ze=[Function,Array],Qe={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ze,onEnter:Ze,onAfterEnter:Ze,onEnterCancelled:Ze,onBeforeLeave:Ze,onLeave:Ze,onAfterLeave:Ze,onLeaveCancelled:Ze,onBeforeAppear:Ze,onAppear:Ze,onAfterAppear:Ze,onAppearCancelled:Ze},setup(e,{slots:t}){const n=Tt(),r=Xe();let o;return()=>{const i=t.default&&it(t.default(),!0);if(!i||!i.length)return;const a=ce(e),{mode:s}=a,l=i[0];if(r.isLeaving)return nt(l);const c=rt(l);if(!c)return nt(l);const u=tt(c,a,r,n);ot(c,u);const d=n.subTree,p=d&&rt(d);let h=!1;const{getTransitionKey:f}=c.type;if(f){const e=f();void 0===o?o=e:e!==o&&(o=e,h=!0)}if(p&&p.type!==pt&&(!gt(c,p)||h)){const e=tt(p,a,r,n);if(ot(p,e),"out-in"===s)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.update()},nt(l);"in-out"===s&&c.type!==pt&&(e.delayLeave=(e,t,n)=>{et(r,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return l}}};function et(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function tt(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:h,onLeaveCancelled:f,onBeforeAppear:m,onAppear:g,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),x=et(n,e),w=(e,t)=>{e&&pe(e,r,9,t)},k={mode:i,persisted:a,beforeEnter(t){let r=s;if(!n.isMounted){if(!o)return;r=m||s}t._leaveCb&&t._leaveCb(!0);const i=x[b];i&>(e,i)&&i.el._leaveCb&&i.el._leaveCb(),w(r,[t])},enter(e){let t=l,r=c,i=u;if(!n.isMounted){if(!o)return;t=g||l,r=v||c,i=y||u}let a=!1;const s=e._enterCb=t=>{a||(a=!0,w(t?i:r,[e]),k.delayedLeave&&k.delayedLeave(),e._enterCb=void 0)};t?(t(e,s),t.length<=1&&s()):s()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();w(d,[t]);let i=!1;const a=t._leaveCb=n=>{i||(i=!0,r(),w(n?f:h,[t]),t._leaveCb=void 0,x[o]===e&&delete x[o])};x[o]=e,p?(p(t,a),p.length<=1&&a()):a()},clone:e=>tt(e,t,n,r)};return k}function nt(e){if(at(e))return(e=kt(e)).children=null,e}function rt(e){return at(e)?e.children?e.children[0]:void 0:e}function ot(e,t){6&e.shapeFlag&&e.component?ot(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function it(e,t=!1){let n=[],r=0;for(let o=0;o<e.length;o++){const i=e[o];i.type===ut?(128&i.patchFlag&&r++,n=n.concat(it(i.children,t))):(t||i.type!==pt)&&n.push(i)}if(r>1)for(let e=0;e<n.length;e++)n[e].patchFlag=-2;return n}const at=e=>e.type.__isKeepAlive;function st(){return{app:null,config:{isNativeTag:r.c,performance:!1,globalProperties:{},optionMergeStrategies:{},isCustomElement:r.c,errorHandler:void 0,warnHandler:void 0},mixins:[],components:{},directives:{},provides:Object.create(null)}}RegExp,RegExp;const lt=Fe,ct=Symbol(),ut=Symbol(void 0),dt=Symbol(void 0),pt=Symbol(void 0);Symbol(void 0);let ht=null,ft=1;function mt(e){return!!e&&!0===e.__v_isVNode}function gt(e,t){return e.type===t.type&&e.key===t.key}const vt="__vInternal",yt=({key:e})=>null!=e?e:null,bt=({ref:e})=>null!=e?Object(r.B)(e)||ue(e)||Object(r.o)(e)?{i:je,r:e}:e:null,xt=wt;function wt(e,t=null,n=null,o=0,i=null,a=!1){if(e&&e!==ct||(e=pt),mt(e)){const r=kt(e,t,!0);return n&&Ct(r,n),r}if(It(e)&&(e=e.__vccOpts),t){(le(t)||vt in t)&&(t=Object(r.h)({},t));let{class:e,style:n}=t;
2e&&!Object(r.B)(e)&&(t.class=Object(r.G)(e)),Object(r.u)(n)&&(le(n)&&!Object(r.n)(n)&&(n=Object(r.h)({},n)),t.style=Object(r.H)(n))}const s=Object(r.B)(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:Object(r.u)(e)?4:Object(r.o)(e)?2:0,l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&yt(t),ref:t&&bt(t),scopeId:Re,slotScopeIds:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null};if(Ct(l,n),128&s){const{content:e,fallback:t}=function(e){const{shapeFlag:t,children:n}=e;let r,o;return 32&t?(r=ze(n.default),o=ze(n.fallback)):(r=ze(n),o=Et(null)),{content:r,fallback:o}}(l);l.ssContent=e,l.ssFallback=t}return ft>0&&!a&&ht&&(o>0||6&s)&&32!==o&&ht.push(l),l}function kt(e,t,n=!1){const{props:o,ref:i,patchFlag:a,children:s}=e,l=t?function(...e){const t=Object(r.h)({},e[0]);for(let n=1;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=Object(r.G)([t.class,o.class]));else if("style"===e)t.style=Object(r.H)([t.style,o.style]);else if(Object(r.v)(e)){const n=t[e],r=o[e];n!==r&&(t[e]=n?[].concat(n,o[e]):r)}else""!==e&&(t[e]=o[e])}return t}(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&yt(l),ref:t&&t.ref?n&&i?Object(r.n)(i)?i.concat(bt(t)):[i,bt(t)]:bt(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ut?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&kt(e.ssContent),ssFallback:e.ssFallback&&kt(e.ssFallback),el:e.el,anchor:e.anchor}}function _t(e=" ",t=0){return xt(dt,null,e,t)}function Et(e){return null==e||"boolean"==typeof e?xt(pt):Object(r.n)(e)?xt(ut,null,e):"object"==typeof e?null===e.el?e:kt(e):xt(dt,null,String(e))}function Ct(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(Object(r.n)(t))n=16;else if("object"==typeof t){if(1&o||64&o){const n=t.default;return void(n&&(n._c&&Ie(1),Ct(e,n()),n._c&&Ie(-1)))}{n=32;const r=t._;r||vt in t?3===r&&je&&(1024&je.vnode.patchFlag?(t._=2,e.patchFlag|=1024):t._=1):t._ctx=je}}else Object(r.o)(t)?(t={default:t,_ctx:je},n=32):(t=String(t),64&o?(n=16,t=[_t(t)]):n=8);e.children=t,e.shapeFlag|=n}let Nt=!0;function St(e,t,n){const o=n.appContext.config.optionMergeStrategies,{mixins:i,extends:a}=t;
2a&&St(e,a,n),i&&i.forEach((t=>St(e,t,n)));for(const i in t)o&&Object(r.k)(o,i)?e[i]=o[i](e[i],t[i],n.proxy,i):e[i]=t[i]}const Vt=e=>e?Ot(e)?e.exposed?e.exposed:e.proxy:Vt(e.parent):null,At=Object(r.h)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Vt(e.parent),$root:e=>Vt(e.root),$emit:e=>e.emit,$options:e=>function(e){const t=e.type,{__merged:n,mixins:r,extends:o}=t;if(n)return n;const i=e.appContext.mixins;if(!i.length&&!r&&!o)return t;const a={};return i.forEach((t=>St(a,t,e))),St(a,t,e),t.__merged=a}(e),$forceUpdate:e=>()=>Ve(e.update),$nextTick:e=>Se.bind(e.proxy),$watch:e=>Ke.bind(e)}),Dt={get({_:e},t){const{ctx:n,setupState:o,data:i,props:a,accessCache:s,type:l,appContext:c}=e;if("__v_skip"===t)return!0;let u;if("$"!==t[0]){const l=s[t];if(void 0!==l)switch(l){case 0:return o[t];case 1:return i[t];case 3:return n[t];case 2:return a[t]}else{if(o!==r.b&&Object(r.k)(o,t))return s[t]=0,o[t];if(i!==r.b&&Object(r.k)(i,t))return s[t]=1,i[t];if((u=e.propsOptions[0])&&Object(r.k)(u,t))return s[t]=2,a[t];if(n!==r.b&&Object(r.k)(n,t))return s[t]=3,n[t];!Nt||(s[t]=4)}}const d=At[t];let p,h;return d?("$attrs"===t&&v(e,0,t),d(e)):(p=l.__cssModules)&&(p=p[t])?p:n!==r.b&&Object(r.k)(n,t)?(s[t]=3,n[t]):(h=c.config.globalProperties,Object(r.k)(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:o,setupState:i,ctx:a}=e;if(i!==r.b&&Object(r.k)(i,t))i[t]=n;else if(o!==r.b&&Object(r.k)(o,t))o[t]=n;else if(Object(r.k)(e.props,t))return!1;return!("$"===t[0]&&t.slice(1)in e||(a[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:a}},s){let l;return void 0!==n[s]||e!==r.b&&Object(r.k)(e,s)||t!==r.b&&Object(r.k)(t,s)||(l=a[0])&&Object(r.k)(l,s)||Object(r.k)(o,s)||Object(r.k)(At,s)||Object(r.k)(i.config.globalProperties,s)}};Object(r.h)({},Dt,{get(e,t){if(t!==Symbol.unscopables)return Dt.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!Object(r.p)(t)}),st();let Mt=null;const Tt=()=>Mt||je,Bt=e=>{Mt=e};function Ot(e){return 4&e.vnode.shapeFlag}let Pt=!1;function Lt(e,t=Mt){t&&(t.effects||(t.effects=[])).push(e)}function It(e){return Object(r.o)(e)&&"__vccOpts"in e}function jt(e,t,n){const o=arguments.length;return 2===o?Object(r.u)(t)&&!Object(r.n)(t)?mt(t)?xt(e,null,[t]):xt(e,t):xt(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&mt(n)&&(n=[n]),xt(e,t,n))}Symbol("");const Rt="http://www.w3.org/2000/svg",$t="undefined"!=typeof document?document:null;let zt,Ft;const Ht={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?$t.createElementNS(Rt,e):$t.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>$t.createTextNode(e),createComment:e=>$t.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>
2{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$t.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r){const o=r?Ft||(Ft=$t.createElementNS(Rt,"svg")):zt||(zt=$t.createElement("div"));o.innerHTML=e;const i=o.firstChild;let a=i,s=a;for(;a;)s=a,Ht.insert(a,t,n),a=o.firstChild;return[i,s]}},Ut=/\s*!important$/;function Wt(e,t,n){if(Object(r.n)(n))n.forEach((n=>Wt(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Yt[t];if(n)return n;let o=Object(r.e)(t);if("filter"!==o&&o in e)return Yt[t]=o;o=Object(r.f)(o);for(let n=0;n<qt.length;n++){const r=qt[n]+o;if(r in e)return Yt[t]=r}return t}(e,t);Ut.test(n)?e.setProperty(Object(r.l)(o),n.replace(Ut,""),"important"):e[o]=n}}const qt=["Webkit","Moz","ms"],Yt={},Gt="http://www.w3.org/1999/xlink";let Kt=Date.now,Jt=!1;if("undefined"!=typeof window){Kt()>document.createEvent("Event").timeStamp&&(Kt=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Jt=!!(e&&Number(e[1])<=53)}let Xt=0;const Zt=Promise.resolve(),Qt=()=>{Xt=0};function en(e,t,n,r){e.addEventListener(t,n,r)}function tn(e,t,n,o,i=null){const a=e._vei||(e._vei={}),s=a[t];if(o&&s)s.value=o;else{const[n,l]=function(e){let t;if(nn.test(e)){let n;for(t={};n=e.match(nn);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[Object(r.l)(e.slice(2)),t]}(t);o?en(e,n,a[t]=function(e,t){const n=e=>{const o=e.timeStamp||Kt();(Jt||o>=n.attached-1)&&pe(function(e,t){if(Object(r.n)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Xt||(Zt.then(Qt),Xt=Kt()),n}(o,i),l):s&&(function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,s,l),a[t]=void 0)}}const nn=/(?:Once|Passive|Capture)$/,rn=/^on[a-z]/,on=(e,{slots:t})=>jt(Qe,sn(e),t);on.displayName="Transition";const an={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};function sn(e){let{name:t="v",type:n,css:o=!0,duration:i,enterFromClass:a=t+"-enter-from",enterActiveClass:s=t+"-enter-active",enterToClass:l=t+"-enter-to",appearFromClass:c=a,appearActiveClass:u=s,appearToClass:d=l,leaveFromClass:p=t+"-leave-from",leaveActiveClass:h=t+"-leave-active",leaveToClass:f=t+"-leave-to"}=e;const m={};for(const t in e)t in an||(m[t]=e[t]);if(!o)return m;const g=function(e){if(null==e)return null;if(Object(r.u)(e))return[ln(e.enter),ln(e.leave)];{const t=ln(e);return[t,t]}}(i),v=g&&g[0],y=g&&g[1],{onBeforeEnter:b,onEnter:x,onEnterCancelled:w,onLeave:k,onLeaveCancelled:_,onBeforeAppear:E=b,onAppear:C=x,onAppearCancelled:N=w}=m,S=(e,t,n)=>{un(e,t?d:l),un(e,t?u:s),n&&n()},V=(e,t)=>{un(e,f),un(e,h),t&&t()},A=e=>(t,r)=>{const o=e?C:x,i=()=>S(t,e,r);o&&o(t,i),dn((()=>{un(t,e?c:a),cn(t,e?d:l),o&&o.length>1||hn(t,n,v,i)}))};return Object(r.h)(m,{onBeforeEnter(e){b&&b(e),cn(e,a),cn(e,s)},onBeforeAppear(e){E&&E(e),cn(e,c),cn(e,u)},onEnter:A(!1),onAppear:A(!0),onLeave(e,t){const r=()=>V(e,t);cn(e,p),vn(),cn(e,h),dn((()=>{un(e,p),cn(e,f),k&&k.length>1||hn(e,n,y,r)})),k&&k(e,r)},onEnterCancelled(e){S(e,!1),w&&w(e)},onAppearCancelled(e){S(e,!0),N&&N(e)},onLeaveCancelled(e){V(e),_&&_(e)}})}function ln(e){return Object(r.K)(e)}function cn(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function un(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function dn(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}on.props=Object(r.h)({},Qe.props,an);let pn=0;function hn(e,t,n,r){const o=e._endId=++pn,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=fn(e,t);if(!a)return r();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,p),i()},p=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{u<l&&d()}),s+1),e.addEventListener(c,p)}function fn(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r("transitionDelay"),i=r("transitionDuration"),a=mn(o,i),s=r("animationDelay"),l=r("animationDuration"),c=mn(s,l);let u=null,d=0,p=0;return"transition"===t?a>0&&(u="transition",d=a,p=i.length):"animation"===t?c>0&&(u="animation",d=c,p=l.length):(d=Math.max(a,c),u=d>0?a>c?"transition":"animation":null,p=u?"transition"===u?i.length:l.length:0),{type:u,timeout:d,propCount:p,hasTransform:"transition"===u&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}function mn(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>gn(t)+gn(e[n]))))}function gn(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function vn(){return document.body.offsetHeight}new WeakMap,new WeakMap,Object(r.h)({patchProp:(e,t,n,o,i=!1,a,s,l,c)=>{switch(t){case"class":!function(e,t,n){if(null==t&&(t=""),n)e.setAttribute("class",t);else{const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),e.className=t}}(e,o,i);break;case"style":!function(e,t,n){const o=e.style;if(n)if(Object(r.B)(n)){if(t!==n){const t=o.display;o.cssText=n,"_vod"in e&&(o.display=t)}}else{for(const e in n)Wt(o,e,n[e]);if(t&&!Object(r.B)(t))for(const e in t)null==n[e]&&Wt(o,e,"")}else e.removeAttribute("style")}(e,n,o);break;default:Object(r.v)(t)?Object(r.t)(t)||tn(e,t,0,o,s):function(e,t,n,o){return o?"innerHTML"===t||!!(t in e&&rn.test(t)&&Object(r.o)(n)):!("spellcheck"===t||"draggable"===t||"form"===t||"list"===t&&"INPUT"===e.tagName||"type"===t&&"TEXTAREA"===e.tagName||rn.test(t)&&Object(r.B)(n)||!(t in e))}(e,t,o,i)?function(e,t,n,r,o,i,a){if("innerHTML"===t||"textContent"===t)return r&&a(r,o,i),void(e[t]=null==n?"":n);if("value"!==t||"PROGRESS"===e.tagName){if(""===n||null==n){const r=typeof e[t];if(""===n&&"boolean"===r)return void(e[t]=!0);if(null==n&&"string"===r)return e[t]="",void e.removeAttribute(t);if("number"===r)return e[t]=0,void e.removeAttribute(t)}try{e[t]=n}catch(e){}}else{e._value=n;const t=null==n?"":n;e.value!==t&&(e.value=t)}}(e,t,o,a,s,l,c):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Gt,t.slice(6,t.length)):e.setAttributeNS(Gt,t,n);else{const o=Object(r.A)(t);null==n||o&&!1===n?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,i))}},forcePatchProp:(e,t)=>"value"===t},Ht);var yn={baidu:"http://cang.baidu.com/do/add?iu=@u&it=@t",buffer:"https://bufferapp.com/add?text=@t&url=@u",email:"mailto:?subject=@t&body=@u%0D%0A@d",evernote:"https://www.evernote.com/clip.action?url=@u&title=@t",facebook:"https://www.facebook.com/sharer/sharer.php?u=@u&title=@t&description=@d"e=@q&hashtag=@h",flipboard:"https://share.flipboard.com/bookmarklet/popout?v=2&url=@u&title=@t",hackernews:"https://news.ycombinator.com/submitlink?u=@u&t=@t",instapaper:"http://www.instapaper.com/edit?url=@u&title=@t&description=@d",line:"http://line.me/R/msg/text/?@t%0D%0A@u%0D%0A@d",linkedin:"https://www.linkedin.com/shareArticle?url=@u",messenger:"fb-messenger://share/?link=@u",odnoklassniki:"https://connect.ok.ru/dk?st.cmd=WidgetSharePreview&st.shareUrl=@u&st.comments=@t",pinterest:"https://pinterest.com/pin/create/button/?url=@u&media=@m&description=@t",pocket:"https://getpocket.com/save?url=@u&title=@t",quora:"https://www.quora.com/share?url=@u&title=@t",reddit:"https://www.reddit.com/submit?url=@u&title=@t",skype:"https://web.skype.com/share?url=@t%0D%0A@u%0D%0A@d",sms:"sms:?body=@t%0D%0A@u%0D%0A@d",stumbleupon:"https://www.stumbleupon.com/submit?url=@u&title=@t",telegram:"https://t.me/share/url?url=@u&text=@t%0D%0A@d",tumblr:"https://www.tumblr.com/share/link?url=@u&name=@t&description=@d",twitter:"https://twitter.com/intent/tweet?text=@t&url=@u&hashtags=@h@tu",viber:"viber://forward?text=@t%0D%0A@u%0D%0A@d",vk:"https://vk.com/share.php?url=@u&title=@t&description=@d&image=@m&noparse=true",weibo:"http://service.weibo.com/share/share.php?url=@u&title=@t&pic=@m",whatsapp:"https://api.whatsapp.com/se
2nd?text=@t%0D%0A@u%0D%0A@d",wordpress:"https://wordpress.com/press-this.php?u=@u&t=@t&s=@d&i=@m",xing:"https://www.xing.com/social/share/spi?op=share&url=@u&title=@t",yammer:"https://www.yammer.com/messages/new?login=true&status=@t%0D%0A@u%0D%0A@d"},bn="undefined"!=typeof window?window:null,xn={name:"ShareNetwork",props:{network:{type:String,required:!0},url:{type:String,required:!0},title:{type:String,required:!0},description:{type:String,default:""},quote:{type:String,default:""},hashtags:{type:String,default:""},twitterUser:{type:String,default:""},media:{type:String,default:""},tag:{type:String,default:"a"},popup:{type:Object,default:function(){return{width:626,height:436}}},options:{type:Object,default:function(){return{networks:null}}}},data:function(){return{popupTop:0,popupLeft:0,popupWindow:void 0,popupInterval:null}},computed:{networks:function(){return Object.assign(yn,this.options.networks||{})},key:function(){return this.network.toLowerCase()},rawLink:function(){var e=navigator.userAgent.toLowerCase();return"sms"===this.key&&(e.indexOf("iphone")>-1||e.indexOf("ipad")>-1)?this.networks[this.key].replace(":?",":&"):this.networks[this.key]},shareLink:function(){var e=this.rawLink;return"twitter"===this.key&&(this.hashtags.length||(e=e.replace("&hashtags=@h","")),this.twitterUser.length||(e=e.replace("@tu",""))),e.replace(/@tu/g,"&via="+encodeURIComponent(this.twitterUser)).replace(/@u/g,encodeURIComponent(this.url)).replace(/@t/g,encodeURIComponent(this.title)).replace(/@d/g,encodeURIComponent(this.description)).replace(/@q/g,encodeURIComponent(this.quote)).replace(/@h/g,this.encodedHashtags).replace(/@m/g,encodeURIComponent(this.media))},encodedHashtags:function(){return"facebook"===this.key&&this.hashtags.length?"%23"+this.hashtags.split(",")[0]:this.hashtags}},render:function(){var e=this;if(!this.networks.hasOwnProperty(this.key))throw new Error("Network "+this.key+" does not exist");var t={class:"share-network-"+this.key,onclick:function(){return e["http"===e.rawLink.substring(0,4)?"share":"touch"]()}};return"a"===this.tag&&(t.href="javascript:void(0)"),jt(this.tag,t,"function"==typeof this.$slots.default?this.$slots.default():null)},methods:{resizePopup:function(){var e=bn.innerWidth||document.documentElement.clientWidth||bn.screenX,t=bn.innerHeight||document.documentElement.clientHeight||bn.screenY,n=e/bn.screen.availWidth;this.popupLeft=(e-this.popup.width)/2/n+(void 0!==bn.screenLeft?bn.screenLeft:bn.screenX),this.popupTop=(t-this.popup.height)/2/n+(void 0!==bn.screenTop?bn.screenTop:bn.screenY)},share:function(){var e=this;this.resizePopup(),this.popupWindow&&this.popupInterval&&(clearInterval(this.popupInterval),this.popupWindow.close(),this.emit("change")),this.popupWindow=bn.open(this.shareLink,"sharer-"+this.key,",height="+this.popup.height+",width="+this.popup.width+",left="+this.popupLeft+",top="+this.popupTop+",screenX="+this.popupLeft+",screenY="+this.popupTop),this.popupWindow&&(this.popupWindow.focus(),this.popupInterval=setInterval((function(){e.popupWindow&&!e.popupWindow.closed||(clearInterval(e.popupInterval),e.popupWindow=null,e.emit("close"))}),500),this.emit("open"))},touch:function(){window.open(this.shareLink,"_blank"),this.emit("open")},emit:function(e){this.$root.$emit("share_network_"+e,this.key,this.url),this.$emit(e,this.key,this.url)}}};t.default={install:function(e,t){e.component(xn.name,xn)}}}])},6153:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6301),o={class:"flex flex-col"};const i=(0,n(641).pM)({data:function(){return{}}});const a=(0,n(6262).A)(i,[["render",function(e,t,n,i,a,s){var l=(0,r.resolveComponent)("Link");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createVNode)(l,{href:e.route("profile.show",{commune:e.$page.props.commune.slug}),class:(0,r.normalizeClass)([{"bg-slate-100":e.route().current("profile.show")},"whitespace-nowrap block hover:bg-slate-50 px-4 py-2"])},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)([{"text-cm-primary":e.route().current("profile.show")},"bi bi-person-lines-fill mr-2"])},null,2),(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Mein Profil")),1)]})),_:1},8,["href","class"]),(0,r.createVNode)(l,{href:e.route("profile.notifications",{commune:e.$page.props.commune.slug}),class:(0,r.normalizeClass)([{"bg-slate-100":e.route().current("profile.notifications")},"whitespace-nowrap block hover:bg-slate-50 px-4 py-2"])},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)([{"text-cm-primary":e.route().current("profile.notifications")},"bi bi-bell mr-2"])},null,2),(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Benachrichtigungen")),1)]})),_:1},8,["href","class"]),(0,r.createVNode)(l,{href:e.route("profile.events",{commune:e.$page.props.commune.slug}),class:(0,r.normalizeClass)([{"bg-slate-100":e.route().current("profile.events")},"whitespace-nowrap block hover:bg-slate-50 px-4 py-2"])},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)([{"text-cm-primary":e.route().current("profile.events")},"bi bi-calendar2-event mr-2"])},null,2),(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Meine Events")),1)]})),_:1},8,["href","class"]),(0,r.createVNode)(l,{href:e.route("profile.annonces",{commune:e.$page.props.commune.slug}),class:(0,r.normalizeClass)([{"bg-slate-100":e.route().current("profile.annonces")},"whitespace-nowrap block hover:bg-slate-50 px-4 py-2"])},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)([{"text-cm-primary":e.route().current("profile.annonces")},"bi bi-megaphone mr-2"])},null,2),(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Meine Anzeigen")),1)]})),_:1},8,["href","class"]),5==e.$page.props.userRole?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,href:e.route("profile.company",{commune:e.$page.props.commune.slug}),class:(0,r.normalizeClass)([{"bg-slate-100":e.route().current("profile.company")},"whitespace-nowrap block hover:bg-slate-50 px-4 py-2"])},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)([{"text-cm-primary":e.route().current("profile.company")},"bi bi-house mr-2"])},null,2),(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Mein Unternehmen")),1)]})),_:1},8,["href","class"])):(0,r.createCommentVNode)("",!0)])}]])},6156:e=>{"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},6188:e=>{"use strict";e.exports=Math.max},6262:(e,t)=>
vendor: 4,264 bytes, line 2
2{"use strict";t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}},6279:function(e){e.exports=function(){"use strict";return function(e,t,n){e=e||{};var r=t.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(e,t,n,o){return r.fromToBase(e,t,n,o)}n.en.relativeTime=o,r.fromToBase=function(t,r,i,a,s){for(var l,c,u,d=i.$locale().relativeTime||o,p=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=p.length,f=0;f<h;f+=1){var m=p[f];m.d&&(l=a?n(t).diff(i,m.d,!0):i.diff(t,m.d,!0));var g=(e.rounding||Math.round)(Math.abs(l));if(u=l>0,g<=m.r||!m.r){g<=1&&f>0&&(m=p[f-1]);var v=d[m.l];s&&(g=s(""+g)),c="string"==typeof v?v.replace("%d",g):v(g,r,m.l,u);break}}if(r)return c;var y=u?d.future:d.past;return"function"==typeof y?y(c):y.replace("%s",c)},r.to=function(e,t){return i(e,t,this,!0)},r.from=function(e,t){return i(e,t,this)};var a=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(a(this),e)},r.fromNow=function(e){return this.from(a(this),e)}}}()},6301:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseTransition:()=>o.pR,BaseTransitionPropsValidators:()=>o.QP,Comment:()=>o.Mw,DeprecationTypes:()=>o.aT,EffectScope:()=>o.yC,ErrorCodes:()=>o.tG,ErrorTypeStrings:()=>o.ZQ,Fragment:()=>o.FK,KeepAlive:()=>o.PR,ReactiveEffect:()=>o.X2,Static:()=>o.jC,Suspense:()=>o.tY,Teleport:()=>o.Im,Text:()=>o.EY,TrackOpTypes:()=>o.Ul,Transition:()=>y,TransitionGroup:()=>fe,TriggerOpTypes:()=>o.PP,VueElement:()=>ae,assertNumber:()=>o.U4,callWithAsyncErrorHandling:()=>o.qL,callWithErrorHandling:()=>o.gh,camelize:()=>o.PT,capitalize:()=>o.ZH,cloneVNode:()=>o.E3,compatUtils:()=>o.Y5,compile:()=>Yo,computed:()=>o.EW,createApp:()=>We,createBlock:()=>o.Wv,createCommentVNode:()=>o.Q3,createElementBlock:()=>o.CE,createElementVNode:()=>o.Lk,createHydrationRenderer:()=>o.ci,createPropsRestProxy:()=>o.bn,createRenderer:()=>o.K9,createSSRApp:()=>qe,createSlots:()=>o.eX,createStaticVNode:()=>o.Fv,createTextVNode:()=>o.eW,createVNode:()=>o.bF,customRef:()=>o.rY,defineAsyncComponent:()=>o.$V,defineComponent:()=>o.pM,defineCustomElement:()=>re,defineEmits:()=>o.qP,defineExpose:()=>o.wk,defineModel:()=>o.NP,defineOptions:()=>o.GM,defineProps:()=>o.Yj,defineSSRCustomElement:()=>oe,defineSlots:()=>o.Lu,devtools:()=>o.lt,effect:()=>o.QZ,effectScope:()=>o.uY,getCurrentInstance:()=>o.nI,getCurrentScope:()=>o.o5,getCurrentWatcher:()=>o.Yv,getTransitionRawChildren:()=>o.Df,guardReactiveProps:()=>o.Ng,h:()=>o.h,handleError:()=>o.H4,hasInjectionContext:()=>o.PS,hydrate:()=>Ue,hydrateOnIdle:()=>o.rU,hydrateOnInteraction:()=>o.Tq,hydrateOnMediaQuery:()=>o.dA,hydrateOnVisible:()=>o.Pn,initCustomFormatter:()=>o.y$,initDirectivesForSSR:()=>Je,inject:()=>o.WQ,isMemoSame:()=>o.Bs,isProxy:()=>o.ju,isReactive:()=>o.g8,isReadonly:()=>o.Tm,isRef:()=>o.i9,isRuntimeOnly:()=>o.wX,isShallow:()=>o.fE,isVNode:()=>o.vv,markRaw:()=>o.IG,mergeDefaults:()=>o.HF,mergeModels:()=>o.zz,mergeProps:()=>o.v6,nextTick:()=>o.dY,normalizeClass:()=>o.C4,normalizeProps:()=>o._B,normalizeStyle:()=>o.Tr,onActivated:()=>o.n,onBeforeMount:()=>o.KC,onBeforeUnmount:()=>o.xo,onBeforeUpdate:()=>o.Ic,onDeactivated:()=>o.Y4,onErrorCaptured:()=>o.qG,onMounted:()=>o.sV,onRenderTracked:()=>o.qR,onRenderTriggered:()=>o.bj,onScopeDispose:()=>o.jr,onServerPrefetch:()=>o.SS,onUnmounted:()=>o.hi,onUpdated:()=>o.$u,onWatcherCleanup:()=>o.ch,openBlock:()=>o.uX,popScopeId:()=>o.jt,provide:()=>o.Gt,proxyRefs:()=>o.Pr,pushScopeId:()=>o.Qi,queuePostFlushCb:()=>o.Dl,reactive:()=>o.Kh,readonly:()=>o.tB,ref:()=>o.KR,registerRuntimeCompiler:()=>o.tC,render:()=>He,renderList:()=>o.pI,renderSlot:()=>o.RG,resolveComponent:()=>o.g2,resolveDirective:()=>o.gN,resolveDynamicComponent:()=>o.$y,resolveFilter:()=>o.LJ,resolveTransitionHooks:()=>o.OW,setBlockTracking:()=>o.Vq,setDevtoolsHook:()=>o.iD,setTransitionHooks:()=>o.MZ,shallowReactive:()=>o.Gc,shallowReadonly:()=>o.nD,shallowRef:()=>o.IJ,ssrContextKey:()=>o.Fw,ssrUtils:()=>o.Gw,stop:()=>o.ds,toDisplayString:()=>
2o.v_,toHandlerKey:()=>o.Kf,toHandlers:()=>o.Tb,toRaw:()=>o.ux,toRef:()=>o.lW,toRefs:()=>o.QW,toValue:()=>o.BA,transformVNodeArgs:()=>o.gW,triggerRef:()=>o.mu,unref:()=>o.R1,useAttrs:()=>o.OA,useCssModule:()=>ce,useCssVars:()=>I,useHost:()=>se,useId:()=>o.Bi,useModel:()=>o.fn,useSSRContext:()=>o.LM,useShadowRoot:()=>le,useSlots:()=>o.Ht,useTemplateRef:()=>o.rk,useTransitionState:()=>o.Gy,vModelCheckbox:()=>_e,vModelDynamic:()=>De,vModelRadio:()=>Ce,vModelSelect:()=>Ne,vModelText:()=>ke,vShow:()=>O,version:()=>o.rE,warn:()=>o.R8,watch:()=>o.wB,watchEffect:()=>o.nT,watchPostEffect:()=>o.p9,watchSyncEffect:()=>o.U_,withAsyncContext:()=>o.E,withCtx:()=>o.k6,withDefaults:()=>o.rO,withDirectives:()=>o.bo,withKeys:()=>Ie,withMemo:()=>o.bU,withModifiers:()=>Pe,withScopeId:()=>o.YY});var r={};n.r(r),n.d(r,{BaseTransition:()=>o.pR,BaseTransitionPropsValidators:()=>o.QP,Comment:()=>o.Mw,DeprecationTypes:()=>o.aT,EffectScope:()=>o.yC,ErrorCodes:()=>o.tG,ErrorTypeStrings:()=>o.ZQ,Fragment:()=>o.FK,KeepAlive:()=>o.PR,ReactiveEffect:()=>o.X2,Static:()=>o.jC,Suspense:()=>o.tY,Teleport:()=>o.Im,Text:()=>o.EY,TrackOpTypes:()=>o.Ul,Transition:()=>y,TransitionGroup:()=>fe,TriggerOpTypes:()=>o.PP,VueElement:()=>ae,assertNumber:()=>o.U4,callWithAsyncErrorHandling:()=>o.qL,callWithErrorHandling:()=>o.gh,camelize:()=>o.PT,capitalize:()=>o.ZH,cloneVNode:()=>o.E3,compatUtils:()=>o.Y5,computed:()=>o.EW,createApp:()=>We,createBlock:()=>o.Wv,createCommentVNode:()=>o.Q3,createElementBlock:()=>o.CE,createElementVNode:()=>o.Lk,createHydrationRenderer:()=>o.ci,createPropsRestProxy:()=>o.bn,createRenderer:()=>o.K9,createSSRApp:()=>qe,createSlots:()=>o.eX,createStaticVNode:()=>o.Fv,createTextVNode:()=>o.eW,createVNode:()=>o.bF,customRef:()=>o.rY,defineAsyncComponent:()=>o.$V,defineComponent:()=>o.pM,defineCustomElement:()=>re,defineEmits:()=>o.qP,defineExpose:()=>o.wk,defineModel:()=>o.NP,defineOptions:()=>o.GM,defineProps:()=>o.Yj,defineSSRCustomElement:()=>oe,defineSlots:()=>o.Lu,devtools:()=>o.lt,effect:()=>o.QZ,effectScope:()=>o.uY,getCurrentInstance:()=>o.nI,getCurrentScope:()=>o.o5,getCurrentWatcher:()=>o.Yv,getTransitionRawChildren:()=>o.Df,guardReactiveProps:()=>o.Ng,h:()=>o.h,handleError:()=>o.H4,hasInjectionContext:()=>o.PS,hydrate:()=>Ue,hydrateOnIdle:()=>o.rU,hydrateOnInteraction:()=>o.Tq,hydrateOnMediaQuery:()=>o.dA,hydrateOnVisible:()=>o.Pn,initCustomFormatter:()=>o.y$,initDirectivesForSSR:()=>Je,inject:()=>o.WQ,isMemoSame:()=>o.Bs,isProxy:()=>o.ju,isReactive:()=>o.g8,isReadonly:()=>o.Tm,isRef:()=>o.i9,isRuntimeOnly:()=>o.wX,isShallow:()=>o.fE,isVNode:()=>o.vv,markRaw:()=>o.IG,mergeDefaults:()=>o.HF,mergeModels:()=>o.zz,mergeProps:()=>o.v6,nextTick:()=>o.dY,normalizeClass:()=>o.C4,normalizeProps:()=>o._B,normalizeStyle:()=>o.Tr,onActivated:()=>o.n,onBeforeMount:()=>o.KC,onBeforeUnmount:()=>o.xo,onBeforeUpdate:()=>o.Ic,onDeactivated:()=>o.Y4,onErrorCaptured:()=>o.qG,onMounted:()=>o.sV,onRenderTracked:()=>o.qR,onRenderTriggered:()=>o.bj,onScopeDispose:()=>o.jr,onServerPrefetch:()=>o.SS,onUnmounted:()=>o.hi,onUpdated:()=>o.$u,onWatcherCleanup:()=>o.ch,openBlock:()=>o.uX,popScopeId:()=>o.jt,provide:()=>o.Gt,proxyRefs:()=>o.Pr,pushScopeId:()=>o.Qi,queuePostFlushCb:()=>o.Dl,reactive:()=>o.Kh,readonly:()=>o.tB,ref:()=>o.KR,registerRuntimeCompiler:()=>o.tC,render:()=>He,renderList:()=>o.pI,renderSlot:()=>o.RG,resolveComponent:()=>o.g2,resolveDirective:()=>o.gN,resolveDynamicComponent:()=>o.$y,resolveFilter:()=>o.LJ,resolveTransitionHooks:()=>o.OW,setBlockTracking:()=>o.Vq,setDevtoolsHook:()=>o.iD,setTransitionHooks:()=>o.MZ,shallowReactive:()=>o.Gc,shallowReadonly:()=>o.nD,shallowRef:()=>o.IJ,ssrContextKey:()=>o.Fw,ssrUtils:()=>o.Gw,stop:()=>o.ds,toDisplayString:()=>o.v_,toHandlerKey:()=>o.Kf,toHandlers:()=>o.Tb,toRaw:()=>o.ux,toRef:()=>o.lW,toRefs:()=>o.QW,toValue:()=>o.BA,transformVNodeArgs:()=>o.gW,triggerRef:()=>o.mu,unref:()=>o.R1,useAttrs:()=>o.OA,useCssModule:()=>ce,useCssVars:()=>I,useHost:()=>se,useId:()=>o.Bi,useModel:()=>o.fn,useSSRContext:()=>o.LM,useShadowRoot:()=>le,useSlots:()=>o.Ht,useTemplateRef:()=>o.rk,useTransitionState:()=>o.Gy,vModelCheckbox:()=>_e,vModelDynamic:()=>De,vModelRadio:()=>Ce,vModelSelect:()=>Ne,vModelText:()=>ke,vShow:()=>O,version:()=>o.rE,warn:()=>o.R8,watch:()=>o.wB,watchEffect:()=>o.nT,watchPostEffect:()=>o.p9,watchSyncEffect:()=>o.U_,withAsyncContext:()=>o.E,withCtx:()=>o.k6,withDefaults:()=>o.rO,withDirectives:()=>o.bo,withKeys:()=>Ie,withMemo:()=>o.bU,withModifiers:()=>Pe,withScopeId:()=>o.YY});var o=n(641),i=n(33),a=n(953);let s;const l="undefined"!=typeof window&&window.trustedTypes;if(l)try{s=l.createPolicy("vue",{createHTML:e=>e})}catch(e){}const c=s?e=>s.createHTML(e):e=>e,u="undefined"!=typeof document?document:null,d=u&&u.createElement("template"),p={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o="svg"===t?u.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?u.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?u.createElement(e,{is:n}):u.createElement(e);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>u.createTextNode(e),createComment:e=>u.createComment(e),setText:(e,t)=>
vendor: 4,448 bytes, line 2
2{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>u.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==i&&(o=o.nextSibling););else{d.innerHTML=c("svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e);const o=d.content;if("svg"===r||"mathml"===r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},h="transition",f="animation",m=Symbol("_vtc"),g={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},v=(0,i.X$)({},o.QP,g),y=(e=>(e.displayName="Transition",e.props=v,e))(((e,{slots:t})=>(0,o.h)(o.pR,w(e),t))),b=(e,t=[])=>{(0,i.cy)(e)?e.forEach((e=>e(...t))):e&&e(...t)},x=e=>!!e&&((0,i.cy)(e)?e.some((e=>e.length>1)):e.length>1);function w(e){const t={};for(const n in e)n in g||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:u=s,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if((0,i.Gv)(e))return[k(e.enter),k(e.leave)];{const t=k(e);return[t,t]}}(o),v=m&&m[0],y=m&&m[1],{onBeforeEnter:w,onEnter:N,onEnterCancelled:V,onLeave:A,onLeaveCancelled:D,onBeforeAppear:T=w,onAppear:B=N,onAppearCancelled:O=V}=t,P=(e,t,n,r)=>{e._enterCancelled=r,E(e,t?d:l),E(e,t?u:s),n&&n()},L=(e,t)=>{e._isLeaving=!1,E(e,p),E(e,f),E(e,h),t&&t()},I=e=>(t,n)=>{const o=e?B:N,i=()=>P(t,e,n);b(o,[t,i]),C((()=>{E(t,e?c:a),_(t,e?d:l),x(o)||S(t,r,v,i)}))};return(0,i.X$)(t,{onBeforeEnter(e){b(w,[e]),_(e,a),_(e,s)},onBeforeAppear(e){b(T,[e]),_(e,c),_(e,u)},onEnter:I(!1),onAppear:I(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>L(e,t);_(e,p),e._enterCancelled?(_(e,h),M()):(M(),_(e,h)),C((()=>{e._isLeaving&&(E(e,p),_(e,f),x(A)||S(e,r,y,n))})),b(A,[e,n])},onEnterCancelled(e){P(e,!1,void 0,!0),b(V,[e])},onAppearCancelled(e){P(e,!0,void 0,!0),b(O,[e])},onLeaveCancelled(e){L(e),b(D,[e])}})}function k(e){return(0,i.Ro)(e)}function _(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[m]||(e[m]=new Set)).add(t)}function E(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[m];n&&(n.delete(t),n.size||(e[m]=void 0))}function C(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let N=0;function S(e,t,n,r){const o=e._endId=++N,i=()=>{o===e._endId&&r()};if(null!=n)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=V(e,t);if(!a)return r();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,p),i()},p=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{u<l&&d()}),s+1),e.addEventListener(c,p)}function V(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r(`${h}Delay`),i=r(`${h}Duration`),a=A(o,i),s=r(`${f}Delay`),l=r(`${f}Duration`),c=A(s,l);let u=null,d=0,p=0;t===h?a>0&&(u=h,d=a,p=i.length):t===f?c>0&&(u=f,d=c,p=l.length):(d=Math.max(a,c),u=d>0?a>c?h:f:null,p=u?u===h?i.length:l.length:0);return{type:u,timeout:d,propCount:p,hasTransform:u===h&&/\b(transform|all)(,|$)/.test(r(`${h}Property`).toString())}}function A(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>D(t)+D(e[n]))))}function D(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function M(){return document.body.offsetHeight}const T=Symbol("_vod"),B=Symbol("_vsh"),O={beforeMount(e,{value:t},{transition:n}){e[T]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):P(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),P(e,!0),r.enter(e)):r.leave(e,(()=>{P(e,!1)})):P(e,t))},beforeUnmount(e,{value:t}){P(e,t)}};function P(e,t){e.style.display=t?e[T]:"none",e[B]=!t}const L=Symbol("");function I(e){const t=(0,o.nI)();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}
2"]`)).forEach((e=>R(e,n)))};const r=()=>{const r=e(t.proxy);t.ce?R(t.ce,r):j(t.subTree,r),n(r)};(0,o.Ic)((()=>{(0,o.Dl)(r)})),(0,o.sV)((()=>{(0,o.wB)(r,i.tE,{flush:"post"});const e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),(0,o.hi)((()=>e.disconnect()))}))}function j(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{j(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)R(e.el,t);else if(e.type===o.FK)e.children.forEach((e=>j(e,t)));else if(e.type===o.jC){let{el:n,anchor:r}=e;for(;n&&(R(n,t),n!==r);)n=n.nextSibling}}function R(e,t){if(1===e.nodeType){const n=e.style;let r="";for(const e in t)n.setProperty(`--${e}`,t[e]),r+=`--${e}: ${t[e]};`;n[L]=r}}const $=/(^|;)\s*display\s*:/;const z=/\s*!important$/;function F(e,t,n){if((0,i.cy)(n))n.forEach((n=>F(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=U[t];if(n)return n;let r=(0,i.PT)(t);if("filter"!==r&&r in e)return U[t]=r;r=(0,i.ZH)(r);for(let n=0;n<H.length;n++){const o=H[n]+r;if(o in e)return U[t]=o}return t}(e,t);z.test(n)?e.setProperty((0,i.Tg)(r),n.replace(z,""),"important"):e[r]=n}}const H=["Webkit","Moz","ms"],U={};const W="http://www.w3.org/1999/xlink";function q(e,t,n,r,o,a=(0,i.J$)(t)){r&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(W,t.slice(6,t.length)):e.setAttributeNS(W,t,n):null==n||a&&!(0,i.Y2)(n)?e.removeAttribute(t):e.setAttribute(t,a?"":(0,i.Bm)(n)?String(n):n)}function Y(e,t,n,r,o){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?c(n):n));const a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){const r="OPTION"===a?e.getAttribute("value")||"":e.value,o=null==n?"checkbox"===e.type?"on":"":String(n);return r===o&&"_value"in e||(e.value=o),null==n&&e.removeAttribute(t),void(e._value=n)}let s=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=(0,i.Y2)(n):null==n&&"string"===r?(n="",s=!0):"number"===r&&(n=0,s=!0)}try{e[t]=n}catch(e){0}s&&e.removeAttribute(o||t)}function G(e,t,n,r){e.addEventListener(t,n,r)}const K=Symbol("_vei");function J(e,t,n,r,a=null){const s=e[K]||(e[K]={}),l=s[t];if(r&&l)l.value=r;else{const[n,c]=function(e){let t;if(X.test(e)){let n;for(t={};n=e.match(X);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):(0,i.Tg)(e.slice(2));return[n,t]}(t);if(r){const l=s[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();(0,o.qL)(function(e,t){if((0,i.cy)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=ee(),n}(r,a);G(e,n,l,c)}else l&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,l,c),s[t]=void 0)}}const X=/(?:Once|Passive|Capture)$/;let Z=0;const Q=Promise.resolve(),ee=()=>Z||(Q.then((()=>Z=0)),Z=Date.now());const te=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const ne={};function re(e,t,n){const r=(0,o.pM)(e,t);(0,i.Qd)(r)&&(0,i.X$)(r,t);class a extends ae{constructor(e){super(r,e,n)}}return a.def=r,a}const oe=(e,t)=>re(e,t,qe),ie="undefined"!=typeof HTMLElement?HTMLElement:class{};class ae extends ie{constructor(e,t={},n=We){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==We?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof ae){this._parent=e;break}this._instance||(this._resolved?(this._setParent(),this._update()):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then((()=>{this._pendingResolve=void 0,this._resolveDef()})):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._instance.provides=e._instance.provides)}disconnectedCallback(){this._connected=!1,(0,o.dY)((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)}))}
2_resolveDef(){if(this._pendingResolve)return;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver((e=>{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:r}=e;let o;if(n&&!(0,i.cy)(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=(0,i.Ro)(this._props[e])),(o||(o=Object.create(null)))[(0,i.PT)(e)]=!0)}this._numberProps=o,t&&this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then((t=>e(this._def=t,!0))):e(this._def)}_mount(e){this._app=this._createApp(e),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const e in t)(0,i.$3)(this,e)||Object.defineProperty(this,e,{get:()=>(0,a.R1)(t[e])})}_resolveProps(e){const{props:t}=e,n=(0,i.cy)(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e]);for(const e of n.map(i.PT))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!0)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):ne;const r=(0,i.PT)(e);t&&this._numberProps&&this._numberProps[r]&&(n=(0,i.Ro)(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(t===ne?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){const n=this._ob;n&&n.disconnect(),!0===t?this.setAttribute((0,i.Tg)(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute((0,i.Tg)(e),t+""):t||this.removeAttribute((0,i.Tg)(e)),n&&n.observe(this,{attributes:!0})}}
2_update(){He(this._createVNode(),this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=(0,o.bF)(this._def,(0,i.X$)(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,(0,i.Qd)(t[0])?(0,i.X$)({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),(0,i.Tg)(e)!==e&&t((0,i.Tg)(e),n)},this._setParent()}),t}_applyStyles(e,t){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const n=this._nonce;for(let t=e.length-1;t>=0;t--){const r=document.createElement("style");n&&r.setAttribute("nonce",n),r.textContent=e[t],this.shadowRoot.prepend(r)}}_parseSlots(){const e=this._slots={};let t;for(;t=this.firstChild;){const n=1===t.nodeType&&t.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=(this._teleportTarget||this).querySelectorAll("slot"),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const r=e[n],o=r.getAttribute("name")||"default",i=this._slots[o],a=r.parentNode;if(i)for(const e of i){if(t&&1===e.nodeType){const n=t+"-s",r=document.createTreeWalker(e,1);let o;for(e.setAttribute(n,"");o=r.nextNode();)o.setAttribute(n,"")}a.insertBefore(e,r)}else for(;r.firstChild;)a.insertBefore(r.firstChild,r);a.removeChild(r)}}_injectChildStyle(e){this._applyStyles(e.styles,e)}_removeChildStyle(e){0}}function se(e){const t=(0,o.nI)(),n=t&&t.ce;return n||null}function le(){const e=se();return e&&e.shadowRoot}function ce(e="$style"){{const t=(0,o.nI)();if(!t)return i.MZ;const n=t.type.__cssModules;if(!n)return i.MZ;const r=n[e];return r||i.MZ}}const ue=new WeakMap,de=new WeakMap,pe=Symbol("_moveCb"),he=Symbol("_enterCb"),fe=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:(0,i.X$)({},v,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=(0,o.nI)(),r=(0,o.Gy)();let i,s;return(0,o.$u)((()=>{if(!i.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode(),o=e[m];o&&o.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(r);const{hasTransform:a}=V(r);return i.removeChild(r),a}(i[0].el,n.vnode.el,t))return;i.forEach(me),i.forEach(ge);const r=i.filter(ve);M(),r.forEach((e=>{const n=e.el,r=n.style;_(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n[pe]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n[pe]=null,E(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const l=(0,a.ux)(e),c=w(l);let u=l.tag||o.FK;if(i=[],s)for(let e=0;e<s.length;e++){const t=s[e];t.el&&t.el instanceof Element&&(i.push(t),(0,o.MZ)(t,(0,o.OW)(t,c,r,n)),ue.set(t,t.el.getBoundingClientRect()))}s=t.default?(0,o.Df)(t.default()):[];for(let e=0;e<s.length;e++){const t=s[e];null!=t.key&&(0,o.MZ)(t,(0,o.OW)(t,c,r,n))}return(0,o.bF)(u,null,s)}}});function me(e){const t=e.el;t[pe]&&t[pe](),t[he]&&t[he]()}function ge(e){de.set(e,e.el.getBoundingClientRect())}function ve(e){const t=ue.get(e),n=de.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${o}px)`,t.transitionDuration="0s",e}}const ye=e=>{const t=e.props["onUpdate:modelValue"]||!1;return(0,i.cy)(t)?e=>(0,i.DY)(t,e):t};function be(e){e.target.composing=!0}function xe(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const we=Symbol("_assign"),ke={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[we]=ye(o);const a=r||o.props&&"number"===o.props.type;G(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),a&&(r=(0,i.bB)(r)),e[we](r)})),n&&G(e,"change",(()=>{e.value=e.value.trim()})),t||(G(e,"compositionstart",be),G(e,"compositionend",xe),G(e,"change",xe))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:a}},s){if(e[we]=ye(s),e.composing)return;const l=null==t?"":t;if((!a&&"number"!==e.type||/^0\d/.test(e.value)?e.value:(0,i.bB)(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(r&&t===n)return;if(o&&e.value.trim()===l)return}e.value=l}}},_e={deep:!0,created(e,t,n){e[we]=ye(n),G(e,"change",(()=>{const t=e._modelValue,n=Ve(e),r=e.checked,o=e[we];if((0,i.cy)(t)){const e=(0,i.u3)(t,n),a=-1!==e;if(r&&!a)o(t.concat(n));else if(!r&&a){const n=[...t];n.splice(e,1),o(n)}}else if((0,i.vM)(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(Ae(e,r))}))},mounted:Ee,beforeUpdate(e,t,n){e[we]=ye(n),Ee(e,t,n)}};function Ee(e,{value:t,oldValue:n},r){let o;if(e._modelValue=t,(0,i.cy)(t))o=(0,i.u3)(t,r.props.value)>-1;else if((0,i.vM)(t))o=t.has(r.props.value);else{if(t===n)return;o=(0,i.BX)(t,Ae(e,!0))}e.checked!==o&&(e.checked=o)}const Ce={created(e,{value:t},n){e.checked=(0,i.BX)(t,n.props.value),e[we]=ye(n),G(e,"change",(()=>{e[we](Ve(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e[we]=ye(r),t!==n&&(e.checked=(0,i.BX)(t,r.props.value))}},Ne={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const a=(0,i.vM)(t);G(e,"change",(()=>
2{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?(0,i.bB)(Ve(e)):Ve(e)));e[we](e.multiple?a?new Set(t):t:t[0]),e._assigning=!0,(0,o.dY)((()=>{e._assigning=!1}))})),e[we]=ye(r)},mounted(e,{value:t}){Se(e,t)},beforeUpdate(e,t,n){e[we]=ye(n)},updated(e,{value:t}){e._assigning||Se(e,t)}};function Se(e,t){const n=e.multiple,r=(0,i.cy)(t);if(!n||r||(0,i.vM)(t)){for(let o=0,a=e.options.length;o<a;o++){const a=e.options[o],s=Ve(a);if(n)if(r){const e=typeof s;a.selected="string"===e||"number"===e?t.some((e=>String(e)===String(s))):(0,i.u3)(t,s)>-1}else a.selected=t.has(s);else if((0,i.BX)(Ve(a),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Ve(e){return"_value"in e?e._value:e.value}function Ae(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const De={created(e,t,n){Te(e,t,n,null,"created")},mounted(e,t,n){Te(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Te(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Te(e,t,n,r,"updated")}};function Me(e,t){switch(e){case"SELECT":return Ne;case"TEXTAREA":return ke;default:switch(t){case"checkbox":return _e;case"radio":return Ce;default:return ke}}}function Te(e,t,n,r,o){const i=Me(e.tagName,n.props&&n.props.type)[o];i&&i(e,t,n,r)}const Be=["ctrl","shift","alt","meta"],Oe={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Be.some((n=>e[`${n}Key`]&&!t.includes(n)))},Pe=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){const r=Oe[t[e]];if(r&&r(n,t))return}return e(n,...r)})},Le={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ie=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=(0,i.Tg)(n.key);return t.some((e=>e===r||Le[e]===r))?e(n):void 0})},je=(0,i.X$)({patchProp:(e,t,n,r,o,a)=>{const s="svg"===o;"class"===t?function(e,t,n){const r=e[m];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,s):"style"===t?function(e,t,n){const r=e.style,o=(0,i.Kg)(n);let a=!1;if(n&&!o){if(t)if((0,i.Kg)(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&F(r,t,"")}else for(const e in t)null==n[e]&&F(r,e,"");for(const e in n)"display"===e&&(a=!0),F(r,e,n[e])}else if(o){if(t!==n){const e=r[L];e&&(n+=";"+e),r.cssText=n,a=$.test(n)}}else t&&e.removeAttribute("style");T in e&&(e[T]=a?r.display:"",e[B]&&(r.display="none"))}(e,n,r):(0,i.Mp)(t)?(0,i.CP)(t)||J(e,t,0,r,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&te(t)&&(0,i.Tn)(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(te(t)&&(0,i.Kg)(n))return!1;return t in e}(e,t,r,s))?(Y(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||q(e,t,r,s,0,"value"!==t)):!e._isVueCE||!/[A-Z]/.test(t)&&(0,i.Kg)(r)?("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),q(e,t,r,s)):Y(e,(0,i.PT)(t),r,0,t)}},p);let Re,$e=!1;function ze(){return Re||(Re=(0,o.K9)(je))}function Fe(){return Re=$e?Re:(0,o.ci)(je),$e=!0,Re}const He=(...e)=>{ze().render(...e)},Ue=(...e)=>{Fe().hydrate(...e)},We=(...e)=>{const t=ze().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=Ge(e);if(!r)return;const o=t._component;(0,i.Tn)(o)||o.render||o.template||(o.template=r.innerHTML),1===r.nodeType&&(r.textContent="");const a=n(r,!1,Ye(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t},qe=(...e)=>{const t=Fe().createApp(...e);const{mount:n}=t;return t.mount=e=>{const t=Ge(e);if(t)return n(t,!0,Ye(t))},t};function Ye(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Ge(e){if((0,i.Kg)(e)){return document.querySelector(e)}return e}let Ke=!1;const Je=()=>{Ke||(Ke=!0,ke.getSSRProps=({value:e})=>({value:e}),Ce.getSSRProps=({value:e},t)=>{if(t.props&&(0,i.BX)(t.props.value,e))return{checked:!0}},_e.getSSRProps=({value:e},t)=>{if((0,i.cy)(e)){if(t.props&&(0,i.u3)(e,t.props.value)>-1)return{checked:!0}}else if((0,i.vM)(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},De.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=Me(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},O.getSSRProps=({value:e})=>
2{if(!e)return{style:{display:"none"}}})},Xe=Symbol(""),Ze=Symbol(""),Qe=Symbol(""),et=Symbol(""),tt=Symbol(""),nt=Symbol(""),rt=Symbol(""),ot=Symbol(""),it=Symbol(""),at=Symbol(""),st=Symbol(""),lt=Symbol(""),ct=Symbol(""),ut=Symbol(""),dt=Symbol(""),pt=Symbol(""),ht=Symbol(""),ft=Symbol(""),mt=Symbol(""),gt=Symbol(""),vt=Symbol(""),yt=Symbol(""),bt=Symbol(""),xt=Symbol(""),wt=Symbol(""),kt=Symbol(""),_t=Symbol(""),Et=Symbol(""),Ct=Symbol(""),Nt=Symbol(""),St=Symbol(""),Vt=Symbol(""),At=Symbol(""),Dt=Symbol(""),Mt=Symbol(""),Tt=Symbol(""),Bt=Symbol(""),Ot=Symbol(""),Pt=Symbol(""),Lt={[Xe]:"Fragment",[Ze]:"Teleport",[Qe]:"Suspense",[et]:"KeepAlive",[tt]:"BaseTransition",[nt]:"openBlock",[rt]:"createBlock",[ot]:"createElementBlock",[it]:"createVNode",[at]:"createElementVNode",[st]:"createCommentVNode",[lt]:"createTextVNode",[ct]:"createStaticVNode",[ut]:"resolveComponent",[dt]:"resolveDynamicComponent",[pt]:"resolveDirective",[ht]:"resolveFilter",[ft]:"withDirectives",[mt]:"renderList",[gt]:"renderSlot",[vt]:"createSlots",[yt]:"toDisplayString",[bt]:"mergeProps",[xt]:"normalizeClass",[wt]:"normalizeStyle",[kt]:"normalizeProps",[_t]:"guardReactiveProps",[Et]:"toHandlers",[Ct]:"camelize",[Nt]:"capitalize",[St]:"toHandlerKey",[Vt]:"setBlockTracking",[At]:"pushScopeId",[Dt]:"popScopeId",[Mt]:"withCtx",[Tt]:"unref",[Bt]:"isRef",[Ot]:"withMemo",[Pt]:"isMemoSame"};const It={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function jt(e,t,n,r,o,i,a,s=!1,l=!1,c=!1,u=It){return e&&(s?(e.helper(nt),e.helper(Gt(e.inSSR,c))):e.helper(Yt(e.inSSR,c)),a&&e.helper(ft)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:i,directives:a,isBlock:s,disableTracking:l,isComponent:c,loc:u}}function Rt(e,t=It){return{type:17,loc:t,elements:e}}function $t(e,t=It){return{type:15,loc:t,properties:e}}function zt(e,t){return{type:16,loc:It,key:(0,i.Kg)(e)?Ft(e,!0):e,value:t}}function Ft(e,t=!1,n=It,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Ht(e,t=It){return{type:8,loc:t,children:e}}function Ut(e,t=[],n=It){return{type:14,loc:n,callee:e,arguments:t}}function Wt(e,t=void 0,n=!1,r=!1,o=It){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function qt(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:It}}function Yt(e,t){return e||t?it:at}function Gt(e,t){return e||t?rt:ot}function Kt(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Yt(r,e.isComponent)),t(nt),t(Gt(r,e.isComponent)))}const Jt=new Uint8Array([123,123]),Xt=new Uint8Array([125,125]);function Zt(e){return e>=97&&e<=122||e>=65&&e<=90}function Qt(e){return 32===e||10===e||9===e||12===e||13===e}function en(e){return 47===e||62===e||Qt(e)}function tn(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const nn={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};function rn(e,{compatConfig:t}){const n=t&&t[e];return"MODE"===e?n||3:n}function on(e,t){const n=rn("MODE",t),r=rn(e,t);return 3===n?!0===r:!1!==r}function an(e,t,n,...r){return on(e,t)}function sn(e){throw e}function ln(e){}function cn(e,t,n,r){const o=new SyntaxError(String(`https://vuejs.org/error-reference/#compiler-${e}`));return o.code=e,o.loc=t,o}const un=e=>4===e.type&&e.isStatic;function dn(e){switch(e){case"Teleport":case"teleport":return Ze;case"Suspense":case"suspense":return Qe;case"KeepAlive":case"keep-alive":return et;case"BaseTransition":case"base-transition":return tt}}const pn=/^\d|[^\$\w\xA0-\uFFFF]/,hn=e=>!pn.test(e),fn=/[A-Za-z_$\xA0-\uFFFF]/,mn=/[\.\?\w$\xA0-\uFFFF]/,gn=/\s+[.[]\s*|\s*[.[]\s+/g,vn=e=>4===e.type?e.content:e.loc.source,yn=e=>{const t=vn(e).trim().replace(gn,(e=>e.trim()));let n=0,r=[],o=0,i=0,a=null;for(let e=0;e<t.length;e++){const s=t.charAt(e);switch(n){case 0:if("["===s)r.push(n),n=1,o++;else if("("===s)r.push(n),n=2,i++;else if(!(0===e?fn:mn).test(s))return!1;break;case 1:"'"===s||'"'===s||"`"===s?(r.push(n),n=3,a=s):"["===s?o++:"]"===s&&(--o||(n=r.pop())
vendor: 13,692 bytes, line 2
2);break;case 2:if("'"===s||'"'===s||"`"===s)r.push(n),n=3,a=s;else if("("===s)i++;else if(")"===s){if(e===t.length-1)return!1;--i||(n=r.pop())}break;case 3:s===a&&(n=r.pop(),a=null)}}return!o&&!i},bn=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,xn=e=>bn.test(vn(e));function wn(e,t,n=!1){for(let r=0;r<e.props.length;r++){const o=e.props[r];if(7===o.type&&(n||o.exp)&&((0,i.Kg)(t)?o.name===t:t.test(o.name)))return o}}function kn(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(6===i.type){if(n)continue;if(i.name===t&&(i.value||r))return i}else if("bind"===i.name&&(i.exp||r)&&_n(i.arg,t))return i}}function _n(e,t){return!(!e||!un(e)||e.content!==t)}function En(e){return 5===e.type||2===e.type}function Cn(e){return 7===e.type&&"slot"===e.name}function Nn(e){return 1===e.type&&3===e.tagType}function Sn(e){return 1===e.type&&2===e.tagType}const Vn=new Set([kt,_t]);function An(e,t=[]){if(e&&!(0,i.Kg)(e)&&14===e.type){const n=e.callee;if(!(0,i.Kg)(n)&&Vn.has(n))return An(e.arguments[0],t.concat(e))}return[e,t]}function Dn(e,t,n){let r,o,a=13===e.type?e.props:e.arguments[2],s=[];if(a&&!(0,i.Kg)(a)&&14===a.type){const e=An(a);a=e[0],s=e[1],o=s[s.length-1]}if(null==a||(0,i.Kg)(a))r=$t([t]);else if(14===a.type){const e=a.arguments[0];(0,i.Kg)(e)||15!==e.type?a.callee===Et?r=Ut(n.helper(bt),[$t([t]),a]):a.arguments.unshift($t([t])):Mn(t,e)||e.properties.unshift(t),!r&&(r=a)}else 15===a.type?(Mn(t,a)||a.properties.unshift(t),r=a):(r=Ut(n.helper(bt),[$t([t]),a]),o&&o.callee===_t&&(o=s[s.length-2]));13===e.type?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function Mn(e,t){let n=!1;if(4===e.key.type){const r=e.key.content;n=t.properties.some((e=>4===e.key.type&&e.key.content===r))}return n}function Tn(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}const Bn=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,On={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:i.NO,isPreTag:i.NO,isIgnoreNewlineTag:i.NO,isCustomElement:i.NO,onError:sn,onWarn:ln,comments:!1,prefixIdentifiers:!1};let Pn=On,Ln=null,In="",jn=null,Rn=null,$n="",zn=-1,Fn=-1,Hn=0,Un=!1,Wn=null;const qn=[],Yn=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Jt,this.delimiterClose=Xt,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Jt,this.delimiterClose=Xt}getPos(e){let t=1,n=e+1;for(let r=this.newlines.length-1;r>=0;r--){const o=this.newlines[r];if(e>o){t=r+2,n=e-o;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?en(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||Qt(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.sectionStart=t+2,this.stateInClosingTagName(e),void(this.inRCDATA=!1)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===nn.TitleEnd||this.currentSequence===nn.TextareaEnd&&!this.inSFCRoot?this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(60===e)}stateCDATASequence(e){e===nn.Cdata[this.sequenceIndex]?++this.sequenceIndex===nn.Cdata.length&&(this.state=28,this.currentSequence=nn.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const t=this.buffer.charCodeAt(this.index);if(10===t&&this.newlines.push(this.index),t===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===nn.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,t){this.enterRCDATA(e,t),this.state=31}enterRCDATA(e,t){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=t}stateBeforeTagName(e){33===e?(this.state=22,this.sectionStart=this.index+1):63===e?(this.state=24,this.sectionStart=this.index+1):Zt(e)?(this.sectionStart=this.index,0===this.mode?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:this.state=116===e?30:115===e?29:6):47===e?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){en(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(en(e)){const t=this.buffer.slice(this.sectionStart,this.index);"template"!==t&&this.enterRCDATA(tn("</"+t),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){Qt(e)||(62===e?(this.state=1,this.sectionStart=this.index+1):(this.state=Zt(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(62===e||Qt(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){62===e&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){62===e?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):47===e?this.state=7:60===e&&47===this.peek()?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):Qt(e)||this.handleAttrStart(e)}handleAttrStart(e){118===e&&45===this.peek()?(this.state=13,this.sectionStart=this.index):46===e||58===e||64===e||35===e?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){62===e?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):Qt(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(61===e||en(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){61===e||en(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):58===e?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):46===e&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){61===e||en(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):91===e?this.state=15:46===e&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){93===e?this.state=14:(61===e||en(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){61===e||en(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):46===e&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){61===e?this.state=18:47===e||62===e?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):Qt(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){34===e?(this.state=19,this.sectionStart=this.index+1):39===e?(this.state=20,this.sectionStart=this.index+1):Qt(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,t){(e===t||this.fastForwardTo(t))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(34===t?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){Qt(e)||62===e?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):39!==e&&60!==e&&61!==e&&96!==e||this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){91===e?(this.state=26,this.sequenceIndex=0):this.state=45===e?25:23}stateInDeclaration(e){(62===e||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(62===e||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){45===e?(this.state=28,this.currentSequence=nn.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(62===e||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===nn.ScriptEnd[3]?this.startSpecial(nn.ScriptEnd,4):e===nn.StyleEnd[3]?this.startSpecial(nn.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===nn.TitleEnd[3]?this.startSpecial(nn.TitleEnd,4):e===nn.TextareaEnd[3]?this.startSpecial(nn.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const e=this.buffer.charCodeAt(this.index);switch(10===e&&this.newlines.push(this.index),this.state){case 1:this.stateText(e);break;case 2:this.stateInterpolationOpen(e);break;case 3:this.stateInterpolation(e);break;case 4:this.stateInterpolationClose(e);break;case 31:this.stateSpecialStartSequence(e);break;case 32:this.stateInRCDATA(e);break;case 26:this.stateCDATASequence(e);break;case 19:this.stateInAttrValueDoubleQuotes(e);break;case 12:this.stateInAttrName(e);break;case 13:this.stateInDirName(e);break;case 14:this.stateInDirArg(e);break;case 15:this.stateInDynamicDirArg(e);break;case 16:this.stateInDirModifier(e);break;case 28:this.stateInCommentLike(e);break;case 27:this.stateInSpecialComment(e);break;case 11:this.stateBeforeAttrName(e);break;case 6:this.stateInTagName(e);break;case 34:this.stateInSFCRootTagName(e);break;case 9:this.stateInClosingTagName(e);break;case 5:this.stateBeforeTagName(e);break;case 17:this.stateAfterAttrName(e);break;case 20:this.stateInAttrValueSingleQuotes(e);break;case 18:this.stateBeforeAttrValue(e);break;case 8:this.stateBeforeClosingTagName(e);break;case 10:this.stateAfterClosingTagName(e);break;case 29:this.stateBeforeSpecialS(e);break;case 30:this.stateBeforeSpecialT(e);break;case 21:this.stateInAttrValueNoQuotes(e);break;case 7:this.stateInSelfClosingTag(e);break;case 23:this.stateInDeclaration(e);break;case 22:this.stateBeforeDeclaration(e);break;case 25:this.stateBeforeComment(e);break;case 24:this.stateInProcessingInstruction(e);break;case 33:this.stateInEntity()}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(1===this.state||32===this.state&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):19!==this.state&&20!==this.state&&21!==this.state||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(28===this.state?this.currentSequence===nn.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(qn,{onerr:fr,ontext(e,t){Zn(Jn(e,t),e,t)}
2,ontextentity(e,t,n){Zn(e,t,n)},oninterpolation(e,t){if(Un)return Zn(Jn(e,t),e,t);let n=e+Yn.delimiterOpen.length,r=t-Yn.delimiterClose.length;for(;Qt(In.charCodeAt(n));)n++;for(;Qt(In.charCodeAt(r-1));)r--;let o=Jn(n,r);o.includes("&")&&(o=Pn.decodeEntities(o,!1)),lr({type:5,content:hr(o,!1,cr(n,r)),loc:cr(e,t)})},onopentagname(e,t){const n=Jn(e,t);jn={type:1,tag:n,ns:Pn.getNamespace(n,qn[0],Pn.ns),tagType:0,props:[],children:[],loc:cr(e-1,t),codegenNode:void 0}},onopentagend(e){Xn(e)},onclosetag(e,t){const n=Jn(e,t);if(!Pn.isVoidTag(n)){let r=!1;for(let e=0;e<qn.length;e++){if(qn[e].tag.toLowerCase()===n.toLowerCase()){r=!0,e>0&&fr(24,qn[0].loc.start.offset);for(let n=0;n<=e;n++){Qn(qn.shift(),t,n<e)}break}}r||fr(23,er(e,60))}},onselfclosingtag(e){const t=jn.tag;jn.isSelfClosing=!0,Xn(e),qn[0]&&qn[0].tag===t&&Qn(qn.shift(),e)},onattribname(e,t){Rn={type:6,name:Jn(e,t),nameLoc:cr(e,t),value:void 0,loc:cr(e)}},ondirname(e,t){const n=Jn(e,t),r="."===n||":"===n?"bind":"@"===n?"on":"#"===n?"slot":n.slice(2);if(Un||""!==r||fr(26,e),Un||""===r)Rn={type:6,name:n,nameLoc:cr(e,t),value:void 0,loc:cr(e)};else if(Rn={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:"."===n?[Ft("prop")]:[],loc:cr(e)},"pre"===r){Un=Yn.inVPre=!0,Wn=jn;const e=jn.props;for(let t=0;t<e.length;t++)7===e[t].type&&(e[t]=pr(e[t]))}},ondirarg(e,t){if(e===t)return;const n=Jn(e,t);if(Un)Rn.name+=n,dr(Rn.nameLoc,t);else{const r="["!==n[0];Rn.arg=hr(r?n:n.slice(1,-1),r,cr(e,t),r?3:0)}},ondirmodifier(e,t){const n=Jn(e,t);if(Un)Rn.name+="."+n,dr(Rn.nameLoc,t);else if("slot"===Rn.name){const e=Rn.arg;e&&(e.content+="."+n,dr(e.loc,t))}else{const r=Ft(n,!0,cr(e,t));Rn.modifiers.push(r)}},onattribdata(e,t){$n+=Jn(e,t),zn<0&&(zn=e),Fn=t},onattribentity(e,t,n){$n+=e,zn<0&&(zn=t),Fn=n},onattribnameend(e){const t=Rn.loc.start.offset,n=Jn(t,e);7===Rn.type&&(Rn.rawName=n),jn.props.some((e=>(7===e.type?e.rawName:e.name)===n))&&fr(2,t)},onattribend(e,t){if(jn&&Rn){if(dr(Rn.loc,t),0!==e)if($n.includes("&")&&($n=Pn.decodeEntities($n,!0)),6===Rn.type)"class"===Rn.name&&($n=sr($n).trim()),1!==e||$n||fr(13,t),Rn.value={type:2,content:$n,loc:1===e?cr(zn,Fn):cr(zn-1,Fn+1)},Yn.inSFCRoot&&"template"===jn.tag&&"lang"===Rn.name&&$n&&"html"!==$n&&Yn.enterRCDATA(tn("</template"),0);else{let e=0;Rn.exp=hr($n,!1,cr(zn,Fn),0,e),"for"===Rn.name&&(Rn.forParseResult=function(e){const t=e.loc,n=e.content,r=n.match(Bn);if(!r)return;const[,o,i]=r,a=(e,n,r=!1)=>{const o=t.start.offset+n;return hr(e,!1,cr(o,o+e.length),0,r?1:0)},s={source:a(i.trim(),n.indexOf(i,o.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=o.trim().replace(Kn,"").trim();const c=o.indexOf(l),u=l.match(Gn);if(u){l=l.replace(Gn,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,c+l.length),s.key=a(e,t,!0)),u[2]){const r=u[2].trim();r&&(s.index=a(r,n.indexOf(r,s.key?t+e.length:c+l.length),!0))}}l&&(s.value=a(l,c,!0));return s}(Rn.exp));let t=-1;"bind"===Rn.name&&(t=Rn.modifiers.findIndex((e=>"sync"===e.content)))>-1&&an("COMPILER_V_BIND_SYNC",Pn,Rn.loc,Rn.rawName)&&(Rn.name="model",Rn.modifiers.splice(t,1))}7===Rn.type&&"pre"===Rn.name||jn.props.push(Rn)}$n="",zn=Fn=-1},oncomment(e,t){Pn.comments&&lr({type:3,content:Jn(e,t),loc:cr(e-4,t+3)})},onend(){const e=In.length;for(let t=0;t<qn.length;t++)Qn(qn[t],e-1),fr(24,qn[t].loc.start.offset)},oncdata(e,t){0!==qn[0].ns?Zn(Jn(e,t),e,t):fr(1,e-9)},onprocessinginstruction(e){0===(qn[0]?qn[0].ns:Pn.ns)&&fr(21,e-1)}}),Gn=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Kn=/^\(|\)$/g;function Jn(e,t){return In.slice(e,t)}function Xn(e){Yn.inSFCRoot&&(jn.innerLoc=cr(e+1,e+1)),lr(jn);const{tag:t,ns:n}=jn;0===n&&Pn.isPreTag(t)&&Hn++,Pn.isVoidTag(t)?Qn(jn,e):(qn.unshift(jn),1!==n&&2!==n||(Yn.inXML=!0)),jn=null}function Zn(e,t,n){{const t=qn[0]&&qn[0].tag;"script"!==t&&"style"!==t&&e.includes("&")&&(e=Pn.decodeEntities(e,!1))}const r=qn[0]||Ln,o=r.children[r.children.length-1];o&&2===o.type?(o.content+=e,dr(o.loc,n)):r.children.push({type:2,content:e,loc:cr(t,n)})}function Qn(e,t,n=!1){dr(e.loc,n?er(t,60):function(e,t){let n=e;for(;In.charCodeAt(n)!==t&&n<In.length-1;)n++;return n}(t,62)+1),Yn.inSFCRoot&&(e.children.length?e.innerLoc.end=(0,i.X$)({},e.children[e.children.length-1].loc.end):e.innerLoc.end=(0,i.X$)({},e.innerLoc.start),e.innerLoc.source=Jn(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:o,children:a}=e;if(Un||("slot"===r?e.tagType=2:nr(e)?e.tagType=3:function({tag:e,props:t}){if(Pn.isCustomElement(e))return!1;if("component"===e||(n=e.charCodeAt(0),n>64&&n<91)||dn(e)||Pn.isBuiltInComponent&&Pn.isBuiltInComponent(e)||Pn.isNativeTag&&!Pn.isNativeTag(e))return!0;var n;for(let e=0;e<t.length;e++){const n=t[e];if(6===n.type){if("is"===n.name&&n.value){if(n.value.content.startsWith("vue:"))return!0;
2if(an("COMPILER_IS_ON_ELEMENT",Pn,n.loc))return!0}}else if("bind"===n.name&&_n(n.arg,"is")&&an("COMPILER_IS_ON_ELEMENT",Pn,n.loc))return!0}return!1}(e)&&(e.tagType=1)),Yn.inRCDATA||(e.children=or(a)),0===o&&Pn.isIgnoreNewlineTag(r)){const e=a[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}0===o&&Pn.isPreTag(r)&&Hn--,Wn===e&&(Un=Yn.inVPre=!1,Wn=null),Yn.inXML&&0===(qn[0]?qn[0].ns:Pn.ns)&&(Yn.inXML=!1);{const t=e.props;if(!Yn.inSFCRoot&&on("COMPILER_NATIVE_TEMPLATE",Pn)&&"template"===e.tag&&!nr(e)){const t=qn[0]||Ln,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}const n=t.find((e=>6===e.type&&"inline-template"===e.name));n&&an("COMPILER_INLINE_TEMPLATE",Pn,n.loc)&&e.children.length&&(n.value={type:2,content:Jn(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function er(e,t){let n=e;for(;In.charCodeAt(n)!==t&&n>=0;)n--;return n}const tr=new Set(["if","else","else-if","for","slot"]);function nr({tag:e,props:t}){if("template"===e)for(let e=0;e<t.length;e++)if(7===t[e].type&&tr.has(t[e].name))return!0;return!1}const rr=/\r\n/g;function or(e,t){const n="preserve"!==Pn.whitespace;let r=!1;for(let t=0;t<e.length;t++){const o=e[t];if(2===o.type)if(Hn)o.content=o.content.replace(rr,"\n");else if(ir(o.content)){const i=e[t-1]&&e[t-1].type,a=e[t+1]&&e[t+1].type;!i||!a||n&&(3===i&&(3===a||1===a)||1===i&&(3===a||1===a&&ar(o.content)))?(r=!0,e[t]=null):o.content=" "}else n&&(o.content=sr(o.content))}return r?e.filter(Boolean):e}function ir(e){for(let t=0;t<e.length;t++)if(!Qt(e.charCodeAt(t)))return!1;return!0}function ar(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(10===n||13===n)return!0}return!1}function sr(e){let t="",n=!1;for(let r=0;r<e.length;r++)Qt(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function lr(e){(qn[0]||Ln).children.push(e)}function cr(e,t){return{start:Yn.getPos(e),end:null==t?t:Yn.getPos(t),source:null==t?t:Jn(e,t)}}function ur(e){return cr(e.start.offset,e.end.offset)}function dr(e,t){e.end=Yn.getPos(t),e.source=Jn(e.start.offset,t)}function pr(e){const t={type:6,name:e.rawName,nameLoc:cr(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function hr(e,t=!1,n,r=0,o=0){return Ft(e,t,n,r)}function fr(e,t,n){Pn.onError(cn(e,cr(t,t)))}function mr(e,t){if(Yn.reset(),jn=null,Rn=null,$n="",zn=-1,Fn=-1,qn.length=0,In=e,Pn=(0,i.X$)({},On),t){let e;for(e in t)null!=t[e]&&(Pn[e]=t[e])}Yn.mode="html"===Pn.parseMode?1:"sfc"===Pn.parseMode?2:0,Yn.inXML=1===Pn.ns||2===Pn.ns;const n=t&&t.delimiters;n&&(Yn.delimiterOpen=tn(n[0]),Yn.delimiterClose=tn(n[1]));const r=Ln=function(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:It}}([],e);return Yn.parse(In),r.loc=cr(0,e.length),r.children=or(r.children),Ln=null,r}function gr(e,t){yr(e,void 0,t,vr(e,e.children[0]))}function vr(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!Sn(t)}function yr(e,t,n,r=!1,o=!1){const{children:a}=e,s=[];for(let t=0;t<a.length;t++){const i=a[t];if(1===i.type&&0===i.tagType){const e=r?0:br(i,n);if(e>0){if(e>=2){i.codegenNode.patchFlag=-1,s.push(i);continue}}else{const e=i.codegenNode;if(13===e.type){const t=e.patchFlag;if((void 0===t||512===t||1===t)&&kr(i,n)>=2){const t=_r(i);t&&(e.props=n.hoist(t))}e.dynamicProps&&(e.dynamicProps=n.hoist(e.dynamicProps))}}}else if(12===i.type){if((r?0:br(i,n))>=2){s.push(i);continue}}if(1===i.type){const t=1===i.tagType;t&&n.scopes.vSlot++,yr(i,e,n,!1,o),t&&n.scopes.vSlot--}else if(11===i.type)yr(i,e,n,1===i.children.length,!0);else if(9===i.type)for(let t=0;t<i.branches.length;t++)yr(i.branches[t],e,n,1===i.branches[t].children.length,o)}let l=!1;if(s.length===a.length&&1===e.type)if(0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&(0,i.cy)(e.codegenNode.children))e.codegenNode.children=c(Rt(e.codegenNode.children)),l=!0;else if(1===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&e.codegenNode.children&&!(0,i.cy)(e.codegenNode.children)&&15===e.codegenNode.children.type){const t=u(e.codegenNode,"default");t&&(t.returns=c(Rt(t.returns)),l=!0)}else if(3===e.tagType&&t&&1===t.type&&1===t.tagType&&t.codegenNode&&13===t.codegenNode.type&&t.codegenNode.children&&!(0,i.cy)(t.codegenNode.children)&&15===t.codegenNode.children.type){const n=wn(e,"slot",!0),r=n&&n.arg&&u(t.codegenNode,n.arg);r&&(r.returns=c(Rt(r.returns)),l=!0)}if(!l)for(const e of s)e.codegenNode=n.cache(e.codegenNode);function c(e){const t=n.cache(e);return o&&n.hmr&&(t.needArraySpread=!0),t}function u(e,t){if(e.children&&!(0,i.cy)(e.children)&&15===e.children.type){const n=e.children.properties.find((e=>e.key===t||e.key.content===t));return n&&n.value}}s.length&&n.transformHoist&&n.transformHoist(a,n,e)}function br(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const r=n.get(e);if(void 0!==r)return r;const o=e.codegenNode;if(13!==o.type)return 0;if(o.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag&&"math"!==e.tag)return 0;if(void 0===o.patchFlag){let r=3;const i=kr(e,t);if(0===i)return n.set(e,0),0;i<r&&(r=i);for(let o=0;o<e.children.length;o++){const i=br(e.children[o],t);if(0===i)return n.set(e,0),0;i<r&&(r=i)}if(r>1)for(let o=0;o<e.props.length;o++){const i=e.props[o];if(7===i.type&&"bind"===i.name&&i.exp){const o=br(i.exp,t);if(0===o)return n.set(e,0),0;o<r&&(r=o)}}if(o.isBlock){for(let t=0;t<e.props.length;t++){if(7===e.props[t].type)return n.set(e,0),0}t.removeHelper(nt),t.removeHelper(Gt(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(Yt(t.inSSR,o.isComponent))}return n.set(e,r),r}return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return br(e.content,t);case 4:return e.constType;case 8:let a=3;for(let n=0;n<e.children.length;n++){const r=e.children[n];if((0,i.Kg)(r)||(0,i.Bm)(r))continue;const o=br(r,t);if(0===o)return 0;o<a&&(a=o)}return a;case 20:return 2}}const xr=new Set([xt,wt,kt,_t]);function wr(e,t){if(14===e.type&&!(0,i.Kg)(e.callee)&&xr.has(e.callee)){const n=e.arguments[0];if(4===n.type)return br(n,t);if(14===n.type)return wr(n,t)}return 0}function kr(e,t){let n=3;const r=_r(e);if(r&&15===r.type){const{properties:e}=r;for(let r=0;r<e.length;r++){const{key:o,value:i}=e[r],a=br(o,t);if(0===a)return a;let s;if(a<n&&(n=a),s=4===i.type?br(i,t):14===i.type?wr(i,t):0,0===s)return s;s<n&&(n=s)}}return n}function _r(e){const t=e.codegenNode;if(13===t.type)return t.props}function Er(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:o=!1,cacheHandlers:a=!1,nodeTransforms:s=[],directiveTransforms:l={},transformHoist:c=null,isBuiltInComponent:u=i.tE,isCustomElement:d=i.tE,expressionPlugins:p=[],scopeId:h=null,
2slotted:f=!0,ssr:m=!1,inSSR:g=!1,ssrCssVars:v="",bindingMetadata:y=i.MZ,inline:b=!1,isTS:x=!1,onError:w=sn,onWarn:k=ln,compatConfig:_}){const E=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),C={filename:t,selfName:E&&(0,i.ZH)((0,i.PT)(E[1])),prefixIdentifiers:n,hoistStatic:r,hmr:o,cacheHandlers:a,nodeTransforms:s,directiveTransforms:l,transformHoist:c,isBuiltInComponent:u,isCustomElement:d,expressionPlugins:p,scopeId:h,slotted:f,ssr:m,inSSR:g,ssrCssVars:v,bindingMetadata:y,inline:b,isTS:x,onError:w,onWarn:k,compatConfig:_,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=C.helpers.get(e)||0;return C.helpers.set(e,t+1),e},removeHelper(e){const t=C.helpers.get(e);if(t){const n=t-1;n?C.helpers.set(e,n):C.helpers.delete(e)}},helperString:e=>`_${Lt[C.helper(e)]}`,replaceNode(e){C.parent.children[C.childIndex]=C.currentNode=e},removeNode(e){const t=C.parent.children,n=e?t.indexOf(e):C.currentNode?C.childIndex:-1;e&&e!==C.currentNode?C.childIndex>n&&(C.childIndex--,C.onNodeRemoved()):(C.currentNode=null,C.onNodeRemoved()),C.parent.children.splice(n,1)},onNodeRemoved:i.tE,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){(0,i.Kg)(e)&&(e=Ft(e)),C.hoists.push(e);const t=Ft(`_hoisted_${C.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){const r=function(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:It}}(C.cached.length,e,t,n);return C.cached.push(r),r}};return C.filters=new Set,C}function Cr(e,t){const n=Er(e,t);Nr(e,n),t.hoistStatic&&gr(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:r}=e;if(1===r.length){const n=r[0];if(vr(e,n)&&n.codegenNode){const r=n.codegenNode;13===r.type&&Kt(r,t),e.codegenNode=r}else e.codegenNode=n}else if(r.length>1){let r=64;0,e.codegenNode=jt(t,n(Xe),void 0,e.children,r,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function Nr(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let o=0;o<n.length;o++){const a=n[o](e,t);if(a&&((0,i.cy)(a)?r.push(...a):r.push(a)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(st);break;case 5:t.ssr||t.helper(yt);break;case 9:for(let n=0;n<e.branches.length;n++)Nr(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const o=e.children[n];(0,i.Kg)(o)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,Nr(o,t))}}(e,t)}t.currentNode=e;let o=r.length;for(;o--;)r[o]()}function Sr(e,t){const n=(0,i.Kg)(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:o}=e;if(3===e.tagType&&o.some(Cn))return;const i=[];for(let a=0;a<o.length;a++){const s=o[a];if(7===s.type&&n(s.name)){o.splice(a,1),a--;const n=t(e,s,r);n&&i.push(n)}}return i}}}const Vr="/*@__PURE__*/",Ar=e=>`${Lt[e]}: _${Lt[e]}`;function Dr(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:o="template.vue.html",scopeId:i=null,optimizeImports:a=!1,runtimeGlobalName:s="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:i,optimizeImports:a,runtimeGlobalName:s,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${Lt[e]}`,push(e,t=-2,n){h.code+=e},indent(){f(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:f(--h.indentLevel)},newline(){f(h.indentLevel)}};function f(e){h.push("\n"+" ".repeat(e),0)}return h}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:i,indent:a,deindent:s,newline:l,scopeId:c,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,h=!i&&"module"!==r;!function(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:i,runtimeModuleName:a,runtimeGlobalName:s,ssrRuntimeModuleName:l}=t,c=s,u=Array.from(e.helpers);if(u.length>0&&(o(`const _Vue = ${c}\n`,-1),e.hoists.length)){o(`const { ${[it,at,st,lt,ct].filter((e=>u.includes(e))).map(Ar).join(", ")} } = _Vue\n`,-1)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let o=0;o<e.length;o++){const i=e[o];i&&(n(`const _hoisted_${o+1} = `),Or(i,t),r())}t.pure=!1})(e.hoists,t),i(),o("return ")}(e,n);if(o(`function ${u?"ssrRender":"render"}(${(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),a(),h&&(o("with (_ctx) {"),a(),p&&(o(`const { ${d.map(Ar).join(", ")} } = _Vue\n`,-1),l())),e.components.length&&(Mr(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(Mr(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),Mr(e.filters,"filter",n),l()),e.temps>0){o("let ");for(let t=0;t<e.temps;t++)o(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(o("\n",0),l()),u||o("return "),e.codegenNode?Or(e.codegenNode,n):o("null"),h&&(s(),o("}")),s(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Mr(e,t,{helper:n,push:r,newline:o,isTS:i}){const a=n("filter"===t?ht:"component"===t?ut:pt);for(let n=0;n<e.length;n++){let s=e[n];const l=s.endsWith("__self");l&&(s=s.slice(0,-6)),r(`const ${Tn(s,t)} = ${a}(${JSON.stringify(s)}${l?", true":""})${i?"!":""}`),n<e.length-1&&o()}}function Tr(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Br(e,t,n),n&&t.deindent(),t.push("]")}function Br(e,t,n=!1,r=!0){const{push:o,newline:a}=t;for(let s=0;s<e.length;s++){const l=e[s];(0,i.Kg)(l)?o(l,-3):(0,i.cy)(l)?Tr(l,t):Or(l,t),s<e.length-1&&(n?(r&&o(","),a()):r&&o(", "))}}function Or(e,t){if((0,i.Kg)(e))t.push(e,-3);else if((0,i.Bm)(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:case 12:Or(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),-3,e)}(e,t);break;case 4:Pr(e,t);break;case 5:!function(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Vr);n(`${r(yt)}(`),Or(e.content,t),n(")")}(e,t);break;case 8:Lr(e,t);break;case 3:!function(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Vr);n(`${r(st)}(${JSON.stringify(e.content)})`,-3,e)}(e,t);break;case 13:!function(e,t){const{push:n,helper:r,pure:o}=t,{tag:i,props:a,children:s,patchFlag:l,dynamicProps:c,directives:u,isBlock:d,disableTracking:p,isComponent:h}=e;let f;l&&(f=String(l));u&&n(r(ft)+"(");d&&n(`(${r(nt)}(${p?"true":""}), `);o&&n(Vr);const m=d?Gt(t.inSSR,h):Yt(t.inSSR,h);n(r(m)+"(",-2,e),Br(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map((e=>e||"null"))}([i,a,s,f,c]),t),n(")"),d&&n(")");u&&(n(", "),Or(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:r,pure:o}=t,a=(0,i.Kg)(e.callee)?e.callee:r(e.callee);o&&n(Vr);n(a+"(",-2,e),Br(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:r,deindent:o,newline:i}=t,{properties:a}=e;if(!a.length)return void n("{}",-2,e);const s=a.length>1||!1;n(s?"{":"{ "),s&&r();for(let e=0;e<a.length;e++){const{key:r,value:o}=a[e];Ir(r,t),n(": "),Or(o,t),e<a.length-1&&(n(","),i())}s&&o(),n(s?"}":" }")}(e,t);break;case 17:!function(e,t){Tr(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:r,deindent:o}=t,{params:a,returns:s,body:l,newline:c,isSlot:u}=e;u&&n(`_${Lt[Mt]}(`);n("(",-2,e),(0,i.cy)(a)?Br(a,t):a&&Or(a,t);n(") => "),(c||l)&&(n("{"),r());s?(c&&n("return "),(0,i.cy)(s)?Tr(s,t):Or(s,t)):l&&Or(l,t);(c||l)&&(o(),n("}"));u&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:r,alternate:o,newline:i}=e,{push:a,indent:s,deindent:l,newline:c}=t;if(4===n.type){const e=!hn(n.content);e&&a("("),Pr(n,t),e&&a(")")}else a("("),Or(n,t),a(")");i&&s(),t.indentLevel++,i||a(" "),a("? "),Or(r,t),t.indentLevel--,i&&c(),i||a(" "),a(": ");const u=19===o.type;u||t.indentLevel++;Or(o,t),u||t.indentLevel--;i&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:r,indent:o,deindent:i,newline:a}=t,{needPauseTracking:s,needArraySpread:l}=e;l&&n("[...(");n(`_cache[${e.index}] || (`),s&&(o(),n(`${r(Vt)}(-1`),e.inVOnce&&n(", true"),n("),"),a(),n("("));n(`_cache[${e.index}] = `),Or(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),a(),n(`${r(Vt)}(1),`),a(),n(`_cache[${e.index}]`),i());n(")"),l&&n(")]")}(e,t);break;case 21:Br(e.body,t,!0,!1)}}function Pr(e,t){const{content:n,isStatic:r}=e;
2t.push(r?JSON.stringify(n):n,-3,e)}function Lr(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];(0,i.Kg)(r)?t.push(r,-3):Or(r,t)}}function Ir(e,t){const{push:n}=t;if(8===e.type)n("["),Lr(e,t),n("]");else if(e.isStatic){n(hn(e.content)?e.content:JSON.stringify(e.content),-2,e)}else n(`[${e.content}]`,-3,e)}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const jr=Sr(/^(if|else|else-if)$/,((e,t,n)=>function(e,t,n,r){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(cn(28,t.loc)),t.exp=Ft("true",!1,r)}0;if("if"===t.name){const o=Rr(e,t),i={type:9,loc:ur(e.loc),branches:[o]};if(n.replaceNode(i),r)return r(i,o,!0)}else{const o=n.parent.children;let i=o.indexOf(e);for(;i-- >=-1;){const a=o[i];if(a&&3===a.type)n.removeNode(a);else{if(!a||2!==a.type||a.content.trim().length){if(a&&9===a.type){"else-if"===t.name&&void 0===a.branches[a.branches.length-1].condition&&n.onError(cn(30,e.loc)),n.removeNode();const o=Rr(e,t);0,a.branches.push(o);const i=r&&r(a,o,!1);Nr(o,n),i&&i(),n.currentNode=null}else n.onError(cn(30,e.loc));break}n.removeNode(a)}}}}(e,t,n,((e,t,r)=>{const o=n.parent.children;let i=o.indexOf(e),a=0;for(;i-- >=0;){const e=o[i];e&&9===e.type&&(a+=e.branches.length)}return()=>{if(r)e.codegenNode=$r(t,a,n);else{const r=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);r.alternate=$r(t,a+e.branches.length-1,n)}}}))));function Rr(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!wn(e,"for")?e.children:[e],userKey:kn(e,"key"),isTemplateIf:n}}function $r(e,t,n){return e.condition?qt(e.condition,zr(e,t,n),Ut(n.helper(st),['""',"true"])):zr(e,t,n)}function zr(e,t,n){const{helper:r}=n,o=zt("key",Ft(`${t}`,!1,It,2)),{children:i}=e,a=i[0];if(1!==i.length||1!==a.type){if(1===i.length&&11===a.type){const e=a.codegenNode;return Dn(e,o,n),e}{let t=64;return jt(n,r(Xe),$t([o]),i,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=a.codegenNode,t=14===(s=e).type&&s.callee===Ot?s.arguments[1].returns:s;return 13===t.type&&Kt(t,n),Dn(t,o,n),e}var s}const Fr=(e,t,n)=>{const{modifiers:r,loc:o}=e,a=e.arg;let{exp:s}=e;if(s&&4===s.type&&!s.content.trim()&&(s=void 0),!s){if(4!==a.type||!a.isStatic)return n.onError(cn(52,a.loc)),{props:[zt(a,Ft("",!0,o))]};Hr(e),s=e.exp}return 4!==a.type?(a.children.unshift("("),a.children.push(') || ""')):a.isStatic||(a.content=`${a.content} || ""`),r.some((e=>"camel"===e.content))&&(4===a.type?a.isStatic?a.content=(0,i.PT)(a.content):a.content=`${n.helperString(Ct)}(${a.content})`:(a.children.unshift(`${n.helperString(Ct)}(`),a.children.push(")"))),n.inSSR||(r.some((e=>"prop"===e.content))&&Ur(a,"."),r.some((e=>"attr"===e.content))&&Ur(a,"^")),{props:[zt(a,s)]}},Hr=(e,t)=>{const n=e.arg,r=(0,i.PT)(n.content);e.exp=Ft(r,!1,n.loc)},Ur=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Wr=Sr("for",((e,t,n)=>{const{helper:r,removeHelper:o}=n;return function(e,t,n,r){if(!t.exp)return void n.onError(cn(31,t.loc));const o=t.forParseResult;if(!o)return void n.onError(cn(32,t.loc));qr(o,n);const{addIdentifiers:i,removeIdentifiers:a,scopes:s}=n,{source:l,value:c,key:u,index:d}=o,p={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:u,objectIndexAlias:d,parseResult:o,children:Nn(e)?e.children:[e]};n.replaceNode(p),s.vFor++;const h=r&&r(p);return()=>{s.vFor--,h&&h()}}(e,t,n,(t=>{const i=Ut(r(mt),[t.source]),a=Nn(e),s=wn(e,"memo"),l=kn(e,"key",!1,!0);l&&7===l.type&&!l.exp&&Hr(l);let c=l&&(6===l.type?l.value?Ft(l.value.content,!0):void 0:l.exp);const u=l&&c?zt("key",c):null,d=4===t.source.type&&t.source.constType>0,p=d?64:l?128:256;return t.codegenNode=jt(n,r(Xe),void 0,i,p,void 0,void 0,!0,!d,!1,e.loc),()=>{let l;const{children:p}=t;const h=1!==p.length||1!==p[0].type,f=Sn(e)?e:a&&1===e.children.length&&Sn(e.children[0])?e.children[0]:null;if(f?(l=f.codegenNode,a&&u&&Dn(l,u,n)):h?l=jt(n,r(Xe),u?$t([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(l=p[0].codegenNode,a&&u&&Dn(l,u,n),l.isBlock!==!d&&(l.isBlock?(o(nt),o(Gt(n.inSSR,l.isComponent))):o(Yt(n.inSSR,l.isComponent))),l.isBlock=!d,l.isBlock?(r(nt),r(Gt(n.inSSR,l.isComponent))):r(Yt(n.inSSR,l.isComponent))),s){const e=Wt(Yr(t.parseResult,[Ft("_cached")]));e.body={type:21,body:[Ht(["const _memo = (",s.exp,")"]),Ht(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(Pt)}(_cached, _memo)) return _cached`]),Ht(["const _item = ",l]),Ft("_item.memo = _memo"),Ft("return _item")],loc:It},i.arguments.push(e,Ft("_cache"),Ft(String(n.cached.length))),n.cached.push(null)}else i.arguments.push(Wt(Yr(t.parseResult),l,!0))}}))}));function qr(e,t){e.finalized||(e.finalized=!0)}function Yr({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||Ft("_".repeat(t+1),!1)))}([e,t,n,...r])}const Gr=Ft("undefined",!1),Kr=(e,t)=>
2{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=wn(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Jr=(e,t,n,r)=>Wt(e,n,!1,!0,n.length?n[0].loc:r);function Xr(e,t,n=Jr){t.helper(Mt);const{children:r,loc:o}=e,i=[],a=[];let s=t.scopes.vSlot>0||t.scopes.vFor>0;const l=wn(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!un(e)&&(s=!0),i.push(zt(e||Ft("default",!0),n(t,void 0,r,o)))}let c=!1,u=!1;const d=[],p=new Set;let h=0;for(let e=0;e<r.length;e++){const o=r[e];let f;if(!Nn(o)||!(f=wn(o,"slot",!0))){3!==o.type&&d.push(o);continue}if(l){t.onError(cn(37,f.loc));break}c=!0;const{children:m,loc:g}=o,{arg:v=Ft("default",!0),exp:y,loc:b}=f;let x;un(v)?x=v?v.content:"default":s=!0;const w=wn(o,"for"),k=n(y,w,m,g);let _,E;if(_=wn(o,"if"))s=!0,a.push(qt(_.exp,Zr(v,k,h++),Gr));else if(E=wn(o,/^else(-if)?$/,!0)){let n,o=e;for(;o--&&(n=r[o],3===n.type););if(n&&Nn(n)&&wn(n,/^(else-)?if$/)){let e=a[a.length-1];for(;19===e.alternate.type;)e=e.alternate;e.alternate=E.exp?qt(E.exp,Zr(v,k,h++),Gr):Zr(v,k,h++)}else t.onError(cn(30,E.loc))}else if(w){s=!0;const e=w.forParseResult;e?(qr(e),a.push(Ut(t.helper(mt),[e.source,Wt(Yr(e),Zr(v,k),!0)]))):t.onError(cn(32,w.loc))}else{if(x){if(p.has(x)){t.onError(cn(38,b));continue}p.add(x),"default"===x&&(u=!0)}i.push(zt(v,k))}}if(!l){const e=(e,r)=>{const i=n(e,void 0,r,o);return t.compatConfig&&(i.isNonScopedSlot=!0),zt("default",i)};c?d.length&&d.some((e=>eo(e)))&&(u?t.onError(cn(39,d[0].loc)):i.push(e(void 0,d))):i.push(e(void 0,r))}const f=s?2:Qr(e.children)?3:1;let m=$t(i.concat(zt("_",Ft(f+"",!1))),o);return a.length&&(m=Ut(t.helper(vt),[m,Rt(a)])),{slots:m,hasDynamicSlots:s}}function Zr(e,t,n){const r=[zt("name",e),zt("fn",t)];return null!=n&&r.push(zt("key",Ft(String(n),!0))),$t(r)}function Qr(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||Qr(n.children))return!0;break;case 9:if(Qr(n.branches))return!0;break;case 10:case 11:if(Qr(n.children))return!0}}return!1}function eo(e){return 2!==e.type&&12!==e.type||(2===e.type?!!e.content.trim():eo(e.content))}const to=new WeakMap,no=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:r}=e,o=1===e.tagType;let a=o?function(e,t,n=!1){let{tag:r}=e;const o=ao(r),i=kn(e,"is",!1,!0);if(i)if(o||on("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===i.type?e=i.value&&Ft(i.value.content,!0):(e=i.exp,e||(e=Ft("is",!1,i.arg.loc))),e)return Ut(t.helper(dt),[e])}else 6===i.type&&i.value.content.startsWith("vue:")&&(r=i.value.content.slice(4));const a=dn(r)||t.isBuiltInComponent(r);if(a)return n||t.helper(a),a;return t.helper(ut),t.components.add(r),Tn(r,"component")}(e,t):`"${n}"`;const s=(0,i.Gv)(a)&&a.callee===dt;let l,c,u,d,p,h=0,f=s||a===Ze||a===Qe||!o&&("svg"===n||"foreignObject"===n||"math"===n);if(r.length>0){const n=ro(e,t,void 0,o,s);l=n.props,h=n.patchFlag,d=n.dynamicPropNames;const r=n.directives;p=r&&r.length?Rt(r.map((e=>function(e,t){const n=[],r=to.get(e);r?n.push(t.helperString(r)):(t.helper(pt),t.directives.add(e.name),n.push(Tn(e.name,"directive")));const{loc:o}=e;e.exp&&n.push(e.exp);e.arg&&(e.exp||n.push("void 0"),n.push(e.arg));if(Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Ft("true",!1,o);n.push($t(e.modifiers.map((e=>zt(e,t))),o))}return Rt(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(f=!0)}if(e.children.length>0){a===et&&(f=!0,h|=1024);if(o&&a!==Ze&&a!==et){const{slots:n,hasDynamicSlots:r}=Xr(e,t);c=n,r&&(h|=1024)}else if(1===e.children.length&&a!==Ze){const n=e.children[0],r=n.type,o=5===r||8===r;o&&0===br(n,t)&&(h|=1),c=o||2===r?n:e.children}else c=e.children}d&&d.length&&(u=function(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}(d)),e.codegenNode=jt(t,a,l,c,0===h?void 0:h,u,p,!!f,!1,o,e.loc)};function ro(e,t,n=e.props,r,o,a=!1){const{tag:s,loc:l,children:c}=e;let u=[];const d=[],p=[],h=c.length>0;let f=!1,m=0,g=!1,v=!1,y=!1,b=!1,x=!1,w=!1;const k=[],_=e=>{u.length&&(d.push($t(oo(u),l)),u=[]),e&&d.push(e)},E=()=>{t.scopes.vFor>0&&u.push(zt(Ft("ref_for",!0),Ft("true")))},C=({key:e,value:n})=>
vendor: 5,594 bytes, line 2
2{if(un(e)){const a=e.content,s=(0,i.Mp)(a);if(!s||r&&!o||"onclick"===a.toLowerCase()||"onUpdate:modelValue"===a||(0,i.SU)(a)||(b=!0),s&&(0,i.SU)(a)&&(w=!0),s&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&br(n,t)>0)return;"ref"===a?g=!0:"class"===a?v=!0:"style"===a?y=!0:"key"===a||k.includes(a)||k.push(a),!r||"class"!==a&&"style"!==a||k.includes(a)||k.push(a)}else x=!0};for(let o=0;o<n.length;o++){const c=n[o];if(6===c.type){const{loc:e,name:n,nameLoc:r,value:o}=c;let i=!0;if("ref"===n&&(g=!0,E()),"is"===n&&(ao(s)||o&&o.content.startsWith("vue:")||on("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(zt(Ft(n,!0,r),Ft(o?o.content:"",i,o?o.loc:e)))}else{const{name:n,arg:o,exp:g,loc:v,modifiers:y}=c,b="bind"===n,w="on"===n;if("slot"===n){r||t.onError(cn(40,v));continue}if("once"===n||"memo"===n)continue;if("is"===n||b&&_n(o,"is")&&(ao(s)||on("COMPILER_IS_ON_ELEMENT",t)))continue;if(w&&a)continue;if((b&&_n(o,"key")||w&&h&&_n(o,"vue:before-update"))&&(f=!0),b&&_n(o,"ref")&&E(),!o&&(b||w)){if(x=!0,g)if(b){if(E(),_(),on("COMPILER_V_BIND_OBJECT_ORDER",t)){d.unshift(g);continue}d.push(g)}else _({type:14,loc:v,callee:t.helper(Et),arguments:r?[g]:[g,"true"]});else t.onError(cn(b?34:35,v));continue}b&&y.some((e=>"prop"===e.content))&&(m|=32);const k=t.directiveTransforms[n];if(k){const{props:n,needRuntime:r}=k(c,e,t);!a&&n.forEach(C),w&&o&&!un(o)?_($t(n,l)):u.push(...n),r&&(p.push(c),(0,i.Bm)(r)&&to.set(c,r))}else(0,i.lk)(n)||(p.push(c),h&&(f=!0))}}let N;if(d.length?(_(),N=d.length>1?Ut(t.helper(bt),d,l):d[0]):u.length&&(N=$t(oo(u),l)),x?m|=16:(v&&!r&&(m|=2),y&&!r&&(m|=4),k.length&&(m|=8),b&&(m|=32)),f||0!==m&&32!==m||!(g||w||p.length>0)||(m|=512),!t.inSSR&&N)switch(N.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<N.properties.length;t++){const o=N.properties[t].key;un(o)?"class"===o.content?e=t:"style"===o.content&&(n=t):o.isHandlerKey||(r=!0)}const o=N.properties[e],i=N.properties[n];r?N=Ut(t.helper(kt),[N]):(o&&!un(o.value)&&(o.value=Ut(t.helper(xt),[o.value])),i&&(y||4===i.value.type&&"["===i.value.content.trim()[0]||17===i.value.type)&&(i.value=Ut(t.helper(wt),[i.value])));break;case 14:break;default:N=Ut(t.helper(kt),[Ut(t.helper(_t),[N])])}return{props:N,directives:p,patchFlag:m,dynamicPropNames:k,shouldUseBlock:f}}function oo(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const o=e[r];if(8===o.key.type||!o.key.isStatic){n.push(o);continue}const a=o.key.content,s=t.get(a);s?("style"===a||"class"===a||(0,i.Mp)(a))&&io(s,o):(t.set(a,o),n.push(o))}return n}function io(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=Rt([e.value,t.value],e.loc)}function ao(e){return"component"===e||"Component"===e}const so=(e,t)=>{if(Sn(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:a}=function(e,t){let n,r='"default"';const o=[];for(let t=0;t<e.props.length;t++){const n=e.props[t];if(6===n.type)n.value&&("name"===n.name?r=JSON.stringify(n.value.content):(n.name=(0,i.PT)(n.name),o.push(n)));else if("bind"===n.name&&_n(n.arg,"name")){if(n.exp)r=n.exp;else if(n.arg&&4===n.arg.type){const e=(0,i.PT)(n.arg.content);r=n.exp=Ft(e,!1,n.arg.loc)}}else"bind"===n.name&&n.arg&&un(n.arg)&&(n.arg.content=(0,i.PT)(n.arg.content)),o.push(n)}if(o.length>0){const{props:r,directives:i}=ro(e,t,o,!1,!1);n=r,i.length&&t.onError(cn(36,i[0].loc))}return{slotName:r,slotProps:n}}(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let l=2;a&&(s[2]=a,l=3),n.length&&(s[3]=Wt([],n,!1,!1,r),l=4),t.scopeId&&!t.slotted&&(l=5),s.splice(l),e.codegenNode=Ut(t.helper(gt),s,r)}};const lo=(e,t,n,r)=>{const{loc:o,modifiers:a,arg:s}=e;let l;if(e.exp||a.length||n.onError(cn(35,o)),4===s.type)if(s.isStatic){let e=s.content;0,e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`);l=Ft(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?(0,i.rU)((0,i.PT)(e)):`on:${e}`,!0,s.loc)}else l=Ht([`${n.helperString(St)}(`,s,")"]);else l=s,l.children.unshift(`${n.helperString(St)}(`),l.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let u=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const e=yn(c),t=!(e||xn(c)),n=c.content.includes(";");0,(t||u&&e)&&(c=Ht([`${t?"$event":"(...args)"} => ${n?"{":"("}`,c,n?"}":")"]))}let d={props:[zt(l,c||Ft("() => {}",!1,o))]};return r&&(d=r(d)),u&&(d.props[0].value=n.cache(d.props[0].value)),d.props.forEach((e=>e.key.isHandlerKey=!0)),d},co=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,o=!1;for(let e=0;e<n.length;e++){const t=n[e];if(En(t)){o=!0;for(let o=e+1;o<n.length;o++){const i=n[o];if(!En(i)){r=void 0;break}r||(r=n[e]=Ht([t],t.loc)),r.children.push(" + ",i),n.splice(o,1),o--}}}if(o&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find((e=>7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e<n.length;e++){const r=n[e];if(En(r)||8===r.type){const o=[];2===r.type&&" "===r.content||o.push(r),t.ssr||0!==br(r,t)||o.push("1"),n[e]={type:12,content:r,loc:r.loc,codegenNode:Ut(t.helper(lt),o)}}}}},uo=new WeakSet,po=(e,t)=>{if(1===e.type&&wn(e,"once",!0)){if(uo.has(e)||t.inVOnce||t.inSSR)return;return uo.add(e),t.inVOnce=!0,t.helper(Vt),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0,!0))}}},ho=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(cn(41,e.loc)),fo();const a=r.loc.source.trim(),s=4===r.type?r.content:a,l=n.bindingMetadata[a];if("props"===l||"props-aliased"===l)return n.onError(cn(44,r.loc)),fo();if(!s.trim()||!yn(r))return n.onError(cn(42,r.loc)),fo();const c=o||Ft("modelValue",!0),u=o?un(o)?`onUpdate:${(0,i.PT)(o.c
2ontent)}`:Ht(['"onUpdate:" + ',o]):"onUpdate:modelValue";let d;d=Ht([`${n.isTS?"($event: any)":"$event"} => ((`,r,") = $event)"]);const p=[zt(c,e.exp),zt(u,d)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>e.content)).map((e=>(hn(e)?e:JSON.stringify(e))+": true")).join(", "),n=o?un(o)?`${o.content}Modifiers`:Ht([o,' + "Modifiers"']):"modelModifiers";p.push(zt(n,Ft(`{ ${t} }`,!1,e.loc,2)))}return fo(p)};function fo(e=[]){return{props:e}}const mo=/[\w).+\-_$\]]/,go=(e,t)=>{on("COMPILER_FILTERS",t)&&(5===e.type?vo(e.content,t):1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&vo(e.exp,t)})))};function vo(e,t){if(4===e.type)yo(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];"object"==typeof r&&(4===r.type?yo(r,t):8===r.type?vo(e,t):5===r.type&&vo(r.content,t))}}function yo(e,t){const n=e.content;let r,o,i,a,s=!1,l=!1,c=!1,u=!1,d=0,p=0,h=0,f=0,m=[];for(i=0;i<n.length;i++)if(o=r,r=n.charCodeAt(i),s)39===r&&92!==o&&(s=!1);else if(l)34===r&&92!==o&&(l=!1);else if(c)96===r&&92!==o&&(c=!1);else if(u)47===r&&92!==o&&(u=!1);else if(124!==r||124===n.charCodeAt(i+1)||124===n.charCodeAt(i-1)||d||p||h){switch(r){case 34:l=!0;break;case 39:s=!0;break;case 96:c=!0;break;case 40:h++;break;case 41:h--;break;case 91:p++;break;case 93:p--;break;case 123:d++;break;case 125:d--}if(47===r){let e,t=i-1;for(;t>=0&&(e=n.charAt(t)," "===e);t--);e&&mo.test(e)||(u=!0)}}else void 0===a?(f=i+1,a=n.slice(0,i).trim()):g();function g(){m.push(n.slice(f,i).trim()),f=i+1}if(void 0===a?a=n.slice(0,i).trim():0!==f&&g(),m.length){for(i=0;i<m.length;i++)a=bo(a,m[i],t);e.content=a,e.ast=void 0}}function bo(e,t,n){n.helper(ht);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${Tn(t,"filter")}(${e})`;{const o=t.slice(0,r),i=t.slice(r+1);return n.filters.add(o),`${Tn(o,"filter")}(${e}${")"!==i?","+i:i}`}}const xo=new WeakSet,wo=(e,t)=>{if(1===e.type){const n=wn(e,"memo");if(!n||xo.has(e))return;return xo.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&Kt(r,t),e.codegenNode=Ut(t.helper(Ot),[n.exp,Wt(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))}}};function ko(e,t={}){const n=t.onError||sn,r="module"===t.mode;!0===t.prefixIdentifiers?n(cn(47)):r&&n(cn(48));t.cacheHandlers&&n(cn(49)),t.scopeId&&!r&&n(cn(50));const o=(0,i.X$)({},t,{prefixIdentifiers:!1}),a=(0,i.Kg)(e)?mr(e,o):e,[s,l]=[[po,jr,wo,Wr,go,so,no,Kr,co],{on:lo,bind:Fr,model:ho}];return Cr(a,(0,i.X$)({},o,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:(0,i.X$)({},l,t.directiveTransforms||{})})),Dr(a,o)}const _o=Symbol(""),Eo=Symbol(""),Co=Symbol(""),No=Symbol(""),So=Symbol(""),Vo=Symbol(""),Ao=Symbol(""),Do=Symbol(""),Mo=Symbol(""),To=Symbol("");var Bo;let Oo;Bo={[_o]:"vModelRadio",[Eo]:"vModelCheckbox",[Co]:"vModelText",[No]:"vModelSelect",[So]:"vModelDynamic",[Vo]:"withModifiers",[Ao]:"withKeys",[Do]:"vShow",[Mo]:"Transition",[To]:"TransitionGroup"},Object.getOwnPropertySymbols(Bo).forEach((e=>{Lt[e]=Bo[e]}));const Po={parseMode:"html",isVoidTag:i.BU,isNativeTag:e=>(0,i.OC)(e)||(0,i.nC)(e)||(0,i.Sf)(e),isPreTag:e=>"pre"===e,isIgnoreNewlineTag:e=>"pre"===e||"textarea"===e,decodeEntities:function(e,t=!1){return Oo||(Oo=document.createElement("div")),t?(Oo.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,Oo.children[0].getAttribute("foo")):(Oo.innerHTML=e,Oo.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?Mo:"TransitionGroup"===e||"transition-group"===e?To:void 0,getNamespace(e,t,n){let r=t?t.ns:n;if(t&&2===r)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0);else t&&1===r&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(r=0));if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r}},Lo=(e,t)=>{const n=(0,i.Gx)(e);return Ft(JSON.stringify(n),!1,t,3)};function Io(e,t){return cn(e,t)}const jo=(0,i.pD)("passive,once,capture"),Ro=(0,i.pD)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),$o=(0,i.pD)("left,right"),zo=(0,i.pD)("onkeyup,onkeydown,onkeypress"),Fo=(e,t)=>un(e)&&"onclick"===e.content.toLowerCase()?Ft(t,!0):4!==e.type?Ht(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e;const Ho=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()};const Uo=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Ft("style",!0,t.loc),exp:Lo(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Wo={cloak:()=>({props:[]}
2),html:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Io(53,o)),t.children.length&&(n.onError(Io(54,o)),t.children.length=0),{props:[zt(Ft("innerHTML",!0,o),r||Ft("",!0))]}},text:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Io(55,o)),t.children.length&&(n.onError(Io(56,o)),t.children.length=0),{props:[zt(Ft("textContent",!0),r?br(r,n)>0?r:Ut(n.helperString(yt),[r],o):Ft("",!0))]}},model:(e,t,n)=>{const r=ho(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(Io(58,e.arg.loc));const{tag:o}=t,i=n.isCustomElement(o);if("input"===o||"textarea"===o||"select"===o||i){let a=Co,s=!1;if("input"===o||i){const r=kn(t,"type");if(r){if(7===r.type)a=So;else if(r.value)switch(r.value.content){case"radio":a=_o;break;case"checkbox":a=Eo;break;case"file":s=!0,n.onError(Io(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(a=So)}else"select"===o&&(a=No);s||(r.needRuntime=n.helper(a))}else n.onError(Io(57,e.loc));return r.props=r.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),r},on:(e,t,n)=>lo(e,t,n,(t=>{const{modifiers:r}=e;if(!r.length)return t;let{key:o,value:a}=t.props[0];const{keyModifiers:s,nonKeyModifiers:l,eventOptionModifiers:c}=((e,t,n)=>{const r=[],o=[],i=[];for(let a=0;a<t.length;a++){const s=t[a].content;"native"===s&&an("COMPILER_V_ON_NATIVE",n)||jo(s)?i.push(s):$o(s)?un(e)?zo(e.content.toLowerCase())?r.push(s):o.push(s):(r.push(s),o.push(s)):Ro(s)?o.push(s):r.push(s)}return{keyModifiers:r,nonKeyModifiers:o,eventOptionModifiers:i}})(o,r,n,e.loc);if(l.includes("right")&&(o=Fo(o,"onContextmenu")),l.includes("middle")&&(o=Fo(o,"onMouseup")),l.length&&(a=Ut(n.helper(Vo),[a,JSON.stringify(l)])),!s.length||un(o)&&!zo(o.content.toLowerCase())||(a=Ut(n.helper(Ao),[a,JSON.stringify(s)])),c.length){const e=c.map(i.ZH).join("");o=un(o)?Ft(`${o.content}${e}`,!0):Ht(["(",o,`) + "${e}"`])}return{props:[zt(o,a)]}})),show:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Io(61,o)),{props:[],needRuntime:n.helper(Do)}}};const qo=Object.create(null);function Yo(e,t){if(!(0,i.Kg)(e)){if(!e.nodeType)return i.tE;e=e.innerHTML}const n=(0,i.eW)(e,t),o=qo[n];if(o)return o;if("#"===e[0]){const t=document.querySelector(e);0,e=t?t.innerHTML:""}const a=(0,i.X$)({hoistStatic:!0,onError:void 0,onWarn:i.tE},t);a.isCustomElement||"undefined"==typeof customElements||(a.isCustomElement=e=>!!customElements.get(e));const{code:s}=function(e,t={}){return ko(e,(0,i.X$)({},Po,t,{nodeTransforms:[Ho,...Uo,...t.nodeTransforms||[]],directiveTransforms:(0,i.X$)({},Wo,t.directiveTransforms||{}),transformHoist:null}))}(e,a);const l=new Function("Vue",s)(r);return l._rc=!0,qo[n]=l}(0,o.tC)(Yo)},6312:function(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}e=n.nmd(e),function(t,n){"use strict";"object"!==r(e)||"object"!==r(e.exports)?n(t):e.exports=t.document?n(t):function(e){if(!e.document)throw new Error("jscolor needs a window with document");return n(e)}}("undefined"!=typeof window?window:this,(function(e){"use strict";var t,n,o,i,a=(i={initialized:!1,instances:[],readyQueue:[],register:function(){void 0!==e&&e.document&&e.document.addEventListener("DOMContentLoaded",i.pub.init,!1)},installBySelector:function(t,n){if(!(n=n?i.node(n):e.document))throw new Error("Missing root node");for(var r=n.querySelectorAll(t),o=new RegExp("(^|\\s)("+i.pub.lookupClass+")(\\s*(\\{[^}]*\\})|\\s|$)","i"),a=0;a<r.length;a+=1){var s,l;if(!(r[a].jscolor&&r[a].jscolor instanceof i.pub)&&(void 0===r[a].type||"color"!=r[a].type.toLowerCase()||!i.isColorAttrSupported)&&(null!==(s=i.getDataAttr(r[a],"jscolor"))||r[a].className&&(l=r[a].className.match(o)))){var c=r[a],u="";null!==s?u=s:l&&(console.warn('Installation using class name is DEPRECATED. Use data-jscolor="" attribute instead.'+i.docsRef),l[4]&&(u=l[4]));var d=null;if(u.trim())try{d=i.parseOptionsStr(u)}catch(e){console.warn(e+"\n"+u)}try{new i.pub(c,d)}catch(e){console.warn(e)}}}},parseOptionsStr:function(e){var t=null;try{t=JSON.parse(e)}catch(n){if(!i.pub.looseJSON)throw new Error("Could not parse jscolor options as JSON: "+n);try{t=new Function("var opts = ("+e+'); return typeof opts === "object" ? opts : {};')()}catch(e){throw new Error("Could not evaluate jscolor options: "+e)}}return t},getInstances:function(){for(var e=[],t=0;t<i.instances.length;t+=1)i.instances[t]&&i.instances[t].targetElement&&e.push(i.instances[t]);return e},createEl:function(t){var n=e.document.createElement(t);return i.setData(n,"gui",!0),n},node:function(t){if(!t)return null;if("string"==typeof t){var n=t,o=null;try{o=e.document.querySelector(n)}catch(e){return console.warn(e),null}return o||console.warn("No element matches the selector: %s",n),o}return i.isNode(t)?t:(console.warn("Invalid node of type %s: %s",r(t),t),null)},isNode:function(e){return"object"===("undefined"==typeof Node?"undefined":r(Node))?e instanceof Node:e&&"object"===r(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},nodeName:function(e){return!(!e||!e.nodeName)&&e.nodeName.toLowerCase()},removeChildren:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},isTextInput:function(e){return e&&"input"===i.nodeName(e)&&"text"===e.type.toLowerCase()},isButton:function(e){if(!e)return!1;var t=i.nodeName(e);return"button"===t||"input"===t&&["button","submit","reset"].indexOf(e.type.toLowerCase())>-1},isButtonEmpty:function(e){switch(i.nodeName(e)){case"input":return!e.value||""===e.value.trim();case"button":return""===e.textContent.trim()}return null},isPassiveEventSupported:function(){var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassive",null,n),e.removeEventListener("testPassive",null,n)}catch(e){}return t}(),isColorAttrSupported:(o=e.document.createElement("input"),!(!o.setAttribute||(o.setAttribute("type","color"),"color"!=o.type.toLowerCase()))),dataProp:"_data_jscolor",setData:function(){var e=arguments[0];if(3===arguments.length){var t=e.hasOwnProperty(i.dataProp)?e[i.dataProp]:e[i.dataProp]={},n=arguments[2];return t[a=arguments[1]]=n,!0}if(2===arguments.length&&"object"===r(arguments[1])){t=e.hasOwnProperty(i.dataProp)?e[i.dataProp]:e[i.dataProp]={};var o=arguments[1];for(var a in o)o.hasOwnProperty(a)&&(t[a]=o[a]);return!0}throw new Error("Invalid arguments")},removeData:function(){var e=arguments[0];if(!e.hasOwnProperty(i.dataProp))return!0;for(var t=1;t<arguments.length;t+=1){var n=arguments[t];delete e[i.dataProp][n]}return!0},getData:function(e,t,n){if(!e.hasOwnProperty(i.dataProp)){if(void 0===n)return;e[i.dataProp]={}}var r=e[i.dataProp];return r.hasOwnProperty(t)||void 0===n||(r[t]=n),r[t]},getDataAttr:function(e,t){var n="data-"+t;return e.getAttribute(n)},setDataAttr:function(e,t,n){var r="data-"+t;e.setAttribute(r,n)},_attachedGroupEvents:{},attachGroupEvent:function(e,t,n,r){i._attachedGroupEvents.hasOwnProperty(e)||(i._attachedGroupEvents[e]=[]),i._attachedGroupEvents[e].push([t,n,r]),t.addEventListener(n,r,!1)},detachGroupEvents:function(e){if(i._attachedGroupEvents.hasOwnProperty(e)){for(var t=0;t<i._attachedGroupEvents[e].length;t+=1){var n=i._attachedGroupEvents[e][t];n[0].removeEventListener(n[1],n[2],!1)}delete i._attachedGroupEvents[e]}},preventDefault:function(e){e.preventDefault&&e.preventDefault(),e.returnValue=!1},captureTarget:function(e){e.setCapture&&(i._capturedTarget=e,i._capturedTarget.setCapture())},releaseTarget:function(){i._capturedTarget&&(i._capturedTarget.releaseCapture(),i._capturedTarget=null)},triggerEvent:function(t,n,r,o){if(t){var a=null;return"function"==typeof Event?a=new Event(n,{bubbles:r,cancelable:o}):(a=e.document.createEvent("Event")).initEvent(n,r,o),!!a&&(i.setData(a,"internal",!0),t.dispatchEvent(a),!0)}},triggerInputEvent:function(e,t,n,r){e&&i.isTextInput(e)&&i.triggerEvent(e,t,n,r)},eventKey:function(e){var t={9:"Tab",13:"Enter",27:"Escape"};
2return"string"==typeof e.code?e.code:void 0!==e.keyCode&&t.hasOwnProperty(e.keyCode)?t[e.keyCode]:null},strList:function(e){return e?e.replace(/^\s+|\s+$/g,"").split(/\s+/):[]},hasClass:function(e,t){return!!t&&(void 0!==e.classList?e.classList.contains(t):-1!=(" "+e.className.replace(/\s+/g," ")+" ").indexOf(" "+t+" "))},addClass:function(e,t){var n=i.strList(t);if(void 0===e.classList)for(r=0;r<n.length;r+=1)i.hasClass(e,n[r])||(e.className+=(e.className?" ":"")+n[r]);else for(var r=0;r<n.length;r+=1)e.classList.add(n[r])},removeClass:function(e,t){var n=i.strList(t);if(void 0===e.classList)for(o=0;o<n.length;o+=1){var r=new RegExp("^\\s*"+n[o]+"\\s*|\\s*"+n[o]+"\\s*$|\\s+"+n[o]+"(\\s+)","g");e.className=e.className.replace(r,"$1")}else for(var o=0;o<n.length;o+=1)e.classList.remove(n[o])},getCompStyle:function(t){var n=e.getComputedStyle?e.getComputedStyle(t):t.currentStyle;return n||{}},setStyle:function(e,t,n,r){var o=n?"important":"",a=null;for(var s in t)if(t.hasOwnProperty(s)){var l=null;null===t[s]?(a||(a=i.getData(e,"origStyle")),a&&a.hasOwnProperty(s)&&(l=a[s])):(r&&(a||(a=i.getData(e,"origStyle",{})),a.hasOwnProperty(s)||(a[s]=e.style[s])),l=t[s]),null!==l&&e.style.setProperty(s,l,o)}},hexColor:function(e,t,n){return"#"+(("0"+Math.round(e).toString(16)).substr(-2)+("0"+Math.round(t).toString(16)).substr(-2)+("0"+Math.round(n).toString(16)).substr(-2)).toUpperCase()},hexaColor:function(e,t,n,r){return"#"+(("0"+Math.round(e).toString(16)).substr(-2)+("0"+Math.round(t).toString(16)).substr(-2)+("0"+Math.round(n).toString(16)).substr(-2)+("0"+Math.round(255*r).toString(16)).substr(-2)).toUpperCase()},rgbColor:function(e,t,n){return"rgb("+Math.round(e)+","+Math.round(t)+","+Math.round(n)+")"},rgbaColor:function(e,t,n,r){return"rgba("+Math.round(e)+","+Math.round(t)+","+Math.round(n)+","+Math.round(100*(null==r?1:r))/100+")"},linearGradient:(n=function(){for(var t="linear-gradient",n=["","-webkit-","-moz-","-o-","-ms-"],r=e.document.createElement("div"),o=0;o<n.length;o+=1){var i=n[o]+t,a=i+"(to right, rgba(0,0,0,0), rgba(0,0,0,0))";if(r.style.background=a,r.style.background)return i}return t}(),function(){return n+"("+Array.prototype.join.call(arguments,", ")+")"}),setBorderRadius:function(e,t){i.setStyle(e,{"border-radius":t||"0"})},setBoxShadow:function(e,t){i.setStyle(e,{"box-shadow":t||"none"})},getElementPos:function(e,t){var n=0,r=0,o=e.getBoundingClientRect();if(n=o.left,r=o.top,!t){var a=i.getViewPos();n+=a[0],r+=a[1]}return[n,r]},getElementSize:function(e){return[e.offsetWidth,e.offsetHeight]},getAbsPointerPos:function(e){var t=0,n=0;return void 0!==e.changedTouches&&e.changedTouches.length?(t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY):"number"==typeof e.clientX&&(t=e.clientX,n=e.clientY),{x:t,y:n}},getRelPointerPos:function(e){var t=(e.target||e.srcElement).getBoundingClientRect(),n=0,r=0;return void 0!==e.changedTouches&&e.changedTouches.length?(n=e.changedTouches[0].clientX,r=e.changedTouches[0].clientY):"number"==typeof e.clientX&&(n=e.clientX,r=e.clientY),{x:n-t.left,y:r-t.top}},getViewPos:function(){var t=e.document.documentElement;return[(e.pageXOffset||t.scrollLeft)-(t.clientLeft||0),(e.pageYOffset||t.scrollTop)-(t.clientTop||0)]},getViewSize:function(){var t=e.document.documentElement;return[e.innerWidth||t.clientWidth,e.innerHeight||t.clientHeight]},RGB_HSV:function(e,t,n){e/=255,t/=255,n/=255;var r=Math.min(Math.min(e,t),n),o=Math.max(Math.max(e,t),n),i=o-r;if(0===i)return[null,0,100*o];var a=e===r?3+(n-t)/i:t===r?5+(e-n)/i:1+(t-e)/i;return[60*(6===a?0:a),i/o*100,100*o]},HSV_RGB:function(e,t,n){var r=n/100*255;if(null===e)return[r,r,r];e/=60,t/=100;var o=Math.floor(e),i=r*(1-t),a=r*(1-t*(o%2?e-o:1-(e-o)));switch(o){case 6:case 0:return[r,a,i];case 1:return[a,r,i];case 2:return[i,r,a];case 3:return[i,a,r];case 4:return[a,i,r];case 5:return[r,i,a]}},parseColorString:function(e){var t,n={rgba:null,format:null};if(t=e.match(/^\W*([0-9A-F]{3,8})\W*$/i)){if(8===t[1].length)n.format="hexa",n.rgba=[parseInt(t[1].substr(0,2),16),parseInt(t[1].substr(2,2),16),parseInt(t[1].substr(4,2),16),parseInt(t[1].substr(6,2),16)/255];else if(6===t[1].length)n.format="hex",n.rgba=[parseInt(t[1].substr(0,2),16),parseInt(t[1].substr(2,2),16),parseInt(t[1].substr(4,2),16),null];else{if(3!==t[1].length)return!1;n.format="hex",n.rgba=[parseInt(t[1].charAt(0)+t[1].charAt(0),16),parseInt(t[1].charAt(1)+t[1].charAt(1),16),parseInt(t[1].charAt(2)+t[1].charAt(2),16),null]}return n}if(t=e.match(/^\W*rgba?\(([^)]*)\)\W*$/i)){var r,o,i,a,s=t[1].split(","),l=/^\s*(\d+|\d*\.\d+|\d+\.\d*)\s*$/;if(s.length>=3&&(r=s[0].match(l))&&(o=s[1].match(l))&&(i=s[2].match(l)))return n.format="rgb",n.rgba=[parseFloat(r[1])||0,parseFloat(o[1])||0,parseFloat(i[1])||0,null],s.length>=4&&(a=s[3].match(l))&&(n.format="rgba",n.rgba[3]=parseFloat(a[1])||0),n}return!1},parsePaletteValue:function(e){var t=[];"string"==typeof e?e.replace(/#[0-9A-F]{3}([0-9A-F]{3})?|rgba?\(([^)]*)\)/gi,(function(e){t.push(e)})):Array.isArray(e)&&(t=e);for(var n=[],r=0;r<t.length;r++){var o=i.parseColorString(t[r]);o&&n.push(o)}return n},containsTranparentColor:function(e){for(var t=0;t<e.length;t++){var n=e[t].rgba[3];if(null!==n&&n<1)return!0}return!1},isAlphaFormat:function(e){switch(e.toLowerCase()){case"hexa":case"rgba":return!0}return!1},scaleCanvasForHighDPR:function(t){var n=e.devicePixelRatio||1;t.width*=n,t.height*=n,t.getContext("2d").scale(n,n)},genColorPreviewCanvas:function(e,t,n,r){var o=Math.round(i.pub.previewSeparator.length),a=i.pub.chessboardSize,s=i.pub.chessboardColor1,l=i.pub.chessboardColor2,c=n||2*a,u=2*a,d=i.createEl("canvas"),p=d.getContext("2d");d.width=c,d.height=u,r&&i.scaleCanvasForHighDPR(d),p.fillStyle=s,p.fillRect(0,0,c,u),p.fillStyle=l;for(var h=0;h<c;h+=2*a)p.fillRect(h,0,a,a),p.fillRect(h+a,a,a,a);e&&(p.fillStyle=e,p.fillRect(0,0,c,u));var f=null;switch(t){case"left":f=0,p.clearRect(0,0,o/2,u);break;case"right":f=c-o,p.clearRect(c-o/2,0,o/2,u)}if(null!==f){p.lineWidth=1;for(var m=0;m<i.pub.previewSeparator.length;m+=1)p.beginPath(),p.strokeStyle=i.pub.previewSeparator[m],p.moveTo(.5+f+m,0),p.lineTo(.5+f+m,u),p.stroke()}return{canvas:d,width:c,height:u}},genColorPreviewGradient:function(e,t,n){var r=[];
2return r=t&&n?["to "+{left:"right",right:"left"}[t],e+" 0%",e+" "+n+"px","rgba(0,0,0,0) "+(n+1)+"px","rgba(0,0,0,0) 100%"]:["to right",e+" 0%",e+" 100%"],i.linearGradient.apply(this,r)},redrawPosition:function(){if(i.picker&&i.picker.owner){var e,t,n=i.picker.owner;n.fixed?(e=i.getElementPos(n.targetElement,!0),t=[0,0]):(e=i.getElementPos(n.targetElement),t=i.getViewPos());var r,o,a,s=i.getElementSize(n.targetElement),l=i.getViewSize(),c=i.getPickerDims(n),u=[c.borderW,c.borderH];switch(n.position.toLowerCase()){case"left":r=1,o=0,a=-1;break;case"right":r=1,o=0,a=1;break;case"top":r=0,o=1,a=-1;break;default:r=0,o=1,a=1}var d=(s[o]+u[o])/2;if(n.smartPosition)p=[-t[r]+e[r]+u[r]>l[r]&&-t[r]+e[r]+s[r]/2>l[r]/2&&e[r]+s[r]-u[r]>=0?e[r]+s[r]-u[r]:e[r],-t[o]+e[o]+s[o]+u[o]-d+d*a>l[o]?-t[o]+e[o]+s[o]/2>l[o]/2&&e[o]+s[o]-d-d*a>=0?e[o]+s[o]-d-d*a:e[o]+s[o]-d+d*a:e[o]+s[o]-d+d*a>=0?e[o]+s[o]-d+d*a:e[o]+s[o]-d-d*a];else var p=[e[r],e[o]+s[o]-d+d*a];var h=p[r],f=p[o],m=n.fixed?"fixed":"absolute",g=(p[0]+u[0]>e[0]||p[0]<e[0]+s[0])&&p[1]+u[1]<e[1]+s[1];i._drawPosition(n,h,f,m,g)}},_drawPosition:function(e,t,n,r,o){var a=o?0:e.shadowBlur;i.picker.wrap.style.position=r,i.picker.wrap.style.left=t+"px",i.picker.wrap.style.top=n+"px",i.setBoxShadow(i.picker.boxS,e.shadow?new i.BoxShadow(0,a,e.shadowBlur,0,e.shadowColor):null)},getPickerDims:function(e){var t=2*e.controlBorderWidth+e.width,n=2*e.controlBorderWidth+e.height,r=2*e.controlBorderWidth+2*i.getControlPadding(e)+e.sliderSize;i.getSliderChannel(e)&&(t+=r),e.hasAlphaChannel()&&(t+=r);var o=i.getPaletteDims(e,t);o.height&&(n+=o.height+e.padding),e.closeButton&&(n+=2*e.controlBorderWidth+e.padding+e.buttonHeight);var a=t+2*e.padding,s=n+2*e.padding;return{contentW:t,contentH:n,paddedW:a,paddedH:s,borderW:a+2*e.borderWidth,borderH:s+2*e.borderWidth,palette:o}},getPaletteDims:function(e,t){var n=0,r=0,o=0,i=0,a=0,s=e._palette?e._palette.length:0;return s&&(r=(n=e.paletteCols)>0?Math.ceil(s/n):0,o=Math.max(1,Math.floor((t-(n-1)*e.paletteSpacing)/n)),i=e.paletteHeight?Math.min(e.paletteHeight,o):o),r&&(a=r*i+(r-1)*e.paletteSpacing),{cols:n,rows:r,cellW:o,cellH:i,width:t,height:a}},getControlPadding:function(e){return Math.max(e.padding/2,2*e.pointerBorderWidth+e.pointerThickness-e.controlBorderWidth)},getPadYChannel:function(e){return"v"===e.mode.charAt(1).toLowerCase()?"v":"s"},getSliderChannel:function(e){if(e.mode.length>2)switch(e.mode.charAt(2).toLowerCase()){case"s":return"s";case"v":return"v"}return null},triggerCallback:function(e,t){if(e[t]){var n=null;if("string"==typeof e[t])try{n=new Function(e[t])}catch(e){console.error(e)}else n=e[t];n&&n.call(e)}},triggerGlobal:function(e){for(var t=i.getInstances(),n=0;n<t.length;n+=1)t[n].trigger(e)},_pointerMoveEvent:{mouse:"mousemove",touch:"touchmove"},_pointerEndEvent:{mouse:"mouseup",touch:"touchend"},_pointerOrigin:null,_capturedTarget:null,onDocumentKeyUp:function(e){-1!==["Tab","Escape"].indexOf(i.eventKey(e))&&i.picker&&i.picker.owner&&i.picker.owner.tryHide()},onWindowResize:function(e){i.redrawPosition()},onWindowScroll:function(e){i.redrawPosition()},onParentScroll:function(e){i.picker&&i.picker.owner&&i.picker.owner.tryHide()},onDocumentMouseDown:function(e){var t=e.target||e.srcElement;t.jscolor&&t.jscolor instanceof i.pub?t.jscolor.showOnClick&&!t.disabled&&t.jscolor.show():i.getData(t,"gui")?i.getData(t,"control")&&i.onControlPointerStart(e,t,i.getData(t,"control"),"mouse"):i.picker&&i.picker.owner&&i.picker.owner.tryHide()},onPickerTouchStart:function(e){var t=e.target||e.srcElement;i.getData(t,"control")&&i.onControlPointerStart(e,t,i.getData(t,"control"),"touch")},onControlPointerStart:function(t,n,r,o){var a=i.getData(n,"instance");i.preventDefault(t),i.captureTarget(n);var s=function(e,a){i.attachGroupEvent("drag",e,i._pointerMoveEvent[o],i.onDocumentPointerMove(t,n,r,o,a)),i.attachGroupEvent("drag",e,i._pointerEndEvent[o],i.onDocumentPointerEnd(t,n,r,o))};if(s(e.document,[0,0]),e.parent&&e.frameElement){var l=e.frameElement.getBoundingClientRect(),c=[-l.left,-l.top];s(e.parent.window.document,c)}var u=i.getAbsPointerPos(t),d=i.getRelPointerPos(t);switch(i._pointerOrigin={x:u.x-d.x,y:u.y-d.y},r){case"pad":"v"===i.getSliderChannel(a)&&0===a.channels.v&&a.fromHSVA(null,null,100,null),i.setPad(a,t,0,0);break;case"sld":i.setSld(a,t,0);break;case"asld":i.setASld(a,t,0)}a.trigger("input")},onDocumentPointerMove:function(e,t,n,r,o){return function(e){var r=i.getData(t,"instance");switch(n){case"pad":i.setPad(r,e,o[0],o[1]);break;case"sld":i.setSld(r,e,o[1]);break;case"asld":i.setASld(r,e,o[1])}r.trigger("input")}},onDocumentPointerEnd:function(e,t,n,r){return function(e){var n=i.getData(t,"instance");i.detachGroupEvents("drag"),i.releaseTarget(),n.trigger("input"),n.trigger("change")}},onPaletteSampleClick:function(e){var t=e.currentTarget,n=i.getData(t,"instance"),r=i.getData(t,"color");"any"===n.format.toLowerCase()&&(n._setFormat(r.format),i.isAlphaFormat(n.getFormat())||(r.rgba[3]=1)),null===r.rgba[3]&&(!0===n.paletteSetsAlpha||"auto"===n.paletteSetsAlpha&&n._paletteHasTransparency)&&(r.rgba[3]=1),n.fromRGBA.apply(n,r.rgba),n.trigger("input"),n.trigger("change"),n.hideOnPaletteClick&&n.hide()},setPad:function(e,t,n,r){var o=i.getAbsPointerPos(t),a=n+o.x-i._pointerOrigin.x-e.padding-e.controlBorderWidth,s=r+o.y-i._pointerOrigin.y-e.padding-e.controlBorderWidth,l=a*(360/(e.width-1)),c=100-s*(100/(e.height-1));switch(i.getPadYChannel(e)){case"s":e.fromHSVA(l,c,null,null);break;case"v":e.fromHSVA(l,null,c,null)}},setSld:function(e,t,n){var r=100-(n+i.getAbsPointerPos(t).y-i._pointerOrigin.y-e.padding-e.controlBorderWidth)*(100/(e.height-1));switch(i.getSliderChannel(e)){case"s":e.fromHSVA(null,r,null,null);break;case"v":e.fromHSVA(null,null,r,null)}},setASld:function(e,t,n){var r=1-(n+i.getAbsPointerPos(t).y-i._pointerOrigin.y-e.padding-e.controlBorderWidth)*(1/(e.height-1));if(r<1){var o=e.getFormat();"any"!==e.format.toLowerCase()||i.isAlphaFormat(o)||e._setFormat("hex"===o?"hexa":"rgba")}e.fromHSVA(null,null,null,r)},createPadCanvas:function(){var e={elm:null,draw:null},t=i.createEl("canvas"),n=t.getContext("2d");return e.elm=t,e.draw=function(e,r,o){t.width=e,t.height=r,n.clearRect(0,0,t.width,t.height);var i=n.createLinearGradient(0,0,t.width,0);i.addColorStop(0,"#F00"),i.addColorStop(1/6,"#FF0"),i.addColorStop(2/6,"#0F0"),i.addColorStop(.5,"#0FF"),i.addColorStop(4/6,"#00F"),i.addColorStop(5/6,"#F0F"),i.addColorStop(1,"#F00"),n.fillStyle=i,n.fillRect(0,0,t.width,t.height);var a=n.createLinearGradient(0,0,0,t.height);switch(o.toLowerCase()){case"s":a.addColorStop(0,"rgba(255,255,255,0)"),a.addColorStop(1,"rgba(255,255,255,1)");break;case"v":a.addColorStop(0,"rgba(0,0,0,0)"),a.addColorStop(1,"rgba(0,0,0,1)")}n.fillStyle=a,n.fillRect(0,0,t.width,t.height)},e},createSliderGradient:function(){var e={elm:null,draw:null},t=i.createEl("canvas"),n=t.getContext("2d");return e.elm=t,e.draw=function(e,r,o,i){t.width=e,t.height=r,n.clearRect(0,0,t.width,t.height);var a=n.createLinearGradient(0,0,0,t.height);a.addColorStop(0,o),a.addColorStop(1,i),n.fillStyle=a,n.fillRect(0,0,t.width,t.height)},e},createASliderGradient:function(){var e={elm:null,draw:null},t=i.createEl("canvas"),n=t.getContext("2d");return e.elm=t,e.draw=function(e,r,o){t.width=e,t.height=r,n.clearRect(0,0,t.width,t.height);var a=t.width/2,s=i.pub.chessboardColor1,l=i.pub.chessboardColor2;if(n.fillStyle=s,n.fillRect(0,0,t.width,t.height),a>0)for(var c=0;c<t.height;c+=2*a)n.fillStyle=l,n.fillRect(0,c,a,a),n.fillRect(a,c+a,a,a);var u=n.createLinearGradient(0,0,0,t.height);u.addColorStop(0,o),u.addColorStop(1,"rgba(0,0,0,0)"),n.fillStyle=u,n.fillRect(0,0,t.width,t.height)},e},BoxShadow:(t=function(e,t,n,r,o,i){this.hShadow=e,this.vShadow=t,this.blur=n,this.spread=r,this.color=o,this.inset=!!i},t.prototype.toString=function(){var e=[Math.round(this.hShadow)+"px",Math.round(this.vShadow)+"px",Math.round(this.blur)+"px",Math.round(this.spread)+"px",this.color];return this.inset&&e.push("inset"),e.join(" ")},t),flags:{leaveValue:1,leaveAlpha:2,leavePreview:4},enumOpts:{format:["auto","any","hex","hexa","rgb","rgba"],previewPosition:["left","right"],mode:["hsv","hvs","hs","hv"],position:["left","right","top","bottom"],alphaChannel:["auto",!0,!1],paletteSetsAlpha:["auto",!0,!1]},deprecatedOpts:{styleElement:"previewElement",onFineChange:"onInput",overwriteImportant:"forceStyle",closable:"closeButton",insetWidth:"controlBorderWidth",insetColor:"controlBorderColor",refine:null},docsRef:" See https://jscolor.com/docs/",pub:function(t,n){var o=this;function a(e,t){if("string"!=typeof e)throw new Error("Invalid value for option name: "+e);if(i.enumOpts.hasOwnProperty(e)&&("string"==typeof t&&(t=t.toLowerCase()),-1===i.enumOpts[e].indexOf(t)))throw new Error("Option '"+e+"' has invali
2d value: "+t);if(i.deprecatedOpts.hasOwnProperty(e)){var n=e,r=i.deprecatedOpts[e];if(!r)throw new Error("Option '"+e+"' is DEPRECATED");console.warn("Option '%s' is DEPRECATED, using '%s' instead."+i.docsRef,n,r),e=r}var a="set__"+e;if("function"==typeof o[a])return o[a](t),!0;if(e in o)return o[e]=t,!0;throw new Error("Unrecognized configuration option: "+e)}function s(){o._processParentElementsInDOM(),i.picker||(i.picker={owner:null,wrap:i.createEl("div"),box:i.createEl("div"),boxS:i.createEl("div"),boxB:i.createEl("div"),pad:i.createEl("div"),padB:i.createEl("div"),padM:i.createEl("div"),padCanvas:i.createPadCanvas(),cross:i.createEl("div"),crossBY:i.createEl("div"),crossBX:i.createEl("div"),crossLY:i.createEl("div"),crossLX:i.createEl("div"),sld:i.createEl("div"),sldB:i.createEl("div"),sldM:i.createEl("div"),sldGrad:i.createSliderGradient(),sldPtrS:i.createEl("div"),sldPtrIB:i.createEl("div"),sldPtrMB:i.createEl("div"),sldPtrOB:i.createEl("div"),asld:i.createEl("div"),asldB:i.createEl("div"),asldM:i.createEl("div"),asldGrad:i.createASliderGradient(),asldPtrS:i.createEl("div"),asldPtrIB:i.createEl("div"),asldPtrMB:i.createEl("div"),asldPtrOB:i.createEl("div"),pal:i.createEl("div"),btn:i.createEl("div"),btnT:i.createEl("span")},i.picker.pad.appendChild(i.picker.padCanvas.elm),i.picker.padB.appendChild(i.picker.pad),i.picker.cross.appendChild(i.picker.crossBY),i.picker.cross.appendChild(i.picker.crossBX),i.picker.cross.appendChild(i.picker.crossLY),i.picker.cross.appendChild(i.picker.crossLX),i.picker.padB.appendChild(i.picker.cross),i.picker.box.appendChild(i.picker.padB),i.picker.box.appendChild(i.picker.padM),i.picker.sld.appendChild(i.picker.sldGrad.elm),i.picker.sldB.appendChild(i.picker.sld),i.picker.sldB.appendChild(i.picker.sldPtrOB),i.picker.sldPtrOB.appendChild(i.picker.sldPtrMB),i.picker.sldPtrMB.appendChild(i.picker.sldPtrIB),i.picker.sldPtrIB.appendChild(i.picker.sldPtrS),i.picker.box.appendChild(i.picker.sldB),i.picker.box.appendChild(i.picker.sldM),i.picker.asld.appendChild(i.picker.asldGrad.elm),i.picker.asldB.appendChild(i.picker.asld),i.picker.asldB.appendChild(i.picker.asldPtrOB),i.picker.asldPtrOB.appendChild(i.picker.asldPtrMB),i.picker.asldPtrMB.appendChild(i.picker.asldPtrIB),i.picker.asldPtrIB.appendChild(i.picker.asldPtrS),i.picker.box.appendChild(i.picker.asldB),i.picker.box.appendChild(i.picker.asldM),i.picker.box.appendChild(i.picker.pal),i.picker.btn.appendChild(i.picker.btnT),i.picker.box.appendChild(i.picker.btn),i.picker.boxB.appendChild(i.picker.box),i.picker.wrap.appendChild(i.picker.boxS),i.picker.wrap.appendChild(i.picker.boxB),i.picker.wrap.addEventListener("touchstart",i.onPickerTouchStart,!!i.isPassiveEventSupported&&{passive:!1}));var t,n,r=i.picker,a=!!i.getSliderChannel(o),s=o.hasAlphaChannel(),d=i.getPickerDims(o),p=2*o.pointerBorderWidth+o.pointerThickness+2*o.crossSize,h=i.getControlPadding(o),f=Math.min(o.borderRadius,Math.round(o.padding*Math.PI));r.wrap.className="jscolor-picker-wrap",r.wrap.style.clear="both",r.wrap.style.width=d.borderW+"px",r.wrap.style.height=d.borderH+"px",r.wrap.style.zIndex=o.zIndex,r.box.className="jscolor-picker",r.box.style.width=d.paddedW+"px",r.box.style.height=d.paddedH+"px",r.box.style.position="relative",r.boxS.className="jscolor-picker-shadow",r.boxS.style.position="absolute",r.boxS.style.left="0",r.boxS.style.top="0",r.boxS.style.width="100%",r.boxS.style.height="100%",i.setBorderRadius(r.boxS,f+"px"),r.boxB.className="jscolor-picker-border",r.boxB.style.position="relative",r.boxB.style.border=o.borderWidth+"px solid",r.boxB.style.borderColor=o.borderColor,r.boxB.style.background=o.backgroundColor,i.setBorderRadius(r.boxB,f+"px"),r.padM.style.background="rgba(255,0,0,.2)",r.sldM.style.background="rgba(0,255,0,.2)",r.asldM.style.background="rgba(0,0,255,.2)",r.padM.style.opacity=r.sldM.style.opacity=r.asldM.style.opacity="0",r.pad.style.position="relative",r.pad.style.width=o.width+"px",r.pad.style.height=o.height+"px",r.padCanvas.draw(o.width,o.height,i.getPadYChannel(o)),r.padB.style.position="absolute",r.padB.style.left=o.padding+"px",r.padB.style.top=o.padding+"px",r.padB.style.border=o.controlBorderWidth+"px solid",r.padB.style.borderColor=o.controlBorderColor,r.padM.style.position="absolute",r.padM.style.left="0px",r.padM.style.top="0px",r.padM.style.width=o.padding+2*o.controlBorderWidth+o.width+h+"px",r.padM.style.height=2*o.controlBorderWidth+2*o.padding+o.height+"px",r.padM.style.cursor="crosshair",i.setData(r.padM,{instance:o,control:"pad"}),r.cross.style.position="absolute",r.cross.style.left=r.cross.style.top="0",r.cross.style.width=r.cross.style.height=p+"px",r.crossBY.style.position=r.crossBX.style.position="absolute",r.crossBY.style.background=r.crossBX.style.background=o.pointerBorderColor,r.crossBY.style.width=r.crossBX.style.height=2*o.pointerBorderWidth+o.pointerThickness+"px",r.crossBY.style.height=r.crossBX.style.width=p+"px",r.crossBY.style.left=r.crossBX.style.top=Math.floor(p/2)-Math.floor(o.pointerThickness/2)-o.pointerBorderWidth+"px",r.crossBY.style.top=r.crossBX.style.left="0",r.crossLY.style.position=r.crossLX.style.position="absolute",r.crossLY.style.background=r.crossLX.style.background=o.pointerColor,r.crossLY.style.height=r.crossLX.style.width=p-2*o.pointerBorderWidth+"px",r.crossLY.style.width=r.crossLX.style.height=o.pointerThickness+"px",r.crossLY.style.left=r.crossLX.style.top=Math.floor(p/2)-Math.floor(o.pointerThickness/2)+"px",r.crossLY.style.top=r.crossLX.style.left=o.pointerBorderWidth+"px",r.sld.style.overflow="hidden",r.sld.style.width=o.sliderSize+"px",r.sld.style.height=o.height+"px",r.sldGrad.draw(o.sliderSize,o.height,"#000","#000"),r.sldB.style.display=a?"block":"none",r.sldB.style.position="absolute",r.sldB.style.left=o.padding+o.width+2*o.controlBorderWidth+2*h+"px",r.sldB.style.top=o.padding+"px",r.sldB.style.border=o.controlBorderWidth+"px solid",r.sldB.style.borderColor=o.controlBorderColor,r.sldM.style.display=a?"block":"none",r.sldM.style.position="absolute",r.sldM.style.left=o.padding+o.width+2*o.controlBorderWidth+h+"px",r.sldM.style.top="0px",r.sldM.style.width=o.sliderSize+2*h+2*o.c
2ontrolBorderWidth+(s?0:Math.max(0,o.padding-h))+"px",r.sldM.style.height=2*o.controlBorderWidth+2*o.padding+o.height+"px",r.sldM.style.cursor="default",i.setData(r.sldM,{instance:o,control:"sld"}),r.sldPtrIB.style.border=r.sldPtrOB.style.border=o.pointerBorderWidth+"px solid "+o.pointerBorderColor,r.sldPtrOB.style.position="absolute",r.sldPtrOB.style.left=-(2*o.pointerBorderWidth+o.pointerThickness)+"px",r.sldPtrOB.style.top="0",r.sldPtrMB.style.border=o.pointerThickness+"px solid "+o.pointerColor,r.sldPtrS.style.width=o.sliderSize+"px",r.sldPtrS.style.height=i.pub.sliderInnerSpace+"px",r.asld.style.overflow="hidden",r.asld.style.width=o.sliderSize+"px",r.asld.style.height=o.height+"px",r.asldGrad.draw(o.sliderSize,o.height,"#000"),r.asldB.style.display=s?"block":"none",r.asldB.style.position="absolute",r.asldB.style.left=o.padding+o.width+2*o.controlBorderWidth+h+(a?o.sliderSize+3*h+2*o.controlBorderWidth:0)+"px",r.asldB.style.top=o.padding+"px",r.asldB.style.border=o.controlBorderWidth+"px solid",r.asldB.style.borderColor=o.controlBorderColor,r.asldM.style.display=s?"block":"none",r.asldM.style.position="absolute",r.asldM.style.left=o.padding+o.width+2*o.controlBorderWidth+h+(a?o.sliderSize+2*h+2*o.controlBorderWidth:0)+"px",r.asldM.style.top="0px",r.asldM.style.width=o.sliderSize+2*h+2*o.controlBorderWidth+Math.max(0,o.padding-h)+"px",r.asldM.style.height=2*o.controlBorderWidth+2*o.padding+o.height+"px",r.asldM.style.cursor="default",i.setData(r.asldM,{instance:o,control:"asld"}),r.asldPtrIB.style.border=r.asldPtrOB.style.border=o.pointerBorderWidth+"px solid "+o.pointerBorderColor,r.asldPtrOB.style.position="absolute",r.asldPtrOB.style.left=-(2*o.pointerBorderWidth+o.pointerThickness)+"px",r.asldPtrOB.style.top="0",r.asldPtrMB.style.border=o.pointerThickness+"px solid "+o.pointerColor,r.asldPtrS.style.width=o.sliderSize+"px",r.asldPtrS.style.height=i.pub.sliderInnerSpace+"px",r.pal.className="jscolor-palette",r.pal.style.display=d.palette.rows?"block":"none",r.pal.style.position="absolute",r.pal.style.left=o.padding+"px",r.pal.style.top=2*o.controlBorderWidth+2*o.padding+o.height+"px",r.pal.innerHTML="";for(var m=i.genColorPreviewCanvas("rgba(0,0,0,0)"),g=0,v=0;v<d.palette.rows;v++)for(var y=0;y<d.palette.cols&&g<o._palette.length;y++,g++){var b=o._palette[g],x=i.rgbaColor.apply(null,b.rgba),w=i.createEl("div");w.style.width=d.palette.cellW-2*o.controlBorderWidth+"px",w.style.height=d.palette.cellH-2*o.controlBorderWidth+"px",w.style.backgroundColor=x;var k=i.createEl("div");k.className="jscolor-palette-sample",k.style.display="block",k.style.position="absolute",k.style.left=(d.palette.cols<=1?0:Math.round(y*((d.contentW-d.palette.cellW)/(d.palette.cols-1))*10)/10)+"px",k.style.top=v*(d.palette.cellH+o.paletteSpacing)+"px",k.style.border=o.controlBorderWidth+"px solid",k.style.borderColor=o.controlBorderColor,k.style.cursor="pointer",null!==b.rgba[3]&&b.rgba[3]<1&&(k.style.backgroundImage="url('"+m.canvas.toDataURL()+"')",k.style.backgroundRepeat="repeat",k.style.backgroundPosition="center center"),i.setData(k,{instance:o,control:"palette-sample",color:b}),k.addEventListener("click",i.onPaletteSampleClick,!1),k.appendChild(w),r.pal.appendChild(k)}r.btn.className="jscolor-btn-close",r.btn.style.display=o.closeButton?"block":"none",r.btn.style.position="absolute",r.btn.style.left=o.padding+"px",r.btn.style.bottom=o.padding+"px",r.btn.style.padding="0 15px",r.btn.style.maxWidth=d.contentW-2*o.controlBorderWidth-30+"px",r.btn.style.overflow="hidden",r.btn.style.height=o.buttonHeight+"px",r.btn.style.whiteSpace="nowrap",r.btn.style.border=o.controlBorderWidth+"px solid",t=o.controlBorderColor.split(/\s+/),n=t.length<2?t[0]:t[1]+" "+t[0]+" "+t[0]+" "+t[1],r.btn.style.borderColor=n,r.btn.style.color=o.buttonColor,r.btn.style.font="12px sans-serif",r.btn.style.textAlign="center",r.btn.style.cursor="pointer",r.btn.onmousedown=function(){o.hide()},r.btnT.style.lineHeight=o.buttonHeight+"px",r.btnT.innerHTML="",r.btnT.appendChild(e.document.createTextNode(o.closeText)),l(),c(),u(),i.picker.owner&&i.picker.owner!==o&&i.removeClass(i.picker.owner.targetElement,i.pub.activeClassName),i.picker.owner=o,o.container===e.document.body?i.redrawPosition():i._drawPosition(o,0,0,"relative",!1),r.wrap.parentNode!==o.container&&o.container.appendChild(r.wrap),i.addClass(o.targetElement,i.pub.activeClassName)}function l(){var e=i.getPadYChannel(o),t=Math.round(o.channels.h/360*(o.width-1)),n=Math.round((1-o.channels[e]/100)*(o.height-1)),r=2*o.pointerBorderWidth+o.pointerThickness+2*o.crossSize,a=-Math.floor(r/2);switch(i.picker.cross.style.left=t+a+"px",i.picker.cross.style.top=n+a+"px",i.getSliderChannel(o)){case"s":var s=i.HSV_RGB(o.channels.h,100,o.channels.v),l=i.HSV_RGB(o.channels.h,0,o.channels.v),c="rgb("+Math.round(s[0])+","+Math.round(s[1])+","+Math.round(s[2])+")",u="rgb("+Math.round(l[0])+","+Math.round(l[1])+","+Math.round(l[2])+")";i.picker.sldGrad.draw(o.sliderSize,o.height,c,u);break;case"v":var d=i.HSV_RGB(o.channels.h,o.channels.s,100);c="rgb("+Math.round(d[0])+","+Math.round(d[1])+","+Math.round(d[2])+")",u="#000",i.picker.sldGrad.draw(o.sliderSize,o.height,c,u)}i.picker.asldGrad.draw(o.sliderSize,o.height,o.toHEXString())}function c(){var e=i.getSliderChannel(o);if(e){var t=Math.round((1-o.channels[e]/100)*(o.height-1));i.picker.sldPtrOB.style.top=t-(2*o.pointerBorderWidth+o.pointerThickness)-Math.floor(i.pub.sliderInnerSpace/2)+"px"}i.picker.asldGrad.draw(o.sliderSize,o.height,o.toHEXString())}function u(){var e=Math.round((1-o.channels.a)*(o.height-1));i.picker.asldPtrOB.style.top=e-(2*o.pointerBorderWidth+o.pointerThickness)-Math.floor(i.pub.sliderInnerSpace/2)+"px"}function d(){return i.picker&&i.picker.owner===o}if(n||(n={}),this.channels={r:255,g:255,b:255,h:0,s:0,v:100,a:1},this.format="auto",this.value=void 0,this.alpha=void 0,this.random=!1,this.onChange=void 0,this.onInput=void 0,this.valueElement=void 0,this.alphaElement=void 0,this.previewElement=void 0,this.previewPosition="left",this.previewSize=32,this.previewPadding=8,this.required=!0,this.hash=!0,this.uppercase=!0,this.forceStyle=!0,this.width=181,this.height=101,this.mode="HSV",this.alphaChannel="auto",this.position="bottom",this.smartPosition=!0,this.showOnClick=!0,this.hideOnLeave=!0,this.palette=[],this.paletteCols=10,this.paletteSetsAlpha="auto",this.paletteHeight=16,this.paletteSpacing=4,this.hideOnPaletteClick=!1,this.sliderSize=16,this.crossSize=8,this.closeButton=!1,this.closeText="Close",this.buttonColor="rgba(0,0,0,1)",this.buttonHeight=18,this.padding=12,this.backgroundColor="rgba(255,255,255,1)",this.borderWidth=1,this.borderColor="rgba(187,187,187,1)",this.borderRadius=8,this.controlBorderWidth=1,this.controlBorderColor="rgba(187,187,187,1)",this.shadow=!0,this.shadowBlur=15,this.shadowColor="rgba(0,0,0,0.2)",this.pointerColor="rgba(76,76,76,1)",this.pointerBorderWidth=1,this.pointerBorderColor="rgba(255,255,255,1)",this.pointerThickness=2,this.zIndex=5e3,this.container=void 0,this.minS=0,this.maxS=100,this.minV=0,this.maxV=100,this.minA=0,this.maxA=1,this.option=function(){if(!arguments.length)throw new Error("No option specified");if(1===arguments.length&&"string"==typeof arguments[0]){try{return function(e){if("string"!=typeof e)throw new Error("Invalid value for option name: "+e);if(i.deprecatedOpts.hasOwnProperty(e)){var t=e,n=i.deprecatedOpts[e];if(!n)throw new Error("Option '"+e+"' is DEPRECATED");console.warn("Option '%s' is DEPRECATED, using '%s' instead."+i.docsRef,t,n),e=n}var r="get__"+e;if("function"==typeof o[r])return o[r](value);if(e in o)return o[e];throw new Error("Unrecognized configuration option: "+e)}(arguments[0])}catch(e){console.warn(e)}return!1}if(arguments.length>=2&&"string"==typeof arguments[0]){try{if(!a(arguments[0],arguments[1]))return!1}catch(e){return console.warn(e),!1}return this.redraw(),this.exposeColor(),!0}if(1===arguments.length&&"object"===r(arguments[0])){var e=arguments[0],t=!0;for(var n in e)if(e.hasOwnProperty(n))try{a(n,e[n])||(t=!1)}catch(e){console.warn(e),t=!1}return this.redraw(),this.exposeColor(),t}throw new Error("Invalid arguments")},this.channel=function(e,t){if("string"!=typeof e)throw new Error("Invalid value for channel name: "+e);if(void 0===t)return this.channels.hasOwnProperty(e.toLowerCase())?this.channels[e.toLowerCase()]:(console.warn("Getting unknown channel: "+e),!1);var n=!1;switch(e.toLowerCase()){case"r":n=this.fromRGBA(t,null,null,null);break;case"g":n=this.fromRGBA(null,t,null,null);break;case"b":n=this.fromRGBA(null,null,t,null);break;case"h":n=this.fromHSVA(t,null,null,null);break;case"s":n=this.fromHSVA(null,t,null,null);break;case"v":n=this.fromHSVA(null,null,t,null);break;case"a":n=this.fromHSVA(null,null,null,t);break;default:return console.warn("Setting unknown channel: "+e),!1}return!!n&&(this.redraw(),!0)},this.trigger=function(e){for(var t=i.strList(e),n=0;n<t.length;n+=1){var r=t[n].toLowerCase(),o=null;switch(r){case"input":o="onInput";break;case"change":o="onChange"}o&&i.triggerCallback(this,o),i.triggerInputEvent(this.valueElement,r,!0,!0)}},this.fromHSVA=function(e,t,n,r,o){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),null!==e){if(isNaN(e))return!1;this.channels.h=Math.max(0,Math.min(360,e))}if(null!==t){if(isNaN(t))return!1;this.channels.s=Math.max(0,Math.min(100,this.maxS,t),this.minS)}if(null!==n){if(isNaN(n))return!1;this.channels.v=Math.max(0,Math.min(100,this.maxV,n),this.minV)}if(null!==r){if(isNaN(r))return!1;this.channels.a=this.hasAlphaChannel()?Math.max(0,Math.min(1,this.maxA,r),this.minA):1}var a=i.HSV_RGB(this.channels.h,this.channels.s,this.channels.v);return this.channels.r=a[0],this.channels.g=a[1],this.channels.b=a[2],this.exposeColor(o),!0},this.fromRGBA=function(e,t,n,r,o){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),null!==e){if(isNaN(e))return!1;e=Math.max(0,Math.min(255,e))}if(null!==t){if(isNaN(t))return!1;t=Math.max(0,Math.min(255,t))}if(null!==n){if(isNaN(n))return!1;n=Math.max(0,Math.min(255,n))}if(null!==r){if(isNaN(r))return!1;this.channels.a=this.hasAlphaChannel()?Math.max(0,Math.min(1,this.maxA,r),this.minA):1}var a=i.RGB_HSV(null===e?this.channels.r:e,null===t?this.channels.g:t,null===n?this.channels.b:n);null!==a[0]&&(this.channels.h=Math.max(0,Math.min(360,a[0]))),0!==a[2]&&(this.channels.s=Math.max(0,this.minS,Math.min(100,this.maxS,a[1]))),this.channels.v=Math.max(0,this.minV,Math.min(100,this.maxV,a[2]));var s=i.HSV_RGB(this.channels.h,this.channels.s,this.channels.v);return this.channels.r=s[0],this.channels.g=s[1],this.channels.b=s[2],this.exposeColor(o),!0},this.fromHSV=function(e,t,n,r){return console.warn("fromHSV() method is DEPRECATED. Using fromHSVA() instead."+i.docsRef),this.fromHSVA(e,t,n,null,r)},this.fromRGB=function(e,t,n,r){return console.warn("fromRGB() method is DEPRECATED. Using fromRGBA() instead."+i.docsRef),this.fromRGBA(e,t,n,null,r)},this.fromString=function(e,t){if(!this.required&&""===e.trim())return this.setPreviewElementBg(null),this.setValueElementValue(""),!0;var n=i.parseColorString(e);return!!n&&("any"===this.format.toLowerCase()&&(this._setFormat(n.format),i.isAlphaFormat(this.getFormat())||(n.rgba[3]=1)),this.fromRGBA(n.rgba[0],n.rgba[1],n.rgba[2],n.rgba[3],t),!0)},this.randomize=function(e,t,n,r,o,i,a,s){void 0===e&&(e=0),void 0===t&&(t=100),void 0===n&&(n=0),void 0===r&&(r=100),void 0===o&&(o=0),void 0===i&&(i=359),void 0===a&&(a=1),void 0===s&&(s=1),this.fromHSVA(o+Math.floor(Math.random()*(i-o+1)),n+Math.floor(Math.random()*(r-n+1)),e+Math.floor(Math.random()*(t-e+1)),(100*a+Math.floor(Math.random()*(100*(s-a)+1)))/100)},this.toString=function(e){switch(void 0===e&&(e=this.getFormat()),e.toLowerCase()){case"hex":return this.toHEXString();case"hexa":return this.toHEXAString();case"rgb":return this.toRGBString();case"rgba":return this.toRGBAString()}return!1},this.toHEXString=function(){return i.hexColor(this.channels.r,this.channels.g,this.channels.b)},this.toHEXAString=function(){return i.hexaColor(this.channels.r,this.channels.g,this.channels.b,this.channels.a)},this.toRGBString=function(){return i.rgbColor(this.channels.r,this.channels.g,this.channels.b)},this.toRGBAString=function(){return i.rgbaColor(this.channels.r,this.channels.g,this.channels.b,this.channels.a)},this.toGrayscale=function(){return.213*this.channels.r+.715*this.channels.g+.072*this.channels.b},this.toCanvas=function(){return i.genColorPreviewCanvas(this.toRGBAString()).canvas},this.toDataURL=function(){return this.toCanvas().toDataURL()}
2,this.toBackground=function(){return i.pub.background(this.toRGBAString())},this.isLight=function(){return this.toGrayscale()>127.5},this.hide=function(){d()&&(i.removeClass(o.targetElement,i.pub.activeClassName),i.picker.wrap.parentNode.removeChild(i.picker.wrap),delete i.picker.owner)},this.show=function(){s()},this.redraw=function(){d()&&s()},this.getFormat=function(){return this._currentFormat},this._setFormat=function(e){this._currentFormat=e.toLowerCase()},this.hasAlphaChannel=function(){return"auto"===this.alphaChannel?"any"===this.format.toLowerCase()||i.isAlphaFormat(this.getFormat())||void 0!==this.alpha||void 0!==this.alphaElement:this.alphaChannel},this.processValueInput=function(e){this.fromString(e)||this.exposeColor()},this.processAlphaInput=function(e){this.fromHSVA(null,null,null,parseFloat(e))||this.exposeColor()},this.exposeColor=function(e){var t=this.toString(),n=this.getFormat();if(i.setDataAttr(this.targetElement,"current-color",t),e&i.flags.leaveValue||!this.valueElement||("hex"!==n&&"hexa"!==n||(this.uppercase||(t=t.toLowerCase()),this.hash||(t=t.replace(/^#/,""))),this.setValueElementValue(t)),!(e&i.flags.leaveAlpha)&&this.alphaElement){var r=Math.round(100*this.channels.a)/100;this.setAlphaElementValue(r)}e&i.flags.leavePreview||!this.previewElement||((i.isTextInput(this.previewElement)||i.isButton(this.previewElement)&&!i.isButtonEmpty(this.previewElement))&&this.previewPosition,this.setPreviewElementBg(this.toRGBAString())),d()&&(l(),c(),u())},this.setPreviewElementBg=function(e){if(this.previewElement){var t=null,n=null;(i.isTextInput(this.previewElement)||i.isButton(this.previewElement)&&!i.isButtonEmpty(this.previewElement))&&(t=this.previewPosition,n=this.previewSize);var r=[];if(e){r.push({image:i.genColorPreviewGradient(e,t,n?n-i.pub.previewSeparator.length:null),position:"left top",size:"auto",repeat:t?"repeat-y":"repeat",origin:"padding-box"});var o=i.genColorPreviewCanvas("rgba(0,0,0,0)",t?{left:"right",right:"left"}[t]:null,n,!0);r.push({image:"url('"+o.canvas.toDataURL()+"')",position:(t||"left")+" top",size:o.width+"px "+o.height+"px",repeat:t?"repeat-y":"repeat",origin:"padding-box"})}else r.push({image:"none",position:"left top",size:"auto",repeat:"no-repeat",origin:"padding-box"});for(var a={image:[],position:[],size:[],repeat:[],origin:[]},s=0;s<r.length;s+=1)a.image.push(r[s].image),a.position.push(r[s].position),a.size.push(r[s].size),a.repeat.push(r[s].repeat),a.origin.push(r[s].origin);var l={"background-image":a.image.join(", "),"background-position":a.position.join(", "),"background-size":a.size.join(", "),"background-repeat":a.repeat.join(", "),"background-origin":a.origin.join(", ")};i.setStyle(this.previewElement,l,this.forceStyle);var c={left:null,right:null};t&&(c[t]=this.previewSize+this.previewPadding+"px"),l={"padding-left":c.left,"padding-right":c.right},i.setStyle(this.previewElement,l,this.forceStyle,!0)}},this.setValueElementValue=function(e){this.valueElement&&("input"===i.nodeName(this.valueElement)?this.valueElement.value=e:this.valueElement.innerHTML=e)},this.setAlphaElementValue=function(e){this.alphaElement&&("input"===i.nodeName(this.alphaElement)?this.alphaElement.value=e:this.alphaElement.innerHTML=e)},this._processParentElementsInDOM=function(){if(!this._parentElementsProcessed){this._parentElementsProcessed=!0;var e=this.targetElement;do{var t=i.getCompStyle(e);t.position&&"fixed"===t.position.toLowerCase()&&(this.fixed=!0),e!==this.targetElement&&(i.getData(e,"hasScrollListener")||(e.addEventListener("scroll",i.onParentScroll,!1),i.setData(e,"hasScrollListener",!0)))}while((e=e.parentNode)&&"body"!==i.nodeName(e))}},this.tryHide=function(){this.hideOnLeave&&this.hide()},this.set__palette=function(e){this.palette=e,this._palette=i.parsePaletteValue(e),this._paletteHasTransparency=i.containsTranparentColor(this._palette)},i.pub.options)for(var p in i.pub.options)if(i.pub.options.hasOwnProperty(p))try{a(p,i.pub.options[p])}catch(e){console.warn(e)}var h=[];n.preset&&("string"==typeof n.preset?h=n.preset.split(/\s+/):Array.isArray(n.preset)?h=n.preset.slice():console.warn("Unrecognized preset value")),-1===h.indexOf("default")&&h.push("default");for(var f=h.length-1;f>=0;f-=1){var m=h[f];if(m)if(i.pub.presets.hasOwnProperty(m)){for(var p in i.pub.presets[m])if(i.pub.presets[m].hasOwnProperty(p))try{a(p,i.pub.presets[m][p])}catch(e){console.warn(e)}}else console.warn("Unknown preset: %s",m)}var g=["preset"];for(var p in n)if(n.hasOwnProperty(p)&&-1===g.indexOf(p))try{a(p,n[p])}catch(e){console.warn(e)}if(void 0===this.container?this.container=e.document.body:this.container=i.node(this.container),!this.container)throw new Error("Cannot instantiate color picker without a container element");
2if(this.targetElement=i.node(t),!this.targetElement){if("string"==typeof t&&/^[a-zA-Z][\w:.-]*$/.test(t))throw new Error("If '"+t+"' is supposed to be an ID, please use '#"+t+"' or any valid CSS selector.");throw new Error("Cannot instantiate color picker without a target element")}if(this.targetElement.jscolor&&this.targetElement.jscolor instanceof i.pub)throw new Error("Color picker already installed on this element");if(this.targetElement.jscolor=this,i.addClass(this.targetElement,i.pub.className),i.instances.push(this),i.isButton(this.targetElement)&&("button"!==this.targetElement.type.toLowerCase()&&(this.targetElement.type="button"),i.isButtonEmpty(this.targetElement))){i.removeChildren(this.targetElement),this.targetElement.appendChild(e.document.createTextNode("Â "));var v=i.getCompStyle(this.targetElement);(parseFloat(v["min-width"])||0)<this.previewSize&&i.setStyle(this.targetElement,{"min-width":this.previewSize+"px"},this.forceStyle)}if(void 0===this.valueElement?i.isTextInput(this.targetElement)&&(this.valueElement=this.targetElement):null===this.valueElement||(this.valueElement=i.node(this.valueElement)),this.alphaElement&&(this.alphaElement=i.node(this.alphaElement)),void 0===this.previewElement?this.previewElement=this.targetElement:null===this.previewElement||(this.previewElement=i.node(this.previewElement)),this.valueElement&&i.isTextInput(this.valueElement)){var y={onInput:this.valueElement.oninput};this.valueElement.oninput=null,this.valueElement.addEventListener("keydown",(function(e){"Enter"===i.eventKey(e)&&(o.valueElement&&o.processValueInput(o.valueElement.value),o.tryHide())}),!1),this.valueElement.addEventListener("change",(function(e){if(!i.getData(e,"internal")){var t=o.valueElement.value;o.processValueInput(o.valueElement.value),i.triggerCallback(o,"onChange"),o.valueElement.value!==t&&i.triggerInputEvent(o.valueElement,"change",!0,!0)}}),!1),this.valueElement.addEventListener("input",(function(e){i.getData(e,"internal")||(o.valueElement&&o.fromString(o.valueElement.value,i.flags.leaveValue),i.triggerCallback(o,"onInput"))}),!1),y.onInput&&this.valueElement.addEventListener("input",y.onInput,!1),this.valueElement.setAttribute("autocomplete","off"),this.valueElement.setAttribute("autocorrect","off"),this.valueElement.setAttribute("autocapitalize","off"),this.valueElement.setAttribute("spellcheck",!1)}this.alphaElement&&i.isTextInput(this.alphaElement)&&(this.alphaElement.addEventListener("keydown",(function(e){"Enter"===i.eventKey(e)&&(o.alphaElement&&o.processAlphaInput(o.alphaElement.value),o.tryHide())}),!1),this.alphaElement.addEventListener("change",(function(e){if(!i.getData(e,"internal")){var t=o.alphaElement.value;o.processAlphaInput(o.alphaElement.value),i.triggerCallback(o,"onChange"),i.triggerInputEvent(o.valueElement,"change",!0,!0),o.alphaElement.value!==t&&i.triggerInputEvent(o.alphaElement,"change",!0,!0)}}),!1),this.alphaElement.addEventListener("input",(function(e){i.getData(e,"internal")||(o.alphaElement&&o.fromHSVA(null,null,null,parseFloat(o.alphaElement.value),i.flags.leaveAlpha),i.triggerCallback(o,"onInput"),i.triggerInputEvent(o.valueElement,"input",!0,!0))}),!1),this.alphaElement.setAttribute("autocomplete","off"),this.alphaElement.setAttribute("autocorrect","off"),this.alphaElement.setAttribute("autocapitalize","off"),this.alphaElement.setAttribute("spellcheck",!1));var b="FFFFFF";void 0!==this.value?b=this.value:this.valueElement&&void 0!==this.valueElement.value&&(b=this.valueElement.value);var x=void 0;if(void 0!==this.alpha?x=""+this.alpha:this.alphaElement&&void 0!==this.alphaElement.value&&(x=this.alphaElement.value),this._currentFormat=null,["auto","any"].indexOf(this.format.toLowerCase())>-1){var w=i.parseColorString(b);this._currentFormat=w?w.format:"hex"}else this._currentFormat=this.format.toLowerCase();this.processValueInput(b),void 0!==x&&this.processAlphaInput(x),this.random&&this.randomize.apply(this,Array.isArray(this.random)?this.random:[])}},i.pub.className="jscolor",i.pub.activeClassName="jscolor-active",i.pub.looseJSON=!0,i.pub.presets={},i.pub.presets.default={},i.pub.presets.light={backgroundColor:"rgba(255,255,255,1)",controlBorderColor:"rgba(187,187,187,1)",buttonColor:"rgba(0,0,0,1)"},i.pub.presets.dark={backgroundColor:"rgba(51,51,51,1)",controlBorderColor:"rgba(153,153,153,1)",buttonColor:"rgba(240,240,240,1)"},i.pub.presets.small={width:101,height:101,padding:10,sliderSize:14,paletteCols:8},i.pub.presets.medium={width:181,height:101,padding:12,sliderSize:16,paletteCols:10},i.pub.presets.large={width:271,height:151,padding:12,sliderSize:24,paletteCols:15},i.pub.presets.thin={borderWidth:1,controlBorderWidth:1,pointerBorderWidth:1},i.pub.presets.thick={borderWidth:2,controlBorderWidth:2,pointerBorderWidth:2},i.pub.sliderInnerSpace=3,i.pub.chessboardSize=8,i.pub.chessboardColor1="#666666",i.pub.chessboardColor2="#999999",i.pub.previewSeparator=["rgba(255,255,255,.65)","rgba(128,128,128,.65)"],i.pub.init=function(){if(!i.initialized)for(e.document.addEventListener("mousedown",i.onDocumentMouseDown,!1),e.document.addEventListener("keyup",i.onDocumentKeyUp,!1),e.addEventListener("resize",i.onWindowResize,!1),e.addEventListener("scroll",i.onWindowScroll,!1),i.pub.install(),i.initialized=!0;i.readyQueue.length;)i.readyQueue.shift()()},i.pub.install=function(e){var t=!0;try{i.installBySelector("[data-jscolor]",e)}catch(e){t=!1,console.warn(e)}if(i.pub.lookupClass)try{i.installBySelector("input."+i.pub.lookupClass+", button."+i.pub.lookupClass,e)}catch(e){}return t},i.pub.ready=function(e){return"function"!=typeof e?(console.warn("Passed value is not a function"),!1):(i.initialized?e():i.readyQueue.push(e),!0)},i.pub.trigger=function(e){var t=function(){i.triggerGlobal(e)};i.initialized?t():i.pub.ready(t)},i.pub.hide=function(){i.picker&&i.picker.owner&&i.picker.owner.hide()},i.pub.chessboard=function(e){return e||(e="rgba(0,0,0,0)"),i.genColorPreviewCanvas(e).canvas.toDataURL()},i.pub.background=function(e){var t=[];t.push(i.genColorPreviewGradient(e));var n=i.genColorPreviewCanvas();return t.push(["url('"+n.canvas.toDataURL()+"')","left top","repeat"].join(" ")),t.join(", ")},i.pub.options={},i.pub.lookupClass="jscolor",i.pub.installByClassName=function(){return console.error('jscolor.installByClassName() is DEPRECATED. Use data-jscolor="" attribute instead of a class name.'+i.docsRef),!1},i.register(),i.pub);return void 0===e.jscolor&&(e.jscolor=e.JSColor=a),a}))},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}}
2,6354:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Ft});var r=n(6301),o={class:"lg:flex lg:h-full lg:min-h-[calc(100vh-7rem)]"},i={class:"w-full lg:w-[600px] 2xl:w-[800px]"},a={class:"p-8"},s={class:"grid grid-cols-12 gap-3"},l={class:"col-span-12"},c={class:"flex justify-end gap-4"},u={class:"col-span-10"},d={class:"col-span-2"},p={class:"col-span-12 grid grid-cols-12 gap-3"},h={class:"col-span-12"},f={key:0,class:"text-red-500"},m={key:1,class:"text-red-500"},g={class:"col-span-12"},v=["textContent"],y={class:"relative"},b={key:0,class:"text-red-500"},x={key:0,class:"col-span-12"},w={for:"repeatUnit",class:"block"},k={value:null,disabled:""},_=["value"],E={key:0,class:"text-red-500"},C={key:1,class:"col-span-12 md:col-span-4 flex flex-col space-y-3"},N={class:"inline-flex items-center"},S={class:"mr-1"},V=["textContent"],A={key:0,class:"text-red-500"},D={class:"inline-flex items-center"},M={class:"mr-1"},T=["textContent"],B={key:0,class:"text-red-500"},O={key:2,class:"col-span-12 md:col-span-8 columns-2"},P={class:"text-sm font-medium"},L=["textContent"],I={class:"col-span-12"},j={class:"block"},R={class:"relative cursor-pointer"},$={class:"block w-full bg-slate-100 border-none px-4 py-2"},z={key:0},F={key:0,class:"text-red-500"},H={class:"col-span-12"},U={key:0,class:"text-red-500"},W={class:"col-span-12"},q={key:0,class:"text-red-500"},Y={class:"col-span-12"},G={key:0},K=["textContent"],J={class:"relative"},X={key:1,class:"text-red-500"},Z={class:"col-span-12"},Q={for:"category",class:"block"},ee={value:null,disabled:""},te=["value"],ne=["value"],re={key:0,class:"text-red-500"},oe={key:0,class:"col-span-12"},ie={key:1,class:"col-span-12"},ae={for:"user-search",class:"block"},se={key:0,class:"absolute z-10 w-full bg-white border border-gray-300 rounded shadow-lg mt-1 max-h-60 overflow-auto"},le=["onClick"],ce={key:0},ue={for:"user-search",class:"block"},de={class:"col-span-12"},pe={class:"mt-8 mb-4"},he={key:0,class:"text-red-500"},fe={key:0,class:"text-red-500"},me={key:0,class:"text-red-500"},ge={key:1,class:"text-red-500"},ve={key:2,class:"text-red-500"},ye={class:"flex-grow p-8 border-l"},be={class:"max-h-96 relative mb-4 group"},xe={key:0,class:"absolute top-4 left-4 bg-gradient-to-b from-cm-primary to-cm-primary text-white px-2 py-2 rounded shadow"},we={class:"w-full text-center"},ke={key:1,class:"absolute top-4 right-4 text-white grid grid-cols-1 gap-2"},_e={class:"col-span-1 bg-gradient-to-b from-cm-primary to-cm-primary px-2 py-2 rounded shadow"},Ee={class:"w-full text-center"},Ce={class:"w-full text-center -mt-2"},Ne={key:0,class:"col-span-1 bg-gradient-to-b from-cm-primary to-cm-primary px-2 py-2 rounded shadow"},Se={class:"w-full text-center"},Ve=["src"],Ae={class:"bg-slate-100 px-4 py-2 rounded-md cursor-pointer absolute top-2 left-2 opacity-1 group-hover:opacity-100"},De={class:"flex gap-4"},Me={class:"row"},Te={key:0,class:"col-span-6 sm:col-span-12 mt-5"},Be={class:"flex items-center p-4 bg-slate-50 border-b text-base"},Oe=["src"],Pe={key:0,class:"flex items-center px-2 pt-2"},Le=["href"],Ie={key:1,class:"flex items-center px-2 pt-2"},je=["href"],Re={key:2,class:"flex px-2 pt-2"},$e={key:1,class:"col-span-6 sm:col-span-12 mt-5"},ze={class:"flex items-center p-4 bg-slate-50 border-b text-base"},Fe=["src"],He={key:0,class:"flex items-center pt-2"},Ue=["href"],We={key:1,class:"flex items-center pt-2"},qe=["href"],Ye={key:2,class:"flex px-2 pt-2"},Ge={class:"col-span-6 sm:col-span-12 mt-5"},Ke={class:"my-4"},Je={class:"absolute top-0 right-0 flex text-sm"},Xe=["onClick"],Ze=["onClick"],Qe=["onClick"],et={class:"p-4"},tt={class:"flex justify-center gap-2"};var nt=n(641),rt=n(8367),ot=n(9506),it=n(6753),at=n(4551),st=n(5384),lt=n(6993),ct={class:"tooltip absolute whitespace-nowrap -top-11 left-1/2 -translate-x-1/2 scale-0 group-hover:scale-100 transition-transform origin-bottom bg-cm-primary text-cm-secondary px-2 py-1 rounded-md pointer-events-none"};const ut=(0,nt.pM)({emits:["onClick"],props:{tooltipText:{type:String,required:!0}},methods:{click:function(){this.$emit("onClick")}}});var dt=n(5072),pt=n.n(dt),ht=n(710),ft={insert:"head",singleton:!1};pt()(ht.A,ft);ht.A.locals;var mt=n(6262);const gt=(0,mt.A)(ut,[["render",function(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("button",{onClick:t[0]||(t[0]=function(){return e.click&&e.click.apply(e,arguments)}),class:"bg-slate-100 px-4 py-2 rounded-md cursor-pointer active:bg-slate-200 hover:bg-slate-200 relative group"},[(0,r.createElementVNode)("div",ct,(0,r.toDisplayString)(e.tooltipText),1),(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-8050cc2e"]]);var vt=n(7400),yt={class:"mark relative inline-flex"},bt={class:"popover"};const xt={name:"Badge.vue"};var wt=n(4181),kt={insert:"head",singleton:!1};pt()(wt.A,kt);wt.A.locals;const _t=(0,mt.A)(xt,[["render",function(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",yt,[t[0]||(t[0]=(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"w-3 h-3"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zM8.94 6.94a.75.75 0 11-1.061-1.061 3 3 0 112.871 5.026v.345a.75.75 0 01-1.5 0v-.5c0-.72.57-1.172 1.081-1.287A1.5 1.5 0 108.94 6.94zM10 15a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"})],-1)),(0,r.createElementVNode)("div",bt,[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)])])}],["__scopeId","data-v-9b961684"]]);var Et=n(6581),Ct=n(1963),Nt=n(3963),St=n(948),Vt=n(5846),At=n(9220),Dt={class:"info-button-wrapper relative"},Mt=["innerHTML"];const Tt=(0,nt.pM)({props:{tooltipTextKey:{type:String,required:!0}},data:function(){return{showTooltip:!1}}});var Bt=n(6119),Ot={insert:"head",singleton:!1};pt()(Bt.A,Ot);Bt.A.locals;const Pt=(0,mt.A)(Tt,[["render",function(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",Dt,[(0,r.createElementVNode)("button",{class:"info-button py-1 px-2 bg-transparent roun
2ded text-sm transition ease-in-out duration-150",onMouseover:t[0]||(t[0]=function(t){return e.showTooltip=!0}),onFocus:t[1]||(t[1]=function(t){return e.showTooltip=!0}),onMouseleave:t[2]||(t[2]=function(t){return e.showTooltip=!1}),onBlur:t[3]||(t[3]=function(t){return e.showTooltip=!1})},t[4]||(t[4]=[(0,r.createElementVNode)("svg",{viewBox:"0 0 24 24",fill:"currentColor",class:"absolute top-0 left-0 text-slate-500 w-8 h-8"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 01.67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 11-.671-1.34l.041-.022zM12 9a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"})],-1)]),32),(0,r.withDirectives)((0,r.createElementVNode)("div",{class:"tooltip absolute w-auto p-2 mt-3 bg-slate-100 text-base text-xs rounded-md shadow-lg",innerHTML:e.__(e.tooltipTextKey),style:(0,r.normalizeStyle)({top:"100%",opacity:e.showTooltip?1:0,visibility:e.showTooltip?"visible":"hidden"})},null,12,Mt),[[r.vShow,e.showTooltip]])])}],["__scopeId","data-v-d9f7e9b8"]]);function Lt(e){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lt(e)}function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Lt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Lt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Lt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Rt=(0,nt.pM)({layout:rt.A,components:{popover:_t,LmDatePicker:Vt.A,LmInputText:ot.zX,LmTextarea:ot.EZ,LmTexteditor:it.A,LmCheckBox:st.A,LmRadioGroup:at.A,LmImageGalleryUpload:lt.A,buttonTooltip:gt,toggle:vt.A,LmAccordion:Et.A,LmInputNumber:ot.$_,categoryBadge:Ct.A,dateBadge:Nt.A,Banner:At.A,TagSelector:ot.Cx,money3:St.v2,LmInfo:Pt},props:{categories:{type:Object},annonceCopy:{type:Object,required:!1},annonceEdit:{type:Object,required:!1},editmode:{default:!1},users:{type:Object,required:!1,default:[]}},data:function(){return{componentsUpdateCounter:0,datePickerEndRecuringKey:0,repeatUnits:[{id:1,title:this.__("Journalier"),name:this.__("jour"),typeName:"day"},{id:2,title:this.__("Hebdomadaire"),name:this.__("semaine"),typeName:"week"},{id:3,title:this.__("Mensuel"),name:this.__("mois"),typeName:"month"},{id:4,title:this.__("Annuel"),name:this.__("année"),typeName:"year"}],annonceData:{status:0,type:"annonce",tags:[],headerImage:null,category:null,other_user_id:null,published_at:null,showEmail:!0,showPhone:!0,showAddress:!0,title:"",description:"",hasPrice:0,price:0,allDayEvent:!1,isRecuringEvent:!1,repeatUnit:null,repeatMultiple:1,repeatQuantity:1,nthDayOfMonth:null,range:{start:new Date,end:new Date},components:[],contact:{email:this.$page.props.user.email,phone:this.$page.props.user.phone,street:this.$page.props.user.street,city:this.$page.props.user.city,zip:this.$page.props.user.zip_code}},existingComponentsToRemove:[],searchQuery:"",showDropdown:!1}},mounted:function(){var e=this;if(this.annonceCopy&&this.editmode||!this.route().params.type||(this.annonceData.type=route().params.type),this.annonceData.showEmail=!0,this.annonceData.showPhone=!1,this.annonceData.showAddress=!1,(this.annonceCopy||this.editmode)&&(this.annonceCopy.price&&(this.annonceData.hasPrice=1,this.annonceData.price=Number(this.annonceCopy.price.amount)/100),this.annonceData.other_user_id=this.annonceCopy.user_id,this.annonceData.category=this.annonceCopy.category_id,this.annonceData.showEmail=!!this.annonceCopy.showEmail,this.annonceData.showPhone=!!this.annonceCopy.showPhone,this.annonceData.showAddress=!!this.annonceCopy.showAddress,this.annonceData.type=this.annonceCopy.type,this.annonceData.title=this.annonceCopy.title,this.annonceCopy.description&&(this.annonceData.description=this.annonceCopy.description),this.annonceData.allDayEvent=this.annonceCopy.all_day_event,this.annonceData.isRecuringEvent=this.annonceCopy.is_recuring_event,this.annonceData.repeatQuantity=this.annonceCopy.repeat_quantity,this.annonceData.repeatMultiple=this.annonceCopy.repeat_multiple,this.annonceData.repeatUnit=this.annonceCopy.repeat_unit,this.annonceData.nthDayOfMonth=this.annonceCopy.nth_day_of_month,this.annonceData.range.start=new Date(this.annonceCopy.start_date),this.annonceData.range.end=new Date(this.annonceCopy.end_date),this.annonceData.contact.email=this.annonceCopy.email,this.annonceData.contact.phone=this.annonceCopy.phone,this.annonceData.contact.street=this.annonceCopy.street,this.annonceData.contact.city=this.annonceCopy.city,this.annonceData.contact.zip=this.annonceCopy.zip,(this.editmode||this.annonceCopy)&&this.annonceCopy.component.forEach((function(t){if(e.annonceData.components.push({type:t.type,content:t.content,key:Math.random().toString(36).slice(2),order:t.order,id:t.id}),"gallery"==t.type){var n=e.annonceData.components.findIndex((function(e){return e.id===t.id}));if(n>
2=0)e.annonceData.components[n].content=[],t.gallery.forEach((function(t){e.annonceData.components[n].content.push(t)}));else{var r={type:t.type,content:[],key:Math.random().toString(36).slice(2),order:t.order,id:t.id};t.gallery.forEach((function(e){r.content.push(e)})),e.annonceData.components.push(r)}}else{var o={type:t.type,content:[],key:Math.random().toString(36).slice(2),order:t.order,id:t.id},i=e;t.gallery.forEach((function(e){var t=JSON.parse(JSON.stringify(e)),n=new XMLHttpRequest;t.original_url&&t.original_url.includes("wp-content"),n.open("GET",t.original_url.replace("www",i.$page.props.commune.slug)),n.responseType="blob",n.onload=function(n){if(200==this.status){var r=new Blob([this.response],{type:e.mime_type});t.blobUrl=URL.createObjectURL(r),t.blob=r}else i.emitter.emit("lm-notification",{category:"error",text:i.__("Bild konnte nicht geladen werden.")})},n.onerror=function(){i.emitter.emit("lm-notification",{category:"error",text:i.__("Bild konnte nicht geladen werden.")})},n.onabort=function(){i.emitter.emit("lm-notification",{category:"error",text:i.__("Bild konnte nicht geladen werden.")})},n.send(),o.content.push(t)}))}})),this.annonceCopy.tags.length>
20&&this.annonceCopy.tags.forEach((function(t){e.annonceData.tags.push(t.name.nl)})),this.editmode&&(this.annonceData.id=this.annonceCopy.id,this.annonceData.published_at=this.annonceCopy.published_at?new Date(this.annonceCopy.published_at):new Date),this.annonceCopy.header_image_url)){var t=this,n=new XMLHttpRequest;this.annonceCopy.image&&this.annonceCopy.image.includes("wp-content"),this.annonceCopy.image=n.open("GET",this.annonceCopy.header_image_url.replace("www",this.$page.props.commune.slug)),n.responseType="blob",n.onload=function(e){200===e.currentTarget.status?t.annonceData.headerImage=n.response:t.emitter.emit("lm-notification",{category:"error",text:t.__("Bild konnte nicht geladen werden.")})},n.onerror=function(){t.emitter.emit("lm-notification",{category:"error",text:t.__("Bild konnte nicht geladen werden.")})},n.onabort=function(){t.emitter.emit("lm-notification",{category:"error",text:t.__("Bild konnte nicht geladen werden.")})},n.send()}},methods:{getInitialImages:function(e){return e&&e.gallery?imagesUploaded(e):[]},updateTags:function(e){this.annonceData.tags=e},store:function(e){if(this.$page.props.loggedin)if(this.$page.props.userRole)if(4!==this.$page.props.userRole&&0!==this.$page.props.userRole){this.cleanupComponents(),this.updateOrder(),this.annonceData.status=e;var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this.annonceData);t.published_at instanceof Date&&(t.published_at=this.$dayjs(t.published_at).format("YYYY-MM-DD HH:mm:ss")),this.existingComponentsToRemove&&(t.rm_components=this.existingComponentsToRemove),null!==t.other_user_id&&(t.user_id=t.other_user_id),this.editmode?this.$inertia.post(route("annonces.update",{commune:this.$page.props.commune.slug}),t):this.$inertia.post(route("annonces.store",{commune:this.$page.props.commune.slug}),t)}else this.emitter.emit("lm-notification",{category:"error",text:this.__("Vous n'avez pas les droits nécessaires pour publier.")});else this.emitter.emit("lm-notification",{category:"error",text:this.__("Rôle utilisateur non défini.")});else this.emitter.emit("lm-notification",{category:"error",text:this.__("Veuillez vous connecter pour continuer.")})},onUserChange:function(e){var t=this.sortedUsers.find((function(t){return t.id==e.target.value}));t&&(this.annonceData.contact.email=t.email,this.annonceData.contact.phone=t.phone,this.annonceData.contact.street=t.street,this.annonceData.contact.zip=t.zip_code,this.annonceData.contact.city=t.city)},deleteComponent:function(e){this.updateOrder(),e.id&&this.existingComponentsToRemove.push(e),this.annonceData.components.splice(this.annonceData.components.indexOf(e),1),this.updateOrder()},moveComponent:function(e,t){var n="up"===e?this.annonceData.components.indexOf(t)-1:this.annonceData.components.indexOf(t)+1;this.annonceData.components.splice(this.annonceData.components.indexOf(t),1),this.annonceData.components.splice(n,0,t),this.updateOrder()},updateOrder:function(){for(var e=0;e<this.annonceData.components.length;e++)this.annonceData.components[e].order=e},cleanupComponents:function(){for(var e=this.annonceData.components.length-1;e>=0;e--){var t=!1;this.annonceData.components[e].content||(this.annonceData.components.splice(e,1),t=!0),!t&&Array.isArray(this.annonceData.components[e].content)&&0===this.annonceData.components[e].content.length&&this.annonceData.components.splice(e,1)}},imagesUploaded:function(e){var t=this;this.annonceData.components[this.annonceData.components.indexOf(e.node)].content=[],e.files.forEach((function(n){t.annonceData.components[t.annonceData.components.indexOf(e.node)].content.push(n)}))},addComponent:function(e){switch(e){case"text":this.annonceData.components.push({type:"text",content:"<p>"+this.__("Nouveau text")+"</p>",key:Math.random().toString(36).slice(2),order:this.annonceData.components.length});break;case"gallery":this.annonceData.components.push({type:"gallery",content:"",ke
2y:Math.random().toString(36).slice(2),order:this.annonceData.components.length})}},getImgSrc:function(e){return URL.createObjectURL(e)},changeFile:function(e){this.annonceData.headerImage=e.target.files[0]},selectUser:function(e){this.annonceData.other_user_id=e.id,this.annonceData.contact.email=e.email,this.annonceData.contact.phone=e.phone,this.annonceData.contact.street=e.street,this.annonceData.contact.city=e.city,this.annonceData.contact.zip=e.zip_code,this.searchQuery="".concat(e.name," ").concat(e.first_name),this.showDropdown=!1}},computed:{examples:function(){var e=this,t=[];if(!0===this.annonceData.isRecuringEvent&&this.annonceData.repeatUnit&&this.annonceData.repeatQuantity){var n=this.annonceData.range.start;t.push(n);var r=n.add(this.annonceData.repeatMultiple,this.repeatUnits.find((function(t){return t.id===e.annonceData.repeatUnit})).typeName);t.push(r);for(var o=1;o<this.annonceData.repeatQuantity;o++)t.push(r.add(this.annonceData.repeatMultiple*o,this.repeatUnits.find((function(t){return t.id===e.annonceData.repeatUnit})).typeName));return t}return null},filteredArchivesCategories:function(){var e=this;return this.categories.filter((function(t){return t.name[e.$page.props.locale].includes("Archiv")}))},filteredNotArchivesCategories:function(){var e=this;return this.categories.filter((function(t){return!t.name[e.$page.props.locale].includes("Archiv")}))},sortedUsers:function(){return this.users.sort((function(e,t){return e.name.localeCompare(t.name)}))},filteredUsers:function(){var e=this;return this.sortedUsers.filter((function(t){return"".concat(t.name," ").concat(t.first_name).toLowerCase().includes(e.searchQuery.toLowerCase())||t.email.toLowerCase().includes(e.searchQuery.toLowerCase())}))},contactPaddingBottom:function(){return this.annonceData.showEmail||this.annonceData.showPhone||this.annonceData.showAddress}}});var $t=n(4347),zt={insert:"head",singleton:!1};pt()($t.A,zt);$t.A.locals;const Ft=(0,mt.A)(Rt,[["render",function(e,t,n,nt,rt,ot){var it,at,st,lt=(0,r.resolveComponent)("Head"),ct=(0,r.resolveComponent)("Banner"),ut=(0,r.resolveComponent)("lm-radio-group"),dt=(0,r.resolveComponent)("lm-info"),pt=(0,r.resolveComponent)("lm-check-box"),ht=(0,r.resolveComponent)("lm-date-picker"),ft=(0,r.resolveComponent)("lm-input-number"),mt=(0,r.resolveComponent)("lm-input-text"),gt=(0,r.resolveComponent)("lm-textarea"),vt=(0,r.resolveComponent)("money3"),yt=(0,r.resolveComponent)("tag-selector"),bt=(0,r.resolveComponent)("Text"),xt=(0,r.resolveComponent)("toggle"),wt=(0,r.resolveComponent)("lm-accordion"),kt=(0,r.resolveComponent)("category-badge"),_t=(0,r.resolveComponent)("date-badge"),Et=(0,r.resolveComponent)("lm-texteditor"),Ct=(0,r.resolveComponent)("lm-image-gallery-upload"),Nt=(0,r.resolveComponent)("button-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(lt,{title:"Créer une annonce ou un évenements"}),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("section",i,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("button",{class:"btn-secondary",onClick:t[0]||(t[0]=function(t){return e.store(0)})},(0,r.toDisplayString)(e.__("Als Entwurf speichern")),1),(0,r.createElementVNode)("button",{class:"btn-primary",onClick:t[1]||(t[1]=function(t){return e.store(1)})},(0,r.toDisplayString)(e.__("Veröffentlichen")),1)]),(0,r.createVNode)(ct)]),(0,r.createElementVNode)("div",u,[(0,r.createVNode)(ut,{disabled:!0,modelValue:e.annonceData.type,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.annonceData.type=t}),type:"bordered","classes-list":"flex space-x-2",value:e.annonceData.type,values:[{name:"type",value:"annonce",label:e.__("Annonce")},{name:"type",value:"event",label:e.__("Event")}]},null,8,["modelValue","value","values"])]),(0,r.createElementVNode)("div",d,["event"===e.annonceData.type?((0,r.openBlock)(),(0,r.createBlock)(dt,{key:0,"aria-label":"",class:"absolute left-2",tooltipTextKey:"<b>Définir Date :</b> Double clic pour une date unique, clic sur la date de début puis clic sur la date de fin pour une période.<br /> <b>Récurrence :</b> Cochez pour des événements réguliers.<br /> <b>Fréquence : </b>Sélectionnez l'intervalle (ex. hebdomadaire).<br /> <b>Répétitions :</b> Fixez le nombre d'occurrences.<br />"})):(0,r.createCommentVNode)("",!0)]),(0,r.createVNode)(r.Transition,null,{default:(0,r.withCtx)((function(){return[(0,r.withDirectives)((0,r.createElementVNode)("div",p,[(0,r.createElementVNode)("div",h,[(0,r.createVNode)(pt,{modelValue:e.annonceData.allDayEvent,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.annonceData.allDayEvent=t}),values:[{name:"allDayEvent",value:1===e.annonceData.allDayEvent,label:e.__("Ãvénement sur toute la journée")}]},null,8,["modelValue","values"]),e.$page.props.errors.allDayEvent?((0,r.openBlock)(),(0,r.createElementBlock)("span",f,(0,r.toDisplayString)(e.$page.props.errors.allDayEvent),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(pt,{modelValue:e.annonceData.isRecuringEvent,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.annonceData.isRecuringEvent=t}),values:[{name:"isRecuringEvent",value:1===e.annonceData.isRecuringEvent,label:e.__("Ãvénement récurent")}]},null,8,["modelValue","values"]),e.$page.props.errors.isRecuringEvent?((0,r.openBlock)(),(0,r.createElementBlock)("span",m,(0,r.toDisplayString)(e.$page.props.errors.isRecuringEvent),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",g,[(0,r.createElementVNode)("label",null,[(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(e.__("Dates de votre événement"))},null,8,v),(0,r.createElementVNode)("div",y,[(0,r.createVNode)(ht,{modelValue:e.annonceData.range,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.annonceData.range=t}),"show-time":!e.annonceData.allDayEvent,"is-range":""},null,8,["modelValue","show-time"]),e.$page.props.errors.allDayEvent?((0,r.openBlock)(),(0,r.createElementBlock)("span",b,(0,r.toDisplayString)(e.$page.props.errors.allDayEvent),1)):(0,r.createCommentVNode)("",!0)])])]),e.annonceData.isRecuringEvent?((0,r.openBlock)(),(0,r.createElementBlock)("div",x,[(0,r.createElementVNode)("label",w,(0,r.toDisplayString)(e.__("Plannifier plusieurs événements")),1),(0,r.withDirectives)((0,r.createElementVNode)("select",{"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.annonceData.repeatUnit=t}),id:"repeatUnit",class:"block mb-2 rounded w-full bg-slate-100/80 border-none focus:ring-gray-200"},[(0,r.createElementVNode)("option",k,(0,r.toDisplayString)(e.__("Bitte wählen")),1),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.repeatUnits,(function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)("option",{value:t.id},(0,r.toDisplayString)(e.__(t.title)),9,_)})),256))],512),[[r.vModelSelect,e.annonceData.repeatUnit]]),e.$page.props.errors.repeatUnit?((0,r.openBlock)(),(0,r.createElementBlock)("span",E,(0,r.toDisplayString)(e.$page.props.errors.repeatUnit),1)):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0),e.annonceData.repeatUnit&&e.annonceData.isRecuringEvent?((0,r.openBlock)(),(0,r.createElementBlock)("div",C,[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",N,[(0,r.createElementVNode)("span",S,(0,r.toDisplayString)(e.__("Chaque")),1),(0,r.createVNode)(ft,{class:"mr-1",min:"1",max:"25",placeholder:"1",modelValue:e.annonceData.repeatMultiple,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.annonceData.repeatMultiple=t})},null,8,["modelValue"]),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(e.repeatUnits.find((function(t){return t.id===e.annonceData.repeatUnit})).name)},null,8,V)]),e.$page.props.errors.repeatMultiple?((0,r.openBlock)(),(0,r.createElementBlock)("span",A,(0,r.toDisplayString)(e.$page.props.errors.repeatMultiple),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",D,[(0,r.createElementVNode)("span",M,
2(0,r.toDisplayString)(e.__("Répéter")),1),(0,r.createVNode)(ft,{class:"mr-1",min:"1",max:"50",placeholder:"1",modelValue:e.annonceData.repeatQuantity,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.annonceData.repeatQuantity=t})},null,8,["modelValue"]),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(e.__("fois"))},null,8,T)]),e.$page.props.errors.repeatQuantity?((0,r.openBlock)(),(0,r.createElementBlock)("span",B,(0,r.toDisplayString)(e.$page.props.errors.repeatQuantity),1)):(0,r.createCommentVNode)("",!0)])])):(0,r.createCommentVNode)("",!0),e.annonceData.repeatUnit&&e.annonceData.isRecuringEvent?((0,r.openBlock)(),(0,r.createElementBlock)("div",O,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.examples,(function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("span",P,[(0,r.createTextVNode)("Réc. "+(0,r.toDisplayString)(n+1)+": ",1),(0,r.createElementVNode)("span",{class:"font-bold",textContent:(0,r.toDisplayString)(e.$dayjs(t).locale(e.$page.props.locale).format(e.annonceData.allDayEvent?"ddd DD.MM.YYYY":"ddd DD.MM.YYYY, HH:mm"))},null,8,L)])])})),256))])):(0,r.createCommentVNode)("",!0)],512),[[r.vShow,"event"===e.annonceData.type]])]})),_:1}),(0,r.createElementVNode)("div",I,[(0,r.createElementVNode)("label",j,[(0,r.createElementVNode)("div",R,[(0,r.createElementVNode)("span",$,[(0,r.withDirectives)((0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.__("Bild hinzufügen")),513),[[r.vShow,!e.annonceData.headerImage]]),e.annonceData.headerImage?((0,r.openBlock)(),(0,r.createElementBlock)("span",z,(0,r.toDisplayString)(e.__("Bild ändern")),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("input",{hidden:"",type:"file",onChange:t[9]||(t[9]=function(){return e.changeFile&&e.changeFile.apply(e,arguments)}),accept:"image/*",multiple:""},null,32),t[32]||(t[32]=(0,r.createElementVNode)("span",{class:"absolute right-2 -translate-y-2/4 top-2/4 text-white bg-cm-primary p-2 text-iconinput rounded-full"},[(0,r.createElementVNode)("svg",{viewBox:"0 0 20 20",fill:"currentColor",class:"w-4 h-4"},[(0,r.createElementVNode)("path",{d:"M9.25 13.25a.75.75 0 001.5 0V4.636l2.955 3.129a.75.75 0 001.09-1.03l-4.25-4.5a.75.75 0 00-1.09 0l-4.25 4.5a.75.75 0 101.09 1.03L9.25 4.636v8.614z"}),(0,r.createElementVNode)("path",{d:"M3.5 12.75a.75.75 0 00-1.5 0v2.5A2.75 2.75 0 004.75 18h10.5A2.75 2.75 0 0018 15.25v-2.5a.75.75 0 00-1.5 0v2.5c0 .69-.56 1.25-1.25 1.25H4.75c-.69 0-1.25-.56-1.25-1.25v-2.5z"})])],-1))])]),e.$page.props.errors.headerImage?((0,r.openBlock)(),(0,r.createElementBlock)("span",F,(0,r.toDisplayString)(e.$page.props.errors.headerImage),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",H,[(0,r.createVNode)(mt,{maxlength:"100",label:e.__("Titel"),placeholder:e.__("Titre de l'annonce"),modelValue:e.annonceData.title,"onUpdate:modelValue":t[10]||(t[10]=function(t){return e.annonceData.title=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors.title?((0,r.openBlock)(),(0,r.createElementBlock)("span",U,(0,r.toDisplayString)(e.$page.props.errors.title),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",W,[(0,r.createVNode)(gt,{maxlength:"200",label:e.__("Beschreibung"),placeholder:e.__("Beschreibung"),modelValue:e.annonceData.description,"onUpdate:modelValue":t[11]||(t[11]=function(t){return e.annonceData.description=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors.description?((0,r.openBlock)(),(0,r.createElementBlock)("span",q,(0,r.toDisplayString)(e.$page.props.errors.description),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",Y,[(0,r.createVNode)(pt,{modelValue:e.annonceData.hasPrice,"onUpdate:modelValue":t[12]||(t[12]=function(t){return e.annonceData.hasPrice=t}),values:[{name:"hasPrice",value:e.annonceData.hasPrice,label:e.__("Ajouter le prix")}]},null,8,["modelValue","values"]),e.annonceData.hasPrice?((0,r.openBlock)(),(0,r.createElementBlock)("label",G,[(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(e.__("Prix"))}
2,null,8,K),(0,r.createElementVNode)("div",J,[(0,r.createVNode)(vt,(0,r.mergeProps)({class:"rounded block w-full bg-slate-100/80 border-none focus:ring-gray-200",modelValue:e.annonceData.price,"onUpdate:modelValue":t[13]||(t[13]=function(t){return e.annonceData.price=t})},e.config),null,16,["modelValue"])])])):(0,r.createCommentVNode)("",!0),e.$page.props.errors.price?((0,r.openBlock)(),(0,r.createElementBlock)("span",X,(0,r.toDisplayString)(e.$page.props.errors.price),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",Z,[(0,r.createElementVNode)("label",Q,(0,r.toDisplayString)(e.__("Kategorie")),1),(0,r.withDirectives)((0,r.createElementVNode)("select",{"onUpdate:modelValue":t[14]||(t[14]=function(t){return e.annonceData.category=t}),id:"category",class:"block mb-2 rounded w-full bg-slate-100/80 border-none focus:ring-gray-200"},[(0,r.createElementVNode)("option",ee,(0,r.toDisplayString)(e.__("Bitte wählen")),1),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.filteredNotArchivesCategories,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("option",{key:t.id,value:t.id},(0,r.toDisplayString)(t.name[e.$page.props.locale]),9,te)})),128)),t[33]||(t[33]=(0,r.createElementVNode)("option",{disabled:"disabled"}," - Catégories d'archives -- ",-1)),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.filteredArchivesCategories,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("option",{key:t.id,value:t.id},(0,r.toDisplayString)(t.name[e.$page.props.locale]),9,ne)})),128))],512),[[r.vModelSelect,e.annonceData.category]]),e.$page.props.errors.category?((0,r.openBlock)(),(0,r.createElementBlock)("span",re,(0,r.toDisplayString)(e.$page.props.errors.category),1)):(0,r.createCommentVNode)("",!0)]),e.$page.props.commune.enable_tags?((0,r.openBlock)(),(0,r.createElementBlock)("div",oe,[(0,r.createVNode)(yt,{readonly:!e.$page.props.commune.tag_creation,onUpdate:e.updateTags,inputTags:e.annonceData.tags},null,8,["readonly","onUpdate","inputTags"])])):(0,r.createCommentVNode)("",!0),t[35]||(t[35]=(0,r.createElementVNode)("br",null,null,-1)),1===e.$page.props.userRole?((0,r.openBlock)(),(0,r.createElementBlock)("div",ie,[t[34]||(t[34]=(0,r.createElementVNode)("div",{class:"border-b-2 border-slate-100 mt-2 mt-2 rounded relative"},null,-1)),(0,r.createVNode)(bt,{type:"h4"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Réservé aux administrateurs")),1)]})),_:1}),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("label",ae,(0,r.toDisplayString)(e.__("Publier pour un autre utilisateur")),1),(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"text","onUpdate:modelValue":t[15]||(t[15]=function(t){return e.searchQuery=t}),id:"user-search",class:"block mb-2 rounded w-full bg-slate-100/80 border-none focus:ring-gray-200",onFocus:t[16]||(t[16]=function(t){return e.showDropdown=!0})},null,544),[[r.vModelText,e.searchQuery]]),e.showDropdown?((0,r.openBlock)(),(0,r.createElementBlock)("ul",se,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.filteredUsers,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:t.id,class:"p-2 hover:bg-gray-100 cursor-pointer",onClick:function(n){return e.selectUser(t)}},(0,r.toDisplayString)(t.name)+" "+(0,r.toDisplayString)(t.first_name)+" - "+(0,r.toDisplayString)(t.email),9,le)})),128))])):(0,r.createCommentVNode)("",!0)]),"annonce"===e.annonceData.type?((0,r.openBlock)(),(0,r.createElementBlock)("div",ce,[(0,r.createElementVNode)("label",ue,(0,r.toDisplayString)(e.__("Date de publication")),1),(0,r.createVNode)(ht,{modelValue:e.annonceData.published_at,"onUpdate:modelValue":t[17]||(t[17]=function(t){return e.annonceData.published_at=t}),"show-time":!0},null,8,["modelValue"])])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",de,[(0,r.createElementVNode)("h4",pe,(0,r.toDisplayString)(e.__("Kontakt")),1),(0,r.createVNode)(wt,{title:"<svg viewBox='0 0 20 20' fill='currentColor' class='hidden md:inline-block w-4 h-4 mr-2'><path d='M5.433 13.917l1.262-3.155A4 4 0 017.58 9.42l6.92-6.918a2.121 2.121 0 013 3l-6.92 6.918c-.383.383-.84.685-1.343.886l-3.154 1.262a.5.5 0 01-.65-.65z' /><path d='M3.5 5.75c0-.69.56-1.25 1.25-1.25H10A.75.75 0 0010 3H4.75A2.75 2.75 0 002 5.75v9.5A2.75 2.75 0 004.75 18h9.5A2.75 2.75 0 0017 15.25V10a.75.75 0 00-1.5 0v5.25c0 .69-.56 1.25-1.25 1.25h-9.5c-.69 0-1.25-.56-1.25-1.25v-9.5z' /></svg>\n ".concat(e.__("E-Mail anzeigen")),startOpen:!!e.$page.props.errors["contact.email"]},{header:(0,r.withCtx)((function(){return[(0,r.createVNode)(xt,{modelValue:e.annonceData.showEmail,"onUpdate:modelValue":t[18]||(t[18]=function(t){return e.annonceData.showEmail=t}),onChange:t[19]||(t[19]=function(t){return e.annonceData.showEmail=t})},null,8,["modelValue"])]})),default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(mt,{label:e.__("E-Mail"),placeholder:e.__("E-Mail"),modelValue:e.annonceData.contact.email,"onUpdate:modelValue":t[20]||(t[20]=function(t){return e.annonceData.contact.email=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors["contact.email"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",he,(0,r.toDisplayString)(e.$page.props.errors["contact.email"]),1)):(0,r.createCommentVNode)("",!0)])]})),_:1},8,["title","startOpen"]),(0,r.createVNode)(wt,{title:"<svg viewBox='0 0 20 20' fill='currentColor' class='hidden md:inline-block w-4 h-4 mr-2'><path d='M5.433 13.917l1.262-3.155A4 4 0 017.58 9.42l6.92-6.918a2.121 2.121 0 013 3l-6.92 6.918c-.383.383-.84.685-1.343.886l-3.154 1.262a.5.5 0 01-.65-.65z' /><path d='M3.5 5.75c0-.69.56-1.25 1.25-1.25H10A.75.75 0 0010 3H4.75A2.75 2.75 0 002 5.75v9.5A2.75 2.75 0 004.75 18h9.5A2.75 2.75 0 0017 15.25V10a.75.75 0 00-1.5 0v5.25c0 .69-.56 1.25-1.25 1.25h-9.5c-.69 0-1.25-.56-1.25-1.25v-9.5z' /></svg>\n ".concat(e.__("Telefon anzeigen")),startOpen:!!e.$page.props.errors["contact.phone"]},{header:(0,r.withCtx)((function(){return[(0,r.createVNode)(xt,{modelValue:e.annonceData.showPhone,"onUpdate:modelValue":t[21]||(t[21]=function(t){return e.annonceData.showPhone=t}),onChange:t[22]||(t[22]=function(t){return e.annonceData.showPhone=t})},null,8,["modelValue"])]})),default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(mt,{label:e.__("Telefon"),placeholder:e.__("Telefon"),modelValue:e.annonceData.contact.phone,"onUpdate:modelValue":t[23]||(t[23]=function(t){return e.annonceData.contact.phone=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors["contact.phone"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",fe,(0,r.toDisplayString)(e.$page.props.errors["contact.phone"]),1)):(0,r.createCommentVNode)("",!0)])]})),_:1},8,["title","startOpen"]),(0,r.createVNode)(wt,{title:"<svg viewBox='0 0 20 20' fill='currentColor' class='hidden md:inline-block w-4 h-4 mr-2'><path d='M5.433 13.917l1.262-3.155A4 4 0 017.58 9.42l6.92-6.918a2.121 2.121 0 013 3l-6.92 6.918c-.383.383-.84.685-1.343.886l-3.154 1.262a.5.5 0 01-.65-.65z' /><path d='M3.5 5.75c0-.69.56-1.25 1.25-1.25H10A.75.75 0 0010 3H4.75A2.75 2.75 0 002 5.75v9.5A2.75 2.75 0 004.75 18h9.5A2.75 2.75 0 0017 15.25V10a.75.75 0 00-1.5 0v5.25c0 .69-.56 1.25-1.25 1.25h-9.5c-.69 0-1.25-.56-1.25-1.25v-9.5z' /></svg>\n ".concat(e.__("Adresse anzeigen")),startOpen:e.$page.props.errors["contact.street"]||e.$page.props.errors["contact.city"]||e.$page.props.errors["contact.zip"]},{header:(0,r.withCtx)((function(){return[(0,r.createVNode)(xt,{modelValue:e.annonceData.showAddress,"onUpdate:modelValue":t[24]||(t[24]=function(t){return e.annonceData.showAddress=t}),onChange:t[25]||(t[25]=function(t){return e.annonceData.showAddress=t})},null,8,["modelValue"])]})),default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(mt,{label:e.__("Strasse"),placeholder:e.__("Strasse"),modelValue:e.annonceData.contact.street,"onUpdate:modelValue":t[26]||(t[26]=function(t){return e.annonceData.contact.street=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors["contact.street"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",me,(0,r.toDisplayString)(e.$page.props.errors["contact.street"]),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(ft,{min:"1000",class:"mt-4",label:e.__("PLZ"),placeholder:e.__("PLZ"),modelValue:e.annonceData.contact.zip,"onUpdate:modelValue":t[27]||(t[27]=function(t){return e.annonceData.contact.zip=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors["contact.zip"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",ge,(0,r.toDisplayString)(e.$page.props.errors["contact.zip"]),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(mt,{class:"mt-4",label:e.__("Ort"),placeholder:e.__("Ort"),modelValue:e.annonceData.contact.city,"onUpdate:modelValue":t[28]||(t[28]=function(t){return e.annonceData.contact.city=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors["contact.city"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",ve,(0,r.toDisplayString)(e.$page.props.errors["contact.city"]),1)):(0,r.createCommentVNode)("",!0)])]})),_:1},8,["title","startOpen"])])])])]),(0,r.createElementVNode)("section",ye,[(0,r.createElementVNode)("div",be,[e.annonceData.price?((0,r.openBlock)(),(0,r.createElementBlock)("div",xe,[(0,r.createElementVNode)("div",we,[(0,r.createVNode)(bt,{type:"md",as:"span"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.annonceData.price>0?e.annonceData.price+e.__(" CHF"):e.__("Gratuit")),1)]})),_:1})])])):(0,r.createCommentVNode)("",!0),"event"===e.annonceData.type?((0,r.openBlock)(),(0,r.createElementBlock)("div",ke,[(0,r.createElementVNode)("div",_e,[(0,r.createElementVNode)("div",Ee,[(0,r.createVNode)(bt,{type:"h2",as:"span"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$dayjs(e.annonceData.range.start).locale(e.$page.props.locale).format("D"))+(0,r.toDisplayString)(e.$dayjs(e.annonceData.range.start).isSame(e.$dayjs(e.annonceData.range.end),"day")?null:"-"+e.$dayjs(e.annonceData.range.end).locale(e.$page.props.locale).format("D")),1)]})),_:1})]),(0,r.createElementVNode)("div",Ce,[(0,r.createVNode)(bt,{type:"h4",as:"span"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$dayjs(e.annonceData.range.start).locale(e.$page.props.locale).format("MMMM"))+" "+(0,r.toDisplayString)(e.$dayjs(e.annonceData.range.start).isSame(e.$dayjs(),"year")?null:e.$dayjs(e.annonceData.range.start).locale(e.$page.props.locale).format("YYYY")),1)]})),_:1})])]),e.annonceData.allDayEvent?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Ne,[(0,r.createElementVNode)("div",Se,[(0,r.createVNode)(bt,{type:"h4",as:"span"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$dayjs(e.annonceData.range.start).locale(e.$page.props.locale).format("HH:mm"))+" - "+(0,r.toDisplayString)(e.$dayjs(e.annonceData.range.end).locale(e.$page.props.locale).format("HH:mm")),1)]})),_:1})])]))])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("img",{class:"max-h-96",src:e.annonceData.headerImage?e.getImgSrc(e.annonceData.headerImage):null!==(it=null!==(at=null===(st=e.annonceCopy)||void 0===st?void 0:st.header_image_url)&&void 0!==at?at:e.annonceData.header_image_url)&&void 0!==it?it:"event"===e.annonceData.type?"/img/default-event.png":"/img/default-annonce.png"},null,8,Ve),(0,r.createElementVNode)("label",Ae,[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Titelbild hinzufügen"))+" ",1),(0,r.createElementVNode)("input",{hidden:"",type:"file",onChange:t[29]||(t[29]=function(){return e.changeFile&&e.changeFile.apply(e,arguments)}),accept:"image/*"}
2,null,32),(0,r.createVNode)(dt,{"aria-label":"",class:"absolute",tooltipTextKey:"Pour que votre annonce soit bien présentée, l'image d'entête doit mesurer 1200x600 pixels. Si vous ne choisissez pas votre propre image, le logo du Memento apparaîtra automatiquement comme image d'entête."})])]),(0,r.withDirectives)((0,r.createVNode)(bt,{type:"h2"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.annonceData.title),1)]})),_:1},512),[[r.vShow,e.annonceData.title.length>0]]),(0,r.createElementVNode)("div",De,[e.annonceData.category?((0,r.openBlock)(),(0,r.createBlock)(kt,{key:0,category:e.categories.find((function(t){return t.id===e.annonceData.category}))},null,8,["category"])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(_t,{date:e.annonceData.published_at,format:"nice","recurring-parent":e.annonceData.isRecuringEvent?1:null},null,8,["date","recurring-parent"])]),(0,r.createElementVNode)("div",Me,[e.editmode?((0,r.openBlock)(),(0,r.createElementBlock)("div",$e,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["shadow-md rounded-sm text-sm",{"pb-2":e.contactPaddingBottom}])},[(0,r.createElementVNode)("p",ze,[(0,r.createElementVNode)("img",{class:"w-8 h-8 rounded-full mr-2",src:e.annonceCopy.author.profile_photo_url},null,8,Fe),(0,r.createTextVNode)((0,r.toDisplayString)(e.annonceCopy.author.fullName),1)]),e.annonceData.showEmail?((0,r.openBlock)(),(0,r.createElementBlock)("p",He,[(0,r.createElementVNode)("a",{href:"mailto:"+e.annonceData.contact.email},[t[40]||(t[40]=(0,r.createElementVNode)("i",{class:"bi bi-envelope px-2 mr-1"},null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(e.annonceData.contact.email),1)],8,Ue)])):(0,r.createCommentVNode)("",!0),e.annonceData.showPhone?((0,r.openBlock)(),(0,r.createElementBlock)("p",We,[(0,r.createElementVNode)("a",{href:"tel:"+e.annonceData.contact.phone},[t[41]||(t[41]=(0,r.createElementVNode)("i",{class:"bi bi-telephone px-2 mr-1"},null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(e.annonceData.contact.phone),1)],8,qe)])):(0,r.createCommentVNode)("",!0),e.annonceData.showAddress?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ye,[t[43]||(t[43]=(0,r.createElementVNode)("i",{class:"bi bi-geo-alt px-2 mr-1"},null,-1)),(0,r.createElementVNode)("span",null,[(0,r.createTextVNode)((0,r.toDisplayString)(e.annonceData.contact.street),1),t[42]||(t[42]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(e.annonceData.contact.zip+" "+e.annonceData.contact.city),1)])])):(0,r.createCommentVNode)("",!0)],2)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",Te,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["shadow-md rounded-sm text-sm",{"pb-2":e.contactPaddingBottom}])},[(0,r.createElementVNode)("p",Be,[(0,r.createElementVNode)("img",{class:"w-8 h-8 rounded-full mr-2",src:e.$page.props.user.profile_photo_url},null,8,Oe),(0,r.createTextVNode)((0,r.toDisplayString)(e.$page.props.user.fullName),1)]),e.annonceData.showEmail?((0,r.openBlock)(),(0,r.createElementBlock)("p",Pe,[(0,r.createElementVNode)("a",{href:"mailto:"+e.annonceData.contact.email},[t[36]||(t[36]=(0,r.createElementVNode)("i",{class:"bi bi-envelope px-2 mr-1"},null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(e.annonceData.contact.email),1)],8,Le)])):(0,r.createCommentVNode)("",!0),e.annonceData.showPhone?((0,r.openBlock)(),(0,r.createElementBlock)("p",Ie,[(0,r.createElementVNode)("a",{href:"tel:"+e.annonceData.contact.phone},[t[37]||(t[37]=(0,r.createElementVNode)("i",{class:"bi bi-telephone px-2 mr-1"},null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(e.annonceData.contact.phone),1)],8,je)])):(0,r.createCommentVNode)("",!0),e.annonceData.showAddress?((0,r.openBlock)(),(0,r.createElementBlock)("div",Re,[t[39]||(t[39]=(0,r.createElementVNode)("i",{class:"bi bi-geo-alt px-2 mr-1"},null,-1)),(0,r.createElementVNode)("span",null,[(0,r.createTextVNode)((0,r.toDisplayString)(e.annonceData.contact.street),1),t[38]||(t[38]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(e.annonceData.contact.zip+" "+e.annonceData.contact.city),1)])])):(0,r.createCommentVNode)("",!0)],2)])),(0,r.createElementVNode)("div",Ge,[(0,r.withDirectives)((0,r.createElementVNode)("p",{class:"max-w-2xl break-words"},(0,r.toDisplayString)(e.annonceData.description),513),[[r.vShow,e.annonceData.description.length>0]]),(0,r.createElementVNode)("div",Ke,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.annonceData.components,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:o,class:"p-4 border border-dashed my-2 relative group"},["text"===n.type?((0,r.openBlock)(),(0,r.createBlock)(Et,{key:0,modelValue:n.content,"onUpdate:modelValue":function(e){return n.content=e}},null,8,["modelValue","onUpdate:modelValue"])):(0,r.createCommentVNode)("",!0),"gallery"===n.type?((0,r.openBlock)(),(0,r.createBlock)(Ct,{key:1,onOnfilechange:e.imagesUploaded,initialImages:n.content||[],node:n,label:e.__("Bild hochladen")},null,8,["onOnfilechange","initialImages","node","label"])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",Je,[(0,r.withDirectives)((0,r.createElementVNode)("button",{onClick:function(t){return e.moveComponent("up",n)},class:"lg:opacity-0 group-hover:opacity-100 px-2 py-1 bg-slate-100 cursor-pointer transition-opacity active:bg-slate-200 hover:bg-slate-200"},t[44]||(t[44]=[(0,r.createElementVNode)("i",{class:"bi bi-arrow-up"},null,-1)]),8,Xe),[[r.vShow,o>0]]),(0,r.withDirectives)((0,r.createElementVNode)("button",{onClick:function(t){return e.moveComponent("down",n)},class:"lg:opacity-0 group-hover:opacity-100 px-2 py-1 bg-slate-100 cursor-pointer transition-opacity active:bg-slate-200 hover:bg-slate-200"},t[45]||(t[45]=[(0,r.createElementVNode)("i",{class:"bi bi-arrow-down"},null,-1)]),8,Ze),[[r.vShow,o<e.annonceData.components.length-1]]),(0,r.createElementVNode)("button",{onClick:function(t){return e.deleteComponent(n)},class:"lg:opacity-0 group-hover:opacity-100 px-2 py-1 bg-slate-100 cursor-pointer transition-opacity active:bg-slate-200 hover:bg-slate-200"},t[46]||(t[46]=[(0,r.createElementVNode)("i",{class:"bi bi-trash-fill"},null,-1)]),8,Qe)])])})),128))]),(0,r.createElementVNode)("div",et,[(0,r.createElementVNode)("div",tt,[(0,r.createVNode)(Nt,{onClick:t[30]||(t[30]=function(t){return e.addComponent("text")}),tooltipText:e.__("Ajouter un texte")},{default:(0,r.withCtx)((function(){return t[47]||(t[47]=[(0,r.createElementVNode)("svg",{fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12"})],-1)])})),_:1},8,["tooltipText"]),(0,r.createVNode)(Nt,{onClick:t[31]||(t[31]=function(t){return e.addComponent("gallery")}),tooltipText:e.__("Ajouter une galerie média")},{default:(0,r.withCtx)((function(){return t[48]||(t[48]=[(0,r.createElementVNode)("svg",{fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 001.5-1.5V6a1.5 1.5 0 00-1.5-1.5H3.75A1.5 1.5 0 002.25 6v12a1.5 1.5 0 001.5 1.5zm10.5-11.25h.008v.008h-.008V8.25zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"})],-1)])})),_:1},8,["tooltipText"])])])])])])])],64)}],["__scopeId","data-v-6f8392b1"]])}
2,6439:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>N});var r=n(6301),o={key:0,class:"mb-4 font-medium text-sm text-green-600"},i={class:"mt-4"},a={class:"block mt-4"},s={class:"flex items-center"},l={class:"ml-2 text-sm text-gray-600"},c={class:"flex items-center justify-end mt-4"},u=["disabled","value"],d=["href"];var p=n(641),h=n(4046),f=n(8045),m=n(1816),g=n(4296),v=n(7977),y=n(5393),b=n(5860),x=n(9234);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=w(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==w(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const C=(0,p.pM)({components:{Head:x.p3,JetAuthenticationCard:h.A,JetAuthenticationCardLogo:f.A,JetButton:m.A,JetInput:g.A,JetCheckbox:v.A,JetLabel:y.A,JetValidationErrors:b.A,Link:x.N_},props:{canResetPassword:Boolean,status:String},data:function(){return{form:this.$inertia.form({email:"",password:"",remember:!1})}},methods:{submit:function(){var e=this;this.form.transform((function(t){return _(_({},t),{},{remember:e.form.remember?"on":""})})).post(this.route("login"),{onFinish:function(){return e.form.reset("password")}})}}});const N=(0,n(6262).A)(C,[["render",function(e,t,n,p,h,f){var m=(0,r.resolveComponent)("Head"),g=(0,r.resolveComponent)("Link"),v=(0,r.resolveComponent)("jet-validation-errors"),y=(0,r.resolveComponent)("Text"),b=(0,r.resolveComponent)("jet-label"),x=(0,r.resolveComponent)("jet-input"),w=(0,r.resolveComponent)("jet-checkbox"),k=(0,r.resolveComponent)("jet-authentication-card");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(m,{title:e.__("Anmelden")},null,8,["title"]),(0,r.createVNode)(k,null,{logo:(0,r.withCtx)((function(){return[(0,r.createVNode)(g,{href:e.route("landingpage.home")},{default:(0,r.withCtx)((function(){return t[4]||(t[4]=[(0,r.createElementVNode)("img",{src:"/img/admin/[email protected]",alt:"Logo LeMemento"},null,-1)])})),_:1},8,["href"])]})),default:(0,r.withCtx)((function(){return[(0,r.createVNode)(v,{class:"mb-4"}),e.status?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,(0,r.toDisplayString)(e.status),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(y,{type:"h2",text:e.__("Anmelden"),class:"mb-5 font-medium"},null,8,["text"]),(0,r.createElementVNode)("form",{onSubmit:t[3]||(t[3]=(0,r.withModifiers)((function(){return e.submit&&e.submit.apply(e,arguments)}),["prevent"]))},[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(b,{for:"email",value:e.__("E-Mail")},null,8,["value"]),(0,r.createVNode)(x,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e.form.email,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.form.email=t}),required:"",autofocus:""},null,8,["modelValue"])]),(0,r.createElementVNode)("div",i,[(0,r.createVNode)(b,{for:"password",value:e.__("Passwort")},null,8,["value"]),(0,r.createVNode)(x,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:e.form.password,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.form.password=t}),required:"",autocomplete:"current-password"},null,8,["modelValue"])]),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("label",s,[(0,r.createVNode)(w,{name:"remember",checked:e.form.remember,"onUpdate:checked":t[2]||(t[2]=function(t){return e.form.remember=t})},null,8,["checked"]),(0,r.createElementVNode)("span",l,(0,r.toDisplayString)(e.__("Angemeldet bleiben")),1)])]),(0,r.createElementVNode)("div",c,[e.canResetPassword?((0,r.openBlock)(),(0,r.createBlock)(g,{key:0,href:e.route("password.request"),class:"underline text-sm text-gray-600 hover:text-gray-900"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Passwort vergessen?")),1)]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("input",{type:"submit",class:(0,r.normalizeClass)(["btn-primary bg-lm-blue cursor-pointer hover:bg-lm-light-blue ml-4 text-white",{"opacity-25":e.form.processing}]),disabled:e.form.processing,value:e.__("Anmelden")},null,10,u)])],32),t[6]||(t[6]=(0,r.createElementVNode)("hr",{class:"mt-5"},null,-1)),(0,r.createVNode)(y,{type:"p",text:e.__("Vous n'avez pas encore de compte ?"),class:"mb-3 mt-5 font-medium"},null,8,["text"]),(0,r.createElementVNode)("a",{href:e.route("register"),class:"inline-flex justify-center items-center py-3 px-5 mr-3 text-base font-medium text-center text-white rounded-lg bg-lm-blue hover:bg-lm-light-blue focus:ring-4 focus:ring-lm-blue-300"},[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Créer un compte"))+" ",1),t[5]||(t[5]=(0,r.createElementVNode)("svg",{class:"ml-2 -mr-1 w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1))],8,d)]})),_:1})],64)}]])},6456:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(6301),o={class:"container mx-auto"},i={class:"my-4"},a={class:"my-4"};var s=n(641),l=n(8367),c=n(6753),u=n(6993);const d=(0,s.pM)({layout:l.A,components:{LmTexteditor:c.A,LmImageGalleryUpload:u.A},data:function(){return{content:"<p>Text component</p>",content2:"<p>Second text component</p>"}},methods:{imagesUploaded:function(e){}}});const p=(0,n(6262).A)(d,[["render",function(e,t,n,s,l,c){var u=(0,r.resolve
2Component)("Text"),d=(0,r.resolveComponent)("lm-image-gallery-upload"),p=(0,r.resolveComponent)("lm-texteditor");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createVNode)(u,{type:"h2",text:e.__("Components")},null,8,["text"])]),(0,r.createVNode)(u,{type:"h2",text:e.__("Image")},null,8,["text"]),(0,r.createVNode)(d,{onOnfilechange:e.imagesUploaded,label:e.__("Bild hochladen")},null,8,["onOnfilechange","label"]),(0,r.createElementVNode)("div",a,[(0,r.createVNode)(u,{type:"h2",text:e.__("Text")},null,8,["text"])]),(0,r.createVNode)(p,{modelValue:e.content,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.content=t})},null,8,["modelValue"]),(0,r.createVNode)(p,{modelValue:e.content2,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.content2=t})},null,8,["modelValue"])])}]])},6523:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(6301),o={class:"w-full bg-slate-100 py-2 px-4 z-40 relative"},i={class:"xl:container xl:mx-auto flex justify-between text-sm font-medium"},a={class:"flex items-center gap-x-4"},s=["href"],l=["href"],c=["href"],u={class:"flex items-center gap-x-4"},d=["href"],p={class:"z-50"},h=["href"],f={key:1,href:"mailto:[email protected]",class:"font-bold text-primary underline"},m={class:"z-50"};var g=n(641),v=n(1857),y=n(2368),b=n(8766),x=n(8646),w=n(166),k=n(4633);const _=(0,g.pM)({components:{JetApplicationLogo:y.A,JetDropdown:v.A,LmLangSwitcher:b.A,LmNotification:w.A,LmProfileDropdown:k.A},data:function(){return{mobileNavOpen:!1,newMenuOpen:!1}},mounted:function(){var e=this;x.Inertia.on("success",(function(){e.closeMobileNav()}))},methods:{logout:function(){this.$inertia.post(route("logout"))},toggleMobileNav:function(){this.mobileNavOpen=!this.mobileNavOpen,this.newMenuOpen=!1},toggleNewMenu:function(){this.newMenuOpen=!this.newMenuOpen},closeMobileNav:function(){this.mobileNavOpen=!1,this.newMenuOpen=!1}}});const E=(0,n(6262).A)(_,[["render",function(e,t,n,g,v,y){var b=(0,r.resolveComponent)("jet-application-logo"),x=(0,r.resolveComponent)("lm-lang-switcher");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("a",{href:e.route("landingpage.home")},[(0,r.createVNode)(b,{class:"block h-6 w-auto"})],8,s),(0,r.createElementVNode)("a",{class:"hidden lg:block text-lm-blue hover:text-lm-light-blue",href:e.route("landingpage.contact")},(0,r.toDisplayString)(e.__("Kontakt")),9,l),(0,r.createElementVNode)("a",{class:"hidden lg:block text-lm-blue hover:text-lm-light-blue",href:e.route("landingpage.versions")},(0,r.toDisplayString)(e.__("Notes de version")),9,c)]),(0,r.createElementVNode)("div",u,[e.$page.props.commune&&e.$page.props.commune.show_in_directory||null==e.$page.props.commune?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,style:{display:"none"},class:"hidden lg:flex text-lm-blue hover:text-lm-light-blue items-center",href:e.route("landingpage.communes")},[t[0]||(t[0]=(0,r.createElementVNode)("svg",{viewBox:"0 0 20 20",fill:"currentColor",class:"w-5 h-5 mr-2"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M9.69 18.933l.003.001C9.89 19.02 10 19 10 19s.11.02.308-.066l.002-.001.006-.003.018-.008a5.741 5.741 0 00.281-.14c.186-.096.446-.24.757-.433.62-.384 1.445-.966 2.274-1.765C15.302 14.988 17 12.493 17 9A7 7 0 103 9c0 3.492 1.698 5.988 3.355 7.584a13.731 13.731 0 002.273 1.765 11.842 11.842 0 00.976.544l.062.029.018.008.006.003zM10 11.25a2.25 2.25 0 100-4.5 2.25 2.25 0 000 4.5z","clip-rule":"evenodd"})],-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.__("Gemeinde wechseln")),1)],8,d)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",p,[this.$page.props.commune?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,href:"mailto:"+this.$page.props.commune.slug+"@lememento.ch",class:"font-bold text-primary underline"},(0,r.toDisplayString)(this.$page.props.commune.slug)+"@lememento.ch",9,h)):((0,r.openBlock)(),(0,r.createElementBlock)("a",f,"[email protected]"))]),(0,r.createElementVNode)("div",m,[(0,r.createVNode)(x)])])])])}]])},6549:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},6556:(e,t,n)=>{"use strict";var r=n(453),o=n(3126),i=o([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o([n]):n}},6581:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(6301),o={class:"inline-flex items-center"},i=["innerHTML"],a=["innerHTML"],s={key:2,class:"top-2 flex gap-x-2 ml-5 items-center rounded-md bg-blue-50 text-lm-blue px-2 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10"},l={class:"top-2 flex gap-x-2 items-center"},c={key:0,class:"right-4 top-2"},u={ref:"content"};const d=(0,n(641).pM)({props:{startOpen:Boolean,title:String,icon:String,badge:Number,chevron:{default:!0},megatitle:{default:!1}},mounted:function(){this.open=this.startOpen,this.isMounted=!0},data:function(){return{open:!1,openIcon:!1,isMounted:!1}},watch:{startOpen:function(){this.startOpen?this.openAcc():this.closeAcc()}},methods:{toggle:function(){this.open?this.closeAcc():this.openAcc()},closeAcc:function(){var e=this;if(this.open){var t=this.$refs.header,n=this.$refs.content;this.openIcon=!1,t.style.height=n.clientHeight+32+"px",t.style.padding="1rem",setTimeout((function(){t.style.height="0px",t.style.paddingTop="0",t.style.paddingBottom="0"}),10),setTimeout((function(){t.style.height="",t.style.padding="",e.open=!1}),510)}},openAcc:function(){var e=this;if(!this.open){var t=this.$refs.header,n=this.$refs.content;this.openIcon=!0,t.style.height=n.clientHeight+32+"px",t.style.padding="1rem",setTimeout((function(){t.style.height="",t.style.padding="",e.open=!0}),500)}}}});const p=(0,n(6262).A)(d,[["render",function(e,t,n,d,p,h){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("button",{class:(0,r.normalizeClass)([[e.chevron?"pr-4":"pr-2"],"w-full pl-2 text-lg flex justify-between py-2 items-center"]),onClick:t[1]||(t[1]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),type:"button"},[(0,r.createElementVNode)("div",o,[e.megatitle?((0,r.openBlock)(),(0,r.createElementBlock)("h2",{key:0,class:"text-2xl lg:text-4xl inline-block tracking-tight font-bold",innerHTML:e.title},null,8,i)):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,innerHTML:e.title},null,8,a)),this.badge?((0,r.openBlock)(),(0,r.createElementBlock)("span",s,(0,r.toDisplayString)(e.badge)+" "+(0,r.toDisplayString)(e.__("in der Warteschlange")),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",{class:"test",onClick:t[0]||(t[0]=(0,r.withModifiers)((function(){}),["stop"]))},[(0,r.renderSlot)(e.$slots,"header")]),e.chevron?((0,r.openBlock)(),(0,r.createElementBlock)("span",c,[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)(["transition-all bi bi-chevron-down text-cm-primary inline-block duration-500",{"rotate-180":e.openIcon}])},null,2)])):(0,r.createCommentVNode)("",!0)])],2),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["transition-all overflow-hidden duration-500 p-4",{"h-0 py-0":!e.open}]),ref:"header"},[(0,r.createElementVNode)("div",u,[(0,r.renderSlot)(e.$slots,"default")],512)],2)])}]])},6607:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7604),o=n(5581);const i={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;
2Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},a=t.elements[e];(0,o.sb)(a)&&(0,r.A)(a)&&(Object.assign(a.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)})))}))},effect:function(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 i=t.elements[e],a=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,o.sb)(i)&&(0,r.A)(i)&&(Object.assign(i.style,s),Object.keys(a).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]}},6634:(e,t,n)=>{var r={"./404.vue":8244,"./404Subdomain.vue":9472,"./API/Index.vue":271,"./API/Partials/ApiTokenManager.vue":2264,"./About.vue":1607,"./Admin/About.vue":5962,"./Admin/Ads.vue":8172,"./Admin/Archives.vue":1670,"./Admin/Categories.vue":9635,"./Admin/Categories_old.vue":9832,"./Admin/Design.vue":3492,"./Admin/Documents.vue":8793,"./Admin/Index.vue":2688,"./Admin/Moderation.vue":8479,"./Admin/News.vue":249,"./Admin/Partials/AdminNavLinksDesktop.vue":1939,"./Admin/Partials/AdminNavLinksMobile.vue":7537,"./Admin/Partials/ManagerNavLinksDesktop.vue":3930,"./Admin/Partials/ManagerNavLinksMobile.vue":306,"./Admin/Partners.vue":5199,"./Admin/Profile.vue":1482,"./Admin/Security/Settings.vue":1437,"./Admin/Security/Users.vue":5069,"./Admin/Statistics.vue":312,"./Admin/Tags.vue":9920,"./Annonces/Archives.vue":1982,"./Annonces/Create.vue":6354,"./Annonces/Events.vue":6700,"./Annonces/Index.vue":5649,"./Annonces/Search.vue":9951,"./Annonces/Show.vue":9918,"./Auth/ConfirmPassword.vue":6929,"./Auth/ForgotPassword.vue":6698,"./Auth/Login.vue":6439,"./Auth/Register.vue":1742,"./Auth/ResetPassword.vue":2197,"./Auth/TwoFactorChallenge.vue":5452,"./Auth/VerifyEmail.vue":7091,"./Components.vue":6456,"./Home.vue":9414,"./Landingpage/Communes.vue":1549,"./Landingpage/Contact.vue":5819,"./Landingpage/Home.vue":5169,"./Landingpage/Versions.vue":7572,"./Manager/Communes/Communes.vue":160,"./Manager/Communes/Edit.vue":6104,"./Partials/LmStage.vue":1546,"./PrivacyPolicy.vue":5750,"./Profile/MyAnnonces.vue":8983,"./Profile/MyCompany.vue":1508,"./Profile/MyEvents.vue":7987,"./Profile/MyNotifications.vue":6986,"./Profile/Partials/DeleteUserForm.vue":8351,"./Profile/Partials/LogoutOtherBrowserSessionsForm.vue":1507,"./Profile/Partials/TwoFactorAuthenticationForm.vue":633,"./Profile/Partials/UpdateCompanyInformationForm.vue":9575,"./Profile/Partials/UpdatePasswordForm.vue":435,"./Profile/Partials/UpdateProfileInformationForm.vue":1021,"./Profile/Show.vue":36,"./Teams/Create.vue":4751,"./Teams/Partials/CreateTeamForm.vue":2285,"./Teams/Partials/DeleteTeamForm.vue":8655,"./Teams/Partials/TeamMemberManager.vue":706,"./Teams/Partials/UpdateTeamNameForm.vue":9238,"./Teams/Show.vue":3441,"./TermsOfService.vue":4832};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=6634},6698:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(6301),o={class:"mb-4 text-sm text-gray-600"},i={key:0,class:"mb-4 font-medium text-sm text-green-600"},a={class:"flex items-center justify-end mt-4"},s=["disabled","value"];var l=n(641),c=n(9234),u=n(4046),d=n(8045),p=n(1816),h=n(4296),f=n(5393),m=n(5860);const g=(0,l.pM)({components:{Head:c.p3,JetAuthenticationCard:u.A,JetAuthenticationCardLogo:d.A,JetButton:p.A,JetInput:h.A,JetLabel:f.A,JetValidationErrors:m.A},props:{status:String},data:function(){return{form:this.$inertia.form({email:""})}},methods:{submit:function(){this.form.post(this.route("password.email"))}}});const v=(0,n(6262).A)(g,[["render",function(e,t,n,l,c,u){var d=(0,r.resolveComponent)("Head"),p=(0,r.resolve
2Component)("Link"),h=(0,r.resolveComponent)("jet-validation-errors"),f=(0,r.resolveComponent)("jet-label"),m=(0,r.resolveComponent)("jet-input"),g=(0,r.resolveComponent)("jet-authentication-card");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(d,{title:"Forgot Password"}),(0,r.createVNode)(g,null,{logo:(0,r.withCtx)((function(){return[(0,r.createVNode)(p,{href:"/"},{default:(0,r.withCtx)((function(){return t[2]||(t[2]=[(0,r.createElementVNode)("img",{src:"/img/admin/[email protected]",alt:"Logo LeMemento"},null,-1)])})),_:1})]})),default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",o,(0,r.toDisplayString)(e.__("forgotPasswordText")),1),e.status?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,(0,r.toDisplayString)(e.status),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(h,{class:"mb-4"}),(0,r.createElementVNode)("form",{onSubmit:t[1]||(t[1]=(0,r.withModifiers)((function(){return e.submit&&e.submit.apply(e,arguments)}),["prevent"]))},[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(f,{for:"email",value:e.__("E-Mail")},null,8,["value"]),(0,r.createVNode)(m,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e.form.email,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.form.email=t}),required:"",autofocus:""},null,8,["modelValue"])]),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("input",{type:"submit",class:(0,r.normalizeClass)(["btn-primary bg-lm-blue cursor-pointer hover:bg-lm-light-blue ml-4 text-white",{"opacity-25":e.form.processing}]),disabled:e.form.processing,value:e.__("Abschicken")},null,10,s)])],32)]})),_:1})],64)}]])},6700:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>U});var r=n(6301),o={class:"mx-auto p-4 max-w-7xl xl:container"},i={class:"flex flex-col md:flex-row justify-between"},a={class:"flex gap-4 flex-wrap"},s={key:0},l={value:null},c=["value"],u={class:""},d={value:null},p={value:"startDateAsc"},h={value:"startDateDesc"},f={value:"createdAtAsc"},m={value:"createdAtDesc"},g={value:"nameAsc"},v={value:"nameDesc"},y={key:0,class:"mt-8"},b={key:1},x={key:0,class:"border-t border-gray-200 px-4 sm:px-0 mt-8"},w={class:"flex items-center justify-center"},k={class:"-mt-px flex sm:hidden w-0 flex-1"},_=["innerHTML"],E={class:"-mt-px hidden sm:flex"},C={class:"inline-flex items-center border-t-2 border-transparent px-4 pt-4 text-sm font-medium text-gray-500",textContent:"..."},N={class:"-mt-px flex sm:hidden w-0 flex-1 justify-end"},S=["innerHTML"],V={class:"flex items-center justify-center mt-2"},A=["textContent"],D=["textContent"],M=["textContent"];var T=n(641),B=n(1546),O=n(8367),P=n(9506),L=n(1049),I=n(5512),j=n(6782);const R=(0,T.pM)({layout:O.A,components:{LmStage:B.default,LmRadioGroup:P.ug,AnnonceGrid:I.A,LmInputText:P.zX,LmSpinner:L.A,TagSelector:P.Cx,LmCalendar:j.A},data:function(){return{q:"",display:null,category:null,orderby:null,searchUrl:"",page:1,tags:[]}},props:{annonces:{type:Object},categories:{type:Object}},mounted:function(){var e,t,n,r=new URLSearchParams(window.location.search);this.q=r.get("q")?r.get("q"):"",this.category=null!==(e=r.get("category"))&&void 0!==e?e:null,this.orderby=null!==(t=r.get("orderby"))&&void 0!==t?t:null,this.sortAnnonces(),this.display=null!==(n=r.get("display"))&&void 0!==n?n:"calendar",r.get("tag")&&(this.tags=r.get("tag").split(","))},methods:{updateTags:function(e){this.tags=e},calcAnimationDelay:function(e){return e/10+"s"},search:function(e){var t=this.generateUrlParams();this.$inertia.visit(e,{method:"get",data:t})},generateUrlParams:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={};if(this.q.length>2&&(t.q=this.q),this.category&&(t.category=this.category),this.orderby&&(t.orderby=this.orderby),e&&(t.page=this.page),this.tags.length>0){var n=this.tags.join(",");t.tag=n}return t},sortAnnonces:function(){null===this.orderby&&this.annonces.sort((function(e,t){return new Date(e.startDate||e.start_date)-new Date(t.startDate||t.start_date)}))}},computed:{}});var $=n(5072),z=n.n($),F=n(9501),H={insert:"head",singleton:!1};z()(F.A,H);F.A.locals;const U=(0,n(6262).A)(R,[["render",function(e,t,n,T,B,O){var P=(0,r.resolve
2Component)("Head"),L=(0,r.resolveComponent)("lm-stage"),I=(0,r.resolveComponent)("lm-input-text"),j=(0,r.resolveComponent)("tag-selector"),R=(0,r.resolveComponent)("LmCalendar"),$=(0,r.resolveComponent)("AnnonceGrid"),z=(0,r.resolveComponent)("Link");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(P,{title:e.__("Tous les évenements")},null,8,["title"]),(0,r.createVNode)(L,{compact:!0,title:e.__("Tous les évenements"),subtitle:"Events","search-widget":!1},null,8,["title"]),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(I,{placeholder:e.__("Suchen"),modelValue:e.q,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.q=t}),icon:"<svg viewBox='0 0 20 20' fill='currentColor' class='w-3 h-3'>\n <path fill-rule='evenodd' d='M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z' clip-rule='evenodd' />\n </svg>",onEnter:t[1]||(t[1]=function(t){return e.search(e.route("annonces.events",{commune:e.$page.props.commune.slug}))}),iconClickable:!0,onIconClick:t[2]||(t[2]=function(t){return e.search(e.route("annonces.events",{commune:e.$page.props.commune.slug}))})},null,8,["placeholder","modelValue"])]),e.$page.props.commune.enable_tags?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.createVNode)(j,{placeholder:e.__("Chercher par tag"),showLabel:!1,onUpdate:e.updateTags,readonly:!0,inputTags:e.tags},null,8,["placeholder","onUpdate","inputTags"])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",null,[(0,r.withDirectives)((0,r.createElementVNode)("select",{"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.category=t}),onChange:t[4]||(t[4]=function(t){return e.search(e.route("annonces.events",{commune:e.$page.props.commune.slug}))}),id:"category",class:"block mb-2 rounded w-full bg-slate-100/80 border-none focus:ring-gray-200"},[(0,r.createElementVNode)("option",l,(0,r.toDisplayString)(e.__("Alle Kategorien")),1),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.categories,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("option",{key:t.name,value:t.id},(0,r.toDisplayString)(t.name[e.$page.props.locale]),9,c)})),128))],544),[[r.vModelSelect,e.category]])]),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("button",{class:"btn-primary",onClick:t[5]||(t[5]=function(t){return e.search(e.route("annonces.events",{commune:e.$page.props.commune.slug}))})},(0,r.toDisplayString)(e.__("Suchen")),1)])]),(0,r.createElementVNode)("div",u,[(0,r.withDirectives)((0,r.createElementVNode)("select",{"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.orderby=t}),onChange:t[7]||(t[7]=function(t){return e.search(e.route("annonces.events",{commune:e.$page.props.commune.slug}))}),id:"orderby",class:"block mb-2 rounded w-full bg-slate-100/80 border-none focus:ring-gray-200"},[(0,r.createElementVNode)("option",d,(0,r.toDisplayString)(e.__("Trier par")),1),(0,r.createElementVNode)("option",p,(0,r.toDisplayString)(e.__("Début de l'évenement (plus récents)")),1),(0,r.createElementVNode)("option",h,(0,r.toDisplayString)(e.__("Début de l'évenement (plus anciens)")),1),(0,r.createElementVNode)("option",f,(0,r.toDisplayString)(e.__("Date de publication (plus anciens)")),1),(0,r.createElementVNode)("option",m,(0,r.toDisplayString)(e.__("Date de publication (plus récents)")),1),(0,r.createElementVNode)("option",g,(0,r.toDisplayString)(e.__("Nom (A à Z)")),1),(0,r.createElementVNode)("option",v,(0,r.toDisplayString)(e.__("Nom (Z à A)")),1)],544),[[r.vModelSelect,e.orderby]])])]),"calendar"===e.display||null===e.display?((0,r.openBlock)(),(0,r.createElementBlock)("div",y,[(0,r.createVNode)(R,{events:this.annonces,"route-name":"annonces.events"},null,8,["events"]),(0,r.createVNode)($,{items:this.annonces},null,8,["items"])])):(0,r.createCommentVNode)("",!0),"list"===e.display?((0,r.openBlock)(),(0,r.createElementBlock)("div",b,[(0,r.createVNode)($,{items:this.annonces.data},null,8,["items"]),e.annonces.last_page>1?((0,r.openBlock)(),(0,r.createElementBlock)("div",x,[(0,r.createElementVNode)("nav",w,[(0,r.createElementVNode)("div",k,[e.annonces.prev_page_url?((0,r.openBlock)(),(0,r.createBlock)(z,{key:0,href:e.annonces.prev_page_url,class:"inline-flex items-center border-t-2 border-transparent pt-4 pr-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700"},{default:(0,r.withCtx)((function(){return[t[8]||(t[8]=(0,r.createElementVNode)("svg",{class:"mr-3 h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M18 10a.75.75 0 01-.75.75H4.66l2.1 1.95a.75.75 0 11-1.02 1.1l-3.5-3.25a.75.75 0 010-1.1l3.5-3.25a.75.75 0 111.02 1.1l-2.1 1.95h12.59A.75.75 0 0118 10z","clip-rule":"evenodd"})],-1)),(0,r.createElementVNode)("span",{innerHTML:e.__("previous")},null,8,_)]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",E,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.annonces.links,(function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.withDirectives)((0,r.createVNode)(z,{class:(0,r.normalizeClass)(["inline-flex items-center border-t-2 border-transparent px-4 pt-4 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700",{"border-cm-primary text-cm-primary":t.active}]),href:t.url,innerHTML:t.label},null,8,["class","href","innerHTML"]),[[r.vShow,n<4||n>e.annonces.links.length-5]]),(0,r.withDirectives)((0,r.createElementVNode)("div",C,null,512),[[r.vShow,4===n]])],64)})),256))]),(0,r.createElementVNode)("div",N,[e.annonces.next_page_url?((0,r.openBlock)(),(0,r.createBlock)(z,{key:0,href:e.annonces.next_page_url,class:"inline-flex items-center border-t-2 border-transparent pt-4 pl-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700"},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("span",{innerHTML:e.__("next")},null,8,S),t[9]||(t[9]=(0,r.createElementVNode)("svg",{class:"ml-3 h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M2 10a.75.75 0 01.75-.75h12.59l-2.1-1.95a.75.75 0 111.02-1.1l3.5 3.25a.75.75 0 010 1.1l-3.5 3.25a.75.75 0 11-1.02-1.1l2.1-1.95H2.75A.75.75 0 012 10z","clip-rule":"evenodd"})],-1))]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)])]),(0,r.createElementVNode)("div",V,[t[10]||(t[10]=(0,r.createTextVNode)(" page ")),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(e.annonces.current_page)},null,8,A),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("of"))+" ",1),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(e.annonces.last_page)},null,8,D),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__(" sur un total "))+" ",1),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(e.annonces.total)},null,8,M),t[11]||(t[11]=(0,r.createTextVNode)(" résultats "))])])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)])],64)}],["__scopeId","data-v-9ebe14ec"]])}
vendor: 4,144 bytes, line 2
2,6743:(e,t,n)=>{"use strict";var r=n(9353);e.exports=Function.prototype.bind||r},6753:(e,t,n)=>{"use strict";n.d(t,{A:()=>Kd});var r=n(6301),o={key:0,class:"flex gap-2 mb-4 texteditor"},i=["title"],a={class:"flex flex-col"},s=["title"],l=["title"],c=["title"],u=["title"],d=["title"],p=["title"],h=["title"],f=["title"],m=["title"],g=["title"],v=["title"],y=["title"],b=["value"],x=["title"],w=["disabled","title"];var k=n(641);function _(e){this.content=e}_.prototype={constructor:_,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,o=r.find(e),i=r.content.slice();return-1==o?i.push(n||e,t):(i[o+1]=t,n&&(i[o]=n)),new _(i)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new _(n)},addToStart:function(e,t){return new _([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new _(n)},addBefore:function(e,t,n){var r=this.remove(t),o=r.content.slice(),i=r.find(e);return o.splice(-1==i?o.length:i,0,t,n),new _(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=_.from(e)).size?new _(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=_.from(e)).size?new _(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=_.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach((function(t,n){e[t]=n})),e},get size(){return this.content.length>>1}},_.from=function(e){if(e instanceof _)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new _(t)};const E=_;function C(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let o=e.child(r),i=t.child(r);if(o!=i){if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let e=0;o.text[e]==i.text[e];e++)n++;return n}if(o.content.size||i.content.size){let e=C(o.content,i.content,n+1);if(null!=e)return e}n+=o.nodeSize}else n+=o.nodeSize}}function N(e,t,n,r){for(let o=e.childCount,i=t.childCount;;){if(0==o||0==i)return o==i?null:{a:n,b:r};let a=e.child(--o),s=t.child(--i),l=a.nodeSize;if(a!=s){if(!a.sameMarkup(s))return{a:n,b:r};if(a.isText&&a.text!=s.text){let e=0,t=Math.min(a.text.length,s.text.length);for(;e<t&&a.text[a.text.length-e-1]==s.text[s.text.length-e-1];)e++,n--,r--;return{a:n,b:r}}if(a.content.size||s.content.size){let e=N(a.content,s.content,n-1,r-1);if(e)return e}n-=l,r-=l}else n-=l,r-=l}}class S{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,o){for(let i=0,a=0;a<t;i++){let s=this.content[i],l=a+s.nodeSize;if(l>e&&!1!==n(s,r+a,o||null,i)&&s.content.size){let o=a+1;s.nodesBetween(Math.max(0,e-o),Math.min(s.content.size,t-o),n,r+o)}a=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let o="",i=!0;return this.nodesBetween(e,t,((a,s)=>{let l=a.isText?a.text.slice(Math.max(e,s)-s,t-s):a.isLeaf?r?"function"==typeof r?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&l||a.isTextblock)&&n&&(i?i=!1:o+=n),o+=l}),0),o}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),o=1);o<e.content.length;o++)r.push(e.content[o]);return new S(r,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let o=0,i=0;i<t;o++){let a=this.content[o],s=i+a.nodeSize;s>e&&((i<e||s>t)&&(a=a.isText?a.cut(Math.max(0,e-i),Math.min(a.text.length,t-i)):a.cut(Math.max(0,e-i-1),Math.min(a.content.size,t-i-1))),n.push(a),r+=a.nodeSize),i=s}return new S(n,r)}cutByIndex(e,t){return e==t?S.empty:0==e&&t==this.content.length?this:new S(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;
vendor: 5,518 bytes, line 2
2let r=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new S(r,o)}addToStart(e){return new S([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new S(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return C(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return N(this,e,t,n)}findIndex(e,t=-1){if(0==e)return A(0,e);if(e==this.size)return A(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let o=r+this.child(n).nodeSize;if(o>=e)return o==e||t>0?A(n+1,o):A(n,r);r=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map((e=>e.toJSON())):null}static fromJSON(e,t){if(!t)return S.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new S(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return S.empty;let t,n=0;for(let r=0;r<e.length;r++){let o=e[r];n+=o.nodeSize,r&&o.isText&&e[r-1].sameMarkup(o)?(t||(t=e.slice(0,r)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new S(t||e,n)}static from(e){if(!e)return S.empty;if(e instanceof S)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new S([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}S.empty=new S([],0);const V={index:0,offset:0};function A(e,t){return V.index=e,V.offset=t,V}function D(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!D(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!D(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}class M{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let o=e[r];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,r));else{if(o.type.excludes(this.type))return e;!n&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(o)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&D(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw new RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return M.none;if(e instanceof M)return[e];let t=e.slice();return t.sort(((e,t)=>e.type.rank-t.type.rank)),t}}M.none=[];class T extends Error{}class B{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=P(this.content,e+this.openStart,t);return n&&new B(n,this.openStart,this.openEnd)}removeBetween(e,t){return new B(O(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return B.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new B(S.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let r=e.firstChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.firstChild)n++;for(let n=e.lastChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.lastChild)r++;return new B(e,n,r)}}function O(e,t,n){let{index:r,offset:o}=e.findIndex(t),i=e.maybeChild(r),{index:a,offset:s}=e.findIndex(n);if(o==t||i.isText){if(s!=n&&!e.child(a).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=a)throw new RangeError("Removing non-flat range");return e.replaceChild(r,i.copy(O(i.content,t-o-1,n-o-1)))}function P(e,t,n,r){let{index:o,offset:i}=e.findIndex(t),a=e.maybeChild(o);if(i==t||a.isText)return r&&!r.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=P(a.content,t-i-1,n);return s&&e.replaceChild(o,a.copy(s))}function L(e,t,n){if(n.openStart>
vendor: 4,552 bytes, line 2
2e.depth)throw new T("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new T("Inconsistent open depths");return I(e,t,n,0)}function I(e,t,n,r){let o=e.index(r),i=e.node(r);if(o==t.index(r)&&r<e.depth-n.openStart){let a=I(e,t,n,r+1);return i.copy(i.content.replaceChild(o,a))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=r||t.depth!=r){let{start:o,end:a}=function(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(S.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(n,e);return F(i,H(e,o,a,t,r))}{let r=e.parent,o=r.content;return F(r,o.cut(0,e.parentOffset).append(n.content).append(o.cut(t.parentOffset)))}}return F(i,U(e,t,r))}function j(e,t){if(!t.type.compatibleContent(e.type))throw new T("Cannot join "+t.type.name+" onto "+e.type.name)}function R(e,t,n){let r=e.node(n);return j(r,t.node(n)),r}function $(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function z(e,t,n,r){let o=(t||e).node(n),i=0,a=t?t.index(n):o.childCount;e&&(i=e.index(n),e.depth>n?i++:e.textOffset&&($(e.nodeAfter,r),i++));for(let e=i;e<a;e++)$(o.child(e),r);t&&t.depth==n&&t.textOffset&&$(t.nodeBefore,r)}function F(e,t){return e.type.checkContent(t),e.copy(t)}function H(e,t,n,r,o){let i=e.depth>o&&R(e,t,o+1),a=r.depth>o&&R(n,r,o+1),s=[];return z(null,e,o,s),i&&a&&t.index(o)==n.index(o)?(j(i,a),$(F(i,H(e,t,n,r,o+1)),s)):(i&&$(F(i,U(e,t,o+1)),s),z(t,n,o,s),a&&$(F(a,U(n,r,o+1)),s)),z(r,null,o,s),new S(s)}function U(e,t,n){let r=[];if(z(null,e,n,r),e.depth>n){$(F(R(e,t,n+1),U(e,t,n+1)),r)}return z(t,null,n,r),new S(r)}B.empty=new B(S.empty,0,0);class W{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return M.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let o=n.marks;for(var i=0;i<o.length;i++)!1!==o[i].type.spec.inclusive||r&&o[i].isInSet(r.marks)||(o=o[i--].removeFromSet(o));return o}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||r&&n[o].isInSet(r.marks)||(n=n[o--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new K(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let n=[],r=0,o=t;for(let t=e;;){let{index:e,offset:i}=t.content.findIndex(o),a=o-i;
vendor: 4,431 bytes, line 2
2if(n.push(t,e,r+i),!a)break;if(t=t.child(e),t.isText)break;o=a-1,r+=i+1}return new W(t,n,o)}static resolveCached(e,t){let n=G.get(e);if(n)for(let e=0;e<n.elts.length;e++){let r=n.elts[e];if(r.pos==t)return r}else G.set(e,n=new q);let r=n.elts[n.i]=W.resolve(e,t);return n.i=(n.i+1)%Y,r}}class q{constructor(){this.elts=[],this.i=0}}const Y=12,G=new WeakMap;class K{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const J=Object.create(null);class X{constructor(e,t,n,r=M.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||S.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&D(this.attrs,t||e.defaultAttrs||J)&&M.sameSet(this.marks,n||M.none)}copy(e=null){return e==this.content?this:new X(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new X(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return B.empty;let r=this.resolve(e),o=this.resolve(t),i=n?0:r.sharedDepth(t),a=r.start(i),s=r.node(i).content.cut(r.pos-a,o.pos-a);return new B(s,r.depth-i,o.depth-i)}replace(e,t,n){return L(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return W.resolveCached(this,e)}resolveNoCache(e){return W.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,(e=>(n.isInSet(e.marks)&&(r=!0),!r))),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Q(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=S.empty,r=0,o=n.childCount){let i=this.contentMatchAt(e).matchFragment(n,r,o),a=i&&i.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let e=r;e<o;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let o=this.contentMatchAt(e).matchType(n),i=o&&o.matchFragment(this.content,t);return!!i&&i.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=M.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!M.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map((e=>
2e.type.name))}`);this.content.forEach((e=>e.check()))}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map((e=>e.toJSON()))),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let n;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=S.fromJSON(e,t.content),o=e.nodeType(t.type).create(t.attrs,r,n);return o.type.checkAttrs(o.attrs),o}}X.prototype.text=void 0;class Z extends X{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Q(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Z(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Z(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Q(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class ee{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let n=new te(e,t);if(null==n.next)return ee.empty;let r=ne(n);n.next&&n.err("Unexpected trailing text");let o=function(e){let t=Object.create(null);return n(le(e,0));function n(r){let o=[];r.forEach((t=>{e[t].forEach((({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<o.length;e++)o[e][0]==t&&(r=o[e][1]);le(e,n).forEach((e=>{r||o.push([t,r=[]]),-1==r.indexOf(e)&&r.push(e)}))}))}));let i=t[r.join(",")]=new ee(r.indexOf(e.length-1)>-1);for(let e=0;e<o.length;e++){let r=o[e][1].sort(se);i.next.push({type:o[e][0],next:t[r.join(",")]||n(r)})}return i}}(function(e){let t=[[]];return o(i(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let o={term:r,to:n};return t[e].push(o),o}function o(e,t){e.forEach((e=>e.to=t))}function i(e,t){if("choice"==e.type)return e.exprs.reduce(((e,n)=>e.concat(i(n,t))),[]);if("seq"!=e.type){if("star"==e.type){let a=n();return r(t,a),o(i(e.expr,a),a),[r(a)]}if("plus"==e.type){let a=n();return o(i(e.expr,t),a),o(i(e.expr,a),a),[r(a)]}if("opt"==e.type)return[r(t)].concat(i(e.expr,t));if("range"==e.type){let a=t;for(let t=0;t<e.min;t++){let t=n();o(i(e.expr,a),t),a=t}if(-1==e.max)o(i(e.expr,a),a);else for(let t=e.min;t<e.max;t++){let t=n();r(a,t),o(i(e.expr,a),t),a=t}return[r(a)]}if("name"==e.type)return[r(t,void 0,e.value)];throw new Error("Unknown expr type")}for(let r=0;;r++){let a=i(e.exprs[r],t);if(r==e.exprs.length-1)return a;o(a,t=n())}}}(r));return function(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],o=!e.validEnd,i=[];for(let t=0;t<e.next.length;t++){let{type:n,next:a}=e.next[t];i.push(n.name),!o||n.isText||n.hasRequiredAttrs()||(o=!1),-1==r.indexOf(a)&&r.push(a)}o&&t.err("Only non-generatable nodes ("+i.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(o,n),o}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let o=t;r&&o<n;o++)r=r.matchType(e.child(o).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];return function o(i,a){let s=i.matchFragment(e,n);if(s&&(!t||s.validEnd))return S.from(a.map((e=>e.createAndFill())));for(let e=0;e<i.next.length;e++){let{type:t,next:n}=i.next[e];if(!t.isText&&!t.hasRequiredAttrs()&&-1==r.indexOf(n)){r.push(n);let e=o(n,a.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),o=r.match;if(o.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<o.next.length;e++){let{type:i,next:a}=o.next[e];i.isLeaf||i.hasRequiredAttrs()||i.name in t||r.type&&!a.validEnd||(n.push({match:i.contentMatch,type:i,via:r}),t[i.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map(((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let n=0;n<t.next.length;n++)r+=(n?", ":"")+t.next[n].type.name+"->"+e.indexOf(t.next[n].next);return r})).join("\n")}}ee.empty=new ee(!0);class te{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?
vendor: 14,145 bytes, line 2
2=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function ne(e){let t=[];do{t.push(re(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function re(e){let t=[];do{t.push(oe(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function oe(e){let t=function(e){if(e.eat("(")){let t=ne(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){let t=function(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let o=[];for(let e in n){let r=n[e];r.isInGroup(t)&&o.push(r)}0==o.length&&e.err("No node type or group '"+t+"' found");return o}(e,e.next).map((t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t})));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}e.err("Unexpected token '"+e.next+"'")}(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=ae(e,t)}return t}function ie(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function ae(e,t){let n=ie(e),r=n;return e.eat(",")&&(r="}"!=e.next?ie(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function se(e,t){return t-e}function le(e,t){let n=[];return function t(r){let o=e[r];if(1==o.length&&!o[0].term)return t(o[0].to);n.push(r);for(let e=0;e<o.length;e++){let{term:r,to:i}=o[e];r||-1!=n.indexOf(i)||t(i)}}(t),n.sort(se)}function ce(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function ue(e,t){let n=Object.create(null);for(let r in e){let o=t&&t[r];if(void 0===o){let t=e[r];if(!t.hasDefault)throw new RangeError("No value supplied for attribute "+r);o=t.default}n[r]=o}return n}function de(e,t,n,r){for(let r in t)if(!(r in e))throw new RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let n in e){let r=e[n];r.validate&&r.validate(t[n])}}function pe(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new fe(e,r,t[r]);return n}class he{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=pe(e,n.attrs),this.defaultAttrs=ce(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==ee.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:ue(this.attrs,e)}create(e=null,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new X(this,this.computeAttrs(e),S.from(t),M.setFrom(n))}createChecked(e=null,t,n){return t=S.from(t),this.checkContent(t),new X(this,this.computeAttrs(e),t,M.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),(t=S.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),o=r&&r.fillBefore(S.empty,!0);return o?new X(this,e,t.append(o),M.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){de(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(null==this.markSet)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:M.none:e}static compile(e,t){let n=Object.create(null);e.forEach(((e,r)=>n[e]=new he(e,t,r)));let r=t.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let e in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}class fe{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate="string"==typeof n.validate?function(e,t,n){let r=n.split("|");return n=>{let o=null===n?"null":typeof n;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${o}`)}}(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}}class me{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=pe(e,r.attrs),this.excluded=null;let o=ce(this.attrs);this.instance=o?new M(this,o):null}create(e=null){return!e&&this.instance?this.instance:new M(this,ue(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach(((e,o)=>n[e]=new me(e,r++,t,o))),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){de(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class ge{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=E.from(e.nodes),t.marks=E.from(e.marks||{}),this.nodes=he.compile(this.spec.nodes,this),this.marks=me.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw new RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],r=t.spec.content||"",o=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=ee.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!t.isInline||!t.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=t}t.markSet="_"==o?null:o?ve(this,o.split(" ")):""!=o&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=null==n?[t]:""==n?[]:ve(this,n.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof he))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new Z(n,n.defaultAttrs,e,M.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return X.fromJSON(this,e)}markFromJSON(e){return M.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function ve(e,t){let n=[];for(let r=0;r<t.length;r++){let o=t[r],i=e.marks[o],a=i;if(i)n.push(i);else for(let t in e.marks){let r=e.marks[t];("_"==o||r.spec.group&&r.spec.group.split(" ").indexOf(o)>-1)&&n.push(a=r)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class ye{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach((e=>{if(function(e){return null!=e.tag}(e))this.tags.push(e);else if(function(e){return null!=e.style}(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}})),this.normalizeLists=!this.tags.some((t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)}))}parse(e,t={}){let n=new Ee(this,t,!1);return n.addAll(e,M.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new Ee(this,t,!0);return n.addAll(e,M.none,t.from,t.to),B.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(Ce(e,n.tag)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let o=r?this.styles.indexOf(r)+1:0;o<this.styles.length;o++){let r=this.styles[o],i=r.style;if(!(0!=i.indexOf(e)||r.context&&!n.matchesContext(r.context)||i.length>e.length&&(61!=i.charCodeAt(e.length)||i.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((null==e.priority?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach((e=>{n(e=Ne(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)}))}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach((e=>{n(e=Ne(e)),e.node||e.ignore||e.mark||(e.node=t)}))}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new ye(e,ye.schemaRules(e)))}}const be={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},xe={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},we={ol:!0,ul:!0};function ke(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}class _e{constructor(e,t,n,r,o,i){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=i,this.content=[],this.activeMarks=M.none,this.match=o||(4&i?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(S.from(e));if(!t){let t,n=this.type.contentMatch;return(t=n.findWrapping(e.type))?(this.match=n,t):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e,t=this.content[this.content.length-1];if(t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))){let n=t;t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-e[0].length))}}let t=S.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(S.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!be.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Ee{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r,o=t.topNode,i=ke(null,t.preserveWhitespace,0)|(n?4:0);r=o?new _e(o.type,o.attrs,M.none,!0,t.topMatch||o.type.contentMatch,i):new _e(n?null:e.schema.topNodeType,null,M.none,!0,null,i),this.nodes=[r],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,o=2&r.options?"full":this.localPreserveWS||(1&r.options)>0;if("full"===o||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(o)n="full"!==o?n.replace(/\r?\n|\r/g," "):n.replace(/\r\n?/g,"\n");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],o=e.previousSibling;(!t||o&&"BR"==o.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}n&&this.insertNode(this.parser.schema.text(n),t),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,o=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let i,a=e.nodeName.toLowerCase();we.hasOwnProperty(a)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&we.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(i=this.parser.matchTag(e,this,n));e:if(s?s.ignore:xe.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let n,r=this.needsBlock;if(be.hasOwnProperty(a))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),n=!0,o.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let i=s&&s.skip?t:this.readStyles(e,t);i&&this.addAll(e,i),n&&this.sync(o),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,s,n,!1===s.consuming?i:void 0)}this.localPreserveWS=r}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],o=n.getPropertyValue(r);if(o)for(let e;;){let n=this.parser.matchStyle(r,o,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter((e=>!n.clearMark(e))):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),!1!==n.consuming)break;e=n}}return t}addElementByRule(e,t,n,r){let o,i;
vendor: 8,167 bytes, line 2
2if(t.node)if(i=this.parser.schema.nodes[t.node],i.isLeaf)this.insertNode(i.create(t.attrs),n)||this.leafFallback(e,n);else{let e=this.enter(i,t.attrs||null,n,t.preserveWhitespace);e&&(o=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let a=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((e=>this.insertNode(e,n)));else{let r=e;"string"==typeof t.contentElement?r=e.querySelector(t.contentElement):"function"==typeof t.contentElement?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}o&&this.sync(a)&&this.open--}addAll(e,t,n,r){let o=n||0;for(let i=n?e.childNodes[n]:e.firstChild,a=null==r?null:e.childNodes[r];i!=a;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i,t);this.findAtPoint(e,o)}findPlace(e,t){let n,r;for(let t=this.open;t>=0;t--){let o=this.nodes[t],i=o.findWrapping(e);if(i&&(!n||n.length>i.length)&&(n=i,r=o,!i.length))break;if(o.solid)break}if(!n)return null;this.sync(r);for(let e=0;e<n.length;e++)t=this.enterInner(n[e],null,t,!1);return t}insertNode(e,t){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let n=this.findPlace(e,t);if(n){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let r=M.none;for(let o of n.concat(e.marks))(t.type?t.type.allowsMarkType(o.type):Se(o.type,e.type))&&(r=o.addToSet(r));return t.content.push(e.mark(r)),!0}return!1}enter(e,t,n,r){let o=this.findPlace(e.create(t),n);return o&&(o=this.enterInner(e,t,n,!0,r)),o}enterInner(e,t,n,r=!1,o){this.closeExtra();let i=this.top;i.match=i.match&&i.match.matchType(e);let a=ke(e,o,i.options);4&i.options&&0==i.content.length&&(a|=4);let s=M.none;return n=n.filter((t=>!(i.type?i.type.allowsMarkType(t.type):Se(t.type,e))||(s=t.addToSet(s),!1))),this.nodes.push(new _e(e,t,s,r,null,a)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!(!this.isOpen&&!this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=1)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)if(null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)){t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!(this.isOpen||n&&n.parent.type!=this.nodes[0].type),o=-(n?n.depth+1:0)+(r?0:1),i=(e,a)=>{for(;e>=0;e--){let s=t[e];if(""==s){if(e==t.length-1||0==e)continue;for(;a>=o;a--)if(i(e-1,a))return!0;return!1}{let e=a>0||0==a&&r?this.nodes[a].type:n&&a>=o?n.node(a-o).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;a--}}return!0};return i(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}}function Ce(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Ne(e){let t={};for(let n in e)t[n]=e[n];return t}function Se(e,t){let n=t.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(e))continue;let i=[],a=e=>{i.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:o}=e.edge(n);if(r==t)return!0;if(i.indexOf(o)<0&&a(o))return!0}};if(a(o.contentMatch))return!0}}class Ve{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||(n=De(t).createDocumentFragment());let r=n,o=[];return e.forEach((e=>{if(o.length||e.marks.length){let n=0,i=0;for(;n<o.length&&i<e.marks.length;){let t=e.marks[i];if(this.marks[t.type.name]){if(!t.eq(o[n][0])||!1===t.type.spec.spanning)break;n++,i++}else i++}for(;n<o.length;)r=o.pop()[1];for(;i<e.marks.length;){let n=e.marks[i++],a=this.serializeMark(n,e.isInline,t);a&&(o.push([n,r]),r.appendChild(a.dom),r=a.contentDOM||a.dom)}}r.appendChild(this.serializeNodeInner(e,t))})),n}serializeNodeInner(e,t){let{dom:n,contentDOM:r}=Be(De(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let o=this.serializeMark(e.marks[r],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&Be(De(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return Be(e,t,n,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Ve(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Ae(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return Ae(e.marks)}}function Ae(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function De(e){return e.document||window.document}const Me=new WeakMap;function Te(e){let t=Me.get(e);return void 0===t&&Me.set(e,t=function(e){let t=null;function n(e){if(e&&"object"==typeof e)if(Array.isArray(e))if("string"==typeof e[0])t||(t=[]),t.push(e);else for(let t=0;t<e.length;t++)n(e[t]);else for(let t in e)n(e[t])}return n(e),t}(e)),t}function Be(e,t,n,r){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let o,i=t[0];if("string"!=typeof i)throw new RangeError("Invalid array passed to renderSpec");if(r&&(o=Te(r))&&o.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a,s=i.indexOf(" ");s>0&&(n=i.slice(0,s),i=i.slice(s+1));let l=n?e.createElementNS(n,i):e.createElement(i),c=t[1],u=1;if(c&&"object"==typeof c&&null==c.nodeType&&!Array.isArray(c)){u=2;for(let e in c)if(null!=c[e]){let t=e.indexOf(" ");t>0?l.setAttributeNS(e.slice(0,t),e.slice(t+1),c[e]):l.setAttribute(e,c[e])}}for(let o=u;o<t.length;o++){let i=t[o];if(0===i){if(o<t.length-1||o>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}{let{dom:t,contentDOM:o}=Be(e,i,n,r);if(l.appendChild(t),o){if(a)throw new RangeError("Multiple content holes");a=o}}}return{dom:l,contentDOM:a}}const Oe=Math.pow(2,16);function Pe(e,t){return e+t*Oe}function Le(e){return 65535&e}class Ie{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class je{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&je.empty)return je.empty}recover(e){let t=0,n=Le(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/Oe}(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,o=this.inverted?2:1,i=this.inverted?1:2;
vendor: 10,753 bytes, line 2
2for(let a=0;a<this.ranges.length;a+=3){let s=this.ranges[a]-(this.inverted?r:0);if(s>e)break;let l=this.ranges[a+o],c=this.ranges[a+i],u=s+l;if(e<=u){let o=s+r+((l?e==s?-1:e==u?1:t:t)<0?0:c);if(n)return o;let i=e==(t<0?s:u)?null:Pe(a/3,e-s),d=e==s?2:e==u?1:4;return(t<0?e!=s:e!=u)&&(d|=8),new Ie(o,d,i)}r+=c-l}return n?e+r:new Ie(e+r,0,null)}touches(e,t){let n=0,r=Le(t),o=this.inverted?2:1,i=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let a=this.ranges[t]-(this.inverted?n:0);if(a>e)break;let s=this.ranges[t+o];if(e<=a+s&&t==3*r)return!0;n+=this.ranges[t+i]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,o=0;r<this.ranges.length;r+=3){let i=this.ranges[r],a=i-(this.inverted?o:0),s=i+(this.inverted?0:o),l=this.ranges[r+t],c=this.ranges[r+n];e(a,a+l,s,s+c),o+=c-l}}invert(){return new je(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?je.empty:new je(e<0?[0,-e,0]:[0,0,e])}}je.empty=new je([]);class Re{constructor(e,t,n=0,r=(e?e.length:0)){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new Re(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],null!=r&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror)for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new Re;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let o=this._maps[n].mapResult(e,t);if(null!=o.recover){let t=this.getMirror(n);if(null!=t&&t>n&&t<this.to){n=t,e=this._maps[t].recover(o.recover);continue}}r|=o.delInfo,e=o.pos}return n?e:new Ie(e,r,null)}}const $e=Object.create(null);class ze{getMap(){return je.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=$e[t.stepType];if(!n)throw new RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in $e)throw new RangeError("Duplicate use of step JSON ID "+e);return $e[e]=t,t.prototype.jsonID=e,t}}class Fe{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new Fe(e,null)}static fail(e){return new Fe(null,e)}static fromReplace(e,t,n,r){try{return Fe.ok(e.replace(t,n,r))}catch(e){if(e instanceof T)return Fe.fail(e.message);throw e}}}function He(e,t,n){let r=[];for(let o=0;o<e.childCount;o++){let i=e.child(o);i.content.size&&(i=i.copy(He(i.content,t,i))),i.isInline&&(i=t(i,n,o)),r.push(i)}return S.fromArray(r)}class Ue extends ze{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),o=new B(He(t.content,((e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e),r),t.openStart,t.openEnd);return Fe.fromReplace(e,this.from,this.to,o)}invert(){return new We(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new Ue(t.pos,n.pos,this.mark)}merge(e){return e instanceof Ue&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ue(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Ue(t.from,t.to,e.markFromJSON(t.mark))}}ze.jsonID("addMark",Ue);class We extends ze{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new B(He(t.content,(e=>e.mark(this.mark.removeFromSet(e.marks))),e),t.openStart,t.openEnd);return Fe.fromReplace(e,this.from,this.to,n)}invert(){return new Ue(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new We(t.pos,n.pos,this.mark)}merge(e){return e instanceof We&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new We(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new We(t.from,t.to,e.markFromJSON(t.mark))}}ze.jsonID("removeMark",We);class qe extends ze{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Fe.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Fe.fromReplace(e,this.pos,this.pos+1,new B(S.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new qe(this.pos,t.marks[n]);return new qe(this.pos,this.mark)}}return new Ye(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new qe(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new qe(t.pos,e.markFromJSON(t.mark))}}ze.jsonID("addNodeMark",qe);class Ye extends ze{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Fe.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Fe.fromReplace(e,this.pos,this.pos+1,new B(S.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new qe(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Ye(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Ye(t.pos,e.markFromJSON(t.mark))}}ze.jsonID("removeNodeMark",Ye);class Ge extends ze{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&Je(e,this.from,this.to)?Fe.fail("Structure replace would overwrite content"):Fe.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new je([this.from,this.to-this.from,this.slice.size])}invert(e){return new Ge(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deletedAcross&&n.deletedAcross?null:new Ge(t.pos,Math.max(t.pos,n.pos),this.slice)}merge(e){if(!(e instanceof Ge)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?B.empty:new B(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new Ge(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?B.empty:new B(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new Ge(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Ge(t.from,t.to,B.fromJSON(e,t.slice),!!t.structure)}}ze.jsonID("replace",Ge);class Ke extends ze{constructor(e,t,n,r,o,i,a=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=o,this.insert=i,this.structure=a}apply(e){if(this.structure&&(Je(e,this.from,this.gapFrom)||Je(e,this.gapTo,this.to)))return Fe.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Fe.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?Fe.fromReplace(e,this.from,this.to,n):Fe.fail("Content does not fit in gap")}getMap(){return new je([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new Ke(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),o=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||r<t.pos||o>n.pos?null:new Ke(t.pos,n.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Ke(t.from,t.to,t.gapFrom,t.gapTo,B.fromJSON(e,t.slice),t.insert,!!t.structure)}}function Je(e,t,n){let r=e.resolve(t),o=n-t,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let e=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,o--}}return!1}function Xe(e,t,n,r=n.contentMatch,o=!0){let i=e.doc.nodeAt(t),a=[],s=t+1;for(let t=0;t<i.childCount;t++){let l=i.child(t),c=s+l.nodeSize,u=r.matchType(l.type);if(u){r=u;for(let t=0;t<l.marks.length;t++)n.allowsMarkType(l.marks[t].type)||e.step(new We(s,c,l.marks[t]));if(o&&l.isText&&"pre"!=n.whitespace){let e,t,r=/\r?\n|\r/g;
vendor: 11,131 bytes, line 2
2for(;e=r.exec(l.text);)t||(t=new B(S.from(n.schema.text(" ",n.allowedMarks(l.marks))),0,0)),a.push(new Ge(s+e.index,s+e.index+e[0].length,t))}}else a.push(new Ge(s,c,B.empty));s=c}if(!r.validEnd){let t=r.fillBefore(S.empty,!0);e.replace(s,s,new B(t,0,0))}for(let t=a.length-1;t>=0;t--)e.step(a[t])}function Ze(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function Qe(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth;;--n){let r=e.$from.node(n),o=e.$from.index(n),i=e.$to.indexAfter(n);if(n<e.depth&&r.canReplace(o,i,t))return n;if(0==n||r.type.spec.isolating||!Ze(r,o,i))break}return null}function et(e,t,n=null,r=e){let o=function(e,t){let{parent:n,startIndex:r,endIndex:o}=e,i=n.contentMatchAt(r).findWrapping(t);if(!i)return null;let a=i.length?i[0]:t;return n.canReplaceWith(r,o,a)?i:null}(e,t),i=o&&function(e,t){let{parent:n,startIndex:r,endIndex:o}=e,i=n.child(r),a=t.contentMatch.findWrapping(i.type);if(!a)return null;let s=(a.length?a[a.length-1]:t).contentMatch;for(let e=r;s&&e<o;e++)s=s.matchType(n.child(e).type);return s&&s.validEnd?a:null}(r,t);return i?o.map(tt).concat({type:t,attrs:n}).concat(i.map(tt)):null}function tt(e){return{type:e,attrs:null}}function nt(e,t,n,r){t.forEach(((o,i)=>{if(o.isText){let a,s=/\r?\n|\r/g;for(;a=s.exec(o.text);){let o=e.mapping.slice(r).map(n+1+i+a.index);e.replaceWith(o,o+1,t.type.schema.linebreakReplacement.create())}}}))}function rt(e,t,n,r){t.forEach(((o,i)=>{if(o.type==o.type.schema.linebreakReplacement){let o=e.mapping.slice(r).map(n+1+i);e.replaceWith(o,o+1,t.type.schema.text("\n"))}}))}function ot(e,t,n=1,r){let o=e.resolve(t),i=o.depth-n,a=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let e=o.depth-1,t=n-2;e>i;e--,t--){let n=o.node(e),i=o.index(e);if(n.type.spec.isolating)return!1;let a=n.content.cutByIndex(i,n.childCount),s=r&&r[t+1];s&&(a=a.replaceChild(0,s.type.create(s.attrs)));let l=r&&r[t]||n;if(!n.canReplace(i+1,n.childCount)||!l.type.validContent(a))return!1}let s=o.indexAfter(i),l=r&&r[0];return o.node(i).canReplaceWith(s,s,l?l.type:o.node(i+1).type)}function it(e,t){let n=e.resolve(t),r=n.index();return at(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function at(e,t){return!(!e||!t||e.isLeaf||!function(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let o=0;o<t.childCount;o++){let i=t.child(o),a=i.type==r?e.type.schema.nodes.text:i.type;if(n=n.matchType(a),!n)return!1;if(!e.type.allowsMarks(i.marks))return!1}return n.validEnd}(e,t))}function st(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let o,i,a=r.index(e);if(e==r.depth?(o=r.nodeBefore,i=r.nodeAfter):n>0?(o=r.node(e+1),a++,i=r.node(e).maybeChild(a)):(o=r.node(e).maybeChild(a-1),i=r.node(e+1)),o&&!o.isTextblock&&at(o,i)&&r.node(e).canReplace(a,a+1))return t;if(0==e)break;t=n<0?r.before(e):r.after(e)}}function lt(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let o=n.content;for(let e=0;e<n.openStart;e++)o=o.firstChild.content;for(let e=1;e<=(0==n.openStart&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,i=r.index(t)+(n>0?1:0),a=r.node(t),s=!1;if(1==e)s=a.canReplace(i,i,o);else{let e=a.contentMatchAt(i).findWrapping(o.firstChild.type);s=e&&a.canReplaceWith(i,i,e[0])}if(s)return 0==n?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function ct(e,t,n=t,r=B.empty){if(t==n&&!r.size)return null;let o=e.resolve(t),i=e.resolve(n);return ut(o,i,r)?new Ge(t,n,r):new dt(o,i,r).fit()}function ut(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}ze.jsonID("replaceAround",Ke);class dt{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=S.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=S.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let o=this.placed,i=n.depth,a=r.depth;for(;i&&a&&1==o.childCount;)o=o.firstChild.content,i--,a--;let s=new B(o,i,a);return e>-1?new Ke(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new Ge(n.pos,r.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let o=t.firstChild;if(t.childCount>1&&(r=0),o.type.spec.isolating&&r<=n){e=n;break}t=o.content}for(let t=1;t<=2;t++)for(let n=1==t?e:this.unplaced.openStart;n>=0;n--){let e,r=null;n?(r=ft(this.unplaced.content,n-1).firstChild,e=r.content):e=this.unplaced.content;let o=e.firstChild;for(let e=this.depth;e>=0;e--){let i,{type:a,match:s}=this.frontier[e],l=null;if(1==t&&(o?s.matchType(o.type)||(l=s.fillBefore(S.from(o),!1)):r&&a.compatibleContent(r.type)))return{sliceDepth:n,frontierDepth:e,parent:r,inject:l};if(2==t&&o&&(i=s.findWrapping(o.type)))return{sliceDepth:n,frontierDepth:e,parent:r,wrap:i};if(r&&s.matchType(r.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=ft(e,t);return!(!r.childCount||r.firstChild.isLeaf)&&(this.unplaced=new B(e,t+1,Math.max(n,r.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=ft(e,t);if(r.childCount<=1&&t>0){let o=e.size-t<=t+r.size;this.unplaced=new B(pt(e,t-1,1),t-1,o?t-1:n)}else this.unplaced=new B(pt(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:r,wrap:o}){for(;this.depth>t;)this.closeFrontierNode();if(o)for(let e=0;e<o.length;e++)this.openFrontierNode(o[e]);let i=this.unplaced,a=n?n.content:i.content,s=i.openStart-e,l=0,c=[],{match:u,type:d}=this.frontier[t];if(r){for(let e=0;e<r.childCount;e++)c.push(r.child(e));u=u.matchFragment(r)}let p=a.size+e-(i.content.size-i.openEnd);for(;l<a.childCount;){let e=a.child(l),t=u.matchType(e.type);if(!t)break;l++,(l>1||0==s||e.content.size)&&(u=t,c.push(mt(e.mark(d.allowedMarks(e.marks)),1==l?s:0,l==a.childCount?p:-1)))}let h=l==a.childCount;h||(p=-1),this.placed=ht(this.placed,t,S.from(c)),this.frontier[t].match=u,h&&p<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=a;e<p;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=h?0==e?B.empty:new B(pt(i.content,e-1,1),e-1,p<0?i.openEnd:e-1):new B(pt(i.content,e,l),i.openStart,i.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e,t=this.frontier[this.depth];if(!t.type.isTextblock||!gt(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),i=gt(e,t,r,n,o);if(i){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],o=gt(e,n,r,t,!0);if(!o||o.childCount)continue e}return{depth:t,fit:i,move:o?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=ht(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=ht(this.placed,this.depth,S.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(S.empty,!0);e.childCount&&(this.placed=ht(this.placed,this.frontier.length,e))}}function pt(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(pt(e.firstChild.content,t-1,n)))}function ht(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(ht(e.lastChild.content,t-1,n)))}function ft(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function mt(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,mt(r.firstChild,t-1,1==r.childCount?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(S.empty,!0)))),e.copy(r)}function gt(e,t,n,r,o){let i=e.node(t),a=o?e.indexAfter(t):e.index(t);if(a==i.childCount&&!n.compatibleContent(i.type))return null;let s=r.fillBefore(i.content,!0,a);return s&&!function(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,i.content,a)?s:null}function vt(e,t,n,r,o){if(t<n){let o=e.firstChild;e=e.replaceChild(0,o.copy(vt(o.content,t+1,n,r,o)))}if(t>r){let t=o.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(S.empty,!0))}return e}function yt(e,t){let n=[];for(let r=Math.min(e.depth,t.depth);r>=0;r--){let o=e.start(r);if(o<e.pos-(e.depth-r)||t.end(r)>t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(o==t.start(r)||r==e.depth&&r==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==o-1)&&n.push(r)}return n}class bt extends ze{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return Fe.fail("No node at attribute step's position");let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let r=t.type.create(n,null,t.marks);return Fe.fromReplace(e,this.pos,this.pos+1,new B(S.from(r),0,t.isLeaf?0:1))}getMap(){return je.empty}invert(e){return new bt(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new bt(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new bt(t.pos,t.attr,t.value)}}ze.jsonID("attr",bt);class xt extends ze{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return Fe.ok(n)}getMap(){return je.empty}invert(e){return new xt(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new xt(t.attr,t.value)}}ze.jsonID("docAttr",xt);
vendor: 19,843 bytes, line 2
2let wt=class extends Error{};wt=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},(wt.prototype=Object.create(Error.prototype)).constructor=wt,wt.prototype.name="TransformError";class kt{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Re}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new wt(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=B.empty){let r=ct(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new B(S.from(n),0,0))}delete(e,t){return this.replace(e,t,B.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return function(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let o=e.doc.resolve(t),i=e.doc.resolve(n);if(ut(o,i,r))return e.step(new Ge(t,n,r));let a=yt(o,e.doc.resolve(n));0==a[a.length-1]&&a.pop();let s=-(o.depth+1);a.unshift(s);for(let e=o.depth,t=o.pos-1;e>0;e--,t--){let n=o.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;a.indexOf(e)>-1?s=e:o.before(e)==t&&a.splice(1,0,-e)}let l=a.indexOf(s),c=[],u=r.openStart;for(let e=r.content,t=0;;t++){let n=e.firstChild;if(c.push(n),t==r.openStart)break;e=n.content}for(let e=u-1;e>=0;e--){let t=c[e],n=(d=t.type).spec.defining||d.spec.definingForContent;if(n&&!t.sameMarkup(o.node(Math.abs(s)-1)))u=e;else if(n||!t.type.isTextblock)break}var d;for(let t=r.openStart;t>=0;t--){let s=(t+u+1)%(r.openStart+1),d=c[s];if(d)for(let t=0;t<a.length;t++){let c=a[(t+l)%a.length],u=!0;c<0&&(u=!1,c=-c);let p=o.node(c-1),h=o.index(c-1);if(p.canReplaceWith(h,h,d.type,d.marks))return e.replace(o.before(c),u?i.after(c):n,new B(vt(r.content,0,r.openStart,s),s,r.openEnd))}}let p=e.steps.length;for(let s=a.length-1;s>=0&&(e.replace(t,n,r),!(e.steps.length>p));s--){let e=a[s];e<0||(t=o.before(e),n=i.after(e))}}(this,e,t,n),this}replaceRangeWith(e,t,n){return function(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let o=function(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)return null}return null}(e.doc,t,r.type);null!=o&&(t=n=o)}e.replaceRange(t,n,new B(S.from(r),0,0))}(this,e,t,n),this}deleteRange(e,t){return function(e,t,n){let r=e.doc.resolve(t),o=e.doc.resolve(n),i=yt(r,o);for(let t=0;t<i.length;t++){let n=i[t],a=t==i.length-1;if(a&&0==n||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),o.end(n));if(n>0&&(a||r.node(n-1).canReplace(r.index(n-1),o.indexAfter(n-1))))return e.delete(r.before(n),o.after(n))}for(let i=1;i<=r.depth&&i<=o.depth;i++)if(t-r.start(i)==r.depth-i&&n>r.end(i)&&o.end(i)-n!=o.depth-i&&r.start(i-1)==o.start(i-1)&&r.node(i-1).canReplace(r.index(i-1),o.index(i-1)))return e.delete(r.before(i),n);e.delete(t,n)}(this,e,t),this}lift(e,t){return function(e,t,n){let{$from:r,$to:o,depth:i}=t,a=r.before(i+1),s=o.after(i+1),l=a,c=s,u=S.empty,d=0;for(let e=i,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=S.from(r.node(e).copy(u)),d++):l--;let p=S.empty,h=0;for(let e=i,t=!1;e>n;e--)t||o.after(e+1)<o.end(e)?(t=!0,p=S.from(o.node(e).copy(p)),h++):c++;e.step(new Ke(l,c,a,s,new B(u.append(p),d,h),u.size-d,!0))}(this,e,t),this}join(e,t=1){return function(e,t,n){let r=null,{linebreakReplacement:o}=e.doc.type.schema,i=e.doc.resolve(t-n),a=i.node().type;if(o&&a.inlineContent){let e="pre"==a.whitespace,t=!!a.contentMatch.matchType(o);e&&!t?r=!1:!e&&t&&(r=!0)}let s=e.steps.length;if(!1===r){let r=e.doc.resolve(t+n);rt(e,r.node(),r.before(),s)}a.inlineContent&&Xe(e,t+n-1,a,i.node().contentMatchAt(i.index()),null==r);let l=e.mapping.slice(s),c=l.map(t-n);if(e.step(new Ge(c,l.map(t+n,-1),B.empty,!0)),!0===r){let t=e.doc.resolve(c);nt(e,t.node(),t.before(),e.steps.length)}}(this,e,t),this}wrap(e,t){return function(e,t,n){let r=S.empty;for(let e=n.length-1;e>=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=S.from(n[e].type.create(n[e].attrs,r))}let o=t.start,i=t.end;e.step(new Ke(o,i,o,i,new B(r,0,0),n.length,!0))}(this,e,t),this}setBlockType(e,t=e,n,r=null){return function(e,t,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=e.steps.length;e.doc.nodesBetween(t,n,((t,n)=>{let a="function"==typeof o?o(t):o;if(t.isTextblock&&!t.hasMarkup(r,a)&&function(e,t,n){let r=e.resolve(t),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}(e.doc,e.mapping.slice(i).map(n),r)){let o=null;if(r.schema.linebreakReplacement){let e="pre"==r.whitespace,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?o=!1:!e&&t&&(o=!0)}!1===o&&rt(e,t,n,i),Xe(e,e.mapping.slice(i).map(n,1),r,void 0,null===o);let s=e.mapping.slice(i),l=s.map(n,1),c=s.map(n+t.nodeSize,1);return e.step(new Ke(l,c,l+1,c-1,new B(S.from(r.create(a,null,t.marks)),0,0),1,!0)),!0===o&&nt(e,t,n,i),!1}}))}(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return function(e,t,n,r,o){let i=e.doc.nodeAt(t);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let a=n.create(r,null,o||i.marks);if(i.isLeaf)return e.replaceWith(t,t+i.nodeSize,a);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new Ke(t,t+i.nodeSize,t+1,t+i.nodeSize-1,new B(S.from(a),0,0),1,!0))}(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new bt(e,t,n)),this}setDocAttribute(e,t){return this.step(new xt(e,t)),this}addNodeMark(e,t){return this.step(new qe(e,t)),this}removeNodeMark(e,t){if(!(t instanceof M)){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(!(t=t.isInSet(n.marks)))return this}return this.step(new Ye(e,t)),this}split(e,t=1,n){return function(e,t,n=1,r){let o=e.doc.resolve(t),i=S.empty,a=S.empty;for(let e=o.depth,t=o.depth-n,s=n-1;e>t;e--,s--){i=S.from(o.node(e).copy(i));let t=r&&r[s];a=S.from(t?t.type.create(t.attrs,a):o.node(e).copy(a))}e.step(new Ge(t,t,new B(i.append(a),n,n),!0))}(this,e,t,n),this}addMark(e,t,n){return function(e,t,n,r){let o,i,a=[],s=[];e.doc.nodesBetween(t,n,((e,l,c)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&c.type.allowsMarkType(r.type)){let c=Math.max(l,t),d=Math.min(l+e.nodeSize,n),p=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(p)||(o&&o.to==c&&o.mark.eq(u[e])?o.to=d:a.push(o=new We(c,d,u[e])));i&&i.to==c?i.to=d:s.push(i=new Ue(c,d,r))}})),a.forEach((t=>e.step(t))),s.forEach((t=>e.step(t)))}(this,e,t,n),this}removeMark(e,t,n){return function(e,t,n,r){let o=[],i=0;e.doc.nodesBetween(t,n,((e,a)=>{if(!e.isInline)return;i++;let s=null;if(r instanceof me){let t,n=e.marks;for(;t=r.isInSet(n);)(s||(s=[])).push(t),n=t.removeFromSet(n)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(a+e.nodeSize,n);for(let e=0;e<s.length;e++){let n,l=s[e];for(let e=0;e<o.length;e++){let t=o[e];t.step==i-1&&l.eq(o[e].style)&&(n=t)}n?(n.to=r,n.step=i):o.push({style:l,from:Math.max(a,t),to:r,step:i})}}})),o.forEach((t=>e.step(new We(t.from,t.to,t.style))))}(this,e,t,n),this}clearIncompatible(e,t,n){return Xe(this,e,t,n),this}}const _t=Object.create(null);class Et{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new Ct(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=B.empty){let n=t.content.lastChild,r=null;for(let e=0;e<t.openEnd;e++)r=n,n=n.lastChild;let o=e.steps.length,i=this.ranges;for(let a=0;a<i.length;a++){let{$from:s,$to:l}=i[a],c=e.mapping.slice(o);e.replaceRange(c.map(s.pos),c.map(l.pos),a?B.empty:t),0==a&&Pt(e,o,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){let{$from:i,$to:a}=r[o],s=e.mapping.slice(n),l=s.map(i.pos),c=s.map(a.pos);o?e.deleteRange(l,c):(e.replaceRangeWith(l,c,t),Pt(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new Vt(e):Ot(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let o=t<0?Ot(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):Ot(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(o)return o}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new Tt(e.node(0))}static atStart(e){return Ot(e,e,0,0,1)||new Tt(e)}static atEnd(e){return Ot(e,e,e.content.size,e.childCount,-1)||new Tt(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=_t[t.type];if(!n)throw new RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in _t)throw new RangeError("Duplicate use of selection JSON ID "+e);return _t[e]=t,t.prototype.jsonID=e,t}getBookmark(){return Vt.between(this.$anchor,this.$head).getBookmark()}}Et.prototype.visible=!0;class Ct{constructor(e,t){this.$from=e,this.$to=t}}let Nt=!1;function St(e){Nt||e.parent.inlineContent||(Nt=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Vt extends Et{constructor(e,t=e){St(e),St(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return Et.near(n);let r=e.resolve(t.map(this.anchor));return new Vt(r.parent.inlineContent?r:n,n)}replace(e,t=B.empty){if(super.replace(e,t),t==B.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof Vt&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new At(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new Vt(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if(n&&!r||(n=r>=0?1:-1),!t.parent.inlineContent){let e=Et.findFrom(t,n,!0)||Et.findFrom(t,-n,!0);if(!e)return Et.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r||(e=(Et.findFrom(e,-n,!0)||Et.findFrom(e,n,!0)).$anchor).pos<t.pos!=r<0)&&(e=t),new Vt(e,t)}}Et.jsonID("text",Vt);class At{constructor(e,t){this.anchor=e,this.head=t}map(e){return new At(e.map(this.anchor),e.map(this.head))}resolve(e){return Vt.between(e.resolve(this.anchor),e.resolve(this.head))}}class Dt extends Et{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),o=e.resolve(r);return n?Et.near(o):new Dt(o)}content(){return new B(S.from(this.node),0,0)}eq(e){return e instanceof Dt&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Mt(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Dt(e.resolve(t.anchor))}static create(e,t){return new Dt(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}Dt.prototype.visible=!1,Et.jsonID("node",Dt);class Mt{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new At(n,n):new Mt(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&Dt.isSelectable(n)?new Dt(t):Et.near(t)}}class Tt extends Et{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=B.empty){if(t==B.empty){e.delete(0,e.doc.content.size);let t=Et.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new Tt(e)}map(e){return new Tt(e)}eq(e){return e instanceof Tt}getBookmark(){return Bt}}Et.jsonID("all",Tt);const Bt={map(){return this},resolve:e=>new Tt(e)};function Ot(e,t,n,r,o,i=!1){if(t.inlineContent)return Vt.create(e,n);for(let a=r-(o>0?0:1);o>0?a<t.childCount:a>=0;a+=o){let r=t.child(a);if(r.isAtom){if(!i&&Dt.isSelectable(r))return Dt.create(e,n-(o<0?r.nodeSize:0))}else{let t=Ot(e,r,n+o,o<0?r.childCount:0,o,i);if(t)return t}n+=r.nodeSize*o}return null}function Pt(e,t,n){let r=e.steps.length-1;if(r<t)return;let o,i=e.steps[r];(i instanceof Ge||i instanceof Ke)&&(e.mapping.maps[r].forEach(((e,t,n,r)=>{null==o&&(o=r)})),e.setSelection(Et.near(e.doc.resolve(o),n)))}class Lt extends kt{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&this.updated|1,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return M.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||M.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),n=null==n?t:n,!e)return this.deleteRange(t,n);let o=this.storedMarks;if(!o){let e=this.doc.resolve(t);o=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,o)),this.selection.empty||this.setSelection(Et.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function It(e,t){return t&&e?e.bind(t):e}class jt{constructor(e,t,n){this.name=e,this.init=It(t.init,n),this.apply=It(t.apply,n)}}const Rt=[new jt("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new jt("selection",{init:(e,t)=>e.selection||Et.atStart(t.doc),apply:e=>e.selection}),new jt("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,n,r)=>r.selection.$cursor?e.storedMarks:null}),new jt("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class $t{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Rt.slice(),t&&t.forEach((e=>{if(this.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new jt(e.key,e.spec.state,e))}))}}class zt{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let o=!1;for(let i=0;i<this.config.plugins.length;i++){let a=this.config.plugins[i];if(a.spec.appendTransaction){let s=r?r[i].n:0,l=r?r[i].state:this,c=s<t.length&&a.spec.appendTransaction.call(a,s?t.slice(s):t,l,n);if(c&&n.filterTransaction(c,i)){if(c.setMeta("appendedTransaction",e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<i?{state:n,n:t.length}:{state:this,n:0})}t.push(c),n=n.applyInner(c),o=!0}r&&(r[i]={state:n,n:t.length})}}if(!o)return{state:n,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new zt(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let o=n[r];t[o.name]=o.apply(e,this[o.name],this,t)}return t}get tr(){return new Lt(this)}static create(e){let t=new $t(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new zt(t);for(let r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n}reconfigure(e){let t=new $t(this.schema,e.plugins),n=t.fields,r=new zt(t);for(let t=0;t<n.length;t++){let o=n[t].name;r[o]=this.hasOwnProperty(o)?this[o]:n[t].init(e,r)}return r}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map((e=>e.toJSON()))),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],o=r.spec.state;o&&o.toJSON&&(t[n]=o.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let r=new $t(e.schema,e.plugins),o=new zt(r);return r.fields.forEach((r=>{if("doc"==r.name)o.doc=X.fromJSON(e.schema,t.doc);else if("selection"==r.name)o.selection=Et.fromJSON(o.doc,t.selection);else if("storedMarks"==r.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let i in n){let a=n[i],s=a.spec.state;if(a.key==r.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(t,i))return void(o[r.name]=s.fromJSON.call(a,e,t[i],o))}o[r.name]=r.init(e,o)}})),o}}function Ft(e,t,n){for(let r in e){let o=e[r];o instanceof Function?o=o.bind(t):"handleDOMEvents"==r&&(o=Ft(o,t,{})),n[r]=o}return n}class Ht{constructor(e){this.spec=e,this.props={},e.props&&Ft(e.props,this,this.props),this.key=e.key?e.key.key:Wt("plugin")}getState(e){return e[this.key]}}const Ut=Object.create(null);function Wt(e){return e in Ut?e+"$"+ ++Ut[e]:(Ut[e]=0,e+"$")}class qt{constructor(e="key"){this.key=Wt(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Yt=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},Gt=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t};let Kt=null;const Jt=function(e,t,n){let r=Kt||(Kt=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},Xt=function(e,t,n,r){return n&&(Qt(e,t,n,r,-1)||Qt(e,t,n,r,1))},Zt=/^(img|br|input|textarea|hr)$/i;function Qt(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;
vendor: 4,175 bytes, line 2
2if(t==(o<0?0:en(e))){let n=e.parentNode;if(!n||1!=n.nodeType||tn(e)||Zt.test(e.nodeName)||"false"==e.contentEditable)return!1;t=Yt(e)+(o<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(o<0?-1:0)]).contentEditable)return!1;t=o<0?en(e):0}}}function en(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function tn(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const nn=function(e){return e.focusNode&&Xt(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function rn(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}const on="undefined"!=typeof navigator?navigator:null,an="undefined"!=typeof document?document:null,sn=on&&on.userAgent||"",ln=/Edge\/(\d+)/.exec(sn),cn=/MSIE \d/.exec(sn),un=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(sn),dn=!!(cn||un||ln),pn=cn?document.documentMode:un?+un[1]:ln?+ln[1]:0,hn=!dn&&/gecko\/(\d+)/i.test(sn);hn&&(/Firefox\/(\d+)/.exec(sn)||[0,0])[1];const fn=!dn&&/Chrome\/(\d+)/.exec(sn),mn=!!fn,gn=fn?+fn[1]:0,vn=!dn&&!!on&&/Apple Computer/.test(on.vendor),yn=vn&&(/Mobile\/\w+/.test(sn)||!!on&&on.maxTouchPoints>2),bn=yn||!!on&&/Mac/.test(on.platform),xn=!!on&&/Win/.test(on.platform),wn=/Android \d/.test(sn),kn=!!an&&"webkitFontSmoothing"in an.documentElement.style,_n=kn?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function En(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Cn(e,t){return"number"==typeof e?e:e[t]}function Nn(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function Sn(e,t,n){let r=e.someProp("scrollThreshold")||0,o=e.someProp("scrollMargin")||5,i=e.dom.ownerDocument;for(let a=n||e.dom;a;){if(1!=a.nodeType){a=Gt(a);continue}let e=a,n=e==i.body,s=n?En(i):Nn(e),l=0,c=0;if(t.top<s.top+Cn(r,"top")?c=-(s.top-t.top+Cn(o,"top")):t.bottom>s.bottom-Cn(r,"bottom")&&(c=t.bottom-t.top>s.bottom-s.top?t.top+Cn(o,"top")-s.top:t.bottom-s.bottom+Cn(o,"bottom")),t.left<s.left+Cn(r,"left")?l=-(s.left-t.left+Cn(o,"left")):t.right>s.right-Cn(r,"right")&&(l=t.right-s.right+Cn(o,"right")),l||c)if(n)i.defaultView.scrollBy(l,c);else{let n=e.scrollLeft,r=e.scrollTop;c&&(e.scrollTop+=c),l&&(e.scrollLeft+=l);let o=e.scrollLeft-n,i=e.scrollTop-r;t={left:t.left-o,top:t.top-i,right:t.right-o,bottom:t.bottom-i}}let u=n?"fixed":getComputedStyle(a).position;if(/^(fixed|sticky)$/.test(u))break;a="absolute"==u?a.offsetParent:Gt(a)}}function Vn(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=Gt(r));return t}function An(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:o,left:i}=e[n];r.scrollTop!=o+t&&(r.scrollTop=o+t),r.scrollLeft!=i&&(r.scrollLeft=i)}}let Dn=null;function Mn(e,t){let n,r,o,i,a=2e8,s=0,l=t.top,c=t.top;for(let u=e.firstChild,d=0;u;u=u.nextSibling,d++){let e;if(1==u.nodeType)e=u.getClientRects();else{if(3!=u.nodeType)continue;e=Jt(u).getClientRects()}for(let p=0;p<e.length;p++){let h=e[p];if(h.top<=l&&h.bottom>=c){l=Math.max(h.bottom,l),c=Math.min(h.top,c);let e=h.left>t.left?h.left-t.left:h.right<t.left?t.left-h.right:0;if(e<a){n=u,a=e,r=e&&3==n.nodeType?{left:h.right<t.left?h.right:h.left,top:t.top}:t,1==u.nodeType&&e&&(s=d+(t.left>=(h.left+h.right)/2?1:0));continue}}else h.top>t.top&&!o&&h.left<=t.left&&h.right>=t.left&&(o=u,i={left:Math.max(h.left,Math.min(h.right,t.left)),top:h.top});!n&&(t.left>=h.right&&t.top>=h.top||t.left>=h.left&&t.top>=h.bottom)&&(s=d+1)}}return!n&&o&&(n=o,r=i,a=0),n&&3==n.nodeType?function(e,t){let n=e.nodeValue.length,r=document.createRange();for(let o=0;o<n;o++){r.setEnd(e,o+1),r.setStart(e,o);let n=Ln(r,1);if(n.top!=n.bottom&&Tn(t,n))return{node:e,offset:o+(t.left>=(n.left+n.right)/2?1:0)}}return{node:e,offset:0}}(n,r):!n||a&&1==n.nodeType?{node:e,offset:s}:Mn(n,r)}function Tn(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>
vendor: 4,435 bytes, line 2
2=t.top-1&&e.top<=t.bottom+1}function Bn(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),i=o;;){let n=e.childNodes[i];if(1==n.nodeType){let e=n.getClientRects();for(let r=0;r<e.length;r++){let o=e[r];if(Tn(t,o))return Bn(n,t,o)}}if((i=(i+1)%r)==o)break}return e}function On(e,t){let n,r=e.dom.ownerDocument,o=0,i=function(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(en(r.offsetNode),r.offset)}}catch(e){}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(en(r.startContainer),r.startOffset)}}}(r,t.left,t.top);i&&({node:n,offset:o}=i);let a,s=(e.root.elementFromPoint?e.root:r).elementFromPoint(t.left,t.top);if(!s||!e.dom.contains(1!=s.nodeType?s.parentNode:s)){let n=e.dom.getBoundingClientRect();if(!Tn(t,n))return null;if(s=Bn(e.dom,t,n),!s)return null}if(vn)for(let e=s;n&&e;e=Gt(e))e.draggable&&(n=void 0);if(s=function(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(s,t),n){if(hn&&1==n.nodeType&&(o=Math.min(o,n.childNodes.length),o<n.childNodes.length)){let e,r=n.childNodes[o];"IMG"==r.nodeName&&(e=r.getBoundingClientRect()).right<=t.left&&e.bottom>t.top&&o++}let r;kn&&o&&1==n.nodeType&&1==(r=n.childNodes[o-1]).nodeType&&"false"==r.contentEditable&&r.getBoundingClientRect().top>=t.top&&o--,n==e.dom&&o==n.childNodes.length-1&&1==n.lastChild.nodeType&&t.top>n.lastChild.getBoundingClientRect().bottom?a=e.state.doc.content.size:0!=o&&1==n.nodeType&&"BR"==n.childNodes[o-1].nodeName||(a=function(e,t,n,r){let o=-1;for(let n=t,i=!1;n!=e.dom;){let t,a=e.docView.nearestDesc(n,!0);if(!a)return null;if(1==a.dom.nodeType&&(a.node.isBlock&&a.parent||!a.contentDOM)&&((t=a.dom.getBoundingClientRect()).width||t.height)&&(a.node.isBlock&&a.parent&&(!i&&t.left>r.left||t.top>r.top?o=a.posBefore:(!i&&t.right<r.left||t.bottom<r.top)&&(o=a.posAfter),i=!0),!a.contentDOM&&o<0&&!a.node.isText))return(a.node.isBlock?r.top<(t.top+t.bottom)/2:r.left<(t.left+t.right)/2)?a.posBefore:a.posAfter;n=a.dom.parentNode}return o>-1?o:e.docView.posFromDOM(t,n,-1)}(e,n,o,t))}null==a&&(a=function(e,t,n){let{node:r,offset:o}=Mn(t,n),i=-1;if(1==r.nodeType&&!r.firstChild){let e=r.getBoundingClientRect();i=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,o,i)}(e,s,t));let l=e.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function Pn(e){return e.top<e.bottom||e.left<e.right}function Ln(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(Pn(e))return e}return Array.prototype.find.call(n,Pn)||e.getBoundingClientRect()}const In=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function jn(e,t,n){let{node:r,offset:o,atom:i}=e.docView.domFromPos(t,n<0?-1:1),a=kn||hn;if(3==r.nodeType){if(!a||!In.test(r.nodeValue)&&(n<0?o:o!=r.nodeValue.length)){let e=o,t=o,i=n<0?1:-1;return n<0&&!o?(t++,i=-1):n>=0&&o==r.nodeValue.length?(e--,i=1):n<0?e--:t++,Rn(Ln(Jt(r,e,t),i),i<0)}{let e=Ln(Jt(r,o,o),n);if(hn&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let t=Ln(Jt(r,o-1,o-1),-1);if(t.top==e.top){let n=Ln(Jt(r,o,o+1),-1);if(n.top!=e.top)return Rn(n,n.left<t.left)}}return e}}if(!e.state.doc.resolve(t-(i||0)).parent.inlineContent){if(null==i&&o&&(n<0||o==en(r))){let e=r.childNodes[o-1];if(1==e.nodeType)return $n(e.getBoundingClientRect(),!1)}if(null==i&&o<en(r)){let e=r.childNodes[o];if(1==e.nodeType)return $n(e.getBoundingClientRect(),!0)}return $n(r.getBoundingClientRect(),n>=0)}if(null==i&&o&&(n<0||o==en(r))){let e=r.childNodes[o-1],t=3==e.nodeType?Jt(e,en(e)-(a?0:1)):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return Rn(Ln(t,1),!1)}if(null==i&&o<en(r)){let e=r.childNodes[o];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?3==e.nodeType?Jt(e,0,a?0:1):1==e.nodeType?e:null:null;if(t)return Rn(Ln(t,-1),!0)}return Rn(Ln(3==r.nodeType?Jt(r):r,-n),n>=0)}function Rn(e,t){if(0==e.width)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function $n(e,t){if(0==e.height)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function zn(e,t,n){let r=e.state,o=e.root.activeElement;r!=t&&e.updateState(t),o!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),o!=e.dom&&o&&o.focus()}}
vendor: 28,588 bytes, line 2
2const Fn=/[\u0590-\u08ac]/;let Hn=null,Un=null,Wn=!1;function qn(e,t,n){return Hn==t&&Un==n?Wn:(Hn=t,Un=n,Wn="up"==n||"down"==n?function(e,t,n){let r=t.selection,o="up"==n?r.$from:r.$to;return zn(e,t,(()=>{let{node:t}=e.docView.domFromPos(o.pos,"up"==n?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=jn(e,o.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=Jt(e,0,e.nodeValue.length).getClientRects()}for(let e=0;e<t.length;e++){let o=t[e];if(o.bottom>o.top+1&&("up"==n?r.top-o.top>2*(o.bottom-r.top):o.bottom-r.bottom>2*(r.bottom-o.top)))return!1}}return!0}))}(e,t,n):function(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,a=o==r.parent.content.size,s=e.domSelection();return s?Fn.test(r.parent.textContent)&&s.modify?zn(e,t,(()=>{let{focusNode:t,focusOffset:o,anchorNode:i,anchorOffset:a}=e.domSelectionRange(),l=s.caretBidiLevel;s.modify("move",n,"character");let c=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:u,focusOffset:d}=e.domSelectionRange(),p=u&&!c.contains(1==u.nodeType?u:u.parentNode)||t==u&&o==d;try{s.collapse(i,a),t&&(t!=i||o!=a)&&s.extend&&s.extend(t,o)}catch(e){}return null!=l&&(s.caretBidiLevel=l),p})):"left"==n||"backward"==n?i:a:r.pos==r.start()||r.pos==r.end()}(e,t,n))}class Yn{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=0,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&(!(r=n.pmViewDesc)||r.parent!=this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&(!(r=n.pmViewDesc)||r.parent!=this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}}let r;if(e==this.dom&&this.contentDOM)r=t>Yt(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(null==r&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return(null==r?n>0:r)?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let o,i=this.getDesc(r);if(i&&(!t||i.node)){if(!n||!(o=i.nodeDOM)||(1==o.nodeType?o.contains(1==e.nodeType?e:e.parentNode):o==e))return i;n=!1}}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let o=this.getDesc(r);if(o)return o.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],o=n+r.size;if(n==e&&o!=n){for(;!r.border&&r.children.length;)for(let e=0;e<r.children.length;e++){let t=r.children[e];if(t.size){r=t;break}}return r}if(e<o)return r.descAt(e-n-r.border);n=o}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let t=0;n<this.children.length;n++){let o=this.children[n],i=t+o.size;if(i>e||o instanceof er){r=e-t;break}t=i}if(r)return this.children[n].domFromPos(r-this.children[n].border,t);for(let e;n&&!(e=this.children[n-1]).size&&e instanceof Gn&&e.side>=0;n--);if(t<=0){let e,r=!0;for(;e=n?this.children[n-1]:null,e&&e.dom.parentNode!=this.contentDOM;n--,r=!1);return e&&t&&r&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?Yt(e.dom)+1:0}}{let e,r=!0;for(;e=n<this.children.length?this.children[n]:null,e&&e.dom.parentNode!=this.contentDOM;n++,r=!1);return e&&r&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?Yt(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,o=-1;for(let i=n,a=0;;a++){let n=this.children[a],s=i+n.size;if(-1==r&&e<=s){let o=i+n.border;if(e>=o&&t<=s-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,o);e=i;for(let t=a;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=Yt(n.dom)+1;break}e-=n.size}-1==r&&(r=0)}if(r>-1&&(s>t||a==this.children.length-1)){t=s;for(let e=a+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){o=Yt(n.dom);break}t+=n.size}-1==o&&(o=this.contentDOM.childNodes.length);break}i=s}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:o}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(1!=t.nodeType||n==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[n]}setSelection(e,t,n,r=!1){let o=Math.min(e,t),i=Math.max(e,t);for(let a=0,s=0;a<this.children.length;a++){let l=this.children[a],c=s+l.size;if(o>s&&i<c)return l.setSelection(e-s-l.border,t-s-l.border,n,r);s=c}let a=this.domFromPos(e,e?-1:1),s=t==e?a:this.domFromPos(t,t?-1:1),l=n.root.getSelection(),c=n.domSelectionRange(),u=!1;if((hn||vn)&&e==t){let{node:e,offset:t}=a;if(3==e.nodeType){if(u=!(!t||"\n"!=e.nodeValue[t-1]),u&&t==e.nodeValue.length)for(let t,n=e;n;n=n.parentNode){if(t=n.nextSibling){"BR"==t.nodeName&&(a=s={node:t.parentNode,offset:Yt(t)+1});break}let e=n.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];u=n&&("BR"==n.nodeName||"false"==n.contentEditable)}}if(hn&&c.focusNode&&c.focusNode!=s.node&&1==c.focusNode.nodeType){let e=c.focusNode.childNodes[c.focusOffset];e&&"false"==e.contentEditable&&(r=!0)}if(!(r||u&&vn)&&Xt(a.node,a.offset,c.anchorNode,c.anchorOffset)&&Xt(s.node,s.offset,c.focusNode,c.focusOffset))return;let d=!1;if((l.extend||e==t)&&!u){l.collapse(a.node,a.offset);try{e!=t&&l.extend(s.node,s.offset),d=!0}catch(e){}}if(!d){if(e>t){let e=a;a=s,s=e}let n=document.createRange();n.setEnd(s.node,s.offset),n.setStart(a.node,a.offset),l.removeAllRanges(),l.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let o=this.children[r],i=n+o.size;if(n==i?e<=i&&t>=n:e<i&&t>n){let r=n+o.border,a=i-o.border;if(e>=r&&t<=a)return this.dirty=e==n||t==i?2:1,void(e!=r||t!=a||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(e-r,t-r):o.dirty=3);o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?3:2}n=i}this.dirty=2}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=1==e?2:1;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(e){return!1}}class Gn extends Yn{constructor(e,t,n,r){let o,i=t.type.toDOM;if("function"==typeof i&&(i=i(n,(()=>o?o.parent?o.parent.posBeforeChild(o):void 0:r))),!t.type.spec.raw){if(1!=i.nodeType){let e=document.createElement("span");e.appendChild(i),i=e}i.contentEditable="false",i.classList.add("ProseMirror-widget")}super(e,[],i,null),this.widget=t,this.widget=t,o=this}matchesWidget(e){return 0==this.dirty&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class Kn extends Yn{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class Jn extends Yn{constructor(e,t,n,r,o){super(e,[],n,r),this.mark=t,this.spec=o}static create(e,t,n,r){let o=r.nodeViews[t.type.name],i=o&&o(t,r,n);return i&&i.dom||(i=Ve.renderSpec(document,t.type.spec.toDOM(t,n),null,t.attrs)),new Jn(e,t,i.dom,i.contentDOM||i.dom,i)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return 3!=this.dirty&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),0!=this.dirty){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=0}}slice(e,t,n){let r=Jn.create(this.parent,this.mark,!0,n),o=this.children,i=this.size;t<i&&(o=hr(o,t,i,n)),e>0&&(o=hr(o,0,e,n));for(let e=0;e<o.length;e++)o[e].parent=r;return r.children=o,r}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class Xn extends Yn{constructor(e,t,n,r,o,i,a,s,l){super(e,[],o,i),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=a}static create(e,t,n,r,o,i){let a,s=o.nodeViews[t.type.name],l=s&&s(t,o,(()=>a?a.parent?a.parent.posBeforeChild(a):void 0:i),n,r),c=l&&l.dom,u=l&&l.contentDOM;if(t.isText)if(c){if(3!=c.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else c=document.createTextNode(t.text);else if(!c){let e=Ve.renderSpec(document,t.type.spec.toDOM(t),null,t.attrs);({dom:c,contentDOM:u}=e)}u||t.isText||"BR"==c.nodeName||(c.hasAttribute("contenteditable")||(c.contentEditable="false"),t.type.spec.draggable&&(c.draggable=!0));let d=c;return c=lr(c,n,t),l?a=new tr(e,t,n,r,c,u||null,d,l,o,i+1):t.isText?new Qn(e,t,n,r,c,d,o):new Xn(e,t,n,r,c,u||null,d,o,i+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>S.empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,n){return 0==this.dirty&&e.eq(this.node)&&cr(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let n=this.node.inlineContent,r=t,o=e.composing?this.localCompositionInfo(e,t):null,i=o&&o.pos>-1?o:null,a=o&&o.pos<0,s=new dr(this,i&&i.node,e);!function(e,t,n,r){let o=t.locals(e),i=0;if(0==o.length){for(let n=0;n<e.childCount;n++){let a=e.child(n);r(a,o,t.forChild(i,a),n),i+=a.nodeSize}return}let a=0,s=[],l=null;for(let c=0;;){let u,d,p,h;for(;a<o.length&&o[a].to==i;){let e=o[a++];e.widget&&(u?(d||(d=[u])).push(e):u=e)}if(u)if(d){d.sort(pr);for(let e=0;e<d.length;e++)n(d[e],c,!!l)}else n(u,c,!!l);if(l)h=-1,p=l,l=null;else{if(!(c<e.childCount))break;h=c,p=e.child(c++)}for(let e=0;e<s.length;e++)s[e].to<=i&&s.splice(e--,1);for(;a<o.length&&o[a].from<=i&&o[a].to>i;)s.push(o[a++]);let f=i+p.nodeSize;if(p.isText){let e=f;a<o.length&&o[a].from<e&&(e=o[a].from);for(let t=0;t<s.length;t++)s[t].to<e&&(e=s[t].to);e<f&&(l=p.cut(e-i),p=p.cut(0,e-i),f=e,h=-1)}else for(;a<o.length&&o[a].to<f;)a++;r(p,p.isInline&&!p.isLeaf?s.filter((e=>!e.inline)):s.slice(),t.forChild(i,p),h),i=f}}(this.node,this.innerDeco,((t,o,i)=>{t.spec.marks?s.syncToMarks(t.spec.marks,n,e):t.type.side>=0&&!i&&s.syncToMarks(o==this.node.childCount?M.none:this.node.child(o).marks,n,e),s.placeWidget(t,e,r)}),((t,i,l,c)=>{let u;s.syncToMarks(t.marks,n,e),s.findNodeMatch(t,i,l,c)||a&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(u=s.findIndexWithChild(o.node))>-1&&s.updateNodeAt(t,i,l,u,e)||s.updateNextNode(t,i,l,e,c,r)||s.addNode(t,i,l,e,r),r+=t.nodeSize})),s.syncToMarks([],n,e),this.node.isTextblock&&s.addTextblockHacks(),s.destroyRest(),(s.changed||2==this.dirty)&&(i&&this.protectLocalComposition(e,i),nr(this.contentDOM,this.children,e),yn&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof Vt)||n<t||r>t+this.node.content.size)return null;let o=e.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let e=o.nodeValue,i=function(e,t,n,r){for(let o=0,i=0;o<e.childCount&&i<=r;){let a=e.child(o++),s=i;if(i+=a.nodeSize,!a.isText)continue;let l=a.text;for(;o<e.childCount;){let t=e.child(o++);if(i+=t.nodeSize,!t.isText)break;l+=t.text}if(i>=n){if(i>=r&&l.slice(r-t.length-s,r-s)==t)return r-t.length;let e=s<r?l.lastIndexOf(t,r-s-1):-1;if(e>=0&&e+t.length+s>=n)return s+e;if(n==r&&l.length>=r+t.length-s&&l.slice(r-s,r-s+t.length)==t)return r}}return-1}(this.node.content,e,n-t,r-t);return i<0?null:{node:o,pos:i,text:e}}return{node:o,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let o=t;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let i=new Kn(this,o,t,r);e.input.compositionNodes.push(i),this.children=hr(this.children,n,n+r.length,e,i)}update(e,t,n,r){return!(3==this.dirty||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0}updateOuterDeco(e){if(cr(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=ar(this.dom,this.nodeDOM,ir(this.outerDeco,this.node,t),ir(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Zn(e,t,n,r,o){lr(r,t,e);let i=new Xn(void 0,e,t,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class Qn extends Xn{constructor(e,t,n,r,o,i,a){super(e,t,n,r,o,null,i,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=0,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,n){let r=this.node.cut(e,t),o=document.createTextNode(r.text);return new Qn(this.parent,r,this.outerDeco,this.innerDeco,o,o,n)}markDirty(e,t){super.markDirty(e,t),this.dom==this.nodeDOM||0!=e&&t!=this.nodeDOM.nodeValue.length||(this.dirty=3)}get domAtom(){return!1}isText(e){return this.node.text==e}}class er extends Yn{parseRule(){return{ignore:!0}}matchesHack(e){return 0==this.dirty&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class tr extends Xn{constructor(e,t,n,r,o,i,a,s,l,c){super(e,t,n,r,o,i,a,l,c),this.spec=s}update(e,t,n,r){if(3==this.dirty)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let o=this.spec.update(e,t,n);return o&&this.updateInner(e,t,n,r),o}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n.root):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function nr(e,t,n){let r=e.firstChild,o=!1;for(let i=0;i<t.length;i++){let a=t[i],s=a.dom;if(s.parentNode==e){for(;s!=r;)r=ur(r),o=!0;r=r.nextSibling}else o=!0,e.insertBefore(s,r);if(a instanceof Jn){let t=r?r.previousSibling:e.lastChild;nr(a.contentDOM,a.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=ur(r),o=!0;o&&n.trackWrites==e&&(n.trackWrites=null)}const rr=function(e){e&&(this.nodeName=e)};rr.prototype=Object.create(null);const or=[new rr];function ir(e,t,n){if(0==e.length)return or;let r=n?or[0]:new rr,o=[r];for(let i=0;i<e.length;i++){let a=e[i].type.attrs;if(a){a.nodeName&&o.push(r=new rr(a.nodeName));for(let e in a){let i=a[e];null!=i&&(n&&1==o.length&&o.push(r=new rr(t.isInline?"span":"div")),"class"==e?r.class=(r.class?r.class+" ":"")+i:"style"==e?r.style=(r.style?r.style+";":"")+i:"nodeName"!=e&&(r[e]=i))}}}return o}function ar(e,t,n,r){if(n==or&&r==or)return t;let o=t;for(let t=0;t<r.length;t++){let i=r[t],a=n[t];if(t){let t;a&&a.nodeName==i.nodeName&&o!=e&&(t=o.parentNode)&&t.nodeName.toLowerCase()==i.nodeName||(t=document.createElement(i.nodeName),t.pmIsDeco=!0,t.appendChild(o),a=or[0]),o=t}sr(o,a||or[0],i)}return o}function sr(e,t,n){for(let r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(let r in n)"class"!=r&&"style"!=r&&"nodeName"!=r&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(" ").filter(Boolean):[],o=n.class?n.class.split(" ").filter(Boolean):[];for(let t=0;t<r.length;t++)-1==o.indexOf(r[t])&&e.classList.remove(r[t]);for(let t=0;t<o.length;t++)-1==r.indexOf(o[t])&&e.classList.add(o[t]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let n,r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;for(;n=r.exec(t.style);)e.style.removeProperty(n[1])}n.style&&(e.style.cssText+=n.style)}}function lr(e,t,n){return ar(e,e,or,ir(t,n,1!=e.nodeType))}function cr(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function ur(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class dr{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=function(e,t){let n=t,r=n.children.length,o=e.childCount,i=new Map,a=[];e:for(;o>0;){let s;for(;;)if(r){let e=n.children[r-1];if(!(e instanceof Jn)){s=e,r--;break}n=e,r=e.children.length}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=e.child(o-1))break;--o,i.set(s,o),a.push(s)}}return{index:o,matched:i,matches:a.reverse()}}(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n){let r=0,o=this.stack.length>>1,i=Math.min(o,e.length);for(;r<i&&(r==o-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&!1!==e[r].type.spec.spanning;)r++;for(;r<o;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<e.length;){this.stack.push(this.top,this.index+1);let r=-1;for(let t=this.index;t<Math.min(this.index+3,this.top.children.length);t++){let n=this.top.children[t];if(n.matchesMark(e[o])&&!this.isLocked(n.dom)){r=t;break}}if(r>-1)r>this.index&&(this.changed=!0,this.destroyBetween(this.index,r)),this.top=this.top.children[this.index];else{let r=Jn.create(this.top,e[o],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,o++}}findNodeMatch(e,t,n,r){let o,i=-1;if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(e,t,n))i=this.top.children.indexOf(o,this.index);else for(let r=this.index,o=Math.min(this.top.children.length,r+5);r<o;r++){let o=this.top.children[r];if(o.matchesNode(e,t,n)&&!this.preMatch.matched.has(o)){i=r;break}}return!(i<0)&&(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,n,r,o){let i=this.top.children[r];return 3==i.dirty&&i.dom==i.contentDOM&&(i.dirty=2),!!i.update(e,t,n,o)&&(this.destroyBetween(this.index,r),this.index++,!0)}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t)for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e;return-1}e=t}}updateNextNode(e,t,n,r,o,i){for(let a=this.index;a<this.top.children.length;a++){let s=this.top.children[a];if(s instanceof Xn){let l=this.preMatch.matched.get(s);if(null!=l&&l!=o)return!1;let c,u=s.dom,d=this.isLocked(u)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&3!=s.dirty&&cr(t,s.outerDeco));if(!d&&s.update(e,t,n,r))return this.destroyBetween(this.index,a),s.dom!=u&&(this.changed=!0),this.index++,!0;if(!d&&(c=this.recreateWrapper(s,e,t,n,r,i)))return this.destroyBetween(this.index,a),this.top.children[this.index]=c,c.contentDOM&&(c.dirty=2,c.updateChildren(r,i+1),c.dirty=0),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,o,i){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!cr(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let a=Xn.create(this.top,t,n,r,o,i);if(a.contentDOM){a.children=e.children,e.children=[];for(let e of a.children)e.parent=a}return e.destroy(),a}addNode(e,t,n,r,o){let i=Xn.create(this.top,e,t,n,r,o);i.contentDOM&&i.updateChildren(r,o+1),this.top.children.splice(this.index++,0,i),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(e)||e!=r.widget&&r.widget.type.toDOM.parentNode){let r=new Gn(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}else this.index++}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof Jn;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof Qn)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((vn||mn)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);"IMG"==e&&(n.className="ProseMirror-separator",n.alt=""),"BR"==e&&(n.className="ProseMirror-trailingBreak");let r=new er(this.top,[],n,null);t!=this.top?t.children.push(r):t.children.splice(this.index++,0,r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||1==e.nodeType&&e.contains(this.lock.parentNode))}}function pr(e,t){return e.type.side-t.type.side}function hr(e,t,n,r,o){let i=[];for(let a=0,s=0;a<e.length;a++){let l=e[a],c=s,u=s+=l.size;c>=n||u<=t?i.push(l):(c<t&&i.push(l.slice(0,t-c,r)),o&&(i.push(o),o=void 0),u>n&&i.push(l.slice(n-c,l.size,r)))}return i}function fr(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let o=e.docView.nearestDesc(n.focusNode),i=o&&0==o.size,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let s,l,c=r.resolve(a);if(nn(n)){for(s=a;o&&!o.node;)o=o.parent;let e=o.node;if(o&&e.isAtom&&Dt.isSelectable(e)&&o.parent&&(!e.isInline||!function(e,t,n){for(let r=0==t,o=t==en(e);r||o;){if(e==n)return!0;let t=Yt(e);if(!(e=e.parentNode))return!1;r=r&&0==t,o=o&&t==en(e)}}(n.focusNode,n.focusOffset,o.dom))){let e=o.posBefore;l=new Dt(a==e?c:r.resolve(e))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let t=a,o=a;for(let r=0;r<n.rangeCount;r++){let i=n.getRangeAt(r);t=Math.min(t,e.docView.posFromDOM(i.startContainer,i.startOffset,1)),o=Math.max(o,e.docView.posFromDOM(i.endContainer,i.endOffset,-1))}if(t<0)return null;[s,a]=o==e.state.selection.anchor?[o,t]:[t,o],c=r.resolve(a)}else s=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(s<0)return null}let u=r.resolve(s);if(!l){l=_r(e,u,c,"pointer"==t||e.state.selection.head<c.pos&&!i?1:-1)}return l}function mr(e){return e.editable?e.hasFocus():Cr(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function gr(e,t=!1){let n=e.state.selection;if(wr(e,n),mr(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&mn){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&Xt(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset))return e.input.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){let t=e.domSelection(),n=document.createRange();if(!t)return;let r=e.cursorWrapper.dom,o="IMG"==r.nodeName;o?n.setStart(r.parentNode,Yt(r)+1):n.setStart(r,0);n.collapse(!0),t.removeAllRanges(),t.addRange(n),!o&&!e.state.selection.visible&&dn&&pn<=11&&(r.disabled=!0,r.disabled=!1)}(e);else{let r,o,{anchor:i,head:a}=n;!vr||n instanceof Vt||(n.$from.parent.inlineContent||(r=yr(e,n.from)),n.empty||n.$from.parent.inlineContent||(o=yr(e,n.to))),e.docView.setSelection(i,a,e,t),vr&&(r&&xr(r),o&&xr(o)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,o=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{n.anchorNode==r&&n.anchorOffset==o||(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout((()=>{mr(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")}),20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const vr=vn||mn&&gn<63;function yr(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),o=r<n.childNodes.length?n.childNodes[r]:null,i=r?n.childNodes[r-1]:null;if(vn&&o&&"false"==o.contentEditable)return br(o);if(!(o&&"false"!=o.contentEditable||i&&"false"!=i.contentEditable)){if(o)return br(o);if(i)return br(i)}}function br(e){return e.contentEditable="true",vn&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function xr(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function wr(e,t){if(t instanceof Dt){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(kr(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else kr(e)}function kr(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function _r(e,t,n,r){return e.someProp("createSelectionBetween",(r=>r(e,t,n)))||Vt.between(t,n,r)}function Er(e){return!(e.editable&&!e.hasFocus())&&Cr(e)}function Cr(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focu
vendor: 4,466 bytes, line 2
2sNode.parentNode:t.focusNode))}catch(e){return!1}}function Nr(e,t){let{$anchor:n,$head:r}=e.selection,o=t>0?n.max(r):n.min(r),i=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return i&&Et.findFrom(i,t)}function Sr(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Vr(e,t,n){let r=e.state.selection;if(!(r instanceof Vt)){if(r instanceof Dt&&r.node.isInline)return Sr(e,new Vt(t>0?r.$to:r.$from));{let n=Nr(e.state,t);return!!n&&Sr(e,n)}}if(n.indexOf("s")>-1){let{$head:n}=r,o=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let i=e.state.doc.resolve(n.pos+o.nodeSize*(t<0?-1:1));return Sr(e,new Vt(r.$anchor,i))}if(!r.empty)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){let n=Nr(e.state,t);return!!(n&&n instanceof Dt)&&Sr(e,n)}if(!(bn&&n.indexOf("m")>-1)){let n,o=r.$head,i=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText)return!1;let a=t<0?o.pos-i.nodeSize:o.pos;return!!(i.isAtom||(n=e.docView.descAt(a))&&!n.contentDOM)&&(Dt.isSelectable(i)?Sr(e,new Dt(t<0?e.state.doc.resolve(o.pos-i.nodeSize):o)):!!kn&&Sr(e,new Vt(e.state.doc.resolve(t<0?a:a+i.nodeSize))))}}function Ar(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Dr(e,t){let n=e.pmViewDesc;return n&&0==n.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function Mr(e,t){return t<0?function(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,i,a=!1;hn&&1==n.nodeType&&r<Ar(n)&&Dr(n.childNodes[r],-1)&&(a=!0);for(;;)if(r>0){if(1!=n.nodeType)break;{let e=n.childNodes[r-1];if(Dr(e,-1))o=n,i=--r;else{if(3!=e.nodeType)break;n=e,r=n.nodeValue.length}}}else{if(Tr(n))break;{let t=n.previousSibling;for(;t&&Dr(t,-1);)o=n.parentNode,i=Yt(t),t=t.previousSibling;if(t)n=t,r=Ar(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}a?Br(e,n,r):o&&Br(e,o,i)}(e):function(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,i,a=Ar(n);for(;;)if(r<a){if(1!=n.nodeType)break;if(!Dr(n.childNodes[r],1))break;o=n,i=++r}else{if(Tr(n))break;{let t=n.nextSibling;for(;t&&Dr(t,1);)o=t.parentNode,i=Yt(t)+1,t=t.nextSibling;if(t)n=t,r=0,a=Ar(n);else{if(n=n.parentNode,n==e.dom)break;r=a=0}}}o&&Br(e,o,i)}(e)}function Tr(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Br(e,t,n){if(3!=t.nodeType){let e,r;(r=function(e,t){for(;e&&t==e.childNodes.length&&!tn(e);)t=Yt(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;e=n,t=0}}(t,n))?(t=r,n=0):(e=function(e,t){for(;e&&!t&&!tn(e);)t=Yt(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;t=(e=n).childNodes.length}}(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection();if(!r)return;if(nn(r)){let e=document.createRange();e.setEnd(t,n),e.setStart(t,n),r.removeAllRanges(),r.addRange(e)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:o}=e;setTimeout((()=>{e.state==o&&gr(e)}),50)}function Or(e,t){let n=e.state.doc.resolve(t);if(!mn&&!xn&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?"ltr":"rtl"}if(t<n.end()){let n=e.coordsAtPos(t+1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function Pr(e,t,n){let r=e.state.selection;if(r instanceof Vt&&!r.empty||n.indexOf("s")>-1)return!1;if(bn&&n.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=Nr(e.state,t);if(n&&n instanceof Dt)return Sr(e,n)}if(!o.parent.inlineContent){let n=t<0?o:i,a=r instanceof Tt?Et.near(n,t):Et.findFrom(n,t);return!!a&&Sr(e,a)}return!1}function Lr(e,t){if(!(e.state.selection instanceof Vt))return!0;let{$head:n,$anchor:r,empty:o}=e.state.selection;if(!n.sameParent(r))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let i=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let r=e.state.tr;return t<0?r.delete(n.pos-i.nodeSize,n.pos):r.delete(n.pos,n.pos+i.nodeSize),e.dispatch(r),!0}return!1}function Ir(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function jr(e,t){let n=t.keyCode,r=function(e){let t="";
vendor: 46,575 bytes, line 2
2return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);if(8==n||bn&&72==n&&"c"==r)return Lr(e,-1)||Mr(e,-1);if(46==n&&!t.shiftKey||bn&&68==n&&"c"==r)return Lr(e,1)||Mr(e,1);if(13==n||27==n)return!0;if(37==n||bn&&66==n&&"c"==r){let t=37==n?"ltr"==Or(e,e.state.selection.from)?-1:1:-1;return Vr(e,t,r)||Mr(e,t)}if(39==n||bn&&70==n&&"c"==r){let t=39==n?"ltr"==Or(e,e.state.selection.from)?1:-1:1;return Vr(e,t,r)||Mr(e,t)}return 38==n||bn&&80==n&&"c"==r?Pr(e,-1,r)||Mr(e,-1):40==n||bn&&78==n&&"c"==r?function(e){if(!vn||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;Ir(e,n,"true"),setTimeout((()=>Ir(e,n,"false")),20)}return!1}(e)||Pr(e,1,r)||Mr(e,1):r==(bn?"m":"c")&&(66==n||73==n||89==n||90==n)}function Rr(e,t){e.someProp("transformCopied",(n=>{t=n(t,e)}));let n=[],{content:r,openStart:o,openEnd:i}=t;for(;o>1&&i>1&&1==r.childCount&&1==r.firstChild.childCount;){o--,i--;let e=r.firstChild;n.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),r=e.content}let a=e.someProp("clipboardSerializer")||Ve.fromSchema(e.state.schema),s=Kr(),l=s.createElement("div");l.appendChild(a.serializeFragment(r,{document:s}));let c,u=l.firstChild,d=0;for(;u&&1==u.nodeType&&(c=Yr[u.nodeName.toLowerCase()]);){for(let e=c.length-1;e>=0;e--){let t=s.createElement(c[e]);for(;l.firstChild;)t.appendChild(l.firstChild);l.appendChild(t),d++}u=l.firstChild}return u&&1==u.nodeType&&u.setAttribute("data-pm-slice",`${o} ${i}${d?` -${d}`:""} ${JSON.stringify(n)}`),{dom:l,text:e.someProp("clipboardTextSerializer",(n=>n(t,e)))||t.content.textBetween(0,t.content.size,"\n\n"),slice:t}}function $r(e,t,n,r,o){let i,a,s=o.parent.type.spec.code;if(!n&&!t)return null;let l=t&&(r||s||!n);if(l){if(e.someProp("transformPastedText",(n=>{t=n(t,s||r,e)})),s)return t?new B(S.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):B.empty;let n=e.someProp("clipboardTextParser",(n=>n(t,o,r,e)));if(n)a=n;else{let n=o.marks(),{schema:r}=e.state,a=Ve.fromSchema(r);i=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach((e=>{let t=i.appendChild(document.createElement("p"));e&&t.appendChild(a.serializeNode(r.text(e,n)))}))}}else e.someProp("transformPastedHTML",(t=>{n=t(n,e)})),i=function(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n,r=Kr().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e);(n=o&&Yr[o[1].toLowerCase()])&&(e=n.map((e=>"<"+e+">")).join("")+e+n.map((e=>"</"+e+">")).reverse().join(""));if(r.innerHTML=function(e){let t=window.trustedTypes;if(!t)return e;Jr||(Jr=t.createPolicy("ProseMirrorClipboard",{createHTML:e=>e}));return Jr.createHTML(e)}(e),n)for(let e=0;e<n.length;e++)r=r.querySelector(n[e])||r;return r}(n),kn&&function(e){let t=e.querySelectorAll(mn?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let r=t[n];1==r.childNodes.length&&"Â "==r.textContent&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}(i);let c=i&&i.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let e=+u[3];e>0;e--){let e=i.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;i=e}if(!a){let t=e.someProp("clipboardParser")||e.someProp("domParser")||ye.fromSchema(e.state.schema);a=t.parseSlice(i,{preserveWhitespace:!(!l&&!u),context:o,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||zr.test(e.parentNode.nodeName)?null:{ignore:!0}})}if(u)a=function(e,t){if(!e.size)return e;let n,r=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(t){return e}let{content:o,openStart:i,openEnd:a}=e;for(let e=n.length-2;e>=0;e-=2){let t=r.nodes[n[e]];if(!t||t.hasRequiredAttrs())break;o=S.from(t.create(n[e+1],o)),i++,a++}return new B(o,i,a)}(qr(a,+u[1],+u[2]),u[4]);else if(a=B.maxOpen(function(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r,o=t.node(n).contentMatchAt(t.index(n)),i=[];if(e.forEach((e=>{if(!i)return;let t,n=o.findWrapping(e.type);if(!n)return i=null;if(t=i.length&&r.length&&Hr(n,r,e,i[i.length-1],0))i[i.length-1]=t;else{i.length&&(i[i.length-1]=Ur(i[i.length-1],r.length));let t=Fr(e,n);i.push(t),o=o.matchType(t.type),r=n}})),i)return S.from(i)}return e}(a.content,o),!0),a.openStart||a.openEnd){let e=0,t=0;for(let t=a.content.firstChild;e<a.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=a.content.lastChild;t<a.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);a=qr(a,e,t)}return e.someProp("transformPasted",(t=>{a=t(a,e)})),a}const zr=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Fr(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,S.from(e));return e}function Hr(e,t,n,r,o){if(o<e.length&&o<t.length&&e[o]==t[o]){let i=Hr(e,t,n,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==e.length-1?n.type:e[o+1]))return r.copy(r.content.append(S.from(Fr(n,e,o+1))))}}function Ur(e,t){if(0==t)return e;let n=e.content.replaceChild(e.childCount-1,Ur(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(S.empty,!0);return e.copy(n.append(r))}function Wr(e,t,n,r,o,i){let a=t<0?e.firstChild:e.lastChild,s=a.content;return e.childCount>1&&(i=0),o<r-1&&(s=Wr(s,t,n,r,o+1,i)),o>=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,i<=o).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(S.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function qr(e,t,n){return t<e.openStart&&(e=new B(Wr(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new B(Wr(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const Yr={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Gr=null;function Kr(){return Gr||(Gr=document.implementation.createHTMLDocument("title"))}let Jr=null;const Xr={},Zr={},Qr={touchstart:!0,touchmove:!0};class eo{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function to(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function no(e){e.someProp("handleDOMEvents",(t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>ro(e,t))}))}function ro(e,t){return e.someProp("handleDOMEvents",(n=>{let r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)}))}function oo(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function io(e){return{left:e.clientX,top:e.clientY}}function ao(e,t,n,r,o){if(-1==r)return!1;let i=e.state.doc.resolve(r);for(let r=i.depth+1;r>0;r--)if(e.someProp(t,(t=>r>i.depth?t(e,n,i.nodeAfter,i.before(r),o,!0):t(e,n,i.node(r),i.before(r),o,!1))))return!0;return!1}function so(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function lo(e,t,n,r,o){return ao(e,"handleClickOn",t,n,r)||e.someProp("handleClick",(n=>n(e,t,r)))||(o?function(e,t){if(-1==t)return!1;let n,r,o=e.state.selection;o instanceof Dt&&(n=o.node);let i=e.state.doc.resolve(t);for(let e=i.depth+1;e>0;e--){let t=e>i.depth?i.nodeAfter:i.node(e);if(Dt.isSelectable(t)){r=n&&o.$from.depth>0&&e>=o.$from.depth&&i.before(o.$from.depth+1)==o.$from.pos?i.before(o.$from.depth):i.before(e);break}}return null!=r&&(so(e,Dt.create(e.state.doc,r),"pointer"),!0)}(e,n):function(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return!!(r&&r.isAtom&&Dt.isSelectable(r))&&(so(e,new Dt(n),"pointer"),!0)}(e,n))}function co(e,t,n,r){return ao(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",(n=>n(e,t,r)))}function uo(e,t,n,r){return ao(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",(n=>n(e,t,r)))||function(e,t,n){if(0!=n.button)return!1;let r=e.state.doc;if(-1==t)return!!r.inlineContent&&(so(e,Vt.create(r,0,r.content.size),"pointer"),!0);let o=r.resolve(t);for(let t=o.depth+1;t>0;t--){let n=t>o.depth?o.nodeAfter:o.node(t),i=o.before(t);if(n.inlineContent)so(e,Vt.create(r,i+1,i+1+n.content.size),"pointer");else{if(!Dt.isSelectable(n))continue;so(e,Dt.create(r,i),"pointer")}return!0}}(e,n,r)}function po(e){return xo(e)}Zr.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=16==n.keyCode||n.shiftKey,!mo(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!wn||!mn||13!=n.keyCode))if(229!=n.keyCode&&e.domObserver.forceFlush(),!yn||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)e.someProp("handleKeyDown",(t=>t(e,n)))||jr(e,n)?n.preventDefault():to(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout((()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",(t=>t(e,rn(13,"Enter")))),e.input.lastIOSEnter=0)}),200)}},Zr.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},Zr.keypress=(e,t)=>{let n=t;if(mo(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||bn&&n.metaKey)return;if(e.someProp("handleKeyPress",(t=>t(e,n))))return void n.preventDefault();let r=e.state.selection;if(!(r instanceof Vt&&r.$from.sameParent(r.$to))){let t=String.fromCharCode(n.charCode);/[\r\n]/.test(t)||e.someProp("handleTextInput",(n=>n(e,r.$from.pos,r.$to.pos,t)))||e.dispatch(e.state.tr.insertText(t).scrollIntoView()),n.preventDefault()}};const ho=bn?"metaKey":"ctrlKey";Xr.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=po(e),o=Date.now(),i="singleClick";o-e.input.lastClick.time<500&&function(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}(n,e.input.lastClick)&&!n[ho]&&("singleClick"==e.input.lastClick.type?i="doubleClick":"doubleClick"==e.input.lastClick.type&&(i="tripleClick")),e.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i};let a=e.posAtCoords(io(n));a&&("singleClick"==i?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new fo(e,a,n,!!r)):("doubleClick"==i?co:uo)(e,a.pos,a.inside,n)?n.preventDefault():to(e,"pointer"))};class fo{constructor(e,t,n,r){let o,i;if(this.view=e,this.pos=t,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[ho],this.allowDefault=n.shiftKey,t.inside>-1)o=e.state.doc.nodeAt(t.inside),i=t.inside;else{let n=e.state.doc.resolve(t.pos);o=n.parent,i=n.depth?n.before():0}const a=r?null:n.target,s=a?e.docView.nearestDesc(a,!0):null;this.target=s&&1==s.dom.nodeType?s.dom:null;let{selection:l}=e.state;(0==n.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||l instanceof Dt&&l.from<=i&&l.to>i)&&(this.mightDrag={node:o,pos:i,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!hn||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),to(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((()=>gr(this.view))),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(io(e))),this.updateAllowDefault(e),this.allowDefault||!t?to(this.view,"pointer"):lo(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||vn&&this.mightDrag&&!this.mightDrag.node.isAtom||mn&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(so(this.view,Et.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):to(this.view,"pointer")}move(e){this.updateAllowDefault(e),to(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function mo(e,t){return!!e.composing||!!(vn&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2e8,!0)}Xr.touchstart=e=>{e.input.lastTouch=Date.now(),po(e),to(e,"pointer")},Xr.touchmove=e=>{e.input.lastTouch=Date.now(),to(e,"pointer")},Xr.contextmenu=e=>po(e);const go=wn?5e3:-1;function vo(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout((()=>xo(e)),t))}function yo(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=function(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function bo(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=function(e,t){for(;;){if(3==e.nodeType&&t)return e;if(1==e.nodeType&&t>0){if("false"==e.contentEditable)return null;t=en(e=e.childNodes[t-1])}else{if(!e.parentNode||tn(e))return null;t=Yt(e),e=e.parentNode}}}(t.focusNode,t.focusOffset),r=function(e,t){for(;;){if(3==e.nodeType&&t<e.nodeValue.length)return e;if(1==e.nodeType&&t<e.childNodes.length){if("false"==e.contentEditable)return null;e=e.childNodes[t],t=0}else{if(!e.parentNode||tn(e))return null;t=Yt(e)+1,e=e.parentNode}}}(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let t=r.pmViewDesc,o=e.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!t||!t.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let e=n.pmViewDesc;if(e&&e.isText(n.nodeValue))return r}}return n||r}function xo(e,t=!1){if(!(wn&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),yo(e),t||e.docView&&e.docView.dirty){let n=fr(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):!e.markCursor&&!t||e.state.selection.empty?e.updateState(e.state):e.dispatch(e.state.tr.deleteSelection()),!0}return!1}}Zr.compositionstart=Zr.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof Vt&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some((e=>!1===e.type.spec.inclusive))))e.markCursor=e.state.storedMarks||n.marks(),xo(e,!0),e.markCursor=null;else if(xo(e,!t.selection.empty),hn&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&1==n.nodeType&&0!=r;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(3==t.nodeType){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}vo(e,go)},Zr.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then((()=>e.domObserver.flush())),e.input.compositionID++,vo(e,20))};const wo=dn&&pn<15||yn&&_n<604;function ko(e,t,n,r,o){let i=$r(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",(t=>t(e,o,i||B.empty))))return!0;if(!i)return!1;let a=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(i),s=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(i);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function _o(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Xr.copy=Zr.cut=(e,t)=>{let n=t,r=e.state.selection,o="cut"==n.type;if(r.empty)return;let i=wo?null:n.clipboardData,a=r.content(),{dom:s,text:l}=Rr(e,a);i?(n.preventDefault(),i.clearData(),i.setData("text/html",s.innerHTML),i.setData("text/plain",l)):function(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout((()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}(e,s),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},Zr.paste=(e,t)=>{let n=t;if(e.composing&&!wn)return;let r=wo?null:n.clipboardData,o=e.input.shiftKey&&45!=e.input.lastKeyCode;r&&ko(e,_o(r),r.getData("text/html"),o,n)?n.preventDefault():function(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout((()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?ko(e,r.value,null,o,t):ko(e,r.textContent,r.innerHTML,o,t)}),50)}(e,n)};class Eo{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}}const Co=bn?"altKey":"ctrlKey";Xr.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o,i=e.state.selection,a=i.empty?null:e.posAtCoords(io(n));if(a&&a.pos>=i.from&&a.pos<=(i instanceof Dt?i.to-1:i.to));else if(r&&r.mightDrag)o=Dt.create(e.state.doc,r.mightDrag.pos);else if(n.target&&1==n.target.nodeType){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(o=Dt.create(e.state.doc,t.posBefore))}let s=(o||e.state.selection).content(),{dom:l,text:c,slice:u}=Rr(e,s);(!n.dataTransfer.files.length||!mn||gn>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(wo?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",wo||n.dataTransfer.setData("text/plain",c),e.dragging=new Eo(u,!n[Co],o)},Xr.dragend=e=>{let t=e.dragging;window.setTimeout((()=>{e.dragging==t&&(e.dragging=null)}),50)},Zr.dragover=Zr.dragenter=(e,t)=>t.preventDefault(),Zr.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let o=e.posAtCoords(io(n));if(!o)return;let i=e.state.doc.resolve(o.pos),a=r&&r.slice;a?e.someProp("transformPasted",(t=>{a=t(a,e)})):a=$r(e,_o(n.dataTransfer),wo?null:n.dataTransfer.getData("text/html"),!1,i);let s=!(!r||n[Co]);if(e.someProp("handleDrop",(t=>t(e,n,a||B.empty,s))))return void n.preventDefault();if(!a)return;n.preventDefault();let l=a?lt(e.state.doc,i.pos,a):i.pos;null==l&&(l=i.pos);let c=e.state.tr;if(s){let{node:e}=r;e?e.replace(c):c.deleteSelection()}let u=c.mapping.map(l),d=0==a.openStart&&0==a.openEnd&&1==a.content.childCount,p=c.doc;if(d?c.replaceRangeWith(u,u,a.content.firstChild):c.replaceRange(u,u,a),c.doc.eq(p))return;let h=c.doc.resolve(u);if(d&&Dt.isSelectable(a.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new Dt(h));else{let t=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach(((e,n,r,o)=>t=o)),c.setSelection(_r(e,h,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))},Xr.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout((()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&gr(e)}),20))},Xr.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},Xr.beforeinput=(e,t)=>{if(mn&&wn&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout((()=>{if(e.input.domChangeCount!=t)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",(t=>t(e,rn(8,"Backspace")))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())}),50)}};for(let e in Zr)Xr[e]=Zr[e];function No(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class So{constructor(e,t){this.toDOM=e,this.spec=t||To,this.side=this.spec.side||0}map(e,t,n,r){let{pos:o,deleted:i}=e.mapResult(t.from+r,this.side<0?-1:1);return i?null:new Do(o-n,o-n,this)}valid(){return!0}eq(e){return this==e||e instanceof So&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&No(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Vo{constructor(e,t){this.attrs=e,this.spec=t||To}map(e,t,n,r){let o=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,i=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return o>=i?null:new Do(o,i,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof Vo&&No(this.attrs,e.attrs)&&No(this.spec,e.spec)}static is(e){return e.type instanceof Vo}destroy(){}}class Ao{constructor(e,t){this.attrs=e,this.spec=t||To}map(e,t,n,r){let o=e.mapResult(t.from+r,1);if(o.deleted)return null;let i=e.mapResult(t.to+r,-1);return i.deleted||i.pos<=o.pos?null:new Do(o.pos-n,i.pos-n,this)}valid(e,t){let n,{index:r,offset:o}=e.content.findIndex(t.from);return o==t.from&&!(n=e.child(r)).isText&&o+n.nodeSize==t.to}eq(e){return this==e||e instanceof Ao&&No(this.attrs,e.attrs)&&No(this.spec,e.spec)}destroy(){}}class Do{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(e,t){return new Do(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(e,t,n){return new Do(e,e,new So(t,n))}static inline(e,t,n,r){return new Do(e,t,new Vo(n,r))}static node(e,t,n,r){return new Do(e,t,new Ao(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof Vo}get widget(){return this.type instanceof So}}const Mo=[],To={};class Bo{constructor(e,t){this.local=e.length?e:Mo,this.children=t.length?t:Mo}static create(e,t){return t.length?Ro(t,e,0,To):Oo}find(e,t,n){let r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r}findInner(e,t,n,r,o){for(let i=0;i<this.local.length;i++){let a=this.local[i];a.from<=t&&a.to>=e&&(!o||o(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(let i=0;i<this.children.length;i+=3)if(this.children[i]<t&&this.children[i+1]>e){let a=this.children[i]+1;this.children[i+2].findInner(e-a,t-a,n,r+a,o)}}map(e,t,n){return this==Oo||0==e.maps.length?this:this.mapInner(e,t,0,0,n||To)}mapInner(e,t,n,r,o){let i;for(let a=0;a<this.local.length;a++){let s=this.local[a].map(e,n,r);s&&s.type.valid(t,s)?(i||(i=[])).push(s):o.onRemove&&o.onRemove(this.local[a].spec)}return this.children.length?function(e,t,n,r,o,i,a){let s=e.slice();for(let e=0,t=i;e<n.maps.length;e++){let r=0;n.maps[e].forEach(((e,n,o,i)=>{let a=i-o-(n-e);for(let o=0;o<s.length;o+=3){let i=s[o+1];if(i<0||e>i+t-r)continue;let l=s[o]+t-r;n>=l?s[o+1]=e<=l?-2:-1:e>=t&&a&&(s[o]+=a,s[o+1]+=a)}r+=a})),t=n.maps[e].map(t,-1)}let l=!1;for(let t=0;t<s.length;t+=3)if(s[t+1]<0){if(-2==s[t+1]){l=!0,s[t+1]=-1;continue}let c=n.map(e[t]+i),u=c-o;if(u<0||u>=r.content.size){l=!0;continue}let d=n.map(e[t+1]+i,-1)-o,{index:p,offset:h}=r.content.findIndex(u),f=r.maybeChild(p);if(f&&h==u&&h+f.nodeSize==d){let r=s[t+2].mapInner(n,f,c+1,e[t]+i+1,a);r!=Oo?(s[t]=u,s[t+1]=d,s[t+2]=r):(s[t+1]=-2,l=!0)}else l=!0}if(l){let l=function(e,t,n,r,o,i,a){function s(e,t){for(let i=0;i<e.local.length;i++){let s=e.local[i].map(r,o,t);s?n.push(s):a.onRemove&&a.onRemove(e.local[i].spec)}for(let n=0;n<e.children.length;n+=3)s(e.children[n+2],e.children[n]+t+1)}for(let n=0;n<e.length;n+=3)-1==e[n+1]&&s(e[n+2],t[n]+i+1);return n}(s,e,t,n,o,i,a),c=Ro(l,r,0,a);t=c.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<c.children.length;e+=3){let n=c.children[e];for(;t<s.length&&s[t]<n;)t+=3;s.splice(t,0,c.children[e],c.children[e+1],c.children[e+2])}}return new Bo(t.sort($o),s)}(this.children,i||[],e,t,n,r,o):i?new Bo(i.sort($o),Mo):Oo}add(e,t){return t.length?this==Oo?Bo.create(e,t):this.addInner(e,t,0):this}addInner(e,t,n){let r,o=0;e.forEach(((e,i)=>{let a,s=i+n;if(a=Io(t,e,s)){for(r||(r=this.children.slice());o<r.length&&r[o]<i;)o+=3;r[o]==i?r[o+2]=r[o+2].addInner(e,a,s+1):r.splice(o,0,i,i+e.nodeSize,Ro(a,e,s+1,To)),o+=3}}));let i=Lo(o?jo(t):t,-n);for(let t=0;t<i.length;t++)i[t].type.valid(e,i[t])||i.splice(t--,1);return new Bo(i.length?this.local.concat(i).sort($o):this.local,r||this.children)}remove(e){return 0==e.length||this==Oo?this:this.removeInner(e,0)}removeInner(e,t){let n=this.children,r=this.local;for(let r=0;r<n.length;r+=3){let o,i=n[r]+t,a=n[r+1]+t;for(let t,n=0;n<e.length;n++)(t=e[n])&&t.from>i&&t.to<a&&(e[n]=null,(o||(o=[])).push(t));if(!o)continue;n==this.children&&(n=this.children.slice());let s=n[r+2].removeInner(o,i+1);s!=Oo?n[r+2]=s:(n.splice(r,3),r-=3)}if(r.length)for(let n,o=0;o<e.length;o++)if(n=e[o])for(let e=0;e<r.length;e++)r[e].eq(n,t)&&(r==this.local&&(r=this.local.slice()),r.splice(e--,1));return n==this.children&&r==this.local?this:r.length||n.length?new Bo(r,n):Oo}forChild(e,t){if(this==Oo)return this;if(t.isLeaf)return Bo.empty;let n,r;for(let t=0;t<this.children.length;t+=3)if(this.children[t]>=e){this.children[t]==e&&(n=this.children[t+2]);break}let o=e+1,i=o+t.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<i&&t.to>o&&t.type instanceof Vo){let e=Math.max(o,t.from)-o,n=Math.min(i,t.to)-o;e<n&&(r||(r=[])).push(t.copy(e,n))}}if(r){let e=new Bo(r.sort($o),Mo);return n?new Po([e,n]):e}return n||Oo}eq(e){if(this==e)return!0;if(!(e instanceof Bo)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return zo(this.localsInner(e))}localsInner(e){if(this==Oo)return Mo;if(e.inlineContent||!this.local.some(Vo.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof Vo||t.push(this.local[e]);return t}forEachSet(e){e(this)}}Bo.empty=new Bo([],[]),Bo.removeOverlap=zo;const Oo=Bo.empty;class Po{constructor(e){this.members=e}map(e,t){const n=this.members.map((n=>n.map(e,t,To)));return Po.from(n)}forChild(e,t){if(t.isLeaf)return Bo.empty;let n=[];for(let r=0;r<this.members.length;r++){let o=this.members[r].forChild(e,t);o!=Oo&&(o instanceof Po?n=n.concat(o.members):n.push(o))}return Po.from(n)}eq(e){if(!(e instanceof Po)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let o=this.members[r].localsInner(e);if(o.length)if(t){n&&(t=t.slice(),n=!1);for(let e=0;e<o.length;e++)t.push(o[e])}else t=o}return t?zo(n?t:t.sort($o)):Mo}static from(e){switch(e.length){case 0:return Oo;case 1:return e[0];default:return new Po(e.every((e=>e instanceof Bo))?e:e.reduce(((e,t)=>e.concat(t instanceof Bo?t:t.members)),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}function Lo(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let o=e[r];n.push(new Do(o.from+t,o.to+t,o.type))}return n}function Io(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,o=null;for(let t,i=0;i<e.length;i++)(t=e[i])&&t.from>n&&t.to<r&&((o||(o=[])).push(t),e[i]=null);return o}function jo(e){let t=[];for(let n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function Ro(e,t,n,r){let o=[],i=!1;t.forEach(((t,a)=>{let s=Io(e,t,a+n);if(s){i=!0;let e=Ro(s,t,n+a+1,r);e!=Oo&&o.push(a,a+t.nodeSize,e)}}));let a=Lo(i?jo(e):e,-n).sort($o);for(let e=0;e<a.length;e++)a[e].type.valid(t,a[e])||(r.onRemove&&r.onRemove(a[e].spec),a.splice(e--,1));return a.length||o.length?new Bo(a,o):Oo}function $o(e,t){return e.from-t.from||e.to-t.to}function zo(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let o=n+1;o<t.length;o++){let i=t[o];if(i.from!=r.from){i.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,i.from),Fo(t,o,r.copy(i.from,r.to)));break}i.to!=r.to&&(t==e&&(t=e.slice()),t[o]=i.copy(i.from,r.to),Fo(t,o+1,i.copy(r.to,i.to)))}}return t}function Fo(e,t,n){for(;t<e.length&&$o(n,e[t])>0;)t++;e.splice(t,0,n)}function Ho(e){let t=[];return e.someProp("decorations",(n=>{let r=n(e.state);r&&r!=Oo&&t.push(r)})),e.cursorWrapper&&t.push(Bo.create(e.state.doc,[e.cursorWrapper.deco])),Po.from(t)}const Uo={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Wo=dn&&pn<=11;class qo{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class Yo{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new qo,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver((e=>{for(let t=0;t<e.length;t++)this.queue.push(e[t]);dn&&pn<=11&&e.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),Wo&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((()=>{this.flushingSoon=-1,this.flush()}),20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Uo)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout((()=>this.flush()),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout((()=>this.suppressingSelectionUpdates=!1),50)}onSelectionChange(){if(Er(this.view)){if(this.suppressingSelectionUpdates)return gr(this.view);if(dn&&pn<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Xt(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t,n=new Set;for(let t=e.focusNode;t;t=Gt(t))n.add(t);for(let r=e.anchorNode;r;r=Gt(r))if(n.has(r)){t=r;break}let r=t&&this.view.docView.nearestDesc(t);return r&&r.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let n=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&Er(e)&&!this.ignoreSelectionChange(n),o=-1,i=-1,a=!1,s=[];if(e.editable)for(let e=0;e<t.length;e++){let n=this.registerMutation(t[e],s);n&&(o=o<0?n.from:Math.min(n.from,o),i=i<0?n.to:Math.max(n.to,i),n.typeOver&&(a=!0))}if(hn&&s.length){let t=s.filter((e=>"BR"==e.nodeName));if(2==t.length){let[e,n]=t;e.parentNode&&e.parentNode.parentNode==n.parentNode?n.remove():e.remove()}else{let{focusNode:n}=this.currentSelection;for(let r of t){let t=r.parentNode;!t||"LI"!=t.nodeName||n&&Xo(e,n)==t||r.remove()}}}let l=null;o<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&nn(n)&&(l=fr(e))&&l.eq(Et.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,gr(e),this.currentSelection.set(n),e.scrollToSelection()):(o>-1||r)&&(o>-1&&(e.docView.markDirty(o,i),function(e){if(Go.has(e))return;if(Go.set(e,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)){if(e.requiresGeckoHackNode=hn,Ko)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),Ko=!0}}(e)),this.handleDOMChange(o,i,a,s),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||gr(e),this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(let n=0;n<e.addedNodes.length;n++){let r=e.addedNodes[n];t.push(r),3==r.nodeType&&(this.lastChangedTextNode=r)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,o=e.nextSibling;if(dn&&pn<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:i}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(r=n),(!i||Array.prototype.indexOf.call(e.addedNodes,i)<0)&&(o=i)}let i=r&&r.parentNode==e.target?Yt(r)+1:0,a=n.localPosFromDOM(e.target,i,-1),s=o&&o.parentNode==e.target?Yt(o):e.target.childNodes.length;return{from:a,to:n.localPosFromDOM(e.target,s,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let Go=new WeakMap,Ko=!1;function Jo(e,t){let n=t.startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,a=e.domAtPos(e.state.selection.anchor);return Xt(a.node,a.offset,o,i)&&([n,r,o,i]=[o,i,n,r]),{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:i}}function Xo(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let t=e.docView.nearestDesc(n,!0);if(t&&t.node.isBlock)return n}return null}function Zo(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(vn&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}if(e.parentNode.lastChild==e||vn&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Qo=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function ei(e,t,n,r,o){let i=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=fr(e,t);if(n&&!e.state.selection.eq(n)){if(mn&&wn&&13===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",(t=>t(e,rn(13,"Enter")))))return;let r=e.state.tr.setSelection(n);"pointer"==t?r.setMeta("pointer",!0):"key"==t&&r.scrollIntoView(),i&&r.setMeta("composition",i),e.dispatch(r)}return}let a=e.state.doc.resolve(t),s=a.sharedDepth(n);t=a.before(s+1),n=e.state.doc.resolve(n).after(s+1);let l,c,u=e.state.selection,d=function(e,t,n){let r,{node:o,fromOffset:i,toOffset:a,from:s,to:l}=e.docView.parseRange(t,n),c=e.domSelectionRange(),u=c.anchorNode;if(u&&e.dom.contains(1==u.nodeType?u:u.parentNode)&&(r=[{node:u,offset:c.anchorOffset}],nn(c)||r.push({node:c.focusNode,offset:c.focusOffset})),mn&&8===e.input.lastKeyCode)for(let e=a;e>i;e--){let t=o.childNodes[e-1],n=t.pmViewDesc;if("BR"==t.nodeName&&!n){a=e;break}if(!n||n.size)break}let d=e.state.doc,p=e.someProp("domParser")||ye.fromSchema(e.state.schema),h=d.resolve(s),f=null,m=p.parse(o,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:i,to:a,preserveWhitespace:"pre"!=h.parent.type.whitespace||"full",findPositions:r,ruleFromNode:Zo,context:h});if(r&&null!=r[0].pos){let e=r[0].pos,t=r[1]&&r[1].pos;null==t&&(t=e),f={anchor:e+s,head:t+s}}return{doc:m,sel:f,from:s,to:l}}(e,t,n),p=e.state.doc,h=p.slice(d.from,d.to);8===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime?(l=e.state.selection.to,c="end"):(l=e.state.selection.from,c="start"),e.input.lastKeyCode=null;let f=function(e,t,n,r,o){let i=e.findDiffStart(t,n);if(null==i)return null;let{a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if("end"==o){r-=a+Math.max(0,i-Math.min(a,s))-i}if(a<i&&e.size<t.size){let e=r<=i&&r>=a?i-r:0;i-=e,i&&i<t.size&&ri(t.textBetween(i-1,i+1))&&(i+=e?1:-1),s=i+(s-a),a=i}else if(s<i){let t=r<=i&&r>=s?i-r:0;i-=t,i&&i<e.size&&ri(e.textBetween(i-1,i+1))&&(i+=t?1:-1),a=i+(a-s),s=i}return{start:i,endA:a,endB:s}}(h.content,d.doc.content,d.from,l,c);if(f&&e.input.domChangeCount++,(yn&&e.input.lastIOSEnter>Date.now()-225||wn)&&o.some((e=>1==e.nodeType&&!Qo.test(e.nodeName)))&&(!f||f.endA>=f.endB)&&e.someProp("handleKeyDown",(t=>t(e,rn(13,"Enter")))))return void(e.input.lastIOSEnter=0);if(!f){if(!(r&&u instanceof Vt&&!u.empty&&u.$head.sameParent(u.$anchor))||e.composing||d.sel&&d.sel.anchor!=d.sel.head){if(d.sel){let t=ti(e,e.state.doc,d.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);i&&n.setMeta("composition",i),e.dispatch(n)}}return}f={start:u.from,endA:u.to,endB:u.to}}e.state.selection.from<e.state.selection.to&&f.start==f.endB&&e.state.selection instanceof Vt&&(f.start>e.state.selection.from&&f.start<=e.state.selection.from+2&&e.state.selection.from>=d.from?f.start=e.state.selection.from:f.endA<e.state.selection.to&&f.endA>=e.state.selection.to-2&&e.state.selection.to<=d.to&&(f.endB+=e.state.selection.to-f.endA,f.endA=e.state.selection.to)),dn&&pn<=11&&f.endB==f.start+1&&f.endA==f.start&&f.start>d.from&&" Â "==d.doc.textBetween(f.start-d.from-1,f.start-d.from+1)&&(f.start--,f.endA--,f.endB--);let m,g=d.doc.resolveNoCache(f.start-d.from),v=d.doc.resolveNoCache(f.endB-d.from),y=p.resolve(f.start),b=g.sameParent(v)&&g.parent.inlineContent&&y.end()>=f.endA;if((yn&&e.input.lastIOSEnter>Date.now()-225&&(!b||o.some((e=>"DIV"==e.nodeName||"P"==e.nodeName)))||!b&&g.pos<d.doc.content.size&&!g.sameParent(v)&&(m=Et.findFrom(d.doc.resolve(g.pos+1),1,!0))&&m.head==v.pos)&&e.someProp("handleKeyDown",(t=>t(e,rn(13,"Enter")))))return void(e.input.lastIOSEnter=0);if(e.state.selection.anchor>f.start&&function(e,t,n,r,o){if(n-t<=o.pos-r.pos||ni(r,!0,!1)<o.pos)return!1;let i=e.resolve(t);if(!r.parent.isTextblock){let e=i.nodeAfter;return null!=e&&n==t+e.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let a=e.resolve(ni(i,!0,!0));return!(!a.parent.isTextblock||a.pos>n||ni(a,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(a.parent.content)}(p,f.start,f.endA,g,v)&&e.someProp("handleKeyDown",(t=>t(e,rn(8,"Backspace")))))return void(wn&&mn&&e.domObserver.suppressSelectionUpdates());mn&&f.endB==f.start&&(e.input.lastChromeDelete=Date.now()),wn&&!b&&g.start()!=v.start()&&0==v.parentOffset&&g.depth==v.depth&&d.sel&&d.sel.anchor==d.sel.head&&d.sel.head==f.endA&&(f.endB-=2,v=d.doc.resolveNoCache(f.endB-d.from),setTimeout((()=>{e.someProp("handleKeyDown",(function(t){return t(e,rn(13,"Enter"))}))}),20));let x,w,k,_=f.start,E=f.endA;if(b)if(g.pos==v.pos)dn&&pn<=11&&0==g.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout((()=>gr(e)),20)),x=e.state.tr.delete(_,E),w=p.resolve(f.start).marksAcross(p.resolve(f.endA));else if(f.endA==f.endB&&(k=function(e,t){let n,r,o,i=e.firstChild.marks,a=t.firstChild.marks,s=i,l=a;for(let e=0;e<a.length;e++)s=a[e].removeFromSet(s);for(let e=0;e<i.length;e++)l=i[e].removeFromSet(l);if(1==s.length&&0==l.length)r=s[0],n="add",o=e=>e.mark(r.addToSet(e.marks));else{if(0!=s.length||1!=l.length)return null;r=l[0],n="remove",o=e=>e.mark(r.removeFromSet(e.marks))}let c=[];for(let e=0;e<t.childCount;e++)c.push(o(t.child(e)));if(S.from(c).eq(e))return{mark:r,type:n}}(g.parent.content.cut(g.parentOffset,v.parentOffset),y.parent.content.cut(y.parentOffset,f.endA-y.start()))))x=e.state.tr,"add"==k.type?x.addMark(_,E,k.mark):x.removeMark(_,E,k.mark);else if(g.parent.child(g.index()).isText&&g.index()==v.index()-(v.textOffset?0:1)){let t=g.parent.textBetween(g.parentOffset,v.parentOffset);if(e.someProp("handleTextInput",(n=>n(e,_,E,t))))return;x=e.state.tr.insertText(t,_,E)}if(x||(x=e.state.tr.replace(_,E,d.doc.slice(f.start-d.from,f.endB-d.from))),d.sel){let t=ti(e,x.doc,d.sel);t&&!(mn&&e.composing&&t.empty&&(f.start!=f.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==_||t.head==x.mapping.map(E)-1)||dn&&t.empty&&t.head==_)&&x.setSelection(t)}w&&x.ensureMarks(w),i&&x.setMeta("composition",i),e.dispatch(x.scrollIntoView())}function ti(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:_r(e,t.resolve(n.anchor),t.resolve(n.head))}function ni(e,t,n){let r=e.depth,o=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,o++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));for(;t&&!t.isLeaf;)t=t.firstChild,o++}return o}function ri(e){if(2!=e.length)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}class oi{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new eo,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(ci),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=si(this),ai(this),this.nodeViews=li(this),this.docView=Zn(this.state.doc,ii(this),Ho(this),this.dom,this),this.domObserver=new Yo(this,((e,t,n,r)=>ei(this,e,t,n,r))),this.domObserver.start(),function(e){for(let t in Xr){let n=Xr[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{!oo(e,t)||ro(e,t)||!e.editable&&t.type in Zr||n(e,t)},Qr[t]?{passive:!0}:void 0)}vn&&e.dom.addEventListener("input",(()=>null)),no(e)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&no(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(ci),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var n;let r=this.state,o=!1,i=!1;e.storedMarks&&this.composing&&(yo(this),i=!0),this.state=e;let a=r.plugins!=e.plugins||this._props.plugins!=t.plugins;if(a||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=li(this);(function(e,t){let n=0,r=0;for(let r in e){if(e[r]!=t[r])return!0;n++}for(let e in t)r++;return n!=r})(e,this.nodeViews)&&(this.nodeViews=e,o=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&no(this),this.editable=si(this),ai(this);let s=Ho(this),l=ii(this),c=r.plugins==e.plugins||r.doc.eq(e.doc)?e.scrollToSelection>r.scrollToSelection?"to selection":"preserve":"reset",u=o||!this.docView.matchesNode(e.doc,l,s);!u&&e.selection.eq(r.selection)||(i=!0);let d="preserve"==c&&i&&null==this.dom.style.overflowAnchor&&function(e){let t,n,r=e.dom.getBoundingClientRect(),o=Math.max(0,r.top);for(let i=(r.left+r.right)/2,a=o+1;a<Math.min(innerHeight,r.bottom);a+=5){let r=e.root.elementFromPoint(i,a);if(!r||r==e.dom||!e.dom.contains(r))continue;let s=r.getBoundingClientRect();if(s.top>=o-20){t=r,n=s.top;break}}return{refDOM:t,refTop:n,stack:Vn(e.dom)}}(this);if(i){this.domObserver.stop();let t=u&&(dn||mn)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&function(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}(r.selection,e.selection);if(u){let n=mn?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=bo(this)),!o&&this.docView.update(e.doc,l,s,this)||(this.docView.updateOuterDeco(l),this.docView.destroy(),this.docView=Zn(e.doc,l,s,this.dom,this)),n&&!this.trackWrites&&(t=!0)}t||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();
vendor: 8,978 bytes, line 2
2return Xt(t.node,t.offset,n.anchorNode,n.anchorOffset)}(this))?gr(this,t):(wr(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),(null===(n=this.dragging)||void 0===n?void 0:n.node)&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),"reset"==c?this.dom.scrollTop=0:"to selection"==c?this.scrollToSelection():d&&function({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;An(n,0==r?0:r-t)}(d)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(e&&this.dom.contains(1==e.nodeType?e:e.parentNode))if(this.someProp("handleScrollToSelection",(e=>e(this))));else if(this.state.selection instanceof Dt){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&Sn(this,t.getBoundingClientRect(),e)}else Sn(this,this.coordsAtPos(this.state.selection.head,1),e);else;}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}}updateDraggedNode(e,t){let n=e.node,r=-1;if(this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{let e=n.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&this.state.doc.nodeAt(e))==n.node&&(r=e)}this.dragging=new Eo(e.slice,e.move,r<0?void 0:Dt.create(this.state.doc,r))}someProp(e,t){let n,r=this._props&&this._props[e];if(null!=r&&(n=t?t(r):r))return n;for(let r=0;r<this.directPlugins.length;r++){let o=this.directPlugins[r].props[e];if(null!=o&&(n=t?t(o):o))return n}let o=this.state.plugins;if(o)for(let r=0;r<o.length;r++){let i=o[r].props[e];if(null!=i&&(n=t?t(i):i))return n}}hasFocus(){if(dn){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if("false"==e.contentEditable)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(Dn)return e.focus(Dn);let t=Vn(e);e.focus(null==Dn?{get preventScroll(){return Dn={preventScroll:!0},!0}}:void 0),Dn||(Dn=!1,An(t,0))}(this.dom),gr(this),this.domObserver.start()}get root(){let e=this._root;if(null==e)for(let e=this.dom.parentNode;e;e=e.parentNode)if(9==e.nodeType||11==e.nodeType&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e;return e||document}updateRoot(){this._root=null}posAtCoords(e){return On(this,e)}coordsAtPos(e,t=1){return jn(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,t){return qn(this,t||this.state,e)}pasteHTML(e,t){return ko(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return ko(this,e,null,!0,t||new ClipboardEvent("paste"))}serializeForClipboard(e){return Rr(this,e)}destroy(){this.docView&&(!function(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Ho(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,Kt=null)}get isDestroyed(){return null==this.docView}dispatchEvent(e){return function(e,t){ro(e,t)||!Xr[t.type]||!e.editable&&t.type in Zr||Xr[t.type](e,t)}(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return e?vn&&11===this.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return Jo(e,n)}let n;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",r,!0),n?Jo(e,n):null}(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function ii(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",(n=>{if("function"==typeof n&&(n=n(e.state)),n)for(let e in n)"class"==e?t.class+=" "+n[e]:"style"==e?t.style=(t.style?t.style+";":"")+n[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(n[e]))})),t.translate||(t.translate="no"),[Do.node(0,e.state.doc.content.size,t)]}function ai(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:Do.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function si(e){return!e.someProp("editable",(t=>!1===t(e.state)))}function li(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function ci(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var ui={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},di={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},pi="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),hi="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),fi=0;fi<10;fi++)ui[48+fi]=ui[96+fi]=String(fi);for(fi=1;fi<=24;fi++)ui[fi+111]="F"+fi;for(fi=65;fi<=90;fi++)ui[fi]=String.fromCharCode(fi+32),di[fi]=String.fromCharCode(fi);for(var mi in ui)di.hasOwnProperty(mi)||(di[mi]=ui[mi]);const gi="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function vi(e){let t,n,r,o,i=e.split(/-(?!$)/),a=i[i.length-1];"Space"==a&&(a=" ");for(let e=0;e<i.length-1;e++){let a=i[e];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))t=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else if(/^s(hift)?$/i.test(a))r=!0;else{if(!/^mod$/i.test(a))throw new Error("Unrecognized modifier name: "+a);gi?o=!0:n=!0}}return t&&(a="Alt-"+a),n&&(a="Ctrl-"+a),o&&(a="Meta-"+a),r&&(a="Shift-"+a),a}function yi(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function bi(e){let t=function(e){let t=Object.create(null);for(let n in e)t[vi(n)]=e[n];return t}(e);return function(e,n){let r,o=function(e){var t=!(pi&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||hi&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?di:ui)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(n),i=t[yi(o,n)];if(i&&i(e.state,e.dispatch,e))return!0;if(1==o.length&&" "!=o){if(n.shiftKey){let r=t[yi(o,n,!1)];if(r&&r(e.state,e.dispatch,e))return!0}if((n.shiftKey||n.altKey||n.metaKey||o.charCodeAt(0)>127)&&(r=ui[n.keyCode])&&r!=o){let o=t[yi(r,n)];if(o&&o(e.state,e.dispatch,e))return!0}}return!1}}const xi=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function wi(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const ki=(e,t,n)=>{let r=wi(e,n);if(!r)return!1;let o=Ni(r);if(!o){let n=r.blockRange(),o=n&&Qe(n);return null!=o&&(t&&t(e.tr.lift(n,o).scrollIntoView()),!0)}let i=o.nodeBefore;if(ji(e,o,t,-1))return!0;
2if(0==r.parent.content.size&&(Ei(i,"end")||Dt.isSelectable(i)))for(let n=r.depth;;n--){let a=ct(e.doc,r.before(n),r.after(n),B.empty);if(a&&a.slice.size<a.to-a.from){if(t){let n=e.tr.step(a);n.setSelection(Ei(i,"end")?Et.findFrom(n.doc.resolve(n.mapping.map(o.pos,-1)),-1):Dt.create(n.doc,o.pos-i.nodeSize)),t(n.scrollIntoView())}return!0}if(1==n||r.node(n-1).childCount>1)break}return!(!i.isAtom||o.depth!=r.depth-1)&&(t&&t(e.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0)};function _i(e,t,n){let r=t.nodeBefore,o=t.pos-1;for(;!r.isTextblock;o--){if(r.type.spec.isolating)return!1;let e=r.lastChild;if(!e)return!1;r=e}let i=t.nodeAfter,a=t.pos+1;for(;!i.isTextblock;a++){if(i.type.spec.isolating)return!1;let e=i.firstChild;if(!e)return!1;i=e}let s=ct(e.doc,o,a,B.empty);if(!s||s.from!=o||s instanceof Ge&&s.slice.size>=a-o)return!1;if(n){let t=e.tr.step(s);t.setSelection(Vt.create(t.doc,o)),n(t.scrollIntoView())}return!0}function Ei(e,t,n=!1){for(let r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)return!1}return!1}const Ci=(e,t,n)=>{let{$head:r,empty:o}=e.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;i=Ni(r)}let a=i&&i.nodeBefore;return!(!a||!Dt.isSelectable(a))&&(t&&t(e.tr.setSelection(Dt.create(e.doc,i.pos-a.nodeSize)).scrollIntoView()),!0)};function Ni(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function Si(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}const Vi=(e,t,n)=>{let r=Si(e,n);if(!r)return!1;let o=Di(r);if(!o)return!1;let i=o.nodeAfter;if(ji(e,o,t,1))return!0;if(0==r.parent.content.size&&(Ei(i,"start")||Dt.isSelectable(i))){let n=ct(e.doc,r.before(),r.after(),B.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(Ei(i,"start")?Et.findFrom(r.doc.resolve(r.mapping.map(o.pos)),1):Dt.create(r.doc,r.mapping.map(o.pos))),t(r.scrollIntoView())}return!0}}return!(!i.isAtom||o.depth!=r.depth-1)&&(t&&t(e.tr.delete(o.pos,o.pos+i.nodeSize).scrollIntoView()),!0)},Ai=(e,t,n)=>{let{$head:r,empty:o}=e.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;i=Di(r)}let a=i&&i.nodeAfter;return!(!a||!Dt.isSelectable(a))&&(t&&t(e.tr.setSelection(Dt.create(e.doc,i.pos)).scrollIntoView()),!0)};function Di(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}const Mi=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!(!n.parent.type.spec.code||!n.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function Ti(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const Bi=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),i=n.indexAfter(-1),a=Ti(o.contentMatchAt(i));if(!a||!o.canReplaceWith(i,i,a))return!1;if(t){let r=n.after(),o=e.tr.replaceWith(r,r,a.createAndFill());o.setSelection(Et.near(o.doc.resolve(r),1)),t(o.scrollIntoView())}return!0},Oi=(e,t)=>{let n=e.selection,{$from:r,$to:o}=n;if(n instanceof Tt||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=Ti(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(t){let n=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,a=e.tr.insert(n,i.createAndFill());a.setSelection(Vt.create(a.doc,n+1)),t(a.scrollIntoView())}return!0},Pi=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(ot(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),o=r&&Qe(r);return null!=o&&(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)};const Li=(e,t)=>{let{$from:n,$to:r}=e.selection;if(e.selection instanceof Dt&&e.selection.node.isBlock)return!(!n.parentOffset||!ot(e.doc,n.pos)||(t&&t(e.tr.split(n.pos).scrollIntoView()),0));if(!n.depth)return!1;let o,i,a=[],s=!1,l=!1;for(let e=n.depth;;e--){if(n.node(e).isBlock){s=n.end(e)==n.pos+(n.depth-e),l=n.start(e)==n.pos-(n.depth-e),i=Ti(n.node(e-1).contentMatchAt(n.indexAfter(e-1)));let t=Ii&&Ii(r.parent,s,n);a.unshift(t||(s&&i?{type:i}:null)),o=e;break}if(1==e)return!1;a.unshift(null)}let c=e.tr;(e.selection instanceof Vt||e.selection instanceof Tt)&&c.deleteSelection();let u=c.mapping.map(n.pos),d=ot(c.doc,u,a.length,a);if(d||(a[0]=i?{type:i}:null,d=ot(c.doc,u,a.length,a)),c.split(u,a.length,a),!s&&l&&n.node(o).type!=i){let e=c.mapping.map(n.before(o)),t=c.doc.resolve(e);i&&n.node(o-1).canReplaceWith(t.index(),t.index()+1,i)&&c.setNodeMarkup(c.mapping.map(n.before(o)),i)}return t&&t(c.scrollIntoView()),!0};var Ii;function ji(e,t,n,r){let o,i,a=t.nodeBefore,s=t.nodeAfter,l=a.type.spec.isolating||s.type.spec.isolating;if(!l&&function(e,t,n){let r=t.nodeBefore,o=t.nodeAfter,i=t.index();return!(!(r&&o&&r.type.compatibleContent(o.type))||(!r.content.size&&t.parent.canReplace(i-1,i)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(i,i+1)||!o.isTextblock&&!it(e.doc,t.pos)||(n&&n(e.tr.join(t.pos).scrollIntoView()),0)))}
vendor: 6,713 bytes, line 2
2(e,t,n))return!0;let c=!l&&t.parent.canReplace(t.index(),t.index()+1);if(c&&(o=(i=a.contentMatchAt(a.childCount)).findWrapping(s.type))&&i.matchType(o[0]||s.type).validEnd){if(n){let r=t.pos+s.nodeSize,i=S.empty;for(let e=o.length-1;e>=0;e--)i=S.from(o[e].create(null,i));i=S.from(a.copy(i));let l=e.tr.step(new Ke(t.pos-1,r,t.pos,r,new B(i,1,0),o.length,!0)),c=l.doc.resolve(r+2*o.length);c.nodeAfter&&c.nodeAfter.type==a.type&&it(l.doc,c.pos)&&l.join(c.pos),n(l.scrollIntoView())}return!0}let u=s.type.spec.isolating||r>0&&l?null:Et.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),p=d&&Qe(d);if(null!=p&&p>=t.depth)return n&&n(e.tr.lift(d,p).scrollIntoView()),!0;if(c&&Ei(s,"start",!0)&&Ei(a,"end")){let r=a,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let i=s,l=1;for(;!i.isTextblock;i=i.firstChild)l++;if(r.canReplace(r.childCount,r.childCount,i.content)){if(n){let r=S.empty;for(let e=o.length-1;e>=0;e--)r=S.from(o[e].copy(r));n(e.tr.step(new Ke(t.pos-o.length,t.pos+s.nodeSize,t.pos+l,t.pos+s.nodeSize-l,new B(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function Ri(e){return function(t,n){let r=t.selection,o=e<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return!!o.node(i).isTextblock&&(n&&n(t.tr.setSelection(Vt.create(t.doc,e<0?o.start(i):o.end(i)))),!0)}}const $i=Ri(-1),zi=Ri(1);function Fi(e,t=null){return function(n,r){let o=!1;for(let r=0;r<n.selection.ranges.length&&!o;r++){let{$from:{pos:i},$to:{pos:a}}=n.selection.ranges[r];n.doc.nodesBetween(i,a,((r,i)=>{if(o)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)o=!0;else{let t=n.doc.resolve(i),r=t.index();o=t.parent.canReplaceWith(r,r+1,e)}}))}if(!o)return!1;if(r){let o=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:i},$to:{pos:a}}=n.selection.ranges[r];o.setBlockType(i,a,e,t)}r(o.scrollIntoView())}return!0}}function Hi(...e){return function(t,n,r){for(let o=0;o<e.length;o++)if(e[o](t,n,r))return!0;return!1}}let Ui=Hi(xi,ki,Ci),Wi=Hi(xi,Vi,Ai);const qi={Enter:Hi(Mi,Oi,Pi,Li),"Mod-Enter":Bi,Backspace:Ui,"Mod-Backspace":Ui,"Shift-Backspace":Ui,Delete:Wi,"Mod-Delete":Wi,"Mod-a":(e,t)=>(t&&t(e.tr.setSelection(new Tt(e.doc))),!0)},Yi={"Ctrl-h":qi.Backspace,"Alt-Backspace":qi["Mod-Backspace"],"Ctrl-d":qi.Delete,"Ctrl-Alt-Backspace":qi["Mod-Delete"],"Alt-Delete":qi["Mod-Delete"],"Alt-d":qi["Mod-Delete"],"Ctrl-a":$i,"Ctrl-e":zi};for(let e in qi)Yi[e]=qi[e];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!("undefined"==typeof os||!os.platform)&&os.platform();function Gi(e,t=null){return function(n,r){let{$from:o,$to:i}=n.selection,a=o.blockRange(i);if(!a)return!1;let s=r?n.tr:null;return!!function(e,t,n,r=null){let o=!1,i=t,a=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&0==t.startIndex){if(0==t.$from.index(t.depth-1))return!1;let e=a.resolve(t.start-2);i=new K(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new K(t.$from,a.resolve(t.$to.end(t.depth)),t.depth)),o=!0}let s=et(i,n,r,t);if(!s)return!1;e&&function(e,t,n,r,o){let i=S.empty;for(let e=n.length-1;e>=0;e--)i=S.from(n[e].type.create(n[e].attrs,i));e.step(new Ke(t.start-(r?2:0),t.end,t.start,t.end,new B(i,0,0),n.length,!0));let a=0;for(let e=0;e<n.length;e++)n[e].type==o&&(a=e+1);let s=n.length-a,l=t.start+n.length-(r?2:0),c=t.parent;for(let n=t.startIndex,r=t.endIndex,o=!0;n<r;n++,o=!1)!o&&ot(e.doc,l,s)&&(e.split(l,s),l+=2*s),l+=c.child(n).nodeSize}(e,t,s,o,n);return!0}(s,a,e,t)&&(r&&r(s.scrollIntoView()),!0)}}function Ki(e){return function(t,n){let{$from:r,$to:o}=t.selection,i=r.blockRange(o,(t=>t.childCount>0&&t.firstChild.type==e));return!!i&&(!n||(r.node(i.depth-1).type==e?function(e,t,n,r){let o=e.tr,i=r.end,a=r.$to.end(r.depth);i<a&&(o.step(new Ke(i-1,a,i,a,new B(S.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new K(o.doc.resolve(r.$from.pos),o.doc.resolve(a),r.depth));const s=Qe(r);if(null==s)return!1;o.lift(r,s);let l=o.doc.resolve(o.mapping.map(i,-1)-1);it(o.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&o.join(l.pos);return t(o.scrollIntoView()),!0}(t,n,e,i):function(e,t,n){let r=e.tr,o=n.parent;for(let e=n.end,t=n.endIndex-1,i=n.startIndex;t>i;t--)e-=o.child(t).nodeSize,r.delete(e-1,e+1);let i=r.doc.resolve(n.start),a=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let s=0==n.startIndex,l=n.endIndex==o.childCount,c=i.node(-1),u=i.index(-1);if(!c.canReplace(u+(s?0:1),u+1,a.content.append(l?S.empty:S.from(o))))return!1;let d=i.pos,p=d+a.nodeSize;return r.step(new Ke(d-(s?1:0),p+(l?1:0),d+1,p-1,new B((s?S.empty:S.from(o.copy(S.empty))).append(l?S.empty:S.from(o.copy(S.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}(t,n,i)))}}function Ji(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:o}=n,{storedMarks:i}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}}}class Xi{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:o}=n,i=this.buildProps(o);return Object.fromEntries(Object.entries(e).map((([e,t])=>[e,(...e)=>{const n=t(...e)(i);return o.getMeta("preventDispatch")||this.hasCustomState||r.dispatch(o),n}])))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,a=[],s=!!e,l=e||o.tr,c={...Object.fromEntries(Object.entries(n).map((([e,n])=>[e,(...e)=>{const r=this.buildProps(l,t),o=n(...e)(r);return a.push(o),c}]))),run:()=>(s||!t||l.getMeta("preventDispatch")||this.hasCustomState||i.dispatch(l),a.every((e=>!0===e)))};return c}createCan(e){const{rawCommands:t,state:n}=this,r=!1,o=e||n.tr,i=this.buildProps(o,r),a=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,(...e)=>t(...e)({...i,dispatch:void 0})])));return{...a,chain:()=>this.createChain(o,r)}}buildProps(e,t=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,a={tr:e,editor:r,view:i,state:Ji({state:o,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map((([e,t])=>[e,(...e)=>t(...e)(a)])))}};return a}}class Zi{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const n=this.callbacks[e];
2return n&&n.forEach((e=>e.apply(this,t))),this}off(e,t){const n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter((e=>e!==t)):delete this.callbacks[e]),this}once(e,t){const n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}}function Qi(e,t,n){if(void 0===e.config[t]&&e.parent)return Qi(e.parent,t,n);if("function"==typeof e.config[t]){return e.config[t].bind({...n,parent:e.parent?Qi(e.parent,t,n):null})}return e.config[t]}function ea(e){return{baseExtensions:e.filter((e=>"extension"===e.type)),nodeExtensions:e.filter((e=>"node"===e.type)),markExtensions:e.filter((e=>"mark"===e.type))}}function ta(e){const t=[],{nodeExtensions:n,markExtensions:r}=ea(e),o=[...n,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach((e=>{const n=Qi(e,"addGlobalAttributes",{name:e.name,options:e.options,storage:e.storage,extensions:o});if(!n)return;n().forEach((e=>{e.types.forEach((n=>{Object.entries(e.attributes).forEach((([e,r])=>{t.push({type:n,name:e,attribute:{...i,...r}})}))}))}))})),o.forEach((e=>{const n={name:e.name,options:e.options,storage:e.storage},r=Qi(e,"addAttributes",n);if(!r)return;const o=r();Object.entries(o).forEach((([n,r])=>{const o={...i,...r};"function"==typeof(null==o?void 0:o.default)&&(o.default=o.default()),(null==o?void 0:o.isRequired)&&void 0===(null==o?void 0:o.default)&&delete o.default,t.push({type:e.name,name:n,attribute:o})}))})),t}function na(e,t){if("string"==typeof e){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function ra(...e){return e.filter((e=>!!e)).reduce(((e,t)=>{const n={...e};return Object.entries(t).forEach((([e,t])=>{if(n[e])if("class"===e){const r=t?String(t).split(" "):[],o=n[e]?n[e].split(" "):[],i=r.filter((e=>!o.includes(e)));n[e]=[...o,...i].join(" ")}else if("style"===e){const r=t?t.split(";").map((e=>e.trim())).filter(Boolean):[],o=n[e]?n[e].split(";").map((e=>e.trim())).filter(Boolean):[],i=new Map;o.forEach((e=>{const[t,n]=e.split(":").map((e=>e.trim()));i.set(t,n)})),r.forEach((e=>{const[t,n]=e.split(":").map((e=>e.trim()));i.set(t,n)})),n[e]=Array.from(i.entries()).map((([e,t])=>`${e}: ${t}`)).join("; ")}else n[e]=t;else n[e]=t})),n}),{})}function oa(e,t){return t.filter((t=>t.type===e.type.name)).filter((e=>e.attribute.rendered)).map((t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]})).reduce(((e,t)=>ra(e,t)),{})}function ia(e){return"function"==typeof e}function aa(e,t=void 0,...n){return ia(e)?t?e.bind(t)(...n):e(...n):e}function sa(e,t){return"style"in e?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(!1===r)return!1;const o=t.reduce(((e,t)=>{const r=t.attribute.parseHTML?t.attribute.parseHTML(n):function(e){return"string"!=typeof e?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):"true"===e||"false"!==e&&e}(n.getAttribute(t.name));return null==r?e:{...e,[t.name]:r}}),{});return{...r,...o}}}}function la(e){return Object.fromEntries(Object.entries(e).filter((([e,t])=>("attrs"!==e||!function(e={}){return 0===Object.keys(e).length&&e.constructor===Object}(t))&&null!=t)))}function ca(e,t){var n;const r=ta(e),{nodeExtensions:o,markExtensions:i}=ea(e),a=null===(n=o.find((e=>Qi(e,"topNode"))))||void 0===n?void 0:n.name,s=Object.fromEntries(o.map((n=>{const o=r.filter((e=>e.type===n.name)),i={name:n.name,options:n.options,storage:n.storage,editor:t},a=la({...e.reduce(((e,t)=>{const r=Qi(t,"extendNodeSchema",i);return{...e,...r?r(n):{}}}),{}),content:aa(Qi(n,"content",i)),marks:aa(Qi(n,"marks",i)),group:aa(Qi(n,"group",i)),inline:aa(Qi(n,"inline",i)),atom:aa(Qi(n,"atom",i)),selectable:aa(Qi(n,"selectable",i)),draggable:aa(Qi(n,"draggable",i)),code:aa(Qi(n,"code",i)),whitespace:aa(Qi(n,"whitespace",i)),linebreakReplacement:aa(Qi(n,"linebreakReplacement",i)),defining:aa(Qi(n,"defining",i)),isolating:aa(Qi(n,"isolating",i)),attrs:Object.fromEntries(o.map((e=>{var t;return[e.name,{default:null===(t=null==e?void 0:e.attribute)||void 0===t?void 0:t.default}]})))}),s=aa(Qi(n,"parseHTML",i));s&&(a.parseDOM=s.map((e=>sa(e,o))));const l=Qi(n,"renderHTML",i);l&&(a.toDOM=e=>l({node:e,HTMLAttributes:oa(e,o)}));const c=Qi(n,"renderText",i);return c&&(a.toText=c),[n.name,a]}
2))),l=Object.fromEntries(i.map((n=>{const o=r.filter((e=>e.type===n.name)),i={name:n.name,options:n.options,storage:n.storage,editor:t},a=la({...e.reduce(((e,t)=>{const r=Qi(t,"extendMarkSchema",i);return{...e,...r?r(n):{}}}),{}),inclusive:aa(Qi(n,"inclusive",i)),excludes:aa(Qi(n,"excludes",i)),group:aa(Qi(n,"group",i)),spanning:aa(Qi(n,"spanning",i)),code:aa(Qi(n,"code",i)),attrs:Object.fromEntries(o.map((e=>{var t;return[e.name,{default:null===(t=null==e?void 0:e.attribute)||void 0===t?void 0:t.default}]})))}),s=aa(Qi(n,"parseHTML",i));s&&(a.parseDOM=s.map((e=>sa(e,o))));const l=Qi(n,"renderHTML",i);return l&&(a.toDOM=e=>l({mark:e,HTMLAttributes:oa(e,o)})),[n.name,a]})));return new ge({topNode:a,nodes:s,marks:l})}function ua(e,t){return t.nodes[e]||t.marks[e]||null}function da(e,t){return Array.isArray(t)?t.some((t=>("string"==typeof t?t:t.name)===e.name)):t}function pa(e,t){const n=Ve.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function ha(e){return"[object RegExp]"===Object.prototype.toString.call(e)}class fa{constructor(e){this.find=e.find,this.handler=e.handler}}function ma(e){var t;const{editor:n,from:r,to:o,text:i,rules:a,plugin:s}=e,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(r);if(c.parent.type.spec.code||(null===(t=c.nodeBefore||c.nodeAfter)||void 0===t?void 0:t.marks.find((e=>e.type.spec.code))))return!1;let u=!1;const d=((e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,((e,t,o,i)=>{var a,s;const l=(null===(s=(a=e.type.spec).toText)||void 0===s?void 0:s.call(a,{node:e,pos:t,parent:o,index:i}))||e.textContent||"%leaf%";n+=e.isAtom&&!e.isText?l:l.slice(0,Math.max(0,r-t))})),n})(c)+i;return a.forEach((e=>{if(u)return;const t=((e,t)=>{if(ha(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r})(d,e.find);if(!t)return;const a=l.state.tr,c=Ji({state:l.state,transaction:a}),p={from:r-(t[0].length-i.length),to:o},{commands:h,chain:f,can:m}=new Xi({editor:n,state:c});null!==e.handler({state:c,range:p,match:t,commands:h,chain:f,can:m})&&a.steps.length&&(a.setMeta(s,{transform:a,from:r,to:o,text:i}),l.dispatch(a),u=!0)})),u}function ga(e){const{editor:t,rules:n}=e,r=new Ht({state:{init:()=>null,apply(e,o,i){const a=e.getMeta(r);if(a)return a;const s=e.getMeta("applyInputRules");return!!s&&setTimeout((()=>{let{text:e}=s;"string"==typeof e||(e=pa(S.from(e),i.schema));const{from:o}=s,a=o+e.length;ma({editor:t,from:o,to:a,text:e,rules:n,plugin:r})})),e.selectionSet||e.docChanged?null:o}},props:{handleTextInput:(e,o,i,a)=>ma({editor:t,from:o,to:i,text:a,rules:n,plugin:r}),handleDOMEvents:{compositionend:e=>(setTimeout((()=>{const{$cursor:o}=e.state.selection;o&&ma({editor:t,from:o.pos,to:o.pos,text:"",rules:n,plugin:r})})),!1)},handleKeyDown(e,o){if("Enter"!==o.key)return!1;const{$cursor:i}=e.state.selection;return!!i&&ma({editor:t,from:i.pos,to:i.pos,text:"\n",rules:n,plugin:r})}},isInputRules:!0});return r}function va(e){return"Object"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function ya(e,t){const n={...e};return va(e)&&va(t)&&Object.keys(t).forEach((r=>{va(t[r])&&va(e[r])?n[r]=ya(e[r],t[r]):n[r]=t[r]})),n}class ba{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=aa(Qi(this,"addOptions",{name:this.name}))),this.storage=aa(Qi(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new ba(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>ya(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new ba(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=aa(Qi(t,"addOptions",{name:t.name})),t.storage=aa(Qi(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){const{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const o=r.marks();if(!!!o.find((e=>
2(null==e?void 0:e.type.name)===t.name)))return!1;const i=o.find((e=>(null==e?void 0:e.type.name)===t.name));return i&&n.removeStoredMark(i),n.insertText(" ",r.pos),e.view.dispatch(n),!0}return!1}}class xa{constructor(e){this.find=e.find,this.handler=e.handler}}function wa(e){const{editor:t,state:n,from:r,to:o,rule:i,pasteEvent:a,dropEvent:s}=e,{commands:l,chain:c,can:u}=new Xi({editor:t,state:n}),d=[];n.doc.nodesBetween(r,o,((e,t)=>{if(!e.isTextblock||e.type.spec.code)return;const p=Math.max(r,t),h=Math.min(o,t+e.content.size),f=((e,t,n)=>{if(ha(t))return[...e.matchAll(t)];const r=t(e,n);return r?r.map((t=>{const n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),n.push(t.replaceWith)),n})):[]})(e.textBetween(p-t,h-t,void 0,""),i.find,a);f.forEach((e=>{if(void 0===e.index)return;const t=p+e.index+1,r=t+e[0].length,o={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},h=i.handler({state:n,range:o,match:e,commands:l,chain:c,can:u,pasteEvent:a,dropEvent:s});d.push(h)}))}));return d.every((e=>null!==e))}let ka=null;function _a(e){const{editor:t,rules:n}=e;let r,o=null,i=!1,a=!1,s="undefined"!=typeof ClipboardEvent?new ClipboardEvent("paste"):null;try{r="undefined"!=typeof DragEvent?new DragEvent("drop"):null}catch{r=null}const l=({state:e,from:n,to:o,rule:i,pasteEvt:a})=>{const l=e.tr,c=Ji({state:e,transaction:l});if(wa({editor:t,state:c,from:Math.max(n-1,0),to:o.b-1,rule:i,pasteEvent:a,dropEvent:r})&&l.steps.length){try{r="undefined"!=typeof DragEvent?new DragEvent("drop"):null}catch{r=null}return s="undefined"!=typeof ClipboardEvent?new ClipboardEvent("paste"):null,l}};return n.map((e=>new Ht({view(e){const n=n=>{var r;o=(null===(r=e.dom.parentElement)||void 0===r?void 0:r.contains(n.target))?e.dom.parentElement:null,o&&(ka=t)},r=()=>{ka&&(ka=null)};return window.addEventListener("dragstart",n),window.addEventListener("dragend",r),{destroy(){window.removeEventListener("dragstart",n),window.removeEventListener("dragend",r)}}},props:{handleDOMEvents:{drop:(e,t)=>{if(a=o===e.dom.parentElement,r=t,!a){const e=ka;e&&setTimeout((()=>{const t=e.state.selection;t&&e.commands.deleteRange({from:t.from,to:t.to})}),10)}return!1},paste:(e,t)=>{var n;const r=null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text/html");return s=t,i=!!(null==r?void 0:r.includes("data-pm-slice")),!1}}},appendTransaction:(t,n,r)=>{const o=t[0],c="paste"===o.getMeta("uiEvent")&&!i,u="drop"===o.getMeta("uiEvent")&&!a,d=o.getMeta("applyPasteRules"),p=!!d;if(!c&&!u&&!p)return;if(p){let{text:t}=d;"string"==typeof t||(t=pa(S.from(t),r.schema));const{from:n}=d,o=n+t.length,i=(e=>{var t;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return null===(t=n.clipboardData)||void 0===t||t.setData("text/html",e),n})(t);return l({rule:e,state:r,from:n,to:{b:o},pasteEvt:i})}const h=n.doc.content.findDiffStart(r.doc.content),f=n.doc.content.findDiffEnd(r.doc.content);return function(e){return"number"==typeof e}(h)&&f&&h!==f.b?l({rule:e,state:r,from:h,to:f,pasteEvt:s}):void 0}})))}class Ea{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=Ea.resolve(e),this.schema=ca(this.extensions,t),this.setupExtensions()}static resolve(e){const t=Ea.sort(Ea.flatten(e)),n=function(e){const t=e.filter(((t,n)=>e.indexOf(t)!==n));return Array.from(new Set(t))}(t.map((e=>e.name)));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map((e=>`'${e}'`)).join(", ")}]. This can lead to issues.`),t}static flatten(e){return e.map((e=>{const t=Qi(e,"addExtensions",{name:e.name,options:e.options,storage:e.storage});return t?[e,...this.flatten(t())]:e})).flat(10)}static sort(e){return e.sort(((e,t)=>{const n=Qi(e,"priority")||100,r=Qi(t,"priority")||100;return n>r?-1:n<r?1:0}))}get commands(){return this.extensions.reduce(((e,t)=>{const n=Qi(t,"addCommands",{name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:ua(t.name,this.schema)});return n?{...e,...n()}:e}),{})}get plugins(){const{editor:e}=this,t=Ea.sort([...this.extensions].reverse()),n=[],r=[],o=t.map((t=>{const o={name:t.name,options:t.options,storage:t.storage,editor:e,type:ua(t.name,this.schema)},i=[],a=Qi(t,"addKeyboardShortcuts",o);let s={};if("mark"===t.type&&Qi(t,"exitable",o)&&(s.ArrowRight=()=>ba.handleExit({editor:e,mark:t})),a){const t=Object.fromEntries(Object.entries(a()).map((([t,n])=>[t,()=>n({editor:e})])));s={...s,...t}}const l=new Ht({props:{handleKeyDown:bi(s)}});i.push(l);const c=Qi(t,"addInputRules",o);da(t,e.options.enableInputRules)&&c&&n.push(...c());const u=Qi(t,"addPasteRules",o);da(t,e.options.enablePasteRules)&&u&&r.push(...u());const d=Qi(t,"addProseMirrorPlugins",o);if(d){const e=d();i.push(...e)}return i})).flat();return[ga({editor:e,rules:n}),..._a({editor:e,rules:r}),...o]}get attributes(){return ta(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=ea(this.extensions);return Object.fromEntries(t.filter((e=>!!Qi(e,"addNodeView"))).map((t=>{const n=this.attributes.filter((e=>e.type===t.name)),r={name:t.name,options:t.options,storage:t.storage,editor:e,type:na(t.name,this.schema)},o=Qi(t,"addNodeView",r);
vendor: 5,424 bytes, line 2
2if(!o)return[];return[t.name,(r,i,a,s,l)=>{const c=oa(r,n);return o()({node:r,view:i,getPos:a,decorations:s,innerDecorations:l,editor:e,extension:t,HTMLAttributes:c})}]})))}setupExtensions(){this.extensions.forEach((e=>{var t;this.editor.extensionStorage[e.name]=e.storage;const n={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:ua(e.name,this.schema)};if("mark"===e.type){(null===(t=aa(Qi(e,"keepOnSplit",n)))||void 0===t||t)&&this.splittableMarks.push(e.name)}const r=Qi(e,"onBeforeCreate",n),o=Qi(e,"onCreate",n),i=Qi(e,"onUpdate",n),a=Qi(e,"onSelectionUpdate",n),s=Qi(e,"onTransaction",n),l=Qi(e,"onFocus",n),c=Qi(e,"onBlur",n),u=Qi(e,"onDestroy",n);r&&this.editor.on("beforeCreate",r),o&&this.editor.on("create",o),i&&this.editor.on("update",i),a&&this.editor.on("selectionUpdate",a),s&&this.editor.on("transaction",s),l&&this.editor.on("focus",l),c&&this.editor.on("blur",c),u&&this.editor.on("destroy",u)}))}}class Ca{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=aa(Qi(this,"addOptions",{name:this.name}))),this.storage=aa(Qi(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Ca(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>ya(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new Ca({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=aa(Qi(t,"addOptions",{name:t.name})),t.storage=aa(Qi(t,"addStorage",{name:t.name,options:t.options})),t}}function Na(e,t,n){const{from:r,to:o}=t,{blockSeparator:i="\n\n",textSerializers:a={}}=n||{};let s="";return e.nodesBetween(r,o,((e,n,l,c)=>{var u;e.isBlock&&n>r&&(s+=i);const d=null==a?void 0:a[e.type.name];if(d)return l&&(s+=d({node:e,pos:n,parent:l,index:c,range:t})),!1;e.isText&&(s+=null===(u=null==e?void 0:e.text)||void 0===u?void 0:u.slice(Math.max(r,n)-n,o-n))})),s}function Sa(e){return Object.fromEntries(Object.entries(e.nodes).filter((([,e])=>e.spec.toText)).map((([e,t])=>[e,t.spec.toText])))}const Va=Ca.create({name:"clipboardTextSerializer",addOptions:()=>({blockSeparator:void 0}),addProseMirrorPlugins(){return[new Ht({key:new qt("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:o}=t,{ranges:i}=o,a=Math.min(...i.map((e=>e.$from.pos))),s=Math.max(...i.map((e=>e.$to.pos))),l=Sa(n);return Na(r,{from:a,to:s},{...void 0!==this.options.blockSeparator?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}});function Aa(e,t,n={strict:!0}){const r=Object.keys(t);return!r.length||r.every((r=>n.strict?t[r]===e[r]:ha(t[r])?t[r].test(e[r]):t[r]===e[r]))}function Da(e,t,n={}){return e.find((e=>e.type===t&&Aa(Object.fromEntries(Object.keys(n).map((t=>[t,e.attrs[t]]))),n)))}function Ma(e,t,n={}){return!!Da(e,t,n)}function Ta(e,t,n){var r;if(!e||!t)return;let o=e.parent.childAfter(e.parentOffset);if(o.node&&o.node.marks.some((e=>e.type===t))||(o=e.parent.childBefore(e.parentOffset)),!o.node||!o.node.marks.some((e=>e.type===t)))return;n=n||(null===(r=o.node.marks[0])||void 0===r?void 0:r.attrs);if(!Da([...o.node.marks],t,n))return;let i=o.index,a=e.start()+o.offset,s=i+1,l=a+o.node.nodeSize;for(;i>0&&Ma([...e.parent.child(i-1).marks],t,n);)i-=1,a-=e.parent.child(i).nodeSize;for(;s<e.parent.childCount&&Ma([...e.parent.child(s).marks],t,n);)l+=e.parent.child(s).nodeSize,s+=1;return{from:a,to:l}}function Ba(e,t){if("string"==typeof e){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}function Oa(e){return e instanceof Vt}function Pa(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function La(e,t=null){if(!t)return null;const n=Et.atStart(e),r=Et.atEnd(e);if("start"===t||!0===t)return n;if("end"===t)return r;const o=n.from,i=r.to;return"all"===t?Vt.create(e,Pa(0,o,i),Pa(e.content.size,o,i)):Vt.create(e,Pa(t,o,i),Pa(t,o,i))}function Ia(){return"Android"===navigator.platform||/android/i.test(navigator.userAgent)}function ja(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const Ra=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const r=t[n];3===r.nodeType&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):1===r.nodeType&&Ra(r)}return e};function $a(e){const t=`<body>${e}</body>`,n=(new window.DOMParser).parseFromString(t,"text/html").body;return Ra(n)}function za(e,t,n){if(e instanceof X||e instanceof S)return e;n={slice:!0,parseOptions:{},...n};const r="string"==typeof e;if("object"==typeof e&&null!==e)try{if(Array.isArray(e)&&e.length>0)return S.fromArray(e.map((e=>t.nodeFromJSON(e))));
2const r=t.nodeFromJSON(e);return n.errorOnInvalidContent&&r.check(),r}catch(r){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:r});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",r),za("",t,n)}if(r){if(n.errorOnInvalidContent){let r=!1,o="";const i=new ge({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:e=>(r=!0,o="string"==typeof e?e:e.outerHTML,null)}]}})});if(n.slice?ye.fromSchema(i).parseSlice($a(e),n.parseOptions):ye.fromSchema(i).parse($a(e),n.parseOptions),n.errorOnInvalidContent&&r)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${o}`)})}const r=ye.fromSchema(t);return n.slice?r.parseSlice($a(e),n.parseOptions).content:r.parse($a(e),n.parseOptions)}return za("",t,n)}function Fa(){return"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)}function Ha(e,t,n={}){const{from:r,to:o,empty:i}=e.selection,a=t?na(t,e.schema):null,s=[];e.doc.nodesBetween(r,o,((e,t)=>{if(e.isText)return;const n=Math.max(r,t),i=Math.min(o,t+e.nodeSize);s.push({node:e,from:n,to:i})}));const l=o-r,c=s.filter((e=>!a||a.name===e.node.type.name)).filter((e=>Aa(e.node.attrs,n,{strict:!1})));if(i)return!!c.length;return c.reduce(((e,t)=>e+t.to-t.from),0)>=l}function Ua(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function Wa(e,t){const n="string"==typeof t?[t]:t;return Object.keys(e).reduce(((t,r)=>(n.includes(r)||(t[r]=e[r]),t)),{})}function qa(e,t,n={},r={}){return za(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}function Ya(e,t){const n=Ba(t,e.schema),{from:r,to:o,empty:i}=e.selection,a=[];i?(e.storedMarks&&a.push(...e.storedMarks),a.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,o,(e=>{a.push(...e.marks)}));const s=a.find((e=>e.type.name===n.name));return s?{...s.attrs}:{}}function Ga(e){return t=>function(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}(t.$from,e)}function Ka(e,t){return Na(e,{from:0,to:e.content.size},t)}function Ja(e,t){const n=Ua("string"==typeof t?t:t.name,e.schema);return"node"===n?function(e,t){const n=na(t,e.schema),{from:r,to:o}=e.selection,i=[];e.doc.nodesBetween(r,o,(e=>{i.push(e)}));const a=i.reverse().find((e=>e.type.name===n.name));return a?{...a.attrs}:{}}(e,t):"mark"===n?Ya(e,t):{}}function Xa(e){const t=function(e,t=JSON.stringify){const n={};return e.filter((e=>{const r=t(e);return!Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=!0)}))}(e);return 1===t.length?t:t.filter(((e,n)=>{const r=t.filter(((e,t)=>t!==n));return!r.some((t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}))}function Za(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach((t=>{const o=Ta(n.resolve(e),t.type);o&&r.push({mark:t,...o})})):n.nodesBetween(e,t,((e,t)=>{e&&void 0!==(null==e?void 0:e.nodeSize)&&r.push(...e.marks.map((n=>({from:t,to:t+e.nodeSize,mark:n}))))})),r}function Qa(e,t,n){return Object.fromEntries(Object.entries(n).filter((([n])=>{const r=e.find((e=>e.type===t&&e.name===n));return!!r&&r.attribute.keepOnSplit})))}function es(e,t,n={}){const{empty:r,ranges:o}=e.selection,i=t?Ba(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter((e=>!i||i.name===e.type.name)).find((e=>Aa(e.attrs,n,{strict:!1})));let a=0;const s=[];if(o.forEach((({$from:t,$to:n})=>{const r=t.pos,o=n.pos;e.doc.nodesBetween(r,o,((e,t)=>{if(!e.isText&&!e.marks.length)return;const n=Math.max(r,t),i=Math.min(o,t+e.nodeSize);a+=i-n,s.push(...e.marks.map((e=>({mark:e,from:n,to:i}))))}))})),0===a)return!1;const l=s.filter((e=>!i||i.name===e.mark.type.name)).filter((e=>Aa(e.mark.attrs,n,{strict:!1}))).reduce(((e,t)=>e+t.to-t.from),0),c=s.filter((e=>!i||e.mark.type!==i&&e.mark.type.excludes(i))).reduce(((e,t)=>e+t.to-t.from),0);return(l>0?l+c:l)>=a}function ts(e,t){const{nodeExtensions:n}=ea(t),r=n.find((t=>t.name===e));if(!r)return!1;const o=aa(Qi(r,"group",{name:r.name,options:r.options,storage:r.storage}));return"string"==typeof o&&o.split(" ").includes("list")}function ns(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){var r;
2if(n){if("hardBreak"===e.type.name)return!0;if(e.isText)return/^\s*$/m.test(null!==(r=e.text)&&void 0!==r?r:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(0===e.content.childCount)return!0;if(t){let r=!0;return e.content.forEach((e=>{!1!==r&&(ns(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))})),r}return!1}function rs(e){return e instanceof Dt}function is(e,t,n){const r=e.state.doc.content.size,o=Pa(t,0,r),i=Pa(n,0,r),a=e.coordsAtPos(o),s=e.coordsAtPos(i,-1),l=Math.min(a.top,s.top),c=Math.max(a.bottom,s.bottom),u=Math.min(a.left,s.left),d=Math.max(a.right,s.right),p={top:l,bottom:c,left:u,right:d,width:d-u,height:c-l,x:u,y:l};return{...p,toJSON:()=>p}}function as(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter((e=>null==t?void 0:t.includes(e.type.name)));e.tr.ensureMarks(r)}}const ss=(e,t)=>{const n=Ga((e=>e.type===t))(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===r)return!0;const o=e.doc.nodeAt(r);return n.node.type!==(null==o?void 0:o.type)||!it(e.doc,n.pos)||(e.join(n.pos),!0)},ls=(e,t)=>{const n=Ga((e=>e.type===t))(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(void 0===r)return!0;const o=e.doc.nodeAt(r);return n.node.type!==(null==o?void 0:o.type)||!it(e.doc,r)||(e.join(r),!0)};var cs=Object.freeze({__proto__:null,blur:()=>({editor:e,view:t})=>(requestAnimationFrame((()=>{var n;e.isDestroyed||(t.dom.blur(),null===(n=null===window||void 0===window?void 0:window.getSelection())||void 0===n||n.removeAllRanges())})),!0),clearContent:(e=!1)=>({commands:t})=>t.setContent("",e),clearNodes:()=>({state:e,tr:t,dispatch:n})=>{const{selection:r}=t,{ranges:o}=r;return!n||(o.forEach((({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,((e,n)=>{if(e.type.isText)return;const{doc:r,mapping:o}=t,i=r.resolve(o.map(n)),a=r.resolve(o.map(n+e.nodeSize)),s=i.blockRange(a);if(!s)return;const l=Qe(s);if(e.type.isTextblock){const{defaultType:e}=i.parent.contentMatchAt(i.index());t.setNodeMarkup(s.start,e)}(l||0===l)&&t.lift(s,l)}))})),!0)},command:e=>t=>e(t),createParagraphNear:()=>({state:e,dispatch:t})=>Oi(e,t),cut:(e,t)=>({editor:n,tr:r})=>{const{state:o}=n,i=o.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);const a=r.mapping.map(t);return r.insert(a,i.content),r.setSelection(new Vt(r.doc.resolve(a-1))),!0},deleteCurrentNode:()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const o=e.selection.$anchor;for(let n=o.depth;n>0;n-=1){if(o.node(n).type===r.type){if(t){const t=o.before(n),r=o.after(n);e.delete(t,r).scrollIntoView()}return!0}}return!1},deleteNode:e=>({tr:t,state:n,dispatch:r})=>{const o=na(e,n.schema),i=t.selection.$anchor;for(let e=i.depth;e>0;e-=1){if(i.node(e).type===o){if(r){const n=i.before(e),r=i.after(e);t.delete(n,r).scrollIntoView()}return!0}}return!1},deleteRange:e=>({tr:t,dispatch:n})=>{const{from:r,to:o}=e;return n&&t.delete(r,o),!0},deleteSelection:()=>({state:e,dispatch:t})=>xi(e,t),enter:()=>({commands:e})=>e.keyboardShortcut("Enter"),exitCode:()=>({state:e,dispatch:t})=>Bi(e,t),extendMarkRange:(e,t={})=>({tr:n,state:r,dispatch:o})=>{const i=Ba(e,r.schema),{doc:a,selection:s}=n,{$from:l,from:c,to:u}=s;if(o){const e=Ta(l,i,t);if(e&&e.from<=c&&e.to>=u){const t=Vt.create(a,e.from,e.to);n.setSelection(t)}}return!0},first:e=>t=>{const n="function"==typeof e?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1},focus:(e=null,t={})=>({editor:n,view:r,tr:o,dispatch:i})=>{t={scrollIntoView:!0,...t};const a=()=>{(ja()||Ia())&&r.dom.focus(),requestAnimationFrame((()=>{n.isDestroyed||(r.focus(),(null==t?void 0:t.scrollIntoView)&&n.commands.scrollIntoView())}))};if(r.hasFocus()&&null===e||!1===e)return!0;if(i&&null===e&&!Oa(n.state.selection))return a(),!0;const s=La(o.doc,e)||n.state.selection,l=n.state.selection.eq(s);return i&&(l||o.setSelection(s),l&&o.storedMarks&&o.setStoredMarks(o.storedMarks),a()),!0},forEach:(e,t)=>n=>e.every(((e,r)=>t(e,{...n,index:r}))),insertContent:(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),insertContentAt:(e,t,n)=>({tr:r,dispatch:o,editor:i})=>{var a;if(o){let o;n={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};try{o=za(t,i.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions},errorOnInvalidContent:null!==(a=n.errorOnInvalidContent)&&void 0!==a?a:i.options.enableContentCheck})}catch(e){return i.emit("contentError",{editor:i,error:e,disableCollaboration:()=>{i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}}),!1}let{from:s,to:l}="number"==typeof e?{from:e,to:e}:{from:e.from,to:e.to},c=!0,u=!0;
vendor: 9,403 bytes, line 2
2if(("type"in o?[o]:o).forEach((e=>{e.check(),c=!!c&&(e.isText&&0===e.marks.length),u=!!u&&e.isBlock})),s===l&&u){const{parent:e}=r.doc.resolve(s);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(s-=1,l+=1)}let d;if(c){if(Array.isArray(t))d=t.map((e=>e.text||"")).join("");else if(t instanceof S){let e="";t.forEach((t=>{t.text&&(e+=t.text)})),d=e}else d="object"==typeof t&&t&&t.text?t.text:t;r.insertText(d,s,l)}else d=o,r.replaceWith(s,l,d);n.updateSelection&&function(e,t,n){const r=e.steps.length-1;if(r<t)return;const o=e.steps[r];if(!(o instanceof Ge||o instanceof Ke))return;const i=e.mapping.maps[r];let a=0;i.forEach(((e,t,n,r)=>{0===a&&(a=r)})),e.setSelection(Et.near(e.doc.resolve(a),n))}(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:s,text:d}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:s,text:d})}return!0},joinBackward:()=>({state:e,dispatch:t})=>ki(e,t),joinDown:()=>({state:e,dispatch:t})=>((e,t)=>{let n,r=e.selection;if(r instanceof Dt){if(r.node.isTextblock||!it(e.doc,r.to))return!1;n=r.to}else if(n=st(e.doc,r.to,1),null==n)return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0})(e,t),joinForward:()=>({state:e,dispatch:t})=>Vi(e,t),joinItemBackward:()=>({state:e,dispatch:t,tr:n})=>{try{const r=st(e.doc,e.selection.$from.pos,-1);return null!=r&&(n.join(r,2),t&&t(n),!0)}catch{return!1}},joinItemForward:()=>({state:e,dispatch:t,tr:n})=>{try{const r=st(e.doc,e.selection.$from.pos,1);return null!=r&&(n.join(r,2),t&&t(n),!0)}catch{return!1}},joinTextblockBackward:()=>({state:e,dispatch:t})=>((e,t,n)=>{let r=wi(e,n);if(!r)return!1;let o=Ni(r);return!!o&&_i(e,o,t)})(e,t),joinTextblockForward:()=>({state:e,dispatch:t})=>((e,t,n)=>{let r=Si(e,n);if(!r)return!1;let o=Di(r);return!!o&&_i(e,o,t)})(e,t),joinUp:()=>({state:e,dispatch:t})=>((e,t)=>{let n,r=e.selection,o=r instanceof Dt;if(o){if(r.node.isTextblock||!it(e.doc,r.from))return!1;n=r.from}else if(n=st(e.doc,r.from,-1),null==n)return!1;if(t){let r=e.tr.join(n);o&&r.setSelection(Dt.create(r.doc,n-e.doc.resolve(n).nodeBefore.nodeSize)),t(r.scrollIntoView())}return!0})(e,t),keyboardShortcut:e=>({editor:t,view:n,tr:r,dispatch:o})=>{const i=function(e){const t=e.split(/-(?!$)/);let n,r,o,i,a=t[t.length-1];"Space"===a&&(a=" ");for(let e=0;e<t.length-1;e+=1){const a=t[e];if(/^(cmd|meta|m)$/i.test(a))i=!0;else if(/^a(lt)?$/i.test(a))n=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else if(/^s(hift)?$/i.test(a))o=!0;else{if(!/^mod$/i.test(a))throw new Error(`Unrecognized modifier name: ${a}`);ja()||Fa()?i=!0:r=!0}}return n&&(a=`Alt-${a}`),r&&(a=`Ctrl-${a}`),i&&(a=`Meta-${a}`),o&&(a=`Shift-${a}`),a}(e).split(/-(?!$)/),a=i.find((e=>!["Alt","Ctrl","Meta","Shift"].includes(e))),s=new KeyboardEvent("keydown",{key:"Space"===a?" ":a,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction((()=>{n.someProp("handleKeyDown",(e=>e(n,s)))}));return null==l||l.steps.forEach((e=>{const t=e.map(r.mapping);t&&o&&r.maybeStep(t)})),!0},lift:(e,t={})=>({state:n,dispatch:r})=>!!Ha(n,na(e,n.schema),t)&&((e,t)=>{let{$from:n,$to:r}=e.selection,o=n.blockRange(r),i=o&&Qe(o);return null!=i&&(t&&t(e.tr.lift(o,i).scrollIntoView()),!0)})(n,r),liftEmptyBlock:()=>({state:e,dispatch:t})=>Pi(e,t),liftListItem:e=>({state:t,dispatch:n})=>Ki(na(e,t.schema))(t,n),newlineInCode:()=>({state:e,dispatch:t})=>Mi(e,t),resetAttributes:(e,t)=>({tr:n,state:r,dispatch:o})=>{let i=null,a=null;const s=Ua("string"==typeof e?e:e.name,r.schema);return!!s&&("node"===s&&(i=na(e,r.schema)),"mark"===s&&(a=Ba(e,r.schema)),o&&n.selection.ranges.forEach((e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,((e,r)=>{i&&i===e.type&&n.setNodeMarkup(r,void 0,Wa(e.attrs,t)),a&&e.marks.length&&e.marks.forEach((o=>{a===o.type&&n.addMark(r,r+e.nodeSize,a.create(Wa(o.attrs,t)))}))}))})),!0)},scrollIntoView:()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),selectAll:()=>({tr:e,dispatch:t})=>{if(t){const t=new Tt(e.doc);e.setSelection(t)}return!0},selectNodeBackward:()=>({state:e,dispatch:t})=>Ci(e,t),selectNodeForward:()=>({state:e,dispatch:t})=>Ai(e,t),selectParentNode:()=>({state:e,dispatch:t})=>((e,t)=>{let n,{$from:r,to:o}=e.selection,i=r.sharedDepth(o);return 0!=i&&(n=r.before(i),t&&t(e.tr.setSelection(Dt.create(e.doc,n))),!0)})(e,t),selectTextblockEnd:()=>({state:e,dispatch:t})=>zi(e,t),selectTextblockStart:()=>({state:e,dispatch:t})=>$i(e,t),setContent:(e,t=!1,n={},r={})=>({editor:o,tr:i,dispatch:a,commands:s})=>{var l,c;const{doc:u}=i;if("full"!==n.preserveWhitespace){const s=qa(e,o.schema,n,{errorOnInvalidContent:null!==(l=r.errorOnInvalidContent)&&void 0!==l?l:o.options.enableContentCheck});return a&&i.replaceWith(0,u.content.size,s).setMeta("preventUpdate",!t),!0}return a&&i.setMeta("preventUpdate",!t),s.insertContentAt({from:0,to:u.content.size},e,{parseOptions:n,errorOnInvalidContent:null!==(c=r.errorOnInvalidContent)&&void 0!==c?c:o.options.enableContentCheck})},setMark:(e,t={})=>({tr:n,state:r,dispatch:o})=>{const{selection:i}=n,{empty:a,ranges:s}=i,l=Ba(e,r.schema);if(o)if(a){const e=Ya(r,l);n.addStoredMark(l.create({...e,...t}))}else s.forEach((e=>{const o=e.$from.pos,i=e.$to.pos;r.doc.nodesBetween(o,i,((e,r)=>{const a=Math.max(r,o),s=Math.min(r+e.nodeSize,i);e.marks.find((e=>e.type===l))?e.marks.forEach((e=>{l===e.type&&n.addMark(a,s,l.create({...e.attrs,...t}))})):n.addMark(a,s,l.create(t))}))}));return function(e,t,n){var r;const{selection:o}=t;let i=null;if(Oa(o)&&(i=o.$cursor),i){const t=null!==(r=e.storedMarks)&&void 0!==r?r:i.marks();return!!n.isInSet(t)||!t.some((e=>e.type.excludes(n)))}const{ranges:a}=o;return a.some((({$from:t,$to:r})=>{let o=0===t.depth&&e.doc.inlineContent&&e.doc.type.allowsMarkType(n);return e.doc.nodesBetween(t.pos,r.pos,((e,t,r)=>{if(o)return!1;if(e.isInline){const t=!r||r.type.allowsMarkType(n),i=!!n.isInSet(e.marks)||!e.marks.some((e=>e.type.excludes(n)));o=t&&i}return!o})),o}))}(r,n,l)},setMeta:(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),setNode:(e,t={})=>({state:n,dispatch:r,chain:o})=>{const i=na(e,n.schema);let a;return n.selection.$anchor.sameParent(n.selection.$head)&&(a=n.selection.$anchor.parent.attrs),i.isTextblock?o().command((({commands:e})=>!!Fi(i,{...a,...t})(n)||e.clearNodes())).command((({state:e})=>Fi(i,{...a,...t})(e,r))).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:e=>({tr:t,dispatch:n})=>{if(n){const{doc:n}=t,r=Pa(e,0,n.content.size),o=Dt.create(n,r);t.setSelection(o)}return!0},setTextSelection:e=>({tr:t,dispatch:n})=>{if(n){const{doc:n}=t,{from:r,to:o}="number"==typeof e?{from:e,to:e}:e,i=Vt.atStart(n).from,a=Vt.atEnd(n).to,s=Pa(r,i,a),l=Pa(o,i,a),c=Vt.create(n,s,l);t.setSelection(c)}return!0},sinkListItem:e=>({state:t,dispatch:n})=>{const r=na(e,t.schema);return(o=r,function(e,t){let{$from:n,$to:r}=e.selection,i=n.blockRange(r,(e=>e.childCount>0&&e.firstChild.type==o));if(!i)return!1;let a=i.startIndex;if(0==a)return!1;let s=i.parent,l=s.child(a-1);if(l.type!=o)return!1;if(t){let n=l.lastChild&&l.lastChild.type==s.type,r=S.from(n?o.create():null),a=new B(S.from(o.create(null,S.from(s.type.create(null,r)))),n?3:1,0),c=i.start,u=i.end;t(e.tr.step(new Ke(c-(n?3:1),u,c,u,a,1,!0)).scrollIntoView())}return!0})(t,n);var o},splitBlock:({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:o})=>{const{selection:i,doc:a}=t,{$from:s,$to:l}=i,c=Qa(o.extensionManager.attributes,s.node().type.name,s.node().attrs);if(i instanceof Dt&&i.node.isBlock)return!(!s.parentOffset||!ot(a,s.pos))&&(r&&(e&&as(n,o.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;const u=l.parentOffset===l.parent.content.size,d=0===s.depth?void 0:function(e){for(let t=0;t<e.edgeCount;t+=1){const{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}(s.node(-1).contentMatchAt(s.indexAfter(-1)));let p=u&&d?[{type:d,attrs:c}]:void 0,h=ot(t.doc,t.mapping.map(s.pos),1,p);if(p||h||!ot(t.doc,t.mapping.map(s.pos),1,d?[{type:d}]:void 0)||(h=!0,p=d?[{type:d,attrs:c}]:void 0),r){if(h&&(i instanceof Vt&&t.deleteSelection(),t.split(t.mapping.map(s.pos),1,p),d&&!u&&!s.parentOffset&&s.parent.type!==d)){const e=t.mapping.map(s.before()),n=t.doc.resolve(e);s.node(-1).canReplaceWith(n.index(),n.index()+1,d)&&t.setNodeMarkup(t.mapping.map(s.before()),d)}e&&as(n,o.extensionManager.splittableMarks),t.scrollIntoView()}return h},splitListItem:(e,t={})=>({tr:n,state:r,dispatch:o,editor:i})=>{var a;const s=na(e,r.schema),{$from:l,$to:c}=r.selection,u=r.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const d=l.node(-1);if(d.type!==s)return!1;const p=i.extensionManager.attributes;if(0===l.parent.content.size&&l.node(-1).childCount===l.indexAfter(-1)){if(2===l.depth||l.node(-3).type!==s||l.index(-2)!==l.node(-2).childCount-1)return!1;if(o){let e=S.empty;const r=l.index(-1)?1:l.index(-2)?2:3;for(let t=l.depth-r;t>=l.depth-3;t-=1)e=S.from(l.node(t).copy(e));const o=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,i={...Qa(p,l.node().type.name,l.node().attrs),...t},c=(null===(a=s.contentMatch.defaultType)||void 0===a?void 0:a.createAndFill(i))||void 0;e=e.append(S.from(s.createAndFill(null,c)||void 0));const u=l.before(l.depth-(r-1));n.replace(u,l.after(-o),new B(e,4-r,0));let d=-1;n.doc.nodesBetween(u,n.doc.content.size,((e,t)=>
2{if(d>-1)return!1;e.isTextblock&&0===e.content.size&&(d=t+1)})),d>-1&&n.setSelection(Vt.near(n.doc.resolve(d))),n.scrollIntoView()}return!0}const h=c.pos===l.end()?d.contentMatchAt(0).defaultType:null,f={...Qa(p,d.type.name,d.attrs),...t},m={...Qa(p,l.node().type.name,l.node().attrs),...t};n.delete(l.pos,c.pos);const g=h?[{type:s,attrs:f},{type:h,attrs:m}]:[{type:s,attrs:f}];if(!ot(n.doc,l.pos,2))return!1;if(o){const{selection:e,storedMarks:t}=r,{splittableMarks:a}=i.extensionManager,s=t||e.$to.parentOffset&&e.$from.marks();if(n.split(l.pos,2,g).scrollIntoView(),!s||!o)return!0;const c=s.filter((e=>a.includes(e.type.name)));n.ensureMarks(c)}return!0},toggleList:(e,t,n,r={})=>({editor:o,tr:i,state:a,dispatch:s,chain:l,commands:c,can:u})=>{const{extensions:d,splittableMarks:p}=o.extensionManager,h=na(e,a.schema),f=na(t,a.schema),{selection:m,storedMarks:g}=a,{$from:v,$to:y}=m,b=v.blockRange(y),x=g||m.$to.parentOffset&&m.$from.marks();if(!b)return!1;const w=Ga((e=>ts(e.type.name,d)))(m);if(b.depth>=1&&w&&b.depth-w.depth<=1){if(w.node.type===h)return c.liftListItem(f);if(ts(w.node.type.name,d)&&h.validContent(w.node.content)&&s)return l().command((()=>(i.setNodeMarkup(w.pos,h),!0))).command((()=>ss(i,h))).command((()=>ls(i,h))).run()}return n&&x&&s?l().command((()=>{const e=u().wrapInList(h,r),t=x.filter((e=>p.includes(e.type.name)));return i.ensureMarks(t),!!e||c.clearNodes()})).wrapInList(h,r).command((()=>ss(i,h))).command((()=>ls(i,h))).run():l().command((()=>!!u().wrapInList(h,r)||c.clearNodes())).wrapInList(h,r).command((()=>ss(i,h))).command((()=>ls(i,h))).run()},toggleMark:(e,t={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=n,a=Ba(e,r.schema);return es(r,a,t)?o.unsetMark(a,{extendEmptyMarkRange:i}):o.setMark(a,t)},toggleNode:(e,t,n={})=>({state:r,commands:o})=>{const i=na(e,r.schema),a=na(t,r.schema),s=Ha(r,i,n);let l;return r.selection.$anchor.sameParent(r.selection.$head)&&(l=r.selection.$anchor.parent.attrs),s?o.setNode(a,l):o.setNode(i,{...l,...n})},toggleWrap:(e,t={})=>({state:n,commands:r})=>{const o=na(e,n.schema);return Ha(n,o,t)?r.lift(o):r.wrapIn(o,t)},undoInputRule:()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r<n.length;r+=1){const o=n[r];let i;if(o.spec.isInputRules&&(i=o.getState(e))){if(t){const t=e.tr,n=i.transform;for(let e=n.steps.length-1;e>=0;e-=1)t.step(n.steps[e].invert(n.docs[e]));if(i.text){const n=t.doc.resolve(i.from).marks();t.replaceWith(i.from,i.to,e.schema.text(i.text,n))}else t.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:r,ranges:o}=n;return r||t&&o.forEach((t=>{e.removeMark(t.$from.pos,t.$to.pos)})),!0},unsetMark:(e,t={})=>({tr:n,state:r,dispatch:o})=>{var i;const{extendEmptyMarkRange:a=!1}=t,{selection:s}=n,l=Ba(e,r.schema),{$from:c,empty:u,ranges:d}=s;if(!o)return!0;if(u&&a){let{from:e,to:t}=s;const r=null===(i=c.marks().find((e=>e.type===l)))||void 0===i?void 0:i.attrs,o=Ta(c,l,r);o&&(e=o.from,t=o.to),n.removeMark(e,t,l)}else d.forEach((e=>{n.removeMark(e.$from.pos,e.$to.pos,l)}));return n.removeStoredMark(l),!0},updateAttributes:(e,t={})=>({tr:n,state:r,dispatch:o})=>{let i=null,a=null;const s=Ua("string"==typeof e?e:e.name,r.schema);return!!s&&("node"===s&&(i=na(e,r.schema)),"mark"===s&&(a=Ba(e,r.schema)),o&&n.selection.ranges.forEach((e=>{const o=e.$from.pos,s=e.$to.pos;let l,c,u,d;n.selection.empty?r.doc.nodesBetween(o,s,((e,t)=>{i&&i===e.type&&(u=Math.max(t,o),d=Math.min(t+e.nodeSize,s),l=t,c=e)})):r.doc.nodesBetween(o,s,((e,r)=>{r<o&&i&&i===e.type&&(u=Math.max(r,o),d=Math.min(r+e.nodeSize,s),l=r,c=e),r>=o&&r<=s&&(i&&i===e.type&&n.setNodeMarkup(r,void 0,{...e.attrs,...t}),a&&e.marks.length&&e.marks.forEach((i=>{if(a===i.type){const l=Math.max(r,o),c=Math.min(r+e.nodeSize,s);n.addMark(l,c,a.create({...i.attrs,...t}))}})))})),c&&(void 0!==l&&n.setNodeMarkup(l,void 0,{...c.attrs,...t}),a&&c.marks.length&&c.marks.forEach((e=>{a===e.type&&n.addMark(u,d,a.create({...e.attrs,...t}))})))})),!0)},wrapIn:(e,t={})=>({state:n,dispatch:r})=>function(e,t=null){return function(n,r){let{$from:o,$to:i}=n.selection,a=o.blockRange(i),s=a&&et(a,e,t);return!!s&&(r&&r(n.tr.wrap(a,s).scrollIntoView()),!0)}}(na(e,n.schema),t)(n,r),wrapInList:(e,t={})=>({state:n,dispatch:r})=>Gi(na(e,n.schema),t)(n,r)});const us=Ca.create({name:"commands",addCommands:()=>({...cs})}),ds=Ca.create({name:"drop",addProseMirrorPlugins(){return[new Ht({key:new qt("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),ps=Ca.create({name:"editable",addProseMirrorPlugins(){return[new Ht({key:new qt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),hs=Ca.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new Ht({key:new qt("focusEvents"),props:{handleDOMEvents:{focu
vendor: 8,167 bytes, line 2
2s:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),fs=Ca.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first((({commands:e})=>[()=>e.undoInputRule(),()=>e.command((({tr:t})=>{const{selection:n,doc:r}=t,{empty:o,$anchor:i}=n,{pos:a,parent:s}=i,l=i.parent.isTextblock&&a>0?t.doc.resolve(a-1):i,c=l.parent.type.spec.isolating,u=i.pos-i.parentOffset,d=c&&1===l.parent.childCount?u===i.pos:Et.atStart(r).from===a;return!(!o||!s.type.isTextblock||s.textContent.length||!d||d&&"paragraph"===i.parent.type.name)&&e.clearNodes()})),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()])),t=()=>this.editor.commands.first((({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()])),n={Enter:()=>this.editor.commands.first((({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()])),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},o={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return ja()||Fa()?o:r},addProseMirrorPlugins(){return[new Ht({key:new qt("clearDocument"),appendTransaction:(e,t,n)=>{if(e.some((e=>e.getMeta("composition"))))return;const r=e.some((e=>e.docChanged))&&!t.doc.eq(n.doc),o=e.some((e=>e.getMeta("preventClearDocument")));if(!r||o)return;const{empty:i,from:a,to:s}=t.selection,l=Et.atStart(t.doc).from,c=Et.atEnd(t.doc).to;if(i||!(a===l&&s===c))return;if(!ns(n.doc))return;const u=n.tr,d=Ji({state:n,transaction:u}),{commands:p}=new Xi({editor:this.editor,state:d});return p.clearNodes(),u.steps.length?u:void 0}})]}}),ms=Ca.create({name:"paste",addProseMirrorPlugins(){return[new Ht({key:new qt("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),gs=Ca.create({name:"tabindex",addProseMirrorPlugins(){return[new Ht({key:new qt("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class vs{get name(){return this.node.type.name}constructor(e,t,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=t,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return null!==(e=this.actualDepth)&&void 0!==e?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,n=this.to;if(this.isBlock){if(0===this.content.size)return void console.error(`You canât set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);t=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:t,to:n},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(0===this.depth)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),t=this.resolvedPos.doc.resolve(e);return new vs(t,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new vs(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new vs(e,this.editor)}get children(){const e=[];return this.node.content.forEach(((t,n)=>{const r=t.isBlock&&!t.isTextblock,o=t.isAtom&&!t.isText,i=this.pos+n+(o?0:1),a=this.resolvedPos.doc.resolve(i);if(!r&&a.depth<=this.depth)return;const s=new vs(a,this.editor,r,r?t:null);r&&(s.actualDepth=this.depth+1),e.push(new vs(a,this.editor,r,r?t:null))})),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,t={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===e)if(Object.keys(t).length>0){const e=r.node.attrs,n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];if(e[o]!==t[o])break}}else n=r;r=r.parent}return n}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},n=!1){let r=[];if(!this.children||0===this.children.length)return r;const o=Object.keys(t);return this.children.forEach((i=>{if(!(n&&r.length>0)){if(i.node.type.name===e){o.every((e=>t[e]===i.node.attrs[e]))&&r.push(i)}n&&r.length>0||(r=r.concat(i.querySelectorAll(e,t,n)))}})),r}setAttribute(e){const{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(t)}}class ys extends Zi{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:e})=>{throw e},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",(({event:e,slice:t,moved:n})=>this.options.onDrop(e,t,n))),this.on("paste",(({event:e,slice:t})=>this.options.onPaste(e,t))),window.setTimeout((()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)}),0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=function(e,t,n){const r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(null!==r)return r;const o=document.createElement("style");return t&&o.setAttribute("nonce",t),o.setAttribute("data-tiptap-style"+(n?`-${n}`:""),""),o.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(o),o}('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 0 !important;\n height: 0 !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}
2\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}',this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const n=ia(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;const t=this.state.plugins;let n=t;if([].concat(e).forEach((e=>{const r="string"==typeof e?`${e}$`:e.key;n=t.filter((e=>!e.key.startsWith(r)))})),t.length===n.length)return;const r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;const n=[...this.options.enableCoreExtensions?[ps,Va.configure({blockSeparator:null===(t=null===(e=this.options.coreExtensionOptions)||void 0===e?void 0:e.clipboardTextSerializer)||void 0===t?void 0:t.blockSeparator}),us,hs,fs,gs,ds,ms].filter((e=>"object"!=typeof this.options.enableCoreExtensions||!1!==this.options.enableCoreExtensions[e.name])):[],...this.options.extensions].filter((e=>["extension","node","mark"].includes(null==e?void 0:e.type)));this.extensionManager=new Ea(n,this)}createCommandManager(){this.commandManager=new Xi({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var e;let t;try{t=qa(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(e){if(!(e instanceof Error&&["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(e.message)))throw e;this.emit("contentError",{editor:this,error:e,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter((e=>"collaboration"!==e.name)),this.createExtensionManager()}}),t=qa(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=La(t,this.options.autofocus);this.view=new oi(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...null===(e=this.options.editorProps)||void 0===e?void 0:e.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:zt.create({doc:t,selection:n||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();this.view.dom.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction)return this.capturedTransaction?void e.steps.forEach((e=>{var t;return null===(t=this.capturedTransaction)||void 0===t?void 0:t.step(e)})):void(this.capturedTransaction=e);const t=this.state.apply(e),n=!this.state.selection.eq(t.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}
vendor: 5,351 bytes, line 2
2),this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),o=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),o&&this.emit("blur",{editor:this,event:o.event,transaction:e}),e.docChanged&&!e.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return Ja(this.state,e)}isActive(e,t){const n="string"==typeof e?e:null,r="string"==typeof e?t:e;return function(e,t,n={}){if(!t)return Ha(e,null,n)||es(e,null,n);const r=Ua(t,e.schema);return"node"===r?Ha(e,t,n):"mark"===r&&es(e,t,n)}(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return pa(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t="\n\n",textSerializers:n={}}=e||{};return Ka(this.state.doc,{blockSeparator:t,textSerializers:{...Sa(this.schema),...n}})}get isEmpty(){return ns(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(null===(e=this.view)||void 0===e?void 0:e.docView)}$node(e,t){var n;return(null===(n=this.$doc)||void 0===n?void 0:n.querySelector(e,t))||null}$nodes(e,t){var n;return(null===(n=this.$doc)||void 0===n?void 0:n.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new vs(t,this)}get $doc(){return this.$pos(0)}}function bs(e){return new fa({find:e.find,handler:({state:t,range:n,match:r})=>{const o=aa(e.getAttributes,void 0,r);if(!1===o||null===o)return null;const{tr:i}=t,a=r[r.length-1],s=r[0];if(a){const r=s.search(/\S/),l=n.from+s.indexOf(a),c=l+a.length;if(Za(n.from,n.to,t.doc).filter((t=>t.mark.type.excluded.find((n=>n===e.type&&n!==t.mark.type)))).filter((e=>e.to>l)).length)return null;c<n.to&&i.delete(c,n.to),l>n.from&&i.delete(n.from+r,l);const u=n.from+r+a.length;i.addMark(n.from+r,u,e.type.create(o||{})),i.removeStoredMark(e.type)}}})}function xs(e){return new fa({find:e.find,handler:({state:t,range:n,match:r})=>{const o=aa(e.getAttributes,void 0,r)||{},{tr:i}=t,a=n.from;let s=n.to;const l=e.type.create(o);if(r[1]){let e=a+r[0].lastIndexOf(r[1]);e>s?e=s:s=e+r[1].length;const t=r[0][r[0].length-1];i.insertText(t,a+r[0].length-1),i.replaceWith(e,s,l)}else if(r[0]){const t=e.type.isInline?a:a-1;i.insert(t,e.type.create(o)).delete(i.mapping.map(a),i.mapping.map(s))}i.scrollIntoView()}})}function ws(e){return new fa({find:e.find,handler:({state:t,range:n,match:r})=>{const o=t.doc.resolve(n.from),i=aa(e.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,i)}})}function ks(e){return new fa({find:e.find,handler:({state:t,range:n,match:r,chain:o})=>{const i=aa(e.getAttributes,void 0,r)||{},a=t.tr.delete(n.from,n.to),s=a.doc.resolve(n.from).blockRange(),l=s&&et(s,e.type,i);if(!l)return null;if(a.wrap(s,l),e.keepMarks&&e.editor){const{selection:n,storedMarks:r}=t,{splittableMarks:o}=e.editor.extensionManager,i=r||n.$to.parentOffset&&n.$from.marks();if(i){const e=i.filter((e=>o.includes(e.type.name)));a.ensureMarks(e)}}if(e.keepAttributes){const t="bulletList"===e.type.name||"orderedList"===e.type.name?"listItem":"taskList";o().updateAttributes(t,i).run()}const c=a.doc.resolve(n.from-1).nodeBefore;c&&c.type===e.type&&it(a.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,c))&&a.join(n.from-1)}})}class _s{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=aa(Qi(this,"addOptions",{name:this.name}))),this.storage=aa(Qi(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new _s(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>ya(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new _s(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=aa(Qi(t,"addOptions",{name:t.name})),t.storage=aa(Qi(t,"addStorage",{name:t.name,options:t.options})),t}}function Es(e){return new xa({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:o})=>{const i=aa(e.getAttributes,void 0,r,o);if(!1===i||null===i)return null;const{tr:a}=t,s=r[r.length-1],l=r[0];let c=n.to;if(s){const r=l.search(/\S/),o=n.from+l.indexOf(s),u=o+s.length;if(Za(n.from,n.to,t.doc).filter((t=>t.mark.type.excluded.find((n=>n===e.type&&n!==t.mark.type)))).filter((e=>e.to>o)).length)return null;u<n.to&&a.delete(u,n.to),o>
vendor: 6,234 bytes, line 2
2n.from&&a.delete(n.from+r,o),c=n.from+r+s.length,a.addMark(n.from+r,c,e.type.create(i||{})),a.removeStoredMark(e.type)}}})}var Cs=n(2168),Ns=n(6607),Ss="tippy-content",Vs="tippy-backdrop",As="tippy-arrow",Ds="tippy-svg-arrow",Ms={passive:!0,capture:!0},Ts=function(){return document.body};function Bs(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Os(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Ps(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Ls(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function Is(e){return[].concat(e)}function js(e,t){-1===e.indexOf(t)&&e.push(t)}function Rs(e){return e.split("-")[0]}function $s(e){return[].slice.call(e)}function zs(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Fs(){return document.createElement("div")}function Hs(e){return["Element","Fragment"].some((function(t){return Os(e,t)}))}function Us(e){return Os(e,"MouseEvent")}function Ws(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function qs(e){return Hs(e)?[e]:function(e){return Os(e,"NodeList")}(e)?$s(e):Array.isArray(e)?e:$s(document.querySelectorAll(e))}function Ys(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Gs(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Ks(e){var t,n=Is(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function Js(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function Xs(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var Zs={isTouch:!1},Qs=0;function el(){Zs.isTouch||(Zs.isTouch=!0,window.performance&&document.addEventListener("mousemove",tl))}function tl(){var e=performance.now();e-Qs<20&&(Zs.isTouch=!1,document.removeEventListener("mousemove",tl)),Qs=e}function nl(){var e=document.activeElement;if(Ws(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var rl=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var ol={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},il=Object.assign({appendTo:Ts,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},ol,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),al=Object.keys(il);function sl(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,i=n.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=il[o])?r:i);return t}),{});return Object.assign({},e,t)}function ll(e,t){var n=Object.assign({},t,{content:Ps(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(sl(Object.assign({},il,{plugins:t}))):al).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},il.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function cl(e,t){e.innerHTML=t}function ul(e){var t=Fs();return!0===e?t.className=As:(t.className=Ds,Hs(e)?t.appendChild(e):cl(t,e)),t}function dl(e,t){Hs(t.content)?(cl(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?cl(e,t.content):e.textContent=t.content)}function pl(e){var t=e.firstElementChild,n=$s(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Ss)})),arrow:n.find((function(e){return e.classList.contains(As)||e.classList.contains(Ds)})),backdrop:n.find((function(e){return e.classList.contains(Vs)}))}}function hl(e){var t=Fs(),n=Fs();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Fs();function o(n,r){var o=pl(t),i=o.box,a=o.content,s=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||dl(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(i.removeChild(s),i.appendChild(ul(r.arrow))):i.appendChild(ul(r.arrow)):s&&i.removeChild(s)}return r.className=Ss,r.setAttribute("data-state","hidden"),dl(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}hl.$$tippy=!0;var fl=1,ml=[],gl=[];function vl(e,t){var n,r,o,i,a,s,l,c,u=ll(e,Object.assign({},il,sl(zs(t)))),d=!1,p=!1,h=!1,f=!1,m=[],g=Ls(Y,u.interactiveDebounce),v=fl++,y=(c=u.plugins).filter((function(e,t){return c.indexOf(e)===t})),b={id:v,reference:e,popper:Fs(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){0;if(b.state.isDestroyed)return;B("onBeforeUpdate",[b,t]),W();var n=b.props,r=ll(e,Object.assign({},n,zs(t),{ignoreAttributes:!0}));b.props=r,U(),n.interactiveDebounce!==r.interactiveDebounce&&(L(),g=Ls(Y,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?Is(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");P(),T(),k&&k(n,r);
vendor: 4,529 bytes, line 2
2b.popperInstance&&(X(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));B("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){0;var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=Zs.isTouch&&!b.props.touch,o=Bs(b.props.duration,0,il.duration);if(e||t||n||r)return;if(V().hasAttribute("disabled"))return;if(B("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,S()&&(w.style.visibility="visible");T(),$(),b.state.isMounted||(w.style.transition="none");if(S()){var i=D();Ys([i.box,i.content],0)}s=function(){var e;if(b.state.isVisible&&!f){if(f=!0,w.offsetHeight,w.style.transition=b.props.moveTransition,S()&&b.props.animation){var t=D(),n=t.box,r=t.content;Ys([n,r],o),Gs([n,r],"visible")}O(),P(),js(gl,b),null==(e=b.popperInstance)||e.forceUpdate(),B("onMount",[b]),b.props.animation&&S()&&function(e,t){F(e,t)}(o,(function(){b.state.isShown=!0,B("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=V();e=b.props.interactive&&t===Ts||"parent"===t?n.parentNode:Ps(t,[n]);e.contains(w)||e.appendChild(w);b.state.isMounted=!0,X(),!1}()},hide:function(){0;var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=Bs(b.props.duration,1,il.duration);if(e||t||n)return;if(B("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,f=!1,d=!1,S()&&(w.style.visibility="hidden");if(L(),z(),T(!0),S()){var o=D(),i=o.box,a=o.content;b.props.animation&&(Ys([i,a],r),Gs([i,a],"hidden"))}O(),P(),b.props.animation?S()&&function(e,t){F(e,(function(){!b.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(r,b.unmount):b.unmount()},hideWithInteractivity:function(e){0;A().addEventListener("mousemove",g),js(ml,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){0;b.state.isVisible&&b.hide();if(!b.state.isMounted)return;Z(),Q().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w);gl=gl.filter((function(e){return e!==b})),b.state.isMounted=!1,B("onHidden",[b])},destroy:function(){0;if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),W(),delete e._tippy,b.state.isDestroyed=!0,B("onDestroy",[b])}};if(!u.render)return b;var x=u.render(b),w=x.popper,k=x.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+b.id,b.popper=w,e._tippy=b,w._tippy=b;var _=y.map((function(e){return e.fn(b)})),E=e.hasAttribute("aria-expanded");return U(),P(),T(),B("onCreate",[b]),u.showOnCreate&&ee(),w.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&A().addEventListener("mousemove",g)})),b;function C(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function N(){return"hold"===C()[0]}function S(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function V(){return l||e}function A(){var e=V().parentNode;return e?Ks(e):document}function D(){return pl(w)}function M(e){return b.state.isMounted&&!b.state.isVisible||Zs.isTouch||i&&"focus"===i.type?0:Bs(b.props.delay,e?0:1,il.delay)}function T(e){void 0===e&&(e=!1),w.style.pointerEvents=b.props.interactive&&!e?"":"none",w.style.zIndex=""+b.props.zIndex}function B(e,t,n){var r;(void 0===n&&(n=!0),_.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=b.props)[e].apply(r,t)}function O(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=w.id;Is(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function P(){!E&&b.props.aria.expanded&&Is(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===V()?"true":"false"):e.removeAttribute("aria-expanded")}))}function L(){A().removeEventListener("mousemove",g),ml=ml.filter((function(e){return e!==g}))}function I(t){if(!Zs.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!Xs(w,n)){if(Is(b.props.triggerTarget||e).some((function(e){return Xs(e,n)}))){if(Zs.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else B("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),p=!0,setTimeout((function(){p=!1})),b.state.isMounted||z())}}}function j(){h=!0}
vendor: 4,644 bytes, line 2
2function R(){h=!1}function $(){var e=A();e.addEventListener("mousedown",I,!0),e.addEventListener("touchend",I,Ms),e.addEventListener("touchstart",R,Ms),e.addEventListener("touchmove",j,Ms)}function z(){var e=A();e.removeEventListener("mousedown",I,!0),e.removeEventListener("touchend",I,Ms),e.removeEventListener("touchstart",R,Ms),e.removeEventListener("touchmove",j,Ms)}function F(e,t){var n=D().box;function r(e){e.target===n&&(Js(n,"remove",r),t())}if(0===e)return t();Js(n,"remove",a),Js(n,"add",r),a=r}function H(t,n,r){void 0===r&&(r=!1),Is(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function U(){N()&&(H("touchstart",q,{passive:!0}),H("touchend",G,{passive:!0})),function(e){return e.split(/\s+/).filter(Boolean)}(b.props.trigger).forEach((function(e){if("manual"!==e)switch(H(e,q),e){case"mouseenter":H("mouseleave",G);break;case"focus":H(rl?"focusout":"blur",K);break;case"focusin":H("focusout",K)}}))}function W(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),m=[]}function q(e){var t,n=!1;if(b.state.isEnabled&&!J(e)&&!p){var r="focus"===(null==(t=i)?void 0:t.type);i=e,l=e.currentTarget,P(),!b.state.isVisible&&Us(e)&&ml.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!r&&te(e)}}function Y(e){var t=e.target,n=V().contains(t)||w.contains(t);if("mousemove"!==e.type||!n){var r=Q().concat(w).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=Rs(o.placement),s=o.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,d="left"===a?s.right.x:0,p=t.top-r+l>i,h=r-t.bottom-c>i,f=t.left-n+u>i,m=n-t.right-d>i;return p||h||f||m}))})(r,e)&&(L(),te(e))}}function G(e){J(e)||b.props.trigger.indexOf("click")>=0&&d||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function K(e){b.props.trigger.indexOf("focusin")<0&&e.target!==V()||b.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function J(e){return!!Zs.isTouch&&N()!==e.type.indexOf("touch")>=0}function X(){Z();var t=b.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,l=S()?pl(w).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||V()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(S()){var n=D().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},u];S()&&l&&d.push({name:"arrow",options:{element:l,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),b.popperInstance=(0,Cs.n4)(c,w,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:d}))}function Z(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return $s(w.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&B("onTrigger",[b,e]),$();var t=M(!0),r=C(),o=r[0],i=r[1];Zs.isTouch&&"hold"===o&&i&&(t=i),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),B("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=M(!1);t?r=setTimeout((function(){b.state.isVisible&&b.hide()}),t):o=requestAnimationFrame((function(){b.hide()}))}}else z()}}function yl(e,t){void 0===t&&(t={});var n=il.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",el,Ms),window.addEventListener("blur",nl);var r=Object.assign({},t,{plugins:n}),o=qs(e).reduce((function(e,t){var n=t&&vl(t,r);return n&&e.push(n),e}),[]);return Hs(e)?o[0]:o}yl.defaultProps=il,yl.setDefaultProps=function(e){Object.keys(e).forEach((function(t){il[t]=e[t]}))},yl.currentInput=Zs;Object.assign({},Ns.A,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left
vendor: 4,219 bytes, line 2
2:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});yl.setDefaultProps({render:hl});const bl=yl;class xl{constructor({editor:e,element:t,view:n,tippyOptions:r={},updateDelay:o=250,shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:e,state:t,from:n,to:r})=>{const{doc:o,selection:i}=t,{empty:a}=i,s=!o.textBetween(n,r).length&&Oa(t.selection),l=this.element.contains(document.activeElement);return!(!e.hasFocus()&&!l||a||s||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout((()=>this.update(this.editor.view)))},this.blurHandler=({event:e})=>{var t;this.preventHide?this.preventHide=!1:(null==e?void 0:e.relatedTarget)&&(null===(t=this.element.parentNode)||void 0===t?void 0:t.contains(e.relatedTarget))||(null==e?void 0:e.relatedTarget)!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=e=>{this.blurHandler({event:e})},this.handleDebouncedUpdate=(e,t)=>{const n=!(null==t?void 0:t.selection.eq(e.state.selection)),r=!(null==t?void 0:t.doc.eq(e.state.doc));(n||r)&&(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout((()=>{this.updateHandler(e,n,r,t)}),this.updateDelay))},this.updateHandler=(e,t,n,r)=>{var o,i,a;const{state:s,composing:l}=e,{selection:c}=s;if(l||!t&&!n)return;this.createTooltip();const{ranges:u}=c,d=Math.min(...u.map((e=>e.$from.pos))),p=Math.max(...u.map((e=>e.$to.pos)));(null===(o=this.shouldShow)||void 0===o?void 0:o.call(this,{editor:this.editor,element:this.element,view:e,state:s,oldState:r,from:d,to:p}))?(null===(i=this.tippy)||void 0===i||i.setProps({getReferenceClientRect:(null===(a=this.tippyOptions)||void 0===a?void 0:a.getReferenceClientRect)||(()=>{if(rs(s.selection)){let t=e.nodeDOM(d);if(t){const e=t.dataset.nodeViewWrapper?t:t.querySelector("[data-node-view-wrapper]");if(e&&(t=e.firstChild),t)return t.getBoundingClientRect()}}return is(e,d,p)})}),this.show()):this.hide()},this.editor=e,this.element=t,this.view=n,this.updateDelay=o,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;!this.tippy&&t&&(this.tippy=bl(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){const{state:n}=e,r=n.selection.from!==n.selection.to;if(this.updateDelay>0&&r)return void this.handleDebouncedUpdate(e,t);const o=!(null==t?void 0:t.selection.eq(e.state.selection)),i=!(null==t?void 0:t.doc.eq(e.state.doc));this.updateHandler(e,o,i,t)}show(){var e;null===(e=this.tippy)||void 0===e||e.show()}hide(){var e;null===(e=this.tippy)||void 0===e||e.hide()}destroy(){var e,t;(null===(e=this.tippy)||void 0===e?void 0:e.popper.firstChild)&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(t=this.tippy)||void 0===t||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const wl=e=>new Ht({key:"string"==typeof e.pluginKey?new qt(e.pluginKey):e.pluginKey,view:t=>new xl({view:t,...e})});Ca.create({name:"bubbleMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[wl({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});
2class kl{getTextContent(e){return Ka(e,{textSerializers:Sa(this.editor.schema)})}constructor({editor:e,element:t,view:n,tippyOptions:r={},shouldShow:o}){this.preventHide=!1,this.shouldShow=({view:e,state:t})=>{const{selection:n}=t,{$anchor:r,empty:o}=n,i=1===r.depth,a=r.parent.isTextblock&&!r.parent.type.spec.code&&!r.parent.textContent&&0===r.parent.childCount&&!this.getTextContent(r.parent);return!!(e.hasFocus()&&o&&i&&a&&this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout((()=>this.update(this.editor.view)))},this.blurHandler=({event:e})=>{var t;this.preventHide?this.preventHide=!1:(null==e?void 0:e.relatedTarget)&&(null===(t=this.element.parentNode)||void 0===t?void 0:t.contains(e.relatedTarget))||(null==e?void 0:e.relatedTarget)!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=e=>{this.blurHandler({event:e})},this.editor=e,this.element=t,this.view=n,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;!this.tippy&&t&&(this.tippy=bl(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){var n,r,o;const{state:i}=e,{doc:a,selection:s}=i,{from:l,to:c}=s;if(t&&t.doc.eq(a)&&t.selection.eq(s))return;this.createTooltip();(null===(n=this.shouldShow)||void 0===n?void 0:n.call(this,{editor:this.editor,view:e,state:i,oldState:t}))?(null===(r=this.tippy)||void 0===r||r.setProps({getReferenceClientRect:(null===(o=this.tippyOptions)||void 0===o?void 0:o.getReferenceClientRect)||(()=>is(e,l,c))}),this.show()):this.hide()}show(){var e;null===(e=this.tippy)||void 0===e||e.show()}hide(){var e;null===(e=this.tippy)||void 0===e||e.hide()}destroy(){var e,t;(null===(e=this.tippy)||void 0===e?void 0:e.popper.firstChild)&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(t=this.tippy)||void 0===t||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const _l=e=>new Ht({key:"string"==typeof e.pluginKey?new qt(e.pluginKey):e.pluginKey,view:t=>new kl({view:t,...e})});Ca.create({name:"floatingMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[_l({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),(0,r.defineComponent)({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(e,{slots:t}){const n=(0,r.ref)(null);return(0,r.onMounted)((()=>{const{updateDelay:t,editor:r,pluginKey:o,shouldShow:i,tippyOptions:a}=e;r.registerPlugin(wl({updateDelay:t,editor:r,element:n.value,pluginKey:o,shouldShow:i,tippyOptions:a}))})),(0,r.onBeforeUnmount)((()=>{const{pluginKey:t,editor:n}=e;n.unregisterPlugin(t)})),()=>{var e;return(0,r.h)("div",{ref:n},null===(e=t.default)||void 0===e?void 0:e.call(t))}}});function El(e){return(0,r.customRef)(((t,n)=>({get:()=>(t(),e),set(t){e=t,requestAnimationFrame((()=>{requestAnimationFrame((()=>{n()}))}))}})))}class Cl extends ys{constructor(e={}){return super(e),this.contentComponent=null,this.appContext=null,this.reactiveState=El(this.view.state),this.reactiveExtensionStorage=El(this.extensionStorage),this.on("beforeTransaction",(({nextState:e})=>{this.reactiveState.value=e,this.reactiveExtensionStorage.value=this.extensionStorage})),(0,r.markRaw)(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){const n=super.registerPlugin(e,t);return this.reactiveState&&(this.reactiveState.value=n),n}unregisterPlugin(e){const t=super.unregisterPlugin(e);return this.reactiveState&&t&&(this.reactiveState.value=t),t}}const Nl=(0,r.defineComponent)({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(e){const t=(0,r.ref)(),n=(0,r.getCurrentInstance)();
2return(0,r.watchEffect)((()=>{const o=e.editor;o&&o.options.element&&t.value&&(0,r.nextTick)((()=>{if(!t.value||!o.options.element.firstChild)return;const e=(0,r.unref)(t.value);t.value.append(...o.options.element.childNodes),o.contentComponent=n.ctx._,n&&(o.appContext={...n.appContext,provides:n.provides}),o.setOptions({element:e}),o.createNodeViews()}))})),(0,r.onBeforeUnmount)((()=>{const t=e.editor;t&&(t.contentComponent=null,t.appContext=null)})),{rootEl:t}},render(){return(0,r.h)("div",{ref:e=>{this.rootEl=e}})}});(0,r.defineComponent)({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(e,{slots:t}){const n=(0,r.ref)(null);return(0,r.onMounted)((()=>{const{pluginKey:t,editor:r,tippyOptions:o,shouldShow:i}=e;r.registerPlugin(_l({pluginKey:t,editor:r,element:n.value,tippyOptions:o,shouldShow:i}))})),(0,r.onBeforeUnmount)((()=>{const{pluginKey:t,editor:n}=e;n.unregisterPlugin(t)})),()=>{var e;return(0,r.h)("div",{ref:n},null===(e=t.default)||void 0===e?void 0:e.call(t))}}}),(0,r.defineComponent)({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return(0,r.h)(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),(0,r.defineComponent)({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var e,t;return(0,r.h)(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))}});Boolean;const Sl=ba.create({name:"textStyle",priority:101,addOptions:()=>({HTMLAttributes:{},mergeNestedSpanStyles:!1}),parseHTML(){return[{tag:"span",getAttrs:e=>!!e.hasAttribute("style")&&(this.options.mergeNestedSpanStyles&&(e=>{if(!e.children.length)return;const t=e.querySelectorAll("span");t&&t.forEach((e=>{var t,n;const r=e.getAttribute("style"),o=null===(n=null===(t=e.parentElement)||void 0===t?void 0:t.closest("span"))||void 0===n?void 0:n.getAttribute("style");e.setAttribute("style",`${o};${r}`)}))})(e),{})}]},renderHTML({HTMLAttributes:e}){return["span",ra(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({tr:e})=>{const{selection:t}=e;return e.doc.nodesBetween(t.from,t.to,((t,n)=>{if(t.isTextblock)return!0;t.marks.filter((e=>e.type===this.type)).some((e=>Object.values(e.attrs).some((e=>!!e))))||e.removeMark(n,n+t.nodeSize,this.type)})),!0}}}}),Vl=Ca.create({name:"color",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:e=>{var t;return null===(t=e.style.color)||void 0===t?void 0:t.replace(/['"]+/g,"")},renderHTML:e=>e.color?{style:`color: ${e.color}`}:{}}}}]},addCommands:()=>({setColor:e=>({chain:t})=>t().setMark("textStyle",{color:e}).run(),unsetColor:()=>({chain:e})=>e().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()})}),Al=Ca.create({name:"textAlign",addOptions:()=>({types:[],alignments:["left","center","right","justify"],defaultAlignment:null}),addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:e=>{const t=e.style.textAlign;return this.options.alignments.includes(t)?t:this.options.defaultAlignment},renderHTML:e=>e.textAlign?{style:`text-align: ${e.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:e=>({commands:t})=>!!this.options.alignments.includes(e)&&this.options.types.map((n=>t.updateAttributes(n,{textAlign:e}))).every((e=>e)),unsetTextAlign:()=>({commands:e})=>this.options.types.map((t=>e.resetAttributes(t,"textAlign"))).every((e=>e))}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),Dl=(e,t)=>{for(const n in t)e[n]=t[n];return e},Ml="numeric",Tl="ascii",Bl="alpha",Ol="asciinumeric",Pl="alphanumeric",Ll="domain",Il="emoji",jl="scheme",Rl="slashscheme",$l="whitespace";function zl(e,t){return e in t||(t[e]=[]),t[e]}function Fl(e,t,n){t[Ml]&&(t[Ol]=!0,t[Pl]=!0),t[Tl]&&(t[Ol]=!0,t[Bl]=!0),t[Ol]&&(t[Pl]=!0),t[Bl]&&(t[Pl]=!0),t[Pl]&&(t[Ll]=!0),t[Il]&&(t[Ll]=!0);for(const r in t){const t=zl(r,n);t.indexOf(e)<0&&t.push(e)}}function Hl(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}Hl.groups={},Hl.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let n=0;n<t.jr.length;n++){const r=t.jr[n][0],o=t.jr[n][1];if(o&&r.test(e))return o}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let o=0;o<e.length;o++)this.tt(e[o],t,n,r)},tr(e,t,n,r){let o;return r=r||Hl.groups,t&&t.j?o=t:(o=new Hl(t),n&&r&&Fl(t,n,r)),this.jr.push([e,o]),o},ts(e,t,n,r){let o=this;const i=e.length;if(!i)return o;for(let t=0;t<i-1;t++)o=o.tt(e[t]);return o.tt(e[i-1],t,n,r)},tt(e,t,n,r){r=r||Hl.groups;const o=this;if(t&&t.j)return o.j[e]=t,t;const i=t;let a,s=o.go(e);if(s?(a=new Hl,Dl(a.j,s.j),a.jr.push.apply(a.jr,s.jr),a.jd=s.jd,a.t=s.t):a=new Hl,i){if(r)if(a.t&&"string"==typeof a.t){const e=Dl(function(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}(a.t,r),n);Fl(i,e,r)}else n&&Fl(i,n,r);a.t=i}return o.j[e]=a,a}};const Ul=(e,t,n,r,o)=>e.ta(t,n,r,o),Wl=(e,t,n,r,o)=>e.tr(t,n,r,o),ql=(e,t,n,r,o)=>e.ts(t,n,r,o),Yl=(e,t,n,r,o)=>e.tt(t,n,r,o),Gl="WORD",Kl="UWORD",Jl="ASCIINUMERICAL",Xl="ALPHANUMERICAL",Zl="LOCALHOST",Ql="TLD",ec="UTLD",tc="SCHEME",nc="SLASH_SCHEME",rc="NUM",oc="WS",ic="NL",ac="OPENBRACE",sc="CLOSEBRACE",lc="OPENBRACKET",cc="CLOSEBRACKET",uc="OPENPAREN",dc="CLOSEPAREN",pc="OPENANGLEBRACKET",hc="CLOSEANGLEBRACKET",fc="FULLWIDTHLEFTPAREN",mc="FULLWIDTHRIGHTPAREN",gc="LEFTCORNERBRACKET",vc="RIGHTCORNERBRACKET",yc="LEFTWHITECORNERBRACKET",bc="RIGHTWHITECORNERBRACKET",xc="FULLWIDTHLESSTHAN",wc="FULLWIDTHGREATERTHAN",kc="AMPERSAND",_c="APOSTROPHE",Ec="ASTERISK",Cc="AT",Nc="BACKSLASH",Sc="BACKTICK",Vc="CARET",Ac="COLON",Dc="COMMA",Mc="DOLLAR",Tc="DOT",Bc="EQUALS",Oc="EXCLAMATION",Pc="HYPHEN",Lc="PERCENT",Ic="PIPE",jc="PLUS",Rc="POUND",$c="QUERY",zc="QUOTE",Fc="FULLWIDTHMIDDLEDOT",Hc="SEMI",Uc="SLASH",Wc="TILDE",qc="UNDERSCORE",Yc="EMOJI",Gc="SYM";var Kc=Object.freeze({__proto__:null,WORD:Gl,UWORD:Kl,ASCIINUMERICAL:Jl,ALPHANUMERICAL:Xl,LOCALHOST:Zl,TLD:Ql,UTLD:ec,SCHEME:tc,SLASH_SCHEME:nc,NUM:rc,WS:oc,NL:ic,OPENBRACE:ac,CLOSEBRACE:sc,OPENBRACKET:lc,CLOSEBRACKET:cc,OPENPAREN:uc,CLOSEPAREN:dc,OPENANGLEBRACKET:pc,CLOSEANGLEBRACKET:hc,FULLWIDTHLEFTPAREN:fc,FULLWIDTHRIGHTPAREN:mc,LEFTCORNERBRACKET:gc,RIGHTCORNERBRACKET:vc,LEFTWHITECORNERBRACKET:yc,RIGHTWHITECORNERBRACKET:bc,FULLWIDTHLESSTHAN:xc,FULLWIDTHGREATERTHAN:wc,AMPERSAND:kc,APOSTROPHE:_c,ASTERISK:Ec,AT:Cc,BACKSLASH:Nc,BACKTICK:Sc,CARET:Vc,COLON:Ac,COMMA:Dc,DOLLAR:Mc,DOT:Tc,EQUALS:Bc,EXCLAMATION:Oc,HYPHEN:Pc,PERCENT:Lc,PIPE:Ic,PLUS:jc,POUND:Rc,QUERY:$c,QUOTE:zc,FULLWIDTHMIDDLEDOT:Fc,SEMI:Hc,SLASH:Uc,TILDE:Wc,UNDERSCORE:qc,EMOJI:Yc,SYM:Gc});const Jc=/[a-z]/,Xc=/\p{L}/u,Zc=/\p{Emoji}/u,Qc=/\d/,eu=/\s/;let tu=null,nu=null;function ru(e,t){const n=function(e){const t=[],n=e.length;let r=0;for(;r<n;){let o,i=e.charCodeAt(r),a=i<55296||i>56319||r+1===n||(o=e.charCodeAt(r+1))<56320||o>57343?e[r]:e.slice(r,r+2);t.push(a),r+=a.length}return t}(t.replace(/[A-Z]/g,(e=>e.toLowerCase()))),r=n.length,o=[];let i=0,a=0;for(;a<r;){let s=e,l=null,c=0,u=null,d=-1,p=-1;for(;a<r&&(l=s.go(n[a]));)s=l,s.accepts()?(d=0,p=0,u=s):d>=0&&(d+=n[a].length,p++),c+=n[a].length,i+=n[a].length,a++;i-=d,a-=p,c-=d,o.push({t:u.t,v:t.slice(i-c,i),s:i-c,e:i})}return o}function ou(e,t,n,r,o){let i;const a=t.length;for(let n=0;n<a-1;n++){const a=t[n];e.j[a]?i=e.j[a]:(i=new Hl(r),i.jr=o.slice(),e.j[a]=i),e=i}return i=new Hl(n),i.jr=o.slice(),e.j[t[a-1]]=i,i}function iu(e){const t=[],n=[];let r=0;for(;r<e.length;){let o=0;for(;"0123456789".indexOf(e[r+o])>=0;)o++;if(o>0){t.push(n.join(""));for(let t=parseInt(e.substring(r,r+o),10);t>0;t--)n.pop();r+=o}else n.push(e[r]),r++}return t}const au={defaultProtocol:"http",events:null,format:lu,formatHref:lu,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function su(e,t=null){let n=Dl({},au);e&&(n=Dl(n,e instanceof su?e.o:e));const r=n.ignoreTags,o=[];for(let e=0;e<r.length;e++)o.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=o}function lu(e){return e}su.prototype={o:au,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const r=null!=t;let o=this.o[e];return o?("object"==typeof o?(o=n.t in o?o[n.t]:au[e],"function"==typeof o&&r&&(o=o(t,n))):"function"==typeof o&&r&&(o=o(t,n.t,n)),o):o},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function cu(e,t){this.t="token",this.v=e,this.tk=t}
vendor: 5,730 bytes, line 2
2function uu(e,t){class n extends cu{constructor(t,n){super(t,n),this.t=e}}for(const e in t)n.prototype[e]=t[e];return n.t=e,n}cu.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"â¦":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=au.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),o=e.get("tagName",n,t),i=this.toFormattedString(e),a={},s=e.get("className",n,t),l=e.get("target",n,t),c=e.get("rel",n,t),u=e.getObj("attributes",n,t),d=e.getObj("events",n,t);return a.href=r,s&&(a.class=s),l&&(a.target=l),c&&(a.rel=c),u&&Dl(a,u),{tagName:o,attributes:a,content:i,eventListeners:d}}};const du=uu("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),pu=uu("text"),hu=uu("nl"),fu=uu("url",{isLink:!0,toHref(e=au.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==Zl&&e[1].t===Ac}});const mu=e=>new Hl(e);function gu(e,t,n){const r=n[0].s,o=n[n.length-1].e;return new e(t.slice(r,o),n)}const vu="undefined"!=typeof console&&console&&console.warn||(()=>{}),yu="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",bu={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function xu(e,t=!1){if(bu.initialized&&vu(`linkifyjs: already initialized - will not register custom scheme "${e}" ${yu}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error('linkifyjs: incorrect scheme format.\n1. Must only contain digits, lowercase ASCII letters or "-"\n2. Cannot start or end with "-"\n3. "-" cannot repeat');bu.customSchemes.push([e,t])}function wu(){bu.scanner=function(e=[]){const t={};Hl.groups=t;const n=new Hl;null==tu&&(tu=iu("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==nu&&(nu=iu("ελ1Ï
2бг1ел3деÑи4еÑ2каÑолик6ом3мÐ
2ºÐ´2он1Ñква6онлайн5Ñг3ÑÑÑ2Ñ2ÑайÑ3Ñб3ÑкÑ3Òаз3Õ°Õ¡Õµ3×שר××5×§××3Ø§Ø¨ÙØ¸Ø¨Ù5راÙ
ÙÙ5ÙØ§Ø±Ø¯Ù4Ø¨ØØ±ÙÙ5جزائر5Ø³Ø¹ÙØ¯ÙØ©6عÙÙØ§Ù5Ù
غرب5Ù
ارات5ÛØ±Ø§Ù5بارت2زار4ÙØªÙ3ھارت5تÙÙØ³4Ø³ÙØ¯Ø§Ù3Ø±ÙØ©5Ø´Ø¨ÙØ©4عراÙ2ب2Ù
اÙ4ÙÙØ³Ø·ÙÙ6ÙØ·Ø±3ÙØ§Ø«ÙÙÙÙ6ÙÙ
3Ù
صر2ÙÙØ³Ùا5ÙØ±ÙتاÙÙØ§7ÙØ¹4ÙÙ
راÙ5پاکستاÙ7ÚØ§Ø±Øª4à¤à¥à¤®3नà¥à¤3à¤à¤¾à¤°à¤¤0मà¥3à¥à¤¤5सà¤à¤à¤ न5বাà¦à¦²à¦¾5à¦à¦¾à¦°à¦¤2ৰত4à¨à¨¾à¨°à¨¤4àªàª¾àª°àª¤4à¬à¬¾à¬°à¬¤4à®à®¨à¯à®¤à®¿à®¯à®¾6லà®à¯à®à¯6à®à®¿à®à¯à®à®ªà¯à®ªà¯à®°à¯11à°à°¾à°°à°¤à±5à²à²¾à²°à²¤4à´à´¾à´°à´¤à´5à¶½à¶à¶à·4à¸à¸à¸¡3à¹à¸à¸¢3ລາວ3áá2ã¿ããª3ã¢ãã¾ã³4ã¯ã©ã¦ã4ã°ã¼ã°ã«4ã³ã 2ã¹ãã¢3ã»ã¼ã«3ãã¡ãã·ã§ã³6ãã¤ã³ã4ä¸ç2ä¸ä¿¡1å½1å1æç½3äºé©¬é3ä¼ä¸2ä½å±±2ä¿¡æ¯2å¥åº·2å
«å¦2å
¬å¸1ç2å°æ¹¾1ç£2åå1åº1æ 2åé0大é
åº5å¨çº¿2大æ¿2天主æ3娱ä¹2å®¶é»2广ä¸2å¾®å2æ
å2æç±ä½ 3ææº2æè2æ¿å¡1åº2æ°å å¡2é»2æ¶å°2æ¸ç±2æºæ2淡马é¡3游æ2æ¾³é2ç¹ç2ç§»å¨2ç»ç»æºæ4ç½å1åº1ç«1ç»2èé2è°·æ2è´ç©2é販2éå¢2é»è¨çç§4é£å©æµ¦3é£å2é¤å
2馿 ¼éæ3港2ë·ë·1ì»´2ì¼ì±2íêµ2")),Yl(n,"'",_c),Yl(n,"{",ac),Yl(n,"}
2",sc),Yl(n,"[",lc),Yl(n,"]",cc),Yl(n,"(",uc),Yl(n,")",dc),Yl(n,"<",pc),Yl(n,">",hc),Yl(n,"ï¼",fc),Yl(n,"ï¼",mc),Yl(n,"ã",gc),Yl(n,"ã",vc),Yl(n,"ã",yc),Yl(n,"ã",bc),Yl(n,"ï¼",xc),Yl(n,"ï¼",wc),Yl(n,"&",kc),Yl(n,"*",Ec),Yl(n,"@",Cc),Yl(n,"`",Sc),Yl(n,"^",Vc),Yl(n,":",Ac),Yl(n,",",Dc),Yl(n,"$",Mc),Yl(n,".",Tc),Yl(n,"=",Bc),Yl(n,"!",Oc),Yl(n,"-",Pc),Yl(n,"%",Lc),Yl(n,"|",Ic),Yl(n,"+",jc),Yl(n,"#",Rc),Yl(n,"?",$c),Yl(n,'"',zc),Yl(n,"/",Uc),Yl(n,";",Hc),Yl(n,"~",Wc),Yl(n,"_",qc),Yl(n,"\\",Nc),Yl(n,"ã»",Fc);const r=Wl(n,Qc,rc,{[Ml]:!0});Wl(r,Qc,r);const o=Wl(r,Jc,Jl,{[Ol]:!0}),i=Wl(r,Xc,Xl,{[Pl]:!0}),a=Wl(n,Jc,Gl,{[Tl]:!0});Wl(a,Qc,o),Wl(a,Jc,a),Wl(o,Qc,o),Wl(o,Jc,o);const s=Wl(n,Xc,Kl,{[Bl]:!0});Wl(s,Jc),Wl(s,Qc,i),Wl(s,Xc,s),Wl(i,Qc,i),Wl(i,Jc),Wl(i,Xc,i);const l=Yl(n,"\n",ic,{[$l]:!0}),c=Yl(n,"\r",oc,{[$l]:!0}),u=Wl(n,eu,oc,{[$l]:!0});Yl(n,"",u),Yl(c,"\n",l),Yl(c,"",u),Wl(c,eu,u),Yl(u,"\r"),Yl(u,"\n"),Wl(u,eu,u),Yl(u,"",u);const d=Wl(n,Zc,Yc,{[Il]:!0});Yl(d,"#"),Wl(d,Zc,d),Yl(d,"ï¸",d);const p=Yl(d,"â");Yl(p,"#"),Wl(p,Zc,d);const h=[[Jc,a],[Qc,o]],f=[[Jc,null],[Xc,s],[Qc,i]];for(let e=0;e<tu.length;e++)ou(n,tu[e],Ql,Gl,h);for(let e=0;e<nu.length;e++)ou(n,nu[e],ec,Kl,f);Fl(Ql,{tld:!0,ascii:!0},t),Fl(ec,{utld:!0,alpha:!0},t),ou(n,"file",tc,Gl,h),ou(n,"mailto",tc,Gl,h),ou(n,"http",nc,Gl,h),ou(n,"https",nc,Gl,h),ou(n,"ftp",nc,Gl,h),ou(n,"ftps",nc,Gl,h),Fl(tc,{scheme:!0,ascii:!0},t),Fl(nc,{slashscheme:!0,ascii:!0},t),e=e.sort(((e,t)=>e[0]>t[0]?1:-1));for(let t=0;t<e.length;t++){const r=e[t][0],o=e[t][1]?{[jl]:!0}:{[Rl]:!0};r.indexOf("-")>=0?o[Ll]=!0:Jc.test(r)?Qc.test(r)?o[Ol]=!0:o[Tl]=!0:o[Ml]=!0,ql(n,r,r,o)}return ql(n,"localhost",Zl,{ascii:!0}),n.jd=new Hl(Gc),{start:n,tokens:Dl({groups:t},Kc)}}(bu.customSchemes);for(let e=0;e<bu.tokenQueue.length;e++)bu.tokenQueue[e][1]({scanner:bu.scanner});bu.parser=function({groups:e}){const t=e.domain.concat([kc,Ec,Cc,Nc,Sc,Vc,Mc,Bc,Pc,rc,Lc,Ic,jc,Rc,Uc,Gc,Wc,qc]),n=[Ac,Dc,Tc,Oc,Lc,$c,zc,Hc,pc,hc,ac,sc,cc,lc,uc,dc,fc,mc,gc,vc,yc,bc,xc,wc],r=[kc,_c,Ec,Nc,Sc,Vc,Mc,Bc,Pc,ac,sc,Lc,Ic,jc,Rc,$c,Uc,Gc,Wc,qc],o=mu(),i=Yl(o,Wc);Ul(i,r,i),Ul(i,e.domain,i);const a=mu(),s=mu(),l=mu();Ul(o,e.domain,a),Ul(o,e.scheme,s),Ul(o,e.slashscheme,l),Ul(a,r,i),Ul(a,e.domain,a);const c=Yl(a,Cc);Yl(i,Cc,c),Yl(s,Cc,c),Yl(l,Cc,c);const u=Yl(i,Tc);Ul(u,r,i),Ul(u,e.domain,i);const d=mu();Ul(c,e.domain,d),Ul(d,e.domain,d);const p=Yl(d,Tc);Ul(p,e.domain,d);const h=mu(du);Ul(p,e.tld,h),Ul(p,e.utld,h),Yl(c,Zl,h);const f=Yl(d,Pc);Yl(f,Pc,f),Ul(f,e.domain,d),Ul(h,e.domain,d),Yl(h,Tc,p),Yl(h,Pc,f);const m=Yl(h,Ac);Ul(m,e.numeric,du);const g=Yl(a,Pc),v=Yl(a,Tc);Yl(g,Pc,g),Ul(g,e.domain,a),Ul(v,r,i),Ul(v,e.domain,a);const y=mu(fu);Ul(v,e.tld,y),Ul(v,e.utld,y),Ul(y,e.domain,a),Ul(y,r,i),Yl(y,Tc,v),Yl(y,Pc,g),Yl(y,Cc,c);const b=Yl(y,Ac),x=mu(fu);Ul(b,e.numeric,x);const w=mu(fu),k=mu();Ul(w,t,w),Ul(w,n,k),Ul(k,t,w),Ul(k,n,k),Yl(y,Uc,w),Yl(x,Uc,w);const _=Yl(s,Ac),E=Yl(l,Ac),C=Yl(E,Uc),N=Yl(C,Uc);Ul(s,e.domain,a),Yl(s,Tc,v),Yl(s,Pc,g),Ul(l,e.domain,a),Yl(l,Tc,v),Yl(l,Pc,g),Ul(_,e.domain,w),Yl(_,Uc,w),Yl(_,$c,w),Ul(N,e.domain,w),Ul(N,t,w),Yl(N,Uc,w);const S=[[ac,sc],[lc,cc],[uc,dc],[pc,hc],[fc,mc],[gc,vc],[yc,bc],[xc,wc]];for(let e=0;e<S.length;e++){const[r,o]=S[e],i=Yl(w,r);Yl(k,r,i),Yl(i,o,w);const a=mu(fu);Ul(i,t,a);const s=mu();Ul(i,n),Ul(a,t,a),Ul(a,n,s),Ul(s,t,a),Ul(s,n,s),Yl(a,o,w),Yl(s,o,w)}return Yl(o,Zl,y),Yl(o,ic,hu),{start:o,tokens:Kc}}(bu.scanner.tokens);for(let e=0;e<bu.pluginQueue.length;e++)bu.pluginQueue[e][1]({scanner:bu.scanner,parser:bu.parser});return bu.initialized=!0,bu}function ku(e){return bu.initialized||wu(),function(e,t,n){let r=n.length,o=0,i=[],a=[];for(;o<r;){let s=e,l=null,c=null,u=0,d=null,p=-1;for(;o<r&&!(l=s.go(n[o].t));)a.push(n[o++]);for(;o<r&&(c=l||s.go(n[o].t));)l=null,s=c,s.accepts()?(p=0,d=s):p>=0&&p++,o++,u++;if(p<0)o-=u,o<r&&(a.push(n[o]),o++);else{a.length>0&&(i.push(gu(pu,t,a)),a=[]),o-=p,u-=p;const e=d.t,r=n.slice(o-u,o);i.push(gu(e,t,r))}}return a.length>0&&i.push(gu(pu,t,a)),i}(bu.parser.start,e,ru(bu.scanner.start,e))}function _u(e,t=null,n=null){if(t&&"object"==typeof t){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}const r=new su(n),o=ku(e),i=[];for(let e=0;e<o.length;e++){const n=o[e];!n.isLink||t&&n.t!==t||!r.check(n)||i.push(n.toFormattedObject(r))}return i}function Eu(e){return new Ht({key:new qt("autolink"),appendTransaction:(t,n,r)=>{const o=t.some((e=>e.docChanged))&&!n.doc.eq(r.doc),i=t.some((e=>e.getMeta("preventAutolink")));if(!o||i)return;const{tr:a}=r,s=function(e,t){const n=new kt(e);return t.forEach((e=>{e.steps.forEach((e=>{n.step(e)}))})),n}(n.doc,[...t]),l=function(e){const{mapping:t,steps:n}=e,r=[];return t.maps.forEach(((e,o)=>{const i=[];if(e.ranges.length)e.forEach(((e,t)=>{i.push({from:e,to:t})}));else{const{from:e,to:t}=n[o];if(void 0===e||void 0===t)return;i.push({from:e,to:t})}i.forEach((({from:e,to:n})=>{const i=t.slice(o).map(e,-1),a=t.slice(o).map(n),s=t.invert().map(i,-1),l=t.invert().map(a);r.push({oldRange:{from:s,to:l},newRange:{from:i,to:a}})}))})),Xa(r)}(s);return l.forEach((({newRange:t})=>{const n=function(e,t,n){const r=[];
2return e.nodesBetween(t.from,t.to,((e,t)=>{n(e)&&r.push({node:e,pos:t})})),r}(r.doc,t,(e=>e.isTextblock));let o,i;if(n.length>1?(o=n[0],i=r.doc.textBetween(o.pos,o.pos+o.node.nodeSize,void 0," ")):n.length&&r.doc.textBetween(t.from,t.to," "," ").endsWith(" ")&&(o=n[0],i=r.doc.textBetween(o.pos,t.to,void 0," ")),o&&i){const t=i.split(" ").filter((e=>""!==e));if(t.length<=0)return!1;const n=t[t.length-1],l=o.pos+i.lastIndexOf(n);if(!n)return!1;const c=ku(n).map((t=>t.toObject(e.defaultProtocol)));if(!(1===(s=c).length?s[0].isLink:3===s.length&&s[1].isLink&&["()","[]"].includes(s[0].value+s[2].value)))return!1;c.filter((e=>e.isLink)).map((e=>({...e,from:l+e.start+1,to:l+e.end+1}))).filter((e=>!r.schema.marks.code||!r.doc.rangeHasMark(e.from,e.to,r.schema.marks.code))).filter((t=>e.validate(t.value))).filter((t=>e.shouldAutoLink(t.value))).forEach((t=>{Za(t.from,t.to,r.doc).some((t=>t.mark.type===e.type))||a.addMark(t.from,t.to,e.type.create({href:t.href}))}))}var s})),a.steps.length?a:void 0}})}ku.scan=ru;const Cu=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function Nu(e,t){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach((e=>{const t="string"==typeof e?e:e.scheme;t&&n.push(t)})),!e||e.replace(Cu,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const Su=ba.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach((e=>{"string"!=typeof e?xu(e.scheme,e.optionalSlashes):xu(e)}))},onDestroy(){Hl.groups={},bu.scanner=null,bu.parser=null,bu.tokenQueue=[],bu.pluginQueue=[],bu.customSchemes=[],bu.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!Nu(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>!!e}),addAttributes(){return{href:{default:null,parseHTML:e=>e.getAttribute("href")},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href");return!(!t||!this.options.isAllowedUri(t,{defaultValidate:e=>!!Nu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}))&&null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!Nu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",ra(this.options.HTMLAttributes,e),0]:["a",ra(this.options.HTMLAttributes,{...e,href:""}),0]},addCommands(){return{setLink:e=>({chain:t})=>{const{href:n}=e;return!!this.options.isAllowedUri(n,{defaultValidate:e=>!!Nu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&t().setMark(this.name,e).setMeta("preventAutolink",!0).run()},toggleLink:e=>({chain:t})=>{const{href:n}=e;return!!this.options.isAllowedUri(n,{defaultValidate:e=>!!Nu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Es({find:e=>{const t=[];if(e){const{protocols:n,defaultProtocol:r}=this.options,o=_u(e).filter((e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!Nu(e,n),protocols:n,defaultProtocol:r})));o.length&&o.forEach((e=>t.push({text:e.value,data:{href:e.href},index:e.start})))}return t}
vendor: 6,951 bytes, line 2
2,type:this.type,getAttributes:e=>{var t;return{href:null===(t=e.data)||void 0===t?void 0:t.href}}})]},addProseMirrorPlugins(){const e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(Eu({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!Nu(e,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),!0===this.options.openOnClick&&e.push(function(e){return new Ht({key:new qt("handleClickLink"),props:{handleClick:(t,n,r)=>{var o,i;if(0!==r.button)return!1;if(!t.editable)return!1;let a=r.target;const s=[];for(;"DIV"!==a.nodeName;)s.push(a),a=a.parentNode;if(!s.find((e=>"A"===e.nodeName)))return!1;const l=Ja(t.state,e.type.name),c=r.target,u=null!==(o=null==c?void 0:c.href)&&void 0!==o?o:l.href,d=null!==(i=null==c?void 0:c.target)&&void 0!==i?i:l.target;return!(!c||!u||(window.open(u,d),0))}}})}({type:this.type})),this.options.linkOnPaste&&e.push(function(e){return new Ht({key:new qt("handlePasteLink"),props:{handlePaste:(t,n,r)=>{const{state:o}=t,{selection:i}=o,{empty:a}=i;if(a)return!1;let s="";r.content.forEach((e=>{s+=e.textContent}));const l=_u(s,{defaultProtocol:e.defaultProtocol}).find((e=>e.isLink&&e.value===s));return!(!s||!l)&&e.editor.commands.setMark(e.type,{href:l.href})}}})}({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),e}}),Vu=/^\s*>\s$/,Au=_s.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return["blockquote",ra(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[ks({find:Vu,type:this.type})]}}),Du=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,Mu=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,Tu=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,Bu=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,Ou=ba.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return["strong",ra(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[bs({find:Du,type:this.type}),bs({find:Tu,type:this.type})]},addPasteRules(){return[Es({find:Mu,type:this.type}),Es({find:Bu,type:this.type})]}}),Pu="textStyle",Lu=/^\s*([-+*])\s$/,Iu=_s.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",ra(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(Pu)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=ks({find:Lu,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=ks({find:Lu,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Pu),editor:this.editor})),[e]}}),ju=/(^|[^`])`([^`]+)`(?!`)/,Ru=/(^|[^`])`([^`]+)`(?!`)/g,$u=ba.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:e}){return["code",ra(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[bs({find:ju,type:this.type})]},addPasteRules(){return[Es({find:Ru,type:this.type})]}}),zu=/^```([a-z]+)?[\s\n]$/,Fu=/^~~~([a-z]+)?[\s\n]$/,Hu=_s.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options,r=[...(null===(t=e.firstElementChild)||void 0===t?void 0:t.classList)||[]].filter((e=>e.startsWith(n))).map((e=>e.replace(n,"")))[0];return r||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",ra(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=1===t.pos;return!(!e||t.parent.type.name!==this.name)&&(!(!n&&t.parent.textContent.length)&&this.editor.commands.clearNodes())},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:n}=t,{$from:r,empty:o}=n;if(!o||r.parent.type!==this.type)return!1;const i=r.parentOffset===r.parent.nodeSize-2,a=r.parent.textContent.endsWith("\n\n");return!(!i||!a)&&e.chain().command((({tr:e})=>(e.delete(r.pos-2,r.pos),!0))).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:n,doc:r}=t,{$from:o,empty:i}=n;if(!i||o.parent.type!==this.type)return!1;if(!(o.parentOffset===o.parent.nodeSize-2))return!1;const a=o.after();if(void 0===a)return!1;return r.nodeAt(a)?e.commands.command((({tr:e})=>(e.setSelection(Et.near(r.resolve(a))),!0))):e.commands.exitCode()}}},addInputRules(){return[ws({find:zu,type:this.type,getAttributes:e=>({language:e[1]})}),ws({find:Fu,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new Ht({key:new qt("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>
2{if(!t.clipboardData)return!1;if(this.editor.isActive(this.type.name))return!1;const n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,i=null==o?void 0:o.mode;if(!n||!i)return!1;const{tr:a,schema:s}=e.state,l=s.text(n.replace(/\r\n?/g,"\n"));return a.replaceSelectionWith(this.type.create({language:i},l)),a.selection.$from.parent.type!==this.type&&a.setSelection(Vt.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta("paste",!0),e.dispatch(a),!0}}})]}}),Uu=_s.create({name:"doc",topNode:!0,content:"block+"});function Wu(e={}){return new Ht({view:t=>new qu(t,e)})}class qu{constructor(e,t){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(n=t.width)&&void 0!==n?n:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map((t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}}))}destroy(){this.handlers.forEach((({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t)))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent;if(n){let n=t.nodeBefore,r=t.nodeAfter;if(n||r){let t=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0));if(t){let o=t.getBoundingClientRect(),i=n?o.bottom:o.top;n&&r&&(i=(i+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:o.left,right:o.right,top:i-this.width/2,bottom:i+this.width/2}}}}if(!e){let t=this.editorView.coordsAtPos(this.cursorPos);e={left:t.left-this.width/2,right:t.left+this.width/2,top:t.top,bottom:t.bottom}}let r,o,i=this.editorView.dom.offsetParent;if(this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),!i||i==document.body&&"static"==getComputedStyle(i).position)r=-pageXOffset,o=-pageYOffset;else{let e=i.getBoundingClientRect();r=e.left-i.scrollLeft,o=e.top-i.scrollTop}this.element.style.left=e.left-r+"px",this.element.style.top=e.top-o+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout((()=>this.setCursor(null)),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,o="function"==typeof r?r(this.editorView,t,e):r;if(t&&!o){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=lt(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}const Yu=Ca.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[Wu(this.options)]}});class Gu extends Et{constructor(e){super(e,e)}map(e,t){let n=e.resolve(t.map(this.head));return Gu.valid(n)?new Gu(n):Et.near(n)}content(){return B.empty}eq(e){return e instanceof Gu&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new Gu(e.resolve(t.pos))}getBookmark(){return new Ku(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!function(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(0!=n)for(let e=r.child(n-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;
vendor: 2,848 bytes, line 2
2if(e.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n!=r.childCount)for(let e=r.child(n);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(e))return!1;let n=t.type.spec.allowGapCursor;if(null!=n)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,t,n=!1){e:for(;;){if(!n&&Gu.valid(e))return e;let r=e.pos,o=null;for(let n=e.depth;;n--){let i=e.node(n);if(t>0?e.indexAfter(n)<i.childCount:e.index(n)>0){o=i.child(t>0?e.indexAfter(n):e.index(n)-1);break}if(0==n)return null;r+=t;let a=e.doc.resolve(r);if(Gu.valid(a))return a}for(;;){let i=t>0?o.firstChild:o.lastChild;if(!i){if(o.isAtom&&!o.isText&&!Dt.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*t),n=!1;continue e}break}o=i,r+=t;let a=e.doc.resolve(r);if(Gu.valid(a))return a}return null}}}Gu.prototype.visible=!1,Gu.findFrom=Gu.findGapCursorFrom,Et.jsonID("gapcursor",Gu);class Ku{constructor(e){this.pos=e}map(e){return new Ku(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return Gu.valid(t)?new Gu(t):Et.near(t)}}const Ju=bi({ArrowLeft:Xu("horiz",-1),ArrowRight:Xu("horiz",1),ArrowUp:Xu("vert",-1),ArrowDown:Xu("vert",1)});function Xu(e,t){const n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,o){let i=e.selection,a=t>0?i.$to:i.$from,s=i.empty;if(i instanceof Vt){if(!o.endOfTextblock(n)||0==a.depth)return!1;s=!1,a=e.doc.resolve(t>0?a.after():a.before())}let l=Gu.findGapCursorFrom(a,t,s);return!!l&&(r&&r(e.tr.setSelection(new Gu(l))),!0)}}function Zu(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!Gu.valid(r))return!1;let o=e.posAtCoords({left:n.clientX,top:n.clientY});return!(o&&o.inside>-1&&Dt.isSelectable(e.state.doc.nodeAt(o.inside)))&&(e.dispatch(e.state.tr.setSelection(new Gu(r))),!0)}function Qu(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof Gu))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let o=S.empty;for(let e=r.length-1;e>=0;e--)o=S.from(r[e].createAndFill(null,o));let i=e.state.tr.replace(n.pos,n.pos,new B(o,0,0));return i.setSelection(Vt.near(i.doc.resolve(n.pos+1))),e.dispatch(i),!1}function ed(e){if(!(e.selection instanceof Gu))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",Bo.create(e.doc,[Do.widget(e.selection.head,t,{key:"gapcursor"})])}const td=Ca.create({name:"gapCursor",addProseMirrorPlugins:()=>[new Ht({props:{decorations:ed,createSelectionBetween:(e,t,n)=>t.pos==n.pos&&Gu.valid(n)?new Gu(n):null,handleClick:Zu,handleKeyDown:Ju,handleDOMEvents:{beforeinput
2:Qu}}})],extendNodeSchema(e){var t;return{allowGapCursor:null!==(t=aa(Qi(e,"allowGapCursor",{name:e.name,options:e.options,storage:e.storage})))&&void 0!==t?t:null}}}),nd=_s.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",ra(this.options.HTMLAttributes,e)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command((()=>{const{selection:e,storedMarks:o}=n;if(e.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:a}=r.extensionManager,s=o||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command((({tr:e,dispatch:t})=>{if(t&&s&&i){const t=s.filter((e=>a.includes(e.type.name)));e.ensureMarks(t)}return!0})).run()}))])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),rd=_s.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map((e=>({tag:`h${e}`,attrs:{level:e}})))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,ra(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce(((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})})),{})},addInputRules(){return this.options.levels.map((e=>ws({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${e}}
2)\\s$`),type:this.type,getAttributes:{level:e}})))}});var od=200,id=function(){};id.prototype.append=function(e){return e.length?(e=id.from(e),!this.length&&e||e.length<od&&this.leafAppend(e)||this.length<od&&e.leafPrepend(this)||this.appendInner(e)):this},id.prototype.prepend=function(e){return e.length?id.from(e).append(this):this},id.prototype.appendInner=function(e){return new sd(this,e)},id.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?id.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},id.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},id.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},id.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach((function(t,n){return r.push(e(t,n))}),t,n),r},id.from=function(e){return e instanceof id?e:e&&e.length?new ad(e):id.empty};var ad=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var o=t;o<n;o++)if(!1===e(this.values[o],r+o))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var o=t-1;o>=n;o--)if(!1===e(this.values[o],r+o))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=od)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=od)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(id);id.empty=new ad([]);var sd=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var o=this.left.length;return!(t<o&&!1===this.left.forEachInner(e,t,Math.min(n,o),r))&&(!(n>o&&!1===this.right.forEachInner(e,Math.max(t-o,0),Math.min(this.length,n)-o,r+o))&&void 0)},t.prototype.forEachInvertedInner=function(e,t,n,r){var o=this.left.length;return!(t>o&&!1===this.right.forEachInvertedInner(e,t-o,Math.max(n,o)-o,r+o))&&(!(n<o&&!1===this.left.forEachInvertedInner(e,Math.min(t,o),n,r))&&void 0)},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(id);const ld=id;class cd{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(0==this.eventCount)return null;let n,r,o=this.items.length;for(;;o--){if(this.items.get(o-1).selection){--o;break}}t&&(n=this.remapping(o,this.items.length),r=n.maps.length);let i,a,s=e.tr,l=[],c=[];return this.items.forEach(((e,t)=>{if(!e.step)return n||(n=this.remapping(o,t+1),r=n.maps.length),r--,void c.push(e);if(n){c.push(new ud(e.map));let t,o=e.step.map(n.slice(r));o&&s.maybeStep(o).doc&&(t=s.mapping.maps[s.mapping.maps.length-1],l.push(new ud(t,void 0,void 0,l.length+c.length))),r--,t&&n.appendMap(t,r)}else s.maybeStep(e.step);return e.selection?(i=n?e.selection.map(n.slice(r)):e.selection,a=new cd(this.items.slice(0,o).append(c.reverse().concat(l)),this.eventCount-1),!1):void 0}),this.items.length,0),{remaining:a,transform:s,selection:i}}addTransform(e,t,n,r){let o=[],i=this.eventCount,a=this.items,s=!r&&a.length?a.get(a.length-1):null;for(let n=0;n<e.steps.length;n++){let l,c=e.steps[n].invert(e.docs[n]),u=new ud(e.mapping.maps[n],c,t);(l=s&&s.merge(u))&&(u=l,n?o.pop():a=a.slice(0,a.length-1)),o.push(u),t&&(i++,t=void 0),r||(s=u)}let l=i-n.depth;return l>pd&&(a=function(e,t){let n;return e.forEach(((e,r)=>{if(e.selection&&0==t--)return n=r,!1})),e.slice(n)}(a,l),i-=l),new cd(a.append(o),i)}remapping(e,t){let n=new Re;
2return this.items.forEach(((t,r)=>{let o=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,o)}),e,t),n}addMaps(e){return 0==this.eventCount?this:new cd(this.items.append(e.map((e=>new ud(e)))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),o=e.mapping,i=e.steps.length,a=this.eventCount;this.items.forEach((e=>{e.selection&&a--}),r);let s=t;this.items.forEach((t=>{let r=o.getMirror(--s);if(null==r)return;i=Math.min(i,r);let l=o.maps[r];if(t.step){let i=e.steps[r].invert(e.docs[r]),c=t.selection&&t.selection.map(o.slice(s+1,r));c&&a++,n.push(new ud(l,i,c))}else n.push(new ud(l))}),r);let l=[];for(let e=t;e<i;e++)l.push(new ud(o.maps[e]));let c=this.items.slice(0,r).append(l).append(n),u=new cd(c,a);return u.emptyItemCount()>500&&(u=u.compress(this.items.length-n.length)),u}emptyItemCount(){let e=0;return this.items.forEach((t=>{t.step||e++})),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,r=[],o=0;return this.items.forEach(((i,a)=>
vendor: 8,797 bytes, line 2
2{if(a>=e)r.push(i),i.selection&&o++;else if(i.step){let e=i.step.map(t.slice(n)),a=e&&e.getMap();if(n--,a&&t.appendMap(a,n),e){let s=i.selection&&i.selection.map(t.slice(n));s&&o++;let l,c=new ud(a.invert(),e,s),u=r.length-1;(l=r.length&&r[u].merge(c))?r[u]=l:r.push(c)}}else i.map&&n--}),this.items.length,0),new cd(ld.from(r.reverse()),o)}}cd.empty=new cd(ld.empty,0);class ud{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new ud(t.getMap().invert(),t,this.selection)}}}class dd{constructor(e,t,n,r,o){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=o}}const pd=20;function hd(e){let t=[];for(let n=e.length-1;n>=0&&0==t.length;n--)e[n].forEach(((e,n,r,o)=>t.push(r,o)));return t}function fd(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let o=t.map(e[r],1),i=t.map(e[r+1],-1);o<=i&&n.push(o,i)}return n}let md=!1,gd=null;function vd(e){let t=e.plugins;if(gd!=t){md=!1,gd=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){md=!0;break}}return md}const yd=new qt("history"),bd=new qt("closeHistory");function xd(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new Ht({key:yd,state:{init:()=>new dd(cd.empty,cd.empty,null,0,-1),apply:(t,n,r)=>function(e,t,n,r){let o,i=n.getMeta(yd);if(i)return i.historyState;n.getMeta(bd)&&(e=new dd(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(a&&a.getMeta(yd))return a.getMeta(yd).redo?new dd(e.done.addTransform(n,void 0,r,vd(t)),e.undone,hd(n.mapping.maps),e.prevTime,e.prevComposition):new dd(e.done,e.undone.addTransform(n,void 0,r,vd(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||a&&!1===a.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new dd(e.done.rebased(n,o),e.undone.rebased(n,o),fd(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new dd(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),fd(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let o=n.getMeta("composition"),i=0==e.prevTime||!a&&e.prevComposition!=o&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach(((e,r)=>{for(let o=0;o<t.length;o+=2)e<=t[o+1]&&r>=t[o]&&(n=!0)})),n}(n,e.prevRanges)),s=a?fd(e.prevRanges,n.mapping):hd(n.mapping.maps);return new dd(e.done.addTransform(n,i?t.selection.getBookmark():void 0,r,vd(t)),cd.empty,s,n.time,null==o?e.prevComposition:o)}}(n,r,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r="historyUndo"==n?kd:"historyRedo"==n?_d:null;return!!r&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}function wd(e,t){return(n,r)=>{let o=yd.getState(n);if(!o||0==(e?o.undone:o.done).eventCount)return!1;if(r){let i=function(e,t,n){let r=vd(t),o=yd.get(t).spec.config,i=(n?e.undone:e.done).popEvent(t,r);if(!i)return null;let a=i.selection.resolve(i.transform.doc),s=(n?e.done:e.undone).addTransform(i.transform,t.selection.getBookmark(),o,r),l=new dd(n?s:i.remaining,n?i.remaining:s,null,0,-1);return i.transform.setSelection(a).setMeta(yd,{redo:n,historyState:l})}(o,n,e);i&&r(t?i.scrollIntoView():i)}return!0}}const kd=wd(!1,!0),_d=wd(!0,!0);wd(!1,!1),wd(!0,!1);const Ed=Ca.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>kd(e,t),redo:()=>({state:e,dispatch:t})=>_d(e,t)}),addProseMirrorPlugins(){return[xd(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Ñ":()=>this.editor.commands.undo(),"Shift-Mod-Ñ":()=>this.editor.commands.redo()}}}),Cd=_s.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",ra(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{const{selection:n}=t,{$from:r,$to:o}=n,i=e();return 0===r.parentOffset?i.insertContentAt({from:Math.max(r.pos-1,0),to:o.pos},{type:this.name}):rs(n)?i.insertContentAt(o.pos,{type:this.name}):i.insertContent({type:this.name}),i.command((({tr:e,dispatch:t})=>{var n;if(t){const{$to:t}=e.selection,r=t.end();if(t.nodeAfter)t.nodeAfter.isTextblock?e.setSelection(Vt.create(e.doc,t.pos+1)):t.nodeAfter.isBlock?e.setSelection(Dt.create(e.doc,t.pos)):e.setSelection(Vt.create(e.doc,t.pos));else{const o=null===(n=t.parent.type.contentMatch.defaultType)||void 0===n?void 0:n.create();o&&(e.insert(r,o),e.setSelection(Vt.create(e.doc,r+1)))}e.scrollIntoView()}return!0})).run()}}},addInputRules(){return[xs({find:/^(?:---|â-|___\s|\*\*\*\s)$/,type:this.type})]}}),Nd=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,Sd=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,Vd=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,Ad=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,Dd=ba.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",ra(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[bs({find:Nd,type:this.type}),bs({find:Vd,type:this.type})]},addPasteRules(){return[Es({find:Sd,type:this.type}),Es({find:Ad,type:this.type})]}}),Md=_s.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",ra(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Td="textStyle",Bd=/^(\d+)\.\s$/,Od=_s.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:void 0,parseHTML:e=>e.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){const{start:t,...n}=e;return 1===t?["ol",ra(this.options.HTMLAttributes,n),0]:["ol",ra(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(Td)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=ks({find:Bd,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=ks({find:Bd,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Td)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),Pd=_s.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",ra(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Ld=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,Id=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,jd=ba.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",ra(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}}
2,addInputRules(){return[bs({find:Ld,type:this.type})]},addPasteRules(){return[Es({find:Id,type:this.type})]}}),Rd=_s.create({name:"text",group:"inline"}),$d=Ca.create({name:"starterKit",addExtensions(){var e,t,n,r,o,i,a,s,l,c,u,d,p,h,f,m,g,v;const y=[];return!1!==this.options.bold&&y.push(Ou.configure(null===(e=this.options)||void 0===e?void 0:e.bold)),!1!==this.options.blockquote&&y.push(Au.configure(null===(t=this.options)||void 0===t?void 0:t.blockquote)),!1!==this.options.bulletList&&y.push(Iu.configure(null===(n=this.options)||void 0===n?void 0:n.bulletList)),!1!==this.options.code&&y.push($u.configure(null===(r=this.options)||void 0===r?void 0:r.code)),!1!==this.options.codeBlock&&y.push(Hu.configure(null===(o=this.options)||void 0===o?void 0:o.codeBlock)),!1!==this.options.document&&y.push(Uu.configure(null===(i=this.options)||void 0===i?void 0:i.document)),!1!==this.options.dropcursor&&y.push(Yu.configure(null===(a=this.options)||void 0===a?void 0:a.dropcursor)),!1!==this.options.gapcursor&&y.push(td.configure(null===(s=this.options)||void 0===s?void 0:s.gapcursor)),!1!==this.options.hardBreak&&y.push(nd.configure(null===(l=this.options)||void 0===l?void 0:l.hardBreak)),!1!==this.options.heading&&y.push(rd.configure(null===(c=this.options)||void 0===c?void 0:c.heading)),!1!==this.options.history&&y.push(Ed.configure(null===(u=this.options)||void 0===u?void 0:u.history)),!1!==this.options.horizontalRule&&y.push(Cd.configure(null===(d=this.options)||void 0===d?void 0:d.horizontalRule)),!1!==this.options.italic&&y.push(Dd.configure(null===(p=this.options)||void 0===p?void 0:p.italic)),!1!==this.options.listItem&&y.push(Md.configure(null===(h=this.options)||void 0===h?void 0:h.listItem)),!1!==this.options.orderedList&&y.push(Od.configure(null===(f=this.options)||void 0===f?void 0:f.orderedList)),!1!==this.options.paragraph&&y.push(Pd.configure(null===(m=this.options)||void 0===m?void 0:m.paragraph)),!1!==this.options.strike&&y.push(jd.configure(null===(g=this.options)||void 0===g?void 0:g.strike)),!1!==this.options.text&&y.push(Rd.configure(null===(v=this.options)||void 0===v?void 0:v.text)),y}});var zd=n(1857);const Fd=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,Hd=_s.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",ra(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}}
2,addInputRules(){return[xs({find:Fd,type:this.type,getAttributes:e=>{const[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}}),Ud=(0,k.pM)({components:{EditorContent:Nl,JetDropdown:zd.A},props:{modelValue:{type:String,default:""}},data:function(){return{editor:null}},watch:{modelValue:function(e){this.editor.getHTML()===e||this.editor.commands.setContent(e,!1)}},mounted:function(){var e=this;Hd.configure({inline:!0,allowBase64:!0}),this.editor=new Cl({extensions:[$d,Al.configure({types:["heading","paragraph"]}),Su.configure({protocols:["ftp","mailto","tel"],HTMLAttributes:{class:"font-bold underline cursor-pointer"},openOnClick:!1}),Dd,Sl,Vl,Hd],content:this.modelValue,onUpdate:function(){e.$emit("update:modelValue",e.editor.getHTML())}}),this.setupPasteEvent()},methods:{setLink:function(){var e=this.editor.getAttributes("link").href,t=window.prompt("URL",e);null!==t&&(""!==t?this.editor.chain().focus().extendMarkRange("link").setLink({href:t}).run():this.editor.chain().focus().extendMarkRange("link").unsetLink().run())},handlePasteEvent:function(){var e=this,t=(event.clipboardData||event.originalEvent.clipboardData).items,n=null;console.log(t);for(var r=0;r<t.length;r++)0===t[r].type.indexOf("image")&&(n=t[r].getAsFile());if(console.log(n),null!==n){var o=new FileReader;o.readAsDataURL(n),o.onload=function(t){var r=o.result;e.editor.commands.setImage({src:"data:"+n.type+";"+r}),console.log(e.editor)},console.log(o)}},setupPasteEvent:function(){var e=this;this.$nextTick((function(){e.$refs.editorContent.$el.addEventListener("paste",e.handlePasteEvent)}))}},beforeUnmount:function(){this.$refs.editorContent.$el.removeEventListener("paste",this.handlePasteEvent),this.editor.destroy()}});var Wd=n(5072),qd=n.n(Wd),Yd=n(4260),Gd={insert:"head",singleton:!1};qd()(Yd.A,Gd);Yd.A.locals;const Kd=(0,n(6262).A)(Ud,[["render",function(e,t,n,k,_,E){var C=(0,r.resolveComponent)("jet-dropdown"),N=(0,r.resolveComponent)("editor-content");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[e.editor?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createVNode)(C,{contentClasses:"bg-white",align:"left"},{trigger:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",{class:"cursor-pointer py-1 px-2 rounded-full hover:bg-slate-200 transition-colors",title:e.__("Text")},t[16]||(t[16]=[(0,r.createElementVNode)("svg",{class:"w-4 h-4",viewBox:"0 0 24 24"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M9 4v3h5v12h3V7h5V4H9zm-6 8h3v7h3v-7h3V9H3v3z"})],-1)]),8,i)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("button",{class:(0,r.normalizeClass)(["text-left py-2 px-4 inline-flex items-center",{"is-active":e.editor.isActive("heading",{level:3})}]),onClick:t[0]||(t[0]=function(t){return e.editor.chain().focus().toggleHeading({level:3}).run()})},[((0,r.openBlock)(),(0,r.createElementBlock)("svg",{title:e.__("Titre"),class:"w-4 h-4 mr-2",viewBox:"0 0 24 24"},t[17]||(t[17]=[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M5 4v3h5.5v12h3V7H19V4z"},null,-1)]),8,s)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Titre")),1)],2),(0,r.createElementVNode)("button",{class:(0,r.normalizeClass)(["text-left py-2 px-4 inline-flex items-center border-b border-gray-100",{"is-active":e.editor.isActive("paragraph")}]),onClick:t[1]||(t[1]=function(t){return e.editor.chain().focus().setParagraph().run()})},[((0,r.openBlock)(),(0,r.createElementBlock)("svg",{title:e.__("Paragraph"),class:"w-4 h-4 mr-2",viewBox:"0 0 24 24"},t[18]||(t[18]=[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M3 18h12v-2H3v2zM3 6v2h18V6H3zm0 7h18v-2H3v2z"},null,-1)]),8,l)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Paragraph")),1)],2)])]})),_:1}),(0,r.createElementVNode)("button",{onClick:t[2]||(t[2]=function(t){return e.editor.chain().focus().toggleBold().run()}),class:(0,r.normalizeClass)([{"is-active":e.editor.isActive("bold")},"py-1 px-2 rounded-full hover:bg-slate-200 transition-colors"]),title:e.__("Fett")},t[19]||(t[19]=[(0,r.createElementVNode)("svg",{class:"w-4 h-4",viewBox:"0 0 24 24"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79c0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79c0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z"})],-1)]),10,c),(0,r.createElementVNode)("button",{onClick:t[3]||(t[3]=function(t){return e.editor.chain().focus().toggleItalic().run()}),class:(0,r.normalizeClass)([{"is-active":e.editor.isActive("italic")},"py-1 px-2 rounded-full hover:bg-slate-200 transition-colors"]),title:e.__("Fett")},t[20]||(t[20]=[(0,r.createElementVNode)("svg",{class:"w-4 h-4",viewBox:"0 0 24 24"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M11.986 17.506 14.295 6.683c.153-.893.369-1.065 2.0205-1.211l.165-.78H10.8165l-.165.78c1.5905.144 1.692.318 1.507 1.211l-2.5265 10.823c-.153.893-.369 1.065-2.0205 1.211l-.165.78h5.661l.165-.78c-1.5905-.144-1.692-.318-1.507-1.211z"})],-1)]),10,u),(0,r.createElementVNode)("button",{onClick:t[4]||(t[4]=function(t){return e.editor.chain().focus().toggleBulletList().run()}),class:(0,r.normalizeClass)([{"is-active":e.editor.isActive("bulletList")},"py-1 px-2 rounded-full hover:bg-slate-200 transition-colors"]),title:e.__("Liste")},t[21]||(t[21]=[(0,r.createElementVNode)("svg",{class:"w-4 h-4",viewBox:"0 0 24 24"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5s1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5S5.5 6.83 5.5 6S4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5s1.5-.68 1.5-1.5s-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"})],-1)]),10,d),(0,r.createElementVNode)("button",{onClick:t[5]||(t[5]=function(t){return e.editor.chain().focus().toggleOrderedList().run()}),class:(0,r.normalizeClass)([{"is-active":e.editor.isActive("orderedList")},"py-1 px-2 rounded-full hover:bg-slate-200 transition-colors"]),title:e.__("Aufzählung")},t[22]||(t[22]=[(0,r.createElementVNode)("svg",{class:"w-4 h-4",viewBox:"0 0 24 24"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"})],-1)]),10,p),(0,r.createElementVNode)("button",{onClick:t[6]||(t[6]=function(t){return e.editor.chain().focus().und
2o().run()}),class:"py-1 px-2 rounded-full hover:bg-slate-200 transition-colors",title:e.__("Rückgängig")},t[23]||(t[23]=[(0,r.createElementVNode)("svg",{class:"w-4 h-4",viewBox:"0 0 24 24"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88c3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"})],-1)]),8,h),(0,r.createElementVNode)("button",{onClick:t[7]||(t[7]=function(t){return e.editor.chain().focus().redo().run()}),title:e.__("Wiederholen"),class:"py-1 px-2 rounded-full hover:bg-slate-200 transition-colors"},t[24]||(t[24]=[(0,r.createElementVNode)("svg",{class:"w-4 h-4",viewBox:"0 0 24 24"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 0 1 7.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"})],-1)]),8,f),(0,r.createElementVNode)("button",{onClick:t[8]||(t[8]=function(t){return e.editor.chain().focus().setTextAlign("left").run()}),class:(0,r.normalizeClass)({"is-active":e.editor.isActive({textAlign:"left"})}),title:e.__("Aligner à gauche")},t[25]||(t[25]=[(0,r.createElementVNode)("svg",{class:"w-4 h-4",viewBox:"0 0 24 24"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z"})],-1)]),10,m),(0,r.createElementVNode)("button",{onClick:t[9]||(t[9]=function(t){return e.editor.chain().focus().setTextAlign("center").run()}),class:(0,r.normalizeClass)({"is-active":e.editor.isActive({textAlign:"center"})}),title:e.__("Centrer")},t[26]||(t[26]=[(0,r.createElementVNode)("svg",{class:"w-4 h-4",viewBox:"0 0 24 24"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z"})],-1)]),10,g),(0,r.createElementVNode)("button",{onClick:t[10]||(t[10]=function(t){return e.editor.chain().focus().setTextAlign("right").run()}),class:(0,r.normalizeClass)({"is-active":e.editor.isActive({textAlign:"right"})}),title:e.__("Aligner à droite")},t[27]||(t[27]=[(0,r.createElementVNode)("svg",{class:"w-4 h-4",viewBox:"0 0 24 24"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z"})],-1)]),10,v),(0,r.createElementVNode)("button",{onClick:t[11]||(t[11]=function(t){return e.editor.chain().focus().setTextAlign("justify").run()}),class:(0,r.normalizeClass)({"is-active":e.editor.isActive({textAlign:"justify"})}),title:e.__("Justifier")},t[28]||(t[28]=[(0,r.createElementVNode)("svg",{class:"w-4 h-4",viewBox:"0 0 24 24"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z"})],-1)]),10,y),(0,r.createElementVNode)("input",{class:"w-8 rounded-lg",type:"color",onInput:t[12]||(t[12]=function(t){return e.editor.chain().focus().setColor(t.target.value).run()}),value:e.editor.getAttributes("textStyle").color},null,40,b),(0,r.createElementVNode)("button",{onClick:t[13]||(t[13]=function(t){return e.editor.chain().focus().unsetColor().run()})},t[29]||(t[29]=[(0,r.createElementVNode)("svg",{class:"w-4 h-4",viewBox:"0 0 24 24"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M18 14c0-4-6-10.8-6-10.8s-1.33 1.51-2.73 3.52l8.59 8.59c.09-.42.14-.86.14-1.31zm-.88 3.12L12.5 12.5L5.27 5.27L4 6.55l3.32 3.32C6.55 11.32 6 12.79 6 14c0 3.31 2.69 6 6 6c1.52 0 2.9-.57 3.96-1.5l2.63 2.63l1.27-1.27l-2.74-2.74z"})],-1)])),(0,r.createElementVNode)("button",{onClick:t[14]||(t[14]=function(){return e.setLink&&e.setLink.apply(e,arguments)}),class:(0,r.normalizeClass)({"is-active":e.editor.isActive("link")}),title:e.__("Ajouter un lien")},t[30]||(t[30]=[(0,r.createElementVNode)("svg",{class:"w-4 h-4",viewBox:"0 0 24 24"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5zm-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-2zm-3-4h8v2H8z"})],-1)]),10,x),(0,r.createElementVNode)("button",{onClick:t[15]||(t[15]=function(t){return e.editor.chain().focus().unsetLink().run()}),disabled:!e.editor.isActive("link"),title:e.__("Supprimer le lien")},t[31]||(t[31]=[(0,r.createElementVNode)("svg",{class:"w-4 h-4",viewBox:"0 0 24 24"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1c0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5zm-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11A4.991 4.991 0 0 0 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1c0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74L3.27 3L2 4.27z"})],-1)]),8,w)])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(N,{ref:"editorContent",class:"content-editor prose",editor:e.editor},null,8,["editor"])],64)}]])},6782:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(6301),o={class:"flex flex-col h-full z-10 overflow-hidden"},i={class:"day-label text-sm text-gray-900"},a={class:"flex-grow overflow-y-auto overflow-x-auto"};var s=n(4209);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(){c=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),s=new T(r||[]);return o(a,"_invoke",{value:V(e,n,s)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var f="suspendedStart",m="suspendedYield",g="executing",v="completed",y={};function b(){}function x(){}function w(){}var k={};d(k,a,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(B([])));E&&E!==n&&r.call(E,a)&&(k=E);
vendor: 5,157 bytes, line 2
2var C=w.prototype=b.prototype=Object.create(k);function N(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,s){var c=h(e[o],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==l(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function V(t,n,r){var o=f;return function(i,a){if(o===g)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=h(t,n,r);if("normal"===c.type){if(o=r.done?v:m,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=v,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function B(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(l(t)+" is not iterable")}return x.prototype=w,o(C,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:x,configurable:!0}),x.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},N(S.prototype),d(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},N(C),d(C,u,"Generator"),d(C,a,(function(){return this})),d(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=B,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];
2if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:B(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function u(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}const d={components:{Calendar:s.Vv,DatePicker:s.lr},props:{events:Object,routeName:{type:String,required:!0}},data:function(){var e=route().has("date")?new Date(route().params.date):new Date;return{firstLoad:!0,selectedDay:null,eventsListForToday:[],masks:{weekdays:"WWW"},currentYear:e.getFullYear(),currentMonth:e.getMonth()+1}},computed:{attributes:function(){return this.events.map((function(e){return{key:"event.".concat(e.id),customData:{id:e.id,slug:e.slug,title:e.title,class:"text-white",style:e.category.color,start:e.start_date,end:e.end_date,allDayEvent:e.all_day_event},dates:{start:e.start_date,end:e.end_date}}}))}},mounted:function(){this.asyncAction(),this.selectedDay=new Date},methods:{asyncAction:function(){var e,t=this;return(e=c().mark((function e(){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.$refs.calendar,!route().has("date")){e.next=5;break}return e.next=4,n.showPageRange(new Date(route().params.date));case 4:return e.abrupt("return",e.sent);case 5:return e.abrupt("return");case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){u(i,r,o,a,s,"next",e)}function s(e){u(i,r,o,a,s,"throw",e)}a(void 0)}))})()},pageChange:function(e){var t=e[0];t.year===this.currentYear&&t.month===this.currentMonth||(this.currentYear=t.year,this.currentMonth=t.month,this.$inertia.get(route(this.routeName,{commune:this.$page.props.commune.slug}),{date:t.year+"-"+(t.month<10?"0"+t.month:t.month)+"-01"},{only:["events","annonces"],preserveScroll:!0,preserveState:!0}))}}};var p=n(5072),h=n.n(p),f=n(2270),m={insert:"head",singleton:!1};h()(f.A,m);f.A.locals;const g=(0,n(6262).A)(d,[["render",function(e,t,n,s,l,c){var u=(0,r.resolveComponent)("Link"),d=(0,r.resolveComponent)("Calendar");return(0,r.openBlock)(),(0,r.createBlock)(d,{class:"custom-calendar max-w-full",masks:l.masks,attributes:c.attributes,"disable-page-swipe":"","is-expanded":"","onUpdate:pages":c.pageChange,ref:"calendar",timezone:"Europe/Zurich"},{"day-content":(0,r.withCtx)((function(t){var n=t.day,s=t.attributes;return[(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("span",i,(0,r.toDisplayString)(n.day),1),(0,r.createElementVNode)("div",a,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(s,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("p",{key:t.key,class:(0,r.normalizeClass)(["text-xs leading-tight rounded-sm p-1 mt-0 mb-1",t.customData.class]),style:(0,r.normalizeStyle)({"background-color":t.customData.style})},[t.customData.allDayEvent?((0,r.openBlock)(),(0,r.createBlock)(u,{key:1,href:e.route("annonces.show",{commune:e.$page.props.commune.slug,annonce:t.customData.id,slug:t.customData.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$dayjs(t.customData.start).isSame(e.$dayjs(t.customData.end),"day")?null:e.$dayjs(t.customData.start).locale(e.$page.props.locale).format("D")+"-"+e.$dayjs(t.customData.end).locale(e.$page.props.locale).format("D.MM"))+" : "+(0,r.toDisplayString)(t.customData.title),1)]})),_:2},1032,["href"])):((0,r.openBlock)(),(0,r.createBlock)(u,{key:0,href:e.route("annonces.show",{commune:e.$page.props.commune.slug,annonce:t.customData.id,slug:t.customData.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$dayjs(t.customData.start).isSame(e.$dayjs(t.customData.end),"day")?null:e.$dayjs(t.customData.start).locale(e.$page.props.locale).format("D")+"-"+e.$dayjs(t.customData.end).locale(e.$page.props.locale).format("D.MM"))+" "+(0,r.toDisplayString)(e.$dayjs(t.customData.start).format("HH:mm"))+"-"+(0,r.toDisplayString)(e.$dayjs(t.customData.end).format("HH:mm"))+": "+(0,r.toDisplayString)(t.customData.title),1)]})),_:2},1032,["href"]))],6)})),128))])])]})),_:1},8,["masks","attributes","onUpdate:pages"])}]])},6786:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6301),o={class:"text-sm text-red-600"};const i=(0,n(641).pM)({props:["message"]});const a=(0,n(6262).A)(i,[["render",function(e,t,n,i,a,s){return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("p",o,(0,r.toDisplayString)(e.message),1)],512)),[[r.vShow,e.message]])}]])},6808:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);
2o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var s=n(221),l=n(221);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return l.Parser}});var c=n(4128),u=n(4128);function d(e,t){var n=new c.DomHandler(void 0,t);return new s.Parser(n,t).end(e),n.root}function p(e,t){return d(e,t).children}Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}}),t.parseDocument=d,t.parseDOM=p,t.createDomStream=function(e,t,n){var r=new c.DomHandler(e,t,n);return new s.Parser(r,t)};var h=n(357);Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return a(h).default}}),t.ElementType=i(n(5413));var f=n(1941),m=n(1941);Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return m.getFeed}});var g={xmlMode:!0};t.parseFeed=function(e,t){return void 0===t&&(t=g),(0,f.getFeed)(p(e,t))},t.DomUtils=i(n(1941))},6846:(e,t,n)=>{"use strict";let r=n(145),o=n(6966),i=n(4211),a=n(5644);class s{constructor(e=[]){this.version="8.5.3",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new o(this,e,t):new i(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=s,s.default=s,a.registerProcessor(s),r.registerProcessor(s)},6929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(6301),o={class:"mb-4 text-sm text-gray-600"},i={class:"flex justify-end mt-4"},a=["disabled","value"];var s=n(641),l=n(9234),c=n(4046),u=n(8045),d=n(1816),p=n(4296),h=n(5393),f=n(5860);const m=(0,s.pM)({components:{Head:l.p3,JetAuthenticationCard:c.A,JetAuthenticationCardLogo:u.A,JetButton:d.A,JetInput:p.A,JetLabel:h.A,JetValidationErrors:f.A},data:function(){return{form:this.$inertia.form({password:""})}},methods:{submit:function(){var e=this;this.form.post(this.route("password.confirm"),{onFinish:function(){return e.form.reset()}})}}});const g=(0,n(6262).A)(m,[["render",function(e,t,n,s,l,c){var u=(0,r.resolveComponent)("Head"),d=(0,r.resolveComponent)("Link"),p=(0,r.resolveComponent)("jet-validation-errors"),h=(0,r.resolveComponent)("jet-label"),f=(0,r.resolveComponent)("jet-input"),m=(0,r.resolveComponent)("jet-authentication-card");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(u,{title:"Secure Area"}),(0,r.createVNode)(m,null,{logo:(0,r.withCtx)((function(){return[(0,r.createVNode)(d,{href:"/"},{default:(0,r.withCtx)((function(){return t[2]||(t[2]=[(0,r.createElementVNode)("img",{src:"/img/admin/[email protected]",alt:"Logo LeMemento"},null,-1)])})),_:1})]})),default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",o,(0,r.toDisplayString)(e.__("confirmPasswordText")),1),(0,r.createVNode)(p,{class:"mb-4"}),(0,r.createElementVNode)("form",{onSubmit:t[1]||(t[1]=(0,r.withModifiers)((function(){return e.submit&&e.submit.apply(e,arguments)}),["prevent"]))},[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(h,{for:"password",value:e.__("Passwort")},null,8,["value"]),(0,r.createVNode)(f,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:e.form.password,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.form.password=t}),required:"",autocomplete:"current-password",autofocus:""},null,8,["modelValue"])]),(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("input",{type:"submit",class:(0,r.normalizeClass)(["btn-primary bg-lm-blue cursor-pointer hover:bg-lm-light-blue ml-4 text-white",{"opacity-25":e.form.processing}]),disabled:e.form.processing,value:e.__("Bestätigen")},null,10,a)])],32)]})),_:1})],64)}]])},6966:(e,t,n)=>{"use strict";let r=n(7793),o=n(145),i=n(3604),a=n(9577),s=n(3717),l=n(5644),c=n(3303),{isClean:u,my:d}=n(4151);n(6156);const p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0};function m(e){return"object"==typeof e&&"function"==typeof e.then}function g(e){let t=!1,n=p[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function v(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:g(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}
vendor: 4,278 bytes, line 2
2function y(e){return e[u]=!1,e.nodes&&e.nodes.forEach((e=>y(e))),e}let b={};class x{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,n){let o;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof x||t instanceof s)o=y(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=a;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{o=e(t,n)}catch(e){this.processed=!0,this.error=e}o&&!o[d]&&r.rebuild(o)}else o=y(t);this.result=new s(e,o,n),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!h[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[n])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(m(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[u];){e[u]=!0;let t=[v(e)];for(;t.length>0;){let e=this.visitTick(t);if(m(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>n(e,this.helpers)));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return m(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new i(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(m(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[u];)e[u]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;
2if(m(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,o]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return o(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let r,o=t.iterator;for(;r=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!r[u])return r[u]=!0,void e.push(v(r));t.iterator=0,delete n.indexes[o]}let o=t.events;for(;t.eventIndex<o.length;){let e=o[t.eventIndex];if(t.eventIndex+=1,0===e)return void(n.nodes&&n.nodes.length&&(n[u]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[u]=!0;let t=g(e);for(let n of t)if(0===n)e.nodes&&e.each((e=>{e[u]||this.walkSync(e)}));else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}}x.registerPostcss=e=>{b=e},e.exports=x,x.default=x,l.registerLazyResult(x),o.registerLazyResult(x)},6986:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>D});var r=n(6301),o={class:"px-4 py-6 xl:container xl:mx-auto"},i={class:"lg:flex lg:gap-x-6 lg:h-full"},a={class:"flex-shrink-0"},s={class:"hidden lg:block sticky top-24"},l={class:"mb-8 lg:hidden"},c={class:"flex-grow"},u={class:"mb-2"},d={class:"text-md mb-0"},p={class:"divide-y divide-gray-200"},h={class:"hover:bg-slate-50 flex gap-x-4 items-center p-3"},f=["src"],m=["src"],g={class:"text-sm"},v={key:0,class:"font-bold"},y={key:1,class:"font-bold"},b={key:2},x={key:3},w={class:"text-sm"},k={key:0,class:"bi bi-heart-fill"},_={key:1,class:"bi bi-chat-right-dots"},E={class:"text-sm ml-auto"};var C=n(641),N=n(8367),S=n(6581),V=n(6153);const A=(0,C.pM)({layout:N.A,props:["allnotifications"],components:{LmAccordion:S.A,LmProfileMenu:V.A},computed:{currentPage:function(){switch(this.route().current()){case"profile.show":return'<i class="bi bi-person-lines-fill mr-2"></i>'+this.__("Mein Profil");case"profile.notifications":return'<i class="bi bi-bell mr-2"></i>'+this.__("Benachrichtigungen");case"profile.messages":return'<i class="bi bi-chat-dots mr-2"></i>'+this.__("Nachrichten");case"profile.events":return'<i class="bi bi-calendar2-event mr-2"></i>'+this.__("Meine Events");case"profile.annonces":return'<i class="bi bi-megaphone mr-2"></i>'+this.__("Meine Anzeigen")}}}});const D=(0,n(6262).A)(A,[["render",function(e,t,n,C,N,S){var V=(0,r.resolveComponent)("lm-profile-menu"),A=(0,r.resolveComponent)("lm-accordion"),D=(0,r.resolveComponent)("Text"),M=(0,r.resolveComponent)("Link");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",s,[(0,r.createVNode)(V)]),(0,r.createElementVNode)("div",l,[(0,r.createVNode)(A,{title:e.currentPage},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(V)]})),_:1},8,["title"])])]),(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("div",u,[(0,r.createVNode)(D,{type:"h2",text:e.__("Meine Benachrichtigungen")},null,8,["text"])]),(0,r.createElementVNode)("p",d,[(0,r.createVNode)(M,{href:e.route("notifications.markRead",{commune:this.$page.props.commune.slug}),title:e.__("Tout marquer comme lu")},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Tout marquer comme lu")),1)]})),_:1},8,["href","title"])]),(0,r.createElementVNode)("div",p,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.allnotifications,(function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"hover:bg-slate-50 flex gap-x-4 items-center p-3",key:t.id},[(0,r.createVNode)(M,{href:t.data.url,style:(0,r.normalizeStyle)([null!==t.read_at?"opacity:0.5":null])},{default:(0,r.withCtx)((function(){var n;return[(0,r.createElementVNode)("div",h,[(0,r.createElementVNode)("div",null,[t.data.user_from?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,class:"h-8 w-8 rounded-full object-cover mr-4",src:t.data.user_from.profile_photo_url,alt:"User avatar"},null,8,f)):((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:1,class:"h-8 w-8 rounded-full mr-4",alt:"User avatar",src:"https://eu.ui-avatars.c
2om/api/?name=".concat(e.$page.props.user_from.first_name,"&background=random")},null,8,m))]),(0,r.createElementVNode)("div",g,[t.data.user_from?((0,r.openBlock)(),(0,r.createElementBlock)("span",v,(0,r.toDisplayString)(t.data.user_from.fullName),1)):((0,r.openBlock)(),(0,r.createElementBlock)("span",y,(0,r.toDisplayString)(e.__("Anonyme")),1)),"App\\Notifications\\AnnonceLikedNotification"===t.type?((0,r.openBlock)(),(0,r.createElementBlock)("span",b,(0,r.toDisplayString)(e.__("hat deine Anzeige geliked.")),1)):(0,r.createCommentVNode)("",!0),"App\\Notifications\\AnnonceCommentedNotification"===t.type?((0,r.openBlock)(),(0,r.createElementBlock)("span",x,(0,r.toDisplayString)(e.__("hat deine Anzeige kommentiert.")),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",w,["App\\Notifications\\AnnonceLikedNotification"===t.type?((0,r.openBlock)(),(0,r.createElementBlock)("i",k)):(0,r.createCommentVNode)("",!0),"App\\Notifications\\AnnonceCommentedNotification"===t.type?((0,r.openBlock)(),(0,r.createElementBlock)("i",_)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",E,(0,r.toDisplayString)(e.$dayjs(null!==(n=t.created_at)&&void 0!==n?n:e.$dayjs().format("YYYY-MM-DD HH:mm:ss")).locale(e.$page.props.locale).fromNow()),1)])]})),_:2},1032,["href","style"])])})),128))])])])])])}]])},6987:(e,t,n)=>{"use strict";var r=n(5606),o=n(9516),i=n(7018),a=n(5449),s={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(c=n(5592)),c),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){u.headers[e]=o.merge(s)})),e.exports=u},6993:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(6301),o={key:0,class:"flex justify-center"},i={class:"relative cursor-pointer"},a={class:"block w-full bg-slate-100 border-none px-4 py-2"},s=["onClick","title"],l={class:"mt-4"},c={key:0,class:"flex max-h-[450px] max-w-full overflow-hidden relative justify-center group-inner"},u={class:"flex max-h-[450px] max-w-full overflow-hidden relative justify-center group-inner"},d={class:"flex justify-center gap-1 mt-4 items-center"},p=["onClick"],h=["title"];var f=n(641),m=n(1678),g=n(756),v=n(5715);function y(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const x=(0,f.pM)({emits:["update:modelValue","onfilechange"],components:{draggable:m.H,DialogModal:g.A,LmFileView:v.A},props:{icon:String,label:{type:String,required:!0},placeholder:String,node:{type:Object,required:!1},initialImages:{type:Array,required:!1}},mounted:function(){this.placeholderData=this.placeholder?this.placeholder:this.label},data:function(){return{value:"",images:y(this.initialImages),displayNr:0,xStart:0,yStart:0,drag:!1,editModal:!1}},methods:{removeImage:function(e){this.images.splice(this.images.indexOf(e),1),this.displayNr=0,this.$emit("onfilechange",{files:this.images,node:this.node})},updateOrder:function(){this.$emit("onfilechange",{files:this.images,node:this.node})},touchStart:function(e){this.xStart=e.changedTouches[0].clientX,this.yStart=e.changedTouches[0].clientY},touchEnd:function(e){var t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;Math.abs(this.xStart-t)>Math.abs(this.yStart-n)&&(this.xStart>t?this.nextImage():this.prevImage())},prevImage:function(){this.displayNr>0?this.displayNr--:this.displayNr=this.images.length-1},nextImage:function(){this.displayNr<this.images.length-1?this.displayNr++:this.displayNr=0},changeFile:function(e){if(e.target.files.length>0){this.displayNr=0;for(var t=0;t<e.target.files.length;t++)this.images.push(e.target.files[t]);this.$emit("onfilechange",{files:this.images,node:this.node})}},getSRC_old:function(e){return e instanceof Blob||e instanceof File?URL.createObjectURL(e):e.original_url},getSRC:function(e){return e instanceof Blob||e instanceof File?URL.createObjectURL(e):e.original_url?e.original_url:""}},computed:{dragOptions:function(){return{animation:200,group:"description",disabled:!1,ghostClass:"ghost"}}}});const w=(0,n(6262).A)(x,[["render",function(e,t,n,f,m,g){var v=(0,r.resolve
2Component)("lm-file-view"),y=(0,r.resolveComponent)("draggable"),b=(0,r.resolveComponent)("dialog-modal");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[e.images.length<1?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(t){return e.editModal=!0}),class:"btn-secondary"},[e.images.length<1?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[t[8]||(t[8]=(0,r.createElementVNode)("i",{class:"bi bi-plus-circle"},null,-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Medien hinzufügen")),1)],64)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[t[9]||(t[9]=(0,r.createElementVNode)("i",{class:"bi bi-pencil"},null,-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Bearbeiten")),1)],64))])])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(b,{show:e.editModal,onClose:t[3]||(t[3]=function(t){return e.editModal=!1})},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Mediengalerie bearbeiten")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("label",null,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("span",a,(0,r.toDisplayString)(e.__("Medien hinzufügen")),1),(0,r.createElementVNode)("input",{hidden:"",type:"file",onChange:t[1]||(t[1]=function(){return e.changeFile&&e.changeFile.apply(e,arguments)}),accept:"image/*,video/*",multiple:""},null,32),t[10]||(t[10]=(0,r.createElementVNode)("span",{class:"absolute right-2 -translate-y-2/4 top-2/4 text-white bg-lm-blue p-2 text-iconinput rounded-full"},[(0,r.createElementVNode)("i",{class:"bi bi-upload"})],-1))])]),(0,r.createVNode)(y,(0,r.mergeProps)({list:e.images,onChange:e.updateOrder,handle:".move-handle"},e.dragOptions,{tag:"transition-group","component-data":{tag:"div",type:"transition-group",name:e.drag?null:"flip-list"}}),{default:(0,r.withCtx)((function(){return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.images,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"inline-block h-50 w-32 p-2 relative group cursor-move move-handle",key:o+Math.random()},[(0,r.createElementVNode)("button",{class:"bg-slate-100 absolute top-2 right-2 hover:bg-slate-200 px-1 rounded-bl-md opacity-0 group-hover:opacity-100",onClick:function(t){return e.removeImage(n)},title:e.__("Löschen")},t[11]||(t[11]=[(0,r.createElementVNode)("i",{class:"bi bi-x-circle"},null,-1)]),8,s),(0,r.createVNode)(v,{file:n,class:"file-view-single"},null,8,["file"])])})),128))]})),_:1},16,["list","onChange","component-data"])]})),footer:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",{onClick:t[2]||(t[2]=function(t){return e.editModal=!1})},(0,r.toDisplayString)(e.__("Speichern")),1)]})),_:1},8,["show"]),(0,r.createElementVNode)("div",l,[1===e.images.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[(0,r.createVNode)(v,{file:e.images[0],class:"file-view-single"},null,8,["file"]),(0,r.createElementVNode)("button",{class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 opacity-0 group-inner-hover:opacity-100 p-2 bg-slate-100 rounded-md",onClick:t[4]||(t[4]=function(t){return e.editModal=!0})},t[12]||(t[12]=[(0,r.createElementVNode)("i",{class:"bi bi-pencil-square text-2xl"},null,-1)]))])):(0,r.createCommentVNode)("",!0),e.images.length>1?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createElementVNode)("div",u,[(0,r.createVNode)(v,{file:e.images[e.displayNr],class:"file-view-single",onTouchstart:e.touchStart,onTouchend:e.touchEnd},null,8,["file","onTouchstart","onTouchend"]),(0,r.createElementVNode)("button",{class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 opacity-0 group-inner-hover:opacity-100 p-2 bg-slate-100 rounded-md",onClick:t[5]||(t[5]=function(t){return e.editModal=!0})},t[13]||(t[13]=[(0,r.createElementVNode)("i",{class:"bi bi-pencil-square text-2xl"},null,-1)]))]),(0,r.createElementVNode)("div",d,[(0,r.createElementVNode)("div",{class:"flex items-center text-2xl px-2 cursor-pointer mr-6",onClick:t[6]||(t[6]=function(){return e.prevImage&&e.prevImage.apply(e,arguments)})},t[14]||(t[14]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-left"},null,-1)])),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.images,(function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)("button",{key:n+Math.random(),class:(0,r.normalizeClass)(["w-6 h-2 shadow-inner mt-1",[e.displayNr===n?"bg-cm-primary":"bg-slate-200"]]),onClick:function(t){return e.displayNr=n}},null,10,p)})),128)),(0,r.createElementVNode)("div",{class:"flex items-center text-2xl px-2 cursor-pointer ml-6",onClick:t[7]||(t[7]=function(){return e.nextImage&&e.nextImage.apply(e,arguments)}),title:e.__("Bearbeiten")},t[15]||(t[15]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-right"},null,-1)]),8,h)])],64)):(0,r.createCommentVNode)("",!0)])])}]])},7018:(e,t,n)=>{"use strict";var r=n(9516);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},7091:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(6301),o={class:"mb-4 text-sm text-gray-600"},i={key:0,class:"mb-4 font-medium text-sm text-green-600"},a={class:"mt-4 flex items-center justify-between"},s=["disabled","value"];var l=n(641),c=n(4046),u=n(8045),d=n(1816),p=n(9234);const h=(0,l.pM)({components:{Head:p.p3,JetAuthenticationCard:c.A,JetAuthenticationCardLogo:u.A,JetButton:d.A,Link:p.N_},props:{status:String},data:function(){return{form:this.$inertia.form()}},methods:{submit:function(){this.form.post(this.route("verification.send"))}},computed:{verificationLinkSent:function(){return"verification-link-sent"===this.status}}});const f=(0,n(6262).A)(h,[["render",function(e,t,n,l,c,u){var d=(0,r.resolve
2Component)("Head"),p=(0,r.resolveComponent)("Link"),h=(0,r.resolveComponent)("jet-authentication-card");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(d,{title:e.__("E-Mail Verifizierung")},null,8,["title"]),(0,r.createVNode)(h,null,{logo:(0,r.withCtx)((function(){return[(0,r.createVNode)(p,{href:"/"},{default:(0,r.withCtx)((function(){return t[1]||(t[1]=[(0,r.createElementVNode)("img",{src:"/img/admin/[email protected]",alt:"Logo LeMemento"},null,-1)])})),_:1})]})),default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",o,(0,r.toDisplayString)(e.__("verificationIntro")),1),e.verificationLinkSent?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,(0,r.toDisplayString)(e.__("verificationResend")),1)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("form",{onSubmit:t[0]||(t[0]=(0,r.withModifiers)((function(){return e.submit&&e.submit.apply(e,arguments)}),["prevent"]))},[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("input",{type:"submit",class:(0,r.normalizeClass)(["btn-primary bg-lm-blue cursor-pointer hover:bg-lm-light-blue ml-4 text-white",{"opacity-25":e.form.processing}]),disabled:e.form.processing,value:e.__("verificationSendAgain")},null,10,s),(0,r.createVNode)(p,{href:e.route("logout"),method:"post",as:"button",class:"underline text-sm text-gray-600 hover:text-gray-900"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Abmelden")),1)]})),_:1},8,["href"])])],32)]})),_:1})],64)}]])},7112:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".badge[data-v-2da72f06]{border-radius:50%;display:inline-block;height:20px;width:20px}.edit-form[data-v-2da72f06]{border-top:1px solid #ccc;margin-top:10px;padding-top:10px}.category-item[data-v-2da72f06]{border-bottom:1px solid #eee;padding:10px 0}.error[data-v-2da72f06]{color:red;font-size:.8rem;margin-top:5px}",""]);const i=o},7119:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7176:(e,t,n)=>{"use strict";var r,o=n(3126),i=n(5795);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!r&&i&&i(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},7193:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Boolean]",s="[object Date]",l="[object Function]",c="[object GeneratorFunction]",u="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",f="[object RegExp]",m="[object Set]",g="[object String]",v="[object Symbol]",y="[object WeakMap]",b="[object ArrayBuffer]",x="[object DataView]",w="[object Float32Array]",k="[object Float64Array]",_="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",N="[object Uint8Array]",S="[object Uint8ClampedArray]",V="[object Uint16Array]",A="[object Uint32Array]",D=/\w*$/,M=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,B={};B[i]=B["[object Array]"]=B[b]=B[x]=B[a]=B[s]=B[w]=B[k]=B[_]=B[E]=B[C]=B[u]=B[d]=B[p]=B[f]=B[m]=B[g]=B[v]=B[N]=B[S]=B[V]=B[A]=!0,B["[object Error]"]=B[l]=B[y]=!1;var O="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,P="object"==typeof self&&self&&self.Object===Object&&self,L=O||P||Function("return this")(),I=t&&!t.nodeType&&t,j=I&&e&&!e.nodeType&&e,R=j&&j.exports===I;function $(e,t){return e.set(t[0],t[1]),e}function z(e,t){return e.add(t),e}function F(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function H(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function U(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function W(e,t){return function(n){return e(t(n))}}function q(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Y,G=Array.prototype,K=Function.prototype,J=Object.prototype,X=L["__core-js_shared__"],Z=(Y=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(sr
2c)_1."+Y:"",Q=K.toString,ee=J.hasOwnProperty,te=J.toString,ne=RegExp("^"+Q.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=R?L.Buffer:void 0,oe=L.Symbol,ie=L.Uint8Array,ae=W(Object.getPrototypeOf,Object),se=Object.create,le=J.propertyIsEnumerable,ce=G.splice,ue=Object.getOwnPropertySymbols,de=re?re.isBuffer:void 0,pe=W(Object.keys,Object),he=je(L,"DataView"),fe=je(L,"Map"),me=je(L,"Promise"),ge=je(L,"Set"),ve=je(L,"WeakMap"),ye=je(Object,"create"),be=He(he),xe=He(fe),we=He(me),ke=He(ge),_e=He(ve),Ee=oe?oe.prototype:void 0,Ce=Ee?Ee.valueOf:void 0;function Ne(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ve(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){this.__data__=new Se(e)}function De(e,t){var n=We(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&qe(e)}(e)&&ee.call(e,"callee")&&(!le.call(e,"callee")||te.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!ee.call(e,a)||o&&("length"==a||ze(a,r))||n.push(a);return n}function Me(e,t,n){var r=e[t];ee.call(e,t)&&Ue(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Te(e,t){for(var n=e.length;n--;)if(Ue(e[n][0],t))return n;return-1}function Be(e,t,n,r,o,h,y){var M;if(r&&(M=h?r(e,o,h,y):r(e)),void 0!==M)return M;if(!Ke(e))return e;var T=We(e);if(T){if(M=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&ee.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,M)}else{var O=$e(e),P=O==l||O==c;if(Ye(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(O==p||O==i||P&&!h){if(H(e))return h?e:{};if(M=function(e){return"function"!=typeof e.constructor||Fe(e)?{}:(t=ae(e),Ke(t)?se(t):{});var t}(P?{}:e),!t)return function(e,t){return Le(e,Re(e),t)}(e,function(e,t){return e&&Le(t,Je(t),e)}(M,e))}else{if(!B[O])return h?e:{};M=function(e,t,n,r){var o=e.constructor;switch(t){case b:return Pe(e);case a:case s:return new o(+e);case x:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case w:case k:case _:case E:case C:case N:case S:case V:case A:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case u:return function(e,t,n){var r=t?n(U(e),!0):U(e);return F(r,$,new e.constructor)}(e,r,n);case d:case g:return new o(e);case f:return function(e){var t=new e.constructor(e.source,D.exec(e));return t.lastIndex=e.lastIndex,t}(e);case m:return function(e,t,n){var r=t?n(q(e),!0):q(e);return F(r,z,new e.constructor)}(e,r,n);case v:return i=e,Ce?Object(Ce.call(i)):{}}var i}(e,O,Be,t)}}y||(y=new Ae);var L=y.get(e);if(L)return L;if(y.set(e,M),!T)var I=n?function(e){return function(e,t,n){var r=t(e);return We(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Je,Re)}(e):Je(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(I||e,(function(o,i){I&&(o=e[i=o]),Me(M,i,Be(o,t,n,r,i,e,y))})),M}function Oe(e){return!(!Ke(e)||(t=e,Z&&Z in t))&&(Ge(e)||H(e)?ne:M).test(He(e));var t}function Pe(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}function Le(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],s=r?r(n[a],e[a],a,n,e):void 0;Me(n,a,void 0===s?e[a]:s)}return n}function Ie(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function je(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Oe(n)?n:void 0}Ne.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ne.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ne.prototype.get=function(e){var t=this.__data__;if(ye){var n=t[e];return n===r?void 0:n}return ee.call(t,e)?t[e]:void 0},Ne.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:ee.call(t,e)},Ne.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?r:t,this},Se.prototype.clear=function(){this.__data__=[]},Se.prototype.delete=function(e){var t=this.__data__,n=Te(t,e);return!(n<0)&&(n==t.length-1?t.pop():ce.call(t,n,1),!0)},Se.prototype.get=function(e){var t=this.__data__,n=Te(t,e);return n<0?void 0:t[n][1]},Se.prototype.has=function(e){return Te(this.__data__,e)>-1},Se.prototype.set=function(e,t){var n=this.__data__,r=Te(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ve.prototype.clear=function(){this.__data__={hash:new Ne,map:new(fe||Se),string:new Ne}},Ve.prototype.delete=function(e){return Ie(this,e).delete(e)},Ve.prototype.get=function(e){return Ie(this,e).get(e)},Ve.prototype.has=function(e){return Ie(this,e).has(e)},Ve.prototype.set=function(e,t){return Ie(this,e).set(e,t),this},Ae.prototype.clear=function(){this.__data__=new Se},Ae.prototype.delete=function(e){return this.__data__.delete(e)},Ae.prototype.get=function(e){return this.__data__.get(e)},Ae.prototype.has=function(e){return this.__data__.has(e)},Ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Se){var r=n.__data__;if(!fe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ve(r)}return n.set(e,t),this};var Re=ue?W(ue,Object):function(){return[]},$e=function(e){return te.call(e)};function ze(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e<t}function Fe(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||J)}function He(e){if(null!=e){try{return Q.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ue(e,t){return e===t||e!=e&&t!=t}(he&&$e(new he(new ArrayBuffer(1)))!=x||fe&&$e(new fe)!=u||me&&$e(me.resolve())!=h||ge&&$e(new ge)!=m||ve&&$e(new ve)!=y)&&($e=function(e){var t=te.call(e),n=t==p?e.constructor:void 0,r=n?He(n):void 0;if(r)switch(r){case be:return x;case xe:return u;case we:return h;case ke:return m;case _e:return y}return t});var We=Array.isArray;function qe(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!Ge(e)}var Ye=de||function(){return!1};function Ge(e){var t=Ke(e)?te.call(e):"";return t==l||t==c}function Ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Je(e){return qe(e)?De(e):function(e){if(!Fe(e))return pe(e);var t=[];for(var n in Object(e))ee.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Be(e,!0,!0)}},7334:e=>{function t(e,t,n){var r,o,i,a,s;function l(){var c=Date.now()-a;c<t&&c>=0?r=setTimeout(l,t-c):(r=null,n||(s=e.apply(i,o),i=o=null))}null==t&&(t=100);var c=function(){i=this,o=arguments,a=Date.now();var c=n&&!r;return r||(r=setTimeout(l,t)),c&&(s=e.apply(i,o),i=o=null),s};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(s=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},c}t.debounce=t,e.exports=t},7375:function(e){e.exports=function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return r.bind(this)(i)}}}()},7400:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(6301),o={class:"flex items-center cursor-pointer py-1 md:py-2 mr-2 md:mr-4 select-none"},i=["checked","value"];const a=(0,n(641).pM)({emits:["update:modelValue","change"],model:{prop:"modelValue",event:"change"},props:{value:{type:String},modelValue:{default:""},trueValue:{default:!0},falseValue:{default:!1},label:{default:""}},computed:{isChecked:function(){return this.modelValue instanceof Array?this.modelValue.includes(this.value):this.modelValue===this.trueValue}},methods:{updateInput:function(e){var t=e.target.checked;this.$emit("change",t?this.trueValue:this.falseValue)}}});var s=n(5072),l=n.n(s),c=n(2629),u={insert:"head",singleton:!1};l()(c.A,u);c.A.locals;const d=(0,n(6262).A)(a,[["render",function(e,t,n,a,s,l){return(0,r.openBlock)(),(0,r.createElementBlock)("label",o,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["relative",{"pr-4":e.label.length>0}])},[(0,r.createElementVNode)("input",{type:"checkbox",class:"sr-only peer/toggle",checked:e.isChecked,value:e.value,onChange:t[0]||(t[0]=function(){return e.updateInput&&e.updateInput.apply(e,arguments)})},null,40,i),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)([[e.isChecked?"bg-lm-light-blue":"bg-slate-400"],"w-10 h-4 rounded-full shadow-inner"])},null,2),t[1]||(t[1]=(0,r.createElementVNode)("div",{class:"dot peer-checked/toggle:bg-white peer-checked/toggle:translate-x-full absolute w-6 h-6 bg-white rounded-full shadow -left-1 -top-1 transition"},null,-1))],2),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.label),1)])}]])},7522:(e,t,n)=>{"use strict";var r=n(7763);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},7524:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));
2o.push([e.id,".share-network-list{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;margin:auto;max-width:1000px}a[class^=share-network-]{align-content:center;align-items:center;background-color:#333;border-radius:.375rem;color:#fff;cursor:pointer;display:flex;flex:none;flex-direction:row;font-size:15px;height:30px;margin:0 5px 5px 0;overflow:hidden;width:30px}a[class^=share-network-] .fah{background-color:rgba(0,0,0,.2);flex:0 1 auto;padding:2px}a[class^=share-network-] span{flex:1 1 0%;font-weight:500;padding:0 10px}a[class^=share-network-] i{margin:0 auto 5px}",""]);const i=o},7526:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=s(e),a=i[0],l=i[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),u=0,d=l>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,c=r-o;s<c;s+=a)i.push(l(e,s,s+a>c?c:s+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var o,i,a=[],s=t;s<r;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7537:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>V});var r=n(6301),o={class:"mobilenavgradient w-full px-12 pt-12"},i={class:"py-2"},a={class:"py-2"},s={key:0,class:"py-2"},l={class:"py-2"},c={class:"py-2"},u={class:"py-2"},d={class:"py-2"},p={class:"py-2"},h={class:"px-2"},f={class:"py-2 text-lg"},m={class:"pl-2 pb-2"},g={class:"pl-2 pb-2"},v={class:"px-2"},y={class:"py-2 text-lg"},b={class:"pl-2 pb-2"},x={class:"pl-2 pb-2"};var w=n(641),k=n(7588);const _=(0,w.pM)({props:{securityOpen:{type:Boolean,default:!1},taxonomyOpen:{type:Boolean,default:!1}},components:{LmNavAccordion:k.A}});var E=n(5072),C=n.n(E),N=n(8621),S={insert:"head",singleton:!1};C()(N.A,S);N.A.locals;const V=(0,n(6262).A)(_,[["render",function(e,t,n,w,k,_){var E=(0,r.resolveComponent)("Link"),C=(0,r.resolveComponent)("lm-nav-accordion");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createVNode)(E,{class:"p-2 text-white hover:underline text-lg",href:e.route("communalhome",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$page.props.commune.name),1)]})),_:1},8,["href"])]),(0,r.createElementVNode)("div",a,[(0,r.createVNode)(E,{class:(0,r.normalizeClass)([{activeroutemobile:e.route().current("admin.index")},"p-2 text-white hover:underline text-lg"]),href:e.route("admin.index",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Home")),1)]})),_:1},8,["class","href"])]),e.$page.props.user.superadmin||1===e.$page.props.userRole?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.createVNode)(E,{class:(0,r.normalizeClass)([{activeroutemobile:e.route().current("admin.design")},"p-2 text-white hover:underline text-lg"]),href:e.route("admin.design",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Design")),1)]})),_:1},8,["class","href"])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",l,[(0,r.createVNode)(E,{class:(0,r.normalizeClass)([{activeroutemobile:e.route().current("admin.moderation")},"p-2 text-white hover:underline text-lg"]),href:e.route("admin.moderation",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Moderation")),1)]})),_:1},8,["class","href"])]),(0,r.createElementVNode)("div",c,[(0,r.createVNode)(E,{class:(0,r.normalizeClass)([{activeroutemobile:e.route().current("admin.news")},"p-2 text-white hover:underline text-lg"]),href:e.route("admin.news",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Aktuelles")),1)]})),_:1},8,["class","href"])]),(0,r.createElementVNode)("div",u,[(0,r.createVNode)(E,{class:(0,r.normalizeClass)([{activeroutemobile:e.route().current("admin.documents")},"p-2 text-white hover:underline text-lg"]),href:e.route("admin.documents",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Documents")),1)]})),_:1},8,["class","href"])]),(0,r.createElementVNode)("div",d,[(0,r.createVNode)(E,{class:(0,r.normalizeClass)([{activeroutemobile:e.route().current("admin.archives")},"p-2 text-white hover:underline text-lg"]),href:e.route("admin.archives",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Corbeille")),1)]})),_:1},8,["class","href"])]),(0,r.createElementVNode)("div",p,[(0,r.createVNode)(E,{class:(0,r.normalizeClass)([{activeroutemobile:e.route().current("admin.about")},"p-2 text-white hover:underline text-lg"]),href:e.route("admin.about",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Ãber")+" "+e.$page.props.commune.name),1)]})),_:1},8,["class","href"])]),(0,r.createElementVNode)("div",h,[(0,r.createVNode)(C,{startOpen:e.taxonomyOpen},{trigger:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("span",f,(0,r.toDisplayString)(e.__("Taxonomie")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",m,[(0,r.createVNode)(E,{class:(0,r.normalizeClass)([{activeroutemobile:e.route().current("admin.categories")},"py-2 text-white hover:underline text-lg"]),href:e.route("admin.categories",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Kategorien")),1)]})),_:1},8,["class","href"])]),(0,r.createElementVNode)("div",g,[(0,r.createVNode)(E,{class:(0,r.normalizeClass)([{activeroutemobile:e.route().current("admin.tags")}
2,"py-2 text-white hover:underline text-lg"]),href:e.route("admin.tags",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Tags")),1)]})),_:1},8,["class","href"])])]})),_:1},8,["startOpen"])]),(0,r.createElementVNode)("div",v,[e.$page.props.user.superadmin||1===e.$page.props.userRole?((0,r.openBlock)(),(0,r.createBlock)(C,{key:0,startOpen:e.securityOpen},{trigger:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("span",y,(0,r.toDisplayString)(e.__("Sicherheit")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",b,[(0,r.createVNode)(E,{class:(0,r.normalizeClass)([{activeroutemobile:e.route().current("admin.security.settings")},"py-2 text-white hover:underline text-lg"]),href:e.route("admin.security.settings",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Einstellungen")),1)]})),_:1},8,["class","href"])]),(0,r.createElementVNode)("div",x,[(0,r.createVNode)(E,{class:(0,r.normalizeClass)([{activeroutemobile:e.route().current("admin.security.users")},"py-2 text-white hover:underline text-lg"]),href:e.route("admin.security.users",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Benutzerverwaltung")),1)]})),_:1},8,["class","href"])])]})),_:1},8,["startOpen"])):(0,r.createCommentVNode)("",!0)])])}]])},7572:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E});var r=n(6301),o={class:"bg-white"},i={class:"py-12 lg:py-20 px-4 mx-auto max-w-screen-md"},a={class:"mb-8 text-center"},s={class:"mt-4 text-gray-500 text-lg"},l={class:"space-y-12 mt-12"},c={class:"flex justify-between items-center mb-4"},u={class:"text-sm text-gray-400"},d={key:0},p={class:"list-disc list-inside mt-2 text-gray-600"},h={key:1,class:"mt-4"},f={class:"list-disc list-inside mt-2 text-gray-600"},m={key:2,class:"mt-4"},g={class:"list-disc list-inside mt-2 text-gray-600"},v={class:"mt-16 text-center"},y=["href"];var b=n(641),x=n(6523),w=n(9234),k=n(2812);const _=(0,b.pM)({data:function(){return{versions:[{id:16,number:"",date:"",newFeatures:["Ajout de la gestion hiérarchique des catégories (parents/enfants)","Intégration d'une carte pour géolocaliser les annonces"],improvements:["Amélioration de l'interface pour la création d'événements","Amélioration du design des annonces et événements"],fixes:[]},{id:16,number:"1.5.6",date:"26 juin 2026",newFeatures:[],improvements:["Refonte du système d'impression des annonces avec ajout des commentaires"],fixes:[]},{id:15,number:"1.5.5",date:"1 décembre 2025",newFeatures:[],improvements:["Modification du système dâarchivage afin de ne conserver quâune seule catégorie dâarchives dans les annonces","Amélioration des boutons dâaction sur les annonces pour une meilleure lisibilité et une utilisation plus intuitive"],fixes:[]},{id:14,number:"1.5.4",date:"3 novembre 2025",newFeatures:[],improvements:[],fixes:["Correction d'un bug dans le calendrier sur la page des événements"]},{id:13,number:"1.5.3",date:"27 octobre 2025",newFeatures:[],improvements:[],fixes:["Correction d'un bug affectant les dates lors de la création d'événements"]},{id:12,number:"1.5.2",date:"20 octobre 2025",newFeatures:["Ajout d'une page dédiée aux notes de version pour informer les utilisateurs des dernières mises à jour.","Les utilisateurs peuvent désormais supprimer leur propre compte de manière autonome depuis leur profil."],improvements:["Le comptage des vues sur une annonce est désormais limité pour éviter les enregistrements multiples","Ajout d'une liste d'IP ignorées dans la configuration pour exclure les visites de robots du comptage des vues."],fixes:["Corrections de traductions manquantes dans l'interface utilisateur."]},{id:11,number:"1.5.1",date:"27 juin 2025",newFeatures:[],improvements:["Le titre de la section 'Publicité' sur la page d'accueil a été modifié en 'Sponsor' pour mieux refléter la nature des partenariats."],fixes:[]},{id:10,number:"1.5.0",date:"8 janvier 2025",newFeatures:["Les administrateurs reç
2oivent désormais une notification par e-mail lorsqu'une nouvelle annonce ou un événement est en attente de modération."],improvements:[],fixes:["Correction d'un bug critique où la modification d'une annonce mettait à jour sa date de publication à la date du jour, la propulsant en tête de liste de manière non désirée.","Correction d'une faille de sécurité qui permettait à un utilisateur non validé de publier une annonce."]},{id:9,number:"1.4.1",date:"27 octobre 2024",newFeatures:[],improvements:[],fixes:["Correction d'un problème où les annonces classées dans les sous-catégories des archives n'étaient plus visibles."]},{id:8,number:"1.4.0",date:"20 novembre 2024",newFeatures:["Ajout de la possibilité de réorganiser manuellement l'ordre des annonces épinglées depuis l'interface de modération."],improvements:[],fixes:[]},{id:7,number:"1.3.0",date:"2 septembre 2024",newFeatures:["Ajout d'une fonctionnalité pour réorganiser manuellement l'ordre des catégories par glisser-déposer."],improvements:[],fixes:["Correction d'un bug d'affichage (espaces) lors de la modification des catégories."]},{id:6,number:"1.2.0",date:"13 juin 2024",newFeatures:["Ajout d'une option dans l'administration pour inverser l'ordre d'affichage des annonces (Titre en premier, puis l'image)."],improvements:[],fixes:[]},{id:5,number:"1.1.1",date:"5 décembre 2023",newFeatures:[],improvements:["Refonte complète du module de statistiques pour garantir l'exactitude des données et corriger les erreurs de comptage."],fixes:["Correction des problèmes de comptage (doublons, vues d'annonces supprimées) dans les exports de statistiques."]},{id:4,number:"1.1.0",date:"6 novembre 2023",newFeatures:["Mise en place des flux RSS pour les newsletters.","Possibilité de mettre en avant des catégories sur la page dâaccueil."],improvements:["Les exports de statistiques sont désormais au format Excel (.xlsx) au lieu de CSV.","Les statistiques distinguent les annonces (actives, archivées, supprimées).","Amélioration du menu sur les appareils mobiles.","Ajout de bulles d'information et de conseils sur les pages de création.","Remplacement de l'image par défaut des annonces par l'icône du Memento.","Les annonces épinglées sont affichées en ordre anti-chronologique."],fixes:["Correction de l'adresse email sur la page de contact.","Résolution d'un bug qui empêchait les brouillons de fonctionner correctement.","Correction de la réactivation d'annonces qui n'incluaient pas leurs composants (textes/images)."]},{id:3,number:"1.0.2",date:"17 octobre 2023",newFeatures:["Ajout de la possibilité de mettre une annonce 'en avant' (épingler).","Ajout d'un bouton 'Imprimer' sur les annonces."],improvements:["Réduction de la taille des logos des partenaires pour en afficher trois par ligne.","Mise à disposition d'une première version de l'export des statistiques."],fixes:["Correction d'un bug où le masque de connexion apparaissait en tentant d'accéder aux archives sans être connecté."]},{id:2,number:"1.0.1",date:"5 octobre 2023",newFeatures:["Ajout de la fonction Italique dans l'éditeur de texte."],improvements:["Ajout du lien 'Devenez partenaire' sur la page d'accueil.","Ajustement de l'affichage des images sur smartphone et tablette."],fixes:["Correction majeure du système de recadrage des images qui coupait les visuels.","Correction d'un bug où la récurrence hebdomadaire des événements était enregistrée comme journalière.","Correction de la faute d'orthographe 'retour aux annonce' en 'retour aux annonces'."]},{id:1,number:"1.0.0",date:"2 octobre 2023",newFeatures:["Lancement officiel de la nouvelle plateforme LeMemento.ch."],improvements:[],fixes:[]}]}},components:{Head:w.p3,TopBar:x.A,LandingPageLayout:k.A},layout:k.A});const E=(0,n(6262).A)(_,[["render",function(e,t,n,b,x,w){var k=(0,r.resolveComponent)("TopBar"),_=(0,r.resolveComponent)("Head"),E=(0,r.resolveComponent)("Text");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(k),(0,r.createVNode)(_,{title:"Notes de version - Le Memento"}),(0,r.createElementVNode)("section",o,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createVNode)(E,{type:"h1",text:"Notes de version"}),(0,r.createElementVNode)("p",s,(0,r.toDisplayString)(e.__("Découvrez les améliorations, corrections et nouveautés apportées à la plateforme.")),1)]),(0,r.createElementVNode)("div",l,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.versions,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t.id,class:"bg-gray-50 rounded-2xl p-6 shadow-sm border border-gray-200"},[(0,r.createElementVNode)("div",c,[(0,r.createVNode)(E,{type:"h2",text:/\d/.test(t.number)?e.__("Version")+" ".concat(t.number):e.__("à venir"),color:"text-lm-blue"},null,8,["text"]),(0,r.createElementVNode)("span",u,(0,r.toDisplayString)(t.date),1)]),t.newFeatures.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",d,[(0,r.createVNode)(E,{type:"h3",color:"text-lm-blue",text:e.__("Nouvelles fonctionnalités")},null,8,["text"]),(0,r.createElementVNode)("ul",p,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(t.newFeatures,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:"nf-".concat(t)},(0,r.toDisplayString)(e),1)})),128))])])):(0,r.createCommentVNode)("",!0),t.improvements.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",h,[(0,r.createVNode)(E,{type:"h3",color:"text-lm-blue",text:e.__("Améliorations")},null,8,["text"]),(0,r.createElementVNode)("ul",f,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(t.improvements,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:"imp-".concat(t)},(0,r.toDisplayString)(e),1)})),128))])])):(0,r.createCommentVNode)("",!0),t.fixes.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",m,[(0,r.createVNode)(E,{type:"h3",color:"text-lm-blue",text:e.__("Corrections de bugs")},null,8,["text"]),(0,r.createElementVNode)("ul",g,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(t.fixes,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:"fix-".concat(t)},(0,r.toDisplayString)(e),1)})),128))])])):(0,r.createCommentVNode)("",!0)])})),128))]),(0,r.createElementVNode)("div",v,[(0,r.createElementVNode)("a",{href:e.route("landingpage.contact"),class:"inline-flex items-center justify-center rounded-md border border-transparent bg-lm-blue px-5 py-3 text-base font-medium text-white hover:bg-lm-light-blue"},(0,r.toDisplayString)(e.__("Nous contacter")),9,y)])])])],64)}]])}
vendor: 5,281 bytes, line 2
2,7588:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6301),o={class:"lg:absolute lg:right-4 lg:top-2 ml-5 lg:ml-0"},i={class:"bi bi-chevron-down transition-all"},a={class:"bi bi-chevron-up"};const s=(0,n(641).pM)({props:{startOpen:Boolean},mounted:function(){this.open=this.startOpen},data:function(){return{open:!1}},methods:{toggle:function(){this.open=!this.open}}});const l=(0,n(6262).A)(s,[["render",function(e,t,n,s,l,c){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("button",{class:(0,r.normalizeClass)(["block w-full relative text-left py-2 lg:p-0 lg:hover:bg-slate-200",{"lg:bg-slate-200":e.open}]),onClick:t[0]||(t[0]=function(){return e.toggle&&e.toggle.apply(e,arguments)})},[(0,r.renderSlot)(e.$slots,"trigger"),(0,r.createElementVNode)("span",o,[(0,r.withDirectives)((0,r.createElementVNode)("i",i,null,512),[[r.vShow,!e.open]]),(0,r.withDirectives)((0,r.createElementVNode)("i",a,null,512),[[r.vShow,e.open]])])],2),(0,r.withDirectives)((0,r.createElementVNode)("div",null,[(0,r.renderSlot)(e.$slots,"content")],512),[[r.vShow,e.open]])])}]])},7604:(e,t,n)=>{"use strict";function r(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{A:()=>r})},7668:e=>{"use strict";const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class n{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let o=(e.raws.between||"")+(t?";":"");this.builder(n+r+o,e)}}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,o=0;for(;r&&"root"!==r.type;)o+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<o;e++)n+=t}return n}block(e,t){let n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let o=e.nodes[r],i=this.raw(o,"before");i&&this.builder(i),this.stringify(o,t!==r||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(e,n,r){let o;if(r||(r=n),n&&(o=e.raws[n],void 0!==o))return o;let i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return t[r];let a=e.root();if(a.rawCache||(a.rawCache={}),void 0!==a.rawCache[r])return a.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let t="raw"+((s=r)[0].toUpperCase()+s.slice(1));this[t]?o=this[t](a,e):a.walk((e=>{if(o=e.raws[n],void 0!==o)return!1}))}var s;return void 0===o&&(o=t[r]),a.rawCache[r]=o,o}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawBeforeRule(e){let t;return e.walk((n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}
vendor: 1,455 bytes, line 2
2e.exports=n,n.default=n},7720:(e,t,n)=>{"use strict";var r=n(4765),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},l=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<s.length;u+=l){for(var d=s.length>=l?s.slice(u,u+l):s,p=[],h=0;h<d.length;
vendor: 1,431 bytes, line 2
2++h){var f=d.charCodeAt(h);45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===r.RFC1738&&(40===f||41===f)?p[p.length]=d.charAt(h):f<128?p[p.length]=a[f]:f<2048?p[p.length]=a[192|f>>6]+a[128|63&f]:f<55296||f>=57344?p[p.length]=a[224|f>>12]+a[128|f>>6&63]+a[128|63&f]:(h+=1,f=65536+((1023&f)<<10|1023&d.charCodeAt(h)),p[p.length]=a[240|f>>18]+a[128|f>>12&63]+a[128|f>>6&63]+a[128|63&f])}c+=p.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)}}},7763:(e,t,n)=>{"use strict";var r=n(5449);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}}
vendor: 5,265 bytes, line 2
2,7793:(e,t,n)=>{"use strict";let r,o,i,a,s=n(9371),l=n(5238),c=n(3152),{isClean:u,my:d}=n(4151);function p(e){return e.map((e=>(e.nodes&&(e.nodes=p(e.nodes)),delete e.source,e)))}function h(e){if(e[u]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)h(t)}class f extends c{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e))):"every"===t||"some"===t?n=>e[t](((e,...t)=>n(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,r=this.index(e),o=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of o)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r<n&&(this.indexes[e]=n+o.length);return this.markDirty(),this}insertBefore(e,t){let n,r=this.index(e),o=0===r&&"prepend",i=this.normalize(t,this.proxyOf.nodes[r],o).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)n=this.indexes[e],r<=n&&(this.indexes[e]=n+i.length);return this.markDirty(),this}normalize(e,t){if("string"==typeof e)e=p(o(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new l(e)]}else if(e.selector||e.selectors)e=[new a(e)];else if(e.name)e=[new r(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new s(e)]}return e.map((e=>(e[d]||f.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[u]&&h(e),e.raws||(e.raws={}),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)})):this.walk(((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)})):this.walk(((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)})):this.walk(((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}}f.registerParse=e=>{o=e},f.registerRule=e=>{a=e},f.registerAtRule=e=>{r=e},f.registerRoot=e=>{i=e},e.exports=f,f.default=f,f.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,r.prototype):"rule"===e.type?Object.setPrototypeOf(e,a.prototype):"decl"===e.type?Object.setPrototypeOf(e,l.prototype):"comment"===e.type?Object.setPrototypeOf(e,s.prototype):"root"===e.type&&Object.setPrototypeOf(e,i.prototype),e[d]=!0,e.nodes&&e.nodes.forEac
2h((e=>{f.rebuild(e)}))}},7827:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(6301),o={class:"md:grid md:grid-cols-3 md:gap-6"},i={class:"mt-5 md:mt-0 md:col-span-2"},a={class:"px-4 py-5 sm:p-6 bg-white shadow sm:rounded-lg"};var s=n(641),l=n(4131);const c=(0,s.pM)({components:{JetSectionTitle:l.A}});const u=(0,n(6262).A)(c,[["render",function(e,t,n,s,l,c){var u=(0,r.resolveComponent)("jet-section-title");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createVNode)(u,null,{title:(0,r.withCtx)((function(){return[(0,r.renderSlot)(e.$slots,"title")]})),description:(0,r.withCtx)((function(){return[(0,r.renderSlot)(e.$slots,"description")]})),_:3}),(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.renderSlot)(e.$slots,"content")])])])}]])},7872:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,o){var i=n(e),a=n(t),s="("===(o=o||"()")[0],l=")"===o[1];return(s?this.isAfter(i,r):!this.isBefore(i,r))&&(l?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(i,r):!this.isAfter(i,r))&&(l?this.isAfter(a,r):!this.isBefore(a,r))}}}()},7977:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6301),o=["value"];const i=(0,n(641).pM)({emits:["update:checked"],props:{checked:{type:[Array,Boolean],default:!1},value:{default:null}},computed:{proxyChecked:{get:function(){return this.checked},set:function(e){this.$emit("update:checked",e)}}}});const a=(0,n(6262).A)(i,[["render",function(e,t,n,i,a,s){return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("input",{type:"checkbox",value:e.value,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.proxyChecked=t}),class:"rounded border-gray-300 text-indigo-600 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"},null,8,o)),[[r.vModelCheckbox,e.proxyChecked]])}]])},7980:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7987:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>F});var r=n(6301),o={class:"px-4 py-6 xl:container xl:mx-auto"},i={class:"lg:flex lg:gap-x-6 lg:h-full"},a={class:"flex-shrink-0"},s={class:"hidden lg:block sticky top-24"},l={class:"mb-8 lg:hidden"},c={class:"flex-grow"},u={class:"mb-2"},d={class:"divide-y divide-gray-200"},p={class:"flex items-center gap-2"},h=["src"],f={class:"flex-grow"},m={class:"flex items-center flex-wrap"},g={class:"flex gap-2 flex-wrap"},v={class:"flex lg:hidden gap-2 items-center mt-2"},y={class:"flex flex-col lg:hidden"},b=["onClick","title"],x={class:"hidden lg:flex gap-2 items-center"},w={class:"flex items-center"},k={class:"",title:"Likes"},_={class:"ml-1",title:"Kommentare"},E={class:"flex"},C=["onClick","title"],N={key:0,class:"flex justify-center mt-4"},S={key:0,class:"rounded-full bg-slate-100 flex items-center mb-4"},V={key:1,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},A={key:3,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},D={class:"py-2 h-full flex items-center first:rounded-l-full last:rounded-r-full px-3"},M={key:5,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},T={key:7,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},B={class:"font-semibold"};var O=n(641),P=n(8367),L=n(6581),I=n(6153),j=n(1963),R=n(1857),$=n(756);const z=(0,O.pM)({layout:P.A,props:["events"],components:{LmAccordion:L.A,LmProfileMenu:I.A,categoryBadge:j.A,JetDropdown:R.A,DialogModal:$.A},data:function(){return{deleteeventData:{title:null,id:null},deleteModal:!1}},methods:{updateDeleteInfo:function(e,t){this.deleteeventData.title=e,this.deleteeventData.id=t,this.deleteModal=!0},confirmDeleteevent:function(){this.$inertia.post(route("annonces.delete",{commune:this.$page.props.commune.slug}),{annonce_id:this.deleteeventData.id},{preserveState:!1})},statusClass:function(e){switch(e.status){case 0:return"text-gray-600";case 1:return"text-lm-blue";case 2:return"text-emerald-700"}}},computed:{currentPage:function(){switch(this.route().current()){case"profile.show":return'<i class="bi bi-pers
2on-lines-fill mr-2"></i>'+this.__("Mein Profil");case"profile.notifications":return'<i class="bi bi-bell mr-2"></i>'+this.__("Benachrichtigungen");case"profile.messages":return'<i class="bi bi-chat-dots mr-2"></i>'+this.__("Nachrichten");case"profile.events":return'<i class="bi bi-calendar2-event mr-2"></i>'+this.__("Meine Events");case"profile.events":return'<i class="bi bi-megaphone mr-2"></i>'+this.__("Meine Anzeigen")}}}});const F=(0,n(6262).A)(z,[["render",function(e,t,n,O,P,L){var I=this,j=(0,r.resolveComponent)("lm-profile-menu"),R=(0,r.resolveComponent)("lm-accordion"),$=(0,r.resolveComponent)("Text"),z=(0,r.resolveComponent)("Link"),F=(0,r.resolveComponent)("category-badge"),H=(0,r.resolveComponent)("jet-dropdown"),U=(0,r.resolveComponent)("dialog-modal");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",s,[(0,r.createVNode)(j)]),(0,r.createElementVNode)("div",l,[(0,r.createVNode)(R,{title:e.currentPage},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(j)]})),_:1},8,["title"])])]),(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("div",u,[(0,r.createVNode)($,{type:"h2",text:e.__("Meine Events")},null,8,["text"])]),(0,r.createElementVNode)("div",d,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.events.data,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"flex lg:items-center lg:justify-between w-full p-2 flex-col lg:flex-row",key:o},[(0,r.createElementVNode)("div",p,[n.header_image_url?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,src:n.header_image_url,class:"block h-12 sm:h-20 w-12 sm:w-20 rounded-sm object-cover mr-2"},null,8,h)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",f,[(0,r.createElementVNode)("div",m,[(0,r.createVNode)(z,{class:"text-xl mr-2",href:e.route("annonces.show",{commune:e.$page.props.commune.slug,annonce:n.id,slug:n.slug}),title:e.__("Titel")},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(n.title),1)]})),_:2},1032,["href","title"]),(0,r.createVNode)(F,{category:n.category},null,8,["category"])]),(0,r.createElementVNode)("div",g,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.tags,(function(n,o){return(0,r.openBlock)(),(0,r.createBlock)(z,{href:e.route("events.index",{commune:e.$page.props.commune.slug,tag:n.name.nl}),class:"px-2 py-1 bg-slate-100 hover:bg-slate-200 rounded-md text-sm transition-colors",key:o},{default:(0,r.withCtx)((function(){return[t[3]||(t[3]=(0,r.createElementVNode)("i",{class:"bi bi-hash"},null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(n.name.nl),1)]})),_:2},1032,["href"])})),128))]),(0,r.createElementVNode)("div",v,[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(e.statusClass(n))},(0,r.toDisplayString)(n.statusTranslated),3)])]),(0,r.createElementVNode)("div",y,[(0,r.createVNode)(z,{class:"transition-colors bg-slate-100 hover:bg-slate-200 px-3 py-2 rounded-t-md",href:e.route("annonces.edit",{commune:I.$page.props.commune.slug,annonce:n.id,slug:n.slug}),title:e.__("Bearbeiten")},{default:(0,r.withCtx)((function(){return t[4]||(t[4]=[(0,r.createElementVNode)("button",null,[(0,r.createElementVNode)("i",{class:"bi bi-pencil"})],-1)])})),_:2},1032,["href","title"]),(0,r.createVNode)(z,{class:"transition-colors bg-slate-100 hover:bg-slate-200 px-3 py-2",href:e.route("annonces.copy",{commune:e.$page.props.commune.slug,annonce:n.id,slug:n.slug}),title:e.__("Kopieren")},{default:(0,r.withCtx)((function(){return t[5]||(t[5]=[(0,r.createElementVNode)("button",null,[(0,r.createElementVNode)("i",{class:"bi bi-back"})],-1)])})),_:2},1032,["href","title"]),(0,r.createElementVNode)("button",{onClick:function(t){return e.updateDeleteInfo(n.title,n.id)},class:"transition-colors bg-slate-100 hover:bg-red-800 hover:text-white px-3 py-2 rounded-b-md",href:"#",title:e.__("Löschen")},t[6]||(t[6]=[(0,r.createElementVNode)("i",{class:"bi bi-trash"},null,-1)]),8,b)])]),(0,r.createElementVNode)("div",x,[(0,r.createElementVNode)("div",w,[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(e.statusClass(n))},(0,r.toDisplayString)(n.statusTranslated),3)]),(0,r.createElementVNode)("span",k,[t[7]||(t[7]=(0,r.createElementVNode)("i",{class:"bi bi-hand-thumbs-up"},null,-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(n.likes_count),1)]),(0,r.createElementVNode)("span",_,[t[8]||(t[8]=(0,r.createElementVNode)("i",{class:"bi bi-chat"},null,-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(n.comments_count),1)]),(0,r.createVNode)(H,{width:"auto",contentClasses:"bg-white"},{trigger:(0,r.withCtx)((function(){return t[9]||(t[9]=[(0,r.createElementVNode)("button",{class:"btn-icon"},[(0,r.createElementVNode)("i",{class:"bi bi-three-dots"})],-1)])})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",E,[(0,r.createVNode)(z,{class:"transition-colors bg-slate-100 hover:bg-slate-200 px-3 py-2 rounded-l-md",href:e.route("annonces.edit",{commune:I.$page.props.commune.slug,annonce:n.id,slug:n.slug}),title:e.__("Bearbeiten")},{default:(0,r.withCtx)((function(){return t[10]||(t[10]=[(0,r.createElementVNode)("button",null,[(0,r.createElementVNode)("i",{class:"bi bi-pencil"})],-1)])})),_:2},1032,["href","title"]),(0,r.createVNode)(z,{class:"transition-colors bg-slate-100 hover:bg-slate-200 px-3 py-2",href:e.route("annonces.copy",{commune:e.$page.props.commune.slug,annonce:n.id,slug:n.slug}),title:e.__("Kopieren")},{default:(0,r.withCtx)((function(){return t[11]||(t[11]=[(0,r.createElementVNode)("button",null,[(0,r.createElementVNode)("i",{class:"bi bi-back"})],-1)])})),_:2},1032,["href","title"]),(0,r.createElementVNode)("button",{onClick:function(t){return e.updateDeleteInfo(n.title,n.id)},class:"transition-colors bg-slate-100 hover:bg-red-800 hover:text-white px-3 py-2 rounded-r-md",href:"#",title:e.__("Löschen")},t[12]||(t[12]=[(0,r.createElementVNode)("i",{class:"bi bi-trash"},null,-1)]),8,C)])]})),_:2},1024)])])})),128))]),e.events.last_page>1?((0,r.openBlock)(),(0,r.createElementBlock)("div",N,[e.events.data.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",S,[e.events.current_page>1?((0,r.openBlock)(),(0,r.createBlock)(z,{key:0,href:e.events.first_page_url,class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[13]||(t[13]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-left"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),1===e.events.current_page?((0,r.openBlock)(),(0,r.createElementBlock)("div",V,t[14]||(t[14]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-left"},null,-1)]))):(0,r.createCommentVNode)("",!0),e.events.prev_page_url?((0,r.openBlock)(),(0,r.createBlock)(z,{key:2,href:e.events.prev_page_url,class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[15]||(t[15]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-left"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),1===e.events.current_page?((0,r.openBlock)(),(0,r.createElementBlock)("div",A,t[16]||(t[16]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-left"},null,-1)]))):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",D,(0,r.toDisplayString)(e.events.current_page+" / "+e.events.last_page),1),e.events.next_page_url?((0,r.openBlock)(),(0,r.createBlock)(z,{key:4,href:e.events.next_page_url,class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[17]||(t[17]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-right"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),e.events.next_page_url?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",M,t[18]||(t[18]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-right"},null,-1)]))),e.events.current_page<e.events.last_page?((0,r.openBlock)(),(0,r.createBlock)(z,{key:6,href:e.events.last_page_url,class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[19]||(t[19]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-right"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),e.events.current_page===e.events.last_page?((0,r.openBlock)(),(0,r.createElementBlock)("div",T,t[20]||(t[20]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-right"},null,-1)]))):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)])])]),(0,r.createVNode)(U,{show:e.deleteModal,onClose:t[2]||(t[2]=function(t){return e.deleteModal=!1})},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Anzeige löschen")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("p",B,(0,r.toDisplayString)(e.__("Sind Sie sicher?")),1),(0,r.createElementVNode)("p",null," «"+(0,r.toDisplayString)(e.deleteeventData.title)+"» "+(0,r.toDisplayString)(e.__("delete event text")),1)]})),footer:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(t){return e.deleteModal=!1}),class:"mr-4"},(0,r.toDisplayString)(e.__("Abbrechen")),1),(0,r.createElementVNode)("button",{onClick:t[1]||(t[1]=function(){return e.confirmDeleteevent&&e.confirmDeleteevent.apply(e,arguments)}),class:"bg-red-700 hover:bg-red-800 px-3 py-2 rounded-md text-white"},(0,r.toDisplayString)(e.__("Löschen")),1)]})),_:1},8,["show"])])}]])},8002:e=>{"use strict";e.exports=Math.min},8015:(e,t,n)=>{"use strict";var r=n(9516),o=n(9012),i=n(5155),a=n(5343);function s(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var l=s(n(6987));l.Axios=i,l.create=function(e){return s(a(l.defaults,e))},l.Cancel=n(1928),l.CancelToken=n(3191),l.isCancel=n(3864),l.all=function(e){return Promise.all(e)},l.spread=n(7980),l.isAxiosError=n(5019),e.exports=l,e.exports.default=l},8045:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6301);const o=(0,n(641).pM)({});const i=(0,n(6262).A)(o,[["render",function(e,t,n,o,i,a){var s=(0,r.resolve
vendor: 4,115 bytes, line 2
2Component)("Link");return(0,r.openBlock)(),(0,r.createBlock)(s,{href:"/"},{default:(0,r.withCtx)((function(){return t[0]||(t[0]=[(0,r.createElementVNode)("svg",{class:"w-16 h-16",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r.createElementVNode)("path",{d:"M11.395 44.428C4.557 40.198 0 32.632 0 24 0 10.745 10.745 0 24 0a23.891 23.891 0 0113.997 4.502c-.2 17.907-11.097 33.245-26.602 39.926z",fill:"#6875F5"}),(0,r.createElementVNode)("path",{d:"M14.134 45.885A23.914 23.914 0 0024 48c13.255 0 24-10.745 24-24 0-3.516-.756-6.856-2.115-9.866-4.659 15.143-16.608 27.092-31.75 31.751z",fill:"#6875F5"})],-1)])})),_:1})}]])},8068:e=>{"use strict";e.exports=SyntaxError},8142:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",p="[object Number]",h="[object Object]",f="[object Promise]",m="[object RegExp]",g="[object Set]",v="[object String]",y="[object Symbol]",b="[object WeakMap]",x="[object ArrayBuffer]",w="[object DataView]",k=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,E={};E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E[i]=E[a]=E[x]=E[s]=E[w]=E[l]=E[c]=E[u]=E[d]=E[p]=E[h]=E[m]=E[g]=E[v]=E[b]=!1;var C="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,N="object"==typeof self&&self&&self.Object===Object&&self,S=C||N||Function("return this")(),V=t&&!t.nodeType&&t,A=V&&e&&!e.nodeType&&e,D=A&&A.exports===V,M=D&&C.process,T=function(){try{return M&&M.binding&&M.binding("util")}catch(e){}}(),B=T&&T.isTypedArray;function O(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function P(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function L(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var I,j,R,$=Array.prototype,z=Function.prototype,F=Object.prototype,H=S["__core-js_shared__"],U=z.toString,W=F.hasOwnProperty,q=(I=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"",Y=F.toString,G=RegExp("^"+U.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),K=D?S.Buffer:void 0,J=S.Symbol,X=S.Uint8Array,Z=F.propertyIsEnumerable,Q=$.splice,ee=J?J.toStringTag:void 0,te=Object.getOwnPropertySymbols,ne=K?K.isBuffer:void 0,re=(j=Object.keys,R=Object,function(e){return j(R(e))}),oe=Te(S,"DataView"),ie=Te(S,"Map"),ae=Te(S,"Promise"),se=Te(S,"Set"),le=Te(S,"WeakMap"),ce=Te(Object,"create"),ue=Le(oe),de=Le(ie),pe=Le(ae),he=Le(se),fe=Le(le),me=J?J.prototype:void 0,ge=me?me.valueOf:void 0;function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xe(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new be;++t<n;)this.add(e[t])}function we(e){var t=this.__data__=new ye(e);this.size=t.size}function ke(e,t){var n=Re(e),r=!n&&je(e),o=!n&&!r&&$e(e),i=!n&&!r&&!o&&We(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!W.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Pe(c,l))||s.push(c);return s}function _e(e,t){for(var n=e.length;n--;)if(Ie(e[n][0],t))return n;return-1}function Ee(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ee&&ee in Object(e)?function(e){var t=W.call(e,ee),n=e[ee];try{e[ee]=void 0;var r=!0}catch(e){}var o=Y.call(e);r&&(t?e[ee]=n:delete e[ee]);return o}(e):function(e){return Y.call(e)}(e)}function Ce(e){return Ue(e)&&Ee(e)==i}function Ne(e,t,n,r,o){return e===t||(null==e||null==t||!Ue(e)&&!Ue(t)?e
vendor: 5,351 bytes, line 2
2!=e&&t!=t:function(e,t,n,r,o,u){var f=Re(e),b=Re(t),k=f?a:Oe(e),_=b?a:Oe(t),E=(k=k==i?h:k)==h,C=(_=_==i?h:_)==h,N=k==_;if(N&&$e(e)){if(!$e(t))return!1;f=!0,E=!1}if(N&&!E)return u||(u=new we),f||We(e)?Ae(e,t,n,r,o,u):function(e,t,n,r,o,i,a){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!i(new X(e),new X(t)));case s:case l:case p:return Ie(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case v:return e==t+"";case d:var u=P;case g:var h=1&r;if(u||(u=L),e.size!=t.size&&!h)return!1;var f=a.get(e);if(f)return f==t;r|=2,a.set(e,t);var b=Ae(u(e),u(t),r,o,i,a);return a.delete(e),b;case y:if(ge)return ge.call(e)==ge.call(t)}return!1}(e,t,k,n,r,o,u);if(!(1&n)){var S=E&&W.call(e,"__wrapped__"),V=C&&W.call(t,"__wrapped__");if(S||V){var A=S?e.value():e,D=V?t.value():t;return u||(u=new we),o(A,D,n,r,u)}}if(!N)return!1;return u||(u=new we),function(e,t,n,r,o,i){var a=1&n,s=De(e),l=s.length,c=De(t),u=c.length;if(l!=u&&!a)return!1;var d=l;for(;d--;){var p=s[d];if(!(a?p in t:W.call(t,p)))return!1}var h=i.get(e);if(h&&i.get(t))return h==t;var f=!0;i.set(e,t),i.set(t,e);var m=a;for(;++d<l;){var g=e[p=s[d]],v=t[p];if(r)var y=a?r(v,g,p,t,e,i):r(g,v,p,e,t,i);if(!(void 0===y?g===v||o(g,v,n,r,i):y)){f=!1;break}m||(m="constructor"==p)}if(f&&!m){var b=e.constructor,x=t.constructor;b==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(f=!1)}return i.delete(e),i.delete(t),f}(e,t,n,r,o,u)}(e,t,n,r,Ne,o))}function Se(e){return!(!He(e)||function(e){return!!q&&q in e}(e))&&(ze(e)?G:k).test(Le(e))}function Ve(e){if(!function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||F;return e===n}(e))return re(e);var t=[];for(var n in Object(e))W.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ae(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,d=!0,p=2&n?new xe:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var h=e[u],f=t[u];if(r)var m=a?r(f,h,u,t,e,i):r(h,f,u,e,t,i);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!O(t,(function(e,t){if(a=t,!p.has(a)&&(h===e||o(h,e,n,r,i)))return p.push(t);var a}))){d=!1;break}}else if(h!==f&&!o(h,f,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function De(e){return function(e,t,n){var r=t(e);return Re(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,qe,Be)}function Me(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Te(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Se(n)?n:void 0}ve.prototype.clear=function(){this.__data__=ce?ce(null):{},this.size=0},ve.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ve.prototype.get=function(e){var t=this.__data__;if(ce){var n=t[e];return n===r?void 0:n}return W.call(t,e)?t[e]:void 0},ve.prototype.has=function(e){var t=this.__data__;return ce?void 0!==t[e]:W.call(t,e)},ve.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ce&&void 0===t?r:t,this},ye.prototype.clear=function(){this.__data__=[],this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=_e(t,e);return!(n<0)&&(n==t.length-1?t.pop():Q.call(t,n,1),--this.size,!0)},ye.prototype.get=function(e){var t=this.__data__,n=_e(t,e);return n<0?void 0:t[n][1]},ye.prototype.has=function(e){return _e(this.__data__,e)>-1},ye.prototype.set=function(e,t){var n=this.__data__,r=_e(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},be.prototype.clear=function(){this.size=0,this.__data__={hash:new ve,map:new(ie||ye),string:new ve}},be.prototype.delete=function(e){var t=Me(this,e).delete(e);return this.size-=t?1:0,t},be.prototype.get=function(e){return Me(this,e).get(e)},be.prototype.has=function(e){return Me(this,e).has(e)},be.prototype.set=function(e,t){var n=Me(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},xe.prototype.add=xe.prototype.push=function(e){return this.__data__.set(e,r),this},xe.prototype.has=function(e){return this.__data__.has(e)},we.prototype.clear=function(){this.__data__=new ye,this.size=0},we.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},we.prototype.get=function(e){return this.__data__.get(e)},we.prototype.has=function(e){return this.__data__.has(e)},we.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ye){var r=n.__data__;if(!ie||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new be(r)}return n.set(e,t),this.size=n.size,this};var Be=te?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(te(e),(function(t){return Z.call(e,t)})))}:function(){return[]},Oe=Ee;function Pe(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||_.test(e))&&e>-1&&e%1==0&&e<t}function Le(e){if(null!=e){try{return U.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ie(e,t){return e===t||e!=e&&t!=t}(oe&&Oe(new oe(new ArrayBuffer(1)))!=w||ie&&Oe(new ie)!=d||ae&&Oe(ae.resolve())!=f||se&&Oe
2(new se)!=g||le&&Oe(new le)!=b)&&(Oe=function(e){var t=Ee(e),n=t==h?e.constructor:void 0,r=n?Le(n):"";if(r)switch(r){case ue:return w;case de:return d;case pe:return f;case he:return g;case fe:return b}return t});var je=Ce(function(){return arguments}())?Ce:function(e){return Ue(e)&&W.call(e,"callee")&&!Z.call(e,"callee")},Re=Array.isArray;var $e=ne||function(){return!1};function ze(e){if(!He(e))return!1;var t=Ee(e);return t==u||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Fe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function He(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ue(e){return null!=e&&"object"==typeof e}var We=B?function(e){return function(t){return e(t)}}(B):function(e){return Ue(e)&&Fe(e.length)&&!!E[Ee(e)]};function qe(e){return function(e){return null!=e&&Fe(e.length)&&!ze(e)}(e)?ke(e):Ve(e)}e.exports=function(e,t){return Ne(e,t)}},8172:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(6301),o={class:"2xl:container"},i={class:"sm:flex flex justify-between"},a={class:"flex items-center justify-center w-full"},s={class:"flex flex-col gap-4"},l={class:"flex items-end justify-between flex-grow gap-4"},c=["onClick"],u={style:{width:"100%","max-width":"500px"}};var d=n(641),p=n(5720),h=n(9234),f=n(9506),m=n(6581),g=n(1678),v=n(1798);const y=(0,d.pM)({props:{ads:Object},data:function(){return{adsData:[],drag:!1}},layout:p.A,components:{Head:h.p3,LmInputText:f.zX,LmInputFile:f.M3,LmAccordion:m.A,draggable:g.H,LmAdImage:v.A},mounted:function(){this.adsData=this.ads||[]},computed:{dragOptions:function(){return{animation:200,group:"description",disabled:!1,ghostClass:"ghost"}}},methods:{addNew:function(){this.adsData.unshift({id:null,title:"Exemple",link:"www.example.com",image:"",order:1}),this.updateOrder()},updateOrder:function(){for(var e=0;e<this.adsData.length;e++)this.adsData[e].order=e+1},deleteAd:function(e){confirm(this.__("Diese Ad löschen?"))&&this.$inertia.post(route("admin.ads.delete",{commune:this.$page.props.commune.slug}),{id:e},{preserveState:!1})},uploadedAdImage:function(e,t){var n=t,r=new FileReader;r.onloadend=function(){e.image=r.result}
2,r.readAsDataURL(n)},save:function(){var e=this;(0,h.mN)(this.adsData).post(route("admin.ads.update",{commune:this.$page.props.commune.slug}),{onSuccess:function(){e.$inertia.reload({only:["adsData"]}),e.adsData=e.ads}})}}});var b=n(5072),x=n.n(b),w=n(4702),k={insert:"head",singleton:!1};x()(w.A,k);w.A.locals;const _=(0,n(6262).A)(y,[["render",function(e,t,n,d,p,h){var f=(0,r.resolveComponent)("Head"),m=(0,r.resolveComponent)("Text"),g=(0,r.resolveComponent)("lm-input-text"),v=(0,r.resolveComponent)("lm-input-file"),y=(0,r.resolveComponent)("lm-accordion"),b=(0,r.resolveComponent)("draggable"),x=(0,r.resolveComponent)("lm-ad-image");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createVNode)(f,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("title",null,(0,r.toDisplayString)(e.__("Ads")),1)]})),_:1}),(0,r.createVNode)(m,{type:"h1",text:e.__("Ads")},null,8,["text"]),t[6]||(t[6]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createElementVNode)("div",i,[(0,r.createVNode)(m,{type:"h2",text:e.__("All ads")},null,8,["text"]),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("button",{class:"btn-secondary mb-6 mr-4",onClick:t[0]||(t[0]=function(){return e.addNew&&e.addNew.apply(e,arguments)})},(0,r.toDisplayString)(e.__("New ad")),1),(0,r.createElementVNode)("button",{class:"btn-primary mb-6",onClick:t[1]||(t[1]=function(){return e.save&&e.save.apply(e,arguments)})},(0,r.toDisplayString)(e.__("Speichern")),1)])]),(0,r.createVNode)(b,(0,r.mergeProps)({list:e.adsData,onChange:e.updateOrder,handle:".drag-trigger"},e.dragOptions),{default:(0,r.withCtx)((function(){return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.adsData,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n.id,class:"text-left"},[(0,r.createVNode)(y,{title:"".concat(n.title),chevron:!1},{header:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",{class:"drag-trigger px-2 cursor-move",onMousedown:t[2]||(t[2]=function(t){return e.drag=!e.drag})},t[3]||(t[3]=[(0,r.createElementVNode)("i",{class:"bi bi-arrows-move"},null,-1)]),32)])]})),default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(g,{maxlength:"60",label:e.__("Ad title"),modelValue:n.title,"onUpdate:modelValue":function(e){return n.title=e}},null,8,["label","modelValue","onUpdate:modelValue"]),(0,r.createVNode)(g,{maxlength:"100",label:e.__("Ad link"),modelValue:n.link,"onUpdate:modelValue":function(e){return n.link=e}},null,8,["label","modelValue","onUpdate:modelValue"])]),(0,r.createElementVNode)("div",l,[n.image?((0,r.openBlock)(),(0,r.createBlock)(v,{key:1,fileTypes:"image/*",label:e.__("Ad image"),onOnfilechange:function(t){return e.uploadedAdImage(n,t)},placeholder:e.__("Change image")},null,8,["label","onOnfilechange","placeholder"])):((0,r.openBlock)(),(0,r.createBlock)(v,{key:0,fileTypes:"image/*",label:e.__("Ad image"),onOnfilechange:function(t){return e.uploadedAdImage(n,t)},placeholder:e.__("Upload image")},null,8,["label","onOnfilechange","placeholder"])),(0,r.createElementVNode)("button",{class:"text-red-500 self-end",onClick:function(t){return e.deleteAd(n)}},(0,r.toDisplayString)(e.__("Löschen")),9,c)])])]})),_:2},1032,["title"])])})),128))]})),_:1},16,["list","onChange"]),t[7]||(t[7]=(0,r.createElementVNode)("br",null,null,-1)),t[8]||(t[8]=(0,r.createElementVNode)("hr",null,null,-1)),t[9]||(t[9]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createVNode)(m,{type:"h2",text:e.__("Ads overview")},null,8,["text"]),t[10]||(t[10]=(0,r.createElementVNode)("br",null,null,-1)),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.adsData,(function(e,n){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,class:"justify-between text-left"},[t[4]||(t[4]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createVNode)(m,{type:"h3",text:e.title},null,8,["text"]),t[5]||(t[5]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createElementVNode)("div",u,[(0,r.createVNode)(x,{image:e.image,link:e.link},null,8,["image","link"])])])})),128))])}],["__scopeId","data-v-648c647f"]])},8244:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(6301),o={class:"w-screen h-screen flex justify-center items-center"},i={class:"rounded-md bg-slate-100 shadow-md px-8 py-6"};const a=(0,n(641).pM)({});const s=(0,n(6262).A)(a,[["render",function(e,t,n,a,s,l){var c=(0,r.resolve
vendor: 4,852 bytes, line 2
2Component)("Text"),u=(0,r.resolveComponent)("Link");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createVNode)(c,{type:"h1",text:"404"}),(0,r.createVNode)(c,{class:"pt-5",type:"h2",text:"Seite nicht gefunden."}),t[1]||(t[1]=(0,r.createElementVNode)("p",{class:"mb-4"}," Leider konnten wir die von Ihnen gesuchte Seite nicht finden. ",-1)),(0,r.createVNode)(u,{href:e.route("landingpage.home"),class:"btn-primary bg-lm-blue hover:bg-lm-light-blue text-white"},{default:(0,r.withCtx)((function(){return t[0]||(t[0]=[(0,r.createTextVNode)("Zurück zur Startseite")])})),_:1},8,["href"])])])}]])},8287:(e,t,n)=>{"use strict";var r=n(7526),o=n(251),i=n(4634);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(t,n);e=s(e,r);var o=e.write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):p(e,t);if("Buffer"===t.type&&i(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|h(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return D(this,t,n);case"utf8":case"utf-8":return N(this,t,n);case"ascii":return V(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;
vendor: 14,536 bytes, line 2
2a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var d=!0,p=0;p<l;p++)if(c(e,i+p)!==c(t,p)){d=!1;break}if(d)return i}return-1}function b(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function x(e,t,n,r){return H(z(t,e.length-n),e,n,r)}function w(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function k(e,t,n,r){return w(e,t,n,r)}function _(e,t,n,r){return H(F(t),e,n,r)}function E(e,t,n,r){return H(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function N(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,l,c=e[o],u=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=d}return function(e){var t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=S));return n}(r)}t.hp=l,t.IS=50,l.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?N(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.IS;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),u=e.slice(t,n),d=0;d<s;++d)if(c[d]!==u[d]){i=c[d],a=u[d];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return _(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function V(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function D(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=$(e[i]);return o}function M(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function T(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function O(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function P(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function L(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(e,t,n,r,i){return i||L(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,i){return i||L(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;n=new l(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return t||T(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||T(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||T(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||T(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||T(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||T(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||T(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||B(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||B(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);B(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);B(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return I(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return I(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=l.isBuffer(e)?e:z(new l(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var R=/[^+\/0-9A-Za-z-_]/g;function $(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>
vendor: 6,307 bytes, line 2
2-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function F(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}},8290:(e,t,n)=>{window._=n(2543),window.axios=n(2505),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest"},8339:(e,t,n)=>{"use strict";let r=n(396),o=n(9371),i=n(5238),a=n(5644),s=n(1534),l=n(5781);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,n,o,i=new r;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let a=!1,s=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(l.length>0){for(o=l.length-1,n=l[o];n&&"space"===n[0];)n=l[--o];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),a&&(e=l[l.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let o=t-1;o>=0&&(n=e[o],"space"===n[0]||(r+=1,2!==r));o--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,r,o=0;for(let[i,a]of e.entries()){if(n=a,r=n[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(t){if("word"===t[0]&&"progid"===t[1])continue;return i}this.doubleColon(n)}t=n}return!1}comment(e){let t=new o;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=l(this.input)}decl(e,t){let n=new i;this.init(n,e[0][2]);let r,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let a,s=[];for(;e.length&&(a=e[0][0],"space"===a||"comment"===a);)s.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),o="";for(let e=t;e>0;e--){let t=r[e][0];if(o.trim().startsWith("!")&&"space"!==t)break;o=r.pop()[1]+o}o.trim().startsWith("!")&&(n.important=!0,n.raws.important=o,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(n.raws.between+=s.map((e=>e[1])).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new s;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,o=null,i=[],a=e[1].startsWith("--"),s=[],l=e;for(;l;){if(n=l[0],s.push(l),"("===n||"["===n)o||(o=l),i.push("("===n?")":"]");else if(a&&r&&"{"===n)o||(o=l),i.push("}");else if(0===i.length){if(";"===n){if(r)return void this.decl(s,a);break}if("{"===n)return void this.rule(s);if("}"===n){this.tokenizer.back(s.pop()),t=!0;break}":"===n&&(r=!0)}else n===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));l=this.tokenizer.nextToken()}
2if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&r){if(!a)for(;s.length&&(l=s[s.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let o,i,a,s,l=n.length,u="",d=!0;for(let e=0;e<l;e+=1)o=n[e],i=o[0],"space"!==i||e!==l-1||r?"comment"===i?(s=n[e-1]?n[e-1][0]:"empty",a=n[e+1]?n[e+1][0]:"empty",c[s]||c[a]||","===u.slice(-1)?d=!1:u+=o[1]):u+=o[1]:d=!1;if(!d){let r=n.reduce(((e,t)=>e+t[1]),"");e.raws[t]={raw:r,value:u}}e[t]=u}rule(e){e.pop();let t=new s;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}},8351:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(6301),o={class:"max-w-xl text-sm text-gray-600"},i={class:"mt-5"},a={class:"mt-4"};var s=n(7827),l=n(756),c=n(4736),u=n(4296),d=n(6786),p=n(4312);const h=(0,r.defineComponent)({components:{JetActionSection:s.A,JetDangerButton:c.A,JetDialogModal:l.A,JetInput:u.A,JetInputError:d.A,JetSecondaryButton:p.A},data:function(){return{confirmingUserDeletion:!1,form:this.$inertia.form({password:""})}},methods:{confirmUserDeletion:function(){var e=this;this.confirmingUserDeletion=!0,setTimeout((function(){return e.$refs.password.focus()}),250)},deleteUser:function(){var e=this;this.form.delete(route("current-user.destroy"),{preserveScroll:!0,onSuccess:function(){return e.closeModal()},onError:function(){return e.$refs.password.focus()},onFinish:function(){return e.form.reset()}})},closeModal:function(){this.confirmingUserDeletion=!1,this.form.reset()}}});const f=(0,n(6262).A)(h,[["render",function(e,t,n,s,l,c){var u=(0,r.resolveComponent)("jet-danger-button"),d=(0,r.resolveComponent)("jet-input"),p=(0,r.resolveComponent)("jet-input-error"),h=(0,r.resolveComponent)("jet-secondary-button"),f=(0,r.resolveComponent)("jet-dialog-modal"),m=(0,r.resolveComponent)("jet-action-section");return(0,r.openBlock)(),(0,r.createBlock)(m,null,{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Delete Account")),1)]})),description:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Permanently delete your account.")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",o,(0,r.toDisplayString)(e.__("Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain.")),1),(0,r.createElementVNode)("div",i,[(0,r.createVNode)(u,{onClick:e.confirmUserDeletion},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Delete Account")),1)]})),_:1},8,["onClick"])]),(0,r.createVNode)(f,{show:e.confirmingUserDeletion,onClose:e.closeModal},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Delete Account")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Are you sure you want to delete your account? O
2nce your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account."))+" ",1),(0,r.createElementVNode)("div",a,[(0,r.createVNode)(d,{type:"password",class:"mt-1 block w-3/4",placeholder:e.__("Password"),ref:"password",modelValue:e.form.password,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.form.password=t}),onKeyup:(0,r.withKeys)(e.deleteUser,["enter"])},null,8,["placeholder","modelValue","onKeyup"]),(0,r.createVNode)(p,{message:e.form.errors.password,class:"mt-2"},null,8,["message"])])]})),footer:(0,r.withCtx)((function(){return[(0,r.createVNode)(h,{onClick:e.closeModal},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Cancel")),1)]})),_:1},8,["onClick"]),(0,r.createVNode)(u,{class:(0,r.normalizeClass)(["ml-2",{"opacity-25":e.form.processing}]),onClick:e.deleteUser,disabled:e.form.processing},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Delete Account")),1)]})),_:1},8,["onClick","class","disabled"])]})),_:1},8,["show","onClose"])]})),_:1})}]])},8367:(e,t,n)=>{"use strict";n.d(t,{A:()=>L});var r=n(6301),o={class:"relative z-60"},i={class:"p-4 bg-gray-50 sm:p-6 mt-8"},a={class:"mx-auto max-w-screen-xl"},s={class:"xl:container xl:mx-auto flex justify-between text-sm font-medium flex-col md:flex-row"},l={class:"w-full md:w-1/3"},c={class:"mb-2"},u=["href"],d={class:"mb-2"},p={class:"mb-2"},h={class:"mb-2"},f={class:"w-full md:w-1/3"},m={class:"text-gray-600"},g={class:"mb-2"},v={class:"mb-2"},y={class:"mb-2"},b={class:"mb-2"},x={class:"mb-2"},w={class:"mb-2"},k=["href"],_={class:"sm:flex sm:items-center sm:justify-between"},E={class:"text-sm text-gray-500 sm:text-center"},C=["textContent"];var N=n(641),S=n(1857),V=n(8766),A=n(6523),D=n(4793),M=n(8646),T=n(166),B=n(4633),O=n(2368);const P=(0,N.pM)({components:{ApplicationLogo:O.A,CommuneHeader:D.A,TopBar:A.A,JetDropdown:S.A,LmLangSwitcher:V.A,LmNotification:T.A,LmProfileDropdown:B.A},data:function(){return{mobileNavOpen:!1,newMenuOpen:!1}},mounted:function(){var e=this;document.documentElement.style.setProperty("--cm-primary",this.$page.props.primary_color),document.documentElement.style.setProperty("--cm-secondary",this.$page.props.secondary_color),M.Inertia.on("success",(function(){e.closeMobileNav()}))},methods:{logout:function(){this.$inertia.post(route("logout"))},toggleMobileNav:function(){this.mobileNavOpen=!this.mobileNavOpen,this.newMenuOpen=!1},toggleNewMenu:function(){this.newMenuOpen=!this.newMenuOpen},closeMobileNav:function(){this.mobileNavOpen=!1,this.newMenuOpen=!1}}});const L=(0,n(6262).A)(P,[["render",function(e,t,n,N,S,V){var A,D,M,T=(0,r.resolveComponent)("TopBar"),B=(0,r.resolveComponent)("CommuneHeader"),O=(0,r.resolveComponent)("lm-notification"),P=(0,r.resolveComponent)("ApplicationLogo"),L=(0,r.resolveComponent)("Link"),I=(0,r.resolveComponent)("Text");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(T),(0,r.createVNode)(B),(0,r.createElementVNode)("main",{class:(0,r.normalizeClass)(["fe mb-16 lg:mb-0 relative z-10",{mobileNoScroll:e.mobileNavOpen}])},[(0,r.renderSlot)(e.$slots,"default")],2),(0,r.createElementVNode)("div",o,[(0,r.createVNode)(O)]),(0,r.createElementVNode)("footer",i,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",l,[(0,r.createVNode)(L,{href:e.route("landingpage.home"),class:"flex items-center"},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(P,{class:"h-8"})]})),_:1},8,["href"]),t[0]||(t[0]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(e.__("LeMemento se veut un espace de rencontre pour les personnes de votre région. Partagez des moments, des activités et des événements, partez à la rencontre de vos voisinsâ¯!")),1),t[1]||(t[1]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createElementVNode)("ul",null,[(0,r.createElementVNode)("li",c,[(0,r.createElementVNode)("a",{class:"lg:block hover:text-cm-primary transition-colors",href:e.route("landingpage.versions")},(0,r.toDisplayString)(e.__("Notes de version")),9,u)]),(0,r.createElementVNode)("li",d,[(0,r.createVNode)(L,{target:"_blank",class:"lg:block hover:text-cm-primary transition-colors",href:"docs/LeMemento_CGV.pdf"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Conditions générales de vente (CGV
2)")),1)]})),_:1})]),(0,r.createElementVNode)("li",p,[(0,r.createVNode)(L,{target:"_blank",class:"lg:block hover:text-cm-primary transition-colors",href:"docs/LeMemento_CGU.pdf"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Conditions générales d'utilisation (CGU)")),1)]})),_:1})]),(0,r.createElementVNode)("li",h,[(0,r.createVNode)(L,{target:"_blank",class:"lg:block hover:text-cm-primary transition-colors",href:"docs/LeMemento_Confidentialite.pdf"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Politique de confidentialité")),1)]})),_:1})])])]),(0,r.createElementVNode)("div",f,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(I,{type:"h3",as:"h2",text:e.__("Schneller Zugriff"),class:"mb-4"},null,8,["text"]),(0,r.createElementVNode)("ul",m,[(0,r.createElementVNode)("li",g,[(0,r.createVNode)(L,{class:(0,r.normalizeClass)([e.route().current("annonces.index")?"text-cm-primary":"text-gray-600","lg:block hover:text-cm-primary transition-colors"]),href:e.route("annonces.index",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Anzeigen")),1)]})),_:1},8,["class","href"])]),(0,r.createElementVNode)("li",v,[(0,r.createVNode)(L,{class:(0,r.normalizeClass)([e.route().current("annonces.events")?"text-cm-primary":"text-gray-600","lg:block hover:text-cm-primary transition-colors"]),href:e.route("annonces.events",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Events")),1)]})),_:1},8,["class","href"])]),(0,r.createElementVNode)("li",y,[(0,r.createVNode)(L,{class:(0,r.normalizeClass)([e.route().current("about.*")?"text-cm-primary":"text-gray-600","lg:block hover:text-cm-primary transition-colors"]),href:e.route("about",{commune:e.$page.props.commune.slug,commune_name:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Ãber"))+" "+(0,r.toDisplayString)(e.$page.props.commune.name),1)]})),_:1},8,["class","href"])]),(0,r.createElementVNode)("li",b,[e.route().current("manager.*")?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(L,{key:0,class:"lg:block hover:text-cm-primary transition-colors",href:e.route("profile.show",{commune:null===(A=e.$page.props.commune)||void 0===A?void 0:A.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Mein Profil")),1)]})),_:1},8,["href"]))]),(0,r.createElementVNode)("li",x,[!e.$page.props.user||1!=e.$page.props.role&&2!=e.$page.props.role&&!e.$page.props.user.superadmin||e.route().current("admin.*")||e.route().current("manager.*")?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(L,{key:0,class:"lg:block hover:text-cm-primary transition-colors",href:e.route("admin.index",{commune:null===(D=e.$page.props.commune)||void 0===D?void 0:D.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Admin-Bereich")),1)]})),_:1},8,["href"]))]),(0,r.createElementVNode)("li",w,[(0,r.createElementVNode)("a",{class:"lg:block hover:text-cm-primary transition-colors",href:e.route("landingpage.contact",{commune:null===(M=e.$page.props.commune)||void 0===M?void 0:M.slug})},(0,r.toDisplayString)(e.__("Kontakt")),9,k)])])])])]),t[5]||(t[5]=(0,r.createElementVNode)("hr",{class:"my-6 border-gray-200 sm:mx-auto lg:my-8"},null,-1)),(0,r.createElementVNode)("div",_,[(0,r.createElementVNode)("span",E,[t[2]||(t[2]=(0,r.createTextVNode)("© ")),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)((new Date).getFullYear())},null,8,C),t[3]||(t[3]=(0,r.createElementVNode)("a",{href:"https://seekers.ch",class:"ml-1 hover:underline"}," Seekers Sà rl",-1)),(0,r.createTextVNode)(". "+(0,r.toDisplayString)(e.__("Tous droits réservés.")),1)]),t[4]||(t[4]=(0,r.createStaticVNode)('<div class="flex mt-4 space-x-6 sm:justify-center sm:mt-0"><a href="https://www.swissmadesoftware.org/" target="_blank" style="height:auto;width:100px;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 267.21 33.22"><path d="M71.61,25.4h-.15A4.82,4.82,0,0,1,67.35,23a1.17,1.17,0,0,1-.12-.46.91.91,0,0,1,.94-.89,1,1,0,0,1,.81.41,3.64,3.64,0,0,0,2.53,1.5h.12
2c1.46,0,2.3-.82,2.3-1.61,0-3.19-6.25-.78-6.26-5.34,0-2.3,2.42-3.08,3.93-3.08h.1a5.18,5.18,0,0,1,3.14,1,.85.85,0,0,1,.34.7.87.87,0,0,1-.86.86,1.11,1.11,0,0,1-.53-.14,4,4,0,0,0-2.11-.64h-.1c-1.34,0-2.06.6-2.08,1.3,0,2.62,6.24.49,6.25,5.26V22c0,2.21-2.13,3.39-4.14,3.4" style="fill:#e30613;"></path><path d="M92,14.64l-2.8,10a.92.92,0,0,1-.89.67h-.19a1,1,0,0,1-.91-.69c-.59-2.06-2.14-7.82-2.28-8.18-.12.39-1.64,6.15-2.19,8.19a1,1,0,0,1-.88.7h-.22a.92.92,0,0,1-.89-.67l-2.84-10a1.26,1.26,0,0,1,0-.27.92.92,0,0,1,1.8-.22l2.08,7.29,2.14-7.32a1,1,0,0,1,1-.66h0c.72,0,.94.29,1,.65l2.2,7.34,2.07-7.33a.85.85,0,0,1,.84-.67.88.88,0,0,1,.94.88.83.83,0,0,1,0,.27" style="fill:#e30613;"></path><path d="M95.9,10.81A.88.88,0,0,1,95,9.9V9.37a.88.88,0,0,1,.91-.91.89.89,0,0,1,.92.91V9.9a.88.88,0,0,1-.91.91m0,14.52a.88.88,0,0,1-.91-.91l0-10a.87.87,0,0,1,.9-.91.88.88,0,0,1,.92.91l0,10a.87.87,0,0,1-.91.91" style="fill:#e30613;"></path><path d="M104.18,25.31H104a4.77,4.77,0,0,1-4.11-2.39,1.08,1.08,0,0,1-.12-.45.91.91,0,0,1,.93-.89,1,1,0,0,1,.82.4,3.65,3.65,0,0,0,2.52,1.51h.12c1.47,0,2.3-.82,2.3-1.62,0-3.19-6.24-.77-6.25-5.33,0-2.31,2.41-3.08,3.93-3.08h.09a5.12,5.12,0,0,1,3.15,1,.85.85,0,0,1,.34.69.87.87,0,0,1-.86.87,1.23,1.23,0,0,1-.53-.14,4.1,4.1,0,0,0-2.12-.65h-.09c-1.35,0-2.06.61-2.09,1.31,0,2.61,6.25.48,6.26,5.26v.1c0,2.21-2.13,3.39-4.15,3.39" style="fill:#e30613;"></path><path d="M115.21,25.28h-.14A4.78,4.78,0,0,1,111,22.9a1.17,1.17,0,0,1-.12-.46.91.91,0,0,1,.93-.89,1,1,0,0,1,.82.4,3.63,3.63,0,0,0,2.52,1.51h.12c1.47,0,2.3-.82,2.3-1.61,0-3.2-6.24-.78-6.25-5.34,0-2.31,2.41-3.08,3.93-3.08h.09a5.12,5.12,0,0,1,3.15,1,.85.85,0,0,1,.34.7.87.87,0,0,1-.86.86,1.11,1.11,0,0,1-.53-.14,4,4,0,0,0-2.12-.64h-.09c-1.35,0-2.07.6-2.09,1.3,0,2.61,6.24.49,6.26,5.26v.1c0,2.21-2.13,3.39-4.15,3.39" style="fill:#e30613;"></path><path d="M141.68,25.22a.88.88,0,0,1-.91-.91l0-7.11a1.87,1.87,0,0,0-2.05-2h-.21a2,2,0,0,0-2.06,2.07l0,7a.92.92,0,1,1-1.83,0l0-7a2,2,0,0,0-2.07-2.06h-.21a1.94,1.94,0,0,0-2.06,1.85l0,7.27a.92.92,0,1,1-1.83,0l0-10a.92.92,0,0,1,1.82-.2,3.07,3.07,0,0,1,2.06-.73h.22a3.93,3.93,0,0,1,3,1.36,3.88,3.88,0,0,1,3-1.37h.22a3.59,3.59,0,0,1,3.87,3.83l0,7.1a.89.89,0,0,1-.91.92" style="fill:#e30613;"></path><path d="M153.89,25.19l-.17,0a2.27,2.27,0,0,1-1.63-.93,4,4,0,0,1-2.59,1h-.21a3.59,3.59,0,0,1-3.88-3.45v-.29c.16-3.79,5.49-3.13,6.06-3.95a.81.81,0,0,0,.07-.41,1.77,1.77,0,0,0-1.95-1.94h-.16a2,2,0,0,0-1.94,1.21.91.91,0,0,1-.82.48.88.88,0,0,1-.91-.84,1,1,0,0,1,.09-.43,3.72,3.72,0,0,1,3.57-2.24h.17A3.68,3.68,0,0,1,153.37,17v5.56a.71.71,0,0,0,.63.79.87.87,0,0,1,.77.87.89.89,0,0,1-.89.94m-2.34-5.76c-1.77.48-4.25.4-4.31,2.08v.19c0,1,.82,1.68,2,1.67h.22a2,2,0,0,0,2.05-2v-1.9Z" style="fill:#e30613;"></path><path d="M164.11,25.16a.84.84,0,0,1-.89-.72,2.93,2.93,0,0,1-2.06.73h-.22a3.88,3.88,0,0,1-3.9-3.86V17.18a3.88,3.88,0,0,1,3.88-3.87h.17a2.75,2.75,0,0,1,2.09.79V9.2a.91.91,0,1,1,1.82,0l0,15.09a.85.85,0,0,1-.91.87M163.18,17a1.94,1.94,0,0,0-2.05-1.85h-.21a2,2,0,0,0-2.06,2v4.13a2,2,0,0,0,2,2h.24a1.92,1.92,0,0,0,2-1.9V17Z" style="fill:#e30613;"></path><path d="M175.44,20l-5.24,0v1.22a2,2,0,0,0,2,2h.24a2,2,0,0,0,1.87-1.23.85.85,0,0,1,.79-.57.94.94,0,0,1,.85,1.34,3.79,3.79,0,0,1-3.5,2.29h-.24a3.87,3.87,0,0,1-3.88-3.86V17.16a3.87,3.87,0,0,1,3.86-3.88h.24a3.82,3.82,0,0,1,3.87,3.88v2a.93.93,0,0,1-.91.91m-.92-2.88a2.07,2.07,0,0,0-2-2.06h-.24a2.06,2.06,0,0,0-2.06,2v1.2h4.32V17.16Z" style="fill:#e30613;"></path><path d="M189.34,25.09h-.14a4.79,4.79,0,0,1-4.12-2.38,1.17,1.17,0,0,1-.12-.46,1,1,0,0,1,1.75-.48,3.66,3.66,0,0,0,2.53,1.5h.12c1.46,0,2.3-.82,2.3-1.61,0-3.2-6.24-.78-6.26-5.34,0-2.3,2.42-3.08,3.93-3.08h.1a5.15,5.15,0,0,1,3.15,1,.84.84,0,0,1,.33.7.87.87,0,0,1-.86.86,1.11,1.11,0,0,1-.53-.14,4,4,0,0,0-2.11-.64h-.1c-1.34,0-2.06.6-2.08,1.3,0,2.61,6.24.49,6.25,5.26v.1c0,2.21-2.12,3.39-4.14,3.39" style="fill:#e30613;"></path><path d="M200.33,25.07h-.24a3.87,3.87,0,0,1-3.88-3.86V17.08a3.86,3.86,0,0,1,3.86-3.87h.24a3.86,3.86,0,0,1,3.87,3.85v4.13a3.86,3.86,0,0,1-3.85,3.88m2-8a2,2,0,0,0-2-2h-.24a2,2,0,0,0-2,2v4.13a2,2,0,0,0,2.07,2h.21a2,2,0,0,0,2-2V17.07Z" style="fill:#e30613;"></path><path d="M211.1,10a1.26,1.26,0,0,0-1.26,1.35v1.92H211a.87.87,0,0,1,.91.91.88.88,0,0,1-.91.92h-1.12l0,9A.88.88,0,0,1,209,25a.89.89,0,0,1-.92-.9l0-9h-.53a.92.92,0,0,1,0-1.83H208V11.34a3,3,0,0,1,3.09-3.17.87.87,0,0,1,.91.9.88.88,0,0,1-.91.92" style="fill:#e30613;"></path><path d="M219.08,25a3.15,3.15,0,0,1-3.15-3.16l0-6.79h-.84a.92.92,0,1,1,0-1.83h.83V9.06a.92.92,0,0,1,1.83,0v4.18H219a.92.92,0,1,1,0,1.83h-1.3l0,6.77a1.36,1.36,0,0,0,1.4,1.36.92.92,0,0,1-.07,1.83" style="fill:#e30613;"></path><path d="M236.47,14.27l-2.81,10a.91.91,0,0,1-.88.67h-.2a1.06,1.06,0,0,1-.91-.69c-.58-2.06-2.13-7.82-2.28-8.18-.12.39-1.64,6.15-2.18,8.19a1,1,0,0,1-.89.7h-.22a.93.93,0,0,1-.89-.67l-2.83-10a1.28,1.28,0,0,1,0-.27.88.88,0,0,1,.93-.89.87.87,0,0,1,.87.67l2.08,7.29,2.14-7.32a1,1,0,0,1,1-.65h0c.72,0,.94.28,1,.64l2.21,7.34,2.06-7.33a.85.85,0,0,1,.84-.67.88.88,0,0,1,.94.88,1.23,1.23,0,0,1,0,.27" style="fill:#e30613;"></path><path d="M247.21,25l-.17,0a2.19,2.19,0,0,1-1.63-.93,4,4,0,0,1-2.59,1h-.22a3.59,3.59,0,0,1-3.87-3.45v-.29c.15-3.79,5.48-3.13,6.06-3.95a.81.81,0,0,0,.07-.41,1.77,1.77,0,0,0-2-1.94h-.17a2,2,0,0,0-1.94,1.21.9.9,0,0,1-.81.48.88.88,0,0,1-.92-.84.87.87,0,0,1,.1-.43,3.71,3.71,0,0,1,3.57-2.24h.17a3.67,3.67,0,0,1,3.77,3.69l0,5.56a.71.71,0,0,0,.62.8.85.85,0,0,1,.77.86.89.89,0,0,1-.88.94m-2.34-5.76c-1.78.49-4.25.4-4.32,2.08v.19c0,1,.82,1.68,2,1.67h.22a2.05,2.05,0,0,0,2.06-2v-1.9Z" style="fill:#e30613;"></path><path d="M256.05,15.73a1,1,0,0,1-.74-.33,1.45,1.45,0,0,0-1.11-.5c-1.41,0-1.61.81-1.6,1.61l0,7.46a.89.89,0,0,1-.91,1,.88.88,0,0,1-.92-.95l0-10a.9.9,0,0,1,.93-.91.85.85,0,0,1,.79.47,2.5,2.5,0,0,1,1.73-.48,3,3,0,0,1,2.5,1.17,1,1,0,0,1,.22.62.87.87,0,0,1-.89.87" style="fill:#e30613;"></path><path d="M266.3,19.81h-5.23v1.23a2,2,0,0,0,2.05,2h.24a2,2,0,0,0,1.87-1.23.84.84,0,0,1,.79-.58,1,1,0,0,1,.93.94.83.83,0,0,1-.09.41,3.76,3.76,0,0,1-3.5,2.28h-.24a3.84,3.84,0,0,1-3.87-3.85V16.92a3.85,3.85,0,0,1,3.85-3.87h.24a3.82,3.82,0,0,1,3.88,3.88v2a.93.93,0,0,1-.91.91m-.92-2.88a2.06,2.06,0,0,0-2-2.06h-.24a2.06,2.06,0,0,0-2.06,2.05v1.2h4.32V16.93Z" style="fill:#e30613;"></path><path d="M38.73,4.43H23.27L22.28,2a3.14,3.14,0,0,0-2.92-2H6.17A3.15,3.15,0,0,0,3.29,1.9l-3,7A3.1,3.1,0,0,0,0,10.19V30.08a3.15,3.15,0,0,0,3.14,3.14H38.73a3.15,3.15,0,0,0,3.14-3.14V7.57a3.15,3.15,0,0,0-3.14-3.14" style="fill:#e30613;"></path><path d="M26.83,20H22.56v4.28a1.55,1.55,0,0,1-3.1,0V20H15.18a1.55,1.55,0,1,1,0-3.09h4.28V12.62a1.55,1.55,0,1,1,3.1,0V16.9h4.27a1.55,1.55,0,1,1,0,3.09" style="fill:#fff;"></path></svg></a><a href="#" class="hidden text-gray-500 hover:text-gray-900"><svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path fill-rule="evenodd" d="M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.
2047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058 1.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.466.399.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.858-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.858a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 100 6.666 3.333 3.333 0 000-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z" clip-rule="evenodd"></path></svg></a><a href="#" class="hidden text-gray-500 hover:text-gray-900"><svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path d="M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84"></path></svg></a></div>',1))])])])],64)}]])},8479:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Ke});var r=n(6301),o={class:"p-3 m-5 bg-slate-100"},i={class:"hidden sm:grid gap-x-4 items-center grid-cols-12 p-2"},a={class:"sm:col-start-3 sm:col-end-5 lg:col-start-3 lg:col-end-6 xl:col-start-2 xl:col-end-5"},s={class:"sm:col-start-5 sm:col-end-8 lg:col-start-6 lg:col-end-9 xl:col-start-5 xl:col-end-8"},l={class:"sm:col-start-8 sm:col-end-11 lg:col-start-9 lg:col-end-11 xl:col-start-8 xl:col-end-11"},c={class:"hidden sm:block sm:col-start-1 sm:col-end-3 lg:col-start-1 lg:col-end-3 xl:col-start-1 xl:col-end-2"},u=["src","alt"],d={class:"hidden sm:block sm:col-start-3 sm:col-end-5 lg:col-start-3 lg:col-end-6 xl:col-start-2 xl:col-end-5"},p=["title"],h={class:"hidden sm:block sm:col-start-5 sm:col-end-8 lg:col-start-6 lg:col-end-9 xl:col-start-5 xl:col-end-8"},f=["title"],m=["title"],g={class:"truncate"},v={class:"truncate"},y={class:"hidden sm:flex sm:col-start-11 sm:col-end-13 lg:col-start-11 lg:col-end-13 justify-end"},b={key:0},x=["onClick","title"],w=["onClick","title"],k={key:1},_={class:"sm:hidden"},E={class:"flex justify-between items-center"},C={class:"flex justify-start gap-x-4 items-center"},N=["src","alt"],S={class:"mt-2"},V={key:0},A=["onClick","title"],D=["onClick","title"],M={key:1},T={key:1},B={key:0,class:"grid grid-cols-3 border-b-2"},O={class:"p-2"},P={class:"py-2"},L={key:1,class:""},I={key:0,class:"grid grid-cols-3"},j={class:"flex items-center"},R=["href"],$={class:"flex gap-2 items-center"},z=["src","title"],F={class:"flex justify-end gap-2 text-xl"},H=["onClick"],U=["onClick"],W={class:"grid grid-cols-3 gap-x-4 border-b-2"},q=["title"],Y=["title"],G=["title"],K=["href"],J={key:0,class:"flex justify-end"},X=["onClick","title"],Z=["onClick","title"],Q={key:1},ee={key:1},te={class:"2xl:container mb-6"},ne={class:"sm:flex items-center justify-between mb-6"},re={class:"flex items-center justify-between bg-white p-4 rounded-lg shadow"},oe={class:"flex items-center gap-4"},ie={class:"flex items-center gap-2"},ae=["src"],se={class:"font-medium"},le={class:"flex items-center gap-4"},ce=["onUpdate:modelValue","onChange"],ue={class:"mb-2"},de={class:"divide-y divide-gray-200"},pe={class:"flex items-center gap-2"},he=["src"],fe={class:"flex-grow"},me={class:"flex items-center flex-wrap"},ge={class:"flex gap-2 flex-wrap"},ve={class:"flex lg:hidden gap-2 items-center mt-2"},ye={class:"flex flex-col lg:hidden"},be=["onClick","title"],xe=["onClick","title"],we={class:"hidden lg:flex gap-2 items-center"},ke={class:"flex items-center"},_e={class:"flex"},Ee=["onClick","title"],Ce=["onClick","title"],Ne={key:0,class:"flex justify-center mt-4"},Se={key:0,class:"rounded-full bg-slate-100 flex items-center mb-4"},Ve={key:1,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},Ae={key:3,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},De={class:"py-2 h-full flex items-center first:rounded-l-full last:rounded-r-full px-3"},Me={key:5,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},Te={key:7,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},Be={class:"mb-4"},Oe={class:"font-semibold"},Pe={class:"font-semibold"},Le={key:0},Ie={key:1};var je=n(641),Re=n(5720),$e=n(1049),ze=n(9234),Fe=n(6581),He=n(756),Ue=n(9506),We=n(1963),qe=n(1857),Ye=n(1678);const Ge=(0,je.pM)({props:{moderationUsers:Object,moderationAnnonces:Object,moderationComments:Object,annonces:Object,highlightedAnnonces:Object},methods:{updateOrder:function(){this.highlightedAnnonces.forEac
2h((function(e,t){e.highlight_order=t+1}))},updateHighlightOrder:function(e){e.highlight_order<1&&(e.highlight_order=1),this.updateOrder()},toggleHighlight:function(e){this.highlightAnnonceData=e,this.highlightModal=!0},confirmHighlightAnnonce:function(){this.$inertia.post(route("annonces.highlight",{commune:this.$page.props.commune.slug}),{annonce_id:this.highlightAnnonceData.id},{preserveState:!1})},updateDeleteInfo:function(e,t){this.deleteAnnonceData.title=e,this.deleteAnnonceData.id=t,this.deleteModal=!0},confirmDeleteAnnonce:function(){this.$inertia.post(route("annonces.delete",{commune:this.$page.props.commune.slug}),{annonce_id:this.deleteAnnonceData.id},{preserveState:!1})},statusClass:function(e){switch(e.status){case 0:return"text-gray-600";case 1:return"text-lm-blue";case 2:return"text-emerald-700"}},checkDisplayAnnonce:function(e){return"event"==e.type&&!e.mainEventId},openRejectAnnonceModal:function(e,t,n){this.rejectAnnonceAuthor=n,this.rejectAnnonceId=e,this.rejectAnnonceTitle=t,this.rejectAnnonceModal=!0,this.approveAnnonceModal=!0},rejectAnnonce:function(){var e=this;this.rejectAnnonceId&&this.$inertia.post(route("admin.moderation.annonces.reject",{commune:this.$page.props.commune.slug}),{annonce_id:this.rejectAnnonceId,reason:this.rejectAnnonceReason},{onError:function(){e.emitter.emit("lm-notification",{category:"error",text:e.__("Une erreur s'est produite.")})},onSuccess:function(){e.rejectAnnonceModal=!1,e.rejectAnnonceReason=""}})},approveAnnonce:function(e){var t=this;this.$inertia.post(route("admin.moderation.annonces.approve",{commune:this.$page.props.commune.slug}),{annonce_id:e},{onError:function(){t.emitter.emit("lm-notification",{category:"error",text:t.__("Une erreur s'est produite.")})},onSuccess:function(){}})},approveUser:function(e,t){var n=this;this.moderationUsersData[t].loading=!0,this.$inertia.visit(route("admin.moderation.user.approve",{commune:this.$page.props.commune.slug}),{method:"post",data:{userid:e},preserveScroll:!0,onFinish:function(){n.moderationUsersData[t].loading=!1}})},declineUser:function(e,t){var n=this;confirm(this.__("Diesen Benutzer blockieren?"))&&(this.emitter.emit("lm-notification-close"),this.moderationUsersData[t].loading=!0,this.$inertia.visit(route("admin.moderation.user.reject",{commune:this.$page.props.commune.slug}),{method:"post",data:{userid:e},only:["moderationUsers"],preserveScroll:!0,onFinish:function(){n.moderationUsersData[t].loading=!1}}))},approveComment:function(e,t){var n=this;this.moderationCommentsData[t].loading=!0,this.$inertia.visit(route("admin.moderation.comment.approve",{commune:this.$page.props.commune.slug}),{method:"post",data:{commentid:e},preserveScroll:!0,onFinish:function(){n.moderationCommentsData[t].loading=!1}})},declineComment:function(e,t){var n=this;confirm(this.__("Rejeter ce commentaire ?"))&&(this.emitter.emit("lm-notification-close"),this.moderationCommentsData[t].loading=!0,this.$inertia.visit(route("admin.moderation.comment.reject",{commune:this.$page.props.commune.slug}),{method:"post",data:{commentid:e},preserveScroll:!0,onFinish:function(){n.moderationCommentsData[t].loading=!1}}))},save:function(){var e=this;(0,ze.mN)(this.highlightedAnnonces).post(route("annonces.highlight.order",{commune:this.$page.props.commune.slug}),{data:{annonces:this.highlightedAnnonces.filter((function(e){return 1==e.highlighted}))},method:"post",preserveScroll:!0,onSuccess:function(){e.$inertia.reload({only:["highlightedAnnonces"]}),e.highlightedAnnonces=e.highlightedAnnonces}})}},computed:{dragOptions:function(){return{animation:200,group:"description",disabled:!1,ghostClass:"ghost"}}},data:function(){return{deleteAnnonceData:{title:null,id:null},highlightAnnonceData:{title:null,id:null},highlightModal:!1,deleteModal:!1,moderationUsersData:[],moderationCommentsData:[],loadingUserId:Number,rejectAnnonceId:null,rejectAnnonceTitle:"",rejectAnnonceReason:"",rejectAnnonceAuthor:"",rejectAnnonceModal:!1}},mounted:function(){this.moderationUsersData=this.moderationUsers,this.moderationCommentsData=this.moderationComments,this.highlightedAnnonces.sort((function(e,t){return e.highlight_order-t.highlight_order}))},layout:Re.A,components:{LmSpinner:$e.A,Head:ze.p3,LmAccordion:Fe.A,DialogModal:He.A,LmTextarea:Ue.EZ,categoryBadge:We.A,JetDropdown:qe.A,draggable:Ye.H}});const Ke=(0,n(6262).A)(Ge,[["render",function(e,t,n,je,Re,$e){var ze=this,Fe=(0,r.resolve
2Component)("Head"),He=(0,r.resolveComponent)("Text"),Ue=(0,r.resolveComponent)("lm-spinner"),We=(0,r.resolveComponent)("lm-accordion"),qe=(0,r.resolveComponent)("draggable"),Ye=(0,r.resolveComponent)("Link"),Ge=(0,r.resolveComponent)("category-badge"),Ke=(0,r.resolveComponent)("lm-textarea"),Je=(0,r.resolveComponent)("dialog-modal");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(Fe,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("title",null,(0,r.toDisplayString)(e.__("Moderation")),1)]})),_:1}),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(He,{type:"h1",text:e.__("Moderation")},null,8,["text"]),(0,r.createElementVNode)("div",o,[(0,r.createVNode)(We,{startOpen:!1,badge:e.moderationUsersData.length,title:e.__("Benutzer freigeben")},{default:(0,r.withCtx)((function(){return[e.moderationUsersData.length>0?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(e.__("Name")),1)]),(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(e.__("E-Mail")),1)]),(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(e.__("Adresse")),1)])]),(0,r.createElementVNode)("div",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.moderationUsersData,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n.id,class:"sm:grid sm:gap-x-4 items-center sm:grid-cols-12 first:border-t-2 border-gray-200 border-b-2 p-2"},[(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("img",{src:n.profile_photo_url,alt:n.first_name+" "+n.name,style:{width:"64px",height:"64px","object-fit":"cover"},class:"rounded-full"},null,8,u)]),(0,r.createElementVNode)("div",d,[(0,r.createElementVNode)("p",{title:n.first_name+" "+n.name,class:"overflow-ellipsis overflow-hidden"},(0,r.toDisplayString)(n.first_name+" "+n.name),9,p)]),(0,r.createElementVNode)("div",h,[(0,r.createElementVNode)("p",{title:n.email,class:"truncate"},(0,r.toDisplayString)(n.email),9,f)]),(0,r.createElementVNode)("div",{class:"hidden sm:block sm:col-start-8 sm:col-end-11 lg:col-start-9 lg:col-end-11 xl:col-start-8 xl:col-end-11",title:n.street+", "+n.zip_code+" "+n.city},[(0,r.createElementVNode)("p",g,(0,r.toDisplayString)(n.street),1),(0,r.createElementVNode)("p",v,(0,r.toDisplayString)(n.zip_code)+" "+(0,r.toDisplayString)(n.city),1)],8,m),(0,r.createElementVNode)("div",y,[n.loading?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",b,[(0,r.createElementVNode)("button",{onClick:function(t){return e.declineUser(n.id,o)},title:e.__("Benutzer ablehnen"),class:"text-red-700 text-xl mr-4"},t[12]||(t[12]=[(0,r.createElementVNode)("i",{class:"bi bi-person-x-fill"},null,-1)]),8,x),(0,r.createElementVNode)("button",{onClick:function(t){return e.approveUser(n.id,o)},title:e.__("Benutzer freigeben"),class:"text-green-700 text-xl"},t[13]||(t[13]=[(0,r.createElementVNode)("i",{class:"bi bi-person-check-fill"},null,-1)]),8,w)])),n.loading?((0,r.openBlock)(),(0,r.createElementBlock)("div",k,[(0,r.createVNode)(Ue,{width:"40",height:"40"})])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",_,[(0,r.createElementVNode)("div",E,[(0,r.createElementVNode)("div",C,[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("img",{src:n.profile_photo_url,alt:n.first_name+" "+n.name,style:{width:"64px",height:"64px","object-fit":"cover"},class:"rounded-full"},null,8,N)]),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(n.first_name+" "+n.name),1),(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(n.email),1),(0,r.createElementVNode)("p",S,(0,r.toDisplayString)(n.street),1),(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(n.zip_code)+" "+(0,r.toDisplayString)(n.city),1)])]),n.loading?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",V,[(0,r.createElementVNode)("button",{onClick:function(t){return e.approveUser(n.id,o)},title:e.__("Benutzer freigeben"),class:"text-green-700 text-xl block mb-4"}
2,t[14]||(t[14]=[(0,r.createElementVNode)("i",{class:"bi bi-person-check-fill"},null,-1)]),8,A),(0,r.createElementVNode)("button",{onClick:function(t){return e.declineUser(n.id,o)},title:e.__("Benutzer ablehnen"),class:"text-red-700 text-xl block"},t[15]||(t[15]=[(0,r.createElementVNode)("i",{class:"bi bi-person-x-fill"},null,-1)]),8,D)])),n.loading?((0,r.openBlock)(),(0,r.createElementBlock)("div",M,[(0,r.createVNode)(Ue,{width:"40",height:"40"})])):(0,r.createCommentVNode)("",!0)])])])})),128))])],64)):((0,r.openBlock)(),(0,r.createElementBlock)("p",T,(0,r.toDisplayString)(e.__("Keine neuen Benutzer gefunden.")),1))]})),_:1},8,["badge","title"]),(0,r.createVNode)(We,{startOpen:!1,badge:e.moderationAnnonces.length,title:e.__("Anzeigen freigeben")},{default:(0,r.withCtx)((function(){return[e.moderationAnnonces.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",B,[(0,r.createElementVNode)("p",O,(0,r.toDisplayString)(e.__("Titel")),1),(0,r.createElementVNode)("p",P,(0,r.toDisplayString)(e.__("Autor")),1)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",L,[(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(e.__("Aucune annonce trouvée pour le partage.")),1)])),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.moderationAnnonces,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:o,class:"border-b-2 p-2"},["event"!=n.type||e.checkDisplayAnnonce(n)?((0,r.openBlock)(),(0,r.createElementBlock)("div",I,[(0,r.createElementVNode)("div",j,[(0,r.createElementVNode)("a",{class:"text-lm-light-blue hover:text-lm-blue",target:"_blank",href:e.route("annonces.show",{commune:e.$page.props.commune.slug,annonce:n.id,slug:n.slug})},(0,r.toDisplayString)(n.title),9,R)]),(0,r.createElementVNode)("div",$,[(0,r.createElementVNode)("img",{src:n.author.profile_photo_url,title:n.author.fullName,class:"w-8 h-8 rounded-full"},null,8,z),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(n.author.fullName),1)]),(0,r.createElementVNode)("div",F,[(0,r.createElementVNode)("button",{class:"text-red-800",onClick:function(t){return e.openRejectAnnonceModal(n.id,n.title,n.author.fullName)}},t[16]||(t[16]=[(0,r.createElementVNode)("i",{class:"bi bi-x-circle-fill"},null,-1)]),8,H),(0,r.createElementVNode)("button",{class:"text-emerald-800",onClick:function(t){return e.approveAnnonce(n.id)}},t[17]||(t[17]=[(0,r.createElementVNode)("i",{class:"bi bi-check-circle-fill"},null,-1)]),8,U)])])):(0,r.createCommentVNode)("",!0)])})),128))]})),_:1},8,["badge","title"]),(0,r.createVNode)(We,{startOpen:!1,badge:e.moderationComments.length,title:e.__("Kommentare freigeben")},{default:(0,r.withCtx)((function(){return[e.moderationComments.length>0?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createElementVNode)("div",W,[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(e.__("Autor")),1)]),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(e.__("Kommentar")),1)])]),(0,r.createElementVNode)("div",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.moderationComments,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n.id,class:"grid grid-cols-3 items-center first:border-t-2 border-gray-200 border-b-2 p-2"},[(0,r.createElementVNode)("div",null,[n.author?((0,r.openBlock)(),(0,r.createElementBlock)("p",{key:0,title:n.author.fullName,class:"overflow-ellipsis overflow-hidden"},(0,r.toDisplayString)(n.author.fullName),9,q)):((0,r.openBlock)(),(0,r.createElementBlock)("p",{key:1,title:e.__("Anonyme"),class:"overflow-ellipsis overflow-hidden"},(0,r.toDisplayString)(e.__("Anonyme")),9,Y))]),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("p",{title:n.comment,class:"truncate"},[(0,r.createElementVNode)("a",{class:"text-lm-light-blue hover:text-lm-blue",target:"_blank",href:e.route("annonces.show",{commune:e.$page.props.commune.slug,annonce:n.annonce.id,slug:n.annonce.slug})},(0,r.toDisplayString)(n.comment),9,K)],8,G)]),(0,r.createElementVNode)("div",null,[n.loading?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",J,[(0,r.createElementVNode)("button",{onClick:function(t){return e.declineComment(n.id,o)},title:e.__("Kommentar ablehnen"),class:"text-red-700 text-xl mr-4"},t[18]||(t[18]=[(0,r.createElementVNode)("i",{class:"bi bi-x-circle-fill"},null,-1)]),8,X),(0,r.createElementVNode)("button",{onClick:function(t){return e.approveComment(n.id,o)},title:e.__("Kommentar freigeben"),class:"text-green-700 text-xl"},t[19]||(t[19]=[(0,r.createElementVNode)("i",{class:"bi bi-check-circle-fill"},null,-1)]),8,Z)])),n.loading?((0,r.openBlock)(),(0,r.createElementBlock)("div",Q,[(0,r.createVNode)(Ue,{width:"40",height:"40"})])):(0,r.createCommentVNode)("",!0)])])})),128))])],64)):((0,r.openBlock)(),(0,r.createElementBlock)("p",ee,(0,r.toDisplayString)(e.__("Keine Kommentare zum Freigeben gefunden.")),1))]})),_:1},8,["badge","title"])])]),(0,r.createElementVNode)("div",te,[(0,r.createElementVNode)("div",ne,[(0,r.createVNode)(He,{type:"h2",text:e.__("Annonces épinglées")},null,8,["text"]),(0,r.createElementVNode)("button",{class:"btn-primary",onClick:t[0]||(t[0]=function(){return e.save&&e.save.apply(e,arguments)})},(0,r.toDisplayString)(e.__("Enregistrer l'ordre")),1)]),(0,r.createVNode)(qe,(0,r.mergeProps)({list:e.highlightedAnnonces,onChange:e.updateOrder},e.dragOptions,{handle:".drag-trigger","item-key":"id",animation:200,class:"space-y-2"}),{default:(0,r.withCtx)((function(){return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.highlightedAnnonces,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n,class:"text-left"},[(0,r.createElementVNode)("div",re,[(0,r.createElementVNode)("div",oe,[t[20]||(t[20]=(0,r.createElementVNode)("div",{class:"drag-trigger cursor-move px-2"},[(0,r.createElementVNode)("i",{class:"bi bi-grip-vertical"})],-1)),(0,r.createElementVNode)("div",ie,[n.header_image_url?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,src:n.header_image_url,class:"w-12 h-12 object-cover rounded"},null,8,ae)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("span",se,(0,r.toDisplayString)(n.title),1)])]),(0,r.createElementVNode)("div",le,[t[21]||(t[21]=(0,r.createElementVNode)("span",{class:"text-gray-500"},"Position:",-1)),(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"number","onUpdate:modelValue":function(e){return n.highlight_order=e}
2,min:"1",class:"w-16 p-1 border rounded text-right",onChange:function(t){return e.updateHighlightOrder(n)}},null,40,ce),[[r.vModelText,n.highlight_order,void 0,{number:!0}]])])])])})),128))]})),_:1},16,["list","onChange"])]),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",ue,[(0,r.createVNode)(He,{type:"h2",text:"Toutes les annonces"})]),(0,r.createElementVNode)("div",de,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.annonces.data,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"flex lg:items-center lg:justify-between w-full p-2 flex-col lg:flex-row",key:o},[(0,r.createElementVNode)("div",pe,[n.header_image_url?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,src:n.header_image_url,class:"block h-12 sm:h-20 w-12 sm:w-20 rounded-sm object-cover mr-2"},null,8,he)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",fe,[(0,r.createElementVNode)("div",me,[(0,r.createVNode)(Ye,{class:"text-xl mr-2",href:e.route("annonces.show",{commune:e.$page.props.commune.slug,annonce:n.id,slug:n.slug}),title:e.__("Titel")},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(n.title),1)]})),_:2},1032,["href","title"]),(0,r.createVNode)(Ge,{category:n.category},null,8,["category"])]),(0,r.createElementVNode)("div",ge,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.tags,(function(n,o){return(0,r.openBlock)(),(0,r.createBlock)(Ye,{href:e.route("annonces.index",{commune:e.$page.props.commune.slug,tag:n.name.nl}),class:"px-2 py-1 bg-slate-100 hover:bg-slate-200 rounded-md text-sm transition-colors",key:o},{default:(0,r.withCtx)((function(){return[t[22]||(t[22]=(0,r.createElementVNode)("i",{class:"bi bi-hash"},null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(n.name.nl),1)]})),_:2},1032,["href"])})),128))]),(0,r.createElementVNode)("div",ve,[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(e.statusClass(n))},(0,r.toDisplayString)(n.statusTranslated),3)])]),(0,r.createElementVNode)("div",ye,[(0,r.createElementVNode)("button",{class:"transition-colors bg-slate-100 hover:bg-slate-200 px-3 py-2 rounded-l-md",onClick:function(t){return e.toggleHighlight(n)},title:e.__("Hervorheben")},[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)(["bi",{"bi-star-fill":n.highlighted,"bi bi-star":!n.highlighted}])},null,2)],8,be),(0,r.createVNode)(Ye,{class:"transition-colors bg-slate-100 hover:bg-slate-200 px-3 py-2 rounded-t-md",href:e.route("annonces.edit",{commune:ze.$page.props.commune.slug,annonce:n.id,slug:n.slug}),title:e.__("Bearbeiten")},{default:(0,r.withCtx)((function(){return t[23]||(t[23]=[(0,r.createElementVNode)("button",null,[(0,r.createElementVNode)("i",{class:"bi bi-pencil"})],-1)])})),_:2},1032,["href","title"]),(0,r.createVNode)(Ye,{class:"transition-colors bg-slate-100 hover:bg-slate-200 px-3 py-2",href:e.route("annonces.copy",{commune:e.$page.props.commune.slug,annonce:n.id,slug:n.slug}),title:e.__("Kopieren")},{default:(0,r.withCtx)((function(){return t[24]||(t[24]=[(0,r.createElementVNode)("button",null,[(0,r.createElementVNode)("i",{class:"bi bi-back"})],-1)])})),_:2},1032,["href","title"]),(0,r.createElementVNode)("button",{onClick:function(t){return e.updateDeleteInfo(n.title,n.id)},class:"transition-colors bg-slate-100 hover:bg-red-800 hover:text-white px-3 py-2 rounded-b-md",href:"#",title:e.__("Löschen")},t[25]||(t[25]=[(0,r.createElementVNode)("i",{class:"bi bi-trash"},null,-1)]),8,xe)])]),(0,r.createElementVNode)("div",we,[(0,r.createElementVNode)("div",ke,[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(e.statusClass(n))},(0,r.toDisplayString)(n.statusTranslated),3)]),(0,r.createElementVNode)("div",_e,[(0,r.createElementVNode)("button",{class:"transition-colors bg-slate-100 hover:bg-slate-200 px-3 py-2 rounded-l-md",onClick:function(t){return e.toggleHighlight(n)},title:e.__("Hervorheben")},[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)(["bi",{"bi-star-fill":n.highlighted,"bi bi-star":!n.highlighted}])},null,2)],8,Ee),(0,r.createVNode)(Ye,{class:"transition-colors bg-slate-100 hover:bg-slate-200 px-3 py-2 rounded-l-md",href:e.route("annonces.edit",{commune:ze.$page.props.commune.slug,annonce:n.id,slug:n.slug}),title:e.__("Bearbeiten")},{default:(0,r.withCtx)((function(){return t[26]||(t[26]=[(0,r.createElementVNode)("button",null,[(0,r.createElementVNode)("i",{class:"bi bi-pencil"})],-1)])})),_:2},1032,["href","title"]),(0,r.createVNode)(Ye,{class:"transition-colors bg-slate-100 hover:bg-slate-200 px-3 py-2",href:e.route("annonces.copy",{commune:e.$page.props.commune.slug,annonce:n.id,slug:n.slug}),title:e.__("Kopieren")},{default:(0,r.withCtx)((function(){return t[27]||(t[27]=[(0,r.createElementVNode)("button",null,[(0,r.createElementVNode)("i",{class:"bi bi-back"})],-1)])})),_:2},1032,["href","title"]),(0,r.createElementVNode)("button",{onClick:function(t){return e.updateDeleteInfo(n.title,n.id)},class:"transition-colors bg-slate-100 hover:bg-red-800 hover:text-white px-3 py-2 rounded-r-md",href:"#",title:e.__("Löschen")},t[28]||(t[28]=[(0,r.createElementVNode)("i",{class:"bi bi-trash"},null,-1)]),8,Ce)])])])})),128))]),e.annonces.last_page>1?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ne,[e.annonces.data.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",Se,[e.annonces.current_page>1?((0,r.openBlock)(),(0,r.createBlock)(Ye,{key:0,href:e.annonces.first_page_url,class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[29]||(t[29]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-left"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),1===e.annonces.current_page?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ve,t[30]||(t[30]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-left"},null,-1)]))):(0,r.createCommentVNode)("",!0),e.annonces.prev_page_url?((0,r.openBlock)(),(0,r.createBlock)(Ye,{key:2,href:e.annonces.prev_page_url,class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[31]||(t[31]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-left"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),1===e.annonces.current_page?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ae,t[32]||(t[32]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-left"},null,-1)]))):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",De,(0,r.toDisplayString)(e.annonces.current_page+" / "+e.annonces.last_page),1),e.annonces.next_page_url?((0,r.openBlock)(),(0,r.createBlock)(Ye,{key:4,href:e.annonces.next_page_url,class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[33]||(t[33]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-right"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),e.annonces.next_page_url?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Me,t[34]||(t[34]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-right"},null,-1)]))),e.annonces.current_page<e.annonces.last_page?((0,r.openBlock)(),(0,r.createBlock)(Ye,{key:6,href:e.annonces.last_page_url,class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[35]||(t[35]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-right"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),e.annonces.current_page===e.annonces.last_page?((0,r.openBlock)(),(0,r.createElementBlock)("div",Te,t[36]||(t[36]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-right"},null,-1)]))):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)]),(0,r.createVNode)(Je,{show:e.rejectAnnonceModal,onClose:t[4]||(t[4]=function(t){return e.rejectAnnonceModal=!1})},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Anzeige ablehnen")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("p",Be,[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Die Anzeige"))+" «"+(0,r.toDisplayString)(e.rejectAnnonceTitle)+"» "+(0,r.toDisplayString)(e.__("wird abgelehnt."))+" ",1),t[37]||(t[37]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(e.rejectAnnonceAuthor)+" "+(0,r.toDisplayString)(e.__("muss sie erneut vorschlagen.")),1)]),(0,r.createVNode)(Ke,{maxlength:"100",placeholder:e.__("Begründung"),modelValue:e.rejectAnnonceReason,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.rejectAnnonceReason=t})},null,8,["placeholder","modelValue"])]})),footer:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",{onClick:t[2]||(t[2]=function(t){return e.rejectAnnonceModal=!1}),class:"mr-4"},(0,r.toDisplayString)(e.__("Abbrechen")),1),(0,r.createElementVNode)("button",{onClick:t[3]||(t[3]=function(){return e.rejectAnnonce&&e.rejectAnnonce.apply(e,arguments)}),class:"bg-red-700 hover:bg-red-800 px-3 py-2 rounded-md text-white"},(0,r.toDisplayString)(e.__("Abweisen")),1)]})),_:1},8,["show"]),(0,r.createVNode)(Je,{show:e.deleteModal,onClose:t[7]||(t[7]=function(t){return e.deleteModal=!1})},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Anzeige löschen")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("p",Oe,(0,r.toDisplayString)(e.__("Sind Sie sicher?")),1),(0,r.createElementVNode)("p",null," «"+(0,r.toDisplayString)(e.deleteAnnonceData.title)+"» "+(0,r.toDisplayString)(e.__("delete annonce text")),1)]})),footer:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",{onClick:t[5]||(t[5]=function(t){return e.deleteModal=!1}),class:"mr-4"},(0,r.toDisplayString)(e.__("Abbrechen")),1),(0,r.createElementVNode)("button",{onClick:t[6]||(t[6]=function(){return e.confirmDeleteAnnonce&&e.confirmDeleteAnnonce.apply(e,arguments)}),class:"bg-red-700 hover:bg-red-800 px-3 py-2 rounded-md text-white"},(0,r.toDisplayString)(e.__("Löschen")),1)]})),_:1},8,["show"]),(0,r.createVNode)(Je,{show:e.highlightModal,onClose:t[11]||(t[11]=function(t){return e.highlightModal=!1})},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Anzeige hervorheben")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("p",Pe,(0,r.toDisplayString)(e.__("Sind Sie sicher?")),1),e.highlightAnnonceData.highlighted?((0,r.openBlock)(),(0,r.createElementBlock)("p",Ie," «"+(0,r.toDisplayString)(e.highlightAnnonceData.title)+"» "+(0,r.toDisplayString)(e.__("unhighlight annonce text")),1)):((0,r.openBlock)(),(0,r.createElementBlock)("p",Le," «"+(0,r.toDisplayString)(e.highlightAnnonceData.title)+"» "+(0,r.toDisplayString)(e.__("highlight annonce text")),1))]})),footer:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",{onClick:t[8]||(t[8]=function(t){return e.highlightModal=!1}),class:"mr-4"},(0,r.toDisplayString)(e.__("Abbrechen")),1),e.highlightAnnonceData.highlighted?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,onClick:t[10
2]||(t[10]=function(){return e.confirmHighlightAnnonce&&e.confirmHighlightAnnonce.apply(e,arguments)}),class:"bg-green-700 hover:bg-green-800 px-3 py-2 rounded-md text-white"},(0,r.toDisplayString)(e.__("Nicht mehr hervorheben")),1)):((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,onClick:t[9]||(t[9]=function(){return e.confirmHighlightAnnonce&&e.confirmHighlightAnnonce.apply(e,arguments)}),class:"bg-green-700 hover:bg-green-800 px-3 py-2 rounded-md text-white"},(0,r.toDisplayString)(e.__("Hervorheben")),1))]})),_:1},8,["show"])],64)}]])},8621:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".mobilenavgradient{animation:mobilenavanimation .3s ease-out forwards;background:linear-gradient(185deg,#003471,#003471 10%,#007ab3 86.9%,#007ab3 90%,hsla(0,0%,100%,0) 90.01%)!important}@keyframes mobilenavanimation{0%{opacity:0;padding-bottom:6rem}to{opacity:1;padding-bottom:8rem}}",""]);const i=o},8633:e=>{var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreen
vendor: 3,516 bytes, line 2
2Bright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=n(),e.exports.createColors=n},8636:(e,t,n)=>{"use strict";var r=n(920),o=n(7720),i=n(4765),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,p=i.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},f={},m=function e(t,n,i,a,s,c,d,p,m,g,v,y,b,x,w,k,_,E){for(var C,N=t,S=E,V=0,A=!1;void 0!==(S=S.get(f))&&!A;){var D=S.get(t);if(V+=1,void 0!==D){if(D===V)throw new RangeError("Cyclic object value");A=!0}void 0===S.get(f)&&(V=0)}if("function"==typeof g?N=g(n,N):N instanceof Date?N=b(N):"comma"===i&&l(N)&&(N=o.maybeMap(N,(function(e){return e instanceof Date?b(e):e}))),null===N){if(c)return m&&!k?m(n,h.encoder,_,"key",x):n;N=""}if("string"==typeof(C=N)||"number"==typeof C||"boolean"==typeof C||"symbol"==typeof C||"bigint"==typeof C||o.isBuffer(N))return m?[w(k?n:m(n,h.encoder,_,"key",x))+"="+w(m(N,h.encoder,_,"value",x))]:[w(n)+"="+w(String(N))];var M,T=[];if(void 0===N)return T;if("comma"===i&&l(N))k&&m&&(N=o.maybeMap(N,m)),M=[{value:N.length>0?N.join(",")||null:void 0}];else if(l(g))M=g;else{var B=Object.keys(N);M=v?B.sort(v):B}var O=p?String(n).replace(/\./g,"%2E"):String(n),P=a&&l(N)&&1===N.length?O+"[]":O;if(s&&l(N)&&0===N.length)return P+"[]";for(var L=0;L<M.length;++L){var I=M[L],j="object"==typeof I&&I&&void 0!==I.value?I.value:N[I];if(!d||null!==j){var R=y&&p?String(I).replace(/\./g,"%2E"):String(I),$=l(N)?"function"==typeof i?i(P,R):P:P+(y?"."+R:"["+R+"]");E.set(t,V);var z=r();z.set(f,E),u(T,e(j,$,i,a,s,c,d,p,"comma"===i&&k&&l(N)?null:m,g,v,y,b,x,w,k,_,z))}}return T};e.exports=function(e,t){var n,o=e,c=function(e){if(!e)return h;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=i.formatters[n],c=h.filter;if(("function"==typeof e.filter||l(e.filter))&&(c=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":h.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||h.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:
2h.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:h.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:c,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}}(t);"function"==typeof c.filter?o=(0,c.filter)("",o):l(c.filter)&&(n=c.filter);var d=[];if("object"!=typeof o||null===o)return"";var p=s[c.arrayFormat],f="comma"===p&&c.commaRoundTrip;n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var g=r(),v=0;v<n.length;++v){var y=n[v],b=o[y];c.skipNulls&&null===b||u(d,m(b,y,p,f,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,g))}var x=d.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),x.length>0?w+x:""}},8646:(e,t,n)=>{function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=r(n(2505)),i=n(5373),a=r(n(4744));function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l,c={modal:null,listener:null,show:function(e){var t=this;"object"==typeof e&&(e="All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.<hr>"+JSON.stringify(e));var n=document.createElement("html");n.innerHTML=e,n.querySelectorAll("a").forEach((function(e){return e.setAttribute("target","_top")})),this.modal=document.createElement("div"),this.modal.style.position="fixed",this.modal.style.width="100vw",this.modal.style.height="100vh",this.modal.style.padding="50px",this.modal.style.boxSizing="border-box",this.modal.style.backgroundColor="rgba(0, 0, 0, .6)",this.modal.style.zIndex=2e5,this.modal.addEventListener("click",(function(){return t.hide()}));var r=document.createElement("iframe");if(r.style.backgroundColor="white",r.style.borderRadius="5px",r.style.width="100%",r.style.height="100%",this.modal.appendChild(r),document.body.prepend(this.modal),document.body.style.overflow="hidden",!r.contentWindow)throw new Error("iframe not yet ready.");r.contentWindow.document.open(),r.contentWindow.document.write(n.outerHTML),r.contentWindow.document.close(),this.listener=this.hideOnEscape.bind(this),document.addEventListener("keydown",this.listener)},hide:function(){this.modal.outerHTML="",this.modal=null,document.body.style.overflow="visible",document.removeEventListener("keydown",this.listener)},hideOnEscape:function(e){27===e.keyCode&&this.hide()}};function u(e,t){var n;return function(){var r=arguments,o=this;clearTimeout(n),n=setTimeout((function(){return e.apply(o,[].slice.call(r))}),t)}}function d(e,t,n){for(var r in void 0===t&&(t=new FormData),void 0===n&&(n=null),e=e||{})Object.prototype.hasOwnProperty.call(e,r)&&h(t,p(n,r),e[r]);return t}function p(e,t){return e?e+"["+t+"]":t}function h(e,t,n){return Array.isArray(n)?Array.from(n.keys()).forEach((function(r){return h(e,p(t,r.toString()),n[r])})):n instanceof Date?e.append(t,n.toISOString()):n instanceof File?e.append(t,n,n.name):n instanceof Blob?e.append(t,n):"boolean"==typeof n?e.append(t,n?"1":"0"):"string"==typeof n?e.append(t,n):"number"==typeof n?e.append(t,""+n):null==n?e.append(t,""):void d(n,e,t)}function f(e){return new URL(e.toString(),window.location.toString())}function m(e,n,r){var o=n.toString().includes("http"),s=o||n.toString().startsWith("/"),l=!s&&!n.toString().startsWith("#")&&!n.toString().startsWith("?"),c=n.toString().includes("?")||e===t.Method.GET&&Object.keys(r).length,u=n.toString().includes("#"),d=new URL(n.toString(),"http://localhost");return e===t.Method.GET&&Object.keys(r).length&&(d.search=i.stringify(a(i.parse(d.search,{ignoreQueryPrefix:!0}),r),{encodeValuesOnly:!0,arrayFormat:"brackets"}),r={}),[[o?d.protocol+"//"+d.host:"",s?d.pathname:"",l?d.pathname.substring(1):"",c?d.search:"",u?d.hash:""].join(""),r]}
2function g(e){return(e=new URL(e.href)).hash="",e}function v(e,t){return document.dispatchEvent(new CustomEvent("inertia:"+e,t))}(l=t.Method||(t.Method={})).GET="get",l.POST="post",l.PUT="put",l.PATCH="patch",l.DELETE="delete";var y=function(e){return v("finish",{detail:{visit:e}})},b=function(e){return v("navigate",{detail:{page:e}})},x=function(){function e(){this.visitId=null}var n=e.prototype;return n.init=function(e){var t=e.resolveComponent,n=e.swapComponent;this.page=e.initialPage,this.resolveComponent=t,this.swapComponent=n,this.isBackForwardVisit()?this.handleBackForwardVisit(this.page):this.isLocationVisit()?this.handleLocationVisit(this.page):this.handleInitialPageVisit(this.page),this.setupEventListeners()},n.handleInitialPageVisit=function(e){this.page.url+=window.location.hash,this.setPage(e,{preserveState:!0}).then((function(){return b(e)}))},n.setupEventListeners=function(){window.addEventListener("popstate",this.handlePopstateEvent.bind(this)),document.addEventListener("scroll",u(this.handleScrollEvent.bind(this),100),!0)},n.scrollRegions=function(){return document.querySelectorAll("[scroll-region]")},n.handleScrollEvent=function(e){"function"==typeof e.target.hasAttribute&&e.target.hasAttribute("scroll-region")&&this.saveScrollPositions()},n.saveScrollPositions=function(){this.replaceState(s({},this.page,{scrollRegions:Array.from(this.scrollRegions()).map((function(e){return{top:e.scrollTop,left:e.scrollLeft}}))}))},n.resetScrollPositions=function(){var e;document.documentElement.scrollTop=0,document.documentElement.scrollLeft=0,this.scrollRegions().forEach((function(e){e.scrollTop=0,e.scrollLeft=0})),this.saveScrollPositions(),window.location.hash&&(null==(e=document.getElementById(window.location.hash.slice(1)))||e.scrollIntoView())},n.restoreScrollPositions=function(){var e=this;this.page.scrollRegions&&this.scrollRegions().forEach((function(t,n){var r=e.page.scrollRegions[n];r&&(t.scrollTop=r.top,t.scrollLeft=r.left)}))},n.isBackForwardVisit=function(){return window.history.state&&window.performance&&window.performance.getEntriesByType("navigation").length>0&&"back_forward"===window.performance.getEntriesByType("navigation")[0].type},n.handleBackForwardVisit=function(e){var t=this;window.history.state.version=e.version,this.setPage(window.history.state,{preserveScroll:!0,preserveState:!0}).then((function(){t.restoreScrollPositions(),b(e)}))},n.locationVisit=function(e,t){try{window.sessionStorage.setItem("inertiaLocationVisit",JSON.stringify({preserveScroll:t})),window.location.href=e.href,g(window.location).href===g(e).href&&window.location.reload()}catch(e){return!1}},n.isLocationVisit=function(){try{return null!==window.sessionStorage.getItem("inertiaLocationVisit")}catch(e){return!1}},n.handleLocationVisit=function(e){var t,n,r,o,i=this,a=JSON.parse(window.sessionStorage.getItem("inertiaLocationVisit")||"");window.sessionStorage.removeItem("inertiaLocationVisit"),e.url+=window.location.hash,e.rememberedState=null!=(t=null==(n=window.history.state)?void 0:n.rememberedState)?t:{},e.scrollRegions=null!=(r=null==(o=window.history.state)?void 0:o.scrollRegions)?r:[],this.setPage(e,{preserveScroll:a.preserveScroll,preserveState:!0}).then((function(){a.preserveScroll&&i.restoreScrollPositions(),b(e)}))},n.isLocationVisitResponse=function(e){return e&&409===e.status&&e.headers["x-inertia-location"]},n.isInertiaResponse=function(e){return null==e?void 0:e.headers["x-inertia"]},n.createVisitId=function(){return this.visitId={},this.visitId},n.cancelVisit=function(e,t){var n=t.cancelled,r=void 0!==n&&n,o=t.interrupted,i=void 0!==o&&o;!e||e.completed||e.cancelled||e.interrupted||(e.cancelToken.cancel(),e.onCancel(),e.completed=!1,e.cancelled=r,e.interrupted=i,y(e),e.onFinish(e))},n.finishVisit=function(e){e.cancelled||e.interrupted||(e.completed=!0,e.cancelled=!1,e.interrupted=!1,y(e),e.onFinish(e))},n.resolvePreserveOption=function(e,t){return"function"==typeof e?e(t):"errors"===e?Object.keys(t.props.errors||{}).length>0:e},n.visit=function(e,n){var r=this,i=void 0===n?{}:n,a=i.method,l=void 0===a?t.Method.GET:a,u=i.data,p=void 0===u?{}:u,h=i.replace,y=void 0!==h&&h,b=i.preserveScroll,x=void 0!==b&&b,w=i.preserveState,k=void 0!==w&&w,_=i.only,E=void 0===_?[]:_,C=i.headers,N=void 0===C?{}
2:C,S=i.errorBag,V=void 0===S?"":S,A=i.forceFormData,D=void 0!==A&&A,M=i.onCancelToken,T=void 0===M?function(){}:M,B=i.onBefore,O=void 0===B?function(){}:B,P=i.onStart,L=void 0===P?function(){}:P,I=i.onProgress,j=void 0===I?function(){}:I,R=i.onFinish,$=void 0===R?function(){}:R,z=i.onCancel,F=void 0===z?function(){}:z,H=i.onSuccess,U=void 0===H?function(){}:H,W=i.onError,q=void 0===W?function(){}:W,Y="string"==typeof e?f(e):e;if(!function e(t){return t instanceof File||t instanceof Blob||t instanceof FileList&&t.length>0||t instanceof FormData&&Array.from(t.values()).some((function(t){return e(t)}))||"object"==typeof t&&null!==t&&Object.values(t).some((function(t){return e(t)}))}(p)&&!D||p instanceof FormData||(p=d(p)),!(p instanceof FormData)){var G=m(l,Y,p),K=G[1];Y=f(G[0]),p=K}var J={url:Y,method:l,data:p,replace:y,preserveScroll:x,preserveState:k,only:E,headers:N,errorBag:V,forceFormData:D,cancelled:!1,completed:!1,interrupted:!1};if(!1!==O(J)&&function(e){return v("before",{cancelable:!0,detail:{visit:e}})}(J)){this.activeVisit&&this.cancelVisit(this.activeVisit,{interrupted:!0}),this.saveScrollPositions();var X=this.createVisitId();this.activeVisit=s({},J,{onCancelToken:T,onBefore:O,onStart:L,onProgress:j,onFinish:$,onCancel:F,onSuccess:U,onError:q,cancelToken:o.CancelToken.source()}),T({cancel:function(){r.activeVisit&&r.cancelVisit(r.activeVisit,{cancelled:!0})}}),function(e){v("start",{detail:{visit:e}})}(J),L(J),o({method:l,url:g(Y).href,data:l===t.Method.GET?{}:p,params:l===t.Method.GET?p:{},cancelToken:this.activeVisit.cancelToken.token,headers:s({},N,{Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0},E.length?{"X-Inertia-Partial-Component":this.page.component,"X-Inertia-Partial-Data":E.join(",")}:{},V&&V.length?{"X-Inertia-Error-Bag":V}:{},this.page.version?{"X-Inertia-Version":this.page.version}:{}),onUploadProgress:function(e){p instanceof FormData&&(e.percentage=Math.round(e.loaded/e.total*100),function(e){v("progress",{detail:{progress:e}})}(e),j(e))}}).then((function(e){var t;if(!r.isInertiaResponse(e))return Promise.reject({response:e});var n=e.data;E.length&&n.component===r.page.component&&(n.props=s({},r.page.props,n.props)),x=r.resolvePreserveOption(x,n),(k=r.resolvePreserveOption(k,n))&&null!=(t=window.history.state)&&t.rememberedState&&n.component===r.page.component&&(n.rememberedState=window.history.state.rememberedState);var o=Y,i=f(n.url);return o.hash&&!i.hash&&g(o).href===i.href&&(i.hash=o.hash,n.url=i.href),r.setPage(n,{visitId:X,replace:y,preserveScroll:x,preserveState:k})})).then((function(){var e=r.page.props.errors||{};if(Object.keys(e).length>0){var t=V?e[V]?e[V]:{}:e;return function(e){v("error",{detail:{errors:e}})}(t),q(t)}return v("success",{detail:{page:r.page}}),U(r.page)})).catch((function(e){if(r.isInertiaResponse(e.response))return r.setPage(e.response.data,{visitId:X});if(r.isLocationVisitResponse(e.response)){var t=f(e.response.headers["x-inertia-location"]),n=Y;n.hash&&!t.hash&&g(n).href===t.href&&(t.hash=n.hash),r.locationVisit(t,!0===x)}else{if(!e.response)return Promise.reject(e);v("invalid",{cancelable:!0,detail:{response:e.response}})&&c.show(e.response.data)}})).then((function(){r.activeVisit&&r.finishVisit(r.activeVisit)})).catch((function(e){if(!o.isCancel(e)){var t=v("exception",{cancelable:!0,detail:{exception:e}});if(r.activeVisit&&r.finishVisit(r.activeVisit),t)return Promise.reject(e)}}))}},n.setPage=function(e,t){var n=this,r=void 0===t?{}:t,o=r.visitId,i=void 0===o?this.createVisitId():o,a=r.replace,s=void 0!==a&&a,l=r.preserveScroll,c=void 0!==l&&l,u=r.preserveState,d=void 0!==u&&u;return Promise.resolve(this.resolveComponent(e.component)).then((function(t){i===n.visitId&&(e.scrollRegions=e.scrollRegions||[],e.rememberedState=e.rememberedState||{},(s=s||f(e.url).href===window.location.href)?n.replaceState(e):n.pushState(e),n.swapComponent({component:t,page:e,preserveState:d}).then((function(){c||n.resetScrollPositions(),s||b(e)})))}))},n.pushState=function(e){this.page=e,window.history.pushState(e,"",e.url)},n.replaceState=function(e){this.page=e,window.history.replaceState(e,"",e.url)},n.handlePopstateEvent=function(e){var t=this;if(null!==e.state){var n=e.state,r=this.createVisitId();Promise.resolve(this.resolveComponent(n.component)).then((function(e){r===t.visitId&&(t.page=n,t.swapComponent({component:e,page:n,preserveState:!1}).then((function(){t.restoreScrollPositions(),b(n)})))}))}else{var o=f(this.page.url);o.hash=window.location.hash,this.replaceState(s({},this.page,{url:o.href})),this.resetScrollPositions()}},n.get=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),this.visit(e,s({},r,{method:t.Method.GET,data:n}))},n.reload=function(e){return void 0===e&&(e={}),this.visit(window.location.href,s({},e,{preserveScroll:!0,preserveState:!0}))},n.replace=function(e,t){var n;return void 0===t&&(t={}),console.warn("Inertia.replace() has been deprecated and will be removed in a future release. Please use Inertia."+(null!=(n=t.method)?n:"get")+"() instead."),this.visit(e,s({preserveState:!0},t,{replace:!0}))},n.post=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),this.visit(e,s({preserveState:!0},r,{method:t.Method.POST,data:n}))},n.put=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),this.visit(e,s({preserveState:!0},r,{method:t.Method.PUT,data:n}))},n.patch=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),this.visit(e,s({preserveState:!0},r,{method:t.Method.PATCH,data:n}))},n.delete=function(e,n){return void 0===n&&(n={}),this.visit(e,s({preserveState:!0},n,{method:t.Method.DELETE}))},n.remember=function(e,t){var n;void 0===t&&(t="default"),this.replaceState(s({},this.page,{rememberedState:s({},this.page.rememberedState,(n={}
2,n[t]=e,n))}))},n.restore=function(e){var t,n;return void 0===e&&(e="default"),null==(t=window.history.state)||null==(n=t.rememberedState)?void 0:n[e]},n.on=function(e,t){var n=function(e){var n=t(e);e.cancelable&&!e.defaultPrevented&&!1===n&&e.preventDefault()};return document.addEventListener("inertia:"+e,n),function(){return document.removeEventListener("inertia:"+e,n)}},e}(),w={buildDOMElement:function(e){var t=document.createElement("template");t.innerHTML=e;var n=t.content.firstChild;if(!e.startsWith("<script "))return n;var r=document.createElement("script");return r.innerHTML=n.innerHTML,n.getAttributeNames().forEach((function(e){r.setAttribute(e,n.getAttribute(e)||"")})),r},isInertiaManagedElement:function(e){return e.nodeType===Node.ELEMENT_NODE&&null!==e.getAttribute("inertia")},findMatchingElementIndex:function(e,t){var n=e.getAttribute("inertia");return null!==n?t.findIndex((function(e){return e.getAttribute("inertia")===n})):-1},update:u((function(e){var t=this,n=e.map((function(e){return t.buildDOMElement(e)}));Array.from(document.head.childNodes).filter((function(e){return t.isInertiaManagedElement(e)})).forEach((function(e){var r=t.findMatchingElementIndex(e,n);if(-1!==r){var o,i=n.splice(r,1)[0];i&&!e.isEqualNode(i)&&(null==e||null==(o=e.parentNode)||o.replaceChild(i,e))}else{var a;null==e||null==(a=e.parentNode)||a.removeChild(e)}})),n.forEach((function(e){return document.head.appendChild(e)}))}),1)},k=new x;t.Inertia=k,t.createHeadManager=function(e,t,n){var r={},o=0;function i(){var e=Object.values(r).reduce((function(e,t){return e.concat(t)}),[]).reduce((function(e,n){if(-1===n.indexOf("<"))return e;if(0===n.indexOf("<title ")){var r=n.match(/(<title [^>]+>)(.*?)(<\/title>)/);return e.title=r?""+r[1]+t(r[2])+r[3]:n,e}var o=n.match(/ inertia="[^"]+"/);return o?e[o[0]]=n:e[Object.keys(e).length]=n,e}),{});return Object.values(e)}function a(){e?n(i()):w.update(i())}return{createProvider:function(){var e=function(){var e=o+=1;return r[e]=[],e.toString()}();return{update:function(t){return function(e,t){void 0===t&&(t=[]),null!==e&&Object.keys(r).indexOf(e)>-1&&(r[e]=t),a()}(e,t)},disconnect:function(){return function(e){null!==e&&-1!==Object.keys(r).indexOf(e)&&(delete r[e],a())}(e)}}}}},t.hrefToUrl=f,t.mergeDataIntoQueryString=m,t.shouldIntercept=function(e){var t="a"===e.currentTarget.tagName.toLowerCase();return!(e.target&&null!=e&&e.target.isContentEditable||e.defaultPrevented||t&&e.which>1||t&&e.altKey||t&&e.ctrlKey||t&&e.metaKey||t&&e.shiftKey)},t.urlWithoutHash=g},8648:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},8655:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(6301),o={class:"mt-5"};var i=n(641),a=n(7827),s=n(332),l=n(4736),c=n(4312);const u=(0,i.pM)({props:["team"],components:{JetActionSection:a.A,JetConfirmationModal:s.A,JetDangerButton:l.A,JetSecondaryButton:c.A},data:function(){return{confirmingTeamDeletion:!1,deleting:!1,form:this.$inertia.form()}},methods:{confirmTeamDeletion:function(){this.confirmingTeamDeletion=!0},deleteTeam:function(){this.form.delete(route("teams.destroy",this.team),{errorBag:"deleteTeam"})}}});const d=(0,n(6262).A)(u,[["render",function(e,t,n,i,a,s){var l=(0,r.resolveComponent)("jet-danger-button"),c=(0,r.resolveComponent)("jet-secondary-button"),u=(0,r.resolveComponent)("jet-confirmation-modal"),d=(0,r.resolveComponent)("jet-action-section");return(0,r.openBlock)(),(0,r.createBlock)(d,null,{title:(0,r.withCtx)((function(){return t[2]||(t[2]=[(0,r.createTextVNode)(" Delete Team ")])})),description:(0,r.withCtx)((function(){return t[3]||(t[3]=[(0,r.createTextVNode)(" Permanently delete this team. ")])})),content:(0,r.withCtx)((function(){return[t[9]||(t[9]=(0,r.createElementVNode)("div",{class:"max-w-xl text-sm text-gray-600"}," Once a team is deleted, all of its resources and data will be permanently deleted. Before deleting this team, please download any data or information regarding this team that you wish to retain. ",-1)),(0,r.createElementVNode)("div",o,[(0,r.createVNode)(l,{onClick:e.confirmTeamDeletion},{default:(0,r.withCtx)((function(){return t[4]||(t[4]=[(0,r.createTextVNode)(" Delete Team ")])})),_:1},8,["onClick"])]),(0,r.createVNode)(u,{show:e.confirmingTeamDeletion,onClose:t[1]||(t[1]=function(t){return e.confirmingTeamDeletion=!1})},{title:(0,r.withCtx)((function(){return t[5]||(t[5]=[(0,r.createTextVNode)(" Delete Team ")])})),content:(0,r.withCtx)((function(){return t[6]||(t[6]=[(0,r.createTextVNode)(" Are you sure you want to delete this team? Once a team is deleted, all of its resources and data will be permanently deleted. ")])})),footer:(0,r.withCtx)((function(){return[(0,r.createVNode)(c,{onClick:t[0]||(t[0]=function(t){return e.confirmingTeamDeletion=!1})},{default:(0,r.withCtx)((function(){return t[7]||(t[7]=[(0,r.createTextVNode)(" Cancel ")])})),_:1}),(0,r.createVNode)(l,{class:(0,r.normalizeClass)(["ml-2",{"opacity-25":e.form.processing}]),onClick:e.deleteTeam,disabled:e.form.processing},{default:(0,r.withCtx)((function(){return t[8]||(t[8]=[(0,r.createTextVNode)(" Delete Team ")])})),_:1},8,["onClick","class","disabled"])]})),_:1},8,["show"])]})),_:1})}]])},8682:(e,t)=>{"use strict";function n(e){return"[object Object]"===Object.prototype.toString.call(e)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,r;return!1!==n(e)&&(void 0===(t=e.constructor)||!1!==n(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}},8766:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6301),o=["href"];const i={components:{JetDropdown:n(1857).A},props:{whiteText:{type:Boolean,default:!1}},computed:{currentLang:function(){return this.$page.props.locale}}};const a=(0,n(6262).A)(i,[["render",function(e,t,n,i,a,s){var l=(0,r.resolveComponent)("jet-dropdown");return(0,r.openBlock)(),(0,r.createBlock)(l,{width:"36"},{trigger:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",{class:(0,r.normalizeClass)(["flex items-center border-2 border-transparent focus:outline-none focus:border-gray-300 text-lm-blue hover:text-lm-light-blue text-sm font-medium",{"text-white lg:text-default":n.whiteText}])},[(0,r.createTextVNode)((0,r.toDisplayString)(e.$page.props.languageswitchurl[s.currentLang].code.toUpperCase())+"Â ",1),t[0]||(t[0]=(0,r.createElementVNode)("svg",{viewBox:"0 0 20 20",fill:"currentColor",class:"w-5 h-5"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z","clip-rule":"evenodd"})],-1))],2)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("nav",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.$page.props.languageswitchurl,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[e.code!==s.currentLang?((0,r.openBlock)(),(0,r.createElementBlock)("a",{class:"block hover:text-lm-blue border-b px-8 py-2 last:border-none",href:e.url,key:t},(0,r.toDisplayString)(e.name),9,o)):(0,r.createCommentVNode)("",!0)],64)})),256))])]})),_:1})}]])},8793:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>A});var r=n(6301),o={class:"2xl:container"},i={class:"flex flex-col"},a={style:{width:"100%"}},s={key:0},l=["onClick","title"],c=["onClick","title"],u={class:"sm:flex justify-between pt-5"},d={class:"flex items-center justify-between w-full"},p=["onClick"],h={class:"flex flex-col gap-4"};var f=n(5720),m=n(9234),g=n(9506),v=n(6581),y=n(1678),b=n(5715);function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function w(){w=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new T(r||[]);return o(a,"_invoke",{value:V(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",g={};function v(){}function y(){}function b(){}var k={};c(k,a,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(B([])));E&&E!==n&&r.call(E,a)&&(k=E);var C=b.prototype=v.prototype=Object.create(k);function N(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==x(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function V(t,n,r){var o=p;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:h,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&
2(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function B(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(x(t)+" is not iterable")}return y.prototype=b,o(C,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},N(S.prototype),c(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},N(C),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=B,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:B(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function k(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function _(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){k(i,r,o,a,s,"next",e)}function s(e){k(i,r,o,a,s,"throw",e)}a(void 0)}))}}const E=(0,r.defineComponent)({props:{documents:Object,base_url:String},data:function(){return{documentsData:[],drag:!1}},layout:f.A,components:{Head:m.p3,LmInputText:g.zX,LmInputFile:g.M3,LmAccordion:v.A,LmFileView:b.A,draggable:y.H},mounted:function(){this.documentsData=this.documents||[]},computed:{dragOptions:function(){return{animation:200,group:"documents",disabled:!1,ghostClass:"ghost"}}},methods:{addNew:function(){this.documentsData.unshift({id:null,title:"Document",file:null,url:""}),this.updateOrder()},updateOrder:function(){for(var e=0;e<this.documentsData.length;e++)this.documentsData[e].order=e+1},deleteDocument:function(e){var t=this;confirm(this.__("Diesen Dokument löschen?"))&&(0,m.mN)({id:e}).post(route("admin.documents.delete",{commune:this.$page.props.commune.slug}),{onSuccess:function(){t.$inertia.get("")}})},uploadedDocument:function(e,t){e.tempUrl=URL.createObjectURL(t),e.file=t},save:function(){var e=this;return _(w().mark((function t(){var n;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=new FormData,e.documentsData.forEach((function(e,t){e.file&&n.append("documents[".concat(t,"][file]"),e.file),n.append("documents[".concat(t,"][title]"),e.title),n.append("documents[".concat(t,"][order]"),e.order),e.id&&n.append("documents[".concat(t,"][id]"),e.id)}));try{e.$inertia.post(route("admin.documents.update",{commune:e.$page.props.commune.slug}),n,{preserveState:!1,onSuccess:function(){e.$inertia.get("")}})}catch(e){console.error("Error saving documents:",e)}case 3:case"end":return t.stop()}}),t)})))()},openDocument:function(e){window.open(e,"_blank")},copyLinkToClipboard:function(e){var t=this;return _(w().mark((function n(){return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,navigator.clipboard.writeText(t.base_url+e);case 3:n.next=8;break;case 5:n.prev=5,n.t0=n.catch(0),console.error("Failed to copy: ",n.t0);case 8:case"end":return n.stop()}}),n,null,[[0,5]])})))()}}});var C=n(5072),N=n.n(C),S=n(1476),V={insert:"head",singleton:!1};N()(S.A,V);S.A.locals;const A=(0,n(6262).A)(E,[["render",function(e,t,n,f,m,g){var v=(0,r.resolve
2Component)("Head"),y=(0,r.resolveComponent)("Text"),b=(0,r.resolveComponent)("lm-file-view"),x=(0,r.resolveComponent)("LmInputText"),w=(0,r.resolveComponent)("LmInputFile"),k=(0,r.resolveComponent)("LmAccordion"),_=(0,r.resolveComponent)("draggable");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createVNode)(v,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("title",null,(0,r.toDisplayString)(e.__("Dokumente")),1)]})),_:1}),(0,r.createVNode)(y,{type:"h1",text:e.__("Documents")},null,8,["text"]),t[6]||(t[6]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createVNode)(y,{class:"pt-5",type:"h2",text:e.__("Vorschau")},null,8,["text"]),t[7]||(t[7]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.withDirectives)((0,r.createElementVNode)("span",{class:"pt-5"},(0,r.toDisplayString)(e.__("Keine Dokumente")),513),[[r.vShow,e.documentsData.length<1]]),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.documentsData,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n.id,class:"pt-5 justify-between text-left"},[(0,r.createVNode)(y,{type:"h3",text:n.title},null,8,["text"]),(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createVNode)(b,{file:n},null,8,["file"])]),n.link?((0,r.openBlock)(),(0,r.createElementBlock)("p",s,[(0,r.createElementVNode)("button",{class:"transition-colors bg-slate-100 hover:bg-slate-200 px-3 py-2 rounded-l-md",onClick:function(t){return e.openDocument(n.link)},title:e.__("Ãffnen")},[t[2]||(t[2]=(0,r.createElementVNode)("i",{class:"bi bi-eye-fill"},null,-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Ãffnen")),1)],8,l),(0,r.createElementVNode)("button",{class:"ml-2 transition-colors bg-slate-100 hover:bg-slate-200 px-3 py-2 rounded-l-md",onClick:function(t){return e.copyLinkToClipboard(n.link)},title:e.__("Kopieren")},[t[3]||(t[3]=(0,r.createElementVNode)("i",{class:"bi bi-link-45deg"},null,-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Kopieren")),1)],8,c)])):(0,r.createCommentVNode)("",!0)]),t[4]||(t[4]=(0,r.createElementVNode)("hr",{class:"m-5"},null,-1))])})),128)),(0,r.createElementVNode)("div",u,[(0,r.createVNode)(y,{type:"h2",text:e.__("Alle Dokumente")},null,8,["text"]),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("button",{class:"btn-secondary mb-6 mr-4",onClick:t[0]||(t[0]=function(){return e.addNew&&e.addNew.apply(e,arguments)})},(0,r.toDisplayString)(e.__("Neues Dokument")),1),(0,r.createElementVNode)("button",{class:"btn-primary mb-6",onClick:t[1]||(t[1]=function(){return e.save&&e.save.apply(e,arguments)})},(0,r.toDisplayString)(e.__("Speichern")),1)])]),(0,r.createVNode)(_,(0,r.mergeProps)({list:e.documentsData,onChange:e.updateOrder,handle:".drag-trigger"},e.dragOptions),{default:(0,r.withCtx)((function(){return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.documentsData,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n.id,class:"text-left"},[(0,r.createVNode)(k,{title:n.title,chevron:!1},{header:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",d,[t[5]||(t[5]=(0,r.createElementVNode)("span",{class:"drag-trigger px-2 cursor-move"},[(0,r.createElementVNode)("i",{class:"bi bi-arrows-move"})],-1)),(0,r.createElementVNode)("button",{class:"text-red-500",onClick:function(t){return e.deleteDocument(n.id)}},(0,r.toDisplayString)(e.__("Löschen")),9,p)])]})),default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",h,[(0,r.createVNode)(x,{maxlength:"60",label:e.__("Titel"),modelValue:n.title,"onUpdate:modelValue":function(e){return n.title=e}},null,8,["label","modelValue","onUpdate:modelValue"]),(0,r.createVNode)(w,{fileTypes:"application/pdf",label:n.link?e.__("Change document"):e.__("Upload document"),onOnfilechange:function(t){return e.uploadedDocument(n,t)},placeholder:n.link?e.__("Change document"):e.__("Upload document")},null,8,["label","onOnfilechange","placeholder"])])]})),_:2},1032,["title"])])})),128))]})),_:1},16,["list","onChange"]),t[8]||(t[8]=(0,r.createElementVNode)("br",null,null,-1)),t[9]||(t[9]=(0,r.createElementVNode)("hr",null,null,-1)),t[10]||(t[10]=(0,r.createElementVNode)("br",null,null,-1))])}],["__scopeId","data-v-6455f8ec"]])},8859:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,x=String.prototype.toUpperCase,w=String.prototype.toLowerCase,k=RegExp.prototype.test,_=Array.prototype.concat,E=Array.prototype.join,C=Array.prototype.slice,N=Math.floor,S="function"==typeof BigInt?BigInt.prototype.valueOf:null,V=Object.getOwnPropertySymbols,A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,D="function"==typeof Symbol&&"object"==typeof Symbol.iterator,M="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===D||"symbol")?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,B=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function O(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||k.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-N(-e):N(e);if(r!==e){var o=String(r),i=y.call(t,o.length+1);return b.call(o,n,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var P=n(2634),L=P.custom,I=W(L)?L:null,j={__proto__:null,double:'"',single:"'"},R={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function $(e,t,n){var r=n.quoteStyle||t,o=j[r];return o+e+o}function z(e){return b.call(String(e),/"/g,""")}function F(e){return!M||!("object"==typeof e&&(M in e||void 0!==e[M]))}function H(e){return"[object Array]"===G(e)&&F(e)}function U(e){return"[object RegExp]"===G(e)&&F(e)}function W(e){if(D)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;
vendor: 5,208 bytes, line 2
2if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,o,s){var l=r||{};if(Y(l,"quoteStyle")&&!Y(j,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Y(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!Y(l,"customInspect")||l.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Y(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Y(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var x=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return J(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var k=String(t);return x?O(t,k):k}if("bigint"==typeof t){var N=String(t)+"n";return x?O(t,N):N}var V=void 0===l.depth?5:l.depth;if(void 0===o&&(o=0),o>=V&&V>0&&"object"==typeof t)return H(t)?"[Array]":"[Object]";var L=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=E.call(Array(e.indent+1)," ")}return{base:n,prev:E.call(Array(t+1),n)}}(l,o);if(void 0===s)s=[];else if(K(s,t)>=0)return"[Circular]";function R(t,n,r){if(n&&(s=C.call(s)).push(n),r){var i={depth:l.depth};return Y(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,o+1,s)}return e(t,l,o+1,s)}if("function"==typeof t&&!U(t)){var q=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),X=ne(t,R);return"[Function"+(q?": "+q:" (anonymous)")+"]"+(X.length>0?" { "+E.call(X,", ")+" }":"")}if(W(t)){var re=D?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(t);return"object"!=typeof t||D?re:Z(re)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var oe="<"+w.call(String(t.nodeName)),ie=t.attributes||[],ae=0;ae<ie.length;ae++)oe+=" "+ie[ae].name+"="+$(z(ie[ae].value),"double",l);return oe+=">",t.childNodes&&t.childNodes.length&&(oe+="..."),oe+="</"+w.call(String(t.nodeName))+">"}if(H(t)){if(0===t.length)return"[]";var se=ne(t,R);return L&&!function(e){for(var t=0;t<e.length;t++)if(K(e[t],"\n")>=0)return!1;return!0}(se)?"["+te(se,L)+"]":"[ "+E.call(se,", ")+" ]"}if(function(e){return"[object Error]"===G(e)&&F(e)}(t)){var le=ne(t,R);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===le.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(le,", ")+" }":"{ ["+String(t)+"] "+E.call(_.call("[cause]: "+R(t.cause),le),", ")+" }"}if("object"==typeof t&&m){if(I&&"function"==typeof t[I]&&P)return P(t,{depth:V-o});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ce=[];return a&&a.call(t,(function(e,n){ce.push(R(n,t,!0)+" => "+R(e,t))})),ee("Map",i.call(t),ce,L)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ue=[];return u&&u.call(t,(function(e){ue.push(R(e,t))})),ee("Set",c.call(t),ue,L)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if(function(e){return"[object Number]"===G(e)&&F(e)}(t))return Z(R(Number(t)));if(function(e){if(!e||"object"!=typeof e||!S)return!1;try{return S.call(e),!0}catch(e){}return!1}(t))return Z(R(S.call(t)));if(function(e){return"[object Boolean]"===G(e)&&F(e)}(t))return Z(f.call(t));if(function(e){return"[object String]"===G(e)&&F(e)}(t))return Z(R(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===G(e)&&F(e)}(t)&&!U(t)){var de=ne(t,R),pe=B?B(t)===Object.prototype:t instanceof Object||t.constructor===Object,he=t instanceof Object?"":"null prototype",fe=!pe&&M&&Object(t)===t&&M in t?y.call(G(t),8,-1):he?"Object":"",me=(pe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||he?"["+E.call(_.call([],fe||[],he||[]),": ")+"] ":"");return 0===de.length?me+"{}":L?me+"{"+te(de,L)+"}
2":me+"{ "+E.call(de,", ")+" }"}return String(t)};var q=Object.prototype.hasOwnProperty||function(e){return e in this};function Y(e,t){return q.call(e,t)}function G(e){return m.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function J(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return J(y.call(e,0,t.maxStringLength),t)+r}var o=R[t.quoteStyle||"single"];return o.lastIndex=0,$(b.call(b.call(e,o,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function Z(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function ee(e,t,n,r){return e+" ("+t+") {"+(r?te(n,r):E.call(n,", "))+"}"}function te(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+E.call(e,","+n)+"\n"+t.prev}function ne(e,t){var n=H(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Y(e,o)?t(e[o],e):""}var i,a="function"==typeof V?V(e):[];if(D){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)Y(e,l)&&(n&&String(Number(l))===l&&l<e.length||D&&i["$"+l]instanceof Symbol||(k.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof V)for(var c=0;c<a.length;c++)T.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},8968:e=>{"use strict";e.exports=Math.floor},8979:(e,t,n)=>{"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{A:()=>r})},8980:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,"input:checked~.dot{transform:translateX(100%)}.flip-list-move{transition:transform .5s}.no-move{transition:transform 0s}",""]);const i=o},8983:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>F});var r=n(6301),o={class:"px-4 py-6 xl:container xl:mx-auto"},i={class:"lg:flex lg:gap-x-6 lg:h-full"},a={class:"flex-shrink-0"},s={class:"hidden lg:block sticky top-24"},l={class:"mb-8 lg:hidden"},c={class:"flex-grow"},u={class:"mb-2"},d={class:"divide-y divide-gray-200"},p={class:"flex items-center gap-2"},h=["src"],f={class:"flex-grow"},m={class:"flex items-center flex-wrap"},g={class:"flex gap-2 flex-wrap"},v={class:"flex lg:hidden gap-2 items-center mt-2"},y={class:"flex flex-col lg:hidden"},b=["onClick","title"],x={class:"hidden lg:flex gap-2 items-center"},w={class:"flex items-center"},k={class:"",title:"Likes"},_={class:"ml-1",title:"Kommentare"},E={class:"flex"},C=["onClick","title"],N={key:0,class:"flex justify-center mt-4"},S={key:0,class:"rounded-full bg-slate-100 flex items-center mb-4"},V={key:1,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},A={key:3,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},D={class:"py-2 h-full flex items-center first:rounded-l-full last:rounded-r-full px-3"},M={key:5,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},T={key:7,class:"py-2 px-4 h-full flex items-center first:rounded-l-full last:rounded-r-full text-gray-300"},B={class:"font-semibold"};var O=n(641),P=n(8367),L=n(6581),I=n(6153),j=n(1963),R=n(1857),$=n(756);const z=(0,O.pM)({layout:P.A,props:["annonces"],components:{LmAccordion:L.A,LmProfileMenu:I.A,categoryBadge:j.A,JetDropdown:R.A,DialogModal:$.A},data:function(){return{deleteAnnonceData:{title:null,id:null},deleteModal:!1}},methods:{updateDeleteInfo:function(e,t){this.deleteAnnonceData.title=e,this.deleteAnnonceData.id=t,this.deleteModal=!0},confirmDeleteAnnonce:function(){this.$inertia.post(route("annonces.delete",{commune:this.$page.props.commune.slug}),{annonce_id:this.deleteAnnonceData.id},{preserveState:!1})},statusClass:function(e){switch(e.status){case 0:return"text-gray-600";case 1:return"text-lm-blue";case 2:return"text-emerald-700"}}},computed:{currentPage:function(){switch(this.route().current()){case"profile.show":return'<i class="bi bi-pers
2on-lines-fill mr-2"></i>'+this.__("Mein Profil");case"profile.notifications":return'<i class="bi bi-bell mr-2"></i>'+this.__("Benachrichtigungen");case"profile.messages":return'<i class="bi bi-chat-dots mr-2"></i>'+this.__("Nachrichten");case"profile.events":return'<i class="bi bi-calendar2-event mr-2"></i>'+this.__("Meine Events");case"profile.annonces":return'<i class="bi bi-megaphone mr-2"></i>'+this.__("Meine Anzeigen")}}}});const F=(0,n(6262).A)(z,[["render",function(e,t,n,O,P,L){var I=this,j=(0,r.resolveComponent)("lm-profile-menu"),R=(0,r.resolveComponent)("lm-accordion"),$=(0,r.resolveComponent)("Text"),z=(0,r.resolveComponent)("Link"),F=(0,r.resolveComponent)("category-badge"),H=(0,r.resolveComponent)("jet-dropdown"),U=(0,r.resolveComponent)("dialog-modal");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",s,[(0,r.createVNode)(j)]),(0,r.createElementVNode)("div",l,[(0,r.createVNode)(R,{title:e.currentPage},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(j)]})),_:1},8,["title"])])]),(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("div",u,[(0,r.createVNode)($,{type:"h2",text:"Meine Anzeigen"})]),(0,r.createElementVNode)("div",d,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.annonces.data,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"flex lg:items-center lg:justify-between w-full p-2 flex-col lg:flex-row",key:o},[(0,r.createElementVNode)("div",p,[n.header_image_url?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,src:n.header_image_url,class:"block h-12 sm:h-20 w-12 sm:w-20 rounded-sm object-cover mr-2"},null,8,h)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",f,[(0,r.createElementVNode)("div",m,[(0,r.createVNode)(z,{class:"text-xl mr-2",href:e.route("annonces.show",{commune:e.$page.props.commune.slug,annonce:n.id,slug:n.slug}),title:e.__("Titel")},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(n.title),1)]})),_:2},1032,["href","title"]),(0,r.createVNode)(F,{category:n.category},null,8,["category"])]),(0,r.createElementVNode)("div",g,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.tags,(function(n,o){return(0,r.openBlock)(),(0,r.createBlock)(z,{href:e.route("annonces.index",{commune:e.$page.props.commune.slug,tag:n.name.nl}),class:"px-2 py-1 bg-slate-100 hover:bg-slate-200 rounded-md text-sm transition-colors",key:o},{default:(0,r.withCtx)((function(){return[t[3]||(t[3]=(0,r.createElementVNode)("i",{class:"bi bi-hash"},null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(n.name.nl),1)]})),_:2},1032,["href"])})),128))]),(0,r.createElementVNode)("div",v,[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(e.statusClass(n))},(0,r.toDisplayString)(n.statusTranslated),3)])]),(0,r.createElementVNode)("div",y,[(0,r.createVNode)(z,{class:"transition-colors bg-slate-100 hover:bg-slate-200 px-3 py-2 rounded-t-md",href:e.route("annonces.edit",{commune:I.$page.props.commune.slug,annonce:n.id,slug:n.slug}),title:e.__("Bearbeiten")},{default:(0,r.withCtx)((function(){return t[4]||(t[4]=[(0,r.createElementVNode)("button",null,[(0,r.createElementVNode)("i",{class:"bi bi-pencil"})],-1)])})),_:2},1032,["href","title"]),(0,r.createVNode)(z,{class:"transition-colors bg-slate-100 hover:bg-slate-200 px-3 py-2",href:e.route("annonces.copy",{commune:e.$page.props.commune.slug,annonce:n.id,slug:n.slug}),title:e.__("Kopieren")},{default:(0,r.withCtx)((function(){return t[5]||(t[5]=[(0,r.createElementVNode)("button",null,[(0,r.createElementVNode)("i",{class:"bi bi-back"})],-1)])})),_:2},1032,["href","title"]),(0,r.createElementVNode)("button",{onClick:function(t){return e.updateDeleteInfo(n.title,n.id)},class:"transition-colors bg-slate-100 hover:bg-red-800 hover:text-white px-3 py-2 rounded-b-md",href:"#",title:e.__("Löschen")},t[6]||(t[6]=[(0,r.createElementVNode)("i",{class:"bi bi-trash"},null,-1)]),8,b)])]),(0,r.createElementVNode)("div",x,[(0,r.createElementVNode)("div",w,[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(e.statusClass(n))},(0,r.toDisplayString)(n.statusTranslated),3)]),(0,r.createElementVNode)("span",k,[t[7]||(t[7]=(0,r.createElementVNode)("i",{class:"bi bi-hand-thumbs-up"},null,-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(n.likes_count),1)]),(0,r.createElementVNode)("span",_,[t[8]||(t[8]=(0,r.createElementVNode)("i",{class:"bi bi-chat"},null,-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(n.comments_count),1)]),(0,r.createVNode)(H,{width:"auto",contentClasses:"bg-white"},{trigger:(0,r.withCtx)((function(){return t[9]||(t[9]=[(0,r.createElementVNode)("button",{class:"btn-icon"},[(0,r.createElementVNode)("i",{class:"bi bi-three-dots"})],-1)])})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",E,[(0,r.createVNode)(z,{class:"transition-colors bg-slate-100 hover:bg-slate-200 px-3 py-2 rounded-l-md",href:e.route("annonces.edit",{commune:I.$page.props.commune.slug,annonce:n.id,slug:n.slug}),title:e.__("Bearbeiten")},{default:(0,r.withCtx)((function(){return t[10]||(t[10]=[(0,r.createElementVNode)("button",null,[(0,r.createElementVNode)("i",{class:"bi bi-pencil"})],-1)])})),_:2},1032,["href","title"]),(0,r.createVNode)(z,{class:"transition-colors bg-slate-100 hover:bg-slate-200 px-3 py-2",href:e.route("annonces.copy",{commune:e.$page.props.commune.slug,annonce:n.id,slug:n.slug}),title:e.__("Kopieren")},{default:(0,r.withCtx)((function(){return t[11]||(t[11]=[(0,r.createElementVNode)("button",null,[(0,r.createElementVNode)("i",{class:"bi bi-back"})],-1)])})),_:2},1032,["href","title"]),(0,r.createElementVNode)("button",{onClick:function(t){return e.updateDeleteInfo(n.title,n.id)},class:"transition-colors bg-slate-100 hover:bg-red-800 hover:text-white px-3 py-2 rounded-r-md",href:"#",title:e.__("Löschen")},t[12]||(t[12]=[(0,r.createElementVNode)("i",{class:"bi bi-trash"},null,-1)]),8,C)])]})),_:2},1024)])])})),128))]),e.annonces.last_page>1?((0,r.openBlock)(),(0,r.createElementBlock)("div",N,[e.annonces.data.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",S,[e.annonces.current_page>1?((0,r.openBlock)(),(0,r.createBlock)(z,{key:0,href:e.annonces.first_page_url,class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[13]||(t[13]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-left"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),1===e.annonces.current_page?((0,r.openBlock)(),(0,r.createElementBlock)("div",V,t[14]||(t[14]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-left"},null,-1)]))):(0,r.createCommentVNode)("",!0),e.annonces.prev_page_url?((0,r.openBlock)(),(0,r.createBlock)(z,{key:2,href:e.annonces.prev_page_url,class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[15]||(t[15]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-left"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),1===e.annonces.current_page?((0,r.openBlock)(),(0,r.createElementBlock)("div",A,t[16]||(t[16]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-left"},null,-1)]))):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",D,(0,r.toDisplayString)(e.annonces.current_page+" / "+e.annonces.last_page),1),e.annonces.next_page_url?((0,r.openBlock)(),(0,r.createBlock)(z,{key:4,href:e.annonces.next_page_url,class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[17]||(t[17]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-right"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),e.annonces.next_page_url?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",M,t[18]||(t[18]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-right"},null,-1)]))),e.annonces.current_page<e.annonces.last_page?((0,r.openBlock)(),(0,r.createBlock)(z,{key:6,href:e.annonces.last_page_url,class:"py-2 hover:text-white px-4 hover:bg-lm-blue h-full flex items-center first:rounded-l-full last:rounded-r-full"},{default:(0,r.withCtx)((function(){return t[19]||(t[19]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-right"},null,-1)])})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0),e.annonces.current_page===e.annonces.last_page?((0,r.openBlock)(),(0,r.createElementBlock)("div",T,t[20]||(t[20]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-double-right"},null,-1)]))):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)])])]),(0,r.createVNode)(U,{show:e.deleteModal,onClose:t[2]||(t[2]=function(t){return e.deleteModal=!1})},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Anzeige löschen")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("p",B,(0,r.toDisplayString)(e.__("Sind Sie sicher?")),1),(0,r.createElementVNode)("p",null," «"+(0,r.toDisplayString)(e.deleteAnnonceData.title)+"» "+(0,r.toDisplayString)(e.__("delete annonce text")),1)]})),footer:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",{onClick:t[0]||(t[0]=function(t){return e.deleteModal=!1}),class:"mr-4"},(0,r.toDisplayString)(e.__("Abbrechen")),1),(0,r.createElementVNode)("button",{onClick:t[1]||(t[1]=function(){return e.confirmDeleteAnnonce&&e.confirmDeleteAnnonce.apply(e,arguments)}),class:"bg-red-700 hover:bg-red-800 px-3 py-2 rounded-md text-white"},(0,r.toDisplayString)(e.__("Löschen")),1)]})),_:1},8,["show"])])}]])},9012:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},9079:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);
2o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.render=void 0;var s=a(n(5413)),l=n(2730),c=n(1019),u=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function d(e){return e.replace(/"/g,""")}var p=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function h(e,t){void 0===t&&(t={});for(var n=("length"in e?e:[e]),r="",o=0;o<n.length;o++)r+=f(n[o],t);return r}function f(e,t){switch(e.type){case s.Root:return h(e.children,t);case s.Doctype:case s.Directive:return"<".concat(e.data,">");case s.Comment:return function(e){return"\x3c!--".concat(e.data,"--\x3e")}(e);case s.CDATA:return function(e){return"<![CDATA[".concat(e.children[0].data,"]]>")}(e);case s.Script:case s.Style:case s.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=c.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&m.has(e.parent.name)&&(t=r(r({},t),{xmlMode:!1})));!t.xmlMode&&g.has(e.name)&&(t=r(r({},t),{xmlMode:"foreign"}));var o="<".concat(e.name),i=function(e,t){var n;if(e){var r=!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)?d:t.xmlMode||"utf8"!==t.encodeEntities?l.encodeXML:l.escapeAttribute;return Object.keys(e).map((function(n){var o,i,a=null!==(o=e[n])&&void 0!==o?o:"";return"foreign"===t.xmlMode&&(n=null!==(i=c.attributeNames.get(n))&&void 0!==i?i:n),t.emptyAttrs||t.xmlMode||""!==a?"".concat(n,'="').concat(r(a),'"'):n})).join(" ")}}(e.attribs,t);i&&(o+=" ".concat(i));0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&p.has(e.name))?(t.xmlMode||(o+=" "),o+="/>"):(o+=">",e.children.length>0&&(o+=h(e.children,t)),!t.xmlMode&&p.has(e.name)||(o+="</".concat(e.name,">")));return o}(e,t);case s.Text:return function(e,t){var n,r=e.data||"";!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)||!t.xmlMode&&e.parent&&u.has(e.parent.name)||(r=t.xmlMode||"utf8"!==t.encodeEntities?(0,l.encodeXML)(r):(0,l.escapeText)(r));return r}(e,t)}}t.render=h,t.default=h;var m=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),g=new Set(["svg","math"])},9106:(e,t,n)=>{"use strict";var r=n(9516);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},9116:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".badge[data-v-1516b054]{border-radius:50%;display:inline-block;height:20px;width:20px}.edit-form[data-v-1516b054]{border-top:1px solid #ccc;margin-top:10px;padding-top:10px}.category-item[data-v-1516b054]{align-items:center;border-bottom:1px solid #eee;display:flex;justify-content:space-between;padding:10px 0}.error[data-v-1516b054]{color:red;font-size:.8rem;margin-top:5px}.flip-list-move[data-v-1516b054]{transition:transform .5s}.no-move[data-v-1516b054]{transition:transform 0s}",""]);const i=o},9124:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};
2Object.defineProperty(t,"__esModule",{value:!0}),t.getOuterHTML=s,t.getInnerHTML=function(e,t){return(0,o.hasChildren)(e)?e.children.map((function(e){return s(e,t)})).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,o.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,o.isCDATA)(t)?e(t.children):(0,o.isText)(t)?t.data:""},t.textContent=function e(t){if(Array.isArray(t))return t.map(e).join("");if((0,o.hasChildren)(t)&&!(0,o.isComment)(t))return e(t.children);return(0,o.isText)(t)?t.data:""},t.innerText=function e(t){if(Array.isArray(t))return t.map(e).join("");if((0,o.hasChildren)(t)&&(t.type===a.ElementType.Tag||(0,o.isCDATA)(t)))return e(t.children);return(0,o.isText)(t)?t.data:""};var o=n(4128),i=r(n(9079)),a=n(5413);function s(e,t){return(0,i.default)(e,t)}},9137:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},9174:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".drag-trigger[data-v-c3c59c12]{cursor:move}",""]);const i=o},9220:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(6301),o={class:"max-w-screen-xl mx-auto py-2 px-3 sm:px-6 lg:px-8"},i={class:"flex items-center justify-between flex-wrap"},a={class:"w-0 flex-1 flex items-center min-w-0"},s={key:0,class:"h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},l={key:1,class:"h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},c={class:"ml-3 font-medium text-sm text-white truncate"},u={class:"flex-shrink-0 sm:ml-3"},d=["aria-label"];const p=(0,n(641).pM)({data:function(){return{show:!0}},computed:{style:function(){var e;return(null===(e=this.$page.props.jetstream.flash)||void 0===e?void 0:e.bannerStyle)||"success"},message:function(){var e;return(null===(e=this.$page.props.jetstream.flash)||void 0===e?void 0:e.banner)||""}}});const h=(0,n(6262).A)(p,[["render",function(e,t,n,p,h,f){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[e.show&&e.message?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)({"bg-indigo-500":"success"==e.style,"bg-red-700":"danger"==e.style})},[(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["flex p-2 rounded-lg",{"bg-indigo-600":"success"==e.style,"bg-red-600":"danger"==e.style}])},["success"==e.style?((0,r.openBlock)(),(0,r.createElementBlock)("svg",s,t[1]||(t[1]=[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)]))):(0,r.createCommentVNode)("",!0),"danger"==e.style?((0,r.openBlock)(),(0,r.createElementBlock)("svg",l,t[2]||(t[2]=[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"},null,-1)]))):(0,r.createCommentVNode)("",!0)],2),(0,r.createElementVNode)("p",c,(0,r.toDisplayString)(e.message),1)]),(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("button",{type:"button",class:(0,r.normalizeClass)(["-mr-1 flex p-2 rounded-md focus:outline-none sm:-mr-2 transition",{"hover:bg-indigo-600 focus:bg-indigo-600":"success"==e.style,"hover:bg-red-600 focus:bg-red-600":"danger"==e.style}]),"aria-label":e.__("Dismiss"),onClick:t[0]||(t[0]=(0,r.withModifiers)((function(t){return e.show=!1}),["prevent"]))},t[3]||(t[3]=[(0,r.createElementVNode)("svg",{class:"h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]),10,d)])])])],2)):(0,r.createCommentVNode)("",!0)])}]])},9234:(e,t,n)=>{function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=r(n(8142)),i=n(6301),a=r(n(7193)),s=n(8646);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(){var e=[].slice.call(arguments),t="string"==typeof e[0]?e[0]:null,n=("string"==typeof e[0]?e[1]:e[0])||{},r=t?s.Inertia.restore(t):null,c=a(n),u=null,d=null,p=function(e){return e},h=i.reactive(l({},r?r.data:n,{isDirty:!1,errors:r?r.errors:{},hasErrors:!1,processing:!1,progress:null,wasSuccessful:!1,recentlySuccessful:!1,data:function(){var e=this;return Object.keys(n).reduce((function(t,n){return t[n]=e[n],t}),{})},transform:function(e){return p=e,this},reset:function(){var e=[].slice.call(arguments),t=a(c);return Object.assign(this,0===e.length?t:Object.keys(t).filter((function(t){return e.includes(t)})).reduce((function(e,n){return e[n]=t[n],e}),{})),this},clearErrors:function(){var e=this,t=[].slice.call(arguments);return this.errors=Object.keys(this.errors).reduce((function(n,r){var o;return l({},n,t.length>0&&!t.includes(r)?((o={})[r]=e.errors[r],o):{})}),{}),this.hasErrors=Object.keys(this.errors).length>0,this},submit:function(e,t,n){var r=this,o=this;void 0===n&&(n={});var i=p(this.data()),h=l({},n,{onCancelToken:function(e){if(u=e,n.onCancelToken)return n.onCancelToken(e)},onBefore:function(e){if(o.wasSuccessful=!1,o.recentlySuccessful=!1,clearTimeout(d),n.onBefore)return n.onBefore(e)},onStart:function(e){if(o.processing=!0,n.onStart)return n.onStart(e)},onProgress:function(e){if(o.progress=e,n.onProgress)return n.onProgress(e)},onSuccess:function(e){try{var t=function(e){return c=a(r.data()),r.isDirty=!1,e};return r.processing=!1,r.progress=null,r.clearErrors(),r.wasSuccessful=!0,r.recentlySuccessful=!0,d=setTimeout((function(){return r.recentlySuccessful=!1}),2e3),Promise.resolve(n.onSuccess?Promise.resolve(n.onSuccess(e)).then(t):t(null))}catch(e){return Promise.reject(e)}},onError:function(e){if(o.processing=!1,o.progress=null,o.errors=e,o.hasErrors=!0,n.onError)return n.onError(e)},onCancel:function(){if(o.processing=!1,o.progress=null,n.onCancel)return n.onCancel()},onFinish:function(){if(o.processing=!1,o.progress=null,u=null,n.onFinish)return n.onFinish()}});"delete"===e?s.Inertia.delete(t,l({},h,{data:i})):s.Inertia[e](t,i,h)},get:function(e,t){this.submit("get",e,t)},post:function(e,t){this.submit("post",e,t)},put:function(e,t){this.submit("put",e,t)},patch:function(e,t){this.submit("patch",e,t)},delete:function(e,t){this.submit("delete",e,t)},cancel:function(){u&&u.cancel()},__rememberable:null===t,__remember:function(){return{data:this.data(),errors:this.errors}},__restore:function(e){Object.assign(this,e.data),Object.assign(this.errors,e.errors),this.hasErrors=Object.keys(this.errors).length>0}}));return i.watch(h,(function(e){h.isDirty=!o(h.data(),c),t&&s.Inertia.remember(a(e.__remember()),t)}),{immediate:!0,deep:!0}),h}var u={created:function(){var e=this;if(this.$options.remember){Array.isArray(this.$options.remember)&&(this.$options.remember={data:this.$options.remember}),"string"==typeof this.$options.remember&&(this.$options.remember={data:[this.$options.remember]}),"string"==typeof this.$options.remember.data&&(this.$options.remember={data:[this.$options.remember.data]});var t=this.$options.remember.key instanceof Function?this.$options.remember.key.call(this):this.$options.remember.key,n=s.Inertia.restore(t),r=this.$options.remember.data.filter((function(t){return!(null!==e[t]&&"object"==typeof e[t]&&!1===e[t].__rememberable)})),o=function(t){return null!==e[t]&&"object"==typeof e[t]&&"function"==typeof e[t].__remember&&"function"==typeof e[t].__restore};r.forEach((function(i){void 0!==e[i]&&void 0!==n&&void 0!==n[i]&&(o(i)?e[i].__restore(n[i]):e[i]=n[i]),e.$watch(i,(function(){s.Inertia.remember(r.reduce((function(t,n){var r;return l({},t,((r={})[n]=a(o(n)?e[n].__remember():e[n]),r))}),{}),t)}),{immediate:!0,deep:!0})}))}}},d=i.ref(null),p=i.ref({}),h=i.ref(null),f=null,m={name:"Inertia",props:{initialPage:{type:Object,required:!0},initialComponent:{type:Object,required:!1},resolveComponent:{type:Function,required:!1},titleCallback:{type:Function,required:!1,default:function(e){return e}},onHeadUpdate:{type:Function,required:!1,default:function(){return function(){}}}},setup:function(e){var t=e.initialPage,n=e.initialComponent,r=e.resolve
2Component,o=e.titleCallback,a=e.onHeadUpdate;d.value=n?i.markRaw(n):null,p.value=t,h.value=null;var c="undefined"==typeof window;return f=s.createHeadManager(c,o,a),c||s.Inertia.init({initialPage:t,resolveComponent:r,swapComponent:function(e){try{return d.value=i.markRaw(e.component),p.value=e.page,h.value=e.preserveState?h.value:Date.now(),Promise.resolve()}catch(e){return Promise.reject(e)}}}),function(){if(d.value){d.value.inheritAttrs=!!d.value.inheritAttrs;var e=i.h(d.value,l({},p.value.props,{key:h.value}));return d.value.layout?"function"==typeof d.value.layout?d.value.layout(i.h,e):(Array.isArray(d.value.layout)?d.value.layout:[d.value.layout]).concat(e).reverse().reduce((function(e,t){return t.inheritAttrs=!!t.inheritAttrs,i.h(t,l({},p.value.props),(function(){return e}))})):e}}}},g={install:function(e){s.Inertia.form=c,Object.defineProperty(e.config.globalProperties,"$inertia",{get:function(){return s.Inertia}}),Object.defineProperty(e.config.globalProperties,"$page",{get:function(){return p.value}}),Object.defineProperty(e.config.globalProperties,"$headManager",{get:function(){return f}}),e.mixin(u)}},v={props:{title:{type:String,required:!1}},data:function(){return{provider:this.$headManager.createProvider()}},beforeUnmount:function(){this.provider.disconnect()},methods:{isUnaryTag:function(e){return["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"].indexOf(e.type)>-1},renderTagStart:function(e){e.props=e.props||{},e.props.inertia=void 0!==e.props["head-key"]?e.props["head-key"]:"";var t=Object.keys(e.props).reduce((function(t,n){var r=e.props[n];return["key","head-key"].includes(n)?t:""===r?t+" "+n:t+" "+n+'="'+r+'"'}),"");return"<"+e.type+t+">"},renderTagChildren:function(e){var t=this;return"string"==typeof e.children?e.children:e.children.reduce((function(e,n){return e+t.renderTag(n)}),"")},renderTag:function(e){if("Symbol(Text)"===e.type.toString())return e.children;if("Symbol()"===e.type.toString())return"";if("Symbol(Comment)"===e.type.toString())return"";var t=this.renderTagStart(e);return e.children&&(t+=this.renderTagChildren(e)),this.isUnaryTag(e)||(t+="</"+e.type+">"),t},addTitleElement:function(e){return this.title&&!e.find((function(e){return e.startsWith("<title")}))&&e.push("<title inertia>"+this.title+"</title>"),e},renderNodes:function(e){var t=this;return this.addTitleElement(e.flatMap((function(e){return"Symbol(Fragment)"===e.type.toString()?e.children:e})).map((function(e){return t.renderTag(e)})).filter((function(e){return e})))}},render:function(){this.provider.update(this.renderNodes(this.$slots.default?this.$slots.default():[]))}},y={name:"InertiaLink",props:{as:{type:String,default:"a"},data:{type:Object,default:function(){return{}}},href:{type:String},method:{type:String,default:"get"},replace:{type:Boolean,default:!1},preserveScroll:{type:Boolean,default:!1},preserveState:{type:Boolean,default:null},only:{type:Array,default:function(){return[]}},headers:{type:Object,default:function(){return{}}}},setup:function(e,t){var n=t.slots,r=t.attrs;return function(e){var t=e.as.toLowerCase(),o=e.method.toLowerCase(),a=s.mergeDataIntoQueryString(o,e.href||"",e.data),c=a[0],u=a[1];return"a"===t&&"get"!==o&&console.warn('Creating POST/PUT/PATCH/DELETE <a> links is discouraged as it causes "Open Link in New Tab/Window" accessibility issues.\n\nPlease specify a more appropriate element using the "as" attribute. For example:\n\n<inertia-link href="'+c+'" method="'+o+'" as="button">...</inertia-link>'),i.h(e.as,l({},r,"a"===t?{href:c}:{},{onClick:function(t){var n;s.shouldIntercept(t)&&(t.preventDefault(),s.Inertia.visit(c,{data:u,method:o,replace:e.replace,preserveScroll:e.preserveScroll,preserveState:null!=(n=e.preserveState)?n:"get"!==o,only:e.only,headers:e.headers,onCancelToken:r.onCancelToken||function(){return{}},onBefore:r.onBefore||function(){return{}},onStart:r.onStart||function(){return{}},onProgress:r.onProgress||function(){return{}},onFinish:r.onFinish||function(){return{}},onCancel:r.onCancel||function(){return{}},onSuccess:r.onSuccess||function(){return{}},onError:r.onError||function(){return{}}}))}}),n)}}};t.p3=v,t.N_=y,t.sj=function(e){try{var t,n,r,o,a,s,l;n=void 0===(t=e.id)?"app":t,r=e.resolve,o=e.setup,a=e.title,s=e.page,l=e.render;var c="undefined"==typeof window,u=c?null:document.getElementById(n),d=s||JSON.parse(u.dataset.page),p=function(e){return Promise.resolve(r(e)).then((function(e){return e.default||e}))},h=[];return Promise.resolve(p(d.component).then((function(e){return o({el:u,app:m,App:m,props:{initialPage:d,initialComponent:e,resolve
2Component:p,titleCallback:a,onHeadUpdate:c?function(e){return h=e}:null},plugin:g})}))).then((function(e){return function(){if(c)return Promise.resolve(l(i.createSSRApp({render:function(){return i.h("div",{id:n,"data-page":JSON.stringify(d),innerHTML:l(e)})}}))).then((function(e){return{head:h,body:e}}))}()}))}catch(e){return Promise.reject(e)}},t.mN=c},9238:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(6301),o={class:"col-span-6"},i={class:"flex items-center mt-2"},a=["src","alt"],s={class:"ml-4 leading-tight"},l={class:"text-gray-700 text-sm"},c={class:"col-span-6 sm:col-span-4"};var u=n(641),d=n(3257),p=n(1816),h=n(1154),f=n(4296),m=n(6786),g=n(5393);const v=(0,u.pM)({components:{JetActionMessage:d.A,JetButton:p.A,JetFormSection:h.A,JetInput:f.A,JetInputError:m.A,JetLabel:g.A},props:["team","permissions"],data:function(){return{form:this.$inertia.form({name:this.team.name})}},methods:{updateTeamName:function(){this.form.put(route("teams.update",this.team),{errorBag:"updateTeamName",preserveScroll:!0})}}});const y=(0,n(6262).A)(v,[["render",function(e,t,n,u,d,p){var h=(0,r.resolveComponent)("jet-label"),f=(0,r.resolveComponent)("jet-input"),m=(0,r.resolveComponent)("jet-input-error"),g=(0,r.resolveComponent)("jet-action-message"),v=(0,r.resolveComponent)("jet-button"),y=(0,r.resolveComponent)("jet-form-section");return(0,r.openBlock)(),(0,r.createBlock)(y,{onSubmitted:e.updateTeamName},(0,r.createSlots)({title:(0,r.withCtx)((function(){return[t[1]||(t[1]=(0,r.createTextVNode)(" Team Name "))]})),description:(0,r.withCtx)((function(){return[t[2]||(t[2]=(0,r.createTextVNode)(" The team's name and owner information. "))]})),form:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",o,[(0,r.createVNode)(h,{value:"Team Owner"}),(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("img",{class:"w-12 h-12 rounded-full object-cover",src:e.team.owner.profile_photo_url,alt:e.team.owner.name},null,8,a),(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",null,(0,r.toDisplayString)(e.team.owner.name),1),(0,r.createElementVNode)("div",l,(0,r.toDisplayString)(e.team.owner.email),1)])])]),(0,r.createElementVNode)("div",c,[(0,r.createVNode)(h,{for:"name",value:"Team Name"}),(0,r.createVNode)(f,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:e.form.name,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.form.name=t}),disabled:!e.permissions.canUpdateTeam},null,8,["modelValue","disabled"]),(0,r.createVNode)(m,{message:e.form.errors.name,class:"mt-2"},null,8,["message"])])]})),_:2},[e.permissions.canUpdateTeam?{name:"actions",fn:(0,r.withCtx)((function(){return[(0,r.createVNode)(g,{on:e.form.recentlySuccessful,class:"mr-3"},{default:(0,r.withCtx)((function(){return t[3]||(t[3]=[(0,r.createTextVNode)(" Saved. ")])})),_:1},8,["on"]),(0,r.createVNode)(v,{class:(0,r.normalizeClass)({"opacity-25":e.form.processing}),disabled:e.form.processing},{default:(0,r.withCtx)((function(){return t[4]||(t[4]=[(0,r.createTextVNode)(" Save ")])})),_:1},8,["class","disabled"])]})),key:"0"}:void 0]),1032,["onSubmitted"])}]])},9290:e=>{"use strict";e.exports=RangeError},9353:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),s=n(0,o.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},9371:(e,t,n)=>{"use strict";let r=n(3152);class o extends r{constructor(e){super(e),this.type="comment"}}e.exports=o,o.default=o},9383:e=>{"use strict";e.exports=Error}
vendor: 4,897 bytes, line 2
2,9414:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>O});var r=n(6301),o={class:"p-6 xl:container xl:mx-auto"},i={class:"grid grid-cols-12 gap-4 md:gap-12"},a={class:"col-span-12 md:col-span-4 space-y-8 flex flex-col"},s={class:"grid grid-cols-2 md:grid-cols-1 gap-8"},l={class:"grid grid-cols-3 gap-4"},c={class:"col-span-12 md:col-span-8 space-y-8 flex flex-col"},u={key:0,class:"mt-12 flex"},d=["href"];var p=n(641),h=n(8367),f=n(1546),m=n(2521),g=n(5512),v={class:"list-none m-0 space-y-2"},y={key:0,class:"text-xs font-bold"},b={key:1,class:"text-xs font-bold"},x={key:0,class:"selected-day"},w={key:0,class:"list-none m-0 space-y-2"},k={key:0,class:"text-xs font-bold"},_={key:1,class:"text-xs font-bold"};var E=n(4209),C=n(1963);function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function S(){S=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new T(r||[]);return o(a,"_invoke",{value:V(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",g={};function v(){}function y(){}function b(){}var x={};c(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(B([])));k&&k!==n&&r.call(k,a)&&(x=k);var _=b.prototype=v.prototype=Object.create(x);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==N(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function V(t,n,r){var o=p;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:h,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function B(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(N(t)+" is not iterable")}return y.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},E(C.prototype),c(C.prototype,s,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Prom
2ise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),c(_,l,"Generator"),c(_,a,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=B,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:B(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function V(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}const A={components:{Calendar:E.Vv,DatePicker:E.lr,CategoryBadge:C.A},props:{events:Object},data:function(){return{firstLoad:!0,selectedDay:null,eventsListForToday:[],nextFiveEvents:[]}},computed:{attributes:function(){return this.events.map((function(e){return{key:"event.".concat(e.id),dot:{style:{backgroundColor:e.color}},dates:{start:e.dates.start,end:e.dates.end},customData:e,category:e.category,allDayEvent:e.allDayEvent}}))}},mounted:function(){var e=this;this.asyncAction().then((function(t){e.dayClicked(route().params.date?new Date(route().params.date):new Date),e.nextFiveEvents=e.getNextFiveEvents()}))},methods:{asyncAction:function(){var e,t=this;return(e=S().mark((function e(){var n;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.$refs.calendar,e.next=3,n.focusDate(route().params.date?new Date(route().params.date):new Date);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){V(i,r,o,a,s,"next",e)}function s(e){V(i,r,o,a,s,"throw",e)}a(void 0)}))})()},isBetween:function(e,t,n){return e>=t&&e<=n},dayClicked:function(e){var t;this.selectedDay=new Date(null!==(t=e.date)&&void 0!==t?t:e);var n=this;this.eventsListForToday=this.events.filter((function(e){var t=new Date(e.dates.start),r=new Date(e.dates.end);return!!n.$dayjs(n.selectedDay).isBetween(t,r,"day","[]")})).map((function(e){return{key:"event.".concat(e.id),dot:{backgroundColor:e.color},dates:{start:e.dates.start,end:e.dates.end},customData:e,category:e.category,allDayEvent:e.all_day_event}}))},getNextFiveEvents:function(){var e=this,t=this.events.sort((function(e,t){return new Date(e.dates.start)-new Date(t.dates.start)})),n=new Date;return t.filter((function(t){var r=new Date(t.dates.start);return!!e.$dayjs(n).isBefore(r)})).slice(0,5).map((function(e){return{key:"event.".concat(e.id),dot:{backgroundColor:e.color},dates:{start:e.dates.start,end:e.dates.end},customData:e,category:e.category}}))},pageChange:function(e){this.firstLoad||this.$inertia.get(route("communalhome",{commune:this.$page.props.commune.slug}),{date:e.year+"-"+(e.month<10?"0"+e.month:e.month)+"-01"},{only:["events"],preserveScroll:!0,preserveState:!0}),this.firstLoad=!1}}};var D=n(6262);const M=(0,D.A)(A,[["render",function(e,t,n,o,i,a){var s=this,l=(0,r.resolve
2Component)("Text"),c=(0,r.resolveComponent)("category-badge"),u=(0,r.resolveComponent)("Link"),d=(0,r.resolveComponent)("Calendar");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(l,{type:"h3"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Les prochains événements")),1)]})),_:1}),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("ul",v,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.nextFiveEvents,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{class:"border border-gray-200 hover:bg-slate-50 transition-all rounded-lg px-4 py-2",key:t.key},[(0,r.createVNode)(u,{href:e.route("annonces.show",{commune:s.$page.props.commune.slug,annonce:t.customData.id,slug:t.customData.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(c,{category:t.category,showLink:!1},null,8,["category"]),t.customData.allDayEvent?((0,r.openBlock)(),(0,r.createElementBlock)("div",b,(0,r.toDisplayString)(e.$dayjs(t.dates.start).isSame(e.$dayjs(t.dates.end),"day")?e.$dayjs(t.dates.end).locale(e.$page.props.locale).format("D.MM"):e.$dayjs(t.dates.start).locale(e.$page.props.locale).format("D")+"-"+e.$dayjs(t.dates.end).locale(e.$page.props.locale).format("D.MM")),1)):((0,r.openBlock)(),(0,r.createElementBlock)("div",y,(0,r.toDisplayString)(e.$dayjs(t.dates.start).isSame(e.$dayjs(t.dates.end),"day")?e.$dayjs(t.dates.end).locale(e.$page.props.locale).format("D.MM"):e.$dayjs(t.dates.start).locale(e.$page.props.locale).format("D")+"-"+e.$dayjs(t.dates.end).locale(e.$page.props.locale).format("D.MM"))+" "+(0,r.toDisplayString)(e.$dayjs(t.dates.start).format("HH:mm"))+"-"+(0,r.toDisplayString)(e.$dayjs(t.dates.end).format("HH:mm")),1)),(0,r.createElementVNode)("div",null,(0,r.toDisplayString)(t.customData.description),1)]})),_:2},1032,["href"])])})),128))])]),(0,r.createVNode)(l,{type:"h3"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Calendrier des événements")),1)]})),_:1}),(0,r.createVNode)(d,{"is-expanded":"","show-weeknumbers":"left-outside",attributes:a.attributes,onDayclick:a.dayClicked,"onUpdate:fromPage":a.pageChange,ref:"calendar",style:{width:"100%"}},null,8,["attributes","onDayclick","onUpdate:fromPage"]),i.selectedDay?((0,r.openBlock)(),(0,r.createElementBlock)("div",x,[(0,r.createVNode)(l,{type:"h3"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$dayjs(i.selectedDay).locale(e.$page.props.locale).format("ddd DD.MM.YYYY")),1)]})),_:1}),i.eventsListForToday.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("ul",w,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.eventsListForToday,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{class:"border border-gray-200 hover:bg-slate-50 transition-all rounded-lg px-4 py-2",key:t.key},[(0,r.createVNode)(u,{href:e.route("annonces.show",{commune:s.$page.props.commune.slug,annonce:t.customData.id,slug:t.customData.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(c,{category:t.category,showLink:!1},null,8,["category"]),t.customData.allDayEvent?((0,r.openBlock)(),(0,r.createElementBlock)("div",_,(0,r.toDisplayString)(e.$dayjs(t.dates.start).isSame(e.$dayjs(t.dates.end),"day")?e.$dayjs(t.dates.end).locale(e.$page.props.locale).format("D.MM"):e.$dayjs(t.dates.start).locale(e.$page.props.locale).format("D")+"-"+e.$dayjs(t.dates.end).locale(e.$page.props.locale).format("D.MM")),1)):((0,r.openBlock)(),(0,r.createElementBlock)("div",k,(0,r.toDisplayString)(e.$dayjs(t.dates.start).isSame(e.$dayjs(t.dates.end),"day")?e.$dayjs(t.dates.end).locale(e.$page.props.locale).format("D.MM"):e.$dayjs(t.dates.start).locale(e.$page.props.locale).format("D")+"-"+e.$dayjs(t.dates.end).locale(e.$page.props.locale).format("D.MM"))+" "+(0,r.toDisplayString)(e.$dayjs(t.dates.start).format("HH:mm"))+"-"+(0,r.toDisplayString)(e.$dayjs(t.dates.end).format("HH:mm")),1)),(0,r.createElementVNode)("div",null,(0,r.toDisplayString)(t.customData.description),1)]})),_:2},1032,["href"])])})),128))])):(0,r.createCommentVNode)("",!0),0===i.eventsListForToday.length?((0,r.openBlock)(),(0,r.createBlock)(l,{key:1,type:"p"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Pas d'événement.")),1)]})),_:1})):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)],64)}]]);var T=n(1798);const B=(0,p.pM)({methods:{categoryRoute:function(e){var t,n=null===(t=e.name)||void 0===t?void 0:t.en;return console.log(this.route("annonces.archives",{commune:this.$page.props.commune.slug})),n.includes("Archiv")?this.route("annonces.archives",{commune:this.$page.props.commune.slug})+"?type=annonce&category="+e.id:this.route("annonces.index",{commune:this.$page.props.commune.slug})+"?category="+e.id}},props:{news:Object,annonces:Object,highlightedAnnonces:Object,events:Object,ads:Object,partners:Object,highlightedCategories:Object},layout:h.A,components:{LmMiniCalendar:M,LmStage:f.default,LmNews:m.A,AnnonceGrid:g.A,LmAdImage:T.A},computed:{gridColumns:function(){switch(this.news.length){case 1:return"grid grid-cols-1 sm:grid-cols-1 xl:grid-cols-1";case 2:return"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-2"}}},mounted:function(){this.highlightedAnnonces.sort((function(e,t){return e.highlight_order-t.highlight_order}))}}),O=(0,D.A)(B,[["render",function(e,t,n,p,h,f){var m=(0,r.resolve
2Component)("Head"),g=(0,r.resolveComponent)("lm-stage"),v=(0,r.resolveComponent)("lm-news"),y=(0,r.resolveComponent)("Text"),b=(0,r.resolveComponent)("LmMiniCalendar"),x=(0,r.resolveComponent)("lm-ad-image"),w=(0,r.resolveComponent)("AnnonceGrid"),k=(0,r.resolveComponent)("Link");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(m,{title:"Bienvenue à "+e.$page.props.commune.name},null,8,["title"]),(0,r.createVNode)(g),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)("grid ".concat(e.gridColumns," gap-6 xl:container my-8"))},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.news,(function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n},[(0,r.createVNode)(v,{category:t.category,title:t.title[e.$page.props.locale],body:t.body[e.$page.props.locale],url:t.url[e.$page.props.locale],linkname:t.linkname[e.$page.props.locale],newTab:t.external,start:t.start,end:t.end},null,8,["category","title","body","url","linkname","newTab","start","end"])])})),128))],2),(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createVNode)(y,{type:"h2",class:"mt-4",text:e.__("Events")},null,8,["text"]),(0,r.createVNode)(b,{events:this.events},null,8,["events"]),t[1]||(t[1]=(0,r.createElementVNode)("hr",null,null,-1)),(0,r.createVNode)(y,{type:"h3",class:"mt-4",text:e.__("Publicité")},null,8,["text"]),(0,r.createElementVNode)("div",s,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.ads,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t},[(0,r.createVNode)(x,{image:e.image,link:e.link},null,8,["image","link"])])})),128))]),(0,r.createVNode)(y,{type:"h3",class:"mt-4",text:e.__("Partners")},null,8,["text"]),(0,r.createElementVNode)("div",l,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.partners,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t},[(0,r.createVNode)(x,{image:e.image,link:e.link},null,8,["image","link"])])})),128))])]),(0,r.createElementVNode)("div",c,[e.highlightedCategories?((0,r.openBlock)(),(0,r.createElementBlock)("div",u,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.highlightedCategories,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("a",{style:{"text-align":"center"},href:e.categoryRoute(t)},[((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:e.index,class:"btn-secondary cursor-pointer hover:bg-lm-light-blue ml-3 text-blue"},(0,r.toDisplayString)(t.name[e.$page.props.locale]),1))],8,d)})),256))])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(w,{columns:2,items:e.highlightedAnnonces,"display-title":"","title-text":e.__("Annonces épinglées")},null,8,["items","title-text"]),(0,r.createVNode)(w,{columns:2,items:e.annonces,"display-title":"","title-text":e.__("Annonces")},null,8,["items","title-text"]),(0,r.createVNode)(k,{style:{"text-align":"center"},href:e.route("annonces.index",{commune:e.$page.props.commune.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",{class:"btn-secondary mb-6 mr-4",onClick:t[0]||(t[0]=function(){return e.addNew&&e.addNew.apply(e,arguments)})},(0,r.toDisplayString)(e.__("Toutes les annonces")),1)]})),_:1},8,["href"])])])])],64)}]])},9417:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".fadein[data-v-6a0ba76d]{animation:fade-6a0ba76d .3s ease-in-out forwards}@keyframes fade-6a0ba76d{0%{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}",""]);const i=o},9464:function(e,t,n){e.exports=function(){"use strict";var e=n(4728),t={install:function(t,n){t.config.globalProperties.$sanitize=function(t){return e(t,(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||n)}},defaults:e.defaults};return t}()},9466:function(e,t){var n,r,o;r=[],void 0===(o="function"==typeof(n=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function n(t){var n,r=t.exec(e.substring(m));if(r)return n=r[0],m+=n.length,n}for(var r,o,i,a,s,l=e.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,p=/[,]+$/,h=/^\d+$/,f=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m=0,g=[];;){if(n(u),m>=l)return g;r=n(d),o=[],","===r.slice(-1)?(r=r.replace(p,""),y()):v()}function v(){for(n(c),i="",a="in descriptor";;){if(s=e.charAt(m),"in descriptor"===a)if(t(s))i&&(o.push(i),i="",a="after descriptor");else{if(","===s)return m+=1,i&&o.push(i),void y();if("("===s)i+=s,a="in parens";else{if(""===s)return i&&o.push(i),void y();i+=s}}else if("in parens"===a)if(")"===s)i+=s,a="in descriptor";else{if(""===s)return o.push(i),void y();i+=s}else if("after descriptor"===a)if(t(s));else{if(""===s)return void y();a="in descriptor",m-=1}m+=1}}function y(){var t,n,i,a,s,l,c,u,d,p=!1,m={};for(a=0;a<o.length;a++)l=(s=o[a])[s.length-1],c=s.substring(0,s.length-1),u=parseInt(c,10),d=parseFloat(c),h.test(c)&&"w"===l?((t||n)&&(p=!0),0===u?p=!0:t=u):f.test(c)&&"x"===l?((t||n||i)&&(p=!0),d<0?p=!0:n=d):h.test(c)&&"h"===l?((i||n)&&(p=!0),0===u?p=!0:i=u):p=!0;p?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+s+"'."):(m.url=r,t&&(m.w=t),n&&(m.d=n),i&&(m.h=i),g.push(m))}}})?n.apply(t,r):n)||(e.exports=o)}
2,9472:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(6301);const o=(0,n(641).pM)({});const i=(0,n(6262).A)(o,[["render",function(e,t,n,o,i,a){var s=(0,r.resolveComponent)("Text");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(s,{type:"h1",text:"404 - nothing here"}),(0,r.createElementVNode)("p",null,[t[0]||(t[0]=(0,r.createTextVNode)(" Sadly, ")),(0,r.createElementVNode)("b",null,(0,r.toDisplayString)(e.$page.props.slug),1),t[1]||(t[1]=(0,r.createTextVNode)(" doesn't exist yet in LeMemento. "))])])}]])},9501:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".fadein[data-v-9ebe14ec]{animation:fade-9ebe14ec .3s ease-in-out forwards}@keyframes fade-9ebe14ec{0%{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}",""]);const i=o},9506:(e,t,n)=>{"use strict";n.d(t,{Pt:()=>P,M3:()=>D,f$:()=>E,$_:()=>G,zX:()=>p,ug:()=>K.A,EZ:()=>y,Cx:()=>ce});var r=n(6301),o=["textContent"],i={class:"relative"},a=["placeholder","value","maxlength"],s=["innerHTML"],l={key:1,class:"text-xs text-right pt-2 text-gray-500"};var c=n(641);const u=(0,c.pM)({props:{icon:String,label:String,placeholder:String,modelValue:String,iconClickable:Boolean,maxlength:{required:!1}},emits:["update:modelValue","iconClick","enter"],mounted:function(){this.placeholderData=this.placeholder?this.placeholder:this.label},data:function(){return{placeholderData:""}},methods:{clickOnIcon:function(){this.iconClickable&&this.$emit("iconClick")},enter:function(){this.$emit("enter")}},computed:{getIconBg:function(){return this.route().current("admin.*")||this.route().current("manager.*")?"bg-lm-blue":"bg-cm-primary"},valLength:function(){var e;return this.modelValue?null===(e=this.modelValue)||void 0===e?void 0:e.length:0}}});var d=n(6262);const p=(0,d.A)(u,[["render",function(e,t,n,c,u,d){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("label",null,[e.label?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,textContent:(0,r.toDisplayString)(e.label)},null,8,o)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("input",{class:"rounded block w-full bg-slate-100/80 border-none focus:ring-gray-200",type:"text",placeholder:e.placeholderData,value:e.modelValue,onInput:t[0]||(t[0]=function(t){return e.$emit("update:modelValue",t.target.value)}),onKeyup:t[1]||(t[1]=(0,r.withKeys)((function(){return e.enter&&e.enter.apply(e,arguments)}),["enter"])),spellcheck:"false",maxlength:e.maxlength},null,40,a),e.icon?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,class:(0,r.normalizeClass)([[e.iconClickable?"cursor-pointer":"",e.getIconBg],"absolute right-2 -translate-y-2/4 top-2/4 text-white bg-lm-blue p-2 text-iconinput rounded-full"]),onClick:t[2]||(t[2]=function(){return e.clickOnIcon&&e.clickOnIcon.apply(e,arguments)}),innerHTML:e.icon},null,10,s)):(0,r.createCommentVNode)("",!0),e.maxlength?((0,r.openBlock)(),(0,r.createElementBlock)("span",l,(0,r.toDisplayString)(e.valLength)+" / "+(0,r.toDisplayString)(e.maxlength),1)):(0,r.createCommentVNode)("",!0)])])])}]]);
2var h={key:0},f={class:"relative"},m=["placeholder","value","maxlength"],g={key:0,class:"text-xs text-right pt-2 text-gray-500"};const v=(0,c.pM)({props:{label:String,placeholder:String,modelValue:String,maxlength:{required:!1}},emits:["update:modelValue","iconClick","enter"],mounted:function(){this.placeholderData=this.placeholder?this.placeholder:this.label,this.modelValue&&this.modelValue.length>0&&(this.$refs.area.style.height=(this.$refs.area.scrollHeight>10?this.$refs.area.scrollHeight:80)+"px")},data:function(){return{placeholderData:""}},methods:{enter:function(){this.$emit("enter")},inputFn:function(e){this.$emit("update:modelValue",e),this.calculateHeight()},calculateHeight:function(){this.modelValue&&this.modelValue.length>0&&(this.$refs.area.style.height=(this.$refs.area.scrollHeight>10?this.$refs.area.scrollHeight:80)+"px")}},computed:{valLength:function(){return this.modelValue?this.modelValue.length:0}}}),y=(0,d.A)(v,[["render",function(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("label",null,[e.label?((0,r.openBlock)(),(0,r.createElementBlock)("span",h,(0,r.toDisplayString)(e.label),1)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",f,[(0,r.createElementVNode)("textarea",{ref:"area",class:"rounded block w-full bg-slate-100 border-none overflow-y-auto focus:ring-gray-300",type:"text",placeholder:e.placeholderData,value:e.modelValue,onInput:t[0]||(t[0]=function(t){return e.inputFn(t.target.value)}),onKeyup:t[1]||(t[1]=(0,r.withKeys)((function(){return e.enter&&e.enter.apply(e,arguments)}),["enter"])),spellcheck:"false",maxlength:e.maxlength},null,40,m),e.maxlength?((0,r.openBlock)(),(0,r.createElementBlock)("p",g,(0,r.toDisplayString)(e.valLength)+" / "+(0,r.toDisplayString)(e.maxlength),1)):(0,r.createCommentVNode)("",!0)])])])}]]);var b={key:0},x={class:"relative"},w=["placeholder","value"],k=["innerHTML"];const _=(0,c.pM)({props:{icon:String,label:String,placeholder:String,modelValue:String,iconClickable:Boolean},emits:["update:modelValue","iconClick","enter"],mounted:function(){this.placeholderData=this.placeholder?this.placeholder:this.label},data:function(){return{placeholderData:""}},methods:{clickOnIcon:function(){this.iconClickable&&this.$emit("iconClick")},enter:function(){this.$emit("enter")}},computed:{getIconBg:function(){return this.route().current("admin.*")||this.route().current("manager.*")?"bg-lm-blue":"bg-cm-primary"}}}),E=(0,d.A)(_,[["render",function(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("label",null,[e.label?((0,r.openBlock)(),(0,r.createElementBlock)("span",b,(0,r.toDisplayString)(e.label),1)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",x,[(0,r.createElementVNode)("input",{class:"block w-full bg-slate-100 border-none",type:"email",placeholder:e.placeholderData,value:e.modelValue,onInput:t[0]||(t[0]=function(t){return e.$emit("update:modelValue",t.target.value)}),onKeyup:t[1]||(t[1]=(0,r.withKeys)((function(){return e.enter&&e.enter.apply(e,arguments)}),["enter"])),spellcheck:"false"},null,40,w),e.icon?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,class:(0,r.normalizeClass)([[e.iconClickable?"cursor-pointer":"",e.getIconBg],"absolute right-2 -translate-y-2/4 top-2/4 text-white bg-lm-blue p-2 text-iconinput rounded-full"]),onClick:t[2]||(t[2]=function(){return e.clickOnIcon&&e.clickOnIcon.apply(e,arguments)}),innerHTML:e.icon},null,10,k)):(0,r.createCommentVNode)("",!0)])])])}]]);var C={class:"relative rounded cursor-pointer"},N={class:"rounded block w-full bg-slate-100 border-none px-4 py-2"},S=["accept"],V=["innerHTML"];const A=(0,c.pM)({emits:["update:modelValue","iconClick","onfilechange"],props:{icon:String,label:{type:String,required:!0},placeholder:String,iconClickable:Boolean,fileTypes:String},mounted:function(){this.placeholderData=this.placeholder?this.placeholder:this.label},data:function(){return{value:""}},methods:{clickOnIcon:function(){this.iconClickable&&this.$emit("iconClick")},changeFile:function(e){this.value=e.target.files[0].name,this.$emit("onfilechange",e.target.files[0])}}}),D=(0,d.A)(A,[["render",function(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("label",null,[(0,r.createTextVNode)((0,r.toDisplayString)(e.label)+" ",1),(0,r.createElementVNode)("div",C,[(0,r.createElementVNode)("span",N,(0,r.toDisplayString)(e.value||e.placeholder),1),(0,r.createElementVNode)("input",{hidden:"",type:"file",onChange:t[0]||(t[0]=function(){return e.changeFile&&e.changeFile.apply(e,arguments)}),accept:e.fileTypes},null,40,S),e.icon?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,class:(0,r.normalizeClass)([{"cursor-pointer":e.iconClickable},"absolute right-2 -translate-y-2/4 top-2/4 text-white bg-cm-primary p-2 text-iconinput rounded-full"]),onClick:t[1]||(t[1]=function(){return e.clickOnIcon&&e.clickOnIcon.apply(e,arguments)}),innerHTML:e.icon},null,10,V)):(0,r.createCommentVNode)("",!0)])])])}]]);var M={class:"relative cursor-pointer"},T=["value"],B=["value"];const O=(0,c.pM)({props:{label:String,placeholder:String,modelValue:String},data:function(){return{regex:new RegExp("^#(?:[0-9a-fA-F]{3}){1,2}$"),valid:!0}},emits:["update:modelValue"],methods:{emitchange:function(e){this.valid=this.regex.test(e.target.value),this.$emit("update:modelValue",e.target.value)},manualchange:function(e){this.valid=this.regex.test(e.target.value),this.$emit("update:modelValue",e.target.value)}}}),P=(0,d.A)(O,[["render",function(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("label",null,[(0,r.createTextVNode)((0,r.toDisplayString)(e.label)+" ",1),(0,r.createElementVNode)("div",M,[(0,r.createElementVNode)("input",{style:(0,r.normalizeStyle)({borderLeftColor:e.modelValue}),class:(0,r.normalizeClass)(["rounded block w-full bg-slate-100 border-l-8 border-transparent p-2 border-1",{"border-red-600":!e.valid}]),type:"text",value:e.modelValue,onInput:t[0]||(t[0]=function(){return e.manualchange&&e.manualchange.apply(e,arguments)}),pattern:"^#(?:[0-9a-fA-F]{3}){1,2}$"},null,46,T),(0,r.createElementVNode)("label",null,[t[2]||(t[2]=(0,r.createElementVNode)("span",{class:"cursor-pointer absolute right-2 -translate-y-2/4 top-2/4 p-2 text-iconinput rounded-full text-white bg-lm-blue"},[(0,r.createElementVNode)("i",{class:"bi bi-paint-bucket"})],-1)),(0,r.createElementVNode)("input",{class:"h-0 w-0 m-0 invisible p-0 absolute",type:"color",value:e.modelValue,onInput:t[1]||(t[1]=function(){return e.emitchange&&e.emitchange.apply(e,arguments)})},null,40,B)])])])])}]]);var L={key:0},I={class:"relative text-input-wrapper"},j=["min","max","placeholder","value"],R=["innerHTML"],$={key:1,class:"relative text-input-wrapper"},z=["min","max","placeholder","value"],F=["innerHTML"];const H=(0,c.pM)({props:{icon:String,label:String,placeholder:String,modelValue:{required:!0}
2,iconClickable:Boolean,max:{required:!1},min:{required:!1}},emits:["update:modelValue","iconClick"],mounted:function(){this.placeholderData=this.placeholder?this.placeholder:this.label},data:function(){return{placeholderData:""}},methods:{clickOnIcon:function(){this.iconClickable&&this.$emit("iconClick")}}});var U=n(5072),W=n.n(U),q=n(4281),Y={insert:"head",singleton:!1};W()(q.A,Y);q.A.locals;const G=(0,d.A)(H,[["render",function(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[e.label?((0,r.openBlock)(),(0,r.createElementBlock)("label",L,[(0,r.createTextVNode)((0,r.toDisplayString)(e.label)+" ",1),(0,r.createElementVNode)("div",I,[(0,r.createElementVNode)("input",{class:"rounded block w-full bg-slate-100 border-none",type:"number",min:e.min,max:e.max,placeholder:e.placeholderData,value:e.modelValue,onInput:t[0]||(t[0]=function(t){return e.$emit("update:modelValue",t.target.value)})},null,40,j),e.icon?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,class:(0,r.normalizeClass)([{"cursor-pointer":e.iconClickable},"absolute right-2 -translate-y-2/4 top-2/4 text-white bg-lm-blue p-2 text-iconinput rounded-full"]),onClick:t[1]||(t[1]=function(){return e.clickOnIcon&&e.clickOnIcon.apply(e,arguments)}),innerHTML:e.icon},null,10,R)):(0,r.createCommentVNode)("",!0)])])):((0,r.openBlock)(),(0,r.createElementBlock)("div",$,[(0,r.createElementVNode)("input",{class:"rounded block w-full bg-slate-100 border-none",type:"number",min:e.min,max:e.max,placeholder:e.placeholderData,value:e.modelValue,onInput:t[2]||(t[2]=function(t){return e.$emit("update:modelValue",t.target.value)})},null,40,z),e.icon?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,class:(0,r.normalizeClass)([{"cursor-pointer":e.iconClickable},"absolute right-2 -translate-y-2/4 top-2/4 text-white bg-lm-blue p-2 text-iconinput rounded-full"]),onClick:t[3]||(t[3]=function(){return e.clickOnIcon&&e.clickOnIcon.apply(e,arguments)}),innerHTML:e.icon},null,10,F)):(0,r.createCommentVNode)("",!0)]))])}],["__scopeId","data-v-64aac95f"]]);var K=n(4551),J={class:"flex flex-col relative group z-10"},X={key:0,for:"tags"},Z={class:"flex bg-slate-100 items-center select-none py-2 px-3 flex-wrap gap-2 rounded focus:border-gray-300"},Q={class:"flex flex-wrap gap-2"},ee=["onClick"],te={class:"flex-grow"},ne=["placeholder"],re={class:"absolute w-full top-full hidden group-focus-within:block bg-slate-100 px-3 py-2 border-t shadow-md"},oe={class:"flex gap-2 flex-wrap"},ie={class:"px-2 py-1 bg-white rounded-md text-sm whitespace-nowrap"},ae=["onClick"],se={key:0,class:"px-2 py-1 bg-white rounded-md text-sm whitespace-nowrap"};const le=(0,c.pM)({props:{readonly:{default:!1},inputTags:{type:Array,required:!1},showLabel:{type:Boolean,default:!0},placeholder:{type:String,default:"Tag hinzufügen"}},mounted:function(){this.inputTags&&(this.tags=this.inputTags)},data:function(){return{searchInputVal:"",tags:[],apiTags:[]}},watch:{inputTags:function(){this.tags=this.inputTags}},methods:{emitTags:function(){this.$emit("update",this.tags)},clearInput:function(){this.apiTags=[],this.searchInputVal=""},remove:function(e){this.tags.splice(this.tags.indexOf(e),1),this.clearInput(),this.emitTags()},add:function(e){this.tags.push(e),this.clearInput(),this.emitTags()},addNewTag:function(){this.searchInputVal.length>=3&&(this.tags.push(this.searchInputVal),this.clearInput(),this.emitTags())},search:debounce((function(){var e=this;this.searchInputVal.length>=3&&axios.post(route("tags.search",{commune:this.$page.props.commune.slug}),{q:this.searchInputVal}).then((function(t){var n=[];e.apiTags=[],t.data.forEach((function(e){n.push(e.name.nl)})),e.tags.length>=1?n.forEach((function(t){e.tags.includes(t)||e.apiTags.includes(t)||e.apiTags.push(t)})):e.apiTags=n})).catch((function(t){e.emitter.emit("lm-notification",{category:"error",text:e.__("Une erreur s'est produite.")})}))}),300)}}),ce=(0,d.A)(le,[["render",function(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",J,[e.showLabel?((0,r.openBlock)(),(0,r.createElementBlock)("label",X,"Tags")):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",Z,[(0,r.withDirectives)((0,r.createElementVNode)("div",Q,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.tags,(function(n){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{key:n,class:"px-2 py-1 bg-white rounded-md text-sm whitespace-nowrap"},[(0,r.createTextVNode)((0,r.toDisplayString)(n)+" ",1),(0,r.createElementVNode)("button",{onClick:function(t){return e.remove(n)},class:"bg-slate-200 rounded-full px-1"},t[3]||(t[3]=[(0,r.createElementVNode)("i",{class:"bi bi-x"},null,-1)]),8,ee)])})),128))],512),[[r.vShow,e.tags.length>0]]),(0,r.createElementVNode)("div",te,[(0,r.withDirectives)((0,r.createElementVNode)("input",{onInput:t[0]||(t[0]=function(){return e.search&&e.search.apply(e,arguments)}),"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.searchInputVal=t}),type:"text",id:"tags",class:"block bg-transparent border-none focus:ring-transparent min-w-full p-0",placeholder:e.__(e.placeholder)},null,40,ne),[[r.vModelText,e.searchInputVal]])])]),(0,r.withDirectives)((0,r.createElementVNode)("div",re,[(0,r.createElementVNode)("div",oe,[(0,r.withDirectives)((0,r.createElementVNode)("span",ie,[(0,r.createTextVNode)((0,r.toDisplayString)(e.searchInputVal)+" ",1),(0,r.createElementVNode)("button",{onClick:t[2]||(t[2]=function(){return e.addNewTag&&e.addNe
2wTag.apply(e,arguments)}),class:"bg-slate-200 rounded-full px-1"},t[4]||(t[4]=[(0,r.createElementVNode)("i",{class:"bi bi-plus"},null,-1)]))],512),[[r.vShow,!e.tags.includes(e.searchInputVal)&&!e.apiTags.includes(e.searchInputVal)&&!this.readonly]]),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.apiTags,(function(n){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{key:n,class:"px-2 py-1 bg-white rounded-md text-sm whitespace-nowrap"},[(0,r.createTextVNode)((0,r.toDisplayString)(n)+" ",1),(0,r.createElementVNode)("button",{onClick:function(t){return e.add(n)},class:"bg-slate-200 rounded-full px-1"},t[5]||(t[5]=[(0,r.createElementVNode)("i",{class:"bi bi-plus"},null,-1)]),8,ae)])})),128)),0===e.apiTags.length?((0,r.openBlock)(),(0,r.createElementBlock)("span",se,(0,r.toDisplayString)(e.__("Aucun résultat")),1)):(0,r.createCommentVNode)("",!0)])],512),[[r.vShow,e.searchInputVal.length>=2]])])}]])},9516:(e,t,n)=>{"use strict";var r=n(9012),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===o.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:l,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function e(){var t={};function n(n,r){l(t[r])&&l(n)?t[r]=e(t[r],n):l(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},9538:e=>{"use strict";e.exports=ReferenceError},9575:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>I});var r=n(6301),o={key:0,class:"col-span-12 sm:col-span-12"},i={class:"mt-2"},a=["src","alt"],s={class:"mt-2"},l={class:"col-span-12"},c={key:0,class:"text-red-500"},u={class:"col-span-12"},d={key:0,class:"text-red-500"},p={key:0,class:"text-red-500"},h={key:1,class:"text-red-500"},f={key:2,class:"text-red-500"},m={class:"col-span-12"},g={key:0,class:"text-red-500"},v={class:"col-span-12"},y={key:0,class:"text-red-500"},b={class:"col-span-12"},x={for:"category",class:"block"},w={value:null,disabled:""},k=["value"],_={key:0,class:"text-red-500"},E=["disabled"];var C=n(641),N=n(1816),S=n(1154),V=n(4296),A=n(6786),D=n(5393),M=n(3257),T=n(4312),B=n(7400),O=n(6581),P=n(9506);const L=(0,C.pM)({components:{JetActionMessage:M.A,JetButton:N.A,JetFormSection:S.A,JetInput:V.A,JetInputError:A.A,JetLabel:D.A,JetSecondaryButton:T.A,LmInputText:P.zX,LmInputMail:P.f$,LmInputNumber:P.$_,LmTextarea:P.EZ,LmAccordion:O.A,Toggle:
2B.A},props:{categories:{type:Object},annonceCopy:{type:Object,required:!1},user:"user"},data:function(){return{form:this.$inertia.form({_method:"POST",title:null,description:null,category:null,hasPrice:0,contact:{email:null,phone:null,street:null,city:null,zip:null},type:"company",status:2}),form_photo:this.$inertia.form({_method:"PUT",name:this.user.name,first_name:this.user.first_name,email:this.user.email,photo:null}),photoPreview:null,editmode:!0,annonceData:{status:0,type:"company",tags:[],headerImage:null,category:null,showEmail:!0,showPhone:!0,showAddress:!0,title:"",description:"",hasPrice:0,price:0,components:[],contact:{email:null,phone:null,street:null,city:null,zip:null}}}},mounted:function(){if(this.annonceCopy&&this.editmode||!this.route().params.type||(this.annonceData.type="company"),this.annonceCopy&&this.editmode&&(this.annonceData.category=this.annonceCopy.category_id,this.annonceData.showEmail=!!this.annonceCopy.showEmail,this.annonceData.showPhone=!!this.annonceCopy.showPhone,this.annonceData.showAddress=!!this.annonceCopy.showAddress,this.annonceData.type=this.annonceCopy.type,this.annonceData.title=this.annonceCopy.title,this.annonceData.description=this.annonceCopy.description,this.annonceData.contact.email=this.annonceCopy.email,this.annonceData.contact.phone=this.annonceCopy.phone,this.annonceData.contact.street=this.annonceCopy.street,this.annonceData.contact.city=this.annonceCopy.city,this.annonceData.contact.zip=this.annonceCopy.zip,this.editmode&&(this.annonceData.id=this.annonceCopy.id),this.annonceCopy.image)){var e=this,t=new XMLHttpRequest;t.open("GET",e.$page.props.storagePath+this.annonceCopy.image),t.responseType="blob",t.onload=function(n){200===n.currentTarget.status?e.annonceData.headerImage=t.response:e.emitter.emit("lm-notification",{category:"error",text:e.__("Bild konnte nicht geladen werden.")})},t.onerror=function(){e.emitter.emit("lm-notification",{category:"error",text:e.__("Bild konnte nicht geladen werden.")})},t.onabort=function(){e.emitter.emit("lm-notification",{category:"error",text:e.__("Bild konnte nicht geladen werden.")})},t.send()}},methods:{updateCompanyInformation:function(e){this.annonceData.title&&(this.form.title=this.annonceData.title),this.annonceData.description&&(this.form.description=this.annonceData.description),this.annonceData.category&&(this.form.category=this.annonceData.category),this.form.contact&&(this.form.contact=this.annonceData.contact),this.form.post(route("annonces.company",{commune:this.$page.props.commune.slug,errorBag:"updateCompanyInformation",preserveScroll:!0,onSuccess:function(){return null}}))},selectNewPhoto:function(){this.$refs.photo.click()},updatePhotoPreview:function(){var e=this,t=this.$refs.photo.files[0];if(t){var n=new FileReader;n.onload=function(t){e.photoPreview=t.target.result},n.readAsDataURL(t),this.$refs.photo&&(this.form_photo.photo=this.$refs.photo.files[0],this.form_photo.post(route("user-profile-information.update"),{errorBag:"updateProfileInformation",preserveScroll:!0,onSuccess:function(){return e.clearPhotoFileInput()}}))}},deletePhoto:function(){var e=this;this.$inertia.delete(route("current-user-photo.destroy"),{preserveScroll:!0,onSuccess:function(){e.photoPreview=null,e.clearPhotoFileInput()}})},clearPhotoFileInput:function(){var e;null!==(e=this.$refs.photo)&&void 0!==e&&e.value&&(this.$refs.photo.value=null)}}});const I=(0,n(6262).A)(L,[["render",function(e,t,n,C,N,S){var V=(0,r.resolveComponent)("jet-label"),A=(0,r.resolveComponent)("jet-secondary-button"),D=(0,r.resolveComponent)("jet-input-error"),M=(0,r.resolveComponent)("lm-input-text"),T=(0,r.resolveComponent)("lm-textarea"),B=(0,r.resolveComponent)("lm-input-number"),O=(0,r.resolveComponent)("lm-accordion"),P=(0,r.resolveComponent)("jet-action-message"),L=(0,r.resolveComponent)("jet-form-section");return(0,r.openBlock)(),(0,r.createBlock)(L,{onSubmitted:e.updateCompanyInformation},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Unterhemen Informationen")),1)]})),description:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("firmProfileText")),1)]})),form:(0,r.withCtx)((function(){return[e.$page.props.jetstream.managesProfilePhotos?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("input",{type:"file",class:"hidden",ref:"photo",onChange:t[0]||(t[0]=function(){return e.updatePhotoPreview&&e.updatePhotoPreview.apply(e,arguments)})},null,544),(0,r.createVNode)(V,{for:"photo",value:"Photo"}),(0,r.withDirectives)((0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("img",{src:e.user.profile_photo_url,alt:e.user.name,class:"rounded-full h-20 w-20 object-cover"},null,8,a)],512),[[r.vShow,!e.photoPreview]]),(0,r.withDirectives)((0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("span",{class:"block rounded-full w-20 h-20 bg-cover bg-no-repeat bg-center",style:(0,r.normalizeStyle)("background-image: url('"+e.photoPreview+"');")},null,4)],512),[[r.vShow,e.photoPreview]]),(0,r.createVNode)(A,{class:"mt-2 mr-2",type:"button",onClick:(0,r.withModifiers)(e.selectNewPhoto,["prevent"])},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Ein neues Foto auswählen")),1)]})),_:1},8,["onClick"]),e.user.profile_photo_path?((0,r.openBlock)(),(0,r.createBlock)(A,{key:0,t
2ype:"button",class:"mt-2",onClick:(0,r.withModifiers)(e.deletePhoto,["prevent"])},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Foto löschen")),1)]})),_:1},8,["onClick"])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(D,{message:e.form.errors.photo,class:"mt-2"},null,8,["message"])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",l,[(0,r.createVNode)(M,{maxlength:"100",label:e.__("Nom"),placeholder:e.__("Nom de l'entreprise"),modelValue:e.annonceData.title,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.annonceData.title=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors.title?((0,r.openBlock)(),(0,r.createElementBlock)("span",c,(0,r.toDisplayString)(e.$page.props.errors.title),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",u,[(0,r.createVNode)(T,{maxlength:"200",label:e.__("Beschreibung"),placeholder:e.__("Beschreibung"),modelValue:e.annonceData.description,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.annonceData.description=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors.description?((0,r.openBlock)(),(0,r.createElementBlock)("span",d,(0,r.toDisplayString)(e.$page.props.errors.description),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createVNode)(O,{class:"col-span-12",title:"".concat(e.__("Adresse")),startOpen:!0},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(M,{label:e.__("Strasse"),placeholder:e.__("Strasse"),modelValue:e.annonceData.contact.street,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.annonceData.contact.street=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors["contact.street"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",p,(0,r.toDisplayString)(e.$page.props.errors["contact.street"]),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(B,{min:"1000",class:"mt-4",label:e.__("PLZ"),placeholder:e.__("PLZ"),modelValue:e.annonceData.contact.zip,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.annonceData.contact.zip=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors["contact.zip"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",h,(0,r.toDisplayString)(e.$page.props.errors["contact.zip"]),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(M,{class:"mt-4",label:e.__("Ort"),placeholder:e.__("Ort"),modelValue:e.annonceData.contact.city,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.annonceData.contact.city=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors["contact.city"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",f,(0,r.toDisplayString)(e.$page.props.errors["contact.city"]),1)):(0,r.createCommentVNode)("",!0)])]})),_:1},8,["title"]),(0,r.createElementVNode)("div",m,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(M,{label:e.__("E-Mail"),placeholder:e.__("E-Mail"),modelValue:e.annonceData.contact.email,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.annonceData.contact.email=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors["contact.email"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",g,(0,r.toDisplayString)(e.$page.props.errors["contact.email"]),1)):(0,r.createCommentVNode)("",!0)])]),(0,r.createElementVNode)("div",v,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(M,{label:e.__("Telefon"),placeholder:e.__("Telefon"),modelValue:e.annonceData.contact.phone,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.annonceData.contact.phone=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors["contact.phone"]?((0,r.openBlock)(),(0,r.createElementBlock)("span",y,(0,r.toDisplayString)(e.$page.props.errors["contact.phone"]),1)):(0,r.createCommentVNode)("",!0)])]),(0,r.createElementVNode)("div",b,[(0,r.createElementVNode)("label",x,(0,r.toDisplayString)(e.__("Kategorie")),1),(0,r.withDirectives)((0,r.createElementVNode)("select",{"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.annonceData.category=t}),id:"category",class:"block mb-2 rounded w-full bg-slate-100/80 border-none focus:ring-gray-200"},[(0,r.createElementVNode)("option",w,(0,r.toDisplayString)(e.__("Bitte wählen")),1),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.categories,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("option",{key:t.id,value:t.id},(0,r.toDisplayString)(t.name[e.$page.props.locale]),9,k)})),128))],512),[[r.vModelSelect,e.annonceData.category]]),e.$page.props.errors.category?((0,r.openBlock)(),(0,r.createElementBlock)("span",_,(0,r.toDisplayString)(e.$page.props.errors.category),1)):(0,r.createCommentVNode)("",!0)])]})),actions:(0,r.withCtx)((function(){return[(0,r.createVNode)(P,{on:e.form.recentlySuccessful,class:"mr-3"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Gespeichert"))+". ",1)]})),_:1},8,["on"]),(0,r.createElementVNode)("button",{class:(0,r.normalizeClass)(["btn-primary",{"opacity-25":e.form.processing}]),disabled:e.form.processing},(0,r.toDisplayString)(e.__("Speichern")),11,E)]})),_:1},8,["onSubmitted"])}]])},9577:(e,t,n)=>{"use strict";let r=n(7793),o=n(1106),i=n(8339);function a(e,t){let n=new o(e,t),r=new i(n);try{r.parse()}catch(e){throw e}return r.root}e.exports=a,a.default=a,r.registerParse(a)},9612:e=>{"use strict";e.exports=Object},9615:(e,t,n)=>{"use strict";var r=n(9137),o=n(4680);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},9635:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>O});var r=n(6301),o={class:"container"},i={class:"flex items-center gap-4"},a=["onClick"],s=["onClick"],l=["title","onClick"],c={key:0,class:"edit-form"},u={key:0,class:"error"},d={key:0,class:"error"},p={class:"btn-primary mt-10",type:"submit"},h={class:"flex gap-4 flex-wrap mb-4"},f={key:0,class:"text-red-500"},m={key:0,class:"text-red-500"},g={key:0,class:"text-red-500"},v={key:0,class:"text-red-500"},y={key:0,class:"text-red-500"},b=["value"];var x=n(641),w=n(5720),k=n(9234),_=n(9506),E=n(1678);function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?N(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==C(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const A=(0,x.pM)({props:{categories:Object,errors:Object},data:function(){return{form:this.categories.map((function(e){return S(S({},e),{},{editing:!1,highlighted:e.highlighted})})).sort((function(e,t){return e.order-t.order})),newForm:{namede:"",namefr:"",nameit:"",nameen:"",color:""},drag:!1}},components:{Head:k.p3,LmInputText:_.zX,LmInputColor:_.Pt,draggable:E.H},layout:w.A,computed:{dragOptions:function(){return{animation:200,group:"description",disabled:!1,ghostClass:"ghost"}}},methods:{update:function(){this.$inertia.post(route("admin.categories.update",{commune:this.$page.props.commune.slug}),this.form)},create:function(){this.$inertia.post(route("admin.categories.store",{commune:this.$page.props.commune.slug}),this.newForm,{preserveState:!1})},remove:function(e){confirm(this.__("Diese Kategorie löschen?"))&&this.$inertia.post(route("admin.categories.delete",{commune:this.$page.props.commune.slug}),{id:e},{preserveState:!1})},toggleHighlight:function(e){e.highlighted=!e.highlighted,this.$inertia.post(route("admin.categories.highlight",{commune:this.$page.props.commune.slug}),{category_id:e.id,highlighted:e.highlighted},{preserveState:!1})},editCategory:function(e){this.form[e].editing=!this.form[e].editing},updateOrder:function(){for(var e=0;e<this.form.length;e++)this.form[e].order=e+1;this.update()}}});var D=n(5072),M=n.n(D),T=n(9116),B={insert:"head",singleton:!1};M()(T.A,B);T.A.locals;const O=(0,n(6262).A)(A,[["render",function(e,t,n,x,w,k){var _=(0,r.resolveComponent)("Head"),E=(0,r.resolveComponent)("Text"),C=(0,r.resolveComponent)("lm-input-text"),N=(0,r.resolveComponent)("lm-input-color"),S=(0,r.resolveComponent)("draggable");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(_,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("title",null,(0,r.toDisplayString)(e.__("Kategorien")),1)]})),_:1}),(0,r.createElementVNode)("div",o,[(0,r.createVNode)(E,{type:"h1",text:e.__("Kategorien")},null,8,["text"]),(0,r.createVNode)(S,(0,r.mergeProps)({list:e.form,onChange:e.updateOrder,handle:".drag-trigger"},e.dragOptions,{tag:"transition-group","component-data":{tag:"div",type:"transition-group",name:e.drag?null:"flip-list"}}),{default:(0,r.withCtx)((function(){return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.form,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:o,class:"category-item"},[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("span",{class:"badge",style:(0,r.normalizeStyle)({backgroundColor:n.color})},null,4),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(n.name[e.$page.props.locale]),1),(0,r.createElementVNode)("button",{onClick:function(t){return e.editCategory(o)}},t[7]||(t[7]=[(0,r.createElementVNode)("i",{class:"bi bi-pencil"},null,-1)]),8,a),(0,r.createElementVNode)("button",{onClick:function(t){return e.toggleHighlight(n)},class:(0,r.normalizeClass)({"text-yellow-500":n.highlighted})},t[8]||(t[8]=[(0,r.createElementVNode)("i",{class:"bi bi-star-fill"},null,-1)]),10,s),(0,r.createElementVNode)("button",{title:e.__("Löschen"),onClick:function(t){return e.remove(n.id)},class:"text-red-500"},t[9]||(t[9]=[(0,r.createElementVNode)("i",{class:"bi bi-trash-fill"},null,-1)]),8,l),t[10]||(t[10]=(0,r.createElementVNode)("i",{class:"bi bi-arrows-move drag-trigger cursor-move"},null,-1))]),n.editing?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[(0,r.createElementVNode)("form",{onSubmit:t[0]||(t[0]=(0,r.withModifiers)((function(){return e.update&&e.update.apply(e,arguments)}),["prevent"]))},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.name,(function(t,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:o},[(0,r.createVNode)(C,{placeholder:"Name\n ".concat(o.toUpperCase()),label:"Name\n ".concat(o.toUpperCase()),modelValue:n.name[o],"onUpdate:modelValue":function(e){return n.name[o]=e}},null,8,["placeholder","label","modelValue","onUpdate:modelValue"]),e.errors["".concat(n.id,".name.").concat(o)]?((0,r.openBlock)(),(0,r.createElementBlock)("span",u,(0,r.toDisplayString)(e.errors["".concat(n.id,".name.").concat(o)]),1)):(0,r.createCommentVNode)("",!0)])})),128)),(0,r.createVNode)(N,{placeholder:e.__("Farbe auswählen"),label:e.__("Farbe"),modelValue:n.color,"onUpdate:modelValue":function(e){return n.color=e}},null,8,["placeholder","label","modelValue","onUpdate:modelValue"]),e.errors["".concat(n.id,".color")]?((0,r.openBlock)(),(0,r.createElementBlock)("span",d,(0,r.toDisplayString)(e.errors["".concat(n.id,".color")]),1)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("button",p,(0,r.toDisplayString)(e.__("Speichern")),1)],32)])):(0,r.createCommentVNode)("",!0)])})),128))]})),_:1},16,["list","onChange","component-data"]),(0,r.createElementVNode)("form",{onSubmit:t[6]||(t[6]=(0,r.withModifiers)((function(){return e.create&&e.create.apply(e,arguments)}),["prevent"])),class:"mt-5"},[(0,r.createElementVNode)("div",h,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(C,{label:e.__("Name DE"),placeholder:e.__("Name DE"),modelValue:e.newForm.namede,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.newForm.namede=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors.namede?((0,r.openBlock)(),(0,r.createElementBlock)("span",f,(0,r.toDisplayString)(e.$page.props.errors.namede),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(C,{label:e.__("Name FR"),placeholder:e.__("Name FR"),modelValue:e.newForm.namefr,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.newForm.namefr=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors.namefr?((0,r.openBlock)(),(0,r.createElementBlock)("span",m,(0,r.toDisplayString)(e.$page.props.errors.namefr),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(C,{label:e.__("Name IT"),placeholder:e.__("Name IT"),modelValue:e.newForm.nameit,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.newForm.nameit=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors.nameit?((0,r.openBlock)(),(0,r.createElementBlock)("span",g,(0,r.toDisplayString)(e.$page.props.errors.nameit),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(C,{label:e.__("Name EN"),placeholder:e.__("Name EN"),modelValue:e.newForm.nameen,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.newForm.nameen=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors.nameen?((0,r.openBlock)(),(0,r.createElementBlock)("span",v,(0,r.toDisplayString)(e.$page.props.errors.nameen),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(N,{label:e.__("Farbe"),placeholder:e.__("Farbe auswählen"),modelValue:e.newForm.color,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.newForm.color=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors.color?((0,r.openBlock)(),(0,r.createElementBlock)("span",y,(0,r.toDisplayString)(e.$page.props.errors.color),1)):(0,r.createCommentVNode)("",!0)])]),(0,r.createElementVNode)("input",{class:"btn-secondary cursor-pointer",type:"submit",value:e.__("Kategory hinzufüngen")},null,8,b)],32)])],64)}],["__scopeId","data-v-1516b054"]])},9675:e=>{"use strict";e.exports=TypeError},9746:()=>{},9832:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>I});var r=n(6301),o={class:"container"},i={class:"flex items-center gap-4"},a=["onClick"],s=["onClick"],l=["title","onClick"],c={key:0,class:"edit-form"},u={key:0,class:"error"},d={class:"btn-primary mt-10",type:"submit"},p={key:1,class:"error"},h={class:"flex gap-4 flex-wrap mb-4"},f={key:0,class:"text-red-500"},m={key:0,class:"text-red-500"},g={key:0,class:"text-red-500"},v={key:0,class:"text-red-500"},y={key:0,class:"text-red-500"},b=["value"],x={class:"font-semibold"},w={key:0},k={key:1};var _=n(641),E=n(5720),C=n(9234),N=n(9506),S=n(756);function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?A(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=V(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=V(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==V(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const T=(0,_.pM)({props:{categories:Object,errors:Object},data:function(){var e=this;return{form:this.categories.map((function(e){return D(D({},e),{},{editing:!1})})).sort((function(t,n){var r=t.name[e.$page.props.locale].toLowerCase(),o=n.name[e.$page.props.locale].toLowerCase(),i=r.includes("archiv"),a=o.includes("archiv");return i&&!a?-1:!i&&a?1:r<o?-1:r>o?1:0})),newForm:{namede:"",namefr:"",nameit:"",nameen:"",color:""},highlightModal:!1,highlightCategoryData:null}},components:{Head:C.p3,LmInputText:N.zX,LmInputColor:N.Pt,DialogModal:S.A},layout:E.A,methods:{update:function(){this.$inertia.post(route("admin.categories.update",{commune:this.$page.props.commune.slug}),this.form)},create:function(){this.$inertia.post(route("admin.categories.store",{commune:this.$page.props.commune.slug}),this.newForm,{preserveState:!1})},remove:function(e){confirm(this.__("Diese Kategorie löschen?"))&&this.$inertia.post(route("admin.categories.delete",{commune:this.$page.props.commune.slug}),{id:e},{preserveState:!1})},toggleHighlight:function(e){this.highlightCategoryData=e,this.highlightModal=!0},confirmHighlightCategory:function(){this.$inertia.post(route("admin.categories.highlight",{commune:this.$page.props.commune.slug}),{category_id:this.highlightCategoryData.id},{preserveState:!1})},editCategory:function(e){this.form[e].editing=!this.form[e].editing}}});var B=n(5072),O=n.n(B),P=n(7112),L={insert:"head",singleton:!1};O()(P.A,L);P.A.locals;const I=(0,n(6262).A)(T,[["render",function(e,t,n,_,E,C){var N=this,S=(0,r.resolveComponent)("Head"),V=(0,r.resolveComponent)("Text"),A=(0,r.resolveComponent)("lm-input-text"),D=(0,r.resolveComponent)("lm-input-color"),M=(0,r.resolveComponent)("dialog-modal");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(S,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("title",null,(0,r.toDisplayString)(e.__("Kategorien")),1)]})),_:1}),(0,r.createElementVNode)("div",o,[(0,r.createVNode)(V,{type:"h1",text:e.__("Kategorien")},null,8,["text"]),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.form,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:o,class:"category-item"},[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("span",{class:"badge",style:(0,r.normalizeStyle)({backgroundColor:n.color})},null,4),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(n.name[e.$page.props.locale]),1),(0,r.createElementVNode)("button",{onClick:function(t){return e.editCategory(o)}},t[11]||(t[11]=[(0,r.createElementVNode)("i",{class:"bi bi-pencil"},null,-1)]),8,a),(0,r.createElementVNode)("button",{onClick:function(t){return e.toggleHighlight(n)}},[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)(["bi",n.highlighted?"bi-star-fill":"bi-star"])},null,2)],8,s),(0,r.createElementVNode)("button",{title:e.__("Löschen"),onClick:function(t){return e.remove(n.id)}},t[12]||(t[12]=[(0,r.createElementVNode)("i",{class:"bi bi-trash-fill text-red-500"},null,-1)]),8,l)]),n.editing?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[(0,r.createElementVNode)("form",{onSubmit:t[0]||(t[0]=(0,r.withModifiers)((function(){return e.update&&e.update.apply(e,arguments)}),["prevent"]))},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.name,(function(t,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:o},[(0,r.createVNode)(A,{placeholder:"Name ".concat(o.toUpperCase()),label:"Name ".concat(o.toUpperCase()),modelValue:n.name[o],"onUpdate:modelValue":function(e){return n.name[o]=e}},null,8,["placeholder","label","modelValue","onUpdate:modelValue"]),e.errors["".concat(n.id,".name.").concat(o)]?((0,r.openBlock)(),(0,r.createElementBlock)("span",u,(0,r.toDisplayString)(e.errors["".concat(n.id,".name.").concat(o)]),1)):(0,r.createCommentVNode)("",!0)])})),128)),(0,r.createVNode)(D,{placeholder:e.__("Farbe auswählen"),label:e.__("Farbe"),modelValue:n.color,"onUpdate:modelValue":function(e){return n.color=e}},null,8,["placeholder","label","modelValue","onUpdate:modelValue"]),(0,r.createElementVNode)("button",d,(0,r.toDisplayString)(e.__("Speichern")),1)],32)])):(0,r.createCommentVNode)("",!0),e.errors["".concat(n.id,".color")]?((0,r.openBlock)(),(0,r.createElementBlock)("span",p,(0,r.toDisplayString)(e.errors["".concat(n.id,".color")]),1)):(0,r.createCommentVNode)("",!0)])})),128)),(0,r.createElementVNode)("form",{onSubmit:t[6]||(t[6]=(0,r.withModifiers)((function(){return e.create&&e.create.apply(e,arguments)}),["prevent"])),class:"mt-5"},[(0,r.createElementVNode)("div",h,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(A,{label:e.__("Name DE"),placeholder:e.__("Name DE"),modelValue:e.newForm.namede,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.newForm.namede=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors.namede?((0,r.openBlock)(),(0,r.createElementBlock)("span",f,(0,r.toDisplayString)(e.$page.props.errors.namede),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(A,{label:e.__("Name FR"),placeholder:e.__("Name FR"),modelValue:e.newForm.namefr,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.newForm.namefr=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors.namefr?((0,r.openBlock)(),(0,r.createElementBlock)("span",m,(0,r.toDisplayString)(e.$page.props.errors.namefr),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(A,{label:e.__("Name IT"),placeholder:e.__("Name IT"),modelValue:e.newForm.nameit,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.newForm.nameit=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors.nameit?((0,r.openBlock)(),(0,r.createElementBlock)("span",g,(0,r.toDisplayString)(e.$page.props.errors.nameit),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(A,{label:e.__("Name EN"),placeholder:e.__("Name EN"),modelValue:e.newForm.nameen,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.newForm.nameen=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors.nameen?((0,r.openBlock)(),(0,r.createElementBlock)("span",v,(0,r.toDisplayString)(e.$page.props.errors.nameen),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(D,{label:e.__("Farbe"),placeholder:e.__("Farbe auswählen"),modelValue:e.newForm.color,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.newForm.color=t})},null,8,["label","placeholder","modelValue"]),e.$page.props.errors.color?((0,r.openBlock)(),(0,r.createElementBlock)("span",y,(0,r.toDisplayString)(e.$page.props.errors.color),1)):(0,r.createCommentVNode)("",!0)])]),(0,r.createElementVNode)("input",{class:"btn-secondary cursor-pointer",type:"submit",value:e.__("Kategory hinzufüngen")},null,8,b)],32)]),(0,r.createVNode)(M,{show:e.highlightModal,onClose:t[10]||(t[10]=function(t){return e.highlightModal=!1})},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Hervorheben")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("p",x,(0,r.toDisplayString)(e.__("Sind Sie sicher?")),1),e.highlightCategoryData.highlighted?((0,r.openBlock)(),(0,r.createElementBlock)("p",k," «"+(0,r.toDisplayString)(e.highlightCategoryData.name[N.$page.props.locale])+"» "+(0,r.toDisplayString)(e.__("unhighlight annonce text")),1)):((0,r.openBlock)(),(0,r.createElementBlock)("p",w," «"+(0,r.toDisplayString)(e.highlightCategoryData.name[N.$page.props.locale])+"» "+(0,r.toDisplayString)(e.__("highlight annonce text")),1))]})),footer:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",{onClick:t[7]||(t[7]=function(t){return e.highlightModal=!1}),class:"mr-4"},(0,r.toDisplayString)(e.__("Abbrechen")),1),e.highlightCategoryData.highlighted?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,onClick:t[9]||(t[9]=function(){return e.confirmHighlightCategory&&e.confirmHighlightCategory.apply(e,arguments)}),class:"bg-green-700 hover:bg-green-800 px-3 py-2 rounded-md text-white"},(0,r.toDisplayString)(e.__("Nicht mehr hervorheben")),1)):((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,onClick:t[8]||(t[8]=function(){return e.confirmHighlightCategory&&e.confirmHighlightCategory.apply(e,arguments)}),class:"bg-green-700 hover:bg-green-800 px-3 py-2 rounded-md text-white"},(0,r.toDisplayString)(e.__("Hervorheben")),1))]})),_:1},8,["show"])],64)}],["__scopeId","data-v-2da72f06"]])},9878:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);
vendor: 10,258 bytes, line 2
2o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var s=a(n(3603));t.htmlDecodeTree=s.default;var l=a(n(2517));t.xmlDecodeTree=l.default;var c=i(n(5096));t.decodeCodePoint=c.default;var u,d=n(5096);Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return d.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return d.fromCodePoint}}),function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(u||(u={}));var p,h,f;function m(e){return e>=u.ZERO&&e<=u.NINE}function g(e){return e===u.EQUALS||function(e){return e>=u.UPPER_A&&e<=u.UPPER_Z||e>=u.LOWER_A&&e<=u.LOWER_Z||m(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(p=t.BinTrieFlags||(t.BinTrieFlags={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(h||(h={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(f=t.DecodingMode||(t.DecodingMode={}));var v=function(){function e(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=h.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=f.Strict}return e.prototype.startEntity=function(e){this.decodeMode=e,this.state=h.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},e.prototype.write=function(e,t){switch(this.state){case h.EntityStart:return e.charCodeAt(t)===u.NUM?(this.state=h.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=h.NamedEntity,this.stateNamedEntity(e,t));case h.NumericStart:return this.stateNumericStart(e,t);case h.NumericDecimal:return this.stateNumericDecimal(e,t);case h.NumericHex:return this.stateNumericHex(e,t);case h.NamedEntity:return this.stateNamedEntity(e,t)}},e.prototype.stateNumericStart=function(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===u.LOWER_X?(this.state=h.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=h.NumericDecimal,this.stateNumericDecimal(e,t))},e.prototype.addToNumericResult=function(e,t,n,r){if(t!==n){var o=n-t;this.result=this.result*Math.pow(r,o)+parseInt(e.substr(t,o),r),this.consumed+=o}},e.prototype.stateNumericHex=function(e,t){for(var n,r=t;t<e.length;){var o=e.charCodeAt(t);if(!(m(o)||(n=o,n>=u.UPPER_A&&n<=u.UPPER_F||n>=u.LOWER_A&&n<=u.LOWER_F)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(o,3);t+=1}return this.addToNumericResult(e,r,t,16),-1},e.prototype.stateNumericDecimal=function(e,t){for(var n=t;t<e.length;){var r=e.charCodeAt(t);if(!m(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1},e.prototype.emitNumericEntity=function(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===u.SEMI)this.consumed+=1;else if(this.decodeMode===f.Strict)return 0;return this.emitCodePoint((0,c.replaceCodePoint)(this.result),this.consumed),this.errors&&(e!==u.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},e.prototype.stateNamedEntity=function(e,t){for(var n=this.decodeTree,r=n[this.treeIndex],o=(r&p.VALUE_LENGTH)>>14;t<e.length;t++,this.excess++){var i=e.charCodeAt(t);if(this.treeIndex=b(n,r,this.treeIndex+Math.max(1,o),i),this.treeIndex<0)return 0===this.result||this.decodeMode===f.Attribute&&(0===o||g(i))?0:this.emitNotTerminatedNamedEntity();if(0!==(o=((r=n[this.treeIndex])&p.VALUE_LENGTH)>>14)){if(i===u.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==f.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},e.prototype.emitNotTerminatedNamedEntity=function(){var e,t=this.result,n=(this.decodeTree[t]&p.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed},e.prototype.emitNamedEntityData=function(e,t,n){var r=this.decodeTree;return this.emitCodePoint(1===t?r[e]&~p.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n},e.prototype.end=function(){var e;switch(this.state){case h.NamedEntity:return 0===this.result||this.decodeMode===f.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case h.NumericDecimal:return this.emitNumericEntity(0,2);case h.NumericHex:return this.emitNumericEntity(0,3);case h.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case h.EntityStart:return 0}},e}();function y(e){var t="",n=new v(e,(function(e){return t+=(0,c.fromCodePoint)(e)}));return function(e,r){for(var o=0,i=0;(i=e.indexOf("&",i))>=0;){t+=e.slice(o,i),n.startEntity(r);var a=n.write(e,i+1);if(a<0){o=i+n.end();break}o=i+a,i=0===a?o+1:o}var s=t+e.slice(o);return t="",s}}function b(e,t,n,r){var o=(t&p.BRANCH_LENGTH)>>7,i=t&p.JUMP_TABLE;if(0===o)return 0!==i&&r===i?n:-1;if(i){var a=r-i;return a<0||a>=o?-1:e[n+a]-1}for(var s=n,l=s+o-1;s<=l;){var c=s+l>>>1,u=e[c];if(u<r)s=c+1;else{if(!(u>r))return e[c+o];l=c-1}}return-1}t.EntityDecoder=v,t.determineBranch=b;var x=y(s.default),w=y(l.default);t.decodeHTML=function(e,t){return void 0===t&&(t=f.Legacy),x(e,t)},t.decodeHTMLAttribute=function(e){return x(e,f.Attribute)},t.decodeHTMLStrict=function(e){return x(e,f.Strict)},t.decodeXML=function(e){return w(e,f.Strict)}},9918:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ht});var r=n(6301),o={class:"container mx-auto mt-4 p-4"},i={class:"max-w-5xl mx-auto"},a={class:"relative"},s={key:0,class:"absolute top-4 left-4 bg-gradient-to-b from-cm-primary to-cm-primary text-white px-2 py-2 rounded shadow"},l={class:"w-full text-center"},c={key:1,class:"absolute top-4 right-4 text-white grid grid-cols-1 gap-2"},u={class:"col-span-1 bg-gradient-to-b from-cm-primary to-cm-primary px-2 py-2 rounded shadow"},d={class:"w-full text-center"},p={class:"w-full text-center -mt-2"},h={key:0,class:"col-span-1 bg-gradient-to-b from-cm-primary to-cm-primary px-2 py-2 rounded shadow"},f={class:"w-full text-center"},m={class:"text-center"},g=["src"],v={class:"grid grid-cols-12 gap-8 mt-4"},y={id:"printable",class:"col-span-12 md:col-span-9 px-4 py-4 rounded border border-gray-100 grid grid-cols-12 gap-4 h-fit"},b={class:"col-span-12"},x={class:"col-span-12"},w={class:"flex items-center gap-4 flex-wrap"},k=["textContent"],_={class:"col-span-12"},E={class:"max-w-prose mt-4 text-xl"},C={class:"col-span-12"},N={key:0,class:"mt-4"},S={class:"prose"},V={key:1,class:"mt-4"},A={class:"col-span-12"},D={class:"col-span-12 md:col-span-3"},M={class:"font-semibold"},T={class:"text-sm mb-0"},B={key:0,class:"grid text-md"},O=["title"],P=["title"],L=["title"],I={class:"flex items-center p-4 bg-slate-50 border-b text-base font-bold"},j=["src"],R={key:0,class:"flex items-center pt-2 px-2"},$=["href"],z={key:1,class:"flex items-center pt-2 px-2"},F=["href"],H={key:2,class:"flex items-start px-2 pt-2"},U={class:"col-span-12 pt-2 pb-2"},W={class:"col-span-12 flex md:col-span-4"},q={class:"flex items-center p-4 bg-slate-50 border-b text-base font-bold"},Y={class:"list-none m-0 space-y-2 mx-2 my-2"},G={class:"border border-gray-200 hover:bg-slate-50 transition-all rounded-lg px-4 py-2"},K={class:"text-xs font-bold"},J={class:"flex items-center p-4 bg-slate-50 border-b text-base font-bold"},X={class:"list-none m-0 space-y-2 mx-2 my-2"},Z={class:"text-xs font-bold"},Q={key:0},ee={key:1},te={class:"font-semibold"},ne={class:"font-semibold"},re={class:"font-semibold"},oe={key:0},ie={key:1};var ae=n(641),se=n(8367),le=n(1963),ce={key:0,class:"comments mx-auto container pb-4 px-4 pt-8"},ue={class:"w-full mx-auto"},de=["textContent"],pe={key:0,class:"text-red-500"},he={class:"flex justify-between items-center mt-4"},fe={key:0,class:"text-s text-gray-500 italic"},me={key:1,class:"w-full lg:w-3/4 mt-4"},ge={class:"flex justify-start mt-4"},ve={key:1,class:"text-gray-500 italic"},ye={key:2,class:"mt-4 w-full md:w-3/4"},be={key:0},xe={key:0},we={class:"whitespace-pre-wrap font-sans"},ke={key:1},_e={class:"whitespace-pre-wrap font-sans"},Ee={class:"flex items-center mt-8"},Ce={class:"flex items-center gap-2"},Ne={key:1},Se={class:"whitespace-pre-wrap font-sans opacity-60"};var Ve=n(9506),Ae=n(3963),De=n(1816),Me=n(4799);const Te=(0,ae.pM)({data:function(){return{form:this.$inertia.form({comment:"",parentId:null,parentType:null})}},computed:{moderationNotice:function(){var e=Number(this.$page.props.commune.moderation_comments),t=this.$page.props.loggedin;return 1!==e||t?2===e?this.__("Votre commentaire sera examiné par un modérateur avant d'être publié."):null:this.__("Votre commentaire sera examiné par un modérateur avant d'être publié.")}},methods:{shouldDisplayPendingReviewComment:function(e){var t=this.$page.props.user;return!!(e&&e.author&&t)&&(e.author.id===t.id||1===t.superadmin)}},props:{parentType:{type:String,required:!0},parentId:{type:Number,required:!0},comments:Array}
2,components:{LmProfilPictureWithName:Me.A,LmTextarea:Ve.EZ,DateBadge:Ae.A,JetButton:De.A},mounted:function(){this.form.parentId=this.parentId,this.form.parentType=this.parentType}});var Be=n(5072),Oe=n.n(Be),Pe=n(116),Le={insert:"head",singleton:!1};Oe()(Pe.A,Le);Pe.A.locals;var Ie=n(6262);const je=(0,Ie.A)(Te,[["render",function(e,t,n,o,i,a){var s=(0,r.resolveComponent)("Text"),l=(0,r.resolveComponent)("lm-textarea"),c=(0,r.resolveComponent)("jet-button"),u=(0,r.resolveComponent)("Link"),d=(0,r.resolveComponent)("LmProfilPictureWithName"),p=(0,r.resolveComponent)("date-badge");return"event"===e.parentType&&(1===e.$page.props.commune.enable_comments_events||2===e.$page.props.commune.enable_comments_events)||"annonce"===e.parentType&&(1===e.$page.props.commune.enable_comments_posts||2===e.$page.props.commune.enable_comments_posts)?((0,r.openBlock)(),(0,r.createElementBlock)("div",ce,[(0,r.createElementVNode)("div",ue,[(0,r.createVNode)(s,{type:"h4"},{default:(0,r.withCtx)((function(){return[e.comments.filter((function(e){return 2===e.status})).length>0?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,textContent:(0,r.toDisplayString)(e.comments.filter((function(e){return 2===e.status})).length)},null,8,de)):(0,r.createCommentVNode)("",!0),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("Kommentare")),1)]})),_:1}),"event"===e.parentType&&1===e.$page.props.commune.enable_comments_events&&e.$page.props.loggedin||"annonce"===e.parentType&&1===e.$page.props.commune.enable_comments_posts&&e.$page.props.loggedin||"event"===e.parentType&&2===e.$page.props.commune.enable_comments_events||"annonce"===e.parentType&&2===e.$page.props.commune.enable_comments_posts?((0,r.openBlock)(),(0,r.createElementBlock)("form",{key:0,onSubmit:t[1]||(t[1]=(0,r.withModifiers)((function(t){return e.form.post(e.route("comments.store",{commune:e.$page.props.commune.slug}),{preserveScroll:!0,onSuccess:function(){return e.form.reset("comment")}})}),["prevent"])),class:"w-full lg:w-3/4 mt-4"},[(0,r.createVNode)(l,{modelValue:e.form.comment,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.form.comment=t}),placeholder:e.__("Commenter")},null,8,["modelValue","placeholder"]),e.$page.props.errors.comment?((0,r.openBlock)(),(0,r.createElementBlock)("span",pe,(0,r.toDisplayString)(e.$page.props.errors.comment),1)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",he,[e.moderationNotice?((0,r.openBlock)(),(0,r.createElementBlock)("span",fe,[t[2]||(t[2]=(0,r.createElementVNode)("i",{class:"bi bi-info-circle mr-1"},null,-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.moderationNotice),1)])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(c,{type:"submit",class:"btn-secondary ml-auto"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Commenter")),1)]})),_:1})])],32)):((0,r.openBlock)(),(0,r.createElementBlock)("div",me,[(0,r.createElementVNode)("div",ge,["event"===e.parentType&&1===e.$page.props.commune.enable_comments_events||"annonce"===e.parentType&&1===e.$page.props.commune.enable_comments_posts?((0,r.openBlock)(),(0,r.createBlock)(u,{key:0,href:e.route("login")},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Veuillez vous connecter pour commenter.")),1)]})),_:1},8,["href"])):"event"===e.parentType&&0===e.$page.props.commune.enable_comments_events||"annonce"===e.parentType&&0===e.$page.props.commune.enable_comments_posts?((0,r.openBlock)(),(0,r.createElementBlock)("span",ve,(0,r.toDisplayString)(e.__("Les commentaires sont désactivés pour cette commune.")),1)):(0,r.createCommentVNode)("",!0)])])),e.comments?((0,r.openBlock)(),(0,r.createElementBlock)("div",ye,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.comments,(function(n,o){var i,a,s,l,c,u;return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:o,class:"mt-4"},[2===n.status?((0,r.openBlock)(),(0,r.createElementBlock)("div",be,[n.author?((0,r.openBlock)(),(0,r.createElementBlock)("div",xe,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["relative z-0 after:-z-10 bubble p-4 rounded-md after:absolute",[n.author.id===(null===(i=e.$page.props.user)||void 0===i?void 0:i.id)?"bg-slate-100 mr-12 md:mr-20 bubble-left after:border-slate-100":"bg-blue-100 ml-12 md:ml-20 bubble-right after:border-blue-100"]])},[(0,r.createElementVNode)("pre",we,(0,r.toDisplayString)(n.comment),1)],2),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["flex items-center mt-8",{"justify-end":n.author.id===(null===(a=e.$page.props.user)||void 0===a?void 0:a.id)}])},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["flex items-center gap-2",{"flex-row-reverse":n.author.id===(null===(s=e.$page.props.user)||void 0===s?void 0:s.id)}])},[(0,r.createVNode)(d,{"image-url":n.author.profile_photo_url,alt:n.author.fullName,text:n.author.fullName,"right-image":n.author.id===(null===(l=e.$page.props.user)||void 0===l?void 0:l.id)},null,8,["image-url","alt","text","right-image"]),n.created_at?((0,r.openBlock)(),(0,r.createBlock)(p,{key:0,date:e.$dayjs(n.created_at).locale(e.$page.props.locale).format()}
2,null,8,["date"])):(0,r.createCommentVNode)("",!0)],2)],2)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",ke,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["relative z-0 after:-z-10 bubble p-4 rounded-md after:absolute","bg-gray-50 ml-12 md:ml-20 bubble-right after:border-gray-50"])},[(0,r.createElementVNode)("pre",_e,(0,r.toDisplayString)(n.comment),1)]),(0,r.createElementVNode)("div",Ee,[(0,r.createElementVNode)("div",Ce,[(0,r.createVNode)(d,{alt:e.__("Anonyme"),text:e.__("Anonyme")},null,8,["alt","text"]),n.created_at?((0,r.openBlock)(),(0,r.createBlock)(p,{key:0,date:e.$dayjs(n.created_at).locale(e.$page.props.locale).format()},null,8,["date"])):(0,r.createCommentVNode)("",!0)])])]))])):e.shouldDisplayPendingReviewComment(n)?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ne,[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["relative z-0 after:-z-10 bubble p-4 rounded-md after:absolute",[n.author.id===(null===(c=e.$page.props.user)||void 0===c?void 0:c.id)?"bg-slate-100 mr-12 md:mr-20 bubble-left after:border-slate-100":"bg-blue-100 ml-12 md:ml-20 bubble-right after:border-blue-100"]])},[(0,r.createElementVNode)("pre",Se,[(0,r.createElementVNode)("i",null,[(0,r.createElementVNode)("small",null,(0,r.toDisplayString)(e.__("(Commentaire en attente de validation par un modérateur)")),1)]),t[3]||(t[3]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(n.comment),1)])],2),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["flex items-center mt-8",{"justify-end":n.author.id===e.$page.props.user.id}])},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["flex items-center gap-2",{"flex-row-reverse":n.author.id===e.$page.props.user.id}])},[(0,r.createVNode)(d,{"image-url":n.author.profile_photo_url,alt:n.author.fullName,text:n.author.fullName,"right-image":n.author.id===(null===(u=e.$page.props.user)||void 0===u?void 0:u.id)},null,8,["image-url","alt","text","right-image"]),n.created_at?((0,r.openBlock)(),(0,r.createBlock)(p,{key:0,date:e.$dayjs(n.created_at).locale(e.$page.props.locale).format()},null,8,["date"])):(0,r.createCommentVNode)("",!0)],2)],2)])])):(0,r.createCommentVNode)("",!0)])})),128))])):(0,r.createCommentVNode)("",!0)])])):(0,r.createCommentVNode)("",!0)}],["__scopeId","data-v-4ed5f21c"]]);var Re={class:"flex gap-2 items-center mt-8"},$e={key:0,viewBox:"0 0 24 24",fill:"currentColor",class:"w-6 h-6"},ze={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},Fe={key:2},He={key:0,class:"mb-0"},Ue={key:1,class:"mb-0"},We={key:2,class:"mb-0"},qe={key:3,class:"mb-0"};const Ye=(0,ae.pM)({props:{likeCount:{type:Number,required:!0},likeSelf:{type:Boolean,required:!0},parentType:{type:String,required:!0},parentID:{type:Number,required:!0}},data:function(){return{dataLikeCount:0,dataLikeSelf:!1}},mounted:function(){this.dataLikeCount=this.likeCount,this.dataLikeSelf=this.likeSelf},methods:{like:function(){var e=this;this.$inertia.post(route("like",{commune:this.$page.props.commune.slug}),{parent_type:this.parentType,parent_id:this.parentID,user_from:this.$page.props.user},{onError:function(){return e.emitter.emit("lm-notification",{category:"error",text:e.__("Une erreur s'est produite.")})},preserveScroll:!0,preserveState:!1})}}}),Ge=(0,Ie.A)(Ye,[["render",function(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",Re,[(0,r.createElementVNode)("button",{class:(0,r.normalizeClass)(["transition-colors inline-flex",[e.dataLikeSelf||!e.$page.props.loggedin?"btn-secondary":"btn-primary"]]),onClick:t[0]||(t[0]=function(){return e.like&&e.like.apply(e,arguments)})},[e.dataLikeSelf?((0,r.openBlock)(),(0,r.createElementBlock)("svg",$e,t[1]||(t[1]=[(0,r.createElementVNode)("path",{d:"M7.493 18.75c-.425 0-.82-.236-.975-.632A7.48 7.48 0 016 15.375c0-1.75.599-3.358 1.602-4.634.151-.192.373-.309.6-.397.473-.183.89-.514 1.212-.924a9.042 9.042 0 012.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 00.322-1.672V3a.75.75 0 01.75-.75 2.25 2.25 0 012.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 01-2.649 7.521c-.388.482-.987.729-1.605.729H14.23c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 00-1.423-.23h-.777zM2.331 10.977a11.969 11.969 0 00-.831 4.398 12 12 0 00.52 3.507c.26.85 1.084 1.368 1.973 1.368H4.9c.445 0 .72-.498.523-.898a8.963 8.963 0 01-.924-3.977c0-1.708.476-3.305 1.302-4.666.245-.403-.028-.959-.5-.959H4.25c-.832 0-1.612.453-1.918 1.227z"},null,-1)]))):(0,r.createCommentVNode)("",!0),e.dataLikeSelf?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("svg",ze,t[2]||(t[2]=[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.633 10.5c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 012.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 00.322-1.672V3a.75.75 0 01.75-.75A2.25 2.25 0 0116.5 4.5c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 01-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 00-1.423-.23H5.904M14.25 9h2.25M5.904 18.75c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.9
208c-.889 0-1.713-.518-1.972-1.368a12 12 0 01-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 10.203 4.167 9.75 5 9.75h1.053c.472 0 .745.556.5.96a8.958 8.958 0 00-1.302 4.665c0 1.194.232 2.333.654 3.375z"},null,-1)]))),e.dataLikeSelf?((0,r.openBlock)(),(0,r.createElementBlock)("span",Fe," "+(0,r.toDisplayString)(e.__("J'aime")),1)):(0,r.createCommentVNode)("",!0)],2),e.dataLikeSelf&&e.dataLikeCount>1?((0,r.openBlock)(),(0,r.createElementBlock)("p",He," Toi et "+(0,r.toDisplayString)(e.dataLikeCount-1)+" autre personnes aimez ça. ",1)):(0,r.createCommentVNode)("",!0),e.dataLikeSelf&&1===e.dataLikeCount?((0,r.openBlock)(),(0,r.createElementBlock)("p",Ue," Tu aimes ça. ")):(0,r.createCommentVNode)("",!0),!e.dataLikeSelf&&e.dataLikeCount>1?((0,r.openBlock)(),(0,r.createElementBlock)("p",We,(0,r.toDisplayString)(e.dataLikeCount)+" aiment ça. ",1)):(0,r.createCommentVNode)("",!0),e.dataLikeSelf||1!==e.dataLikeCount?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("p",qe,(0,r.toDisplayString)(e.dataLikeCount)+" aiment ça. ",1))])}]]);var Ke={class:"mt-4"},Je={key:0,class:"flex max-h-[450px] max-w-full overflow-hidden relative justify-center group-inner"},Xe={class:"flex max-h-[450px] max-w-full overflow-hidden relative justify-center group-inner"},Ze={class:"flex justify-center gap-1 mt-4 items-center"},Qe=["onClick"];var et=n(5715);const tt=(0,ae.pM)({components:{LmFileView:et.A},props:{images:{type:Array,required:!0}},mounted:function(){},data:function(){return{value:"",displayNr:0,xStart:0,yStart:0}},methods:{touchStart:function(e){this.xStart=e.changedTouches[0].clientX,this.yStart=e.changedTouches[0].clientY},touchEnd:function(e){var t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;Math.abs(this.xStart-t)>Math.abs(this.yStart-n)&&(this.xStart>t?this.nextImage():this.prevImage())},prevImage:function(){this.displayNr>0?this.displayNr--:this.displayNr=this.images.length-1},nextImage:function(){this.displayNr<this.images.length-1?this.displayNr++:this.displayNr=0},getSRC:function(e){return e.type.startsWith("image/")||e.type.startsWith("video/")?"/storage/".concat(e.id,"/").concat(e.file_name):""}}}),nt=(0,Ie.A)(tt,[["render",function(e,t,n,o,i,a){var s=(0,r.resolveComponent)("lm-file-view");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",Ke,[1===e.images.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",Je,[(0,r.createVNode)(s,{file:e.images[0],class:"file-view-single"},null,8,["file"]),(0,r.createElementVNode)("button",{class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 opacity-0 group-inner-hover:opacity-100 p-2 bg-slate-100 rounded-md",onClick:t[0]||(t[0]=function(t){return e.editModal=!0})},t[3]||(t[3]=[(0,r.createElementVNode)("i",{class:"bi bi-pencil-square text-2xl"},null,-1)]))])):(0,r.createCommentVNode)("",!0),e.images.length>1?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createElementVNode)("div",Xe,[(0,r.createVNode)(s,{file:e.images[e.displayNr],class:"file-view-single",onTouchstart:e.touchStart,onTouchend:e.touchEnd},null,8,["file","onTouchstart","onTouchend"])]),(0,r.createElementVNode)("div",Ze,[(0,r.createElementVNode)("div",{class:"flex items-center text-2xl px-2 cursor-pointer mr-6",onClick:t[1]||(t[1]=function(){return e.prevImage&&e.prevImage.apply(e,arguments)})},t[4]||(t[4]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-left"},null,-1)])),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.images,(function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)("button",{key:t.id,class:(0,r.normalizeClass)(["w-6 h-2 shadow-inner mt-1",[e.displayNr===n?"bg-cm-primary":"bg-slate-200"]]),onClick:function(t){return e.displayNr=n}},null,10,Qe)})),128)),(0,r.createElementVNode)("div",{class:"flex items-center text-2xl px-2 cursor-pointer ml-6",onClick:t[2]||(t[2]=function(){return e.nextImage&&e.nextImage.apply(e,arguments)})},t[5]||(t[5]=[(0,r.createElementVNode)("i",{class:"bi bi-chevron-right"},null,-1)]))])],64)):(0,r.createCommentVNode)("",!0)])])}]]);var rt={class:"text-cm-primary xxxxx"},ot={key:0,viewBox:"0 0 20 20",fill:"#cdcdcd",class:"inline-flex w-5 h-5 mr-2"},it={key:0,class:"inline-flex items-center mr-2"};const at=(0,ae.pM)({props:{views:{type:Number,default:0},showIcon:{type:Boolean,default:!0}}}),st=(0,Ie.A)(at,[["render",function(e,t,n,o,i,a){var s=this,l=(0,r.resolve
2Component)("Text");return(0,r.openBlock)(),(0,r.createBlock)(l,{color:"text-slate-400",type:"sm",as:"span",class:"inline-flex items-center whitespace-nowrap",views:this.views},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("span",rt,[s.showIcon?((0,r.openBlock)(),(0,r.createElementBlock)("svg",ot,t[0]||(t[0]=[(0,r.createElementVNode)("path",{d:"M 11 8 C 11 9.65625 9.65625 11 8 11 C 6.34375 11 5 9.65625 5 8 C 5 6.34375 6.34375 5 8 5 C 9.65625 5 11 6.34375 11 8 Z M 11 8 "},null,-1),(0,r.createElementVNode)("path",{d:"M 8 3 C 3 3 0 7.96875 0 7.96875 C 0 7.96875 3 13 8 13 C 13 13 16 8 16 8 C 16 8 13 3 8 3 Z M 8 12 C 3.625 12 1.25 8 1.25 8 C 1.25 8 3.625 4 8 4 C 12.375 4 14.75 8 14.75 8 C 14.75 8 12.375 12 8 12 Z M 8 12 "},null,-1)]))):(0,r.createCommentVNode)("",!0)]),e.recurringParent?((0,r.openBlock)(),(0,r.createElementBlock)("span",it,t[1]||(t[1]=[(0,r.createElementVNode)("svg",{fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"inline-flex w-5 h-5 mr-2"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 12c0-1.232-.046-2.453-.138-3.662a4.006 4.006 0 00-3.7-3.7 48.678 48.678 0 00-7.324 0 4.006 4.006 0 00-3.7 3.7c-.017.22-.032.441-.046.662M19.5 12l3-3m-3 3l-3-3m-12 3c0 1.232.046 2.453.138 3.662a4.006 4.006 0 003.7 3.7 48.656 48.656 0 007.324 0 4.006 4.006 0 003.7-3.7c.017-.22.032-.441.046-.662M4.5 12l3 3m-3-3l-3 3"})],-1)]))):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(s.views),1)]})),_:1},8,["views"])}]]);var lt=n(1075),ct=n(756);const ut=(0,ae.pM)({components:{TagsBadge:lt.A,ViewBadge:st,DateBadge:Ae.A,categoryBadge:le.A,Comments:je,LikeButton:Ge,LmImageGallery:nt,DialogModal:ct.A},data:function(){return{tags:[],deleteModal:!1,archiveModal:!1,highlightModal:!1,highlightAnnonceData:{title:null,id:null},deleteAnnonceData:{title:null,id:null},archiveAnnonceData:{title:null,id:null},networks:{url:"https://"+this.$page.props.commune.slug+".lememento.ch"+this.$page.url,title:this.$page.props.annonce.title,description:this.$page.props.annonce.description,networks:[{network:"email",icon:"bi bi-envelope",color:"#535353"},{network:"whatsapp",icon:"bi bi-whatsapp",color:"#25d366"},{network:"facebook",icon:"bi bi-facebook",color:"#1877f2"},{network:"linkedin",icon:"bi bi-linkedin",color:"#0077b5"}]},showAll:!1,copied:!1}},mounted:function(){var e=this.annonce.start_date;this.$dayjs(e)},methods:{copyLink:function(){var e=this,t=window.location.href;navigator.clipboard.writeText(t).then((function(){e.copied=!0,e.emitter.emit("lm-notification",{category:"success",text:e.__("Le lien de l'annonce a été copié.")}),setTimeout((function(){e.copied=!1}),3e3)})).catch((function(e){console.error("Failed to copy: ",e)}))},printContent:function(e){var t=this,n=document.getElementById("printable").cloneNode(!0),r=(this.comments||[]).filter((function(e){return 2===e.status}));function o(e){return String(e||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}if(r.length){var i='<div class="col-span-12 mt-8"><h2 class="text-2xl font-semibold mb-4">'+o(this.__("Commentaires"))+"</h2>"+r.map((function(e){var n=e.author&&e.author.fullName?e.author.fullName:t.__("Anonyme"),r=e.created_at?t.$dayjs(e.created_at).locale(t.$page.props.locale).format("D.MM.YYYY, HH:mm"):"";return'<div class="mt-4 p-4 rounded-md bg-gray-50"><pre class="whitespace-pre-wrap font-sans">'+o(e.comment)+'</pre><div class="mt-3 text-sm text-gray-600">'+o(n)+(r?" - "+o(r):"")+"</div></div>"})).join("")+"</div>";n.insertAdjacentHTML("beforeend",i)}var a=Array.from(document.querySelectorAll('link[rel="stylesheet"], style')).map((function(e){return e.outerHTML})).join(""),s=window.open("","_blank","width=800,height=600");s&&(s.document.write("<html><head><title>"+o(e.title)+'</title><base href="'+window.location.origin+'/">'+a+"<style>@page { margin: 8mm; }body { margin: 0; background: #fff; color: #111827; }a { color: inherit; text-decoration: none; }img { max-width: 100%; height: auto; }button, input, textarea, select, .bi-heart, .bi-heart-fill { display: none !important; }#printable { display: block !important; width: 100% !important; max-width: none !important; border: 0 !important; box-shadow: none !important; }#printable > * { display: block !important; width: 100% !important; max-width: none !important; break-inside: auto !important; page-break-inside: auto !important; }#printable .grid { display: block !important; }</style></head><body>"+n.outerHTML+"</body></html>"),s.document.close(),s.focus(),s.onafterprint=function(){s.close()},setTimeout((function(){s.print()}),500))},toggleHighlight:function(e){this.highlightAnnonceData=e,this.highlightModal=!0},confirmHighlightAnnonce:function(){this.$inertia.post(route("annonces.highlight",{commune:this.$page.props.commune.slug}),{annonce_id:this.highlightAnnonceData.id},{preserveState:!1})},updateTags:function(e){this.tags=e},updateDeleteInfo:function(e,t){this.deleteAnnonceData.title=e,this.deleteAnnonceData.id=t,this.deleteModal=!0},updateArchiveInfo:function(e,t){this.archiveAnnonceData.title=e,this.archiveAnnonceData.id=t,this.archiveModal=!0},confirmDeleteAnnonce:function(){this.$inertia.post(route("annonces.delete",{commune:this.$page.props.commune.slug}),{annonce_id:this.deleteAnnonceData.id},{preserveState:!1})},confirmArchiveAnnonce:function(){this.$inertia.post(route("annonces.archive",{commune:this.$page.props.commune.slug}),{annonce_id:this.archiveAnnonceData.id},{preserveState:!1})},toggleShowAll:function(){this.showAll=!this.showAll}},layout:se.A,props:["annonce","comments","likeCount","likeSelf","mainEvent","futurRecurrences","viewCount"],computed:{statusClass:function(){switch(this.annonce.status){case 0:return"bg-slate-100";case 1:return"bg-lm-blue text-white";case 2:return"bg-white"}},imageSrc:function(){return this.annonce.image?this.annonce.image.includes("http")?this.annonce.image:this.$page.props.storagePath+this.annonce.image:null},contactPaddingBottom:function(){return this.annonce.showEmail||this.annonce.showPhone||this.annonce.showAddress},displayedRecurrences:function(){return this.showAll?this.futurRecurrences:this.futurRecurrences.slice(0,3)}}});var dt=n(7524),pt={insert:"head",singleton:!1};Oe()(dt.A,pt);dt.A.locals;const ht=(0,Ie.A)(ut,[["render",function(e,t,n,ae,se,le){var ce=this,ue=(0,r.resolve
2Component)("Head"),de=(0,r.resolveComponent)("Text"),pe=(0,r.resolveComponent)("Link"),he=(0,r.resolveComponent)("category-badge"),fe=(0,r.resolveComponent)("tags-badge"),me=(0,r.resolveComponent)("date-badge"),ge=(0,r.resolveComponent)("view-badge"),ve=(0,r.resolveComponent)("lm-image-gallery"),ye=(0,r.resolveComponent)("like-button"),be=(0,r.resolveComponent)("ShareNetwork"),xe=(0,r.resolveComponent)("dialog-modal"),we=(0,r.resolveComponent)("Comments"),ke=(0,r.resolveDirective)("dompurify-html");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(ue,{title:e.annonce.title},null,8,["title"]),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(pe,{href:e.route("annonce"===e.annonce.type?"annonces.index":"annonces.events",{commune:e.$page.props.commune.slug}),class:"inline-flex items-center"},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(de,{type:"span",class:"inline-flex items-center"},{default:(0,r.withCtx)((function(){return[t[16]||(t[16]=(0,r.createElementVNode)("svg",{fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-4 h-4 mr-2"},[(0,r.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)("annonce"==e.annonce.type?e.__("Retourner aux annonces"):"event"==e.annonce.type?e.__("Retourner aux événements"):e.annonce.type),1)]})),_:1})]})),_:1},8,["href"])]),(0,r.createElementVNode)("div",a,[e.annonce.price?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.createElementVNode)("div",l,[(0,r.createVNode)(de,{type:"md",as:"span"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.annonce.price.amount>0?e.annonce.price.formatted:e.__("Gratuit")),1)]})),_:1})])])):(0,r.createCommentVNode)("",!0),"event"===e.annonce.type?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("div",d,[(0,r.createVNode)(de,{type:"h2",as:"span"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$dayjs(e.annonce.start_date).locale(e.$page.props.locale).format("D"))+(0,r.toDisplayString)(e.$dayjs(e.annonce.start_date).isSame(e.$dayjs(e.annonce.end_date),"day")?null:"-"+e.$dayjs(e.annonce.end_date).locale(e.$page.props.locale).format("D")),1)]})),_:1})]),(0,r.createElementVNode)("div",p,[(0,r.createVNode)(de,{type:"h4",as:"span"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$dayjs(e.annonce.start_date).locale(e.$page.props.locale).format("MMMM"))+" "+(0,r.toDisplayString)(e.$dayjs(e.annonce.start_date).isSame(e.$dayjs(),"year")?null:e.$dayjs(e.annonce.start_date).locale(e.$page.props.locale).format("YYYY")),1)]})),_:1})])]),e.annonce.all_day_event?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",h,[(0,r.createElementVNode)("div",f,[(0,r.createVNode)(de,{type:"h4",as:"span"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$dayjs(e.annonce.start_date).locale(e.$page.props.locale).format("HH:mm"))+" - "+(0,r.toDisplayString)(e.$dayjs(e.annonce.end_date).locale(e.$page.props.locale).format("HH:mm")),1)]})),_:1})])]))])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",m,[e.annonce.header_image_url&&!e.annonce.header_image_url.includes("default-annonce.png")?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,id:"header_image",class:"mx-auto max-h-fit-content w-30 object-cover rounded-t-xl",src:e.annonce.header_image_url},null,8,g)):(0,r.createCommentVNode)("",!0)])]),(0,r.createElementVNode)("div",v,[(0,r.createElementVNode)("div",y,[(0,r.createElementVNode)("div",b,[(0,r.createVNode)(de,{type:"h1",text:e.annonce.title},null,8,["text"])]),(0,r.createElementVNode)("div",x,[(0,r.createElementVNode)("div",w,[e.annonce.price?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,class:"bg-gray-100 text-gray-800 text-sm font-medium mr-2 px-2.5 py-0.5 rounded",textContent:(0,r.toDisplayString)(e.annonce.price.formatted)},null,8,k)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(he,{category:e.annonce.category,showLink:!0},null,8,["category"]),(0,r.createVNode)(fe,{tags:e.annonce.tags,quantity:20,showLink:!0},null,8,["tags"])]),(0,r.createElementVNode)("div",null,[e.annonce.published_at?((0,r.openBlock)(),(0,r.createBlock)(me,{key:0,class:"mt-2",date:e.$dayjs(e.annonce.published_at).locale(e.$page.props.locale).format()},null,8,["date"])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(ge,{class:"mt-2",views:e.viewCount},null,8,["views"])])]),(0,r.createElementVNode)("div",_,[(0,r.createElementVNode)("p",E,(0,r.toDisplayString)(e.annonce.description),1)]),(0,r.createElementVNode)("div",C,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.annonce.component,(function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:t},["text"===e.type?((0,r.openBlock)(),(0,r.createElementBlock)("div",N,[(0,r.withDirectives)((0,r.createElementVNode)("div",S,null,512),[[ke,e.content]])])):(0,r.createCommentVNode)("",!0),"gallery"===e.type?((0,r.openBlock)(),(0,r.createElementBlock)("div",V,[(0,r.createVNode)(ve,{images:e.gallery},null,8,["images"])])):(0,r.createCommentVNode)("",!0)],64)})),128))]),(0,r.createElementVNode)("div",A,[(0,r.createVNode)(ye,{parentID:e.annonce.id,parentType:"Annonce",likeCount:e.likeCount,likeSelf:e.likeSelf},null,8,["parentID","likeCount","likeSelf"])])]),(0,r.createElementVNode)("div",D,[e.annonce.hasOwnProperty("status")&&e.$page.props.user&&e.$page.props.user.id===e.$page.props.annonce.user_id||1===e.$page.props.userRole||2===e.$page.props.userRole?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["mb-4 shadow-md p-4 rounded-md",[e.statusClass]])},[(0,r.createElementVNode)("p",M,(0,r.toDisplayString)(e.__("Status"))+": "+(0,r.toDisplayString)(e.annonce.statusTranslated),1),(0,r.createElementVNode)("p",T,[(0,r.createVNode)(pe,{href:e.route("annonces.edit",{commune:this.$page.props.commune.slug,annonce:e.annonce.id,slug:e.annonce.slug}),title:e.__("Bearbeiten")},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Modifier l'annonce")),1)]})),_:1},8,["href","title"])]),1===e.$page.props.userRole||2===e.$page.props.userRole?((0,r.openBlock)(),(0,r.createElementBlock)("div",B,[t[21]||(t[21]=(0,r.createElementVNode)("hr",{class:"p-1"},null,-1)),(0,r.createElementVNode)("button",{class:"pr-3 py-2 rounded-l-md text-left hover:text-cm-primary transition-colors",onClick:t[0]||(t[0]=function(t){return e.toggleHighlight(e.annonce)}),title:e.__("Hervorheben")},[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Hervorheben"))+" ",1),(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)(["b
2i pl-2",{"bi-star-fill":e.annonce.highlighted,"bi bi-star":!e.annonce.highlighted}])},null,2)],8,O),(0,r.createVNode)(pe,{class:"pr-3 py-2 rounded-l-md text-left hover:text-cm-primary transition-colors",href:e.route("annonces.edit",{commune:this.$page.props.commune.slug,annonce:e.annonce.id,slug:e.annonce.slug}),title:e.__("Bearbeiten")},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Bearbeiten")),1),t[17]||(t[17]=(0,r.createElementVNode)("button",null,[(0,r.createElementVNode)("i",{class:"bi bi-pencil pl-2"})],-1))]})),_:1},8,["href","title"]),(0,r.createVNode)(pe,{class:"pr-3 py-2 rounded-l-md text-left hover:text-cm-primary transition-colors",href:e.route("annonces.copy",{commune:e.$page.props.commune.slug,annonce:e.annonce.id,slug:e.annonce.slug}),title:e.__("Kopieren")},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Kopieren")),1),t[18]||(t[18]=(0,r.createElementVNode)("button",null,[(0,r.createElementVNode)("i",{class:"bi bi-back pl-3"})],-1))]})),_:1},8,["href","title"]),!e.annonce.category.name.de.includes("Archiv")&&1===e.$page.props.userRole||2===e.$page.props.userRole?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,onClick:t[1]||(t[1]=function(t){return e.updateArchiveInfo(e.annonce.title,e.annonce.id)}),class:"pr-3 py-2 rounded-l-md text-left hover:text-cm-primary transition-colors",href:"#",title:e.__("Archivieren")},[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Archivieren"))+" ",1),t[19]||(t[19]=(0,r.createElementVNode)("i",{class:"bi bi-archive pl-2"},null,-1))],8,P)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("button",{onClick:t[2]||(t[2]=function(t){return e.updateDeleteInfo(e.annonce.title,e.annonce.id)}),class:"pr-3 py-2 rounded-l-md text-left hover:text-cm-primary transition-colors",href:"#",title:e.__("Löschen")},[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Löschen"))+" ",1),t[20]||(t[20]=(0,r.createElementVNode)("i",{class:"bi bi-trash pl-2"},null,-1))],8,L)])):(0,r.createCommentVNode)("",!0)],2)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["shadow-md rounded-sm text-sm rounded-md",{"pb-2":e.contactPaddingBottom}])},[(0,r.createElementVNode)("p",I,[(0,r.createElementVNode)("img",{class:"w-8 h-8 rounded-full mr-2",src:e.annonce.author.profile_photo_url},null,8,j),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.annonce.author.fullName),1)]),e.annonce.showEmail?((0,r.openBlock)(),(0,r.createElementBlock)("p",R,[(0,r.createElementVNode)("a",{class:"inline-flex items-center",href:"mailto:"+e.annonce.email},[t[22]||(t[22]=(0,r.createElementVNode)("svg",{viewBox:"0 0 20 20",fill:"currentColor",class:"w-4 h-4 mr-2 text-cm-primary"},[(0,r.createElementVNode)("path",{d:"M3 4a2 2 0 00-2 2v1.161l8.441 4.221a1.25 1.25 0 001.118 0L19 7.162V6a2 2 0 00-2-2H3z"}),(0,r.createElementVNode)("path",{d:"M19 8.839l-7.77 3.885a2.75 2.75 0 01-2.46 0L1 8.839V14a2 2 0 002 2h14a2 2 0 002-2V8.839z"})],-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.annonce.email),1)],8,$)])):(0,r.createCommentVNode)("",!0),e.annonce.showPhone?((0,r.openBlock)(),(0,r.createElementBlock)("p",z,[(0,r.createElementVNode)("a",{class:"inline-flex items-center",href:"tel:"+e.annonce.phone},[t[23]||(t[23]=(0,r.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"w-4 h-4 mr-2 text-cm-primary"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M2 3.5A1.5 1.5 0 013.5 2h1.148a1.5 1.5 0 011.465 1.175l.716 3.223a1.5 1.5 0 01-1.052 1.767l-.933.267c-.41.117-.643.555-.48.95a11.542 11.542 0 006.254 6.254c.395.163.833-.07.95-.48l.267-.933a1.5 1.5 0 011.767-1.052l3.223.716A1.5 1.5 0 0118 15.352V16.5a1.5 1.5 0 01-1.5 1.5H15c-1.149 0-2.263-.15-3.326-.43A13.022 13.022 0 012.43 8.326 13.019 13.019 0 012 5V3.5z","clip-rule":"evenodd"})],-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.annonce.phone),1)],8,F)])):(0,r.createCommentVNode)("",!0),e.annonce.showAddress?((0,r.openBlock)(),(0,r.createElementBlock)("p",H,[t[25]||(t[25]=(0,r.createElementVNode)("svg",{viewBox:"0 0 20 20",fill:"currentColor",class:"w-4 h-4 mr-2 text-cm-primary"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M9.69 18.933l.003.001C9.89 19.02 10 19 10 19s.11.02.308-.066l.002-.001.006-.003.018-.008a5.741 5.741 0 00.281-.14c.186-.096.446-.24.757-.433.62-.384 1.445-.966 2.274-1.765C15.302 14.988 17 12.493 17 9A7 7 0 103 9c0 3.492 1.698 5.988 3.355 7.584a13.731 13.731 0 002.273 1.765 11.842 11.842 0 00.976.544l.062.029.018.008.006.003zM10 11.25a2.25 2.25 0 100-4.5 2.25 2.25 0 000 4.5z","clip-rule":"evenodd"})],-1)),(0,r.createElementVNode)("span",null,[(0,r.createTextVNode)((0,r.toDisplayString)(e.annonce.street),1),t[24]||(t[24]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.createTextVNode)((0,r.toDisplayString)(e.annonce.zip+" "+e.annonce.city),1)])])):(0,r.createCommentVNode)("",!0)],2),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["shadow-md rounded-sm text-sm rounded-md mt-5 mb-5 px-2",{"pb-2":e.contactPaddingBottom}])},[(0,r.createElementVNode)("div",U,[(0,r.createVNode)(de,{type:"xs",as:"span",class:"text-base font-bold"},{default:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Partager l'annonce")),1)]})),_:1})]),(0,r.createElementVNode)("div",W,[(0,r.createElementVNode)("a",{onClick:t[3]||(t[3]=function(t){return e.copyLink()}),style:{"background-color":"rgb(83, 83, 83)"},class:"share-network-link text-white"},t[26]||(t[26]=[(0,r.createElementVNode)("i",{class:"bi bi-link-45deg"},null,-1)])),(0,r.createElementVNode)("a",{onClick:t[4]||(t[4]=function(t){return e.printContent(e.annonce)}),style:{"background-color":"rgb(83, 83, 83)"},class:"share-network-print text-white"},t[27]||(t[27]=[(0,r.createElementVNode)("i",{class:"bi bi-printer"},null,-1)])),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.networks.networks,(function(t){return(0,r.openBlock)(),(0,r.createBlock)(be,{network:t.network,key:t.network,style:(0,r.normalizeStyle)({backgroundColor:t.color}),url:e.networks.url,title:e.networks.title},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)(t.icon)},null,2)]})),_:2},1032,["network","style","url","title"])})),128))])],2),e.mainEvent?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,class:(0,r.normalizeClass)(["shadow-md rounded-sm text-sm rounded-md mt-4",{"pb-2":e.contactPaddingBottom}])},[(0,r.createElementVNode)("p",q,(0,r.toDisplayString)(e.__("Event principal")),1),(0,r.createElementVNode)("ul",Y,[(0,r.createElementVNode)("li",G,[(0,r.createVNode)(pe,{href:e.route("annonces.show",{commune:this.$page.props.commune.slug,annonce:e.mainEvent.id,slug:e.mainEvent.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(he,{category:e.mainEvent.category,showLink:!1},null,8,["category"]),(0,r.createElementVNode)("div",K,(0,r.toDisplayString)(e.$dayjs(e.mainEvent.start_date).locale(e.$page.props.locale).format("D.MM.YYYY, HH:mm")),1),(0,r.createElementVNode)("div",null,(0,r.toDisplayString)(e.mainEvent.title),
21)]})),_:1},8,["href"])])])],2)):(0,r.createCommentVNode)("",!0),e.futurRecurrences&&e.futurRecurrences.length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:2,class:(0,r.normalizeClass)(["shadow-md rounded-sm text-sm rounded-md mt-4",{"pb-2":e.contactPaddingBottom}])},[(0,r.createElementVNode)("p",J,(0,r.toDisplayString)(e.__("Récurrences futures")),1),(0,r.createElementVNode)("ul",X,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.displayedRecurrences,(function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{class:"border border-gray-200 hover:bg-slate-50 transition-all rounded-lg px-4 py-2",key:n},[(0,r.createVNode)(pe,{href:e.route("annonces.show",{commune:ce.$page.props.commune.slug,annonce:t.id,slug:t.slug})},{default:(0,r.withCtx)((function(){return[(0,r.createVNode)(he,{category:t.category,showLink:!1},null,8,["category"]),(0,r.createElementVNode)("div",Z,(0,r.toDisplayString)(e.$dayjs(t.start_date).locale(e.$page.props.locale).format("D.MM.YYYY, HH:mm")),1),(0,r.createElementVNode)("div",null,(0,r.toDisplayString)(t.title),1)]})),_:2},1032,["href"])])})),128))]),e.futurRecurrences.length>3?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,onClick:t[5]||(t[5]=function(){return e.toggleShowAll&&e.toggleShowAll.apply(e,arguments)}),class:"flex m-auto text-slate-600 hover:text-slate-700 font-semibold py-1 px-2 text-lg leading-none border border-transparent hover:border-slate-300 rounded-full transition-colors duration-200"},[e.showAll?((0,r.openBlock)(),(0,r.createElementBlock)("span",ee,"â")):((0,r.openBlock)(),(0,r.createElementBlock)("span",Q,"â¢â¢â¢"))])):(0,r.createCommentVNode)("",!0)],2)):(0,r.createCommentVNode)("",!0)])]),(0,r.createVNode)(xe,{show:e.deleteModal,onClose:t[8]||(t[8]=function(t){return e.deleteModal=!1})},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Anzeige löschen")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("p",te,(0,r.toDisplayString)(e.__("Sind Sie sicher?")),1),(0,r.createElementVNode)("p",null," «"+(0,r.toDisplayString)(e.deleteAnnonceData.title)+"» "+(0,r.toDisplayString)(e.__("delete annonce text")),1)]})),footer:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",{onClick:t[6]||(t[6]=function(t){return e.deleteModal=!1}),class:"mr-4"},(0,r.toDisplayString)(e.__("Abbrechen")),1),(0,r.createElementVNode)("button",{onClick:t[7]||(t[7]=function(){return e.confirmDeleteAnnonce&&e.confirmDeleteAnnonce.apply(e,arguments)}),class:"bg-red-700 hover:bg-red-800 px-3 py-2 rounded-md text-white"},(0,r.toDisplayString)(e.__("Löschen")),1)]})),_:1},8,["show"]),(0,r.createVNode)(xe,{show:e.archiveModal,onClose:t[11]||(t[11]=function(t){return e.deleteModal=!1})},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Anzeige archivieren")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("p",ne,(0,r.toDisplayString)(e.__("Sind Sie sicher?")),1),(0,r.createElementVNode)("p",null," «"+(0,r.toDisplayString)(e.archiveAnnonceData.title)+"» "+(0,r.toDisplayString)(e.__("archive annonce text")),1)]})),footer:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",{onClick:t[9]||(t[9]=function(t){return e.archiveModal=!1}),class:"mr-4"},(0,r.toDisplayString)(e.__("Abbrechen")),1),(0,r.createElementVNode)("button",{onClick:t[10]||(t[10]=function(){return e.confirmArchiveAnnonce&&e.confirmArchiveAnnonce.apply(e,arguments)}),class:"bg-red-700 hover:bg-red-800 px-3 py-2 rounded-md text-white"},(0,r.toDisplayString)(e.__("Archivieren")),1)]})),_:1},8,["show"]),(0,r.createVNode)(we,{"parent-type":e.annonce.type,"parent-id":e.annonce.id,comments:e.comments},null,8,["parent-type","parent-id","comments"])])]),(0,r.createVNode)(xe,{show:e.highlightModal,onClose:t[15]||(t[15]=function(t){return e.highlightModal=!1})},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Anzeige hervorheben")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("p",re,(0,r.toDisplayString)(e.__("Sind Sie sicher?")),1),e.highlightAnnonceData.highlighted?((0,r.openBlock)(),(0,r.createElementBlock)("p",ie," «"+(0,r.toDisplayString)(e.highlightAnnonceData.title)+"» "+(0,r.toDisplayString)(e.__("unhighlight annonce text")),1)):((0,r.openBlock)(),(0,r.createElementBlock)("p",oe," «"+(0,r.toDisplayString)(e.highlightAnnonceData.title)+"» "+(0,r.toDisplayString)(e.__("highlight annonce text")),1))]})),footer:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",{onClick:t[12]||(t[12]=function(t){return e.highlightModal=!1}),class:"mr-4"},(0,r.toDisplayString)(e.__("Abbrechen")),1),e.highlightAnnonceData.highlighted?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,onClick:t[14]||(t[14]=function(){return e.confirmHighlightAnnonce&&e.confirmHighlightAnnonce.apply(e,arguments)}),class:"bg-green-700 hover:bg-green-800 px-3 py-2 rounded-md text-white"},(0,r.toDisplayString)(e.__("Nicht mehr hervorheben")),1)):((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,onClick:t[13]||(t[13]=function(){return e.confirmHighlightAnnonce&&e.confirmHighlightAnnonce.apply(e,arguments)}),class:"bg-green-700 hover:bg-green-800 px-3 py-2 rounded-md text-white"},(0,r.toDisplayString)(e.__("Hervorheben")),1))]})),_:1},8,["show"])],64)}]])},9920:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>N});var r=n(6301),o={class:"pt-5"},i={class:"flex justify-between border-b-2 p-2 items-center w-full md:w-1/2 xl:w-1/3"},a={class:"flex gap-4"},s={class:"text-right"},l={class:"flex"},c={class:"flex items-center"},u={class:"mr-4"},d={class:"flex items-center w-16"},p=["onClick"],h=["onClick"],f={key:0,class:"text-red-500"},m={class:"mt-4"},g=["disabled"],v={class:"font-semibold"},y={class:"mt-4"},b={class:"italic"};var x=n(641),w=n(5720),k=n(9234),_=n(9506),E=n(756);const C=(0,x.pM)({props:{tags:Object},data:function(){return{editModalOpen:!1,deleteModalOpen:!1,editId:null,deleteId:null,deleteName:"",deleteCount:null,editName:"",editCount:null}},methods:{saveTag:function(){var e=this;this.editId&&this.editName.length>=3&&this.$inertia.post(route("admin.tags.update",{commune:this.$page.props.commune.slug}),{id:this.editId,name:this.editName},{onSuccess:function(){e.editModalOpen=!1}})},deleteTag:function(){var e=this;this.deleteId&&this.$inertia.post(route("admin.tags.delete",{commune:this.$page.props.commune.slug}),{id:this.deleteId},{onSuccess:function(){e.deleteModalOpen=!1}})},openDelete:function(e,t,n){this.deleteId=e,this.deleteName=t,this.deleteModalOpen=!0,this.deleteCount=n},openEdit:function(e,t,n){this.editId=e,this.editName=t,this.editModalOpen=!0,this.editCount=n}},components:{Head:k.p3,LmInputText:_.zX,LmInputColor:_.Pt,DialogModal:E.A},layout:w.A});const N=(0,n(6262).A)(C,[["render",function(e,t,n,x,w,k){var _=(0,r.resolve
2Component)("Head"),E=(0,r.resolveComponent)("Text"),C=(0,r.resolveComponent)("lm-input-text"),N=(0,r.resolveComponent)("dialog-modal");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(_,null,{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("title",null,(0,r.toDisplayString)(e.__("Tags")),1)]})),_:1}),(0,r.createVNode)(E,{type:"h1",text:"Tags"}),(0,r.createElementVNode)("p",o,(0,r.toDisplayString)(e.__("tagIntroText")),1),(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",null,(0,r.toDisplayString)(e.__("Name")),1),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",s,(0,r.toDisplayString)(e.__("Verwendungen")),1),t[7]||(t[7]=(0,r.createElementVNode)("div",{class:"w-16"},null,-1))])]),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.tags,(function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"flex justify-between border-b-2 p-2 items-center w-full md:w-1/2 xl:w-1/3",key:o},[(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",null,(0,r.toDisplayString)(n.name),1)]),(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("div",u,(0,r.toDisplayString)(n.count),1),(0,r.createElementVNode)("div",d,[(0,r.createElementVNode)("button",{onClick:function(t){return e.openEdit(n.id,n.name,n.count)},class:"px-2 py-1 rounded-l-md bg-slate-100 transition-colors hover:bg-slate-200"},t[8]||(t[8]=[(0,r.createElementVNode)("i",{class:"bi bi-pencil"},null,-1)]),8,p),(0,r.createElementVNode)("button",{onClick:function(t){return e.openDelete(n.id,n.name,n.count)},class:"px-2 py-1 rounded-r-md bg-slate-100 transition-colors hover:bg-red-800 hover:text-white"},t[9]||(t[9]=[(0,r.createElementVNode)("i",{class:"bi bi-trash"},null,-1)]),8,h)])])])})),128))]),(0,r.createVNode)(N,{show:e.editModalOpen,onClose:t[3]||(t[3]=function(t){return e.editModalOpen=!1})},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Tag bearbeiten")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createVNode)(C,{modelValue:e.editName,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.editName=t}),label:e.__("Tag Name")},null,8,["modelValue","label"]),e.$page.props.errors.name?((0,r.openBlock)(),(0,r.createElementBlock)("span",f,(0,r.toDisplayString)(e.$page.props.errors.name),1)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("p",m,(0,r.toDisplayString)(e.__("Dieser Tag wird"))+" "+(0,r.toDisplayString)(e.editCount)+" "+(0,r.toDisplayString)(e.__("Mal verwendet"))+". ",1)]})),footer:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",{onClick:t[1]||(t[1]=function(t){return e.editModalOpen=!1}),class:"mr-4"},(0,r.toDisplayString)(e.__("Abbrechen")),1),(0,r.createElementVNode)("button",{disabled:e.editName.length<3,onClick:t[2]||(t[2]=function(){return e.saveTag&&e.saveTag.apply(e,arguments)}),class:(0,r.normalizeClass)(["hover:bg-lm-light-blue px-3 py-2 rounded-md text-white transition-colors",[e.editName.length<3?"bg-lm-light-blue":"bg-lm-blue"]])},(0,r.toDisplayString)(e.__("Speichern")),11,g)]})),_:1},8,["show"]),(0,r.createVNode)(N,{show:e.deleteModalOpen,onClose:t[6]||(t[6]=function(t){return e.deleteModalOpen=!1})},{title:(0,r.withCtx)((function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Tag löschen")),1)]})),content:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("p",v,(0,r.toDisplayString)(e.__("Sind Sie sicher?")),1),(0,r.createElementVNode)("p",y,[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("Der Tag"))+" ",1),(0,r.createElementVNode)("span",b,"« "+(0,r.toDisplayString)(e.deleteName)+" »",1),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("wird gelöscht"))+". "+(0,r.toDisplayString)(e.__("Dieser Vorgang kann nicht rückgängig gemacht werden"))+". ",1)]),(0,r.createElementVNode)("p",null,(0,r.toDisplayString)(e.__("Dieser Tag wird"))+" "+(0,r.toDisplayString)(e.deleteCount)+" "+(0,r.toDisplayString)(e.__("Mal verwendet"))+". ",1)]})),footer:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("button",{onClick:t[4]||(t[4]=function(t){return e.deleteModalOpen=!1}),class:"mr-4"},(0,r.toDisplayString)(e.__("Abbrechen")),1),(0,r.createElementVNode)("button",{onClick:t[5]||(t[5]=function(){return e.deleteTag&&e.deleteTag.apply(e,arguments)}),class:"bg-red-800 hover:bg-red-900 px-3 py-2 rounded-md text-white transition-colors"},(0,r.toDisplayString)(e.__("Löschen")),1)]})),_:1},8,["show"])],64)}]])},9951:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>H});var r=n(6301),o={class:"mx-auto p-4 max-w-7xl xl:container"},i={class:"flex flex-col md:flex-row justify-between"},a={class:"flex gap-4 flex-wrap"},s={key:0},l={value:null},c=["value"],u={class:""},d={value:null},p={value:"startDateAsc"},h={value:"startDateDesc"},f={value:"createdAtAsc"},m={value:"createdAtDesc"},g={value:"nameAsc"},v={value:"nameDesc"},y={class:"mt-8"},b={key:0,class:"border-t border-gray-200 px-4 sm:px-0 mt-8"},x={class:"flex items-center justify-center"},w={class:"-mt-px flex sm:hidden w-0 flex-1"},k=["innerHTML"],_={class:"-mt-px hidden sm:flex"},E={class:"inline-flex items-center border-t-2 border-transparent px-4 pt-4 text-sm font-medium text-gray-500",textContent:"..."},C={class:"-mt-px flex sm:hidden w-0 flex-1 justify-end"},N=["innerHTML"],S={class:"flex items-center justify-center mt-2"},V=["textContent"],A=["textContent"],D=["textContent"];var M=n(641),T=n(1546),B=n(8367),O=n(9506),P=n(1049),L=n(5512),I=n(6782);const j=(0,M.pM)({layout:B.A,components:{LmStage:T.default,LmRadioGroup:O.ug,AnnonceGrid:L.A,LmInputText:O.zX,LmSpinner:P.A,TagSelector:O.Cx,LmCalendar:I.A}
2,data:function(){return{q:"",category:null,orderby:null,searchUrl:"",page:1,tags:[]}},props:{annonces:{type:Object},categories:{type:Object}},mounted:function(){var e,t,n=new URLSearchParams(window.location.search);this.q=n.get("q")?n.get("q"):"",this.category=null!==(e=n.get("category"))&&void 0!==e?e:null,this.orderby=null!==(t=n.get("orderby"))&&void 0!==t?t:null,n.get("tag")&&(this.tags=n.get("tag").split(","))},methods:{updateTags:function(e){this.tags=e},calcAnimationDelay:function(e){return e/10+"s"},search:function(e){var t=this.generateUrlParams();this.$inertia.visit(e,{method:"get",data:t})},generateUrlParams:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={};if(this.q.length>2&&(t.q=this.q),this.category&&(t.category=this.category),this.orderby&&(t.orderby=this.orderby),e&&(t.page=this.page),this.tags.length>0){var n=this.tags.join(",");t.tag=n}return t}}});var R=n(5072),$=n.n(R),z=n(9417),F={insert:"head",singleton:!1};$()(z.A,F);z.A.locals;const H=(0,n(6262).A)(j,[["render",function(e,t,n,M,T,B){var O=(0,r.resolveComponent)("Head"),P=(0,r.resolveComponent)("lm-stage"),L=(0,r.resolveComponent)("lm-input-text"),I=(0,r.resolveComponent)("tag-selector"),j=(0,r.resolveComponent)("AnnonceGrid"),R=(0,r.resolveComponent)("Link");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(O,{title:"Recherche"}),(0,r.createVNode)(P,{compact:!0,title:"Rechercher dans les annonces et évenements",subtitle:"Recherche","search-widget":!1}),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",null,[(0,r.createVNode)(L,{placeholder:e.__("Suchen"),modelValue:e.q,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.q=t}),icon:"<svg viewBox='0 0 20 20' fill='currentColor' class='w-3 h-3'>\n <path fill-rule='evenodd' d='M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z' clip-rule='evenodd' />\n </svg>",onEnter:t[1]||(t[1]=function(t){return e.search(e.route("annonces.search",{commune:e.$page.props.commune.slug}))}),iconClickable:!0,onIconClick:t[2]||(t[2]=function(t){return e.search(e.route("annonces.search",{commune:e.$page.props.commune.slug}))})},null,8,["placeholder","modelValue"])]),e.$page.props.commune.enable_tags?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.createVNode)(I,{placeholder:e.__("Chercher par tag"),showLabel:!1,onUpdate:e.updateTags,readonly:!0,inputTags:e.tags},null,8,["placeholder","onUpdate","inputTags"])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",null,[(0,r.withDirectives)((0,r.createElementVNode)("select",{"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.category=t}),onChange:t[4]||(t[4]=function(t){return e.search(e.route("annonces.search",{commune:e.$page.props.commune.slug}))}),id:"category",class:"block mb-2 rounded w-full bg-slate-100/80 border-none focus:ring-gray-200"},[(0,r.createElementVNode)("option",l,(0,r.toDisplayString)(e.__("Alle Kategorien")),1),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.categories,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("option",{key:t.name,value:t.id},(0,r.toDisplayString)(t.name[e.$page.props.locale]),9,c)})),128))],544),[[r.vModelSelect,e.category]])]),(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("button",{class:"btn-primary",onClick:t[5]||(t[5]=function(t){return e.search(e.route("annonces.search",{commune:e.$page.props.commune.slug}))})},(0,r.toDisplayString)(e.__("Suchen")),1)])]),(0,r.createElementVNode)("div",u,[(0,r.withDirectives)((0,r.createElementVNode)("select",{"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.orderby=t}),onChange:t[7]||(t[7]=function(t){return e.search(e.route("annonces.search",{commune:e.$page.props.commune.slug}))}),id:"orderby",class:"block mb-2 rounded w-full bg-slate-100/80 border-none focus:ring-gray-200"},[(0,r.createElementVNode)("option",d,(0,r.toDisplayString)(e.__("Trier par")),1),(0,r.createElementVNode)("option",p,(0,r.toDisplayString)(e.__("Début de l'évenement (plus récents)")),1),(0,r.createElementVNode)("option",h,(0,r.toDisplayString)(e.__("Début de l'évenement (plus anciens)")),1),(0,r.createElementVNode)("option",f,(0,r.toDisplayString)(e.__("Date de publication (plus anciens)")),1),(0,r.createElementVNode)("option",m,(0,r.toDisplayString)(e.__("Date de publication (plus récents)")),1),(0,r.createElementVNode)("option",g,(0,r.toDisplayString)(e.__("Nom (A à Z)")),1),(0,r.createElementVNode)("option",v,(0,r.toDisplayString)(e.__("Nom (Z à A)")),1)],544),[[r.vModelSelect,e.orderby]])])]),(0,r.createElementVNode)("div",y,[(0,r.createVNode)(j,{items:this.annonces.data},null,8,["items"]),e.annonces.last_page>1?((0,r.openBlock)(),(0,r.createElementBlock)("div",b,[(0,r.createElementVNode)("nav",x,[(0,r.createElementVNode)("div",w,[e.annonces.prev_page_url?((0,r.openBlock)(),(0,r.createBlock)(R,{key:0,href:e.annonces.prev_page_url,class:"inline-flex items-center border-t-2 border-transparent pt-4 pr-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700"},{default:(0,r.withCtx)((function(){return[t[8]||(t[8]=(0,r.createElementVNode)("svg",{class:"mr-3 h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M18 10a.75.75 0 01-.75.75H4.66l2.1 1.95a.75.75 0 11-1.02 1.1l-3.5-3.25a.75.75 0 010-1.1l3.5-3.25a.75.75 0 111.02 1.1l-2.1 1.95h12.59A.75.75 0 0118 10z","clip-rule":"evenodd"})],-1)),(0,r.createElementVNode)("span",{innerHTML:e.__("previous")},null,8,k)]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",_,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.annonces.links,(function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.withDirectives)((0,r.createVNode)(R,{class:(0,r.normalizeClass)(["inline-flex items-center border-t-2 border-transparent px-4 pt-4 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700",{"border-cm-primary text-cm-primary":t.active}]),href:t.url,innerHTML:t.label},null,8,["class","href","innerHTML"]),[[r.vShow,n<4||n>e.annonces.links.length-5]]),(0,r.withDirectives)((0,r.createElementVNode)("div",E,null,512),[[r.vShow,4===n]])],64)})),256))]),(0,r.createElementVNode)("div",C,[e.annonces.next_page_url?((0,r.openBlock)(),(0,r.createBlock)(R,{key:0,href:e.annonces.next_page_url,class:"inline-flex items-center border-t-2 border-transparent pt-4 pl-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700"},{default:(0,r.withCtx)((function(){return[(0,r.createElementVNode)("span",{innerHTML:e.__("next")},null,8,N),t[9]||(t[9]=(0,r.createElementVNode)("svg",{class:"ml-3 h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[(0,r.createElementVNode)("path",{"fill-rule":"evenodd",d:"M2 10a.75.75 0 01.75-.75h12.59l-2.1-1.95a.75.75 0 111.02-1.1l3.5 3.25a.75.75 0 010 1.1l-3.5 3.25a.75.75 0 11-1.02-1.1l2.1-1.95H2.75A.75.75 0 012 10z","clip-rule":"evenodd"})],-1))]})),_:1},8,["href"])):(0,r.createCommentVNode)("",!0)])]),(0,r.createElementVNode)("div",S,[(0,r.createTextVNode)((0,r.toDisplayString)(e.__("page"))+" ",1),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(e.annonces.current_page)},null,8,V),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("of"))+" ",1),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(e.annonces.last_page)},null,8,A),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__(" sur un total "))+" ",1),(0,r.createElementVNode)("span",{textContent:(0,r.toDisplayString)(e.annonces.total)},null,8,D),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.__("résultats")),1)])])):(0,r.createCommentVNode)("",!0)])])],64)}],["__scopeId","data-v-6a0ba76d"]])},9957:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(6743);e.exports=i.call(r,o)},9977:()=>{}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.m=t,e=[],r.O=(t,n,o,i)=>{if(!n){var a=1/0;for(u=0;
2u<e.length;u++){for(var[n,o,i]=e[u],s=!0,l=0;l<n.length;l++)(!1&i||a>=i)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(s=!1,i<a&&(a=i));if(s){e.splice(u--,1);var c=o();void 0!==c&&(t=c)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,o,i]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={847:0,252:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,i,[a,s,l]=n,c=0;if(a.some((t=>0!==e[t]))){for(o in s)r.o(s,o)&&(r.m[o]=s[o]);if(l)var u=l(r)}for(t&&t(n);c<a.length;c++)i=a[c],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(u)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),r.nc=void 0,r.O(void 0,[252],(()=>r(5736)));var o=r.O(void 0,[252],(()=>r(1016)));o=r.O(o)})();
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.